codebuff 1.0.282 → 1.0.284
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-definitions.d.ts +9 -0
- package/dist/cli-definitions.js +55 -0
- package/dist/cli-definitions.js.map +1 -0
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +48 -51
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +17 -13
- package/dist/client.js +19 -0
- package/dist/client.js.map +1 -1
- package/dist/code-map/parse.d.ts.map +1 -1
- package/dist/code-map/parse.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +84 -84
- package/dist/common/analytics.js +7 -1
- package/dist/common/analytics.js.map +1 -1
- package/dist/common/constants/analytics-events.d.ts +4 -2
- package/dist/common/constants/analytics-events.js +4 -1
- package/dist/common/constants/analytics-events.js.map +1 -1
- package/dist/common/constants/tools.d.ts +1 -0
- package/dist/common/constants/tools.js +1 -0
- package/dist/common/constants/tools.js.map +1 -1
- package/dist/common/db/schema.d.ts +4 -4
- package/dist/common/db/schema.js +1 -0
- package/dist/common/db/schema.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +8 -8
- package/dist/common/types/grant.d.ts +1 -1
- package/dist/common/types/grant.js.map +1 -1
- package/dist/common/types/message.d.ts +6 -6
- package/dist/common/types/usage.d.ts +5 -5
- package/dist/common/types/usage.js +2 -1
- package/dist/common/types/usage.js.map +1 -1
- package/dist/common/util/__tests__/saxy.test.js +182 -48
- package/dist/common/util/__tests__/saxy.test.js.map +1 -1
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/random.d.ts +1 -0
- package/dist/common/util/random.js +17 -0
- package/dist/common/util/random.js.map +1 -0
- package/dist/common/util/saxy.d.ts +0 -1
- package/dist/common/util/saxy.js +4 -20
- package/dist/common/util/saxy.js.map +1 -1
- package/dist/common/util/string.js +4 -4
- package/dist/common/util/string.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +154 -154
- package/dist/display.js.map +1 -1
- package/dist/index.js +25 -30
- package/dist/index.js.map +1 -1
- package/dist/menu.js +94 -52
- package/dist/menu.js.map +1 -1
- package/dist/tool-handlers.js +1 -0
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/__tests__/tool-renderers.test.js +4 -6
- package/dist/utils/__tests__/tool-renderers.test.js.map +1 -1
- package/dist/utils/terminal.js +1 -1
- package/dist/utils/terminal.js.map +1 -1
- package/dist/utils/tool-renderers.js +3 -0
- package/dist/utils/tool-renderers.js.map +1 -1
- package/package.json +1 -1
- package/dist/cli-handlers/initialization-flow.d.ts +0 -1
- package/dist/cli-handlers/initialization-flow.js +0 -24
- package/dist/cli-handlers/initialization-flow.js.map +0 -1
- package/dist/cli-modules/command-processor.d.ts +0 -2
- package/dist/cli-modules/command-processor.js +0 -112
- package/dist/cli-modules/command-processor.js.map +0 -1
- package/dist/cli-modules/input-handler.d.ts +0 -4
- package/dist/cli-modules/input-handler.js +0 -75
- package/dist/cli-modules/input-handler.js.map +0 -1
- package/dist/cli-modules/readline-handler.d.ts +0 -11
- package/dist/cli-modules/readline-handler.js +0 -158
- package/dist/cli-modules/readline-handler.js.map +0 -1
- package/dist/cli-modules/signal-handler.d.ts +0 -7
- package/dist/cli-modules/signal-handler.js +0 -128
- package/dist/cli-modules/signal-handler.js.map +0 -1
- package/dist/cli-modules/types.d.ts +0 -51
- package/dist/cli-modules/types.js +0 -3
- package/dist/cli-modules/types.js.map +0 -1
- package/dist/cli-modules/websocket-handler.d.ts +0 -16
- package/dist/cli-modules/websocket-handler.js +0 -53
- package/dist/cli-modules/websocket-handler.js.map +0 -1
- package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts +0 -12
- package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts.map +0 -1
- package/dist/code-map/__mocks__/tree-sitter-typescript.js +0 -14
- package/dist/code-map/__mocks__/tree-sitter-typescript.js.map +0 -1
- package/dist/code-map/__mocks__/wasm-mock.d.ts +0 -2
- package/dist/code-map/__mocks__/wasm-mock.d.ts.map +0 -1
- package/dist/code-map/__mocks__/wasm-mock.js +0 -3
- package/dist/code-map/__mocks__/wasm-mock.js.map +0 -1
- package/dist/code-map/__tests__/parse.test.d.ts +0 -2
- package/dist/code-map/__tests__/parse.test.d.ts.map +0 -1
- package/dist/code-map/__tests__/parse.test.js +0 -231
- package/dist/code-map/__tests__/parse.test.js.map +0 -1
- package/dist/code-map/__tests__/test-langs/consumer.d.ts +0 -2
- package/dist/code-map/__tests__/test-langs/consumer.d.ts.map +0 -1
- package/dist/code-map/__tests__/test-langs/consumer.js +0 -6
- package/dist/code-map/__tests__/test-langs/consumer.js.map +0 -1
- package/dist/code-map/__tests__/test-langs/empty.d.ts +0 -1
- package/dist/code-map/__tests__/test-langs/empty.d.ts.map +0 -1
- package/dist/code-map/__tests__/test-langs/empty.js +0 -2
- package/dist/code-map/__tests__/test-langs/empty.js.map +0 -1
- package/dist/code-map/__tests__/test-langs/test.d.ts +0 -12
- package/dist/code-map/__tests__/test-langs/test.d.ts.map +0 -1
- package/dist/code-map/__tests__/test-langs/test.js +0 -23
- package/dist/code-map/__tests__/test-langs/test.js.map +0 -1
- package/dist/code-map/__tests__/test-langs/unused.d.ts +0 -2
- package/dist/code-map/__tests__/test-langs/unused.d.ts.map +0 -1
- package/dist/code-map/__tests__/test-langs/unused.js +0 -7
- package/dist/code-map/__tests__/test-langs/unused.js.map +0 -1
- package/dist/code-map/__tests__/test-langs/utils1.d.ts +0 -2
- package/dist/code-map/__tests__/test-langs/utils1.d.ts.map +0 -1
- package/dist/code-map/__tests__/test-langs/utils1.js +0 -7
- package/dist/code-map/__tests__/test-langs/utils1.js.map +0 -1
- package/dist/code-map/__tests__/test-langs/utils2.d.ts +0 -2
- package/dist/code-map/__tests__/test-langs/utils2.d.ts.map +0 -1
- package/dist/code-map/__tests__/test-langs/utils2.js +0 -8
- package/dist/code-map/__tests__/test-langs/utils2.js.map +0 -1
- package/dist/code-map/__tests__/tree-sitter-minimal.test.d.ts +0 -2
- package/dist/code-map/__tests__/tree-sitter-minimal.test.d.ts.map +0 -1
- package/dist/code-map/__tests__/tree-sitter-minimal.test.js +0 -79
- package/dist/code-map/__tests__/tree-sitter-minimal.test.js.map +0 -1
- package/dist/code-map/jest.config.d.ts +0 -4
- package/dist/code-map/jest.config.d.ts.map +0 -1
- package/dist/code-map/jest.config.js +0 -18
- package/dist/code-map/jest.config.js.map +0 -1
- package/dist/code-map/parse.test.d.ts +0 -2
- package/dist/code-map/parse.test.d.ts.map +0 -1
- package/dist/code-map/parse.test.js +0 -218
- package/dist/code-map/parse.test.js.map +0 -1
- package/dist/code-map/scripts/tree-sitter-test.cjs +0 -27
- package/dist/code-map/scripts/tree-sitter-test.cjs.map +0 -1
- package/dist/code-map/scripts/tree-sitter-test.d.cts +0 -2
- package/dist/code-map/scripts/tree-sitter-test.d.cts.map +0 -1
- package/dist/code-map/scripts/tree-sitter-test.d.ts +0 -2
- package/dist/code-map/scripts/tree-sitter-test.d.ts.map +0 -1
- package/dist/code-map/scripts/tree-sitter-test.js +0 -54
- package/dist/code-map/scripts/tree-sitter-test.js.map +0 -1
- package/dist/code-map/test-parser.d.ts +0 -2
- package/dist/code-map/test-parser.d.ts.map +0 -1
- package/dist/code-map/test-parser.js +0 -42
- package/dist/code-map/test-parser.js.map +0 -1
- package/dist/common/bigquery/client.d.ts +0 -15
- package/dist/common/bigquery/client.js +0 -265
- package/dist/common/bigquery/client.js.map +0 -1
- package/dist/common/bigquery/schema.d.ts +0 -55
- package/dist/common/bigquery/schema.js +0 -24
- package/dist/common/bigquery/schema.js.map +0 -1
- package/dist/common/util/file-metadata.d.ts +0 -9
- package/dist/common/util/file-metadata.js +0 -24
- package/dist/common/util/file-metadata.js.map +0 -1
|
@@ -210,16 +210,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
210
210
|
type: "ephemeral";
|
|
211
211
|
}>>;
|
|
212
212
|
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
name: string;
|
|
214
213
|
type: "tool_use";
|
|
214
|
+
name: string;
|
|
215
215
|
id: string;
|
|
216
216
|
input: Record<string, any>;
|
|
217
217
|
cache_control?: {
|
|
218
218
|
type: "ephemeral";
|
|
219
219
|
} | undefined;
|
|
220
220
|
}, {
|
|
221
|
-
name: string;
|
|
222
221
|
type: "tool_use";
|
|
222
|
+
name: string;
|
|
223
223
|
id: string;
|
|
224
224
|
input: Record<string, any>;
|
|
225
225
|
cache_control?: {
|
|
@@ -301,8 +301,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
301
301
|
type: "ephemeral";
|
|
302
302
|
} | undefined;
|
|
303
303
|
} | {
|
|
304
|
-
name: string;
|
|
305
304
|
type: "tool_use";
|
|
305
|
+
name: string;
|
|
306
306
|
id: string;
|
|
307
307
|
input: Record<string, any>;
|
|
308
308
|
cache_control?: {
|
|
@@ -335,8 +335,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
335
335
|
type: "ephemeral";
|
|
336
336
|
} | undefined;
|
|
337
337
|
} | {
|
|
338
|
-
name: string;
|
|
339
338
|
type: "tool_use";
|
|
339
|
+
name: string;
|
|
340
340
|
id: string;
|
|
341
341
|
input: Record<string, any>;
|
|
342
342
|
cache_control?: {
|
|
@@ -401,8 +401,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
401
401
|
type: "ephemeral";
|
|
402
402
|
} | undefined;
|
|
403
403
|
} | {
|
|
404
|
-
name: string;
|
|
405
404
|
type: "tool_use";
|
|
405
|
+
name: string;
|
|
406
406
|
id: string;
|
|
407
407
|
input: Record<string, any>;
|
|
408
408
|
cache_control?: {
|
|
@@ -467,8 +467,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
467
467
|
type: "ephemeral";
|
|
468
468
|
} | undefined;
|
|
469
469
|
} | {
|
|
470
|
-
name: string;
|
|
471
470
|
type: "tool_use";
|
|
471
|
+
name: string;
|
|
472
472
|
id: string;
|
|
473
473
|
input: Record<string, any>;
|
|
474
474
|
cache_control?: {
|
|
@@ -515,7 +515,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
515
515
|
type: "prompt";
|
|
516
516
|
promptId: string;
|
|
517
517
|
fingerprintId: string;
|
|
518
|
-
costMode: "
|
|
518
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
519
519
|
agentState: {
|
|
520
520
|
agentContext: string;
|
|
521
521
|
fileContext: {
|
|
@@ -554,8 +554,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
554
554
|
type: "ephemeral";
|
|
555
555
|
} | undefined;
|
|
556
556
|
} | {
|
|
557
|
-
name: string;
|
|
558
557
|
type: "tool_use";
|
|
558
|
+
name: string;
|
|
559
559
|
id: string;
|
|
560
560
|
input: Record<string, any>;
|
|
561
561
|
cache_control?: {
|
|
@@ -634,8 +634,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
634
634
|
type: "ephemeral";
|
|
635
635
|
} | undefined;
|
|
636
636
|
} | {
|
|
637
|
-
name: string;
|
|
638
637
|
type: "tool_use";
|
|
638
|
+
name: string;
|
|
639
639
|
id: string;
|
|
640
640
|
input: Record<string, any>;
|
|
641
641
|
cache_control?: {
|
|
@@ -670,7 +670,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
670
670
|
}[];
|
|
671
671
|
prompt?: string | undefined;
|
|
672
672
|
authToken?: string | undefined;
|
|
673
|
-
costMode?: "
|
|
673
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
674
674
|
model?: string | undefined;
|
|
675
675
|
cwd?: string | undefined;
|
|
676
676
|
}>, z.ZodObject<{
|
|
@@ -803,6 +803,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
803
803
|
}>;
|
|
804
804
|
}, "strip", z.ZodTypeAny, {
|
|
805
805
|
type: "init";
|
|
806
|
+
fingerprintId: string;
|
|
806
807
|
fileContext: {
|
|
807
808
|
currentWorkingDirectory: string;
|
|
808
809
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -831,10 +832,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
831
832
|
content: string;
|
|
832
833
|
}[][] | undefined;
|
|
833
834
|
};
|
|
834
|
-
fingerprintId: string;
|
|
835
835
|
authToken?: string | undefined;
|
|
836
836
|
}, {
|
|
837
837
|
type: "init";
|
|
838
|
+
fingerprintId: string;
|
|
838
839
|
fileContext: {
|
|
839
840
|
currentWorkingDirectory: string;
|
|
840
841
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -863,7 +864,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
863
864
|
content: string;
|
|
864
865
|
}[][] | undefined;
|
|
865
866
|
};
|
|
866
|
-
fingerprintId: string;
|
|
867
867
|
authToken?: string | undefined;
|
|
868
868
|
}>, z.ZodObject<{
|
|
869
869
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -887,7 +887,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
887
887
|
type: "prompt";
|
|
888
888
|
promptId: string;
|
|
889
889
|
fingerprintId: string;
|
|
890
|
-
costMode: "
|
|
890
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
891
891
|
agentState: {
|
|
892
892
|
agentContext: string;
|
|
893
893
|
fileContext: {
|
|
@@ -926,8 +926,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
926
926
|
type: "ephemeral";
|
|
927
927
|
} | undefined;
|
|
928
928
|
} | {
|
|
929
|
-
name: string;
|
|
930
929
|
type: "tool_use";
|
|
930
|
+
name: string;
|
|
931
931
|
id: string;
|
|
932
932
|
input: Record<string, any>;
|
|
933
933
|
cache_control?: {
|
|
@@ -970,6 +970,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
970
970
|
requestId?: string | undefined;
|
|
971
971
|
} | {
|
|
972
972
|
type: "init";
|
|
973
|
+
fingerprintId: string;
|
|
973
974
|
fileContext: {
|
|
974
975
|
currentWorkingDirectory: string;
|
|
975
976
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -998,7 +999,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
998
999
|
content: string;
|
|
999
1000
|
}[][] | undefined;
|
|
1000
1001
|
};
|
|
1001
|
-
fingerprintId: string;
|
|
1002
1002
|
authToken?: string | undefined;
|
|
1003
1003
|
} | {
|
|
1004
1004
|
type: "generate-commit-message";
|
|
@@ -1051,8 +1051,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1051
1051
|
type: "ephemeral";
|
|
1052
1052
|
} | undefined;
|
|
1053
1053
|
} | {
|
|
1054
|
-
name: string;
|
|
1055
1054
|
type: "tool_use";
|
|
1055
|
+
name: string;
|
|
1056
1056
|
id: string;
|
|
1057
1057
|
input: Record<string, any>;
|
|
1058
1058
|
cache_control?: {
|
|
@@ -1087,7 +1087,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1087
1087
|
}[];
|
|
1088
1088
|
prompt?: string | undefined;
|
|
1089
1089
|
authToken?: string | undefined;
|
|
1090
|
-
costMode?: "
|
|
1090
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
1091
1091
|
model?: string | undefined;
|
|
1092
1092
|
cwd?: string | undefined;
|
|
1093
1093
|
} | {
|
|
@@ -1096,6 +1096,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1096
1096
|
requestId?: string | undefined;
|
|
1097
1097
|
} | {
|
|
1098
1098
|
type: "init";
|
|
1099
|
+
fingerprintId: string;
|
|
1099
1100
|
fileContext: {
|
|
1100
1101
|
currentWorkingDirectory: string;
|
|
1101
1102
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1124,7 +1125,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1124
1125
|
content: string;
|
|
1125
1126
|
}[][] | undefined;
|
|
1126
1127
|
};
|
|
1127
|
-
fingerprintId: string;
|
|
1128
1128
|
authToken?: string | undefined;
|
|
1129
1129
|
} | {
|
|
1130
1130
|
type: "generate-commit-message";
|
|
@@ -1341,16 +1341,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1341
1341
|
type: "ephemeral";
|
|
1342
1342
|
}>>;
|
|
1343
1343
|
}, "strip", z.ZodTypeAny, {
|
|
1344
|
-
name: string;
|
|
1345
1344
|
type: "tool_use";
|
|
1345
|
+
name: string;
|
|
1346
1346
|
id: string;
|
|
1347
1347
|
input: Record<string, any>;
|
|
1348
1348
|
cache_control?: {
|
|
1349
1349
|
type: "ephemeral";
|
|
1350
1350
|
} | undefined;
|
|
1351
1351
|
}, {
|
|
1352
|
-
name: string;
|
|
1353
1352
|
type: "tool_use";
|
|
1353
|
+
name: string;
|
|
1354
1354
|
id: string;
|
|
1355
1355
|
input: Record<string, any>;
|
|
1356
1356
|
cache_control?: {
|
|
@@ -1432,8 +1432,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1432
1432
|
type: "ephemeral";
|
|
1433
1433
|
} | undefined;
|
|
1434
1434
|
} | {
|
|
1435
|
-
name: string;
|
|
1436
1435
|
type: "tool_use";
|
|
1436
|
+
name: string;
|
|
1437
1437
|
id: string;
|
|
1438
1438
|
input: Record<string, any>;
|
|
1439
1439
|
cache_control?: {
|
|
@@ -1466,8 +1466,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1466
1466
|
type: "ephemeral";
|
|
1467
1467
|
} | undefined;
|
|
1468
1468
|
} | {
|
|
1469
|
-
name: string;
|
|
1470
1469
|
type: "tool_use";
|
|
1470
|
+
name: string;
|
|
1471
1471
|
id: string;
|
|
1472
1472
|
input: Record<string, any>;
|
|
1473
1473
|
cache_control?: {
|
|
@@ -1532,8 +1532,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1532
1532
|
type: "ephemeral";
|
|
1533
1533
|
} | undefined;
|
|
1534
1534
|
} | {
|
|
1535
|
-
name: string;
|
|
1536
1535
|
type: "tool_use";
|
|
1536
|
+
name: string;
|
|
1537
1537
|
id: string;
|
|
1538
1538
|
input: Record<string, any>;
|
|
1539
1539
|
cache_control?: {
|
|
@@ -1598,8 +1598,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1598
1598
|
type: "ephemeral";
|
|
1599
1599
|
} | undefined;
|
|
1600
1600
|
} | {
|
|
1601
|
-
name: string;
|
|
1602
1601
|
type: "tool_use";
|
|
1602
|
+
name: string;
|
|
1603
1603
|
id: string;
|
|
1604
1604
|
input: Record<string, any>;
|
|
1605
1605
|
cache_control?: {
|
|
@@ -1646,7 +1646,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1646
1646
|
type: "prompt";
|
|
1647
1647
|
promptId: string;
|
|
1648
1648
|
fingerprintId: string;
|
|
1649
|
-
costMode: "
|
|
1649
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
1650
1650
|
agentState: {
|
|
1651
1651
|
agentContext: string;
|
|
1652
1652
|
fileContext: {
|
|
@@ -1685,8 +1685,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1685
1685
|
type: "ephemeral";
|
|
1686
1686
|
} | undefined;
|
|
1687
1687
|
} | {
|
|
1688
|
-
name: string;
|
|
1689
1688
|
type: "tool_use";
|
|
1689
|
+
name: string;
|
|
1690
1690
|
id: string;
|
|
1691
1691
|
input: Record<string, any>;
|
|
1692
1692
|
cache_control?: {
|
|
@@ -1765,8 +1765,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1765
1765
|
type: "ephemeral";
|
|
1766
1766
|
} | undefined;
|
|
1767
1767
|
} | {
|
|
1768
|
-
name: string;
|
|
1769
1768
|
type: "tool_use";
|
|
1769
|
+
name: string;
|
|
1770
1770
|
id: string;
|
|
1771
1771
|
input: Record<string, any>;
|
|
1772
1772
|
cache_control?: {
|
|
@@ -1801,7 +1801,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1801
1801
|
}[];
|
|
1802
1802
|
prompt?: string | undefined;
|
|
1803
1803
|
authToken?: string | undefined;
|
|
1804
|
-
costMode?: "
|
|
1804
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
1805
1805
|
model?: string | undefined;
|
|
1806
1806
|
cwd?: string | undefined;
|
|
1807
1807
|
}>, z.ZodObject<{
|
|
@@ -1934,6 +1934,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1934
1934
|
}>;
|
|
1935
1935
|
}, "strip", z.ZodTypeAny, {
|
|
1936
1936
|
type: "init";
|
|
1937
|
+
fingerprintId: string;
|
|
1937
1938
|
fileContext: {
|
|
1938
1939
|
currentWorkingDirectory: string;
|
|
1939
1940
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1962,10 +1963,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1962
1963
|
content: string;
|
|
1963
1964
|
}[][] | undefined;
|
|
1964
1965
|
};
|
|
1965
|
-
fingerprintId: string;
|
|
1966
1966
|
authToken?: string | undefined;
|
|
1967
1967
|
}, {
|
|
1968
1968
|
type: "init";
|
|
1969
|
+
fingerprintId: string;
|
|
1969
1970
|
fileContext: {
|
|
1970
1971
|
currentWorkingDirectory: string;
|
|
1971
1972
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1994,7 +1995,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1994
1995
|
content: string;
|
|
1995
1996
|
}[][] | undefined;
|
|
1996
1997
|
};
|
|
1997
|
-
fingerprintId: string;
|
|
1998
1998
|
authToken?: string | undefined;
|
|
1999
1999
|
}>, z.ZodObject<{
|
|
2000
2000
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -2018,7 +2018,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2018
2018
|
type: "prompt";
|
|
2019
2019
|
promptId: string;
|
|
2020
2020
|
fingerprintId: string;
|
|
2021
|
-
costMode: "
|
|
2021
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
2022
2022
|
agentState: {
|
|
2023
2023
|
agentContext: string;
|
|
2024
2024
|
fileContext: {
|
|
@@ -2057,8 +2057,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2057
2057
|
type: "ephemeral";
|
|
2058
2058
|
} | undefined;
|
|
2059
2059
|
} | {
|
|
2060
|
-
name: string;
|
|
2061
2060
|
type: "tool_use";
|
|
2061
|
+
name: string;
|
|
2062
2062
|
id: string;
|
|
2063
2063
|
input: Record<string, any>;
|
|
2064
2064
|
cache_control?: {
|
|
@@ -2101,6 +2101,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2101
2101
|
requestId?: string | undefined;
|
|
2102
2102
|
} | {
|
|
2103
2103
|
type: "init";
|
|
2104
|
+
fingerprintId: string;
|
|
2104
2105
|
fileContext: {
|
|
2105
2106
|
currentWorkingDirectory: string;
|
|
2106
2107
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2129,7 +2130,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2129
2130
|
content: string;
|
|
2130
2131
|
}[][] | undefined;
|
|
2131
2132
|
};
|
|
2132
|
-
fingerprintId: string;
|
|
2133
2133
|
authToken?: string | undefined;
|
|
2134
2134
|
} | {
|
|
2135
2135
|
type: "generate-commit-message";
|
|
@@ -2182,8 +2182,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2182
2182
|
type: "ephemeral";
|
|
2183
2183
|
} | undefined;
|
|
2184
2184
|
} | {
|
|
2185
|
-
name: string;
|
|
2186
2185
|
type: "tool_use";
|
|
2186
|
+
name: string;
|
|
2187
2187
|
id: string;
|
|
2188
2188
|
input: Record<string, any>;
|
|
2189
2189
|
cache_control?: {
|
|
@@ -2218,7 +2218,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2218
2218
|
}[];
|
|
2219
2219
|
prompt?: string | undefined;
|
|
2220
2220
|
authToken?: string | undefined;
|
|
2221
|
-
costMode?: "
|
|
2221
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
2222
2222
|
model?: string | undefined;
|
|
2223
2223
|
cwd?: string | undefined;
|
|
2224
2224
|
} | {
|
|
@@ -2227,6 +2227,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2227
2227
|
requestId?: string | undefined;
|
|
2228
2228
|
} | {
|
|
2229
2229
|
type: "init";
|
|
2230
|
+
fingerprintId: string;
|
|
2230
2231
|
fileContext: {
|
|
2231
2232
|
currentWorkingDirectory: string;
|
|
2232
2233
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2255,7 +2256,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2255
2256
|
content: string;
|
|
2256
2257
|
}[][] | undefined;
|
|
2257
2258
|
};
|
|
2258
|
-
fingerprintId: string;
|
|
2259
2259
|
authToken?: string | undefined;
|
|
2260
2260
|
} | {
|
|
2261
2261
|
type: "generate-commit-message";
|
|
@@ -2307,12 +2307,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2307
2307
|
path: z.ZodString;
|
|
2308
2308
|
content: z.ZodString;
|
|
2309
2309
|
}, "strip", z.ZodTypeAny, {
|
|
2310
|
-
path: string;
|
|
2311
2310
|
type: "patch" | "file";
|
|
2311
|
+
path: string;
|
|
2312
2312
|
content: string;
|
|
2313
2313
|
}, {
|
|
2314
|
-
path: string;
|
|
2315
2314
|
type: "patch" | "file";
|
|
2315
|
+
path: string;
|
|
2316
2316
|
content: string;
|
|
2317
2317
|
}>, "many">;
|
|
2318
2318
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2320,12 +2320,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2320
2320
|
path: z.ZodString;
|
|
2321
2321
|
content: z.ZodString;
|
|
2322
2322
|
}, "strip", z.ZodTypeAny, {
|
|
2323
|
-
path: string;
|
|
2324
2323
|
type: "patch" | "file";
|
|
2324
|
+
path: string;
|
|
2325
2325
|
content: string;
|
|
2326
2326
|
}, {
|
|
2327
|
-
path: string;
|
|
2328
2327
|
type: "patch" | "file";
|
|
2328
|
+
path: string;
|
|
2329
2329
|
content: string;
|
|
2330
2330
|
}>, "many">;
|
|
2331
2331
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2342,7 +2342,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2342
2342
|
}, {
|
|
2343
2343
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
2344
2344
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
2345
|
-
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
2345
|
+
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>>;
|
|
2346
2346
|
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2347
2347
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2348
2348
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -2350,13 +2350,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2350
2350
|
userInputId: string;
|
|
2351
2351
|
response: string;
|
|
2352
2352
|
changes: {
|
|
2353
|
-
path: string;
|
|
2354
2353
|
type: "patch" | "file";
|
|
2354
|
+
path: string;
|
|
2355
2355
|
content: string;
|
|
2356
2356
|
}[];
|
|
2357
2357
|
changesAlreadyApplied: {
|
|
2358
|
-
path: string;
|
|
2359
2358
|
type: "patch" | "file";
|
|
2359
|
+
path: string;
|
|
2360
2360
|
content: string;
|
|
2361
2361
|
}[];
|
|
2362
2362
|
addedFileVersions: {
|
|
@@ -2366,7 +2366,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2366
2366
|
resetFileVersions: boolean;
|
|
2367
2367
|
usage?: number | undefined;
|
|
2368
2368
|
remainingBalance?: number | undefined;
|
|
2369
|
-
balanceBreakdown?: Partial<Record<
|
|
2369
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
2370
2370
|
next_quota_reset?: Date | null | undefined;
|
|
2371
2371
|
autoTopupAdded?: number | undefined;
|
|
2372
2372
|
}, {
|
|
@@ -2374,13 +2374,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2374
2374
|
userInputId: string;
|
|
2375
2375
|
response: string;
|
|
2376
2376
|
changes: {
|
|
2377
|
-
path: string;
|
|
2378
2377
|
type: "patch" | "file";
|
|
2378
|
+
path: string;
|
|
2379
2379
|
content: string;
|
|
2380
2380
|
}[];
|
|
2381
2381
|
changesAlreadyApplied: {
|
|
2382
|
-
path: string;
|
|
2383
2382
|
type: "patch" | "file";
|
|
2383
|
+
path: string;
|
|
2384
2384
|
content: string;
|
|
2385
2385
|
}[];
|
|
2386
2386
|
addedFileVersions: {
|
|
@@ -2390,7 +2390,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2390
2390
|
resetFileVersions: boolean;
|
|
2391
2391
|
usage?: number | undefined;
|
|
2392
2392
|
remainingBalance?: number | undefined;
|
|
2393
|
-
balanceBreakdown?: Partial<Record<
|
|
2393
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
2394
2394
|
next_quota_reset?: Date | null | undefined;
|
|
2395
2395
|
autoTopupAdded?: number | undefined;
|
|
2396
2396
|
}>, z.ZodObject<{
|
|
@@ -2547,16 +2547,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2547
2547
|
type: "ephemeral";
|
|
2548
2548
|
}>>;
|
|
2549
2549
|
}, "strip", z.ZodTypeAny, {
|
|
2550
|
-
name: string;
|
|
2551
2550
|
type: "tool_use";
|
|
2551
|
+
name: string;
|
|
2552
2552
|
id: string;
|
|
2553
2553
|
input: Record<string, any>;
|
|
2554
2554
|
cache_control?: {
|
|
2555
2555
|
type: "ephemeral";
|
|
2556
2556
|
} | undefined;
|
|
2557
2557
|
}, {
|
|
2558
|
-
name: string;
|
|
2559
2558
|
type: "tool_use";
|
|
2559
|
+
name: string;
|
|
2560
2560
|
id: string;
|
|
2561
2561
|
input: Record<string, any>;
|
|
2562
2562
|
cache_control?: {
|
|
@@ -2638,8 +2638,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2638
2638
|
type: "ephemeral";
|
|
2639
2639
|
} | undefined;
|
|
2640
2640
|
} | {
|
|
2641
|
-
name: string;
|
|
2642
2641
|
type: "tool_use";
|
|
2642
|
+
name: string;
|
|
2643
2643
|
id: string;
|
|
2644
2644
|
input: Record<string, any>;
|
|
2645
2645
|
cache_control?: {
|
|
@@ -2672,8 +2672,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2672
2672
|
type: "ephemeral";
|
|
2673
2673
|
} | undefined;
|
|
2674
2674
|
} | {
|
|
2675
|
-
name: string;
|
|
2676
2675
|
type: "tool_use";
|
|
2676
|
+
name: string;
|
|
2677
2677
|
id: string;
|
|
2678
2678
|
input: Record<string, any>;
|
|
2679
2679
|
cache_control?: {
|
|
@@ -2738,8 +2738,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2738
2738
|
type: "ephemeral";
|
|
2739
2739
|
} | undefined;
|
|
2740
2740
|
} | {
|
|
2741
|
-
name: string;
|
|
2742
2741
|
type: "tool_use";
|
|
2742
|
+
name: string;
|
|
2743
2743
|
id: string;
|
|
2744
2744
|
input: Record<string, any>;
|
|
2745
2745
|
cache_control?: {
|
|
@@ -2804,8 +2804,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2804
2804
|
type: "ephemeral";
|
|
2805
2805
|
} | undefined;
|
|
2806
2806
|
} | {
|
|
2807
|
-
name: string;
|
|
2808
2807
|
type: "tool_use";
|
|
2808
|
+
name: string;
|
|
2809
2809
|
id: string;
|
|
2810
2810
|
input: Record<string, any>;
|
|
2811
2811
|
cache_control?: {
|
|
@@ -2839,12 +2839,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2839
2839
|
id: z.ZodString;
|
|
2840
2840
|
}, "strip", z.ZodTypeAny, {
|
|
2841
2841
|
name: string;
|
|
2842
|
-
parameters: Record<string, string>;
|
|
2843
2842
|
id: string;
|
|
2843
|
+
parameters: Record<string, string>;
|
|
2844
2844
|
}, {
|
|
2845
2845
|
name: string;
|
|
2846
|
-
parameters: Record<string, string>;
|
|
2847
2846
|
id: string;
|
|
2847
|
+
parameters: Record<string, string>;
|
|
2848
2848
|
}>, "many">;
|
|
2849
2849
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
2850
2850
|
name: z.ZodString;
|
|
@@ -2900,8 +2900,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2900
2900
|
type: "ephemeral";
|
|
2901
2901
|
} | undefined;
|
|
2902
2902
|
} | {
|
|
2903
|
-
name: string;
|
|
2904
2903
|
type: "tool_use";
|
|
2904
|
+
name: string;
|
|
2905
2905
|
id: string;
|
|
2906
2906
|
input: Record<string, any>;
|
|
2907
2907
|
cache_control?: {
|
|
@@ -2936,8 +2936,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2936
2936
|
}[];
|
|
2937
2937
|
toolCalls: {
|
|
2938
2938
|
name: string;
|
|
2939
|
-
parameters: Record<string, string>;
|
|
2940
2939
|
id: string;
|
|
2940
|
+
parameters: Record<string, string>;
|
|
2941
2941
|
}[];
|
|
2942
2942
|
}, {
|
|
2943
2943
|
type: "prompt-response";
|
|
@@ -2980,8 +2980,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2980
2980
|
type: "ephemeral";
|
|
2981
2981
|
} | undefined;
|
|
2982
2982
|
} | {
|
|
2983
|
-
name: string;
|
|
2984
2983
|
type: "tool_use";
|
|
2984
|
+
name: string;
|
|
2985
2985
|
id: string;
|
|
2986
2986
|
input: Record<string, any>;
|
|
2987
2987
|
cache_control?: {
|
|
@@ -3016,8 +3016,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3016
3016
|
}[];
|
|
3017
3017
|
toolCalls: {
|
|
3018
3018
|
name: string;
|
|
3019
|
-
parameters: Record<string, string>;
|
|
3020
3019
|
id: string;
|
|
3020
|
+
parameters: Record<string, string>;
|
|
3021
3021
|
}[];
|
|
3022
3022
|
}>, z.ZodObject<{
|
|
3023
3023
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -3053,12 +3053,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3053
3053
|
path: z.ZodString;
|
|
3054
3054
|
content: z.ZodString;
|
|
3055
3055
|
}, "strip", z.ZodTypeAny, {
|
|
3056
|
-
path: string;
|
|
3057
3056
|
type: "patch" | "file";
|
|
3057
|
+
path: string;
|
|
3058
3058
|
content: string;
|
|
3059
3059
|
}, {
|
|
3060
|
-
path: string;
|
|
3061
3060
|
type: "patch" | "file";
|
|
3061
|
+
path: string;
|
|
3062
3062
|
content: string;
|
|
3063
3063
|
}>, "many">;
|
|
3064
3064
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3066,12 +3066,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3066
3066
|
path: z.ZodString;
|
|
3067
3067
|
content: z.ZodString;
|
|
3068
3068
|
}, "strip", z.ZodTypeAny, {
|
|
3069
|
-
path: string;
|
|
3070
3069
|
type: "patch" | "file";
|
|
3070
|
+
path: string;
|
|
3071
3071
|
content: string;
|
|
3072
3072
|
}, {
|
|
3073
|
-
path: string;
|
|
3074
3073
|
type: "patch" | "file";
|
|
3074
|
+
path: string;
|
|
3075
3075
|
content: string;
|
|
3076
3076
|
}>, "many">;
|
|
3077
3077
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3095,13 +3095,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3095
3095
|
userInputId: string;
|
|
3096
3096
|
response: string;
|
|
3097
3097
|
changes: {
|
|
3098
|
-
path: string;
|
|
3099
3098
|
type: "patch" | "file";
|
|
3099
|
+
path: string;
|
|
3100
3100
|
content: string;
|
|
3101
3101
|
}[];
|
|
3102
3102
|
changesAlreadyApplied: {
|
|
3103
|
-
path: string;
|
|
3104
3103
|
type: "patch" | "file";
|
|
3104
|
+
path: string;
|
|
3105
3105
|
content: string;
|
|
3106
3106
|
}[];
|
|
3107
3107
|
addedFileVersions: {
|
|
@@ -3119,13 +3119,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3119
3119
|
userInputId: string;
|
|
3120
3120
|
response: string;
|
|
3121
3121
|
changes: {
|
|
3122
|
-
path: string;
|
|
3123
3122
|
type: "patch" | "file";
|
|
3123
|
+
path: string;
|
|
3124
3124
|
content: string;
|
|
3125
3125
|
}[];
|
|
3126
3126
|
changesAlreadyApplied: {
|
|
3127
|
-
path: string;
|
|
3128
3127
|
type: "patch" | "file";
|
|
3128
|
+
path: string;
|
|
3129
3129
|
content: string;
|
|
3130
3130
|
}[];
|
|
3131
3131
|
addedFileVersions: {
|
|
@@ -3163,7 +3163,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3163
3163
|
type: z.ZodLiteral<"usage-response">;
|
|
3164
3164
|
usage: z.ZodNumber;
|
|
3165
3165
|
remainingBalance: z.ZodNumber;
|
|
3166
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
3166
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
3167
3167
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
3168
3168
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3169
3169
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
@@ -3171,20 +3171,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3171
3171
|
usage: number;
|
|
3172
3172
|
remainingBalance: number;
|
|
3173
3173
|
next_quota_reset: Date | null;
|
|
3174
|
-
balanceBreakdown?: Partial<Record<
|
|
3174
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3175
3175
|
autoTopupAdded?: number | undefined;
|
|
3176
3176
|
}, {
|
|
3177
3177
|
type: "init-response";
|
|
3178
3178
|
usage: number;
|
|
3179
3179
|
remainingBalance: number;
|
|
3180
3180
|
next_quota_reset: Date | null;
|
|
3181
|
-
balanceBreakdown?: Partial<Record<
|
|
3181
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3182
3182
|
autoTopupAdded?: number | undefined;
|
|
3183
3183
|
}>, z.ZodObject<{
|
|
3184
3184
|
type: z.ZodLiteral<"usage-response">;
|
|
3185
3185
|
usage: z.ZodNumber;
|
|
3186
3186
|
remainingBalance: z.ZodNumber;
|
|
3187
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
3187
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
3188
3188
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
3189
3189
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3190
3190
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3192,14 +3192,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3192
3192
|
usage: number;
|
|
3193
3193
|
remainingBalance: number;
|
|
3194
3194
|
next_quota_reset: Date | null;
|
|
3195
|
-
balanceBreakdown?: Partial<Record<
|
|
3195
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3196
3196
|
autoTopupAdded?: number | undefined;
|
|
3197
3197
|
}, {
|
|
3198
3198
|
type: "usage-response";
|
|
3199
3199
|
usage: number;
|
|
3200
3200
|
remainingBalance: number;
|
|
3201
3201
|
next_quota_reset: Date | null;
|
|
3202
|
-
balanceBreakdown?: Partial<Record<
|
|
3202
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3203
3203
|
autoTopupAdded?: number | undefined;
|
|
3204
3204
|
}>, z.ZodObject<{
|
|
3205
3205
|
type: z.ZodLiteral<"message-cost-response">;
|
|
@@ -3219,13 +3219,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3219
3219
|
error: z.ZodOptional<z.ZodString>;
|
|
3220
3220
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3221
3221
|
}, "strip", z.ZodTypeAny, {
|
|
3222
|
-
message: string;
|
|
3223
3222
|
type: "action-error";
|
|
3223
|
+
message: string;
|
|
3224
3224
|
remainingBalance?: number | undefined;
|
|
3225
3225
|
error?: string | undefined;
|
|
3226
3226
|
}, {
|
|
3227
|
-
message: string;
|
|
3228
3227
|
type: "action-error";
|
|
3228
|
+
message: string;
|
|
3229
3229
|
remainingBalance?: number | undefined;
|
|
3230
3230
|
error?: string | undefined;
|
|
3231
3231
|
}>, z.ZodObject<{
|
|
@@ -3251,27 +3251,27 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3251
3251
|
usage: number;
|
|
3252
3252
|
remainingBalance: number;
|
|
3253
3253
|
next_quota_reset: Date | null;
|
|
3254
|
-
balanceBreakdown?: Partial<Record<
|
|
3254
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3255
3255
|
autoTopupAdded?: number | undefined;
|
|
3256
3256
|
} | {
|
|
3257
3257
|
type: "init-response";
|
|
3258
3258
|
usage: number;
|
|
3259
3259
|
remainingBalance: number;
|
|
3260
3260
|
next_quota_reset: Date | null;
|
|
3261
|
-
balanceBreakdown?: Partial<Record<
|
|
3261
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3262
3262
|
autoTopupAdded?: number | undefined;
|
|
3263
3263
|
} | {
|
|
3264
3264
|
type: "response-complete";
|
|
3265
3265
|
userInputId: string;
|
|
3266
3266
|
response: string;
|
|
3267
3267
|
changes: {
|
|
3268
|
-
path: string;
|
|
3269
3268
|
type: "patch" | "file";
|
|
3269
|
+
path: string;
|
|
3270
3270
|
content: string;
|
|
3271
3271
|
}[];
|
|
3272
3272
|
changesAlreadyApplied: {
|
|
3273
|
-
path: string;
|
|
3274
3273
|
type: "patch" | "file";
|
|
3274
|
+
path: string;
|
|
3275
3275
|
content: string;
|
|
3276
3276
|
}[];
|
|
3277
3277
|
addedFileVersions: {
|
|
@@ -3281,7 +3281,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3281
3281
|
resetFileVersions: boolean;
|
|
3282
3282
|
usage?: number | undefined;
|
|
3283
3283
|
remainingBalance?: number | undefined;
|
|
3284
|
-
balanceBreakdown?: Partial<Record<
|
|
3284
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3285
3285
|
next_quota_reset?: Date | null | undefined;
|
|
3286
3286
|
autoTopupAdded?: number | undefined;
|
|
3287
3287
|
} | {
|
|
@@ -3329,8 +3329,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3329
3329
|
type: "ephemeral";
|
|
3330
3330
|
} | undefined;
|
|
3331
3331
|
} | {
|
|
3332
|
-
name: string;
|
|
3333
3332
|
type: "tool_use";
|
|
3333
|
+
name: string;
|
|
3334
3334
|
id: string;
|
|
3335
3335
|
input: Record<string, any>;
|
|
3336
3336
|
cache_control?: {
|
|
@@ -3365,8 +3365,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3365
3365
|
}[];
|
|
3366
3366
|
toolCalls: {
|
|
3367
3367
|
name: string;
|
|
3368
|
-
parameters: Record<string, string>;
|
|
3369
3368
|
id: string;
|
|
3369
|
+
parameters: Record<string, string>;
|
|
3370
3370
|
}[];
|
|
3371
3371
|
} | {
|
|
3372
3372
|
type: "response-chunk";
|
|
@@ -3386,13 +3386,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3386
3386
|
userInputId: string;
|
|
3387
3387
|
response: string;
|
|
3388
3388
|
changes: {
|
|
3389
|
-
path: string;
|
|
3390
3389
|
type: "patch" | "file";
|
|
3390
|
+
path: string;
|
|
3391
3391
|
content: string;
|
|
3392
3392
|
}[];
|
|
3393
3393
|
changesAlreadyApplied: {
|
|
3394
|
-
path: string;
|
|
3395
3394
|
type: "patch" | "file";
|
|
3395
|
+
path: string;
|
|
3396
3396
|
content: string;
|
|
3397
3397
|
}[];
|
|
3398
3398
|
addedFileVersions: {
|
|
@@ -3409,8 +3409,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3409
3409
|
isUpToDate: boolean;
|
|
3410
3410
|
latestVersion: string;
|
|
3411
3411
|
} | {
|
|
3412
|
-
message: string;
|
|
3413
3412
|
type: "action-error";
|
|
3413
|
+
message: string;
|
|
3414
3414
|
remainingBalance?: number | undefined;
|
|
3415
3415
|
error?: string | undefined;
|
|
3416
3416
|
} | {
|
|
@@ -3426,27 +3426,27 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3426
3426
|
usage: number;
|
|
3427
3427
|
remainingBalance: number;
|
|
3428
3428
|
next_quota_reset: Date | null;
|
|
3429
|
-
balanceBreakdown?: Partial<Record<
|
|
3429
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3430
3430
|
autoTopupAdded?: number | undefined;
|
|
3431
3431
|
} | {
|
|
3432
3432
|
type: "init-response";
|
|
3433
3433
|
usage: number;
|
|
3434
3434
|
remainingBalance: number;
|
|
3435
3435
|
next_quota_reset: Date | null;
|
|
3436
|
-
balanceBreakdown?: Partial<Record<
|
|
3436
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3437
3437
|
autoTopupAdded?: number | undefined;
|
|
3438
3438
|
} | {
|
|
3439
3439
|
type: "response-complete";
|
|
3440
3440
|
userInputId: string;
|
|
3441
3441
|
response: string;
|
|
3442
3442
|
changes: {
|
|
3443
|
-
path: string;
|
|
3444
3443
|
type: "patch" | "file";
|
|
3444
|
+
path: string;
|
|
3445
3445
|
content: string;
|
|
3446
3446
|
}[];
|
|
3447
3447
|
changesAlreadyApplied: {
|
|
3448
|
-
path: string;
|
|
3449
3448
|
type: "patch" | "file";
|
|
3449
|
+
path: string;
|
|
3450
3450
|
content: string;
|
|
3451
3451
|
}[];
|
|
3452
3452
|
addedFileVersions: {
|
|
@@ -3456,7 +3456,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3456
3456
|
resetFileVersions: boolean;
|
|
3457
3457
|
usage?: number | undefined;
|
|
3458
3458
|
remainingBalance?: number | undefined;
|
|
3459
|
-
balanceBreakdown?: Partial<Record<
|
|
3459
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3460
3460
|
next_quota_reset?: Date | null | undefined;
|
|
3461
3461
|
autoTopupAdded?: number | undefined;
|
|
3462
3462
|
} | {
|
|
@@ -3504,8 +3504,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3504
3504
|
type: "ephemeral";
|
|
3505
3505
|
} | undefined;
|
|
3506
3506
|
} | {
|
|
3507
|
-
name: string;
|
|
3508
3507
|
type: "tool_use";
|
|
3508
|
+
name: string;
|
|
3509
3509
|
id: string;
|
|
3510
3510
|
input: Record<string, any>;
|
|
3511
3511
|
cache_control?: {
|
|
@@ -3540,8 +3540,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3540
3540
|
}[];
|
|
3541
3541
|
toolCalls: {
|
|
3542
3542
|
name: string;
|
|
3543
|
-
parameters: Record<string, string>;
|
|
3544
3543
|
id: string;
|
|
3544
|
+
parameters: Record<string, string>;
|
|
3545
3545
|
}[];
|
|
3546
3546
|
} | {
|
|
3547
3547
|
type: "response-chunk";
|
|
@@ -3561,13 +3561,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3561
3561
|
userInputId: string;
|
|
3562
3562
|
response: string;
|
|
3563
3563
|
changes: {
|
|
3564
|
-
path: string;
|
|
3565
3564
|
type: "patch" | "file";
|
|
3565
|
+
path: string;
|
|
3566
3566
|
content: string;
|
|
3567
3567
|
}[];
|
|
3568
3568
|
changesAlreadyApplied: {
|
|
3569
|
-
path: string;
|
|
3570
3569
|
type: "patch" | "file";
|
|
3570
|
+
path: string;
|
|
3571
3571
|
content: string;
|
|
3572
3572
|
}[];
|
|
3573
3573
|
addedFileVersions: {
|
|
@@ -3584,8 +3584,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3584
3584
|
isUpToDate: boolean;
|
|
3585
3585
|
latestVersion: string;
|
|
3586
3586
|
} | {
|
|
3587
|
-
message: string;
|
|
3588
3587
|
type: "action-error";
|
|
3588
|
+
message: string;
|
|
3589
3589
|
remainingBalance?: number | undefined;
|
|
3590
3590
|
error?: string | undefined;
|
|
3591
3591
|
} | {
|
|
@@ -3634,12 +3634,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3634
3634
|
path: z.ZodString;
|
|
3635
3635
|
content: z.ZodString;
|
|
3636
3636
|
}, "strip", z.ZodTypeAny, {
|
|
3637
|
-
path: string;
|
|
3638
3637
|
type: "patch" | "file";
|
|
3638
|
+
path: string;
|
|
3639
3639
|
content: string;
|
|
3640
3640
|
}, {
|
|
3641
|
-
path: string;
|
|
3642
3641
|
type: "patch" | "file";
|
|
3642
|
+
path: string;
|
|
3643
3643
|
content: string;
|
|
3644
3644
|
}>, "many">;
|
|
3645
3645
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3647,12 +3647,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3647
3647
|
path: z.ZodString;
|
|
3648
3648
|
content: z.ZodString;
|
|
3649
3649
|
}, "strip", z.ZodTypeAny, {
|
|
3650
|
-
path: string;
|
|
3651
3650
|
type: "patch" | "file";
|
|
3651
|
+
path: string;
|
|
3652
3652
|
content: string;
|
|
3653
3653
|
}, {
|
|
3654
|
-
path: string;
|
|
3655
3654
|
type: "patch" | "file";
|
|
3655
|
+
path: string;
|
|
3656
3656
|
content: string;
|
|
3657
3657
|
}>, "many">;
|
|
3658
3658
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3669,7 +3669,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3669
3669
|
}, {
|
|
3670
3670
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
3671
3671
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3672
|
-
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
3672
|
+
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>>;
|
|
3673
3673
|
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3674
3674
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
3675
3675
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -3677,13 +3677,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3677
3677
|
userInputId: string;
|
|
3678
3678
|
response: string;
|
|
3679
3679
|
changes: {
|
|
3680
|
-
path: string;
|
|
3681
3680
|
type: "patch" | "file";
|
|
3681
|
+
path: string;
|
|
3682
3682
|
content: string;
|
|
3683
3683
|
}[];
|
|
3684
3684
|
changesAlreadyApplied: {
|
|
3685
|
-
path: string;
|
|
3686
3685
|
type: "patch" | "file";
|
|
3686
|
+
path: string;
|
|
3687
3687
|
content: string;
|
|
3688
3688
|
}[];
|
|
3689
3689
|
addedFileVersions: {
|
|
@@ -3693,7 +3693,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3693
3693
|
resetFileVersions: boolean;
|
|
3694
3694
|
usage?: number | undefined;
|
|
3695
3695
|
remainingBalance?: number | undefined;
|
|
3696
|
-
balanceBreakdown?: Partial<Record<
|
|
3696
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3697
3697
|
next_quota_reset?: Date | null | undefined;
|
|
3698
3698
|
autoTopupAdded?: number | undefined;
|
|
3699
3699
|
}, {
|
|
@@ -3701,13 +3701,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3701
3701
|
userInputId: string;
|
|
3702
3702
|
response: string;
|
|
3703
3703
|
changes: {
|
|
3704
|
-
path: string;
|
|
3705
3704
|
type: "patch" | "file";
|
|
3705
|
+
path: string;
|
|
3706
3706
|
content: string;
|
|
3707
3707
|
}[];
|
|
3708
3708
|
changesAlreadyApplied: {
|
|
3709
|
-
path: string;
|
|
3710
3709
|
type: "patch" | "file";
|
|
3710
|
+
path: string;
|
|
3711
3711
|
content: string;
|
|
3712
3712
|
}[];
|
|
3713
3713
|
addedFileVersions: {
|
|
@@ -3717,7 +3717,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3717
3717
|
resetFileVersions: boolean;
|
|
3718
3718
|
usage?: number | undefined;
|
|
3719
3719
|
remainingBalance?: number | undefined;
|
|
3720
|
-
balanceBreakdown?: Partial<Record<
|
|
3720
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3721
3721
|
next_quota_reset?: Date | null | undefined;
|
|
3722
3722
|
autoTopupAdded?: number | undefined;
|
|
3723
3723
|
}>, z.ZodObject<{
|
|
@@ -3874,16 +3874,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3874
3874
|
type: "ephemeral";
|
|
3875
3875
|
}>>;
|
|
3876
3876
|
}, "strip", z.ZodTypeAny, {
|
|
3877
|
-
name: string;
|
|
3878
3877
|
type: "tool_use";
|
|
3878
|
+
name: string;
|
|
3879
3879
|
id: string;
|
|
3880
3880
|
input: Record<string, any>;
|
|
3881
3881
|
cache_control?: {
|
|
3882
3882
|
type: "ephemeral";
|
|
3883
3883
|
} | undefined;
|
|
3884
3884
|
}, {
|
|
3885
|
-
name: string;
|
|
3886
3885
|
type: "tool_use";
|
|
3886
|
+
name: string;
|
|
3887
3887
|
id: string;
|
|
3888
3888
|
input: Record<string, any>;
|
|
3889
3889
|
cache_control?: {
|
|
@@ -3965,8 +3965,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3965
3965
|
type: "ephemeral";
|
|
3966
3966
|
} | undefined;
|
|
3967
3967
|
} | {
|
|
3968
|
-
name: string;
|
|
3969
3968
|
type: "tool_use";
|
|
3969
|
+
name: string;
|
|
3970
3970
|
id: string;
|
|
3971
3971
|
input: Record<string, any>;
|
|
3972
3972
|
cache_control?: {
|
|
@@ -3999,8 +3999,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3999
3999
|
type: "ephemeral";
|
|
4000
4000
|
} | undefined;
|
|
4001
4001
|
} | {
|
|
4002
|
-
name: string;
|
|
4003
4002
|
type: "tool_use";
|
|
4003
|
+
name: string;
|
|
4004
4004
|
id: string;
|
|
4005
4005
|
input: Record<string, any>;
|
|
4006
4006
|
cache_control?: {
|
|
@@ -4065,8 +4065,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4065
4065
|
type: "ephemeral";
|
|
4066
4066
|
} | undefined;
|
|
4067
4067
|
} | {
|
|
4068
|
-
name: string;
|
|
4069
4068
|
type: "tool_use";
|
|
4069
|
+
name: string;
|
|
4070
4070
|
id: string;
|
|
4071
4071
|
input: Record<string, any>;
|
|
4072
4072
|
cache_control?: {
|
|
@@ -4131,8 +4131,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4131
4131
|
type: "ephemeral";
|
|
4132
4132
|
} | undefined;
|
|
4133
4133
|
} | {
|
|
4134
|
-
name: string;
|
|
4135
4134
|
type: "tool_use";
|
|
4135
|
+
name: string;
|
|
4136
4136
|
id: string;
|
|
4137
4137
|
input: Record<string, any>;
|
|
4138
4138
|
cache_control?: {
|
|
@@ -4166,12 +4166,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4166
4166
|
id: z.ZodString;
|
|
4167
4167
|
}, "strip", z.ZodTypeAny, {
|
|
4168
4168
|
name: string;
|
|
4169
|
-
parameters: Record<string, string>;
|
|
4170
4169
|
id: string;
|
|
4170
|
+
parameters: Record<string, string>;
|
|
4171
4171
|
}, {
|
|
4172
4172
|
name: string;
|
|
4173
|
-
parameters: Record<string, string>;
|
|
4174
4173
|
id: string;
|
|
4174
|
+
parameters: Record<string, string>;
|
|
4175
4175
|
}>, "many">;
|
|
4176
4176
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
4177
4177
|
name: z.ZodString;
|
|
@@ -4227,8 +4227,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4227
4227
|
type: "ephemeral";
|
|
4228
4228
|
} | undefined;
|
|
4229
4229
|
} | {
|
|
4230
|
-
name: string;
|
|
4231
4230
|
type: "tool_use";
|
|
4231
|
+
name: string;
|
|
4232
4232
|
id: string;
|
|
4233
4233
|
input: Record<string, any>;
|
|
4234
4234
|
cache_control?: {
|
|
@@ -4263,8 +4263,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4263
4263
|
}[];
|
|
4264
4264
|
toolCalls: {
|
|
4265
4265
|
name: string;
|
|
4266
|
-
parameters: Record<string, string>;
|
|
4267
4266
|
id: string;
|
|
4267
|
+
parameters: Record<string, string>;
|
|
4268
4268
|
}[];
|
|
4269
4269
|
}, {
|
|
4270
4270
|
type: "prompt-response";
|
|
@@ -4307,8 +4307,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4307
4307
|
type: "ephemeral";
|
|
4308
4308
|
} | undefined;
|
|
4309
4309
|
} | {
|
|
4310
|
-
name: string;
|
|
4311
4310
|
type: "tool_use";
|
|
4311
|
+
name: string;
|
|
4312
4312
|
id: string;
|
|
4313
4313
|
input: Record<string, any>;
|
|
4314
4314
|
cache_control?: {
|
|
@@ -4343,8 +4343,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4343
4343
|
}[];
|
|
4344
4344
|
toolCalls: {
|
|
4345
4345
|
name: string;
|
|
4346
|
-
parameters: Record<string, string>;
|
|
4347
4346
|
id: string;
|
|
4347
|
+
parameters: Record<string, string>;
|
|
4348
4348
|
}[];
|
|
4349
4349
|
}>, z.ZodObject<{
|
|
4350
4350
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -4380,12 +4380,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4380
4380
|
path: z.ZodString;
|
|
4381
4381
|
content: z.ZodString;
|
|
4382
4382
|
}, "strip", z.ZodTypeAny, {
|
|
4383
|
-
path: string;
|
|
4384
4383
|
type: "patch" | "file";
|
|
4384
|
+
path: string;
|
|
4385
4385
|
content: string;
|
|
4386
4386
|
}, {
|
|
4387
|
-
path: string;
|
|
4388
4387
|
type: "patch" | "file";
|
|
4388
|
+
path: string;
|
|
4389
4389
|
content: string;
|
|
4390
4390
|
}>, "many">;
|
|
4391
4391
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -4393,12 +4393,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4393
4393
|
path: z.ZodString;
|
|
4394
4394
|
content: z.ZodString;
|
|
4395
4395
|
}, "strip", z.ZodTypeAny, {
|
|
4396
|
-
path: string;
|
|
4397
4396
|
type: "patch" | "file";
|
|
4397
|
+
path: string;
|
|
4398
4398
|
content: string;
|
|
4399
4399
|
}, {
|
|
4400
|
-
path: string;
|
|
4401
4400
|
type: "patch" | "file";
|
|
4401
|
+
path: string;
|
|
4402
4402
|
content: string;
|
|
4403
4403
|
}>, "many">;
|
|
4404
4404
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -4422,13 +4422,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4422
4422
|
userInputId: string;
|
|
4423
4423
|
response: string;
|
|
4424
4424
|
changes: {
|
|
4425
|
-
path: string;
|
|
4426
4425
|
type: "patch" | "file";
|
|
4426
|
+
path: string;
|
|
4427
4427
|
content: string;
|
|
4428
4428
|
}[];
|
|
4429
4429
|
changesAlreadyApplied: {
|
|
4430
|
-
path: string;
|
|
4431
4430
|
type: "patch" | "file";
|
|
4431
|
+
path: string;
|
|
4432
4432
|
content: string;
|
|
4433
4433
|
}[];
|
|
4434
4434
|
addedFileVersions: {
|
|
@@ -4446,13 +4446,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4446
4446
|
userInputId: string;
|
|
4447
4447
|
response: string;
|
|
4448
4448
|
changes: {
|
|
4449
|
-
path: string;
|
|
4450
4449
|
type: "patch" | "file";
|
|
4450
|
+
path: string;
|
|
4451
4451
|
content: string;
|
|
4452
4452
|
}[];
|
|
4453
4453
|
changesAlreadyApplied: {
|
|
4454
|
-
path: string;
|
|
4455
4454
|
type: "patch" | "file";
|
|
4455
|
+
path: string;
|
|
4456
4456
|
content: string;
|
|
4457
4457
|
}[];
|
|
4458
4458
|
addedFileVersions: {
|
|
@@ -4490,7 +4490,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4490
4490
|
type: z.ZodLiteral<"usage-response">;
|
|
4491
4491
|
usage: z.ZodNumber;
|
|
4492
4492
|
remainingBalance: z.ZodNumber;
|
|
4493
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
4493
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
4494
4494
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
4495
4495
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4496
4496
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
@@ -4498,20 +4498,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4498
4498
|
usage: number;
|
|
4499
4499
|
remainingBalance: number;
|
|
4500
4500
|
next_quota_reset: Date | null;
|
|
4501
|
-
balanceBreakdown?: Partial<Record<
|
|
4501
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4502
4502
|
autoTopupAdded?: number | undefined;
|
|
4503
4503
|
}, {
|
|
4504
4504
|
type: "init-response";
|
|
4505
4505
|
usage: number;
|
|
4506
4506
|
remainingBalance: number;
|
|
4507
4507
|
next_quota_reset: Date | null;
|
|
4508
|
-
balanceBreakdown?: Partial<Record<
|
|
4508
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4509
4509
|
autoTopupAdded?: number | undefined;
|
|
4510
4510
|
}>, z.ZodObject<{
|
|
4511
4511
|
type: z.ZodLiteral<"usage-response">;
|
|
4512
4512
|
usage: z.ZodNumber;
|
|
4513
4513
|
remainingBalance: z.ZodNumber;
|
|
4514
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
4514
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
4515
4515
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
4516
4516
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4517
4517
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4519,14 +4519,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4519
4519
|
usage: number;
|
|
4520
4520
|
remainingBalance: number;
|
|
4521
4521
|
next_quota_reset: Date | null;
|
|
4522
|
-
balanceBreakdown?: Partial<Record<
|
|
4522
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4523
4523
|
autoTopupAdded?: number | undefined;
|
|
4524
4524
|
}, {
|
|
4525
4525
|
type: "usage-response";
|
|
4526
4526
|
usage: number;
|
|
4527
4527
|
remainingBalance: number;
|
|
4528
4528
|
next_quota_reset: Date | null;
|
|
4529
|
-
balanceBreakdown?: Partial<Record<
|
|
4529
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4530
4530
|
autoTopupAdded?: number | undefined;
|
|
4531
4531
|
}>, z.ZodObject<{
|
|
4532
4532
|
type: z.ZodLiteral<"message-cost-response">;
|
|
@@ -4546,13 +4546,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4546
4546
|
error: z.ZodOptional<z.ZodString>;
|
|
4547
4547
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
4548
4548
|
}, "strip", z.ZodTypeAny, {
|
|
4549
|
-
message: string;
|
|
4550
4549
|
type: "action-error";
|
|
4550
|
+
message: string;
|
|
4551
4551
|
remainingBalance?: number | undefined;
|
|
4552
4552
|
error?: string | undefined;
|
|
4553
4553
|
}, {
|
|
4554
|
-
message: string;
|
|
4555
4554
|
type: "action-error";
|
|
4555
|
+
message: string;
|
|
4556
4556
|
remainingBalance?: number | undefined;
|
|
4557
4557
|
error?: string | undefined;
|
|
4558
4558
|
}>, z.ZodObject<{
|
|
@@ -4578,27 +4578,27 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4578
4578
|
usage: number;
|
|
4579
4579
|
remainingBalance: number;
|
|
4580
4580
|
next_quota_reset: Date | null;
|
|
4581
|
-
balanceBreakdown?: Partial<Record<
|
|
4581
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4582
4582
|
autoTopupAdded?: number | undefined;
|
|
4583
4583
|
} | {
|
|
4584
4584
|
type: "init-response";
|
|
4585
4585
|
usage: number;
|
|
4586
4586
|
remainingBalance: number;
|
|
4587
4587
|
next_quota_reset: Date | null;
|
|
4588
|
-
balanceBreakdown?: Partial<Record<
|
|
4588
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4589
4589
|
autoTopupAdded?: number | undefined;
|
|
4590
4590
|
} | {
|
|
4591
4591
|
type: "response-complete";
|
|
4592
4592
|
userInputId: string;
|
|
4593
4593
|
response: string;
|
|
4594
4594
|
changes: {
|
|
4595
|
-
path: string;
|
|
4596
4595
|
type: "patch" | "file";
|
|
4596
|
+
path: string;
|
|
4597
4597
|
content: string;
|
|
4598
4598
|
}[];
|
|
4599
4599
|
changesAlreadyApplied: {
|
|
4600
|
-
path: string;
|
|
4601
4600
|
type: "patch" | "file";
|
|
4601
|
+
path: string;
|
|
4602
4602
|
content: string;
|
|
4603
4603
|
}[];
|
|
4604
4604
|
addedFileVersions: {
|
|
@@ -4608,7 +4608,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4608
4608
|
resetFileVersions: boolean;
|
|
4609
4609
|
usage?: number | undefined;
|
|
4610
4610
|
remainingBalance?: number | undefined;
|
|
4611
|
-
balanceBreakdown?: Partial<Record<
|
|
4611
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4612
4612
|
next_quota_reset?: Date | null | undefined;
|
|
4613
4613
|
autoTopupAdded?: number | undefined;
|
|
4614
4614
|
} | {
|
|
@@ -4656,8 +4656,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4656
4656
|
type: "ephemeral";
|
|
4657
4657
|
} | undefined;
|
|
4658
4658
|
} | {
|
|
4659
|
-
name: string;
|
|
4660
4659
|
type: "tool_use";
|
|
4660
|
+
name: string;
|
|
4661
4661
|
id: string;
|
|
4662
4662
|
input: Record<string, any>;
|
|
4663
4663
|
cache_control?: {
|
|
@@ -4692,8 +4692,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4692
4692
|
}[];
|
|
4693
4693
|
toolCalls: {
|
|
4694
4694
|
name: string;
|
|
4695
|
-
parameters: Record<string, string>;
|
|
4696
4695
|
id: string;
|
|
4696
|
+
parameters: Record<string, string>;
|
|
4697
4697
|
}[];
|
|
4698
4698
|
} | {
|
|
4699
4699
|
type: "response-chunk";
|
|
@@ -4713,13 +4713,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4713
4713
|
userInputId: string;
|
|
4714
4714
|
response: string;
|
|
4715
4715
|
changes: {
|
|
4716
|
-
path: string;
|
|
4717
4716
|
type: "patch" | "file";
|
|
4717
|
+
path: string;
|
|
4718
4718
|
content: string;
|
|
4719
4719
|
}[];
|
|
4720
4720
|
changesAlreadyApplied: {
|
|
4721
|
-
path: string;
|
|
4722
4721
|
type: "patch" | "file";
|
|
4722
|
+
path: string;
|
|
4723
4723
|
content: string;
|
|
4724
4724
|
}[];
|
|
4725
4725
|
addedFileVersions: {
|
|
@@ -4736,8 +4736,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4736
4736
|
isUpToDate: boolean;
|
|
4737
4737
|
latestVersion: string;
|
|
4738
4738
|
} | {
|
|
4739
|
-
message: string;
|
|
4740
4739
|
type: "action-error";
|
|
4740
|
+
message: string;
|
|
4741
4741
|
remainingBalance?: number | undefined;
|
|
4742
4742
|
error?: string | undefined;
|
|
4743
4743
|
} | {
|
|
@@ -4753,27 +4753,27 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4753
4753
|
usage: number;
|
|
4754
4754
|
remainingBalance: number;
|
|
4755
4755
|
next_quota_reset: Date | null;
|
|
4756
|
-
balanceBreakdown?: Partial<Record<
|
|
4756
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4757
4757
|
autoTopupAdded?: number | undefined;
|
|
4758
4758
|
} | {
|
|
4759
4759
|
type: "init-response";
|
|
4760
4760
|
usage: number;
|
|
4761
4761
|
remainingBalance: number;
|
|
4762
4762
|
next_quota_reset: Date | null;
|
|
4763
|
-
balanceBreakdown?: Partial<Record<
|
|
4763
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4764
4764
|
autoTopupAdded?: number | undefined;
|
|
4765
4765
|
} | {
|
|
4766
4766
|
type: "response-complete";
|
|
4767
4767
|
userInputId: string;
|
|
4768
4768
|
response: string;
|
|
4769
4769
|
changes: {
|
|
4770
|
-
path: string;
|
|
4771
4770
|
type: "patch" | "file";
|
|
4771
|
+
path: string;
|
|
4772
4772
|
content: string;
|
|
4773
4773
|
}[];
|
|
4774
4774
|
changesAlreadyApplied: {
|
|
4775
|
-
path: string;
|
|
4776
4775
|
type: "patch" | "file";
|
|
4776
|
+
path: string;
|
|
4777
4777
|
content: string;
|
|
4778
4778
|
}[];
|
|
4779
4779
|
addedFileVersions: {
|
|
@@ -4783,7 +4783,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4783
4783
|
resetFileVersions: boolean;
|
|
4784
4784
|
usage?: number | undefined;
|
|
4785
4785
|
remainingBalance?: number | undefined;
|
|
4786
|
-
balanceBreakdown?: Partial<Record<
|
|
4786
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4787
4787
|
next_quota_reset?: Date | null | undefined;
|
|
4788
4788
|
autoTopupAdded?: number | undefined;
|
|
4789
4789
|
} | {
|
|
@@ -4831,8 +4831,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4831
4831
|
type: "ephemeral";
|
|
4832
4832
|
} | undefined;
|
|
4833
4833
|
} | {
|
|
4834
|
-
name: string;
|
|
4835
4834
|
type: "tool_use";
|
|
4835
|
+
name: string;
|
|
4836
4836
|
id: string;
|
|
4837
4837
|
input: Record<string, any>;
|
|
4838
4838
|
cache_control?: {
|
|
@@ -4867,8 +4867,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4867
4867
|
}[];
|
|
4868
4868
|
toolCalls: {
|
|
4869
4869
|
name: string;
|
|
4870
|
-
parameters: Record<string, string>;
|
|
4871
4870
|
id: string;
|
|
4871
|
+
parameters: Record<string, string>;
|
|
4872
4872
|
}[];
|
|
4873
4873
|
} | {
|
|
4874
4874
|
type: "response-chunk";
|
|
@@ -4888,13 +4888,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4888
4888
|
userInputId: string;
|
|
4889
4889
|
response: string;
|
|
4890
4890
|
changes: {
|
|
4891
|
-
path: string;
|
|
4892
4891
|
type: "patch" | "file";
|
|
4892
|
+
path: string;
|
|
4893
4893
|
content: string;
|
|
4894
4894
|
}[];
|
|
4895
4895
|
changesAlreadyApplied: {
|
|
4896
|
-
path: string;
|
|
4897
4896
|
type: "patch" | "file";
|
|
4897
|
+
path: string;
|
|
4898
4898
|
content: string;
|
|
4899
4899
|
}[];
|
|
4900
4900
|
addedFileVersions: {
|
|
@@ -4911,8 +4911,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4911
4911
|
isUpToDate: boolean;
|
|
4912
4912
|
latestVersion: string;
|
|
4913
4913
|
} | {
|
|
4914
|
-
message: string;
|
|
4915
4914
|
type: "action-error";
|
|
4915
|
+
message: string;
|
|
4916
4916
|
remainingBalance?: number | undefined;
|
|
4917
4917
|
error?: string | undefined;
|
|
4918
4918
|
} | {
|