Skip to content

feat: add semantic mode checks for z.input/z.output#4

Merged
greyllmmoder merged 1 commit into
mainfrom
feat/008-semantic-check
Apr 5, 2026
Merged

feat: add semantic mode checks for z.input/z.output#4
greyllmmoder merged 1 commit into
mainfrom
feat/008-semantic-check

Conversation

@greyllmmoder
Copy link
Copy Markdown
Owner

Summary

  • add --semantics off|input|output|both to zodrift check
  • add semantic issue type (semantic_mismatch) and include semantic counts in reports
  • implement semantic checker using TypeScript probe files for z.input<typeof Schema> and z.output<typeof Schema>
  • wire semantic checks into pretty/json/sarif reporters
  • add tests covering input mismatch, output mismatch (preprocess case), and matching schema/type pass case
  • update README and docs (docs/check.md, docs/ci.md) with semantic CI usage

Testing

  • npm run typecheck
  • npm run build
  • npm test
  • npm run dev -- check --pattern "examples/**/*.ts" --semantics both

@greyllmmoder greyllmmoder merged commit 9ea5d55 into main Apr 5, 2026
2 checks passed
@greyllmmoder greyllmmoder deleted the feat/008-semantic-check branch April 5, 2026 16:28
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