Files
deepseek-harness/python/sdk-runtime/runtime-bootstrap.mjs
T

15 lines
505 B
JavaScript

#!/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)
}