Commit 33645ac
fix: use proper Zod v4 types instead of any
Import ZodType from zod/v4 and use it for schema parameters:
- convertZodToJsonSchema accepts ZodType
- validateToolInput uses ZodType<T> for type safety
- validateToolOutput uses ZodType<T> for type safety
- Use .parse() method for validation (standard Zod API)
Added type assertions where needed for v3/v4 compatibility.
All tests pass and TypeScript compilation succeeds.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4cdc90e commit 33645ac
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments