mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
70f54a8403
Zod 4 made the key schema mandatory for z.record, so the single-argument z.record(valueType) form is a compile-time error (TS2554) when built against Zod 4. @copilotkit/react-core declares zod ">=3.0.0", so downstream apps on Zod 4 are affected; runtime parsing is unaffected under both majors. - react-core + vue MCPAppsActivityContentSchema: toolInput now uses the two-argument z.record(z.string(), z.unknown()) form - react-core defineToolCallRenderer test: same fix for a metadata schema - add a toolInput field-contract test (round-trips mixed value types) - add copilotkit/no-single-arg-zod-record oxlint rule (autofix), enabled as error for packages/**; the incompatibility is type-level, so no runtime test can guard it while the workspace lockfile pins Zod 3 Closes #4295 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>