Remove old implementation files (main.ts, cli.ts, tui-renderer.ts), rename new files

This commit is contained in:
Mario Zechner 2025-12-09 01:21:28 +01:00
parent 1a6a1a8acf
commit 6c9a264b63
8 changed files with 206 additions and 6396 deletions

View file

@ -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));