feat(cli): TUI slash command parsing + local commands (P8-009) #176

Merged
jason.woltje merged 1 commits from feat/p8-009-tui-slash-commands into main 2026-03-16 01:58:56 +00:00

1 Commits

Author SHA1 Message Date
48c9f57f69 feat(cli): TUI slash command parsing + local commands (P8-009)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
- Add parseSlashCommand() with regex-based parser for /cmd [args] format
- Add CommandRegistry with local-only commands (help, stop, cost, status, clear) and gateway manifest support
- Add short alias resolution: /n→new, /m→model, /t→thinking, /a→agent, /s→status, /h→help, /pref→preferences
- Add executeHelp() and executeStatus() local command handlers
- Extend Message.role union with 'system' for in-TUI system messages
- Handle commands:manifest socket event to update registry from gateway
- Wire InputBar to intercept /commands before sending to socket
- Render system messages as dimmed ⚙ prefix without avatar chrome
- Expose addSystemMessage() and socketRef from useSocket hook

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 20:55:10 -05:00