feat(tui): implement TuiCommandRouter base with colon-notation parsing #10157

Open
opened 2026-04-17 04:00:15 +00:00 by HAL9000 · 0 comments
Owner

Background

The TUI slash command router must parse colon-notation commands (e.g., session:create, plan:use) rather than space-split tokenization. The base router provides the parsing infrastructure and dispatch mechanism that all 70+ command handlers will use, making it the foundation for the entire slash command system.

Acceptance Criteria

  • TuiCommandRouter class implemented with colon-notation command parsing
  • Command format group:action [args] parsed correctly
  • Unknown commands return a clear error message (not silent failure)
  • Router is extensible — new command groups can be registered without modifying core
  • Test coverage >= 97%

Metadata

  • Commit Message: feat(tui): implement TuiCommandRouter base with colon-notation parsing
  • Branch: feature/v3.7.0/tui-command-router-base
  • Milestone: v3.7.0
  • Ref: #4966 EPIC: TUI Slash Command Router — 70+ Catalog Commands

Subtasks

  • Define TuiCommandRouter class with command registry
  • Implement colon-notation parser (group:action args)
  • Implement command dispatch to registered handlers
  • Implement unknown command error response
  • Write unit tests for parsing and dispatch

Definition of Done

  • Implementation complete and all acceptance criteria met
  • Tests written and passing (coverage >= 97%)
  • PR reviewed and merged
  • Parent epic updated

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor

## Background The TUI slash command router must parse colon-notation commands (e.g., `session:create`, `plan:use`) rather than space-split tokenization. The base router provides the parsing infrastructure and dispatch mechanism that all 70+ command handlers will use, making it the foundation for the entire slash command system. ## Acceptance Criteria - [ ] `TuiCommandRouter` class implemented with colon-notation command parsing - [ ] Command format `group:action [args]` parsed correctly - [ ] Unknown commands return a clear error message (not silent failure) - [ ] Router is extensible — new command groups can be registered without modifying core - [ ] Test coverage >= 97% ## Metadata - **Commit Message**: `feat(tui): implement TuiCommandRouter base with colon-notation parsing` - **Branch**: `feature/v3.7.0/tui-command-router-base` - **Milestone**: v3.7.0 - **Ref**: #4966 EPIC: TUI Slash Command Router — 70+ Catalog Commands ## Subtasks - [ ] Define `TuiCommandRouter` class with command registry - [ ] Implement colon-notation parser (`group:action args`) - [ ] Implement command dispatch to registered handlers - [ ] Implement unknown command error response - [ ] Write unit tests for parsing and dispatch ## Definition of Done - Implementation complete and all acceptance criteria met - Tests written and passing (coverage >= 97%) - PR reviewed and merged - Parent epic updated --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#10157
No description provided.