v1.2.3: More Developer Experience :D
Added
- Smile Deduce: Added an interactive
smile deduce <spec>command (The Mentalist auto-fixer!). It reads your specification, finds violations (like missing summaries or operation IDs), and interactively prompts you to fix them right in your terminal. It safely manipulates your YAML files using AST parsing, preserving all# commentsand formatting! - Markdown Reports: Added
--format markdownflag for CI/CD integrations. Outputs GitHub-friendly tables that you can pipe directly into Pull Request comments. - Pre-commit Hook Installer: Added the
smile install-hookcommand to generate a native, zero-dependency git pre-commit hook that automatically blocks commits if the API contract is broken. - Configurable Test Headers: Added
testHeaderstoconfig.smile.json. You can now store your Bearer tokens or API keys globally instead of typing-Hrepeatedly insmile test.
Changed
- CLI Architecture Refactor: Moved all command files (
initCommand,hookCommand,deduceCommand) into a dedicatedsrc/cli/commands/directory for better maintainability.
Fixed
- Init Config Scaffold:
smile initnow correctly generates stubs for advanced config options (testHeaders,format,webhooks) inside the generatedconfig.smile.jsonso users know they are available.
📦 Installation
npm install -g @mrjacket/smileView Full CHANGELOG