Download packages/subprocess/subprocess-local/src/bin.ts from SaylorTwift/deepseek-harness: direct link, hf CLI and curl.
- Browser
- Download file 791 Bytes
-
https://huggingface.co/SaylorTwift/deepseek-harness/resolve/main/packages/subprocess/subprocess-local/src/bin.ts
- Command line
-
hf download hf://SaylorTwift/deepseek-harness/packages/subprocess/subprocess-local/src/bin.ts
-
curl -L -o bin.ts https://huggingface.co/SaylorTwift/deepseek-harness/resolve/main/packages/subprocess/subprocess-local/src/bin.ts
791 Bytes
| /** Thin executable/importable entry for the provider-private runner core. */ | |
| import { consumeRunnerSelection } from './runner-launch.ts' | |
| import { reportSpawnRunnerFailure, runSpawnRunner } from './spawn-runner.ts' | |
| /** | |
| * Run a selector already removed by a packaging bootstrap. | |
| * @param selection - private runner selector or Linux launch-request locator. | |
| */ | |
| export async function runSelectedSubprocessRunner(selection: string): Promise<void> { | |
| try { | |
| await runSpawnRunner(selection, process.argv.slice(2)) | |
| } catch (error) { | |
| await reportSpawnRunnerFailure(selection, error) | |
| } | |
| } | |
| if (import.meta.main) { | |
| const selection = consumeRunnerSelection() | |
| if (selection === undefined) { | |
| process.exitCode = 127 | |
| } else { | |
| void runSelectedSubprocessRunner(selection) | |
| } | |
| } | |