eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
16 lines (15 loc) • 655 B
TypeScript
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.
*/
export declare function requireSandboxSession(): 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;