feat(code-runtime): execute Node programs through confined processes

This commit is contained in:
Tianyi Cui committed 2026-09-12 15:03:01 +08:00
1 parent f95f7ec8dc
commit 75ed8da3e0
54 files changed
+1933 -2277

No files matched your search

+4 -1
View File
@@ -4,7 +4,10 @@
const selectorName = 'DSH_SUBPROCESS_RUNNER'
const selection = process.env[selectorName]
if (selection === undefined) {
if (process.env.DSH_CODE_RUNTIME_NODE === '1') {
Reflect.deleteProperty(process.env, 'DSH_CODE_RUNTIME_NODE')
await import('@deepseek-ai/dsh-code-runtime-node/process')
} else if (selection === undefined) {
const { runCli } = await import('@deepseek-ai/dsh/lib/bin.js')
await runCli()
} else {