/** * method-catalog-hosted-sessions.ts, the verbs that drive a session whose loop * runs INSIDE the daemon. * * ── What is deliberately NOT here ────────────────────────────────────────── * * There is no `sessions.hosted.steer`, no `sessions.hosted.cancel`, no * `sessions.hosted.queuedMessages.*`. Those verbs exist, `sessions.steer`, * `sessions.followUp`, `sessions.toolCalls.cancel`, * `sessions.queuedMessages.list/edit/delete`, and they now resolve a hosted * session's id the same way they resolve the daemon's local runtime. Minting a * parallel family for the same operations is how two spellings of one action * drift apart. * * There is also no token-stream verb, and there does not need to be. The hosted * loop is the ordinary Orchestrator, so it emits STREAM_DELTA, tool * starts/results and turn transitions on the runtime bus already stamped with * the hosted session's id (`createEmitterContext(sessionId, turnId)`), and * `GET /api/sessions/:id/events` streams them. * * That route did NOT always carry all of it. It subscribed on DEFAULT_DOMAINS, * which includes `turn` but not `tools`, so a remote renderer received text * deltas, turn lifecycle and usage, and no tool call or tool result at all. It * also delivered every OTHER session's frames down a path that names one * session. Both are fixed at the route (see `openSessionEventStream` in * daemon/http/router.ts): it subscribes on RENDER_GRADE_SESSION_DOMAINS, the * defaults plus `tools`, and scopes delivery to its own session id. * * What IS here is the lifecycle nobody could express: bring a hosted session * into being, join it, leave it (which is where the detach policy is applied), * end it, and list what exists. */ import type { GatewayMethodDescriptor } from './method-catalog-shared.js'; /** The record every hosted-session verb returns. */ export declare const HOSTED_SESSION_RECORD_SCHEMA: Record; export declare const builtinGatewayHostedSessionMethodDescriptors: readonly GatewayMethodDescriptor[]; //# sourceMappingURL=method-catalog-hosted-sessions.d.ts.map