Skip to main content

SandboxResult

@forge/monorepo


@forge/monorepo / backend/src / SandboxResult

Type Alias: SandboxResult

SandboxResult = object

Defined in: backend/src/toolkit/sandbox.ts:52

Properties

durationMs

readonly durationMs: number

Defined in: backend/src/toolkit/sandbox.ts:67


exitCode

readonly exitCode: number | null

Defined in: backend/src/toolkit/sandbox.ts:61

The process's exit code, or null when it never produced one.

Null is the honest answer for a killed process, and it is why reason exists: "exit code 137" and "we killed it after 20 seconds" are the same event described at two levels, and the model needs the second one.


ok

readonly ok: boolean

Defined in: backend/src/toolkit/sandbox.ts:54

Whether the command ran to completion. A non-zero exit is ok: true with a non-zero code.


reason?

readonly optional reason?: "timeout" | "memory" | "spawn-failed"

Defined in: backend/src/toolkit/sandbox.ts:66

Set when the sandbox ended the command itself.


stderr

readonly stderr: string

Defined in: backend/src/toolkit/sandbox.ts:63


stdout

readonly stdout: string

Defined in: backend/src/toolkit/sandbox.ts:62


truncated

readonly truncated: boolean

Defined in: backend/src/toolkit/sandbox.ts:64