Commit f93bc46
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). Also exports Schema-backed {Text,File,Agent,Subtask}PartInput with matching identifiers so prompt.ts PromptInput can reference them via .zod without re-inlining the part shapes. CommandInput keeps its (smaller) FilePart shape inlined since the SDK does not name that one with a $ref.1 parent df0c1f6 commit f93bc46
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