Skip to content
1 min read · 190 words

Interface: PreflightOptions

Defined in: src/batteries/sandbox/preflight.ts:17

Inputs to the construction-time environment admission check.

Properties

PropertyModifierTypeDescriptionDefined in
allowUnsandboxedFallback?readonlybooleanExplicit opt-in to run without OS containment when a pre-execution condition applies.src/batteries/sandbox/preflight.ts:23
enforcerreadonlySandboxPolicyEnforcerPolicy backend to admit.src/batteries/sandbox/preflight.ts:19
fsNodeVersion?readonlystringPath redaction is performed by the observability sink, not by this admission check.src/batteries/sandbox/preflight.ts:31
onSandbox?readonlySandboxEventSinkReceives dependency warnings; warnings never make admission fail.src/batteries/sandbox/preflight.ts:29
optionalPeerPresent?readonlybooleanWhether the optional SRT peer was resolved. Defaults to true for injected test enforcers.src/batteries/sandbox/preflight.ts:27
platform?readonlystringPlatform override, primarily for hermetic tests.src/batteries/sandbox/preflight.ts:21
strictMode?readonlybooleanClaude Code's strict mode: per-call escape/bypass is ignored by the consumer.src/batteries/sandbox/preflight.ts:25