ai-devkit
ai-devkit copied to clipboard
ui(status): unify status vocabulary, reconcile counts, and stop coloring by string-matching
Current output
AI DevKit Status:
Scope Status Details
─────────────────────────────────────────────────────────────────────
overall fail 13 ready · 1 not ready · 1 fail
ai-devkit ready 0.62.2 (latest 0.62.2)
project not ready /Users/.../packages/cli/.ai-devkit.json
...
Agents:
Agent Status
───────────────
claude fail
...
Checks:
Check Status Evidence
─────────────────────────────────────────────────
claude: executable ready /opt/homebrew/bin/claude
...
Problems
- Status vocabulary drifts from every other command:
ready/not ready/fail/infohere vsOK/LIMITED/EXHAUSTEDincapacityand🟢 run/🟡 waitinagent list.not readyvsfailseverity (yellow vs red) is never explained. - Unreconcilable counts:
overallsays13 ready · 1 not ready · 1 failbut the Checks table containsinforows that are excluded, so a reader cannot verify the totals against the rows they can see. - Long paths force the table to terminal width: the
projectrow prints the absolute config path, so the Details column dominates column fitting and other cells get truncated with…on narrow terminals. No~-relative shortening. - Empty Agents table edge: when no agents have an executable (
agentEntriesfilters), theAgents:header, column headers, and rule render with zero rows — an empty table instead of an explanatory line. - Fragile color coupling:
statusStylecolors by string-matching the rendered text (if (text === "ready" ...)) — the same pattern removed fromcapacityin 3c65af7; adding a status requires editing two functions. - JSON inconsistency:
renderStatusReportuses rawconsole.logfor--jsonwhile other commands useui.text.
Expectation
- Map statuses onto the shared status model (see cross-cutting issue) with fixed severities: pass → green, warn → yellow, fail → red, info → dim; keep domain labels but derive color from a key, not from the rendered string.
overallrow counts every check includinginfo(13 ready · 1 not ready · 1 fail · 6 info) so totals reconcile with the Checks table.- Shorten home-relative paths (
~/.ai-devkit.json); keep the absolute path only in--json. - When there are no agent rows, print a dim explanatory line (e.g.
No agents detected.) instead of an empty table. - Route
--jsonthroughui.textlike the rest of the CLI.
Files: packages/cli/src/commands/status/render.ts