2.8 KiB
2.8 KiB
Tasks — enterprise-sandbox
- Scaffold package skeleton (
package.json,vite.config.ts,vitest.config.ts,tsconfig.lib.json,README.md,src/index.ts). - Author
types/sandbox.types.tswithSandboxConfig,SandboxResult,SandboxOptions,SandboxModule,ExecutionContext,AuditLogEntry,AuditStatistics,Clock,ProcessSpawner,CommandResult,DEFAULT_CONFIG. - Author
error-codes/error-codes.ts—SANDBOX_CODESviadefineCodes+SandboxErrorclass. Sibling docs + tests. - Author
schemas/schemas.ts— Zod schemas for config, options, module. Sibling docs + tests. - Author
telemetry/telemetry.ts— OTel counters + histogram + record fns. Sibling docs + tests. - Author
audit-logger/audit-logger.ts— SHA-256 hash, filter, statistics,onAuditLog. Sibling docs + tests. - Author
resource-limiter/resource-limiter.ts— sliding-window limiter with injectableClock, output truncation. Sibling docs + tests. - Author
module-resolver/module-resolver.ts— denylist + allowlist + builtin resolver. Sibling docs + tests. - Author
code-transformer/code-transformer.ts— eleven built-in rules, custom-rule slot,wouldBlock. Sibling docs + tests. - Author
vm-engine/vm-engine.ts— realnode:vmsandbox with frozen intrinsics, captured console, heap stats. Sibling docs + tests. - Author
worker-engine/worker-engine.ts— realnode:worker_threadssandbox, postMessage IPC, timeout viaworker.terminate(). Sibling docs- tests.
- Author
spawn-engine/spawn-engine.ts+runner.ts— realnode:child_processrunner with sanitised env, JSON IPC, timeout race. Sibling docs + tests. - Author
isolate-engine/isolate-engine.ts— structuralisolated-vmcontract withIsolateFactoryseam. Sibling docs + tests. - Author
pool/pool.ts— pre-warmed pool with injectableClock, cleanup, recycle-on-N. Sibling docs + tests. - Author
result-streamer/result-streamer.ts— subscribe / push / flush / complete / destroy. Sibling docs + tests. - Author
sandbox/sandbox.ts—createSandboxfacade composing every feature, engine selection, audit-log integration. Sibling docs + tests. - Wire
src/index.tsbarrel + every subpath export inpackage.json. - Run pre-publish gate:
bunx turbo lint typecheck test build --filter=@suaveplan/sandboxbunx turbo test:coverage --filter=@suaveplan/sandbox— all green at 100/100/100/100.
- Refresh
MANIFEST.mdviabun scripts/folder-reorg/generate-manifest.ts. - Flip
@suaveplan/sandboxrow inSTATUS.mdfrom–to✅. - Fold
specs/sandbox/spec.mdintoopenspec/specs/sandbox/spec.md. - Archive
openspec/changes/enterprise-sandbox/toopenspec/archive/2026-05-25-enterprise-sandbox/.