Skip to content

ShellExecuteOptions

Defined in: namespaces.ts:610

Options for shell.execute().

command: string

Defined in: namespaces.ts:612

Command name (must be in the manifest’s shellCommands allowlist).


optional args?: string[]

Defined in: namespaces.ts:614

Arguments array (default: []).


optional cwd?: string

Defined in: namespaces.ts:616

Working directory (absolute POSIX path or file:// URL).


optional timeout?: number

Defined in: namespaces.ts:618

Timeout in seconds (default: 120, maximum: 120).


optional env?: Record<string, string>

Defined in: namespaces.ts:620

Environment variables to merge with the host process environment.


optional onData?: (chunk) => void

Defined in: namespaces.ts:625

Optional callback invoked as output data arrives from the process (fn-47). Omit for the existing buffered behavior (no streaming).

ShellDataChunk

void