Skip to content

Update @anthropic-ai/claude-agent-sdk to v0.2.2 and zod to v4.3.5 (CYPACK-700) - #745

Merged
Connoropolous merged 2 commits into
mainfrom
cypack-700
Jan 10, 2026
Merged

Connoropolous merged 2 commits into
mainfrom
cypack-700

Conversation

@cyrusagent

@cyrusagent cyrusagent commented Jan 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Updates @anthropic-ai/claude-agent-sdk from v0.1.72 to v0.2.2 and zod from v3.x to v4.3.5 across all packages to stay current with latest releases.

Changes

  • Updated @anthropic-ai/claude-agent-sdk: v0.1.72 → v0.2.2
    • Includes MCP error handling improvements (error field in McpServerStatus)
    • Brings parity with Claude Code v2.1.0
    • See changelog
  • Updated zod: v3.x → v4.3.5
    • Required as peer dependency for claude-agent-sdk v0.2.2
    • Updated in claude-runner, core, simple-agent-runner, gemini-runner, edge-worker, and cli
  • Migrated from zod-to-json-schema to Zod v4 native toJSONSchema()
    • Removed deprecated zod-to-json-schema dependency from edge-worker
    • Uses Zod v4's built-in toJSONSchema() method instead
    • zod-to-json-schema is discontinued and incompatible with Zod v4
  • Fixed Zod v4 compatibility issues
    • Updated z.record(z.unknown()) → z.record(z.string(), z.unknown()) in gemini-runner schemas
    • Fixed invalid UUIDs in gemini-runner tests (UUID variant field must be 8-F, not 0-7)
  • Closed superseded PR Update @anthropic-ai/claude-agent-sdk to v0.2.1 and zod to v4.3.5 #742 and canceled Linear issue CYPACK-697
    • Previous PR was updating to v0.2.1, this updates to the latest v0.2.2

Test Plan

  • All TypeScript type checks pass
  • Linting clean (17 pre-existing warnings unrelated to changes)
  • claude-runner: 72/72 tests passing
  • core: 13/13 tests passing
  • edge-worker: 334/334 tests passing
  • simple-agent-runner: tests passing
  • gemini-runner: 189/189 tests passing (all tests now passing!)
  • Build succeeds for all packages
  • Updated CHANGELOG.md with SDK changelog link

Breaking Changes

None. All updates are backward compatible.

Related Issues

🤖 Generated with Claude Code

cyrusagent and others added 2 commits January 9, 2026 00:54
…PACK-700)

Updates:
- @anthropic-ai/claude-agent-sdk: 0.1.72 → 0.2.2
- zod: 3.x → 4.3.5 (peer dependency requirement)
- zod-to-json-schema: 3.24.1 → 3.25.1

Changes:
- Updated claude-agent-sdk in core, claude-runner, simple-agent-runner
- Updated zod in claude-runner, edge-worker, gemini-runner, cli
- Fixed zod v4 compatibility: z.record() now requires two arguments
- Added type cast workaround for zodToJsonSchema in edge-worker
- Updated CHANGELOG.md with details and SDK changelog link
- Closed superseded PR #742 and canceled issue CYPACK-697

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Remove zod-to-json-schema dependency from edge-worker
- Migrate to Zod v4's built-in toJSONSchema() method
- Fix invalid UUIDs in gemini-runner tests (variant field must be 8-F)
- Update CHANGELOG to reflect migration approach

This ensures all tests pass and CI goes green.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@Connoropolous
Connoropolous merged commit d685348 into main Jan 10, 2026
6 checks passed
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.

2 participants