/** * User Profile route (FEAT-451 slice 1): * GET /profile โ€” read-time synthesized daemon-wide "what does this owner * keep coming back to" profile (standing facts, preferences, recurring * lessons, recent decisions, known entities). * Receipt shape is built by server/queries/user-profile.ts, shared with the * MCP user_profile tool (mcp/server.ts) so both transports stay in sync. * Bearer auth is enforced by the existing global preHandler (app.ts) โ€” no * route-local auth here, same as agents.ts/why.ts/digest.ts. No per-scope * caller authorization exists (design doc ยง3, AC-4) โ€” an authenticated * caller may widen `?scope=` to any value, same trust boundary /search and * /recall already operate under. */ import type { FastifyInstance } from 'fastify'; import type { DB } from '../../storage/db.js'; export declare function profileRoute(db: DB): (app: FastifyInstance) => Promise;