Skip to content

v0.4.0

Latest

Choose a tag to compare

@Adel2411 Adel2411 released this 13 Nov 14:07
· 1 commit to main since this release
a544c0d

Added

  • init writes a DESIGN.md for the chosen theme, in the DESIGN.md format, so coding agents know the theme's tokens and rules. An existing file is kept unless --overwrite is passed; --no-design skips it
  • init registers the @mcoli namespace in components.json, so npx shadcn@latest add @mcoli/<item> works
  • init options: --theme, --yes, --no-input, --no-design, --overwrite, --agents (points AGENTS.md or CLAUDE.md at DESIGN.md), --skill (installs the agent skill), --dry-run and --cwd
  • add options: --overwrite, --dry-run and --cwd
  • list --json prints a stable { registry, themes, fonts, components } object
  • --version, help <command> and per-command --help
  • "Did you mean" suggestions for mistyped commands, options, themes and components
  • mcoli-ui agent skill in skills/mcoli-ui, installable with npx skills add MicroClub-USTHB/mcoli-ui --skill mcoli-ui
  • Registry: design-<theme> items that install DESIGN.md, and swatch colors in each theme's meta
  • mc-badge: info, warning and success variants built on the theme status colors

Changed

  • init and add no longer prompt when stdin is not a terminal. init without a theme then fails with the flag to pass instead of hanging
  • Usage errors exit with code 2; runtime failures keep exit code 1, and Ctrl-C exits with 130
  • add installs all requested components in a single shadcn run, and checks their names against the registry first
  • Themes are read from the registry instead of a list built into the CLI
  • shadcn is pinned to major version 4 and run with the package manager that started mcoli-ui (npx, pnpm dlx or bunx)
  • Errors and warnings go to stderr, and spinners only show on a terminal

Fixed

  • Component names are validated and passed to shadcn without a shell, so a crafted name can no longer run shell commands
  • Registry requests time out after 15 seconds instead of hanging
  • The registry build runs its two steps in order, so shadcn build no longer reads a stale registry.autogenerated.json
  • mc-badge variants stay readable in the dark theme
  • mc-select scrolls its list when the popup is given a max height, instead of clipping the last options