codebuff 1.0.230 → 1.0.232
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/background-process-manager.js +14 -14
- package/dist/background-process-manager.js.map +1 -1
- package/dist/cli-handlers/inititalization-flow.d.ts +1 -0
- package/dist/cli-handlers/inititalization-flow.js +24 -0
- package/dist/cli-handlers/inititalization-flow.js.map +1 -0
- package/dist/cli.js +7 -0
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +6 -6
- package/dist/client.js +29 -34
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +54 -54
- package/dist/common/bigquery/client.js +21 -20
- package/dist/common/bigquery/client.js.map +1 -1
- package/dist/common/bigquery/schema.d.ts +1 -0
- package/dist/common/bigquery/schema.js.map +1 -1
- package/dist/common/billing/quota-manager.d.ts +29 -0
- package/dist/common/billing/quota-manager.js +251 -0
- package/dist/common/billing/quota-manager.js.map +1 -0
- package/dist/common/constants.d.ts +16 -5
- package/dist/common/constants.js +20 -9
- package/dist/common/constants.js.map +1 -1
- package/dist/common/db/env.mjs +5 -5
- package/dist/common/db/env.mjs.map +1 -1
- package/dist/common/env.mjs +6 -7
- package/dist/common/env.mjs.map +1 -1
- package/dist/common/json-config/__tests__/stringify-schema.test.js +7 -7
- package/dist/common/json-config/__tests__/stringify-schema.test.js.map +1 -1
- package/dist/common/json-config/constants.d.ts +5 -0
- package/dist/common/json-config/constants.js +11 -5
- package/dist/common/json-config/constants.js.map +1 -1
- package/dist/common/json-config/parser.d.ts +1 -1
- package/dist/common/json-config/parser.js +16 -9
- package/dist/common/json-config/parser.js.map +1 -1
- package/dist/common/json-config/stringify-schema.d.ts +1 -1
- package/dist/common/json-config/stringify-schema.js +51 -36
- package/dist/common/json-config/stringify-schema.js.map +1 -1
- package/dist/common/logger.d.ts +1 -0
- package/dist/common/logger.js +7 -0
- package/dist/common/logger.js.map +1 -0
- package/dist/common/types/usage.d.ts +4 -4
- 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/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/logger.js +1 -1
- package/dist/common/util/logger.js.map +1 -1
- 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/util/tools.d.ts +2 -0
- package/dist/common/util/tools.js +13 -0
- package/dist/common/util/tools.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +104 -104
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/credentials.js +3 -2
- package/dist/credentials.js.map +1 -1
- package/dist/dev-process-manager.d.ts +1 -1
- package/dist/dev-process-manager.js +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/menu.js +12 -11
- package/dist/menu.js.map +1 -1
- package/dist/tool-handlers.js +16 -2
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/__tests__/background-process-manager.test.js +15 -60
- package/dist/utils/__tests__/background-process-manager.test.js.map +1 -1
- package/package.json +2 -1
- package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +0 -66
|
@@ -207,17 +207,17 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
207
207
|
type: "ephemeral";
|
|
208
208
|
}>>;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
id: string;
|
|
210
211
|
type: "tool_use";
|
|
211
212
|
name: string;
|
|
212
|
-
id: string;
|
|
213
213
|
input: Record<string, any>;
|
|
214
214
|
cache_control?: {
|
|
215
215
|
type: "ephemeral";
|
|
216
216
|
} | undefined;
|
|
217
217
|
}, {
|
|
218
|
+
id: string;
|
|
218
219
|
type: "tool_use";
|
|
219
220
|
name: string;
|
|
220
|
-
id: string;
|
|
221
221
|
input: Record<string, any>;
|
|
222
222
|
cache_control?: {
|
|
223
223
|
type: "ephemeral";
|
|
@@ -298,9 +298,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
298
298
|
type: "ephemeral";
|
|
299
299
|
} | undefined;
|
|
300
300
|
} | {
|
|
301
|
+
id: string;
|
|
301
302
|
type: "tool_use";
|
|
302
303
|
name: string;
|
|
303
|
-
id: string;
|
|
304
304
|
input: Record<string, any>;
|
|
305
305
|
cache_control?: {
|
|
306
306
|
type: "ephemeral";
|
|
@@ -332,9 +332,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
332
332
|
type: "ephemeral";
|
|
333
333
|
} | undefined;
|
|
334
334
|
} | {
|
|
335
|
+
id: string;
|
|
335
336
|
type: "tool_use";
|
|
336
337
|
name: string;
|
|
337
|
-
id: string;
|
|
338
338
|
input: Record<string, any>;
|
|
339
339
|
cache_control?: {
|
|
340
340
|
type: "ephemeral";
|
|
@@ -397,9 +397,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
397
397
|
type: "ephemeral";
|
|
398
398
|
} | undefined;
|
|
399
399
|
} | {
|
|
400
|
+
id: string;
|
|
400
401
|
type: "tool_use";
|
|
401
402
|
name: string;
|
|
402
|
-
id: string;
|
|
403
403
|
input: Record<string, any>;
|
|
404
404
|
cache_control?: {
|
|
405
405
|
type: "ephemeral";
|
|
@@ -462,9 +462,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
462
462
|
type: "ephemeral";
|
|
463
463
|
} | undefined;
|
|
464
464
|
} | {
|
|
465
|
+
id: string;
|
|
465
466
|
type: "tool_use";
|
|
466
467
|
name: string;
|
|
467
|
-
id: string;
|
|
468
468
|
input: Record<string, any>;
|
|
469
469
|
cache_control?: {
|
|
470
470
|
type: "ephemeral";
|
|
@@ -496,12 +496,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
496
496
|
result: z.ZodString;
|
|
497
497
|
id: z.ZodString;
|
|
498
498
|
}, "strip", z.ZodTypeAny, {
|
|
499
|
-
name: string;
|
|
500
499
|
id: string;
|
|
500
|
+
name: string;
|
|
501
501
|
result: string;
|
|
502
502
|
}, {
|
|
503
|
-
name: string;
|
|
504
503
|
id: string;
|
|
504
|
+
name: string;
|
|
505
505
|
result: string;
|
|
506
506
|
}>, "many">;
|
|
507
507
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -547,9 +547,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
547
547
|
type: "ephemeral";
|
|
548
548
|
} | undefined;
|
|
549
549
|
} | {
|
|
550
|
+
id: string;
|
|
550
551
|
type: "tool_use";
|
|
551
552
|
name: string;
|
|
552
|
-
id: string;
|
|
553
553
|
input: Record<string, any>;
|
|
554
554
|
cache_control?: {
|
|
555
555
|
type: "ephemeral";
|
|
@@ -577,13 +577,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
577
577
|
consecutiveAssistantMessages?: number | undefined;
|
|
578
578
|
};
|
|
579
579
|
toolResults: {
|
|
580
|
-
name: string;
|
|
581
580
|
id: string;
|
|
581
|
+
name: string;
|
|
582
582
|
result: string;
|
|
583
583
|
}[];
|
|
584
|
+
model?: string | undefined;
|
|
584
585
|
prompt?: string | undefined;
|
|
585
586
|
authToken?: string | undefined;
|
|
586
|
-
model?: string | undefined;
|
|
587
587
|
}, {
|
|
588
588
|
type: "prompt";
|
|
589
589
|
promptId: string;
|
|
@@ -625,9 +625,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
625
625
|
type: "ephemeral";
|
|
626
626
|
} | undefined;
|
|
627
627
|
} | {
|
|
628
|
+
id: string;
|
|
628
629
|
type: "tool_use";
|
|
629
630
|
name: string;
|
|
630
|
-
id: string;
|
|
631
631
|
input: Record<string, any>;
|
|
632
632
|
cache_control?: {
|
|
633
633
|
type: "ephemeral";
|
|
@@ -655,14 +655,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
655
655
|
consecutiveAssistantMessages?: number | undefined;
|
|
656
656
|
};
|
|
657
657
|
toolResults: {
|
|
658
|
-
name: string;
|
|
659
658
|
id: string;
|
|
659
|
+
name: string;
|
|
660
660
|
result: string;
|
|
661
661
|
}[];
|
|
662
|
+
model?: string | undefined;
|
|
662
663
|
prompt?: string | undefined;
|
|
663
664
|
authToken?: string | undefined;
|
|
664
665
|
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
665
|
-
model?: string | undefined;
|
|
666
666
|
}>, z.ZodObject<{
|
|
667
667
|
type: z.ZodLiteral<"read-files-response">;
|
|
668
668
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -910,9 +910,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
910
910
|
type: "ephemeral";
|
|
911
911
|
} | undefined;
|
|
912
912
|
} | {
|
|
913
|
+
id: string;
|
|
913
914
|
type: "tool_use";
|
|
914
915
|
name: string;
|
|
915
|
-
id: string;
|
|
916
916
|
input: Record<string, any>;
|
|
917
917
|
cache_control?: {
|
|
918
918
|
type: "ephemeral";
|
|
@@ -940,13 +940,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
940
940
|
consecutiveAssistantMessages?: number | undefined;
|
|
941
941
|
};
|
|
942
942
|
toolResults: {
|
|
943
|
-
name: string;
|
|
944
943
|
id: string;
|
|
944
|
+
name: string;
|
|
945
945
|
result: string;
|
|
946
946
|
}[];
|
|
947
|
+
model?: string | undefined;
|
|
947
948
|
prompt?: string | undefined;
|
|
948
949
|
authToken?: string | undefined;
|
|
949
|
-
model?: string | undefined;
|
|
950
950
|
} | {
|
|
951
951
|
type: "read-files-response";
|
|
952
952
|
files: Record<string, string | null>;
|
|
@@ -1032,9 +1032,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1032
1032
|
type: "ephemeral";
|
|
1033
1033
|
} | undefined;
|
|
1034
1034
|
} | {
|
|
1035
|
+
id: string;
|
|
1035
1036
|
type: "tool_use";
|
|
1036
1037
|
name: string;
|
|
1037
|
-
id: string;
|
|
1038
1038
|
input: Record<string, any>;
|
|
1039
1039
|
cache_control?: {
|
|
1040
1040
|
type: "ephemeral";
|
|
@@ -1062,14 +1062,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1062
1062
|
consecutiveAssistantMessages?: number | undefined;
|
|
1063
1063
|
};
|
|
1064
1064
|
toolResults: {
|
|
1065
|
-
name: string;
|
|
1066
1065
|
id: string;
|
|
1066
|
+
name: string;
|
|
1067
1067
|
result: string;
|
|
1068
1068
|
}[];
|
|
1069
|
+
model?: string | undefined;
|
|
1069
1070
|
prompt?: string | undefined;
|
|
1070
1071
|
authToken?: string | undefined;
|
|
1071
1072
|
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
1072
|
-
model?: string | undefined;
|
|
1073
1073
|
} | {
|
|
1074
1074
|
type: "read-files-response";
|
|
1075
1075
|
files: Record<string, string | null>;
|
|
@@ -1317,17 +1317,17 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1317
1317
|
type: "ephemeral";
|
|
1318
1318
|
}>>;
|
|
1319
1319
|
}, "strip", z.ZodTypeAny, {
|
|
1320
|
+
id: string;
|
|
1320
1321
|
type: "tool_use";
|
|
1321
1322
|
name: string;
|
|
1322
|
-
id: string;
|
|
1323
1323
|
input: Record<string, any>;
|
|
1324
1324
|
cache_control?: {
|
|
1325
1325
|
type: "ephemeral";
|
|
1326
1326
|
} | undefined;
|
|
1327
1327
|
}, {
|
|
1328
|
+
id: string;
|
|
1328
1329
|
type: "tool_use";
|
|
1329
1330
|
name: string;
|
|
1330
|
-
id: string;
|
|
1331
1331
|
input: Record<string, any>;
|
|
1332
1332
|
cache_control?: {
|
|
1333
1333
|
type: "ephemeral";
|
|
@@ -1408,9 +1408,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1408
1408
|
type: "ephemeral";
|
|
1409
1409
|
} | undefined;
|
|
1410
1410
|
} | {
|
|
1411
|
+
id: string;
|
|
1411
1412
|
type: "tool_use";
|
|
1412
1413
|
name: string;
|
|
1413
|
-
id: string;
|
|
1414
1414
|
input: Record<string, any>;
|
|
1415
1415
|
cache_control?: {
|
|
1416
1416
|
type: "ephemeral";
|
|
@@ -1442,9 +1442,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1442
1442
|
type: "ephemeral";
|
|
1443
1443
|
} | undefined;
|
|
1444
1444
|
} | {
|
|
1445
|
+
id: string;
|
|
1445
1446
|
type: "tool_use";
|
|
1446
1447
|
name: string;
|
|
1447
|
-
id: string;
|
|
1448
1448
|
input: Record<string, any>;
|
|
1449
1449
|
cache_control?: {
|
|
1450
1450
|
type: "ephemeral";
|
|
@@ -1507,9 +1507,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1507
1507
|
type: "ephemeral";
|
|
1508
1508
|
} | undefined;
|
|
1509
1509
|
} | {
|
|
1510
|
+
id: string;
|
|
1510
1511
|
type: "tool_use";
|
|
1511
1512
|
name: string;
|
|
1512
|
-
id: string;
|
|
1513
1513
|
input: Record<string, any>;
|
|
1514
1514
|
cache_control?: {
|
|
1515
1515
|
type: "ephemeral";
|
|
@@ -1572,9 +1572,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1572
1572
|
type: "ephemeral";
|
|
1573
1573
|
} | undefined;
|
|
1574
1574
|
} | {
|
|
1575
|
+
id: string;
|
|
1575
1576
|
type: "tool_use";
|
|
1576
1577
|
name: string;
|
|
1577
|
-
id: string;
|
|
1578
1578
|
input: Record<string, any>;
|
|
1579
1579
|
cache_control?: {
|
|
1580
1580
|
type: "ephemeral";
|
|
@@ -1606,12 +1606,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1606
1606
|
result: z.ZodString;
|
|
1607
1607
|
id: z.ZodString;
|
|
1608
1608
|
}, "strip", z.ZodTypeAny, {
|
|
1609
|
-
name: string;
|
|
1610
1609
|
id: string;
|
|
1610
|
+
name: string;
|
|
1611
1611
|
result: string;
|
|
1612
1612
|
}, {
|
|
1613
|
-
name: string;
|
|
1614
1613
|
id: string;
|
|
1614
|
+
name: string;
|
|
1615
1615
|
result: string;
|
|
1616
1616
|
}>, "many">;
|
|
1617
1617
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1657,9 +1657,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1657
1657
|
type: "ephemeral";
|
|
1658
1658
|
} | undefined;
|
|
1659
1659
|
} | {
|
|
1660
|
+
id: string;
|
|
1660
1661
|
type: "tool_use";
|
|
1661
1662
|
name: string;
|
|
1662
|
-
id: string;
|
|
1663
1663
|
input: Record<string, any>;
|
|
1664
1664
|
cache_control?: {
|
|
1665
1665
|
type: "ephemeral";
|
|
@@ -1687,13 +1687,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1687
1687
|
consecutiveAssistantMessages?: number | undefined;
|
|
1688
1688
|
};
|
|
1689
1689
|
toolResults: {
|
|
1690
|
-
name: string;
|
|
1691
1690
|
id: string;
|
|
1691
|
+
name: string;
|
|
1692
1692
|
result: string;
|
|
1693
1693
|
}[];
|
|
1694
|
+
model?: string | undefined;
|
|
1694
1695
|
prompt?: string | undefined;
|
|
1695
1696
|
authToken?: string | undefined;
|
|
1696
|
-
model?: string | undefined;
|
|
1697
1697
|
}, {
|
|
1698
1698
|
type: "prompt";
|
|
1699
1699
|
promptId: string;
|
|
@@ -1735,9 +1735,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1735
1735
|
type: "ephemeral";
|
|
1736
1736
|
} | undefined;
|
|
1737
1737
|
} | {
|
|
1738
|
+
id: string;
|
|
1738
1739
|
type: "tool_use";
|
|
1739
1740
|
name: string;
|
|
1740
|
-
id: string;
|
|
1741
1741
|
input: Record<string, any>;
|
|
1742
1742
|
cache_control?: {
|
|
1743
1743
|
type: "ephemeral";
|
|
@@ -1765,14 +1765,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1765
1765
|
consecutiveAssistantMessages?: number | undefined;
|
|
1766
1766
|
};
|
|
1767
1767
|
toolResults: {
|
|
1768
|
-
name: string;
|
|
1769
1768
|
id: string;
|
|
1769
|
+
name: string;
|
|
1770
1770
|
result: string;
|
|
1771
1771
|
}[];
|
|
1772
|
+
model?: string | undefined;
|
|
1772
1773
|
prompt?: string | undefined;
|
|
1773
1774
|
authToken?: string | undefined;
|
|
1774
1775
|
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
1775
|
-
model?: string | undefined;
|
|
1776
1776
|
}>, z.ZodObject<{
|
|
1777
1777
|
type: z.ZodLiteral<"read-files-response">;
|
|
1778
1778
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -2020,9 +2020,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2020
2020
|
type: "ephemeral";
|
|
2021
2021
|
} | undefined;
|
|
2022
2022
|
} | {
|
|
2023
|
+
id: string;
|
|
2023
2024
|
type: "tool_use";
|
|
2024
2025
|
name: string;
|
|
2025
|
-
id: string;
|
|
2026
2026
|
input: Record<string, any>;
|
|
2027
2027
|
cache_control?: {
|
|
2028
2028
|
type: "ephemeral";
|
|
@@ -2050,13 +2050,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2050
2050
|
consecutiveAssistantMessages?: number | undefined;
|
|
2051
2051
|
};
|
|
2052
2052
|
toolResults: {
|
|
2053
|
-
name: string;
|
|
2054
2053
|
id: string;
|
|
2054
|
+
name: string;
|
|
2055
2055
|
result: string;
|
|
2056
2056
|
}[];
|
|
2057
|
+
model?: string | undefined;
|
|
2057
2058
|
prompt?: string | undefined;
|
|
2058
2059
|
authToken?: string | undefined;
|
|
2059
|
-
model?: string | undefined;
|
|
2060
2060
|
} | {
|
|
2061
2061
|
type: "read-files-response";
|
|
2062
2062
|
files: Record<string, string | null>;
|
|
@@ -2142,9 +2142,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2142
2142
|
type: "ephemeral";
|
|
2143
2143
|
} | undefined;
|
|
2144
2144
|
} | {
|
|
2145
|
+
id: string;
|
|
2145
2146
|
type: "tool_use";
|
|
2146
2147
|
name: string;
|
|
2147
|
-
id: string;
|
|
2148
2148
|
input: Record<string, any>;
|
|
2149
2149
|
cache_control?: {
|
|
2150
2150
|
type: "ephemeral";
|
|
@@ -2172,14 +2172,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2172
2172
|
consecutiveAssistantMessages?: number | undefined;
|
|
2173
2173
|
};
|
|
2174
2174
|
toolResults: {
|
|
2175
|
-
name: string;
|
|
2176
2175
|
id: string;
|
|
2176
|
+
name: string;
|
|
2177
2177
|
result: string;
|
|
2178
2178
|
}[];
|
|
2179
|
+
model?: string | undefined;
|
|
2179
2180
|
prompt?: string | undefined;
|
|
2180
2181
|
authToken?: string | undefined;
|
|
2181
2182
|
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
2182
|
-
model?: string | undefined;
|
|
2183
2183
|
} | {
|
|
2184
2184
|
type: "read-files-response";
|
|
2185
2185
|
files: Record<string, string | null>;
|
|
@@ -2505,17 +2505,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2505
2505
|
type: "ephemeral";
|
|
2506
2506
|
}>>;
|
|
2507
2507
|
}, "strip", z.ZodTypeAny, {
|
|
2508
|
+
id: string;
|
|
2508
2509
|
type: "tool_use";
|
|
2509
2510
|
name: string;
|
|
2510
|
-
id: string;
|
|
2511
2511
|
input: Record<string, any>;
|
|
2512
2512
|
cache_control?: {
|
|
2513
2513
|
type: "ephemeral";
|
|
2514
2514
|
} | undefined;
|
|
2515
2515
|
}, {
|
|
2516
|
+
id: string;
|
|
2516
2517
|
type: "tool_use";
|
|
2517
2518
|
name: string;
|
|
2518
|
-
id: string;
|
|
2519
2519
|
input: Record<string, any>;
|
|
2520
2520
|
cache_control?: {
|
|
2521
2521
|
type: "ephemeral";
|
|
@@ -2596,9 +2596,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2596
2596
|
type: "ephemeral";
|
|
2597
2597
|
} | undefined;
|
|
2598
2598
|
} | {
|
|
2599
|
+
id: string;
|
|
2599
2600
|
type: "tool_use";
|
|
2600
2601
|
name: string;
|
|
2601
|
-
id: string;
|
|
2602
2602
|
input: Record<string, any>;
|
|
2603
2603
|
cache_control?: {
|
|
2604
2604
|
type: "ephemeral";
|
|
@@ -2630,9 +2630,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2630
2630
|
type: "ephemeral";
|
|
2631
2631
|
} | undefined;
|
|
2632
2632
|
} | {
|
|
2633
|
+
id: string;
|
|
2633
2634
|
type: "tool_use";
|
|
2634
2635
|
name: string;
|
|
2635
|
-
id: string;
|
|
2636
2636
|
input: Record<string, any>;
|
|
2637
2637
|
cache_control?: {
|
|
2638
2638
|
type: "ephemeral";
|
|
@@ -2695,9 +2695,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2695
2695
|
type: "ephemeral";
|
|
2696
2696
|
} | undefined;
|
|
2697
2697
|
} | {
|
|
2698
|
+
id: string;
|
|
2698
2699
|
type: "tool_use";
|
|
2699
2700
|
name: string;
|
|
2700
|
-
id: string;
|
|
2701
2701
|
input: Record<string, any>;
|
|
2702
2702
|
cache_control?: {
|
|
2703
2703
|
type: "ephemeral";
|
|
@@ -2760,9 +2760,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2760
2760
|
type: "ephemeral";
|
|
2761
2761
|
} | undefined;
|
|
2762
2762
|
} | {
|
|
2763
|
+
id: string;
|
|
2763
2764
|
type: "tool_use";
|
|
2764
2765
|
name: string;
|
|
2765
|
-
id: string;
|
|
2766
2766
|
input: Record<string, any>;
|
|
2767
2767
|
cache_control?: {
|
|
2768
2768
|
type: "ephemeral";
|
|
@@ -2794,12 +2794,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2794
2794
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2795
2795
|
id: z.ZodString;
|
|
2796
2796
|
}, "strip", z.ZodTypeAny, {
|
|
2797
|
-
name: string;
|
|
2798
2797
|
id: string;
|
|
2798
|
+
name: string;
|
|
2799
2799
|
parameters: Record<string, string>;
|
|
2800
2800
|
}, {
|
|
2801
|
-
name: string;
|
|
2802
2801
|
id: string;
|
|
2802
|
+
name: string;
|
|
2803
2803
|
parameters: Record<string, string>;
|
|
2804
2804
|
}>, "many">;
|
|
2805
2805
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -2807,12 +2807,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2807
2807
|
result: z.ZodString;
|
|
2808
2808
|
id: z.ZodString;
|
|
2809
2809
|
}, "strip", z.ZodTypeAny, {
|
|
2810
|
-
name: string;
|
|
2811
2810
|
id: string;
|
|
2811
|
+
name: string;
|
|
2812
2812
|
result: string;
|
|
2813
2813
|
}, {
|
|
2814
|
-
name: string;
|
|
2815
2814
|
id: string;
|
|
2815
|
+
name: string;
|
|
2816
2816
|
result: string;
|
|
2817
2817
|
}>, "many">;
|
|
2818
2818
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2855,9 +2855,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2855
2855
|
type: "ephemeral";
|
|
2856
2856
|
} | undefined;
|
|
2857
2857
|
} | {
|
|
2858
|
+
id: string;
|
|
2858
2859
|
type: "tool_use";
|
|
2859
2860
|
name: string;
|
|
2860
|
-
id: string;
|
|
2861
2861
|
input: Record<string, any>;
|
|
2862
2862
|
cache_control?: {
|
|
2863
2863
|
type: "ephemeral";
|
|
@@ -2885,13 +2885,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2885
2885
|
consecutiveAssistantMessages?: number | undefined;
|
|
2886
2886
|
};
|
|
2887
2887
|
toolResults: {
|
|
2888
|
-
name: string;
|
|
2889
2888
|
id: string;
|
|
2889
|
+
name: string;
|
|
2890
2890
|
result: string;
|
|
2891
2891
|
}[];
|
|
2892
2892
|
toolCalls: {
|
|
2893
|
-
name: string;
|
|
2894
2893
|
id: string;
|
|
2894
|
+
name: string;
|
|
2895
2895
|
parameters: Record<string, string>;
|
|
2896
2896
|
}[];
|
|
2897
2897
|
}, {
|
|
@@ -2934,9 +2934,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2934
2934
|
type: "ephemeral";
|
|
2935
2935
|
} | undefined;
|
|
2936
2936
|
} | {
|
|
2937
|
+
id: string;
|
|
2937
2938
|
type: "tool_use";
|
|
2938
2939
|
name: string;
|
|
2939
|
-
id: string;
|
|
2940
2940
|
input: Record<string, any>;
|
|
2941
2941
|
cache_control?: {
|
|
2942
2942
|
type: "ephemeral";
|
|
@@ -2964,13 +2964,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2964
2964
|
consecutiveAssistantMessages?: number | undefined;
|
|
2965
2965
|
};
|
|
2966
2966
|
toolResults: {
|
|
2967
|
-
name: string;
|
|
2968
2967
|
id: string;
|
|
2968
|
+
name: string;
|
|
2969
2969
|
result: string;
|
|
2970
2970
|
}[];
|
|
2971
2971
|
toolCalls: {
|
|
2972
|
-
name: string;
|
|
2973
2972
|
id: string;
|
|
2973
|
+
name: string;
|
|
2974
2974
|
parameters: Record<string, string>;
|
|
2975
2975
|
}[];
|
|
2976
2976
|
}>, z.ZodObject<{
|
|
@@ -2994,12 +2994,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2994
2994
|
id: z.ZodString;
|
|
2995
2995
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2996
2996
|
}, "strip", z.ZodTypeAny, {
|
|
2997
|
-
name: string;
|
|
2998
2997
|
id: string;
|
|
2998
|
+
name: string;
|
|
2999
2999
|
input: Record<string, any>;
|
|
3000
3000
|
}, {
|
|
3001
|
-
name: string;
|
|
3002
3001
|
id: string;
|
|
3002
|
+
name: string;
|
|
3003
3003
|
input: Record<string, any>;
|
|
3004
3004
|
}>;
|
|
3005
3005
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -3042,8 +3042,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3042
3042
|
}, "strip", z.ZodTypeAny, {
|
|
3043
3043
|
type: "tool-call";
|
|
3044
3044
|
data: {
|
|
3045
|
-
name: string;
|
|
3046
3045
|
id: string;
|
|
3046
|
+
name: string;
|
|
3047
3047
|
input: Record<string, any>;
|
|
3048
3048
|
};
|
|
3049
3049
|
userInputId: string;
|
|
@@ -3066,8 +3066,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3066
3066
|
}, {
|
|
3067
3067
|
type: "tool-call";
|
|
3068
3068
|
data: {
|
|
3069
|
-
name: string;
|
|
3070
3069
|
id: string;
|
|
3070
|
+
name: string;
|
|
3071
3071
|
input: Record<string, any>;
|
|
3072
3072
|
};
|
|
3073
3073
|
userInputId: string;
|
|
@@ -3181,13 +3181,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3181
3181
|
}, "strip", z.ZodTypeAny, {
|
|
3182
3182
|
type: "action-error";
|
|
3183
3183
|
message: string;
|
|
3184
|
-
remainingBalance?: number | undefined;
|
|
3185
3184
|
error?: string | undefined;
|
|
3185
|
+
remainingBalance?: number | undefined;
|
|
3186
3186
|
}, {
|
|
3187
3187
|
type: "action-error";
|
|
3188
3188
|
message: string;
|
|
3189
|
-
remainingBalance?: number | undefined;
|
|
3190
3189
|
error?: string | undefined;
|
|
3190
|
+
remainingBalance?: number | undefined;
|
|
3191
3191
|
}>, z.ZodObject<{
|
|
3192
3192
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3193
3193
|
commitMessage: z.ZodString;
|
|
@@ -3291,9 +3291,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3291
3291
|
type: "ephemeral";
|
|
3292
3292
|
} | undefined;
|
|
3293
3293
|
} | {
|
|
3294
|
+
id: string;
|
|
3294
3295
|
type: "tool_use";
|
|
3295
3296
|
name: string;
|
|
3296
|
-
id: string;
|
|
3297
3297
|
input: Record<string, any>;
|
|
3298
3298
|
cache_control?: {
|
|
3299
3299
|
type: "ephemeral";
|
|
@@ -3321,13 +3321,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3321
3321
|
consecutiveAssistantMessages?: number | undefined;
|
|
3322
3322
|
};
|
|
3323
3323
|
toolResults: {
|
|
3324
|
-
name: string;
|
|
3325
3324
|
id: string;
|
|
3325
|
+
name: string;
|
|
3326
3326
|
result: string;
|
|
3327
3327
|
}[];
|
|
3328
3328
|
toolCalls: {
|
|
3329
|
-
name: string;
|
|
3330
3329
|
id: string;
|
|
3330
|
+
name: string;
|
|
3331
3331
|
parameters: Record<string, string>;
|
|
3332
3332
|
}[];
|
|
3333
3333
|
} | {
|
|
@@ -3341,8 +3341,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3341
3341
|
} | {
|
|
3342
3342
|
type: "tool-call";
|
|
3343
3343
|
data: {
|
|
3344
|
-
name: string;
|
|
3345
3344
|
id: string;
|
|
3345
|
+
name: string;
|
|
3346
3346
|
input: Record<string, any>;
|
|
3347
3347
|
};
|
|
3348
3348
|
userInputId: string;
|
|
@@ -3373,8 +3373,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3373
3373
|
} | {
|
|
3374
3374
|
type: "action-error";
|
|
3375
3375
|
message: string;
|
|
3376
|
-
remainingBalance?: number | undefined;
|
|
3377
3376
|
error?: string | undefined;
|
|
3377
|
+
remainingBalance?: number | undefined;
|
|
3378
3378
|
} | {
|
|
3379
3379
|
type: "commit-message-response";
|
|
3380
3380
|
commitMessage: string;
|
|
@@ -3468,9 +3468,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3468
3468
|
type: "ephemeral";
|
|
3469
3469
|
} | undefined;
|
|
3470
3470
|
} | {
|
|
3471
|
+
id: string;
|
|
3471
3472
|
type: "tool_use";
|
|
3472
3473
|
name: string;
|
|
3473
|
-
id: string;
|
|
3474
3474
|
input: Record<string, any>;
|
|
3475
3475
|
cache_control?: {
|
|
3476
3476
|
type: "ephemeral";
|
|
@@ -3498,13 +3498,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3498
3498
|
consecutiveAssistantMessages?: number | undefined;
|
|
3499
3499
|
};
|
|
3500
3500
|
toolResults: {
|
|
3501
|
-
name: string;
|
|
3502
3501
|
id: string;
|
|
3502
|
+
name: string;
|
|
3503
3503
|
result: string;
|
|
3504
3504
|
}[];
|
|
3505
3505
|
toolCalls: {
|
|
3506
|
-
name: string;
|
|
3507
3506
|
id: string;
|
|
3507
|
+
name: string;
|
|
3508
3508
|
parameters: Record<string, string>;
|
|
3509
3509
|
}[];
|
|
3510
3510
|
} | {
|
|
@@ -3518,8 +3518,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3518
3518
|
} | {
|
|
3519
3519
|
type: "tool-call";
|
|
3520
3520
|
data: {
|
|
3521
|
-
name: string;
|
|
3522
3521
|
id: string;
|
|
3522
|
+
name: string;
|
|
3523
3523
|
input: Record<string, any>;
|
|
3524
3524
|
};
|
|
3525
3525
|
userInputId: string;
|
|
@@ -3550,8 +3550,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3550
3550
|
} | {
|
|
3551
3551
|
type: "action-error";
|
|
3552
3552
|
message: string;
|
|
3553
|
-
remainingBalance?: number | undefined;
|
|
3554
3553
|
error?: string | undefined;
|
|
3554
|
+
remainingBalance?: number | undefined;
|
|
3555
3555
|
} | {
|
|
3556
3556
|
type: "commit-message-response";
|
|
3557
3557
|
commitMessage: string;
|
|
@@ -3838,17 +3838,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3838
3838
|
type: "ephemeral";
|
|
3839
3839
|
}>>;
|
|
3840
3840
|
}, "strip", z.ZodTypeAny, {
|
|
3841
|
+
id: string;
|
|
3841
3842
|
type: "tool_use";
|
|
3842
3843
|
name: string;
|
|
3843
|
-
id: string;
|
|
3844
3844
|
input: Record<string, any>;
|
|
3845
3845
|
cache_control?: {
|
|
3846
3846
|
type: "ephemeral";
|
|
3847
3847
|
} | undefined;
|
|
3848
3848
|
}, {
|
|
3849
|
+
id: string;
|
|
3849
3850
|
type: "tool_use";
|
|
3850
3851
|
name: string;
|
|
3851
|
-
id: string;
|
|
3852
3852
|
input: Record<string, any>;
|
|
3853
3853
|
cache_control?: {
|
|
3854
3854
|
type: "ephemeral";
|
|
@@ -3929,9 +3929,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3929
3929
|
type: "ephemeral";
|
|
3930
3930
|
} | undefined;
|
|
3931
3931
|
} | {
|
|
3932
|
+
id: string;
|
|
3932
3933
|
type: "tool_use";
|
|
3933
3934
|
name: string;
|
|
3934
|
-
id: string;
|
|
3935
3935
|
input: Record<string, any>;
|
|
3936
3936
|
cache_control?: {
|
|
3937
3937
|
type: "ephemeral";
|
|
@@ -3963,9 +3963,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3963
3963
|
type: "ephemeral";
|
|
3964
3964
|
} | undefined;
|
|
3965
3965
|
} | {
|
|
3966
|
+
id: string;
|
|
3966
3967
|
type: "tool_use";
|
|
3967
3968
|
name: string;
|
|
3968
|
-
id: string;
|
|
3969
3969
|
input: Record<string, any>;
|
|
3970
3970
|
cache_control?: {
|
|
3971
3971
|
type: "ephemeral";
|
|
@@ -4028,9 +4028,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4028
4028
|
type: "ephemeral";
|
|
4029
4029
|
} | undefined;
|
|
4030
4030
|
} | {
|
|
4031
|
+
id: string;
|
|
4031
4032
|
type: "tool_use";
|
|
4032
4033
|
name: string;
|
|
4033
|
-
id: string;
|
|
4034
4034
|
input: Record<string, any>;
|
|
4035
4035
|
cache_control?: {
|
|
4036
4036
|
type: "ephemeral";
|
|
@@ -4093,9 +4093,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4093
4093
|
type: "ephemeral";
|
|
4094
4094
|
} | undefined;
|
|
4095
4095
|
} | {
|
|
4096
|
+
id: string;
|
|
4096
4097
|
type: "tool_use";
|
|
4097
4098
|
name: string;
|
|
4098
|
-
id: string;
|
|
4099
4099
|
input: Record<string, any>;
|
|
4100
4100
|
cache_control?: {
|
|
4101
4101
|
type: "ephemeral";
|
|
@@ -4127,12 +4127,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4127
4127
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4128
4128
|
id: z.ZodString;
|
|
4129
4129
|
}, "strip", z.ZodTypeAny, {
|
|
4130
|
-
name: string;
|
|
4131
4130
|
id: string;
|
|
4131
|
+
name: string;
|
|
4132
4132
|
parameters: Record<string, string>;
|
|
4133
4133
|
}, {
|
|
4134
|
-
name: string;
|
|
4135
4134
|
id: string;
|
|
4135
|
+
name: string;
|
|
4136
4136
|
parameters: Record<string, string>;
|
|
4137
4137
|
}>, "many">;
|
|
4138
4138
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -4140,12 +4140,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4140
4140
|
result: z.ZodString;
|
|
4141
4141
|
id: z.ZodString;
|
|
4142
4142
|
}, "strip", z.ZodTypeAny, {
|
|
4143
|
-
name: string;
|
|
4144
4143
|
id: string;
|
|
4144
|
+
name: string;
|
|
4145
4145
|
result: string;
|
|
4146
4146
|
}, {
|
|
4147
|
-
name: string;
|
|
4148
4147
|
id: string;
|
|
4148
|
+
name: string;
|
|
4149
4149
|
result: string;
|
|
4150
4150
|
}>, "many">;
|
|
4151
4151
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4188,9 +4188,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4188
4188
|
type: "ephemeral";
|
|
4189
4189
|
} | undefined;
|
|
4190
4190
|
} | {
|
|
4191
|
+
id: string;
|
|
4191
4192
|
type: "tool_use";
|
|
4192
4193
|
name: string;
|
|
4193
|
-
id: string;
|
|
4194
4194
|
input: Record<string, any>;
|
|
4195
4195
|
cache_control?: {
|
|
4196
4196
|
type: "ephemeral";
|
|
@@ -4218,13 +4218,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4218
4218
|
consecutiveAssistantMessages?: number | undefined;
|
|
4219
4219
|
};
|
|
4220
4220
|
toolResults: {
|
|
4221
|
-
name: string;
|
|
4222
4221
|
id: string;
|
|
4222
|
+
name: string;
|
|
4223
4223
|
result: string;
|
|
4224
4224
|
}[];
|
|
4225
4225
|
toolCalls: {
|
|
4226
|
-
name: string;
|
|
4227
4226
|
id: string;
|
|
4227
|
+
name: string;
|
|
4228
4228
|
parameters: Record<string, string>;
|
|
4229
4229
|
}[];
|
|
4230
4230
|
}, {
|
|
@@ -4267,9 +4267,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4267
4267
|
type: "ephemeral";
|
|
4268
4268
|
} | undefined;
|
|
4269
4269
|
} | {
|
|
4270
|
+
id: string;
|
|
4270
4271
|
type: "tool_use";
|
|
4271
4272
|
name: string;
|
|
4272
|
-
id: string;
|
|
4273
4273
|
input: Record<string, any>;
|
|
4274
4274
|
cache_control?: {
|
|
4275
4275
|
type: "ephemeral";
|
|
@@ -4297,13 +4297,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4297
4297
|
consecutiveAssistantMessages?: number | undefined;
|
|
4298
4298
|
};
|
|
4299
4299
|
toolResults: {
|
|
4300
|
-
name: string;
|
|
4301
4300
|
id: string;
|
|
4301
|
+
name: string;
|
|
4302
4302
|
result: string;
|
|
4303
4303
|
}[];
|
|
4304
4304
|
toolCalls: {
|
|
4305
|
-
name: string;
|
|
4306
4305
|
id: string;
|
|
4306
|
+
name: string;
|
|
4307
4307
|
parameters: Record<string, string>;
|
|
4308
4308
|
}[];
|
|
4309
4309
|
}>, z.ZodObject<{
|
|
@@ -4327,12 +4327,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4327
4327
|
id: z.ZodString;
|
|
4328
4328
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
4329
4329
|
}, "strip", z.ZodTypeAny, {
|
|
4330
|
-
name: string;
|
|
4331
4330
|
id: string;
|
|
4331
|
+
name: string;
|
|
4332
4332
|
input: Record<string, any>;
|
|
4333
4333
|
}, {
|
|
4334
|
-
name: string;
|
|
4335
4334
|
id: string;
|
|
4335
|
+
name: string;
|
|
4336
4336
|
input: Record<string, any>;
|
|
4337
4337
|
}>;
|
|
4338
4338
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -4375,8 +4375,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4375
4375
|
}, "strip", z.ZodTypeAny, {
|
|
4376
4376
|
type: "tool-call";
|
|
4377
4377
|
data: {
|
|
4378
|
-
name: string;
|
|
4379
4378
|
id: string;
|
|
4379
|
+
name: string;
|
|
4380
4380
|
input: Record<string, any>;
|
|
4381
4381
|
};
|
|
4382
4382
|
userInputId: string;
|
|
@@ -4399,8 +4399,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4399
4399
|
}, {
|
|
4400
4400
|
type: "tool-call";
|
|
4401
4401
|
data: {
|
|
4402
|
-
name: string;
|
|
4403
4402
|
id: string;
|
|
4403
|
+
name: string;
|
|
4404
4404
|
input: Record<string, any>;
|
|
4405
4405
|
};
|
|
4406
4406
|
userInputId: string;
|
|
@@ -4514,13 +4514,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4514
4514
|
}, "strip", z.ZodTypeAny, {
|
|
4515
4515
|
type: "action-error";
|
|
4516
4516
|
message: string;
|
|
4517
|
-
remainingBalance?: number | undefined;
|
|
4518
4517
|
error?: string | undefined;
|
|
4518
|
+
remainingBalance?: number | undefined;
|
|
4519
4519
|
}, {
|
|
4520
4520
|
type: "action-error";
|
|
4521
4521
|
message: string;
|
|
4522
|
-
remainingBalance?: number | undefined;
|
|
4523
4522
|
error?: string | undefined;
|
|
4523
|
+
remainingBalance?: number | undefined;
|
|
4524
4524
|
}>, z.ZodObject<{
|
|
4525
4525
|
type: z.ZodLiteral<"commit-message-response">;
|
|
4526
4526
|
commitMessage: z.ZodString;
|
|
@@ -4624,9 +4624,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4624
4624
|
type: "ephemeral";
|
|
4625
4625
|
} | undefined;
|
|
4626
4626
|
} | {
|
|
4627
|
+
id: string;
|
|
4627
4628
|
type: "tool_use";
|
|
4628
4629
|
name: string;
|
|
4629
|
-
id: string;
|
|
4630
4630
|
input: Record<string, any>;
|
|
4631
4631
|
cache_control?: {
|
|
4632
4632
|
type: "ephemeral";
|
|
@@ -4654,13 +4654,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4654
4654
|
consecutiveAssistantMessages?: number | undefined;
|
|
4655
4655
|
};
|
|
4656
4656
|
toolResults: {
|
|
4657
|
-
name: string;
|
|
4658
4657
|
id: string;
|
|
4658
|
+
name: string;
|
|
4659
4659
|
result: string;
|
|
4660
4660
|
}[];
|
|
4661
4661
|
toolCalls: {
|
|
4662
|
-
name: string;
|
|
4663
4662
|
id: string;
|
|
4663
|
+
name: string;
|
|
4664
4664
|
parameters: Record<string, string>;
|
|
4665
4665
|
}[];
|
|
4666
4666
|
} | {
|
|
@@ -4674,8 +4674,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4674
4674
|
} | {
|
|
4675
4675
|
type: "tool-call";
|
|
4676
4676
|
data: {
|
|
4677
|
-
name: string;
|
|
4678
4677
|
id: string;
|
|
4678
|
+
name: string;
|
|
4679
4679
|
input: Record<string, any>;
|
|
4680
4680
|
};
|
|
4681
4681
|
userInputId: string;
|
|
@@ -4706,8 +4706,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4706
4706
|
} | {
|
|
4707
4707
|
type: "action-error";
|
|
4708
4708
|
message: string;
|
|
4709
|
-
remainingBalance?: number | undefined;
|
|
4710
4709
|
error?: string | undefined;
|
|
4710
|
+
remainingBalance?: number | undefined;
|
|
4711
4711
|
} | {
|
|
4712
4712
|
type: "commit-message-response";
|
|
4713
4713
|
commitMessage: string;
|
|
@@ -4801,9 +4801,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4801
4801
|
type: "ephemeral";
|
|
4802
4802
|
} | undefined;
|
|
4803
4803
|
} | {
|
|
4804
|
+
id: string;
|
|
4804
4805
|
type: "tool_use";
|
|
4805
4806
|
name: string;
|
|
4806
|
-
id: string;
|
|
4807
4807
|
input: Record<string, any>;
|
|
4808
4808
|
cache_control?: {
|
|
4809
4809
|
type: "ephemeral";
|
|
@@ -4831,13 +4831,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4831
4831
|
consecutiveAssistantMessages?: number | undefined;
|
|
4832
4832
|
};
|
|
4833
4833
|
toolResults: {
|
|
4834
|
-
name: string;
|
|
4835
4834
|
id: string;
|
|
4835
|
+
name: string;
|
|
4836
4836
|
result: string;
|
|
4837
4837
|
}[];
|
|
4838
4838
|
toolCalls: {
|
|
4839
|
-
name: string;
|
|
4840
4839
|
id: string;
|
|
4840
|
+
name: string;
|
|
4841
4841
|
parameters: Record<string, string>;
|
|
4842
4842
|
}[];
|
|
4843
4843
|
} | {
|
|
@@ -4851,8 +4851,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4851
4851
|
} | {
|
|
4852
4852
|
type: "tool-call";
|
|
4853
4853
|
data: {
|
|
4854
|
-
name: string;
|
|
4855
4854
|
id: string;
|
|
4855
|
+
name: string;
|
|
4856
4856
|
input: Record<string, any>;
|
|
4857
4857
|
};
|
|
4858
4858
|
userInputId: string;
|
|
@@ -4883,8 +4883,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4883
4883
|
} | {
|
|
4884
4884
|
type: "action-error";
|
|
4885
4885
|
message: string;
|
|
4886
|
-
remainingBalance?: number | undefined;
|
|
4887
4886
|
error?: string | undefined;
|
|
4887
|
+
remainingBalance?: number | undefined;
|
|
4888
4888
|
} | {
|
|
4889
4889
|
type: "commit-message-response";
|
|
4890
4890
|
commitMessage: string;
|