{
  "name": "@directive-run/sandbox",
  "version": "0.4.27",
  "description": "Execute Directive snippets server-side and return a structured transcript (logs + facts + errors). Consumed by @directive-run/mcp's run_in_sandbox tool and directive.run/playground's live DevTools panel. Uses worker_threads + esbuild bundling + an AST allowlist validator so user-supplied TypeScript runs with a bounded surface (allowlisted imports, allowlisted API calls, 5s wall clock, 32 MB heap).",
  "license": "(MIT OR Apache-2.0)",
  "author": "Jason Comes",
  "repository": {
    "type": "git",
    "url": "https://github.com/directive-run/directive",
    "directory": "packages/sandbox"
  },
  "homepage": "https://directive.run/docs/ide-integration",
  "bugs": {
    "url": "https://github.com/directive-run/directive/issues"
  },
  "publishConfig": {
    "access": "public",
    "registry": "https://registry.npmjs.org"
  },
  "engines": {
    "node": ">=18"
  },
  "keywords": [
    "directive",
    "sandbox",
    "worker-threads",
    "execute",
    "transcript"
  ],
  "type": "module",
  "main": "./dist/index.cjs",
  "module": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "require": "./dist/index.cjs",
      "import": "./dist/index.js"
    },
    "./worker": {
      "types": "./dist/worker.d.ts",
      "import": "./dist/worker.js",
      "default": "./dist/worker.js"
    }
  },
  "files": [
    "dist"
  ],
  "dependencies": {
    "@directive-run/core": "1.34.1"
  },
  "optionalDependencies": {
    "esbuild": "^0.25.0",
    "ts-morph": "^25.0.0"
  },
  "devDependencies": {
    "@types/node": "^25.2.0",
    "esbuild": "^0.25.0",
    "ts-morph": "^25.0.0",
    "tsup": "^8.3.5",
    "tsx": "^4.19.2",
    "typescript": "^5.7.2",
    "vitest": "^3.2.6"
  },
  "scripts": {
    "build": "tsup",
    "test": "cd ../.. && vitest run packages/sandbox/",
    "typecheck": "tsc --noEmit",
    "clean": "rm -rf dist"
  }
}