Skip to content

feat: zero explain --json --all diagnostic catalog#50

Open
gke0op wants to merge 2 commits into
vercel-labs:mainfrom
gke0op:explain-all-catalog
Open

feat: zero explain --json --all diagnostic catalog#50
gke0op wants to merge 2 commits into
vercel-labs:mainfrom
gke0op:explain-all-catalog

Conversation

@gke0op
Copy link
Copy Markdown

@gke0op gke0op commented May 17, 2026

Summary

Adds --all flag to zero explain, emitting the full diagnostic catalog
as a structured JSON envelope. Text mode lists all codes with category
and title. Single-code explain is unchanged.

Testing

  • All 9 CLI tests pass
  • All 8 docs tests pass
  • Command contracts pass
  • Manual verification of --all --json, --all, single-code, and no-args modes

Closes #2

Adds --all flag to zero explain, emitting the full diagnostic catalog
as a structured JSON envelope. Text mode lists all codes with category
and title. Single-code explain is unchanged.

Closes vercel-labs#2
@vercel
Copy link
Copy Markdown

vercel Bot commented May 17, 2026

@gke0op is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Comment thread native/zero-c/src/main.c Outdated
The --all JSON path was using wrong repair IDs for several diagnostic
codes (ERR002, ERR003, STD003, CGEN004, etc.) and was missing entries
for TYP025, TYP026, PUB001, IFC001-005, STC001-003, SHM001-002,
RCV001-002. Now uses the exact same mapping as print_explain_json.

Fixes Vercel Agent Review finding on PR vercel-labs#49.
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