Download packages/coding-agent/src/cli/experimental/cli.ts from SaylorTwift/pi: direct link, hf CLI and curl.
- Browser
- Download file 624 Bytes
-
https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/src/cli/experimental/cli.ts
- Command line
-
hf download hf://SaylorTwift/pi/packages/coding-agent/src/cli/experimental/cli.ts
-
curl -L -o cli.ts https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/src/cli/experimental/cli.ts
624 Bytes
| import { Command } from "./command.ts"; | |
| import { type ClientCommandContext, clientCommand } from "./commands/client.ts"; | |
| import { type ServerCommandContext, serverCommand } from "./commands/server.ts"; | |
| interface ExperimentalCommandGroup { | |
| readonly command: "experimental"; | |
| } | |
| export type CliContext = ServerCommandContext & ClientCommandContext; | |
| const experimentalCommand = new Command<ExperimentalCommandGroup, CliContext>("experimental").build(() => ({ | |
| ok: false, | |
| errors: ["Expected experimental command: server or client"], | |
| })); | |
| export const cli = experimentalCommand.command(serverCommand).command(clientCommand); | |