Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / WorkerThreadsSandboxOptions

Interface: WorkerThreadsSandboxOptions

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

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:68
defaultTimeoutMs?readonlynumberDefault wall-clock timeout, in milliseconds. Per-call values from SandboxRunOptions.timeoutMs override this default.packages/security/src/sandbox/worker-threads.ts:63
noFilesystem?readonlybooleanDefault block on filesystem access. Per-call values from SandboxRunOptions.allowFs === false are honoured first.packages/security/src/sandbox/worker-threads.ts:78
noNetwork?readonlybooleanDefault block on outbound network. Per-call values from SandboxRunOptions.allowNetwork === false are honoured first.packages/security/src/sandbox/worker-threads.ts:73
pool?readonlyWorkerPoolOptionsReserved for a post-MVP warm-pool implementation.packages/security/src/sandbox/worker-threads.ts:82
warn?readonly(message) => voidOptional WARN logger.packages/security/src/sandbox/worker-threads.ts:80