codecane 1.0.243 → 1.0.246
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/cli.js +29 -14
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +15 -7
- package/dist/client.js +54 -38
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +54 -72
- package/dist/common/actions.d.ts.map +1 -0
- package/dist/common/actions.js +0 -1
- package/dist/common/actions.js.map +1 -1
- package/dist/common/analytics/client.d.ts +5 -0
- package/dist/common/analytics/client.js +65 -0
- package/dist/common/analytics/client.js.map +1 -0
- package/dist/common/analytics/events.d.ts +7 -0
- package/dist/common/analytics/events.js +14 -0
- package/dist/common/analytics/events.js.map +1 -0
- package/dist/common/api-keys/constants.d.ts.map +1 -0
- package/dist/common/api-keys/crypto.d.ts.map +1 -0
- package/dist/common/bigquery/client.d.ts.map +1 -0
- package/dist/common/bigquery/client.js +29 -10
- package/dist/common/bigquery/client.js.map +1 -1
- package/dist/common/bigquery/schema.d.ts.map +1 -0
- package/dist/common/billing/auto-topup.d.ts.map +1 -0
- package/dist/common/billing/balance-calculator.d.ts.map +1 -0
- package/dist/common/billing/conversion.d.ts.map +1 -0
- package/dist/common/billing/credit-conversion.d.ts.map +1 -0
- package/dist/common/billing/grant-credits.d.ts.map +1 -0
- package/dist/common/billing/plans.d.ts.map +1 -0
- package/dist/common/billing/utils.d.ts +8 -0
- package/dist/common/billing/utils.js +14 -0
- package/dist/common/billing/utils.js.map +1 -0
- package/dist/common/browser-actions.d.ts +260 -260
- package/dist/common/browser-actions.d.ts.map +1 -0
- package/dist/common/constants/analytics-events.d.ts.map +1 -0
- package/dist/common/constants/grant-priorities.d.ts.map +1 -0
- package/dist/common/constants/tools.d.ts.map +1 -0
- package/dist/common/constants.d.ts +13 -32
- package/dist/common/constants.d.ts.map +1 -0
- package/dist/common/constants.js +23 -72
- package/dist/common/constants.js.map +1 -1
- package/dist/common/db/drizzle.config.d.mts +2 -0
- package/dist/common/db/drizzle.config.d.ts.map +1 -0
- package/dist/common/db/drizzle.config.mjs +12 -0
- package/dist/common/db/drizzle.config.mjs.map +1 -0
- package/dist/common/db/env.d.mts.map +1 -0
- package/dist/common/db/index.d.mts +5 -0
- package/dist/common/db/index.d.ts.map +1 -0
- package/dist/common/db/index.mjs +10 -0
- package/dist/common/db/index.mjs.map +1 -0
- package/dist/common/db/schema.d.ts +1 -1
- package/dist/common/db/schema.d.ts.map +1 -0
- package/dist/common/db/transaction.d.ts.map +1 -0
- package/dist/common/env.d.mts.map +1 -0
- package/dist/common/env.d.ts +9 -0
- package/dist/common/env.js +30 -0
- package/dist/common/env.js.map +1 -0
- package/dist/common/env.mjs +1 -0
- package/dist/common/env.mjs.map +1 -1
- package/dist/common/json-config/__tests__/stringify-schema.test.d.ts.map +1 -0
- package/dist/common/json-config/constants.d.ts.map +1 -0
- package/dist/common/json-config/parser.d.ts.map +1 -0
- package/dist/common/json-config/stringify-schema.d.ts.map +1 -0
- package/dist/common/project-file-tree.d.ts.map +1 -0
- package/dist/common/types/agent-state.d.ts +24 -24
- package/dist/common/types/agent-state.d.ts.map +1 -0
- package/dist/common/types/grant.d.ts.map +1 -0
- package/dist/common/types/message.d.ts +22 -22
- package/dist/common/types/message.d.ts.map +1 -0
- package/dist/common/types/plan.d.ts.map +1 -0
- package/dist/common/types/referral.d.ts.map +1 -0
- package/dist/common/types/tools.d.ts.map +1 -0
- package/dist/common/types/usage.d.ts +6 -9
- package/dist/common/types/usage.d.ts.map +1 -0
- package/dist/common/types/usage.js +0 -1
- package/dist/common/types/usage.js.map +1 -1
- package/dist/common/util/__tests__/messages.test.d.ts.map +1 -0
- package/dist/common/util/__tests__/saxy.test.d.ts.map +1 -0
- package/dist/common/util/__tests__/string.test.d.ts.map +1 -0
- package/dist/common/util/array.d.ts.map +1 -0
- package/dist/common/util/changes.d.ts.map +1 -0
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/credentials.d.ts.map +1 -0
- package/dist/common/util/currency.d.ts +14 -0
- package/dist/common/util/currency.js +23 -0
- package/dist/common/util/currency.js.map +1 -0
- package/dist/common/util/dates.d.ts.map +1 -0
- package/dist/common/util/file.d.ts.map +1 -0
- package/dist/common/util/git.d.ts.map +1 -0
- package/dist/common/util/logger.d.ts.map +1 -0
- package/dist/common/util/lru-cache.d.ts.map +1 -0
- package/dist/common/util/messages.d.ts.map +1 -0
- package/dist/common/util/min-heap.d.ts.map +1 -0
- package/dist/common/util/object.d.ts.map +1 -0
- package/dist/common/util/patch.d.ts.map +1 -0
- package/dist/common/util/promise.d.ts.map +1 -0
- package/dist/common/util/referral.d.ts.map +1 -0
- package/dist/common/util/saxy.d.ts.map +1 -0
- package/dist/common/util/server/referral.d.ts.map +1 -0
- package/dist/common/util/server/referral.js.map +1 -1
- package/dist/common/util/string.d.ts.map +1 -0
- package/dist/common/util/stripe.d.ts.map +1 -0
- package/dist/common/util/sync-failure.d.ts.map +1 -0
- package/dist/common/websockets/websocket-client.d.ts.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +104 -134
- package/dist/common/websockets/websocket-schema.d.ts.map +1 -0
- package/dist/types.d.ts +6 -0
- package/dist/utils/analytics.js +9 -3
- package/dist/utils/analytics.js.map +1 -1
- package/dist/utils/logger.js +55 -32
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/terminal.d.ts +3 -0
- package/dist/utils/terminal.js +26 -19
- package/dist/utils/terminal.js.map +1 -1
- package/dist/utils/tool-renderers.js +6 -6
- package/dist/utils/tool-renderers.js.map +1 -1
- package/package.json +5 -2
- 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;
|
|
211
210
|
type: "tool_use";
|
|
212
211
|
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;
|
|
219
218
|
type: "tool_use";
|
|
220
219
|
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;
|
|
302
301
|
type: "tool_use";
|
|
303
302
|
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;
|
|
336
335
|
type: "tool_use";
|
|
337
336
|
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;
|
|
401
400
|
type: "tool_use";
|
|
402
401
|
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;
|
|
466
465
|
type: "tool_use";
|
|
467
466
|
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
|
-
id: string;
|
|
500
499
|
name: string;
|
|
500
|
+
id: string;
|
|
501
501
|
result: string;
|
|
502
502
|
}, {
|
|
503
|
-
id: string;
|
|
504
503
|
name: string;
|
|
504
|
+
id: 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;
|
|
551
550
|
type: "tool_use";
|
|
552
551
|
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
|
-
id: string;
|
|
581
580
|
name: string;
|
|
581
|
+
id: string;
|
|
582
582
|
result: string;
|
|
583
583
|
}[];
|
|
584
|
-
model?: string | undefined;
|
|
585
584
|
prompt?: string | undefined;
|
|
586
585
|
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;
|
|
629
628
|
type: "tool_use";
|
|
630
629
|
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
|
-
id: string;
|
|
659
658
|
name: string;
|
|
659
|
+
id: string;
|
|
660
660
|
result: string;
|
|
661
661
|
}[];
|
|
662
|
-
model?: string | undefined;
|
|
663
662
|
prompt?: string | undefined;
|
|
664
663
|
authToken?: string | undefined;
|
|
665
664
|
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;
|
|
914
913
|
type: "tool_use";
|
|
915
914
|
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
|
-
id: string;
|
|
944
943
|
name: string;
|
|
944
|
+
id: string;
|
|
945
945
|
result: string;
|
|
946
946
|
}[];
|
|
947
|
-
model?: string | undefined;
|
|
948
947
|
prompt?: string | undefined;
|
|
949
948
|
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;
|
|
1036
1035
|
type: "tool_use";
|
|
1037
1036
|
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
|
-
id: string;
|
|
1066
1065
|
name: string;
|
|
1066
|
+
id: string;
|
|
1067
1067
|
result: string;
|
|
1068
1068
|
}[];
|
|
1069
|
-
model?: string | undefined;
|
|
1070
1069
|
prompt?: string | undefined;
|
|
1071
1070
|
authToken?: string | undefined;
|
|
1072
1071
|
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;
|
|
1321
1320
|
type: "tool_use";
|
|
1322
1321
|
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;
|
|
1329
1328
|
type: "tool_use";
|
|
1330
1329
|
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;
|
|
1412
1411
|
type: "tool_use";
|
|
1413
1412
|
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;
|
|
1446
1445
|
type: "tool_use";
|
|
1447
1446
|
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;
|
|
1511
1510
|
type: "tool_use";
|
|
1512
1511
|
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;
|
|
1576
1575
|
type: "tool_use";
|
|
1577
1576
|
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
|
-
id: string;
|
|
1610
1609
|
name: string;
|
|
1610
|
+
id: string;
|
|
1611
1611
|
result: string;
|
|
1612
1612
|
}, {
|
|
1613
|
-
id: string;
|
|
1614
1613
|
name: string;
|
|
1614
|
+
id: 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;
|
|
1661
1660
|
type: "tool_use";
|
|
1662
1661
|
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
|
-
id: string;
|
|
1691
1690
|
name: string;
|
|
1691
|
+
id: string;
|
|
1692
1692
|
result: string;
|
|
1693
1693
|
}[];
|
|
1694
|
-
model?: string | undefined;
|
|
1695
1694
|
prompt?: string | undefined;
|
|
1696
1695
|
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;
|
|
1739
1738
|
type: "tool_use";
|
|
1740
1739
|
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
|
-
id: string;
|
|
1769
1768
|
name: string;
|
|
1769
|
+
id: string;
|
|
1770
1770
|
result: string;
|
|
1771
1771
|
}[];
|
|
1772
|
-
model?: string | undefined;
|
|
1773
1772
|
prompt?: string | undefined;
|
|
1774
1773
|
authToken?: string | undefined;
|
|
1775
1774
|
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;
|
|
2024
2023
|
type: "tool_use";
|
|
2025
2024
|
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
|
-
id: string;
|
|
2054
2053
|
name: string;
|
|
2054
|
+
id: string;
|
|
2055
2055
|
result: string;
|
|
2056
2056
|
}[];
|
|
2057
|
-
model?: string | undefined;
|
|
2058
2057
|
prompt?: string | undefined;
|
|
2059
2058
|
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;
|
|
2146
2145
|
type: "tool_use";
|
|
2147
2146
|
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
|
-
id: string;
|
|
2176
2175
|
name: string;
|
|
2176
|
+
id: string;
|
|
2177
2177
|
result: string;
|
|
2178
2178
|
}[];
|
|
2179
|
-
model?: string | undefined;
|
|
2180
2179
|
prompt?: string | undefined;
|
|
2181
2180
|
authToken?: string | undefined;
|
|
2182
2181
|
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>;
|
|
@@ -2302,7 +2302,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2302
2302
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
2303
2303
|
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("../types/grant").GrantType, ...import("../types/grant").GrantType[]]>, z.ZodNumber>>>;
|
|
2304
2304
|
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2305
|
-
nextMonthlyGrant: z.ZodOptional<z.ZodNumber>;
|
|
2306
2305
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2307
2306
|
}>, "strip", z.ZodTypeAny, {
|
|
2308
2307
|
type: "response-complete";
|
|
@@ -2327,7 +2326,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2327
2326
|
remainingBalance?: number | undefined;
|
|
2328
2327
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
2329
2328
|
next_quota_reset?: Date | null | undefined;
|
|
2330
|
-
nextMonthlyGrant?: number | undefined;
|
|
2331
2329
|
autoTopupAdded?: number | undefined;
|
|
2332
2330
|
}, {
|
|
2333
2331
|
type: "response-complete";
|
|
@@ -2352,7 +2350,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2352
2350
|
remainingBalance?: number | undefined;
|
|
2353
2351
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
2354
2352
|
next_quota_reset?: Date | null | undefined;
|
|
2355
|
-
nextMonthlyGrant?: number | undefined;
|
|
2356
2353
|
autoTopupAdded?: number | undefined;
|
|
2357
2354
|
}>, z.ZodObject<{
|
|
2358
2355
|
type: z.ZodLiteral<"prompt-response">;
|
|
@@ -2505,17 +2502,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2505
2502
|
type: "ephemeral";
|
|
2506
2503
|
}>>;
|
|
2507
2504
|
}, "strip", z.ZodTypeAny, {
|
|
2508
|
-
id: string;
|
|
2509
2505
|
type: "tool_use";
|
|
2510
2506
|
name: string;
|
|
2507
|
+
id: string;
|
|
2511
2508
|
input: Record<string, any>;
|
|
2512
2509
|
cache_control?: {
|
|
2513
2510
|
type: "ephemeral";
|
|
2514
2511
|
} | undefined;
|
|
2515
2512
|
}, {
|
|
2516
|
-
id: string;
|
|
2517
2513
|
type: "tool_use";
|
|
2518
2514
|
name: string;
|
|
2515
|
+
id: string;
|
|
2519
2516
|
input: Record<string, any>;
|
|
2520
2517
|
cache_control?: {
|
|
2521
2518
|
type: "ephemeral";
|
|
@@ -2596,9 +2593,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2596
2593
|
type: "ephemeral";
|
|
2597
2594
|
} | undefined;
|
|
2598
2595
|
} | {
|
|
2599
|
-
id: string;
|
|
2600
2596
|
type: "tool_use";
|
|
2601
2597
|
name: string;
|
|
2598
|
+
id: string;
|
|
2602
2599
|
input: Record<string, any>;
|
|
2603
2600
|
cache_control?: {
|
|
2604
2601
|
type: "ephemeral";
|
|
@@ -2630,9 +2627,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2630
2627
|
type: "ephemeral";
|
|
2631
2628
|
} | undefined;
|
|
2632
2629
|
} | {
|
|
2633
|
-
id: string;
|
|
2634
2630
|
type: "tool_use";
|
|
2635
2631
|
name: string;
|
|
2632
|
+
id: string;
|
|
2636
2633
|
input: Record<string, any>;
|
|
2637
2634
|
cache_control?: {
|
|
2638
2635
|
type: "ephemeral";
|
|
@@ -2695,9 +2692,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2695
2692
|
type: "ephemeral";
|
|
2696
2693
|
} | undefined;
|
|
2697
2694
|
} | {
|
|
2698
|
-
id: string;
|
|
2699
2695
|
type: "tool_use";
|
|
2700
2696
|
name: string;
|
|
2697
|
+
id: string;
|
|
2701
2698
|
input: Record<string, any>;
|
|
2702
2699
|
cache_control?: {
|
|
2703
2700
|
type: "ephemeral";
|
|
@@ -2760,9 +2757,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2760
2757
|
type: "ephemeral";
|
|
2761
2758
|
} | undefined;
|
|
2762
2759
|
} | {
|
|
2763
|
-
id: string;
|
|
2764
2760
|
type: "tool_use";
|
|
2765
2761
|
name: string;
|
|
2762
|
+
id: string;
|
|
2766
2763
|
input: Record<string, any>;
|
|
2767
2764
|
cache_control?: {
|
|
2768
2765
|
type: "ephemeral";
|
|
@@ -2794,12 +2791,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2794
2791
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2795
2792
|
id: z.ZodString;
|
|
2796
2793
|
}, "strip", z.ZodTypeAny, {
|
|
2797
|
-
id: string;
|
|
2798
2794
|
name: string;
|
|
2795
|
+
id: string;
|
|
2799
2796
|
parameters: Record<string, string>;
|
|
2800
2797
|
}, {
|
|
2801
|
-
id: string;
|
|
2802
2798
|
name: string;
|
|
2799
|
+
id: string;
|
|
2803
2800
|
parameters: Record<string, string>;
|
|
2804
2801
|
}>, "many">;
|
|
2805
2802
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -2807,12 +2804,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2807
2804
|
result: z.ZodString;
|
|
2808
2805
|
id: z.ZodString;
|
|
2809
2806
|
}, "strip", z.ZodTypeAny, {
|
|
2810
|
-
id: string;
|
|
2811
2807
|
name: string;
|
|
2808
|
+
id: string;
|
|
2812
2809
|
result: string;
|
|
2813
2810
|
}, {
|
|
2814
|
-
id: string;
|
|
2815
2811
|
name: string;
|
|
2812
|
+
id: string;
|
|
2816
2813
|
result: string;
|
|
2817
2814
|
}>, "many">;
|
|
2818
2815
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2855,9 +2852,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2855
2852
|
type: "ephemeral";
|
|
2856
2853
|
} | undefined;
|
|
2857
2854
|
} | {
|
|
2858
|
-
id: string;
|
|
2859
2855
|
type: "tool_use";
|
|
2860
2856
|
name: string;
|
|
2857
|
+
id: string;
|
|
2861
2858
|
input: Record<string, any>;
|
|
2862
2859
|
cache_control?: {
|
|
2863
2860
|
type: "ephemeral";
|
|
@@ -2885,13 +2882,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2885
2882
|
consecutiveAssistantMessages?: number | undefined;
|
|
2886
2883
|
};
|
|
2887
2884
|
toolResults: {
|
|
2888
|
-
id: string;
|
|
2889
2885
|
name: string;
|
|
2886
|
+
id: string;
|
|
2890
2887
|
result: string;
|
|
2891
2888
|
}[];
|
|
2892
2889
|
toolCalls: {
|
|
2893
|
-
id: string;
|
|
2894
2890
|
name: string;
|
|
2891
|
+
id: string;
|
|
2895
2892
|
parameters: Record<string, string>;
|
|
2896
2893
|
}[];
|
|
2897
2894
|
}, {
|
|
@@ -2934,9 +2931,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2934
2931
|
type: "ephemeral";
|
|
2935
2932
|
} | undefined;
|
|
2936
2933
|
} | {
|
|
2937
|
-
id: string;
|
|
2938
2934
|
type: "tool_use";
|
|
2939
2935
|
name: string;
|
|
2936
|
+
id: string;
|
|
2940
2937
|
input: Record<string, any>;
|
|
2941
2938
|
cache_control?: {
|
|
2942
2939
|
type: "ephemeral";
|
|
@@ -2964,13 +2961,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2964
2961
|
consecutiveAssistantMessages?: number | undefined;
|
|
2965
2962
|
};
|
|
2966
2963
|
toolResults: {
|
|
2967
|
-
id: string;
|
|
2968
2964
|
name: string;
|
|
2965
|
+
id: string;
|
|
2969
2966
|
result: string;
|
|
2970
2967
|
}[];
|
|
2971
2968
|
toolCalls: {
|
|
2972
|
-
id: string;
|
|
2973
2969
|
name: string;
|
|
2970
|
+
id: string;
|
|
2974
2971
|
parameters: Record<string, string>;
|
|
2975
2972
|
}[];
|
|
2976
2973
|
}>, z.ZodObject<{
|
|
@@ -2994,12 +2991,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2994
2991
|
id: z.ZodString;
|
|
2995
2992
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2996
2993
|
}, "strip", z.ZodTypeAny, {
|
|
2997
|
-
id: string;
|
|
2998
2994
|
name: string;
|
|
2995
|
+
id: string;
|
|
2999
2996
|
input: Record<string, any>;
|
|
3000
2997
|
}, {
|
|
3001
|
-
id: string;
|
|
3002
2998
|
name: string;
|
|
2999
|
+
id: string;
|
|
3003
3000
|
input: Record<string, any>;
|
|
3004
3001
|
}>;
|
|
3005
3002
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -3042,8 +3039,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3042
3039
|
}, "strip", z.ZodTypeAny, {
|
|
3043
3040
|
type: "tool-call";
|
|
3044
3041
|
data: {
|
|
3045
|
-
id: string;
|
|
3046
3042
|
name: string;
|
|
3043
|
+
id: string;
|
|
3047
3044
|
input: Record<string, any>;
|
|
3048
3045
|
};
|
|
3049
3046
|
userInputId: string;
|
|
@@ -3066,8 +3063,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3066
3063
|
}, {
|
|
3067
3064
|
type: "tool-call";
|
|
3068
3065
|
data: {
|
|
3069
|
-
id: string;
|
|
3070
3066
|
name: string;
|
|
3067
|
+
id: string;
|
|
3071
3068
|
input: Record<string, any>;
|
|
3072
3069
|
};
|
|
3073
3070
|
userInputId: string;
|
|
@@ -3119,14 +3116,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3119
3116
|
remainingBalance: z.ZodNumber;
|
|
3120
3117
|
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("../types/grant").GrantType, ...import("../types/grant").GrantType[]]>, z.ZodNumber>>;
|
|
3121
3118
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
3122
|
-
nextMonthlyGrant: z.ZodNumber;
|
|
3123
3119
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3124
3120
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
3125
3121
|
type: "init-response";
|
|
3126
3122
|
usage: number;
|
|
3127
3123
|
remainingBalance: number;
|
|
3128
3124
|
next_quota_reset: Date | null;
|
|
3129
|
-
nextMonthlyGrant: number;
|
|
3130
3125
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3131
3126
|
autoTopupAdded?: number | undefined;
|
|
3132
3127
|
}, {
|
|
@@ -3134,7 +3129,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3134
3129
|
usage: number;
|
|
3135
3130
|
remainingBalance: number;
|
|
3136
3131
|
next_quota_reset: Date | null;
|
|
3137
|
-
nextMonthlyGrant: number;
|
|
3138
3132
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3139
3133
|
autoTopupAdded?: number | undefined;
|
|
3140
3134
|
}>, z.ZodObject<{
|
|
@@ -3143,14 +3137,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3143
3137
|
remainingBalance: z.ZodNumber;
|
|
3144
3138
|
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("../types/grant").GrantType, ...import("../types/grant").GrantType[]]>, z.ZodNumber>>;
|
|
3145
3139
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
3146
|
-
nextMonthlyGrant: z.ZodNumber;
|
|
3147
3140
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3148
3141
|
}, "strip", z.ZodTypeAny, {
|
|
3149
3142
|
type: "usage-response";
|
|
3150
3143
|
usage: number;
|
|
3151
3144
|
remainingBalance: number;
|
|
3152
3145
|
next_quota_reset: Date | null;
|
|
3153
|
-
nextMonthlyGrant: number;
|
|
3154
3146
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3155
3147
|
autoTopupAdded?: number | undefined;
|
|
3156
3148
|
}, {
|
|
@@ -3158,7 +3150,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3158
3150
|
usage: number;
|
|
3159
3151
|
remainingBalance: number;
|
|
3160
3152
|
next_quota_reset: Date | null;
|
|
3161
|
-
nextMonthlyGrant: number;
|
|
3162
3153
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3163
3154
|
autoTopupAdded?: number | undefined;
|
|
3164
3155
|
}>, z.ZodObject<{
|
|
@@ -3181,13 +3172,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3181
3172
|
}, "strip", z.ZodTypeAny, {
|
|
3182
3173
|
type: "action-error";
|
|
3183
3174
|
message: string;
|
|
3184
|
-
error?: string | undefined;
|
|
3185
3175
|
remainingBalance?: number | undefined;
|
|
3176
|
+
error?: string | undefined;
|
|
3186
3177
|
}, {
|
|
3187
3178
|
type: "action-error";
|
|
3188
3179
|
message: string;
|
|
3189
|
-
error?: string | undefined;
|
|
3190
3180
|
remainingBalance?: number | undefined;
|
|
3181
|
+
error?: string | undefined;
|
|
3191
3182
|
}>, z.ZodObject<{
|
|
3192
3183
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3193
3184
|
commitMessage: z.ZodString;
|
|
@@ -3211,7 +3202,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3211
3202
|
usage: number;
|
|
3212
3203
|
remainingBalance: number;
|
|
3213
3204
|
next_quota_reset: Date | null;
|
|
3214
|
-
nextMonthlyGrant: number;
|
|
3215
3205
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3216
3206
|
autoTopupAdded?: number | undefined;
|
|
3217
3207
|
} | {
|
|
@@ -3219,7 +3209,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3219
3209
|
usage: number;
|
|
3220
3210
|
remainingBalance: number;
|
|
3221
3211
|
next_quota_reset: Date | null;
|
|
3222
|
-
nextMonthlyGrant: number;
|
|
3223
3212
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3224
3213
|
autoTopupAdded?: number | undefined;
|
|
3225
3214
|
} | {
|
|
@@ -3245,7 +3234,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3245
3234
|
remainingBalance?: number | undefined;
|
|
3246
3235
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3247
3236
|
next_quota_reset?: Date | null | undefined;
|
|
3248
|
-
nextMonthlyGrant?: number | undefined;
|
|
3249
3237
|
autoTopupAdded?: number | undefined;
|
|
3250
3238
|
} | {
|
|
3251
3239
|
type: "message-cost-response";
|
|
@@ -3291,9 +3279,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3291
3279
|
type: "ephemeral";
|
|
3292
3280
|
} | undefined;
|
|
3293
3281
|
} | {
|
|
3294
|
-
id: string;
|
|
3295
3282
|
type: "tool_use";
|
|
3296
3283
|
name: string;
|
|
3284
|
+
id: string;
|
|
3297
3285
|
input: Record<string, any>;
|
|
3298
3286
|
cache_control?: {
|
|
3299
3287
|
type: "ephemeral";
|
|
@@ -3321,13 +3309,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3321
3309
|
consecutiveAssistantMessages?: number | undefined;
|
|
3322
3310
|
};
|
|
3323
3311
|
toolResults: {
|
|
3324
|
-
id: string;
|
|
3325
3312
|
name: string;
|
|
3313
|
+
id: string;
|
|
3326
3314
|
result: string;
|
|
3327
3315
|
}[];
|
|
3328
3316
|
toolCalls: {
|
|
3329
|
-
id: string;
|
|
3330
3317
|
name: string;
|
|
3318
|
+
id: string;
|
|
3331
3319
|
parameters: Record<string, string>;
|
|
3332
3320
|
}[];
|
|
3333
3321
|
} | {
|
|
@@ -3341,8 +3329,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3341
3329
|
} | {
|
|
3342
3330
|
type: "tool-call";
|
|
3343
3331
|
data: {
|
|
3344
|
-
id: string;
|
|
3345
3332
|
name: string;
|
|
3333
|
+
id: string;
|
|
3346
3334
|
input: Record<string, any>;
|
|
3347
3335
|
};
|
|
3348
3336
|
userInputId: string;
|
|
@@ -3373,8 +3361,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3373
3361
|
} | {
|
|
3374
3362
|
type: "action-error";
|
|
3375
3363
|
message: string;
|
|
3376
|
-
error?: string | undefined;
|
|
3377
3364
|
remainingBalance?: number | undefined;
|
|
3365
|
+
error?: string | undefined;
|
|
3378
3366
|
} | {
|
|
3379
3367
|
type: "commit-message-response";
|
|
3380
3368
|
commitMessage: string;
|
|
@@ -3388,7 +3376,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3388
3376
|
usage: number;
|
|
3389
3377
|
remainingBalance: number;
|
|
3390
3378
|
next_quota_reset: Date | null;
|
|
3391
|
-
nextMonthlyGrant: number;
|
|
3392
3379
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3393
3380
|
autoTopupAdded?: number | undefined;
|
|
3394
3381
|
} | {
|
|
@@ -3396,7 +3383,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3396
3383
|
usage: number;
|
|
3397
3384
|
remainingBalance: number;
|
|
3398
3385
|
next_quota_reset: Date | null;
|
|
3399
|
-
nextMonthlyGrant: number;
|
|
3400
3386
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3401
3387
|
autoTopupAdded?: number | undefined;
|
|
3402
3388
|
} | {
|
|
@@ -3422,7 +3408,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3422
3408
|
remainingBalance?: number | undefined;
|
|
3423
3409
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3424
3410
|
next_quota_reset?: Date | null | undefined;
|
|
3425
|
-
nextMonthlyGrant?: number | undefined;
|
|
3426
3411
|
autoTopupAdded?: number | undefined;
|
|
3427
3412
|
} | {
|
|
3428
3413
|
type: "message-cost-response";
|
|
@@ -3468,9 +3453,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3468
3453
|
type: "ephemeral";
|
|
3469
3454
|
} | undefined;
|
|
3470
3455
|
} | {
|
|
3471
|
-
id: string;
|
|
3472
3456
|
type: "tool_use";
|
|
3473
3457
|
name: string;
|
|
3458
|
+
id: string;
|
|
3474
3459
|
input: Record<string, any>;
|
|
3475
3460
|
cache_control?: {
|
|
3476
3461
|
type: "ephemeral";
|
|
@@ -3498,13 +3483,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3498
3483
|
consecutiveAssistantMessages?: number | undefined;
|
|
3499
3484
|
};
|
|
3500
3485
|
toolResults: {
|
|
3501
|
-
id: string;
|
|
3502
3486
|
name: string;
|
|
3487
|
+
id: string;
|
|
3503
3488
|
result: string;
|
|
3504
3489
|
}[];
|
|
3505
3490
|
toolCalls: {
|
|
3506
|
-
id: string;
|
|
3507
3491
|
name: string;
|
|
3492
|
+
id: string;
|
|
3508
3493
|
parameters: Record<string, string>;
|
|
3509
3494
|
}[];
|
|
3510
3495
|
} | {
|
|
@@ -3518,8 +3503,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3518
3503
|
} | {
|
|
3519
3504
|
type: "tool-call";
|
|
3520
3505
|
data: {
|
|
3521
|
-
id: string;
|
|
3522
3506
|
name: string;
|
|
3507
|
+
id: string;
|
|
3523
3508
|
input: Record<string, any>;
|
|
3524
3509
|
};
|
|
3525
3510
|
userInputId: string;
|
|
@@ -3550,8 +3535,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3550
3535
|
} | {
|
|
3551
3536
|
type: "action-error";
|
|
3552
3537
|
message: string;
|
|
3553
|
-
error?: string | undefined;
|
|
3554
3538
|
remainingBalance?: number | undefined;
|
|
3539
|
+
error?: string | undefined;
|
|
3555
3540
|
} | {
|
|
3556
3541
|
type: "commit-message-response";
|
|
3557
3542
|
commitMessage: string;
|
|
@@ -3635,7 +3620,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3635
3620
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3636
3621
|
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("../types/grant").GrantType, ...import("../types/grant").GrantType[]]>, z.ZodNumber>>>;
|
|
3637
3622
|
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3638
|
-
nextMonthlyGrant: z.ZodOptional<z.ZodNumber>;
|
|
3639
3623
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
3640
3624
|
}>, "strip", z.ZodTypeAny, {
|
|
3641
3625
|
type: "response-complete";
|
|
@@ -3660,7 +3644,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3660
3644
|
remainingBalance?: number | undefined;
|
|
3661
3645
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3662
3646
|
next_quota_reset?: Date | null | undefined;
|
|
3663
|
-
nextMonthlyGrant?: number | undefined;
|
|
3664
3647
|
autoTopupAdded?: number | undefined;
|
|
3665
3648
|
}, {
|
|
3666
3649
|
type: "response-complete";
|
|
@@ -3685,7 +3668,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3685
3668
|
remainingBalance?: number | undefined;
|
|
3686
3669
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3687
3670
|
next_quota_reset?: Date | null | undefined;
|
|
3688
|
-
nextMonthlyGrant?: number | undefined;
|
|
3689
3671
|
autoTopupAdded?: number | undefined;
|
|
3690
3672
|
}>, z.ZodObject<{
|
|
3691
3673
|
type: z.ZodLiteral<"prompt-response">;
|
|
@@ -3838,17 +3820,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3838
3820
|
type: "ephemeral";
|
|
3839
3821
|
}>>;
|
|
3840
3822
|
}, "strip", z.ZodTypeAny, {
|
|
3841
|
-
id: string;
|
|
3842
3823
|
type: "tool_use";
|
|
3843
3824
|
name: string;
|
|
3825
|
+
id: string;
|
|
3844
3826
|
input: Record<string, any>;
|
|
3845
3827
|
cache_control?: {
|
|
3846
3828
|
type: "ephemeral";
|
|
3847
3829
|
} | undefined;
|
|
3848
3830
|
}, {
|
|
3849
|
-
id: string;
|
|
3850
3831
|
type: "tool_use";
|
|
3851
3832
|
name: string;
|
|
3833
|
+
id: string;
|
|
3852
3834
|
input: Record<string, any>;
|
|
3853
3835
|
cache_control?: {
|
|
3854
3836
|
type: "ephemeral";
|
|
@@ -3929,9 +3911,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3929
3911
|
type: "ephemeral";
|
|
3930
3912
|
} | undefined;
|
|
3931
3913
|
} | {
|
|
3932
|
-
id: string;
|
|
3933
3914
|
type: "tool_use";
|
|
3934
3915
|
name: string;
|
|
3916
|
+
id: string;
|
|
3935
3917
|
input: Record<string, any>;
|
|
3936
3918
|
cache_control?: {
|
|
3937
3919
|
type: "ephemeral";
|
|
@@ -3963,9 +3945,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3963
3945
|
type: "ephemeral";
|
|
3964
3946
|
} | undefined;
|
|
3965
3947
|
} | {
|
|
3966
|
-
id: string;
|
|
3967
3948
|
type: "tool_use";
|
|
3968
3949
|
name: string;
|
|
3950
|
+
id: string;
|
|
3969
3951
|
input: Record<string, any>;
|
|
3970
3952
|
cache_control?: {
|
|
3971
3953
|
type: "ephemeral";
|
|
@@ -4028,9 +4010,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4028
4010
|
type: "ephemeral";
|
|
4029
4011
|
} | undefined;
|
|
4030
4012
|
} | {
|
|
4031
|
-
id: string;
|
|
4032
4013
|
type: "tool_use";
|
|
4033
4014
|
name: string;
|
|
4015
|
+
id: string;
|
|
4034
4016
|
input: Record<string, any>;
|
|
4035
4017
|
cache_control?: {
|
|
4036
4018
|
type: "ephemeral";
|
|
@@ -4093,9 +4075,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4093
4075
|
type: "ephemeral";
|
|
4094
4076
|
} | undefined;
|
|
4095
4077
|
} | {
|
|
4096
|
-
id: string;
|
|
4097
4078
|
type: "tool_use";
|
|
4098
4079
|
name: string;
|
|
4080
|
+
id: string;
|
|
4099
4081
|
input: Record<string, any>;
|
|
4100
4082
|
cache_control?: {
|
|
4101
4083
|
type: "ephemeral";
|
|
@@ -4127,12 +4109,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4127
4109
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4128
4110
|
id: z.ZodString;
|
|
4129
4111
|
}, "strip", z.ZodTypeAny, {
|
|
4130
|
-
id: string;
|
|
4131
4112
|
name: string;
|
|
4113
|
+
id: string;
|
|
4132
4114
|
parameters: Record<string, string>;
|
|
4133
4115
|
}, {
|
|
4134
|
-
id: string;
|
|
4135
4116
|
name: string;
|
|
4117
|
+
id: string;
|
|
4136
4118
|
parameters: Record<string, string>;
|
|
4137
4119
|
}>, "many">;
|
|
4138
4120
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -4140,12 +4122,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4140
4122
|
result: z.ZodString;
|
|
4141
4123
|
id: z.ZodString;
|
|
4142
4124
|
}, "strip", z.ZodTypeAny, {
|
|
4143
|
-
id: string;
|
|
4144
4125
|
name: string;
|
|
4126
|
+
id: string;
|
|
4145
4127
|
result: string;
|
|
4146
4128
|
}, {
|
|
4147
|
-
id: string;
|
|
4148
4129
|
name: string;
|
|
4130
|
+
id: string;
|
|
4149
4131
|
result: string;
|
|
4150
4132
|
}>, "many">;
|
|
4151
4133
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4188,9 +4170,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4188
4170
|
type: "ephemeral";
|
|
4189
4171
|
} | undefined;
|
|
4190
4172
|
} | {
|
|
4191
|
-
id: string;
|
|
4192
4173
|
type: "tool_use";
|
|
4193
4174
|
name: string;
|
|
4175
|
+
id: string;
|
|
4194
4176
|
input: Record<string, any>;
|
|
4195
4177
|
cache_control?: {
|
|
4196
4178
|
type: "ephemeral";
|
|
@@ -4218,13 +4200,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4218
4200
|
consecutiveAssistantMessages?: number | undefined;
|
|
4219
4201
|
};
|
|
4220
4202
|
toolResults: {
|
|
4221
|
-
id: string;
|
|
4222
4203
|
name: string;
|
|
4204
|
+
id: string;
|
|
4223
4205
|
result: string;
|
|
4224
4206
|
}[];
|
|
4225
4207
|
toolCalls: {
|
|
4226
|
-
id: string;
|
|
4227
4208
|
name: string;
|
|
4209
|
+
id: string;
|
|
4228
4210
|
parameters: Record<string, string>;
|
|
4229
4211
|
}[];
|
|
4230
4212
|
}, {
|
|
@@ -4267,9 +4249,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4267
4249
|
type: "ephemeral";
|
|
4268
4250
|
} | undefined;
|
|
4269
4251
|
} | {
|
|
4270
|
-
id: string;
|
|
4271
4252
|
type: "tool_use";
|
|
4272
4253
|
name: string;
|
|
4254
|
+
id: string;
|
|
4273
4255
|
input: Record<string, any>;
|
|
4274
4256
|
cache_control?: {
|
|
4275
4257
|
type: "ephemeral";
|
|
@@ -4297,13 +4279,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4297
4279
|
consecutiveAssistantMessages?: number | undefined;
|
|
4298
4280
|
};
|
|
4299
4281
|
toolResults: {
|
|
4300
|
-
id: string;
|
|
4301
4282
|
name: string;
|
|
4283
|
+
id: string;
|
|
4302
4284
|
result: string;
|
|
4303
4285
|
}[];
|
|
4304
4286
|
toolCalls: {
|
|
4305
|
-
id: string;
|
|
4306
4287
|
name: string;
|
|
4288
|
+
id: string;
|
|
4307
4289
|
parameters: Record<string, string>;
|
|
4308
4290
|
}[];
|
|
4309
4291
|
}>, z.ZodObject<{
|
|
@@ -4327,12 +4309,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4327
4309
|
id: z.ZodString;
|
|
4328
4310
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
4329
4311
|
}, "strip", z.ZodTypeAny, {
|
|
4330
|
-
id: string;
|
|
4331
4312
|
name: string;
|
|
4313
|
+
id: string;
|
|
4332
4314
|
input: Record<string, any>;
|
|
4333
4315
|
}, {
|
|
4334
|
-
id: string;
|
|
4335
4316
|
name: string;
|
|
4317
|
+
id: string;
|
|
4336
4318
|
input: Record<string, any>;
|
|
4337
4319
|
}>;
|
|
4338
4320
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -4375,8 +4357,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4375
4357
|
}, "strip", z.ZodTypeAny, {
|
|
4376
4358
|
type: "tool-call";
|
|
4377
4359
|
data: {
|
|
4378
|
-
id: string;
|
|
4379
4360
|
name: string;
|
|
4361
|
+
id: string;
|
|
4380
4362
|
input: Record<string, any>;
|
|
4381
4363
|
};
|
|
4382
4364
|
userInputId: string;
|
|
@@ -4399,8 +4381,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4399
4381
|
}, {
|
|
4400
4382
|
type: "tool-call";
|
|
4401
4383
|
data: {
|
|
4402
|
-
id: string;
|
|
4403
4384
|
name: string;
|
|
4385
|
+
id: string;
|
|
4404
4386
|
input: Record<string, any>;
|
|
4405
4387
|
};
|
|
4406
4388
|
userInputId: string;
|
|
@@ -4452,14 +4434,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4452
4434
|
remainingBalance: z.ZodNumber;
|
|
4453
4435
|
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("../types/grant").GrantType, ...import("../types/grant").GrantType[]]>, z.ZodNumber>>;
|
|
4454
4436
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
4455
|
-
nextMonthlyGrant: z.ZodNumber;
|
|
4456
4437
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4457
4438
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
4458
4439
|
type: "init-response";
|
|
4459
4440
|
usage: number;
|
|
4460
4441
|
remainingBalance: number;
|
|
4461
4442
|
next_quota_reset: Date | null;
|
|
4462
|
-
nextMonthlyGrant: number;
|
|
4463
4443
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4464
4444
|
autoTopupAdded?: number | undefined;
|
|
4465
4445
|
}, {
|
|
@@ -4467,7 +4447,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4467
4447
|
usage: number;
|
|
4468
4448
|
remainingBalance: number;
|
|
4469
4449
|
next_quota_reset: Date | null;
|
|
4470
|
-
nextMonthlyGrant: number;
|
|
4471
4450
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4472
4451
|
autoTopupAdded?: number | undefined;
|
|
4473
4452
|
}>, z.ZodObject<{
|
|
@@ -4476,14 +4455,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4476
4455
|
remainingBalance: z.ZodNumber;
|
|
4477
4456
|
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("../types/grant").GrantType, ...import("../types/grant").GrantType[]]>, z.ZodNumber>>;
|
|
4478
4457
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
4479
|
-
nextMonthlyGrant: z.ZodNumber;
|
|
4480
4458
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4481
4459
|
}, "strip", z.ZodTypeAny, {
|
|
4482
4460
|
type: "usage-response";
|
|
4483
4461
|
usage: number;
|
|
4484
4462
|
remainingBalance: number;
|
|
4485
4463
|
next_quota_reset: Date | null;
|
|
4486
|
-
nextMonthlyGrant: number;
|
|
4487
4464
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4488
4465
|
autoTopupAdded?: number | undefined;
|
|
4489
4466
|
}, {
|
|
@@ -4491,7 +4468,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4491
4468
|
usage: number;
|
|
4492
4469
|
remainingBalance: number;
|
|
4493
4470
|
next_quota_reset: Date | null;
|
|
4494
|
-
nextMonthlyGrant: number;
|
|
4495
4471
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4496
4472
|
autoTopupAdded?: number | undefined;
|
|
4497
4473
|
}>, z.ZodObject<{
|
|
@@ -4514,13 +4490,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4514
4490
|
}, "strip", z.ZodTypeAny, {
|
|
4515
4491
|
type: "action-error";
|
|
4516
4492
|
message: string;
|
|
4517
|
-
error?: string | undefined;
|
|
4518
4493
|
remainingBalance?: number | undefined;
|
|
4494
|
+
error?: string | undefined;
|
|
4519
4495
|
}, {
|
|
4520
4496
|
type: "action-error";
|
|
4521
4497
|
message: string;
|
|
4522
|
-
error?: string | undefined;
|
|
4523
4498
|
remainingBalance?: number | undefined;
|
|
4499
|
+
error?: string | undefined;
|
|
4524
4500
|
}>, z.ZodObject<{
|
|
4525
4501
|
type: z.ZodLiteral<"commit-message-response">;
|
|
4526
4502
|
commitMessage: z.ZodString;
|
|
@@ -4544,7 +4520,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4544
4520
|
usage: number;
|
|
4545
4521
|
remainingBalance: number;
|
|
4546
4522
|
next_quota_reset: Date | null;
|
|
4547
|
-
nextMonthlyGrant: number;
|
|
4548
4523
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4549
4524
|
autoTopupAdded?: number | undefined;
|
|
4550
4525
|
} | {
|
|
@@ -4552,7 +4527,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4552
4527
|
usage: number;
|
|
4553
4528
|
remainingBalance: number;
|
|
4554
4529
|
next_quota_reset: Date | null;
|
|
4555
|
-
nextMonthlyGrant: number;
|
|
4556
4530
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4557
4531
|
autoTopupAdded?: number | undefined;
|
|
4558
4532
|
} | {
|
|
@@ -4578,7 +4552,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4578
4552
|
remainingBalance?: number | undefined;
|
|
4579
4553
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4580
4554
|
next_quota_reset?: Date | null | undefined;
|
|
4581
|
-
nextMonthlyGrant?: number | undefined;
|
|
4582
4555
|
autoTopupAdded?: number | undefined;
|
|
4583
4556
|
} | {
|
|
4584
4557
|
type: "message-cost-response";
|
|
@@ -4624,9 +4597,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4624
4597
|
type: "ephemeral";
|
|
4625
4598
|
} | undefined;
|
|
4626
4599
|
} | {
|
|
4627
|
-
id: string;
|
|
4628
4600
|
type: "tool_use";
|
|
4629
4601
|
name: string;
|
|
4602
|
+
id: string;
|
|
4630
4603
|
input: Record<string, any>;
|
|
4631
4604
|
cache_control?: {
|
|
4632
4605
|
type: "ephemeral";
|
|
@@ -4654,13 +4627,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4654
4627
|
consecutiveAssistantMessages?: number | undefined;
|
|
4655
4628
|
};
|
|
4656
4629
|
toolResults: {
|
|
4657
|
-
id: string;
|
|
4658
4630
|
name: string;
|
|
4631
|
+
id: string;
|
|
4659
4632
|
result: string;
|
|
4660
4633
|
}[];
|
|
4661
4634
|
toolCalls: {
|
|
4662
|
-
id: string;
|
|
4663
4635
|
name: string;
|
|
4636
|
+
id: string;
|
|
4664
4637
|
parameters: Record<string, string>;
|
|
4665
4638
|
}[];
|
|
4666
4639
|
} | {
|
|
@@ -4674,8 +4647,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4674
4647
|
} | {
|
|
4675
4648
|
type: "tool-call";
|
|
4676
4649
|
data: {
|
|
4677
|
-
id: string;
|
|
4678
4650
|
name: string;
|
|
4651
|
+
id: string;
|
|
4679
4652
|
input: Record<string, any>;
|
|
4680
4653
|
};
|
|
4681
4654
|
userInputId: string;
|
|
@@ -4706,8 +4679,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4706
4679
|
} | {
|
|
4707
4680
|
type: "action-error";
|
|
4708
4681
|
message: string;
|
|
4709
|
-
error?: string | undefined;
|
|
4710
4682
|
remainingBalance?: number | undefined;
|
|
4683
|
+
error?: string | undefined;
|
|
4711
4684
|
} | {
|
|
4712
4685
|
type: "commit-message-response";
|
|
4713
4686
|
commitMessage: string;
|
|
@@ -4721,7 +4694,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4721
4694
|
usage: number;
|
|
4722
4695
|
remainingBalance: number;
|
|
4723
4696
|
next_quota_reset: Date | null;
|
|
4724
|
-
nextMonthlyGrant: number;
|
|
4725
4697
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4726
4698
|
autoTopupAdded?: number | undefined;
|
|
4727
4699
|
} | {
|
|
@@ -4729,7 +4701,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4729
4701
|
usage: number;
|
|
4730
4702
|
remainingBalance: number;
|
|
4731
4703
|
next_quota_reset: Date | null;
|
|
4732
|
-
nextMonthlyGrant: number;
|
|
4733
4704
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4734
4705
|
autoTopupAdded?: number | undefined;
|
|
4735
4706
|
} | {
|
|
@@ -4755,7 +4726,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4755
4726
|
remainingBalance?: number | undefined;
|
|
4756
4727
|
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4757
4728
|
next_quota_reset?: Date | null | undefined;
|
|
4758
|
-
nextMonthlyGrant?: number | undefined;
|
|
4759
4729
|
autoTopupAdded?: number | undefined;
|
|
4760
4730
|
} | {
|
|
4761
4731
|
type: "message-cost-response";
|
|
@@ -4801,9 +4771,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4801
4771
|
type: "ephemeral";
|
|
4802
4772
|
} | undefined;
|
|
4803
4773
|
} | {
|
|
4804
|
-
id: string;
|
|
4805
4774
|
type: "tool_use";
|
|
4806
4775
|
name: string;
|
|
4776
|
+
id: string;
|
|
4807
4777
|
input: Record<string, any>;
|
|
4808
4778
|
cache_control?: {
|
|
4809
4779
|
type: "ephemeral";
|
|
@@ -4831,13 +4801,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4831
4801
|
consecutiveAssistantMessages?: number | undefined;
|
|
4832
4802
|
};
|
|
4833
4803
|
toolResults: {
|
|
4834
|
-
id: string;
|
|
4835
4804
|
name: string;
|
|
4805
|
+
id: string;
|
|
4836
4806
|
result: string;
|
|
4837
4807
|
}[];
|
|
4838
4808
|
toolCalls: {
|
|
4839
|
-
id: string;
|
|
4840
4809
|
name: string;
|
|
4810
|
+
id: string;
|
|
4841
4811
|
parameters: Record<string, string>;
|
|
4842
4812
|
}[];
|
|
4843
4813
|
} | {
|
|
@@ -4851,8 +4821,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4851
4821
|
} | {
|
|
4852
4822
|
type: "tool-call";
|
|
4853
4823
|
data: {
|
|
4854
|
-
id: string;
|
|
4855
4824
|
name: string;
|
|
4825
|
+
id: string;
|
|
4856
4826
|
input: Record<string, any>;
|
|
4857
4827
|
};
|
|
4858
4828
|
userInputId: string;
|
|
@@ -4883,8 +4853,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4883
4853
|
} | {
|
|
4884
4854
|
type: "action-error";
|
|
4885
4855
|
message: string;
|
|
4886
|
-
error?: string | undefined;
|
|
4887
4856
|
remainingBalance?: number | undefined;
|
|
4857
|
+
error?: string | undefined;
|
|
4888
4858
|
} | {
|
|
4889
4859
|
type: "commit-message-response";
|
|
4890
4860
|
commitMessage: string;
|