-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Summary
Replace raw chalk + figures string concatenation in src/cli/format.js with the @flyingrobots/bijou component library for structured, themed terminal output.
Motivation
The current CLI formatting is functional but plain — hand-rolled string concatenation producing flat text output. The bijou package family provides boxes, tables, badges, alerts, progress bars, theming, and automatic graceful degradation (interactive → static → pipe → accessible).
Scope
| File | Action | Purpose |
|---|---|---|
src/cli/ui.js |
CREATE | Bijou context init + custom theme + styled helpers |
src/cli/format.js |
REWRITE | Replace chalk/figures with bijou components |
bin/git-mind.js |
EDIT | Call initUI() at startup |
test/format.test.js |
CREATE | Unit tests for rewritten format functions |
What stays the same
- All
--jsonoutput (schema-validated contracts, untouched) - All domain logic (
src/*.js— zero changes) - All existing tests pass
- Pipe mode works (bijou auto-detects and strips ANSI)
NO_COLORrespected (bijou handles natively)
Components used
alert()for success/error/info/warning messagesheaderBox()for section headerstable()for count/diff tablesprogressBar()for progress viewbadge()for status indicators and tagsstyled()+ custom theme for consistent color tokensseparator()for dividers
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels