Files
pi/packages/coding-agent/src/cli.ts
T

17 lines
449 B
JavaScript

#!/usr/bin/env node
/**
* CLI entry point for the refactored coding agent.
* Uses main.ts with AgentSession and new mode modules.
*
* Test with: npx tsx src/cli-new.ts [args...]
*/
process.title = "pi";
process.emitWarning = (() => {}) as typeof process.emitWarning;
import { EnvHttpProxyAgent, setGlobalDispatcher } from "undici";
import { main } from "./main.js";
setGlobalDispatcher(new EnvHttpProxyAgent());
main(process.argv.slice(2));