Commit ec4f641
committed
refactor(core): migrate MessageV2 part leaves + ToolPart to Effect Schema
Migrates all 13 part leaf schemas and the FilePartSource union to Effect Schema with derived .zod compatibility. ToolPart also moves, now referencing ToolState directly via Schema.Struct. The Part discriminated union stays Zod in this slice (migrates next). Inlines the four *PartInput schemas in prompt.ts so the z.discriminatedUnion continues to infer correctly without the .omit/.partial helpers that only existed on the original Zod definitions.1 parent df0c1f6 commit ec4f641
3 files changed
Lines changed: 325 additions & 240 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
885 | | - | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
886 | 888 | | |
887 | 889 | | |
888 | 890 | | |
| |||
915 | 917 | | |
916 | 918 | | |
917 | 919 | | |
918 | | - | |
| 920 | + | |
919 | 921 | | |
920 | 922 | | |
921 | 923 | | |
| |||
0 commit comments