{"_id":"@bookingcare/infa","name":"@bookingcare/infa","dist-tags":{"latest":"0.3.0"},"versions":{"0.3.0":{"name":"@bookingcare/infa","version":"0.3.0","description":"Sandbox execution for process-isolated agent tools with resource limits","license":"MIT","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.build.json","dev":"tsc -p tsconfig.build.json --watch","clean":"rm -rf dist *.tsbuildinfo","type-check":"tsc --noEmit"},"devDependencies":{"@bookingcare/tsconfig":"workspace:*","@types/node":"^25.6.2","typescript":"^5.8.0","vitest":"^4.1.5"},"_id":"@bookingcare/infa@0.3.0","gitHead":"aae37561b3c77dd32db84fe0e6d0946166756019","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-TbQfSQzPpGDeHoeYRyKu05Dwlpak7L//VbCIPxkr6BnbqyOct4MtvPbZpUHHF3DMtUIPhS/Msuhz0eb9CSk9mg==","shasum":"aecd06b489581e073bcac8f04b2a52418c913419","tarball":"https://registry.npmjs.org/@bookingcare/infa/-/infa-0.3.0.tgz","fileCount":22,"unpackedSize":26306,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDdP//5ySovZ44YYeT76vAd+KN8ukyGfVH1COkyDmy84AiBjlAHZn3bgMPWDpL136NyuFFT87it6Nq2+/+vPJDjbrw=="}]},"_npmUser":{"name":"nampham1106","email":"nampham11062002@gmail.com"},"directories":{},"maintainers":[{"name":"nampham1106","email":"nampham11062002@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/infa_0.3.0_1779040415663_0.15714132915053347"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-17T17:53:35.559Z","0.3.0":"2026-05-17T17:53:35.810Z","modified":"2026-05-17T17:53:35.991Z"},"maintainers":[{"name":"nampham1106","email":"nampham11062002@gmail.com"}],"description":"Sandbox execution for process-isolated agent tools with resource limits","license":"MIT","readme":"# @bookingcare/infa\n\nSandbox execution for process-isolated agent tools with resource limits.\n\n## Installation\n\n```bash\npnpm add @bookingcare/infa\n```\n\n## Usage\n\n```typescript\nimport { createSandbox } from \"@bookingcare/infa\";\n\nconst sandbox = createSandbox({\n  kind: \"local\",\n  workdir: \"/workspace\",\n  timeout: 30_000,\n  maxOutput: 1024 * 1024,\n  env: {\n    PATH: \"/usr/local/bin:/usr/bin:/bin\",\n  },\n});\n\nconst result = await sandbox.exec(\"echo hello\");\n```\n\nSandboxed processes do not inherit the parent environment. Pass a safe `PATH` (and on Windows, `SystemRoot`/`ComSpec`) in `env` when commands need external binaries.\n\n`Sandbox` also exposes `readFile()`, `writeFile()`, and `editFile()` for workspace-scoped file operations.\n","readmeFilename":"README.md","_rev":"1-9e143480dde97f5c329ebbfd480e552a"}