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.
- package/dist/cli.js +3 -1
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +8 -8
- package/dist/client.js +13 -11
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +140 -140
- package/dist/common/browser-actions.d.ts +44 -44
- package/dist/common/types/agent-state.d.ts +22 -22
- package/dist/common/types/message.d.ts +22 -22
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/saxy.d.ts +150 -0
- package/dist/common/util/saxy.js +474 -0
- package/dist/common/util/saxy.js.map +1 -0
- package/dist/common/util/string.d.ts +8 -0
- package/dist/common/util/string.js +11 -2
- package/dist/common/util/string.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +272 -272
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/__tests__/xml-stream-parser.test.d.ts +1 -0
- package/dist/utils/__tests__/xml-stream-parser.test.js +155 -0
- package/dist/utils/__tests__/xml-stream-parser.test.js.map +1 -0
- package/dist/utils/xml-stream-parser.d.ts +19 -0
- package/dist/utils/xml-stream-parser.js +202 -0
- package/dist/utils/xml-stream-parser.js.map +1 -0
- package/package.json +1 -1
- package/dist/utils/logger.d.ts +0 -1
- package/dist/utils/logger.js +0 -46
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/process-xml-chunks.d.ts +0 -37
- package/dist/utils/process-xml-chunks.js +0 -247
- package/dist/utils/process-xml-chunks.js.map +0 -1
|
@@ -70,14 +70,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
70
70
|
type: "ephemeral";
|
|
71
71
|
}>>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
type: "text";
|
|
74
73
|
text: string;
|
|
74
|
+
type: "text";
|
|
75
75
|
cache_control?: {
|
|
76
76
|
type: "ephemeral";
|
|
77
77
|
} | undefined;
|
|
78
78
|
}, {
|
|
79
|
-
type: "text";
|
|
80
79
|
text: string;
|
|
80
|
+
type: "text";
|
|
81
81
|
cache_control?: {
|
|
82
82
|
type: "ephemeral";
|
|
83
83
|
} | undefined;
|
|
@@ -121,15 +121,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
121
121
|
type: "ephemeral";
|
|
122
122
|
}>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
content: string;
|
|
125
124
|
type: "tool_result";
|
|
125
|
+
content: string;
|
|
126
126
|
tool_use_id: string;
|
|
127
127
|
cache_control?: {
|
|
128
128
|
type: "ephemeral";
|
|
129
129
|
} | undefined;
|
|
130
130
|
}, {
|
|
131
|
-
content: string;
|
|
132
131
|
type: "tool_result";
|
|
132
|
+
content: string;
|
|
133
133
|
tool_use_id: string;
|
|
134
134
|
cache_control?: {
|
|
135
135
|
type: "ephemeral";
|
|
@@ -141,13 +141,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
141
141
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
142
142
|
data: z.ZodString;
|
|
143
143
|
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
data: string;
|
|
144
145
|
type: "base64";
|
|
145
146
|
media_type: "image/jpeg";
|
|
146
|
-
data: string;
|
|
147
147
|
}, {
|
|
148
|
+
data: string;
|
|
148
149
|
type: "base64";
|
|
149
150
|
media_type: "image/jpeg";
|
|
150
|
-
data: string;
|
|
151
151
|
}>;
|
|
152
152
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
153
153
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -159,9 +159,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
160
|
type: "image";
|
|
161
161
|
source: {
|
|
162
|
+
data: string;
|
|
162
163
|
type: "base64";
|
|
163
164
|
media_type: "image/jpeg";
|
|
164
|
-
data: string;
|
|
165
165
|
};
|
|
166
166
|
cache_control?: {
|
|
167
167
|
type: "ephemeral";
|
|
@@ -169,9 +169,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
169
169
|
}, {
|
|
170
170
|
type: "image";
|
|
171
171
|
source: {
|
|
172
|
+
data: string;
|
|
172
173
|
type: "base64";
|
|
173
174
|
media_type: "image/jpeg";
|
|
174
|
-
data: string;
|
|
175
175
|
};
|
|
176
176
|
cache_control?: {
|
|
177
177
|
type: "ephemeral";
|
|
@@ -179,8 +179,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
179
179
|
}>]>, "many">]>;
|
|
180
180
|
}, "strip", z.ZodTypeAny, {
|
|
181
181
|
content: string | ({
|
|
182
|
-
type: "text";
|
|
183
182
|
text: string;
|
|
183
|
+
type: "text";
|
|
184
184
|
cache_control?: {
|
|
185
185
|
type: "ephemeral";
|
|
186
186
|
} | undefined;
|
|
@@ -193,8 +193,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
193
193
|
type: "ephemeral";
|
|
194
194
|
} | undefined;
|
|
195
195
|
} | {
|
|
196
|
-
content: string;
|
|
197
196
|
type: "tool_result";
|
|
197
|
+
content: string;
|
|
198
198
|
tool_use_id: string;
|
|
199
199
|
cache_control?: {
|
|
200
200
|
type: "ephemeral";
|
|
@@ -202,9 +202,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
202
202
|
} | {
|
|
203
203
|
type: "image";
|
|
204
204
|
source: {
|
|
205
|
+
data: string;
|
|
205
206
|
type: "base64";
|
|
206
207
|
media_type: "image/jpeg";
|
|
207
|
-
data: string;
|
|
208
208
|
};
|
|
209
209
|
cache_control?: {
|
|
210
210
|
type: "ephemeral";
|
|
@@ -213,8 +213,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
213
213
|
role: "user" | "assistant";
|
|
214
214
|
}, {
|
|
215
215
|
content: string | ({
|
|
216
|
-
type: "text";
|
|
217
216
|
text: string;
|
|
217
|
+
type: "text";
|
|
218
218
|
cache_control?: {
|
|
219
219
|
type: "ephemeral";
|
|
220
220
|
} | undefined;
|
|
@@ -227,8 +227,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
227
227
|
type: "ephemeral";
|
|
228
228
|
} | undefined;
|
|
229
229
|
} | {
|
|
230
|
-
content: string;
|
|
231
230
|
type: "tool_result";
|
|
231
|
+
content: string;
|
|
232
232
|
tool_use_id: string;
|
|
233
233
|
cache_control?: {
|
|
234
234
|
type: "ephemeral";
|
|
@@ -236,9 +236,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
236
236
|
} | {
|
|
237
237
|
type: "image";
|
|
238
238
|
source: {
|
|
239
|
+
data: string;
|
|
239
240
|
type: "base64";
|
|
240
241
|
media_type: "image/jpeg";
|
|
241
|
-
data: string;
|
|
242
242
|
};
|
|
243
243
|
cache_control?: {
|
|
244
244
|
type: "ephemeral";
|
|
@@ -361,12 +361,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
361
361
|
content: z.ZodString;
|
|
362
362
|
}, "strip", z.ZodTypeAny, {
|
|
363
363
|
path: string;
|
|
364
|
-
content: string;
|
|
365
364
|
type: "file" | "patch";
|
|
365
|
+
content: string;
|
|
366
366
|
}, {
|
|
367
367
|
path: string;
|
|
368
|
-
content: string;
|
|
369
368
|
type: "file" | "patch";
|
|
369
|
+
content: string;
|
|
370
370
|
}>, "many">;
|
|
371
371
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
372
372
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -402,8 +402,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
402
402
|
userInputId: string;
|
|
403
403
|
messages: {
|
|
404
404
|
content: string | ({
|
|
405
|
-
type: "text";
|
|
406
405
|
text: string;
|
|
406
|
+
type: "text";
|
|
407
407
|
cache_control?: {
|
|
408
408
|
type: "ephemeral";
|
|
409
409
|
} | undefined;
|
|
@@ -416,8 +416,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
416
416
|
type: "ephemeral";
|
|
417
417
|
} | undefined;
|
|
418
418
|
} | {
|
|
419
|
-
content: string;
|
|
420
419
|
type: "tool_result";
|
|
420
|
+
content: string;
|
|
421
421
|
tool_use_id: string;
|
|
422
422
|
cache_control?: {
|
|
423
423
|
type: "ephemeral";
|
|
@@ -425,9 +425,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
425
425
|
} | {
|
|
426
426
|
type: "image";
|
|
427
427
|
source: {
|
|
428
|
+
data: string;
|
|
428
429
|
type: "base64";
|
|
429
430
|
media_type: "image/jpeg";
|
|
430
|
-
data: string;
|
|
431
431
|
};
|
|
432
432
|
cache_control?: {
|
|
433
433
|
type: "ephemeral";
|
|
@@ -437,8 +437,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
437
437
|
}[];
|
|
438
438
|
changesAlreadyApplied: {
|
|
439
439
|
path: string;
|
|
440
|
-
content: string;
|
|
441
440
|
type: "file" | "patch";
|
|
441
|
+
content: string;
|
|
442
442
|
}[];
|
|
443
443
|
costMode: "max" | "lite" | "normal";
|
|
444
444
|
authToken?: string | undefined;
|
|
@@ -475,8 +475,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
475
475
|
userInputId: string;
|
|
476
476
|
messages: {
|
|
477
477
|
content: string | ({
|
|
478
|
-
type: "text";
|
|
479
478
|
text: string;
|
|
479
|
+
type: "text";
|
|
480
480
|
cache_control?: {
|
|
481
481
|
type: "ephemeral";
|
|
482
482
|
} | undefined;
|
|
@@ -489,8 +489,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
489
489
|
type: "ephemeral";
|
|
490
490
|
} | undefined;
|
|
491
491
|
} | {
|
|
492
|
-
content: string;
|
|
493
492
|
type: "tool_result";
|
|
493
|
+
content: string;
|
|
494
494
|
tool_use_id: string;
|
|
495
495
|
cache_control?: {
|
|
496
496
|
type: "ephemeral";
|
|
@@ -498,9 +498,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
498
498
|
} | {
|
|
499
499
|
type: "image";
|
|
500
500
|
source: {
|
|
501
|
+
data: string;
|
|
501
502
|
type: "base64";
|
|
502
503
|
media_type: "image/jpeg";
|
|
503
|
-
data: string;
|
|
504
504
|
};
|
|
505
505
|
cache_control?: {
|
|
506
506
|
type: "ephemeral";
|
|
@@ -510,8 +510,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
510
510
|
}[];
|
|
511
511
|
changesAlreadyApplied: {
|
|
512
512
|
path: string;
|
|
513
|
-
content: string;
|
|
514
513
|
type: "file" | "patch";
|
|
514
|
+
content: string;
|
|
515
515
|
}[];
|
|
516
516
|
authToken?: string | undefined;
|
|
517
517
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
@@ -646,14 +646,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
646
646
|
type: "ephemeral";
|
|
647
647
|
}>>;
|
|
648
648
|
}, "strip", z.ZodTypeAny, {
|
|
649
|
-
type: "text";
|
|
650
649
|
text: string;
|
|
650
|
+
type: "text";
|
|
651
651
|
cache_control?: {
|
|
652
652
|
type: "ephemeral";
|
|
653
653
|
} | undefined;
|
|
654
654
|
}, {
|
|
655
|
-
type: "text";
|
|
656
655
|
text: string;
|
|
656
|
+
type: "text";
|
|
657
657
|
cache_control?: {
|
|
658
658
|
type: "ephemeral";
|
|
659
659
|
} | undefined;
|
|
@@ -697,15 +697,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
697
697
|
type: "ephemeral";
|
|
698
698
|
}>>;
|
|
699
699
|
}, "strip", z.ZodTypeAny, {
|
|
700
|
-
content: string;
|
|
701
700
|
type: "tool_result";
|
|
701
|
+
content: string;
|
|
702
702
|
tool_use_id: string;
|
|
703
703
|
cache_control?: {
|
|
704
704
|
type: "ephemeral";
|
|
705
705
|
} | undefined;
|
|
706
706
|
}, {
|
|
707
|
-
content: string;
|
|
708
707
|
type: "tool_result";
|
|
708
|
+
content: string;
|
|
709
709
|
tool_use_id: string;
|
|
710
710
|
cache_control?: {
|
|
711
711
|
type: "ephemeral";
|
|
@@ -717,13 +717,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
717
717
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
718
718
|
data: z.ZodString;
|
|
719
719
|
}, "strip", z.ZodTypeAny, {
|
|
720
|
+
data: string;
|
|
720
721
|
type: "base64";
|
|
721
722
|
media_type: "image/jpeg";
|
|
722
|
-
data: string;
|
|
723
723
|
}, {
|
|
724
|
+
data: string;
|
|
724
725
|
type: "base64";
|
|
725
726
|
media_type: "image/jpeg";
|
|
726
|
-
data: string;
|
|
727
727
|
}>;
|
|
728
728
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
729
729
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -735,9 +735,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
735
735
|
}, "strip", z.ZodTypeAny, {
|
|
736
736
|
type: "image";
|
|
737
737
|
source: {
|
|
738
|
+
data: string;
|
|
738
739
|
type: "base64";
|
|
739
740
|
media_type: "image/jpeg";
|
|
740
|
-
data: string;
|
|
741
741
|
};
|
|
742
742
|
cache_control?: {
|
|
743
743
|
type: "ephemeral";
|
|
@@ -745,9 +745,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
745
745
|
}, {
|
|
746
746
|
type: "image";
|
|
747
747
|
source: {
|
|
748
|
+
data: string;
|
|
748
749
|
type: "base64";
|
|
749
750
|
media_type: "image/jpeg";
|
|
750
|
-
data: string;
|
|
751
751
|
};
|
|
752
752
|
cache_control?: {
|
|
753
753
|
type: "ephemeral";
|
|
@@ -755,8 +755,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
755
755
|
}>]>, "many">]>;
|
|
756
756
|
}, "strip", z.ZodTypeAny, {
|
|
757
757
|
content: string | ({
|
|
758
|
-
type: "text";
|
|
759
758
|
text: string;
|
|
759
|
+
type: "text";
|
|
760
760
|
cache_control?: {
|
|
761
761
|
type: "ephemeral";
|
|
762
762
|
} | undefined;
|
|
@@ -769,8 +769,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
769
769
|
type: "ephemeral";
|
|
770
770
|
} | undefined;
|
|
771
771
|
} | {
|
|
772
|
-
content: string;
|
|
773
772
|
type: "tool_result";
|
|
773
|
+
content: string;
|
|
774
774
|
tool_use_id: string;
|
|
775
775
|
cache_control?: {
|
|
776
776
|
type: "ephemeral";
|
|
@@ -778,9 +778,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
778
778
|
} | {
|
|
779
779
|
type: "image";
|
|
780
780
|
source: {
|
|
781
|
+
data: string;
|
|
781
782
|
type: "base64";
|
|
782
783
|
media_type: "image/jpeg";
|
|
783
|
-
data: string;
|
|
784
784
|
};
|
|
785
785
|
cache_control?: {
|
|
786
786
|
type: "ephemeral";
|
|
@@ -789,8 +789,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
789
789
|
role: "user" | "assistant";
|
|
790
790
|
}, {
|
|
791
791
|
content: string | ({
|
|
792
|
-
type: "text";
|
|
793
792
|
text: string;
|
|
793
|
+
type: "text";
|
|
794
794
|
cache_control?: {
|
|
795
795
|
type: "ephemeral";
|
|
796
796
|
} | undefined;
|
|
@@ -803,8 +803,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
803
803
|
type: "ephemeral";
|
|
804
804
|
} | undefined;
|
|
805
805
|
} | {
|
|
806
|
-
content: string;
|
|
807
806
|
type: "tool_result";
|
|
807
|
+
content: string;
|
|
808
808
|
tool_use_id: string;
|
|
809
809
|
cache_control?: {
|
|
810
810
|
type: "ephemeral";
|
|
@@ -812,9 +812,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
812
812
|
} | {
|
|
813
813
|
type: "image";
|
|
814
814
|
source: {
|
|
815
|
+
data: string;
|
|
815
816
|
type: "base64";
|
|
816
817
|
media_type: "image/jpeg";
|
|
817
|
-
data: string;
|
|
818
818
|
};
|
|
819
819
|
cache_control?: {
|
|
820
820
|
type: "ephemeral";
|
|
@@ -853,8 +853,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
853
853
|
};
|
|
854
854
|
messageHistory: {
|
|
855
855
|
content: string | ({
|
|
856
|
-
type: "text";
|
|
857
856
|
text: string;
|
|
857
|
+
type: "text";
|
|
858
858
|
cache_control?: {
|
|
859
859
|
type: "ephemeral";
|
|
860
860
|
} | undefined;
|
|
@@ -867,8 +867,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
867
867
|
type: "ephemeral";
|
|
868
868
|
} | undefined;
|
|
869
869
|
} | {
|
|
870
|
-
content: string;
|
|
871
870
|
type: "tool_result";
|
|
871
|
+
content: string;
|
|
872
872
|
tool_use_id: string;
|
|
873
873
|
cache_control?: {
|
|
874
874
|
type: "ephemeral";
|
|
@@ -876,9 +876,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
876
876
|
} | {
|
|
877
877
|
type: "image";
|
|
878
878
|
source: {
|
|
879
|
+
data: string;
|
|
879
880
|
type: "base64";
|
|
880
881
|
media_type: "image/jpeg";
|
|
881
|
-
data: string;
|
|
882
882
|
};
|
|
883
883
|
cache_control?: {
|
|
884
884
|
type: "ephemeral";
|
|
@@ -917,8 +917,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
917
917
|
};
|
|
918
918
|
messageHistory: {
|
|
919
919
|
content: string | ({
|
|
920
|
-
type: "text";
|
|
921
920
|
text: string;
|
|
921
|
+
type: "text";
|
|
922
922
|
cache_control?: {
|
|
923
923
|
type: "ephemeral";
|
|
924
924
|
} | undefined;
|
|
@@ -931,8 +931,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
931
931
|
type: "ephemeral";
|
|
932
932
|
} | undefined;
|
|
933
933
|
} | {
|
|
934
|
-
content: string;
|
|
935
934
|
type: "tool_result";
|
|
935
|
+
content: string;
|
|
936
936
|
tool_use_id: string;
|
|
937
937
|
cache_control?: {
|
|
938
938
|
type: "ephemeral";
|
|
@@ -940,9 +940,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
940
940
|
} | {
|
|
941
941
|
type: "image";
|
|
942
942
|
source: {
|
|
943
|
+
data: string;
|
|
943
944
|
type: "base64";
|
|
944
945
|
media_type: "image/jpeg";
|
|
945
|
-
data: string;
|
|
946
946
|
};
|
|
947
947
|
cache_control?: {
|
|
948
948
|
type: "ephemeral";
|
|
@@ -1000,8 +1000,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1000
1000
|
};
|
|
1001
1001
|
messageHistory: {
|
|
1002
1002
|
content: string | ({
|
|
1003
|
-
type: "text";
|
|
1004
1003
|
text: string;
|
|
1004
|
+
type: "text";
|
|
1005
1005
|
cache_control?: {
|
|
1006
1006
|
type: "ephemeral";
|
|
1007
1007
|
} | undefined;
|
|
@@ -1014,8 +1014,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1014
1014
|
type: "ephemeral";
|
|
1015
1015
|
} | undefined;
|
|
1016
1016
|
} | {
|
|
1017
|
-
content: string;
|
|
1018
1017
|
type: "tool_result";
|
|
1018
|
+
content: string;
|
|
1019
1019
|
tool_use_id: string;
|
|
1020
1020
|
cache_control?: {
|
|
1021
1021
|
type: "ephemeral";
|
|
@@ -1023,9 +1023,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1023
1023
|
} | {
|
|
1024
1024
|
type: "image";
|
|
1025
1025
|
source: {
|
|
1026
|
+
data: string;
|
|
1026
1027
|
type: "base64";
|
|
1027
1028
|
media_type: "image/jpeg";
|
|
1028
|
-
data: string;
|
|
1029
1029
|
};
|
|
1030
1030
|
cache_control?: {
|
|
1031
1031
|
type: "ephemeral";
|
|
@@ -1076,8 +1076,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1076
1076
|
};
|
|
1077
1077
|
messageHistory: {
|
|
1078
1078
|
content: string | ({
|
|
1079
|
-
type: "text";
|
|
1080
1079
|
text: string;
|
|
1080
|
+
type: "text";
|
|
1081
1081
|
cache_control?: {
|
|
1082
1082
|
type: "ephemeral";
|
|
1083
1083
|
} | undefined;
|
|
@@ -1090,8 +1090,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1090
1090
|
type: "ephemeral";
|
|
1091
1091
|
} | undefined;
|
|
1092
1092
|
} | {
|
|
1093
|
-
content: string;
|
|
1094
1093
|
type: "tool_result";
|
|
1094
|
+
content: string;
|
|
1095
1095
|
tool_use_id: string;
|
|
1096
1096
|
cache_control?: {
|
|
1097
1097
|
type: "ephemeral";
|
|
@@ -1099,9 +1099,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1099
1099
|
} | {
|
|
1100
1100
|
type: "image";
|
|
1101
1101
|
source: {
|
|
1102
|
+
data: string;
|
|
1102
1103
|
type: "base64";
|
|
1103
1104
|
media_type: "image/jpeg";
|
|
1104
|
-
data: string;
|
|
1105
1105
|
};
|
|
1106
1106
|
cache_control?: {
|
|
1107
1107
|
type: "ephemeral";
|
|
@@ -1334,7 +1334,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1334
1334
|
authToken?: string | undefined;
|
|
1335
1335
|
}>]>;
|
|
1336
1336
|
}, "strip", z.ZodTypeAny, {
|
|
1337
|
-
type: "action";
|
|
1338
1337
|
data: {
|
|
1339
1338
|
type: "user-input";
|
|
1340
1339
|
fileContext: {
|
|
@@ -1368,8 +1367,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1368
1367
|
userInputId: string;
|
|
1369
1368
|
messages: {
|
|
1370
1369
|
content: string | ({
|
|
1371
|
-
type: "text";
|
|
1372
1370
|
text: string;
|
|
1371
|
+
type: "text";
|
|
1373
1372
|
cache_control?: {
|
|
1374
1373
|
type: "ephemeral";
|
|
1375
1374
|
} | undefined;
|
|
@@ -1382,8 +1381,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1382
1381
|
type: "ephemeral";
|
|
1383
1382
|
} | undefined;
|
|
1384
1383
|
} | {
|
|
1385
|
-
content: string;
|
|
1386
1384
|
type: "tool_result";
|
|
1385
|
+
content: string;
|
|
1387
1386
|
tool_use_id: string;
|
|
1388
1387
|
cache_control?: {
|
|
1389
1388
|
type: "ephemeral";
|
|
@@ -1391,9 +1390,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1391
1390
|
} | {
|
|
1392
1391
|
type: "image";
|
|
1393
1392
|
source: {
|
|
1393
|
+
data: string;
|
|
1394
1394
|
type: "base64";
|
|
1395
1395
|
media_type: "image/jpeg";
|
|
1396
|
-
data: string;
|
|
1397
1396
|
};
|
|
1398
1397
|
cache_control?: {
|
|
1399
1398
|
type: "ephemeral";
|
|
@@ -1403,8 +1402,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1403
1402
|
}[];
|
|
1404
1403
|
changesAlreadyApplied: {
|
|
1405
1404
|
path: string;
|
|
1406
|
-
content: string;
|
|
1407
1405
|
type: "file" | "patch";
|
|
1406
|
+
content: string;
|
|
1408
1407
|
}[];
|
|
1409
1408
|
costMode: "max" | "lite" | "normal";
|
|
1410
1409
|
authToken?: string | undefined;
|
|
@@ -1444,8 +1443,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1444
1443
|
};
|
|
1445
1444
|
messageHistory: {
|
|
1446
1445
|
content: string | ({
|
|
1447
|
-
type: "text";
|
|
1448
1446
|
text: string;
|
|
1447
|
+
type: "text";
|
|
1449
1448
|
cache_control?: {
|
|
1450
1449
|
type: "ephemeral";
|
|
1451
1450
|
} | undefined;
|
|
@@ -1458,8 +1457,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1458
1457
|
type: "ephemeral";
|
|
1459
1458
|
} | undefined;
|
|
1460
1459
|
} | {
|
|
1461
|
-
content: string;
|
|
1462
1460
|
type: "tool_result";
|
|
1461
|
+
content: string;
|
|
1463
1462
|
tool_use_id: string;
|
|
1464
1463
|
cache_control?: {
|
|
1465
1464
|
type: "ephemeral";
|
|
@@ -1467,9 +1466,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1467
1466
|
} | {
|
|
1468
1467
|
type: "image";
|
|
1469
1468
|
source: {
|
|
1469
|
+
data: string;
|
|
1470
1470
|
type: "base64";
|
|
1471
1471
|
media_type: "image/jpeg";
|
|
1472
|
-
data: string;
|
|
1473
1472
|
};
|
|
1474
1473
|
cache_control?: {
|
|
1475
1474
|
type: "ephemeral";
|
|
@@ -1530,9 +1529,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1530
1529
|
stagedChanges: string;
|
|
1531
1530
|
authToken?: string | undefined;
|
|
1532
1531
|
};
|
|
1532
|
+
type: "action";
|
|
1533
1533
|
txid: number;
|
|
1534
1534
|
}, {
|
|
1535
|
-
type: "action";
|
|
1536
1535
|
data: {
|
|
1537
1536
|
type: "user-input";
|
|
1538
1537
|
fileContext: {
|
|
@@ -1566,8 +1565,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1566
1565
|
userInputId: string;
|
|
1567
1566
|
messages: {
|
|
1568
1567
|
content: string | ({
|
|
1569
|
-
type: "text";
|
|
1570
1568
|
text: string;
|
|
1569
|
+
type: "text";
|
|
1571
1570
|
cache_control?: {
|
|
1572
1571
|
type: "ephemeral";
|
|
1573
1572
|
} | undefined;
|
|
@@ -1580,8 +1579,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1580
1579
|
type: "ephemeral";
|
|
1581
1580
|
} | undefined;
|
|
1582
1581
|
} | {
|
|
1583
|
-
content: string;
|
|
1584
1582
|
type: "tool_result";
|
|
1583
|
+
content: string;
|
|
1585
1584
|
tool_use_id: string;
|
|
1586
1585
|
cache_control?: {
|
|
1587
1586
|
type: "ephemeral";
|
|
@@ -1589,9 +1588,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1589
1588
|
} | {
|
|
1590
1589
|
type: "image";
|
|
1591
1590
|
source: {
|
|
1591
|
+
data: string;
|
|
1592
1592
|
type: "base64";
|
|
1593
1593
|
media_type: "image/jpeg";
|
|
1594
|
-
data: string;
|
|
1595
1594
|
};
|
|
1596
1595
|
cache_control?: {
|
|
1597
1596
|
type: "ephemeral";
|
|
@@ -1601,8 +1600,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1601
1600
|
}[];
|
|
1602
1601
|
changesAlreadyApplied: {
|
|
1603
1602
|
path: string;
|
|
1604
|
-
content: string;
|
|
1605
1603
|
type: "file" | "patch";
|
|
1604
|
+
content: string;
|
|
1606
1605
|
}[];
|
|
1607
1606
|
authToken?: string | undefined;
|
|
1608
1607
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
@@ -1641,8 +1640,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1641
1640
|
};
|
|
1642
1641
|
messageHistory: {
|
|
1643
1642
|
content: string | ({
|
|
1644
|
-
type: "text";
|
|
1645
1643
|
text: string;
|
|
1644
|
+
type: "text";
|
|
1646
1645
|
cache_control?: {
|
|
1647
1646
|
type: "ephemeral";
|
|
1648
1647
|
} | undefined;
|
|
@@ -1655,8 +1654,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1655
1654
|
type: "ephemeral";
|
|
1656
1655
|
} | undefined;
|
|
1657
1656
|
} | {
|
|
1658
|
-
content: string;
|
|
1659
1657
|
type: "tool_result";
|
|
1658
|
+
content: string;
|
|
1660
1659
|
tool_use_id: string;
|
|
1661
1660
|
cache_control?: {
|
|
1662
1661
|
type: "ephemeral";
|
|
@@ -1664,9 +1663,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1664
1663
|
} | {
|
|
1665
1664
|
type: "image";
|
|
1666
1665
|
source: {
|
|
1666
|
+
data: string;
|
|
1667
1667
|
type: "base64";
|
|
1668
1668
|
media_type: "image/jpeg";
|
|
1669
|
-
data: string;
|
|
1670
1669
|
};
|
|
1671
1670
|
cache_control?: {
|
|
1672
1671
|
type: "ephemeral";
|
|
@@ -1728,6 +1727,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1728
1727
|
stagedChanges: string;
|
|
1729
1728
|
authToken?: string | undefined;
|
|
1730
1729
|
};
|
|
1730
|
+
type: "action";
|
|
1731
1731
|
txid: number;
|
|
1732
1732
|
}>;
|
|
1733
1733
|
};
|
|
@@ -1797,14 +1797,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1797
1797
|
type: "ephemeral";
|
|
1798
1798
|
}>>;
|
|
1799
1799
|
}, "strip", z.ZodTypeAny, {
|
|
1800
|
-
type: "text";
|
|
1801
1800
|
text: string;
|
|
1801
|
+
type: "text";
|
|
1802
1802
|
cache_control?: {
|
|
1803
1803
|
type: "ephemeral";
|
|
1804
1804
|
} | undefined;
|
|
1805
1805
|
}, {
|
|
1806
|
-
type: "text";
|
|
1807
1806
|
text: string;
|
|
1807
|
+
type: "text";
|
|
1808
1808
|
cache_control?: {
|
|
1809
1809
|
type: "ephemeral";
|
|
1810
1810
|
} | undefined;
|
|
@@ -1848,15 +1848,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1848
1848
|
type: "ephemeral";
|
|
1849
1849
|
}>>;
|
|
1850
1850
|
}, "strip", z.ZodTypeAny, {
|
|
1851
|
-
content: string;
|
|
1852
1851
|
type: "tool_result";
|
|
1852
|
+
content: string;
|
|
1853
1853
|
tool_use_id: string;
|
|
1854
1854
|
cache_control?: {
|
|
1855
1855
|
type: "ephemeral";
|
|
1856
1856
|
} | undefined;
|
|
1857
1857
|
}, {
|
|
1858
|
-
content: string;
|
|
1859
1858
|
type: "tool_result";
|
|
1859
|
+
content: string;
|
|
1860
1860
|
tool_use_id: string;
|
|
1861
1861
|
cache_control?: {
|
|
1862
1862
|
type: "ephemeral";
|
|
@@ -1868,13 +1868,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1868
1868
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
1869
1869
|
data: z.ZodString;
|
|
1870
1870
|
}, "strip", z.ZodTypeAny, {
|
|
1871
|
+
data: string;
|
|
1871
1872
|
type: "base64";
|
|
1872
1873
|
media_type: "image/jpeg";
|
|
1873
|
-
data: string;
|
|
1874
1874
|
}, {
|
|
1875
|
+
data: string;
|
|
1875
1876
|
type: "base64";
|
|
1876
1877
|
media_type: "image/jpeg";
|
|
1877
|
-
data: string;
|
|
1878
1878
|
}>;
|
|
1879
1879
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1880
1880
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -1886,9 +1886,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1886
1886
|
}, "strip", z.ZodTypeAny, {
|
|
1887
1887
|
type: "image";
|
|
1888
1888
|
source: {
|
|
1889
|
+
data: string;
|
|
1889
1890
|
type: "base64";
|
|
1890
1891
|
media_type: "image/jpeg";
|
|
1891
|
-
data: string;
|
|
1892
1892
|
};
|
|
1893
1893
|
cache_control?: {
|
|
1894
1894
|
type: "ephemeral";
|
|
@@ -1896,9 +1896,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1896
1896
|
}, {
|
|
1897
1897
|
type: "image";
|
|
1898
1898
|
source: {
|
|
1899
|
+
data: string;
|
|
1899
1900
|
type: "base64";
|
|
1900
1901
|
media_type: "image/jpeg";
|
|
1901
|
-
data: string;
|
|
1902
1902
|
};
|
|
1903
1903
|
cache_control?: {
|
|
1904
1904
|
type: "ephemeral";
|
|
@@ -1906,8 +1906,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1906
1906
|
}>]>, "many">]>;
|
|
1907
1907
|
}, "strip", z.ZodTypeAny, {
|
|
1908
1908
|
content: string | ({
|
|
1909
|
-
type: "text";
|
|
1910
1909
|
text: string;
|
|
1910
|
+
type: "text";
|
|
1911
1911
|
cache_control?: {
|
|
1912
1912
|
type: "ephemeral";
|
|
1913
1913
|
} | undefined;
|
|
@@ -1920,8 +1920,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1920
1920
|
type: "ephemeral";
|
|
1921
1921
|
} | undefined;
|
|
1922
1922
|
} | {
|
|
1923
|
-
content: string;
|
|
1924
1923
|
type: "tool_result";
|
|
1924
|
+
content: string;
|
|
1925
1925
|
tool_use_id: string;
|
|
1926
1926
|
cache_control?: {
|
|
1927
1927
|
type: "ephemeral";
|
|
@@ -1929,9 +1929,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1929
1929
|
} | {
|
|
1930
1930
|
type: "image";
|
|
1931
1931
|
source: {
|
|
1932
|
+
data: string;
|
|
1932
1933
|
type: "base64";
|
|
1933
1934
|
media_type: "image/jpeg";
|
|
1934
|
-
data: string;
|
|
1935
1935
|
};
|
|
1936
1936
|
cache_control?: {
|
|
1937
1937
|
type: "ephemeral";
|
|
@@ -1940,8 +1940,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1940
1940
|
role: "user" | "assistant";
|
|
1941
1941
|
}, {
|
|
1942
1942
|
content: string | ({
|
|
1943
|
-
type: "text";
|
|
1944
1943
|
text: string;
|
|
1944
|
+
type: "text";
|
|
1945
1945
|
cache_control?: {
|
|
1946
1946
|
type: "ephemeral";
|
|
1947
1947
|
} | undefined;
|
|
@@ -1954,8 +1954,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1954
1954
|
type: "ephemeral";
|
|
1955
1955
|
} | undefined;
|
|
1956
1956
|
} | {
|
|
1957
|
-
content: string;
|
|
1958
1957
|
type: "tool_result";
|
|
1958
|
+
content: string;
|
|
1959
1959
|
tool_use_id: string;
|
|
1960
1960
|
cache_control?: {
|
|
1961
1961
|
type: "ephemeral";
|
|
@@ -1963,9 +1963,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1963
1963
|
} | {
|
|
1964
1964
|
type: "image";
|
|
1965
1965
|
source: {
|
|
1966
|
+
data: string;
|
|
1966
1967
|
type: "base64";
|
|
1967
1968
|
media_type: "image/jpeg";
|
|
1968
|
-
data: string;
|
|
1969
1969
|
};
|
|
1970
1970
|
cache_control?: {
|
|
1971
1971
|
type: "ephemeral";
|
|
@@ -2088,12 +2088,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2088
2088
|
content: z.ZodString;
|
|
2089
2089
|
}, "strip", z.ZodTypeAny, {
|
|
2090
2090
|
path: string;
|
|
2091
|
-
content: string;
|
|
2092
2091
|
type: "file" | "patch";
|
|
2092
|
+
content: string;
|
|
2093
2093
|
}, {
|
|
2094
2094
|
path: string;
|
|
2095
|
-
content: string;
|
|
2096
2095
|
type: "file" | "patch";
|
|
2096
|
+
content: string;
|
|
2097
2097
|
}>, "many">;
|
|
2098
2098
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
2099
2099
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2129,8 +2129,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2129
2129
|
userInputId: string;
|
|
2130
2130
|
messages: {
|
|
2131
2131
|
content: string | ({
|
|
2132
|
-
type: "text";
|
|
2133
2132
|
text: string;
|
|
2133
|
+
type: "text";
|
|
2134
2134
|
cache_control?: {
|
|
2135
2135
|
type: "ephemeral";
|
|
2136
2136
|
} | undefined;
|
|
@@ -2143,8 +2143,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2143
2143
|
type: "ephemeral";
|
|
2144
2144
|
} | undefined;
|
|
2145
2145
|
} | {
|
|
2146
|
-
content: string;
|
|
2147
2146
|
type: "tool_result";
|
|
2147
|
+
content: string;
|
|
2148
2148
|
tool_use_id: string;
|
|
2149
2149
|
cache_control?: {
|
|
2150
2150
|
type: "ephemeral";
|
|
@@ -2152,9 +2152,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2152
2152
|
} | {
|
|
2153
2153
|
type: "image";
|
|
2154
2154
|
source: {
|
|
2155
|
+
data: string;
|
|
2155
2156
|
type: "base64";
|
|
2156
2157
|
media_type: "image/jpeg";
|
|
2157
|
-
data: string;
|
|
2158
2158
|
};
|
|
2159
2159
|
cache_control?: {
|
|
2160
2160
|
type: "ephemeral";
|
|
@@ -2164,8 +2164,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2164
2164
|
}[];
|
|
2165
2165
|
changesAlreadyApplied: {
|
|
2166
2166
|
path: string;
|
|
2167
|
-
content: string;
|
|
2168
2167
|
type: "file" | "patch";
|
|
2168
|
+
content: string;
|
|
2169
2169
|
}[];
|
|
2170
2170
|
costMode: "max" | "lite" | "normal";
|
|
2171
2171
|
authToken?: string | undefined;
|
|
@@ -2202,8 +2202,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2202
2202
|
userInputId: string;
|
|
2203
2203
|
messages: {
|
|
2204
2204
|
content: string | ({
|
|
2205
|
-
type: "text";
|
|
2206
2205
|
text: string;
|
|
2206
|
+
type: "text";
|
|
2207
2207
|
cache_control?: {
|
|
2208
2208
|
type: "ephemeral";
|
|
2209
2209
|
} | undefined;
|
|
@@ -2216,8 +2216,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2216
2216
|
type: "ephemeral";
|
|
2217
2217
|
} | undefined;
|
|
2218
2218
|
} | {
|
|
2219
|
-
content: string;
|
|
2220
2219
|
type: "tool_result";
|
|
2220
|
+
content: string;
|
|
2221
2221
|
tool_use_id: string;
|
|
2222
2222
|
cache_control?: {
|
|
2223
2223
|
type: "ephemeral";
|
|
@@ -2225,9 +2225,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2225
2225
|
} | {
|
|
2226
2226
|
type: "image";
|
|
2227
2227
|
source: {
|
|
2228
|
+
data: string;
|
|
2228
2229
|
type: "base64";
|
|
2229
2230
|
media_type: "image/jpeg";
|
|
2230
|
-
data: string;
|
|
2231
2231
|
};
|
|
2232
2232
|
cache_control?: {
|
|
2233
2233
|
type: "ephemeral";
|
|
@@ -2237,8 +2237,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2237
2237
|
}[];
|
|
2238
2238
|
changesAlreadyApplied: {
|
|
2239
2239
|
path: string;
|
|
2240
|
-
content: string;
|
|
2241
2240
|
type: "file" | "patch";
|
|
2241
|
+
content: string;
|
|
2242
2242
|
}[];
|
|
2243
2243
|
authToken?: string | undefined;
|
|
2244
2244
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
@@ -2373,14 +2373,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2373
2373
|
type: "ephemeral";
|
|
2374
2374
|
}>>;
|
|
2375
2375
|
}, "strip", z.ZodTypeAny, {
|
|
2376
|
-
type: "text";
|
|
2377
2376
|
text: string;
|
|
2377
|
+
type: "text";
|
|
2378
2378
|
cache_control?: {
|
|
2379
2379
|
type: "ephemeral";
|
|
2380
2380
|
} | undefined;
|
|
2381
2381
|
}, {
|
|
2382
|
-
type: "text";
|
|
2383
2382
|
text: string;
|
|
2383
|
+
type: "text";
|
|
2384
2384
|
cache_control?: {
|
|
2385
2385
|
type: "ephemeral";
|
|
2386
2386
|
} | undefined;
|
|
@@ -2424,15 +2424,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2424
2424
|
type: "ephemeral";
|
|
2425
2425
|
}>>;
|
|
2426
2426
|
}, "strip", z.ZodTypeAny, {
|
|
2427
|
-
content: string;
|
|
2428
2427
|
type: "tool_result";
|
|
2428
|
+
content: string;
|
|
2429
2429
|
tool_use_id: string;
|
|
2430
2430
|
cache_control?: {
|
|
2431
2431
|
type: "ephemeral";
|
|
2432
2432
|
} | undefined;
|
|
2433
2433
|
}, {
|
|
2434
|
-
content: string;
|
|
2435
2434
|
type: "tool_result";
|
|
2435
|
+
content: string;
|
|
2436
2436
|
tool_use_id: string;
|
|
2437
2437
|
cache_control?: {
|
|
2438
2438
|
type: "ephemeral";
|
|
@@ -2444,13 +2444,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2444
2444
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
2445
2445
|
data: z.ZodString;
|
|
2446
2446
|
}, "strip", z.ZodTypeAny, {
|
|
2447
|
+
data: string;
|
|
2447
2448
|
type: "base64";
|
|
2448
2449
|
media_type: "image/jpeg";
|
|
2449
|
-
data: string;
|
|
2450
2450
|
}, {
|
|
2451
|
+
data: string;
|
|
2451
2452
|
type: "base64";
|
|
2452
2453
|
media_type: "image/jpeg";
|
|
2453
|
-
data: string;
|
|
2454
2454
|
}>;
|
|
2455
2455
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2456
2456
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -2462,9 +2462,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2462
2462
|
}, "strip", z.ZodTypeAny, {
|
|
2463
2463
|
type: "image";
|
|
2464
2464
|
source: {
|
|
2465
|
+
data: string;
|
|
2465
2466
|
type: "base64";
|
|
2466
2467
|
media_type: "image/jpeg";
|
|
2467
|
-
data: string;
|
|
2468
2468
|
};
|
|
2469
2469
|
cache_control?: {
|
|
2470
2470
|
type: "ephemeral";
|
|
@@ -2472,9 +2472,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2472
2472
|
}, {
|
|
2473
2473
|
type: "image";
|
|
2474
2474
|
source: {
|
|
2475
|
+
data: string;
|
|
2475
2476
|
type: "base64";
|
|
2476
2477
|
media_type: "image/jpeg";
|
|
2477
|
-
data: string;
|
|
2478
2478
|
};
|
|
2479
2479
|
cache_control?: {
|
|
2480
2480
|
type: "ephemeral";
|
|
@@ -2482,8 +2482,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2482
2482
|
}>]>, "many">]>;
|
|
2483
2483
|
}, "strip", z.ZodTypeAny, {
|
|
2484
2484
|
content: string | ({
|
|
2485
|
-
type: "text";
|
|
2486
2485
|
text: string;
|
|
2486
|
+
type: "text";
|
|
2487
2487
|
cache_control?: {
|
|
2488
2488
|
type: "ephemeral";
|
|
2489
2489
|
} | undefined;
|
|
@@ -2496,8 +2496,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2496
2496
|
type: "ephemeral";
|
|
2497
2497
|
} | undefined;
|
|
2498
2498
|
} | {
|
|
2499
|
-
content: string;
|
|
2500
2499
|
type: "tool_result";
|
|
2500
|
+
content: string;
|
|
2501
2501
|
tool_use_id: string;
|
|
2502
2502
|
cache_control?: {
|
|
2503
2503
|
type: "ephemeral";
|
|
@@ -2505,9 +2505,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2505
2505
|
} | {
|
|
2506
2506
|
type: "image";
|
|
2507
2507
|
source: {
|
|
2508
|
+
data: string;
|
|
2508
2509
|
type: "base64";
|
|
2509
2510
|
media_type: "image/jpeg";
|
|
2510
|
-
data: string;
|
|
2511
2511
|
};
|
|
2512
2512
|
cache_control?: {
|
|
2513
2513
|
type: "ephemeral";
|
|
@@ -2516,8 +2516,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2516
2516
|
role: "user" | "assistant";
|
|
2517
2517
|
}, {
|
|
2518
2518
|
content: string | ({
|
|
2519
|
-
type: "text";
|
|
2520
2519
|
text: string;
|
|
2520
|
+
type: "text";
|
|
2521
2521
|
cache_control?: {
|
|
2522
2522
|
type: "ephemeral";
|
|
2523
2523
|
} | undefined;
|
|
@@ -2530,8 +2530,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2530
2530
|
type: "ephemeral";
|
|
2531
2531
|
} | undefined;
|
|
2532
2532
|
} | {
|
|
2533
|
-
content: string;
|
|
2534
2533
|
type: "tool_result";
|
|
2534
|
+
content: string;
|
|
2535
2535
|
tool_use_id: string;
|
|
2536
2536
|
cache_control?: {
|
|
2537
2537
|
type: "ephemeral";
|
|
@@ -2539,9 +2539,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2539
2539
|
} | {
|
|
2540
2540
|
type: "image";
|
|
2541
2541
|
source: {
|
|
2542
|
+
data: string;
|
|
2542
2543
|
type: "base64";
|
|
2543
2544
|
media_type: "image/jpeg";
|
|
2544
|
-
data: string;
|
|
2545
2545
|
};
|
|
2546
2546
|
cache_control?: {
|
|
2547
2547
|
type: "ephemeral";
|
|
@@ -2580,8 +2580,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2580
2580
|
};
|
|
2581
2581
|
messageHistory: {
|
|
2582
2582
|
content: string | ({
|
|
2583
|
-
type: "text";
|
|
2584
2583
|
text: string;
|
|
2584
|
+
type: "text";
|
|
2585
2585
|
cache_control?: {
|
|
2586
2586
|
type: "ephemeral";
|
|
2587
2587
|
} | undefined;
|
|
@@ -2594,8 +2594,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2594
2594
|
type: "ephemeral";
|
|
2595
2595
|
} | undefined;
|
|
2596
2596
|
} | {
|
|
2597
|
-
content: string;
|
|
2598
2597
|
type: "tool_result";
|
|
2598
|
+
content: string;
|
|
2599
2599
|
tool_use_id: string;
|
|
2600
2600
|
cache_control?: {
|
|
2601
2601
|
type: "ephemeral";
|
|
@@ -2603,9 +2603,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2603
2603
|
} | {
|
|
2604
2604
|
type: "image";
|
|
2605
2605
|
source: {
|
|
2606
|
+
data: string;
|
|
2606
2607
|
type: "base64";
|
|
2607
2608
|
media_type: "image/jpeg";
|
|
2608
|
-
data: string;
|
|
2609
2609
|
};
|
|
2610
2610
|
cache_control?: {
|
|
2611
2611
|
type: "ephemeral";
|
|
@@ -2644,8 +2644,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2644
2644
|
};
|
|
2645
2645
|
messageHistory: {
|
|
2646
2646
|
content: string | ({
|
|
2647
|
-
type: "text";
|
|
2648
2647
|
text: string;
|
|
2648
|
+
type: "text";
|
|
2649
2649
|
cache_control?: {
|
|
2650
2650
|
type: "ephemeral";
|
|
2651
2651
|
} | undefined;
|
|
@@ -2658,8 +2658,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2658
2658
|
type: "ephemeral";
|
|
2659
2659
|
} | undefined;
|
|
2660
2660
|
} | {
|
|
2661
|
-
content: string;
|
|
2662
2661
|
type: "tool_result";
|
|
2662
|
+
content: string;
|
|
2663
2663
|
tool_use_id: string;
|
|
2664
2664
|
cache_control?: {
|
|
2665
2665
|
type: "ephemeral";
|
|
@@ -2667,9 +2667,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2667
2667
|
} | {
|
|
2668
2668
|
type: "image";
|
|
2669
2669
|
source: {
|
|
2670
|
+
data: string;
|
|
2670
2671
|
type: "base64";
|
|
2671
2672
|
media_type: "image/jpeg";
|
|
2672
|
-
data: string;
|
|
2673
2673
|
};
|
|
2674
2674
|
cache_control?: {
|
|
2675
2675
|
type: "ephemeral";
|
|
@@ -2727,8 +2727,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2727
2727
|
};
|
|
2728
2728
|
messageHistory: {
|
|
2729
2729
|
content: string | ({
|
|
2730
|
-
type: "text";
|
|
2731
2730
|
text: string;
|
|
2731
|
+
type: "text";
|
|
2732
2732
|
cache_control?: {
|
|
2733
2733
|
type: "ephemeral";
|
|
2734
2734
|
} | undefined;
|
|
@@ -2741,8 +2741,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2741
2741
|
type: "ephemeral";
|
|
2742
2742
|
} | undefined;
|
|
2743
2743
|
} | {
|
|
2744
|
-
content: string;
|
|
2745
2744
|
type: "tool_result";
|
|
2745
|
+
content: string;
|
|
2746
2746
|
tool_use_id: string;
|
|
2747
2747
|
cache_control?: {
|
|
2748
2748
|
type: "ephemeral";
|
|
@@ -2750,9 +2750,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2750
2750
|
} | {
|
|
2751
2751
|
type: "image";
|
|
2752
2752
|
source: {
|
|
2753
|
+
data: string;
|
|
2753
2754
|
type: "base64";
|
|
2754
2755
|
media_type: "image/jpeg";
|
|
2755
|
-
data: string;
|
|
2756
2756
|
};
|
|
2757
2757
|
cache_control?: {
|
|
2758
2758
|
type: "ephemeral";
|
|
@@ -2803,8 +2803,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2803
2803
|
};
|
|
2804
2804
|
messageHistory: {
|
|
2805
2805
|
content: string | ({
|
|
2806
|
-
type: "text";
|
|
2807
2806
|
text: string;
|
|
2807
|
+
type: "text";
|
|
2808
2808
|
cache_control?: {
|
|
2809
2809
|
type: "ephemeral";
|
|
2810
2810
|
} | undefined;
|
|
@@ -2817,8 +2817,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2817
2817
|
type: "ephemeral";
|
|
2818
2818
|
} | undefined;
|
|
2819
2819
|
} | {
|
|
2820
|
-
content: string;
|
|
2821
2820
|
type: "tool_result";
|
|
2821
|
+
content: string;
|
|
2822
2822
|
tool_use_id: string;
|
|
2823
2823
|
cache_control?: {
|
|
2824
2824
|
type: "ephemeral";
|
|
@@ -2826,9 +2826,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2826
2826
|
} | {
|
|
2827
2827
|
type: "image";
|
|
2828
2828
|
source: {
|
|
2829
|
+
data: string;
|
|
2829
2830
|
type: "base64";
|
|
2830
2831
|
media_type: "image/jpeg";
|
|
2831
|
-
data: string;
|
|
2832
2832
|
};
|
|
2833
2833
|
cache_control?: {
|
|
2834
2834
|
type: "ephemeral";
|
|
@@ -3061,7 +3061,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3061
3061
|
authToken?: string | undefined;
|
|
3062
3062
|
}>]>;
|
|
3063
3063
|
}, "strip", z.ZodTypeAny, {
|
|
3064
|
-
type: "action";
|
|
3065
3064
|
data: {
|
|
3066
3065
|
type: "user-input";
|
|
3067
3066
|
fileContext: {
|
|
@@ -3095,8 +3094,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3095
3094
|
userInputId: string;
|
|
3096
3095
|
messages: {
|
|
3097
3096
|
content: string | ({
|
|
3098
|
-
type: "text";
|
|
3099
3097
|
text: string;
|
|
3098
|
+
type: "text";
|
|
3100
3099
|
cache_control?: {
|
|
3101
3100
|
type: "ephemeral";
|
|
3102
3101
|
} | undefined;
|
|
@@ -3109,8 +3108,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3109
3108
|
type: "ephemeral";
|
|
3110
3109
|
} | undefined;
|
|
3111
3110
|
} | {
|
|
3112
|
-
content: string;
|
|
3113
3111
|
type: "tool_result";
|
|
3112
|
+
content: string;
|
|
3114
3113
|
tool_use_id: string;
|
|
3115
3114
|
cache_control?: {
|
|
3116
3115
|
type: "ephemeral";
|
|
@@ -3118,9 +3117,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3118
3117
|
} | {
|
|
3119
3118
|
type: "image";
|
|
3120
3119
|
source: {
|
|
3120
|
+
data: string;
|
|
3121
3121
|
type: "base64";
|
|
3122
3122
|
media_type: "image/jpeg";
|
|
3123
|
-
data: string;
|
|
3124
3123
|
};
|
|
3125
3124
|
cache_control?: {
|
|
3126
3125
|
type: "ephemeral";
|
|
@@ -3130,8 +3129,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3130
3129
|
}[];
|
|
3131
3130
|
changesAlreadyApplied: {
|
|
3132
3131
|
path: string;
|
|
3133
|
-
content: string;
|
|
3134
3132
|
type: "file" | "patch";
|
|
3133
|
+
content: string;
|
|
3135
3134
|
}[];
|
|
3136
3135
|
costMode: "max" | "lite" | "normal";
|
|
3137
3136
|
authToken?: string | undefined;
|
|
@@ -3171,8 +3170,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3171
3170
|
};
|
|
3172
3171
|
messageHistory: {
|
|
3173
3172
|
content: string | ({
|
|
3174
|
-
type: "text";
|
|
3175
3173
|
text: string;
|
|
3174
|
+
type: "text";
|
|
3176
3175
|
cache_control?: {
|
|
3177
3176
|
type: "ephemeral";
|
|
3178
3177
|
} | undefined;
|
|
@@ -3185,8 +3184,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3185
3184
|
type: "ephemeral";
|
|
3186
3185
|
} | undefined;
|
|
3187
3186
|
} | {
|
|
3188
|
-
content: string;
|
|
3189
3187
|
type: "tool_result";
|
|
3188
|
+
content: string;
|
|
3190
3189
|
tool_use_id: string;
|
|
3191
3190
|
cache_control?: {
|
|
3192
3191
|
type: "ephemeral";
|
|
@@ -3194,9 +3193,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3194
3193
|
} | {
|
|
3195
3194
|
type: "image";
|
|
3196
3195
|
source: {
|
|
3196
|
+
data: string;
|
|
3197
3197
|
type: "base64";
|
|
3198
3198
|
media_type: "image/jpeg";
|
|
3199
|
-
data: string;
|
|
3200
3199
|
};
|
|
3201
3200
|
cache_control?: {
|
|
3202
3201
|
type: "ephemeral";
|
|
@@ -3257,9 +3256,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3257
3256
|
stagedChanges: string;
|
|
3258
3257
|
authToken?: string | undefined;
|
|
3259
3258
|
};
|
|
3259
|
+
type: "action";
|
|
3260
3260
|
txid: number;
|
|
3261
3261
|
}, {
|
|
3262
|
-
type: "action";
|
|
3263
3262
|
data: {
|
|
3264
3263
|
type: "user-input";
|
|
3265
3264
|
fileContext: {
|
|
@@ -3293,8 +3292,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3293
3292
|
userInputId: string;
|
|
3294
3293
|
messages: {
|
|
3295
3294
|
content: string | ({
|
|
3296
|
-
type: "text";
|
|
3297
3295
|
text: string;
|
|
3296
|
+
type: "text";
|
|
3298
3297
|
cache_control?: {
|
|
3299
3298
|
type: "ephemeral";
|
|
3300
3299
|
} | undefined;
|
|
@@ -3307,8 +3306,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3307
3306
|
type: "ephemeral";
|
|
3308
3307
|
} | undefined;
|
|
3309
3308
|
} | {
|
|
3310
|
-
content: string;
|
|
3311
3309
|
type: "tool_result";
|
|
3310
|
+
content: string;
|
|
3312
3311
|
tool_use_id: string;
|
|
3313
3312
|
cache_control?: {
|
|
3314
3313
|
type: "ephemeral";
|
|
@@ -3316,9 +3315,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3316
3315
|
} | {
|
|
3317
3316
|
type: "image";
|
|
3318
3317
|
source: {
|
|
3318
|
+
data: string;
|
|
3319
3319
|
type: "base64";
|
|
3320
3320
|
media_type: "image/jpeg";
|
|
3321
|
-
data: string;
|
|
3322
3321
|
};
|
|
3323
3322
|
cache_control?: {
|
|
3324
3323
|
type: "ephemeral";
|
|
@@ -3328,8 +3327,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3328
3327
|
}[];
|
|
3329
3328
|
changesAlreadyApplied: {
|
|
3330
3329
|
path: string;
|
|
3331
|
-
content: string;
|
|
3332
3330
|
type: "file" | "patch";
|
|
3331
|
+
content: string;
|
|
3333
3332
|
}[];
|
|
3334
3333
|
authToken?: string | undefined;
|
|
3335
3334
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
@@ -3368,8 +3367,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3368
3367
|
};
|
|
3369
3368
|
messageHistory: {
|
|
3370
3369
|
content: string | ({
|
|
3371
|
-
type: "text";
|
|
3372
3370
|
text: string;
|
|
3371
|
+
type: "text";
|
|
3373
3372
|
cache_control?: {
|
|
3374
3373
|
type: "ephemeral";
|
|
3375
3374
|
} | undefined;
|
|
@@ -3382,8 +3381,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3382
3381
|
type: "ephemeral";
|
|
3383
3382
|
} | undefined;
|
|
3384
3383
|
} | {
|
|
3385
|
-
content: string;
|
|
3386
3384
|
type: "tool_result";
|
|
3385
|
+
content: string;
|
|
3387
3386
|
tool_use_id: string;
|
|
3388
3387
|
cache_control?: {
|
|
3389
3388
|
type: "ephemeral";
|
|
@@ -3391,9 +3390,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3391
3390
|
} | {
|
|
3392
3391
|
type: "image";
|
|
3393
3392
|
source: {
|
|
3393
|
+
data: string;
|
|
3394
3394
|
type: "base64";
|
|
3395
3395
|
media_type: "image/jpeg";
|
|
3396
|
-
data: string;
|
|
3397
3396
|
};
|
|
3398
3397
|
cache_control?: {
|
|
3399
3398
|
type: "ephemeral";
|
|
@@ -3455,6 +3454,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3455
3454
|
stagedChanges: string;
|
|
3456
3455
|
authToken?: string | undefined;
|
|
3457
3456
|
};
|
|
3457
|
+
type: "action";
|
|
3458
3458
|
txid: number;
|
|
3459
3459
|
}>]>;
|
|
3460
3460
|
export type ClientMessageType = keyof typeof CLIENT_MESSAGE_SCHEMAS;
|
|
@@ -3468,13 +3468,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3468
3468
|
}, "strip", z.ZodTypeAny, {
|
|
3469
3469
|
type: "ack";
|
|
3470
3470
|
success: boolean;
|
|
3471
|
-
txid?: number | undefined;
|
|
3472
3471
|
error?: string | undefined;
|
|
3472
|
+
txid?: number | undefined;
|
|
3473
3473
|
}, {
|
|
3474
3474
|
type: "ack";
|
|
3475
3475
|
success: boolean;
|
|
3476
|
-
txid?: number | undefined;
|
|
3477
3476
|
error?: string | undefined;
|
|
3477
|
+
txid?: number | undefined;
|
|
3478
3478
|
}>;
|
|
3479
3479
|
action: z.ZodObject<{
|
|
3480
3480
|
type: z.ZodLiteral<"action">;
|
|
@@ -3500,12 +3500,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3500
3500
|
content: z.ZodString;
|
|
3501
3501
|
}, "strip", z.ZodTypeAny, {
|
|
3502
3502
|
path: string;
|
|
3503
|
-
content: string;
|
|
3504
3503
|
type: "file" | "patch";
|
|
3504
|
+
content: string;
|
|
3505
3505
|
}, {
|
|
3506
3506
|
path: string;
|
|
3507
|
-
content: string;
|
|
3508
3507
|
type: "file" | "patch";
|
|
3508
|
+
content: string;
|
|
3509
3509
|
}>, "many">;
|
|
3510
3510
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3511
3511
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -3513,12 +3513,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3513
3513
|
content: z.ZodString;
|
|
3514
3514
|
}, "strip", z.ZodTypeAny, {
|
|
3515
3515
|
path: string;
|
|
3516
|
-
content: string;
|
|
3517
3516
|
type: "file" | "patch";
|
|
3517
|
+
content: string;
|
|
3518
3518
|
}, {
|
|
3519
3519
|
path: string;
|
|
3520
|
-
content: string;
|
|
3521
3520
|
type: "file" | "patch";
|
|
3521
|
+
content: string;
|
|
3522
3522
|
}>, "many">;
|
|
3523
3523
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3524
3524
|
path: z.ZodString;
|
|
@@ -3543,14 +3543,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3543
3543
|
userInputId: string;
|
|
3544
3544
|
changesAlreadyApplied: {
|
|
3545
3545
|
path: string;
|
|
3546
|
-
content: string;
|
|
3547
3546
|
type: "file" | "patch";
|
|
3547
|
+
content: string;
|
|
3548
3548
|
}[];
|
|
3549
3549
|
response: string;
|
|
3550
3550
|
changes: {
|
|
3551
3551
|
path: string;
|
|
3552
|
-
content: string;
|
|
3553
3552
|
type: "file" | "patch";
|
|
3553
|
+
content: string;
|
|
3554
3554
|
}[];
|
|
3555
3555
|
addedFileVersions: {
|
|
3556
3556
|
path: string;
|
|
@@ -3568,14 +3568,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3568
3568
|
userInputId: string;
|
|
3569
3569
|
changesAlreadyApplied: {
|
|
3570
3570
|
path: string;
|
|
3571
|
-
content: string;
|
|
3572
3571
|
type: "file" | "patch";
|
|
3572
|
+
content: string;
|
|
3573
3573
|
}[];
|
|
3574
3574
|
response: string;
|
|
3575
3575
|
changes: {
|
|
3576
3576
|
path: string;
|
|
3577
|
-
content: string;
|
|
3578
3577
|
type: "file" | "patch";
|
|
3578
|
+
content: string;
|
|
3579
3579
|
}[];
|
|
3580
3580
|
addedFileVersions: {
|
|
3581
3581
|
path: string;
|
|
@@ -3715,14 +3715,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3715
3715
|
type: "ephemeral";
|
|
3716
3716
|
}>>;
|
|
3717
3717
|
}, "strip", z.ZodTypeAny, {
|
|
3718
|
-
type: "text";
|
|
3719
3718
|
text: string;
|
|
3719
|
+
type: "text";
|
|
3720
3720
|
cache_control?: {
|
|
3721
3721
|
type: "ephemeral";
|
|
3722
3722
|
} | undefined;
|
|
3723
3723
|
}, {
|
|
3724
|
-
type: "text";
|
|
3725
3724
|
text: string;
|
|
3725
|
+
type: "text";
|
|
3726
3726
|
cache_control?: {
|
|
3727
3727
|
type: "ephemeral";
|
|
3728
3728
|
} | undefined;
|
|
@@ -3766,15 +3766,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3766
3766
|
type: "ephemeral";
|
|
3767
3767
|
}>>;
|
|
3768
3768
|
}, "strip", z.ZodTypeAny, {
|
|
3769
|
-
content: string;
|
|
3770
3769
|
type: "tool_result";
|
|
3770
|
+
content: string;
|
|
3771
3771
|
tool_use_id: string;
|
|
3772
3772
|
cache_control?: {
|
|
3773
3773
|
type: "ephemeral";
|
|
3774
3774
|
} | undefined;
|
|
3775
3775
|
}, {
|
|
3776
|
-
content: string;
|
|
3777
3776
|
type: "tool_result";
|
|
3777
|
+
content: string;
|
|
3778
3778
|
tool_use_id: string;
|
|
3779
3779
|
cache_control?: {
|
|
3780
3780
|
type: "ephemeral";
|
|
@@ -3786,13 +3786,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3786
3786
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
3787
3787
|
data: z.ZodString;
|
|
3788
3788
|
}, "strip", z.ZodTypeAny, {
|
|
3789
|
+
data: string;
|
|
3789
3790
|
type: "base64";
|
|
3790
3791
|
media_type: "image/jpeg";
|
|
3791
|
-
data: string;
|
|
3792
3792
|
}, {
|
|
3793
|
+
data: string;
|
|
3793
3794
|
type: "base64";
|
|
3794
3795
|
media_type: "image/jpeg";
|
|
3795
|
-
data: string;
|
|
3796
3796
|
}>;
|
|
3797
3797
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3798
3798
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -3804,9 +3804,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3804
3804
|
}, "strip", z.ZodTypeAny, {
|
|
3805
3805
|
type: "image";
|
|
3806
3806
|
source: {
|
|
3807
|
+
data: string;
|
|
3807
3808
|
type: "base64";
|
|
3808
3809
|
media_type: "image/jpeg";
|
|
3809
|
-
data: string;
|
|
3810
3810
|
};
|
|
3811
3811
|
cache_control?: {
|
|
3812
3812
|
type: "ephemeral";
|
|
@@ -3814,9 +3814,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3814
3814
|
}, {
|
|
3815
3815
|
type: "image";
|
|
3816
3816
|
source: {
|
|
3817
|
+
data: string;
|
|
3817
3818
|
type: "base64";
|
|
3818
3819
|
media_type: "image/jpeg";
|
|
3819
|
-
data: string;
|
|
3820
3820
|
};
|
|
3821
3821
|
cache_control?: {
|
|
3822
3822
|
type: "ephemeral";
|
|
@@ -3824,8 +3824,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3824
3824
|
}>]>, "many">]>;
|
|
3825
3825
|
}, "strip", z.ZodTypeAny, {
|
|
3826
3826
|
content: string | ({
|
|
3827
|
-
type: "text";
|
|
3828
3827
|
text: string;
|
|
3828
|
+
type: "text";
|
|
3829
3829
|
cache_control?: {
|
|
3830
3830
|
type: "ephemeral";
|
|
3831
3831
|
} | undefined;
|
|
@@ -3838,8 +3838,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3838
3838
|
type: "ephemeral";
|
|
3839
3839
|
} | undefined;
|
|
3840
3840
|
} | {
|
|
3841
|
-
content: string;
|
|
3842
3841
|
type: "tool_result";
|
|
3842
|
+
content: string;
|
|
3843
3843
|
tool_use_id: string;
|
|
3844
3844
|
cache_control?: {
|
|
3845
3845
|
type: "ephemeral";
|
|
@@ -3847,9 +3847,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3847
3847
|
} | {
|
|
3848
3848
|
type: "image";
|
|
3849
3849
|
source: {
|
|
3850
|
+
data: string;
|
|
3850
3851
|
type: "base64";
|
|
3851
3852
|
media_type: "image/jpeg";
|
|
3852
|
-
data: string;
|
|
3853
3853
|
};
|
|
3854
3854
|
cache_control?: {
|
|
3855
3855
|
type: "ephemeral";
|
|
@@ -3858,8 +3858,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3858
3858
|
role: "user" | "assistant";
|
|
3859
3859
|
}, {
|
|
3860
3860
|
content: string | ({
|
|
3861
|
-
type: "text";
|
|
3862
3861
|
text: string;
|
|
3862
|
+
type: "text";
|
|
3863
3863
|
cache_control?: {
|
|
3864
3864
|
type: "ephemeral";
|
|
3865
3865
|
} | undefined;
|
|
@@ -3872,8 +3872,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3872
3872
|
type: "ephemeral";
|
|
3873
3873
|
} | undefined;
|
|
3874
3874
|
} | {
|
|
3875
|
-
content: string;
|
|
3876
3875
|
type: "tool_result";
|
|
3876
|
+
content: string;
|
|
3877
3877
|
tool_use_id: string;
|
|
3878
3878
|
cache_control?: {
|
|
3879
3879
|
type: "ephemeral";
|
|
@@ -3881,9 +3881,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3881
3881
|
} | {
|
|
3882
3882
|
type: "image";
|
|
3883
3883
|
source: {
|
|
3884
|
+
data: string;
|
|
3884
3885
|
type: "base64";
|
|
3885
3886
|
media_type: "image/jpeg";
|
|
3886
|
-
data: string;
|
|
3887
3887
|
};
|
|
3888
3888
|
cache_control?: {
|
|
3889
3889
|
type: "ephemeral";
|
|
@@ -3922,8 +3922,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3922
3922
|
};
|
|
3923
3923
|
messageHistory: {
|
|
3924
3924
|
content: string | ({
|
|
3925
|
-
type: "text";
|
|
3926
3925
|
text: string;
|
|
3926
|
+
type: "text";
|
|
3927
3927
|
cache_control?: {
|
|
3928
3928
|
type: "ephemeral";
|
|
3929
3929
|
} | undefined;
|
|
@@ -3936,8 +3936,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3936
3936
|
type: "ephemeral";
|
|
3937
3937
|
} | undefined;
|
|
3938
3938
|
} | {
|
|
3939
|
-
content: string;
|
|
3940
3939
|
type: "tool_result";
|
|
3940
|
+
content: string;
|
|
3941
3941
|
tool_use_id: string;
|
|
3942
3942
|
cache_control?: {
|
|
3943
3943
|
type: "ephemeral";
|
|
@@ -3945,9 +3945,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3945
3945
|
} | {
|
|
3946
3946
|
type: "image";
|
|
3947
3947
|
source: {
|
|
3948
|
+
data: string;
|
|
3948
3949
|
type: "base64";
|
|
3949
3950
|
media_type: "image/jpeg";
|
|
3950
|
-
data: string;
|
|
3951
3951
|
};
|
|
3952
3952
|
cache_control?: {
|
|
3953
3953
|
type: "ephemeral";
|
|
@@ -3986,8 +3986,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3986
3986
|
};
|
|
3987
3987
|
messageHistory: {
|
|
3988
3988
|
content: string | ({
|
|
3989
|
-
type: "text";
|
|
3990
3989
|
text: string;
|
|
3990
|
+
type: "text";
|
|
3991
3991
|
cache_control?: {
|
|
3992
3992
|
type: "ephemeral";
|
|
3993
3993
|
} | undefined;
|
|
@@ -4000,8 +4000,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4000
4000
|
type: "ephemeral";
|
|
4001
4001
|
} | undefined;
|
|
4002
4002
|
} | {
|
|
4003
|
-
content: string;
|
|
4004
4003
|
type: "tool_result";
|
|
4004
|
+
content: string;
|
|
4005
4005
|
tool_use_id: string;
|
|
4006
4006
|
cache_control?: {
|
|
4007
4007
|
type: "ephemeral";
|
|
@@ -4009,9 +4009,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4009
4009
|
} | {
|
|
4010
4010
|
type: "image";
|
|
4011
4011
|
source: {
|
|
4012
|
+
data: string;
|
|
4012
4013
|
type: "base64";
|
|
4013
4014
|
media_type: "image/jpeg";
|
|
4014
|
-
data: string;
|
|
4015
4015
|
};
|
|
4016
4016
|
cache_control?: {
|
|
4017
4017
|
type: "ephemeral";
|
|
@@ -4026,12 +4026,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4026
4026
|
id: z.ZodString;
|
|
4027
4027
|
}, "strip", z.ZodTypeAny, {
|
|
4028
4028
|
name: string;
|
|
4029
|
-
parameters: Record<string, string>;
|
|
4030
4029
|
id: string;
|
|
4030
|
+
parameters: Record<string, string>;
|
|
4031
4031
|
}, {
|
|
4032
4032
|
name: string;
|
|
4033
|
-
parameters: Record<string, string>;
|
|
4034
4033
|
id: string;
|
|
4034
|
+
parameters: Record<string, string>;
|
|
4035
4035
|
}>, "many">;
|
|
4036
4036
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
4037
4037
|
name: z.ZodString;
|
|
@@ -4087,8 +4087,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4087
4087
|
};
|
|
4088
4088
|
messageHistory: {
|
|
4089
4089
|
content: string | ({
|
|
4090
|
-
type: "text";
|
|
4091
4090
|
text: string;
|
|
4091
|
+
type: "text";
|
|
4092
4092
|
cache_control?: {
|
|
4093
4093
|
type: "ephemeral";
|
|
4094
4094
|
} | undefined;
|
|
@@ -4101,8 +4101,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4101
4101
|
type: "ephemeral";
|
|
4102
4102
|
} | undefined;
|
|
4103
4103
|
} | {
|
|
4104
|
-
content: string;
|
|
4105
4104
|
type: "tool_result";
|
|
4105
|
+
content: string;
|
|
4106
4106
|
tool_use_id: string;
|
|
4107
4107
|
cache_control?: {
|
|
4108
4108
|
type: "ephemeral";
|
|
@@ -4110,9 +4110,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4110
4110
|
} | {
|
|
4111
4111
|
type: "image";
|
|
4112
4112
|
source: {
|
|
4113
|
+
data: string;
|
|
4113
4114
|
type: "base64";
|
|
4114
4115
|
media_type: "image/jpeg";
|
|
4115
|
-
data: string;
|
|
4116
4116
|
};
|
|
4117
4117
|
cache_control?: {
|
|
4118
4118
|
type: "ephemeral";
|
|
@@ -4128,8 +4128,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4128
4128
|
}[];
|
|
4129
4129
|
toolCalls: {
|
|
4130
4130
|
name: string;
|
|
4131
|
-
parameters: Record<string, string>;
|
|
4132
4131
|
id: string;
|
|
4132
|
+
parameters: Record<string, string>;
|
|
4133
4133
|
}[];
|
|
4134
4134
|
usage?: number | undefined;
|
|
4135
4135
|
limit?: number | undefined;
|
|
@@ -4171,8 +4171,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4171
4171
|
};
|
|
4172
4172
|
messageHistory: {
|
|
4173
4173
|
content: string | ({
|
|
4174
|
-
type: "text";
|
|
4175
4174
|
text: string;
|
|
4175
|
+
type: "text";
|
|
4176
4176
|
cache_control?: {
|
|
4177
4177
|
type: "ephemeral";
|
|
4178
4178
|
} | undefined;
|
|
@@ -4185,8 +4185,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4185
4185
|
type: "ephemeral";
|
|
4186
4186
|
} | undefined;
|
|
4187
4187
|
} | {
|
|
4188
|
-
content: string;
|
|
4189
4188
|
type: "tool_result";
|
|
4189
|
+
content: string;
|
|
4190
4190
|
tool_use_id: string;
|
|
4191
4191
|
cache_control?: {
|
|
4192
4192
|
type: "ephemeral";
|
|
@@ -4194,9 +4194,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4194
4194
|
} | {
|
|
4195
4195
|
type: "image";
|
|
4196
4196
|
source: {
|
|
4197
|
+
data: string;
|
|
4197
4198
|
type: "base64";
|
|
4198
4199
|
media_type: "image/jpeg";
|
|
4199
|
-
data: string;
|
|
4200
4200
|
};
|
|
4201
4201
|
cache_control?: {
|
|
4202
4202
|
type: "ephemeral";
|
|
@@ -4212,8 +4212,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4212
4212
|
}[];
|
|
4213
4213
|
toolCalls: {
|
|
4214
4214
|
name: string;
|
|
4215
|
-
parameters: Record<string, string>;
|
|
4216
4215
|
id: string;
|
|
4216
|
+
parameters: Record<string, string>;
|
|
4217
4217
|
}[];
|
|
4218
4218
|
usage?: number | undefined;
|
|
4219
4219
|
limit?: number | undefined;
|
|
@@ -4256,12 +4256,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4256
4256
|
content: z.ZodString;
|
|
4257
4257
|
}, "strip", z.ZodTypeAny, {
|
|
4258
4258
|
path: string;
|
|
4259
|
-
content: string;
|
|
4260
4259
|
type: "file" | "patch";
|
|
4260
|
+
content: string;
|
|
4261
4261
|
}, {
|
|
4262
4262
|
path: string;
|
|
4263
|
-
content: string;
|
|
4264
4263
|
type: "file" | "patch";
|
|
4264
|
+
content: string;
|
|
4265
4265
|
}>, "many">;
|
|
4266
4266
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
4267
4267
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -4269,12 +4269,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4269
4269
|
content: z.ZodString;
|
|
4270
4270
|
}, "strip", z.ZodTypeAny, {
|
|
4271
4271
|
path: string;
|
|
4272
|
-
content: string;
|
|
4273
4272
|
type: "file" | "patch";
|
|
4273
|
+
content: string;
|
|
4274
4274
|
}, {
|
|
4275
4275
|
path: string;
|
|
4276
|
-
content: string;
|
|
4277
4276
|
type: "file" | "patch";
|
|
4277
|
+
content: string;
|
|
4278
4278
|
}>, "many">;
|
|
4279
4279
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
4280
4280
|
path: z.ZodString;
|
|
@@ -4288,23 +4288,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4288
4288
|
}>, "many">;
|
|
4289
4289
|
resetFileVersions: z.ZodBoolean;
|
|
4290
4290
|
}, "strip", z.ZodTypeAny, {
|
|
4291
|
-
type: "tool-call";
|
|
4292
4291
|
data: {
|
|
4293
4292
|
name: string;
|
|
4294
4293
|
id: string;
|
|
4295
4294
|
input: Record<string, any>;
|
|
4296
4295
|
};
|
|
4296
|
+
type: "tool-call";
|
|
4297
4297
|
userInputId: string;
|
|
4298
4298
|
changesAlreadyApplied: {
|
|
4299
4299
|
path: string;
|
|
4300
|
-
content: string;
|
|
4301
4300
|
type: "file" | "patch";
|
|
4301
|
+
content: string;
|
|
4302
4302
|
}[];
|
|
4303
4303
|
response: string;
|
|
4304
4304
|
changes: {
|
|
4305
4305
|
path: string;
|
|
4306
|
-
content: string;
|
|
4307
4306
|
type: "file" | "patch";
|
|
4307
|
+
content: string;
|
|
4308
4308
|
}[];
|
|
4309
4309
|
addedFileVersions: {
|
|
4310
4310
|
path: string;
|
|
@@ -4312,23 +4312,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4312
4312
|
}[];
|
|
4313
4313
|
resetFileVersions: boolean;
|
|
4314
4314
|
}, {
|
|
4315
|
-
type: "tool-call";
|
|
4316
4315
|
data: {
|
|
4317
4316
|
name: string;
|
|
4318
4317
|
id: string;
|
|
4319
4318
|
input: Record<string, any>;
|
|
4320
4319
|
};
|
|
4320
|
+
type: "tool-call";
|
|
4321
4321
|
userInputId: string;
|
|
4322
4322
|
changesAlreadyApplied: {
|
|
4323
4323
|
path: string;
|
|
4324
|
-
content: string;
|
|
4325
4324
|
type: "file" | "patch";
|
|
4325
|
+
content: string;
|
|
4326
4326
|
}[];
|
|
4327
4327
|
response: string;
|
|
4328
4328
|
changes: {
|
|
4329
4329
|
path: string;
|
|
4330
|
-
content: string;
|
|
4331
4330
|
type: "file" | "patch";
|
|
4331
|
+
content: string;
|
|
4332
4332
|
}[];
|
|
4333
4333
|
addedFileVersions: {
|
|
4334
4334
|
path: string;
|
|
@@ -4429,7 +4429,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4429
4429
|
commitMessage: string;
|
|
4430
4430
|
}>]>;
|
|
4431
4431
|
}, "strip", z.ZodTypeAny, {
|
|
4432
|
-
type: "action";
|
|
4433
4432
|
data: {
|
|
4434
4433
|
type: "usage-response";
|
|
4435
4434
|
usage: number;
|
|
@@ -4451,14 +4450,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4451
4450
|
userInputId: string;
|
|
4452
4451
|
changesAlreadyApplied: {
|
|
4453
4452
|
path: string;
|
|
4454
|
-
content: string;
|
|
4455
4453
|
type: "file" | "patch";
|
|
4454
|
+
content: string;
|
|
4456
4455
|
}[];
|
|
4457
4456
|
response: string;
|
|
4458
4457
|
changes: {
|
|
4459
4458
|
path: string;
|
|
4460
|
-
content: string;
|
|
4461
4459
|
type: "file" | "patch";
|
|
4460
|
+
content: string;
|
|
4462
4461
|
}[];
|
|
4463
4462
|
addedFileVersions: {
|
|
4464
4463
|
path: string;
|
|
@@ -4505,8 +4504,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4505
4504
|
};
|
|
4506
4505
|
messageHistory: {
|
|
4507
4506
|
content: string | ({
|
|
4508
|
-
type: "text";
|
|
4509
4507
|
text: string;
|
|
4508
|
+
type: "text";
|
|
4510
4509
|
cache_control?: {
|
|
4511
4510
|
type: "ephemeral";
|
|
4512
4511
|
} | undefined;
|
|
@@ -4519,8 +4518,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4519
4518
|
type: "ephemeral";
|
|
4520
4519
|
} | undefined;
|
|
4521
4520
|
} | {
|
|
4522
|
-
content: string;
|
|
4523
4521
|
type: "tool_result";
|
|
4522
|
+
content: string;
|
|
4524
4523
|
tool_use_id: string;
|
|
4525
4524
|
cache_control?: {
|
|
4526
4525
|
type: "ephemeral";
|
|
@@ -4528,9 +4527,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4528
4527
|
} | {
|
|
4529
4528
|
type: "image";
|
|
4530
4529
|
source: {
|
|
4530
|
+
data: string;
|
|
4531
4531
|
type: "base64";
|
|
4532
4532
|
media_type: "image/jpeg";
|
|
4533
|
-
data: string;
|
|
4534
4533
|
};
|
|
4535
4534
|
cache_control?: {
|
|
4536
4535
|
type: "ephemeral";
|
|
@@ -4546,8 +4545,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4546
4545
|
}[];
|
|
4547
4546
|
toolCalls: {
|
|
4548
4547
|
name: string;
|
|
4549
|
-
parameters: Record<string, string>;
|
|
4550
4548
|
id: string;
|
|
4549
|
+
parameters: Record<string, string>;
|
|
4551
4550
|
}[];
|
|
4552
4551
|
usage?: number | undefined;
|
|
4553
4552
|
limit?: number | undefined;
|
|
@@ -4564,23 +4563,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4564
4563
|
requestId: string;
|
|
4565
4564
|
filePaths: string[];
|
|
4566
4565
|
} | {
|
|
4567
|
-
type: "tool-call";
|
|
4568
4566
|
data: {
|
|
4569
4567
|
name: string;
|
|
4570
4568
|
id: string;
|
|
4571
4569
|
input: Record<string, any>;
|
|
4572
4570
|
};
|
|
4571
|
+
type: "tool-call";
|
|
4573
4572
|
userInputId: string;
|
|
4574
4573
|
changesAlreadyApplied: {
|
|
4575
4574
|
path: string;
|
|
4576
|
-
content: string;
|
|
4577
4575
|
type: "file" | "patch";
|
|
4576
|
+
content: string;
|
|
4578
4577
|
}[];
|
|
4579
4578
|
response: string;
|
|
4580
4579
|
changes: {
|
|
4581
4580
|
path: string;
|
|
4582
|
-
content: string;
|
|
4583
4581
|
type: "file" | "patch";
|
|
4582
|
+
content: string;
|
|
4584
4583
|
}[];
|
|
4585
4584
|
addedFileVersions: {
|
|
4586
4585
|
path: string;
|
|
@@ -4602,8 +4601,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4602
4601
|
type: "commit-message-response";
|
|
4603
4602
|
commitMessage: string;
|
|
4604
4603
|
};
|
|
4605
|
-
}, {
|
|
4606
4604
|
type: "action";
|
|
4605
|
+
}, {
|
|
4607
4606
|
data: {
|
|
4608
4607
|
type: "usage-response";
|
|
4609
4608
|
usage: number;
|
|
@@ -4625,14 +4624,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4625
4624
|
userInputId: string;
|
|
4626
4625
|
changesAlreadyApplied: {
|
|
4627
4626
|
path: string;
|
|
4628
|
-
content: string;
|
|
4629
4627
|
type: "file" | "patch";
|
|
4628
|
+
content: string;
|
|
4630
4629
|
}[];
|
|
4631
4630
|
response: string;
|
|
4632
4631
|
changes: {
|
|
4633
4632
|
path: string;
|
|
4634
|
-
content: string;
|
|
4635
4633
|
type: "file" | "patch";
|
|
4634
|
+
content: string;
|
|
4636
4635
|
}[];
|
|
4637
4636
|
addedFileVersions: {
|
|
4638
4637
|
path: string;
|
|
@@ -4679,8 +4678,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4679
4678
|
};
|
|
4680
4679
|
messageHistory: {
|
|
4681
4680
|
content: string | ({
|
|
4682
|
-
type: "text";
|
|
4683
4681
|
text: string;
|
|
4682
|
+
type: "text";
|
|
4684
4683
|
cache_control?: {
|
|
4685
4684
|
type: "ephemeral";
|
|
4686
4685
|
} | undefined;
|
|
@@ -4693,8 +4692,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4693
4692
|
type: "ephemeral";
|
|
4694
4693
|
} | undefined;
|
|
4695
4694
|
} | {
|
|
4696
|
-
content: string;
|
|
4697
4695
|
type: "tool_result";
|
|
4696
|
+
content: string;
|
|
4698
4697
|
tool_use_id: string;
|
|
4699
4698
|
cache_control?: {
|
|
4700
4699
|
type: "ephemeral";
|
|
@@ -4702,9 +4701,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4702
4701
|
} | {
|
|
4703
4702
|
type: "image";
|
|
4704
4703
|
source: {
|
|
4704
|
+
data: string;
|
|
4705
4705
|
type: "base64";
|
|
4706
4706
|
media_type: "image/jpeg";
|
|
4707
|
-
data: string;
|
|
4708
4707
|
};
|
|
4709
4708
|
cache_control?: {
|
|
4710
4709
|
type: "ephemeral";
|
|
@@ -4720,8 +4719,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4720
4719
|
}[];
|
|
4721
4720
|
toolCalls: {
|
|
4722
4721
|
name: string;
|
|
4723
|
-
parameters: Record<string, string>;
|
|
4724
4722
|
id: string;
|
|
4723
|
+
parameters: Record<string, string>;
|
|
4725
4724
|
}[];
|
|
4726
4725
|
usage?: number | undefined;
|
|
4727
4726
|
limit?: number | undefined;
|
|
@@ -4738,23 +4737,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4738
4737
|
requestId: string;
|
|
4739
4738
|
filePaths: string[];
|
|
4740
4739
|
} | {
|
|
4741
|
-
type: "tool-call";
|
|
4742
4740
|
data: {
|
|
4743
4741
|
name: string;
|
|
4744
4742
|
id: string;
|
|
4745
4743
|
input: Record<string, any>;
|
|
4746
4744
|
};
|
|
4745
|
+
type: "tool-call";
|
|
4747
4746
|
userInputId: string;
|
|
4748
4747
|
changesAlreadyApplied: {
|
|
4749
4748
|
path: string;
|
|
4750
|
-
content: string;
|
|
4751
4749
|
type: "file" | "patch";
|
|
4750
|
+
content: string;
|
|
4752
4751
|
}[];
|
|
4753
4752
|
response: string;
|
|
4754
4753
|
changes: {
|
|
4755
4754
|
path: string;
|
|
4756
|
-
content: string;
|
|
4757
4755
|
type: "file" | "patch";
|
|
4756
|
+
content: string;
|
|
4758
4757
|
}[];
|
|
4759
4758
|
addedFileVersions: {
|
|
4760
4759
|
path: string;
|
|
@@ -4776,6 +4775,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4776
4775
|
type: "commit-message-response";
|
|
4777
4776
|
commitMessage: string;
|
|
4778
4777
|
};
|
|
4778
|
+
type: "action";
|
|
4779
4779
|
}>;
|
|
4780
4780
|
};
|
|
4781
4781
|
export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
@@ -4786,13 +4786,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4786
4786
|
}, "strip", z.ZodTypeAny, {
|
|
4787
4787
|
type: "ack";
|
|
4788
4788
|
success: boolean;
|
|
4789
|
-
txid?: number | undefined;
|
|
4790
4789
|
error?: string | undefined;
|
|
4790
|
+
txid?: number | undefined;
|
|
4791
4791
|
}, {
|
|
4792
4792
|
type: "ack";
|
|
4793
4793
|
success: boolean;
|
|
4794
|
-
txid?: number | undefined;
|
|
4795
4794
|
error?: string | undefined;
|
|
4795
|
+
txid?: number | undefined;
|
|
4796
4796
|
}>, z.ZodObject<{
|
|
4797
4797
|
type: z.ZodLiteral<"action">;
|
|
4798
4798
|
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -4817,12 +4817,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4817
4817
|
content: z.ZodString;
|
|
4818
4818
|
}, "strip", z.ZodTypeAny, {
|
|
4819
4819
|
path: string;
|
|
4820
|
-
content: string;
|
|
4821
4820
|
type: "file" | "patch";
|
|
4821
|
+
content: string;
|
|
4822
4822
|
}, {
|
|
4823
4823
|
path: string;
|
|
4824
|
-
content: string;
|
|
4825
4824
|
type: "file" | "patch";
|
|
4825
|
+
content: string;
|
|
4826
4826
|
}>, "many">;
|
|
4827
4827
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
4828
4828
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -4830,12 +4830,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4830
4830
|
content: z.ZodString;
|
|
4831
4831
|
}, "strip", z.ZodTypeAny, {
|
|
4832
4832
|
path: string;
|
|
4833
|
-
content: string;
|
|
4834
4833
|
type: "file" | "patch";
|
|
4834
|
+
content: string;
|
|
4835
4835
|
}, {
|
|
4836
4836
|
path: string;
|
|
4837
|
-
content: string;
|
|
4838
4837
|
type: "file" | "patch";
|
|
4838
|
+
content: string;
|
|
4839
4839
|
}>, "many">;
|
|
4840
4840
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
4841
4841
|
path: z.ZodString;
|
|
@@ -4860,14 +4860,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4860
4860
|
userInputId: string;
|
|
4861
4861
|
changesAlreadyApplied: {
|
|
4862
4862
|
path: string;
|
|
4863
|
-
content: string;
|
|
4864
4863
|
type: "file" | "patch";
|
|
4864
|
+
content: string;
|
|
4865
4865
|
}[];
|
|
4866
4866
|
response: string;
|
|
4867
4867
|
changes: {
|
|
4868
4868
|
path: string;
|
|
4869
|
-
content: string;
|
|
4870
4869
|
type: "file" | "patch";
|
|
4870
|
+
content: string;
|
|
4871
4871
|
}[];
|
|
4872
4872
|
addedFileVersions: {
|
|
4873
4873
|
path: string;
|
|
@@ -4885,14 +4885,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4885
4885
|
userInputId: string;
|
|
4886
4886
|
changesAlreadyApplied: {
|
|
4887
4887
|
path: string;
|
|
4888
|
-
content: string;
|
|
4889
4888
|
type: "file" | "patch";
|
|
4889
|
+
content: string;
|
|
4890
4890
|
}[];
|
|
4891
4891
|
response: string;
|
|
4892
4892
|
changes: {
|
|
4893
4893
|
path: string;
|
|
4894
|
-
content: string;
|
|
4895
4894
|
type: "file" | "patch";
|
|
4895
|
+
content: string;
|
|
4896
4896
|
}[];
|
|
4897
4897
|
addedFileVersions: {
|
|
4898
4898
|
path: string;
|
|
@@ -5032,14 +5032,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5032
5032
|
type: "ephemeral";
|
|
5033
5033
|
}>>;
|
|
5034
5034
|
}, "strip", z.ZodTypeAny, {
|
|
5035
|
-
type: "text";
|
|
5036
5035
|
text: string;
|
|
5036
|
+
type: "text";
|
|
5037
5037
|
cache_control?: {
|
|
5038
5038
|
type: "ephemeral";
|
|
5039
5039
|
} | undefined;
|
|
5040
5040
|
}, {
|
|
5041
|
-
type: "text";
|
|
5042
5041
|
text: string;
|
|
5042
|
+
type: "text";
|
|
5043
5043
|
cache_control?: {
|
|
5044
5044
|
type: "ephemeral";
|
|
5045
5045
|
} | undefined;
|
|
@@ -5083,15 +5083,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5083
5083
|
type: "ephemeral";
|
|
5084
5084
|
}>>;
|
|
5085
5085
|
}, "strip", z.ZodTypeAny, {
|
|
5086
|
-
content: string;
|
|
5087
5086
|
type: "tool_result";
|
|
5087
|
+
content: string;
|
|
5088
5088
|
tool_use_id: string;
|
|
5089
5089
|
cache_control?: {
|
|
5090
5090
|
type: "ephemeral";
|
|
5091
5091
|
} | undefined;
|
|
5092
5092
|
}, {
|
|
5093
|
-
content: string;
|
|
5094
5093
|
type: "tool_result";
|
|
5094
|
+
content: string;
|
|
5095
5095
|
tool_use_id: string;
|
|
5096
5096
|
cache_control?: {
|
|
5097
5097
|
type: "ephemeral";
|
|
@@ -5103,13 +5103,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5103
5103
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
5104
5104
|
data: z.ZodString;
|
|
5105
5105
|
}, "strip", z.ZodTypeAny, {
|
|
5106
|
+
data: string;
|
|
5106
5107
|
type: "base64";
|
|
5107
5108
|
media_type: "image/jpeg";
|
|
5108
|
-
data: string;
|
|
5109
5109
|
}, {
|
|
5110
|
+
data: string;
|
|
5110
5111
|
type: "base64";
|
|
5111
5112
|
media_type: "image/jpeg";
|
|
5112
|
-
data: string;
|
|
5113
5113
|
}>;
|
|
5114
5114
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
5115
5115
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -5121,9 +5121,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5121
5121
|
}, "strip", z.ZodTypeAny, {
|
|
5122
5122
|
type: "image";
|
|
5123
5123
|
source: {
|
|
5124
|
+
data: string;
|
|
5124
5125
|
type: "base64";
|
|
5125
5126
|
media_type: "image/jpeg";
|
|
5126
|
-
data: string;
|
|
5127
5127
|
};
|
|
5128
5128
|
cache_control?: {
|
|
5129
5129
|
type: "ephemeral";
|
|
@@ -5131,9 +5131,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5131
5131
|
}, {
|
|
5132
5132
|
type: "image";
|
|
5133
5133
|
source: {
|
|
5134
|
+
data: string;
|
|
5134
5135
|
type: "base64";
|
|
5135
5136
|
media_type: "image/jpeg";
|
|
5136
|
-
data: string;
|
|
5137
5137
|
};
|
|
5138
5138
|
cache_control?: {
|
|
5139
5139
|
type: "ephemeral";
|
|
@@ -5141,8 +5141,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5141
5141
|
}>]>, "many">]>;
|
|
5142
5142
|
}, "strip", z.ZodTypeAny, {
|
|
5143
5143
|
content: string | ({
|
|
5144
|
-
type: "text";
|
|
5145
5144
|
text: string;
|
|
5145
|
+
type: "text";
|
|
5146
5146
|
cache_control?: {
|
|
5147
5147
|
type: "ephemeral";
|
|
5148
5148
|
} | undefined;
|
|
@@ -5155,8 +5155,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5155
5155
|
type: "ephemeral";
|
|
5156
5156
|
} | undefined;
|
|
5157
5157
|
} | {
|
|
5158
|
-
content: string;
|
|
5159
5158
|
type: "tool_result";
|
|
5159
|
+
content: string;
|
|
5160
5160
|
tool_use_id: string;
|
|
5161
5161
|
cache_control?: {
|
|
5162
5162
|
type: "ephemeral";
|
|
@@ -5164,9 +5164,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5164
5164
|
} | {
|
|
5165
5165
|
type: "image";
|
|
5166
5166
|
source: {
|
|
5167
|
+
data: string;
|
|
5167
5168
|
type: "base64";
|
|
5168
5169
|
media_type: "image/jpeg";
|
|
5169
|
-
data: string;
|
|
5170
5170
|
};
|
|
5171
5171
|
cache_control?: {
|
|
5172
5172
|
type: "ephemeral";
|
|
@@ -5175,8 +5175,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5175
5175
|
role: "user" | "assistant";
|
|
5176
5176
|
}, {
|
|
5177
5177
|
content: string | ({
|
|
5178
|
-
type: "text";
|
|
5179
5178
|
text: string;
|
|
5179
|
+
type: "text";
|
|
5180
5180
|
cache_control?: {
|
|
5181
5181
|
type: "ephemeral";
|
|
5182
5182
|
} | undefined;
|
|
@@ -5189,8 +5189,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5189
5189
|
type: "ephemeral";
|
|
5190
5190
|
} | undefined;
|
|
5191
5191
|
} | {
|
|
5192
|
-
content: string;
|
|
5193
5192
|
type: "tool_result";
|
|
5193
|
+
content: string;
|
|
5194
5194
|
tool_use_id: string;
|
|
5195
5195
|
cache_control?: {
|
|
5196
5196
|
type: "ephemeral";
|
|
@@ -5198,9 +5198,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5198
5198
|
} | {
|
|
5199
5199
|
type: "image";
|
|
5200
5200
|
source: {
|
|
5201
|
+
data: string;
|
|
5201
5202
|
type: "base64";
|
|
5202
5203
|
media_type: "image/jpeg";
|
|
5203
|
-
data: string;
|
|
5204
5204
|
};
|
|
5205
5205
|
cache_control?: {
|
|
5206
5206
|
type: "ephemeral";
|
|
@@ -5239,8 +5239,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5239
5239
|
};
|
|
5240
5240
|
messageHistory: {
|
|
5241
5241
|
content: string | ({
|
|
5242
|
-
type: "text";
|
|
5243
5242
|
text: string;
|
|
5243
|
+
type: "text";
|
|
5244
5244
|
cache_control?: {
|
|
5245
5245
|
type: "ephemeral";
|
|
5246
5246
|
} | undefined;
|
|
@@ -5253,8 +5253,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5253
5253
|
type: "ephemeral";
|
|
5254
5254
|
} | undefined;
|
|
5255
5255
|
} | {
|
|
5256
|
-
content: string;
|
|
5257
5256
|
type: "tool_result";
|
|
5257
|
+
content: string;
|
|
5258
5258
|
tool_use_id: string;
|
|
5259
5259
|
cache_control?: {
|
|
5260
5260
|
type: "ephemeral";
|
|
@@ -5262,9 +5262,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5262
5262
|
} | {
|
|
5263
5263
|
type: "image";
|
|
5264
5264
|
source: {
|
|
5265
|
+
data: string;
|
|
5265
5266
|
type: "base64";
|
|
5266
5267
|
media_type: "image/jpeg";
|
|
5267
|
-
data: string;
|
|
5268
5268
|
};
|
|
5269
5269
|
cache_control?: {
|
|
5270
5270
|
type: "ephemeral";
|
|
@@ -5303,8 +5303,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5303
5303
|
};
|
|
5304
5304
|
messageHistory: {
|
|
5305
5305
|
content: string | ({
|
|
5306
|
-
type: "text";
|
|
5307
5306
|
text: string;
|
|
5307
|
+
type: "text";
|
|
5308
5308
|
cache_control?: {
|
|
5309
5309
|
type: "ephemeral";
|
|
5310
5310
|
} | undefined;
|
|
@@ -5317,8 +5317,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5317
5317
|
type: "ephemeral";
|
|
5318
5318
|
} | undefined;
|
|
5319
5319
|
} | {
|
|
5320
|
-
content: string;
|
|
5321
5320
|
type: "tool_result";
|
|
5321
|
+
content: string;
|
|
5322
5322
|
tool_use_id: string;
|
|
5323
5323
|
cache_control?: {
|
|
5324
5324
|
type: "ephemeral";
|
|
@@ -5326,9 +5326,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5326
5326
|
} | {
|
|
5327
5327
|
type: "image";
|
|
5328
5328
|
source: {
|
|
5329
|
+
data: string;
|
|
5329
5330
|
type: "base64";
|
|
5330
5331
|
media_type: "image/jpeg";
|
|
5331
|
-
data: string;
|
|
5332
5332
|
};
|
|
5333
5333
|
cache_control?: {
|
|
5334
5334
|
type: "ephemeral";
|
|
@@ -5343,12 +5343,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5343
5343
|
id: z.ZodString;
|
|
5344
5344
|
}, "strip", z.ZodTypeAny, {
|
|
5345
5345
|
name: string;
|
|
5346
|
-
parameters: Record<string, string>;
|
|
5347
5346
|
id: string;
|
|
5347
|
+
parameters: Record<string, string>;
|
|
5348
5348
|
}, {
|
|
5349
5349
|
name: string;
|
|
5350
|
-
parameters: Record<string, string>;
|
|
5351
5350
|
id: string;
|
|
5351
|
+
parameters: Record<string, string>;
|
|
5352
5352
|
}>, "many">;
|
|
5353
5353
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
5354
5354
|
name: z.ZodString;
|
|
@@ -5404,8 +5404,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5404
5404
|
};
|
|
5405
5405
|
messageHistory: {
|
|
5406
5406
|
content: string | ({
|
|
5407
|
-
type: "text";
|
|
5408
5407
|
text: string;
|
|
5408
|
+
type: "text";
|
|
5409
5409
|
cache_control?: {
|
|
5410
5410
|
type: "ephemeral";
|
|
5411
5411
|
} | undefined;
|
|
@@ -5418,8 +5418,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5418
5418
|
type: "ephemeral";
|
|
5419
5419
|
} | undefined;
|
|
5420
5420
|
} | {
|
|
5421
|
-
content: string;
|
|
5422
5421
|
type: "tool_result";
|
|
5422
|
+
content: string;
|
|
5423
5423
|
tool_use_id: string;
|
|
5424
5424
|
cache_control?: {
|
|
5425
5425
|
type: "ephemeral";
|
|
@@ -5427,9 +5427,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5427
5427
|
} | {
|
|
5428
5428
|
type: "image";
|
|
5429
5429
|
source: {
|
|
5430
|
+
data: string;
|
|
5430
5431
|
type: "base64";
|
|
5431
5432
|
media_type: "image/jpeg";
|
|
5432
|
-
data: string;
|
|
5433
5433
|
};
|
|
5434
5434
|
cache_control?: {
|
|
5435
5435
|
type: "ephemeral";
|
|
@@ -5445,8 +5445,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5445
5445
|
}[];
|
|
5446
5446
|
toolCalls: {
|
|
5447
5447
|
name: string;
|
|
5448
|
-
parameters: Record<string, string>;
|
|
5449
5448
|
id: string;
|
|
5449
|
+
parameters: Record<string, string>;
|
|
5450
5450
|
}[];
|
|
5451
5451
|
usage?: number | undefined;
|
|
5452
5452
|
limit?: number | undefined;
|
|
@@ -5488,8 +5488,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5488
5488
|
};
|
|
5489
5489
|
messageHistory: {
|
|
5490
5490
|
content: string | ({
|
|
5491
|
-
type: "text";
|
|
5492
5491
|
text: string;
|
|
5492
|
+
type: "text";
|
|
5493
5493
|
cache_control?: {
|
|
5494
5494
|
type: "ephemeral";
|
|
5495
5495
|
} | undefined;
|
|
@@ -5502,8 +5502,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5502
5502
|
type: "ephemeral";
|
|
5503
5503
|
} | undefined;
|
|
5504
5504
|
} | {
|
|
5505
|
-
content: string;
|
|
5506
5505
|
type: "tool_result";
|
|
5506
|
+
content: string;
|
|
5507
5507
|
tool_use_id: string;
|
|
5508
5508
|
cache_control?: {
|
|
5509
5509
|
type: "ephemeral";
|
|
@@ -5511,9 +5511,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5511
5511
|
} | {
|
|
5512
5512
|
type: "image";
|
|
5513
5513
|
source: {
|
|
5514
|
+
data: string;
|
|
5514
5515
|
type: "base64";
|
|
5515
5516
|
media_type: "image/jpeg";
|
|
5516
|
-
data: string;
|
|
5517
5517
|
};
|
|
5518
5518
|
cache_control?: {
|
|
5519
5519
|
type: "ephemeral";
|
|
@@ -5529,8 +5529,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5529
5529
|
}[];
|
|
5530
5530
|
toolCalls: {
|
|
5531
5531
|
name: string;
|
|
5532
|
-
parameters: Record<string, string>;
|
|
5533
5532
|
id: string;
|
|
5533
|
+
parameters: Record<string, string>;
|
|
5534
5534
|
}[];
|
|
5535
5535
|
usage?: number | undefined;
|
|
5536
5536
|
limit?: number | undefined;
|
|
@@ -5573,12 +5573,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5573
5573
|
content: z.ZodString;
|
|
5574
5574
|
}, "strip", z.ZodTypeAny, {
|
|
5575
5575
|
path: string;
|
|
5576
|
-
content: string;
|
|
5577
5576
|
type: "file" | "patch";
|
|
5577
|
+
content: string;
|
|
5578
5578
|
}, {
|
|
5579
5579
|
path: string;
|
|
5580
|
-
content: string;
|
|
5581
5580
|
type: "file" | "patch";
|
|
5581
|
+
content: string;
|
|
5582
5582
|
}>, "many">;
|
|
5583
5583
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
5584
5584
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -5586,12 +5586,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5586
5586
|
content: z.ZodString;
|
|
5587
5587
|
}, "strip", z.ZodTypeAny, {
|
|
5588
5588
|
path: string;
|
|
5589
|
-
content: string;
|
|
5590
5589
|
type: "file" | "patch";
|
|
5590
|
+
content: string;
|
|
5591
5591
|
}, {
|
|
5592
5592
|
path: string;
|
|
5593
|
-
content: string;
|
|
5594
5593
|
type: "file" | "patch";
|
|
5594
|
+
content: string;
|
|
5595
5595
|
}>, "many">;
|
|
5596
5596
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
5597
5597
|
path: z.ZodString;
|
|
@@ -5605,23 +5605,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5605
5605
|
}>, "many">;
|
|
5606
5606
|
resetFileVersions: z.ZodBoolean;
|
|
5607
5607
|
}, "strip", z.ZodTypeAny, {
|
|
5608
|
-
type: "tool-call";
|
|
5609
5608
|
data: {
|
|
5610
5609
|
name: string;
|
|
5611
5610
|
id: string;
|
|
5612
5611
|
input: Record<string, any>;
|
|
5613
5612
|
};
|
|
5613
|
+
type: "tool-call";
|
|
5614
5614
|
userInputId: string;
|
|
5615
5615
|
changesAlreadyApplied: {
|
|
5616
5616
|
path: string;
|
|
5617
|
-
content: string;
|
|
5618
5617
|
type: "file" | "patch";
|
|
5618
|
+
content: string;
|
|
5619
5619
|
}[];
|
|
5620
5620
|
response: string;
|
|
5621
5621
|
changes: {
|
|
5622
5622
|
path: string;
|
|
5623
|
-
content: string;
|
|
5624
5623
|
type: "file" | "patch";
|
|
5624
|
+
content: string;
|
|
5625
5625
|
}[];
|
|
5626
5626
|
addedFileVersions: {
|
|
5627
5627
|
path: string;
|
|
@@ -5629,23 +5629,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5629
5629
|
}[];
|
|
5630
5630
|
resetFileVersions: boolean;
|
|
5631
5631
|
}, {
|
|
5632
|
-
type: "tool-call";
|
|
5633
5632
|
data: {
|
|
5634
5633
|
name: string;
|
|
5635
5634
|
id: string;
|
|
5636
5635
|
input: Record<string, any>;
|
|
5637
5636
|
};
|
|
5637
|
+
type: "tool-call";
|
|
5638
5638
|
userInputId: string;
|
|
5639
5639
|
changesAlreadyApplied: {
|
|
5640
5640
|
path: string;
|
|
5641
|
-
content: string;
|
|
5642
5641
|
type: "file" | "patch";
|
|
5642
|
+
content: string;
|
|
5643
5643
|
}[];
|
|
5644
5644
|
response: string;
|
|
5645
5645
|
changes: {
|
|
5646
5646
|
path: string;
|
|
5647
|
-
content: string;
|
|
5648
5647
|
type: "file" | "patch";
|
|
5648
|
+
content: string;
|
|
5649
5649
|
}[];
|
|
5650
5650
|
addedFileVersions: {
|
|
5651
5651
|
path: string;
|
|
@@ -5746,7 +5746,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5746
5746
|
commitMessage: string;
|
|
5747
5747
|
}>]>;
|
|
5748
5748
|
}, "strip", z.ZodTypeAny, {
|
|
5749
|
-
type: "action";
|
|
5750
5749
|
data: {
|
|
5751
5750
|
type: "usage-response";
|
|
5752
5751
|
usage: number;
|
|
@@ -5768,14 +5767,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5768
5767
|
userInputId: string;
|
|
5769
5768
|
changesAlreadyApplied: {
|
|
5770
5769
|
path: string;
|
|
5771
|
-
content: string;
|
|
5772
5770
|
type: "file" | "patch";
|
|
5771
|
+
content: string;
|
|
5773
5772
|
}[];
|
|
5774
5773
|
response: string;
|
|
5775
5774
|
changes: {
|
|
5776
5775
|
path: string;
|
|
5777
|
-
content: string;
|
|
5778
5776
|
type: "file" | "patch";
|
|
5777
|
+
content: string;
|
|
5779
5778
|
}[];
|
|
5780
5779
|
addedFileVersions: {
|
|
5781
5780
|
path: string;
|
|
@@ -5822,8 +5821,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5822
5821
|
};
|
|
5823
5822
|
messageHistory: {
|
|
5824
5823
|
content: string | ({
|
|
5825
|
-
type: "text";
|
|
5826
5824
|
text: string;
|
|
5825
|
+
type: "text";
|
|
5827
5826
|
cache_control?: {
|
|
5828
5827
|
type: "ephemeral";
|
|
5829
5828
|
} | undefined;
|
|
@@ -5836,8 +5835,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5836
5835
|
type: "ephemeral";
|
|
5837
5836
|
} | undefined;
|
|
5838
5837
|
} | {
|
|
5839
|
-
content: string;
|
|
5840
5838
|
type: "tool_result";
|
|
5839
|
+
content: string;
|
|
5841
5840
|
tool_use_id: string;
|
|
5842
5841
|
cache_control?: {
|
|
5843
5842
|
type: "ephemeral";
|
|
@@ -5845,9 +5844,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5845
5844
|
} | {
|
|
5846
5845
|
type: "image";
|
|
5847
5846
|
source: {
|
|
5847
|
+
data: string;
|
|
5848
5848
|
type: "base64";
|
|
5849
5849
|
media_type: "image/jpeg";
|
|
5850
|
-
data: string;
|
|
5851
5850
|
};
|
|
5852
5851
|
cache_control?: {
|
|
5853
5852
|
type: "ephemeral";
|
|
@@ -5863,8 +5862,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5863
5862
|
}[];
|
|
5864
5863
|
toolCalls: {
|
|
5865
5864
|
name: string;
|
|
5866
|
-
parameters: Record<string, string>;
|
|
5867
5865
|
id: string;
|
|
5866
|
+
parameters: Record<string, string>;
|
|
5868
5867
|
}[];
|
|
5869
5868
|
usage?: number | undefined;
|
|
5870
5869
|
limit?: number | undefined;
|
|
@@ -5881,23 +5880,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5881
5880
|
requestId: string;
|
|
5882
5881
|
filePaths: string[];
|
|
5883
5882
|
} | {
|
|
5884
|
-
type: "tool-call";
|
|
5885
5883
|
data: {
|
|
5886
5884
|
name: string;
|
|
5887
5885
|
id: string;
|
|
5888
5886
|
input: Record<string, any>;
|
|
5889
5887
|
};
|
|
5888
|
+
type: "tool-call";
|
|
5890
5889
|
userInputId: string;
|
|
5891
5890
|
changesAlreadyApplied: {
|
|
5892
5891
|
path: string;
|
|
5893
|
-
content: string;
|
|
5894
5892
|
type: "file" | "patch";
|
|
5893
|
+
content: string;
|
|
5895
5894
|
}[];
|
|
5896
5895
|
response: string;
|
|
5897
5896
|
changes: {
|
|
5898
5897
|
path: string;
|
|
5899
|
-
content: string;
|
|
5900
5898
|
type: "file" | "patch";
|
|
5899
|
+
content: string;
|
|
5901
5900
|
}[];
|
|
5902
5901
|
addedFileVersions: {
|
|
5903
5902
|
path: string;
|
|
@@ -5919,8 +5918,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5919
5918
|
type: "commit-message-response";
|
|
5920
5919
|
commitMessage: string;
|
|
5921
5920
|
};
|
|
5922
|
-
}, {
|
|
5923
5921
|
type: "action";
|
|
5922
|
+
}, {
|
|
5924
5923
|
data: {
|
|
5925
5924
|
type: "usage-response";
|
|
5926
5925
|
usage: number;
|
|
@@ -5942,14 +5941,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5942
5941
|
userInputId: string;
|
|
5943
5942
|
changesAlreadyApplied: {
|
|
5944
5943
|
path: string;
|
|
5945
|
-
content: string;
|
|
5946
5944
|
type: "file" | "patch";
|
|
5945
|
+
content: string;
|
|
5947
5946
|
}[];
|
|
5948
5947
|
response: string;
|
|
5949
5948
|
changes: {
|
|
5950
5949
|
path: string;
|
|
5951
|
-
content: string;
|
|
5952
5950
|
type: "file" | "patch";
|
|
5951
|
+
content: string;
|
|
5953
5952
|
}[];
|
|
5954
5953
|
addedFileVersions: {
|
|
5955
5954
|
path: string;
|
|
@@ -5996,8 +5995,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5996
5995
|
};
|
|
5997
5996
|
messageHistory: {
|
|
5998
5997
|
content: string | ({
|
|
5999
|
-
type: "text";
|
|
6000
5998
|
text: string;
|
|
5999
|
+
type: "text";
|
|
6001
6000
|
cache_control?: {
|
|
6002
6001
|
type: "ephemeral";
|
|
6003
6002
|
} | undefined;
|
|
@@ -6010,8 +6009,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6010
6009
|
type: "ephemeral";
|
|
6011
6010
|
} | undefined;
|
|
6012
6011
|
} | {
|
|
6013
|
-
content: string;
|
|
6014
6012
|
type: "tool_result";
|
|
6013
|
+
content: string;
|
|
6015
6014
|
tool_use_id: string;
|
|
6016
6015
|
cache_control?: {
|
|
6017
6016
|
type: "ephemeral";
|
|
@@ -6019,9 +6018,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6019
6018
|
} | {
|
|
6020
6019
|
type: "image";
|
|
6021
6020
|
source: {
|
|
6021
|
+
data: string;
|
|
6022
6022
|
type: "base64";
|
|
6023
6023
|
media_type: "image/jpeg";
|
|
6024
|
-
data: string;
|
|
6025
6024
|
};
|
|
6026
6025
|
cache_control?: {
|
|
6027
6026
|
type: "ephemeral";
|
|
@@ -6037,8 +6036,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6037
6036
|
}[];
|
|
6038
6037
|
toolCalls: {
|
|
6039
6038
|
name: string;
|
|
6040
|
-
parameters: Record<string, string>;
|
|
6041
6039
|
id: string;
|
|
6040
|
+
parameters: Record<string, string>;
|
|
6042
6041
|
}[];
|
|
6043
6042
|
usage?: number | undefined;
|
|
6044
6043
|
limit?: number | undefined;
|
|
@@ -6055,23 +6054,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6055
6054
|
requestId: string;
|
|
6056
6055
|
filePaths: string[];
|
|
6057
6056
|
} | {
|
|
6058
|
-
type: "tool-call";
|
|
6059
6057
|
data: {
|
|
6060
6058
|
name: string;
|
|
6061
6059
|
id: string;
|
|
6062
6060
|
input: Record<string, any>;
|
|
6063
6061
|
};
|
|
6062
|
+
type: "tool-call";
|
|
6064
6063
|
userInputId: string;
|
|
6065
6064
|
changesAlreadyApplied: {
|
|
6066
6065
|
path: string;
|
|
6067
|
-
content: string;
|
|
6068
6066
|
type: "file" | "patch";
|
|
6067
|
+
content: string;
|
|
6069
6068
|
}[];
|
|
6070
6069
|
response: string;
|
|
6071
6070
|
changes: {
|
|
6072
6071
|
path: string;
|
|
6073
|
-
content: string;
|
|
6074
6072
|
type: "file" | "patch";
|
|
6073
|
+
content: string;
|
|
6075
6074
|
}[];
|
|
6076
6075
|
addedFileVersions: {
|
|
6077
6076
|
path: string;
|
|
@@ -6093,6 +6092,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6093
6092
|
type: "commit-message-response";
|
|
6094
6093
|
commitMessage: string;
|
|
6095
6094
|
};
|
|
6095
|
+
type: "action";
|
|
6096
6096
|
}>]>;
|
|
6097
6097
|
export type ServerMessageType = keyof typeof SERVER_MESSAGE_SCHEMAS;
|
|
6098
6098
|
export type ServerMessage<T extends ServerMessageType = ServerMessageType> = z.infer<(typeof SERVER_MESSAGE_SCHEMAS)[T]>;
|