id: task-41.5 title: 'CLI: audit remaining UI for bblessed' status: Done assignee: Claude created_date: '2025-06-11' updated_date: '2025-06-11' labels:
- cli dependencies: [] parent_task_id: task-41
Description
Review the CLI for other prompts or text UIs and migrate them to bblessed.
Acceptance Criteria
- [x] Identify remaining prompt-based interactions
- [x] Replace them with bblessed equivalents
- [x] Ensure consistent styling across commands
Implementation Notes
Completed comprehensive audit and migration of all terminal UI elements:
Audit Results:
- Init Command: Successfully migrated all prompts (project name, reporter, agent files)
- View Commands: Added
--tuiflags to task, doc, and board view commands - Other Commands: No other interactive prompts found in the codebase
Key Findings:
- The CLI was primarily using readline for the init command prompts
- The
promptspackage was only used in the init command - All other commands use simple console output or command-line arguments
- No additional interactive elements required migration
Consistency Achieved:
- Unified TUI Module: All blessed interactions go through
src/ui/tui.ts - Consistent Fallback: All functions gracefully degrade when blessed is unavailable
- Standardized Key Bindings:
- Enter to confirm
- Escape/Ctrl+C to cancel
- Arrow keys/j/k for navigation in scrollable views
- Space for selection in multi-select
Package Changes:
- Removed
promptspackage dependency entirely - Added
blessedpackage as the single TUI dependency - Created type definitions to handle optional availability
Testing Coverage:
- All existing tests continue to pass
- The fallback mechanisms ensure tests run without blessed installed
- Both Node.js and Bun environments are fully supported