/** * `/api/dashboard/memories[...]` — paginated memory browser for the * Dashboard SPA. Sits on top of the same engram.search surface the * MCP `kb_search` + `kb_recent` tools use, but exposes the filter * shape the Memories page needs (multi-type, since-date, page/perPage) * in one round-trip. * * Surface: * GET /api/dashboard/memories?type=brief&type=doc&source=github * &project=alpha&since=ISO&page=N&perPage=M * &query=free-text * GET /api/dashboard/memories/:id — full content + tags + metadata * * Auth: scoped to `admin`. Memory contents can include credentials in * notes, decision logs, etc. — keep the surface admin-only. * * Note on multi-type filtering: engram.search only accepts a single * type. Multi-select on the UI fires N parallel searches and merges * client-side here. For a small N (<= 13 — the full Cortex type * enum) the fan-out is cheap, and engram's per-call limits keep the * worst case bounded. * * Note on the dossier badge: a memory carries the "dossier" tag plus * `type=brief` when emitted by `pipeline-code-dossier` (Slice A). The * shape we surface here passes through the raw tag list so the SPA * can detect the badge without a server-side conditional. */ import type { IncomingMessage, ServerResponse } from "node:http"; import type { RouteContext } from "../route-context.js"; export declare function handle(req: IncomingMessage, res: ServerResponse, ctx: RouteContext): Promise; //# sourceMappingURL=dashboard-memories.d.ts.map