eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
11 lines (10 loc) • 644 B
TypeScript
import type { SessionContext } from "#context/session-context.js";
import type { RuntimeSandboxSession, SandboxSession } from "#shared/sandbox-session.js";
/**
* Builds a {@link SessionContext} from the active ALS scope.
*
* Must be called inside a harness step (active `contextStorage.run`).
* Throws when called outside an ALS scope.
*/
export declare function buildCallbackContext(): SessionContext;
export declare function withRuntimeSandboxLifecycle<Session extends SandboxSession>(sandbox: Session, deleteSandbox: RuntimeSandboxSession["delete"], stop: () => Promise<void>): Session & Pick<RuntimeSandboxSession, "delete" | "stop">;