@sema-agent/core
Version:
Stateless, task-oriented AI agent core
19 lines (18 loc) • 1.18 kB
TypeScript
import { type Checkpoint } from "../checkpoint-store.js";
import type { RunInternals, RunnerDepsSeat } from "./contracts.js";
export interface ResumeCheckpointScreenInput {
/** borrowed-readonly — the pending row; every invariant is judged on its persisted fields. */
cp: Checkpoint;
/** borrowed-readonly — the ONE signal read from admission; `.aborted` is read live here. */
resumeSignal: AbortSignal | undefined;
/** borrowed-readonly — the internals snapshot (the re-supplied chain, the requested cwd). */
internals: RunInternals | undefined;
/** borrowed-readonly — the Runner's deployment deps, read LIVE through the Runner (reads `permissionRuleStore` and `executionEnvFactory`); the one home of why it is a
* seat and not a captured object is {@link RunnerDepsSeat}. */
runner: RunnerDepsSeat;
}
export interface ResumeCheckpointScreenResult {
/** The internals the resumed leg is handed: the validated chain frozen at the array level (entries by reference). */
resumeInternals: RunInternals | undefined;
}
export declare function resumeCheckpointScreen(input: ResumeCheckpointScreenInput): ResumeCheckpointScreenResult;