codebuff 1.0.244 → 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/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +86 -104
- package/dist/common/actions.js +0 -1
- package/dist/common/actions.js.map +1 -1
- package/dist/common/bigquery/client.js +29 -10
- package/dist/common/bigquery/client.js.map +1 -1
- package/dist/common/constants.d.ts +13 -32
- package/dist/common/constants.js +23 -72
- package/dist/common/constants.js.map +1 -1
- package/dist/common/env.mjs +1 -0
- package/dist/common/env.mjs.map +1 -1
- package/dist/common/types/usage.d.ts +4 -7
- package/dist/common/types/usage.js +0 -1
- package/dist/common/types/usage.js.map +1 -1
- 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/websockets/websocket-schema.d.ts +172 -202
- package/package.json +4 -2
- package/dist/background-process-manager.d.ts +0 -50
- package/dist/background-process-manager.js +0 -359
- package/dist/background-process-manager.js.map +0 -1
- package/dist/browser-runner.d.ts +0 -35
- package/dist/browser-runner.js +0 -680
- package/dist/browser-runner.js.map +0 -1
- package/dist/chat-storage.d.ts +0 -2
- package/dist/chat-storage.js +0 -93
- package/dist/chat-storage.js.map +0 -1
- package/dist/checkpoints/checkpoint-manager.d.ts +0 -94
- package/dist/checkpoints/checkpoint-manager.js +0 -280
- package/dist/checkpoints/checkpoint-manager.js.map +0 -1
- package/dist/checkpoints/file-manager.d.ts +0 -72
- package/dist/checkpoints/file-manager.js +0 -311
- package/dist/checkpoints/file-manager.js.map +0 -1
- package/dist/cli-handlers/api-key.d.ts +0 -25
- package/dist/cli-handlers/api-key.js +0 -66
- package/dist/cli-handlers/api-key.js.map +0 -1
- package/dist/cli-handlers/checkpoint.d.ts +0 -18
- package/dist/cli-handlers/checkpoint.js +0 -195
- package/dist/cli-handlers/checkpoint.js.map +0 -1
- package/dist/cli-handlers/diff.d.ts +0 -2
- package/dist/cli-handlers/diff.js +0 -31
- package/dist/cli-handlers/diff.js.map +0 -1
- package/dist/cli-handlers/easter-egg.d.ts +0 -1
- package/dist/cli-handlers/easter-egg.js +0 -126
- package/dist/cli-handlers/easter-egg.js.map +0 -1
- package/dist/cli-handlers/inititalization-flow.d.ts +0 -1
- package/dist/cli-handlers/inititalization-flow.js +0 -24
- package/dist/cli-handlers/inititalization-flow.js.map +0 -1
- package/dist/cli.d.ts +0 -44
- package/dist/cli.js +0 -463
- package/dist/cli.js.map +0 -1
- package/dist/client.d.ts +0 -149
- package/dist/client.js +0 -820
- package/dist/client.js.map +0 -1
- package/dist/common/billing/auto-topup.d.ts +0 -8
- package/dist/common/billing/auto-topup.js +0 -192
- package/dist/common/billing/auto-topup.js.map +0 -1
- package/dist/common/billing/balance-calculator.d.ts +0 -57
- package/dist/common/billing/balance-calculator.js +0 -218
- package/dist/common/billing/balance-calculator.js.map +0 -1
- package/dist/common/billing/conversion.d.ts +0 -9
- package/dist/common/billing/conversion.js +0 -20
- package/dist/common/billing/conversion.js.map +0 -1
- package/dist/common/billing/credit-conversion.d.ts +0 -24
- package/dist/common/billing/credit-conversion.js +0 -48
- package/dist/common/billing/credit-conversion.js.map +0 -1
- package/dist/common/billing/grant-credits.d.ts +0 -43
- package/dist/common/billing/grant-credits.js +0 -266
- package/dist/common/billing/grant-credits.js.map +0 -1
- package/dist/common/billing/plans.d.ts +0 -13
- package/dist/common/billing/plans.js +0 -44
- package/dist/common/billing/plans.js.map +0 -1
- package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +0 -66
- package/dist/common/types/plan.d.ts +0 -24
- package/dist/common/types/plan.js +0 -3
- package/dist/common/types/plan.js.map +0 -1
- package/dist/common/util/server/referral.d.ts +0 -14
- package/dist/common/util/server/referral.js +0 -85
- package/dist/common/util/server/referral.js.map +0 -1
- package/dist/config.d.ts +0 -4
- package/dist/config.js +0 -12
- package/dist/config.js.map +0 -1
- package/dist/create-template-project.d.ts +0 -1
- package/dist/create-template-project.js +0 -107
- package/dist/create-template-project.js.map +0 -1
- package/dist/credentials.d.ts +0 -4
- package/dist/credentials.js +0 -38
- package/dist/credentials.js.map +0 -1
- package/dist/dev-process-manager.d.ts +0 -10
- package/dist/dev-process-manager.js +0 -54
- package/dist/dev-process-manager.js.map +0 -1
- package/dist/fingerprint.d.ts +0 -1
- package/dist/fingerprint.js +0 -48
- package/dist/fingerprint.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -117
- package/dist/index.js.map +0 -1
- package/dist/menu.d.ts +0 -3
- package/dist/menu.js +0 -126
- package/dist/menu.js.map +0 -1
- package/dist/project-files.d.ts +0 -114
- package/dist/project-files.js +0 -513
- package/dist/project-files.js.map +0 -1
- package/dist/startup-process-handler.d.ts +0 -2
- package/dist/startup-process-handler.js +0 -21
- package/dist/startup-process-handler.js.map +0 -1
- package/dist/tool-handlers.d.ts +0 -28
- package/dist/tool-handlers.js +0 -240
- package/dist/tool-handlers.js.map +0 -1
- package/dist/types.d.ts +0 -9
- package/dist/types.js +0 -3
- package/dist/types.js.map +0 -1
- package/dist/update-codebuff.d.ts +0 -1
- package/dist/update-codebuff.js +0 -160
- package/dist/update-codebuff.js.map +0 -1
- package/dist/utils/__tests__/background-process-manager.test.d.ts +0 -1
- package/dist/utils/__tests__/background-process-manager.test.js +0 -289
- package/dist/utils/__tests__/background-process-manager.test.js.map +0 -1
- package/dist/utils/__tests__/tool-renderers.test.d.ts +0 -1
- package/dist/utils/__tests__/tool-renderers.test.js +0 -51
- package/dist/utils/__tests__/tool-renderers.test.js.map +0 -1
- package/dist/utils/__tests__/xml-stream-parser.test.d.ts +0 -1
- package/dist/utils/__tests__/xml-stream-parser.test.js +0 -229
- package/dist/utils/__tests__/xml-stream-parser.test.js.map +0 -1
- package/dist/utils/analytics.d.ts +0 -6
- package/dist/utils/analytics.js +0 -53
- package/dist/utils/analytics.js.map +0 -1
- package/dist/utils/detect-shell.d.ts +0 -1
- package/dist/utils/detect-shell.js +0 -60
- package/dist/utils/detect-shell.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -21
- package/dist/utils/logger.js +0 -80
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/spinner.d.ts +0 -11
- package/dist/utils/spinner.js +0 -87
- package/dist/utils/spinner.js.map +0 -1
- package/dist/utils/system-info.d.ts +0 -8
- package/dist/utils/system-info.js +0 -22
- package/dist/utils/system-info.js.map +0 -1
- package/dist/utils/terminal.d.ts +0 -38
- package/dist/utils/terminal.js +0 -460
- package/dist/utils/terminal.js.map +0 -1
- package/dist/utils/tool-renderers.d.ts +0 -16
- package/dist/utils/tool-renderers.js +0 -145
- package/dist/utils/tool-renderers.js.map +0 -1
- package/dist/utils/xml-stream-parser.d.ts +0 -9
- package/dist/utils/xml-stream-parser.js +0 -128
- package/dist/utils/xml-stream-parser.js.map +0 -1
- package/dist/web-scraper.d.ts +0 -3
- package/dist/web-scraper.js +0 -57
- package/dist/web-scraper.js.map +0 -1
- package/dist/workers/checkpoint-worker.d.ts +0 -1
- package/dist/workers/checkpoint-worker.js +0 -48
- package/dist/workers/checkpoint-worker.js.map +0 -1
- package/dist/workers/project-context.d.ts +0 -1
- package/dist/workers/project-context.js +0 -17
- package/dist/workers/project-context.js.map +0 -1
|
@@ -6,12 +6,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
6
6
|
clientSessionId: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
type: "identify";
|
|
9
|
-
txid: number;
|
|
10
9
|
clientSessionId: string;
|
|
10
|
+
txid: number;
|
|
11
11
|
}, {
|
|
12
12
|
type: "identify";
|
|
13
|
-
txid: number;
|
|
14
13
|
clientSessionId: string;
|
|
14
|
+
txid: number;
|
|
15
15
|
}>;
|
|
16
16
|
readonly subscribe: z.ZodObject<{
|
|
17
17
|
type: z.ZodLiteral<"subscribe">;
|
|
@@ -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]>>;
|
|
@@ -790,7 +790,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
790
790
|
}>;
|
|
791
791
|
}, "strip", z.ZodTypeAny, {
|
|
792
792
|
type: "init";
|
|
793
|
-
fingerprintId: string;
|
|
794
793
|
fileContext: {
|
|
795
794
|
currentWorkingDirectory: string;
|
|
796
795
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -818,10 +817,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
818
817
|
content: string;
|
|
819
818
|
}[][] | undefined;
|
|
820
819
|
};
|
|
820
|
+
fingerprintId: string;
|
|
821
821
|
authToken?: string | undefined;
|
|
822
822
|
}, {
|
|
823
823
|
type: "init";
|
|
824
|
-
fingerprintId: string;
|
|
825
824
|
fileContext: {
|
|
826
825
|
currentWorkingDirectory: string;
|
|
827
826
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -849,6 +848,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
849
848
|
content: string;
|
|
850
849
|
}[][] | undefined;
|
|
851
850
|
};
|
|
851
|
+
fingerprintId: string;
|
|
852
852
|
authToken?: string | undefined;
|
|
853
853
|
}>, z.ZodObject<{
|
|
854
854
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -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,20 +940,19 @@ 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>;
|
|
953
953
|
requestId?: string | undefined;
|
|
954
954
|
} | {
|
|
955
955
|
type: "init";
|
|
956
|
-
fingerprintId: string;
|
|
957
956
|
fileContext: {
|
|
958
957
|
currentWorkingDirectory: string;
|
|
959
958
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -981,6 +980,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
981
980
|
content: string;
|
|
982
981
|
}[][] | undefined;
|
|
983
982
|
};
|
|
983
|
+
fingerprintId: string;
|
|
984
984
|
authToken?: string | undefined;
|
|
985
985
|
} | {
|
|
986
986
|
type: "generate-commit-message";
|
|
@@ -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,21 +1062,20 @@ 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>;
|
|
1076
1076
|
requestId?: string | undefined;
|
|
1077
1077
|
} | {
|
|
1078
1078
|
type: "init";
|
|
1079
|
-
fingerprintId: string;
|
|
1080
1079
|
fileContext: {
|
|
1081
1080
|
currentWorkingDirectory: string;
|
|
1082
1081
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1104,6 +1103,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1104
1103
|
content: string;
|
|
1105
1104
|
}[][] | undefined;
|
|
1106
1105
|
};
|
|
1106
|
+
fingerprintId: string;
|
|
1107
1107
|
authToken?: string | undefined;
|
|
1108
1108
|
} | {
|
|
1109
1109
|
type: "generate-commit-message";
|
|
@@ -1120,12 +1120,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1120
1120
|
clientSessionId: z.ZodString;
|
|
1121
1121
|
}, "strip", z.ZodTypeAny, {
|
|
1122
1122
|
type: "identify";
|
|
1123
|
-
txid: number;
|
|
1124
1123
|
clientSessionId: string;
|
|
1124
|
+
txid: number;
|
|
1125
1125
|
}, {
|
|
1126
1126
|
type: "identify";
|
|
1127
|
-
txid: number;
|
|
1128
1127
|
clientSessionId: string;
|
|
1128
|
+
txid: number;
|
|
1129
1129
|
}>, z.ZodObject<{
|
|
1130
1130
|
type: z.ZodLiteral<"subscribe">;
|
|
1131
1131
|
txid: z.ZodNumber;
|
|
@@ -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]>>;
|
|
@@ -1900,7 +1900,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1900
1900
|
}>;
|
|
1901
1901
|
}, "strip", z.ZodTypeAny, {
|
|
1902
1902
|
type: "init";
|
|
1903
|
-
fingerprintId: string;
|
|
1904
1903
|
fileContext: {
|
|
1905
1904
|
currentWorkingDirectory: string;
|
|
1906
1905
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1928,10 +1927,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1928
1927
|
content: string;
|
|
1929
1928
|
}[][] | undefined;
|
|
1930
1929
|
};
|
|
1930
|
+
fingerprintId: string;
|
|
1931
1931
|
authToken?: string | undefined;
|
|
1932
1932
|
}, {
|
|
1933
1933
|
type: "init";
|
|
1934
|
-
fingerprintId: string;
|
|
1935
1934
|
fileContext: {
|
|
1936
1935
|
currentWorkingDirectory: string;
|
|
1937
1936
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1959,6 +1958,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1959
1958
|
content: string;
|
|
1960
1959
|
}[][] | undefined;
|
|
1961
1960
|
};
|
|
1961
|
+
fingerprintId: string;
|
|
1962
1962
|
authToken?: string | undefined;
|
|
1963
1963
|
}>, z.ZodObject<{
|
|
1964
1964
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -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,20 +2050,19 @@ 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>;
|
|
2063
2063
|
requestId?: string | undefined;
|
|
2064
2064
|
} | {
|
|
2065
2065
|
type: "init";
|
|
2066
|
-
fingerprintId: string;
|
|
2067
2066
|
fileContext: {
|
|
2068
2067
|
currentWorkingDirectory: string;
|
|
2069
2068
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2091,6 +2090,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2091
2090
|
content: string;
|
|
2092
2091
|
}[][] | undefined;
|
|
2093
2092
|
};
|
|
2093
|
+
fingerprintId: string;
|
|
2094
2094
|
authToken?: string | undefined;
|
|
2095
2095
|
} | {
|
|
2096
2096
|
type: "generate-commit-message";
|
|
@@ -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,21 +2172,20 @@ 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>;
|
|
2186
2186
|
requestId?: string | undefined;
|
|
2187
2187
|
} | {
|
|
2188
2188
|
type: "init";
|
|
2189
|
-
fingerprintId: string;
|
|
2190
2189
|
fileContext: {
|
|
2191
2190
|
currentWorkingDirectory: string;
|
|
2192
2191
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2214,6 +2213,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2214
2213
|
content: string;
|
|
2215
2214
|
}[][] | undefined;
|
|
2216
2215
|
};
|
|
2216
|
+
fingerprintId: string;
|
|
2217
2217
|
authToken?: string | undefined;
|
|
2218
2218
|
} | {
|
|
2219
2219
|
type: "generate-commit-message";
|
|
@@ -2265,12 +2265,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2265
2265
|
path: z.ZodString;
|
|
2266
2266
|
content: z.ZodString;
|
|
2267
2267
|
}, "strip", z.ZodTypeAny, {
|
|
2268
|
-
type: "patch" | "file";
|
|
2269
2268
|
path: string;
|
|
2269
|
+
type: "file" | "patch";
|
|
2270
2270
|
content: string;
|
|
2271
2271
|
}, {
|
|
2272
|
-
type: "patch" | "file";
|
|
2273
2272
|
path: string;
|
|
2273
|
+
type: "file" | "patch";
|
|
2274
2274
|
content: string;
|
|
2275
2275
|
}>, "many">;
|
|
2276
2276
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2278,12 +2278,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2278
2278
|
path: z.ZodString;
|
|
2279
2279
|
content: z.ZodString;
|
|
2280
2280
|
}, "strip", z.ZodTypeAny, {
|
|
2281
|
-
type: "patch" | "file";
|
|
2282
2281
|
path: string;
|
|
2282
|
+
type: "file" | "patch";
|
|
2283
2283
|
content: string;
|
|
2284
2284
|
}, {
|
|
2285
|
-
type: "patch" | "file";
|
|
2286
2285
|
path: string;
|
|
2286
|
+
type: "file" | "patch";
|
|
2287
2287
|
content: string;
|
|
2288
2288
|
}>, "many">;
|
|
2289
2289
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2302,20 +2302,19 @@ 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";
|
|
2309
2308
|
userInputId: string;
|
|
2310
2309
|
response: string;
|
|
2311
2310
|
changes: {
|
|
2312
|
-
type: "patch" | "file";
|
|
2313
2311
|
path: string;
|
|
2312
|
+
type: "file" | "patch";
|
|
2314
2313
|
content: string;
|
|
2315
2314
|
}[];
|
|
2316
2315
|
changesAlreadyApplied: {
|
|
2317
|
-
type: "patch" | "file";
|
|
2318
2316
|
path: string;
|
|
2317
|
+
type: "file" | "patch";
|
|
2319
2318
|
content: string;
|
|
2320
2319
|
}[];
|
|
2321
2320
|
addedFileVersions: {
|
|
@@ -2327,20 +2326,19 @@ 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";
|
|
2334
2332
|
userInputId: string;
|
|
2335
2333
|
response: string;
|
|
2336
2334
|
changes: {
|
|
2337
|
-
type: "patch" | "file";
|
|
2338
2335
|
path: string;
|
|
2336
|
+
type: "file" | "patch";
|
|
2339
2337
|
content: string;
|
|
2340
2338
|
}[];
|
|
2341
2339
|
changesAlreadyApplied: {
|
|
2342
|
-
type: "patch" | "file";
|
|
2343
2340
|
path: string;
|
|
2341
|
+
type: "file" | "patch";
|
|
2344
2342
|
content: string;
|
|
2345
2343
|
}[];
|
|
2346
2344
|
addedFileVersions: {
|
|
@@ -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<{
|
|
@@ -3007,12 +3004,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3007
3004
|
path: z.ZodString;
|
|
3008
3005
|
content: z.ZodString;
|
|
3009
3006
|
}, "strip", z.ZodTypeAny, {
|
|
3010
|
-
type: "patch" | "file";
|
|
3011
3007
|
path: string;
|
|
3008
|
+
type: "file" | "patch";
|
|
3012
3009
|
content: string;
|
|
3013
3010
|
}, {
|
|
3014
|
-
type: "patch" | "file";
|
|
3015
3011
|
path: string;
|
|
3012
|
+
type: "file" | "patch";
|
|
3016
3013
|
content: string;
|
|
3017
3014
|
}>, "many">;
|
|
3018
3015
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3020,12 +3017,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3020
3017
|
path: z.ZodString;
|
|
3021
3018
|
content: z.ZodString;
|
|
3022
3019
|
}, "strip", z.ZodTypeAny, {
|
|
3023
|
-
type: "patch" | "file";
|
|
3024
3020
|
path: string;
|
|
3021
|
+
type: "file" | "patch";
|
|
3025
3022
|
content: string;
|
|
3026
3023
|
}, {
|
|
3027
|
-
type: "patch" | "file";
|
|
3028
3024
|
path: string;
|
|
3025
|
+
type: "file" | "patch";
|
|
3029
3026
|
content: string;
|
|
3030
3027
|
}>, "many">;
|
|
3031
3028
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3042,20 +3039,20 @@ 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;
|
|
3050
3047
|
response: string;
|
|
3051
3048
|
changes: {
|
|
3052
|
-
type: "patch" | "file";
|
|
3053
3049
|
path: string;
|
|
3050
|
+
type: "file" | "patch";
|
|
3054
3051
|
content: string;
|
|
3055
3052
|
}[];
|
|
3056
3053
|
changesAlreadyApplied: {
|
|
3057
|
-
type: "patch" | "file";
|
|
3058
3054
|
path: string;
|
|
3055
|
+
type: "file" | "patch";
|
|
3059
3056
|
content: string;
|
|
3060
3057
|
}[];
|
|
3061
3058
|
addedFileVersions: {
|
|
@@ -3066,20 +3063,20 @@ 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;
|
|
3074
3071
|
response: string;
|
|
3075
3072
|
changes: {
|
|
3076
|
-
type: "patch" | "file";
|
|
3077
3073
|
path: string;
|
|
3074
|
+
type: "file" | "patch";
|
|
3078
3075
|
content: string;
|
|
3079
3076
|
}[];
|
|
3080
3077
|
changesAlreadyApplied: {
|
|
3081
|
-
type: "patch" | "file";
|
|
3082
3078
|
path: string;
|
|
3079
|
+
type: "file" | "patch";
|
|
3083
3080
|
content: string;
|
|
3084
3081
|
}[];
|
|
3085
3082
|
addedFileVersions: {
|
|
@@ -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<{
|
|
@@ -3179,15 +3170,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3179
3170
|
error: z.ZodOptional<z.ZodString>;
|
|
3180
3171
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3181
3172
|
}, "strip", z.ZodTypeAny, {
|
|
3182
|
-
type: "action-error";
|
|
3183
3173
|
message: string;
|
|
3184
|
-
error
|
|
3174
|
+
type: "action-error";
|
|
3185
3175
|
remainingBalance?: number | undefined;
|
|
3176
|
+
error?: string | undefined;
|
|
3186
3177
|
}, {
|
|
3187
|
-
type: "action-error";
|
|
3188
3178
|
message: string;
|
|
3189
|
-
error
|
|
3179
|
+
type: "action-error";
|
|
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
|
} | {
|
|
@@ -3227,13 +3216,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3227
3216
|
userInputId: string;
|
|
3228
3217
|
response: string;
|
|
3229
3218
|
changes: {
|
|
3230
|
-
type: "patch" | "file";
|
|
3231
3219
|
path: string;
|
|
3220
|
+
type: "file" | "patch";
|
|
3232
3221
|
content: string;
|
|
3233
3222
|
}[];
|
|
3234
3223
|
changesAlreadyApplied: {
|
|
3235
|
-
type: "patch" | "file";
|
|
3236
3224
|
path: string;
|
|
3225
|
+
type: "file" | "patch";
|
|
3237
3226
|
content: string;
|
|
3238
3227
|
}[];
|
|
3239
3228
|
addedFileVersions: {
|
|
@@ -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,20 +3329,20 @@ 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;
|
|
3349
3337
|
response: string;
|
|
3350
3338
|
changes: {
|
|
3351
|
-
type: "patch" | "file";
|
|
3352
3339
|
path: string;
|
|
3340
|
+
type: "file" | "patch";
|
|
3353
3341
|
content: string;
|
|
3354
3342
|
}[];
|
|
3355
3343
|
changesAlreadyApplied: {
|
|
3356
|
-
type: "patch" | "file";
|
|
3357
3344
|
path: string;
|
|
3345
|
+
type: "file" | "patch";
|
|
3358
3346
|
content: string;
|
|
3359
3347
|
}[];
|
|
3360
3348
|
addedFileVersions: {
|
|
@@ -3371,10 +3359,10 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3371
3359
|
isUpToDate: boolean;
|
|
3372
3360
|
latestVersion: string;
|
|
3373
3361
|
} | {
|
|
3374
|
-
type: "action-error";
|
|
3375
3362
|
message: string;
|
|
3376
|
-
error
|
|
3363
|
+
type: "action-error";
|
|
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
|
} | {
|
|
@@ -3404,13 +3390,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3404
3390
|
userInputId: string;
|
|
3405
3391
|
response: string;
|
|
3406
3392
|
changes: {
|
|
3407
|
-
type: "patch" | "file";
|
|
3408
3393
|
path: string;
|
|
3394
|
+
type: "file" | "patch";
|
|
3409
3395
|
content: string;
|
|
3410
3396
|
}[];
|
|
3411
3397
|
changesAlreadyApplied: {
|
|
3412
|
-
type: "patch" | "file";
|
|
3413
3398
|
path: string;
|
|
3399
|
+
type: "file" | "patch";
|
|
3414
3400
|
content: string;
|
|
3415
3401
|
}[];
|
|
3416
3402
|
addedFileVersions: {
|
|
@@ -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,20 +3503,20 @@ 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;
|
|
3526
3511
|
response: string;
|
|
3527
3512
|
changes: {
|
|
3528
|
-
type: "patch" | "file";
|
|
3529
3513
|
path: string;
|
|
3514
|
+
type: "file" | "patch";
|
|
3530
3515
|
content: string;
|
|
3531
3516
|
}[];
|
|
3532
3517
|
changesAlreadyApplied: {
|
|
3533
|
-
type: "patch" | "file";
|
|
3534
3518
|
path: string;
|
|
3519
|
+
type: "file" | "patch";
|
|
3535
3520
|
content: string;
|
|
3536
3521
|
}[];
|
|
3537
3522
|
addedFileVersions: {
|
|
@@ -3548,10 +3533,10 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3548
3533
|
isUpToDate: boolean;
|
|
3549
3534
|
latestVersion: string;
|
|
3550
3535
|
} | {
|
|
3551
|
-
type: "action-error";
|
|
3552
3536
|
message: string;
|
|
3553
|
-
error
|
|
3537
|
+
type: "action-error";
|
|
3554
3538
|
remainingBalance?: number | undefined;
|
|
3539
|
+
error?: string | undefined;
|
|
3555
3540
|
} | {
|
|
3556
3541
|
type: "commit-message-response";
|
|
3557
3542
|
commitMessage: string;
|
|
@@ -3598,12 +3583,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3598
3583
|
path: z.ZodString;
|
|
3599
3584
|
content: z.ZodString;
|
|
3600
3585
|
}, "strip", z.ZodTypeAny, {
|
|
3601
|
-
type: "patch" | "file";
|
|
3602
3586
|
path: string;
|
|
3587
|
+
type: "file" | "patch";
|
|
3603
3588
|
content: string;
|
|
3604
3589
|
}, {
|
|
3605
|
-
type: "patch" | "file";
|
|
3606
3590
|
path: string;
|
|
3591
|
+
type: "file" | "patch";
|
|
3607
3592
|
content: string;
|
|
3608
3593
|
}>, "many">;
|
|
3609
3594
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3611,12 +3596,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3611
3596
|
path: z.ZodString;
|
|
3612
3597
|
content: z.ZodString;
|
|
3613
3598
|
}, "strip", z.ZodTypeAny, {
|
|
3614
|
-
type: "patch" | "file";
|
|
3615
3599
|
path: string;
|
|
3600
|
+
type: "file" | "patch";
|
|
3616
3601
|
content: string;
|
|
3617
3602
|
}, {
|
|
3618
|
-
type: "patch" | "file";
|
|
3619
3603
|
path: string;
|
|
3604
|
+
type: "file" | "patch";
|
|
3620
3605
|
content: string;
|
|
3621
3606
|
}>, "many">;
|
|
3622
3607
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3635,20 +3620,19 @@ 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";
|
|
3642
3626
|
userInputId: string;
|
|
3643
3627
|
response: string;
|
|
3644
3628
|
changes: {
|
|
3645
|
-
type: "patch" | "file";
|
|
3646
3629
|
path: string;
|
|
3630
|
+
type: "file" | "patch";
|
|
3647
3631
|
content: string;
|
|
3648
3632
|
}[];
|
|
3649
3633
|
changesAlreadyApplied: {
|
|
3650
|
-
type: "patch" | "file";
|
|
3651
3634
|
path: string;
|
|
3635
|
+
type: "file" | "patch";
|
|
3652
3636
|
content: string;
|
|
3653
3637
|
}[];
|
|
3654
3638
|
addedFileVersions: {
|
|
@@ -3660,20 +3644,19 @@ 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";
|
|
3667
3650
|
userInputId: string;
|
|
3668
3651
|
response: string;
|
|
3669
3652
|
changes: {
|
|
3670
|
-
type: "patch" | "file";
|
|
3671
3653
|
path: string;
|
|
3654
|
+
type: "file" | "patch";
|
|
3672
3655
|
content: string;
|
|
3673
3656
|
}[];
|
|
3674
3657
|
changesAlreadyApplied: {
|
|
3675
|
-
type: "patch" | "file";
|
|
3676
3658
|
path: string;
|
|
3659
|
+
type: "file" | "patch";
|
|
3677
3660
|
content: string;
|
|
3678
3661
|
}[];
|
|
3679
3662
|
addedFileVersions: {
|
|
@@ -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<{
|
|
@@ -4340,12 +4322,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4340
4322
|
path: z.ZodString;
|
|
4341
4323
|
content: z.ZodString;
|
|
4342
4324
|
}, "strip", z.ZodTypeAny, {
|
|
4343
|
-
type: "patch" | "file";
|
|
4344
4325
|
path: string;
|
|
4326
|
+
type: "file" | "patch";
|
|
4345
4327
|
content: string;
|
|
4346
4328
|
}, {
|
|
4347
|
-
type: "patch" | "file";
|
|
4348
4329
|
path: string;
|
|
4330
|
+
type: "file" | "patch";
|
|
4349
4331
|
content: string;
|
|
4350
4332
|
}>, "many">;
|
|
4351
4333
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -4353,12 +4335,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4353
4335
|
path: z.ZodString;
|
|
4354
4336
|
content: z.ZodString;
|
|
4355
4337
|
}, "strip", z.ZodTypeAny, {
|
|
4356
|
-
type: "patch" | "file";
|
|
4357
4338
|
path: string;
|
|
4339
|
+
type: "file" | "patch";
|
|
4358
4340
|
content: string;
|
|
4359
4341
|
}, {
|
|
4360
|
-
type: "patch" | "file";
|
|
4361
4342
|
path: string;
|
|
4343
|
+
type: "file" | "patch";
|
|
4362
4344
|
content: string;
|
|
4363
4345
|
}>, "many">;
|
|
4364
4346
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -4375,20 +4357,20 @@ 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;
|
|
4383
4365
|
response: string;
|
|
4384
4366
|
changes: {
|
|
4385
|
-
type: "patch" | "file";
|
|
4386
4367
|
path: string;
|
|
4368
|
+
type: "file" | "patch";
|
|
4387
4369
|
content: string;
|
|
4388
4370
|
}[];
|
|
4389
4371
|
changesAlreadyApplied: {
|
|
4390
|
-
type: "patch" | "file";
|
|
4391
4372
|
path: string;
|
|
4373
|
+
type: "file" | "patch";
|
|
4392
4374
|
content: string;
|
|
4393
4375
|
}[];
|
|
4394
4376
|
addedFileVersions: {
|
|
@@ -4399,20 +4381,20 @@ 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;
|
|
4407
4389
|
response: string;
|
|
4408
4390
|
changes: {
|
|
4409
|
-
type: "patch" | "file";
|
|
4410
4391
|
path: string;
|
|
4392
|
+
type: "file" | "patch";
|
|
4411
4393
|
content: string;
|
|
4412
4394
|
}[];
|
|
4413
4395
|
changesAlreadyApplied: {
|
|
4414
|
-
type: "patch" | "file";
|
|
4415
4396
|
path: string;
|
|
4397
|
+
type: "file" | "patch";
|
|
4416
4398
|
content: string;
|
|
4417
4399
|
}[];
|
|
4418
4400
|
addedFileVersions: {
|
|
@@ -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<{
|
|
@@ -4512,15 +4488,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4512
4488
|
error: z.ZodOptional<z.ZodString>;
|
|
4513
4489
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
4514
4490
|
}, "strip", z.ZodTypeAny, {
|
|
4515
|
-
type: "action-error";
|
|
4516
4491
|
message: string;
|
|
4517
|
-
error
|
|
4492
|
+
type: "action-error";
|
|
4518
4493
|
remainingBalance?: number | undefined;
|
|
4494
|
+
error?: string | undefined;
|
|
4519
4495
|
}, {
|
|
4520
|
-
type: "action-error";
|
|
4521
4496
|
message: string;
|
|
4522
|
-
error
|
|
4497
|
+
type: "action-error";
|
|
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
|
} | {
|
|
@@ -4560,13 +4534,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4560
4534
|
userInputId: string;
|
|
4561
4535
|
response: string;
|
|
4562
4536
|
changes: {
|
|
4563
|
-
type: "patch" | "file";
|
|
4564
4537
|
path: string;
|
|
4538
|
+
type: "file" | "patch";
|
|
4565
4539
|
content: string;
|
|
4566
4540
|
}[];
|
|
4567
4541
|
changesAlreadyApplied: {
|
|
4568
|
-
type: "patch" | "file";
|
|
4569
4542
|
path: string;
|
|
4543
|
+
type: "file" | "patch";
|
|
4570
4544
|
content: string;
|
|
4571
4545
|
}[];
|
|
4572
4546
|
addedFileVersions: {
|
|
@@ -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,20 +4647,20 @@ 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;
|
|
4682
4655
|
response: string;
|
|
4683
4656
|
changes: {
|
|
4684
|
-
type: "patch" | "file";
|
|
4685
4657
|
path: string;
|
|
4658
|
+
type: "file" | "patch";
|
|
4686
4659
|
content: string;
|
|
4687
4660
|
}[];
|
|
4688
4661
|
changesAlreadyApplied: {
|
|
4689
|
-
type: "patch" | "file";
|
|
4690
4662
|
path: string;
|
|
4663
|
+
type: "file" | "patch";
|
|
4691
4664
|
content: string;
|
|
4692
4665
|
}[];
|
|
4693
4666
|
addedFileVersions: {
|
|
@@ -4704,10 +4677,10 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4704
4677
|
isUpToDate: boolean;
|
|
4705
4678
|
latestVersion: string;
|
|
4706
4679
|
} | {
|
|
4707
|
-
type: "action-error";
|
|
4708
4680
|
message: string;
|
|
4709
|
-
error
|
|
4681
|
+
type: "action-error";
|
|
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
|
} | {
|
|
@@ -4737,13 +4708,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4737
4708
|
userInputId: string;
|
|
4738
4709
|
response: string;
|
|
4739
4710
|
changes: {
|
|
4740
|
-
type: "patch" | "file";
|
|
4741
4711
|
path: string;
|
|
4712
|
+
type: "file" | "patch";
|
|
4742
4713
|
content: string;
|
|
4743
4714
|
}[];
|
|
4744
4715
|
changesAlreadyApplied: {
|
|
4745
|
-
type: "patch" | "file";
|
|
4746
4716
|
path: string;
|
|
4717
|
+
type: "file" | "patch";
|
|
4747
4718
|
content: string;
|
|
4748
4719
|
}[];
|
|
4749
4720
|
addedFileVersions: {
|
|
@@ -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,20 +4821,20 @@ 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;
|
|
4859
4829
|
response: string;
|
|
4860
4830
|
changes: {
|
|
4861
|
-
type: "patch" | "file";
|
|
4862
4831
|
path: string;
|
|
4832
|
+
type: "file" | "patch";
|
|
4863
4833
|
content: string;
|
|
4864
4834
|
}[];
|
|
4865
4835
|
changesAlreadyApplied: {
|
|
4866
|
-
type: "patch" | "file";
|
|
4867
4836
|
path: string;
|
|
4837
|
+
type: "file" | "patch";
|
|
4868
4838
|
content: string;
|
|
4869
4839
|
}[];
|
|
4870
4840
|
addedFileVersions: {
|
|
@@ -4881,10 +4851,10 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4881
4851
|
isUpToDate: boolean;
|
|
4882
4852
|
latestVersion: string;
|
|
4883
4853
|
} | {
|
|
4884
|
-
type: "action-error";
|
|
4885
4854
|
message: string;
|
|
4886
|
-
error
|
|
4855
|
+
type: "action-error";
|
|
4887
4856
|
remainingBalance?: number | undefined;
|
|
4857
|
+
error?: string | undefined;
|
|
4888
4858
|
} | {
|
|
4889
4859
|
type: "commit-message-response";
|
|
4890
4860
|
commitMessage: string;
|