@enclave-vm/core package.
Installation
Enclave Class
The main class for secure code execution.Constructor
EnclaveOptions
Methods
run(code, options?)
Execute code in the sandbox.code- JavaScript code to executeoptions- Optional execution options
ExecutionResult
validate(code)
Validate code without executing.ValidationResult
dispose()
Clean up resources.Types
SecurityLevel
ToolHandler
ExecutionError
ExecutionStats
ScoringGateOptions
Factory Functions
createWorkerPoolAdapter(options)
Create a worker pool adapter for OS-level isolation.createDoubleVmAdapter(options)
Create a double-VM adapter for nested isolation.RuleBasedScorer Class
Semantic pattern detection scorer.Methods
score(code)
Reference Sidecar
Handle large tool responses.SidecarOptions
Complete Example
Related
- Overview - Feature overview
- Configuration - All options
- Security Levels - Security details