codebuff 1.0.163 → 1.0.165
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 +17 -7
- package/dist/browser-runner.js.map +1 -1
- package/dist/chat-storage.js +17 -7
- package/dist/chat-storage.js.map +1 -1
- package/dist/cli.js +17 -7
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +6 -6
- package/dist/client.js +130 -102
- package/dist/client.js.map +1 -1
- package/dist/code-map/languages.js +17 -7
- package/dist/code-map/languages.js.map +1 -1
- package/dist/code-map/parse.js +17 -7
- package/dist/code-map/parse.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +245 -352
- package/dist/common/actions.js +32 -69
- package/dist/common/actions.js.map +1 -1
- package/dist/common/logger.d.ts +1 -0
- package/dist/common/logger.js +7 -0
- package/dist/common/logger.js.map +1 -0
- package/dist/common/util/constants.d.ts +1 -0
- package/dist/common/util/constants.js +7 -0
- package/dist/common/util/constants.js.map +1 -0
- package/dist/common/util/credentials.d.ts +4 -4
- package/dist/common/util/helpers.d.ts +1 -0
- package/dist/common/util/helpers.js +6 -0
- package/dist/common/util/helpers.js.map +1 -0
- package/dist/common/util/token-counter.d.ts +3 -0
- package/dist/common/util/token-counter.js +27 -0
- package/dist/common/util/token-counter.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +268 -606
- package/dist/config.d.ts +1 -0
- package/dist/config.js +2 -1
- package/dist/config.js.map +1 -1
- package/dist/create-template-project.js +17 -7
- package/dist/create-template-project.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/menu.js +17 -7
- package/dist/menu.js.map +1 -1
- package/dist/project-files.js +17 -7
- package/dist/project-files.js.map +1 -1
- package/dist/tool-handlers.js +17 -7
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/spinner.js +17 -7
- package/dist/utils/spinner.js.map +1 -1
- package/dist/utils/terminal.js +17 -7
- package/dist/utils/terminal.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/advanced-analyzer.d.ts +0 -19
- package/dist/common/advanced-analyzer.js +0 -140
- package/dist/common/advanced-analyzer.js.map +0 -1
- package/dist/common/message-image-handling.d.ts +0 -41
- package/dist/common/message-image-handling.js +0 -57
- package/dist/common/message-image-handling.js.map +0 -1
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -360,19 +360,24 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
360
360
|
filePath: z.ZodString;
|
|
361
361
|
content: z.ZodString;
|
|
362
362
|
}, "strip", z.ZodTypeAny, {
|
|
363
|
-
|
|
364
|
-
type: "file" | "patch";
|
|
363
|
+
type: "patch" | "file";
|
|
365
364
|
filePath: string;
|
|
366
|
-
}, {
|
|
367
365
|
content: string;
|
|
368
|
-
|
|
366
|
+
}, {
|
|
367
|
+
type: "patch" | "file";
|
|
369
368
|
filePath: string;
|
|
369
|
+
content: string;
|
|
370
370
|
}>, "many">;
|
|
371
371
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
372
372
|
}, "strip", z.ZodTypeAny, {
|
|
373
373
|
type: "user-input";
|
|
374
|
-
fingerprintId: string;
|
|
375
374
|
userInputId: string;
|
|
375
|
+
changesAlreadyApplied: {
|
|
376
|
+
type: "patch" | "file";
|
|
377
|
+
filePath: string;
|
|
378
|
+
content: string;
|
|
379
|
+
}[];
|
|
380
|
+
fingerprintId: string;
|
|
376
381
|
messages: {
|
|
377
382
|
content: string | ({
|
|
378
383
|
type: "text";
|
|
@@ -389,8 +394,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
389
394
|
type: "ephemeral";
|
|
390
395
|
} | undefined;
|
|
391
396
|
} | {
|
|
392
|
-
content: string;
|
|
393
397
|
type: "tool_result";
|
|
398
|
+
content: string;
|
|
394
399
|
tool_use_id: string;
|
|
395
400
|
cache_control?: {
|
|
396
401
|
type: "ephemeral";
|
|
@@ -435,17 +440,17 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
435
440
|
}[][];
|
|
436
441
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
437
442
|
};
|
|
438
|
-
changesAlreadyApplied: {
|
|
439
|
-
content: string;
|
|
440
|
-
type: "file" | "patch";
|
|
441
|
-
filePath: string;
|
|
442
|
-
}[];
|
|
443
443
|
costMode: "max" | "lite" | "normal";
|
|
444
444
|
authToken?: string | undefined;
|
|
445
445
|
}, {
|
|
446
446
|
type: "user-input";
|
|
447
|
-
fingerprintId: string;
|
|
448
447
|
userInputId: string;
|
|
448
|
+
changesAlreadyApplied: {
|
|
449
|
+
type: "patch" | "file";
|
|
450
|
+
filePath: string;
|
|
451
|
+
content: string;
|
|
452
|
+
}[];
|
|
453
|
+
fingerprintId: string;
|
|
449
454
|
messages: {
|
|
450
455
|
content: string | ({
|
|
451
456
|
type: "text";
|
|
@@ -462,8 +467,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
462
467
|
type: "ephemeral";
|
|
463
468
|
} | undefined;
|
|
464
469
|
} | {
|
|
465
|
-
content: string;
|
|
466
470
|
type: "tool_result";
|
|
471
|
+
content: string;
|
|
467
472
|
tool_use_id: string;
|
|
468
473
|
cache_control?: {
|
|
469
474
|
type: "ephemeral";
|
|
@@ -508,22 +513,20 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
508
513
|
}[][];
|
|
509
514
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
510
515
|
};
|
|
511
|
-
changesAlreadyApplied: {
|
|
512
|
-
content: string;
|
|
513
|
-
type: "file" | "patch";
|
|
514
|
-
filePath: string;
|
|
515
|
-
}[];
|
|
516
516
|
authToken?: string | undefined;
|
|
517
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]>>;
|
|
521
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
521
522
|
}, "strip", z.ZodTypeAny, {
|
|
522
523
|
type: "read-files-response";
|
|
523
524
|
files: Record<string, string | null>;
|
|
525
|
+
requestId?: string | undefined;
|
|
524
526
|
}, {
|
|
525
527
|
type: "read-files-response";
|
|
526
528
|
files: Record<string, string | null>;
|
|
529
|
+
requestId?: string | undefined;
|
|
527
530
|
}>, z.ZodObject<{
|
|
528
531
|
type: z.ZodLiteral<"init">;
|
|
529
532
|
fingerprintId: z.ZodString;
|
|
@@ -711,48 +714,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
711
714
|
type: "usage";
|
|
712
715
|
fingerprintId: string;
|
|
713
716
|
authToken?: string | undefined;
|
|
714
|
-
}>, z.ZodObject<{
|
|
715
|
-
type: z.ZodLiteral<"login-code-request">;
|
|
716
|
-
fingerprintId: z.ZodString;
|
|
717
|
-
referralCode: z.ZodOptional<z.ZodString>;
|
|
718
|
-
}, "strip", z.ZodTypeAny, {
|
|
719
|
-
type: "login-code-request";
|
|
720
|
-
fingerprintId: string;
|
|
721
|
-
referralCode?: string | undefined;
|
|
722
|
-
}, {
|
|
723
|
-
type: "login-code-request";
|
|
724
|
-
fingerprintId: string;
|
|
725
|
-
referralCode?: string | undefined;
|
|
726
|
-
}>, z.ZodObject<{
|
|
727
|
-
type: z.ZodLiteral<"login-status-request">;
|
|
728
|
-
fingerprintId: z.ZodString;
|
|
729
|
-
fingerprintHash: z.ZodString;
|
|
730
|
-
}, "strip", z.ZodTypeAny, {
|
|
731
|
-
type: "login-status-request";
|
|
732
|
-
fingerprintId: string;
|
|
733
|
-
fingerprintHash: string;
|
|
734
|
-
}, {
|
|
735
|
-
type: "login-status-request";
|
|
736
|
-
fingerprintId: string;
|
|
737
|
-
fingerprintHash: string;
|
|
738
|
-
}>, z.ZodObject<{
|
|
739
|
-
type: z.ZodLiteral<"clear-auth-token">;
|
|
740
|
-
authToken: z.ZodString;
|
|
741
|
-
fingerprintId: z.ZodString;
|
|
742
|
-
userId: z.ZodString;
|
|
743
|
-
fingerprintHash: z.ZodString;
|
|
744
|
-
}, "strip", z.ZodTypeAny, {
|
|
745
|
-
type: "clear-auth-token";
|
|
746
|
-
authToken: string;
|
|
747
|
-
fingerprintId: string;
|
|
748
|
-
fingerprintHash: string;
|
|
749
|
-
userId: string;
|
|
750
|
-
}, {
|
|
751
|
-
type: "clear-auth-token";
|
|
752
|
-
authToken: string;
|
|
753
|
-
fingerprintId: string;
|
|
754
|
-
fingerprintHash: string;
|
|
755
|
-
userId: string;
|
|
756
717
|
}>, z.ZodObject<{
|
|
757
718
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
758
719
|
fingerprintId: z.ZodString;
|
|
@@ -773,8 +734,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
773
734
|
type: "action";
|
|
774
735
|
data: {
|
|
775
736
|
type: "user-input";
|
|
776
|
-
fingerprintId: string;
|
|
777
737
|
userInputId: string;
|
|
738
|
+
changesAlreadyApplied: {
|
|
739
|
+
type: "patch" | "file";
|
|
740
|
+
filePath: string;
|
|
741
|
+
content: string;
|
|
742
|
+
}[];
|
|
743
|
+
fingerprintId: string;
|
|
778
744
|
messages: {
|
|
779
745
|
content: string | ({
|
|
780
746
|
type: "text";
|
|
@@ -791,8 +757,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
791
757
|
type: "ephemeral";
|
|
792
758
|
} | undefined;
|
|
793
759
|
} | {
|
|
794
|
-
content: string;
|
|
795
760
|
type: "tool_result";
|
|
761
|
+
content: string;
|
|
796
762
|
tool_use_id: string;
|
|
797
763
|
cache_control?: {
|
|
798
764
|
type: "ephemeral";
|
|
@@ -837,16 +803,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
837
803
|
}[][];
|
|
838
804
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
839
805
|
};
|
|
840
|
-
changesAlreadyApplied: {
|
|
841
|
-
content: string;
|
|
842
|
-
type: "file" | "patch";
|
|
843
|
-
filePath: string;
|
|
844
|
-
}[];
|
|
845
806
|
costMode: "max" | "lite" | "normal";
|
|
846
807
|
authToken?: string | undefined;
|
|
847
808
|
} | {
|
|
848
809
|
type: "read-files-response";
|
|
849
810
|
files: Record<string, string | null>;
|
|
811
|
+
requestId?: string | undefined;
|
|
850
812
|
} | {
|
|
851
813
|
type: "init";
|
|
852
814
|
fingerprintId: string;
|
|
@@ -882,20 +844,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
882
844
|
type: "usage";
|
|
883
845
|
fingerprintId: string;
|
|
884
846
|
authToken?: string | undefined;
|
|
885
|
-
} | {
|
|
886
|
-
type: "login-code-request";
|
|
887
|
-
fingerprintId: string;
|
|
888
|
-
referralCode?: string | undefined;
|
|
889
|
-
} | {
|
|
890
|
-
type: "login-status-request";
|
|
891
|
-
fingerprintId: string;
|
|
892
|
-
fingerprintHash: string;
|
|
893
|
-
} | {
|
|
894
|
-
type: "clear-auth-token";
|
|
895
|
-
authToken: string;
|
|
896
|
-
fingerprintId: string;
|
|
897
|
-
fingerprintHash: string;
|
|
898
|
-
userId: string;
|
|
899
847
|
} | {
|
|
900
848
|
type: "generate-commit-message";
|
|
901
849
|
fingerprintId: string;
|
|
@@ -907,8 +855,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
907
855
|
type: "action";
|
|
908
856
|
data: {
|
|
909
857
|
type: "user-input";
|
|
910
|
-
fingerprintId: string;
|
|
911
858
|
userInputId: string;
|
|
859
|
+
changesAlreadyApplied: {
|
|
860
|
+
type: "patch" | "file";
|
|
861
|
+
filePath: string;
|
|
862
|
+
content: string;
|
|
863
|
+
}[];
|
|
864
|
+
fingerprintId: string;
|
|
912
865
|
messages: {
|
|
913
866
|
content: string | ({
|
|
914
867
|
type: "text";
|
|
@@ -925,8 +878,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
925
878
|
type: "ephemeral";
|
|
926
879
|
} | undefined;
|
|
927
880
|
} | {
|
|
928
|
-
content: string;
|
|
929
881
|
type: "tool_result";
|
|
882
|
+
content: string;
|
|
930
883
|
tool_use_id: string;
|
|
931
884
|
cache_control?: {
|
|
932
885
|
type: "ephemeral";
|
|
@@ -971,16 +924,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
971
924
|
}[][];
|
|
972
925
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
973
926
|
};
|
|
974
|
-
changesAlreadyApplied: {
|
|
975
|
-
content: string;
|
|
976
|
-
type: "file" | "patch";
|
|
977
|
-
filePath: string;
|
|
978
|
-
}[];
|
|
979
927
|
authToken?: string | undefined;
|
|
980
928
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
981
929
|
} | {
|
|
982
930
|
type: "read-files-response";
|
|
983
931
|
files: Record<string, string | null>;
|
|
932
|
+
requestId?: string | undefined;
|
|
984
933
|
} | {
|
|
985
934
|
type: "init";
|
|
986
935
|
fingerprintId: string;
|
|
@@ -1016,20 +965,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1016
965
|
type: "usage";
|
|
1017
966
|
fingerprintId: string;
|
|
1018
967
|
authToken?: string | undefined;
|
|
1019
|
-
} | {
|
|
1020
|
-
type: "login-code-request";
|
|
1021
|
-
fingerprintId: string;
|
|
1022
|
-
referralCode?: string | undefined;
|
|
1023
|
-
} | {
|
|
1024
|
-
type: "login-status-request";
|
|
1025
|
-
fingerprintId: string;
|
|
1026
|
-
fingerprintHash: string;
|
|
1027
|
-
} | {
|
|
1028
|
-
type: "clear-auth-token";
|
|
1029
|
-
authToken: string;
|
|
1030
|
-
fingerprintId: string;
|
|
1031
|
-
fingerprintHash: string;
|
|
1032
|
-
userId: string;
|
|
1033
968
|
} | {
|
|
1034
969
|
type: "generate-commit-message";
|
|
1035
970
|
fingerprintId: string;
|
|
@@ -1156,15 +1091,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1156
1091
|
type: "ephemeral";
|
|
1157
1092
|
}>>;
|
|
1158
1093
|
}, "strip", z.ZodTypeAny, {
|
|
1159
|
-
content: string;
|
|
1160
1094
|
type: "tool_result";
|
|
1095
|
+
content: string;
|
|
1161
1096
|
tool_use_id: string;
|
|
1162
1097
|
cache_control?: {
|
|
1163
1098
|
type: "ephemeral";
|
|
1164
1099
|
} | undefined;
|
|
1165
1100
|
}, {
|
|
1166
|
-
content: string;
|
|
1167
1101
|
type: "tool_result";
|
|
1102
|
+
content: string;
|
|
1168
1103
|
tool_use_id: string;
|
|
1169
1104
|
cache_control?: {
|
|
1170
1105
|
type: "ephemeral";
|
|
@@ -1228,8 +1163,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1228
1163
|
type: "ephemeral";
|
|
1229
1164
|
} | undefined;
|
|
1230
1165
|
} | {
|
|
1231
|
-
content: string;
|
|
1232
1166
|
type: "tool_result";
|
|
1167
|
+
content: string;
|
|
1233
1168
|
tool_use_id: string;
|
|
1234
1169
|
cache_control?: {
|
|
1235
1170
|
type: "ephemeral";
|
|
@@ -1262,8 +1197,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1262
1197
|
type: "ephemeral";
|
|
1263
1198
|
} | undefined;
|
|
1264
1199
|
} | {
|
|
1265
|
-
content: string;
|
|
1266
1200
|
type: "tool_result";
|
|
1201
|
+
content: string;
|
|
1267
1202
|
tool_use_id: string;
|
|
1268
1203
|
cache_control?: {
|
|
1269
1204
|
type: "ephemeral";
|
|
@@ -1395,19 +1330,24 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1395
1330
|
filePath: z.ZodString;
|
|
1396
1331
|
content: z.ZodString;
|
|
1397
1332
|
}, "strip", z.ZodTypeAny, {
|
|
1398
|
-
|
|
1399
|
-
type: "file" | "patch";
|
|
1333
|
+
type: "patch" | "file";
|
|
1400
1334
|
filePath: string;
|
|
1401
|
-
}, {
|
|
1402
1335
|
content: string;
|
|
1403
|
-
|
|
1336
|
+
}, {
|
|
1337
|
+
type: "patch" | "file";
|
|
1404
1338
|
filePath: string;
|
|
1339
|
+
content: string;
|
|
1405
1340
|
}>, "many">;
|
|
1406
1341
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
1407
1342
|
}, "strip", z.ZodTypeAny, {
|
|
1408
1343
|
type: "user-input";
|
|
1409
|
-
fingerprintId: string;
|
|
1410
1344
|
userInputId: string;
|
|
1345
|
+
changesAlreadyApplied: {
|
|
1346
|
+
type: "patch" | "file";
|
|
1347
|
+
filePath: string;
|
|
1348
|
+
content: string;
|
|
1349
|
+
}[];
|
|
1350
|
+
fingerprintId: string;
|
|
1411
1351
|
messages: {
|
|
1412
1352
|
content: string | ({
|
|
1413
1353
|
type: "text";
|
|
@@ -1424,8 +1364,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1424
1364
|
type: "ephemeral";
|
|
1425
1365
|
} | undefined;
|
|
1426
1366
|
} | {
|
|
1427
|
-
content: string;
|
|
1428
1367
|
type: "tool_result";
|
|
1368
|
+
content: string;
|
|
1429
1369
|
tool_use_id: string;
|
|
1430
1370
|
cache_control?: {
|
|
1431
1371
|
type: "ephemeral";
|
|
@@ -1470,17 +1410,17 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1470
1410
|
}[][];
|
|
1471
1411
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1472
1412
|
};
|
|
1473
|
-
changesAlreadyApplied: {
|
|
1474
|
-
content: string;
|
|
1475
|
-
type: "file" | "patch";
|
|
1476
|
-
filePath: string;
|
|
1477
|
-
}[];
|
|
1478
1413
|
costMode: "max" | "lite" | "normal";
|
|
1479
1414
|
authToken?: string | undefined;
|
|
1480
1415
|
}, {
|
|
1481
1416
|
type: "user-input";
|
|
1482
|
-
fingerprintId: string;
|
|
1483
1417
|
userInputId: string;
|
|
1418
|
+
changesAlreadyApplied: {
|
|
1419
|
+
type: "patch" | "file";
|
|
1420
|
+
filePath: string;
|
|
1421
|
+
content: string;
|
|
1422
|
+
}[];
|
|
1423
|
+
fingerprintId: string;
|
|
1484
1424
|
messages: {
|
|
1485
1425
|
content: string | ({
|
|
1486
1426
|
type: "text";
|
|
@@ -1497,8 +1437,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1497
1437
|
type: "ephemeral";
|
|
1498
1438
|
} | undefined;
|
|
1499
1439
|
} | {
|
|
1500
|
-
content: string;
|
|
1501
1440
|
type: "tool_result";
|
|
1441
|
+
content: string;
|
|
1502
1442
|
tool_use_id: string;
|
|
1503
1443
|
cache_control?: {
|
|
1504
1444
|
type: "ephemeral";
|
|
@@ -1543,22 +1483,20 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1543
1483
|
}[][];
|
|
1544
1484
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1545
1485
|
};
|
|
1546
|
-
changesAlreadyApplied: {
|
|
1547
|
-
content: string;
|
|
1548
|
-
type: "file" | "patch";
|
|
1549
|
-
filePath: string;
|
|
1550
|
-
}[];
|
|
1551
1486
|
authToken?: string | undefined;
|
|
1552
1487
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
1553
1488
|
}>, z.ZodObject<{
|
|
1554
1489
|
type: z.ZodLiteral<"read-files-response">;
|
|
1555
1490
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1491
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
1556
1492
|
}, "strip", z.ZodTypeAny, {
|
|
1557
1493
|
type: "read-files-response";
|
|
1558
1494
|
files: Record<string, string | null>;
|
|
1495
|
+
requestId?: string | undefined;
|
|
1559
1496
|
}, {
|
|
1560
1497
|
type: "read-files-response";
|
|
1561
1498
|
files: Record<string, string | null>;
|
|
1499
|
+
requestId?: string | undefined;
|
|
1562
1500
|
}>, z.ZodObject<{
|
|
1563
1501
|
type: z.ZodLiteral<"init">;
|
|
1564
1502
|
fingerprintId: z.ZodString;
|
|
@@ -1746,48 +1684,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1746
1684
|
type: "usage";
|
|
1747
1685
|
fingerprintId: string;
|
|
1748
1686
|
authToken?: string | undefined;
|
|
1749
|
-
}>, z.ZodObject<{
|
|
1750
|
-
type: z.ZodLiteral<"login-code-request">;
|
|
1751
|
-
fingerprintId: z.ZodString;
|
|
1752
|
-
referralCode: z.ZodOptional<z.ZodString>;
|
|
1753
|
-
}, "strip", z.ZodTypeAny, {
|
|
1754
|
-
type: "login-code-request";
|
|
1755
|
-
fingerprintId: string;
|
|
1756
|
-
referralCode?: string | undefined;
|
|
1757
|
-
}, {
|
|
1758
|
-
type: "login-code-request";
|
|
1759
|
-
fingerprintId: string;
|
|
1760
|
-
referralCode?: string | undefined;
|
|
1761
|
-
}>, z.ZodObject<{
|
|
1762
|
-
type: z.ZodLiteral<"login-status-request">;
|
|
1763
|
-
fingerprintId: z.ZodString;
|
|
1764
|
-
fingerprintHash: z.ZodString;
|
|
1765
|
-
}, "strip", z.ZodTypeAny, {
|
|
1766
|
-
type: "login-status-request";
|
|
1767
|
-
fingerprintId: string;
|
|
1768
|
-
fingerprintHash: string;
|
|
1769
|
-
}, {
|
|
1770
|
-
type: "login-status-request";
|
|
1771
|
-
fingerprintId: string;
|
|
1772
|
-
fingerprintHash: string;
|
|
1773
|
-
}>, z.ZodObject<{
|
|
1774
|
-
type: z.ZodLiteral<"clear-auth-token">;
|
|
1775
|
-
authToken: z.ZodString;
|
|
1776
|
-
fingerprintId: z.ZodString;
|
|
1777
|
-
userId: z.ZodString;
|
|
1778
|
-
fingerprintHash: z.ZodString;
|
|
1779
|
-
}, "strip", z.ZodTypeAny, {
|
|
1780
|
-
type: "clear-auth-token";
|
|
1781
|
-
authToken: string;
|
|
1782
|
-
fingerprintId: string;
|
|
1783
|
-
fingerprintHash: string;
|
|
1784
|
-
userId: string;
|
|
1785
|
-
}, {
|
|
1786
|
-
type: "clear-auth-token";
|
|
1787
|
-
authToken: string;
|
|
1788
|
-
fingerprintId: string;
|
|
1789
|
-
fingerprintHash: string;
|
|
1790
|
-
userId: string;
|
|
1791
1687
|
}>, z.ZodObject<{
|
|
1792
1688
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
1793
1689
|
fingerprintId: z.ZodString;
|
|
@@ -1808,8 +1704,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1808
1704
|
type: "action";
|
|
1809
1705
|
data: {
|
|
1810
1706
|
type: "user-input";
|
|
1811
|
-
fingerprintId: string;
|
|
1812
1707
|
userInputId: string;
|
|
1708
|
+
changesAlreadyApplied: {
|
|
1709
|
+
type: "patch" | "file";
|
|
1710
|
+
filePath: string;
|
|
1711
|
+
content: string;
|
|
1712
|
+
}[];
|
|
1713
|
+
fingerprintId: string;
|
|
1813
1714
|
messages: {
|
|
1814
1715
|
content: string | ({
|
|
1815
1716
|
type: "text";
|
|
@@ -1826,8 +1727,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1826
1727
|
type: "ephemeral";
|
|
1827
1728
|
} | undefined;
|
|
1828
1729
|
} | {
|
|
1829
|
-
content: string;
|
|
1830
1730
|
type: "tool_result";
|
|
1731
|
+
content: string;
|
|
1831
1732
|
tool_use_id: string;
|
|
1832
1733
|
cache_control?: {
|
|
1833
1734
|
type: "ephemeral";
|
|
@@ -1872,16 +1773,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1872
1773
|
}[][];
|
|
1873
1774
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1874
1775
|
};
|
|
1875
|
-
changesAlreadyApplied: {
|
|
1876
|
-
content: string;
|
|
1877
|
-
type: "file" | "patch";
|
|
1878
|
-
filePath: string;
|
|
1879
|
-
}[];
|
|
1880
1776
|
costMode: "max" | "lite" | "normal";
|
|
1881
1777
|
authToken?: string | undefined;
|
|
1882
1778
|
} | {
|
|
1883
1779
|
type: "read-files-response";
|
|
1884
1780
|
files: Record<string, string | null>;
|
|
1781
|
+
requestId?: string | undefined;
|
|
1885
1782
|
} | {
|
|
1886
1783
|
type: "init";
|
|
1887
1784
|
fingerprintId: string;
|
|
@@ -1917,20 +1814,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1917
1814
|
type: "usage";
|
|
1918
1815
|
fingerprintId: string;
|
|
1919
1816
|
authToken?: string | undefined;
|
|
1920
|
-
} | {
|
|
1921
|
-
type: "login-code-request";
|
|
1922
|
-
fingerprintId: string;
|
|
1923
|
-
referralCode?: string | undefined;
|
|
1924
|
-
} | {
|
|
1925
|
-
type: "login-status-request";
|
|
1926
|
-
fingerprintId: string;
|
|
1927
|
-
fingerprintHash: string;
|
|
1928
|
-
} | {
|
|
1929
|
-
type: "clear-auth-token";
|
|
1930
|
-
authToken: string;
|
|
1931
|
-
fingerprintId: string;
|
|
1932
|
-
fingerprintHash: string;
|
|
1933
|
-
userId: string;
|
|
1934
1817
|
} | {
|
|
1935
1818
|
type: "generate-commit-message";
|
|
1936
1819
|
fingerprintId: string;
|
|
@@ -1942,8 +1825,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1942
1825
|
type: "action";
|
|
1943
1826
|
data: {
|
|
1944
1827
|
type: "user-input";
|
|
1945
|
-
fingerprintId: string;
|
|
1946
1828
|
userInputId: string;
|
|
1829
|
+
changesAlreadyApplied: {
|
|
1830
|
+
type: "patch" | "file";
|
|
1831
|
+
filePath: string;
|
|
1832
|
+
content: string;
|
|
1833
|
+
}[];
|
|
1834
|
+
fingerprintId: string;
|
|
1947
1835
|
messages: {
|
|
1948
1836
|
content: string | ({
|
|
1949
1837
|
type: "text";
|
|
@@ -1960,8 +1848,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1960
1848
|
type: "ephemeral";
|
|
1961
1849
|
} | undefined;
|
|
1962
1850
|
} | {
|
|
1963
|
-
content: string;
|
|
1964
1851
|
type: "tool_result";
|
|
1852
|
+
content: string;
|
|
1965
1853
|
tool_use_id: string;
|
|
1966
1854
|
cache_control?: {
|
|
1967
1855
|
type: "ephemeral";
|
|
@@ -2006,16 +1894,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2006
1894
|
}[][];
|
|
2007
1895
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2008
1896
|
};
|
|
2009
|
-
changesAlreadyApplied: {
|
|
2010
|
-
content: string;
|
|
2011
|
-
type: "file" | "patch";
|
|
2012
|
-
filePath: string;
|
|
2013
|
-
}[];
|
|
2014
1897
|
authToken?: string | undefined;
|
|
2015
1898
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
2016
1899
|
} | {
|
|
2017
1900
|
type: "read-files-response";
|
|
2018
1901
|
files: Record<string, string | null>;
|
|
1902
|
+
requestId?: string | undefined;
|
|
2019
1903
|
} | {
|
|
2020
1904
|
type: "init";
|
|
2021
1905
|
fingerprintId: string;
|
|
@@ -2051,20 +1935,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2051
1935
|
type: "usage";
|
|
2052
1936
|
fingerprintId: string;
|
|
2053
1937
|
authToken?: string | undefined;
|
|
2054
|
-
} | {
|
|
2055
|
-
type: "login-code-request";
|
|
2056
|
-
fingerprintId: string;
|
|
2057
|
-
referralCode?: string | undefined;
|
|
2058
|
-
} | {
|
|
2059
|
-
type: "login-status-request";
|
|
2060
|
-
fingerprintId: string;
|
|
2061
|
-
fingerprintHash: string;
|
|
2062
|
-
} | {
|
|
2063
|
-
type: "clear-auth-token";
|
|
2064
|
-
authToken: string;
|
|
2065
|
-
fingerprintId: string;
|
|
2066
|
-
fingerprintHash: string;
|
|
2067
|
-
userId: string;
|
|
2068
1938
|
} | {
|
|
2069
1939
|
type: "generate-commit-message";
|
|
2070
1940
|
fingerprintId: string;
|
|
@@ -2084,26 +1954,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2084
1954
|
}, "strip", z.ZodTypeAny, {
|
|
2085
1955
|
type: "ack";
|
|
2086
1956
|
success: boolean;
|
|
2087
|
-
error?: string | undefined;
|
|
2088
1957
|
txid?: number | undefined;
|
|
1958
|
+
error?: string | undefined;
|
|
2089
1959
|
}, {
|
|
2090
1960
|
type: "ack";
|
|
2091
1961
|
success: boolean;
|
|
2092
|
-
error?: string | undefined;
|
|
2093
1962
|
txid?: number | undefined;
|
|
1963
|
+
error?: string | undefined;
|
|
2094
1964
|
}>;
|
|
2095
1965
|
action: z.ZodObject<{
|
|
2096
1966
|
type: z.ZodLiteral<"action">;
|
|
2097
1967
|
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2098
|
-
type: z.ZodLiteral<"read-files-response">;
|
|
2099
|
-
files: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
2100
|
-
}, "strip", z.ZodTypeAny, {
|
|
2101
|
-
type: "read-files-response";
|
|
2102
|
-
files: Record<string, string | null>;
|
|
2103
|
-
}, {
|
|
2104
|
-
type: "read-files-response";
|
|
2105
|
-
files: Record<string, string | null>;
|
|
2106
|
-
}>, z.ZodObject<{
|
|
2107
1968
|
type: z.ZodLiteral<"response-chunk">;
|
|
2108
1969
|
userInputId: z.ZodString;
|
|
2109
1970
|
chunk: z.ZodString;
|
|
@@ -2124,26 +1985,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2124
1985
|
filePath: z.ZodString;
|
|
2125
1986
|
content: z.ZodString;
|
|
2126
1987
|
}, "strip", z.ZodTypeAny, {
|
|
2127
|
-
|
|
2128
|
-
type: "file" | "patch";
|
|
1988
|
+
type: "patch" | "file";
|
|
2129
1989
|
filePath: string;
|
|
2130
|
-
}, {
|
|
2131
1990
|
content: string;
|
|
2132
|
-
|
|
1991
|
+
}, {
|
|
1992
|
+
type: "patch" | "file";
|
|
2133
1993
|
filePath: string;
|
|
1994
|
+
content: string;
|
|
2134
1995
|
}>, "many">;
|
|
2135
1996
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2136
1997
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2137
1998
|
filePath: z.ZodString;
|
|
2138
1999
|
content: z.ZodString;
|
|
2139
2000
|
}, "strip", z.ZodTypeAny, {
|
|
2140
|
-
|
|
2141
|
-
type: "file" | "patch";
|
|
2001
|
+
type: "patch" | "file";
|
|
2142
2002
|
filePath: string;
|
|
2143
|
-
}, {
|
|
2144
2003
|
content: string;
|
|
2145
|
-
|
|
2004
|
+
}, {
|
|
2005
|
+
type: "patch" | "file";
|
|
2146
2006
|
filePath: string;
|
|
2007
|
+
content: string;
|
|
2147
2008
|
}>, "many">;
|
|
2148
2009
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2149
2010
|
path: z.ZodString;
|
|
@@ -2166,16 +2027,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2166
2027
|
}>, "strip", z.ZodTypeAny, {
|
|
2167
2028
|
type: "response-complete";
|
|
2168
2029
|
userInputId: string;
|
|
2169
|
-
changesAlreadyApplied: {
|
|
2170
|
-
content: string;
|
|
2171
|
-
type: "file" | "patch";
|
|
2172
|
-
filePath: string;
|
|
2173
|
-
}[];
|
|
2174
2030
|
response: string;
|
|
2175
2031
|
changes: {
|
|
2032
|
+
type: "patch" | "file";
|
|
2033
|
+
filePath: string;
|
|
2176
2034
|
content: string;
|
|
2177
|
-
|
|
2035
|
+
}[];
|
|
2036
|
+
changesAlreadyApplied: {
|
|
2037
|
+
type: "patch" | "file";
|
|
2178
2038
|
filePath: string;
|
|
2039
|
+
content: string;
|
|
2179
2040
|
}[];
|
|
2180
2041
|
addedFileVersions: {
|
|
2181
2042
|
path: string;
|
|
@@ -2191,16 +2052,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2191
2052
|
}, {
|
|
2192
2053
|
type: "response-complete";
|
|
2193
2054
|
userInputId: string;
|
|
2194
|
-
changesAlreadyApplied: {
|
|
2195
|
-
content: string;
|
|
2196
|
-
type: "file" | "patch";
|
|
2197
|
-
filePath: string;
|
|
2198
|
-
}[];
|
|
2199
2055
|
response: string;
|
|
2200
2056
|
changes: {
|
|
2057
|
+
type: "patch" | "file";
|
|
2058
|
+
filePath: string;
|
|
2201
2059
|
content: string;
|
|
2202
|
-
|
|
2060
|
+
}[];
|
|
2061
|
+
changesAlreadyApplied: {
|
|
2062
|
+
type: "patch" | "file";
|
|
2203
2063
|
filePath: string;
|
|
2064
|
+
content: string;
|
|
2204
2065
|
}[];
|
|
2205
2066
|
addedFileVersions: {
|
|
2206
2067
|
path: string;
|
|
@@ -2216,11 +2077,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2216
2077
|
}>, z.ZodObject<{
|
|
2217
2078
|
type: z.ZodLiteral<"read-files">;
|
|
2218
2079
|
filePaths: z.ZodArray<z.ZodString, "many">;
|
|
2080
|
+
requestId: z.ZodString;
|
|
2219
2081
|
}, "strip", z.ZodTypeAny, {
|
|
2220
2082
|
type: "read-files";
|
|
2083
|
+
requestId: string;
|
|
2221
2084
|
filePaths: string[];
|
|
2222
2085
|
}, {
|
|
2223
2086
|
type: "read-files";
|
|
2087
|
+
requestId: string;
|
|
2224
2088
|
filePaths: string[];
|
|
2225
2089
|
}>, z.ZodObject<{
|
|
2226
2090
|
type: z.ZodLiteral<"tool-call">;
|
|
@@ -2244,26 +2108,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2244
2108
|
filePath: z.ZodString;
|
|
2245
2109
|
content: z.ZodString;
|
|
2246
2110
|
}, "strip", z.ZodTypeAny, {
|
|
2247
|
-
|
|
2248
|
-
type: "file" | "patch";
|
|
2111
|
+
type: "patch" | "file";
|
|
2249
2112
|
filePath: string;
|
|
2250
|
-
}, {
|
|
2251
2113
|
content: string;
|
|
2252
|
-
|
|
2114
|
+
}, {
|
|
2115
|
+
type: "patch" | "file";
|
|
2253
2116
|
filePath: string;
|
|
2117
|
+
content: string;
|
|
2254
2118
|
}>, "many">;
|
|
2255
2119
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2256
2120
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2257
2121
|
filePath: z.ZodString;
|
|
2258
2122
|
content: z.ZodString;
|
|
2259
2123
|
}, "strip", z.ZodTypeAny, {
|
|
2260
|
-
|
|
2261
|
-
type: "file" | "patch";
|
|
2124
|
+
type: "patch" | "file";
|
|
2262
2125
|
filePath: string;
|
|
2263
|
-
}, {
|
|
2264
2126
|
content: string;
|
|
2265
|
-
|
|
2127
|
+
}, {
|
|
2128
|
+
type: "patch" | "file";
|
|
2266
2129
|
filePath: string;
|
|
2130
|
+
content: string;
|
|
2267
2131
|
}>, "many">;
|
|
2268
2132
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2269
2133
|
path: z.ZodString;
|
|
@@ -2279,51 +2143,51 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2279
2143
|
}, "strip", z.ZodTypeAny, {
|
|
2280
2144
|
type: "tool-call";
|
|
2281
2145
|
userInputId: string;
|
|
2282
|
-
data: {
|
|
2283
|
-
name: string;
|
|
2284
|
-
id: string;
|
|
2285
|
-
input: Record<string, any>;
|
|
2286
|
-
};
|
|
2287
|
-
changesAlreadyApplied: {
|
|
2288
|
-
content: string;
|
|
2289
|
-
type: "file" | "patch";
|
|
2290
|
-
filePath: string;
|
|
2291
|
-
}[];
|
|
2292
2146
|
response: string;
|
|
2293
2147
|
changes: {
|
|
2148
|
+
type: "patch" | "file";
|
|
2149
|
+
filePath: string;
|
|
2294
2150
|
content: string;
|
|
2295
|
-
|
|
2151
|
+
}[];
|
|
2152
|
+
changesAlreadyApplied: {
|
|
2153
|
+
type: "patch" | "file";
|
|
2296
2154
|
filePath: string;
|
|
2155
|
+
content: string;
|
|
2297
2156
|
}[];
|
|
2298
2157
|
addedFileVersions: {
|
|
2299
2158
|
path: string;
|
|
2300
2159
|
content: string;
|
|
2301
2160
|
}[];
|
|
2302
2161
|
resetFileVersions: boolean;
|
|
2303
|
-
}, {
|
|
2304
|
-
type: "tool-call";
|
|
2305
|
-
userInputId: string;
|
|
2306
2162
|
data: {
|
|
2307
2163
|
name: string;
|
|
2308
2164
|
id: string;
|
|
2309
2165
|
input: Record<string, any>;
|
|
2310
2166
|
};
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
filePath: string;
|
|
2315
|
-
}[];
|
|
2167
|
+
}, {
|
|
2168
|
+
type: "tool-call";
|
|
2169
|
+
userInputId: string;
|
|
2316
2170
|
response: string;
|
|
2317
2171
|
changes: {
|
|
2172
|
+
type: "patch" | "file";
|
|
2173
|
+
filePath: string;
|
|
2318
2174
|
content: string;
|
|
2319
|
-
|
|
2175
|
+
}[];
|
|
2176
|
+
changesAlreadyApplied: {
|
|
2177
|
+
type: "patch" | "file";
|
|
2320
2178
|
filePath: string;
|
|
2179
|
+
content: string;
|
|
2321
2180
|
}[];
|
|
2322
2181
|
addedFileVersions: {
|
|
2323
2182
|
path: string;
|
|
2324
2183
|
content: string;
|
|
2325
2184
|
}[];
|
|
2326
2185
|
resetFileVersions: boolean;
|
|
2186
|
+
data: {
|
|
2187
|
+
name: string;
|
|
2188
|
+
id: string;
|
|
2189
|
+
input: Record<string, any>;
|
|
2190
|
+
};
|
|
2327
2191
|
}>, z.ZodObject<{
|
|
2328
2192
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
2329
2193
|
userInputId: z.ZodString;
|
|
@@ -2374,68 +2238,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2374
2238
|
next_quota_reset: Date;
|
|
2375
2239
|
session_credits_used: number;
|
|
2376
2240
|
referralLink?: string | undefined;
|
|
2377
|
-
}>, z.ZodObject<{
|
|
2378
|
-
type: z.ZodLiteral<"auth-result">;
|
|
2379
|
-
user: z.ZodOptional<z.ZodObject<{
|
|
2380
|
-
id: z.ZodString;
|
|
2381
|
-
email: z.ZodString;
|
|
2382
|
-
name: z.ZodNullable<z.ZodString>;
|
|
2383
|
-
authToken: z.ZodString;
|
|
2384
|
-
fingerprintId: z.ZodString;
|
|
2385
|
-
fingerprintHash: z.ZodString;
|
|
2386
|
-
}, "strip", z.ZodTypeAny, {
|
|
2387
|
-
email: string;
|
|
2388
|
-
name: string | null;
|
|
2389
|
-
id: string;
|
|
2390
|
-
authToken: string;
|
|
2391
|
-
fingerprintId: string;
|
|
2392
|
-
fingerprintHash: string;
|
|
2393
|
-
}, {
|
|
2394
|
-
email: string;
|
|
2395
|
-
name: string | null;
|
|
2396
|
-
id: string;
|
|
2397
|
-
authToken: string;
|
|
2398
|
-
fingerprintId: string;
|
|
2399
|
-
fingerprintHash: string;
|
|
2400
|
-
}>>;
|
|
2401
|
-
message: z.ZodString;
|
|
2402
|
-
}, "strip", z.ZodTypeAny, {
|
|
2403
|
-
message: string;
|
|
2404
|
-
type: "auth-result";
|
|
2405
|
-
user?: {
|
|
2406
|
-
email: string;
|
|
2407
|
-
name: string | null;
|
|
2408
|
-
id: string;
|
|
2409
|
-
authToken: string;
|
|
2410
|
-
fingerprintId: string;
|
|
2411
|
-
fingerprintHash: string;
|
|
2412
|
-
} | undefined;
|
|
2413
|
-
}, {
|
|
2414
|
-
message: string;
|
|
2415
|
-
type: "auth-result";
|
|
2416
|
-
user?: {
|
|
2417
|
-
email: string;
|
|
2418
|
-
name: string | null;
|
|
2419
|
-
id: string;
|
|
2420
|
-
authToken: string;
|
|
2421
|
-
fingerprintId: string;
|
|
2422
|
-
fingerprintHash: string;
|
|
2423
|
-
} | undefined;
|
|
2424
|
-
}>, z.ZodObject<{
|
|
2425
|
-
type: z.ZodLiteral<"login-code-response">;
|
|
2426
|
-
fingerprintId: z.ZodString;
|
|
2427
|
-
fingerprintHash: z.ZodString;
|
|
2428
|
-
loginUrl: z.ZodString;
|
|
2429
|
-
}, "strip", z.ZodTypeAny, {
|
|
2430
|
-
type: "login-code-response";
|
|
2431
|
-
fingerprintId: string;
|
|
2432
|
-
fingerprintHash: string;
|
|
2433
|
-
loginUrl: string;
|
|
2434
|
-
}, {
|
|
2435
|
-
type: "login-code-response";
|
|
2436
|
-
fingerprintId: string;
|
|
2437
|
-
fingerprintHash: string;
|
|
2438
|
-
loginUrl: string;
|
|
2439
2241
|
}>, z.ZodObject<{
|
|
2440
2242
|
type: z.ZodLiteral<"usage-response">;
|
|
2441
2243
|
usage: z.ZodNumber;
|
|
@@ -2464,11 +2266,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2464
2266
|
type: z.ZodLiteral<"action-error">;
|
|
2465
2267
|
message: z.ZodString;
|
|
2466
2268
|
}, "strip", z.ZodTypeAny, {
|
|
2467
|
-
message: string;
|
|
2468
2269
|
type: "action-error";
|
|
2469
|
-
}, {
|
|
2470
2270
|
message: string;
|
|
2271
|
+
}, {
|
|
2471
2272
|
type: "action-error";
|
|
2273
|
+
message: string;
|
|
2472
2274
|
}>, z.ZodObject<{
|
|
2473
2275
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2474
2276
|
commitMessage: z.ZodString;
|
|
@@ -2500,16 +2302,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2500
2302
|
} | {
|
|
2501
2303
|
type: "response-complete";
|
|
2502
2304
|
userInputId: string;
|
|
2503
|
-
changesAlreadyApplied: {
|
|
2504
|
-
content: string;
|
|
2505
|
-
type: "file" | "patch";
|
|
2506
|
-
filePath: string;
|
|
2507
|
-
}[];
|
|
2508
2305
|
response: string;
|
|
2509
2306
|
changes: {
|
|
2307
|
+
type: "patch" | "file";
|
|
2308
|
+
filePath: string;
|
|
2510
2309
|
content: string;
|
|
2511
|
-
|
|
2310
|
+
}[];
|
|
2311
|
+
changesAlreadyApplied: {
|
|
2312
|
+
type: "patch" | "file";
|
|
2512
2313
|
filePath: string;
|
|
2314
|
+
content: string;
|
|
2513
2315
|
}[];
|
|
2514
2316
|
addedFileVersions: {
|
|
2515
2317
|
path: string;
|
|
@@ -2522,40 +2324,38 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2522
2324
|
subscription_active?: boolean | undefined;
|
|
2523
2325
|
next_quota_reset?: Date | undefined;
|
|
2524
2326
|
session_credits_used?: number | undefined;
|
|
2525
|
-
} | {
|
|
2526
|
-
type: "read-files-response";
|
|
2527
|
-
files: Record<string, string | null>;
|
|
2528
2327
|
} | {
|
|
2529
2328
|
type: "response-chunk";
|
|
2530
2329
|
userInputId: string;
|
|
2531
2330
|
chunk: string;
|
|
2532
2331
|
} | {
|
|
2533
2332
|
type: "read-files";
|
|
2333
|
+
requestId: string;
|
|
2534
2334
|
filePaths: string[];
|
|
2535
2335
|
} | {
|
|
2536
2336
|
type: "tool-call";
|
|
2537
2337
|
userInputId: string;
|
|
2538
|
-
data: {
|
|
2539
|
-
name: string;
|
|
2540
|
-
id: string;
|
|
2541
|
-
input: Record<string, any>;
|
|
2542
|
-
};
|
|
2543
|
-
changesAlreadyApplied: {
|
|
2544
|
-
content: string;
|
|
2545
|
-
type: "file" | "patch";
|
|
2546
|
-
filePath: string;
|
|
2547
|
-
}[];
|
|
2548
2338
|
response: string;
|
|
2549
2339
|
changes: {
|
|
2340
|
+
type: "patch" | "file";
|
|
2341
|
+
filePath: string;
|
|
2550
2342
|
content: string;
|
|
2551
|
-
|
|
2343
|
+
}[];
|
|
2344
|
+
changesAlreadyApplied: {
|
|
2345
|
+
type: "patch" | "file";
|
|
2552
2346
|
filePath: string;
|
|
2347
|
+
content: string;
|
|
2553
2348
|
}[];
|
|
2554
2349
|
addedFileVersions: {
|
|
2555
2350
|
path: string;
|
|
2556
2351
|
content: string;
|
|
2557
2352
|
}[];
|
|
2558
2353
|
resetFileVersions: boolean;
|
|
2354
|
+
data: {
|
|
2355
|
+
name: string;
|
|
2356
|
+
id: string;
|
|
2357
|
+
input: Record<string, any>;
|
|
2358
|
+
};
|
|
2559
2359
|
} | {
|
|
2560
2360
|
type: "terminal-command-result";
|
|
2561
2361
|
userInputId: string;
|
|
@@ -2565,24 +2365,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2565
2365
|
isUpToDate: boolean;
|
|
2566
2366
|
latestVersion: string;
|
|
2567
2367
|
} | {
|
|
2568
|
-
message: string;
|
|
2569
|
-
type: "auth-result";
|
|
2570
|
-
user?: {
|
|
2571
|
-
email: string;
|
|
2572
|
-
name: string | null;
|
|
2573
|
-
id: string;
|
|
2574
|
-
authToken: string;
|
|
2575
|
-
fingerprintId: string;
|
|
2576
|
-
fingerprintHash: string;
|
|
2577
|
-
} | undefined;
|
|
2578
|
-
} | {
|
|
2579
|
-
type: "login-code-response";
|
|
2580
|
-
fingerprintId: string;
|
|
2581
|
-
fingerprintHash: string;
|
|
2582
|
-
loginUrl: string;
|
|
2583
|
-
} | {
|
|
2584
|
-
message: string;
|
|
2585
2368
|
type: "action-error";
|
|
2369
|
+
message: string;
|
|
2586
2370
|
} | {
|
|
2587
2371
|
type: "commit-message-response";
|
|
2588
2372
|
commitMessage: string;
|
|
@@ -2608,16 +2392,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2608
2392
|
} | {
|
|
2609
2393
|
type: "response-complete";
|
|
2610
2394
|
userInputId: string;
|
|
2611
|
-
changesAlreadyApplied: {
|
|
2612
|
-
content: string;
|
|
2613
|
-
type: "file" | "patch";
|
|
2614
|
-
filePath: string;
|
|
2615
|
-
}[];
|
|
2616
2395
|
response: string;
|
|
2617
2396
|
changes: {
|
|
2397
|
+
type: "patch" | "file";
|
|
2398
|
+
filePath: string;
|
|
2618
2399
|
content: string;
|
|
2619
|
-
|
|
2400
|
+
}[];
|
|
2401
|
+
changesAlreadyApplied: {
|
|
2402
|
+
type: "patch" | "file";
|
|
2620
2403
|
filePath: string;
|
|
2404
|
+
content: string;
|
|
2621
2405
|
}[];
|
|
2622
2406
|
addedFileVersions: {
|
|
2623
2407
|
path: string;
|
|
@@ -2630,40 +2414,38 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2630
2414
|
subscription_active?: boolean | undefined;
|
|
2631
2415
|
next_quota_reset?: Date | undefined;
|
|
2632
2416
|
session_credits_used?: number | undefined;
|
|
2633
|
-
} | {
|
|
2634
|
-
type: "read-files-response";
|
|
2635
|
-
files: Record<string, string | null>;
|
|
2636
2417
|
} | {
|
|
2637
2418
|
type: "response-chunk";
|
|
2638
2419
|
userInputId: string;
|
|
2639
2420
|
chunk: string;
|
|
2640
2421
|
} | {
|
|
2641
2422
|
type: "read-files";
|
|
2423
|
+
requestId: string;
|
|
2642
2424
|
filePaths: string[];
|
|
2643
2425
|
} | {
|
|
2644
2426
|
type: "tool-call";
|
|
2645
2427
|
userInputId: string;
|
|
2646
|
-
data: {
|
|
2647
|
-
name: string;
|
|
2648
|
-
id: string;
|
|
2649
|
-
input: Record<string, any>;
|
|
2650
|
-
};
|
|
2651
|
-
changesAlreadyApplied: {
|
|
2652
|
-
content: string;
|
|
2653
|
-
type: "file" | "patch";
|
|
2654
|
-
filePath: string;
|
|
2655
|
-
}[];
|
|
2656
2428
|
response: string;
|
|
2657
2429
|
changes: {
|
|
2430
|
+
type: "patch" | "file";
|
|
2431
|
+
filePath: string;
|
|
2658
2432
|
content: string;
|
|
2659
|
-
|
|
2433
|
+
}[];
|
|
2434
|
+
changesAlreadyApplied: {
|
|
2435
|
+
type: "patch" | "file";
|
|
2660
2436
|
filePath: string;
|
|
2437
|
+
content: string;
|
|
2661
2438
|
}[];
|
|
2662
2439
|
addedFileVersions: {
|
|
2663
2440
|
path: string;
|
|
2664
2441
|
content: string;
|
|
2665
2442
|
}[];
|
|
2666
2443
|
resetFileVersions: boolean;
|
|
2444
|
+
data: {
|
|
2445
|
+
name: string;
|
|
2446
|
+
id: string;
|
|
2447
|
+
input: Record<string, any>;
|
|
2448
|
+
};
|
|
2667
2449
|
} | {
|
|
2668
2450
|
type: "terminal-command-result";
|
|
2669
2451
|
userInputId: string;
|
|
@@ -2673,24 +2455,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2673
2455
|
isUpToDate: boolean;
|
|
2674
2456
|
latestVersion: string;
|
|
2675
2457
|
} | {
|
|
2676
|
-
message: string;
|
|
2677
|
-
type: "auth-result";
|
|
2678
|
-
user?: {
|
|
2679
|
-
email: string;
|
|
2680
|
-
name: string | null;
|
|
2681
|
-
id: string;
|
|
2682
|
-
authToken: string;
|
|
2683
|
-
fingerprintId: string;
|
|
2684
|
-
fingerprintHash: string;
|
|
2685
|
-
} | undefined;
|
|
2686
|
-
} | {
|
|
2687
|
-
type: "login-code-response";
|
|
2688
|
-
fingerprintId: string;
|
|
2689
|
-
fingerprintHash: string;
|
|
2690
|
-
loginUrl: string;
|
|
2691
|
-
} | {
|
|
2692
|
-
message: string;
|
|
2693
2458
|
type: "action-error";
|
|
2459
|
+
message: string;
|
|
2694
2460
|
} | {
|
|
2695
2461
|
type: "commit-message-response";
|
|
2696
2462
|
commitMessage: string;
|
|
@@ -2705,25 +2471,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2705
2471
|
}, "strip", z.ZodTypeAny, {
|
|
2706
2472
|
type: "ack";
|
|
2707
2473
|
success: boolean;
|
|
2708
|
-
error?: string | undefined;
|
|
2709
2474
|
txid?: number | undefined;
|
|
2475
|
+
error?: string | undefined;
|
|
2710
2476
|
}, {
|
|
2711
2477
|
type: "ack";
|
|
2712
2478
|
success: boolean;
|
|
2713
|
-
error?: string | undefined;
|
|
2714
2479
|
txid?: number | undefined;
|
|
2480
|
+
error?: string | undefined;
|
|
2715
2481
|
}>, z.ZodObject<{
|
|
2716
2482
|
type: z.ZodLiteral<"action">;
|
|
2717
2483
|
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2718
|
-
type: z.ZodLiteral<"read-files-response">;
|
|
2719
|
-
files: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
2720
|
-
}, "strip", z.ZodTypeAny, {
|
|
2721
|
-
type: "read-files-response";
|
|
2722
|
-
files: Record<string, string | null>;
|
|
2723
|
-
}, {
|
|
2724
|
-
type: "read-files-response";
|
|
2725
|
-
files: Record<string, string | null>;
|
|
2726
|
-
}>, z.ZodObject<{
|
|
2727
2484
|
type: z.ZodLiteral<"response-chunk">;
|
|
2728
2485
|
userInputId: z.ZodString;
|
|
2729
2486
|
chunk: z.ZodString;
|
|
@@ -2744,26 +2501,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2744
2501
|
filePath: z.ZodString;
|
|
2745
2502
|
content: z.ZodString;
|
|
2746
2503
|
}, "strip", z.ZodTypeAny, {
|
|
2747
|
-
|
|
2748
|
-
type: "file" | "patch";
|
|
2504
|
+
type: "patch" | "file";
|
|
2749
2505
|
filePath: string;
|
|
2750
|
-
}, {
|
|
2751
2506
|
content: string;
|
|
2752
|
-
|
|
2507
|
+
}, {
|
|
2508
|
+
type: "patch" | "file";
|
|
2753
2509
|
filePath: string;
|
|
2510
|
+
content: string;
|
|
2754
2511
|
}>, "many">;
|
|
2755
2512
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2756
2513
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2757
2514
|
filePath: z.ZodString;
|
|
2758
2515
|
content: z.ZodString;
|
|
2759
2516
|
}, "strip", z.ZodTypeAny, {
|
|
2760
|
-
|
|
2761
|
-
type: "file" | "patch";
|
|
2517
|
+
type: "patch" | "file";
|
|
2762
2518
|
filePath: string;
|
|
2763
|
-
}, {
|
|
2764
2519
|
content: string;
|
|
2765
|
-
|
|
2520
|
+
}, {
|
|
2521
|
+
type: "patch" | "file";
|
|
2766
2522
|
filePath: string;
|
|
2523
|
+
content: string;
|
|
2767
2524
|
}>, "many">;
|
|
2768
2525
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2769
2526
|
path: z.ZodString;
|
|
@@ -2786,16 +2543,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2786
2543
|
}>, "strip", z.ZodTypeAny, {
|
|
2787
2544
|
type: "response-complete";
|
|
2788
2545
|
userInputId: string;
|
|
2789
|
-
changesAlreadyApplied: {
|
|
2790
|
-
content: string;
|
|
2791
|
-
type: "file" | "patch";
|
|
2792
|
-
filePath: string;
|
|
2793
|
-
}[];
|
|
2794
2546
|
response: string;
|
|
2795
2547
|
changes: {
|
|
2548
|
+
type: "patch" | "file";
|
|
2549
|
+
filePath: string;
|
|
2796
2550
|
content: string;
|
|
2797
|
-
|
|
2551
|
+
}[];
|
|
2552
|
+
changesAlreadyApplied: {
|
|
2553
|
+
type: "patch" | "file";
|
|
2798
2554
|
filePath: string;
|
|
2555
|
+
content: string;
|
|
2799
2556
|
}[];
|
|
2800
2557
|
addedFileVersions: {
|
|
2801
2558
|
path: string;
|
|
@@ -2811,16 +2568,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2811
2568
|
}, {
|
|
2812
2569
|
type: "response-complete";
|
|
2813
2570
|
userInputId: string;
|
|
2814
|
-
changesAlreadyApplied: {
|
|
2815
|
-
content: string;
|
|
2816
|
-
type: "file" | "patch";
|
|
2817
|
-
filePath: string;
|
|
2818
|
-
}[];
|
|
2819
2571
|
response: string;
|
|
2820
2572
|
changes: {
|
|
2573
|
+
type: "patch" | "file";
|
|
2574
|
+
filePath: string;
|
|
2821
2575
|
content: string;
|
|
2822
|
-
|
|
2576
|
+
}[];
|
|
2577
|
+
changesAlreadyApplied: {
|
|
2578
|
+
type: "patch" | "file";
|
|
2823
2579
|
filePath: string;
|
|
2580
|
+
content: string;
|
|
2824
2581
|
}[];
|
|
2825
2582
|
addedFileVersions: {
|
|
2826
2583
|
path: string;
|
|
@@ -2836,11 +2593,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2836
2593
|
}>, z.ZodObject<{
|
|
2837
2594
|
type: z.ZodLiteral<"read-files">;
|
|
2838
2595
|
filePaths: z.ZodArray<z.ZodString, "many">;
|
|
2596
|
+
requestId: z.ZodString;
|
|
2839
2597
|
}, "strip", z.ZodTypeAny, {
|
|
2840
2598
|
type: "read-files";
|
|
2599
|
+
requestId: string;
|
|
2841
2600
|
filePaths: string[];
|
|
2842
2601
|
}, {
|
|
2843
2602
|
type: "read-files";
|
|
2603
|
+
requestId: string;
|
|
2844
2604
|
filePaths: string[];
|
|
2845
2605
|
}>, z.ZodObject<{
|
|
2846
2606
|
type: z.ZodLiteral<"tool-call">;
|
|
@@ -2864,26 +2624,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2864
2624
|
filePath: z.ZodString;
|
|
2865
2625
|
content: z.ZodString;
|
|
2866
2626
|
}, "strip", z.ZodTypeAny, {
|
|
2867
|
-
|
|
2868
|
-
type: "file" | "patch";
|
|
2627
|
+
type: "patch" | "file";
|
|
2869
2628
|
filePath: string;
|
|
2870
|
-
}, {
|
|
2871
2629
|
content: string;
|
|
2872
|
-
|
|
2630
|
+
}, {
|
|
2631
|
+
type: "patch" | "file";
|
|
2873
2632
|
filePath: string;
|
|
2633
|
+
content: string;
|
|
2874
2634
|
}>, "many">;
|
|
2875
2635
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2876
2636
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2877
2637
|
filePath: z.ZodString;
|
|
2878
2638
|
content: z.ZodString;
|
|
2879
2639
|
}, "strip", z.ZodTypeAny, {
|
|
2880
|
-
|
|
2881
|
-
type: "file" | "patch";
|
|
2640
|
+
type: "patch" | "file";
|
|
2882
2641
|
filePath: string;
|
|
2883
|
-
}, {
|
|
2884
2642
|
content: string;
|
|
2885
|
-
|
|
2643
|
+
}, {
|
|
2644
|
+
type: "patch" | "file";
|
|
2886
2645
|
filePath: string;
|
|
2646
|
+
content: string;
|
|
2887
2647
|
}>, "many">;
|
|
2888
2648
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2889
2649
|
path: z.ZodString;
|
|
@@ -2899,51 +2659,51 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2899
2659
|
}, "strip", z.ZodTypeAny, {
|
|
2900
2660
|
type: "tool-call";
|
|
2901
2661
|
userInputId: string;
|
|
2902
|
-
data: {
|
|
2903
|
-
name: string;
|
|
2904
|
-
id: string;
|
|
2905
|
-
input: Record<string, any>;
|
|
2906
|
-
};
|
|
2907
|
-
changesAlreadyApplied: {
|
|
2908
|
-
content: string;
|
|
2909
|
-
type: "file" | "patch";
|
|
2910
|
-
filePath: string;
|
|
2911
|
-
}[];
|
|
2912
2662
|
response: string;
|
|
2913
2663
|
changes: {
|
|
2664
|
+
type: "patch" | "file";
|
|
2665
|
+
filePath: string;
|
|
2914
2666
|
content: string;
|
|
2915
|
-
|
|
2667
|
+
}[];
|
|
2668
|
+
changesAlreadyApplied: {
|
|
2669
|
+
type: "patch" | "file";
|
|
2916
2670
|
filePath: string;
|
|
2671
|
+
content: string;
|
|
2917
2672
|
}[];
|
|
2918
2673
|
addedFileVersions: {
|
|
2919
2674
|
path: string;
|
|
2920
2675
|
content: string;
|
|
2921
2676
|
}[];
|
|
2922
2677
|
resetFileVersions: boolean;
|
|
2923
|
-
}, {
|
|
2924
|
-
type: "tool-call";
|
|
2925
|
-
userInputId: string;
|
|
2926
2678
|
data: {
|
|
2927
2679
|
name: string;
|
|
2928
2680
|
id: string;
|
|
2929
2681
|
input: Record<string, any>;
|
|
2930
2682
|
};
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
filePath: string;
|
|
2935
|
-
}[];
|
|
2683
|
+
}, {
|
|
2684
|
+
type: "tool-call";
|
|
2685
|
+
userInputId: string;
|
|
2936
2686
|
response: string;
|
|
2937
2687
|
changes: {
|
|
2688
|
+
type: "patch" | "file";
|
|
2689
|
+
filePath: string;
|
|
2938
2690
|
content: string;
|
|
2939
|
-
|
|
2691
|
+
}[];
|
|
2692
|
+
changesAlreadyApplied: {
|
|
2693
|
+
type: "patch" | "file";
|
|
2940
2694
|
filePath: string;
|
|
2695
|
+
content: string;
|
|
2941
2696
|
}[];
|
|
2942
2697
|
addedFileVersions: {
|
|
2943
2698
|
path: string;
|
|
2944
2699
|
content: string;
|
|
2945
2700
|
}[];
|
|
2946
2701
|
resetFileVersions: boolean;
|
|
2702
|
+
data: {
|
|
2703
|
+
name: string;
|
|
2704
|
+
id: string;
|
|
2705
|
+
input: Record<string, any>;
|
|
2706
|
+
};
|
|
2947
2707
|
}>, z.ZodObject<{
|
|
2948
2708
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
2949
2709
|
userInputId: z.ZodString;
|
|
@@ -2994,68 +2754,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2994
2754
|
next_quota_reset: Date;
|
|
2995
2755
|
session_credits_used: number;
|
|
2996
2756
|
referralLink?: string | undefined;
|
|
2997
|
-
}>, z.ZodObject<{
|
|
2998
|
-
type: z.ZodLiteral<"auth-result">;
|
|
2999
|
-
user: z.ZodOptional<z.ZodObject<{
|
|
3000
|
-
id: z.ZodString;
|
|
3001
|
-
email: z.ZodString;
|
|
3002
|
-
name: z.ZodNullable<z.ZodString>;
|
|
3003
|
-
authToken: z.ZodString;
|
|
3004
|
-
fingerprintId: z.ZodString;
|
|
3005
|
-
fingerprintHash: z.ZodString;
|
|
3006
|
-
}, "strip", z.ZodTypeAny, {
|
|
3007
|
-
email: string;
|
|
3008
|
-
name: string | null;
|
|
3009
|
-
id: string;
|
|
3010
|
-
authToken: string;
|
|
3011
|
-
fingerprintId: string;
|
|
3012
|
-
fingerprintHash: string;
|
|
3013
|
-
}, {
|
|
3014
|
-
email: string;
|
|
3015
|
-
name: string | null;
|
|
3016
|
-
id: string;
|
|
3017
|
-
authToken: string;
|
|
3018
|
-
fingerprintId: string;
|
|
3019
|
-
fingerprintHash: string;
|
|
3020
|
-
}>>;
|
|
3021
|
-
message: z.ZodString;
|
|
3022
|
-
}, "strip", z.ZodTypeAny, {
|
|
3023
|
-
message: string;
|
|
3024
|
-
type: "auth-result";
|
|
3025
|
-
user?: {
|
|
3026
|
-
email: string;
|
|
3027
|
-
name: string | null;
|
|
3028
|
-
id: string;
|
|
3029
|
-
authToken: string;
|
|
3030
|
-
fingerprintId: string;
|
|
3031
|
-
fingerprintHash: string;
|
|
3032
|
-
} | undefined;
|
|
3033
|
-
}, {
|
|
3034
|
-
message: string;
|
|
3035
|
-
type: "auth-result";
|
|
3036
|
-
user?: {
|
|
3037
|
-
email: string;
|
|
3038
|
-
name: string | null;
|
|
3039
|
-
id: string;
|
|
3040
|
-
authToken: string;
|
|
3041
|
-
fingerprintId: string;
|
|
3042
|
-
fingerprintHash: string;
|
|
3043
|
-
} | undefined;
|
|
3044
|
-
}>, z.ZodObject<{
|
|
3045
|
-
type: z.ZodLiteral<"login-code-response">;
|
|
3046
|
-
fingerprintId: z.ZodString;
|
|
3047
|
-
fingerprintHash: z.ZodString;
|
|
3048
|
-
loginUrl: z.ZodString;
|
|
3049
|
-
}, "strip", z.ZodTypeAny, {
|
|
3050
|
-
type: "login-code-response";
|
|
3051
|
-
fingerprintId: string;
|
|
3052
|
-
fingerprintHash: string;
|
|
3053
|
-
loginUrl: string;
|
|
3054
|
-
}, {
|
|
3055
|
-
type: "login-code-response";
|
|
3056
|
-
fingerprintId: string;
|
|
3057
|
-
fingerprintHash: string;
|
|
3058
|
-
loginUrl: string;
|
|
3059
2757
|
}>, z.ZodObject<{
|
|
3060
2758
|
type: z.ZodLiteral<"usage-response">;
|
|
3061
2759
|
usage: z.ZodNumber;
|
|
@@ -3084,11 +2782,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3084
2782
|
type: z.ZodLiteral<"action-error">;
|
|
3085
2783
|
message: z.ZodString;
|
|
3086
2784
|
}, "strip", z.ZodTypeAny, {
|
|
3087
|
-
message: string;
|
|
3088
2785
|
type: "action-error";
|
|
3089
|
-
}, {
|
|
3090
2786
|
message: string;
|
|
2787
|
+
}, {
|
|
3091
2788
|
type: "action-error";
|
|
2789
|
+
message: string;
|
|
3092
2790
|
}>, z.ZodObject<{
|
|
3093
2791
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3094
2792
|
commitMessage: z.ZodString;
|
|
@@ -3120,16 +2818,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3120
2818
|
} | {
|
|
3121
2819
|
type: "response-complete";
|
|
3122
2820
|
userInputId: string;
|
|
3123
|
-
changesAlreadyApplied: {
|
|
3124
|
-
content: string;
|
|
3125
|
-
type: "file" | "patch";
|
|
3126
|
-
filePath: string;
|
|
3127
|
-
}[];
|
|
3128
2821
|
response: string;
|
|
3129
2822
|
changes: {
|
|
2823
|
+
type: "patch" | "file";
|
|
2824
|
+
filePath: string;
|
|
3130
2825
|
content: string;
|
|
3131
|
-
|
|
2826
|
+
}[];
|
|
2827
|
+
changesAlreadyApplied: {
|
|
2828
|
+
type: "patch" | "file";
|
|
3132
2829
|
filePath: string;
|
|
2830
|
+
content: string;
|
|
3133
2831
|
}[];
|
|
3134
2832
|
addedFileVersions: {
|
|
3135
2833
|
path: string;
|
|
@@ -3142,40 +2840,38 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3142
2840
|
subscription_active?: boolean | undefined;
|
|
3143
2841
|
next_quota_reset?: Date | undefined;
|
|
3144
2842
|
session_credits_used?: number | undefined;
|
|
3145
|
-
} | {
|
|
3146
|
-
type: "read-files-response";
|
|
3147
|
-
files: Record<string, string | null>;
|
|
3148
2843
|
} | {
|
|
3149
2844
|
type: "response-chunk";
|
|
3150
2845
|
userInputId: string;
|
|
3151
2846
|
chunk: string;
|
|
3152
2847
|
} | {
|
|
3153
2848
|
type: "read-files";
|
|
2849
|
+
requestId: string;
|
|
3154
2850
|
filePaths: string[];
|
|
3155
2851
|
} | {
|
|
3156
2852
|
type: "tool-call";
|
|
3157
2853
|
userInputId: string;
|
|
3158
|
-
data: {
|
|
3159
|
-
name: string;
|
|
3160
|
-
id: string;
|
|
3161
|
-
input: Record<string, any>;
|
|
3162
|
-
};
|
|
3163
|
-
changesAlreadyApplied: {
|
|
3164
|
-
content: string;
|
|
3165
|
-
type: "file" | "patch";
|
|
3166
|
-
filePath: string;
|
|
3167
|
-
}[];
|
|
3168
2854
|
response: string;
|
|
3169
2855
|
changes: {
|
|
2856
|
+
type: "patch" | "file";
|
|
2857
|
+
filePath: string;
|
|
3170
2858
|
content: string;
|
|
3171
|
-
|
|
2859
|
+
}[];
|
|
2860
|
+
changesAlreadyApplied: {
|
|
2861
|
+
type: "patch" | "file";
|
|
3172
2862
|
filePath: string;
|
|
2863
|
+
content: string;
|
|
3173
2864
|
}[];
|
|
3174
2865
|
addedFileVersions: {
|
|
3175
2866
|
path: string;
|
|
3176
2867
|
content: string;
|
|
3177
2868
|
}[];
|
|
3178
2869
|
resetFileVersions: boolean;
|
|
2870
|
+
data: {
|
|
2871
|
+
name: string;
|
|
2872
|
+
id: string;
|
|
2873
|
+
input: Record<string, any>;
|
|
2874
|
+
};
|
|
3179
2875
|
} | {
|
|
3180
2876
|
type: "terminal-command-result";
|
|
3181
2877
|
userInputId: string;
|
|
@@ -3185,24 +2881,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3185
2881
|
isUpToDate: boolean;
|
|
3186
2882
|
latestVersion: string;
|
|
3187
2883
|
} | {
|
|
3188
|
-
message: string;
|
|
3189
|
-
type: "auth-result";
|
|
3190
|
-
user?: {
|
|
3191
|
-
email: string;
|
|
3192
|
-
name: string | null;
|
|
3193
|
-
id: string;
|
|
3194
|
-
authToken: string;
|
|
3195
|
-
fingerprintId: string;
|
|
3196
|
-
fingerprintHash: string;
|
|
3197
|
-
} | undefined;
|
|
3198
|
-
} | {
|
|
3199
|
-
type: "login-code-response";
|
|
3200
|
-
fingerprintId: string;
|
|
3201
|
-
fingerprintHash: string;
|
|
3202
|
-
loginUrl: string;
|
|
3203
|
-
} | {
|
|
3204
|
-
message: string;
|
|
3205
2884
|
type: "action-error";
|
|
2885
|
+
message: string;
|
|
3206
2886
|
} | {
|
|
3207
2887
|
type: "commit-message-response";
|
|
3208
2888
|
commitMessage: string;
|
|
@@ -3228,16 +2908,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3228
2908
|
} | {
|
|
3229
2909
|
type: "response-complete";
|
|
3230
2910
|
userInputId: string;
|
|
3231
|
-
changesAlreadyApplied: {
|
|
3232
|
-
content: string;
|
|
3233
|
-
type: "file" | "patch";
|
|
3234
|
-
filePath: string;
|
|
3235
|
-
}[];
|
|
3236
2911
|
response: string;
|
|
3237
2912
|
changes: {
|
|
2913
|
+
type: "patch" | "file";
|
|
2914
|
+
filePath: string;
|
|
3238
2915
|
content: string;
|
|
3239
|
-
|
|
2916
|
+
}[];
|
|
2917
|
+
changesAlreadyApplied: {
|
|
2918
|
+
type: "patch" | "file";
|
|
3240
2919
|
filePath: string;
|
|
2920
|
+
content: string;
|
|
3241
2921
|
}[];
|
|
3242
2922
|
addedFileVersions: {
|
|
3243
2923
|
path: string;
|
|
@@ -3250,40 +2930,38 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3250
2930
|
subscription_active?: boolean | undefined;
|
|
3251
2931
|
next_quota_reset?: Date | undefined;
|
|
3252
2932
|
session_credits_used?: number | undefined;
|
|
3253
|
-
} | {
|
|
3254
|
-
type: "read-files-response";
|
|
3255
|
-
files: Record<string, string | null>;
|
|
3256
2933
|
} | {
|
|
3257
2934
|
type: "response-chunk";
|
|
3258
2935
|
userInputId: string;
|
|
3259
2936
|
chunk: string;
|
|
3260
2937
|
} | {
|
|
3261
2938
|
type: "read-files";
|
|
2939
|
+
requestId: string;
|
|
3262
2940
|
filePaths: string[];
|
|
3263
2941
|
} | {
|
|
3264
2942
|
type: "tool-call";
|
|
3265
2943
|
userInputId: string;
|
|
3266
|
-
data: {
|
|
3267
|
-
name: string;
|
|
3268
|
-
id: string;
|
|
3269
|
-
input: Record<string, any>;
|
|
3270
|
-
};
|
|
3271
|
-
changesAlreadyApplied: {
|
|
3272
|
-
content: string;
|
|
3273
|
-
type: "file" | "patch";
|
|
3274
|
-
filePath: string;
|
|
3275
|
-
}[];
|
|
3276
2944
|
response: string;
|
|
3277
2945
|
changes: {
|
|
2946
|
+
type: "patch" | "file";
|
|
2947
|
+
filePath: string;
|
|
3278
2948
|
content: string;
|
|
3279
|
-
|
|
2949
|
+
}[];
|
|
2950
|
+
changesAlreadyApplied: {
|
|
2951
|
+
type: "patch" | "file";
|
|
3280
2952
|
filePath: string;
|
|
2953
|
+
content: string;
|
|
3281
2954
|
}[];
|
|
3282
2955
|
addedFileVersions: {
|
|
3283
2956
|
path: string;
|
|
3284
2957
|
content: string;
|
|
3285
2958
|
}[];
|
|
3286
2959
|
resetFileVersions: boolean;
|
|
2960
|
+
data: {
|
|
2961
|
+
name: string;
|
|
2962
|
+
id: string;
|
|
2963
|
+
input: Record<string, any>;
|
|
2964
|
+
};
|
|
3287
2965
|
} | {
|
|
3288
2966
|
type: "terminal-command-result";
|
|
3289
2967
|
userInputId: string;
|
|
@@ -3293,24 +2971,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3293
2971
|
isUpToDate: boolean;
|
|
3294
2972
|
latestVersion: string;
|
|
3295
2973
|
} | {
|
|
3296
|
-
message: string;
|
|
3297
|
-
type: "auth-result";
|
|
3298
|
-
user?: {
|
|
3299
|
-
email: string;
|
|
3300
|
-
name: string | null;
|
|
3301
|
-
id: string;
|
|
3302
|
-
authToken: string;
|
|
3303
|
-
fingerprintId: string;
|
|
3304
|
-
fingerprintHash: string;
|
|
3305
|
-
} | undefined;
|
|
3306
|
-
} | {
|
|
3307
|
-
type: "login-code-response";
|
|
3308
|
-
fingerprintId: string;
|
|
3309
|
-
fingerprintHash: string;
|
|
3310
|
-
loginUrl: string;
|
|
3311
|
-
} | {
|
|
3312
|
-
message: string;
|
|
3313
2974
|
type: "action-error";
|
|
2975
|
+
message: string;
|
|
3314
2976
|
} | {
|
|
3315
2977
|
type: "commit-message-response";
|
|
3316
2978
|
commitMessage: string;
|