eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
17 lines (16 loc) • 778 B
TypeScript
import { type DurableSessionState } from "#execution/durable-session-store.js";
export interface CancelledTurnSettleResult {
readonly serializedContext: Record<string, unknown>;
readonly sessionState: DurableSessionState;
}
/**
* Settles one cancelled turn: emits `turn.cancelled` → `session.waiting`,
* drops pending runtime-action state, and persists the between-turns
* session. Runs in the *driver* run, whose wake sources exclude the
* cancel hook, so a queued cancel wake cannot re-dispatch it.
*/
export declare function settleCancelledTurnStep(input: {
readonly parentWritable: WritableStream<Uint8Array>;
readonly serializedContext: Record<string, unknown>;
readonly sessionState: DurableSessionState;
}): Promise<CancelledTurnSettleResult>;