{"_id":"@a3s-lab/box","_rev":"14-5e115960227e8dc31d2d3dcd71f83957","name":"@a3s-lab/box","dist-tags":{"latest":"3.2.6"},"versions":{"0.3.0":{"name":"@a3s-lab/box","version":"0.3.0","license":"MIT","_id":"@a3s-lab/box@0.3.0","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"homepage":"https://github.com/A3S-Lab/Box#readme","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"dist":{"shasum":"1f6a26df3e1e0026c9b9c246c8ec9740ce3171c1","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-0.3.0.tgz","fileCount":4,"integrity":"sha512-iWXciZcNpOGCXM1HSD120eXCIhfmS9rRqrt2lRxM5XHD+vJGsBBRF4HIV/i/rbPYlOAvZjiIfN4c85gc82i/qA==","signatures":[{"sig":"MEYCIQCuSlRTqRVPSGtVAa7pLHNjaydXJN6TdsyARG1B3RDPmQIhAOn1pPAfutMO1wBbqcSkdH4iuExZr83QxeaIXzNnKJL3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6503935},"main":"index.js","napi":{"name":"a3s-box","triples":{"defaults":true,"additional":["aarch64-apple-darwin","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl"]}},"types":"index.d.ts","gitHead":"7d22fd203df7b7dcb2f30c3c691d1315dc528432","scripts":{"build":"napi build --platform --release","version":"napi version","artifacts":"napi artifacts","prepublishOnly":"napi prepublish -t npm"},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"repository":{"url":"git+https://github.com/A3S-Lab/Box.git","type":"git","directory":"sdk/node"},"_npmVersion":"10.8.2","description":"Node.js bindings for A3S Box MicroVM sandbox runtime","directories":{},"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"@napi-rs/cli":"^2.18.0"},"optionalDependencies":{"@a3s-lab/box-darwin-arm64":"0.3.0","@a3s-lab/box-linux-x64-gnu":"0.3.0","@a3s-lab/box-linux-x64-musl":"0.3.0","@a3s-lab/box-linux-arm64-gnu":"0.3.0","@a3s-lab/box-linux-arm64-musl":"0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/box_0.3.0_1771259716389_0.953245745292862","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@a3s-lab/box","version":"0.5.0","license":"MIT","_id":"@a3s-lab/box@0.5.0","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"homepage":"https://github.com/A3S-Lab/Box#readme","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"dist":{"shasum":"91419552ace91c50df16bf4a700ce1aa1eff9c43","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-0.5.0.tgz","fileCount":1,"integrity":"sha512-hD3WWR0YkTk47PYlwPlBxrVPoGwlCbJulAVFelxxHKGdw7hwUtoPJS1P0yW4sZ8XJ07LFYdHfxZ6hcvz0hHxPQ==","signatures":[{"sig":"MEUCIQCrZtB/JByMMNxht1tRNnn9utAX1NKWk71hQ85ZpIHOGwIgGoHC1ghpPfYJJN9OyW9v8VC/gEXjAdxu3iME09H1m5o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1090},"main":"index.js","napi":{"name":"a3s-box","triples":{"defaults":true,"additional":["aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl"]}},"types":"index.d.ts","scripts":{"build":"napi build --platform --release","version":"napi version","artifacts":"napi artifacts","prepublishOnly":"napi prepublish -t npm"},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"repository":{"url":"git+https://github.com/A3S-Lab/Box.git","type":"git","directory":"sdk/node"},"_npmVersion":"11.7.0","description":"Node.js bindings for A3S Box MicroVM sandbox runtime","directories":{},"_nodeVersion":"25.4.0","_hasShrinkwrap":false,"devDependencies":{"@napi-rs/cli":"^2.18.0"},"optionalDependencies":{"@a3s-lab/box-darwin-arm64":"0.5.0","@a3s-lab/box-linux-x64-gnu":"0.5.0","@a3s-lab/box-linux-x64-musl":"0.5.0","@a3s-lab/box-linux-arm64-gnu":"0.5.0","@a3s-lab/box-linux-arm64-musl":"0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/box_0.5.0_1771422524257_0.9796995330680216","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@a3s-lab/box","version":"0.5.1","license":"MIT","_id":"@a3s-lab/box@0.5.1","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"homepage":"https://github.com/A3S-Lab/Box#readme","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"dist":{"shasum":"a59df2496c8863daced9318a9ff05fd8e6f4d3bd","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-0.5.1.tgz","fileCount":4,"integrity":"sha512-klSPyuewYAX21G6/hyelGKohz61zJAhlVayN5wx25VFZKXdHPx0M8vLCOk97mCKP+BcM4ERq0w0JQDvT5HgiCw==","signatures":[{"sig":"MEUCIFW10idbM+D5uvgxmKbINVex66p/+TcNGuCMfpgZysVJAiEA3/3M/XCCjzyYbBJKwnREfsvcNkiqHvPk8hSK1ZYvrZg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6476599},"main":"index.js","napi":{"name":"a3s-box","triples":{"defaults":true,"additional":["aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl"]}},"types":"index.d.ts","gitHead":"b01214fbee9e0bbc557bcc9d5641fd27077e36a7","scripts":{"build":"napi build --platform --release","version":"napi version","artifacts":"napi artifacts","prepublishOnly":"napi prepublish -t npm"},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"repository":{"url":"git+https://github.com/A3S-Lab/Box.git","type":"git","directory":"sdk/node"},"_npmVersion":"10.8.2","description":"Node.js bindings for A3S Box MicroVM sandbox runtime","directories":{},"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"@napi-rs/cli":"^2.18.0"},"optionalDependencies":{"@a3s-lab/box-darwin-arm64":"0.5.0","@a3s-lab/box-linux-x64-gnu":"0.5.0","@a3s-lab/box-linux-x64-musl":"0.5.0","@a3s-lab/box-linux-arm64-gnu":"0.5.0","@a3s-lab/box-linux-arm64-musl":"0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/box_0.5.1_1771435106371_0.4523516307125883","host":"s3://npm-registry-packages-npm-production"}},"0.5.2":{"name":"@a3s-lab/box","version":"0.5.2","license":"MIT","_id":"@a3s-lab/box@0.5.2","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"homepage":"https://github.com/A3S-Lab/Box#readme","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"dist":{"shasum":"76751e859585610739c588877dff7af926c992c6","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-0.5.2.tgz","fileCount":4,"integrity":"sha512-O+CTVMxb0S589N8xuEKgSaNOUeDbFNLon9X7EKPvT5O8iHQR5lxJI8v7utUKbPCNdhzm6h2g805889FyuhprMg==","signatures":[{"sig":"MEUCICyVZRBLMICy6x2fo8QjV3w6dYJ8eAjkDoPK8ZdQxsnwAiEAnmOmbju87WwLWxNGNWFI9KsKLkLleqH/IpTIJ6tUYV0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6477047},"main":"index.js","napi":{"name":"a3s-box","triples":{"defaults":true,"additional":["aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl"]}},"types":"index.d.ts","gitHead":"dced44e626a39974949a88940213ac21dee27b41","scripts":{"build":"napi build --platform --release","version":"napi version","artifacts":"napi artifacts","prepublishOnly":"napi prepublish -t npm"},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"repository":{"url":"git+https://github.com/A3S-Lab/Box.git","type":"git","directory":"sdk/node"},"_npmVersion":"10.8.2","description":"Node.js bindings for A3S Box MicroVM sandbox runtime","directories":{},"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"@napi-rs/cli":"^2.18.0"},"optionalDependencies":{"@a3s-lab/box-darwin-arm64":"0.5.0","@a3s-lab/box-linux-x64-gnu":"0.5.0","@a3s-lab/box-linux-x64-musl":"0.5.0","@a3s-lab/box-linux-arm64-gnu":"0.5.0","@a3s-lab/box-linux-arm64-musl":"0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/box_0.5.2_1771440486496_0.09395110689895003","host":"s3://npm-registry-packages-npm-production"}},"0.5.3":{"name":"@a3s-lab/box","version":"0.5.3","license":"MIT","_id":"@a3s-lab/box@0.5.3","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"homepage":"https://github.com/A3S-Lab/Box#readme","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"dist":{"shasum":"93ed25bc614e82cfd2b084b7600e98283ef3ef37","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-0.5.3.tgz","fileCount":4,"integrity":"sha512-h6uZdd/v6E+QClwv+4J0Rm8oJ0s+41o2+ZKfBKMjNqkCv5ZlToCQgeGE1hhzhjgwvlzhGMWGHu8LDreMr9o8ng==","signatures":[{"sig":"MEYCIQD+tq6i6wahGeVYQcvy/oq5JBi+SB8Gm+iwf8y9e3RG+wIhANTLcxhYiqFqTkmabELNHaLr4I43321rioGeNtQs4P8R","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6682271},"main":"index.js","napi":{"name":"a3s-box","triples":{"defaults":true,"additional":["aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl"]}},"types":"index.d.ts","gitHead":"76bf7f607f64924277d67f18a48d6cfc3520a3a6","scripts":{"build":"napi build --platform --release","version":"napi version","artifacts":"napi artifacts","prepublishOnly":"napi prepublish -t npm"},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"repository":{"url":"git+https://github.com/A3S-Lab/Box.git","type":"git","directory":"sdk/node"},"_npmVersion":"10.8.2","description":"Node.js bindings for A3S Box MicroVM sandbox runtime","directories":{},"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"@napi-rs/cli":"^2.18.0"},"optionalDependencies":{"@a3s-lab/box-darwin-arm64":"0.5.0","@a3s-lab/box-linux-x64-gnu":"0.5.0","@a3s-lab/box-linux-x64-musl":"0.5.0","@a3s-lab/box-linux-arm64-gnu":"0.5.0","@a3s-lab/box-linux-arm64-musl":"0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/box_0.5.3_1771599839245_0.07655282661370011","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@a3s-lab/box","version":"0.6.0","license":"MIT","_id":"@a3s-lab/box@0.6.0","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"homepage":"https://github.com/A3S-Lab/Box#readme","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"dist":{"shasum":"54e974b8f92c33d5bb96a87714faf5135e951728","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-0.6.0.tgz","fileCount":4,"integrity":"sha512-J+PlT6idOMFRBX+tz6HlIVNC4hPBqU52vT9WGoDxJoSxPlEjVkSY77aLPq5uOFsFdmzvJDB95bMHiCYp9gKylQ==","signatures":[{"sig":"MEUCIQDKuZ6oDwQaLchOLFtHroQ90IGUXVM0mih1rPXAJha5BgIgci2IGCHc3RFGfKMbyTCYpsWwVJAI5986f9LAxylCzWw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6680423},"main":"index.js","napi":{"name":"a3s-box","triples":{"defaults":true,"additional":["aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl"]}},"types":"index.d.ts","gitHead":"23ef8d4586c92417b3e406525d651d5afa1e81b0","scripts":{"build":"napi build --platform --release","version":"napi version","artifacts":"napi artifacts","prepublishOnly":"napi prepublish -t npm"},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"repository":{"url":"git+https://github.com/A3S-Lab/Box.git","type":"git","directory":"sdk/node"},"_npmVersion":"10.8.2","description":"Node.js bindings for A3S Box MicroVM sandbox runtime","directories":{},"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"@napi-rs/cli":"^2.18.0"},"optionalDependencies":{"@a3s-lab/box-darwin-arm64":"0.6.0","@a3s-lab/box-linux-x64-gnu":"0.6.0","@a3s-lab/box-linux-x64-musl":"0.6.0","@a3s-lab/box-linux-arm64-gnu":"0.6.0","@a3s-lab/box-linux-arm64-musl":"0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/box_0.6.0_1771676586139_0.2975067282912107","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@a3s-lab/box","version":"0.7.0","license":"MIT","_id":"@a3s-lab/box@0.7.0","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"homepage":"https://github.com/A3S-Lab/Box#readme","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"dist":{"shasum":"d3934a088004a0d00618ca909203fb6cc3637e2b","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-0.7.0.tgz","fileCount":4,"integrity":"sha512-EDFX9Oy/uqoAr4alAUOKBJtO7uUDrELSGrouNV9Q+gLuDvXcSpLZep90nWhGjgwhjbzs0Thyrryp8W2FeGMbqQ==","signatures":[{"sig":"MEYCIQD8hZI2zVh51qdUDkQFAPulWkpkv1xIT1xglBo39zw4AwIhAJoE4EraTSgZ4yp1H8EC6Ute9Lg/9dEPR7X/rin9UcY3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6674327},"main":"index.js","napi":{"name":"a3s-box","triples":{"defaults":true,"additional":["aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl"]}},"types":"index.d.ts","gitHead":"56887818ab8c73c18106ec4789f919dde7fecf49","scripts":{"build":"napi build --platform --release","version":"napi version","artifacts":"napi artifacts","prepublishOnly":"napi prepublish -t npm"},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"repository":{"url":"git+https://github.com/A3S-Lab/Box.git","type":"git","directory":"sdk/node"},"_npmVersion":"10.8.2","description":"Node.js bindings for A3S Box MicroVM sandbox runtime","directories":{},"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"@napi-rs/cli":"^2.18.0"},"optionalDependencies":{"@a3s-lab/box-darwin-arm64":"0.7.0","@a3s-lab/box-linux-x64-gnu":"0.7.0","@a3s-lab/box-linux-x64-musl":"0.7.0","@a3s-lab/box-linux-arm64-gnu":"0.7.0","@a3s-lab/box-linux-arm64-musl":"0.7.0"},"_npmOperationalInternal":{"tmp":"tmp/box_0.7.0_1772159674958_0.5539881404105109","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@a3s-lab/box","version":"2.0.0","license":"MIT","_id":"@a3s-lab/box@2.0.0","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"homepage":"https://github.com/A3S-Lab/Box#readme","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"dist":{"shasum":"2456a30ef079fc4ba07af7ed6111ba799dcb36d7","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-2.0.0.tgz","fileCount":4,"integrity":"sha512-ecVr+uFe/ONUwcuMl587A4ni7MxaQYnG/dePA55t7SOC5lFhThBIz8Gr6fKDRZYD1UAIwm8NIxO0rjLzote0xw==","signatures":[{"sig":"MEUCIEHr8n5REzGnVm6E3UI53GjzYLKyjKhmQErt9M0R1UqsAiEA5cD1R2hrM/hg908ls/yKAY5pb4iWgShDhsSXDA0UoOw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6684439},"main":"index.js","napi":{"name":"a3s-box","triples":{"defaults":true,"additional":["aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl"]}},"types":"index.d.ts","gitHead":"6a23f30355c8919a344f01543b7d05db4b41eceb","scripts":{"build":"napi build --platform --release","version":"napi version","artifacts":"napi artifacts","prepublishOnly":"napi prepublish -t npm"},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"repository":{"url":"git+https://github.com/A3S-Lab/Box.git","type":"git","directory":"sdk/node"},"_npmVersion":"10.8.2","description":"Node.js bindings for A3S Box MicroVM sandbox runtime","directories":{},"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"@napi-rs/cli":"^2.18.0"},"optionalDependencies":{"@a3s-lab/box-darwin-arm64":"0.7.0","@a3s-lab/box-linux-x64-gnu":"0.7.0","@a3s-lab/box-linux-x64-musl":"0.7.0","@a3s-lab/box-linux-arm64-gnu":"0.7.0","@a3s-lab/box-linux-arm64-musl":"0.7.0"},"_npmOperationalInternal":{"tmp":"tmp/box_2.0.0_1775789054697_0.23570727700508542","host":"s3://npm-registry-packages-npm-production"}},"3.1.0":{"name":"@a3s-lab/box","version":"3.1.0","license":"Apache-2.0","_id":"@a3s-lab/box@3.1.0","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"homepage":"https://github.com/A3S-Lab/Box#readme","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"dist":{"shasum":"ff863660177a0d1bc757ef6c528df5f070c8554d","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-3.1.0.tgz","fileCount":26,"integrity":"sha512-ogx1fWu8Pnh+DMI0BpSssRK1pbupe0/57F5KnKAA+zBtPQnBnAH/IxPfYW8BsXRxgErfEOkgMvMsyGbCtSVr0Q==","signatures":[{"sig":"MEUCIQDwGJkHxY6yyIUs1khtOjQOYefX5zL/PusQ3PDQuPSHBgIgEZWE8vUDGOhZekGQn5jgpil7KSe+5LkLe4KBADx9upA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105631},"main":"./dist/index.js","type":"module","_from":"file:publish/npm/a3s-lab-box-3.1.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./code-interpreter":{"types":"./dist/code-interpreter.d.ts","import":"./dist/code-interpreter.js"}},"scripts":{"test":"tsc -p tsconfig.tests.json && node tests/exports.mjs","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"_resolved":"/home/runner/work/Box/Box/publish/npm/a3s-lab-box-3.1.0.tgz","_integrity":"sha512-ogx1fWu8Pnh+DMI0BpSssRK1pbupe0/57F5KnKAA+zBtPQnBnAH/IxPfYW8BsXRxgErfEOkgMvMsyGbCtSVr0Q==","repository":{"url":"git+https://github.com/A3S-Lab/Box.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.16.0","description":"Local-first TypeScript SDK for A3S Box with E2B-like APIs","directories":{},"sideEffects":false,"_nodeVersion":"24.18.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3","@types/node":"20.19.9"},"_npmOperationalInternal":{"tmp":"tmp/box_3.1.0_1784823332785_0.9683121359116409","host":"s3://npm-registry-packages-npm-production"}},"3.2.2":{"name":"@a3s-lab/box","version":"3.2.2","license":"Apache-2.0","_id":"@a3s-lab/box@3.2.2","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"homepage":"https://github.com/A3S-Lab/Box#readme","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"dist":{"shasum":"1802f49f49871d8d49156b12b864bc2735269e23","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-3.2.2.tgz","fileCount":23,"integrity":"sha512-8CLcq0LHul1cBJvn0X2ttQPA1Pka0UbZgEHmqsyQeO99nYzuRJfQ3JN27uGT/tWJeDj796EHoje6UJqTBZWLYA==","signatures":[{"sig":"MEUCIQD3mHmI1GNONLd5KTtuPRVdeiEbvynY4Zb1zyziwtrH6wIgWWaEEuHuYn5VkIRzj6uGIM9JJPSer8mHF2tz3G1ZnoM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":135748},"main":"./dist/index.js","type":"module","_from":"file:publish/npm/a3s-lab-box-3.2.2.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./code-interpreter":{"types":"./dist/code-interpreter.d.ts","import":"./dist/code-interpreter.js"}},"scripts":{"test":"tsc -p tsconfig.tests.json && node tests/exports.mjs","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"_resolved":"/home/runner/work/Box/Box/publish/npm/a3s-lab-box-3.2.2.tgz","_integrity":"sha512-8CLcq0LHul1cBJvn0X2ttQPA1Pka0UbZgEHmqsyQeO99nYzuRJfQ3JN27uGT/tWJeDj796EHoje6UJqTBZWLYA==","repository":{"url":"git+https://github.com/A3S-Lab/Box.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.17.0","description":"Local-first TypeScript SDK for the native A3S Box Sandbox API","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3","@types/node":"20.19.9"},"_npmOperationalInternal":{"tmp":"tmp/box_3.2.2_1788316323831_0.9988410640950593","host":"s3://npm-registry-packages-npm-production"}},"3.2.3":{"name":"@a3s-lab/box","version":"3.2.3","license":"Apache-2.0","_id":"@a3s-lab/box@3.2.3","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"homepage":"https://github.com/A3S-Lab/Box#readme","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"dist":{"shasum":"a05e5b2982d7c3483d63f3f7ae8feda8673ca8ff","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-3.2.3.tgz","fileCount":23,"integrity":"sha512-LUjhJhvdHq9bmbsoZGHG3Vzzdg220DniYo5Yn3l40gm/anvf+P3cWXPbLHAvehhg9H/puQ864t+bGAxvmhgiXQ==","signatures":[{"sig":"MEYCIQDHCwbgaBoH+i88dCVB8O+7TkA/HrvbrYwodK0RjwzReQIhAJw+XNmPnULBs46Mfh78CumBrTHJ+EKShSihxlv6u0I7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":135748},"main":"./dist/index.js","type":"module","_from":"file:publish/npm/a3s-lab-box-3.2.3.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./code-interpreter":{"types":"./dist/code-interpreter.d.ts","import":"./dist/code-interpreter.js"}},"scripts":{"test":"tsc -p tsconfig.tests.json && node tests/exports.mjs","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"_resolved":"/home/runner/work/Box/Box/publish/npm/a3s-lab-box-3.2.3.tgz","_integrity":"sha512-LUjhJhvdHq9bmbsoZGHG3Vzzdg220DniYo5Yn3l40gm/anvf+P3cWXPbLHAvehhg9H/puQ864t+bGAxvmhgiXQ==","repository":{"url":"git+https://github.com/A3S-Lab/Box.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.17.0","description":"Local-first TypeScript SDK for the native A3S Box Sandbox API","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3","@types/node":"20.19.9"},"_npmOperationalInternal":{"tmp":"tmp/box_3.2.3_1788331967662_0.6920652688745965","host":"s3://npm-registry-packages-npm-production"}},"3.2.4":{"name":"@a3s-lab/box","version":"3.2.4","license":"Apache-2.0","_id":"@a3s-lab/box@3.2.4","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"homepage":"https://github.com/A3S-Lab/Box#readme","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"dist":{"shasum":"882de34f0f05ba2de6ae87ebd6c48f3535108417","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-3.2.4.tgz","fileCount":23,"integrity":"sha512-DNjcWPOLUUtShazfUddLxuL94ctpVSCBK8nca7Z8FPAmwpjePY0YiatA123C86ApzTogVXvHtmnLXwbH/OYtHg==","signatures":[{"sig":"MEYCIQCQVpfG/N0ZqTq9MweOtfy7ZSBN9427Ag6nIPzJpDM81wIhAL4ujuD2OG/pDhfuJ658lfH86bRtOvP9y6dz2df4wjXl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":135748},"main":"./dist/index.js","type":"module","_from":"file:publish/npm/a3s-lab-box-3.2.4.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./code-interpreter":{"types":"./dist/code-interpreter.d.ts","import":"./dist/code-interpreter.js"}},"scripts":{"test":"tsc -p tsconfig.tests.json && node tests/exports.mjs","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"_resolved":"/home/runner/work/Box/Box/publish/npm/a3s-lab-box-3.2.4.tgz","_integrity":"sha512-DNjcWPOLUUtShazfUddLxuL94ctpVSCBK8nca7Z8FPAmwpjePY0YiatA123C86ApzTogVXvHtmnLXwbH/OYtHg==","repository":{"url":"git+https://github.com/A3S-Lab/Box.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.19.0","description":"Local-first TypeScript SDK for the native A3S Box Sandbox API","directories":{},"sideEffects":false,"_nodeVersion":"24.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3","@types/node":"20.19.9"},"_npmOperationalInternal":{"tmp":"tmp/box_3.2.4_1788613767115_0.5598836022785447","host":"s3://npm-registry-packages-npm-production"}},"3.2.5":{"name":"@a3s-lab/box","version":"3.2.5","license":"Apache-2.0","_id":"@a3s-lab/box@3.2.5","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"homepage":"https://github.com/A3S-Lab/Box#readme","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"dist":{"shasum":"a834cb3597227bdcc65b29e0566164a240aef83c","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-3.2.5.tgz","fileCount":23,"integrity":"sha512-KA3vzIIuKc6XoUpTkTDmOEA6ZJgJQTONbe6zu7qW78aJrUAXpunp5UYQA94fLmz+Yb7jOwCS/KgU61YIx3KSxg==","signatures":[{"sig":"MEUCIGh4Cbujkg+++9zNFr+u1r8kDE74eoycJnfhXfModFrkAiEAr4gTA4R1HHkBvL6F61PW3GT12YalDtQNAgA/xi+7A+A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":135748},"main":"./dist/index.js","type":"module","_from":"file:publish/npm/a3s-lab-box-3.2.5.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./code-interpreter":{"types":"./dist/code-interpreter.d.ts","import":"./dist/code-interpreter.js"}},"scripts":{"test":"tsc -p tsconfig.tests.json && node tests/exports.mjs","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"_resolved":"/home/runner/work/Box/Box/publish/npm/a3s-lab-box-3.2.5.tgz","_integrity":"sha512-KA3vzIIuKc6XoUpTkTDmOEA6ZJgJQTONbe6zu7qW78aJrUAXpunp5UYQA94fLmz+Yb7jOwCS/KgU61YIx3KSxg==","repository":{"url":"git+https://github.com/A3S-Lab/Box.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.19.0","description":"Local-first TypeScript SDK for the native A3S Box Sandbox API","directories":{},"sideEffects":false,"_nodeVersion":"24.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3","@types/node":"20.19.9"},"_npmOperationalInternal":{"tmp":"tmp/box_3.2.5_1788687085615_0.3709941882737706","host":"s3://npm-registry-packages-npm-production"}},"3.2.6":{"name":"@a3s-lab/box","version":"3.2.6","description":"Local-first TypeScript SDK for the native A3S Box Sandbox API","type":"module","sideEffects":false,"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/A3S-Lab/Box.git","directory":"sdk/typescript"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./code-interpreter":{"types":"./dist/code-interpreter.d.ts","import":"./dist/code-interpreter.js"}},"scripts":{"build":"tsc -p tsconfig.json","test":"tsc -p tsconfig.tests.json && node tests/exports.mjs"},"dependencies":{},"devDependencies":{"@types/node":"20.19.9","typescript":"5.9.3"},"engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@a3s-lab/box@3.2.6","bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"homepage":"https://github.com/A3S-Lab/Box#readme","_integrity":"sha512-zraNrmR+QPu7KU2HdKE/D05v6yK12OPybp3KSqWUKp90I5ykV2JuQg4LWDDhogNL+1uYX8zJYdrzIQ1iNcPgmw==","_resolved":"/home/runner/work/Box/Box/publish/npm/a3s-lab-box-3.2.6.tgz","_from":"file:publish/npm/a3s-lab-box-3.2.6.tgz","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-zraNrmR+QPu7KU2HdKE/D05v6yK12OPybp3KSqWUKp90I5ykV2JuQg4LWDDhogNL+1uYX8zJYdrzIQ1iNcPgmw==","shasum":"cc6137f0ac2fa928538a66e51688b608c3e4e59c","tarball":"https://registry.npmjs.org/@a3s-lab/box/-/box-3.2.6.tgz","fileCount":23,"unpackedSize":137518,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIF0fiPNrazPuLVEvMCF3RC/982SxB+XFz9lbyJFBhdYmAiEAvUbB3dUDGYF8XcGjp7KlwdQKES1yRXv5RuHgDee30Rk="}]},"_npmUser":{"name":"linzhixiao","email":"18770221825@163.com"},"directories":{},"maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/box_3.2.6_1789232537486_0.12032666942679171"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-16T16:35:16.313Z","modified":"2026-09-12T17:02:17.793Z","0.3.0":"2026-02-16T16:35:16.675Z","0.5.0":"2026-02-18T13:48:44.408Z","0.5.1":"2026-02-18T17:18:26.655Z","0.5.2":"2026-02-18T18:48:06.801Z","0.5.3":"2026-02-20T15:03:59.528Z","0.6.0":"2026-02-21T12:23:06.429Z","0.7.0":"2026-02-27T02:34:35.285Z","2.0.0":"2026-04-10T02:44:14.955Z","3.1.0":"2026-07-23T16:15:32.931Z","3.2.2":"2026-09-02T02:32:03.976Z","3.2.3":"2026-09-02T06:52:47.811Z","3.2.4":"2026-09-05T13:09:27.257Z","3.2.5":"2026-09-06T09:31:25.731Z","3.2.6":"2026-09-12T17:02:17.618Z"},"bugs":{"url":"https://github.com/A3S-Lab/Box/issues"},"license":"Apache-2.0","homepage":"https://github.com/A3S-Lab/Box#readme","repository":{"type":"git","url":"git+https://github.com/A3S-Lab/Box.git","directory":"sdk/typescript"},"description":"Local-first TypeScript SDK for the native A3S Box Sandbox API","maintainers":[{"name":"linzhixiao","email":"18770221825@163.com"}],"readme":"# A3S Box TypeScript SDK\n\n`@a3s-lab/box` is a local-first TypeScript SDK with native `Sandbox`,\n`commands`, and `files` APIs. It controls the A3S Box runtime installed on the\nsame machine.\n\n## Local use\n\nInstall the A3S Box runtime and the TypeScript package:\n\n```bash\nbrew install a3s-lab/tap/a3s-box\nnpm install @a3s-lab/box\n```\n\nNo endpoint or API key is required:\n\n```typescript\nimport { Sandbox } from '@a3s-lab/box'\n\nconst sandbox = await Sandbox.create('python:3.12-alpine')\n\ntry {\n  const result = await sandbox.commands.run(\n    'python -c \"print(6 * 7)\"'\n  )\n  console.log(result.stdout)\n\n  await sandbox.files.write('/workspace/note.txt', 'hello')\n  console.log(await sandbox.files.read('/workspace/note.txt'))\n} finally {\n  await sandbox.kill()\n}\n```\n\nExport one bounded build or test artifact, optionally writing it to an exact\nhost destination:\n\n```typescript\nconst artifactSandbox = await Sandbox.create('alpine:3.20')\ntry {\n  const artifact = await artifactSandbox.files.export('/workspace/report.json', {\n    maxBytes: 8 * 1024 * 1024,\n    destination: 'artifacts/report.json',\n  })\n  console.log(artifact.size, artifact.sha256)\n} finally {\n  await artifactSandbox.kill()\n}\n```\n\nArtifact export has a hard 8 MiB ceiling. It checks the file type and size\nbefore reading, rejects declared-size mismatches or stat/read size changes, and returns the bytes\nwith a lowercase SHA-256 digest. A destination is created exclusively; an\nexisting host file is never overwritten.\n\n`Sandbox.create()` defaults to `alpine:3.20` and MicroVM isolation. The first\nargument is an OCI image reference in local mode. Select the shared-kernel\nSandbox backend explicitly on a certified Linux host:\n\n```typescript\nconst sandbox = await Sandbox.create('python:3.12-alpine', {\n  isolation: 'sandbox',\n  cpus: 2,\n  memoryMb: 1024,\n})\n```\n\nBy default, creation replaces the image command with a long-running keepalive\nprocess. Set `command` and `entrypoint` to configure the initial OCI process,\nincluding on Windows/WHPX where post-boot command execution is unavailable:\n\n```typescript\nconst sandbox = await Sandbox.create('alpine:3.20', {\n  entrypoint: ['/bin/sh', '-c'],\n  command: ['echo ready; exec httpd -f -p 8080'],\n})\n```\n\n## Lifecycle and inspection\n\nLocal Sandbox lifecycle calls are generation-fenced. `stop()` preserves the\ndurable Sandbox, `restart()` advances its generation under a caller-supplied\nidempotency identity, `remove()` deletes a terminal Sandbox, and `kill()`\nperforms stop plus removal. Reuse the same `operationId` when retrying a\nrestart whose outcome is not yet known.\n\n```typescript\nimport { A3SBoxClient, Sandbox } from '@a3s-lab/box'\n\nconst client = new A3SBoxClient()\nconst sandbox = await Sandbox.create('alpine:3.20')\n\ntry {\n  const logs = await sandbox.logs({ tail: 100 })\n  const stats = await sandbox.stats()\n  console.log(logs.length, stats?.memoryPercent)\n\n  const processes = await sandbox.processes()\n  const runtimeStats = await sandbox.runtimeStats()\n  const events = await sandbox.events({\n    afterSequence: 0,\n    limit: 256,\n    waitTimeoutMs: 1_000,\n  })\n  const eventStream = sandbox\n    .streamEvents({ afterSequence: events.nextSequence })\n    [Symbol.asyncIterator]()\n  console.log(processes.processes.length, runtimeStats.memory.usageBytes)\n  console.log(events.nextSequence)\n  await sandbox.updateResources(\n    { cpuShares: 512 },\n    { operationId: 'ci-resources-1' }\n  )\n  console.log((await eventStream.next()).value?.kind)\n  await eventStream.return()\n\n  await sandbox.stop()\n  await sandbox.restart({\n    operationId: 'ci-restart-1',\n    stopTimeoutSeconds: 10,\n  })\n  console.log(await client.getSandbox(sandbox.id))\n} finally {\n  await sandbox.kill()\n}\n```\n\nLog snapshots contain structured stream, message, and timestamp values, and\naccept tails from 1 through 10,000 entries. The runtime client also exposes\n`listSandboxes()`, `getSandbox()`, `runtimeDiagnostics()`,\n`runtimeDiskUsage()`, `listFilesystemSnapshots()`, and\n`getFilesystemSnapshot()`.\n\n`processes()`, `runtimeStats()`, `events()`, and `streamEvents()` accept a\nrunning or paused Sandbox and preserve its exact generation;\n`updateResources()` requires a running Sandbox. Event polls and stream batches\ndefault to 256 items and accept at most 4,096. `streamEvents()` is an\n`AsyncIterable`; pass an `AbortSignal` to cancel an active local bridge process.\nStreams terminate on generation drift instead of following a restart. Reuse an\nexplicit resource-update `operationId` when retrying an outcome that is not yet\nknown. Unix-nanosecond timestamps are `bigint` values; bridge protocol version\n4 transports them as canonical decimal strings so JavaScript never rounds the\nwire value through `number`.\n\n## Builder-style programmable CI/CD\n\nThe direct `Sandbox` API remains available for execution. For build and CI\ntooling, `A3SBoxClient` adds fluent builders over the same local runtime and\nbridge:\n\n```typescript\nimport { A3SBoxClient } from '@a3s-lab/box'\n\nconst client = new A3SBoxClient()\n\nconst image = await client\n  .image('./ci')\n  .dockerfile('Dockerfile')\n  .tag('local/ci-base:latest')\n  .buildArg('NODE_VERSION', '24')\n  .build()\nconst cache = await client\n  .volume('npm-cache')\n  .label('purpose', 'ci-cache')\n  .sizeLimit(10 * 1024 * 1024 * 1024)\n  .create()\nconst network = await client\n  .network('ci-net')\n  .subnet('10.89.40.0/24')\n  .create()\n\nconst box = await client\n  .sandbox(image.reference)\n  .cpus(4)\n  .memoryMb(4096)\n  .entrypoint('/usr/bin/env', 'sh')\n  .command('-c', 'npm test && sleep 3600')\n  .mountNamed(cache.name, '/root/.npm')\n  .network(network.name)\n  .publishTcp(8080, 8080)\n  .workdir('/workspace')\n  .start()\n\ntry {\n  const result = await box\n    .script('npm ci\\nnpm test\\n')\n    .interpreter('/bin/sh', '-se')\n    .env('CI', 'true')\n    .run()\n  if (result.exitCode !== 0) throw new Error(result.stderr)\n} finally {\n  await box.kill()\n}\n```\n\nNamed volumes and networks must be created explicitly before they are mounted\nor selected. Builder scripts are sent through standard input to the selected\ninterpreter, so their contents are not interpolated into a host shell command.\nInitial command and entrypoint argument vectors are validated before the\nruntime is invoked.\n\nNamed bridge networks and published ports are currently MicroVM-only. A\nshared-kernel Sandbox request that selects either fails before runtime\nmutation; use `.disableNetwork()` or the default TSI-compatible configuration\nfor supported Sandbox workloads.\n\nThe package invokes the versioned machine bridge built into the installed\n`a3s-box` executable. It does not parse human CLI output. Protocol v3 performs\none shared, complete capability handshake before the first normal operation,\nincluding when callers start concurrently. Typed values, standard Base64, and\nSandbox identity, generation, state, and isolation are validated fail-closed;\nmalformed responses use `bridge_protocol_error`, a missing binary uses\n`binary_not_found`, and a local bridge deadline uses `bridge_timeout`. Set\n`A3S_BOX_BINARY` only when the executable is not on `PATH`, or inject a typed\n`A3SLocalRuntime` object in application tests.\n\nHost resources use the same typed client:\n\n```typescript\nimport {\n  A3SBoxClient,\n  RegistryCredentials,\n  SignaturePolicy,\n} from '@a3s-lab/box'\n\nconst client = new A3SBoxClient()\nconst password = process.env.REGISTRY_PASSWORD\nif (!password) throw new Error('REGISTRY_PASSWORD is required')\nconst credentials = new RegistryCredentials('builder', password)\nconst image = await client.pullImage('registry.example/ci/base:latest', {\n  credentials,\n  signaturePolicy: SignaturePolicy.cosignKey('/keys/cosign.pub'),\n})\nconst metadata = await client.inspectImage(image.reference)\nconst history = await client.imageHistory(image.reference)\nconst tagged = await client.tagImage(image.reference, 'local/ci-base:tested')\nawait client.pushImage(\n  tagged.reference,\n  'registry.example/ci/base:tested',\n  { credentials }\n)\nawait client.pruneVolumes()\nawait client.pruneNetworks()\n```\n\n`client.capabilities()` returns bridge protocol version 4 and the exact 52\nsupported operation names. Registry passwords are passed only to the local\nruntime process.\n","readmeFilename":"README.md"}