codebuff 1.0.164 → 1.0.166
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 +18 -8
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +4 -4
- package/dist/client.js +28 -10
- 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 +84 -87
- package/dist/common/actions.js +2 -4
- package/dist/common/actions.js.map +1 -1
- package/dist/common/browser-actions.d.ts +62 -62
- package/dist/common/constants.d.ts +3 -3
- package/dist/common/constants.js +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/types/agent-state.d.ts +461 -0
- package/dist/common/types/agent-state.js +30 -0
- package/dist/common/types/agent-state.js.map +1 -0
- package/dist/common/types/message.d.ts +311 -0
- package/dist/common/types/message.js +54 -0
- package/dist/common/types/message.js.map +1 -0
- package/dist/common/types/tools.d.ts +5 -0
- package/dist/common/types/tools.js +3 -0
- package/dist/common/types/tools.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 +2 -2
- 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 +164 -174
- 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
|
-
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";
|
|
@@ -360,22 +360,22 @@ 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, {
|
|
373
373
|
type: "user-input";
|
|
374
374
|
userInputId: string;
|
|
375
375
|
changesAlreadyApplied: {
|
|
376
|
-
type: "patch" | "file";
|
|
377
|
-
filePath: string;
|
|
378
376
|
content: string;
|
|
377
|
+
type: "file" | "patch";
|
|
378
|
+
filePath: string;
|
|
379
379
|
}[];
|
|
380
380
|
fingerprintId: string;
|
|
381
381
|
messages: {
|
|
@@ -394,8 +394,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
394
394
|
type: "ephemeral";
|
|
395
395
|
} | undefined;
|
|
396
396
|
} | {
|
|
397
|
-
type: "tool_result";
|
|
398
397
|
content: string;
|
|
398
|
+
type: "tool_result";
|
|
399
399
|
tool_use_id: string;
|
|
400
400
|
cache_control?: {
|
|
401
401
|
type: "ephemeral";
|
|
@@ -446,9 +446,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
446
446
|
type: "user-input";
|
|
447
447
|
userInputId: string;
|
|
448
448
|
changesAlreadyApplied: {
|
|
449
|
-
type: "patch" | "file";
|
|
450
|
-
filePath: string;
|
|
451
449
|
content: string;
|
|
450
|
+
type: "file" | "patch";
|
|
451
|
+
filePath: string;
|
|
452
452
|
}[];
|
|
453
453
|
fingerprintId: string;
|
|
454
454
|
messages: {
|
|
@@ -467,8 +467,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
467
467
|
type: "ephemeral";
|
|
468
468
|
} | undefined;
|
|
469
469
|
} | {
|
|
470
|
-
type: "tool_result";
|
|
471
470
|
content: string;
|
|
471
|
+
type: "tool_result";
|
|
472
472
|
tool_use_id: string;
|
|
473
473
|
cache_control?: {
|
|
474
474
|
type: "ephemeral";
|
|
@@ -518,12 +518,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
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;
|
|
@@ -733,9 +736,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
733
736
|
type: "user-input";
|
|
734
737
|
userInputId: string;
|
|
735
738
|
changesAlreadyApplied: {
|
|
736
|
-
type: "patch" | "file";
|
|
737
|
-
filePath: string;
|
|
738
739
|
content: string;
|
|
740
|
+
type: "file" | "patch";
|
|
741
|
+
filePath: string;
|
|
739
742
|
}[];
|
|
740
743
|
fingerprintId: string;
|
|
741
744
|
messages: {
|
|
@@ -754,8 +757,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
754
757
|
type: "ephemeral";
|
|
755
758
|
} | undefined;
|
|
756
759
|
} | {
|
|
757
|
-
type: "tool_result";
|
|
758
760
|
content: string;
|
|
761
|
+
type: "tool_result";
|
|
759
762
|
tool_use_id: string;
|
|
760
763
|
cache_control?: {
|
|
761
764
|
type: "ephemeral";
|
|
@@ -805,6 +808,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
805
808
|
} | {
|
|
806
809
|
type: "read-files-response";
|
|
807
810
|
files: Record<string, string | null>;
|
|
811
|
+
requestId?: string | undefined;
|
|
808
812
|
} | {
|
|
809
813
|
type: "init";
|
|
810
814
|
fingerprintId: string;
|
|
@@ -853,9 +857,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
853
857
|
type: "user-input";
|
|
854
858
|
userInputId: string;
|
|
855
859
|
changesAlreadyApplied: {
|
|
856
|
-
type: "patch" | "file";
|
|
857
|
-
filePath: string;
|
|
858
860
|
content: string;
|
|
861
|
+
type: "file" | "patch";
|
|
862
|
+
filePath: string;
|
|
859
863
|
}[];
|
|
860
864
|
fingerprintId: string;
|
|
861
865
|
messages: {
|
|
@@ -874,8 +878,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
874
878
|
type: "ephemeral";
|
|
875
879
|
} | undefined;
|
|
876
880
|
} | {
|
|
877
|
-
type: "tool_result";
|
|
878
881
|
content: string;
|
|
882
|
+
type: "tool_result";
|
|
879
883
|
tool_use_id: string;
|
|
880
884
|
cache_control?: {
|
|
881
885
|
type: "ephemeral";
|
|
@@ -925,6 +929,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
925
929
|
} | {
|
|
926
930
|
type: "read-files-response";
|
|
927
931
|
files: Record<string, string | null>;
|
|
932
|
+
requestId?: string | undefined;
|
|
928
933
|
} | {
|
|
929
934
|
type: "init";
|
|
930
935
|
fingerprintId: string;
|
|
@@ -1086,15 +1091,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1086
1091
|
type: "ephemeral";
|
|
1087
1092
|
}>>;
|
|
1088
1093
|
}, "strip", z.ZodTypeAny, {
|
|
1089
|
-
type: "tool_result";
|
|
1090
1094
|
content: string;
|
|
1095
|
+
type: "tool_result";
|
|
1091
1096
|
tool_use_id: string;
|
|
1092
1097
|
cache_control?: {
|
|
1093
1098
|
type: "ephemeral";
|
|
1094
1099
|
} | undefined;
|
|
1095
1100
|
}, {
|
|
1096
|
-
type: "tool_result";
|
|
1097
1101
|
content: string;
|
|
1102
|
+
type: "tool_result";
|
|
1098
1103
|
tool_use_id: string;
|
|
1099
1104
|
cache_control?: {
|
|
1100
1105
|
type: "ephemeral";
|
|
@@ -1158,8 +1163,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1158
1163
|
type: "ephemeral";
|
|
1159
1164
|
} | undefined;
|
|
1160
1165
|
} | {
|
|
1161
|
-
type: "tool_result";
|
|
1162
1166
|
content: string;
|
|
1167
|
+
type: "tool_result";
|
|
1163
1168
|
tool_use_id: string;
|
|
1164
1169
|
cache_control?: {
|
|
1165
1170
|
type: "ephemeral";
|
|
@@ -1192,8 +1197,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1192
1197
|
type: "ephemeral";
|
|
1193
1198
|
} | undefined;
|
|
1194
1199
|
} | {
|
|
1195
|
-
type: "tool_result";
|
|
1196
1200
|
content: string;
|
|
1201
|
+
type: "tool_result";
|
|
1197
1202
|
tool_use_id: string;
|
|
1198
1203
|
cache_control?: {
|
|
1199
1204
|
type: "ephemeral";
|
|
@@ -1325,22 +1330,22 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1325
1330
|
filePath: z.ZodString;
|
|
1326
1331
|
content: z.ZodString;
|
|
1327
1332
|
}, "strip", z.ZodTypeAny, {
|
|
1328
|
-
type: "patch" | "file";
|
|
1329
|
-
filePath: string;
|
|
1330
1333
|
content: string;
|
|
1331
|
-
|
|
1332
|
-
type: "patch" | "file";
|
|
1334
|
+
type: "file" | "patch";
|
|
1333
1335
|
filePath: string;
|
|
1336
|
+
}, {
|
|
1334
1337
|
content: string;
|
|
1338
|
+
type: "file" | "patch";
|
|
1339
|
+
filePath: string;
|
|
1335
1340
|
}>, "many">;
|
|
1336
1341
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
1337
1342
|
}, "strip", z.ZodTypeAny, {
|
|
1338
1343
|
type: "user-input";
|
|
1339
1344
|
userInputId: string;
|
|
1340
1345
|
changesAlreadyApplied: {
|
|
1341
|
-
type: "patch" | "file";
|
|
1342
|
-
filePath: string;
|
|
1343
1346
|
content: string;
|
|
1347
|
+
type: "file" | "patch";
|
|
1348
|
+
filePath: string;
|
|
1344
1349
|
}[];
|
|
1345
1350
|
fingerprintId: string;
|
|
1346
1351
|
messages: {
|
|
@@ -1359,8 +1364,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1359
1364
|
type: "ephemeral";
|
|
1360
1365
|
} | undefined;
|
|
1361
1366
|
} | {
|
|
1362
|
-
type: "tool_result";
|
|
1363
1367
|
content: string;
|
|
1368
|
+
type: "tool_result";
|
|
1364
1369
|
tool_use_id: string;
|
|
1365
1370
|
cache_control?: {
|
|
1366
1371
|
type: "ephemeral";
|
|
@@ -1411,9 +1416,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1411
1416
|
type: "user-input";
|
|
1412
1417
|
userInputId: string;
|
|
1413
1418
|
changesAlreadyApplied: {
|
|
1414
|
-
type: "patch" | "file";
|
|
1415
|
-
filePath: string;
|
|
1416
1419
|
content: string;
|
|
1420
|
+
type: "file" | "patch";
|
|
1421
|
+
filePath: string;
|
|
1417
1422
|
}[];
|
|
1418
1423
|
fingerprintId: string;
|
|
1419
1424
|
messages: {
|
|
@@ -1432,8 +1437,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1432
1437
|
type: "ephemeral";
|
|
1433
1438
|
} | undefined;
|
|
1434
1439
|
} | {
|
|
1435
|
-
type: "tool_result";
|
|
1436
1440
|
content: string;
|
|
1441
|
+
type: "tool_result";
|
|
1437
1442
|
tool_use_id: string;
|
|
1438
1443
|
cache_control?: {
|
|
1439
1444
|
type: "ephemeral";
|
|
@@ -1483,12 +1488,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1483
1488
|
}>, z.ZodObject<{
|
|
1484
1489
|
type: z.ZodLiteral<"read-files-response">;
|
|
1485
1490
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1491
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
1486
1492
|
}, "strip", z.ZodTypeAny, {
|
|
1487
1493
|
type: "read-files-response";
|
|
1488
1494
|
files: Record<string, string | null>;
|
|
1495
|
+
requestId?: string | undefined;
|
|
1489
1496
|
}, {
|
|
1490
1497
|
type: "read-files-response";
|
|
1491
1498
|
files: Record<string, string | null>;
|
|
1499
|
+
requestId?: string | undefined;
|
|
1492
1500
|
}>, z.ZodObject<{
|
|
1493
1501
|
type: z.ZodLiteral<"init">;
|
|
1494
1502
|
fingerprintId: z.ZodString;
|
|
@@ -1698,9 +1706,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1698
1706
|
type: "user-input";
|
|
1699
1707
|
userInputId: string;
|
|
1700
1708
|
changesAlreadyApplied: {
|
|
1701
|
-
type: "patch" | "file";
|
|
1702
|
-
filePath: string;
|
|
1703
1709
|
content: string;
|
|
1710
|
+
type: "file" | "patch";
|
|
1711
|
+
filePath: string;
|
|
1704
1712
|
}[];
|
|
1705
1713
|
fingerprintId: string;
|
|
1706
1714
|
messages: {
|
|
@@ -1719,8 +1727,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1719
1727
|
type: "ephemeral";
|
|
1720
1728
|
} | undefined;
|
|
1721
1729
|
} | {
|
|
1722
|
-
type: "tool_result";
|
|
1723
1730
|
content: string;
|
|
1731
|
+
type: "tool_result";
|
|
1724
1732
|
tool_use_id: string;
|
|
1725
1733
|
cache_control?: {
|
|
1726
1734
|
type: "ephemeral";
|
|
@@ -1770,6 +1778,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1770
1778
|
} | {
|
|
1771
1779
|
type: "read-files-response";
|
|
1772
1780
|
files: Record<string, string | null>;
|
|
1781
|
+
requestId?: string | undefined;
|
|
1773
1782
|
} | {
|
|
1774
1783
|
type: "init";
|
|
1775
1784
|
fingerprintId: string;
|
|
@@ -1818,9 +1827,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1818
1827
|
type: "user-input";
|
|
1819
1828
|
userInputId: string;
|
|
1820
1829
|
changesAlreadyApplied: {
|
|
1821
|
-
type: "patch" | "file";
|
|
1822
|
-
filePath: string;
|
|
1823
1830
|
content: string;
|
|
1831
|
+
type: "file" | "patch";
|
|
1832
|
+
filePath: string;
|
|
1824
1833
|
}[];
|
|
1825
1834
|
fingerprintId: string;
|
|
1826
1835
|
messages: {
|
|
@@ -1839,8 +1848,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1839
1848
|
type: "ephemeral";
|
|
1840
1849
|
} | undefined;
|
|
1841
1850
|
} | {
|
|
1842
|
-
type: "tool_result";
|
|
1843
1851
|
content: string;
|
|
1852
|
+
type: "tool_result";
|
|
1844
1853
|
tool_use_id: string;
|
|
1845
1854
|
cache_control?: {
|
|
1846
1855
|
type: "ephemeral";
|
|
@@ -1890,6 +1899,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1890
1899
|
} | {
|
|
1891
1900
|
type: "read-files-response";
|
|
1892
1901
|
files: Record<string, string | null>;
|
|
1902
|
+
requestId?: string | undefined;
|
|
1893
1903
|
} | {
|
|
1894
1904
|
type: "init";
|
|
1895
1905
|
fingerprintId: string;
|
|
@@ -1955,15 +1965,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1955
1965
|
action: z.ZodObject<{
|
|
1956
1966
|
type: z.ZodLiteral<"action">;
|
|
1957
1967
|
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1958
|
-
type: z.ZodLiteral<"read-files-response">;
|
|
1959
|
-
files: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
1960
|
-
}, "strip", z.ZodTypeAny, {
|
|
1961
|
-
type: "read-files-response";
|
|
1962
|
-
files: Record<string, string | null>;
|
|
1963
|
-
}, {
|
|
1964
|
-
type: "read-files-response";
|
|
1965
|
-
files: Record<string, string | null>;
|
|
1966
|
-
}>, z.ZodObject<{
|
|
1967
1968
|
type: z.ZodLiteral<"response-chunk">;
|
|
1968
1969
|
userInputId: z.ZodString;
|
|
1969
1970
|
chunk: z.ZodString;
|
|
@@ -1984,26 +1985,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1984
1985
|
filePath: z.ZodString;
|
|
1985
1986
|
content: z.ZodString;
|
|
1986
1987
|
}, "strip", z.ZodTypeAny, {
|
|
1987
|
-
type: "patch" | "file";
|
|
1988
|
-
filePath: string;
|
|
1989
1988
|
content: string;
|
|
1990
|
-
|
|
1991
|
-
type: "patch" | "file";
|
|
1989
|
+
type: "file" | "patch";
|
|
1992
1990
|
filePath: string;
|
|
1991
|
+
}, {
|
|
1993
1992
|
content: string;
|
|
1993
|
+
type: "file" | "patch";
|
|
1994
|
+
filePath: string;
|
|
1994
1995
|
}>, "many">;
|
|
1995
1996
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1996
1997
|
type: z.ZodEnum<["patch", "file"]>;
|
|
1997
1998
|
filePath: z.ZodString;
|
|
1998
1999
|
content: z.ZodString;
|
|
1999
2000
|
}, "strip", z.ZodTypeAny, {
|
|
2000
|
-
type: "patch" | "file";
|
|
2001
|
-
filePath: string;
|
|
2002
2001
|
content: string;
|
|
2003
|
-
|
|
2004
|
-
type: "patch" | "file";
|
|
2002
|
+
type: "file" | "patch";
|
|
2005
2003
|
filePath: string;
|
|
2004
|
+
}, {
|
|
2006
2005
|
content: string;
|
|
2006
|
+
type: "file" | "patch";
|
|
2007
|
+
filePath: string;
|
|
2007
2008
|
}>, "many">;
|
|
2008
2009
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2009
2010
|
path: z.ZodString;
|
|
@@ -2028,14 +2029,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2028
2029
|
userInputId: string;
|
|
2029
2030
|
response: string;
|
|
2030
2031
|
changes: {
|
|
2031
|
-
type: "patch" | "file";
|
|
2032
|
-
filePath: string;
|
|
2033
2032
|
content: string;
|
|
2033
|
+
type: "file" | "patch";
|
|
2034
|
+
filePath: string;
|
|
2034
2035
|
}[];
|
|
2035
2036
|
changesAlreadyApplied: {
|
|
2036
|
-
type: "patch" | "file";
|
|
2037
|
-
filePath: string;
|
|
2038
2037
|
content: string;
|
|
2038
|
+
type: "file" | "patch";
|
|
2039
|
+
filePath: string;
|
|
2039
2040
|
}[];
|
|
2040
2041
|
addedFileVersions: {
|
|
2041
2042
|
path: string;
|
|
@@ -2053,14 +2054,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2053
2054
|
userInputId: string;
|
|
2054
2055
|
response: string;
|
|
2055
2056
|
changes: {
|
|
2056
|
-
type: "patch" | "file";
|
|
2057
|
-
filePath: string;
|
|
2058
2057
|
content: string;
|
|
2058
|
+
type: "file" | "patch";
|
|
2059
|
+
filePath: string;
|
|
2059
2060
|
}[];
|
|
2060
2061
|
changesAlreadyApplied: {
|
|
2061
|
-
type: "patch" | "file";
|
|
2062
|
-
filePath: string;
|
|
2063
2062
|
content: string;
|
|
2063
|
+
type: "file" | "patch";
|
|
2064
|
+
filePath: string;
|
|
2064
2065
|
}[];
|
|
2065
2066
|
addedFileVersions: {
|
|
2066
2067
|
path: string;
|
|
@@ -2076,11 +2077,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2076
2077
|
}>, z.ZodObject<{
|
|
2077
2078
|
type: z.ZodLiteral<"read-files">;
|
|
2078
2079
|
filePaths: z.ZodArray<z.ZodString, "many">;
|
|
2080
|
+
requestId: z.ZodString;
|
|
2079
2081
|
}, "strip", z.ZodTypeAny, {
|
|
2080
2082
|
type: "read-files";
|
|
2083
|
+
requestId: string;
|
|
2081
2084
|
filePaths: string[];
|
|
2082
2085
|
}, {
|
|
2083
2086
|
type: "read-files";
|
|
2087
|
+
requestId: string;
|
|
2084
2088
|
filePaths: string[];
|
|
2085
2089
|
}>, z.ZodObject<{
|
|
2086
2090
|
type: z.ZodLiteral<"tool-call">;
|
|
@@ -2104,26 +2108,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2104
2108
|
filePath: z.ZodString;
|
|
2105
2109
|
content: z.ZodString;
|
|
2106
2110
|
}, "strip", z.ZodTypeAny, {
|
|
2107
|
-
type: "patch" | "file";
|
|
2108
|
-
filePath: string;
|
|
2109
2111
|
content: string;
|
|
2110
|
-
|
|
2111
|
-
type: "patch" | "file";
|
|
2112
|
+
type: "file" | "patch";
|
|
2112
2113
|
filePath: string;
|
|
2114
|
+
}, {
|
|
2113
2115
|
content: string;
|
|
2116
|
+
type: "file" | "patch";
|
|
2117
|
+
filePath: string;
|
|
2114
2118
|
}>, "many">;
|
|
2115
2119
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2116
2120
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2117
2121
|
filePath: z.ZodString;
|
|
2118
2122
|
content: z.ZodString;
|
|
2119
2123
|
}, "strip", z.ZodTypeAny, {
|
|
2120
|
-
type: "patch" | "file";
|
|
2121
|
-
filePath: string;
|
|
2122
2124
|
content: string;
|
|
2123
|
-
|
|
2124
|
-
type: "patch" | "file";
|
|
2125
|
+
type: "file" | "patch";
|
|
2125
2126
|
filePath: string;
|
|
2127
|
+
}, {
|
|
2126
2128
|
content: string;
|
|
2129
|
+
type: "file" | "patch";
|
|
2130
|
+
filePath: string;
|
|
2127
2131
|
}>, "many">;
|
|
2128
2132
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2129
2133
|
path: z.ZodString;
|
|
@@ -2141,14 +2145,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2141
2145
|
userInputId: string;
|
|
2142
2146
|
response: string;
|
|
2143
2147
|
changes: {
|
|
2144
|
-
type: "patch" | "file";
|
|
2145
|
-
filePath: string;
|
|
2146
2148
|
content: string;
|
|
2149
|
+
type: "file" | "patch";
|
|
2150
|
+
filePath: string;
|
|
2147
2151
|
}[];
|
|
2148
2152
|
changesAlreadyApplied: {
|
|
2149
|
-
type: "patch" | "file";
|
|
2150
|
-
filePath: string;
|
|
2151
2153
|
content: string;
|
|
2154
|
+
type: "file" | "patch";
|
|
2155
|
+
filePath: string;
|
|
2152
2156
|
}[];
|
|
2153
2157
|
addedFileVersions: {
|
|
2154
2158
|
path: string;
|
|
@@ -2165,14 +2169,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2165
2169
|
userInputId: string;
|
|
2166
2170
|
response: string;
|
|
2167
2171
|
changes: {
|
|
2168
|
-
type: "patch" | "file";
|
|
2169
|
-
filePath: string;
|
|
2170
2172
|
content: string;
|
|
2173
|
+
type: "file" | "patch";
|
|
2174
|
+
filePath: string;
|
|
2171
2175
|
}[];
|
|
2172
2176
|
changesAlreadyApplied: {
|
|
2173
|
-
type: "patch" | "file";
|
|
2174
|
-
filePath: string;
|
|
2175
2177
|
content: string;
|
|
2178
|
+
type: "file" | "patch";
|
|
2179
|
+
filePath: string;
|
|
2176
2180
|
}[];
|
|
2177
2181
|
addedFileVersions: {
|
|
2178
2182
|
path: string;
|
|
@@ -2262,11 +2266,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2262
2266
|
type: z.ZodLiteral<"action-error">;
|
|
2263
2267
|
message: z.ZodString;
|
|
2264
2268
|
}, "strip", z.ZodTypeAny, {
|
|
2265
|
-
type: "action-error";
|
|
2266
2269
|
message: string;
|
|
2267
|
-
}, {
|
|
2268
2270
|
type: "action-error";
|
|
2271
|
+
}, {
|
|
2269
2272
|
message: string;
|
|
2273
|
+
type: "action-error";
|
|
2270
2274
|
}>, z.ZodObject<{
|
|
2271
2275
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2272
2276
|
commitMessage: z.ZodString;
|
|
@@ -2300,14 +2304,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2300
2304
|
userInputId: string;
|
|
2301
2305
|
response: string;
|
|
2302
2306
|
changes: {
|
|
2303
|
-
type: "patch" | "file";
|
|
2304
|
-
filePath: string;
|
|
2305
2307
|
content: string;
|
|
2308
|
+
type: "file" | "patch";
|
|
2309
|
+
filePath: string;
|
|
2306
2310
|
}[];
|
|
2307
2311
|
changesAlreadyApplied: {
|
|
2308
|
-
type: "patch" | "file";
|
|
2309
|
-
filePath: string;
|
|
2310
2312
|
content: string;
|
|
2313
|
+
type: "file" | "patch";
|
|
2314
|
+
filePath: string;
|
|
2311
2315
|
}[];
|
|
2312
2316
|
addedFileVersions: {
|
|
2313
2317
|
path: string;
|
|
@@ -2320,29 +2324,27 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2320
2324
|
subscription_active?: boolean | undefined;
|
|
2321
2325
|
next_quota_reset?: Date | undefined;
|
|
2322
2326
|
session_credits_used?: number | undefined;
|
|
2323
|
-
} | {
|
|
2324
|
-
type: "read-files-response";
|
|
2325
|
-
files: Record<string, string | null>;
|
|
2326
2327
|
} | {
|
|
2327
2328
|
type: "response-chunk";
|
|
2328
2329
|
userInputId: string;
|
|
2329
2330
|
chunk: string;
|
|
2330
2331
|
} | {
|
|
2331
2332
|
type: "read-files";
|
|
2333
|
+
requestId: string;
|
|
2332
2334
|
filePaths: string[];
|
|
2333
2335
|
} | {
|
|
2334
2336
|
type: "tool-call";
|
|
2335
2337
|
userInputId: string;
|
|
2336
2338
|
response: string;
|
|
2337
2339
|
changes: {
|
|
2338
|
-
type: "patch" | "file";
|
|
2339
|
-
filePath: string;
|
|
2340
2340
|
content: string;
|
|
2341
|
+
type: "file" | "patch";
|
|
2342
|
+
filePath: string;
|
|
2341
2343
|
}[];
|
|
2342
2344
|
changesAlreadyApplied: {
|
|
2343
|
-
type: "patch" | "file";
|
|
2344
|
-
filePath: string;
|
|
2345
2345
|
content: string;
|
|
2346
|
+
type: "file" | "patch";
|
|
2347
|
+
filePath: string;
|
|
2346
2348
|
}[];
|
|
2347
2349
|
addedFileVersions: {
|
|
2348
2350
|
path: string;
|
|
@@ -2363,8 +2365,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2363
2365
|
isUpToDate: boolean;
|
|
2364
2366
|
latestVersion: string;
|
|
2365
2367
|
} | {
|
|
2366
|
-
type: "action-error";
|
|
2367
2368
|
message: string;
|
|
2369
|
+
type: "action-error";
|
|
2368
2370
|
} | {
|
|
2369
2371
|
type: "commit-message-response";
|
|
2370
2372
|
commitMessage: string;
|
|
@@ -2392,14 +2394,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2392
2394
|
userInputId: string;
|
|
2393
2395
|
response: string;
|
|
2394
2396
|
changes: {
|
|
2395
|
-
type: "patch" | "file";
|
|
2396
|
-
filePath: string;
|
|
2397
2397
|
content: string;
|
|
2398
|
+
type: "file" | "patch";
|
|
2399
|
+
filePath: string;
|
|
2398
2400
|
}[];
|
|
2399
2401
|
changesAlreadyApplied: {
|
|
2400
|
-
type: "patch" | "file";
|
|
2401
|
-
filePath: string;
|
|
2402
2402
|
content: string;
|
|
2403
|
+
type: "file" | "patch";
|
|
2404
|
+
filePath: string;
|
|
2403
2405
|
}[];
|
|
2404
2406
|
addedFileVersions: {
|
|
2405
2407
|
path: string;
|
|
@@ -2412,29 +2414,27 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2412
2414
|
subscription_active?: boolean | undefined;
|
|
2413
2415
|
next_quota_reset?: Date | undefined;
|
|
2414
2416
|
session_credits_used?: number | undefined;
|
|
2415
|
-
} | {
|
|
2416
|
-
type: "read-files-response";
|
|
2417
|
-
files: Record<string, string | null>;
|
|
2418
2417
|
} | {
|
|
2419
2418
|
type: "response-chunk";
|
|
2420
2419
|
userInputId: string;
|
|
2421
2420
|
chunk: string;
|
|
2422
2421
|
} | {
|
|
2423
2422
|
type: "read-files";
|
|
2423
|
+
requestId: string;
|
|
2424
2424
|
filePaths: string[];
|
|
2425
2425
|
} | {
|
|
2426
2426
|
type: "tool-call";
|
|
2427
2427
|
userInputId: string;
|
|
2428
2428
|
response: string;
|
|
2429
2429
|
changes: {
|
|
2430
|
-
type: "patch" | "file";
|
|
2431
|
-
filePath: string;
|
|
2432
2430
|
content: string;
|
|
2431
|
+
type: "file" | "patch";
|
|
2432
|
+
filePath: string;
|
|
2433
2433
|
}[];
|
|
2434
2434
|
changesAlreadyApplied: {
|
|
2435
|
-
type: "patch" | "file";
|
|
2436
|
-
filePath: string;
|
|
2437
2435
|
content: string;
|
|
2436
|
+
type: "file" | "patch";
|
|
2437
|
+
filePath: string;
|
|
2438
2438
|
}[];
|
|
2439
2439
|
addedFileVersions: {
|
|
2440
2440
|
path: string;
|
|
@@ -2455,8 +2455,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2455
2455
|
isUpToDate: boolean;
|
|
2456
2456
|
latestVersion: string;
|
|
2457
2457
|
} | {
|
|
2458
|
-
type: "action-error";
|
|
2459
2458
|
message: string;
|
|
2459
|
+
type: "action-error";
|
|
2460
2460
|
} | {
|
|
2461
2461
|
type: "commit-message-response";
|
|
2462
2462
|
commitMessage: string;
|
|
@@ -2481,15 +2481,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2481
2481
|
}>, z.ZodObject<{
|
|
2482
2482
|
type: z.ZodLiteral<"action">;
|
|
2483
2483
|
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2484
|
-
type: z.ZodLiteral<"read-files-response">;
|
|
2485
|
-
files: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
2486
|
-
}, "strip", z.ZodTypeAny, {
|
|
2487
|
-
type: "read-files-response";
|
|
2488
|
-
files: Record<string, string | null>;
|
|
2489
|
-
}, {
|
|
2490
|
-
type: "read-files-response";
|
|
2491
|
-
files: Record<string, string | null>;
|
|
2492
|
-
}>, z.ZodObject<{
|
|
2493
2484
|
type: z.ZodLiteral<"response-chunk">;
|
|
2494
2485
|
userInputId: z.ZodString;
|
|
2495
2486
|
chunk: z.ZodString;
|
|
@@ -2510,26 +2501,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2510
2501
|
filePath: z.ZodString;
|
|
2511
2502
|
content: z.ZodString;
|
|
2512
2503
|
}, "strip", z.ZodTypeAny, {
|
|
2513
|
-
type: "patch" | "file";
|
|
2514
|
-
filePath: string;
|
|
2515
2504
|
content: string;
|
|
2516
|
-
|
|
2517
|
-
type: "patch" | "file";
|
|
2505
|
+
type: "file" | "patch";
|
|
2518
2506
|
filePath: string;
|
|
2507
|
+
}, {
|
|
2519
2508
|
content: string;
|
|
2509
|
+
type: "file" | "patch";
|
|
2510
|
+
filePath: string;
|
|
2520
2511
|
}>, "many">;
|
|
2521
2512
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2522
2513
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2523
2514
|
filePath: z.ZodString;
|
|
2524
2515
|
content: z.ZodString;
|
|
2525
2516
|
}, "strip", z.ZodTypeAny, {
|
|
2526
|
-
type: "patch" | "file";
|
|
2527
|
-
filePath: string;
|
|
2528
2517
|
content: string;
|
|
2529
|
-
|
|
2530
|
-
type: "patch" | "file";
|
|
2518
|
+
type: "file" | "patch";
|
|
2531
2519
|
filePath: string;
|
|
2520
|
+
}, {
|
|
2532
2521
|
content: string;
|
|
2522
|
+
type: "file" | "patch";
|
|
2523
|
+
filePath: string;
|
|
2533
2524
|
}>, "many">;
|
|
2534
2525
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2535
2526
|
path: z.ZodString;
|
|
@@ -2554,14 +2545,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2554
2545
|
userInputId: string;
|
|
2555
2546
|
response: string;
|
|
2556
2547
|
changes: {
|
|
2557
|
-
type: "patch" | "file";
|
|
2558
|
-
filePath: string;
|
|
2559
2548
|
content: string;
|
|
2549
|
+
type: "file" | "patch";
|
|
2550
|
+
filePath: string;
|
|
2560
2551
|
}[];
|
|
2561
2552
|
changesAlreadyApplied: {
|
|
2562
|
-
type: "patch" | "file";
|
|
2563
|
-
filePath: string;
|
|
2564
2553
|
content: string;
|
|
2554
|
+
type: "file" | "patch";
|
|
2555
|
+
filePath: string;
|
|
2565
2556
|
}[];
|
|
2566
2557
|
addedFileVersions: {
|
|
2567
2558
|
path: string;
|
|
@@ -2579,14 +2570,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2579
2570
|
userInputId: string;
|
|
2580
2571
|
response: string;
|
|
2581
2572
|
changes: {
|
|
2582
|
-
type: "patch" | "file";
|
|
2583
|
-
filePath: string;
|
|
2584
2573
|
content: string;
|
|
2574
|
+
type: "file" | "patch";
|
|
2575
|
+
filePath: string;
|
|
2585
2576
|
}[];
|
|
2586
2577
|
changesAlreadyApplied: {
|
|
2587
|
-
type: "patch" | "file";
|
|
2588
|
-
filePath: string;
|
|
2589
2578
|
content: string;
|
|
2579
|
+
type: "file" | "patch";
|
|
2580
|
+
filePath: string;
|
|
2590
2581
|
}[];
|
|
2591
2582
|
addedFileVersions: {
|
|
2592
2583
|
path: string;
|
|
@@ -2602,11 +2593,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2602
2593
|
}>, z.ZodObject<{
|
|
2603
2594
|
type: z.ZodLiteral<"read-files">;
|
|
2604
2595
|
filePaths: z.ZodArray<z.ZodString, "many">;
|
|
2596
|
+
requestId: z.ZodString;
|
|
2605
2597
|
}, "strip", z.ZodTypeAny, {
|
|
2606
2598
|
type: "read-files";
|
|
2599
|
+
requestId: string;
|
|
2607
2600
|
filePaths: string[];
|
|
2608
2601
|
}, {
|
|
2609
2602
|
type: "read-files";
|
|
2603
|
+
requestId: string;
|
|
2610
2604
|
filePaths: string[];
|
|
2611
2605
|
}>, z.ZodObject<{
|
|
2612
2606
|
type: z.ZodLiteral<"tool-call">;
|
|
@@ -2630,26 +2624,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2630
2624
|
filePath: z.ZodString;
|
|
2631
2625
|
content: z.ZodString;
|
|
2632
2626
|
}, "strip", z.ZodTypeAny, {
|
|
2633
|
-
type: "patch" | "file";
|
|
2634
|
-
filePath: string;
|
|
2635
2627
|
content: string;
|
|
2636
|
-
|
|
2637
|
-
type: "patch" | "file";
|
|
2628
|
+
type: "file" | "patch";
|
|
2638
2629
|
filePath: string;
|
|
2630
|
+
}, {
|
|
2639
2631
|
content: string;
|
|
2632
|
+
type: "file" | "patch";
|
|
2633
|
+
filePath: string;
|
|
2640
2634
|
}>, "many">;
|
|
2641
2635
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2642
2636
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2643
2637
|
filePath: z.ZodString;
|
|
2644
2638
|
content: z.ZodString;
|
|
2645
2639
|
}, "strip", z.ZodTypeAny, {
|
|
2646
|
-
type: "patch" | "file";
|
|
2647
|
-
filePath: string;
|
|
2648
2640
|
content: string;
|
|
2649
|
-
|
|
2650
|
-
type: "patch" | "file";
|
|
2641
|
+
type: "file" | "patch";
|
|
2651
2642
|
filePath: string;
|
|
2643
|
+
}, {
|
|
2652
2644
|
content: string;
|
|
2645
|
+
type: "file" | "patch";
|
|
2646
|
+
filePath: string;
|
|
2653
2647
|
}>, "many">;
|
|
2654
2648
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2655
2649
|
path: z.ZodString;
|
|
@@ -2667,14 +2661,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2667
2661
|
userInputId: string;
|
|
2668
2662
|
response: string;
|
|
2669
2663
|
changes: {
|
|
2670
|
-
type: "patch" | "file";
|
|
2671
|
-
filePath: string;
|
|
2672
2664
|
content: string;
|
|
2665
|
+
type: "file" | "patch";
|
|
2666
|
+
filePath: string;
|
|
2673
2667
|
}[];
|
|
2674
2668
|
changesAlreadyApplied: {
|
|
2675
|
-
type: "patch" | "file";
|
|
2676
|
-
filePath: string;
|
|
2677
2669
|
content: string;
|
|
2670
|
+
type: "file" | "patch";
|
|
2671
|
+
filePath: string;
|
|
2678
2672
|
}[];
|
|
2679
2673
|
addedFileVersions: {
|
|
2680
2674
|
path: string;
|
|
@@ -2691,14 +2685,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2691
2685
|
userInputId: string;
|
|
2692
2686
|
response: string;
|
|
2693
2687
|
changes: {
|
|
2694
|
-
type: "patch" | "file";
|
|
2695
|
-
filePath: string;
|
|
2696
2688
|
content: string;
|
|
2689
|
+
type: "file" | "patch";
|
|
2690
|
+
filePath: string;
|
|
2697
2691
|
}[];
|
|
2698
2692
|
changesAlreadyApplied: {
|
|
2699
|
-
type: "patch" | "file";
|
|
2700
|
-
filePath: string;
|
|
2701
2693
|
content: string;
|
|
2694
|
+
type: "file" | "patch";
|
|
2695
|
+
filePath: string;
|
|
2702
2696
|
}[];
|
|
2703
2697
|
addedFileVersions: {
|
|
2704
2698
|
path: string;
|
|
@@ -2788,11 +2782,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2788
2782
|
type: z.ZodLiteral<"action-error">;
|
|
2789
2783
|
message: z.ZodString;
|
|
2790
2784
|
}, "strip", z.ZodTypeAny, {
|
|
2791
|
-
type: "action-error";
|
|
2792
2785
|
message: string;
|
|
2793
|
-
}, {
|
|
2794
2786
|
type: "action-error";
|
|
2787
|
+
}, {
|
|
2795
2788
|
message: string;
|
|
2789
|
+
type: "action-error";
|
|
2796
2790
|
}>, z.ZodObject<{
|
|
2797
2791
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2798
2792
|
commitMessage: z.ZodString;
|
|
@@ -2826,14 +2820,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2826
2820
|
userInputId: string;
|
|
2827
2821
|
response: string;
|
|
2828
2822
|
changes: {
|
|
2829
|
-
type: "patch" | "file";
|
|
2830
|
-
filePath: string;
|
|
2831
2823
|
content: string;
|
|
2824
|
+
type: "file" | "patch";
|
|
2825
|
+
filePath: string;
|
|
2832
2826
|
}[];
|
|
2833
2827
|
changesAlreadyApplied: {
|
|
2834
|
-
type: "patch" | "file";
|
|
2835
|
-
filePath: string;
|
|
2836
2828
|
content: string;
|
|
2829
|
+
type: "file" | "patch";
|
|
2830
|
+
filePath: string;
|
|
2837
2831
|
}[];
|
|
2838
2832
|
addedFileVersions: {
|
|
2839
2833
|
path: string;
|
|
@@ -2846,29 +2840,27 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2846
2840
|
subscription_active?: boolean | undefined;
|
|
2847
2841
|
next_quota_reset?: Date | undefined;
|
|
2848
2842
|
session_credits_used?: number | undefined;
|
|
2849
|
-
} | {
|
|
2850
|
-
type: "read-files-response";
|
|
2851
|
-
files: Record<string, string | null>;
|
|
2852
2843
|
} | {
|
|
2853
2844
|
type: "response-chunk";
|
|
2854
2845
|
userInputId: string;
|
|
2855
2846
|
chunk: string;
|
|
2856
2847
|
} | {
|
|
2857
2848
|
type: "read-files";
|
|
2849
|
+
requestId: string;
|
|
2858
2850
|
filePaths: string[];
|
|
2859
2851
|
} | {
|
|
2860
2852
|
type: "tool-call";
|
|
2861
2853
|
userInputId: string;
|
|
2862
2854
|
response: string;
|
|
2863
2855
|
changes: {
|
|
2864
|
-
type: "patch" | "file";
|
|
2865
|
-
filePath: string;
|
|
2866
2856
|
content: string;
|
|
2857
|
+
type: "file" | "patch";
|
|
2858
|
+
filePath: string;
|
|
2867
2859
|
}[];
|
|
2868
2860
|
changesAlreadyApplied: {
|
|
2869
|
-
type: "patch" | "file";
|
|
2870
|
-
filePath: string;
|
|
2871
2861
|
content: string;
|
|
2862
|
+
type: "file" | "patch";
|
|
2863
|
+
filePath: string;
|
|
2872
2864
|
}[];
|
|
2873
2865
|
addedFileVersions: {
|
|
2874
2866
|
path: string;
|
|
@@ -2889,8 +2881,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2889
2881
|
isUpToDate: boolean;
|
|
2890
2882
|
latestVersion: string;
|
|
2891
2883
|
} | {
|
|
2892
|
-
type: "action-error";
|
|
2893
2884
|
message: string;
|
|
2885
|
+
type: "action-error";
|
|
2894
2886
|
} | {
|
|
2895
2887
|
type: "commit-message-response";
|
|
2896
2888
|
commitMessage: string;
|
|
@@ -2918,14 +2910,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2918
2910
|
userInputId: string;
|
|
2919
2911
|
response: string;
|
|
2920
2912
|
changes: {
|
|
2921
|
-
type: "patch" | "file";
|
|
2922
|
-
filePath: string;
|
|
2923
2913
|
content: string;
|
|
2914
|
+
type: "file" | "patch";
|
|
2915
|
+
filePath: string;
|
|
2924
2916
|
}[];
|
|
2925
2917
|
changesAlreadyApplied: {
|
|
2926
|
-
type: "patch" | "file";
|
|
2927
|
-
filePath: string;
|
|
2928
2918
|
content: string;
|
|
2919
|
+
type: "file" | "patch";
|
|
2920
|
+
filePath: string;
|
|
2929
2921
|
}[];
|
|
2930
2922
|
addedFileVersions: {
|
|
2931
2923
|
path: string;
|
|
@@ -2938,29 +2930,27 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2938
2930
|
subscription_active?: boolean | undefined;
|
|
2939
2931
|
next_quota_reset?: Date | undefined;
|
|
2940
2932
|
session_credits_used?: number | undefined;
|
|
2941
|
-
} | {
|
|
2942
|
-
type: "read-files-response";
|
|
2943
|
-
files: Record<string, string | null>;
|
|
2944
2933
|
} | {
|
|
2945
2934
|
type: "response-chunk";
|
|
2946
2935
|
userInputId: string;
|
|
2947
2936
|
chunk: string;
|
|
2948
2937
|
} | {
|
|
2949
2938
|
type: "read-files";
|
|
2939
|
+
requestId: string;
|
|
2950
2940
|
filePaths: string[];
|
|
2951
2941
|
} | {
|
|
2952
2942
|
type: "tool-call";
|
|
2953
2943
|
userInputId: string;
|
|
2954
2944
|
response: string;
|
|
2955
2945
|
changes: {
|
|
2956
|
-
type: "patch" | "file";
|
|
2957
|
-
filePath: string;
|
|
2958
2946
|
content: string;
|
|
2947
|
+
type: "file" | "patch";
|
|
2948
|
+
filePath: string;
|
|
2959
2949
|
}[];
|
|
2960
2950
|
changesAlreadyApplied: {
|
|
2961
|
-
type: "patch" | "file";
|
|
2962
|
-
filePath: string;
|
|
2963
2951
|
content: string;
|
|
2952
|
+
type: "file" | "patch";
|
|
2953
|
+
filePath: string;
|
|
2964
2954
|
}[];
|
|
2965
2955
|
addedFileVersions: {
|
|
2966
2956
|
path: string;
|
|
@@ -2981,8 +2971,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2981
2971
|
isUpToDate: boolean;
|
|
2982
2972
|
latestVersion: string;
|
|
2983
2973
|
} | {
|
|
2984
|
-
type: "action-error";
|
|
2985
2974
|
message: string;
|
|
2975
|
+
type: "action-error";
|
|
2986
2976
|
} | {
|
|
2987
2977
|
type: "commit-message-response";
|
|
2988
2978
|
commitMessage: string;
|