Skip to content

v1.4.0

Choose a tag to compare

@Arindam200 Arindam200 released this 27 Mar 21:40

What's Changed

CLI Improvements

  • termui/args integration (createCLI) -- the CLI now uses createCLI from termui/args for 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.ts with text, confirm, select, multiselect, spinner, tasks, group, log backed 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, and multiselect now use raw-mode keyboard input (arrow keys, single-key confirm) with graceful readline fallback for non-TTY environments
  • NO_COLOR / FORCE_COLOR / CLICOLOR respect -- all ANSI output checks environment flags before emitting color codes
  • select and multiselect added to the adapter public API

Components

  • ChatMessage -- new stream, streamText, streamSpeed, onStreamComplete, inline, prefix, showSeparator, and maxLines props; uses StreamingText for live streaming and animation
  • Pagination -- current prop is now optional (uncontrolled mode)

Themes

  • highContrastTheme -- WCAG 2.1 AA contrast ratios annotated and enforced; adjusted error, info, muted, and mutedForeground colors
  • highContrastLightTheme -- 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