codebuff 1.0.272 → 1.0.274
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-handlers/api-key.d.ts +1 -1
- package/dist/cli-handlers/api-key.js +1 -1
- package/dist/cli-handlers/api-key.js.map +1 -1
- package/dist/cli.d.ts +6 -1
- package/dist/cli.js +60 -7
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +1 -0
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/code-map/languages.d.ts +1 -2
- package/dist/code-map/languages.d.ts.map +1 -1
- package/dist/code-map/languages.js +2 -1
- package/dist/code-map/languages.js.map +1 -1
- package/dist/code-map/parse.d.ts +14 -4
- package/dist/code-map/parse.d.ts.map +1 -1
- package/dist/code-map/parse.js +91 -38
- package/dist/code-map/parse.js.map +1 -1
- package/dist/code-map/tree-sitter-queries/tree-sitter-c-tags.scm +6 -1
- package/dist/code-map/tree-sitter-queries/tree-sitter-c_sharp-tags.scm +11 -1
- package/dist/code-map/tree-sitter-queries/tree-sitter-cpp-tags.scm +13 -1
- package/dist/code-map/tree-sitter-queries/tree-sitter-javascript-tags.scm +1 -0
- package/dist/code-map/tree-sitter-queries/tree-sitter-php-tags.scm +5 -8
- package/dist/code-map/tree-sitter-queries/tree-sitter-python-tags.scm +5 -2
- package/dist/code-map/tree-sitter-queries/tree-sitter-typescript-tags.scm +7 -0
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/__tests__/project-file-tree.test.d.ts +1 -0
- package/dist/common/__tests__/project-file-tree.test.js +251 -0
- package/dist/common/__tests__/project-file-tree.test.js.map +1 -0
- package/dist/common/actions.d.ts +58 -32
- package/dist/common/constants.d.ts +1 -1
- package/dist/common/constants.js +18 -7
- package/dist/common/constants.js.map +1 -1
- package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +119 -0
- package/dist/common/project-file-tree.js +12 -0
- package/dist/common/project-file-tree.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +13 -8
- package/dist/common/types/message.d.ts +6 -6
- package/dist/common/util/__tests__/saxy.test.js +140 -21
- package/dist/common/util/__tests__/saxy.test.js.map +1 -1
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/file.d.ts +3 -0
- package/dist/common/util/file.js +3 -0
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/util/process-stream.d.ts +7 -0
- package/dist/common/util/process-stream.js +162 -0
- package/dist/common/util/process-stream.js.map +1 -0
- package/dist/common/util/saxy.d.ts +2 -1
- package/dist/common/util/saxy.js +51 -18
- package/dist/common/util/saxy.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +118 -68
- package/dist/display.d.ts +2 -0
- package/dist/display.js +8 -0
- package/dist/display.js.map +1 -1
- package/dist/index.js +7 -35
- package/dist/index.js.map +1 -1
- package/dist/menu.js +35 -106
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +2 -0
- package/dist/project-files.js +3 -2
- package/dist/project-files.js.map +1 -1
- package/dist/utils/__tests__/__snapshots__/background-process-manager.test.js.snap +137 -0
- package/dist/utils/__tests__/file-paths.test.d.ts +1 -0
- package/dist/utils/__tests__/file-paths.test.js +37 -0
- package/dist/utils/__tests__/file-paths.test.js.map +1 -0
- package/dist/utils/__tests__/path.test.d.ts +1 -0
- package/dist/utils/__tests__/path.test.js +37 -0
- package/dist/utils/__tests__/path.test.js.map +1 -0
- package/dist/utils/__tests__/tool-renderers.test.js +27 -1
- package/dist/utils/__tests__/tool-renderers.test.js.map +1 -1
- package/dist/utils/__tests__/xml-stream-parser.test.js +26 -0
- package/dist/utils/__tests__/xml-stream-parser.test.js.map +1 -1
- package/dist/utils/detect-shell.js +1 -1
- package/dist/utils/detect-shell.js.map +1 -1
- package/dist/utils/file-paths.d.ts +9 -0
- package/dist/utils/file-paths.js +24 -0
- package/dist/utils/file-paths.js.map +1 -0
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils/logger.js +3 -6
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/path.d.ts +9 -0
- package/dist/utils/path.js +27 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/spinner.d.ts +1 -0
- package/dist/utils/spinner.js +8 -1
- package/dist/utils/spinner.js.map +1 -1
- package/dist/utils/system-info.js +2 -2
- package/dist/utils/system-info.js.map +1 -1
- package/dist/utils/terminal.d.ts +2 -2
- package/dist/utils/terminal.js +46 -34
- package/dist/utils/terminal.js.map +1 -1
- package/dist/utils/tool-renderers.js +22 -5
- package/dist/utils/tool-renderers.js.map +1 -1
- package/dist/utils/xml-stream-parser.js.map +1 -1
- package/dist/workers/project-context.js +4 -1
- package/dist/workers/project-context.js.map +1 -1
- package/package.json +3 -1
|
@@ -6,12 +6,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
6
6
|
clientSessionId: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
type: "identify";
|
|
9
|
-
clientSessionId: string;
|
|
10
9
|
txid: number;
|
|
10
|
+
clientSessionId: string;
|
|
11
11
|
}, {
|
|
12
12
|
type: "identify";
|
|
13
|
-
clientSessionId: string;
|
|
14
13
|
txid: number;
|
|
14
|
+
clientSessionId: string;
|
|
15
15
|
}>;
|
|
16
16
|
readonly subscribe: z.ZodObject<{
|
|
17
17
|
type: z.ZodLiteral<"subscribe">;
|
|
@@ -65,6 +65,7 @@ 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">>>>;
|
|
68
69
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
69
70
|
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
70
71
|
gitChanges: z.ZodObject<{
|
|
@@ -138,6 +139,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
138
139
|
homedir: string;
|
|
139
140
|
cpus: number;
|
|
140
141
|
};
|
|
142
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
141
143
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
142
144
|
fileVersions?: {
|
|
143
145
|
path: string;
|
|
@@ -164,6 +166,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
164
166
|
homedir: string;
|
|
165
167
|
cpus: number;
|
|
166
168
|
};
|
|
169
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
167
170
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
168
171
|
fileVersions?: {
|
|
169
172
|
path: string;
|
|
@@ -383,6 +386,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
383
386
|
homedir: string;
|
|
384
387
|
cpus: number;
|
|
385
388
|
};
|
|
389
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
386
390
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
387
391
|
fileVersions?: {
|
|
388
392
|
path: string;
|
|
@@ -448,6 +452,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
448
452
|
homedir: string;
|
|
449
453
|
cpus: number;
|
|
450
454
|
};
|
|
455
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
451
456
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
452
457
|
fileVersions?: {
|
|
453
458
|
path: string;
|
|
@@ -534,6 +539,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
534
539
|
homedir: string;
|
|
535
540
|
cpus: number;
|
|
536
541
|
};
|
|
542
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
537
543
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
538
544
|
fileVersions?: {
|
|
539
545
|
path: string;
|
|
@@ -613,6 +619,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
613
619
|
homedir: string;
|
|
614
620
|
cpus: number;
|
|
615
621
|
};
|
|
622
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
616
623
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
617
624
|
fileVersions?: {
|
|
618
625
|
path: string;
|
|
@@ -686,6 +693,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
686
693
|
currentWorkingDirectory: z.ZodString;
|
|
687
694
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
688
695
|
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">>>>;
|
|
689
697
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
690
698
|
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
691
699
|
gitChanges: z.ZodObject<{
|
|
@@ -759,6 +767,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
759
767
|
homedir: string;
|
|
760
768
|
cpus: number;
|
|
761
769
|
};
|
|
770
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
762
771
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
763
772
|
fileVersions?: {
|
|
764
773
|
path: string;
|
|
@@ -785,6 +794,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
785
794
|
homedir: string;
|
|
786
795
|
cpus: number;
|
|
787
796
|
};
|
|
797
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
788
798
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
789
799
|
fileVersions?: {
|
|
790
800
|
path: string;
|
|
@@ -793,6 +803,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
793
803
|
}>;
|
|
794
804
|
}, "strip", z.ZodTypeAny, {
|
|
795
805
|
type: "init";
|
|
806
|
+
fingerprintId: string;
|
|
796
807
|
fileContext: {
|
|
797
808
|
currentWorkingDirectory: string;
|
|
798
809
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -814,16 +825,17 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
814
825
|
homedir: string;
|
|
815
826
|
cpus: number;
|
|
816
827
|
};
|
|
828
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
817
829
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
818
830
|
fileVersions?: {
|
|
819
831
|
path: string;
|
|
820
832
|
content: string;
|
|
821
833
|
}[][] | undefined;
|
|
822
834
|
};
|
|
823
|
-
fingerprintId: string;
|
|
824
835
|
authToken?: string | undefined;
|
|
825
836
|
}, {
|
|
826
837
|
type: "init";
|
|
838
|
+
fingerprintId: string;
|
|
827
839
|
fileContext: {
|
|
828
840
|
currentWorkingDirectory: string;
|
|
829
841
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -845,13 +857,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
845
857
|
homedir: string;
|
|
846
858
|
cpus: number;
|
|
847
859
|
};
|
|
860
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
848
861
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
849
862
|
fileVersions?: {
|
|
850
863
|
path: string;
|
|
851
864
|
content: string;
|
|
852
865
|
}[][] | undefined;
|
|
853
866
|
};
|
|
854
|
-
fingerprintId: string;
|
|
855
867
|
authToken?: string | undefined;
|
|
856
868
|
}>, z.ZodObject<{
|
|
857
869
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -899,6 +911,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
899
911
|
homedir: string;
|
|
900
912
|
cpus: number;
|
|
901
913
|
};
|
|
914
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
902
915
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
903
916
|
fileVersions?: {
|
|
904
917
|
path: string;
|
|
@@ -957,6 +970,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
957
970
|
requestId?: string | undefined;
|
|
958
971
|
} | {
|
|
959
972
|
type: "init";
|
|
973
|
+
fingerprintId: string;
|
|
960
974
|
fileContext: {
|
|
961
975
|
currentWorkingDirectory: string;
|
|
962
976
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -978,13 +992,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
978
992
|
homedir: string;
|
|
979
993
|
cpus: number;
|
|
980
994
|
};
|
|
995
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
981
996
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
982
997
|
fileVersions?: {
|
|
983
998
|
path: string;
|
|
984
999
|
content: string;
|
|
985
1000
|
}[][] | undefined;
|
|
986
1001
|
};
|
|
987
|
-
fingerprintId: string;
|
|
988
1002
|
authToken?: string | undefined;
|
|
989
1003
|
} | {
|
|
990
1004
|
type: "generate-commit-message";
|
|
@@ -1022,6 +1036,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1022
1036
|
homedir: string;
|
|
1023
1037
|
cpus: number;
|
|
1024
1038
|
};
|
|
1039
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1025
1040
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1026
1041
|
fileVersions?: {
|
|
1027
1042
|
path: string;
|
|
@@ -1081,6 +1096,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1081
1096
|
requestId?: string | undefined;
|
|
1082
1097
|
} | {
|
|
1083
1098
|
type: "init";
|
|
1099
|
+
fingerprintId: string;
|
|
1084
1100
|
fileContext: {
|
|
1085
1101
|
currentWorkingDirectory: string;
|
|
1086
1102
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1102,13 +1118,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1102
1118
|
homedir: string;
|
|
1103
1119
|
cpus: number;
|
|
1104
1120
|
};
|
|
1121
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1105
1122
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1106
1123
|
fileVersions?: {
|
|
1107
1124
|
path: string;
|
|
1108
1125
|
content: string;
|
|
1109
1126
|
}[][] | undefined;
|
|
1110
1127
|
};
|
|
1111
|
-
fingerprintId: string;
|
|
1112
1128
|
authToken?: string | undefined;
|
|
1113
1129
|
} | {
|
|
1114
1130
|
type: "generate-commit-message";
|
|
@@ -1125,12 +1141,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1125
1141
|
clientSessionId: z.ZodString;
|
|
1126
1142
|
}, "strip", z.ZodTypeAny, {
|
|
1127
1143
|
type: "identify";
|
|
1128
|
-
clientSessionId: string;
|
|
1129
1144
|
txid: number;
|
|
1145
|
+
clientSessionId: string;
|
|
1130
1146
|
}, {
|
|
1131
1147
|
type: "identify";
|
|
1132
|
-
clientSessionId: string;
|
|
1133
1148
|
txid: number;
|
|
1149
|
+
clientSessionId: string;
|
|
1134
1150
|
}>, z.ZodObject<{
|
|
1135
1151
|
type: z.ZodLiteral<"subscribe">;
|
|
1136
1152
|
txid: z.ZodNumber;
|
|
@@ -1180,6 +1196,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1180
1196
|
currentWorkingDirectory: z.ZodString;
|
|
1181
1197
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
1182
1198
|
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">>>>;
|
|
1183
1200
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1184
1201
|
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1185
1202
|
gitChanges: z.ZodObject<{
|
|
@@ -1253,6 +1270,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1253
1270
|
homedir: string;
|
|
1254
1271
|
cpus: number;
|
|
1255
1272
|
};
|
|
1273
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1256
1274
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1257
1275
|
fileVersions?: {
|
|
1258
1276
|
path: string;
|
|
@@ -1279,6 +1297,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1279
1297
|
homedir: string;
|
|
1280
1298
|
cpus: number;
|
|
1281
1299
|
};
|
|
1300
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1282
1301
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1283
1302
|
fileVersions?: {
|
|
1284
1303
|
path: string;
|
|
@@ -1498,6 +1517,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1498
1517
|
homedir: string;
|
|
1499
1518
|
cpus: number;
|
|
1500
1519
|
};
|
|
1520
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1501
1521
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1502
1522
|
fileVersions?: {
|
|
1503
1523
|
path: string;
|
|
@@ -1563,6 +1583,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1563
1583
|
homedir: string;
|
|
1564
1584
|
cpus: number;
|
|
1565
1585
|
};
|
|
1586
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1566
1587
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1567
1588
|
fileVersions?: {
|
|
1568
1589
|
path: string;
|
|
@@ -1649,6 +1670,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1649
1670
|
homedir: string;
|
|
1650
1671
|
cpus: number;
|
|
1651
1672
|
};
|
|
1673
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1652
1674
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1653
1675
|
fileVersions?: {
|
|
1654
1676
|
path: string;
|
|
@@ -1728,6 +1750,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1728
1750
|
homedir: string;
|
|
1729
1751
|
cpus: number;
|
|
1730
1752
|
};
|
|
1753
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1731
1754
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1732
1755
|
fileVersions?: {
|
|
1733
1756
|
path: string;
|
|
@@ -1801,6 +1824,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1801
1824
|
currentWorkingDirectory: z.ZodString;
|
|
1802
1825
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
1803
1826
|
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">>>>;
|
|
1804
1828
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1805
1829
|
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1806
1830
|
gitChanges: z.ZodObject<{
|
|
@@ -1874,6 +1898,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1874
1898
|
homedir: string;
|
|
1875
1899
|
cpus: number;
|
|
1876
1900
|
};
|
|
1901
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1877
1902
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1878
1903
|
fileVersions?: {
|
|
1879
1904
|
path: string;
|
|
@@ -1900,6 +1925,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1900
1925
|
homedir: string;
|
|
1901
1926
|
cpus: number;
|
|
1902
1927
|
};
|
|
1928
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1903
1929
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1904
1930
|
fileVersions?: {
|
|
1905
1931
|
path: string;
|
|
@@ -1908,6 +1934,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1908
1934
|
}>;
|
|
1909
1935
|
}, "strip", z.ZodTypeAny, {
|
|
1910
1936
|
type: "init";
|
|
1937
|
+
fingerprintId: string;
|
|
1911
1938
|
fileContext: {
|
|
1912
1939
|
currentWorkingDirectory: string;
|
|
1913
1940
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1929,16 +1956,17 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1929
1956
|
homedir: string;
|
|
1930
1957
|
cpus: number;
|
|
1931
1958
|
};
|
|
1959
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1932
1960
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1933
1961
|
fileVersions?: {
|
|
1934
1962
|
path: string;
|
|
1935
1963
|
content: string;
|
|
1936
1964
|
}[][] | undefined;
|
|
1937
1965
|
};
|
|
1938
|
-
fingerprintId: string;
|
|
1939
1966
|
authToken?: string | undefined;
|
|
1940
1967
|
}, {
|
|
1941
1968
|
type: "init";
|
|
1969
|
+
fingerprintId: string;
|
|
1942
1970
|
fileContext: {
|
|
1943
1971
|
currentWorkingDirectory: string;
|
|
1944
1972
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1960,13 +1988,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1960
1988
|
homedir: string;
|
|
1961
1989
|
cpus: number;
|
|
1962
1990
|
};
|
|
1991
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1963
1992
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1964
1993
|
fileVersions?: {
|
|
1965
1994
|
path: string;
|
|
1966
1995
|
content: string;
|
|
1967
1996
|
}[][] | undefined;
|
|
1968
1997
|
};
|
|
1969
|
-
fingerprintId: string;
|
|
1970
1998
|
authToken?: string | undefined;
|
|
1971
1999
|
}>, z.ZodObject<{
|
|
1972
2000
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -2014,6 +2042,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2014
2042
|
homedir: string;
|
|
2015
2043
|
cpus: number;
|
|
2016
2044
|
};
|
|
2045
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2017
2046
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2018
2047
|
fileVersions?: {
|
|
2019
2048
|
path: string;
|
|
@@ -2072,6 +2101,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2072
2101
|
requestId?: string | undefined;
|
|
2073
2102
|
} | {
|
|
2074
2103
|
type: "init";
|
|
2104
|
+
fingerprintId: string;
|
|
2075
2105
|
fileContext: {
|
|
2076
2106
|
currentWorkingDirectory: string;
|
|
2077
2107
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2093,13 +2123,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2093
2123
|
homedir: string;
|
|
2094
2124
|
cpus: number;
|
|
2095
2125
|
};
|
|
2126
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2096
2127
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2097
2128
|
fileVersions?: {
|
|
2098
2129
|
path: string;
|
|
2099
2130
|
content: string;
|
|
2100
2131
|
}[][] | undefined;
|
|
2101
2132
|
};
|
|
2102
|
-
fingerprintId: string;
|
|
2103
2133
|
authToken?: string | undefined;
|
|
2104
2134
|
} | {
|
|
2105
2135
|
type: "generate-commit-message";
|
|
@@ -2137,6 +2167,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2137
2167
|
homedir: string;
|
|
2138
2168
|
cpus: number;
|
|
2139
2169
|
};
|
|
2170
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2140
2171
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2141
2172
|
fileVersions?: {
|
|
2142
2173
|
path: string;
|
|
@@ -2196,6 +2227,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2196
2227
|
requestId?: string | undefined;
|
|
2197
2228
|
} | {
|
|
2198
2229
|
type: "init";
|
|
2230
|
+
fingerprintId: string;
|
|
2199
2231
|
fileContext: {
|
|
2200
2232
|
currentWorkingDirectory: string;
|
|
2201
2233
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2217,13 +2249,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2217
2249
|
homedir: string;
|
|
2218
2250
|
cpus: number;
|
|
2219
2251
|
};
|
|
2252
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2220
2253
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2221
2254
|
fileVersions?: {
|
|
2222
2255
|
path: string;
|
|
2223
2256
|
content: string;
|
|
2224
2257
|
}[][] | undefined;
|
|
2225
2258
|
};
|
|
2226
|
-
fingerprintId: string;
|
|
2227
2259
|
authToken?: string | undefined;
|
|
2228
2260
|
} | {
|
|
2229
2261
|
type: "generate-commit-message";
|
|
@@ -2275,12 +2307,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2275
2307
|
path: z.ZodString;
|
|
2276
2308
|
content: z.ZodString;
|
|
2277
2309
|
}, "strip", z.ZodTypeAny, {
|
|
2310
|
+
type: "patch" | "file";
|
|
2278
2311
|
path: string;
|
|
2279
|
-
type: "file" | "patch";
|
|
2280
2312
|
content: string;
|
|
2281
2313
|
}, {
|
|
2314
|
+
type: "patch" | "file";
|
|
2282
2315
|
path: string;
|
|
2283
|
-
type: "file" | "patch";
|
|
2284
2316
|
content: string;
|
|
2285
2317
|
}>, "many">;
|
|
2286
2318
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2288,12 +2320,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2288
2320
|
path: z.ZodString;
|
|
2289
2321
|
content: z.ZodString;
|
|
2290
2322
|
}, "strip", z.ZodTypeAny, {
|
|
2323
|
+
type: "patch" | "file";
|
|
2291
2324
|
path: string;
|
|
2292
|
-
type: "file" | "patch";
|
|
2293
2325
|
content: string;
|
|
2294
2326
|
}, {
|
|
2327
|
+
type: "patch" | "file";
|
|
2295
2328
|
path: string;
|
|
2296
|
-
type: "file" | "patch";
|
|
2297
2329
|
content: string;
|
|
2298
2330
|
}>, "many">;
|
|
2299
2331
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2318,13 +2350,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2318
2350
|
userInputId: string;
|
|
2319
2351
|
response: string;
|
|
2320
2352
|
changes: {
|
|
2353
|
+
type: "patch" | "file";
|
|
2321
2354
|
path: string;
|
|
2322
|
-
type: "file" | "patch";
|
|
2323
2355
|
content: string;
|
|
2324
2356
|
}[];
|
|
2325
2357
|
changesAlreadyApplied: {
|
|
2358
|
+
type: "patch" | "file";
|
|
2326
2359
|
path: string;
|
|
2327
|
-
type: "file" | "patch";
|
|
2328
2360
|
content: string;
|
|
2329
2361
|
}[];
|
|
2330
2362
|
addedFileVersions: {
|
|
@@ -2342,13 +2374,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2342
2374
|
userInputId: string;
|
|
2343
2375
|
response: string;
|
|
2344
2376
|
changes: {
|
|
2377
|
+
type: "patch" | "file";
|
|
2345
2378
|
path: string;
|
|
2346
|
-
type: "file" | "patch";
|
|
2347
2379
|
content: string;
|
|
2348
2380
|
}[];
|
|
2349
2381
|
changesAlreadyApplied: {
|
|
2382
|
+
type: "patch" | "file";
|
|
2350
2383
|
path: string;
|
|
2351
|
-
type: "file" | "patch";
|
|
2352
2384
|
content: string;
|
|
2353
2385
|
}[];
|
|
2354
2386
|
addedFileVersions: {
|
|
@@ -2370,6 +2402,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2370
2402
|
currentWorkingDirectory: z.ZodString;
|
|
2371
2403
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
2372
2404
|
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">>>>;
|
|
2373
2406
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2374
2407
|
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2375
2408
|
gitChanges: z.ZodObject<{
|
|
@@ -2443,6 +2476,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2443
2476
|
homedir: string;
|
|
2444
2477
|
cpus: number;
|
|
2445
2478
|
};
|
|
2479
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2446
2480
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2447
2481
|
fileVersions?: {
|
|
2448
2482
|
path: string;
|
|
@@ -2469,6 +2503,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2469
2503
|
homedir: string;
|
|
2470
2504
|
cpus: number;
|
|
2471
2505
|
};
|
|
2506
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2472
2507
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2473
2508
|
fileVersions?: {
|
|
2474
2509
|
path: string;
|
|
@@ -2688,6 +2723,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2688
2723
|
homedir: string;
|
|
2689
2724
|
cpus: number;
|
|
2690
2725
|
};
|
|
2726
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2691
2727
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2692
2728
|
fileVersions?: {
|
|
2693
2729
|
path: string;
|
|
@@ -2753,6 +2789,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2753
2789
|
homedir: string;
|
|
2754
2790
|
cpus: number;
|
|
2755
2791
|
};
|
|
2792
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2756
2793
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2757
2794
|
fileVersions?: {
|
|
2758
2795
|
path: string;
|
|
@@ -2848,6 +2885,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2848
2885
|
homedir: string;
|
|
2849
2886
|
cpus: number;
|
|
2850
2887
|
};
|
|
2888
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2851
2889
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2852
2890
|
fileVersions?: {
|
|
2853
2891
|
path: string;
|
|
@@ -2927,6 +2965,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2927
2965
|
homedir: string;
|
|
2928
2966
|
cpus: number;
|
|
2929
2967
|
};
|
|
2968
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2930
2969
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2931
2970
|
fileVersions?: {
|
|
2932
2971
|
path: string;
|
|
@@ -3014,12 +3053,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3014
3053
|
path: z.ZodString;
|
|
3015
3054
|
content: z.ZodString;
|
|
3016
3055
|
}, "strip", z.ZodTypeAny, {
|
|
3056
|
+
type: "patch" | "file";
|
|
3017
3057
|
path: string;
|
|
3018
|
-
type: "file" | "patch";
|
|
3019
3058
|
content: string;
|
|
3020
3059
|
}, {
|
|
3060
|
+
type: "patch" | "file";
|
|
3021
3061
|
path: string;
|
|
3022
|
-
type: "file" | "patch";
|
|
3023
3062
|
content: string;
|
|
3024
3063
|
}>, "many">;
|
|
3025
3064
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3027,12 +3066,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3027
3066
|
path: z.ZodString;
|
|
3028
3067
|
content: z.ZodString;
|
|
3029
3068
|
}, "strip", z.ZodTypeAny, {
|
|
3069
|
+
type: "patch" | "file";
|
|
3030
3070
|
path: string;
|
|
3031
|
-
type: "file" | "patch";
|
|
3032
3071
|
content: string;
|
|
3033
3072
|
}, {
|
|
3073
|
+
type: "patch" | "file";
|
|
3034
3074
|
path: string;
|
|
3035
|
-
type: "file" | "patch";
|
|
3036
3075
|
content: string;
|
|
3037
3076
|
}>, "many">;
|
|
3038
3077
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3056,13 +3095,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3056
3095
|
userInputId: string;
|
|
3057
3096
|
response: string;
|
|
3058
3097
|
changes: {
|
|
3098
|
+
type: "patch" | "file";
|
|
3059
3099
|
path: string;
|
|
3060
|
-
type: "file" | "patch";
|
|
3061
3100
|
content: string;
|
|
3062
3101
|
}[];
|
|
3063
3102
|
changesAlreadyApplied: {
|
|
3103
|
+
type: "patch" | "file";
|
|
3064
3104
|
path: string;
|
|
3065
|
-
type: "file" | "patch";
|
|
3066
3105
|
content: string;
|
|
3067
3106
|
}[];
|
|
3068
3107
|
addedFileVersions: {
|
|
@@ -3080,13 +3119,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3080
3119
|
userInputId: string;
|
|
3081
3120
|
response: string;
|
|
3082
3121
|
changes: {
|
|
3122
|
+
type: "patch" | "file";
|
|
3083
3123
|
path: string;
|
|
3084
|
-
type: "file" | "patch";
|
|
3085
3124
|
content: string;
|
|
3086
3125
|
}[];
|
|
3087
3126
|
changesAlreadyApplied: {
|
|
3127
|
+
type: "patch" | "file";
|
|
3088
3128
|
path: string;
|
|
3089
|
-
type: "file" | "patch";
|
|
3090
3129
|
content: string;
|
|
3091
3130
|
}[];
|
|
3092
3131
|
addedFileVersions: {
|
|
@@ -3180,13 +3219,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3180
3219
|
error: z.ZodOptional<z.ZodString>;
|
|
3181
3220
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3182
3221
|
}, "strip", z.ZodTypeAny, {
|
|
3183
|
-
message: string;
|
|
3184
3222
|
type: "action-error";
|
|
3223
|
+
message: string;
|
|
3185
3224
|
remainingBalance?: number | undefined;
|
|
3186
3225
|
error?: string | undefined;
|
|
3187
3226
|
}, {
|
|
3188
|
-
message: string;
|
|
3189
3227
|
type: "action-error";
|
|
3228
|
+
message: string;
|
|
3190
3229
|
remainingBalance?: number | undefined;
|
|
3191
3230
|
error?: string | undefined;
|
|
3192
3231
|
}>, z.ZodObject<{
|
|
@@ -3226,13 +3265,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3226
3265
|
userInputId: string;
|
|
3227
3266
|
response: string;
|
|
3228
3267
|
changes: {
|
|
3268
|
+
type: "patch" | "file";
|
|
3229
3269
|
path: string;
|
|
3230
|
-
type: "file" | "patch";
|
|
3231
3270
|
content: string;
|
|
3232
3271
|
}[];
|
|
3233
3272
|
changesAlreadyApplied: {
|
|
3273
|
+
type: "patch" | "file";
|
|
3234
3274
|
path: string;
|
|
3235
|
-
type: "file" | "patch";
|
|
3236
3275
|
content: string;
|
|
3237
3276
|
}[];
|
|
3238
3277
|
addedFileVersions: {
|
|
@@ -3275,6 +3314,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3275
3314
|
homedir: string;
|
|
3276
3315
|
cpus: number;
|
|
3277
3316
|
};
|
|
3317
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3278
3318
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3279
3319
|
fileVersions?: {
|
|
3280
3320
|
path: string;
|
|
@@ -3346,13 +3386,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3346
3386
|
userInputId: string;
|
|
3347
3387
|
response: string;
|
|
3348
3388
|
changes: {
|
|
3389
|
+
type: "patch" | "file";
|
|
3349
3390
|
path: string;
|
|
3350
|
-
type: "file" | "patch";
|
|
3351
3391
|
content: string;
|
|
3352
3392
|
}[];
|
|
3353
3393
|
changesAlreadyApplied: {
|
|
3394
|
+
type: "patch" | "file";
|
|
3354
3395
|
path: string;
|
|
3355
|
-
type: "file" | "patch";
|
|
3356
3396
|
content: string;
|
|
3357
3397
|
}[];
|
|
3358
3398
|
addedFileVersions: {
|
|
@@ -3369,8 +3409,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3369
3409
|
isUpToDate: boolean;
|
|
3370
3410
|
latestVersion: string;
|
|
3371
3411
|
} | {
|
|
3372
|
-
message: string;
|
|
3373
3412
|
type: "action-error";
|
|
3413
|
+
message: string;
|
|
3374
3414
|
remainingBalance?: number | undefined;
|
|
3375
3415
|
error?: string | undefined;
|
|
3376
3416
|
} | {
|
|
@@ -3400,13 +3440,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3400
3440
|
userInputId: string;
|
|
3401
3441
|
response: string;
|
|
3402
3442
|
changes: {
|
|
3443
|
+
type: "patch" | "file";
|
|
3403
3444
|
path: string;
|
|
3404
|
-
type: "file" | "patch";
|
|
3405
3445
|
content: string;
|
|
3406
3446
|
}[];
|
|
3407
3447
|
changesAlreadyApplied: {
|
|
3448
|
+
type: "patch" | "file";
|
|
3408
3449
|
path: string;
|
|
3409
|
-
type: "file" | "patch";
|
|
3410
3450
|
content: string;
|
|
3411
3451
|
}[];
|
|
3412
3452
|
addedFileVersions: {
|
|
@@ -3449,6 +3489,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3449
3489
|
homedir: string;
|
|
3450
3490
|
cpus: number;
|
|
3451
3491
|
};
|
|
3492
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3452
3493
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3453
3494
|
fileVersions?: {
|
|
3454
3495
|
path: string;
|
|
@@ -3520,13 +3561,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3520
3561
|
userInputId: string;
|
|
3521
3562
|
response: string;
|
|
3522
3563
|
changes: {
|
|
3564
|
+
type: "patch" | "file";
|
|
3523
3565
|
path: string;
|
|
3524
|
-
type: "file" | "patch";
|
|
3525
3566
|
content: string;
|
|
3526
3567
|
}[];
|
|
3527
3568
|
changesAlreadyApplied: {
|
|
3569
|
+
type: "patch" | "file";
|
|
3528
3570
|
path: string;
|
|
3529
|
-
type: "file" | "patch";
|
|
3530
3571
|
content: string;
|
|
3531
3572
|
}[];
|
|
3532
3573
|
addedFileVersions: {
|
|
@@ -3543,8 +3584,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3543
3584
|
isUpToDate: boolean;
|
|
3544
3585
|
latestVersion: string;
|
|
3545
3586
|
} | {
|
|
3546
|
-
message: string;
|
|
3547
3587
|
type: "action-error";
|
|
3588
|
+
message: string;
|
|
3548
3589
|
remainingBalance?: number | undefined;
|
|
3549
3590
|
error?: string | undefined;
|
|
3550
3591
|
} | {
|
|
@@ -3593,12 +3634,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3593
3634
|
path: z.ZodString;
|
|
3594
3635
|
content: z.ZodString;
|
|
3595
3636
|
}, "strip", z.ZodTypeAny, {
|
|
3637
|
+
type: "patch" | "file";
|
|
3596
3638
|
path: string;
|
|
3597
|
-
type: "file" | "patch";
|
|
3598
3639
|
content: string;
|
|
3599
3640
|
}, {
|
|
3641
|
+
type: "patch" | "file";
|
|
3600
3642
|
path: string;
|
|
3601
|
-
type: "file" | "patch";
|
|
3602
3643
|
content: string;
|
|
3603
3644
|
}>, "many">;
|
|
3604
3645
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3606,12 +3647,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3606
3647
|
path: z.ZodString;
|
|
3607
3648
|
content: z.ZodString;
|
|
3608
3649
|
}, "strip", z.ZodTypeAny, {
|
|
3650
|
+
type: "patch" | "file";
|
|
3609
3651
|
path: string;
|
|
3610
|
-
type: "file" | "patch";
|
|
3611
3652
|
content: string;
|
|
3612
3653
|
}, {
|
|
3654
|
+
type: "patch" | "file";
|
|
3613
3655
|
path: string;
|
|
3614
|
-
type: "file" | "patch";
|
|
3615
3656
|
content: string;
|
|
3616
3657
|
}>, "many">;
|
|
3617
3658
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3636,13 +3677,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3636
3677
|
userInputId: string;
|
|
3637
3678
|
response: string;
|
|
3638
3679
|
changes: {
|
|
3680
|
+
type: "patch" | "file";
|
|
3639
3681
|
path: string;
|
|
3640
|
-
type: "file" | "patch";
|
|
3641
3682
|
content: string;
|
|
3642
3683
|
}[];
|
|
3643
3684
|
changesAlreadyApplied: {
|
|
3685
|
+
type: "patch" | "file";
|
|
3644
3686
|
path: string;
|
|
3645
|
-
type: "file" | "patch";
|
|
3646
3687
|
content: string;
|
|
3647
3688
|
}[];
|
|
3648
3689
|
addedFileVersions: {
|
|
@@ -3660,13 +3701,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3660
3701
|
userInputId: string;
|
|
3661
3702
|
response: string;
|
|
3662
3703
|
changes: {
|
|
3704
|
+
type: "patch" | "file";
|
|
3663
3705
|
path: string;
|
|
3664
|
-
type: "file" | "patch";
|
|
3665
3706
|
content: string;
|
|
3666
3707
|
}[];
|
|
3667
3708
|
changesAlreadyApplied: {
|
|
3709
|
+
type: "patch" | "file";
|
|
3668
3710
|
path: string;
|
|
3669
|
-
type: "file" | "patch";
|
|
3670
3711
|
content: string;
|
|
3671
3712
|
}[];
|
|
3672
3713
|
addedFileVersions: {
|
|
@@ -3688,6 +3729,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3688
3729
|
currentWorkingDirectory: z.ZodString;
|
|
3689
3730
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
3690
3731
|
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">>>>;
|
|
3691
3733
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3692
3734
|
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3693
3735
|
gitChanges: z.ZodObject<{
|
|
@@ -3761,6 +3803,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3761
3803
|
homedir: string;
|
|
3762
3804
|
cpus: number;
|
|
3763
3805
|
};
|
|
3806
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3764
3807
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3765
3808
|
fileVersions?: {
|
|
3766
3809
|
path: string;
|
|
@@ -3787,6 +3830,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3787
3830
|
homedir: string;
|
|
3788
3831
|
cpus: number;
|
|
3789
3832
|
};
|
|
3833
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3790
3834
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3791
3835
|
fileVersions?: {
|
|
3792
3836
|
path: string;
|
|
@@ -4006,6 +4050,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4006
4050
|
homedir: string;
|
|
4007
4051
|
cpus: number;
|
|
4008
4052
|
};
|
|
4053
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4009
4054
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4010
4055
|
fileVersions?: {
|
|
4011
4056
|
path: string;
|
|
@@ -4071,6 +4116,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4071
4116
|
homedir: string;
|
|
4072
4117
|
cpus: number;
|
|
4073
4118
|
};
|
|
4119
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4074
4120
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4075
4121
|
fileVersions?: {
|
|
4076
4122
|
path: string;
|
|
@@ -4166,6 +4212,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4166
4212
|
homedir: string;
|
|
4167
4213
|
cpus: number;
|
|
4168
4214
|
};
|
|
4215
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4169
4216
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4170
4217
|
fileVersions?: {
|
|
4171
4218
|
path: string;
|
|
@@ -4245,6 +4292,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4245
4292
|
homedir: string;
|
|
4246
4293
|
cpus: number;
|
|
4247
4294
|
};
|
|
4295
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4248
4296
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4249
4297
|
fileVersions?: {
|
|
4250
4298
|
path: string;
|
|
@@ -4332,12 +4380,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4332
4380
|
path: z.ZodString;
|
|
4333
4381
|
content: z.ZodString;
|
|
4334
4382
|
}, "strip", z.ZodTypeAny, {
|
|
4383
|
+
type: "patch" | "file";
|
|
4335
4384
|
path: string;
|
|
4336
|
-
type: "file" | "patch";
|
|
4337
4385
|
content: string;
|
|
4338
4386
|
}, {
|
|
4387
|
+
type: "patch" | "file";
|
|
4339
4388
|
path: string;
|
|
4340
|
-
type: "file" | "patch";
|
|
4341
4389
|
content: string;
|
|
4342
4390
|
}>, "many">;
|
|
4343
4391
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -4345,12 +4393,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4345
4393
|
path: z.ZodString;
|
|
4346
4394
|
content: z.ZodString;
|
|
4347
4395
|
}, "strip", z.ZodTypeAny, {
|
|
4396
|
+
type: "patch" | "file";
|
|
4348
4397
|
path: string;
|
|
4349
|
-
type: "file" | "patch";
|
|
4350
4398
|
content: string;
|
|
4351
4399
|
}, {
|
|
4400
|
+
type: "patch" | "file";
|
|
4352
4401
|
path: string;
|
|
4353
|
-
type: "file" | "patch";
|
|
4354
4402
|
content: string;
|
|
4355
4403
|
}>, "many">;
|
|
4356
4404
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -4374,13 +4422,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4374
4422
|
userInputId: string;
|
|
4375
4423
|
response: string;
|
|
4376
4424
|
changes: {
|
|
4425
|
+
type: "patch" | "file";
|
|
4377
4426
|
path: string;
|
|
4378
|
-
type: "file" | "patch";
|
|
4379
4427
|
content: string;
|
|
4380
4428
|
}[];
|
|
4381
4429
|
changesAlreadyApplied: {
|
|
4430
|
+
type: "patch" | "file";
|
|
4382
4431
|
path: string;
|
|
4383
|
-
type: "file" | "patch";
|
|
4384
4432
|
content: string;
|
|
4385
4433
|
}[];
|
|
4386
4434
|
addedFileVersions: {
|
|
@@ -4398,13 +4446,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4398
4446
|
userInputId: string;
|
|
4399
4447
|
response: string;
|
|
4400
4448
|
changes: {
|
|
4449
|
+
type: "patch" | "file";
|
|
4401
4450
|
path: string;
|
|
4402
|
-
type: "file" | "patch";
|
|
4403
4451
|
content: string;
|
|
4404
4452
|
}[];
|
|
4405
4453
|
changesAlreadyApplied: {
|
|
4454
|
+
type: "patch" | "file";
|
|
4406
4455
|
path: string;
|
|
4407
|
-
type: "file" | "patch";
|
|
4408
4456
|
content: string;
|
|
4409
4457
|
}[];
|
|
4410
4458
|
addedFileVersions: {
|
|
@@ -4498,13 +4546,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4498
4546
|
error: z.ZodOptional<z.ZodString>;
|
|
4499
4547
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
4500
4548
|
}, "strip", z.ZodTypeAny, {
|
|
4501
|
-
message: string;
|
|
4502
4549
|
type: "action-error";
|
|
4550
|
+
message: string;
|
|
4503
4551
|
remainingBalance?: number | undefined;
|
|
4504
4552
|
error?: string | undefined;
|
|
4505
4553
|
}, {
|
|
4506
|
-
message: string;
|
|
4507
4554
|
type: "action-error";
|
|
4555
|
+
message: string;
|
|
4508
4556
|
remainingBalance?: number | undefined;
|
|
4509
4557
|
error?: string | undefined;
|
|
4510
4558
|
}>, z.ZodObject<{
|
|
@@ -4544,13 +4592,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4544
4592
|
userInputId: string;
|
|
4545
4593
|
response: string;
|
|
4546
4594
|
changes: {
|
|
4595
|
+
type: "patch" | "file";
|
|
4547
4596
|
path: string;
|
|
4548
|
-
type: "file" | "patch";
|
|
4549
4597
|
content: string;
|
|
4550
4598
|
}[];
|
|
4551
4599
|
changesAlreadyApplied: {
|
|
4600
|
+
type: "patch" | "file";
|
|
4552
4601
|
path: string;
|
|
4553
|
-
type: "file" | "patch";
|
|
4554
4602
|
content: string;
|
|
4555
4603
|
}[];
|
|
4556
4604
|
addedFileVersions: {
|
|
@@ -4593,6 +4641,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4593
4641
|
homedir: string;
|
|
4594
4642
|
cpus: number;
|
|
4595
4643
|
};
|
|
4644
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4596
4645
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4597
4646
|
fileVersions?: {
|
|
4598
4647
|
path: string;
|
|
@@ -4664,13 +4713,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4664
4713
|
userInputId: string;
|
|
4665
4714
|
response: string;
|
|
4666
4715
|
changes: {
|
|
4716
|
+
type: "patch" | "file";
|
|
4667
4717
|
path: string;
|
|
4668
|
-
type: "file" | "patch";
|
|
4669
4718
|
content: string;
|
|
4670
4719
|
}[];
|
|
4671
4720
|
changesAlreadyApplied: {
|
|
4721
|
+
type: "patch" | "file";
|
|
4672
4722
|
path: string;
|
|
4673
|
-
type: "file" | "patch";
|
|
4674
4723
|
content: string;
|
|
4675
4724
|
}[];
|
|
4676
4725
|
addedFileVersions: {
|
|
@@ -4687,8 +4736,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4687
4736
|
isUpToDate: boolean;
|
|
4688
4737
|
latestVersion: string;
|
|
4689
4738
|
} | {
|
|
4690
|
-
message: string;
|
|
4691
4739
|
type: "action-error";
|
|
4740
|
+
message: string;
|
|
4692
4741
|
remainingBalance?: number | undefined;
|
|
4693
4742
|
error?: string | undefined;
|
|
4694
4743
|
} | {
|
|
@@ -4718,13 +4767,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4718
4767
|
userInputId: string;
|
|
4719
4768
|
response: string;
|
|
4720
4769
|
changes: {
|
|
4770
|
+
type: "patch" | "file";
|
|
4721
4771
|
path: string;
|
|
4722
|
-
type: "file" | "patch";
|
|
4723
4772
|
content: string;
|
|
4724
4773
|
}[];
|
|
4725
4774
|
changesAlreadyApplied: {
|
|
4775
|
+
type: "patch" | "file";
|
|
4726
4776
|
path: string;
|
|
4727
|
-
type: "file" | "patch";
|
|
4728
4777
|
content: string;
|
|
4729
4778
|
}[];
|
|
4730
4779
|
addedFileVersions: {
|
|
@@ -4767,6 +4816,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4767
4816
|
homedir: string;
|
|
4768
4817
|
cpus: number;
|
|
4769
4818
|
};
|
|
4819
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4770
4820
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4771
4821
|
fileVersions?: {
|
|
4772
4822
|
path: string;
|
|
@@ -4838,13 +4888,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4838
4888
|
userInputId: string;
|
|
4839
4889
|
response: string;
|
|
4840
4890
|
changes: {
|
|
4891
|
+
type: "patch" | "file";
|
|
4841
4892
|
path: string;
|
|
4842
|
-
type: "file" | "patch";
|
|
4843
4893
|
content: string;
|
|
4844
4894
|
}[];
|
|
4845
4895
|
changesAlreadyApplied: {
|
|
4896
|
+
type: "patch" | "file";
|
|
4846
4897
|
path: string;
|
|
4847
|
-
type: "file" | "patch";
|
|
4848
4898
|
content: string;
|
|
4849
4899
|
}[];
|
|
4850
4900
|
addedFileVersions: {
|
|
@@ -4861,8 +4911,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4861
4911
|
isUpToDate: boolean;
|
|
4862
4912
|
latestVersion: string;
|
|
4863
4913
|
} | {
|
|
4864
|
-
message: string;
|
|
4865
4914
|
type: "action-error";
|
|
4915
|
+
message: string;
|
|
4866
4916
|
remainingBalance?: number | undefined;
|
|
4867
4917
|
error?: string | undefined;
|
|
4868
4918
|
} | {
|