werk

@loom/sandbox (0.1.0)

Published 2026-07-26 20:21:11 +02:00 by amelie

Installation

@loom:registry=https://gitlab.amandy.love/api/packages/werk/npm/
npm install @loom/sandbox@0.1.0
"@loom/sandbox": "0.1.0"

About this package

@loom/sandbox

Tiered execution sandbox for the Loom ecosystem.

Tiered Model

  • Tier 0 (none): No execution, host read/analysis only.
  • Tier 1 (shadow-only): Shadow-root file edits only, no command execution.
  • Tier 2 (bwrap-fast): Lightweight process sandbox using bubblewrap.
  • Tier 3 (podman-test/install): Rootless Podman for tests, builds, and install scripts.

Dependency Policy

This package strictly enforces dependency minimalism:

  • Zero external runtime dependencies (except workspace packages).
  • Uses Bun/Node built-ins for process management and filesystem operations.
  • External tools like podman or bwrap are probed and used only if available.

Testing

  • Default tests: bun test runs portable unit tests that do not require Podman or Bubblewrap.
  • Integration tests: bun run test:integration runs live sandbox tests (requires Podman/Bubblewrap).

Integration

Used by @deck/runtime's DeckWorkspaceRefactorService and DeckAddTestCaseService for safe validation loops.

Dependencies

Dependencies

ID Version
@loom/shared ^0.1.0

Development Dependencies

ID Version
@types/node ^22.15.30
typescript ^6.0.3
Details
npm
2026-07-26 20:21:11 +02:00
3
latest
5.3 KiB
Assets (1)
Versions (1) View all
0.1.0 2026-07-26