fix(subprocess): move SEA bootstrap to runtime packaging

This commit is contained in:
pku-xht
2026-09-03 19:59:26 +08:00
parent c8393a2798
commit e5dbccce8c
22 changed files with 127 additions and 66 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env node
/** Private entry owned by the Python single-file runtime packaging. */
const selectorName = 'DSH_SUBPROCESS_RUNNER'
const selection = process.env[selectorName]
if (selection === undefined) {
const { runCli } = await import('@deepseek-ai/dsh/lib/bin.js')
await runCli()
} else {
Reflect.deleteProperty(process.env, selectorName)
const { runSelectedSubprocessRunner } = await import('@deepseek-ai/dsh-subprocess-local/runner')
await runSelectedSubprocessRunner(selection)
}