/** * `/api/v1/runs/:id/working-doc` (program DES-POWER-MODE §8.3, §9; spike 3). * * - `GET /runs/:id/working-doc` (observer+): the document's sections at its head, the version trail (who, through * which surface, which sections, when, and the steer each made) and the steering notes (sent, picked up by which * step). `doc: null` until one is made. * - `POST /runs/:id/working-doc` (operator+): make it (idempotent). Its Goal is seeded from the run's intent, by crew. * - `POST /runs/:id/working-doc/versions {base, sections, author, plugin?}` (operator+): one version. `author: * 'operator'` only from a person (403 otherwise); `author: 'plugin'` writes only the plugin's own section. A * person's version becomes one steering note (see `service.ts`); a plugin's never does. 409 `{head}` when the * document moved since `base`. * * Nothing here answers a gate or launches a run. */ import type { FastifyInstance } from 'fastify'; import type { WorkingDocService } from './service.js'; export declare function registerWorkingDocRoutes(app: FastifyInstance, deps: { service: WorkingDocService; exists(runId: string): Promise; }): void; //# sourceMappingURL=routes.d.ts.map