codebuff 1.0.269 → 1.0.272
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.d.ts +1 -6
- package/dist/cli.js +7 -60
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +2 -3
- package/dist/client.js +0 -3
- package/dist/client.js.map +1 -1
- package/dist/code-map/languages.d.ts +2 -1
- package/dist/code-map/languages.d.ts.map +1 -1
- package/dist/code-map/languages.js +1 -2
- package/dist/code-map/languages.js.map +1 -1
- package/dist/code-map/parse.d.ts +4 -14
- package/dist/code-map/parse.d.ts.map +1 -1
- package/dist/code-map/parse.js +38 -91
- package/dist/code-map/parse.js.map +1 -1
- package/dist/code-map/tree-sitter-queries/tree-sitter-c-tags.scm +1 -6
- package/dist/code-map/tree-sitter-queries/tree-sitter-c_sharp-tags.scm +1 -11
- package/dist/code-map/tree-sitter-queries/tree-sitter-cpp-tags.scm +1 -13
- package/dist/code-map/tree-sitter-queries/tree-sitter-javascript-tags.scm +0 -1
- package/dist/code-map/tree-sitter-queries/tree-sitter-php-tags.scm +8 -5
- package/dist/code-map/tree-sitter-queries/tree-sitter-python-tags.scm +2 -5
- package/dist/code-map/tree-sitter-queries/tree-sitter-typescript-tags.scm +0 -7
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +62 -88
- package/dist/common/browser-actions.d.ts +46 -46
- package/dist/common/json-config/constants.d.ts +6 -6
- package/dist/common/types/agent-state.d.ts +8 -13
- package/dist/common/types/message.d.ts +22 -22
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/file.d.ts +0 -3
- package/dist/common/util/file.js +0 -3
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +112 -162
- package/dist/display.d.ts +0 -2
- package/dist/display.js +0 -8
- package/dist/display.js.map +1 -1
- package/dist/index.js +35 -7
- package/dist/index.js.map +1 -1
- package/dist/menu.js +106 -35
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +0 -2
- package/dist/project-files.js +2 -3
- package/dist/project-files.js.map +1 -1
- package/dist/utils/__tests__/tool-renderers.test.js +1 -27
- package/dist/utils/__tests__/tool-renderers.test.js.map +1 -1
- package/dist/utils/spinner.d.ts +0 -1
- package/dist/utils/spinner.js +1 -8
- package/dist/utils/spinner.js.map +1 -1
- package/dist/utils/terminal.d.ts +2 -2
- package/dist/utils/terminal.js +34 -46
- package/dist/utils/terminal.js.map +1 -1
- package/dist/utils/tool-renderers.js +5 -22
- package/dist/utils/tool-renderers.js.map +1 -1
- package/dist/workers/project-context.js +0 -3
- package/dist/workers/project-context.js.map +1 -1
- package/package.json +1 -2
- package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +0 -119
|
@@ -6,12 +6,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
6
6
|
clientSessionId: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
type: "identify";
|
|
9
|
-
txid: number;
|
|
10
9
|
clientSessionId: string;
|
|
10
|
+
txid: number;
|
|
11
11
|
}, {
|
|
12
12
|
type: "identify";
|
|
13
|
-
txid: number;
|
|
14
13
|
clientSessionId: string;
|
|
14
|
+
txid: number;
|
|
15
15
|
}>;
|
|
16
16
|
readonly subscribe: z.ZodObject<{
|
|
17
17
|
type: z.ZodLiteral<"subscribe">;
|
|
@@ -65,7 +65,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
65
65
|
currentWorkingDirectory: z.ZodString;
|
|
66
66
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
67
67
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
68
|
-
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
69
68
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
70
69
|
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
71
70
|
gitChanges: z.ZodObject<{
|
|
@@ -139,7 +138,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
139
138
|
homedir: string;
|
|
140
139
|
cpus: number;
|
|
141
140
|
};
|
|
142
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
143
141
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
144
142
|
fileVersions?: {
|
|
145
143
|
path: string;
|
|
@@ -166,7 +164,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
166
164
|
homedir: string;
|
|
167
165
|
cpus: number;
|
|
168
166
|
};
|
|
169
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
170
167
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
171
168
|
fileVersions?: {
|
|
172
169
|
path: string;
|
|
@@ -237,15 +234,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
237
234
|
type: "ephemeral";
|
|
238
235
|
}>>;
|
|
239
236
|
}, "strip", z.ZodTypeAny, {
|
|
240
|
-
content: string;
|
|
241
237
|
type: "tool_result";
|
|
238
|
+
content: string;
|
|
242
239
|
tool_use_id: string;
|
|
243
240
|
cache_control?: {
|
|
244
241
|
type: "ephemeral";
|
|
245
242
|
} | undefined;
|
|
246
243
|
}, {
|
|
247
|
-
content: string;
|
|
248
244
|
type: "tool_result";
|
|
245
|
+
content: string;
|
|
249
246
|
tool_use_id: string;
|
|
250
247
|
cache_control?: {
|
|
251
248
|
type: "ephemeral";
|
|
@@ -309,8 +306,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
309
306
|
type: "ephemeral";
|
|
310
307
|
} | undefined;
|
|
311
308
|
} | {
|
|
312
|
-
content: string;
|
|
313
309
|
type: "tool_result";
|
|
310
|
+
content: string;
|
|
314
311
|
tool_use_id: string;
|
|
315
312
|
cache_control?: {
|
|
316
313
|
type: "ephemeral";
|
|
@@ -343,8 +340,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
343
340
|
type: "ephemeral";
|
|
344
341
|
} | undefined;
|
|
345
342
|
} | {
|
|
346
|
-
content: string;
|
|
347
343
|
type: "tool_result";
|
|
344
|
+
content: string;
|
|
348
345
|
tool_use_id: string;
|
|
349
346
|
cache_control?: {
|
|
350
347
|
type: "ephemeral";
|
|
@@ -386,7 +383,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
386
383
|
homedir: string;
|
|
387
384
|
cpus: number;
|
|
388
385
|
};
|
|
389
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
390
386
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
391
387
|
fileVersions?: {
|
|
392
388
|
path: string;
|
|
@@ -409,8 +405,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
409
405
|
type: "ephemeral";
|
|
410
406
|
} | undefined;
|
|
411
407
|
} | {
|
|
412
|
-
content: string;
|
|
413
408
|
type: "tool_result";
|
|
409
|
+
content: string;
|
|
414
410
|
tool_use_id: string;
|
|
415
411
|
cache_control?: {
|
|
416
412
|
type: "ephemeral";
|
|
@@ -452,7 +448,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
452
448
|
homedir: string;
|
|
453
449
|
cpus: number;
|
|
454
450
|
};
|
|
455
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
456
451
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
457
452
|
fileVersions?: {
|
|
458
453
|
path: string;
|
|
@@ -475,8 +470,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
475
470
|
type: "ephemeral";
|
|
476
471
|
} | undefined;
|
|
477
472
|
} | {
|
|
478
|
-
content: string;
|
|
479
473
|
type: "tool_result";
|
|
474
|
+
content: string;
|
|
480
475
|
tool_use_id: string;
|
|
481
476
|
cache_control?: {
|
|
482
477
|
type: "ephemeral";
|
|
@@ -515,7 +510,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
515
510
|
type: "prompt";
|
|
516
511
|
promptId: string;
|
|
517
512
|
fingerprintId: string;
|
|
518
|
-
costMode: "
|
|
513
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
519
514
|
agentState: {
|
|
520
515
|
agentContext: string;
|
|
521
516
|
fileContext: {
|
|
@@ -539,7 +534,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
539
534
|
homedir: string;
|
|
540
535
|
cpus: number;
|
|
541
536
|
};
|
|
542
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
543
537
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
544
538
|
fileVersions?: {
|
|
545
539
|
path: string;
|
|
@@ -562,8 +556,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
562
556
|
type: "ephemeral";
|
|
563
557
|
} | undefined;
|
|
564
558
|
} | {
|
|
565
|
-
content: string;
|
|
566
559
|
type: "tool_result";
|
|
560
|
+
content: string;
|
|
567
561
|
tool_use_id: string;
|
|
568
562
|
cache_control?: {
|
|
569
563
|
type: "ephemeral";
|
|
@@ -619,7 +613,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
619
613
|
homedir: string;
|
|
620
614
|
cpus: number;
|
|
621
615
|
};
|
|
622
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
623
616
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
624
617
|
fileVersions?: {
|
|
625
618
|
path: string;
|
|
@@ -642,8 +635,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
642
635
|
type: "ephemeral";
|
|
643
636
|
} | undefined;
|
|
644
637
|
} | {
|
|
645
|
-
content: string;
|
|
646
638
|
type: "tool_result";
|
|
639
|
+
content: string;
|
|
647
640
|
tool_use_id: string;
|
|
648
641
|
cache_control?: {
|
|
649
642
|
type: "ephemeral";
|
|
@@ -670,7 +663,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
670
663
|
}[];
|
|
671
664
|
prompt?: string | undefined;
|
|
672
665
|
authToken?: string | undefined;
|
|
673
|
-
costMode?: "
|
|
666
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
674
667
|
model?: string | undefined;
|
|
675
668
|
cwd?: string | undefined;
|
|
676
669
|
}>, z.ZodObject<{
|
|
@@ -693,7 +686,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
693
686
|
currentWorkingDirectory: z.ZodString;
|
|
694
687
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
695
688
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
696
|
-
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
697
689
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
698
690
|
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
699
691
|
gitChanges: z.ZodObject<{
|
|
@@ -767,7 +759,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
767
759
|
homedir: string;
|
|
768
760
|
cpus: number;
|
|
769
761
|
};
|
|
770
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
771
762
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
772
763
|
fileVersions?: {
|
|
773
764
|
path: string;
|
|
@@ -794,7 +785,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
794
785
|
homedir: string;
|
|
795
786
|
cpus: number;
|
|
796
787
|
};
|
|
797
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
798
788
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
799
789
|
fileVersions?: {
|
|
800
790
|
path: string;
|
|
@@ -824,7 +814,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
824
814
|
homedir: string;
|
|
825
815
|
cpus: number;
|
|
826
816
|
};
|
|
827
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
828
817
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
829
818
|
fileVersions?: {
|
|
830
819
|
path: string;
|
|
@@ -856,7 +845,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
856
845
|
homedir: string;
|
|
857
846
|
cpus: number;
|
|
858
847
|
};
|
|
859
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
860
848
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
861
849
|
fileVersions?: {
|
|
862
850
|
path: string;
|
|
@@ -887,7 +875,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
887
875
|
type: "prompt";
|
|
888
876
|
promptId: string;
|
|
889
877
|
fingerprintId: string;
|
|
890
|
-
costMode: "
|
|
878
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
891
879
|
agentState: {
|
|
892
880
|
agentContext: string;
|
|
893
881
|
fileContext: {
|
|
@@ -911,7 +899,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
911
899
|
homedir: string;
|
|
912
900
|
cpus: number;
|
|
913
901
|
};
|
|
914
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
915
902
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
916
903
|
fileVersions?: {
|
|
917
904
|
path: string;
|
|
@@ -934,8 +921,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
934
921
|
type: "ephemeral";
|
|
935
922
|
} | undefined;
|
|
936
923
|
} | {
|
|
937
|
-
content: string;
|
|
938
924
|
type: "tool_result";
|
|
925
|
+
content: string;
|
|
939
926
|
tool_use_id: string;
|
|
940
927
|
cache_control?: {
|
|
941
928
|
type: "ephemeral";
|
|
@@ -991,7 +978,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
991
978
|
homedir: string;
|
|
992
979
|
cpus: number;
|
|
993
980
|
};
|
|
994
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
995
981
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
996
982
|
fileVersions?: {
|
|
997
983
|
path: string;
|
|
@@ -1036,7 +1022,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1036
1022
|
homedir: string;
|
|
1037
1023
|
cpus: number;
|
|
1038
1024
|
};
|
|
1039
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1040
1025
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1041
1026
|
fileVersions?: {
|
|
1042
1027
|
path: string;
|
|
@@ -1059,8 +1044,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1059
1044
|
type: "ephemeral";
|
|
1060
1045
|
} | undefined;
|
|
1061
1046
|
} | {
|
|
1062
|
-
content: string;
|
|
1063
1047
|
type: "tool_result";
|
|
1048
|
+
content: string;
|
|
1064
1049
|
tool_use_id: string;
|
|
1065
1050
|
cache_control?: {
|
|
1066
1051
|
type: "ephemeral";
|
|
@@ -1087,7 +1072,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1087
1072
|
}[];
|
|
1088
1073
|
prompt?: string | undefined;
|
|
1089
1074
|
authToken?: string | undefined;
|
|
1090
|
-
costMode?: "
|
|
1075
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
1091
1076
|
model?: string | undefined;
|
|
1092
1077
|
cwd?: string | undefined;
|
|
1093
1078
|
} | {
|
|
@@ -1117,7 +1102,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1117
1102
|
homedir: string;
|
|
1118
1103
|
cpus: number;
|
|
1119
1104
|
};
|
|
1120
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1121
1105
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1122
1106
|
fileVersions?: {
|
|
1123
1107
|
path: string;
|
|
@@ -1141,12 +1125,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1141
1125
|
clientSessionId: z.ZodString;
|
|
1142
1126
|
}, "strip", z.ZodTypeAny, {
|
|
1143
1127
|
type: "identify";
|
|
1144
|
-
txid: number;
|
|
1145
1128
|
clientSessionId: string;
|
|
1129
|
+
txid: number;
|
|
1146
1130
|
}, {
|
|
1147
1131
|
type: "identify";
|
|
1148
|
-
txid: number;
|
|
1149
1132
|
clientSessionId: string;
|
|
1133
|
+
txid: number;
|
|
1150
1134
|
}>, z.ZodObject<{
|
|
1151
1135
|
type: z.ZodLiteral<"subscribe">;
|
|
1152
1136
|
txid: z.ZodNumber;
|
|
@@ -1196,7 +1180,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1196
1180
|
currentWorkingDirectory: z.ZodString;
|
|
1197
1181
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
1198
1182
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1199
|
-
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
1200
1183
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1201
1184
|
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1202
1185
|
gitChanges: z.ZodObject<{
|
|
@@ -1270,7 +1253,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1270
1253
|
homedir: string;
|
|
1271
1254
|
cpus: number;
|
|
1272
1255
|
};
|
|
1273
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1274
1256
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1275
1257
|
fileVersions?: {
|
|
1276
1258
|
path: string;
|
|
@@ -1297,7 +1279,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1297
1279
|
homedir: string;
|
|
1298
1280
|
cpus: number;
|
|
1299
1281
|
};
|
|
1300
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1301
1282
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1302
1283
|
fileVersions?: {
|
|
1303
1284
|
path: string;
|
|
@@ -1368,15 +1349,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1368
1349
|
type: "ephemeral";
|
|
1369
1350
|
}>>;
|
|
1370
1351
|
}, "strip", z.ZodTypeAny, {
|
|
1371
|
-
content: string;
|
|
1372
1352
|
type: "tool_result";
|
|
1353
|
+
content: string;
|
|
1373
1354
|
tool_use_id: string;
|
|
1374
1355
|
cache_control?: {
|
|
1375
1356
|
type: "ephemeral";
|
|
1376
1357
|
} | undefined;
|
|
1377
1358
|
}, {
|
|
1378
|
-
content: string;
|
|
1379
1359
|
type: "tool_result";
|
|
1360
|
+
content: string;
|
|
1380
1361
|
tool_use_id: string;
|
|
1381
1362
|
cache_control?: {
|
|
1382
1363
|
type: "ephemeral";
|
|
@@ -1440,8 +1421,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1440
1421
|
type: "ephemeral";
|
|
1441
1422
|
} | undefined;
|
|
1442
1423
|
} | {
|
|
1443
|
-
content: string;
|
|
1444
1424
|
type: "tool_result";
|
|
1425
|
+
content: string;
|
|
1445
1426
|
tool_use_id: string;
|
|
1446
1427
|
cache_control?: {
|
|
1447
1428
|
type: "ephemeral";
|
|
@@ -1474,8 +1455,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1474
1455
|
type: "ephemeral";
|
|
1475
1456
|
} | undefined;
|
|
1476
1457
|
} | {
|
|
1477
|
-
content: string;
|
|
1478
1458
|
type: "tool_result";
|
|
1459
|
+
content: string;
|
|
1479
1460
|
tool_use_id: string;
|
|
1480
1461
|
cache_control?: {
|
|
1481
1462
|
type: "ephemeral";
|
|
@@ -1517,7 +1498,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1517
1498
|
homedir: string;
|
|
1518
1499
|
cpus: number;
|
|
1519
1500
|
};
|
|
1520
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1521
1501
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1522
1502
|
fileVersions?: {
|
|
1523
1503
|
path: string;
|
|
@@ -1540,8 +1520,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1540
1520
|
type: "ephemeral";
|
|
1541
1521
|
} | undefined;
|
|
1542
1522
|
} | {
|
|
1543
|
-
content: string;
|
|
1544
1523
|
type: "tool_result";
|
|
1524
|
+
content: string;
|
|
1545
1525
|
tool_use_id: string;
|
|
1546
1526
|
cache_control?: {
|
|
1547
1527
|
type: "ephemeral";
|
|
@@ -1583,7 +1563,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1583
1563
|
homedir: string;
|
|
1584
1564
|
cpus: number;
|
|
1585
1565
|
};
|
|
1586
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1587
1566
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1588
1567
|
fileVersions?: {
|
|
1589
1568
|
path: string;
|
|
@@ -1606,8 +1585,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1606
1585
|
type: "ephemeral";
|
|
1607
1586
|
} | undefined;
|
|
1608
1587
|
} | {
|
|
1609
|
-
content: string;
|
|
1610
1588
|
type: "tool_result";
|
|
1589
|
+
content: string;
|
|
1611
1590
|
tool_use_id: string;
|
|
1612
1591
|
cache_control?: {
|
|
1613
1592
|
type: "ephemeral";
|
|
@@ -1646,7 +1625,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1646
1625
|
type: "prompt";
|
|
1647
1626
|
promptId: string;
|
|
1648
1627
|
fingerprintId: string;
|
|
1649
|
-
costMode: "
|
|
1628
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
1650
1629
|
agentState: {
|
|
1651
1630
|
agentContext: string;
|
|
1652
1631
|
fileContext: {
|
|
@@ -1670,7 +1649,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1670
1649
|
homedir: string;
|
|
1671
1650
|
cpus: number;
|
|
1672
1651
|
};
|
|
1673
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1674
1652
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1675
1653
|
fileVersions?: {
|
|
1676
1654
|
path: string;
|
|
@@ -1693,8 +1671,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1693
1671
|
type: "ephemeral";
|
|
1694
1672
|
} | undefined;
|
|
1695
1673
|
} | {
|
|
1696
|
-
content: string;
|
|
1697
1674
|
type: "tool_result";
|
|
1675
|
+
content: string;
|
|
1698
1676
|
tool_use_id: string;
|
|
1699
1677
|
cache_control?: {
|
|
1700
1678
|
type: "ephemeral";
|
|
@@ -1750,7 +1728,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1750
1728
|
homedir: string;
|
|
1751
1729
|
cpus: number;
|
|
1752
1730
|
};
|
|
1753
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1754
1731
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1755
1732
|
fileVersions?: {
|
|
1756
1733
|
path: string;
|
|
@@ -1773,8 +1750,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1773
1750
|
type: "ephemeral";
|
|
1774
1751
|
} | undefined;
|
|
1775
1752
|
} | {
|
|
1776
|
-
content: string;
|
|
1777
1753
|
type: "tool_result";
|
|
1754
|
+
content: string;
|
|
1778
1755
|
tool_use_id: string;
|
|
1779
1756
|
cache_control?: {
|
|
1780
1757
|
type: "ephemeral";
|
|
@@ -1801,7 +1778,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1801
1778
|
}[];
|
|
1802
1779
|
prompt?: string | undefined;
|
|
1803
1780
|
authToken?: string | undefined;
|
|
1804
|
-
costMode?: "
|
|
1781
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
1805
1782
|
model?: string | undefined;
|
|
1806
1783
|
cwd?: string | undefined;
|
|
1807
1784
|
}>, z.ZodObject<{
|
|
@@ -1824,7 +1801,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1824
1801
|
currentWorkingDirectory: z.ZodString;
|
|
1825
1802
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
1826
1803
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1827
|
-
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
1828
1804
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1829
1805
|
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1830
1806
|
gitChanges: z.ZodObject<{
|
|
@@ -1898,7 +1874,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1898
1874
|
homedir: string;
|
|
1899
1875
|
cpus: number;
|
|
1900
1876
|
};
|
|
1901
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1902
1877
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1903
1878
|
fileVersions?: {
|
|
1904
1879
|
path: string;
|
|
@@ -1925,7 +1900,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1925
1900
|
homedir: string;
|
|
1926
1901
|
cpus: number;
|
|
1927
1902
|
};
|
|
1928
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1929
1903
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1930
1904
|
fileVersions?: {
|
|
1931
1905
|
path: string;
|
|
@@ -1955,7 +1929,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1955
1929
|
homedir: string;
|
|
1956
1930
|
cpus: number;
|
|
1957
1931
|
};
|
|
1958
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1959
1932
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1960
1933
|
fileVersions?: {
|
|
1961
1934
|
path: string;
|
|
@@ -1987,7 +1960,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1987
1960
|
homedir: string;
|
|
1988
1961
|
cpus: number;
|
|
1989
1962
|
};
|
|
1990
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1991
1963
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1992
1964
|
fileVersions?: {
|
|
1993
1965
|
path: string;
|
|
@@ -2018,7 +1990,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2018
1990
|
type: "prompt";
|
|
2019
1991
|
promptId: string;
|
|
2020
1992
|
fingerprintId: string;
|
|
2021
|
-
costMode: "
|
|
1993
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
2022
1994
|
agentState: {
|
|
2023
1995
|
agentContext: string;
|
|
2024
1996
|
fileContext: {
|
|
@@ -2042,7 +2014,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2042
2014
|
homedir: string;
|
|
2043
2015
|
cpus: number;
|
|
2044
2016
|
};
|
|
2045
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2046
2017
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2047
2018
|
fileVersions?: {
|
|
2048
2019
|
path: string;
|
|
@@ -2065,8 +2036,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2065
2036
|
type: "ephemeral";
|
|
2066
2037
|
} | undefined;
|
|
2067
2038
|
} | {
|
|
2068
|
-
content: string;
|
|
2069
2039
|
type: "tool_result";
|
|
2040
|
+
content: string;
|
|
2070
2041
|
tool_use_id: string;
|
|
2071
2042
|
cache_control?: {
|
|
2072
2043
|
type: "ephemeral";
|
|
@@ -2122,7 +2093,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2122
2093
|
homedir: string;
|
|
2123
2094
|
cpus: number;
|
|
2124
2095
|
};
|
|
2125
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2126
2096
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2127
2097
|
fileVersions?: {
|
|
2128
2098
|
path: string;
|
|
@@ -2167,7 +2137,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2167
2137
|
homedir: string;
|
|
2168
2138
|
cpus: number;
|
|
2169
2139
|
};
|
|
2170
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2171
2140
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2172
2141
|
fileVersions?: {
|
|
2173
2142
|
path: string;
|
|
@@ -2190,8 +2159,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2190
2159
|
type: "ephemeral";
|
|
2191
2160
|
} | undefined;
|
|
2192
2161
|
} | {
|
|
2193
|
-
content: string;
|
|
2194
2162
|
type: "tool_result";
|
|
2163
|
+
content: string;
|
|
2195
2164
|
tool_use_id: string;
|
|
2196
2165
|
cache_control?: {
|
|
2197
2166
|
type: "ephemeral";
|
|
@@ -2218,7 +2187,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2218
2187
|
}[];
|
|
2219
2188
|
prompt?: string | undefined;
|
|
2220
2189
|
authToken?: string | undefined;
|
|
2221
|
-
costMode?: "
|
|
2190
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
2222
2191
|
model?: string | undefined;
|
|
2223
2192
|
cwd?: string | undefined;
|
|
2224
2193
|
} | {
|
|
@@ -2248,7 +2217,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2248
2217
|
homedir: string;
|
|
2249
2218
|
cpus: number;
|
|
2250
2219
|
};
|
|
2251
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2252
2220
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2253
2221
|
fileVersions?: {
|
|
2254
2222
|
path: string;
|
|
@@ -2308,12 +2276,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2308
2276
|
content: z.ZodString;
|
|
2309
2277
|
}, "strip", z.ZodTypeAny, {
|
|
2310
2278
|
path: string;
|
|
2311
|
-
content: string;
|
|
2312
2279
|
type: "file" | "patch";
|
|
2280
|
+
content: string;
|
|
2313
2281
|
}, {
|
|
2314
2282
|
path: string;
|
|
2315
|
-
content: string;
|
|
2316
2283
|
type: "file" | "patch";
|
|
2284
|
+
content: string;
|
|
2317
2285
|
}>, "many">;
|
|
2318
2286
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2319
2287
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -2321,12 +2289,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2321
2289
|
content: z.ZodString;
|
|
2322
2290
|
}, "strip", z.ZodTypeAny, {
|
|
2323
2291
|
path: string;
|
|
2324
|
-
content: string;
|
|
2325
2292
|
type: "file" | "patch";
|
|
2293
|
+
content: string;
|
|
2326
2294
|
}, {
|
|
2327
2295
|
path: string;
|
|
2328
|
-
content: string;
|
|
2329
2296
|
type: "file" | "patch";
|
|
2297
|
+
content: string;
|
|
2330
2298
|
}>, "many">;
|
|
2331
2299
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2332
2300
|
path: z.ZodString;
|
|
@@ -2351,13 +2319,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2351
2319
|
response: string;
|
|
2352
2320
|
changes: {
|
|
2353
2321
|
path: string;
|
|
2354
|
-
content: string;
|
|
2355
2322
|
type: "file" | "patch";
|
|
2323
|
+
content: string;
|
|
2356
2324
|
}[];
|
|
2357
2325
|
changesAlreadyApplied: {
|
|
2358
2326
|
path: string;
|
|
2359
|
-
content: string;
|
|
2360
2327
|
type: "file" | "patch";
|
|
2328
|
+
content: string;
|
|
2361
2329
|
}[];
|
|
2362
2330
|
addedFileVersions: {
|
|
2363
2331
|
path: string;
|
|
@@ -2375,13 +2343,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2375
2343
|
response: string;
|
|
2376
2344
|
changes: {
|
|
2377
2345
|
path: string;
|
|
2378
|
-
content: string;
|
|
2379
2346
|
type: "file" | "patch";
|
|
2347
|
+
content: string;
|
|
2380
2348
|
}[];
|
|
2381
2349
|
changesAlreadyApplied: {
|
|
2382
2350
|
path: string;
|
|
2383
|
-
content: string;
|
|
2384
2351
|
type: "file" | "patch";
|
|
2352
|
+
content: string;
|
|
2385
2353
|
}[];
|
|
2386
2354
|
addedFileVersions: {
|
|
2387
2355
|
path: string;
|
|
@@ -2402,7 +2370,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2402
2370
|
currentWorkingDirectory: z.ZodString;
|
|
2403
2371
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
2404
2372
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2405
|
-
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
2406
2373
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2407
2374
|
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2408
2375
|
gitChanges: z.ZodObject<{
|
|
@@ -2476,7 +2443,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2476
2443
|
homedir: string;
|
|
2477
2444
|
cpus: number;
|
|
2478
2445
|
};
|
|
2479
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2480
2446
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2481
2447
|
fileVersions?: {
|
|
2482
2448
|
path: string;
|
|
@@ -2503,7 +2469,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2503
2469
|
homedir: string;
|
|
2504
2470
|
cpus: number;
|
|
2505
2471
|
};
|
|
2506
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2507
2472
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2508
2473
|
fileVersions?: {
|
|
2509
2474
|
path: string;
|
|
@@ -2574,15 +2539,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2574
2539
|
type: "ephemeral";
|
|
2575
2540
|
}>>;
|
|
2576
2541
|
}, "strip", z.ZodTypeAny, {
|
|
2577
|
-
content: string;
|
|
2578
2542
|
type: "tool_result";
|
|
2543
|
+
content: string;
|
|
2579
2544
|
tool_use_id: string;
|
|
2580
2545
|
cache_control?: {
|
|
2581
2546
|
type: "ephemeral";
|
|
2582
2547
|
} | undefined;
|
|
2583
2548
|
}, {
|
|
2584
|
-
content: string;
|
|
2585
2549
|
type: "tool_result";
|
|
2550
|
+
content: string;
|
|
2586
2551
|
tool_use_id: string;
|
|
2587
2552
|
cache_control?: {
|
|
2588
2553
|
type: "ephemeral";
|
|
@@ -2646,8 +2611,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2646
2611
|
type: "ephemeral";
|
|
2647
2612
|
} | undefined;
|
|
2648
2613
|
} | {
|
|
2649
|
-
content: string;
|
|
2650
2614
|
type: "tool_result";
|
|
2615
|
+
content: string;
|
|
2651
2616
|
tool_use_id: string;
|
|
2652
2617
|
cache_control?: {
|
|
2653
2618
|
type: "ephemeral";
|
|
@@ -2680,8 +2645,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2680
2645
|
type: "ephemeral";
|
|
2681
2646
|
} | undefined;
|
|
2682
2647
|
} | {
|
|
2683
|
-
content: string;
|
|
2684
2648
|
type: "tool_result";
|
|
2649
|
+
content: string;
|
|
2685
2650
|
tool_use_id: string;
|
|
2686
2651
|
cache_control?: {
|
|
2687
2652
|
type: "ephemeral";
|
|
@@ -2723,7 +2688,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2723
2688
|
homedir: string;
|
|
2724
2689
|
cpus: number;
|
|
2725
2690
|
};
|
|
2726
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2727
2691
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2728
2692
|
fileVersions?: {
|
|
2729
2693
|
path: string;
|
|
@@ -2746,8 +2710,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2746
2710
|
type: "ephemeral";
|
|
2747
2711
|
} | undefined;
|
|
2748
2712
|
} | {
|
|
2749
|
-
content: string;
|
|
2750
2713
|
type: "tool_result";
|
|
2714
|
+
content: string;
|
|
2751
2715
|
tool_use_id: string;
|
|
2752
2716
|
cache_control?: {
|
|
2753
2717
|
type: "ephemeral";
|
|
@@ -2789,7 +2753,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2789
2753
|
homedir: string;
|
|
2790
2754
|
cpus: number;
|
|
2791
2755
|
};
|
|
2792
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2793
2756
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2794
2757
|
fileVersions?: {
|
|
2795
2758
|
path: string;
|
|
@@ -2812,8 +2775,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2812
2775
|
type: "ephemeral";
|
|
2813
2776
|
} | undefined;
|
|
2814
2777
|
} | {
|
|
2815
|
-
content: string;
|
|
2816
2778
|
type: "tool_result";
|
|
2779
|
+
content: string;
|
|
2817
2780
|
tool_use_id: string;
|
|
2818
2781
|
cache_control?: {
|
|
2819
2782
|
type: "ephemeral";
|
|
@@ -2839,12 +2802,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2839
2802
|
id: z.ZodString;
|
|
2840
2803
|
}, "strip", z.ZodTypeAny, {
|
|
2841
2804
|
name: string;
|
|
2842
|
-
parameters: Record<string, string>;
|
|
2843
2805
|
id: string;
|
|
2806
|
+
parameters: Record<string, string>;
|
|
2844
2807
|
}, {
|
|
2845
2808
|
name: string;
|
|
2846
|
-
parameters: Record<string, string>;
|
|
2847
2809
|
id: string;
|
|
2810
|
+
parameters: Record<string, string>;
|
|
2848
2811
|
}>, "many">;
|
|
2849
2812
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
2850
2813
|
name: z.ZodString;
|
|
@@ -2885,7 +2848,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2885
2848
|
homedir: string;
|
|
2886
2849
|
cpus: number;
|
|
2887
2850
|
};
|
|
2888
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2889
2851
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2890
2852
|
fileVersions?: {
|
|
2891
2853
|
path: string;
|
|
@@ -2908,8 +2870,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2908
2870
|
type: "ephemeral";
|
|
2909
2871
|
} | undefined;
|
|
2910
2872
|
} | {
|
|
2911
|
-
content: string;
|
|
2912
2873
|
type: "tool_result";
|
|
2874
|
+
content: string;
|
|
2913
2875
|
tool_use_id: string;
|
|
2914
2876
|
cache_control?: {
|
|
2915
2877
|
type: "ephemeral";
|
|
@@ -2936,8 +2898,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2936
2898
|
}[];
|
|
2937
2899
|
toolCalls: {
|
|
2938
2900
|
name: string;
|
|
2939
|
-
parameters: Record<string, string>;
|
|
2940
2901
|
id: string;
|
|
2902
|
+
parameters: Record<string, string>;
|
|
2941
2903
|
}[];
|
|
2942
2904
|
}, {
|
|
2943
2905
|
type: "prompt-response";
|
|
@@ -2965,7 +2927,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2965
2927
|
homedir: string;
|
|
2966
2928
|
cpus: number;
|
|
2967
2929
|
};
|
|
2968
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2969
2930
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2970
2931
|
fileVersions?: {
|
|
2971
2932
|
path: string;
|
|
@@ -2988,8 +2949,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2988
2949
|
type: "ephemeral";
|
|
2989
2950
|
} | undefined;
|
|
2990
2951
|
} | {
|
|
2991
|
-
content: string;
|
|
2992
2952
|
type: "tool_result";
|
|
2953
|
+
content: string;
|
|
2993
2954
|
tool_use_id: string;
|
|
2994
2955
|
cache_control?: {
|
|
2995
2956
|
type: "ephemeral";
|
|
@@ -3016,8 +2977,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3016
2977
|
}[];
|
|
3017
2978
|
toolCalls: {
|
|
3018
2979
|
name: string;
|
|
3019
|
-
parameters: Record<string, string>;
|
|
3020
2980
|
id: string;
|
|
2981
|
+
parameters: Record<string, string>;
|
|
3021
2982
|
}[];
|
|
3022
2983
|
}>, z.ZodObject<{
|
|
3023
2984
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -3054,12 +3015,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3054
3015
|
content: z.ZodString;
|
|
3055
3016
|
}, "strip", z.ZodTypeAny, {
|
|
3056
3017
|
path: string;
|
|
3057
|
-
content: string;
|
|
3058
3018
|
type: "file" | "patch";
|
|
3019
|
+
content: string;
|
|
3059
3020
|
}, {
|
|
3060
3021
|
path: string;
|
|
3061
|
-
content: string;
|
|
3062
3022
|
type: "file" | "patch";
|
|
3023
|
+
content: string;
|
|
3063
3024
|
}>, "many">;
|
|
3064
3025
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3065
3026
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -3067,12 +3028,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3067
3028
|
content: z.ZodString;
|
|
3068
3029
|
}, "strip", z.ZodTypeAny, {
|
|
3069
3030
|
path: string;
|
|
3070
|
-
content: string;
|
|
3071
3031
|
type: "file" | "patch";
|
|
3032
|
+
content: string;
|
|
3072
3033
|
}, {
|
|
3073
3034
|
path: string;
|
|
3074
|
-
content: string;
|
|
3075
3035
|
type: "file" | "patch";
|
|
3036
|
+
content: string;
|
|
3076
3037
|
}>, "many">;
|
|
3077
3038
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3078
3039
|
path: z.ZodString;
|
|
@@ -3096,13 +3057,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3096
3057
|
response: string;
|
|
3097
3058
|
changes: {
|
|
3098
3059
|
path: string;
|
|
3099
|
-
content: string;
|
|
3100
3060
|
type: "file" | "patch";
|
|
3061
|
+
content: string;
|
|
3101
3062
|
}[];
|
|
3102
3063
|
changesAlreadyApplied: {
|
|
3103
3064
|
path: string;
|
|
3104
|
-
content: string;
|
|
3105
3065
|
type: "file" | "patch";
|
|
3066
|
+
content: string;
|
|
3106
3067
|
}[];
|
|
3107
3068
|
addedFileVersions: {
|
|
3108
3069
|
path: string;
|
|
@@ -3120,13 +3081,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3120
3081
|
response: string;
|
|
3121
3082
|
changes: {
|
|
3122
3083
|
path: string;
|
|
3123
|
-
content: string;
|
|
3124
3084
|
type: "file" | "patch";
|
|
3085
|
+
content: string;
|
|
3125
3086
|
}[];
|
|
3126
3087
|
changesAlreadyApplied: {
|
|
3127
3088
|
path: string;
|
|
3128
|
-
content: string;
|
|
3129
3089
|
type: "file" | "patch";
|
|
3090
|
+
content: string;
|
|
3130
3091
|
}[];
|
|
3131
3092
|
addedFileVersions: {
|
|
3132
3093
|
path: string;
|
|
@@ -3266,13 +3227,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3266
3227
|
response: string;
|
|
3267
3228
|
changes: {
|
|
3268
3229
|
path: string;
|
|
3269
|
-
content: string;
|
|
3270
3230
|
type: "file" | "patch";
|
|
3231
|
+
content: string;
|
|
3271
3232
|
}[];
|
|
3272
3233
|
changesAlreadyApplied: {
|
|
3273
3234
|
path: string;
|
|
3274
|
-
content: string;
|
|
3275
3235
|
type: "file" | "patch";
|
|
3236
|
+
content: string;
|
|
3276
3237
|
}[];
|
|
3277
3238
|
addedFileVersions: {
|
|
3278
3239
|
path: string;
|
|
@@ -3314,7 +3275,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3314
3275
|
homedir: string;
|
|
3315
3276
|
cpus: number;
|
|
3316
3277
|
};
|
|
3317
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3318
3278
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3319
3279
|
fileVersions?: {
|
|
3320
3280
|
path: string;
|
|
@@ -3337,8 +3297,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3337
3297
|
type: "ephemeral";
|
|
3338
3298
|
} | undefined;
|
|
3339
3299
|
} | {
|
|
3340
|
-
content: string;
|
|
3341
3300
|
type: "tool_result";
|
|
3301
|
+
content: string;
|
|
3342
3302
|
tool_use_id: string;
|
|
3343
3303
|
cache_control?: {
|
|
3344
3304
|
type: "ephemeral";
|
|
@@ -3365,8 +3325,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3365
3325
|
}[];
|
|
3366
3326
|
toolCalls: {
|
|
3367
3327
|
name: string;
|
|
3368
|
-
parameters: Record<string, string>;
|
|
3369
3328
|
id: string;
|
|
3329
|
+
parameters: Record<string, string>;
|
|
3370
3330
|
}[];
|
|
3371
3331
|
} | {
|
|
3372
3332
|
type: "response-chunk";
|
|
@@ -3387,13 +3347,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3387
3347
|
response: string;
|
|
3388
3348
|
changes: {
|
|
3389
3349
|
path: string;
|
|
3390
|
-
content: string;
|
|
3391
3350
|
type: "file" | "patch";
|
|
3351
|
+
content: string;
|
|
3392
3352
|
}[];
|
|
3393
3353
|
changesAlreadyApplied: {
|
|
3394
3354
|
path: string;
|
|
3395
|
-
content: string;
|
|
3396
3355
|
type: "file" | "patch";
|
|
3356
|
+
content: string;
|
|
3397
3357
|
}[];
|
|
3398
3358
|
addedFileVersions: {
|
|
3399
3359
|
path: string;
|
|
@@ -3441,13 +3401,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3441
3401
|
response: string;
|
|
3442
3402
|
changes: {
|
|
3443
3403
|
path: string;
|
|
3444
|
-
content: string;
|
|
3445
3404
|
type: "file" | "patch";
|
|
3405
|
+
content: string;
|
|
3446
3406
|
}[];
|
|
3447
3407
|
changesAlreadyApplied: {
|
|
3448
3408
|
path: string;
|
|
3449
|
-
content: string;
|
|
3450
3409
|
type: "file" | "patch";
|
|
3410
|
+
content: string;
|
|
3451
3411
|
}[];
|
|
3452
3412
|
addedFileVersions: {
|
|
3453
3413
|
path: string;
|
|
@@ -3489,7 +3449,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3489
3449
|
homedir: string;
|
|
3490
3450
|
cpus: number;
|
|
3491
3451
|
};
|
|
3492
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3493
3452
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3494
3453
|
fileVersions?: {
|
|
3495
3454
|
path: string;
|
|
@@ -3512,8 +3471,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3512
3471
|
type: "ephemeral";
|
|
3513
3472
|
} | undefined;
|
|
3514
3473
|
} | {
|
|
3515
|
-
content: string;
|
|
3516
3474
|
type: "tool_result";
|
|
3475
|
+
content: string;
|
|
3517
3476
|
tool_use_id: string;
|
|
3518
3477
|
cache_control?: {
|
|
3519
3478
|
type: "ephemeral";
|
|
@@ -3540,8 +3499,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3540
3499
|
}[];
|
|
3541
3500
|
toolCalls: {
|
|
3542
3501
|
name: string;
|
|
3543
|
-
parameters: Record<string, string>;
|
|
3544
3502
|
id: string;
|
|
3503
|
+
parameters: Record<string, string>;
|
|
3545
3504
|
}[];
|
|
3546
3505
|
} | {
|
|
3547
3506
|
type: "response-chunk";
|
|
@@ -3562,13 +3521,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3562
3521
|
response: string;
|
|
3563
3522
|
changes: {
|
|
3564
3523
|
path: string;
|
|
3565
|
-
content: string;
|
|
3566
3524
|
type: "file" | "patch";
|
|
3525
|
+
content: string;
|
|
3567
3526
|
}[];
|
|
3568
3527
|
changesAlreadyApplied: {
|
|
3569
3528
|
path: string;
|
|
3570
|
-
content: string;
|
|
3571
3529
|
type: "file" | "patch";
|
|
3530
|
+
content: string;
|
|
3572
3531
|
}[];
|
|
3573
3532
|
addedFileVersions: {
|
|
3574
3533
|
path: string;
|
|
@@ -3635,12 +3594,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3635
3594
|
content: z.ZodString;
|
|
3636
3595
|
}, "strip", z.ZodTypeAny, {
|
|
3637
3596
|
path: string;
|
|
3638
|
-
content: string;
|
|
3639
3597
|
type: "file" | "patch";
|
|
3598
|
+
content: string;
|
|
3640
3599
|
}, {
|
|
3641
3600
|
path: string;
|
|
3642
|
-
content: string;
|
|
3643
3601
|
type: "file" | "patch";
|
|
3602
|
+
content: string;
|
|
3644
3603
|
}>, "many">;
|
|
3645
3604
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3646
3605
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -3648,12 +3607,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3648
3607
|
content: z.ZodString;
|
|
3649
3608
|
}, "strip", z.ZodTypeAny, {
|
|
3650
3609
|
path: string;
|
|
3651
|
-
content: string;
|
|
3652
3610
|
type: "file" | "patch";
|
|
3611
|
+
content: string;
|
|
3653
3612
|
}, {
|
|
3654
3613
|
path: string;
|
|
3655
|
-
content: string;
|
|
3656
3614
|
type: "file" | "patch";
|
|
3615
|
+
content: string;
|
|
3657
3616
|
}>, "many">;
|
|
3658
3617
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3659
3618
|
path: z.ZodString;
|
|
@@ -3678,13 +3637,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3678
3637
|
response: string;
|
|
3679
3638
|
changes: {
|
|
3680
3639
|
path: string;
|
|
3681
|
-
content: string;
|
|
3682
3640
|
type: "file" | "patch";
|
|
3641
|
+
content: string;
|
|
3683
3642
|
}[];
|
|
3684
3643
|
changesAlreadyApplied: {
|
|
3685
3644
|
path: string;
|
|
3686
|
-
content: string;
|
|
3687
3645
|
type: "file" | "patch";
|
|
3646
|
+
content: string;
|
|
3688
3647
|
}[];
|
|
3689
3648
|
addedFileVersions: {
|
|
3690
3649
|
path: string;
|
|
@@ -3702,13 +3661,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3702
3661
|
response: string;
|
|
3703
3662
|
changes: {
|
|
3704
3663
|
path: string;
|
|
3705
|
-
content: string;
|
|
3706
3664
|
type: "file" | "patch";
|
|
3665
|
+
content: string;
|
|
3707
3666
|
}[];
|
|
3708
3667
|
changesAlreadyApplied: {
|
|
3709
3668
|
path: string;
|
|
3710
|
-
content: string;
|
|
3711
3669
|
type: "file" | "patch";
|
|
3670
|
+
content: string;
|
|
3712
3671
|
}[];
|
|
3713
3672
|
addedFileVersions: {
|
|
3714
3673
|
path: string;
|
|
@@ -3729,7 +3688,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3729
3688
|
currentWorkingDirectory: z.ZodString;
|
|
3730
3689
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
3731
3690
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3732
|
-
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
3733
3691
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3734
3692
|
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3735
3693
|
gitChanges: z.ZodObject<{
|
|
@@ -3803,7 +3761,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3803
3761
|
homedir: string;
|
|
3804
3762
|
cpus: number;
|
|
3805
3763
|
};
|
|
3806
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3807
3764
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3808
3765
|
fileVersions?: {
|
|
3809
3766
|
path: string;
|
|
@@ -3830,7 +3787,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3830
3787
|
homedir: string;
|
|
3831
3788
|
cpus: number;
|
|
3832
3789
|
};
|
|
3833
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3834
3790
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3835
3791
|
fileVersions?: {
|
|
3836
3792
|
path: string;
|
|
@@ -3901,15 +3857,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3901
3857
|
type: "ephemeral";
|
|
3902
3858
|
}>>;
|
|
3903
3859
|
}, "strip", z.ZodTypeAny, {
|
|
3904
|
-
content: string;
|
|
3905
3860
|
type: "tool_result";
|
|
3861
|
+
content: string;
|
|
3906
3862
|
tool_use_id: string;
|
|
3907
3863
|
cache_control?: {
|
|
3908
3864
|
type: "ephemeral";
|
|
3909
3865
|
} | undefined;
|
|
3910
3866
|
}, {
|
|
3911
|
-
content: string;
|
|
3912
3867
|
type: "tool_result";
|
|
3868
|
+
content: string;
|
|
3913
3869
|
tool_use_id: string;
|
|
3914
3870
|
cache_control?: {
|
|
3915
3871
|
type: "ephemeral";
|
|
@@ -3973,8 +3929,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3973
3929
|
type: "ephemeral";
|
|
3974
3930
|
} | undefined;
|
|
3975
3931
|
} | {
|
|
3976
|
-
content: string;
|
|
3977
3932
|
type: "tool_result";
|
|
3933
|
+
content: string;
|
|
3978
3934
|
tool_use_id: string;
|
|
3979
3935
|
cache_control?: {
|
|
3980
3936
|
type: "ephemeral";
|
|
@@ -4007,8 +3963,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4007
3963
|
type: "ephemeral";
|
|
4008
3964
|
} | undefined;
|
|
4009
3965
|
} | {
|
|
4010
|
-
content: string;
|
|
4011
3966
|
type: "tool_result";
|
|
3967
|
+
content: string;
|
|
4012
3968
|
tool_use_id: string;
|
|
4013
3969
|
cache_control?: {
|
|
4014
3970
|
type: "ephemeral";
|
|
@@ -4050,7 +4006,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4050
4006
|
homedir: string;
|
|
4051
4007
|
cpus: number;
|
|
4052
4008
|
};
|
|
4053
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4054
4009
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4055
4010
|
fileVersions?: {
|
|
4056
4011
|
path: string;
|
|
@@ -4073,8 +4028,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4073
4028
|
type: "ephemeral";
|
|
4074
4029
|
} | undefined;
|
|
4075
4030
|
} | {
|
|
4076
|
-
content: string;
|
|
4077
4031
|
type: "tool_result";
|
|
4032
|
+
content: string;
|
|
4078
4033
|
tool_use_id: string;
|
|
4079
4034
|
cache_control?: {
|
|
4080
4035
|
type: "ephemeral";
|
|
@@ -4116,7 +4071,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4116
4071
|
homedir: string;
|
|
4117
4072
|
cpus: number;
|
|
4118
4073
|
};
|
|
4119
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4120
4074
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4121
4075
|
fileVersions?: {
|
|
4122
4076
|
path: string;
|
|
@@ -4139,8 +4093,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4139
4093
|
type: "ephemeral";
|
|
4140
4094
|
} | undefined;
|
|
4141
4095
|
} | {
|
|
4142
|
-
content: string;
|
|
4143
4096
|
type: "tool_result";
|
|
4097
|
+
content: string;
|
|
4144
4098
|
tool_use_id: string;
|
|
4145
4099
|
cache_control?: {
|
|
4146
4100
|
type: "ephemeral";
|
|
@@ -4166,12 +4120,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4166
4120
|
id: z.ZodString;
|
|
4167
4121
|
}, "strip", z.ZodTypeAny, {
|
|
4168
4122
|
name: string;
|
|
4169
|
-
parameters: Record<string, string>;
|
|
4170
4123
|
id: string;
|
|
4124
|
+
parameters: Record<string, string>;
|
|
4171
4125
|
}, {
|
|
4172
4126
|
name: string;
|
|
4173
|
-
parameters: Record<string, string>;
|
|
4174
4127
|
id: string;
|
|
4128
|
+
parameters: Record<string, string>;
|
|
4175
4129
|
}>, "many">;
|
|
4176
4130
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
4177
4131
|
name: z.ZodString;
|
|
@@ -4212,7 +4166,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4212
4166
|
homedir: string;
|
|
4213
4167
|
cpus: number;
|
|
4214
4168
|
};
|
|
4215
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4216
4169
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4217
4170
|
fileVersions?: {
|
|
4218
4171
|
path: string;
|
|
@@ -4235,8 +4188,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4235
4188
|
type: "ephemeral";
|
|
4236
4189
|
} | undefined;
|
|
4237
4190
|
} | {
|
|
4238
|
-
content: string;
|
|
4239
4191
|
type: "tool_result";
|
|
4192
|
+
content: string;
|
|
4240
4193
|
tool_use_id: string;
|
|
4241
4194
|
cache_control?: {
|
|
4242
4195
|
type: "ephemeral";
|
|
@@ -4263,8 +4216,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4263
4216
|
}[];
|
|
4264
4217
|
toolCalls: {
|
|
4265
4218
|
name: string;
|
|
4266
|
-
parameters: Record<string, string>;
|
|
4267
4219
|
id: string;
|
|
4220
|
+
parameters: Record<string, string>;
|
|
4268
4221
|
}[];
|
|
4269
4222
|
}, {
|
|
4270
4223
|
type: "prompt-response";
|
|
@@ -4292,7 +4245,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4292
4245
|
homedir: string;
|
|
4293
4246
|
cpus: number;
|
|
4294
4247
|
};
|
|
4295
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4296
4248
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4297
4249
|
fileVersions?: {
|
|
4298
4250
|
path: string;
|
|
@@ -4315,8 +4267,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4315
4267
|
type: "ephemeral";
|
|
4316
4268
|
} | undefined;
|
|
4317
4269
|
} | {
|
|
4318
|
-
content: string;
|
|
4319
4270
|
type: "tool_result";
|
|
4271
|
+
content: string;
|
|
4320
4272
|
tool_use_id: string;
|
|
4321
4273
|
cache_control?: {
|
|
4322
4274
|
type: "ephemeral";
|
|
@@ -4343,8 +4295,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4343
4295
|
}[];
|
|
4344
4296
|
toolCalls: {
|
|
4345
4297
|
name: string;
|
|
4346
|
-
parameters: Record<string, string>;
|
|
4347
4298
|
id: string;
|
|
4299
|
+
parameters: Record<string, string>;
|
|
4348
4300
|
}[];
|
|
4349
4301
|
}>, z.ZodObject<{
|
|
4350
4302
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -4381,12 +4333,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4381
4333
|
content: z.ZodString;
|
|
4382
4334
|
}, "strip", z.ZodTypeAny, {
|
|
4383
4335
|
path: string;
|
|
4384
|
-
content: string;
|
|
4385
4336
|
type: "file" | "patch";
|
|
4337
|
+
content: string;
|
|
4386
4338
|
}, {
|
|
4387
4339
|
path: string;
|
|
4388
|
-
content: string;
|
|
4389
4340
|
type: "file" | "patch";
|
|
4341
|
+
content: string;
|
|
4390
4342
|
}>, "many">;
|
|
4391
4343
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
4392
4344
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -4394,12 +4346,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4394
4346
|
content: z.ZodString;
|
|
4395
4347
|
}, "strip", z.ZodTypeAny, {
|
|
4396
4348
|
path: string;
|
|
4397
|
-
content: string;
|
|
4398
4349
|
type: "file" | "patch";
|
|
4350
|
+
content: string;
|
|
4399
4351
|
}, {
|
|
4400
4352
|
path: string;
|
|
4401
|
-
content: string;
|
|
4402
4353
|
type: "file" | "patch";
|
|
4354
|
+
content: string;
|
|
4403
4355
|
}>, "many">;
|
|
4404
4356
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
4405
4357
|
path: z.ZodString;
|
|
@@ -4423,13 +4375,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4423
4375
|
response: string;
|
|
4424
4376
|
changes: {
|
|
4425
4377
|
path: string;
|
|
4426
|
-
content: string;
|
|
4427
4378
|
type: "file" | "patch";
|
|
4379
|
+
content: string;
|
|
4428
4380
|
}[];
|
|
4429
4381
|
changesAlreadyApplied: {
|
|
4430
4382
|
path: string;
|
|
4431
|
-
content: string;
|
|
4432
4383
|
type: "file" | "patch";
|
|
4384
|
+
content: string;
|
|
4433
4385
|
}[];
|
|
4434
4386
|
addedFileVersions: {
|
|
4435
4387
|
path: string;
|
|
@@ -4447,13 +4399,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4447
4399
|
response: string;
|
|
4448
4400
|
changes: {
|
|
4449
4401
|
path: string;
|
|
4450
|
-
content: string;
|
|
4451
4402
|
type: "file" | "patch";
|
|
4403
|
+
content: string;
|
|
4452
4404
|
}[];
|
|
4453
4405
|
changesAlreadyApplied: {
|
|
4454
4406
|
path: string;
|
|
4455
|
-
content: string;
|
|
4456
4407
|
type: "file" | "patch";
|
|
4408
|
+
content: string;
|
|
4457
4409
|
}[];
|
|
4458
4410
|
addedFileVersions: {
|
|
4459
4411
|
path: string;
|
|
@@ -4593,13 +4545,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4593
4545
|
response: string;
|
|
4594
4546
|
changes: {
|
|
4595
4547
|
path: string;
|
|
4596
|
-
content: string;
|
|
4597
4548
|
type: "file" | "patch";
|
|
4549
|
+
content: string;
|
|
4598
4550
|
}[];
|
|
4599
4551
|
changesAlreadyApplied: {
|
|
4600
4552
|
path: string;
|
|
4601
|
-
content: string;
|
|
4602
4553
|
type: "file" | "patch";
|
|
4554
|
+
content: string;
|
|
4603
4555
|
}[];
|
|
4604
4556
|
addedFileVersions: {
|
|
4605
4557
|
path: string;
|
|
@@ -4641,7 +4593,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4641
4593
|
homedir: string;
|
|
4642
4594
|
cpus: number;
|
|
4643
4595
|
};
|
|
4644
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4645
4596
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4646
4597
|
fileVersions?: {
|
|
4647
4598
|
path: string;
|
|
@@ -4664,8 +4615,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4664
4615
|
type: "ephemeral";
|
|
4665
4616
|
} | undefined;
|
|
4666
4617
|
} | {
|
|
4667
|
-
content: string;
|
|
4668
4618
|
type: "tool_result";
|
|
4619
|
+
content: string;
|
|
4669
4620
|
tool_use_id: string;
|
|
4670
4621
|
cache_control?: {
|
|
4671
4622
|
type: "ephemeral";
|
|
@@ -4692,8 +4643,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4692
4643
|
}[];
|
|
4693
4644
|
toolCalls: {
|
|
4694
4645
|
name: string;
|
|
4695
|
-
parameters: Record<string, string>;
|
|
4696
4646
|
id: string;
|
|
4647
|
+
parameters: Record<string, string>;
|
|
4697
4648
|
}[];
|
|
4698
4649
|
} | {
|
|
4699
4650
|
type: "response-chunk";
|
|
@@ -4714,13 +4665,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4714
4665
|
response: string;
|
|
4715
4666
|
changes: {
|
|
4716
4667
|
path: string;
|
|
4717
|
-
content: string;
|
|
4718
4668
|
type: "file" | "patch";
|
|
4669
|
+
content: string;
|
|
4719
4670
|
}[];
|
|
4720
4671
|
changesAlreadyApplied: {
|
|
4721
4672
|
path: string;
|
|
4722
|
-
content: string;
|
|
4723
4673
|
type: "file" | "patch";
|
|
4674
|
+
content: string;
|
|
4724
4675
|
}[];
|
|
4725
4676
|
addedFileVersions: {
|
|
4726
4677
|
path: string;
|
|
@@ -4768,13 +4719,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4768
4719
|
response: string;
|
|
4769
4720
|
changes: {
|
|
4770
4721
|
path: string;
|
|
4771
|
-
content: string;
|
|
4772
4722
|
type: "file" | "patch";
|
|
4723
|
+
content: string;
|
|
4773
4724
|
}[];
|
|
4774
4725
|
changesAlreadyApplied: {
|
|
4775
4726
|
path: string;
|
|
4776
|
-
content: string;
|
|
4777
4727
|
type: "file" | "patch";
|
|
4728
|
+
content: string;
|
|
4778
4729
|
}[];
|
|
4779
4730
|
addedFileVersions: {
|
|
4780
4731
|
path: string;
|
|
@@ -4816,7 +4767,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4816
4767
|
homedir: string;
|
|
4817
4768
|
cpus: number;
|
|
4818
4769
|
};
|
|
4819
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4820
4770
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4821
4771
|
fileVersions?: {
|
|
4822
4772
|
path: string;
|
|
@@ -4839,8 +4789,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4839
4789
|
type: "ephemeral";
|
|
4840
4790
|
} | undefined;
|
|
4841
4791
|
} | {
|
|
4842
|
-
content: string;
|
|
4843
4792
|
type: "tool_result";
|
|
4793
|
+
content: string;
|
|
4844
4794
|
tool_use_id: string;
|
|
4845
4795
|
cache_control?: {
|
|
4846
4796
|
type: "ephemeral";
|
|
@@ -4867,8 +4817,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4867
4817
|
}[];
|
|
4868
4818
|
toolCalls: {
|
|
4869
4819
|
name: string;
|
|
4870
|
-
parameters: Record<string, string>;
|
|
4871
4820
|
id: string;
|
|
4821
|
+
parameters: Record<string, string>;
|
|
4872
4822
|
}[];
|
|
4873
4823
|
} | {
|
|
4874
4824
|
type: "response-chunk";
|
|
@@ -4889,13 +4839,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4889
4839
|
response: string;
|
|
4890
4840
|
changes: {
|
|
4891
4841
|
path: string;
|
|
4892
|
-
content: string;
|
|
4893
4842
|
type: "file" | "patch";
|
|
4843
|
+
content: string;
|
|
4894
4844
|
}[];
|
|
4895
4845
|
changesAlreadyApplied: {
|
|
4896
4846
|
path: string;
|
|
4897
|
-
content: string;
|
|
4898
4847
|
type: "file" | "patch";
|
|
4848
|
+
content: string;
|
|
4899
4849
|
}[];
|
|
4900
4850
|
addedFileVersions: {
|
|
4901
4851
|
path: string;
|