Repository navigation
chore(deps): zod 4 runtime dependency for the 0.7.0 release (floor ^4.4.3) - #38
Conversation
Raise the zod floor to ^4.6.5 so agent-trajectories converges on the same zod version as the AgentWorkforce/cloud monorepo (AgentWorkforce/cloud#4080). The published runtime dependency tree is zod-4 only; the zod 3 copy pulled by the dev-only @agent-relay/sdk (used by workflows/*.ts scripts) is not shipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015pwJbZ21p1TB7MRHXdYjG3
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe package manifest updates the Zod dependency range from ChangesZod dependency update
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to The update resolves Zod to 4.6.5 without an established production compatibility issue, so the PR is mergeable subject to normal checks. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks the package row Comment |
zod >=4.5.0 roughly doubles zod/v4/core, which pushes the cloud Cloudflare Worker past its 10 MiB limit, so cloud pins zod 4.4.3. Keep the range at ^4.4.3 so agent-trajectories does not force >=4.6.5 on consumers; the lockfile still resolves 4.6.5 for local development. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015pwJbZ21p1TB7MRHXdYjG3
Summary
Supports AgentWorkforce/cloud#4080, which moves the cloud monorepo to a single zod 4 version.
mainalready moved the source to zod 4 in #35, but the latest published release (0.6.1) still depends on zod 3. Downstream repos are switching toagent-trajectories@^0.7.0, so this should be released as 0.7.0.Why the floor is
^4.4.3The zod range in
package.jsonstays^4.4.3, so cloud can pin zod 4.4.3. zod 4.5.0+ roughly doubleszod/v4/core(about +50 KB gzip). The cloud Cloudflare Worker bundles zod about five times, so ≥4.5 pushes the Worker past its 10 MiB limit. A^4.6.5floor would force that onto consumers. An earlier commit in this PR raised the floor to^4.6.5; the follow-up commit sets it back.What changed vs main
package.json: no net change ("zod": "^4.4.3").package-lock.json: the dev lock now resolves zod 4.6.5, which is what npm picked. Consumers resolve their own version within^4.4.3, so cloud's 4.4.3 pin satisfies it.zod/v3importserrorMap,required_errororinvalid_type_errorZodError.errors(thevalidation.errorsinsrc/storage/file.tsis the repo's own result field, and it reads.issues)z.iso.datetime()andz.url()z.recordcallsRuntime dependency tree
@agent-relay/sdk(left at^4.0.4, dev-only)The root
@agent-relay/sdkis only a devDependency. It's used only by theworkflows/*.tsagent-relay scripts, which are not built, typechecked or published. Its@agent-relay/config@4.0.4pulls in zod 3.25.76, but only in the dev tree, so nothing that consumers install includes it.I couldn't bump it to
^12.2.2. Every release from 8.0.0 on dropped the@agent-relay/sdk/workflowsexport that those scripts import, and every version that still has that export depends on a zod-3@agent-relay/config.trail-viewer/server(a private app, not published) has"@agent-relay/sdk": "*".How to release 0.7.0
The version is set by the
Publish Packageworkflow (.github/workflows/publish.yml), so this PR leaves the version and CHANGELOG alone. The workflow bumps the version, generates the changelog, commits, tags and publishes. After merging:main.versiontominor(0.6.1 → 0.7.0), or setcustom_versionto0.7.0. Keep taglatestanddry_runfalse. You can do a dry run first if you like.npm view agent-trajectories@0.7.0 dependencies.zodshould print^4.4.3.Test plan
npm run buildnpm run typechecknpm run lintnpm run test:run: 14 files, 257 tests passednpm ls zod --all --omit=devshows only zod 4🤖 Generated with Claude Code
https://claude.ai/code/session_015pwJbZ21p1TB7MRHXdYjG3
Note
Low Risk
Patch-level dependency bump within zod 4 with no application code changes; dev-only tooling may still resolve older zod via @agent-relay/sdk.
Overview
Aligns agent-trajectories with the cloud monorepo’s single zod 4.6.5 line by raising the published runtime floor from
^4.4.3to^4.6.5and refreshingpackage-lock.json(resolved zod 4.4.3 → 4.6.5). The lockfile also drops anextraneousflag on a bundledis-unicode-supportedentry under@clack/prompts.No source changes are required—the library already targets zod 4 APIs. Consumers should treat this as a 0.7.0 release so downstream repos can depend on zod 4.6.5 without pulling 4.4.x.
Reviewed by Cursor Bugbot for commit d13ee5f. Bugbot is set up for automated code reviews on this repo. Configure here.