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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
abortGraceMs? | readonly | number | Grace period (ms) after signal.abort() before the worker is forcibly terminated. Defaults to 100 ms. | packages/security/src/sandbox/worker-threads.ts:68 |
defaultTimeoutMs? | readonly | number | Default wall-clock timeout, in milliseconds. Per-call values from SandboxRunOptions.timeoutMs override this default. | packages/security/src/sandbox/worker-threads.ts:63 |
noFilesystem? | readonly | boolean | Default block on filesystem access. Per-call values from SandboxRunOptions.allowFs === false are honoured first. | packages/security/src/sandbox/worker-threads.ts:78 |
noNetwork? | readonly | boolean | Default block on outbound network. Per-call values from SandboxRunOptions.allowNetwork === false are honoured first. | packages/security/src/sandbox/worker-threads.ts:73 |
pool? | readonly | WorkerPoolOptions | Reserved for a post-MVP warm-pool implementation. | packages/security/src/sandbox/worker-threads.ts:82 |
warn? | readonly | (message) => void | Optional WARN logger. | packages/security/src/sandbox/worker-threads.ts:80 |