fix(code-runtime): support SEA startup and immediate control writes
This commit is contained in:
1 parent
98d3af0683
commit
7f5eb6db9a
19 files changed
+145
-49
No files matched your search
@@ -1,10 +1,17 @@
|
||||
#!/usr/bin/env node
|
||||
/** Private entry owned by the Python single-file runtime packaging. */
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
const selectorName = 'DSH_SUBPROCESS_RUNNER'
|
||||
const selection = process.env[selectorName]
|
||||
const aclRunner = process.platform === 'win32'
|
||||
? fileURLToPath(import.meta.resolve('@deepseek-ai/dsh-sandbox-windows-acl/runner'))
|
||||
: undefined
|
||||
|
||||
if (process.env.DSH_CODE_RUNTIME_NODE === '1') {
|
||||
if (aclRunner !== undefined && process.argv[2] === aclRunner) {
|
||||
process.argv.splice(1, 1)
|
||||
await import('@deepseek-ai/dsh-sandbox-windows-acl/runner')
|
||||
} else 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) {
|
||||
|
||||
Reference in new issue
Block a user