ai-devkit
ai-devkit copied to clipboard
ui(flows): consistent success headlines and file lists in init/install/setup/phase/docs
Scope
Mutating/flow commands: init, install, setup, phase, docs init-feature. They mostly use ui.* correctly, but have drift in result rendering.
Evidence
init completion:
AI DevKit project initialized successfully! ← plain ui.text, no ✔/color
Next steps:
• Review and customize templates in docs/ai/
...
• Run `ai-devkit init` again to add more environments
docs init-feature:
✔ Created 3 feature doc(s) for my-feature.
docs/ai/requirements/2026-09-22-feature-my-feature.md
docs/ai/design/2026-09-22-feature-my-feature.md
setup: ui.summary (Setup Summary) + ui.table + Host Prerequisites + Next steps sections.
Problems
init's final success line is plain text (ui.text("AI DevKit project initialized successfully!")) whilephase,docs, andskill add's headline useui.success— the biggest moment in the flow has the weakest styling. (Compounded byui.successcalls mid-flow likeCreated configuration file, so the ending is quieter than the steps.)docs init-featurefile list is unstyled: plain relative paths, no indent, no dim, no->prefix — reads as accidental output next to the ✔ line above it.- Naive pluralization:
3 feature doc(s). setupmixes three section styles (ui.summaryblock,ui.table, bold-ish plainui.textheadersHost Prerequisites/Next steps) with inconsistent indenting between them.initnext-steps bullets use•with trailing\nembedded in the lastui.textstring ("...environments\n") — manual spacing smuggled into content instead of aui.breakline().- No
--dry-run-style preview anywhere: flows print what they did, not what they will do; not required now, but result rendering should at least be consistent so a future preview can mirror it.
Expectation
- Every flow ends with a
ui.successheadline (✔ AI DevKit project initialized), steps above it dim/ℹ. - File lists as indented dim lines with a consistent prefix (
→ docs/ai/...), matching whatever per-item conventionskilladopts. - One section-header style for
setup(boldui.text+ blank line), applied to all its sections. - Shared pluralization (
3 feature docs). - No embedded
\nin message strings; spacing viaui.breakline().
Files: packages/cli/src/commands/init.ts (~L236–300), packages/cli/src/commands/docs.ts (~L67–86), packages/cli/src/commands/setup.ts (~L38–68), packages/cli/src/commands/phase.ts (~L69–70)