Download python/sdk-runtime/runtime-bootstrap.mjs from SaylorTwift/deepseek-harness: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/SaylorTwift/deepseek-harness/resolve/main/python/sdk-runtime/runtime-bootstrap.mjs
- Command line
-
hf download hf://SaylorTwift/deepseek-harness/python/sdk-runtime/runtime-bootstrap.mjs
-
curl -L -o runtime-bootstrap.mjs https://huggingface.co/SaylorTwift/deepseek-harness/resolve/main/python/sdk-runtime/runtime-bootstrap.mjs
1.03 kB
| /** 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 (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_PTC_RUNTIME_NODE === '1') { | |
| Reflect.deleteProperty(process.env, 'DSH_PTC_RUNTIME_NODE') | |
| await import('@deepseek-ai/dsh-ptc-runtime-node/process') | |
| } else 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) | |
| } | |