mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 04:14:30 +00:00
feat(agent): finalize sandbox integration with strict isolation and tests
This commit is contained in:
@@ -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,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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user