Skip to content

fix(dx): clearer CLI errors, version: 2 hint, strict-safe doc snippets - #1198

Merged
LinuxDevil merged 1 commit into
mainfrom
fix/dx-polish
Nov 17, 2026
Merged

LinuxDevil merged 1 commit into
mainfrom
fix/dx-polish

Conversation

@LinuxDevil

Copy link
Copy Markdown
Owner

Fixes from a fresh-developer DX audit (README quickstart, starter, CLI).

  • Spec without version: 2: a v2-shaped spec missing the field was told to rewrite itself in the v1 format. It now says "add version: 2 at the top". Test in loadSpec.test.ts.
  • Mistyped command: lousho dve prints Did you mean 'dev'? and one line instead of the full help. Test in unknownCommand.test.ts.
  • lousho build errors: now use usageError (code, usage, docs link) like every other command.
  • Doc snippets: verify-docs-snippets now type-checks with noUncheckedIndexedAccess, which the starter enables; four snippets that failed under it are fixed. All 372 snippets pass.
  • README: states Node 22.19+ or 24.

Checks: typecheck, eslint src, the touched tests and the snippet check pass.

🤖 Generated with Claude Code

…ompile under strict settings

- A v2-style spec missing 'version: 2' now says to add it instead of pointing at the v1 format
- Mistyped commands suggest the closest one instead of dumping the help
- lousho build errors use the same code + usage + docs format as other commands
- Doc snippets are checked with noUncheckedIndexedAccess, matching the starter; four fixed
- README states the supported Node versions (22.19+ or 24)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@lousho-ai lousho-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving.

@LinuxDevil
LinuxDevil merged commit 7d36867 into main Nov 17, 2026
6 checks passed
@LinuxDevil
LinuxDevil deleted the fix/dx-polish branch November 17, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant