feat(tui): implement TuiCommandRouter with colon-notation parsing for all 70+ slash commands #5047

Open
opened 2026-04-09 00:50:45 +00:00 by HAL9000 · 1 comment
Owner

Metadata

  • Commit Message: feat(tui): implement TuiCommandRouter with colon-notation parsing for all 70+ slash commands
  • Branch: feat/m8/tui-command-router
  • Milestone: v3.7.0
  • Parent Epic: #4966

Background and Context

The TUI slash command system currently only handles 3 command groups; the remaining 67+ return "Unknown command". The router also uses space-split tokenization instead of the spec-required colon-notation (e.g., session:create not /session create).

Expected Behavior

  • TuiCommandRouter.route(command_string) parses colon-notation commands
  • All 70+ catalog commands are routed to their handlers
  • Command groups: plan, actor, skill, action, resource, project, session, context, invariant, etc.
  • session:export only supports JSON format (not md/txt)
  • Unknown commands return proper error messages

Acceptance Criteria

  • TuiCommandRouter class implemented with colon-notation parser
  • All 70+ catalog commands registered and routed
  • Colon-notation parsing works (e.g., plan:use, actor:add, session:create)
  • session:export only supports JSON format
  • Unknown commands return proper error message
  • Unit tests (Behave) cover routing for each command group
  • Integration test (Robot) verifies end-to-end command routing

Subtasks

  • Implement TuiCommandRouter with colon-notation parser
  • Register all plan command handlers (plan:use, plan:execute, plan:status, etc.)
  • Register all actor command handlers (actor:add, actor:list, etc.)
  • Register all skill/action/resource command handlers
  • Register all session/context/invariant command handlers
  • Fix session:export to JSON-only
  • Implement unknown command error handling
  • Tests (Behave): Add scenarios for each command group
  • Tests (Robot): Add integration test
  • Verify coverage >=97% via nox -s coverage_report
  • Run nox (all default sessions), fix any errors

Definition of Done

This issue is complete when:

  • All subtasks above are completed and checked off.
  • A Git commit is created where the first line of the commit message matches the Commit Message in Metadata exactly.
  • The commit is pushed to the remote on the branch matching the Branch in Metadata exactly.
  • The commit is submitted as a pull request to master, reviewed, and merged before this issue is marked done.

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planner

## Metadata - **Commit Message**: `feat(tui): implement TuiCommandRouter with colon-notation parsing for all 70+ slash commands` - **Branch**: `feat/m8/tui-command-router` - **Milestone**: v3.7.0 - **Parent Epic**: #4966 ## Background and Context The TUI slash command system currently only handles 3 command groups; the remaining 67+ return "Unknown command". The router also uses space-split tokenization instead of the spec-required colon-notation (e.g., `session:create` not `/session create`). ## Expected Behavior - `TuiCommandRouter.route(command_string)` parses colon-notation commands - All 70+ catalog commands are routed to their handlers - Command groups: plan, actor, skill, action, resource, project, session, context, invariant, etc. - `session:export` only supports JSON format (not md/txt) - Unknown commands return proper error messages ## Acceptance Criteria - [ ] `TuiCommandRouter` class implemented with colon-notation parser - [ ] All 70+ catalog commands registered and routed - [ ] Colon-notation parsing works (e.g., `plan:use`, `actor:add`, `session:create`) - [ ] `session:export` only supports JSON format - [ ] Unknown commands return proper error message - [ ] Unit tests (Behave) cover routing for each command group - [ ] Integration test (Robot) verifies end-to-end command routing ## Subtasks - [ ] Implement `TuiCommandRouter` with colon-notation parser - [ ] Register all plan command handlers (plan:use, plan:execute, plan:status, etc.) - [ ] Register all actor command handlers (actor:add, actor:list, etc.) - [ ] Register all skill/action/resource command handlers - [ ] Register all session/context/invariant command handlers - [ ] Fix `session:export` to JSON-only - [ ] Implement unknown command error handling - [ ] Tests (Behave): Add scenarios for each command group - [ ] Tests (Robot): Add integration test - [ ] Verify coverage >=97% via `nox -s coverage_report` - [ ] Run `nox` (all default sessions), fix any errors ## Definition of Done This issue is complete when: - All subtasks above are completed and checked off. - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly. - The commit is pushed to the remote on the branch matching the **Branch** in Metadata exactly. - The commit is submitted as a **pull request** to `master`, reviewed, and **merged** before this issue is marked done. --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planner
HAL9000 added this to the v3.7.0 milestone 2026-04-09 00:51:05 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: High — Core TUI feature required for the TUI Legendary
  • Milestone: v3.7.0
  • Story Points: 8 — XL
  • MoSCoW: Must Have — Required for TUI Legendary completion
  • Parent Epic: #4963 or #4966 (TUI Epics)

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner

Issue triaged by project owner: - **State**: Verified - **Priority**: High — Core TUI feature required for the TUI Legendary - **Milestone**: v3.7.0 - **Story Points**: 8 — XL - **MoSCoW**: Must Have — Required for TUI Legendary completion - **Parent Epic**: #4963 or #4966 (TUI Epics) --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner
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.

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