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
|
@@ -121,15 +121,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
121
121
|
type: "ephemeral";
|
|
122
122
|
}>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
type: "tool_result";
|
|
125
124
|
content: string;
|
|
125
|
+
type: "tool_result";
|
|
126
126
|
tool_use_id: string;
|
|
127
127
|
cache_control?: {
|
|
128
128
|
type: "ephemeral";
|
|
129
129
|
} | undefined;
|
|
130
130
|
}, {
|
|
131
|
-
type: "tool_result";
|
|
132
131
|
content: string;
|
|
132
|
+
type: "tool_result";
|
|
133
133
|
tool_use_id: string;
|
|
134
134
|
cache_control?: {
|
|
135
135
|
type: "ephemeral";
|
|
@@ -193,8 +193,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
193
193
|
type: "ephemeral";
|
|
194
194
|
} | undefined;
|
|
195
195
|
} | {
|
|
196
|
-
type: "tool_result";
|
|
197
196
|
content: string;
|
|
197
|
+
type: "tool_result";
|
|
198
198
|
tool_use_id: string;
|
|
199
199
|
cache_control?: {
|
|
200
200
|
type: "ephemeral";
|
|
@@ -227,8 +227,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
227
227
|
type: "ephemeral";
|
|
228
228
|
} | undefined;
|
|
229
229
|
} | {
|
|
230
|
-
type: "tool_result";
|
|
231
230
|
content: string;
|
|
231
|
+
type: "tool_result";
|
|
232
232
|
tool_use_id: string;
|
|
233
233
|
cache_control?: {
|
|
234
234
|
type: "ephemeral";
|
|
@@ -258,13 +258,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
258
258
|
diffCached: z.ZodString;
|
|
259
259
|
lastCommitMessages: z.ZodString;
|
|
260
260
|
}, "strip", z.ZodTypeAny, {
|
|
261
|
-
diff: string;
|
|
262
261
|
status: string;
|
|
262
|
+
diff: string;
|
|
263
263
|
diffCached: string;
|
|
264
264
|
lastCommitMessages: string;
|
|
265
265
|
}, {
|
|
266
|
-
diff: string;
|
|
267
266
|
status: string;
|
|
267
|
+
diff: string;
|
|
268
268
|
diffCached: string;
|
|
269
269
|
lastCommitMessages: string;
|
|
270
270
|
}>;
|
|
@@ -308,8 +308,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
308
308
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
309
309
|
knowledgeFiles: Record<string, string>;
|
|
310
310
|
gitChanges: {
|
|
311
|
-
diff: string;
|
|
312
311
|
status: string;
|
|
312
|
+
diff: string;
|
|
313
313
|
diffCached: string;
|
|
314
314
|
lastCommitMessages: string;
|
|
315
315
|
};
|
|
@@ -334,8 +334,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
334
334
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
335
335
|
knowledgeFiles: Record<string, string>;
|
|
336
336
|
gitChanges: {
|
|
337
|
-
diff: string;
|
|
338
337
|
status: string;
|
|
338
|
+
diff: string;
|
|
339
339
|
diffCached: string;
|
|
340
340
|
lastCommitMessages: string;
|
|
341
341
|
};
|
|
@@ -360,13 +360,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
360
360
|
filePath: z.ZodString;
|
|
361
361
|
content: z.ZodString;
|
|
362
362
|
}, "strip", z.ZodTypeAny, {
|
|
363
|
-
type: "patch" | "file";
|
|
364
|
-
filePath: string;
|
|
365
363
|
content: string;
|
|
366
|
-
|
|
367
|
-
type: "patch" | "file";
|
|
364
|
+
type: "file" | "patch";
|
|
368
365
|
filePath: string;
|
|
366
|
+
}, {
|
|
369
367
|
content: string;
|
|
368
|
+
type: "file" | "patch";
|
|
369
|
+
filePath: string;
|
|
370
370
|
}>, "many">;
|
|
371
371
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
372
372
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -389,8 +389,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
389
389
|
type: "ephemeral";
|
|
390
390
|
} | undefined;
|
|
391
391
|
} | {
|
|
392
|
-
type: "tool_result";
|
|
393
392
|
content: string;
|
|
393
|
+
type: "tool_result";
|
|
394
394
|
tool_use_id: string;
|
|
395
395
|
cache_control?: {
|
|
396
396
|
type: "ephemeral";
|
|
@@ -414,8 +414,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
414
414
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
415
415
|
knowledgeFiles: Record<string, string>;
|
|
416
416
|
gitChanges: {
|
|
417
|
-
diff: string;
|
|
418
417
|
status: string;
|
|
418
|
+
diff: string;
|
|
419
419
|
diffCached: string;
|
|
420
420
|
lastCommitMessages: string;
|
|
421
421
|
};
|
|
@@ -436,11 +436,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
436
436
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
437
437
|
};
|
|
438
438
|
changesAlreadyApplied: {
|
|
439
|
-
type: "patch" | "file";
|
|
440
|
-
filePath: string;
|
|
441
439
|
content: string;
|
|
440
|
+
type: "file" | "patch";
|
|
441
|
+
filePath: string;
|
|
442
442
|
}[];
|
|
443
|
-
costMode: "
|
|
443
|
+
costMode: "max" | "lite" | "normal";
|
|
444
444
|
authToken?: string | undefined;
|
|
445
445
|
}, {
|
|
446
446
|
type: "user-input";
|
|
@@ -462,8 +462,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
462
462
|
type: "ephemeral";
|
|
463
463
|
} | undefined;
|
|
464
464
|
} | {
|
|
465
|
-
type: "tool_result";
|
|
466
465
|
content: string;
|
|
466
|
+
type: "tool_result";
|
|
467
467
|
tool_use_id: string;
|
|
468
468
|
cache_control?: {
|
|
469
469
|
type: "ephemeral";
|
|
@@ -487,8 +487,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
487
487
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
488
488
|
knowledgeFiles: Record<string, string>;
|
|
489
489
|
gitChanges: {
|
|
490
|
-
diff: string;
|
|
491
490
|
status: string;
|
|
491
|
+
diff: string;
|
|
492
492
|
diffCached: string;
|
|
493
493
|
lastCommitMessages: string;
|
|
494
494
|
};
|
|
@@ -509,12 +509,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
509
509
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
510
510
|
};
|
|
511
511
|
changesAlreadyApplied: {
|
|
512
|
-
type: "patch" | "file";
|
|
513
|
-
filePath: string;
|
|
514
512
|
content: string;
|
|
513
|
+
type: "file" | "patch";
|
|
514
|
+
filePath: string;
|
|
515
515
|
}[];
|
|
516
516
|
authToken?: string | undefined;
|
|
517
|
-
costMode?: "
|
|
517
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
518
518
|
}>, z.ZodObject<{
|
|
519
519
|
type: z.ZodLiteral<"read-files-response">;
|
|
520
520
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -540,13 +540,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
540
540
|
diffCached: z.ZodString;
|
|
541
541
|
lastCommitMessages: z.ZodString;
|
|
542
542
|
}, "strip", z.ZodTypeAny, {
|
|
543
|
-
diff: string;
|
|
544
543
|
status: string;
|
|
544
|
+
diff: string;
|
|
545
545
|
diffCached: string;
|
|
546
546
|
lastCommitMessages: string;
|
|
547
547
|
}, {
|
|
548
|
-
diff: string;
|
|
549
548
|
status: string;
|
|
549
|
+
diff: string;
|
|
550
550
|
diffCached: string;
|
|
551
551
|
lastCommitMessages: string;
|
|
552
552
|
}>;
|
|
@@ -590,8 +590,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
590
590
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
591
591
|
knowledgeFiles: Record<string, string>;
|
|
592
592
|
gitChanges: {
|
|
593
|
-
diff: string;
|
|
594
593
|
status: string;
|
|
594
|
+
diff: string;
|
|
595
595
|
diffCached: string;
|
|
596
596
|
lastCommitMessages: string;
|
|
597
597
|
};
|
|
@@ -616,8 +616,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
616
616
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
617
617
|
knowledgeFiles: Record<string, string>;
|
|
618
618
|
gitChanges: {
|
|
619
|
-
diff: string;
|
|
620
619
|
status: string;
|
|
620
|
+
diff: string;
|
|
621
621
|
diffCached: string;
|
|
622
622
|
lastCommitMessages: string;
|
|
623
623
|
};
|
|
@@ -646,8 +646,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
646
646
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
647
647
|
knowledgeFiles: Record<string, string>;
|
|
648
648
|
gitChanges: {
|
|
649
|
-
diff: string;
|
|
650
649
|
status: string;
|
|
650
|
+
diff: string;
|
|
651
651
|
diffCached: string;
|
|
652
652
|
lastCommitMessages: string;
|
|
653
653
|
};
|
|
@@ -677,8 +677,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
677
677
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
678
678
|
knowledgeFiles: Record<string, string>;
|
|
679
679
|
gitChanges: {
|
|
680
|
-
diff: string;
|
|
681
680
|
status: string;
|
|
681
|
+
diff: string;
|
|
682
682
|
diffCached: string;
|
|
683
683
|
lastCommitMessages: string;
|
|
684
684
|
};
|
|
@@ -743,14 +743,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
743
743
|
fingerprintHash: z.ZodString;
|
|
744
744
|
}, "strip", z.ZodTypeAny, {
|
|
745
745
|
type: "clear-auth-token";
|
|
746
|
-
fingerprintId: string;
|
|
747
746
|
authToken: string;
|
|
747
|
+
fingerprintId: string;
|
|
748
748
|
fingerprintHash: string;
|
|
749
749
|
userId: string;
|
|
750
750
|
}, {
|
|
751
751
|
type: "clear-auth-token";
|
|
752
|
-
fingerprintId: string;
|
|
753
752
|
authToken: string;
|
|
753
|
+
fingerprintId: string;
|
|
754
754
|
fingerprintHash: string;
|
|
755
755
|
userId: string;
|
|
756
756
|
}>, z.ZodObject<{
|
|
@@ -791,8 +791,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
791
791
|
type: "ephemeral";
|
|
792
792
|
} | undefined;
|
|
793
793
|
} | {
|
|
794
|
-
type: "tool_result";
|
|
795
794
|
content: string;
|
|
795
|
+
type: "tool_result";
|
|
796
796
|
tool_use_id: string;
|
|
797
797
|
cache_control?: {
|
|
798
798
|
type: "ephemeral";
|
|
@@ -816,8 +816,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
816
816
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
817
817
|
knowledgeFiles: Record<string, string>;
|
|
818
818
|
gitChanges: {
|
|
819
|
-
diff: string;
|
|
820
819
|
status: string;
|
|
820
|
+
diff: string;
|
|
821
821
|
diffCached: string;
|
|
822
822
|
lastCommitMessages: string;
|
|
823
823
|
};
|
|
@@ -838,11 +838,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
838
838
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
839
839
|
};
|
|
840
840
|
changesAlreadyApplied: {
|
|
841
|
-
type: "patch" | "file";
|
|
842
|
-
filePath: string;
|
|
843
841
|
content: string;
|
|
842
|
+
type: "file" | "patch";
|
|
843
|
+
filePath: string;
|
|
844
844
|
}[];
|
|
845
|
-
costMode: "
|
|
845
|
+
costMode: "max" | "lite" | "normal";
|
|
846
846
|
authToken?: string | undefined;
|
|
847
847
|
} | {
|
|
848
848
|
type: "read-files-response";
|
|
@@ -856,8 +856,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
856
856
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
857
857
|
knowledgeFiles: Record<string, string>;
|
|
858
858
|
gitChanges: {
|
|
859
|
-
diff: string;
|
|
860
859
|
status: string;
|
|
860
|
+
diff: string;
|
|
861
861
|
diffCached: string;
|
|
862
862
|
lastCommitMessages: string;
|
|
863
863
|
};
|
|
@@ -892,8 +892,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
892
892
|
fingerprintHash: string;
|
|
893
893
|
} | {
|
|
894
894
|
type: "clear-auth-token";
|
|
895
|
-
fingerprintId: string;
|
|
896
895
|
authToken: string;
|
|
896
|
+
fingerprintId: string;
|
|
897
897
|
fingerprintHash: string;
|
|
898
898
|
userId: string;
|
|
899
899
|
} | {
|
|
@@ -925,8 +925,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
925
925
|
type: "ephemeral";
|
|
926
926
|
} | undefined;
|
|
927
927
|
} | {
|
|
928
|
-
type: "tool_result";
|
|
929
928
|
content: string;
|
|
929
|
+
type: "tool_result";
|
|
930
930
|
tool_use_id: string;
|
|
931
931
|
cache_control?: {
|
|
932
932
|
type: "ephemeral";
|
|
@@ -950,8 +950,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
950
950
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
951
951
|
knowledgeFiles: Record<string, string>;
|
|
952
952
|
gitChanges: {
|
|
953
|
-
diff: string;
|
|
954
953
|
status: string;
|
|
954
|
+
diff: string;
|
|
955
955
|
diffCached: string;
|
|
956
956
|
lastCommitMessages: string;
|
|
957
957
|
};
|
|
@@ -972,12 +972,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
972
972
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
973
973
|
};
|
|
974
974
|
changesAlreadyApplied: {
|
|
975
|
-
type: "patch" | "file";
|
|
976
|
-
filePath: string;
|
|
977
975
|
content: string;
|
|
976
|
+
type: "file" | "patch";
|
|
977
|
+
filePath: string;
|
|
978
978
|
}[];
|
|
979
979
|
authToken?: string | undefined;
|
|
980
|
-
costMode?: "
|
|
980
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
981
981
|
} | {
|
|
982
982
|
type: "read-files-response";
|
|
983
983
|
files: Record<string, string | null>;
|
|
@@ -990,8 +990,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
990
990
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
991
991
|
knowledgeFiles: Record<string, string>;
|
|
992
992
|
gitChanges: {
|
|
993
|
-
diff: string;
|
|
994
993
|
status: string;
|
|
994
|
+
diff: string;
|
|
995
995
|
diffCached: string;
|
|
996
996
|
lastCommitMessages: string;
|
|
997
997
|
};
|
|
@@ -1026,8 +1026,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1026
1026
|
fingerprintHash: string;
|
|
1027
1027
|
} | {
|
|
1028
1028
|
type: "clear-auth-token";
|
|
1029
|
-
fingerprintId: string;
|
|
1030
1029
|
authToken: string;
|
|
1030
|
+
fingerprintId: string;
|
|
1031
1031
|
fingerprintHash: string;
|
|
1032
1032
|
userId: string;
|
|
1033
1033
|
} | {
|
|
@@ -1156,15 +1156,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1156
1156
|
type: "ephemeral";
|
|
1157
1157
|
}>>;
|
|
1158
1158
|
}, "strip", z.ZodTypeAny, {
|
|
1159
|
-
type: "tool_result";
|
|
1160
1159
|
content: string;
|
|
1160
|
+
type: "tool_result";
|
|
1161
1161
|
tool_use_id: string;
|
|
1162
1162
|
cache_control?: {
|
|
1163
1163
|
type: "ephemeral";
|
|
1164
1164
|
} | undefined;
|
|
1165
1165
|
}, {
|
|
1166
|
-
type: "tool_result";
|
|
1167
1166
|
content: string;
|
|
1167
|
+
type: "tool_result";
|
|
1168
1168
|
tool_use_id: string;
|
|
1169
1169
|
cache_control?: {
|
|
1170
1170
|
type: "ephemeral";
|
|
@@ -1228,8 +1228,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1228
1228
|
type: "ephemeral";
|
|
1229
1229
|
} | undefined;
|
|
1230
1230
|
} | {
|
|
1231
|
-
type: "tool_result";
|
|
1232
1231
|
content: string;
|
|
1232
|
+
type: "tool_result";
|
|
1233
1233
|
tool_use_id: string;
|
|
1234
1234
|
cache_control?: {
|
|
1235
1235
|
type: "ephemeral";
|
|
@@ -1262,8 +1262,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1262
1262
|
type: "ephemeral";
|
|
1263
1263
|
} | undefined;
|
|
1264
1264
|
} | {
|
|
1265
|
-
type: "tool_result";
|
|
1266
1265
|
content: string;
|
|
1266
|
+
type: "tool_result";
|
|
1267
1267
|
tool_use_id: string;
|
|
1268
1268
|
cache_control?: {
|
|
1269
1269
|
type: "ephemeral";
|
|
@@ -1293,13 +1293,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1293
1293
|
diffCached: z.ZodString;
|
|
1294
1294
|
lastCommitMessages: z.ZodString;
|
|
1295
1295
|
}, "strip", z.ZodTypeAny, {
|
|
1296
|
-
diff: string;
|
|
1297
1296
|
status: string;
|
|
1297
|
+
diff: string;
|
|
1298
1298
|
diffCached: string;
|
|
1299
1299
|
lastCommitMessages: string;
|
|
1300
1300
|
}, {
|
|
1301
|
-
diff: string;
|
|
1302
1301
|
status: string;
|
|
1302
|
+
diff: string;
|
|
1303
1303
|
diffCached: string;
|
|
1304
1304
|
lastCommitMessages: string;
|
|
1305
1305
|
}>;
|
|
@@ -1343,8 +1343,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1343
1343
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1344
1344
|
knowledgeFiles: Record<string, string>;
|
|
1345
1345
|
gitChanges: {
|
|
1346
|
-
diff: string;
|
|
1347
1346
|
status: string;
|
|
1347
|
+
diff: string;
|
|
1348
1348
|
diffCached: string;
|
|
1349
1349
|
lastCommitMessages: string;
|
|
1350
1350
|
};
|
|
@@ -1369,8 +1369,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1369
1369
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1370
1370
|
knowledgeFiles: Record<string, string>;
|
|
1371
1371
|
gitChanges: {
|
|
1372
|
-
diff: string;
|
|
1373
1372
|
status: string;
|
|
1373
|
+
diff: string;
|
|
1374
1374
|
diffCached: string;
|
|
1375
1375
|
lastCommitMessages: string;
|
|
1376
1376
|
};
|
|
@@ -1395,13 +1395,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1395
1395
|
filePath: z.ZodString;
|
|
1396
1396
|
content: z.ZodString;
|
|
1397
1397
|
}, "strip", z.ZodTypeAny, {
|
|
1398
|
-
type: "patch" | "file";
|
|
1399
|
-
filePath: string;
|
|
1400
1398
|
content: string;
|
|
1401
|
-
|
|
1402
|
-
type: "patch" | "file";
|
|
1399
|
+
type: "file" | "patch";
|
|
1403
1400
|
filePath: string;
|
|
1401
|
+
}, {
|
|
1404
1402
|
content: string;
|
|
1403
|
+
type: "file" | "patch";
|
|
1404
|
+
filePath: string;
|
|
1405
1405
|
}>, "many">;
|
|
1406
1406
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
1407
1407
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1424,8 +1424,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1424
1424
|
type: "ephemeral";
|
|
1425
1425
|
} | undefined;
|
|
1426
1426
|
} | {
|
|
1427
|
-
type: "tool_result";
|
|
1428
1427
|
content: string;
|
|
1428
|
+
type: "tool_result";
|
|
1429
1429
|
tool_use_id: string;
|
|
1430
1430
|
cache_control?: {
|
|
1431
1431
|
type: "ephemeral";
|
|
@@ -1449,8 +1449,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1449
1449
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1450
1450
|
knowledgeFiles: Record<string, string>;
|
|
1451
1451
|
gitChanges: {
|
|
1452
|
-
diff: string;
|
|
1453
1452
|
status: string;
|
|
1453
|
+
diff: string;
|
|
1454
1454
|
diffCached: string;
|
|
1455
1455
|
lastCommitMessages: string;
|
|
1456
1456
|
};
|
|
@@ -1471,11 +1471,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1471
1471
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1472
1472
|
};
|
|
1473
1473
|
changesAlreadyApplied: {
|
|
1474
|
-
type: "patch" | "file";
|
|
1475
|
-
filePath: string;
|
|
1476
1474
|
content: string;
|
|
1475
|
+
type: "file" | "patch";
|
|
1476
|
+
filePath: string;
|
|
1477
1477
|
}[];
|
|
1478
|
-
costMode: "
|
|
1478
|
+
costMode: "max" | "lite" | "normal";
|
|
1479
1479
|
authToken?: string | undefined;
|
|
1480
1480
|
}, {
|
|
1481
1481
|
type: "user-input";
|
|
@@ -1497,8 +1497,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1497
1497
|
type: "ephemeral";
|
|
1498
1498
|
} | undefined;
|
|
1499
1499
|
} | {
|
|
1500
|
-
type: "tool_result";
|
|
1501
1500
|
content: string;
|
|
1501
|
+
type: "tool_result";
|
|
1502
1502
|
tool_use_id: string;
|
|
1503
1503
|
cache_control?: {
|
|
1504
1504
|
type: "ephemeral";
|
|
@@ -1522,8 +1522,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1522
1522
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1523
1523
|
knowledgeFiles: Record<string, string>;
|
|
1524
1524
|
gitChanges: {
|
|
1525
|
-
diff: string;
|
|
1526
1525
|
status: string;
|
|
1526
|
+
diff: string;
|
|
1527
1527
|
diffCached: string;
|
|
1528
1528
|
lastCommitMessages: string;
|
|
1529
1529
|
};
|
|
@@ -1544,12 +1544,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1544
1544
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1545
1545
|
};
|
|
1546
1546
|
changesAlreadyApplied: {
|
|
1547
|
-
type: "patch" | "file";
|
|
1548
|
-
filePath: string;
|
|
1549
1547
|
content: string;
|
|
1548
|
+
type: "file" | "patch";
|
|
1549
|
+
filePath: string;
|
|
1550
1550
|
}[];
|
|
1551
1551
|
authToken?: string | undefined;
|
|
1552
|
-
costMode?: "
|
|
1552
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
1553
1553
|
}>, z.ZodObject<{
|
|
1554
1554
|
type: z.ZodLiteral<"read-files-response">;
|
|
1555
1555
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -1575,13 +1575,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1575
1575
|
diffCached: z.ZodString;
|
|
1576
1576
|
lastCommitMessages: z.ZodString;
|
|
1577
1577
|
}, "strip", z.ZodTypeAny, {
|
|
1578
|
-
diff: string;
|
|
1579
1578
|
status: string;
|
|
1579
|
+
diff: string;
|
|
1580
1580
|
diffCached: string;
|
|
1581
1581
|
lastCommitMessages: string;
|
|
1582
1582
|
}, {
|
|
1583
|
-
diff: string;
|
|
1584
1583
|
status: string;
|
|
1584
|
+
diff: string;
|
|
1585
1585
|
diffCached: string;
|
|
1586
1586
|
lastCommitMessages: string;
|
|
1587
1587
|
}>;
|
|
@@ -1625,8 +1625,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1625
1625
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1626
1626
|
knowledgeFiles: Record<string, string>;
|
|
1627
1627
|
gitChanges: {
|
|
1628
|
-
diff: string;
|
|
1629
1628
|
status: string;
|
|
1629
|
+
diff: string;
|
|
1630
1630
|
diffCached: string;
|
|
1631
1631
|
lastCommitMessages: string;
|
|
1632
1632
|
};
|
|
@@ -1651,8 +1651,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1651
1651
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1652
1652
|
knowledgeFiles: Record<string, string>;
|
|
1653
1653
|
gitChanges: {
|
|
1654
|
-
diff: string;
|
|
1655
1654
|
status: string;
|
|
1655
|
+
diff: string;
|
|
1656
1656
|
diffCached: string;
|
|
1657
1657
|
lastCommitMessages: string;
|
|
1658
1658
|
};
|
|
@@ -1681,8 +1681,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1681
1681
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1682
1682
|
knowledgeFiles: Record<string, string>;
|
|
1683
1683
|
gitChanges: {
|
|
1684
|
-
diff: string;
|
|
1685
1684
|
status: string;
|
|
1685
|
+
diff: string;
|
|
1686
1686
|
diffCached: string;
|
|
1687
1687
|
lastCommitMessages: string;
|
|
1688
1688
|
};
|
|
@@ -1712,8 +1712,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1712
1712
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1713
1713
|
knowledgeFiles: Record<string, string>;
|
|
1714
1714
|
gitChanges: {
|
|
1715
|
-
diff: string;
|
|
1716
1715
|
status: string;
|
|
1716
|
+
diff: string;
|
|
1717
1717
|
diffCached: string;
|
|
1718
1718
|
lastCommitMessages: string;
|
|
1719
1719
|
};
|
|
@@ -1778,14 +1778,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1778
1778
|
fingerprintHash: z.ZodString;
|
|
1779
1779
|
}, "strip", z.ZodTypeAny, {
|
|
1780
1780
|
type: "clear-auth-token";
|
|
1781
|
-
fingerprintId: string;
|
|
1782
1781
|
authToken: string;
|
|
1782
|
+
fingerprintId: string;
|
|
1783
1783
|
fingerprintHash: string;
|
|
1784
1784
|
userId: string;
|
|
1785
1785
|
}, {
|
|
1786
1786
|
type: "clear-auth-token";
|
|
1787
|
-
fingerprintId: string;
|
|
1788
1787
|
authToken: string;
|
|
1788
|
+
fingerprintId: string;
|
|
1789
1789
|
fingerprintHash: string;
|
|
1790
1790
|
userId: string;
|
|
1791
1791
|
}>, z.ZodObject<{
|
|
@@ -1826,8 +1826,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1826
1826
|
type: "ephemeral";
|
|
1827
1827
|
} | undefined;
|
|
1828
1828
|
} | {
|
|
1829
|
-
type: "tool_result";
|
|
1830
1829
|
content: string;
|
|
1830
|
+
type: "tool_result";
|
|
1831
1831
|
tool_use_id: string;
|
|
1832
1832
|
cache_control?: {
|
|
1833
1833
|
type: "ephemeral";
|
|
@@ -1851,8 +1851,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1851
1851
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1852
1852
|
knowledgeFiles: Record<string, string>;
|
|
1853
1853
|
gitChanges: {
|
|
1854
|
-
diff: string;
|
|
1855
1854
|
status: string;
|
|
1855
|
+
diff: string;
|
|
1856
1856
|
diffCached: string;
|
|
1857
1857
|
lastCommitMessages: string;
|
|
1858
1858
|
};
|
|
@@ -1873,11 +1873,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1873
1873
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1874
1874
|
};
|
|
1875
1875
|
changesAlreadyApplied: {
|
|
1876
|
-
type: "patch" | "file";
|
|
1877
|
-
filePath: string;
|
|
1878
1876
|
content: string;
|
|
1877
|
+
type: "file" | "patch";
|
|
1878
|
+
filePath: string;
|
|
1879
1879
|
}[];
|
|
1880
|
-
costMode: "
|
|
1880
|
+
costMode: "max" | "lite" | "normal";
|
|
1881
1881
|
authToken?: string | undefined;
|
|
1882
1882
|
} | {
|
|
1883
1883
|
type: "read-files-response";
|
|
@@ -1891,8 +1891,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1891
1891
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1892
1892
|
knowledgeFiles: Record<string, string>;
|
|
1893
1893
|
gitChanges: {
|
|
1894
|
-
diff: string;
|
|
1895
1894
|
status: string;
|
|
1895
|
+
diff: string;
|
|
1896
1896
|
diffCached: string;
|
|
1897
1897
|
lastCommitMessages: string;
|
|
1898
1898
|
};
|
|
@@ -1927,8 +1927,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1927
1927
|
fingerprintHash: string;
|
|
1928
1928
|
} | {
|
|
1929
1929
|
type: "clear-auth-token";
|
|
1930
|
-
fingerprintId: string;
|
|
1931
1930
|
authToken: string;
|
|
1931
|
+
fingerprintId: string;
|
|
1932
1932
|
fingerprintHash: string;
|
|
1933
1933
|
userId: string;
|
|
1934
1934
|
} | {
|
|
@@ -1960,8 +1960,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1960
1960
|
type: "ephemeral";
|
|
1961
1961
|
} | undefined;
|
|
1962
1962
|
} | {
|
|
1963
|
-
type: "tool_result";
|
|
1964
1963
|
content: string;
|
|
1964
|
+
type: "tool_result";
|
|
1965
1965
|
tool_use_id: string;
|
|
1966
1966
|
cache_control?: {
|
|
1967
1967
|
type: "ephemeral";
|
|
@@ -1985,8 +1985,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1985
1985
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1986
1986
|
knowledgeFiles: Record<string, string>;
|
|
1987
1987
|
gitChanges: {
|
|
1988
|
-
diff: string;
|
|
1989
1988
|
status: string;
|
|
1989
|
+
diff: string;
|
|
1990
1990
|
diffCached: string;
|
|
1991
1991
|
lastCommitMessages: string;
|
|
1992
1992
|
};
|
|
@@ -2007,12 +2007,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2007
2007
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2008
2008
|
};
|
|
2009
2009
|
changesAlreadyApplied: {
|
|
2010
|
-
type: "patch" | "file";
|
|
2011
|
-
filePath: string;
|
|
2012
2010
|
content: string;
|
|
2011
|
+
type: "file" | "patch";
|
|
2012
|
+
filePath: string;
|
|
2013
2013
|
}[];
|
|
2014
2014
|
authToken?: string | undefined;
|
|
2015
|
-
costMode?: "
|
|
2015
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
2016
2016
|
} | {
|
|
2017
2017
|
type: "read-files-response";
|
|
2018
2018
|
files: Record<string, string | null>;
|
|
@@ -2025,8 +2025,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2025
2025
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2026
2026
|
knowledgeFiles: Record<string, string>;
|
|
2027
2027
|
gitChanges: {
|
|
2028
|
-
diff: string;
|
|
2029
2028
|
status: string;
|
|
2029
|
+
diff: string;
|
|
2030
2030
|
diffCached: string;
|
|
2031
2031
|
lastCommitMessages: string;
|
|
2032
2032
|
};
|
|
@@ -2061,8 +2061,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2061
2061
|
fingerprintHash: string;
|
|
2062
2062
|
} | {
|
|
2063
2063
|
type: "clear-auth-token";
|
|
2064
|
-
fingerprintId: string;
|
|
2065
2064
|
authToken: string;
|
|
2065
|
+
fingerprintId: string;
|
|
2066
2066
|
fingerprintHash: string;
|
|
2067
2067
|
userId: string;
|
|
2068
2068
|
} | {
|
|
@@ -2124,26 +2124,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2124
2124
|
filePath: z.ZodString;
|
|
2125
2125
|
content: z.ZodString;
|
|
2126
2126
|
}, "strip", z.ZodTypeAny, {
|
|
2127
|
-
type: "patch" | "file";
|
|
2128
|
-
filePath: string;
|
|
2129
2127
|
content: string;
|
|
2130
|
-
|
|
2131
|
-
type: "patch" | "file";
|
|
2128
|
+
type: "file" | "patch";
|
|
2132
2129
|
filePath: string;
|
|
2130
|
+
}, {
|
|
2133
2131
|
content: string;
|
|
2132
|
+
type: "file" | "patch";
|
|
2133
|
+
filePath: string;
|
|
2134
2134
|
}>, "many">;
|
|
2135
2135
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2136
2136
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2137
2137
|
filePath: z.ZodString;
|
|
2138
2138
|
content: z.ZodString;
|
|
2139
2139
|
}, "strip", z.ZodTypeAny, {
|
|
2140
|
-
type: "patch" | "file";
|
|
2141
|
-
filePath: string;
|
|
2142
2140
|
content: string;
|
|
2143
|
-
|
|
2144
|
-
type: "patch" | "file";
|
|
2141
|
+
type: "file" | "patch";
|
|
2145
2142
|
filePath: string;
|
|
2143
|
+
}, {
|
|
2146
2144
|
content: string;
|
|
2145
|
+
type: "file" | "patch";
|
|
2146
|
+
filePath: string;
|
|
2147
2147
|
}>, "many">;
|
|
2148
2148
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2149
2149
|
path: z.ZodString;
|
|
@@ -2167,15 +2167,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2167
2167
|
type: "response-complete";
|
|
2168
2168
|
userInputId: string;
|
|
2169
2169
|
changesAlreadyApplied: {
|
|
2170
|
-
type: "patch" | "file";
|
|
2171
|
-
filePath: string;
|
|
2172
2170
|
content: string;
|
|
2171
|
+
type: "file" | "patch";
|
|
2172
|
+
filePath: string;
|
|
2173
2173
|
}[];
|
|
2174
2174
|
response: string;
|
|
2175
2175
|
changes: {
|
|
2176
|
-
type: "patch" | "file";
|
|
2177
|
-
filePath: string;
|
|
2178
2176
|
content: string;
|
|
2177
|
+
type: "file" | "patch";
|
|
2178
|
+
filePath: string;
|
|
2179
2179
|
}[];
|
|
2180
2180
|
addedFileVersions: {
|
|
2181
2181
|
path: string;
|
|
@@ -2192,15 +2192,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2192
2192
|
type: "response-complete";
|
|
2193
2193
|
userInputId: string;
|
|
2194
2194
|
changesAlreadyApplied: {
|
|
2195
|
-
type: "patch" | "file";
|
|
2196
|
-
filePath: string;
|
|
2197
2195
|
content: string;
|
|
2196
|
+
type: "file" | "patch";
|
|
2197
|
+
filePath: string;
|
|
2198
2198
|
}[];
|
|
2199
2199
|
response: string;
|
|
2200
2200
|
changes: {
|
|
2201
|
-
type: "patch" | "file";
|
|
2202
|
-
filePath: string;
|
|
2203
2201
|
content: string;
|
|
2202
|
+
type: "file" | "patch";
|
|
2203
|
+
filePath: string;
|
|
2204
2204
|
}[];
|
|
2205
2205
|
addedFileVersions: {
|
|
2206
2206
|
path: string;
|
|
@@ -2244,26 +2244,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2244
2244
|
filePath: z.ZodString;
|
|
2245
2245
|
content: z.ZodString;
|
|
2246
2246
|
}, "strip", z.ZodTypeAny, {
|
|
2247
|
-
type: "patch" | "file";
|
|
2248
|
-
filePath: string;
|
|
2249
2247
|
content: string;
|
|
2250
|
-
|
|
2251
|
-
type: "patch" | "file";
|
|
2248
|
+
type: "file" | "patch";
|
|
2252
2249
|
filePath: string;
|
|
2250
|
+
}, {
|
|
2253
2251
|
content: string;
|
|
2252
|
+
type: "file" | "patch";
|
|
2253
|
+
filePath: string;
|
|
2254
2254
|
}>, "many">;
|
|
2255
2255
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2256
2256
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2257
2257
|
filePath: z.ZodString;
|
|
2258
2258
|
content: z.ZodString;
|
|
2259
2259
|
}, "strip", z.ZodTypeAny, {
|
|
2260
|
-
type: "patch" | "file";
|
|
2261
|
-
filePath: string;
|
|
2262
2260
|
content: string;
|
|
2263
|
-
|
|
2264
|
-
type: "patch" | "file";
|
|
2261
|
+
type: "file" | "patch";
|
|
2265
2262
|
filePath: string;
|
|
2263
|
+
}, {
|
|
2266
2264
|
content: string;
|
|
2265
|
+
type: "file" | "patch";
|
|
2266
|
+
filePath: string;
|
|
2267
2267
|
}>, "many">;
|
|
2268
2268
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2269
2269
|
path: z.ZodString;
|
|
@@ -2285,15 +2285,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2285
2285
|
input: Record<string, any>;
|
|
2286
2286
|
};
|
|
2287
2287
|
changesAlreadyApplied: {
|
|
2288
|
-
type: "patch" | "file";
|
|
2289
|
-
filePath: string;
|
|
2290
2288
|
content: string;
|
|
2289
|
+
type: "file" | "patch";
|
|
2290
|
+
filePath: string;
|
|
2291
2291
|
}[];
|
|
2292
2292
|
response: string;
|
|
2293
2293
|
changes: {
|
|
2294
|
-
type: "patch" | "file";
|
|
2295
|
-
filePath: string;
|
|
2296
2294
|
content: string;
|
|
2295
|
+
type: "file" | "patch";
|
|
2296
|
+
filePath: string;
|
|
2297
2297
|
}[];
|
|
2298
2298
|
addedFileVersions: {
|
|
2299
2299
|
path: string;
|
|
@@ -2309,15 +2309,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2309
2309
|
input: Record<string, any>;
|
|
2310
2310
|
};
|
|
2311
2311
|
changesAlreadyApplied: {
|
|
2312
|
-
type: "patch" | "file";
|
|
2313
|
-
filePath: string;
|
|
2314
2312
|
content: string;
|
|
2313
|
+
type: "file" | "patch";
|
|
2314
|
+
filePath: string;
|
|
2315
2315
|
}[];
|
|
2316
2316
|
response: string;
|
|
2317
2317
|
changes: {
|
|
2318
|
-
type: "patch" | "file";
|
|
2319
|
-
filePath: string;
|
|
2320
2318
|
content: string;
|
|
2319
|
+
type: "file" | "patch";
|
|
2320
|
+
filePath: string;
|
|
2321
2321
|
}[];
|
|
2322
2322
|
addedFileVersions: {
|
|
2323
2323
|
path: string;
|
|
@@ -2384,41 +2384,41 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2384
2384
|
fingerprintId: z.ZodString;
|
|
2385
2385
|
fingerprintHash: z.ZodString;
|
|
2386
2386
|
}, "strip", z.ZodTypeAny, {
|
|
2387
|
+
email: string;
|
|
2387
2388
|
name: string | null;
|
|
2388
2389
|
id: string;
|
|
2389
|
-
fingerprintId: string;
|
|
2390
2390
|
authToken: string;
|
|
2391
|
-
|
|
2391
|
+
fingerprintId: string;
|
|
2392
2392
|
fingerprintHash: string;
|
|
2393
2393
|
}, {
|
|
2394
|
+
email: string;
|
|
2394
2395
|
name: string | null;
|
|
2395
2396
|
id: string;
|
|
2396
|
-
fingerprintId: string;
|
|
2397
2397
|
authToken: string;
|
|
2398
|
-
|
|
2398
|
+
fingerprintId: string;
|
|
2399
2399
|
fingerprintHash: string;
|
|
2400
2400
|
}>>;
|
|
2401
2401
|
message: z.ZodString;
|
|
2402
2402
|
}, "strip", z.ZodTypeAny, {
|
|
2403
|
-
type: "auth-result";
|
|
2404
2403
|
message: string;
|
|
2404
|
+
type: "auth-result";
|
|
2405
2405
|
user?: {
|
|
2406
|
+
email: string;
|
|
2406
2407
|
name: string | null;
|
|
2407
2408
|
id: string;
|
|
2408
|
-
fingerprintId: string;
|
|
2409
2409
|
authToken: string;
|
|
2410
|
-
|
|
2410
|
+
fingerprintId: string;
|
|
2411
2411
|
fingerprintHash: string;
|
|
2412
2412
|
} | undefined;
|
|
2413
2413
|
}, {
|
|
2414
|
-
type: "auth-result";
|
|
2415
2414
|
message: string;
|
|
2415
|
+
type: "auth-result";
|
|
2416
2416
|
user?: {
|
|
2417
|
+
email: string;
|
|
2417
2418
|
name: string | null;
|
|
2418
2419
|
id: string;
|
|
2419
|
-
fingerprintId: string;
|
|
2420
2420
|
authToken: string;
|
|
2421
|
-
|
|
2421
|
+
fingerprintId: string;
|
|
2422
2422
|
fingerprintHash: string;
|
|
2423
2423
|
} | undefined;
|
|
2424
2424
|
}>, z.ZodObject<{
|
|
@@ -2464,11 +2464,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2464
2464
|
type: z.ZodLiteral<"action-error">;
|
|
2465
2465
|
message: z.ZodString;
|
|
2466
2466
|
}, "strip", z.ZodTypeAny, {
|
|
2467
|
-
type: "action-error";
|
|
2468
2467
|
message: string;
|
|
2469
|
-
}, {
|
|
2470
2468
|
type: "action-error";
|
|
2469
|
+
}, {
|
|
2471
2470
|
message: string;
|
|
2471
|
+
type: "action-error";
|
|
2472
2472
|
}>, z.ZodObject<{
|
|
2473
2473
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2474
2474
|
commitMessage: z.ZodString;
|
|
@@ -2501,15 +2501,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2501
2501
|
type: "response-complete";
|
|
2502
2502
|
userInputId: string;
|
|
2503
2503
|
changesAlreadyApplied: {
|
|
2504
|
-
type: "patch" | "file";
|
|
2505
|
-
filePath: string;
|
|
2506
2504
|
content: string;
|
|
2505
|
+
type: "file" | "patch";
|
|
2506
|
+
filePath: string;
|
|
2507
2507
|
}[];
|
|
2508
2508
|
response: string;
|
|
2509
2509
|
changes: {
|
|
2510
|
-
type: "patch" | "file";
|
|
2511
|
-
filePath: string;
|
|
2512
2510
|
content: string;
|
|
2511
|
+
type: "file" | "patch";
|
|
2512
|
+
filePath: string;
|
|
2513
2513
|
}[];
|
|
2514
2514
|
addedFileVersions: {
|
|
2515
2515
|
path: string;
|
|
@@ -2541,15 +2541,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2541
2541
|
input: Record<string, any>;
|
|
2542
2542
|
};
|
|
2543
2543
|
changesAlreadyApplied: {
|
|
2544
|
-
type: "patch" | "file";
|
|
2545
|
-
filePath: string;
|
|
2546
2544
|
content: string;
|
|
2545
|
+
type: "file" | "patch";
|
|
2546
|
+
filePath: string;
|
|
2547
2547
|
}[];
|
|
2548
2548
|
response: string;
|
|
2549
2549
|
changes: {
|
|
2550
|
-
type: "patch" | "file";
|
|
2551
|
-
filePath: string;
|
|
2552
2550
|
content: string;
|
|
2551
|
+
type: "file" | "patch";
|
|
2552
|
+
filePath: string;
|
|
2553
2553
|
}[];
|
|
2554
2554
|
addedFileVersions: {
|
|
2555
2555
|
path: string;
|
|
@@ -2565,14 +2565,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2565
2565
|
isUpToDate: boolean;
|
|
2566
2566
|
latestVersion: string;
|
|
2567
2567
|
} | {
|
|
2568
|
-
type: "auth-result";
|
|
2569
2568
|
message: string;
|
|
2569
|
+
type: "auth-result";
|
|
2570
2570
|
user?: {
|
|
2571
|
+
email: string;
|
|
2571
2572
|
name: string | null;
|
|
2572
2573
|
id: string;
|
|
2573
|
-
fingerprintId: string;
|
|
2574
2574
|
authToken: string;
|
|
2575
|
-
|
|
2575
|
+
fingerprintId: string;
|
|
2576
2576
|
fingerprintHash: string;
|
|
2577
2577
|
} | undefined;
|
|
2578
2578
|
} | {
|
|
@@ -2581,8 +2581,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2581
2581
|
fingerprintHash: string;
|
|
2582
2582
|
loginUrl: string;
|
|
2583
2583
|
} | {
|
|
2584
|
-
type: "action-error";
|
|
2585
2584
|
message: string;
|
|
2585
|
+
type: "action-error";
|
|
2586
2586
|
} | {
|
|
2587
2587
|
type: "commit-message-response";
|
|
2588
2588
|
commitMessage: string;
|
|
@@ -2609,15 +2609,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2609
2609
|
type: "response-complete";
|
|
2610
2610
|
userInputId: string;
|
|
2611
2611
|
changesAlreadyApplied: {
|
|
2612
|
-
type: "patch" | "file";
|
|
2613
|
-
filePath: string;
|
|
2614
2612
|
content: string;
|
|
2613
|
+
type: "file" | "patch";
|
|
2614
|
+
filePath: string;
|
|
2615
2615
|
}[];
|
|
2616
2616
|
response: string;
|
|
2617
2617
|
changes: {
|
|
2618
|
-
type: "patch" | "file";
|
|
2619
|
-
filePath: string;
|
|
2620
2618
|
content: string;
|
|
2619
|
+
type: "file" | "patch";
|
|
2620
|
+
filePath: string;
|
|
2621
2621
|
}[];
|
|
2622
2622
|
addedFileVersions: {
|
|
2623
2623
|
path: string;
|
|
@@ -2649,15 +2649,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2649
2649
|
input: Record<string, any>;
|
|
2650
2650
|
};
|
|
2651
2651
|
changesAlreadyApplied: {
|
|
2652
|
-
type: "patch" | "file";
|
|
2653
|
-
filePath: string;
|
|
2654
2652
|
content: string;
|
|
2653
|
+
type: "file" | "patch";
|
|
2654
|
+
filePath: string;
|
|
2655
2655
|
}[];
|
|
2656
2656
|
response: string;
|
|
2657
2657
|
changes: {
|
|
2658
|
-
type: "patch" | "file";
|
|
2659
|
-
filePath: string;
|
|
2660
2658
|
content: string;
|
|
2659
|
+
type: "file" | "patch";
|
|
2660
|
+
filePath: string;
|
|
2661
2661
|
}[];
|
|
2662
2662
|
addedFileVersions: {
|
|
2663
2663
|
path: string;
|
|
@@ -2673,14 +2673,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2673
2673
|
isUpToDate: boolean;
|
|
2674
2674
|
latestVersion: string;
|
|
2675
2675
|
} | {
|
|
2676
|
-
type: "auth-result";
|
|
2677
2676
|
message: string;
|
|
2677
|
+
type: "auth-result";
|
|
2678
2678
|
user?: {
|
|
2679
|
+
email: string;
|
|
2679
2680
|
name: string | null;
|
|
2680
2681
|
id: string;
|
|
2681
|
-
fingerprintId: string;
|
|
2682
2682
|
authToken: string;
|
|
2683
|
-
|
|
2683
|
+
fingerprintId: string;
|
|
2684
2684
|
fingerprintHash: string;
|
|
2685
2685
|
} | undefined;
|
|
2686
2686
|
} | {
|
|
@@ -2689,8 +2689,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2689
2689
|
fingerprintHash: string;
|
|
2690
2690
|
loginUrl: string;
|
|
2691
2691
|
} | {
|
|
2692
|
-
type: "action-error";
|
|
2693
2692
|
message: string;
|
|
2693
|
+
type: "action-error";
|
|
2694
2694
|
} | {
|
|
2695
2695
|
type: "commit-message-response";
|
|
2696
2696
|
commitMessage: string;
|
|
@@ -2744,26 +2744,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2744
2744
|
filePath: z.ZodString;
|
|
2745
2745
|
content: z.ZodString;
|
|
2746
2746
|
}, "strip", z.ZodTypeAny, {
|
|
2747
|
-
type: "patch" | "file";
|
|
2748
|
-
filePath: string;
|
|
2749
2747
|
content: string;
|
|
2750
|
-
|
|
2751
|
-
type: "patch" | "file";
|
|
2748
|
+
type: "file" | "patch";
|
|
2752
2749
|
filePath: string;
|
|
2750
|
+
}, {
|
|
2753
2751
|
content: string;
|
|
2752
|
+
type: "file" | "patch";
|
|
2753
|
+
filePath: string;
|
|
2754
2754
|
}>, "many">;
|
|
2755
2755
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2756
2756
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2757
2757
|
filePath: z.ZodString;
|
|
2758
2758
|
content: z.ZodString;
|
|
2759
2759
|
}, "strip", z.ZodTypeAny, {
|
|
2760
|
-
type: "patch" | "file";
|
|
2761
|
-
filePath: string;
|
|
2762
2760
|
content: string;
|
|
2763
|
-
|
|
2764
|
-
type: "patch" | "file";
|
|
2761
|
+
type: "file" | "patch";
|
|
2765
2762
|
filePath: string;
|
|
2763
|
+
}, {
|
|
2766
2764
|
content: string;
|
|
2765
|
+
type: "file" | "patch";
|
|
2766
|
+
filePath: string;
|
|
2767
2767
|
}>, "many">;
|
|
2768
2768
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2769
2769
|
path: z.ZodString;
|
|
@@ -2787,15 +2787,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2787
2787
|
type: "response-complete";
|
|
2788
2788
|
userInputId: string;
|
|
2789
2789
|
changesAlreadyApplied: {
|
|
2790
|
-
type: "patch" | "file";
|
|
2791
|
-
filePath: string;
|
|
2792
2790
|
content: string;
|
|
2791
|
+
type: "file" | "patch";
|
|
2792
|
+
filePath: string;
|
|
2793
2793
|
}[];
|
|
2794
2794
|
response: string;
|
|
2795
2795
|
changes: {
|
|
2796
|
-
type: "patch" | "file";
|
|
2797
|
-
filePath: string;
|
|
2798
2796
|
content: string;
|
|
2797
|
+
type: "file" | "patch";
|
|
2798
|
+
filePath: string;
|
|
2799
2799
|
}[];
|
|
2800
2800
|
addedFileVersions: {
|
|
2801
2801
|
path: string;
|
|
@@ -2812,15 +2812,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2812
2812
|
type: "response-complete";
|
|
2813
2813
|
userInputId: string;
|
|
2814
2814
|
changesAlreadyApplied: {
|
|
2815
|
-
type: "patch" | "file";
|
|
2816
|
-
filePath: string;
|
|
2817
2815
|
content: string;
|
|
2816
|
+
type: "file" | "patch";
|
|
2817
|
+
filePath: string;
|
|
2818
2818
|
}[];
|
|
2819
2819
|
response: string;
|
|
2820
2820
|
changes: {
|
|
2821
|
-
type: "patch" | "file";
|
|
2822
|
-
filePath: string;
|
|
2823
2821
|
content: string;
|
|
2822
|
+
type: "file" | "patch";
|
|
2823
|
+
filePath: string;
|
|
2824
2824
|
}[];
|
|
2825
2825
|
addedFileVersions: {
|
|
2826
2826
|
path: string;
|
|
@@ -2864,26 +2864,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2864
2864
|
filePath: z.ZodString;
|
|
2865
2865
|
content: z.ZodString;
|
|
2866
2866
|
}, "strip", z.ZodTypeAny, {
|
|
2867
|
-
type: "patch" | "file";
|
|
2868
|
-
filePath: string;
|
|
2869
2867
|
content: string;
|
|
2870
|
-
|
|
2871
|
-
type: "patch" | "file";
|
|
2868
|
+
type: "file" | "patch";
|
|
2872
2869
|
filePath: string;
|
|
2870
|
+
}, {
|
|
2873
2871
|
content: string;
|
|
2872
|
+
type: "file" | "patch";
|
|
2873
|
+
filePath: string;
|
|
2874
2874
|
}>, "many">;
|
|
2875
2875
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2876
2876
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2877
2877
|
filePath: z.ZodString;
|
|
2878
2878
|
content: z.ZodString;
|
|
2879
2879
|
}, "strip", z.ZodTypeAny, {
|
|
2880
|
-
type: "patch" | "file";
|
|
2881
|
-
filePath: string;
|
|
2882
2880
|
content: string;
|
|
2883
|
-
|
|
2884
|
-
type: "patch" | "file";
|
|
2881
|
+
type: "file" | "patch";
|
|
2885
2882
|
filePath: string;
|
|
2883
|
+
}, {
|
|
2886
2884
|
content: string;
|
|
2885
|
+
type: "file" | "patch";
|
|
2886
|
+
filePath: string;
|
|
2887
2887
|
}>, "many">;
|
|
2888
2888
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2889
2889
|
path: z.ZodString;
|
|
@@ -2905,15 +2905,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2905
2905
|
input: Record<string, any>;
|
|
2906
2906
|
};
|
|
2907
2907
|
changesAlreadyApplied: {
|
|
2908
|
-
type: "patch" | "file";
|
|
2909
|
-
filePath: string;
|
|
2910
2908
|
content: string;
|
|
2909
|
+
type: "file" | "patch";
|
|
2910
|
+
filePath: string;
|
|
2911
2911
|
}[];
|
|
2912
2912
|
response: string;
|
|
2913
2913
|
changes: {
|
|
2914
|
-
type: "patch" | "file";
|
|
2915
|
-
filePath: string;
|
|
2916
2914
|
content: string;
|
|
2915
|
+
type: "file" | "patch";
|
|
2916
|
+
filePath: string;
|
|
2917
2917
|
}[];
|
|
2918
2918
|
addedFileVersions: {
|
|
2919
2919
|
path: string;
|
|
@@ -2929,15 +2929,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2929
2929
|
input: Record<string, any>;
|
|
2930
2930
|
};
|
|
2931
2931
|
changesAlreadyApplied: {
|
|
2932
|
-
type: "patch" | "file";
|
|
2933
|
-
filePath: string;
|
|
2934
2932
|
content: string;
|
|
2933
|
+
type: "file" | "patch";
|
|
2934
|
+
filePath: string;
|
|
2935
2935
|
}[];
|
|
2936
2936
|
response: string;
|
|
2937
2937
|
changes: {
|
|
2938
|
-
type: "patch" | "file";
|
|
2939
|
-
filePath: string;
|
|
2940
2938
|
content: string;
|
|
2939
|
+
type: "file" | "patch";
|
|
2940
|
+
filePath: string;
|
|
2941
2941
|
}[];
|
|
2942
2942
|
addedFileVersions: {
|
|
2943
2943
|
path: string;
|
|
@@ -3004,41 +3004,41 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3004
3004
|
fingerprintId: z.ZodString;
|
|
3005
3005
|
fingerprintHash: z.ZodString;
|
|
3006
3006
|
}, "strip", z.ZodTypeAny, {
|
|
3007
|
+
email: string;
|
|
3007
3008
|
name: string | null;
|
|
3008
3009
|
id: string;
|
|
3009
|
-
fingerprintId: string;
|
|
3010
3010
|
authToken: string;
|
|
3011
|
-
|
|
3011
|
+
fingerprintId: string;
|
|
3012
3012
|
fingerprintHash: string;
|
|
3013
3013
|
}, {
|
|
3014
|
+
email: string;
|
|
3014
3015
|
name: string | null;
|
|
3015
3016
|
id: string;
|
|
3016
|
-
fingerprintId: string;
|
|
3017
3017
|
authToken: string;
|
|
3018
|
-
|
|
3018
|
+
fingerprintId: string;
|
|
3019
3019
|
fingerprintHash: string;
|
|
3020
3020
|
}>>;
|
|
3021
3021
|
message: z.ZodString;
|
|
3022
3022
|
}, "strip", z.ZodTypeAny, {
|
|
3023
|
-
type: "auth-result";
|
|
3024
3023
|
message: string;
|
|
3024
|
+
type: "auth-result";
|
|
3025
3025
|
user?: {
|
|
3026
|
+
email: string;
|
|
3026
3027
|
name: string | null;
|
|
3027
3028
|
id: string;
|
|
3028
|
-
fingerprintId: string;
|
|
3029
3029
|
authToken: string;
|
|
3030
|
-
|
|
3030
|
+
fingerprintId: string;
|
|
3031
3031
|
fingerprintHash: string;
|
|
3032
3032
|
} | undefined;
|
|
3033
3033
|
}, {
|
|
3034
|
-
type: "auth-result";
|
|
3035
3034
|
message: string;
|
|
3035
|
+
type: "auth-result";
|
|
3036
3036
|
user?: {
|
|
3037
|
+
email: string;
|
|
3037
3038
|
name: string | null;
|
|
3038
3039
|
id: string;
|
|
3039
|
-
fingerprintId: string;
|
|
3040
3040
|
authToken: string;
|
|
3041
|
-
|
|
3041
|
+
fingerprintId: string;
|
|
3042
3042
|
fingerprintHash: string;
|
|
3043
3043
|
} | undefined;
|
|
3044
3044
|
}>, z.ZodObject<{
|
|
@@ -3084,11 +3084,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3084
3084
|
type: z.ZodLiteral<"action-error">;
|
|
3085
3085
|
message: z.ZodString;
|
|
3086
3086
|
}, "strip", z.ZodTypeAny, {
|
|
3087
|
-
type: "action-error";
|
|
3088
3087
|
message: string;
|
|
3089
|
-
}, {
|
|
3090
3088
|
type: "action-error";
|
|
3089
|
+
}, {
|
|
3091
3090
|
message: string;
|
|
3091
|
+
type: "action-error";
|
|
3092
3092
|
}>, z.ZodObject<{
|
|
3093
3093
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3094
3094
|
commitMessage: z.ZodString;
|
|
@@ -3121,15 +3121,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3121
3121
|
type: "response-complete";
|
|
3122
3122
|
userInputId: string;
|
|
3123
3123
|
changesAlreadyApplied: {
|
|
3124
|
-
type: "patch" | "file";
|
|
3125
|
-
filePath: string;
|
|
3126
3124
|
content: string;
|
|
3125
|
+
type: "file" | "patch";
|
|
3126
|
+
filePath: string;
|
|
3127
3127
|
}[];
|
|
3128
3128
|
response: string;
|
|
3129
3129
|
changes: {
|
|
3130
|
-
type: "patch" | "file";
|
|
3131
|
-
filePath: string;
|
|
3132
3130
|
content: string;
|
|
3131
|
+
type: "file" | "patch";
|
|
3132
|
+
filePath: string;
|
|
3133
3133
|
}[];
|
|
3134
3134
|
addedFileVersions: {
|
|
3135
3135
|
path: string;
|
|
@@ -3161,15 +3161,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3161
3161
|
input: Record<string, any>;
|
|
3162
3162
|
};
|
|
3163
3163
|
changesAlreadyApplied: {
|
|
3164
|
-
type: "patch" | "file";
|
|
3165
|
-
filePath: string;
|
|
3166
3164
|
content: string;
|
|
3165
|
+
type: "file" | "patch";
|
|
3166
|
+
filePath: string;
|
|
3167
3167
|
}[];
|
|
3168
3168
|
response: string;
|
|
3169
3169
|
changes: {
|
|
3170
|
-
type: "patch" | "file";
|
|
3171
|
-
filePath: string;
|
|
3172
3170
|
content: string;
|
|
3171
|
+
type: "file" | "patch";
|
|
3172
|
+
filePath: string;
|
|
3173
3173
|
}[];
|
|
3174
3174
|
addedFileVersions: {
|
|
3175
3175
|
path: string;
|
|
@@ -3185,14 +3185,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3185
3185
|
isUpToDate: boolean;
|
|
3186
3186
|
latestVersion: string;
|
|
3187
3187
|
} | {
|
|
3188
|
-
type: "auth-result";
|
|
3189
3188
|
message: string;
|
|
3189
|
+
type: "auth-result";
|
|
3190
3190
|
user?: {
|
|
3191
|
+
email: string;
|
|
3191
3192
|
name: string | null;
|
|
3192
3193
|
id: string;
|
|
3193
|
-
fingerprintId: string;
|
|
3194
3194
|
authToken: string;
|
|
3195
|
-
|
|
3195
|
+
fingerprintId: string;
|
|
3196
3196
|
fingerprintHash: string;
|
|
3197
3197
|
} | undefined;
|
|
3198
3198
|
} | {
|
|
@@ -3201,8 +3201,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3201
3201
|
fingerprintHash: string;
|
|
3202
3202
|
loginUrl: string;
|
|
3203
3203
|
} | {
|
|
3204
|
-
type: "action-error";
|
|
3205
3204
|
message: string;
|
|
3205
|
+
type: "action-error";
|
|
3206
3206
|
} | {
|
|
3207
3207
|
type: "commit-message-response";
|
|
3208
3208
|
commitMessage: string;
|
|
@@ -3229,15 +3229,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3229
3229
|
type: "response-complete";
|
|
3230
3230
|
userInputId: string;
|
|
3231
3231
|
changesAlreadyApplied: {
|
|
3232
|
-
type: "patch" | "file";
|
|
3233
|
-
filePath: string;
|
|
3234
3232
|
content: string;
|
|
3233
|
+
type: "file" | "patch";
|
|
3234
|
+
filePath: string;
|
|
3235
3235
|
}[];
|
|
3236
3236
|
response: string;
|
|
3237
3237
|
changes: {
|
|
3238
|
-
type: "patch" | "file";
|
|
3239
|
-
filePath: string;
|
|
3240
3238
|
content: string;
|
|
3239
|
+
type: "file" | "patch";
|
|
3240
|
+
filePath: string;
|
|
3241
3241
|
}[];
|
|
3242
3242
|
addedFileVersions: {
|
|
3243
3243
|
path: string;
|
|
@@ -3269,15 +3269,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3269
3269
|
input: Record<string, any>;
|
|
3270
3270
|
};
|
|
3271
3271
|
changesAlreadyApplied: {
|
|
3272
|
-
type: "patch" | "file";
|
|
3273
|
-
filePath: string;
|
|
3274
3272
|
content: string;
|
|
3273
|
+
type: "file" | "patch";
|
|
3274
|
+
filePath: string;
|
|
3275
3275
|
}[];
|
|
3276
3276
|
response: string;
|
|
3277
3277
|
changes: {
|
|
3278
|
-
type: "patch" | "file";
|
|
3279
|
-
filePath: string;
|
|
3280
3278
|
content: string;
|
|
3279
|
+
type: "file" | "patch";
|
|
3280
|
+
filePath: string;
|
|
3281
3281
|
}[];
|
|
3282
3282
|
addedFileVersions: {
|
|
3283
3283
|
path: string;
|
|
@@ -3293,14 +3293,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3293
3293
|
isUpToDate: boolean;
|
|
3294
3294
|
latestVersion: string;
|
|
3295
3295
|
} | {
|
|
3296
|
-
type: "auth-result";
|
|
3297
3296
|
message: string;
|
|
3297
|
+
type: "auth-result";
|
|
3298
3298
|
user?: {
|
|
3299
|
+
email: string;
|
|
3299
3300
|
name: string | null;
|
|
3300
3301
|
id: string;
|
|
3301
|
-
fingerprintId: string;
|
|
3302
3302
|
authToken: string;
|
|
3303
|
-
|
|
3303
|
+
fingerprintId: string;
|
|
3304
3304
|
fingerprintHash: string;
|
|
3305
3305
|
} | undefined;
|
|
3306
3306
|
} | {
|
|
@@ -3309,8 +3309,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3309
3309
|
fingerprintHash: string;
|
|
3310
3310
|
loginUrl: string;
|
|
3311
3311
|
} | {
|
|
3312
|
-
type: "action-error";
|
|
3313
3312
|
message: string;
|
|
3313
|
+
type: "action-error";
|
|
3314
3314
|
} | {
|
|
3315
3315
|
type: "commit-message-response";
|
|
3316
3316
|
commitMessage: string;
|