refactor(ui): update menu, selector for TTY detection; thin dispatcher

- Update menu.ts and selector.ts to use isStdinTTY() and function-based
  terminal colors
- Refactor index.ts from 995-line monolith to ~270-line dispatcher that
  registers all commands via the CLI parser and delegates to modules
- Add initTTY() call at startup for correct pipe/TTY detection
- Interactive menu expanded to include new commands (explain, review,
  changelog, suggest, amend)
This commit is contained in:
2026-06-16 02:01:05 +08:00
parent 8b2babfa5d
commit 4b384a7581
4 changed files with 299 additions and 1075 deletions
+240 -961
View File
File diff suppressed because it is too large Load Diff