UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

18 lines (17 loc) 745 B
import type { SandboxSession } from "#public/definitions/sandbox.js"; /** * Resolves the active sandbox session from the runtime context. * * Shared preamble for every sandbox-backed tool executor (`bash`, * `read_file`, `write_file`, `glob`, `grep`). Centralizes the context * lookup, null checks, and error messages so each executor does not * duplicate them. * * Binds the returned session to `abortSignal` when provided. */ export declare function requireSandboxSession(abortSignal?: AbortSignal): Promise<SandboxSession>; /** * Validates that a model-supplied file path is absolute. Throws a * descriptive error when the path does not start with `/`. */ export declare function validateAbsoluteFilePath(filePath: string): void;