codebuff 1.0.159 → 1.0.160
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/browser-runner.js +44 -33
- package/dist/browser-runner.js.map +1 -1
- package/dist/chat-storage.js +0 -1
- package/dist/chat-storage.js.map +1 -1
- package/dist/client.d.ts +4 -4
- package/dist/client.js +4 -3
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +104 -104
- package/dist/common/browser-actions.d.ts +181 -123
- package/dist/common/browser-actions.js +8 -4
- package/dist/common/browser-actions.js.map +1 -1
- package/dist/common/util/__tests__/messages.test.d.ts +1 -0
- package/dist/common/util/__tests__/messages.test.js +70 -0
- package/dist/common/util/__tests__/messages.test.js.map +1 -0
- package/dist/common/util/messages.d.ts +6 -0
- package/dist/common/util/messages.js +22 -0
- package/dist/common/util/messages.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +224 -224
- package/dist/project-files.js +2 -3
- package/dist/project-files.js.map +1 -1
- package/package.json +1 -1
package/dist/common/actions.d.ts
CHANGED
|
@@ -61,15 +61,15 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
61
61
|
type: "ephemeral";
|
|
62
62
|
}>>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
type: "tool_result";
|
|
65
64
|
content: string;
|
|
65
|
+
type: "tool_result";
|
|
66
66
|
tool_use_id: string;
|
|
67
67
|
cache_control?: {
|
|
68
68
|
type: "ephemeral";
|
|
69
69
|
} | undefined;
|
|
70
70
|
}, {
|
|
71
|
-
type: "tool_result";
|
|
72
71
|
content: string;
|
|
72
|
+
type: "tool_result";
|
|
73
73
|
tool_use_id: string;
|
|
74
74
|
cache_control?: {
|
|
75
75
|
type: "ephemeral";
|
|
@@ -181,15 +181,15 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
181
181
|
type: "ephemeral";
|
|
182
182
|
}>>;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
type: "tool_result";
|
|
185
184
|
content: string;
|
|
185
|
+
type: "tool_result";
|
|
186
186
|
tool_use_id: string;
|
|
187
187
|
cache_control?: {
|
|
188
188
|
type: "ephemeral";
|
|
189
189
|
} | undefined;
|
|
190
190
|
}, {
|
|
191
|
-
type: "tool_result";
|
|
192
191
|
content: string;
|
|
192
|
+
type: "tool_result";
|
|
193
193
|
tool_use_id: string;
|
|
194
194
|
cache_control?: {
|
|
195
195
|
type: "ephemeral";
|
|
@@ -253,8 +253,8 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
253
253
|
type: "ephemeral";
|
|
254
254
|
} | undefined;
|
|
255
255
|
} | {
|
|
256
|
-
type: "tool_result";
|
|
257
256
|
content: string;
|
|
257
|
+
type: "tool_result";
|
|
258
258
|
tool_use_id: string;
|
|
259
259
|
cache_control?: {
|
|
260
260
|
type: "ephemeral";
|
|
@@ -287,8 +287,8 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
287
287
|
type: "ephemeral";
|
|
288
288
|
} | undefined;
|
|
289
289
|
} | {
|
|
290
|
-
type: "tool_result";
|
|
291
290
|
content: string;
|
|
291
|
+
type: "tool_result";
|
|
292
292
|
tool_use_id: string;
|
|
293
293
|
cache_control?: {
|
|
294
294
|
type: "ephemeral";
|
|
@@ -313,13 +313,13 @@ export declare const FileChangeSchema: z.ZodObject<{
|
|
|
313
313
|
filePath: z.ZodString;
|
|
314
314
|
content: z.ZodString;
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
|
-
type: "patch" | "file";
|
|
317
|
-
filePath: string;
|
|
318
316
|
content: string;
|
|
319
|
-
|
|
320
|
-
type: "patch" | "file";
|
|
317
|
+
type: "file" | "patch";
|
|
321
318
|
filePath: string;
|
|
319
|
+
}, {
|
|
322
320
|
content: string;
|
|
321
|
+
type: "file" | "patch";
|
|
322
|
+
filePath: string;
|
|
323
323
|
}>;
|
|
324
324
|
export type FileChange = z.infer<typeof FileChangeSchema>;
|
|
325
325
|
export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
@@ -327,13 +327,13 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
|
327
327
|
filePath: z.ZodString;
|
|
328
328
|
content: z.ZodString;
|
|
329
329
|
}, "strip", z.ZodTypeAny, {
|
|
330
|
-
type: "patch" | "file";
|
|
331
|
-
filePath: string;
|
|
332
330
|
content: string;
|
|
333
|
-
|
|
334
|
-
type: "patch" | "file";
|
|
331
|
+
type: "file" | "patch";
|
|
335
332
|
filePath: string;
|
|
333
|
+
}, {
|
|
336
334
|
content: string;
|
|
335
|
+
type: "file" | "patch";
|
|
336
|
+
filePath: string;
|
|
337
337
|
}>, "many">;
|
|
338
338
|
export type FileChanges = z.infer<typeof CHANGES>;
|
|
339
339
|
export declare const ToolCallSchema: z.ZodObject<{
|
|
@@ -419,15 +419,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
419
419
|
type: "ephemeral";
|
|
420
420
|
}>>;
|
|
421
421
|
}, "strip", z.ZodTypeAny, {
|
|
422
|
-
type: "tool_result";
|
|
423
422
|
content: string;
|
|
423
|
+
type: "tool_result";
|
|
424
424
|
tool_use_id: string;
|
|
425
425
|
cache_control?: {
|
|
426
426
|
type: "ephemeral";
|
|
427
427
|
} | undefined;
|
|
428
428
|
}, {
|
|
429
|
-
type: "tool_result";
|
|
430
429
|
content: string;
|
|
430
|
+
type: "tool_result";
|
|
431
431
|
tool_use_id: string;
|
|
432
432
|
cache_control?: {
|
|
433
433
|
type: "ephemeral";
|
|
@@ -491,8 +491,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
491
491
|
type: "ephemeral";
|
|
492
492
|
} | undefined;
|
|
493
493
|
} | {
|
|
494
|
-
type: "tool_result";
|
|
495
494
|
content: string;
|
|
495
|
+
type: "tool_result";
|
|
496
496
|
tool_use_id: string;
|
|
497
497
|
cache_control?: {
|
|
498
498
|
type: "ephemeral";
|
|
@@ -525,8 +525,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
525
525
|
type: "ephemeral";
|
|
526
526
|
} | undefined;
|
|
527
527
|
} | {
|
|
528
|
-
type: "tool_result";
|
|
529
528
|
content: string;
|
|
529
|
+
type: "tool_result";
|
|
530
530
|
tool_use_id: string;
|
|
531
531
|
cache_control?: {
|
|
532
532
|
type: "ephemeral";
|
|
@@ -556,13 +556,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
556
556
|
diffCached: z.ZodString;
|
|
557
557
|
lastCommitMessages: z.ZodString;
|
|
558
558
|
}, "strip", z.ZodTypeAny, {
|
|
559
|
-
diff: string;
|
|
560
559
|
status: string;
|
|
560
|
+
diff: string;
|
|
561
561
|
diffCached: string;
|
|
562
562
|
lastCommitMessages: string;
|
|
563
563
|
}, {
|
|
564
|
-
diff: string;
|
|
565
564
|
status: string;
|
|
565
|
+
diff: string;
|
|
566
566
|
diffCached: string;
|
|
567
567
|
lastCommitMessages: string;
|
|
568
568
|
}>;
|
|
@@ -606,8 +606,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
606
606
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
607
607
|
knowledgeFiles: Record<string, string>;
|
|
608
608
|
gitChanges: {
|
|
609
|
-
diff: string;
|
|
610
609
|
status: string;
|
|
610
|
+
diff: string;
|
|
611
611
|
diffCached: string;
|
|
612
612
|
lastCommitMessages: string;
|
|
613
613
|
};
|
|
@@ -632,8 +632,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
632
632
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
633
633
|
knowledgeFiles: Record<string, string>;
|
|
634
634
|
gitChanges: {
|
|
635
|
-
diff: string;
|
|
636
635
|
status: string;
|
|
636
|
+
diff: string;
|
|
637
637
|
diffCached: string;
|
|
638
638
|
lastCommitMessages: string;
|
|
639
639
|
};
|
|
@@ -658,13 +658,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
658
658
|
filePath: z.ZodString;
|
|
659
659
|
content: z.ZodString;
|
|
660
660
|
}, "strip", z.ZodTypeAny, {
|
|
661
|
-
type: "patch" | "file";
|
|
662
|
-
filePath: string;
|
|
663
661
|
content: string;
|
|
664
|
-
|
|
665
|
-
type: "patch" | "file";
|
|
662
|
+
type: "file" | "patch";
|
|
666
663
|
filePath: string;
|
|
664
|
+
}, {
|
|
667
665
|
content: string;
|
|
666
|
+
type: "file" | "patch";
|
|
667
|
+
filePath: string;
|
|
668
668
|
}>, "many">;
|
|
669
669
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
670
670
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -687,8 +687,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
687
687
|
type: "ephemeral";
|
|
688
688
|
} | undefined;
|
|
689
689
|
} | {
|
|
690
|
-
type: "tool_result";
|
|
691
690
|
content: string;
|
|
691
|
+
type: "tool_result";
|
|
692
692
|
tool_use_id: string;
|
|
693
693
|
cache_control?: {
|
|
694
694
|
type: "ephemeral";
|
|
@@ -712,8 +712,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
712
712
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
713
713
|
knowledgeFiles: Record<string, string>;
|
|
714
714
|
gitChanges: {
|
|
715
|
-
diff: string;
|
|
716
715
|
status: string;
|
|
716
|
+
diff: string;
|
|
717
717
|
diffCached: string;
|
|
718
718
|
lastCommitMessages: string;
|
|
719
719
|
};
|
|
@@ -734,11 +734,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
734
734
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
735
735
|
};
|
|
736
736
|
changesAlreadyApplied: {
|
|
737
|
-
type: "patch" | "file";
|
|
738
|
-
filePath: string;
|
|
739
737
|
content: string;
|
|
738
|
+
type: "file" | "patch";
|
|
739
|
+
filePath: string;
|
|
740
740
|
}[];
|
|
741
|
-
costMode: "
|
|
741
|
+
costMode: "max" | "lite" | "normal";
|
|
742
742
|
authToken?: string | undefined;
|
|
743
743
|
}, {
|
|
744
744
|
type: "user-input";
|
|
@@ -760,8 +760,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
760
760
|
type: "ephemeral";
|
|
761
761
|
} | undefined;
|
|
762
762
|
} | {
|
|
763
|
-
type: "tool_result";
|
|
764
763
|
content: string;
|
|
764
|
+
type: "tool_result";
|
|
765
765
|
tool_use_id: string;
|
|
766
766
|
cache_control?: {
|
|
767
767
|
type: "ephemeral";
|
|
@@ -785,8 +785,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
785
785
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
786
786
|
knowledgeFiles: Record<string, string>;
|
|
787
787
|
gitChanges: {
|
|
788
|
-
diff: string;
|
|
789
788
|
status: string;
|
|
789
|
+
diff: string;
|
|
790
790
|
diffCached: string;
|
|
791
791
|
lastCommitMessages: string;
|
|
792
792
|
};
|
|
@@ -807,12 +807,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
807
807
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
808
808
|
};
|
|
809
809
|
changesAlreadyApplied: {
|
|
810
|
-
type: "patch" | "file";
|
|
811
|
-
filePath: string;
|
|
812
810
|
content: string;
|
|
811
|
+
type: "file" | "patch";
|
|
812
|
+
filePath: string;
|
|
813
813
|
}[];
|
|
814
814
|
authToken?: string | undefined;
|
|
815
|
-
costMode?: "
|
|
815
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
816
816
|
}>, z.ZodObject<{
|
|
817
817
|
type: z.ZodLiteral<"read-files-response">;
|
|
818
818
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -838,13 +838,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
838
838
|
diffCached: z.ZodString;
|
|
839
839
|
lastCommitMessages: z.ZodString;
|
|
840
840
|
}, "strip", z.ZodTypeAny, {
|
|
841
|
-
diff: string;
|
|
842
841
|
status: string;
|
|
842
|
+
diff: string;
|
|
843
843
|
diffCached: string;
|
|
844
844
|
lastCommitMessages: string;
|
|
845
845
|
}, {
|
|
846
|
-
diff: string;
|
|
847
846
|
status: string;
|
|
847
|
+
diff: string;
|
|
848
848
|
diffCached: string;
|
|
849
849
|
lastCommitMessages: string;
|
|
850
850
|
}>;
|
|
@@ -888,8 +888,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
888
888
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
889
889
|
knowledgeFiles: Record<string, string>;
|
|
890
890
|
gitChanges: {
|
|
891
|
-
diff: string;
|
|
892
891
|
status: string;
|
|
892
|
+
diff: string;
|
|
893
893
|
diffCached: string;
|
|
894
894
|
lastCommitMessages: string;
|
|
895
895
|
};
|
|
@@ -914,8 +914,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
914
914
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
915
915
|
knowledgeFiles: Record<string, string>;
|
|
916
916
|
gitChanges: {
|
|
917
|
-
diff: string;
|
|
918
917
|
status: string;
|
|
918
|
+
diff: string;
|
|
919
919
|
diffCached: string;
|
|
920
920
|
lastCommitMessages: string;
|
|
921
921
|
};
|
|
@@ -944,8 +944,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
944
944
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
945
945
|
knowledgeFiles: Record<string, string>;
|
|
946
946
|
gitChanges: {
|
|
947
|
-
diff: string;
|
|
948
947
|
status: string;
|
|
948
|
+
diff: string;
|
|
949
949
|
diffCached: string;
|
|
950
950
|
lastCommitMessages: string;
|
|
951
951
|
};
|
|
@@ -975,8 +975,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
975
975
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
976
976
|
knowledgeFiles: Record<string, string>;
|
|
977
977
|
gitChanges: {
|
|
978
|
-
diff: string;
|
|
979
978
|
status: string;
|
|
979
|
+
diff: string;
|
|
980
980
|
diffCached: string;
|
|
981
981
|
lastCommitMessages: string;
|
|
982
982
|
};
|
|
@@ -1041,14 +1041,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1041
1041
|
fingerprintHash: z.ZodString;
|
|
1042
1042
|
}, "strip", z.ZodTypeAny, {
|
|
1043
1043
|
type: "clear-auth-token";
|
|
1044
|
-
fingerprintId: string;
|
|
1045
1044
|
authToken: string;
|
|
1045
|
+
fingerprintId: string;
|
|
1046
1046
|
fingerprintHash: string;
|
|
1047
1047
|
userId: string;
|
|
1048
1048
|
}, {
|
|
1049
1049
|
type: "clear-auth-token";
|
|
1050
|
-
fingerprintId: string;
|
|
1051
1050
|
authToken: string;
|
|
1051
|
+
fingerprintId: string;
|
|
1052
1052
|
fingerprintHash: string;
|
|
1053
1053
|
userId: string;
|
|
1054
1054
|
}>, z.ZodObject<{
|
|
@@ -1131,26 +1131,26 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1131
1131
|
filePath: z.ZodString;
|
|
1132
1132
|
content: z.ZodString;
|
|
1133
1133
|
}, "strip", z.ZodTypeAny, {
|
|
1134
|
-
type: "patch" | "file";
|
|
1135
|
-
filePath: string;
|
|
1136
1134
|
content: string;
|
|
1137
|
-
|
|
1138
|
-
type: "patch" | "file";
|
|
1135
|
+
type: "file" | "patch";
|
|
1139
1136
|
filePath: string;
|
|
1137
|
+
}, {
|
|
1140
1138
|
content: string;
|
|
1139
|
+
type: "file" | "patch";
|
|
1140
|
+
filePath: string;
|
|
1141
1141
|
}>, "many">;
|
|
1142
1142
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1143
1143
|
type: z.ZodEnum<["patch", "file"]>;
|
|
1144
1144
|
filePath: z.ZodString;
|
|
1145
1145
|
content: z.ZodString;
|
|
1146
1146
|
}, "strip", z.ZodTypeAny, {
|
|
1147
|
-
type: "patch" | "file";
|
|
1148
|
-
filePath: string;
|
|
1149
1147
|
content: string;
|
|
1150
|
-
|
|
1151
|
-
type: "patch" | "file";
|
|
1148
|
+
type: "file" | "patch";
|
|
1152
1149
|
filePath: string;
|
|
1150
|
+
}, {
|
|
1153
1151
|
content: string;
|
|
1152
|
+
type: "file" | "patch";
|
|
1153
|
+
filePath: string;
|
|
1154
1154
|
}>, "many">;
|
|
1155
1155
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1156
1156
|
path: z.ZodString;
|
|
@@ -1174,15 +1174,15 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1174
1174
|
type: "response-complete";
|
|
1175
1175
|
userInputId: string;
|
|
1176
1176
|
changesAlreadyApplied: {
|
|
1177
|
-
type: "patch" | "file";
|
|
1178
|
-
filePath: string;
|
|
1179
1177
|
content: string;
|
|
1178
|
+
type: "file" | "patch";
|
|
1179
|
+
filePath: string;
|
|
1180
1180
|
}[];
|
|
1181
1181
|
response: string;
|
|
1182
1182
|
changes: {
|
|
1183
|
-
type: "patch" | "file";
|
|
1184
|
-
filePath: string;
|
|
1185
1183
|
content: string;
|
|
1184
|
+
type: "file" | "patch";
|
|
1185
|
+
filePath: string;
|
|
1186
1186
|
}[];
|
|
1187
1187
|
addedFileVersions: {
|
|
1188
1188
|
path: string;
|
|
@@ -1199,15 +1199,15 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1199
1199
|
type: "response-complete";
|
|
1200
1200
|
userInputId: string;
|
|
1201
1201
|
changesAlreadyApplied: {
|
|
1202
|
-
type: "patch" | "file";
|
|
1203
|
-
filePath: string;
|
|
1204
1202
|
content: string;
|
|
1203
|
+
type: "file" | "patch";
|
|
1204
|
+
filePath: string;
|
|
1205
1205
|
}[];
|
|
1206
1206
|
response: string;
|
|
1207
1207
|
changes: {
|
|
1208
|
-
type: "patch" | "file";
|
|
1209
|
-
filePath: string;
|
|
1210
1208
|
content: string;
|
|
1209
|
+
type: "file" | "patch";
|
|
1210
|
+
filePath: string;
|
|
1211
1211
|
}[];
|
|
1212
1212
|
addedFileVersions: {
|
|
1213
1213
|
path: string;
|
|
@@ -1251,26 +1251,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1251
1251
|
filePath: z.ZodString;
|
|
1252
1252
|
content: z.ZodString;
|
|
1253
1253
|
}, "strip", z.ZodTypeAny, {
|
|
1254
|
-
type: "patch" | "file";
|
|
1255
|
-
filePath: string;
|
|
1256
1254
|
content: string;
|
|
1257
|
-
|
|
1258
|
-
type: "patch" | "file";
|
|
1255
|
+
type: "file" | "patch";
|
|
1259
1256
|
filePath: string;
|
|
1257
|
+
}, {
|
|
1260
1258
|
content: string;
|
|
1259
|
+
type: "file" | "patch";
|
|
1260
|
+
filePath: string;
|
|
1261
1261
|
}>, "many">;
|
|
1262
1262
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1263
1263
|
type: z.ZodEnum<["patch", "file"]>;
|
|
1264
1264
|
filePath: z.ZodString;
|
|
1265
1265
|
content: z.ZodString;
|
|
1266
1266
|
}, "strip", z.ZodTypeAny, {
|
|
1267
|
-
type: "patch" | "file";
|
|
1268
|
-
filePath: string;
|
|
1269
1267
|
content: string;
|
|
1270
|
-
|
|
1271
|
-
type: "patch" | "file";
|
|
1268
|
+
type: "file" | "patch";
|
|
1272
1269
|
filePath: string;
|
|
1270
|
+
}, {
|
|
1273
1271
|
content: string;
|
|
1272
|
+
type: "file" | "patch";
|
|
1273
|
+
filePath: string;
|
|
1274
1274
|
}>, "many">;
|
|
1275
1275
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1276
1276
|
path: z.ZodString;
|
|
@@ -1294,15 +1294,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1294
1294
|
type: "response-complete";
|
|
1295
1295
|
userInputId: string;
|
|
1296
1296
|
changesAlreadyApplied: {
|
|
1297
|
-
type: "patch" | "file";
|
|
1298
|
-
filePath: string;
|
|
1299
1297
|
content: string;
|
|
1298
|
+
type: "file" | "patch";
|
|
1299
|
+
filePath: string;
|
|
1300
1300
|
}[];
|
|
1301
1301
|
response: string;
|
|
1302
1302
|
changes: {
|
|
1303
|
-
type: "patch" | "file";
|
|
1304
|
-
filePath: string;
|
|
1305
1303
|
content: string;
|
|
1304
|
+
type: "file" | "patch";
|
|
1305
|
+
filePath: string;
|
|
1306
1306
|
}[];
|
|
1307
1307
|
addedFileVersions: {
|
|
1308
1308
|
path: string;
|
|
@@ -1319,15 +1319,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1319
1319
|
type: "response-complete";
|
|
1320
1320
|
userInputId: string;
|
|
1321
1321
|
changesAlreadyApplied: {
|
|
1322
|
-
type: "patch" | "file";
|
|
1323
|
-
filePath: string;
|
|
1324
1322
|
content: string;
|
|
1323
|
+
type: "file" | "patch";
|
|
1324
|
+
filePath: string;
|
|
1325
1325
|
}[];
|
|
1326
1326
|
response: string;
|
|
1327
1327
|
changes: {
|
|
1328
|
-
type: "patch" | "file";
|
|
1329
|
-
filePath: string;
|
|
1330
1328
|
content: string;
|
|
1329
|
+
type: "file" | "patch";
|
|
1330
|
+
filePath: string;
|
|
1331
1331
|
}[];
|
|
1332
1332
|
addedFileVersions: {
|
|
1333
1333
|
path: string;
|
|
@@ -1371,26 +1371,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1371
1371
|
filePath: z.ZodString;
|
|
1372
1372
|
content: z.ZodString;
|
|
1373
1373
|
}, "strip", z.ZodTypeAny, {
|
|
1374
|
-
type: "patch" | "file";
|
|
1375
|
-
filePath: string;
|
|
1376
1374
|
content: string;
|
|
1377
|
-
|
|
1378
|
-
type: "patch" | "file";
|
|
1375
|
+
type: "file" | "patch";
|
|
1379
1376
|
filePath: string;
|
|
1377
|
+
}, {
|
|
1380
1378
|
content: string;
|
|
1379
|
+
type: "file" | "patch";
|
|
1380
|
+
filePath: string;
|
|
1381
1381
|
}>, "many">;
|
|
1382
1382
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1383
1383
|
type: z.ZodEnum<["patch", "file"]>;
|
|
1384
1384
|
filePath: z.ZodString;
|
|
1385
1385
|
content: z.ZodString;
|
|
1386
1386
|
}, "strip", z.ZodTypeAny, {
|
|
1387
|
-
type: "patch" | "file";
|
|
1388
|
-
filePath: string;
|
|
1389
1387
|
content: string;
|
|
1390
|
-
|
|
1391
|
-
type: "patch" | "file";
|
|
1388
|
+
type: "file" | "patch";
|
|
1392
1389
|
filePath: string;
|
|
1390
|
+
}, {
|
|
1393
1391
|
content: string;
|
|
1392
|
+
type: "file" | "patch";
|
|
1393
|
+
filePath: string;
|
|
1394
1394
|
}>, "many">;
|
|
1395
1395
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1396
1396
|
path: z.ZodString;
|
|
@@ -1412,15 +1412,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1412
1412
|
input: Record<string, any>;
|
|
1413
1413
|
};
|
|
1414
1414
|
changesAlreadyApplied: {
|
|
1415
|
-
type: "patch" | "file";
|
|
1416
|
-
filePath: string;
|
|
1417
1415
|
content: string;
|
|
1416
|
+
type: "file" | "patch";
|
|
1417
|
+
filePath: string;
|
|
1418
1418
|
}[];
|
|
1419
1419
|
response: string;
|
|
1420
1420
|
changes: {
|
|
1421
|
-
type: "patch" | "file";
|
|
1422
|
-
filePath: string;
|
|
1423
1421
|
content: string;
|
|
1422
|
+
type: "file" | "patch";
|
|
1423
|
+
filePath: string;
|
|
1424
1424
|
}[];
|
|
1425
1425
|
addedFileVersions: {
|
|
1426
1426
|
path: string;
|
|
@@ -1436,15 +1436,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1436
1436
|
input: Record<string, any>;
|
|
1437
1437
|
};
|
|
1438
1438
|
changesAlreadyApplied: {
|
|
1439
|
-
type: "patch" | "file";
|
|
1440
|
-
filePath: string;
|
|
1441
1439
|
content: string;
|
|
1440
|
+
type: "file" | "patch";
|
|
1441
|
+
filePath: string;
|
|
1442
1442
|
}[];
|
|
1443
1443
|
response: string;
|
|
1444
1444
|
changes: {
|
|
1445
|
-
type: "patch" | "file";
|
|
1446
|
-
filePath: string;
|
|
1447
1445
|
content: string;
|
|
1446
|
+
type: "file" | "patch";
|
|
1447
|
+
filePath: string;
|
|
1448
1448
|
}[];
|
|
1449
1449
|
addedFileVersions: {
|
|
1450
1450
|
path: string;
|
|
@@ -1511,41 +1511,41 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1511
1511
|
fingerprintId: z.ZodString;
|
|
1512
1512
|
fingerprintHash: z.ZodString;
|
|
1513
1513
|
}, "strip", z.ZodTypeAny, {
|
|
1514
|
+
email: string;
|
|
1514
1515
|
name: string | null;
|
|
1515
1516
|
id: string;
|
|
1516
|
-
fingerprintId: string;
|
|
1517
1517
|
authToken: string;
|
|
1518
|
-
|
|
1518
|
+
fingerprintId: string;
|
|
1519
1519
|
fingerprintHash: string;
|
|
1520
1520
|
}, {
|
|
1521
|
+
email: string;
|
|
1521
1522
|
name: string | null;
|
|
1522
1523
|
id: string;
|
|
1523
|
-
fingerprintId: string;
|
|
1524
1524
|
authToken: string;
|
|
1525
|
-
|
|
1525
|
+
fingerprintId: string;
|
|
1526
1526
|
fingerprintHash: string;
|
|
1527
1527
|
}>>;
|
|
1528
1528
|
message: z.ZodString;
|
|
1529
1529
|
}, "strip", z.ZodTypeAny, {
|
|
1530
|
-
type: "auth-result";
|
|
1531
1530
|
message: string;
|
|
1531
|
+
type: "auth-result";
|
|
1532
1532
|
user?: {
|
|
1533
|
+
email: string;
|
|
1533
1534
|
name: string | null;
|
|
1534
1535
|
id: string;
|
|
1535
|
-
fingerprintId: string;
|
|
1536
1536
|
authToken: string;
|
|
1537
|
-
|
|
1537
|
+
fingerprintId: string;
|
|
1538
1538
|
fingerprintHash: string;
|
|
1539
1539
|
} | undefined;
|
|
1540
1540
|
}, {
|
|
1541
|
-
type: "auth-result";
|
|
1542
1541
|
message: string;
|
|
1542
|
+
type: "auth-result";
|
|
1543
1543
|
user?: {
|
|
1544
|
+
email: string;
|
|
1544
1545
|
name: string | null;
|
|
1545
1546
|
id: string;
|
|
1546
|
-
fingerprintId: string;
|
|
1547
1547
|
authToken: string;
|
|
1548
|
-
|
|
1548
|
+
fingerprintId: string;
|
|
1549
1549
|
fingerprintHash: string;
|
|
1550
1550
|
} | undefined;
|
|
1551
1551
|
}>, z.ZodObject<{
|
|
@@ -1591,11 +1591,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1591
1591
|
type: z.ZodLiteral<"action-error">;
|
|
1592
1592
|
message: z.ZodString;
|
|
1593
1593
|
}, "strip", z.ZodTypeAny, {
|
|
1594
|
-
type: "action-error";
|
|
1595
1594
|
message: string;
|
|
1596
|
-
}, {
|
|
1597
1595
|
type: "action-error";
|
|
1596
|
+
}, {
|
|
1598
1597
|
message: string;
|
|
1598
|
+
type: "action-error";
|
|
1599
1599
|
}>, z.ZodObject<{
|
|
1600
1600
|
type: z.ZodLiteral<"commit-message-response">;
|
|
1601
1601
|
commitMessage: z.ZodString;
|