fix(subprocess): keep native runner private

This commit is contained in:
pku-xht
2026-08-26 14:10:08 +08:00
parent 678cfdfdb4
commit cf6f25d283
10 changed files with 25 additions and 31 deletions
+5 -1
View File
@@ -25,7 +25,11 @@ function readVersion(): string {
if (process.argv[2] === PACKAGED_RUNNER_ARG) {
process.argv.splice(2, 1)
await import('@deepseek-ai/dsh-subprocess-local/spawn-runner')
const runnerEntry = new URL(
'./lib/spawn-runner.js',
import.meta.resolve('@deepseek-ai/dsh-subprocess-local/package.json'),
)
await import(runnerEntry.href)
} else {
const invocation = parseDshArgs(process.argv.slice(2), readVersion())