/** * Durable session orchestration v1.0.69 — FROZEN. * * Frozen at the release state. 1.0.70 changes what the provider-budget * stash writes: a prompt the gate refuses is recorded as a durable * user.message so it is not lost, and 1.0.69 recorded EVERY refused * prompt that way — including an agent's own bootstrap kickoff, with no * sender on it. A sender-less user message renders from the reader's * perspective, so a session blocked at creation opened with the agent's * instructions under the reader's own name. Replay-only maintenance from * here; live development continues in ../orchestration/. * * Flat event loop backed by a KV FIFO work buffer: * 1. `createRuntime` builds the mutable runtime and runs startup gates. * 2. `runLoop` repeatedly drains the durable message queue + timer fires into * the KV FIFO, dispatches one unit of work, and continues-as-new when idle. * * Module layout: * - state.ts types, constants, createInitialState * - utils.ts pure helpers (prompt parsing, context usage, error checks) * - lifecycle.ts status, releaseAffinity, commands, child digest, CAN * - queue.ts KV FIFO, drain, decide * - turn.ts processPrompt, handleTurnResult, processTimer * - agents.ts sub-agent tracking, tool actions, shutdown cascade * - runtime.ts createRuntime, runLoop * * @internal */ import type { OrchestrationInput } from "../types.js"; import { CURRENT_ORCHESTRATION_VERSION } from "./runtime.js"; export { CURRENT_ORCHESTRATION_VERSION }; export declare function durableSessionOrchestration_1_0_69(ctx: any, input: OrchestrationInput): Generator; //# sourceMappingURL=index.d.ts.map