codecane 1.0.171 → 1.0.172

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,12 +5,12 @@ export declare const FileChangeSchema: z.ZodObject<{
5
5
  content: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
7
  path: string;
8
- content: string;
9
8
  type: "file" | "patch";
9
+ content: string;
10
10
  }, {
11
11
  path: string;
12
- content: string;
13
12
  type: "file" | "patch";
13
+ content: string;
14
14
  }>;
15
15
  export type FileChange = z.infer<typeof FileChangeSchema>;
16
16
  export declare const CHANGES: z.ZodArray<z.ZodObject<{
@@ -19,12 +19,12 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
19
19
  content: z.ZodString;
20
20
  }, "strip", z.ZodTypeAny, {
21
21
  path: string;
22
- content: string;
23
22
  type: "file" | "patch";
23
+ content: string;
24
24
  }, {
25
25
  path: string;
26
- content: string;
27
26
  type: "file" | "patch";
27
+ content: string;
28
28
  }>, "many">;
29
29
  export type FileChanges = z.infer<typeof CHANGES>;
30
30
  export declare const ToolCallSchema: z.ZodObject<{
@@ -59,14 +59,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
59
59
  type: "ephemeral";
60
60
  }>>;
61
61
  }, "strip", z.ZodTypeAny, {
62
- type: "text";
63
62
  text: string;
63
+ type: "text";
64
64
  cache_control?: {
65
65
  type: "ephemeral";
66
66
  } | undefined;
67
67
  }, {
68
- type: "text";
69
68
  text: string;
69
+ type: "text";
70
70
  cache_control?: {
71
71
  type: "ephemeral";
72
72
  } | undefined;
@@ -110,15 +110,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
110
110
  type: "ephemeral";
111
111
  }>>;
112
112
  }, "strip", z.ZodTypeAny, {
113
- content: string;
114
113
  type: "tool_result";
114
+ content: string;
115
115
  tool_use_id: string;
116
116
  cache_control?: {
117
117
  type: "ephemeral";
118
118
  } | undefined;
119
119
  }, {
120
- content: string;
121
120
  type: "tool_result";
121
+ content: string;
122
122
  tool_use_id: string;
123
123
  cache_control?: {
124
124
  type: "ephemeral";
@@ -130,13 +130,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
130
130
  media_type: z.ZodLiteral<"image/jpeg">;
131
131
  data: z.ZodString;
132
132
  }, "strip", z.ZodTypeAny, {
133
+ data: string;
133
134
  type: "base64";
134
135
  media_type: "image/jpeg";
135
- data: string;
136
136
  }, {
137
+ data: string;
137
138
  type: "base64";
138
139
  media_type: "image/jpeg";
139
- data: string;
140
140
  }>;
141
141
  cache_control: z.ZodOptional<z.ZodObject<{
142
142
  type: z.ZodLiteral<"ephemeral">;
@@ -148,9 +148,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
148
148
  }, "strip", z.ZodTypeAny, {
149
149
  type: "image";
150
150
  source: {
151
+ data: string;
151
152
  type: "base64";
152
153
  media_type: "image/jpeg";
153
- data: string;
154
154
  };
155
155
  cache_control?: {
156
156
  type: "ephemeral";
@@ -158,9 +158,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
158
158
  }, {
159
159
  type: "image";
160
160
  source: {
161
+ data: string;
161
162
  type: "base64";
162
163
  media_type: "image/jpeg";
163
- data: string;
164
164
  };
165
165
  cache_control?: {
166
166
  type: "ephemeral";
@@ -168,8 +168,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
168
168
  }>]>, "many">]>;
169
169
  }, "strip", z.ZodTypeAny, {
170
170
  content: string | ({
171
- type: "text";
172
171
  text: string;
172
+ type: "text";
173
173
  cache_control?: {
174
174
  type: "ephemeral";
175
175
  } | undefined;
@@ -182,8 +182,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
182
182
  type: "ephemeral";
183
183
  } | undefined;
184
184
  } | {
185
- content: string;
186
185
  type: "tool_result";
186
+ content: string;
187
187
  tool_use_id: string;
188
188
  cache_control?: {
189
189
  type: "ephemeral";
@@ -191,9 +191,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
191
191
  } | {
192
192
  type: "image";
193
193
  source: {
194
+ data: string;
194
195
  type: "base64";
195
196
  media_type: "image/jpeg";
196
- data: string;
197
197
  };
198
198
  cache_control?: {
199
199
  type: "ephemeral";
@@ -202,8 +202,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
202
202
  role: "user" | "assistant";
203
203
  }, {
204
204
  content: string | ({
205
- type: "text";
206
205
  text: string;
206
+ type: "text";
207
207
  cache_control?: {
208
208
  type: "ephemeral";
209
209
  } | undefined;
@@ -216,8 +216,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
216
216
  type: "ephemeral";
217
217
  } | undefined;
218
218
  } | {
219
- content: string;
220
219
  type: "tool_result";
220
+ content: string;
221
221
  tool_use_id: string;
222
222
  cache_control?: {
223
223
  type: "ephemeral";
@@ -225,9 +225,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
225
225
  } | {
226
226
  type: "image";
227
227
  source: {
228
+ data: string;
228
229
  type: "base64";
229
230
  media_type: "image/jpeg";
230
- data: string;
231
231
  };
232
232
  cache_control?: {
233
233
  type: "ephemeral";
@@ -350,12 +350,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
350
350
  content: z.ZodString;
351
351
  }, "strip", z.ZodTypeAny, {
352
352
  path: string;
353
- content: string;
354
353
  type: "file" | "patch";
354
+ content: string;
355
355
  }, {
356
356
  path: string;
357
- content: string;
358
357
  type: "file" | "patch";
358
+ content: string;
359
359
  }>, "many">;
360
360
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
361
361
  }, "strip", z.ZodTypeAny, {
@@ -391,8 +391,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
391
391
  userInputId: string;
392
392
  messages: {
393
393
  content: string | ({
394
- type: "text";
395
394
  text: string;
395
+ type: "text";
396
396
  cache_control?: {
397
397
  type: "ephemeral";
398
398
  } | undefined;
@@ -405,8 +405,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
405
405
  type: "ephemeral";
406
406
  } | undefined;
407
407
  } | {
408
- content: string;
409
408
  type: "tool_result";
409
+ content: string;
410
410
  tool_use_id: string;
411
411
  cache_control?: {
412
412
  type: "ephemeral";
@@ -414,9 +414,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
414
414
  } | {
415
415
  type: "image";
416
416
  source: {
417
+ data: string;
417
418
  type: "base64";
418
419
  media_type: "image/jpeg";
419
- data: string;
420
420
  };
421
421
  cache_control?: {
422
422
  type: "ephemeral";
@@ -426,8 +426,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
426
426
  }[];
427
427
  changesAlreadyApplied: {
428
428
  path: string;
429
- content: string;
430
429
  type: "file" | "patch";
430
+ content: string;
431
431
  }[];
432
432
  costMode: "max" | "lite" | "normal";
433
433
  authToken?: string | undefined;
@@ -464,8 +464,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
464
464
  userInputId: string;
465
465
  messages: {
466
466
  content: string | ({
467
- type: "text";
468
467
  text: string;
468
+ type: "text";
469
469
  cache_control?: {
470
470
  type: "ephemeral";
471
471
  } | undefined;
@@ -478,8 +478,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
478
478
  type: "ephemeral";
479
479
  } | undefined;
480
480
  } | {
481
- content: string;
482
481
  type: "tool_result";
482
+ content: string;
483
483
  tool_use_id: string;
484
484
  cache_control?: {
485
485
  type: "ephemeral";
@@ -487,9 +487,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
487
487
  } | {
488
488
  type: "image";
489
489
  source: {
490
+ data: string;
490
491
  type: "base64";
491
492
  media_type: "image/jpeg";
492
- data: string;
493
493
  };
494
494
  cache_control?: {
495
495
  type: "ephemeral";
@@ -499,8 +499,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
499
499
  }[];
500
500
  changesAlreadyApplied: {
501
501
  path: string;
502
- content: string;
503
502
  type: "file" | "patch";
503
+ content: string;
504
504
  }[];
505
505
  authToken?: string | undefined;
506
506
  costMode?: "max" | "lite" | "normal" | undefined;
@@ -635,14 +635,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
635
635
  type: "ephemeral";
636
636
  }>>;
637
637
  }, "strip", z.ZodTypeAny, {
638
- type: "text";
639
638
  text: string;
639
+ type: "text";
640
640
  cache_control?: {
641
641
  type: "ephemeral";
642
642
  } | undefined;
643
643
  }, {
644
- type: "text";
645
644
  text: string;
645
+ type: "text";
646
646
  cache_control?: {
647
647
  type: "ephemeral";
648
648
  } | undefined;
@@ -686,15 +686,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
686
686
  type: "ephemeral";
687
687
  }>>;
688
688
  }, "strip", z.ZodTypeAny, {
689
- content: string;
690
689
  type: "tool_result";
690
+ content: string;
691
691
  tool_use_id: string;
692
692
  cache_control?: {
693
693
  type: "ephemeral";
694
694
  } | undefined;
695
695
  }, {
696
- content: string;
697
696
  type: "tool_result";
697
+ content: string;
698
698
  tool_use_id: string;
699
699
  cache_control?: {
700
700
  type: "ephemeral";
@@ -706,13 +706,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
706
706
  media_type: z.ZodLiteral<"image/jpeg">;
707
707
  data: z.ZodString;
708
708
  }, "strip", z.ZodTypeAny, {
709
+ data: string;
709
710
  type: "base64";
710
711
  media_type: "image/jpeg";
711
- data: string;
712
712
  }, {
713
+ data: string;
713
714
  type: "base64";
714
715
  media_type: "image/jpeg";
715
- data: string;
716
716
  }>;
717
717
  cache_control: z.ZodOptional<z.ZodObject<{
718
718
  type: z.ZodLiteral<"ephemeral">;
@@ -724,9 +724,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
724
724
  }, "strip", z.ZodTypeAny, {
725
725
  type: "image";
726
726
  source: {
727
+ data: string;
727
728
  type: "base64";
728
729
  media_type: "image/jpeg";
729
- data: string;
730
730
  };
731
731
  cache_control?: {
732
732
  type: "ephemeral";
@@ -734,9 +734,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
734
734
  }, {
735
735
  type: "image";
736
736
  source: {
737
+ data: string;
737
738
  type: "base64";
738
739
  media_type: "image/jpeg";
739
- data: string;
740
740
  };
741
741
  cache_control?: {
742
742
  type: "ephemeral";
@@ -744,8 +744,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
744
744
  }>]>, "many">]>;
745
745
  }, "strip", z.ZodTypeAny, {
746
746
  content: string | ({
747
- type: "text";
748
747
  text: string;
748
+ type: "text";
749
749
  cache_control?: {
750
750
  type: "ephemeral";
751
751
  } | undefined;
@@ -758,8 +758,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
758
758
  type: "ephemeral";
759
759
  } | undefined;
760
760
  } | {
761
- content: string;
762
761
  type: "tool_result";
762
+ content: string;
763
763
  tool_use_id: string;
764
764
  cache_control?: {
765
765
  type: "ephemeral";
@@ -767,9 +767,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
767
767
  } | {
768
768
  type: "image";
769
769
  source: {
770
+ data: string;
770
771
  type: "base64";
771
772
  media_type: "image/jpeg";
772
- data: string;
773
773
  };
774
774
  cache_control?: {
775
775
  type: "ephemeral";
@@ -778,8 +778,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
778
778
  role: "user" | "assistant";
779
779
  }, {
780
780
  content: string | ({
781
- type: "text";
782
781
  text: string;
782
+ type: "text";
783
783
  cache_control?: {
784
784
  type: "ephemeral";
785
785
  } | undefined;
@@ -792,8 +792,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
792
792
  type: "ephemeral";
793
793
  } | undefined;
794
794
  } | {
795
- content: string;
796
795
  type: "tool_result";
796
+ content: string;
797
797
  tool_use_id: string;
798
798
  cache_control?: {
799
799
  type: "ephemeral";
@@ -801,9 +801,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
801
801
  } | {
802
802
  type: "image";
803
803
  source: {
804
+ data: string;
804
805
  type: "base64";
805
806
  media_type: "image/jpeg";
806
- data: string;
807
807
  };
808
808
  cache_control?: {
809
809
  type: "ephemeral";
@@ -842,8 +842,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
842
842
  };
843
843
  messageHistory: {
844
844
  content: string | ({
845
- type: "text";
846
845
  text: string;
846
+ type: "text";
847
847
  cache_control?: {
848
848
  type: "ephemeral";
849
849
  } | undefined;
@@ -856,8 +856,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
856
856
  type: "ephemeral";
857
857
  } | undefined;
858
858
  } | {
859
- content: string;
860
859
  type: "tool_result";
860
+ content: string;
861
861
  tool_use_id: string;
862
862
  cache_control?: {
863
863
  type: "ephemeral";
@@ -865,9 +865,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
865
865
  } | {
866
866
  type: "image";
867
867
  source: {
868
+ data: string;
868
869
  type: "base64";
869
870
  media_type: "image/jpeg";
870
- data: string;
871
871
  };
872
872
  cache_control?: {
873
873
  type: "ephemeral";
@@ -906,8 +906,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
906
906
  };
907
907
  messageHistory: {
908
908
  content: string | ({
909
- type: "text";
910
909
  text: string;
910
+ type: "text";
911
911
  cache_control?: {
912
912
  type: "ephemeral";
913
913
  } | undefined;
@@ -920,8 +920,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
920
920
  type: "ephemeral";
921
921
  } | undefined;
922
922
  } | {
923
- content: string;
924
923
  type: "tool_result";
924
+ content: string;
925
925
  tool_use_id: string;
926
926
  cache_control?: {
927
927
  type: "ephemeral";
@@ -929,9 +929,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
929
929
  } | {
930
930
  type: "image";
931
931
  source: {
932
+ data: string;
932
933
  type: "base64";
933
934
  media_type: "image/jpeg";
934
- data: string;
935
935
  };
936
936
  cache_control?: {
937
937
  type: "ephemeral";
@@ -989,8 +989,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
989
989
  };
990
990
  messageHistory: {
991
991
  content: string | ({
992
- type: "text";
993
992
  text: string;
993
+ type: "text";
994
994
  cache_control?: {
995
995
  type: "ephemeral";
996
996
  } | undefined;
@@ -1003,8 +1003,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1003
1003
  type: "ephemeral";
1004
1004
  } | undefined;
1005
1005
  } | {
1006
- content: string;
1007
1006
  type: "tool_result";
1007
+ content: string;
1008
1008
  tool_use_id: string;
1009
1009
  cache_control?: {
1010
1010
  type: "ephemeral";
@@ -1012,9 +1012,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1012
1012
  } | {
1013
1013
  type: "image";
1014
1014
  source: {
1015
+ data: string;
1015
1016
  type: "base64";
1016
1017
  media_type: "image/jpeg";
1017
- data: string;
1018
1018
  };
1019
1019
  cache_control?: {
1020
1020
  type: "ephemeral";
@@ -1065,8 +1065,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1065
1065
  };
1066
1066
  messageHistory: {
1067
1067
  content: string | ({
1068
- type: "text";
1069
1068
  text: string;
1069
+ type: "text";
1070
1070
  cache_control?: {
1071
1071
  type: "ephemeral";
1072
1072
  } | undefined;
@@ -1079,8 +1079,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1079
1079
  type: "ephemeral";
1080
1080
  } | undefined;
1081
1081
  } | {
1082
- content: string;
1083
1082
  type: "tool_result";
1083
+ content: string;
1084
1084
  tool_use_id: string;
1085
1085
  cache_control?: {
1086
1086
  type: "ephemeral";
@@ -1088,9 +1088,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1088
1088
  } | {
1089
1089
  type: "image";
1090
1090
  source: {
1091
+ data: string;
1091
1092
  type: "base64";
1092
1093
  media_type: "image/jpeg";
1093
- data: string;
1094
1094
  };
1095
1095
  cache_control?: {
1096
1096
  type: "ephemeral";
@@ -1387,12 +1387,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1387
1387
  content: z.ZodString;
1388
1388
  }, "strip", z.ZodTypeAny, {
1389
1389
  path: string;
1390
- content: string;
1391
1390
  type: "file" | "patch";
1391
+ content: string;
1392
1392
  }, {
1393
1393
  path: string;
1394
- content: string;
1395
1394
  type: "file" | "patch";
1395
+ content: string;
1396
1396
  }>, "many">;
1397
1397
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1398
1398
  type: z.ZodEnum<["patch", "file"]>;
@@ -1400,12 +1400,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1400
1400
  content: z.ZodString;
1401
1401
  }, "strip", z.ZodTypeAny, {
1402
1402
  path: string;
1403
- content: string;
1404
1403
  type: "file" | "patch";
1404
+ content: string;
1405
1405
  }, {
1406
1406
  path: string;
1407
- content: string;
1408
1407
  type: "file" | "patch";
1408
+ content: string;
1409
1409
  }>, "many">;
1410
1410
  addedFileVersions: z.ZodArray<z.ZodObject<{
1411
1411
  path: z.ZodString;
@@ -1430,14 +1430,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1430
1430
  userInputId: string;
1431
1431
  changesAlreadyApplied: {
1432
1432
  path: string;
1433
- content: string;
1434
1433
  type: "file" | "patch";
1434
+ content: string;
1435
1435
  }[];
1436
1436
  response: string;
1437
1437
  changes: {
1438
1438
  path: string;
1439
- content: string;
1440
1439
  type: "file" | "patch";
1440
+ content: string;
1441
1441
  }[];
1442
1442
  addedFileVersions: {
1443
1443
  path: string;
@@ -1455,14 +1455,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1455
1455
  userInputId: string;
1456
1456
  changesAlreadyApplied: {
1457
1457
  path: string;
1458
- content: string;
1459
1458
  type: "file" | "patch";
1459
+ content: string;
1460
1460
  }[];
1461
1461
  response: string;
1462
1462
  changes: {
1463
1463
  path: string;
1464
- content: string;
1465
1464
  type: "file" | "patch";
1465
+ content: string;
1466
1466
  }[];
1467
1467
  addedFileVersions: {
1468
1468
  path: string;
@@ -1603,14 +1603,14 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1603
1603
  type: "ephemeral";
1604
1604
  }>>;
1605
1605
  }, "strip", z.ZodTypeAny, {
1606
- type: "text";
1607
1606
  text: string;
1607
+ type: "text";
1608
1608
  cache_control?: {
1609
1609
  type: "ephemeral";
1610
1610
  } | undefined;
1611
1611
  }, {
1612
- type: "text";
1613
1612
  text: string;
1613
+ type: "text";
1614
1614
  cache_control?: {
1615
1615
  type: "ephemeral";
1616
1616
  } | undefined;
@@ -1654,15 +1654,15 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1654
1654
  type: "ephemeral";
1655
1655
  }>>;
1656
1656
  }, "strip", z.ZodTypeAny, {
1657
- content: string;
1658
1657
  type: "tool_result";
1658
+ content: string;
1659
1659
  tool_use_id: string;
1660
1660
  cache_control?: {
1661
1661
  type: "ephemeral";
1662
1662
  } | undefined;
1663
1663
  }, {
1664
- content: string;
1665
1664
  type: "tool_result";
1665
+ content: string;
1666
1666
  tool_use_id: string;
1667
1667
  cache_control?: {
1668
1668
  type: "ephemeral";
@@ -1674,13 +1674,13 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1674
1674
  media_type: z.ZodLiteral<"image/jpeg">;
1675
1675
  data: z.ZodString;
1676
1676
  }, "strip", z.ZodTypeAny, {
1677
+ data: string;
1677
1678
  type: "base64";
1678
1679
  media_type: "image/jpeg";
1679
- data: string;
1680
1680
  }, {
1681
+ data: string;
1681
1682
  type: "base64";
1682
1683
  media_type: "image/jpeg";
1683
- data: string;
1684
1684
  }>;
1685
1685
  cache_control: z.ZodOptional<z.ZodObject<{
1686
1686
  type: z.ZodLiteral<"ephemeral">;
@@ -1692,9 +1692,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1692
1692
  }, "strip", z.ZodTypeAny, {
1693
1693
  type: "image";
1694
1694
  source: {
1695
+ data: string;
1695
1696
  type: "base64";
1696
1697
  media_type: "image/jpeg";
1697
- data: string;
1698
1698
  };
1699
1699
  cache_control?: {
1700
1700
  type: "ephemeral";
@@ -1702,9 +1702,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1702
1702
  }, {
1703
1703
  type: "image";
1704
1704
  source: {
1705
+ data: string;
1705
1706
  type: "base64";
1706
1707
  media_type: "image/jpeg";
1707
- data: string;
1708
1708
  };
1709
1709
  cache_control?: {
1710
1710
  type: "ephemeral";
@@ -1712,8 +1712,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1712
1712
  }>]>, "many">]>;
1713
1713
  }, "strip", z.ZodTypeAny, {
1714
1714
  content: string | ({
1715
- type: "text";
1716
1715
  text: string;
1716
+ type: "text";
1717
1717
  cache_control?: {
1718
1718
  type: "ephemeral";
1719
1719
  } | undefined;
@@ -1726,8 +1726,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1726
1726
  type: "ephemeral";
1727
1727
  } | undefined;
1728
1728
  } | {
1729
- content: string;
1730
1729
  type: "tool_result";
1730
+ content: string;
1731
1731
  tool_use_id: string;
1732
1732
  cache_control?: {
1733
1733
  type: "ephemeral";
@@ -1735,9 +1735,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1735
1735
  } | {
1736
1736
  type: "image";
1737
1737
  source: {
1738
+ data: string;
1738
1739
  type: "base64";
1739
1740
  media_type: "image/jpeg";
1740
- data: string;
1741
1741
  };
1742
1742
  cache_control?: {
1743
1743
  type: "ephemeral";
@@ -1746,8 +1746,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1746
1746
  role: "user" | "assistant";
1747
1747
  }, {
1748
1748
  content: string | ({
1749
- type: "text";
1750
1749
  text: string;
1750
+ type: "text";
1751
1751
  cache_control?: {
1752
1752
  type: "ephemeral";
1753
1753
  } | undefined;
@@ -1760,8 +1760,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1760
1760
  type: "ephemeral";
1761
1761
  } | undefined;
1762
1762
  } | {
1763
- content: string;
1764
1763
  type: "tool_result";
1764
+ content: string;
1765
1765
  tool_use_id: string;
1766
1766
  cache_control?: {
1767
1767
  type: "ephemeral";
@@ -1769,9 +1769,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1769
1769
  } | {
1770
1770
  type: "image";
1771
1771
  source: {
1772
+ data: string;
1772
1773
  type: "base64";
1773
1774
  media_type: "image/jpeg";
1774
- data: string;
1775
1775
  };
1776
1776
  cache_control?: {
1777
1777
  type: "ephemeral";
@@ -1810,8 +1810,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1810
1810
  };
1811
1811
  messageHistory: {
1812
1812
  content: string | ({
1813
- type: "text";
1814
1813
  text: string;
1814
+ type: "text";
1815
1815
  cache_control?: {
1816
1816
  type: "ephemeral";
1817
1817
  } | undefined;
@@ -1824,8 +1824,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1824
1824
  type: "ephemeral";
1825
1825
  } | undefined;
1826
1826
  } | {
1827
- content: string;
1828
1827
  type: "tool_result";
1828
+ content: string;
1829
1829
  tool_use_id: string;
1830
1830
  cache_control?: {
1831
1831
  type: "ephemeral";
@@ -1833,9 +1833,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1833
1833
  } | {
1834
1834
  type: "image";
1835
1835
  source: {
1836
+ data: string;
1836
1837
  type: "base64";
1837
1838
  media_type: "image/jpeg";
1838
- data: string;
1839
1839
  };
1840
1840
  cache_control?: {
1841
1841
  type: "ephemeral";
@@ -1874,8 +1874,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1874
1874
  };
1875
1875
  messageHistory: {
1876
1876
  content: string | ({
1877
- type: "text";
1878
1877
  text: string;
1878
+ type: "text";
1879
1879
  cache_control?: {
1880
1880
  type: "ephemeral";
1881
1881
  } | undefined;
@@ -1888,8 +1888,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1888
1888
  type: "ephemeral";
1889
1889
  } | undefined;
1890
1890
  } | {
1891
- content: string;
1892
1891
  type: "tool_result";
1892
+ content: string;
1893
1893
  tool_use_id: string;
1894
1894
  cache_control?: {
1895
1895
  type: "ephemeral";
@@ -1897,9 +1897,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1897
1897
  } | {
1898
1898
  type: "image";
1899
1899
  source: {
1900
+ data: string;
1900
1901
  type: "base64";
1901
1902
  media_type: "image/jpeg";
1902
- data: string;
1903
1903
  };
1904
1904
  cache_control?: {
1905
1905
  type: "ephemeral";
@@ -1914,12 +1914,12 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1914
1914
  id: z.ZodString;
1915
1915
  }, "strip", z.ZodTypeAny, {
1916
1916
  name: string;
1917
- parameters: Record<string, string>;
1918
1917
  id: string;
1918
+ parameters: Record<string, string>;
1919
1919
  }, {
1920
1920
  name: string;
1921
- parameters: Record<string, string>;
1922
1921
  id: string;
1922
+ parameters: Record<string, string>;
1923
1923
  }>, "many">;
1924
1924
  toolResults: z.ZodArray<z.ZodObject<{
1925
1925
  name: z.ZodString;
@@ -1975,8 +1975,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1975
1975
  };
1976
1976
  messageHistory: {
1977
1977
  content: string | ({
1978
- type: "text";
1979
1978
  text: string;
1979
+ type: "text";
1980
1980
  cache_control?: {
1981
1981
  type: "ephemeral";
1982
1982
  } | undefined;
@@ -1989,8 +1989,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1989
1989
  type: "ephemeral";
1990
1990
  } | undefined;
1991
1991
  } | {
1992
- content: string;
1993
1992
  type: "tool_result";
1993
+ content: string;
1994
1994
  tool_use_id: string;
1995
1995
  cache_control?: {
1996
1996
  type: "ephemeral";
@@ -1998,9 +1998,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1998
1998
  } | {
1999
1999
  type: "image";
2000
2000
  source: {
2001
+ data: string;
2001
2002
  type: "base64";
2002
2003
  media_type: "image/jpeg";
2003
- data: string;
2004
2004
  };
2005
2005
  cache_control?: {
2006
2006
  type: "ephemeral";
@@ -2016,8 +2016,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
2016
2016
  }[];
2017
2017
  toolCalls: {
2018
2018
  name: string;
2019
- parameters: Record<string, string>;
2020
2019
  id: string;
2020
+ parameters: Record<string, string>;
2021
2021
  }[];
2022
2022
  usage?: number | undefined;
2023
2023
  limit?: number | undefined;
@@ -2059,8 +2059,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
2059
2059
  };
2060
2060
  messageHistory: {
2061
2061
  content: string | ({
2062
- type: "text";
2063
2062
  text: string;
2063
+ type: "text";
2064
2064
  cache_control?: {
2065
2065
  type: "ephemeral";
2066
2066
  } | undefined;
@@ -2073,8 +2073,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
2073
2073
  type: "ephemeral";
2074
2074
  } | undefined;
2075
2075
  } | {
2076
- content: string;
2077
2076
  type: "tool_result";
2077
+ content: string;
2078
2078
  tool_use_id: string;
2079
2079
  cache_control?: {
2080
2080
  type: "ephemeral";
@@ -2082,9 +2082,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
2082
2082
  } | {
2083
2083
  type: "image";
2084
2084
  source: {
2085
+ data: string;
2085
2086
  type: "base64";
2086
2087
  media_type: "image/jpeg";
2087
- data: string;
2088
2088
  };
2089
2089
  cache_control?: {
2090
2090
  type: "ephemeral";
@@ -2100,8 +2100,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
2100
2100
  }[];
2101
2101
  toolCalls: {
2102
2102
  name: string;
2103
- parameters: Record<string, string>;
2104
2103
  id: string;
2104
+ parameters: Record<string, string>;
2105
2105
  }[];
2106
2106
  usage?: number | undefined;
2107
2107
  limit?: number | undefined;
@@ -2133,12 +2133,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2133
2133
  content: z.ZodString;
2134
2134
  }, "strip", z.ZodTypeAny, {
2135
2135
  path: string;
2136
- content: string;
2137
2136
  type: "file" | "patch";
2137
+ content: string;
2138
2138
  }, {
2139
2139
  path: string;
2140
- content: string;
2141
2140
  type: "file" | "patch";
2141
+ content: string;
2142
2142
  }>, "many">;
2143
2143
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2144
2144
  type: z.ZodEnum<["patch", "file"]>;
@@ -2146,12 +2146,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2146
2146
  content: z.ZodString;
2147
2147
  }, "strip", z.ZodTypeAny, {
2148
2148
  path: string;
2149
- content: string;
2150
2149
  type: "file" | "patch";
2150
+ content: string;
2151
2151
  }, {
2152
2152
  path: string;
2153
- content: string;
2154
2153
  type: "file" | "patch";
2154
+ content: string;
2155
2155
  }>, "many">;
2156
2156
  addedFileVersions: z.ZodArray<z.ZodObject<{
2157
2157
  path: z.ZodString;
@@ -2176,14 +2176,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2176
2176
  userInputId: string;
2177
2177
  changesAlreadyApplied: {
2178
2178
  path: string;
2179
- content: string;
2180
2179
  type: "file" | "patch";
2180
+ content: string;
2181
2181
  }[];
2182
2182
  response: string;
2183
2183
  changes: {
2184
2184
  path: string;
2185
- content: string;
2186
2185
  type: "file" | "patch";
2186
+ content: string;
2187
2187
  }[];
2188
2188
  addedFileVersions: {
2189
2189
  path: string;
@@ -2201,14 +2201,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2201
2201
  userInputId: string;
2202
2202
  changesAlreadyApplied: {
2203
2203
  path: string;
2204
- content: string;
2205
2204
  type: "file" | "patch";
2205
+ content: string;
2206
2206
  }[];
2207
2207
  response: string;
2208
2208
  changes: {
2209
2209
  path: string;
2210
- content: string;
2211
2210
  type: "file" | "patch";
2211
+ content: string;
2212
2212
  }[];
2213
2213
  addedFileVersions: {
2214
2214
  path: string;
@@ -2348,14 +2348,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2348
2348
  type: "ephemeral";
2349
2349
  }>>;
2350
2350
  }, "strip", z.ZodTypeAny, {
2351
- type: "text";
2352
2351
  text: string;
2352
+ type: "text";
2353
2353
  cache_control?: {
2354
2354
  type: "ephemeral";
2355
2355
  } | undefined;
2356
2356
  }, {
2357
- type: "text";
2358
2357
  text: string;
2358
+ type: "text";
2359
2359
  cache_control?: {
2360
2360
  type: "ephemeral";
2361
2361
  } | undefined;
@@ -2399,15 +2399,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2399
2399
  type: "ephemeral";
2400
2400
  }>>;
2401
2401
  }, "strip", z.ZodTypeAny, {
2402
- content: string;
2403
2402
  type: "tool_result";
2403
+ content: string;
2404
2404
  tool_use_id: string;
2405
2405
  cache_control?: {
2406
2406
  type: "ephemeral";
2407
2407
  } | undefined;
2408
2408
  }, {
2409
- content: string;
2410
2409
  type: "tool_result";
2410
+ content: string;
2411
2411
  tool_use_id: string;
2412
2412
  cache_control?: {
2413
2413
  type: "ephemeral";
@@ -2419,13 +2419,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2419
2419
  media_type: z.ZodLiteral<"image/jpeg">;
2420
2420
  data: z.ZodString;
2421
2421
  }, "strip", z.ZodTypeAny, {
2422
+ data: string;
2422
2423
  type: "base64";
2423
2424
  media_type: "image/jpeg";
2424
- data: string;
2425
2425
  }, {
2426
+ data: string;
2426
2427
  type: "base64";
2427
2428
  media_type: "image/jpeg";
2428
- data: string;
2429
2429
  }>;
2430
2430
  cache_control: z.ZodOptional<z.ZodObject<{
2431
2431
  type: z.ZodLiteral<"ephemeral">;
@@ -2437,9 +2437,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2437
2437
  }, "strip", z.ZodTypeAny, {
2438
2438
  type: "image";
2439
2439
  source: {
2440
+ data: string;
2440
2441
  type: "base64";
2441
2442
  media_type: "image/jpeg";
2442
- data: string;
2443
2443
  };
2444
2444
  cache_control?: {
2445
2445
  type: "ephemeral";
@@ -2447,9 +2447,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2447
2447
  }, {
2448
2448
  type: "image";
2449
2449
  source: {
2450
+ data: string;
2450
2451
  type: "base64";
2451
2452
  media_type: "image/jpeg";
2452
- data: string;
2453
2453
  };
2454
2454
  cache_control?: {
2455
2455
  type: "ephemeral";
@@ -2457,8 +2457,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2457
2457
  }>]>, "many">]>;
2458
2458
  }, "strip", z.ZodTypeAny, {
2459
2459
  content: string | ({
2460
- type: "text";
2461
2460
  text: string;
2461
+ type: "text";
2462
2462
  cache_control?: {
2463
2463
  type: "ephemeral";
2464
2464
  } | undefined;
@@ -2471,8 +2471,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2471
2471
  type: "ephemeral";
2472
2472
  } | undefined;
2473
2473
  } | {
2474
- content: string;
2475
2474
  type: "tool_result";
2475
+ content: string;
2476
2476
  tool_use_id: string;
2477
2477
  cache_control?: {
2478
2478
  type: "ephemeral";
@@ -2480,9 +2480,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2480
2480
  } | {
2481
2481
  type: "image";
2482
2482
  source: {
2483
+ data: string;
2483
2484
  type: "base64";
2484
2485
  media_type: "image/jpeg";
2485
- data: string;
2486
2486
  };
2487
2487
  cache_control?: {
2488
2488
  type: "ephemeral";
@@ -2491,8 +2491,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2491
2491
  role: "user" | "assistant";
2492
2492
  }, {
2493
2493
  content: string | ({
2494
- type: "text";
2495
2494
  text: string;
2495
+ type: "text";
2496
2496
  cache_control?: {
2497
2497
  type: "ephemeral";
2498
2498
  } | undefined;
@@ -2505,8 +2505,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2505
2505
  type: "ephemeral";
2506
2506
  } | undefined;
2507
2507
  } | {
2508
- content: string;
2509
2508
  type: "tool_result";
2509
+ content: string;
2510
2510
  tool_use_id: string;
2511
2511
  cache_control?: {
2512
2512
  type: "ephemeral";
@@ -2514,9 +2514,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2514
2514
  } | {
2515
2515
  type: "image";
2516
2516
  source: {
2517
+ data: string;
2517
2518
  type: "base64";
2518
2519
  media_type: "image/jpeg";
2519
- data: string;
2520
2520
  };
2521
2521
  cache_control?: {
2522
2522
  type: "ephemeral";
@@ -2555,8 +2555,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2555
2555
  };
2556
2556
  messageHistory: {
2557
2557
  content: string | ({
2558
- type: "text";
2559
2558
  text: string;
2559
+ type: "text";
2560
2560
  cache_control?: {
2561
2561
  type: "ephemeral";
2562
2562
  } | undefined;
@@ -2569,8 +2569,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2569
2569
  type: "ephemeral";
2570
2570
  } | undefined;
2571
2571
  } | {
2572
- content: string;
2573
2572
  type: "tool_result";
2573
+ content: string;
2574
2574
  tool_use_id: string;
2575
2575
  cache_control?: {
2576
2576
  type: "ephemeral";
@@ -2578,9 +2578,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2578
2578
  } | {
2579
2579
  type: "image";
2580
2580
  source: {
2581
+ data: string;
2581
2582
  type: "base64";
2582
2583
  media_type: "image/jpeg";
2583
- data: string;
2584
2584
  };
2585
2585
  cache_control?: {
2586
2586
  type: "ephemeral";
@@ -2619,8 +2619,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2619
2619
  };
2620
2620
  messageHistory: {
2621
2621
  content: string | ({
2622
- type: "text";
2623
2622
  text: string;
2623
+ type: "text";
2624
2624
  cache_control?: {
2625
2625
  type: "ephemeral";
2626
2626
  } | undefined;
@@ -2633,8 +2633,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2633
2633
  type: "ephemeral";
2634
2634
  } | undefined;
2635
2635
  } | {
2636
- content: string;
2637
2636
  type: "tool_result";
2637
+ content: string;
2638
2638
  tool_use_id: string;
2639
2639
  cache_control?: {
2640
2640
  type: "ephemeral";
@@ -2642,9 +2642,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2642
2642
  } | {
2643
2643
  type: "image";
2644
2644
  source: {
2645
+ data: string;
2645
2646
  type: "base64";
2646
2647
  media_type: "image/jpeg";
2647
- data: string;
2648
2648
  };
2649
2649
  cache_control?: {
2650
2650
  type: "ephemeral";
@@ -2659,12 +2659,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2659
2659
  id: z.ZodString;
2660
2660
  }, "strip", z.ZodTypeAny, {
2661
2661
  name: string;
2662
- parameters: Record<string, string>;
2663
2662
  id: string;
2663
+ parameters: Record<string, string>;
2664
2664
  }, {
2665
2665
  name: string;
2666
- parameters: Record<string, string>;
2667
2666
  id: string;
2667
+ parameters: Record<string, string>;
2668
2668
  }>, "many">;
2669
2669
  toolResults: z.ZodArray<z.ZodObject<{
2670
2670
  name: z.ZodString;
@@ -2720,8 +2720,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2720
2720
  };
2721
2721
  messageHistory: {
2722
2722
  content: string | ({
2723
- type: "text";
2724
2723
  text: string;
2724
+ type: "text";
2725
2725
  cache_control?: {
2726
2726
  type: "ephemeral";
2727
2727
  } | undefined;
@@ -2734,8 +2734,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2734
2734
  type: "ephemeral";
2735
2735
  } | undefined;
2736
2736
  } | {
2737
- content: string;
2738
2737
  type: "tool_result";
2738
+ content: string;
2739
2739
  tool_use_id: string;
2740
2740
  cache_control?: {
2741
2741
  type: "ephemeral";
@@ -2743,9 +2743,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2743
2743
  } | {
2744
2744
  type: "image";
2745
2745
  source: {
2746
+ data: string;
2746
2747
  type: "base64";
2747
2748
  media_type: "image/jpeg";
2748
- data: string;
2749
2749
  };
2750
2750
  cache_control?: {
2751
2751
  type: "ephemeral";
@@ -2761,8 +2761,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2761
2761
  }[];
2762
2762
  toolCalls: {
2763
2763
  name: string;
2764
- parameters: Record<string, string>;
2765
2764
  id: string;
2765
+ parameters: Record<string, string>;
2766
2766
  }[];
2767
2767
  usage?: number | undefined;
2768
2768
  limit?: number | undefined;
@@ -2804,8 +2804,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2804
2804
  };
2805
2805
  messageHistory: {
2806
2806
  content: string | ({
2807
- type: "text";
2808
2807
  text: string;
2808
+ type: "text";
2809
2809
  cache_control?: {
2810
2810
  type: "ephemeral";
2811
2811
  } | undefined;
@@ -2818,8 +2818,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2818
2818
  type: "ephemeral";
2819
2819
  } | undefined;
2820
2820
  } | {
2821
- content: string;
2822
2821
  type: "tool_result";
2822
+ content: string;
2823
2823
  tool_use_id: string;
2824
2824
  cache_control?: {
2825
2825
  type: "ephemeral";
@@ -2827,9 +2827,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2827
2827
  } | {
2828
2828
  type: "image";
2829
2829
  source: {
2830
+ data: string;
2830
2831
  type: "base64";
2831
2832
  media_type: "image/jpeg";
2832
- data: string;
2833
2833
  };
2834
2834
  cache_control?: {
2835
2835
  type: "ephemeral";
@@ -2845,8 +2845,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2845
2845
  }[];
2846
2846
  toolCalls: {
2847
2847
  name: string;
2848
- parameters: Record<string, string>;
2849
2848
  id: string;
2849
+ parameters: Record<string, string>;
2850
2850
  }[];
2851
2851
  usage?: number | undefined;
2852
2852
  limit?: number | undefined;
@@ -2889,12 +2889,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2889
2889
  content: z.ZodString;
2890
2890
  }, "strip", z.ZodTypeAny, {
2891
2891
  path: string;
2892
- content: string;
2893
2892
  type: "file" | "patch";
2893
+ content: string;
2894
2894
  }, {
2895
2895
  path: string;
2896
- content: string;
2897
2896
  type: "file" | "patch";
2897
+ content: string;
2898
2898
  }>, "many">;
2899
2899
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2900
2900
  type: z.ZodEnum<["patch", "file"]>;
@@ -2902,12 +2902,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2902
2902
  content: z.ZodString;
2903
2903
  }, "strip", z.ZodTypeAny, {
2904
2904
  path: string;
2905
- content: string;
2906
2905
  type: "file" | "patch";
2906
+ content: string;
2907
2907
  }, {
2908
2908
  path: string;
2909
- content: string;
2910
2909
  type: "file" | "patch";
2910
+ content: string;
2911
2911
  }>, "many">;
2912
2912
  addedFileVersions: z.ZodArray<z.ZodObject<{
2913
2913
  path: z.ZodString;
@@ -2921,23 +2921,23 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2921
2921
  }>, "many">;
2922
2922
  resetFileVersions: z.ZodBoolean;
2923
2923
  }, "strip", z.ZodTypeAny, {
2924
- type: "tool-call";
2925
2924
  data: {
2926
2925
  name: string;
2927
2926
  id: string;
2928
2927
  input: Record<string, any>;
2929
2928
  };
2929
+ type: "tool-call";
2930
2930
  userInputId: string;
2931
2931
  changesAlreadyApplied: {
2932
2932
  path: string;
2933
- content: string;
2934
2933
  type: "file" | "patch";
2934
+ content: string;
2935
2935
  }[];
2936
2936
  response: string;
2937
2937
  changes: {
2938
2938
  path: string;
2939
- content: string;
2940
2939
  type: "file" | "patch";
2940
+ content: string;
2941
2941
  }[];
2942
2942
  addedFileVersions: {
2943
2943
  path: string;
@@ -2945,23 +2945,23 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2945
2945
  }[];
2946
2946
  resetFileVersions: boolean;
2947
2947
  }, {
2948
- type: "tool-call";
2949
2948
  data: {
2950
2949
  name: string;
2951
2950
  id: string;
2952
2951
  input: Record<string, any>;
2953
2952
  };
2953
+ type: "tool-call";
2954
2954
  userInputId: string;
2955
2955
  changesAlreadyApplied: {
2956
2956
  path: string;
2957
- content: string;
2958
2957
  type: "file" | "patch";
2958
+ content: string;
2959
2959
  }[];
2960
2960
  response: string;
2961
2961
  changes: {
2962
2962
  path: string;
2963
- content: string;
2964
2963
  type: "file" | "patch";
2964
+ content: string;
2965
2965
  }[];
2966
2966
  addedFileVersions: {
2967
2967
  path: string;