/** * Ask-AI turn routes — the stateless, run-keyed replacement for the sessions * entity. * * Three routes, one surface: * * - `POST /api/p/:slug/ask` — accept one turn of a headless conversation. * Stateless by construction: there is no thread record anywhere. The client * sends (message, optional references, optional bounded history, * optional `continueSessionId`) and the server claims the project's ONE * live-run slot, spawns the chosen runtime's one-shot driver and answers * 202 with the run id and its stream URL. Continuation state is the * runtime-native session id the settled run harvests from its own log — it * rides the stream's `end` frame and the client keeps it in localStorage. * - `GET /api/p/:slug/runs/:runId/stream` — the stateless SSE tail of one * run's durable event log, re-homed verbatim from the sessions route and * keyed on the run store instead of the session record. * - `DELETE /api/p/:slug/runs/:runId` — cancel a live run: SIGTERM its child * and settle it `interrupted`. * * The RUNTIME policy — argv shapes and wire format — lives in run-driver.ts * adapters; the generic lifecycle stays in claude-runner.ts and * run-event-log.ts; the per-run claim lives in run-store.ts. Every route here * is browser-facing and therefore already behind the global loopback-only * `secureLocalRequest` middleware — no per-route auth. */ import { Hono } from "hono"; export declare const askRoute: Hono; //# sourceMappingURL=ask.d.ts.map