mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 01:03:49 +00:00
Remove old implementation files (main.ts, cli.ts, tui-renderer.ts), rename new files
This commit is contained in:
parent
1a6a1a8acf
commit
6c9a264b63
8 changed files with 206 additions and 6396 deletions
|
|
@ -1,23 +1,10 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
// Suppress punycode deprecation warning from dependencies
|
||||
// This warning comes from old dependencies still using the deprecated punycode module
|
||||
const originalEmit = process.emit;
|
||||
// @ts-expect-error - Monkey-patch emit to filter warnings
|
||||
process.emit = (event, ...args) => {
|
||||
if (event === "warning") {
|
||||
const warning = args[0] as any;
|
||||
if (warning?.name === "DeprecationWarning" && warning?.code === "DEP0040") {
|
||||
return false; // Suppress punycode deprecation
|
||||
}
|
||||
}
|
||||
// @ts-expect-error - Call original with event and args
|
||||
return originalEmit.apply(process, [event, ...args]);
|
||||
};
|
||||
|
||||
/**
|
||||
* 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...]
|
||||
*/
|
||||
import { main } from "./main.js";
|
||||
|
||||
main(process.argv.slice(2)).catch((err) => {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
});
|
||||
main(process.argv.slice(2));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue