Skip to content

ExecuteOptions

Defined in: src/sandbox/base.ts:15

Options for command and code execution.

optional timeout?: number;

Defined in: src/sandbox/base.ts:17

Maximum execution time in seconds. undefined means no timeout.


optional cwd?: string;

Defined in: src/sandbox/base.ts:19

Working directory for execution. undefined means use the sandbox default.


optional signal?: AbortSignal;

Defined in: src/sandbox/base.ts:21

Abort signal to cancel execution. The process is killed when the signal fires.


optional env?: Record<string, string>;

Defined in: src/sandbox/base.ts:27

Environment variables to set for this command. Built-in sandboxes always apply these, though the mechanism differs (Docker -e flags, SSH env prefix); custom Sandbox implementations must handle env explicitly or it has no effect.