mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-09-17 16:22:23 -07:00
5c2f70a37c
New package for contributors to collect, aggregate, analyze, and improve workflow prompts based on real project data. Includes unit tests (vitest), installer integration, and loop/finalize hints.
18 lines
372 B
TypeScript
18 lines
372 B
TypeScript
import { runCLI } from '../cli.js';
|
|
|
|
async function main() {
|
|
try {
|
|
await runCLI();
|
|
process.exit(0);
|
|
} catch (err) {
|
|
if (err instanceof Error && err.message.includes('User force closed')) {
|
|
// Ctrl+C — exit cleanly
|
|
process.exit(0);
|
|
}
|
|
console.error(err instanceof Error ? err.message : String(err));
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
main();
|