codebuff 1.0.192 → 1.0.193
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/client.d.ts +1 -1
- package/dist/common/actions.d.ts +64 -64
- package/dist/common/types/agent-state.d.ts +4 -4
- package/dist/common/websockets/websocket-client.js +6 -1
- package/dist/common/websockets/websocket-client.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +192 -192
- package/dist/utils/terminal.js +0 -2
- package/dist/utils/terminal.js.map +1 -1
- package/package.json +1 -1
|
@@ -121,15 +121,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
121
121
|
type: "ephemeral";
|
|
122
122
|
}>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
type: "tool_result";
|
|
125
124
|
content: string;
|
|
125
|
+
type: "tool_result";
|
|
126
126
|
tool_use_id: string;
|
|
127
127
|
cache_control?: {
|
|
128
128
|
type: "ephemeral";
|
|
129
129
|
} | undefined;
|
|
130
130
|
}, {
|
|
131
|
-
type: "tool_result";
|
|
132
131
|
content: string;
|
|
132
|
+
type: "tool_result";
|
|
133
133
|
tool_use_id: string;
|
|
134
134
|
cache_control?: {
|
|
135
135
|
type: "ephemeral";
|
|
@@ -193,8 +193,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
193
193
|
type: "ephemeral";
|
|
194
194
|
} | undefined;
|
|
195
195
|
} | {
|
|
196
|
-
type: "tool_result";
|
|
197
196
|
content: string;
|
|
197
|
+
type: "tool_result";
|
|
198
198
|
tool_use_id: string;
|
|
199
199
|
cache_control?: {
|
|
200
200
|
type: "ephemeral";
|
|
@@ -227,8 +227,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
227
227
|
type: "ephemeral";
|
|
228
228
|
} | undefined;
|
|
229
229
|
} | {
|
|
230
|
-
type: "tool_result";
|
|
231
230
|
content: string;
|
|
231
|
+
type: "tool_result";
|
|
232
232
|
tool_use_id: string;
|
|
233
233
|
cache_control?: {
|
|
234
234
|
type: "ephemeral";
|
|
@@ -360,13 +360,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
360
360
|
path: z.ZodString;
|
|
361
361
|
content: z.ZodString;
|
|
362
362
|
}, "strip", z.ZodTypeAny, {
|
|
363
|
-
type: "patch" | "file";
|
|
364
363
|
path: string;
|
|
365
364
|
content: string;
|
|
365
|
+
type: "file" | "patch";
|
|
366
366
|
}, {
|
|
367
|
-
type: "patch" | "file";
|
|
368
367
|
path: string;
|
|
369
368
|
content: string;
|
|
369
|
+
type: "file" | "patch";
|
|
370
370
|
}>, "many">;
|
|
371
371
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
372
372
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -389,8 +389,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
389
389
|
type: "ephemeral";
|
|
390
390
|
} | undefined;
|
|
391
391
|
} | {
|
|
392
|
-
type: "tool_result";
|
|
393
392
|
content: string;
|
|
393
|
+
type: "tool_result";
|
|
394
394
|
tool_use_id: string;
|
|
395
395
|
cache_control?: {
|
|
396
396
|
type: "ephemeral";
|
|
@@ -436,9 +436,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
436
436
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
437
437
|
};
|
|
438
438
|
changesAlreadyApplied: {
|
|
439
|
-
type: "patch" | "file";
|
|
440
439
|
path: string;
|
|
441
440
|
content: string;
|
|
441
|
+
type: "file" | "patch";
|
|
442
442
|
}[];
|
|
443
443
|
costMode: "max" | "lite" | "normal";
|
|
444
444
|
authToken?: string | undefined;
|
|
@@ -462,8 +462,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
462
462
|
type: "ephemeral";
|
|
463
463
|
} | undefined;
|
|
464
464
|
} | {
|
|
465
|
-
type: "tool_result";
|
|
466
465
|
content: string;
|
|
466
|
+
type: "tool_result";
|
|
467
467
|
tool_use_id: string;
|
|
468
468
|
cache_control?: {
|
|
469
469
|
type: "ephemeral";
|
|
@@ -509,9 +509,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
509
509
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
510
510
|
};
|
|
511
511
|
changesAlreadyApplied: {
|
|
512
|
-
type: "patch" | "file";
|
|
513
512
|
path: string;
|
|
514
513
|
content: string;
|
|
514
|
+
type: "file" | "patch";
|
|
515
515
|
}[];
|
|
516
516
|
authToken?: string | undefined;
|
|
517
517
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
@@ -697,15 +697,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
697
697
|
type: "ephemeral";
|
|
698
698
|
}>>;
|
|
699
699
|
}, "strip", z.ZodTypeAny, {
|
|
700
|
-
type: "tool_result";
|
|
701
700
|
content: string;
|
|
701
|
+
type: "tool_result";
|
|
702
702
|
tool_use_id: string;
|
|
703
703
|
cache_control?: {
|
|
704
704
|
type: "ephemeral";
|
|
705
705
|
} | undefined;
|
|
706
706
|
}, {
|
|
707
|
-
type: "tool_result";
|
|
708
707
|
content: string;
|
|
708
|
+
type: "tool_result";
|
|
709
709
|
tool_use_id: string;
|
|
710
710
|
cache_control?: {
|
|
711
711
|
type: "ephemeral";
|
|
@@ -769,8 +769,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
769
769
|
type: "ephemeral";
|
|
770
770
|
} | undefined;
|
|
771
771
|
} | {
|
|
772
|
-
type: "tool_result";
|
|
773
772
|
content: string;
|
|
773
|
+
type: "tool_result";
|
|
774
774
|
tool_use_id: string;
|
|
775
775
|
cache_control?: {
|
|
776
776
|
type: "ephemeral";
|
|
@@ -803,8 +803,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
803
803
|
type: "ephemeral";
|
|
804
804
|
} | undefined;
|
|
805
805
|
} | {
|
|
806
|
-
type: "tool_result";
|
|
807
806
|
content: string;
|
|
807
|
+
type: "tool_result";
|
|
808
808
|
tool_use_id: string;
|
|
809
809
|
cache_control?: {
|
|
810
810
|
type: "ephemeral";
|
|
@@ -867,8 +867,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
867
867
|
type: "ephemeral";
|
|
868
868
|
} | undefined;
|
|
869
869
|
} | {
|
|
870
|
-
type: "tool_result";
|
|
871
870
|
content: string;
|
|
871
|
+
type: "tool_result";
|
|
872
872
|
tool_use_id: string;
|
|
873
873
|
cache_control?: {
|
|
874
874
|
type: "ephemeral";
|
|
@@ -931,8 +931,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
931
931
|
type: "ephemeral";
|
|
932
932
|
} | undefined;
|
|
933
933
|
} | {
|
|
934
|
-
type: "tool_result";
|
|
935
934
|
content: string;
|
|
935
|
+
type: "tool_result";
|
|
936
936
|
tool_use_id: string;
|
|
937
937
|
cache_control?: {
|
|
938
938
|
type: "ephemeral";
|
|
@@ -1014,8 +1014,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1014
1014
|
type: "ephemeral";
|
|
1015
1015
|
} | undefined;
|
|
1016
1016
|
} | {
|
|
1017
|
-
type: "tool_result";
|
|
1018
1017
|
content: string;
|
|
1018
|
+
type: "tool_result";
|
|
1019
1019
|
tool_use_id: string;
|
|
1020
1020
|
cache_control?: {
|
|
1021
1021
|
type: "ephemeral";
|
|
@@ -1090,8 +1090,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1090
1090
|
type: "ephemeral";
|
|
1091
1091
|
} | undefined;
|
|
1092
1092
|
} | {
|
|
1093
|
-
type: "tool_result";
|
|
1094
1093
|
content: string;
|
|
1094
|
+
type: "tool_result";
|
|
1095
1095
|
tool_use_id: string;
|
|
1096
1096
|
cache_control?: {
|
|
1097
1097
|
type: "ephemeral";
|
|
@@ -1323,6 +1323,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1323
1323
|
}>]>;
|
|
1324
1324
|
}, "strip", z.ZodTypeAny, {
|
|
1325
1325
|
type: "action";
|
|
1326
|
+
txid: number;
|
|
1326
1327
|
data: {
|
|
1327
1328
|
type: "user-input";
|
|
1328
1329
|
fingerprintId: string;
|
|
@@ -1343,8 +1344,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1343
1344
|
type: "ephemeral";
|
|
1344
1345
|
} | undefined;
|
|
1345
1346
|
} | {
|
|
1346
|
-
type: "tool_result";
|
|
1347
1347
|
content: string;
|
|
1348
|
+
type: "tool_result";
|
|
1348
1349
|
tool_use_id: string;
|
|
1349
1350
|
cache_control?: {
|
|
1350
1351
|
type: "ephemeral";
|
|
@@ -1390,9 +1391,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1390
1391
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1391
1392
|
};
|
|
1392
1393
|
changesAlreadyApplied: {
|
|
1393
|
-
type: "patch" | "file";
|
|
1394
1394
|
path: string;
|
|
1395
1395
|
content: string;
|
|
1396
|
+
type: "file" | "patch";
|
|
1396
1397
|
}[];
|
|
1397
1398
|
costMode: "max" | "lite" | "normal";
|
|
1398
1399
|
authToken?: string | undefined;
|
|
@@ -1446,8 +1447,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1446
1447
|
type: "ephemeral";
|
|
1447
1448
|
} | undefined;
|
|
1448
1449
|
} | {
|
|
1449
|
-
type: "tool_result";
|
|
1450
1450
|
content: string;
|
|
1451
|
+
type: "tool_result";
|
|
1451
1452
|
tool_use_id: string;
|
|
1452
1453
|
cache_control?: {
|
|
1453
1454
|
type: "ephemeral";
|
|
@@ -1514,9 +1515,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1514
1515
|
stagedChanges: string;
|
|
1515
1516
|
authToken?: string | undefined;
|
|
1516
1517
|
};
|
|
1517
|
-
txid: number;
|
|
1518
1518
|
}, {
|
|
1519
1519
|
type: "action";
|
|
1520
|
+
txid: number;
|
|
1520
1521
|
data: {
|
|
1521
1522
|
type: "user-input";
|
|
1522
1523
|
fingerprintId: string;
|
|
@@ -1537,8 +1538,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1537
1538
|
type: "ephemeral";
|
|
1538
1539
|
} | undefined;
|
|
1539
1540
|
} | {
|
|
1540
|
-
type: "tool_result";
|
|
1541
1541
|
content: string;
|
|
1542
|
+
type: "tool_result";
|
|
1542
1543
|
tool_use_id: string;
|
|
1543
1544
|
cache_control?: {
|
|
1544
1545
|
type: "ephemeral";
|
|
@@ -1584,9 +1585,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1584
1585
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1585
1586
|
};
|
|
1586
1587
|
changesAlreadyApplied: {
|
|
1587
|
-
type: "patch" | "file";
|
|
1588
1588
|
path: string;
|
|
1589
1589
|
content: string;
|
|
1590
|
+
type: "file" | "patch";
|
|
1590
1591
|
}[];
|
|
1591
1592
|
authToken?: string | undefined;
|
|
1592
1593
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
@@ -1639,8 +1640,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1639
1640
|
type: "ephemeral";
|
|
1640
1641
|
} | undefined;
|
|
1641
1642
|
} | {
|
|
1642
|
-
type: "tool_result";
|
|
1643
1643
|
content: string;
|
|
1644
|
+
type: "tool_result";
|
|
1644
1645
|
tool_use_id: string;
|
|
1645
1646
|
cache_control?: {
|
|
1646
1647
|
type: "ephemeral";
|
|
@@ -1708,7 +1709,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1708
1709
|
stagedChanges: string;
|
|
1709
1710
|
authToken?: string | undefined;
|
|
1710
1711
|
};
|
|
1711
|
-
txid: number;
|
|
1712
1712
|
}>;
|
|
1713
1713
|
};
|
|
1714
1714
|
export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
@@ -1828,15 +1828,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1828
1828
|
type: "ephemeral";
|
|
1829
1829
|
}>>;
|
|
1830
1830
|
}, "strip", z.ZodTypeAny, {
|
|
1831
|
-
type: "tool_result";
|
|
1832
1831
|
content: string;
|
|
1832
|
+
type: "tool_result";
|
|
1833
1833
|
tool_use_id: string;
|
|
1834
1834
|
cache_control?: {
|
|
1835
1835
|
type: "ephemeral";
|
|
1836
1836
|
} | undefined;
|
|
1837
1837
|
}, {
|
|
1838
|
-
type: "tool_result";
|
|
1839
1838
|
content: string;
|
|
1839
|
+
type: "tool_result";
|
|
1840
1840
|
tool_use_id: string;
|
|
1841
1841
|
cache_control?: {
|
|
1842
1842
|
type: "ephemeral";
|
|
@@ -1900,8 +1900,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1900
1900
|
type: "ephemeral";
|
|
1901
1901
|
} | undefined;
|
|
1902
1902
|
} | {
|
|
1903
|
-
type: "tool_result";
|
|
1904
1903
|
content: string;
|
|
1904
|
+
type: "tool_result";
|
|
1905
1905
|
tool_use_id: string;
|
|
1906
1906
|
cache_control?: {
|
|
1907
1907
|
type: "ephemeral";
|
|
@@ -1934,8 +1934,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1934
1934
|
type: "ephemeral";
|
|
1935
1935
|
} | undefined;
|
|
1936
1936
|
} | {
|
|
1937
|
-
type: "tool_result";
|
|
1938
1937
|
content: string;
|
|
1938
|
+
type: "tool_result";
|
|
1939
1939
|
tool_use_id: string;
|
|
1940
1940
|
cache_control?: {
|
|
1941
1941
|
type: "ephemeral";
|
|
@@ -2067,13 +2067,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2067
2067
|
path: z.ZodString;
|
|
2068
2068
|
content: z.ZodString;
|
|
2069
2069
|
}, "strip", z.ZodTypeAny, {
|
|
2070
|
-
type: "patch" | "file";
|
|
2071
2070
|
path: string;
|
|
2072
2071
|
content: string;
|
|
2072
|
+
type: "file" | "patch";
|
|
2073
2073
|
}, {
|
|
2074
|
-
type: "patch" | "file";
|
|
2075
2074
|
path: string;
|
|
2076
2075
|
content: string;
|
|
2076
|
+
type: "file" | "patch";
|
|
2077
2077
|
}>, "many">;
|
|
2078
2078
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
2079
2079
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2096,8 +2096,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2096
2096
|
type: "ephemeral";
|
|
2097
2097
|
} | undefined;
|
|
2098
2098
|
} | {
|
|
2099
|
-
type: "tool_result";
|
|
2100
2099
|
content: string;
|
|
2100
|
+
type: "tool_result";
|
|
2101
2101
|
tool_use_id: string;
|
|
2102
2102
|
cache_control?: {
|
|
2103
2103
|
type: "ephemeral";
|
|
@@ -2143,9 +2143,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2143
2143
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2144
2144
|
};
|
|
2145
2145
|
changesAlreadyApplied: {
|
|
2146
|
-
type: "patch" | "file";
|
|
2147
2146
|
path: string;
|
|
2148
2147
|
content: string;
|
|
2148
|
+
type: "file" | "patch";
|
|
2149
2149
|
}[];
|
|
2150
2150
|
costMode: "max" | "lite" | "normal";
|
|
2151
2151
|
authToken?: string | undefined;
|
|
@@ -2169,8 +2169,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2169
2169
|
type: "ephemeral";
|
|
2170
2170
|
} | undefined;
|
|
2171
2171
|
} | {
|
|
2172
|
-
type: "tool_result";
|
|
2173
2172
|
content: string;
|
|
2173
|
+
type: "tool_result";
|
|
2174
2174
|
tool_use_id: string;
|
|
2175
2175
|
cache_control?: {
|
|
2176
2176
|
type: "ephemeral";
|
|
@@ -2216,9 +2216,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2216
2216
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2217
2217
|
};
|
|
2218
2218
|
changesAlreadyApplied: {
|
|
2219
|
-
type: "patch" | "file";
|
|
2220
2219
|
path: string;
|
|
2221
2220
|
content: string;
|
|
2221
|
+
type: "file" | "patch";
|
|
2222
2222
|
}[];
|
|
2223
2223
|
authToken?: string | undefined;
|
|
2224
2224
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
@@ -2404,15 +2404,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2404
2404
|
type: "ephemeral";
|
|
2405
2405
|
}>>;
|
|
2406
2406
|
}, "strip", z.ZodTypeAny, {
|
|
2407
|
-
type: "tool_result";
|
|
2408
2407
|
content: string;
|
|
2408
|
+
type: "tool_result";
|
|
2409
2409
|
tool_use_id: string;
|
|
2410
2410
|
cache_control?: {
|
|
2411
2411
|
type: "ephemeral";
|
|
2412
2412
|
} | undefined;
|
|
2413
2413
|
}, {
|
|
2414
|
-
type: "tool_result";
|
|
2415
2414
|
content: string;
|
|
2415
|
+
type: "tool_result";
|
|
2416
2416
|
tool_use_id: string;
|
|
2417
2417
|
cache_control?: {
|
|
2418
2418
|
type: "ephemeral";
|
|
@@ -2476,8 +2476,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2476
2476
|
type: "ephemeral";
|
|
2477
2477
|
} | undefined;
|
|
2478
2478
|
} | {
|
|
2479
|
-
type: "tool_result";
|
|
2480
2479
|
content: string;
|
|
2480
|
+
type: "tool_result";
|
|
2481
2481
|
tool_use_id: string;
|
|
2482
2482
|
cache_control?: {
|
|
2483
2483
|
type: "ephemeral";
|
|
@@ -2510,8 +2510,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2510
2510
|
type: "ephemeral";
|
|
2511
2511
|
} | undefined;
|
|
2512
2512
|
} | {
|
|
2513
|
-
type: "tool_result";
|
|
2514
2513
|
content: string;
|
|
2514
|
+
type: "tool_result";
|
|
2515
2515
|
tool_use_id: string;
|
|
2516
2516
|
cache_control?: {
|
|
2517
2517
|
type: "ephemeral";
|
|
@@ -2574,8 +2574,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2574
2574
|
type: "ephemeral";
|
|
2575
2575
|
} | undefined;
|
|
2576
2576
|
} | {
|
|
2577
|
-
type: "tool_result";
|
|
2578
2577
|
content: string;
|
|
2578
|
+
type: "tool_result";
|
|
2579
2579
|
tool_use_id: string;
|
|
2580
2580
|
cache_control?: {
|
|
2581
2581
|
type: "ephemeral";
|
|
@@ -2638,8 +2638,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2638
2638
|
type: "ephemeral";
|
|
2639
2639
|
} | undefined;
|
|
2640
2640
|
} | {
|
|
2641
|
-
type: "tool_result";
|
|
2642
2641
|
content: string;
|
|
2642
|
+
type: "tool_result";
|
|
2643
2643
|
tool_use_id: string;
|
|
2644
2644
|
cache_control?: {
|
|
2645
2645
|
type: "ephemeral";
|
|
@@ -2721,8 +2721,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2721
2721
|
type: "ephemeral";
|
|
2722
2722
|
} | undefined;
|
|
2723
2723
|
} | {
|
|
2724
|
-
type: "tool_result";
|
|
2725
2724
|
content: string;
|
|
2725
|
+
type: "tool_result";
|
|
2726
2726
|
tool_use_id: string;
|
|
2727
2727
|
cache_control?: {
|
|
2728
2728
|
type: "ephemeral";
|
|
@@ -2797,8 +2797,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2797
2797
|
type: "ephemeral";
|
|
2798
2798
|
} | undefined;
|
|
2799
2799
|
} | {
|
|
2800
|
-
type: "tool_result";
|
|
2801
2800
|
content: string;
|
|
2801
|
+
type: "tool_result";
|
|
2802
2802
|
tool_use_id: string;
|
|
2803
2803
|
cache_control?: {
|
|
2804
2804
|
type: "ephemeral";
|
|
@@ -3030,6 +3030,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3030
3030
|
}>]>;
|
|
3031
3031
|
}, "strip", z.ZodTypeAny, {
|
|
3032
3032
|
type: "action";
|
|
3033
|
+
txid: number;
|
|
3033
3034
|
data: {
|
|
3034
3035
|
type: "user-input";
|
|
3035
3036
|
fingerprintId: string;
|
|
@@ -3050,8 +3051,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3050
3051
|
type: "ephemeral";
|
|
3051
3052
|
} | undefined;
|
|
3052
3053
|
} | {
|
|
3053
|
-
type: "tool_result";
|
|
3054
3054
|
content: string;
|
|
3055
|
+
type: "tool_result";
|
|
3055
3056
|
tool_use_id: string;
|
|
3056
3057
|
cache_control?: {
|
|
3057
3058
|
type: "ephemeral";
|
|
@@ -3097,9 +3098,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3097
3098
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3098
3099
|
};
|
|
3099
3100
|
changesAlreadyApplied: {
|
|
3100
|
-
type: "patch" | "file";
|
|
3101
3101
|
path: string;
|
|
3102
3102
|
content: string;
|
|
3103
|
+
type: "file" | "patch";
|
|
3103
3104
|
}[];
|
|
3104
3105
|
costMode: "max" | "lite" | "normal";
|
|
3105
3106
|
authToken?: string | undefined;
|
|
@@ -3153,8 +3154,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3153
3154
|
type: "ephemeral";
|
|
3154
3155
|
} | undefined;
|
|
3155
3156
|
} | {
|
|
3156
|
-
type: "tool_result";
|
|
3157
3157
|
content: string;
|
|
3158
|
+
type: "tool_result";
|
|
3158
3159
|
tool_use_id: string;
|
|
3159
3160
|
cache_control?: {
|
|
3160
3161
|
type: "ephemeral";
|
|
@@ -3221,9 +3222,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3221
3222
|
stagedChanges: string;
|
|
3222
3223
|
authToken?: string | undefined;
|
|
3223
3224
|
};
|
|
3224
|
-
txid: number;
|
|
3225
3225
|
}, {
|
|
3226
3226
|
type: "action";
|
|
3227
|
+
txid: number;
|
|
3227
3228
|
data: {
|
|
3228
3229
|
type: "user-input";
|
|
3229
3230
|
fingerprintId: string;
|
|
@@ -3244,8 +3245,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3244
3245
|
type: "ephemeral";
|
|
3245
3246
|
} | undefined;
|
|
3246
3247
|
} | {
|
|
3247
|
-
type: "tool_result";
|
|
3248
3248
|
content: string;
|
|
3249
|
+
type: "tool_result";
|
|
3249
3250
|
tool_use_id: string;
|
|
3250
3251
|
cache_control?: {
|
|
3251
3252
|
type: "ephemeral";
|
|
@@ -3291,9 +3292,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3291
3292
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3292
3293
|
};
|
|
3293
3294
|
changesAlreadyApplied: {
|
|
3294
|
-
type: "patch" | "file";
|
|
3295
3295
|
path: string;
|
|
3296
3296
|
content: string;
|
|
3297
|
+
type: "file" | "patch";
|
|
3297
3298
|
}[];
|
|
3298
3299
|
authToken?: string | undefined;
|
|
3299
3300
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
@@ -3346,8 +3347,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3346
3347
|
type: "ephemeral";
|
|
3347
3348
|
} | undefined;
|
|
3348
3349
|
} | {
|
|
3349
|
-
type: "tool_result";
|
|
3350
3350
|
content: string;
|
|
3351
|
+
type: "tool_result";
|
|
3351
3352
|
tool_use_id: string;
|
|
3352
3353
|
cache_control?: {
|
|
3353
3354
|
type: "ephemeral";
|
|
@@ -3415,7 +3416,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3415
3416
|
stagedChanges: string;
|
|
3416
3417
|
authToken?: string | undefined;
|
|
3417
3418
|
};
|
|
3418
|
-
txid: number;
|
|
3419
3419
|
}>]>;
|
|
3420
3420
|
export type ClientMessageType = keyof typeof CLIENT_MESSAGE_SCHEMAS;
|
|
3421
3421
|
export type ClientMessage<T extends ClientMessageType = ClientMessageType> = z.infer<(typeof CLIENT_MESSAGE_SCHEMAS)[T]>;
|
|
@@ -3459,26 +3459,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3459
3459
|
path: z.ZodString;
|
|
3460
3460
|
content: z.ZodString;
|
|
3461
3461
|
}, "strip", z.ZodTypeAny, {
|
|
3462
|
-
type: "patch" | "file";
|
|
3463
3462
|
path: string;
|
|
3464
3463
|
content: string;
|
|
3464
|
+
type: "file" | "patch";
|
|
3465
3465
|
}, {
|
|
3466
|
-
type: "patch" | "file";
|
|
3467
3466
|
path: string;
|
|
3468
3467
|
content: string;
|
|
3468
|
+
type: "file" | "patch";
|
|
3469
3469
|
}>, "many">;
|
|
3470
3470
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3471
3471
|
type: z.ZodEnum<["patch", "file"]>;
|
|
3472
3472
|
path: z.ZodString;
|
|
3473
3473
|
content: z.ZodString;
|
|
3474
3474
|
}, "strip", z.ZodTypeAny, {
|
|
3475
|
-
type: "patch" | "file";
|
|
3476
3475
|
path: string;
|
|
3477
3476
|
content: string;
|
|
3477
|
+
type: "file" | "patch";
|
|
3478
3478
|
}, {
|
|
3479
|
-
type: "patch" | "file";
|
|
3480
3479
|
path: string;
|
|
3481
3480
|
content: string;
|
|
3481
|
+
type: "file" | "patch";
|
|
3482
3482
|
}>, "many">;
|
|
3483
3483
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3484
3484
|
path: z.ZodString;
|
|
@@ -3502,15 +3502,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3502
3502
|
type: "response-complete";
|
|
3503
3503
|
userInputId: string;
|
|
3504
3504
|
changesAlreadyApplied: {
|
|
3505
|
-
type: "patch" | "file";
|
|
3506
3505
|
path: string;
|
|
3507
3506
|
content: string;
|
|
3507
|
+
type: "file" | "patch";
|
|
3508
3508
|
}[];
|
|
3509
3509
|
response: string;
|
|
3510
3510
|
changes: {
|
|
3511
|
-
type: "patch" | "file";
|
|
3512
3511
|
path: string;
|
|
3513
3512
|
content: string;
|
|
3513
|
+
type: "file" | "patch";
|
|
3514
3514
|
}[];
|
|
3515
3515
|
addedFileVersions: {
|
|
3516
3516
|
path: string;
|
|
@@ -3527,15 +3527,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3527
3527
|
type: "response-complete";
|
|
3528
3528
|
userInputId: string;
|
|
3529
3529
|
changesAlreadyApplied: {
|
|
3530
|
-
type: "patch" | "file";
|
|
3531
3530
|
path: string;
|
|
3532
3531
|
content: string;
|
|
3532
|
+
type: "file" | "patch";
|
|
3533
3533
|
}[];
|
|
3534
3534
|
response: string;
|
|
3535
3535
|
changes: {
|
|
3536
|
-
type: "patch" | "file";
|
|
3537
3536
|
path: string;
|
|
3538
3537
|
content: string;
|
|
3538
|
+
type: "file" | "patch";
|
|
3539
3539
|
}[];
|
|
3540
3540
|
addedFileVersions: {
|
|
3541
3541
|
path: string;
|
|
@@ -3726,15 +3726,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3726
3726
|
type: "ephemeral";
|
|
3727
3727
|
}>>;
|
|
3728
3728
|
}, "strip", z.ZodTypeAny, {
|
|
3729
|
-
type: "tool_result";
|
|
3730
3729
|
content: string;
|
|
3730
|
+
type: "tool_result";
|
|
3731
3731
|
tool_use_id: string;
|
|
3732
3732
|
cache_control?: {
|
|
3733
3733
|
type: "ephemeral";
|
|
3734
3734
|
} | undefined;
|
|
3735
3735
|
}, {
|
|
3736
|
-
type: "tool_result";
|
|
3737
3736
|
content: string;
|
|
3737
|
+
type: "tool_result";
|
|
3738
3738
|
tool_use_id: string;
|
|
3739
3739
|
cache_control?: {
|
|
3740
3740
|
type: "ephemeral";
|
|
@@ -3798,8 +3798,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3798
3798
|
type: "ephemeral";
|
|
3799
3799
|
} | undefined;
|
|
3800
3800
|
} | {
|
|
3801
|
-
type: "tool_result";
|
|
3802
3801
|
content: string;
|
|
3802
|
+
type: "tool_result";
|
|
3803
3803
|
tool_use_id: string;
|
|
3804
3804
|
cache_control?: {
|
|
3805
3805
|
type: "ephemeral";
|
|
@@ -3832,8 +3832,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3832
3832
|
type: "ephemeral";
|
|
3833
3833
|
} | undefined;
|
|
3834
3834
|
} | {
|
|
3835
|
-
type: "tool_result";
|
|
3836
3835
|
content: string;
|
|
3836
|
+
type: "tool_result";
|
|
3837
3837
|
tool_use_id: string;
|
|
3838
3838
|
cache_control?: {
|
|
3839
3839
|
type: "ephemeral";
|
|
@@ -3896,8 +3896,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3896
3896
|
type: "ephemeral";
|
|
3897
3897
|
} | undefined;
|
|
3898
3898
|
} | {
|
|
3899
|
-
type: "tool_result";
|
|
3900
3899
|
content: string;
|
|
3900
|
+
type: "tool_result";
|
|
3901
3901
|
tool_use_id: string;
|
|
3902
3902
|
cache_control?: {
|
|
3903
3903
|
type: "ephemeral";
|
|
@@ -3960,8 +3960,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3960
3960
|
type: "ephemeral";
|
|
3961
3961
|
} | undefined;
|
|
3962
3962
|
} | {
|
|
3963
|
-
type: "tool_result";
|
|
3964
3963
|
content: string;
|
|
3964
|
+
type: "tool_result";
|
|
3965
3965
|
tool_use_id: string;
|
|
3966
3966
|
cache_control?: {
|
|
3967
3967
|
type: "ephemeral";
|
|
@@ -4054,8 +4054,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4054
4054
|
type: "ephemeral";
|
|
4055
4055
|
} | undefined;
|
|
4056
4056
|
} | {
|
|
4057
|
-
type: "tool_result";
|
|
4058
4057
|
content: string;
|
|
4058
|
+
type: "tool_result";
|
|
4059
4059
|
tool_use_id: string;
|
|
4060
4060
|
cache_control?: {
|
|
4061
4061
|
type: "ephemeral";
|
|
@@ -4132,8 +4132,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4132
4132
|
type: "ephemeral";
|
|
4133
4133
|
} | undefined;
|
|
4134
4134
|
} | {
|
|
4135
|
-
type: "tool_result";
|
|
4136
4135
|
content: string;
|
|
4136
|
+
type: "tool_result";
|
|
4137
4137
|
tool_use_id: string;
|
|
4138
4138
|
cache_control?: {
|
|
4139
4139
|
type: "ephemeral";
|
|
@@ -4196,26 +4196,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4196
4196
|
path: z.ZodString;
|
|
4197
4197
|
content: z.ZodString;
|
|
4198
4198
|
}, "strip", z.ZodTypeAny, {
|
|
4199
|
-
type: "patch" | "file";
|
|
4200
4199
|
path: string;
|
|
4201
4200
|
content: string;
|
|
4201
|
+
type: "file" | "patch";
|
|
4202
4202
|
}, {
|
|
4203
|
-
type: "patch" | "file";
|
|
4204
4203
|
path: string;
|
|
4205
4204
|
content: string;
|
|
4205
|
+
type: "file" | "patch";
|
|
4206
4206
|
}>, "many">;
|
|
4207
4207
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
4208
4208
|
type: z.ZodEnum<["patch", "file"]>;
|
|
4209
4209
|
path: z.ZodString;
|
|
4210
4210
|
content: z.ZodString;
|
|
4211
4211
|
}, "strip", z.ZodTypeAny, {
|
|
4212
|
-
type: "patch" | "file";
|
|
4213
4212
|
path: string;
|
|
4214
4213
|
content: string;
|
|
4214
|
+
type: "file" | "patch";
|
|
4215
4215
|
}, {
|
|
4216
|
-
type: "patch" | "file";
|
|
4217
4216
|
path: string;
|
|
4218
4217
|
content: string;
|
|
4218
|
+
type: "file" | "patch";
|
|
4219
4219
|
}>, "many">;
|
|
4220
4220
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
4221
4221
|
path: z.ZodString;
|
|
@@ -4237,15 +4237,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4237
4237
|
input: Record<string, any>;
|
|
4238
4238
|
};
|
|
4239
4239
|
changesAlreadyApplied: {
|
|
4240
|
-
type: "patch" | "file";
|
|
4241
4240
|
path: string;
|
|
4242
4241
|
content: string;
|
|
4242
|
+
type: "file" | "patch";
|
|
4243
4243
|
}[];
|
|
4244
4244
|
response: string;
|
|
4245
4245
|
changes: {
|
|
4246
|
-
type: "patch" | "file";
|
|
4247
4246
|
path: string;
|
|
4248
4247
|
content: string;
|
|
4248
|
+
type: "file" | "patch";
|
|
4249
4249
|
}[];
|
|
4250
4250
|
addedFileVersions: {
|
|
4251
4251
|
path: string;
|
|
@@ -4261,15 +4261,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4261
4261
|
input: Record<string, any>;
|
|
4262
4262
|
};
|
|
4263
4263
|
changesAlreadyApplied: {
|
|
4264
|
-
type: "patch" | "file";
|
|
4265
4264
|
path: string;
|
|
4266
4265
|
content: string;
|
|
4266
|
+
type: "file" | "patch";
|
|
4267
4267
|
}[];
|
|
4268
4268
|
response: string;
|
|
4269
4269
|
changes: {
|
|
4270
|
-
type: "patch" | "file";
|
|
4271
4270
|
path: string;
|
|
4272
4271
|
content: string;
|
|
4272
|
+
type: "file" | "patch";
|
|
4273
4273
|
}[];
|
|
4274
4274
|
addedFileVersions: {
|
|
4275
4275
|
path: string;
|
|
@@ -4366,11 +4366,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4366
4366
|
type: z.ZodLiteral<"action-error">;
|
|
4367
4367
|
message: z.ZodString;
|
|
4368
4368
|
}, "strip", z.ZodTypeAny, {
|
|
4369
|
-
type: "action-error";
|
|
4370
4369
|
message: string;
|
|
4371
|
-
}, {
|
|
4372
4370
|
type: "action-error";
|
|
4371
|
+
}, {
|
|
4373
4372
|
message: string;
|
|
4373
|
+
type: "action-error";
|
|
4374
4374
|
}>, z.ZodObject<{
|
|
4375
4375
|
type: z.ZodLiteral<"commit-message-response">;
|
|
4376
4376
|
commitMessage: z.ZodString;
|
|
@@ -4384,15 +4384,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4384
4384
|
}, "strip", z.ZodTypeAny, {
|
|
4385
4385
|
type: "action";
|
|
4386
4386
|
data: {
|
|
4387
|
-
type: "
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
subscription_active: boolean;
|
|
4391
|
-
next_quota_reset: Date;
|
|
4392
|
-
session_credits_used: number;
|
|
4393
|
-
referralLink?: string | undefined;
|
|
4387
|
+
type: "response-chunk";
|
|
4388
|
+
userInputId: string;
|
|
4389
|
+
chunk: string;
|
|
4394
4390
|
} | {
|
|
4395
|
-
type: "
|
|
4391
|
+
type: "usage-response";
|
|
4396
4392
|
usage: number;
|
|
4397
4393
|
limit: number;
|
|
4398
4394
|
subscription_active: boolean;
|
|
@@ -4403,15 +4399,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4403
4399
|
type: "response-complete";
|
|
4404
4400
|
userInputId: string;
|
|
4405
4401
|
changesAlreadyApplied: {
|
|
4406
|
-
type: "patch" | "file";
|
|
4407
4402
|
path: string;
|
|
4408
4403
|
content: string;
|
|
4404
|
+
type: "file" | "patch";
|
|
4409
4405
|
}[];
|
|
4410
4406
|
response: string;
|
|
4411
4407
|
changes: {
|
|
4412
|
-
type: "patch" | "file";
|
|
4413
4408
|
path: string;
|
|
4414
4409
|
content: string;
|
|
4410
|
+
type: "file" | "patch";
|
|
4415
4411
|
}[];
|
|
4416
4412
|
addedFileVersions: {
|
|
4417
4413
|
path: string;
|
|
@@ -4424,10 +4420,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4424
4420
|
subscription_active?: boolean | undefined;
|
|
4425
4421
|
next_quota_reset?: Date | undefined;
|
|
4426
4422
|
session_credits_used?: number | undefined;
|
|
4427
|
-
} | {
|
|
4428
|
-
type: "message-cost-response";
|
|
4429
|
-
promptId: string;
|
|
4430
|
-
credits: number;
|
|
4431
4423
|
} | {
|
|
4432
4424
|
type: "prompt-response";
|
|
4433
4425
|
promptId: string;
|
|
@@ -4476,8 +4468,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4476
4468
|
type: "ephemeral";
|
|
4477
4469
|
} | undefined;
|
|
4478
4470
|
} | {
|
|
4479
|
-
type: "tool_result";
|
|
4480
4471
|
content: string;
|
|
4472
|
+
type: "tool_result";
|
|
4481
4473
|
tool_use_id: string;
|
|
4482
4474
|
cache_control?: {
|
|
4483
4475
|
type: "ephemeral";
|
|
@@ -4506,10 +4498,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4506
4498
|
id: string;
|
|
4507
4499
|
parameters: Record<string, string>;
|
|
4508
4500
|
}[];
|
|
4509
|
-
} | {
|
|
4510
|
-
type: "response-chunk";
|
|
4511
|
-
userInputId: string;
|
|
4512
|
-
chunk: string;
|
|
4513
4501
|
} | {
|
|
4514
4502
|
type: "read-files";
|
|
4515
4503
|
requestId: string;
|
|
@@ -4523,15 +4511,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4523
4511
|
input: Record<string, any>;
|
|
4524
4512
|
};
|
|
4525
4513
|
changesAlreadyApplied: {
|
|
4526
|
-
type: "patch" | "file";
|
|
4527
4514
|
path: string;
|
|
4528
4515
|
content: string;
|
|
4516
|
+
type: "file" | "patch";
|
|
4529
4517
|
}[];
|
|
4530
4518
|
response: string;
|
|
4531
4519
|
changes: {
|
|
4532
|
-
type: "patch" | "file";
|
|
4533
4520
|
path: string;
|
|
4534
4521
|
content: string;
|
|
4522
|
+
type: "file" | "patch";
|
|
4535
4523
|
}[];
|
|
4536
4524
|
addedFileVersions: {
|
|
4537
4525
|
path: string;
|
|
@@ -4547,8 +4535,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4547
4535
|
isUpToDate: boolean;
|
|
4548
4536
|
latestVersion: string;
|
|
4549
4537
|
} | {
|
|
4550
|
-
type: "
|
|
4538
|
+
type: "init-response";
|
|
4539
|
+
usage: number;
|
|
4540
|
+
limit: number;
|
|
4541
|
+
subscription_active: boolean;
|
|
4542
|
+
next_quota_reset: Date;
|
|
4543
|
+
session_credits_used: number;
|
|
4544
|
+
referralLink?: string | undefined;
|
|
4545
|
+
} | {
|
|
4546
|
+
type: "message-cost-response";
|
|
4547
|
+
promptId: string;
|
|
4548
|
+
credits: number;
|
|
4549
|
+
} | {
|
|
4551
4550
|
message: string;
|
|
4551
|
+
type: "action-error";
|
|
4552
4552
|
} | {
|
|
4553
4553
|
type: "commit-message-response";
|
|
4554
4554
|
commitMessage: string;
|
|
@@ -4556,15 +4556,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4556
4556
|
}, {
|
|
4557
4557
|
type: "action";
|
|
4558
4558
|
data: {
|
|
4559
|
-
type: "
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
subscription_active: boolean;
|
|
4563
|
-
next_quota_reset: Date;
|
|
4564
|
-
session_credits_used: number;
|
|
4565
|
-
referralLink?: string | undefined;
|
|
4559
|
+
type: "response-chunk";
|
|
4560
|
+
userInputId: string;
|
|
4561
|
+
chunk: string;
|
|
4566
4562
|
} | {
|
|
4567
|
-
type: "
|
|
4563
|
+
type: "usage-response";
|
|
4568
4564
|
usage: number;
|
|
4569
4565
|
limit: number;
|
|
4570
4566
|
subscription_active: boolean;
|
|
@@ -4575,15 +4571,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4575
4571
|
type: "response-complete";
|
|
4576
4572
|
userInputId: string;
|
|
4577
4573
|
changesAlreadyApplied: {
|
|
4578
|
-
type: "patch" | "file";
|
|
4579
4574
|
path: string;
|
|
4580
4575
|
content: string;
|
|
4576
|
+
type: "file" | "patch";
|
|
4581
4577
|
}[];
|
|
4582
4578
|
response: string;
|
|
4583
4579
|
changes: {
|
|
4584
|
-
type: "patch" | "file";
|
|
4585
4580
|
path: string;
|
|
4586
4581
|
content: string;
|
|
4582
|
+
type: "file" | "patch";
|
|
4587
4583
|
}[];
|
|
4588
4584
|
addedFileVersions: {
|
|
4589
4585
|
path: string;
|
|
@@ -4596,10 +4592,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4596
4592
|
subscription_active?: boolean | undefined;
|
|
4597
4593
|
next_quota_reset?: Date | undefined;
|
|
4598
4594
|
session_credits_used?: number | undefined;
|
|
4599
|
-
} | {
|
|
4600
|
-
type: "message-cost-response";
|
|
4601
|
-
promptId: string;
|
|
4602
|
-
credits: number;
|
|
4603
4595
|
} | {
|
|
4604
4596
|
type: "prompt-response";
|
|
4605
4597
|
promptId: string;
|
|
@@ -4648,8 +4640,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4648
4640
|
type: "ephemeral";
|
|
4649
4641
|
} | undefined;
|
|
4650
4642
|
} | {
|
|
4651
|
-
type: "tool_result";
|
|
4652
4643
|
content: string;
|
|
4644
|
+
type: "tool_result";
|
|
4653
4645
|
tool_use_id: string;
|
|
4654
4646
|
cache_control?: {
|
|
4655
4647
|
type: "ephemeral";
|
|
@@ -4678,10 +4670,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4678
4670
|
id: string;
|
|
4679
4671
|
parameters: Record<string, string>;
|
|
4680
4672
|
}[];
|
|
4681
|
-
} | {
|
|
4682
|
-
type: "response-chunk";
|
|
4683
|
-
userInputId: string;
|
|
4684
|
-
chunk: string;
|
|
4685
4673
|
} | {
|
|
4686
4674
|
type: "read-files";
|
|
4687
4675
|
requestId: string;
|
|
@@ -4695,15 +4683,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4695
4683
|
input: Record<string, any>;
|
|
4696
4684
|
};
|
|
4697
4685
|
changesAlreadyApplied: {
|
|
4698
|
-
type: "patch" | "file";
|
|
4699
4686
|
path: string;
|
|
4700
4687
|
content: string;
|
|
4688
|
+
type: "file" | "patch";
|
|
4701
4689
|
}[];
|
|
4702
4690
|
response: string;
|
|
4703
4691
|
changes: {
|
|
4704
|
-
type: "patch" | "file";
|
|
4705
4692
|
path: string;
|
|
4706
4693
|
content: string;
|
|
4694
|
+
type: "file" | "patch";
|
|
4707
4695
|
}[];
|
|
4708
4696
|
addedFileVersions: {
|
|
4709
4697
|
path: string;
|
|
@@ -4719,8 +4707,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4719
4707
|
isUpToDate: boolean;
|
|
4720
4708
|
latestVersion: string;
|
|
4721
4709
|
} | {
|
|
4722
|
-
type: "
|
|
4710
|
+
type: "init-response";
|
|
4711
|
+
usage: number;
|
|
4712
|
+
limit: number;
|
|
4713
|
+
subscription_active: boolean;
|
|
4714
|
+
next_quota_reset: Date;
|
|
4715
|
+
session_credits_used: number;
|
|
4716
|
+
referralLink?: string | undefined;
|
|
4717
|
+
} | {
|
|
4718
|
+
type: "message-cost-response";
|
|
4719
|
+
promptId: string;
|
|
4720
|
+
credits: number;
|
|
4721
|
+
} | {
|
|
4723
4722
|
message: string;
|
|
4723
|
+
type: "action-error";
|
|
4724
4724
|
} | {
|
|
4725
4725
|
type: "commit-message-response";
|
|
4726
4726
|
commitMessage: string;
|
|
@@ -4765,26 +4765,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4765
4765
|
path: z.ZodString;
|
|
4766
4766
|
content: z.ZodString;
|
|
4767
4767
|
}, "strip", z.ZodTypeAny, {
|
|
4768
|
-
type: "patch" | "file";
|
|
4769
4768
|
path: string;
|
|
4770
4769
|
content: string;
|
|
4770
|
+
type: "file" | "patch";
|
|
4771
4771
|
}, {
|
|
4772
|
-
type: "patch" | "file";
|
|
4773
4772
|
path: string;
|
|
4774
4773
|
content: string;
|
|
4774
|
+
type: "file" | "patch";
|
|
4775
4775
|
}>, "many">;
|
|
4776
4776
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
4777
4777
|
type: z.ZodEnum<["patch", "file"]>;
|
|
4778
4778
|
path: z.ZodString;
|
|
4779
4779
|
content: z.ZodString;
|
|
4780
4780
|
}, "strip", z.ZodTypeAny, {
|
|
4781
|
-
type: "patch" | "file";
|
|
4782
4781
|
path: string;
|
|
4783
4782
|
content: string;
|
|
4783
|
+
type: "file" | "patch";
|
|
4784
4784
|
}, {
|
|
4785
|
-
type: "patch" | "file";
|
|
4786
4785
|
path: string;
|
|
4787
4786
|
content: string;
|
|
4787
|
+
type: "file" | "patch";
|
|
4788
4788
|
}>, "many">;
|
|
4789
4789
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
4790
4790
|
path: z.ZodString;
|
|
@@ -4808,15 +4808,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4808
4808
|
type: "response-complete";
|
|
4809
4809
|
userInputId: string;
|
|
4810
4810
|
changesAlreadyApplied: {
|
|
4811
|
-
type: "patch" | "file";
|
|
4812
4811
|
path: string;
|
|
4813
4812
|
content: string;
|
|
4813
|
+
type: "file" | "patch";
|
|
4814
4814
|
}[];
|
|
4815
4815
|
response: string;
|
|
4816
4816
|
changes: {
|
|
4817
|
-
type: "patch" | "file";
|
|
4818
4817
|
path: string;
|
|
4819
4818
|
content: string;
|
|
4819
|
+
type: "file" | "patch";
|
|
4820
4820
|
}[];
|
|
4821
4821
|
addedFileVersions: {
|
|
4822
4822
|
path: string;
|
|
@@ -4833,15 +4833,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4833
4833
|
type: "response-complete";
|
|
4834
4834
|
userInputId: string;
|
|
4835
4835
|
changesAlreadyApplied: {
|
|
4836
|
-
type: "patch" | "file";
|
|
4837
4836
|
path: string;
|
|
4838
4837
|
content: string;
|
|
4838
|
+
type: "file" | "patch";
|
|
4839
4839
|
}[];
|
|
4840
4840
|
response: string;
|
|
4841
4841
|
changes: {
|
|
4842
|
-
type: "patch" | "file";
|
|
4843
4842
|
path: string;
|
|
4844
4843
|
content: string;
|
|
4844
|
+
type: "file" | "patch";
|
|
4845
4845
|
}[];
|
|
4846
4846
|
addedFileVersions: {
|
|
4847
4847
|
path: string;
|
|
@@ -5032,15 +5032,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5032
5032
|
type: "ephemeral";
|
|
5033
5033
|
}>>;
|
|
5034
5034
|
}, "strip", z.ZodTypeAny, {
|
|
5035
|
-
type: "tool_result";
|
|
5036
5035
|
content: string;
|
|
5036
|
+
type: "tool_result";
|
|
5037
5037
|
tool_use_id: string;
|
|
5038
5038
|
cache_control?: {
|
|
5039
5039
|
type: "ephemeral";
|
|
5040
5040
|
} | undefined;
|
|
5041
5041
|
}, {
|
|
5042
|
-
type: "tool_result";
|
|
5043
5042
|
content: string;
|
|
5043
|
+
type: "tool_result";
|
|
5044
5044
|
tool_use_id: string;
|
|
5045
5045
|
cache_control?: {
|
|
5046
5046
|
type: "ephemeral";
|
|
@@ -5104,8 +5104,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5104
5104
|
type: "ephemeral";
|
|
5105
5105
|
} | undefined;
|
|
5106
5106
|
} | {
|
|
5107
|
-
type: "tool_result";
|
|
5108
5107
|
content: string;
|
|
5108
|
+
type: "tool_result";
|
|
5109
5109
|
tool_use_id: string;
|
|
5110
5110
|
cache_control?: {
|
|
5111
5111
|
type: "ephemeral";
|
|
@@ -5138,8 +5138,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5138
5138
|
type: "ephemeral";
|
|
5139
5139
|
} | undefined;
|
|
5140
5140
|
} | {
|
|
5141
|
-
type: "tool_result";
|
|
5142
5141
|
content: string;
|
|
5142
|
+
type: "tool_result";
|
|
5143
5143
|
tool_use_id: string;
|
|
5144
5144
|
cache_control?: {
|
|
5145
5145
|
type: "ephemeral";
|
|
@@ -5202,8 +5202,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5202
5202
|
type: "ephemeral";
|
|
5203
5203
|
} | undefined;
|
|
5204
5204
|
} | {
|
|
5205
|
-
type: "tool_result";
|
|
5206
5205
|
content: string;
|
|
5206
|
+
type: "tool_result";
|
|
5207
5207
|
tool_use_id: string;
|
|
5208
5208
|
cache_control?: {
|
|
5209
5209
|
type: "ephemeral";
|
|
@@ -5266,8 +5266,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5266
5266
|
type: "ephemeral";
|
|
5267
5267
|
} | undefined;
|
|
5268
5268
|
} | {
|
|
5269
|
-
type: "tool_result";
|
|
5270
5269
|
content: string;
|
|
5270
|
+
type: "tool_result";
|
|
5271
5271
|
tool_use_id: string;
|
|
5272
5272
|
cache_control?: {
|
|
5273
5273
|
type: "ephemeral";
|
|
@@ -5360,8 +5360,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5360
5360
|
type: "ephemeral";
|
|
5361
5361
|
} | undefined;
|
|
5362
5362
|
} | {
|
|
5363
|
-
type: "tool_result";
|
|
5364
5363
|
content: string;
|
|
5364
|
+
type: "tool_result";
|
|
5365
5365
|
tool_use_id: string;
|
|
5366
5366
|
cache_control?: {
|
|
5367
5367
|
type: "ephemeral";
|
|
@@ -5438,8 +5438,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5438
5438
|
type: "ephemeral";
|
|
5439
5439
|
} | undefined;
|
|
5440
5440
|
} | {
|
|
5441
|
-
type: "tool_result";
|
|
5442
5441
|
content: string;
|
|
5442
|
+
type: "tool_result";
|
|
5443
5443
|
tool_use_id: string;
|
|
5444
5444
|
cache_control?: {
|
|
5445
5445
|
type: "ephemeral";
|
|
@@ -5502,26 +5502,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5502
5502
|
path: z.ZodString;
|
|
5503
5503
|
content: z.ZodString;
|
|
5504
5504
|
}, "strip", z.ZodTypeAny, {
|
|
5505
|
-
type: "patch" | "file";
|
|
5506
5505
|
path: string;
|
|
5507
5506
|
content: string;
|
|
5507
|
+
type: "file" | "patch";
|
|
5508
5508
|
}, {
|
|
5509
|
-
type: "patch" | "file";
|
|
5510
5509
|
path: string;
|
|
5511
5510
|
content: string;
|
|
5511
|
+
type: "file" | "patch";
|
|
5512
5512
|
}>, "many">;
|
|
5513
5513
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
5514
5514
|
type: z.ZodEnum<["patch", "file"]>;
|
|
5515
5515
|
path: z.ZodString;
|
|
5516
5516
|
content: z.ZodString;
|
|
5517
5517
|
}, "strip", z.ZodTypeAny, {
|
|
5518
|
-
type: "patch" | "file";
|
|
5519
5518
|
path: string;
|
|
5520
5519
|
content: string;
|
|
5520
|
+
type: "file" | "patch";
|
|
5521
5521
|
}, {
|
|
5522
|
-
type: "patch" | "file";
|
|
5523
5522
|
path: string;
|
|
5524
5523
|
content: string;
|
|
5524
|
+
type: "file" | "patch";
|
|
5525
5525
|
}>, "many">;
|
|
5526
5526
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
5527
5527
|
path: z.ZodString;
|
|
@@ -5543,15 +5543,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5543
5543
|
input: Record<string, any>;
|
|
5544
5544
|
};
|
|
5545
5545
|
changesAlreadyApplied: {
|
|
5546
|
-
type: "patch" | "file";
|
|
5547
5546
|
path: string;
|
|
5548
5547
|
content: string;
|
|
5548
|
+
type: "file" | "patch";
|
|
5549
5549
|
}[];
|
|
5550
5550
|
response: string;
|
|
5551
5551
|
changes: {
|
|
5552
|
-
type: "patch" | "file";
|
|
5553
5552
|
path: string;
|
|
5554
5553
|
content: string;
|
|
5554
|
+
type: "file" | "patch";
|
|
5555
5555
|
}[];
|
|
5556
5556
|
addedFileVersions: {
|
|
5557
5557
|
path: string;
|
|
@@ -5567,15 +5567,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5567
5567
|
input: Record<string, any>;
|
|
5568
5568
|
};
|
|
5569
5569
|
changesAlreadyApplied: {
|
|
5570
|
-
type: "patch" | "file";
|
|
5571
5570
|
path: string;
|
|
5572
5571
|
content: string;
|
|
5572
|
+
type: "file" | "patch";
|
|
5573
5573
|
}[];
|
|
5574
5574
|
response: string;
|
|
5575
5575
|
changes: {
|
|
5576
|
-
type: "patch" | "file";
|
|
5577
5576
|
path: string;
|
|
5578
5577
|
content: string;
|
|
5578
|
+
type: "file" | "patch";
|
|
5579
5579
|
}[];
|
|
5580
5580
|
addedFileVersions: {
|
|
5581
5581
|
path: string;
|
|
@@ -5672,11 +5672,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5672
5672
|
type: z.ZodLiteral<"action-error">;
|
|
5673
5673
|
message: z.ZodString;
|
|
5674
5674
|
}, "strip", z.ZodTypeAny, {
|
|
5675
|
-
type: "action-error";
|
|
5676
5675
|
message: string;
|
|
5677
|
-
}, {
|
|
5678
5676
|
type: "action-error";
|
|
5677
|
+
}, {
|
|
5679
5678
|
message: string;
|
|
5679
|
+
type: "action-error";
|
|
5680
5680
|
}>, z.ZodObject<{
|
|
5681
5681
|
type: z.ZodLiteral<"commit-message-response">;
|
|
5682
5682
|
commitMessage: z.ZodString;
|
|
@@ -5690,15 +5690,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5690
5690
|
}, "strip", z.ZodTypeAny, {
|
|
5691
5691
|
type: "action";
|
|
5692
5692
|
data: {
|
|
5693
|
-
type: "
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
subscription_active: boolean;
|
|
5697
|
-
next_quota_reset: Date;
|
|
5698
|
-
session_credits_used: number;
|
|
5699
|
-
referralLink?: string | undefined;
|
|
5693
|
+
type: "response-chunk";
|
|
5694
|
+
userInputId: string;
|
|
5695
|
+
chunk: string;
|
|
5700
5696
|
} | {
|
|
5701
|
-
type: "
|
|
5697
|
+
type: "usage-response";
|
|
5702
5698
|
usage: number;
|
|
5703
5699
|
limit: number;
|
|
5704
5700
|
subscription_active: boolean;
|
|
@@ -5709,15 +5705,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5709
5705
|
type: "response-complete";
|
|
5710
5706
|
userInputId: string;
|
|
5711
5707
|
changesAlreadyApplied: {
|
|
5712
|
-
type: "patch" | "file";
|
|
5713
5708
|
path: string;
|
|
5714
5709
|
content: string;
|
|
5710
|
+
type: "file" | "patch";
|
|
5715
5711
|
}[];
|
|
5716
5712
|
response: string;
|
|
5717
5713
|
changes: {
|
|
5718
|
-
type: "patch" | "file";
|
|
5719
5714
|
path: string;
|
|
5720
5715
|
content: string;
|
|
5716
|
+
type: "file" | "patch";
|
|
5721
5717
|
}[];
|
|
5722
5718
|
addedFileVersions: {
|
|
5723
5719
|
path: string;
|
|
@@ -5730,10 +5726,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5730
5726
|
subscription_active?: boolean | undefined;
|
|
5731
5727
|
next_quota_reset?: Date | undefined;
|
|
5732
5728
|
session_credits_used?: number | undefined;
|
|
5733
|
-
} | {
|
|
5734
|
-
type: "message-cost-response";
|
|
5735
|
-
promptId: string;
|
|
5736
|
-
credits: number;
|
|
5737
5729
|
} | {
|
|
5738
5730
|
type: "prompt-response";
|
|
5739
5731
|
promptId: string;
|
|
@@ -5782,8 +5774,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5782
5774
|
type: "ephemeral";
|
|
5783
5775
|
} | undefined;
|
|
5784
5776
|
} | {
|
|
5785
|
-
type: "tool_result";
|
|
5786
5777
|
content: string;
|
|
5778
|
+
type: "tool_result";
|
|
5787
5779
|
tool_use_id: string;
|
|
5788
5780
|
cache_control?: {
|
|
5789
5781
|
type: "ephemeral";
|
|
@@ -5812,10 +5804,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5812
5804
|
id: string;
|
|
5813
5805
|
parameters: Record<string, string>;
|
|
5814
5806
|
}[];
|
|
5815
|
-
} | {
|
|
5816
|
-
type: "response-chunk";
|
|
5817
|
-
userInputId: string;
|
|
5818
|
-
chunk: string;
|
|
5819
5807
|
} | {
|
|
5820
5808
|
type: "read-files";
|
|
5821
5809
|
requestId: string;
|
|
@@ -5829,15 +5817,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5829
5817
|
input: Record<string, any>;
|
|
5830
5818
|
};
|
|
5831
5819
|
changesAlreadyApplied: {
|
|
5832
|
-
type: "patch" | "file";
|
|
5833
5820
|
path: string;
|
|
5834
5821
|
content: string;
|
|
5822
|
+
type: "file" | "patch";
|
|
5835
5823
|
}[];
|
|
5836
5824
|
response: string;
|
|
5837
5825
|
changes: {
|
|
5838
|
-
type: "patch" | "file";
|
|
5839
5826
|
path: string;
|
|
5840
5827
|
content: string;
|
|
5828
|
+
type: "file" | "patch";
|
|
5841
5829
|
}[];
|
|
5842
5830
|
addedFileVersions: {
|
|
5843
5831
|
path: string;
|
|
@@ -5853,8 +5841,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5853
5841
|
isUpToDate: boolean;
|
|
5854
5842
|
latestVersion: string;
|
|
5855
5843
|
} | {
|
|
5856
|
-
type: "
|
|
5844
|
+
type: "init-response";
|
|
5845
|
+
usage: number;
|
|
5846
|
+
limit: number;
|
|
5847
|
+
subscription_active: boolean;
|
|
5848
|
+
next_quota_reset: Date;
|
|
5849
|
+
session_credits_used: number;
|
|
5850
|
+
referralLink?: string | undefined;
|
|
5851
|
+
} | {
|
|
5852
|
+
type: "message-cost-response";
|
|
5853
|
+
promptId: string;
|
|
5854
|
+
credits: number;
|
|
5855
|
+
} | {
|
|
5857
5856
|
message: string;
|
|
5857
|
+
type: "action-error";
|
|
5858
5858
|
} | {
|
|
5859
5859
|
type: "commit-message-response";
|
|
5860
5860
|
commitMessage: string;
|
|
@@ -5862,15 +5862,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5862
5862
|
}, {
|
|
5863
5863
|
type: "action";
|
|
5864
5864
|
data: {
|
|
5865
|
-
type: "
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
subscription_active: boolean;
|
|
5869
|
-
next_quota_reset: Date;
|
|
5870
|
-
session_credits_used: number;
|
|
5871
|
-
referralLink?: string | undefined;
|
|
5865
|
+
type: "response-chunk";
|
|
5866
|
+
userInputId: string;
|
|
5867
|
+
chunk: string;
|
|
5872
5868
|
} | {
|
|
5873
|
-
type: "
|
|
5869
|
+
type: "usage-response";
|
|
5874
5870
|
usage: number;
|
|
5875
5871
|
limit: number;
|
|
5876
5872
|
subscription_active: boolean;
|
|
@@ -5881,15 +5877,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5881
5877
|
type: "response-complete";
|
|
5882
5878
|
userInputId: string;
|
|
5883
5879
|
changesAlreadyApplied: {
|
|
5884
|
-
type: "patch" | "file";
|
|
5885
5880
|
path: string;
|
|
5886
5881
|
content: string;
|
|
5882
|
+
type: "file" | "patch";
|
|
5887
5883
|
}[];
|
|
5888
5884
|
response: string;
|
|
5889
5885
|
changes: {
|
|
5890
|
-
type: "patch" | "file";
|
|
5891
5886
|
path: string;
|
|
5892
5887
|
content: string;
|
|
5888
|
+
type: "file" | "patch";
|
|
5893
5889
|
}[];
|
|
5894
5890
|
addedFileVersions: {
|
|
5895
5891
|
path: string;
|
|
@@ -5902,10 +5898,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5902
5898
|
subscription_active?: boolean | undefined;
|
|
5903
5899
|
next_quota_reset?: Date | undefined;
|
|
5904
5900
|
session_credits_used?: number | undefined;
|
|
5905
|
-
} | {
|
|
5906
|
-
type: "message-cost-response";
|
|
5907
|
-
promptId: string;
|
|
5908
|
-
credits: number;
|
|
5909
5901
|
} | {
|
|
5910
5902
|
type: "prompt-response";
|
|
5911
5903
|
promptId: string;
|
|
@@ -5954,8 +5946,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5954
5946
|
type: "ephemeral";
|
|
5955
5947
|
} | undefined;
|
|
5956
5948
|
} | {
|
|
5957
|
-
type: "tool_result";
|
|
5958
5949
|
content: string;
|
|
5950
|
+
type: "tool_result";
|
|
5959
5951
|
tool_use_id: string;
|
|
5960
5952
|
cache_control?: {
|
|
5961
5953
|
type: "ephemeral";
|
|
@@ -5984,10 +5976,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5984
5976
|
id: string;
|
|
5985
5977
|
parameters: Record<string, string>;
|
|
5986
5978
|
}[];
|
|
5987
|
-
} | {
|
|
5988
|
-
type: "response-chunk";
|
|
5989
|
-
userInputId: string;
|
|
5990
|
-
chunk: string;
|
|
5991
5979
|
} | {
|
|
5992
5980
|
type: "read-files";
|
|
5993
5981
|
requestId: string;
|
|
@@ -6001,15 +5989,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6001
5989
|
input: Record<string, any>;
|
|
6002
5990
|
};
|
|
6003
5991
|
changesAlreadyApplied: {
|
|
6004
|
-
type: "patch" | "file";
|
|
6005
5992
|
path: string;
|
|
6006
5993
|
content: string;
|
|
5994
|
+
type: "file" | "patch";
|
|
6007
5995
|
}[];
|
|
6008
5996
|
response: string;
|
|
6009
5997
|
changes: {
|
|
6010
|
-
type: "patch" | "file";
|
|
6011
5998
|
path: string;
|
|
6012
5999
|
content: string;
|
|
6000
|
+
type: "file" | "patch";
|
|
6013
6001
|
}[];
|
|
6014
6002
|
addedFileVersions: {
|
|
6015
6003
|
path: string;
|
|
@@ -6025,8 +6013,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6025
6013
|
isUpToDate: boolean;
|
|
6026
6014
|
latestVersion: string;
|
|
6027
6015
|
} | {
|
|
6028
|
-
type: "
|
|
6016
|
+
type: "init-response";
|
|
6017
|
+
usage: number;
|
|
6018
|
+
limit: number;
|
|
6019
|
+
subscription_active: boolean;
|
|
6020
|
+
next_quota_reset: Date;
|
|
6021
|
+
session_credits_used: number;
|
|
6022
|
+
referralLink?: string | undefined;
|
|
6023
|
+
} | {
|
|
6024
|
+
type: "message-cost-response";
|
|
6025
|
+
promptId: string;
|
|
6026
|
+
credits: number;
|
|
6027
|
+
} | {
|
|
6029
6028
|
message: string;
|
|
6029
|
+
type: "action-error";
|
|
6030
6030
|
} | {
|
|
6031
6031
|
type: "commit-message-response";
|
|
6032
6032
|
commitMessage: string;
|