SandboxResult
@forge/monorepo / backend/src / SandboxResult
Type Alias: SandboxResult
SandboxResult =
object
Defined in: backend/src/toolkit/sandbox.ts:52
Properties
durationMs
readonlydurationMs:number
Defined in: backend/src/toolkit/sandbox.ts:67
exitCode
readonlyexitCode: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
readonlyok: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?
readonlyoptionalreason?:"timeout"|"memory"|"spawn-failed"
Defined in: backend/src/toolkit/sandbox.ts:66
Set when the sandbox ended the command itself.
stderr
readonlystderr:string
Defined in: backend/src/toolkit/sandbox.ts:63
stdout
readonlystdout:string
Defined in: backend/src/toolkit/sandbox.ts:62
truncated
readonlytruncated:boolean
Defined in: backend/src/toolkit/sandbox.ts:64