# @seed-ship/mcp-ui-cli Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.0.2] - Unreleased

### Security

- Declare `fast-uri: ^3.1.9` directly and supply it as `uriResolver` to both
  Ajv validators, including the published ESM and CJS entrypoints. This fixes
  the active resolver independently of Ajv's older transitive dependency floor.
  The workspace override and lockfile also move to 3.1.9; consumers must still
  audit any separate older copies in their application.

### Fixed

- Align internal Zod to 4.6.6 and Spec to ^6.0.0 without changing the public
  command API. Read `ZodError.issues` rather than its removed `errors` alias.
- Resolve the packaged JSON Schema through its public Spec export, register
  Ajv formats instead of silently ignoring them, and qualify both validation paths.
- Emit the previously missing declarations and repair ESM/CJS external-default
  interop for the existing dependencies. These are pre-existing packaging fixes.

## Historical tooling follow-up before Zod 4

### Security — development tooling only

- Pin Vite 6.4.5 and Vitest 4.1.12 with their corrected tooling dependencies.
- Preserve runtime dependencies, validation behavior and package version. The
  runtime Zod advisory remains a separate follow-up, not closed by this change.

## [5.0.1] - 2026-09-16

### Fixed
- Pin `@seed-ship/mcp-ui-spec` as `workspace:^5.6.0` instead of `workspace:*`.
  `workspace:*` froze the exact version at publish time, so published
  `@seed-ship/mcp-ui-cli@5.0.0` depended on `@seed-ship/mcp-ui-spec@5.0.0`
  exactly. Installing the CLI next to `@seed-ship/mcp-ui-solid` (which asks for
  `^5.6.0`) pulled a second, duplicate copy of the spec package, with two sets
  of Zod schemas whose `instanceof` checks disagree. The range publishes as
  `^5.6.0` and now dedupes with the renderer.

## [5.0.0] - 2026-04-14

### Major release — synchronized with `@seed-ship/mcp-ui-solid` 5.0.0

No CLI breaking changes. The major bump aligns the three monorepo packages on
a single version line so consumers can pin a single major.

### Changed
- Version bump 3.0.0 → 5.0.0 (synchronized with `@seed-ship/mcp-ui-solid` v5.0.0 and `@seed-ship/mcp-ui-spec` v5.0.0).

## [3.0.0] - 2026-04-06

### Major release — synchronized with `@seed-ship/mcp-ui-solid` 3.0.0
- Version bump to align with the 3.x ecosystem milestone. CLI commands (`validate`, `generate-types`, `test-examples`, `diff`) unchanged.
- Dependency bump on `@seed-ship/mcp-ui-spec` to the corresponding v3.x line.

## [2.0.0] - 2026-03-31

### Major release — synchronized with `mcp-ui-solid` v2.0.0
- `mcp-ui validate` now covers the full v2.0 component registry (19 types).
- `mcp-ui diff` understands per-component schema drift and classifies breaking vs. additive.
- Dependency bump on `@seed-ship/mcp-ui-spec` to the corresponding v2.x line.

## [1.1.0] - 2025-11-25

### Documentation
- **Comprehensive README Rewrite**: Complete documentation overhaul
  - Fixed npm scope from `@mcp-ui/cli` to `@seed-ship/mcp-ui-cli`
  - Removed non-existent `create-component` command (was documented but never implemented)
  - Documented all 4 commands with full options and examples
  - Added Programmatic API section with TypeScript examples
  - Added CI/CD Integration section with GitHub Actions example
  - Documented exit codes for automation

### Notes
- This minor version bump marks a documentation milestone
- No CLI changes - all commands identical to v1.0.14

## [1.0.14] - 2025-11-24

### Changed
- Version bump (synchronized with mcp-ui-solid v1.0.26, mcp-ui-spec v1.0.15)

## [1.0.13] - 2025-11-23

### Changed
- Version bump (synchronized with mcp-ui-solid v1.0.25, mcp-ui-spec v1.0.14)

## [1.0.11] - 2025-11-23

### Changed
- Version bump for npm publication with updated token
- Synchronized with mcp-ui-solid v1.0.23, mcp-ui-spec v1.0.12

## [1.0.10] - 2025-11-23

### Changed
- Version bump (synchronized with mcp-ui-solid v1.0.22, mcp-ui-spec v1.0.11)

## [1.0.9] - 2025-11-23

### Changed
- Version bump (synchronized with mcp-ui-solid v1.0.21, mcp-ui-spec v1.0.10)

## [1.0.8] - 2025-11-22

### Changed
- Version bump (synchronized with mcp-ui-solid v1.0.18, mcp-ui-spec v1.0.8)

## [1.0.6] - 2025-11-22

### Changed
- Version bump for npm publication

## [1.0.5] - 2025-11-22

### Changed
- Version bump

## [1.0.2] - 2025-11-17

### Changed
- Migrate to `@seed-ship` npm scope
- Updated package name from `@mcp-ui/cli` to `@seed-ship/mcp-ui-cli`

## [1.0.1] - 2025-11-16

### Fixed
- Add type definitions generation for all packages
- Correct schema validation tests

## [1.0.0] - 2025-01-14

### Added
- Initial release of `@seed-ship/mcp-ui-cli` package
- Command-line interface for component registry operations
- `validate` command: Validates registries against JSON Schema and Zod
- `generate-types` command: Generates TypeScript types from component schemas
- `test-examples` command: Tests all component examples for validity
- `diff` command: Compares registry versions for breaking changes

### Features
- **Dual Validation**: Both JSON Schema (Ajv) and Zod validation
- **Type Generation**: Automatic TypeScript type generation
- **Example Testing**: Validates all component examples against schemas
- **Breaking Change Detection**: Semantic diff with classification
- **Beautiful Output**: Colorful terminal output with chalk and ora spinners
- **CI/CD Ready**: Proper exit codes for automation

### Commands

```bash
# Validate a registry
mcp-ui validate <file> [--strict] [--verbose]

# Generate TypeScript types
mcp-ui generate-types <input> [output] [--namespace <name>]

# Test examples
mcp-ui test-examples <file> [--component <id>] [--verbose]

# Check for breaking changes
mcp-ui diff <old> <new> [--json] [--fail-on-breaking]
```
