feat(agent): finalize sandbox integration with strict isolation and tests

This commit is contained in:
yiling
2026-05-20 21:49:42 +08:00
parent 9b4f68dff2
commit 1d00de51b0
4 changed files with 27 additions and 61 deletions
+3 -1
View File
@@ -66,7 +66,9 @@ describe('createSandboxedBashTool', () => {
'bash',
['-c', 'sandboxed-echo hello'],
expect.objectContaining({
env: { TEST_ENV: 'test-value' },
env: expect.objectContaining({
TEST_ENV: 'test-value',
}),
}),
)
+1 -1
View File
@@ -1,5 +1,5 @@
import { createBashTool } from '@mariozechner/pi-coding-agent'
import { SandboxManager } from '@anthropic-ai/sandbox-runtime'
import { createBashTool } from '@mariozechner/pi-coding-agent'
import { spawn } from 'node:child_process'
import type { DatabaseSessionManager } from '../database-session-manager'