feat: Zod v4 migration, 25 unit tests, tracking docs cleanup#24
Merged
Conversation
added 2 commits
March 21, 2026 22:55
- PLAN.md: remove completed sections, keep only Zod migration + upstream sync - STATUS.md: compressed to metrics table - WHAT_WE_DID.md: compressed all phases into summary - DO_NEXT.md: updated with current priorities (Zod, upstream, testing backlog) - BUGS.md: compressed fixed bugs to category summary (full details in git) - GAP_ANALYSIS.md: updated to reflect all goals complete
Zod v3→v4: - Replace zodToJsonSchema() with z.toJSONSchema() in experimental.ts - Remove zod-to-json-schema import (sole consumer) - Use instanceof z.ZodType check instead of _def property check Unit tests (25 new tests across 5 files): - test/cas/cas.test.ts: CAS store/get/dedup/delete/list (5 tests) - test/cas/graph.test.ts: EditGraph commit/log/head/chain (5 tests) - test/session/side-thread.test.ts: SideThread create/get/list/filter/update (5 tests) - test/session/objective.test.ts: Objective extract/set/get/re-evaluate (5 tests) - test/context-edit/context-edit.test.ts: mark/sweep-discard/sweep-pinned/sweep-window (5 tests) Total: 1473 tests passing (up from 1448), 0 tsgo errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
zodToJsonSchema()with nativez.toJSONSchema()(sole remaining v3 usage)New Tests
test/cas/cas.test.tstest/cas/graph.test.tstest/session/side-thread.test.tstest/session/objective.test.tstest/context-edit/context-edit.test.tsTest plan
bun run typecheck(tsgo) — 0 errorsbun test— 1473 pass, 0 fail (25 new)bun run buildin packages/sdk/js) — passes