Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/security / / WorkerThreadsSandboxOptions

Interface: WorkerThreadsSandboxOptions

Defined in: packages/security/src/sandbox/worker-threads.ts:62

Options for createWorkerThreadsSandbox(...).

Stable

Properties

PropertyModifierTypeDescriptionDefined in
abortGraceMs?readonlynumberGrace period (ms) after signal.abort() before the worker is forcibly terminated. Defaults to 100 ms.packages/security/src/sandbox/worker-threads.ts:72
defaultTimeoutMs?readonlynumberDefault wall-clock timeout, in milliseconds. Per-call values from SandboxRunOptions.timeoutMs override this default.packages/security/src/sandbox/worker-threads.ts:67
noFilesystem?readonlybooleanDefault block on filesystem access. Per-call values from SandboxRunOptions.allowFs === false are honoured first.packages/security/src/sandbox/worker-threads.ts:82
noNetwork?readonlybooleanDefault block on outbound network. Per-call values from SandboxRunOptions.allowNetwork === false are honoured first.packages/security/src/sandbox/worker-threads.ts:77
pool?readonlyWorkerPoolOptionsReserved for a post-MVP warm-pool implementation.packages/security/src/sandbox/worker-threads.ts:86
warn?readonly(message) => voidOptional WARN logger.packages/security/src/sandbox/worker-threads.ts:84