codebuff 1.0.217 → 1.0.219
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/checkpoints/checkpoint-manager.d.ts +1 -1
- package/dist/checkpoints/checkpoint-manager.js +10 -2
- package/dist/checkpoints/checkpoint-manager.js.map +1 -1
- package/dist/checkpoints/file-manager.js +8 -4
- package/dist/checkpoints/file-manager.js.map +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/common/actions.d.ts +66 -66
- package/dist/common/browser-actions.js +3 -3
- package/dist/common/browser-actions.js.map +1 -1
- package/dist/common/constants/tools.d.ts +1 -1
- package/dist/common/constants/tools.js +1 -1
- package/dist/common/constants/tools.js.map +1 -1
- package/dist/common/logger.d.ts +1 -0
- package/dist/common/logger.js +7 -0
- package/dist/common/logger.js.map +1 -0
- package/dist/common/project-file-tree.js +4 -3
- package/dist/common/project-file-tree.js.map +1 -1
- package/dist/common/types/message.d.ts +6 -6
- package/dist/common/util/constants.d.ts +1 -0
- package/dist/common/util/constants.js +7 -0
- package/dist/common/util/constants.js.map +1 -0
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/helpers.d.ts +1 -0
- package/dist/common/util/helpers.js +6 -0
- package/dist/common/util/helpers.js.map +1 -0
- package/dist/common/util/token-counter.d.ts +3 -0
- package/dist/common/util/token-counter.js +27 -0
- package/dist/common/util/token-counter.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +124 -124
- package/dist/index.js +1 -1
- package/dist/menu.js +5 -0
- package/dist/menu.js.map +1 -1
- package/dist/project-files.js +12 -13
- package/dist/project-files.js.map +1 -1
- package/dist/tool-handlers.js +1 -1
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/terminal.js +11 -2
- package/dist/utils/terminal.js.map +1 -1
- package/dist/utils/tool-renderers.js +1 -1
- package/dist/utils/tool-renderers.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/actions.d.ts.map +0 -1
- package/dist/common/api-keys/constants.d.ts.map +0 -1
- package/dist/common/api-keys/crypto.d.ts.map +0 -1
- package/dist/common/billing/quota-manager.d.ts.map +0 -1
- package/dist/common/browser-actions.d.ts.map +0 -1
- package/dist/common/constants/tools.d.ts.map +0 -1
- package/dist/common/constants.d.ts.map +0 -1
- package/dist/common/db/drizzle.config.d.ts.map +0 -1
- package/dist/common/db/env.d.mts.map +0 -1
- package/dist/common/db/index.d.ts.map +0 -1
- package/dist/common/db/schema.d.ts.map +0 -1
- package/dist/common/env.d.mts.map +0 -1
- package/dist/common/project-file-tree.d.ts.map +0 -1
- package/dist/common/types/agent-state.d.ts.map +0 -1
- package/dist/common/types/message.d.ts.map +0 -1
- package/dist/common/types/plan.d.ts.map +0 -1
- package/dist/common/types/referral.d.ts.map +0 -1
- package/dist/common/types/tools.d.ts.map +0 -1
- package/dist/common/types/usage.d.ts.map +0 -1
- package/dist/common/util/__tests__/messages.test.d.ts.map +0 -1
- package/dist/common/util/__tests__/string.test.d.ts.map +0 -1
- package/dist/common/util/array.d.ts.map +0 -1
- package/dist/common/util/changes.d.ts.map +0 -1
- package/dist/common/util/credentials.d.ts.map +0 -1
- package/dist/common/util/crypto.d.ts +0 -27
- package/dist/common/util/crypto.js +0 -174
- package/dist/common/util/crypto.js.map +0 -1
- package/dist/common/util/dates.d.ts.map +0 -1
- package/dist/common/util/file.d.ts.map +0 -1
- package/dist/common/util/git.d.ts.map +0 -1
- package/dist/common/util/logger.d.ts.map +0 -1
- package/dist/common/util/lru-cache.d.ts.map +0 -1
- package/dist/common/util/messages.d.ts.map +0 -1
- package/dist/common/util/min-heap.d.ts.map +0 -1
- package/dist/common/util/object.d.ts.map +0 -1
- package/dist/common/util/patch.d.ts.map +0 -1
- package/dist/common/util/promise.d.ts.map +0 -1
- package/dist/common/util/referral.d.ts.map +0 -1
- package/dist/common/util/saxy.d.ts.map +0 -1
- package/dist/common/util/server/referral.d.ts.map +0 -1
- package/dist/common/util/string.d.ts.map +0 -1
- package/dist/common/util/stripe.d.ts.map +0 -1
- package/dist/common/websockets/websocket-client.d.ts.map +0 -1
- package/dist/common/websockets/websocket-schema.d.ts.map +0 -1
|
@@ -207,16 +207,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
207
207
|
type: "ephemeral";
|
|
208
208
|
}>>;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
|
-
type: "tool_use";
|
|
211
210
|
name: string;
|
|
211
|
+
type: "tool_use";
|
|
212
212
|
id: string;
|
|
213
213
|
input: Record<string, any>;
|
|
214
214
|
cache_control?: {
|
|
215
215
|
type: "ephemeral";
|
|
216
216
|
} | undefined;
|
|
217
217
|
}, {
|
|
218
|
-
type: "tool_use";
|
|
219
218
|
name: string;
|
|
219
|
+
type: "tool_use";
|
|
220
220
|
id: string;
|
|
221
221
|
input: Record<string, any>;
|
|
222
222
|
cache_control?: {
|
|
@@ -298,8 +298,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
298
298
|
type: "ephemeral";
|
|
299
299
|
} | undefined;
|
|
300
300
|
} | {
|
|
301
|
-
type: "tool_use";
|
|
302
301
|
name: string;
|
|
302
|
+
type: "tool_use";
|
|
303
303
|
id: string;
|
|
304
304
|
input: Record<string, any>;
|
|
305
305
|
cache_control?: {
|
|
@@ -332,8 +332,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
332
332
|
type: "ephemeral";
|
|
333
333
|
} | undefined;
|
|
334
334
|
} | {
|
|
335
|
-
type: "tool_use";
|
|
336
335
|
name: string;
|
|
336
|
+
type: "tool_use";
|
|
337
337
|
id: string;
|
|
338
338
|
input: Record<string, any>;
|
|
339
339
|
cache_control?: {
|
|
@@ -397,8 +397,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
397
397
|
type: "ephemeral";
|
|
398
398
|
} | undefined;
|
|
399
399
|
} | {
|
|
400
|
-
type: "tool_use";
|
|
401
400
|
name: string;
|
|
401
|
+
type: "tool_use";
|
|
402
402
|
id: string;
|
|
403
403
|
input: Record<string, any>;
|
|
404
404
|
cache_control?: {
|
|
@@ -462,8 +462,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
462
462
|
type: "ephemeral";
|
|
463
463
|
} | undefined;
|
|
464
464
|
} | {
|
|
465
|
-
type: "tool_use";
|
|
466
465
|
name: string;
|
|
466
|
+
type: "tool_use";
|
|
467
467
|
id: string;
|
|
468
468
|
input: Record<string, any>;
|
|
469
469
|
cache_control?: {
|
|
@@ -509,7 +509,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
509
509
|
type: "prompt";
|
|
510
510
|
promptId: string;
|
|
511
511
|
fingerprintId: string;
|
|
512
|
-
costMode: "
|
|
512
|
+
costMode: "max" | "lite" | "normal" | "experimental";
|
|
513
513
|
agentState: {
|
|
514
514
|
agentContext: string;
|
|
515
515
|
fileContext: {
|
|
@@ -547,8 +547,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
547
547
|
type: "ephemeral";
|
|
548
548
|
} | undefined;
|
|
549
549
|
} | {
|
|
550
|
-
type: "tool_use";
|
|
551
550
|
name: string;
|
|
551
|
+
type: "tool_use";
|
|
552
552
|
id: string;
|
|
553
553
|
input: Record<string, any>;
|
|
554
554
|
cache_control?: {
|
|
@@ -625,8 +625,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
625
625
|
type: "ephemeral";
|
|
626
626
|
} | undefined;
|
|
627
627
|
} | {
|
|
628
|
-
type: "tool_use";
|
|
629
628
|
name: string;
|
|
629
|
+
type: "tool_use";
|
|
630
630
|
id: string;
|
|
631
631
|
input: Record<string, any>;
|
|
632
632
|
cache_control?: {
|
|
@@ -661,7 +661,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
661
661
|
}[];
|
|
662
662
|
prompt?: string | undefined;
|
|
663
663
|
authToken?: string | undefined;
|
|
664
|
-
costMode?: "
|
|
664
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | undefined;
|
|
665
665
|
model?: string | undefined;
|
|
666
666
|
}>, z.ZodObject<{
|
|
667
667
|
type: z.ZodLiteral<"read-files-response">;
|
|
@@ -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">;
|
|
@@ -872,7 +872,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
872
872
|
type: "prompt";
|
|
873
873
|
promptId: string;
|
|
874
874
|
fingerprintId: string;
|
|
875
|
-
costMode: "
|
|
875
|
+
costMode: "max" | "lite" | "normal" | "experimental";
|
|
876
876
|
agentState: {
|
|
877
877
|
agentContext: string;
|
|
878
878
|
fileContext: {
|
|
@@ -910,8 +910,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
910
910
|
type: "ephemeral";
|
|
911
911
|
} | undefined;
|
|
912
912
|
} | {
|
|
913
|
-
type: "tool_use";
|
|
914
913
|
name: string;
|
|
914
|
+
type: "tool_use";
|
|
915
915
|
id: string;
|
|
916
916
|
input: Record<string, any>;
|
|
917
917
|
cache_control?: {
|
|
@@ -953,7 +953,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
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,8 +1032,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1032
1032
|
type: "ephemeral";
|
|
1033
1033
|
} | undefined;
|
|
1034
1034
|
} | {
|
|
1035
|
-
type: "tool_use";
|
|
1036
1035
|
name: string;
|
|
1036
|
+
type: "tool_use";
|
|
1037
1037
|
id: string;
|
|
1038
1038
|
input: Record<string, any>;
|
|
1039
1039
|
cache_control?: {
|
|
@@ -1068,7 +1068,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1068
1068
|
}[];
|
|
1069
1069
|
prompt?: string | undefined;
|
|
1070
1070
|
authToken?: string | undefined;
|
|
1071
|
-
costMode?: "
|
|
1071
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | undefined;
|
|
1072
1072
|
model?: string | undefined;
|
|
1073
1073
|
} | {
|
|
1074
1074
|
type: "read-files-response";
|
|
@@ -1076,7 +1076,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
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";
|
|
@@ -1317,16 +1317,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1317
1317
|
type: "ephemeral";
|
|
1318
1318
|
}>>;
|
|
1319
1319
|
}, "strip", z.ZodTypeAny, {
|
|
1320
|
-
type: "tool_use";
|
|
1321
1320
|
name: string;
|
|
1321
|
+
type: "tool_use";
|
|
1322
1322
|
id: string;
|
|
1323
1323
|
input: Record<string, any>;
|
|
1324
1324
|
cache_control?: {
|
|
1325
1325
|
type: "ephemeral";
|
|
1326
1326
|
} | undefined;
|
|
1327
1327
|
}, {
|
|
1328
|
-
type: "tool_use";
|
|
1329
1328
|
name: string;
|
|
1329
|
+
type: "tool_use";
|
|
1330
1330
|
id: string;
|
|
1331
1331
|
input: Record<string, any>;
|
|
1332
1332
|
cache_control?: {
|
|
@@ -1408,8 +1408,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1408
1408
|
type: "ephemeral";
|
|
1409
1409
|
} | undefined;
|
|
1410
1410
|
} | {
|
|
1411
|
-
type: "tool_use";
|
|
1412
1411
|
name: string;
|
|
1412
|
+
type: "tool_use";
|
|
1413
1413
|
id: string;
|
|
1414
1414
|
input: Record<string, any>;
|
|
1415
1415
|
cache_control?: {
|
|
@@ -1442,8 +1442,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1442
1442
|
type: "ephemeral";
|
|
1443
1443
|
} | undefined;
|
|
1444
1444
|
} | {
|
|
1445
|
-
type: "tool_use";
|
|
1446
1445
|
name: string;
|
|
1446
|
+
type: "tool_use";
|
|
1447
1447
|
id: string;
|
|
1448
1448
|
input: Record<string, any>;
|
|
1449
1449
|
cache_control?: {
|
|
@@ -1507,8 +1507,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1507
1507
|
type: "ephemeral";
|
|
1508
1508
|
} | undefined;
|
|
1509
1509
|
} | {
|
|
1510
|
-
type: "tool_use";
|
|
1511
1510
|
name: string;
|
|
1511
|
+
type: "tool_use";
|
|
1512
1512
|
id: string;
|
|
1513
1513
|
input: Record<string, any>;
|
|
1514
1514
|
cache_control?: {
|
|
@@ -1572,8 +1572,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1572
1572
|
type: "ephemeral";
|
|
1573
1573
|
} | undefined;
|
|
1574
1574
|
} | {
|
|
1575
|
-
type: "tool_use";
|
|
1576
1575
|
name: string;
|
|
1576
|
+
type: "tool_use";
|
|
1577
1577
|
id: string;
|
|
1578
1578
|
input: Record<string, any>;
|
|
1579
1579
|
cache_control?: {
|
|
@@ -1619,7 +1619,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1619
1619
|
type: "prompt";
|
|
1620
1620
|
promptId: string;
|
|
1621
1621
|
fingerprintId: string;
|
|
1622
|
-
costMode: "
|
|
1622
|
+
costMode: "max" | "lite" | "normal" | "experimental";
|
|
1623
1623
|
agentState: {
|
|
1624
1624
|
agentContext: string;
|
|
1625
1625
|
fileContext: {
|
|
@@ -1657,8 +1657,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1657
1657
|
type: "ephemeral";
|
|
1658
1658
|
} | undefined;
|
|
1659
1659
|
} | {
|
|
1660
|
-
type: "tool_use";
|
|
1661
1660
|
name: string;
|
|
1661
|
+
type: "tool_use";
|
|
1662
1662
|
id: string;
|
|
1663
1663
|
input: Record<string, any>;
|
|
1664
1664
|
cache_control?: {
|
|
@@ -1735,8 +1735,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1735
1735
|
type: "ephemeral";
|
|
1736
1736
|
} | undefined;
|
|
1737
1737
|
} | {
|
|
1738
|
-
type: "tool_use";
|
|
1739
1738
|
name: string;
|
|
1739
|
+
type: "tool_use";
|
|
1740
1740
|
id: string;
|
|
1741
1741
|
input: Record<string, any>;
|
|
1742
1742
|
cache_control?: {
|
|
@@ -1771,7 +1771,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1771
1771
|
}[];
|
|
1772
1772
|
prompt?: string | undefined;
|
|
1773
1773
|
authToken?: string | undefined;
|
|
1774
|
-
costMode?: "
|
|
1774
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | undefined;
|
|
1775
1775
|
model?: string | undefined;
|
|
1776
1776
|
}>, z.ZodObject<{
|
|
1777
1777
|
type: z.ZodLiteral<"read-files-response">;
|
|
@@ -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">;
|
|
@@ -1982,7 +1982,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1982
1982
|
type: "prompt";
|
|
1983
1983
|
promptId: string;
|
|
1984
1984
|
fingerprintId: string;
|
|
1985
|
-
costMode: "
|
|
1985
|
+
costMode: "max" | "lite" | "normal" | "experimental";
|
|
1986
1986
|
agentState: {
|
|
1987
1987
|
agentContext: string;
|
|
1988
1988
|
fileContext: {
|
|
@@ -2020,8 +2020,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2020
2020
|
type: "ephemeral";
|
|
2021
2021
|
} | undefined;
|
|
2022
2022
|
} | {
|
|
2023
|
-
type: "tool_use";
|
|
2024
2023
|
name: string;
|
|
2024
|
+
type: "tool_use";
|
|
2025
2025
|
id: string;
|
|
2026
2026
|
input: Record<string, any>;
|
|
2027
2027
|
cache_control?: {
|
|
@@ -2063,7 +2063,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
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,8 +2142,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2142
2142
|
type: "ephemeral";
|
|
2143
2143
|
} | undefined;
|
|
2144
2144
|
} | {
|
|
2145
|
-
type: "tool_use";
|
|
2146
2145
|
name: string;
|
|
2146
|
+
type: "tool_use";
|
|
2147
2147
|
id: string;
|
|
2148
2148
|
input: Record<string, any>;
|
|
2149
2149
|
cache_control?: {
|
|
@@ -2178,7 +2178,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2178
2178
|
}[];
|
|
2179
2179
|
prompt?: string | undefined;
|
|
2180
2180
|
authToken?: string | undefined;
|
|
2181
|
-
costMode?: "
|
|
2181
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | undefined;
|
|
2182
2182
|
model?: string | undefined;
|
|
2183
2183
|
} | {
|
|
2184
2184
|
type: "read-files-response";
|
|
@@ -2186,7 +2186,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
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: "patch" | "file";
|
|
2270
2270
|
content: string;
|
|
2271
2271
|
}, {
|
|
2272
|
-
type: "patch" | "file";
|
|
2273
2272
|
path: string;
|
|
2273
|
+
type: "patch" | "file";
|
|
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: "patch" | "file";
|
|
2283
2283
|
content: string;
|
|
2284
2284
|
}, {
|
|
2285
|
-
type: "patch" | "file";
|
|
2286
2285
|
path: string;
|
|
2286
|
+
type: "patch" | "file";
|
|
2287
2287
|
content: string;
|
|
2288
2288
|
}>, "many">;
|
|
2289
2289
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2308,13 +2308,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2308
2308
|
userInputId: string;
|
|
2309
2309
|
response: string;
|
|
2310
2310
|
changes: {
|
|
2311
|
-
type: "patch" | "file";
|
|
2312
2311
|
path: string;
|
|
2312
|
+
type: "patch" | "file";
|
|
2313
2313
|
content: string;
|
|
2314
2314
|
}[];
|
|
2315
2315
|
changesAlreadyApplied: {
|
|
2316
|
-
type: "patch" | "file";
|
|
2317
2316
|
path: string;
|
|
2317
|
+
type: "patch" | "file";
|
|
2318
2318
|
content: string;
|
|
2319
2319
|
}[];
|
|
2320
2320
|
addedFileVersions: {
|
|
@@ -2332,13 +2332,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2332
2332
|
userInputId: string;
|
|
2333
2333
|
response: string;
|
|
2334
2334
|
changes: {
|
|
2335
|
-
type: "patch" | "file";
|
|
2336
2335
|
path: string;
|
|
2336
|
+
type: "patch" | "file";
|
|
2337
2337
|
content: string;
|
|
2338
2338
|
}[];
|
|
2339
2339
|
changesAlreadyApplied: {
|
|
2340
|
-
type: "patch" | "file";
|
|
2341
2340
|
path: string;
|
|
2341
|
+
type: "patch" | "file";
|
|
2342
2342
|
content: string;
|
|
2343
2343
|
}[];
|
|
2344
2344
|
addedFileVersions: {
|
|
@@ -2502,16 +2502,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2502
2502
|
type: "ephemeral";
|
|
2503
2503
|
}>>;
|
|
2504
2504
|
}, "strip", z.ZodTypeAny, {
|
|
2505
|
-
type: "tool_use";
|
|
2506
2505
|
name: string;
|
|
2506
|
+
type: "tool_use";
|
|
2507
2507
|
id: string;
|
|
2508
2508
|
input: Record<string, any>;
|
|
2509
2509
|
cache_control?: {
|
|
2510
2510
|
type: "ephemeral";
|
|
2511
2511
|
} | undefined;
|
|
2512
2512
|
}, {
|
|
2513
|
-
type: "tool_use";
|
|
2514
2513
|
name: string;
|
|
2514
|
+
type: "tool_use";
|
|
2515
2515
|
id: string;
|
|
2516
2516
|
input: Record<string, any>;
|
|
2517
2517
|
cache_control?: {
|
|
@@ -2593,8 +2593,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2593
2593
|
type: "ephemeral";
|
|
2594
2594
|
} | undefined;
|
|
2595
2595
|
} | {
|
|
2596
|
-
type: "tool_use";
|
|
2597
2596
|
name: string;
|
|
2597
|
+
type: "tool_use";
|
|
2598
2598
|
id: string;
|
|
2599
2599
|
input: Record<string, any>;
|
|
2600
2600
|
cache_control?: {
|
|
@@ -2627,8 +2627,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2627
2627
|
type: "ephemeral";
|
|
2628
2628
|
} | undefined;
|
|
2629
2629
|
} | {
|
|
2630
|
-
type: "tool_use";
|
|
2631
2630
|
name: string;
|
|
2631
|
+
type: "tool_use";
|
|
2632
2632
|
id: string;
|
|
2633
2633
|
input: Record<string, any>;
|
|
2634
2634
|
cache_control?: {
|
|
@@ -2692,8 +2692,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2692
2692
|
type: "ephemeral";
|
|
2693
2693
|
} | undefined;
|
|
2694
2694
|
} | {
|
|
2695
|
-
type: "tool_use";
|
|
2696
2695
|
name: string;
|
|
2696
|
+
type: "tool_use";
|
|
2697
2697
|
id: string;
|
|
2698
2698
|
input: Record<string, any>;
|
|
2699
2699
|
cache_control?: {
|
|
@@ -2757,8 +2757,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2757
2757
|
type: "ephemeral";
|
|
2758
2758
|
} | undefined;
|
|
2759
2759
|
} | {
|
|
2760
|
-
type: "tool_use";
|
|
2761
2760
|
name: string;
|
|
2761
|
+
type: "tool_use";
|
|
2762
2762
|
id: string;
|
|
2763
2763
|
input: Record<string, any>;
|
|
2764
2764
|
cache_control?: {
|
|
@@ -2792,12 +2792,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2792
2792
|
id: z.ZodString;
|
|
2793
2793
|
}, "strip", z.ZodTypeAny, {
|
|
2794
2794
|
name: string;
|
|
2795
|
-
id: string;
|
|
2796
2795
|
parameters: Record<string, string>;
|
|
2796
|
+
id: string;
|
|
2797
2797
|
}, {
|
|
2798
2798
|
name: string;
|
|
2799
|
-
id: string;
|
|
2800
2799
|
parameters: Record<string, string>;
|
|
2800
|
+
id: string;
|
|
2801
2801
|
}>, "many">;
|
|
2802
2802
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
2803
2803
|
name: z.ZodString;
|
|
@@ -2852,8 +2852,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2852
2852
|
type: "ephemeral";
|
|
2853
2853
|
} | undefined;
|
|
2854
2854
|
} | {
|
|
2855
|
-
type: "tool_use";
|
|
2856
2855
|
name: string;
|
|
2856
|
+
type: "tool_use";
|
|
2857
2857
|
id: string;
|
|
2858
2858
|
input: Record<string, any>;
|
|
2859
2859
|
cache_control?: {
|
|
@@ -2888,8 +2888,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2888
2888
|
}[];
|
|
2889
2889
|
toolCalls: {
|
|
2890
2890
|
name: string;
|
|
2891
|
-
id: string;
|
|
2892
2891
|
parameters: Record<string, string>;
|
|
2892
|
+
id: string;
|
|
2893
2893
|
}[];
|
|
2894
2894
|
}, {
|
|
2895
2895
|
type: "prompt-response";
|
|
@@ -2931,8 +2931,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2931
2931
|
type: "ephemeral";
|
|
2932
2932
|
} | undefined;
|
|
2933
2933
|
} | {
|
|
2934
|
-
type: "tool_use";
|
|
2935
2934
|
name: string;
|
|
2935
|
+
type: "tool_use";
|
|
2936
2936
|
id: string;
|
|
2937
2937
|
input: Record<string, any>;
|
|
2938
2938
|
cache_control?: {
|
|
@@ -2967,8 +2967,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2967
2967
|
}[];
|
|
2968
2968
|
toolCalls: {
|
|
2969
2969
|
name: string;
|
|
2970
|
-
id: string;
|
|
2971
2970
|
parameters: Record<string, string>;
|
|
2971
|
+
id: string;
|
|
2972
2972
|
}[];
|
|
2973
2973
|
}>, z.ZodObject<{
|
|
2974
2974
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -3004,12 +3004,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3004
3004
|
path: z.ZodString;
|
|
3005
3005
|
content: z.ZodString;
|
|
3006
3006
|
}, "strip", z.ZodTypeAny, {
|
|
3007
|
-
type: "patch" | "file";
|
|
3008
3007
|
path: string;
|
|
3008
|
+
type: "patch" | "file";
|
|
3009
3009
|
content: string;
|
|
3010
3010
|
}, {
|
|
3011
|
-
type: "patch" | "file";
|
|
3012
3011
|
path: string;
|
|
3012
|
+
type: "patch" | "file";
|
|
3013
3013
|
content: string;
|
|
3014
3014
|
}>, "many">;
|
|
3015
3015
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3017,12 +3017,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3017
3017
|
path: z.ZodString;
|
|
3018
3018
|
content: z.ZodString;
|
|
3019
3019
|
}, "strip", z.ZodTypeAny, {
|
|
3020
|
-
type: "patch" | "file";
|
|
3021
3020
|
path: string;
|
|
3021
|
+
type: "patch" | "file";
|
|
3022
3022
|
content: string;
|
|
3023
3023
|
}, {
|
|
3024
|
-
type: "patch" | "file";
|
|
3025
3024
|
path: string;
|
|
3025
|
+
type: "patch" | "file";
|
|
3026
3026
|
content: string;
|
|
3027
3027
|
}>, "many">;
|
|
3028
3028
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3046,13 +3046,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3046
3046
|
userInputId: string;
|
|
3047
3047
|
response: string;
|
|
3048
3048
|
changes: {
|
|
3049
|
-
type: "patch" | "file";
|
|
3050
3049
|
path: string;
|
|
3050
|
+
type: "patch" | "file";
|
|
3051
3051
|
content: string;
|
|
3052
3052
|
}[];
|
|
3053
3053
|
changesAlreadyApplied: {
|
|
3054
|
-
type: "patch" | "file";
|
|
3055
3054
|
path: string;
|
|
3055
|
+
type: "patch" | "file";
|
|
3056
3056
|
content: string;
|
|
3057
3057
|
}[];
|
|
3058
3058
|
addedFileVersions: {
|
|
@@ -3070,13 +3070,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3070
3070
|
userInputId: string;
|
|
3071
3071
|
response: string;
|
|
3072
3072
|
changes: {
|
|
3073
|
-
type: "patch" | "file";
|
|
3074
3073
|
path: string;
|
|
3074
|
+
type: "patch" | "file";
|
|
3075
3075
|
content: string;
|
|
3076
3076
|
}[];
|
|
3077
3077
|
changesAlreadyApplied: {
|
|
3078
|
-
type: "patch" | "file";
|
|
3079
3078
|
path: string;
|
|
3079
|
+
type: "patch" | "file";
|
|
3080
3080
|
content: string;
|
|
3081
3081
|
}[];
|
|
3082
3082
|
addedFileVersions: {
|
|
@@ -3168,11 +3168,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3168
3168
|
type: z.ZodLiteral<"action-error">;
|
|
3169
3169
|
message: z.ZodString;
|
|
3170
3170
|
}, "strip", z.ZodTypeAny, {
|
|
3171
|
-
type: "action-error";
|
|
3172
3171
|
message: string;
|
|
3173
|
-
}, {
|
|
3174
3172
|
type: "action-error";
|
|
3173
|
+
}, {
|
|
3175
3174
|
message: string;
|
|
3175
|
+
type: "action-error";
|
|
3176
3176
|
}>, z.ZodObject<{
|
|
3177
3177
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3178
3178
|
commitMessage: z.ZodString;
|
|
@@ -3204,13 +3204,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3204
3204
|
userInputId: string;
|
|
3205
3205
|
response: string;
|
|
3206
3206
|
changes: {
|
|
3207
|
-
type: "patch" | "file";
|
|
3208
3207
|
path: string;
|
|
3208
|
+
type: "patch" | "file";
|
|
3209
3209
|
content: string;
|
|
3210
3210
|
}[];
|
|
3211
3211
|
changesAlreadyApplied: {
|
|
3212
|
-
type: "patch" | "file";
|
|
3213
3212
|
path: string;
|
|
3213
|
+
type: "patch" | "file";
|
|
3214
3214
|
content: string;
|
|
3215
3215
|
}[];
|
|
3216
3216
|
addedFileVersions: {
|
|
@@ -3267,8 +3267,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3267
3267
|
type: "ephemeral";
|
|
3268
3268
|
} | undefined;
|
|
3269
3269
|
} | {
|
|
3270
|
-
type: "tool_use";
|
|
3271
3270
|
name: string;
|
|
3271
|
+
type: "tool_use";
|
|
3272
3272
|
id: string;
|
|
3273
3273
|
input: Record<string, any>;
|
|
3274
3274
|
cache_control?: {
|
|
@@ -3303,8 +3303,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3303
3303
|
}[];
|
|
3304
3304
|
toolCalls: {
|
|
3305
3305
|
name: string;
|
|
3306
|
-
id: string;
|
|
3307
3306
|
parameters: Record<string, string>;
|
|
3307
|
+
id: string;
|
|
3308
3308
|
}[];
|
|
3309
3309
|
} | {
|
|
3310
3310
|
type: "response-chunk";
|
|
@@ -3324,13 +3324,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3324
3324
|
userInputId: string;
|
|
3325
3325
|
response: string;
|
|
3326
3326
|
changes: {
|
|
3327
|
-
type: "patch" | "file";
|
|
3328
3327
|
path: string;
|
|
3328
|
+
type: "patch" | "file";
|
|
3329
3329
|
content: string;
|
|
3330
3330
|
}[];
|
|
3331
3331
|
changesAlreadyApplied: {
|
|
3332
|
-
type: "patch" | "file";
|
|
3333
3332
|
path: string;
|
|
3333
|
+
type: "patch" | "file";
|
|
3334
3334
|
content: string;
|
|
3335
3335
|
}[];
|
|
3336
3336
|
addedFileVersions: {
|
|
@@ -3347,8 +3347,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3347
3347
|
isUpToDate: boolean;
|
|
3348
3348
|
latestVersion: string;
|
|
3349
3349
|
} | {
|
|
3350
|
-
type: "action-error";
|
|
3351
3350
|
message: string;
|
|
3351
|
+
type: "action-error";
|
|
3352
3352
|
} | {
|
|
3353
3353
|
type: "commit-message-response";
|
|
3354
3354
|
commitMessage: string;
|
|
@@ -3374,13 +3374,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3374
3374
|
userInputId: string;
|
|
3375
3375
|
response: string;
|
|
3376
3376
|
changes: {
|
|
3377
|
-
type: "patch" | "file";
|
|
3378
3377
|
path: string;
|
|
3378
|
+
type: "patch" | "file";
|
|
3379
3379
|
content: string;
|
|
3380
3380
|
}[];
|
|
3381
3381
|
changesAlreadyApplied: {
|
|
3382
|
-
type: "patch" | "file";
|
|
3383
3382
|
path: string;
|
|
3383
|
+
type: "patch" | "file";
|
|
3384
3384
|
content: string;
|
|
3385
3385
|
}[];
|
|
3386
3386
|
addedFileVersions: {
|
|
@@ -3437,8 +3437,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3437
3437
|
type: "ephemeral";
|
|
3438
3438
|
} | undefined;
|
|
3439
3439
|
} | {
|
|
3440
|
-
type: "tool_use";
|
|
3441
3440
|
name: string;
|
|
3441
|
+
type: "tool_use";
|
|
3442
3442
|
id: string;
|
|
3443
3443
|
input: Record<string, any>;
|
|
3444
3444
|
cache_control?: {
|
|
@@ -3473,8 +3473,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3473
3473
|
}[];
|
|
3474
3474
|
toolCalls: {
|
|
3475
3475
|
name: string;
|
|
3476
|
-
id: string;
|
|
3477
3476
|
parameters: Record<string, string>;
|
|
3477
|
+
id: string;
|
|
3478
3478
|
}[];
|
|
3479
3479
|
} | {
|
|
3480
3480
|
type: "response-chunk";
|
|
@@ -3494,13 +3494,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3494
3494
|
userInputId: string;
|
|
3495
3495
|
response: string;
|
|
3496
3496
|
changes: {
|
|
3497
|
-
type: "patch" | "file";
|
|
3498
3497
|
path: string;
|
|
3498
|
+
type: "patch" | "file";
|
|
3499
3499
|
content: string;
|
|
3500
3500
|
}[];
|
|
3501
3501
|
changesAlreadyApplied: {
|
|
3502
|
-
type: "patch" | "file";
|
|
3503
3502
|
path: string;
|
|
3503
|
+
type: "patch" | "file";
|
|
3504
3504
|
content: string;
|
|
3505
3505
|
}[];
|
|
3506
3506
|
addedFileVersions: {
|
|
@@ -3517,8 +3517,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3517
3517
|
isUpToDate: boolean;
|
|
3518
3518
|
latestVersion: string;
|
|
3519
3519
|
} | {
|
|
3520
|
-
type: "action-error";
|
|
3521
3520
|
message: string;
|
|
3521
|
+
type: "action-error";
|
|
3522
3522
|
} | {
|
|
3523
3523
|
type: "commit-message-response";
|
|
3524
3524
|
commitMessage: string;
|
|
@@ -3563,12 +3563,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3563
3563
|
path: z.ZodString;
|
|
3564
3564
|
content: z.ZodString;
|
|
3565
3565
|
}, "strip", z.ZodTypeAny, {
|
|
3566
|
-
type: "patch" | "file";
|
|
3567
3566
|
path: string;
|
|
3567
|
+
type: "patch" | "file";
|
|
3568
3568
|
content: string;
|
|
3569
3569
|
}, {
|
|
3570
|
-
type: "patch" | "file";
|
|
3571
3570
|
path: string;
|
|
3571
|
+
type: "patch" | "file";
|
|
3572
3572
|
content: string;
|
|
3573
3573
|
}>, "many">;
|
|
3574
3574
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3576,12 +3576,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3576
3576
|
path: z.ZodString;
|
|
3577
3577
|
content: z.ZodString;
|
|
3578
3578
|
}, "strip", z.ZodTypeAny, {
|
|
3579
|
-
type: "patch" | "file";
|
|
3580
3579
|
path: string;
|
|
3580
|
+
type: "patch" | "file";
|
|
3581
3581
|
content: string;
|
|
3582
3582
|
}, {
|
|
3583
|
-
type: "patch" | "file";
|
|
3584
3583
|
path: string;
|
|
3584
|
+
type: "patch" | "file";
|
|
3585
3585
|
content: string;
|
|
3586
3586
|
}>, "many">;
|
|
3587
3587
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3606,13 +3606,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3606
3606
|
userInputId: string;
|
|
3607
3607
|
response: string;
|
|
3608
3608
|
changes: {
|
|
3609
|
-
type: "patch" | "file";
|
|
3610
3609
|
path: string;
|
|
3610
|
+
type: "patch" | "file";
|
|
3611
3611
|
content: string;
|
|
3612
3612
|
}[];
|
|
3613
3613
|
changesAlreadyApplied: {
|
|
3614
|
-
type: "patch" | "file";
|
|
3615
3614
|
path: string;
|
|
3615
|
+
type: "patch" | "file";
|
|
3616
3616
|
content: string;
|
|
3617
3617
|
}[];
|
|
3618
3618
|
addedFileVersions: {
|
|
@@ -3630,13 +3630,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3630
3630
|
userInputId: string;
|
|
3631
3631
|
response: string;
|
|
3632
3632
|
changes: {
|
|
3633
|
-
type: "patch" | "file";
|
|
3634
3633
|
path: string;
|
|
3634
|
+
type: "patch" | "file";
|
|
3635
3635
|
content: string;
|
|
3636
3636
|
}[];
|
|
3637
3637
|
changesAlreadyApplied: {
|
|
3638
|
-
type: "patch" | "file";
|
|
3639
3638
|
path: string;
|
|
3639
|
+
type: "patch" | "file";
|
|
3640
3640
|
content: string;
|
|
3641
3641
|
}[];
|
|
3642
3642
|
addedFileVersions: {
|
|
@@ -3800,16 +3800,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3800
3800
|
type: "ephemeral";
|
|
3801
3801
|
}>>;
|
|
3802
3802
|
}, "strip", z.ZodTypeAny, {
|
|
3803
|
-
type: "tool_use";
|
|
3804
3803
|
name: string;
|
|
3804
|
+
type: "tool_use";
|
|
3805
3805
|
id: string;
|
|
3806
3806
|
input: Record<string, any>;
|
|
3807
3807
|
cache_control?: {
|
|
3808
3808
|
type: "ephemeral";
|
|
3809
3809
|
} | undefined;
|
|
3810
3810
|
}, {
|
|
3811
|
-
type: "tool_use";
|
|
3812
3811
|
name: string;
|
|
3812
|
+
type: "tool_use";
|
|
3813
3813
|
id: string;
|
|
3814
3814
|
input: Record<string, any>;
|
|
3815
3815
|
cache_control?: {
|
|
@@ -3891,8 +3891,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3891
3891
|
type: "ephemeral";
|
|
3892
3892
|
} | undefined;
|
|
3893
3893
|
} | {
|
|
3894
|
-
type: "tool_use";
|
|
3895
3894
|
name: string;
|
|
3895
|
+
type: "tool_use";
|
|
3896
3896
|
id: string;
|
|
3897
3897
|
input: Record<string, any>;
|
|
3898
3898
|
cache_control?: {
|
|
@@ -3925,8 +3925,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3925
3925
|
type: "ephemeral";
|
|
3926
3926
|
} | undefined;
|
|
3927
3927
|
} | {
|
|
3928
|
-
type: "tool_use";
|
|
3929
3928
|
name: string;
|
|
3929
|
+
type: "tool_use";
|
|
3930
3930
|
id: string;
|
|
3931
3931
|
input: Record<string, any>;
|
|
3932
3932
|
cache_control?: {
|
|
@@ -3990,8 +3990,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3990
3990
|
type: "ephemeral";
|
|
3991
3991
|
} | undefined;
|
|
3992
3992
|
} | {
|
|
3993
|
-
type: "tool_use";
|
|
3994
3993
|
name: string;
|
|
3994
|
+
type: "tool_use";
|
|
3995
3995
|
id: string;
|
|
3996
3996
|
input: Record<string, any>;
|
|
3997
3997
|
cache_control?: {
|
|
@@ -4055,8 +4055,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4055
4055
|
type: "ephemeral";
|
|
4056
4056
|
} | undefined;
|
|
4057
4057
|
} | {
|
|
4058
|
-
type: "tool_use";
|
|
4059
4058
|
name: string;
|
|
4059
|
+
type: "tool_use";
|
|
4060
4060
|
id: string;
|
|
4061
4061
|
input: Record<string, any>;
|
|
4062
4062
|
cache_control?: {
|
|
@@ -4090,12 +4090,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4090
4090
|
id: z.ZodString;
|
|
4091
4091
|
}, "strip", z.ZodTypeAny, {
|
|
4092
4092
|
name: string;
|
|
4093
|
-
id: string;
|
|
4094
4093
|
parameters: Record<string, string>;
|
|
4094
|
+
id: string;
|
|
4095
4095
|
}, {
|
|
4096
4096
|
name: string;
|
|
4097
|
-
id: string;
|
|
4098
4097
|
parameters: Record<string, string>;
|
|
4098
|
+
id: string;
|
|
4099
4099
|
}>, "many">;
|
|
4100
4100
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
4101
4101
|
name: z.ZodString;
|
|
@@ -4150,8 +4150,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4150
4150
|
type: "ephemeral";
|
|
4151
4151
|
} | undefined;
|
|
4152
4152
|
} | {
|
|
4153
|
-
type: "tool_use";
|
|
4154
4153
|
name: string;
|
|
4154
|
+
type: "tool_use";
|
|
4155
4155
|
id: string;
|
|
4156
4156
|
input: Record<string, any>;
|
|
4157
4157
|
cache_control?: {
|
|
@@ -4186,8 +4186,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4186
4186
|
}[];
|
|
4187
4187
|
toolCalls: {
|
|
4188
4188
|
name: string;
|
|
4189
|
-
id: string;
|
|
4190
4189
|
parameters: Record<string, string>;
|
|
4190
|
+
id: string;
|
|
4191
4191
|
}[];
|
|
4192
4192
|
}, {
|
|
4193
4193
|
type: "prompt-response";
|
|
@@ -4229,8 +4229,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4229
4229
|
type: "ephemeral";
|
|
4230
4230
|
} | undefined;
|
|
4231
4231
|
} | {
|
|
4232
|
-
type: "tool_use";
|
|
4233
4232
|
name: string;
|
|
4233
|
+
type: "tool_use";
|
|
4234
4234
|
id: string;
|
|
4235
4235
|
input: Record<string, any>;
|
|
4236
4236
|
cache_control?: {
|
|
@@ -4265,8 +4265,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4265
4265
|
}[];
|
|
4266
4266
|
toolCalls: {
|
|
4267
4267
|
name: string;
|
|
4268
|
-
id: string;
|
|
4269
4268
|
parameters: Record<string, string>;
|
|
4269
|
+
id: string;
|
|
4270
4270
|
}[];
|
|
4271
4271
|
}>, z.ZodObject<{
|
|
4272
4272
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -4302,12 +4302,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4302
4302
|
path: z.ZodString;
|
|
4303
4303
|
content: z.ZodString;
|
|
4304
4304
|
}, "strip", z.ZodTypeAny, {
|
|
4305
|
-
type: "patch" | "file";
|
|
4306
4305
|
path: string;
|
|
4306
|
+
type: "patch" | "file";
|
|
4307
4307
|
content: string;
|
|
4308
4308
|
}, {
|
|
4309
|
-
type: "patch" | "file";
|
|
4310
4309
|
path: string;
|
|
4310
|
+
type: "patch" | "file";
|
|
4311
4311
|
content: string;
|
|
4312
4312
|
}>, "many">;
|
|
4313
4313
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -4315,12 +4315,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4315
4315
|
path: z.ZodString;
|
|
4316
4316
|
content: z.ZodString;
|
|
4317
4317
|
}, "strip", z.ZodTypeAny, {
|
|
4318
|
-
type: "patch" | "file";
|
|
4319
4318
|
path: string;
|
|
4319
|
+
type: "patch" | "file";
|
|
4320
4320
|
content: string;
|
|
4321
4321
|
}, {
|
|
4322
|
-
type: "patch" | "file";
|
|
4323
4322
|
path: string;
|
|
4323
|
+
type: "patch" | "file";
|
|
4324
4324
|
content: string;
|
|
4325
4325
|
}>, "many">;
|
|
4326
4326
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -4344,13 +4344,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4344
4344
|
userInputId: string;
|
|
4345
4345
|
response: string;
|
|
4346
4346
|
changes: {
|
|
4347
|
-
type: "patch" | "file";
|
|
4348
4347
|
path: string;
|
|
4348
|
+
type: "patch" | "file";
|
|
4349
4349
|
content: string;
|
|
4350
4350
|
}[];
|
|
4351
4351
|
changesAlreadyApplied: {
|
|
4352
|
-
type: "patch" | "file";
|
|
4353
4352
|
path: string;
|
|
4353
|
+
type: "patch" | "file";
|
|
4354
4354
|
content: string;
|
|
4355
4355
|
}[];
|
|
4356
4356
|
addedFileVersions: {
|
|
@@ -4368,13 +4368,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4368
4368
|
userInputId: string;
|
|
4369
4369
|
response: string;
|
|
4370
4370
|
changes: {
|
|
4371
|
-
type: "patch" | "file";
|
|
4372
4371
|
path: string;
|
|
4372
|
+
type: "patch" | "file";
|
|
4373
4373
|
content: string;
|
|
4374
4374
|
}[];
|
|
4375
4375
|
changesAlreadyApplied: {
|
|
4376
|
-
type: "patch" | "file";
|
|
4377
4376
|
path: string;
|
|
4377
|
+
type: "patch" | "file";
|
|
4378
4378
|
content: string;
|
|
4379
4379
|
}[];
|
|
4380
4380
|
addedFileVersions: {
|
|
@@ -4466,11 +4466,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4466
4466
|
type: z.ZodLiteral<"action-error">;
|
|
4467
4467
|
message: z.ZodString;
|
|
4468
4468
|
}, "strip", z.ZodTypeAny, {
|
|
4469
|
-
type: "action-error";
|
|
4470
4469
|
message: string;
|
|
4471
|
-
}, {
|
|
4472
4470
|
type: "action-error";
|
|
4471
|
+
}, {
|
|
4473
4472
|
message: string;
|
|
4473
|
+
type: "action-error";
|
|
4474
4474
|
}>, z.ZodObject<{
|
|
4475
4475
|
type: z.ZodLiteral<"commit-message-response">;
|
|
4476
4476
|
commitMessage: z.ZodString;
|
|
@@ -4502,13 +4502,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4502
4502
|
userInputId: string;
|
|
4503
4503
|
response: string;
|
|
4504
4504
|
changes: {
|
|
4505
|
-
type: "patch" | "file";
|
|
4506
4505
|
path: string;
|
|
4506
|
+
type: "patch" | "file";
|
|
4507
4507
|
content: string;
|
|
4508
4508
|
}[];
|
|
4509
4509
|
changesAlreadyApplied: {
|
|
4510
|
-
type: "patch" | "file";
|
|
4511
4510
|
path: string;
|
|
4511
|
+
type: "patch" | "file";
|
|
4512
4512
|
content: string;
|
|
4513
4513
|
}[];
|
|
4514
4514
|
addedFileVersions: {
|
|
@@ -4565,8 +4565,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4565
4565
|
type: "ephemeral";
|
|
4566
4566
|
} | undefined;
|
|
4567
4567
|
} | {
|
|
4568
|
-
type: "tool_use";
|
|
4569
4568
|
name: string;
|
|
4569
|
+
type: "tool_use";
|
|
4570
4570
|
id: string;
|
|
4571
4571
|
input: Record<string, any>;
|
|
4572
4572
|
cache_control?: {
|
|
@@ -4601,8 +4601,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4601
4601
|
}[];
|
|
4602
4602
|
toolCalls: {
|
|
4603
4603
|
name: string;
|
|
4604
|
-
id: string;
|
|
4605
4604
|
parameters: Record<string, string>;
|
|
4605
|
+
id: string;
|
|
4606
4606
|
}[];
|
|
4607
4607
|
} | {
|
|
4608
4608
|
type: "response-chunk";
|
|
@@ -4622,13 +4622,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4622
4622
|
userInputId: string;
|
|
4623
4623
|
response: string;
|
|
4624
4624
|
changes: {
|
|
4625
|
-
type: "patch" | "file";
|
|
4626
4625
|
path: string;
|
|
4626
|
+
type: "patch" | "file";
|
|
4627
4627
|
content: string;
|
|
4628
4628
|
}[];
|
|
4629
4629
|
changesAlreadyApplied: {
|
|
4630
|
-
type: "patch" | "file";
|
|
4631
4630
|
path: string;
|
|
4631
|
+
type: "patch" | "file";
|
|
4632
4632
|
content: string;
|
|
4633
4633
|
}[];
|
|
4634
4634
|
addedFileVersions: {
|
|
@@ -4645,8 +4645,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4645
4645
|
isUpToDate: boolean;
|
|
4646
4646
|
latestVersion: string;
|
|
4647
4647
|
} | {
|
|
4648
|
-
type: "action-error";
|
|
4649
4648
|
message: string;
|
|
4649
|
+
type: "action-error";
|
|
4650
4650
|
} | {
|
|
4651
4651
|
type: "commit-message-response";
|
|
4652
4652
|
commitMessage: string;
|
|
@@ -4672,13 +4672,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4672
4672
|
userInputId: string;
|
|
4673
4673
|
response: string;
|
|
4674
4674
|
changes: {
|
|
4675
|
-
type: "patch" | "file";
|
|
4676
4675
|
path: string;
|
|
4676
|
+
type: "patch" | "file";
|
|
4677
4677
|
content: string;
|
|
4678
4678
|
}[];
|
|
4679
4679
|
changesAlreadyApplied: {
|
|
4680
|
-
type: "patch" | "file";
|
|
4681
4680
|
path: string;
|
|
4681
|
+
type: "patch" | "file";
|
|
4682
4682
|
content: string;
|
|
4683
4683
|
}[];
|
|
4684
4684
|
addedFileVersions: {
|
|
@@ -4735,8 +4735,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4735
4735
|
type: "ephemeral";
|
|
4736
4736
|
} | undefined;
|
|
4737
4737
|
} | {
|
|
4738
|
-
type: "tool_use";
|
|
4739
4738
|
name: string;
|
|
4739
|
+
type: "tool_use";
|
|
4740
4740
|
id: string;
|
|
4741
4741
|
input: Record<string, any>;
|
|
4742
4742
|
cache_control?: {
|
|
@@ -4771,8 +4771,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4771
4771
|
}[];
|
|
4772
4772
|
toolCalls: {
|
|
4773
4773
|
name: string;
|
|
4774
|
-
id: string;
|
|
4775
4774
|
parameters: Record<string, string>;
|
|
4775
|
+
id: string;
|
|
4776
4776
|
}[];
|
|
4777
4777
|
} | {
|
|
4778
4778
|
type: "response-chunk";
|
|
@@ -4792,13 +4792,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4792
4792
|
userInputId: string;
|
|
4793
4793
|
response: string;
|
|
4794
4794
|
changes: {
|
|
4795
|
-
type: "patch" | "file";
|
|
4796
4795
|
path: string;
|
|
4796
|
+
type: "patch" | "file";
|
|
4797
4797
|
content: string;
|
|
4798
4798
|
}[];
|
|
4799
4799
|
changesAlreadyApplied: {
|
|
4800
|
-
type: "patch" | "file";
|
|
4801
4800
|
path: string;
|
|
4801
|
+
type: "patch" | "file";
|
|
4802
4802
|
content: string;
|
|
4803
4803
|
}[];
|
|
4804
4804
|
addedFileVersions: {
|
|
@@ -4815,8 +4815,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4815
4815
|
isUpToDate: boolean;
|
|
4816
4816
|
latestVersion: string;
|
|
4817
4817
|
} | {
|
|
4818
|
-
type: "action-error";
|
|
4819
4818
|
message: string;
|
|
4819
|
+
type: "action-error";
|
|
4820
4820
|
} | {
|
|
4821
4821
|
type: "commit-message-response";
|
|
4822
4822
|
commitMessage: string;
|