v1.4.0
What's Changed
CLI Improvements
termui/argsintegration (createCLI) -- the CLI now usescreateCLIfromtermui/argsfor command routing,--help, and unknown-command handling; dogfooding the product instead of hand-rolled switch logic- Raw-mode TTY prompt utilities -- new
packages/cli/src/utils/clack.tswithtext,confirm,select,multiselect,spinner,tasks,group,logbacked by raw-mode keyboard input - Prettier formatting on
add-- installed components are automatically formatted with the project's Prettier config when Prettier is present; dry-run mode now shows an 8-line source preview
termui/clack Adapter
- Raw-mode TTY support --
text,confirm,select, andmultiselectnow use raw-mode keyboard input (arrow keys, single-key confirm) with graceful readline fallback for non-TTY environments NO_COLOR/FORCE_COLOR/CLICOLORrespect -- all ANSI output checks environment flags before emitting color codesselectandmultiselectadded to the adapter public API
Components
ChatMessage-- newstream,streamText,streamSpeed,onStreamComplete,inline,prefix,showSeparator, andmaxLinesprops; usesStreamingTextfor live streaming and animationPagination--currentprop is now optional (uncontrolled mode)
Themes
highContrastTheme-- WCAG 2.1 AA contrast ratios annotated and enforced; adjustederror,info,muted, andmutedForegroundcolorshighContrastLightTheme-- new light variant for terminals with a white background
Infrastructure
.github/workflows/validate-registry.yml-- CI workflow that validates registry manifests on every push and pull request
Full Changelog: https://github.com/Arindam200/termui/blob/main/CHANGELOG.md