1
0

runtime-bootstrap.mjs 505 B

1234567891011121314
  1. #!/usr/bin/env node
  2. /** Private entry owned by the Python single-file runtime packaging. */
  3. const selectorName = 'DSH_SUBPROCESS_RUNNER'
  4. const selection = process.env[selectorName]
  5. if (selection === undefined) {
  6. const { runCli } = await import('@deepseek-ai/dsh/lib/bin.js')
  7. await runCli()
  8. } else {
  9. Reflect.deleteProperty(process.env, selectorName)
  10. const { runSelectedSubprocessRunner } = await import('@deepseek-ai/dsh-subprocess-local/runner')
  11. await runSelectedSubprocessRunner(selection)
  12. }