/** * Memory-tool adapter REST surface (ADR-007 Wave 4a, migration-map 4a): * POST /memory-tool { command, path, ... } -> { content: string } | { error: string } * * Bearer-authed via the app-level preHandler (src/server/app.ts) — no route- * local auth here. Body is the raw Anthropic memory-tool command JSON; the * response shape is exactly what a harness needs to relay back to the model * as a tool_result. See docs/memory-tool-adapter.md for the command mapping * and limitations, and src/memory-tool/adapter.ts for the mapping logic. */ import type { FastifyInstance } from 'fastify'; import type { DB } from '../../storage/db.js'; import { type Config } from '../../config/config.js'; export declare function memoryToolRoute(db: DB, config?: Config): (app: FastifyInstance) => Promise;