refactor: clean up main entry point

- Use shared terminal helpers (hideCursor, showCursor, clearLine,
  clearScreen, visibleLength, padRight) from terminal.ts
- Simplify allCommandDefs dedup with new Set()
- Centralize terminal state restore into exitMenu() closure + finally

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-06-18 01:57:01 +08:00
parent f3b5c631de
commit 311d059e52
2 changed files with 22 additions and 44 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "gai",
"version": "0.1.3",
"version": "0.1.4",
"description": "AI-powered git helper — commit messages, PRs, code review, changelogs, and more",
"module": "index.ts",
"type": "module",