|
@@ -5,6 +5,7 @@ import { basename, join } from 'node:path'
|
|
|
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
|
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
|
|
import { Context } from 'cordis'
|
|
import { Context } from 'cordis'
|
|
|
import { SandboxBashExecutor } from '@deepseek-ai/dsh-bash-sandbox'
|
|
import { SandboxBashExecutor } from '@deepseek-ai/dsh-bash-sandbox'
|
|
|
|
|
+import LocalProcessManager from '@deepseek-ai/dsh-process-local'
|
|
|
import * as FsPolicy from '@deepseek-ai/dsh-fs-policy'
|
|
import * as FsPolicy from '@deepseek-ai/dsh-fs-policy'
|
|
|
import SandboxedFileSystem from '@deepseek-ai/dsh-fs-sandbox'
|
|
import SandboxedFileSystem from '@deepseek-ai/dsh-fs-sandbox'
|
|
|
import { CallId } from '@deepseek-ai/dsh-llm'
|
|
import { CallId } from '@deepseek-ai/dsh-llm'
|
|
@@ -52,6 +53,7 @@ beforeEach(async () => {
|
|
|
ctx = new Context()
|
|
ctx = new Context()
|
|
|
await ctx.plugin(LocalSandboxProvider, {})
|
|
await ctx.plugin(LocalSandboxProvider, {})
|
|
|
await ctx.plugin(SandboxPolicyService, { mode: 'workspace-write', workspaceRoot: fallbackRoot })
|
|
await ctx.plugin(SandboxPolicyService, { mode: 'workspace-write', workspaceRoot: fallbackRoot })
|
|
|
|
|
+ await ctx.plugin(LocalProcessManager)
|
|
|
await ctx.plugin(SandboxBashExecutor, { cwd: fallbackRoot, timeoutMs: 30_000 })
|
|
await ctx.plugin(SandboxBashExecutor, { cwd: fallbackRoot, timeoutMs: 30_000 })
|
|
|
await ctx.plugin(SandboxedFileSystem, { cwd: fallbackRoot })
|
|
await ctx.plugin(SandboxedFileSystem, { cwd: fallbackRoot })
|
|
|
await ctx.plugin(agentSpine, {
|
|
await ctx.plugin(agentSpine, {
|