mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 03:00:44 +00:00
Uses @anthropic-ai/sandbox-runtime to enforce filesystem and network restrictions on bash commands (sandbox-exec on macOS, bubblewrap on Linux). Features: - Per-project config via .pi/sandbox.json - Global config via ~/.pi/agent/sandbox.json - Enabled by default with sensible defaults - --no-sandbox flag to disable - /sandbox command to view current config
92 lines
3 KiB
JSON
92 lines
3 KiB
JSON
{
|
|
"name": "pi-extension-sandbox",
|
|
"version": "1.0.0",
|
|
"lockfileVersion": 3,
|
|
"requires": true,
|
|
"packages": {
|
|
"": {
|
|
"name": "pi-extension-sandbox",
|
|
"version": "1.0.0",
|
|
"dependencies": {
|
|
"@anthropic-ai/sandbox-runtime": "^0.0.26"
|
|
}
|
|
},
|
|
"node_modules/@anthropic-ai/sandbox-runtime": {
|
|
"version": "0.0.26",
|
|
"resolved": "https://registry.npmjs.org/@anthropic-ai/sandbox-runtime/-/sandbox-runtime-0.0.26.tgz",
|
|
"integrity": "sha512-DYV5LSsVMnzq0lbfaYMSpxZPUMAx4+hy343dRss+pVCLIfF62qOhxpYfZ5TmOk1GTDQm5f9wPprMNSStmnsV4w==",
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"@pondwader/socks5-server": "^1.0.10",
|
|
"@types/lodash-es": "^4.17.12",
|
|
"commander": "^12.1.0",
|
|
"lodash-es": "^4.17.21",
|
|
"shell-quote": "^1.8.3",
|
|
"zod": "^3.24.1"
|
|
},
|
|
"bin": {
|
|
"srt": "dist/cli.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
}
|
|
},
|
|
"node_modules/@pondwader/socks5-server": {
|
|
"version": "1.0.10",
|
|
"resolved": "https://registry.npmjs.org/@pondwader/socks5-server/-/socks5-server-1.0.10.tgz",
|
|
"integrity": "sha512-bQY06wzzR8D2+vVCUoBsr5QS2U6UgPUQRmErNwtsuI6vLcyRKkafjkr3KxbtGFf9aBBIV2mcvlsKD1UYaIV+sg==",
|
|
"license": "MIT"
|
|
},
|
|
"node_modules/@types/lodash": {
|
|
"version": "4.17.23",
|
|
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.23.tgz",
|
|
"integrity": "sha512-RDvF6wTulMPjrNdCoYRC8gNR880JNGT8uB+REUpC2Ns4pRqQJhGz90wh7rgdXDPpCczF3VGktDuFGVnz8zP7HA==",
|
|
"license": "MIT"
|
|
},
|
|
"node_modules/@types/lodash-es": {
|
|
"version": "4.17.12",
|
|
"resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.12.tgz",
|
|
"integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@types/lodash": "*"
|
|
}
|
|
},
|
|
"node_modules/commander": {
|
|
"version": "12.1.0",
|
|
"resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
|
|
"integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=18"
|
|
}
|
|
},
|
|
"node_modules/lodash-es": {
|
|
"version": "4.17.22",
|
|
"resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.22.tgz",
|
|
"integrity": "sha512-XEawp1t0gxSi9x01glktRZ5HDy0HXqrM0x5pXQM98EaI0NxO6jVM7omDOxsuEo5UIASAnm2bRp1Jt/e0a2XU8Q==",
|
|
"license": "MIT"
|
|
},
|
|
"node_modules/shell-quote": {
|
|
"version": "1.8.3",
|
|
"resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.3.tgz",
|
|
"integrity": "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">= 0.4"
|
|
},
|
|
"funding": {
|
|
"url": "https://github.com/sponsors/ljharb"
|
|
}
|
|
},
|
|
"node_modules/zod": {
|
|
"version": "3.25.76",
|
|
"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
|
|
"integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
|
|
"license": "MIT",
|
|
"funding": {
|
|
"url": "https://github.com/sponsors/colinhacks"
|
|
}
|
|
}
|
|
}
|
|
}
|