Download packages/coding-agent/src/experimental/mini/server/entry.ts from SaylorTwift/pi: direct link, hf CLI and curl.
- Browser
- Download file 511 Bytes
-
https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/src/experimental/mini/server/entry.ts
- Command line
-
hf download hf://SaylorTwift/pi/packages/coding-agent/src/experimental/mini/server/entry.ts
-
curl -L -o entry.ts https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/src/experimental/mini/server/entry.ts
511 Bytes
| /** Server process entry: `node server/entry.ts <socketPath> <sessionsRoot>`. Spawned detached by the CLI. */ | |
| import { socketTransport } from "../shared/transport.ts"; | |
| import { runServer } from "./run.ts"; | |
| const [socketPath, sessionsRoot] = process.argv.slice(2); | |
| if (!socketPath || !sessionsRoot) throw new Error("Server requires <socketPath> <sessionsRoot>"); | |
| void runServer({ transport: socketTransport(socketPath), sessionsRoot }).catch((error: unknown) => { | |
| console.error(error); | |
| process.exit(1); | |
| }); | |