codebuff 1.0.270 → 1.0.273
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 +1 -6
- package/dist/cli.js +7 -60
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +0 -1
- 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 +32 -58
- package/dist/common/constants.d.ts +1 -1
- package/dist/common/constants.js +7 -18
- package/dist/common/constants.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +8 -13
- package/dist/common/types/message.d.ts +6 -6
- package/dist/common/util/__tests__/saxy.test.js +11 -137
- 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 +0 -3
- package/dist/common/util/file.js +0 -3
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/util/saxy.d.ts +0 -1
- package/dist/common/util/saxy.js +10 -42
- package/dist/common/util/saxy.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +68 -118
- package/dist/display.d.ts +0 -2
- package/dist/display.js +0 -8
- package/dist/display.js.map +1 -1
- package/dist/index.js +81 -5
- package/dist/index.js.map +1 -1
- package/dist/menu.js +110 -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/__tests__/xml-stream-parser.test.js +0 -26
- 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/logger.d.ts +1 -1
- package/dist/utils/logger.js +6 -3
- package/dist/utils/logger.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/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 +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/utils/xml-stream-parser.js.map +1 -1
- package/dist/workers/project-context.js +1 -4
- package/dist/workers/project-context.js.map +1 -1
- package/package.json +1 -3
- package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +0 -119
- package/dist/common/util/process-stream.d.ts +0 -7
- package/dist/common/util/process-stream.js +0 -162
- package/dist/common/util/process-stream.js.map +0 -1
- package/dist/utils/__tests__/__snapshots__/background-process-manager.test.js.snap +0 -137
- package/dist/utils/__tests__/file-paths.test.d.ts +0 -1
- package/dist/utils/__tests__/file-paths.test.js +0 -37
- package/dist/utils/__tests__/file-paths.test.js.map +0 -1
- package/dist/utils/__tests__/path.test.d.ts +0 -1
- package/dist/utils/__tests__/path.test.js +0 -37
- package/dist/utils/__tests__/path.test.js.map +0 -1
- package/dist/utils/file-paths.d.ts +0 -9
- package/dist/utils/file-paths.js +0 -24
- package/dist/utils/file-paths.js.map +0 -1
- package/dist/utils/path.d.ts +0 -9
- package/dist/utils/path.js +0 -27
- package/dist/utils/path.js.map +0 -1
|
@@ -6,12 +6,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
6
6
|
clientSessionId: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
type: "identify";
|
|
9
|
-
txid: number;
|
|
10
9
|
clientSessionId: string;
|
|
10
|
+
txid: number;
|
|
11
11
|
}, {
|
|
12
12
|
type: "identify";
|
|
13
|
-
txid: number;
|
|
14
13
|
clientSessionId: string;
|
|
14
|
+
txid: number;
|
|
15
15
|
}>;
|
|
16
16
|
readonly subscribe: z.ZodObject<{
|
|
17
17
|
type: z.ZodLiteral<"subscribe">;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -803,7 +793,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
803
793
|
}>;
|
|
804
794
|
}, "strip", z.ZodTypeAny, {
|
|
805
795
|
type: "init";
|
|
806
|
-
fingerprintId: string;
|
|
807
796
|
fileContext: {
|
|
808
797
|
currentWorkingDirectory: string;
|
|
809
798
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -825,17 +814,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
825
814
|
homedir: string;
|
|
826
815
|
cpus: number;
|
|
827
816
|
};
|
|
828
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
829
817
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
830
818
|
fileVersions?: {
|
|
831
819
|
path: string;
|
|
832
820
|
content: string;
|
|
833
821
|
}[][] | undefined;
|
|
834
822
|
};
|
|
823
|
+
fingerprintId: string;
|
|
835
824
|
authToken?: string | undefined;
|
|
836
825
|
}, {
|
|
837
826
|
type: "init";
|
|
838
|
-
fingerprintId: string;
|
|
839
827
|
fileContext: {
|
|
840
828
|
currentWorkingDirectory: string;
|
|
841
829
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -857,13 +845,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
857
845
|
homedir: string;
|
|
858
846
|
cpus: number;
|
|
859
847
|
};
|
|
860
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
861
848
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
862
849
|
fileVersions?: {
|
|
863
850
|
path: string;
|
|
864
851
|
content: string;
|
|
865
852
|
}[][] | undefined;
|
|
866
853
|
};
|
|
854
|
+
fingerprintId: string;
|
|
867
855
|
authToken?: string | undefined;
|
|
868
856
|
}>, z.ZodObject<{
|
|
869
857
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -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;
|
|
@@ -970,7 +957,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
970
957
|
requestId?: string | undefined;
|
|
971
958
|
} | {
|
|
972
959
|
type: "init";
|
|
973
|
-
fingerprintId: string;
|
|
974
960
|
fileContext: {
|
|
975
961
|
currentWorkingDirectory: string;
|
|
976
962
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -992,13 +978,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
992
978
|
homedir: string;
|
|
993
979
|
cpus: number;
|
|
994
980
|
};
|
|
995
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
996
981
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
997
982
|
fileVersions?: {
|
|
998
983
|
path: string;
|
|
999
984
|
content: string;
|
|
1000
985
|
}[][] | undefined;
|
|
1001
986
|
};
|
|
987
|
+
fingerprintId: string;
|
|
1002
988
|
authToken?: string | undefined;
|
|
1003
989
|
} | {
|
|
1004
990
|
type: "generate-commit-message";
|
|
@@ -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;
|
|
@@ -1096,7 +1081,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1096
1081
|
requestId?: string | undefined;
|
|
1097
1082
|
} | {
|
|
1098
1083
|
type: "init";
|
|
1099
|
-
fingerprintId: string;
|
|
1100
1084
|
fileContext: {
|
|
1101
1085
|
currentWorkingDirectory: string;
|
|
1102
1086
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1118,13 +1102,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1118
1102
|
homedir: string;
|
|
1119
1103
|
cpus: number;
|
|
1120
1104
|
};
|
|
1121
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1122
1105
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1123
1106
|
fileVersions?: {
|
|
1124
1107
|
path: string;
|
|
1125
1108
|
content: string;
|
|
1126
1109
|
}[][] | undefined;
|
|
1127
1110
|
};
|
|
1111
|
+
fingerprintId: string;
|
|
1128
1112
|
authToken?: string | undefined;
|
|
1129
1113
|
} | {
|
|
1130
1114
|
type: "generate-commit-message";
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1934,7 +1908,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1934
1908
|
}>;
|
|
1935
1909
|
}, "strip", z.ZodTypeAny, {
|
|
1936
1910
|
type: "init";
|
|
1937
|
-
fingerprintId: string;
|
|
1938
1911
|
fileContext: {
|
|
1939
1912
|
currentWorkingDirectory: string;
|
|
1940
1913
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1956,17 +1929,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1956
1929
|
homedir: string;
|
|
1957
1930
|
cpus: number;
|
|
1958
1931
|
};
|
|
1959
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1960
1932
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1961
1933
|
fileVersions?: {
|
|
1962
1934
|
path: string;
|
|
1963
1935
|
content: string;
|
|
1964
1936
|
}[][] | undefined;
|
|
1965
1937
|
};
|
|
1938
|
+
fingerprintId: string;
|
|
1966
1939
|
authToken?: string | undefined;
|
|
1967
1940
|
}, {
|
|
1968
1941
|
type: "init";
|
|
1969
|
-
fingerprintId: string;
|
|
1970
1942
|
fileContext: {
|
|
1971
1943
|
currentWorkingDirectory: string;
|
|
1972
1944
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1988,13 +1960,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1988
1960
|
homedir: string;
|
|
1989
1961
|
cpus: number;
|
|
1990
1962
|
};
|
|
1991
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1992
1963
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1993
1964
|
fileVersions?: {
|
|
1994
1965
|
path: string;
|
|
1995
1966
|
content: string;
|
|
1996
1967
|
}[][] | undefined;
|
|
1997
1968
|
};
|
|
1969
|
+
fingerprintId: string;
|
|
1998
1970
|
authToken?: string | undefined;
|
|
1999
1971
|
}>, z.ZodObject<{
|
|
2000
1972
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -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;
|
|
@@ -2101,7 +2072,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2101
2072
|
requestId?: string | undefined;
|
|
2102
2073
|
} | {
|
|
2103
2074
|
type: "init";
|
|
2104
|
-
fingerprintId: string;
|
|
2105
2075
|
fileContext: {
|
|
2106
2076
|
currentWorkingDirectory: string;
|
|
2107
2077
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2123,13 +2093,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2123
2093
|
homedir: string;
|
|
2124
2094
|
cpus: number;
|
|
2125
2095
|
};
|
|
2126
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2127
2096
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2128
2097
|
fileVersions?: {
|
|
2129
2098
|
path: string;
|
|
2130
2099
|
content: string;
|
|
2131
2100
|
}[][] | undefined;
|
|
2132
2101
|
};
|
|
2102
|
+
fingerprintId: string;
|
|
2133
2103
|
authToken?: string | undefined;
|
|
2134
2104
|
} | {
|
|
2135
2105
|
type: "generate-commit-message";
|
|
@@ -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;
|
|
@@ -2227,7 +2196,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2227
2196
|
requestId?: string | undefined;
|
|
2228
2197
|
} | {
|
|
2229
2198
|
type: "init";
|
|
2230
|
-
fingerprintId: string;
|
|
2231
2199
|
fileContext: {
|
|
2232
2200
|
currentWorkingDirectory: string;
|
|
2233
2201
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2249,13 +2217,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2249
2217
|
homedir: string;
|
|
2250
2218
|
cpus: number;
|
|
2251
2219
|
};
|
|
2252
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2253
2220
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2254
2221
|
fileVersions?: {
|
|
2255
2222
|
path: string;
|
|
2256
2223
|
content: string;
|
|
2257
2224
|
}[][] | undefined;
|
|
2258
2225
|
};
|
|
2226
|
+
fingerprintId: string;
|
|
2259
2227
|
authToken?: string | undefined;
|
|
2260
2228
|
} | {
|
|
2261
2229
|
type: "generate-commit-message";
|
|
@@ -2307,12 +2275,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2307
2275
|
path: z.ZodString;
|
|
2308
2276
|
content: z.ZodString;
|
|
2309
2277
|
}, "strip", z.ZodTypeAny, {
|
|
2310
|
-
type: "patch" | "file";
|
|
2311
2278
|
path: string;
|
|
2279
|
+
type: "file" | "patch";
|
|
2312
2280
|
content: string;
|
|
2313
2281
|
}, {
|
|
2314
|
-
type: "patch" | "file";
|
|
2315
2282
|
path: string;
|
|
2283
|
+
type: "file" | "patch";
|
|
2316
2284
|
content: string;
|
|
2317
2285
|
}>, "many">;
|
|
2318
2286
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2320,12 +2288,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2320
2288
|
path: z.ZodString;
|
|
2321
2289
|
content: z.ZodString;
|
|
2322
2290
|
}, "strip", z.ZodTypeAny, {
|
|
2323
|
-
type: "patch" | "file";
|
|
2324
2291
|
path: string;
|
|
2292
|
+
type: "file" | "patch";
|
|
2325
2293
|
content: string;
|
|
2326
2294
|
}, {
|
|
2327
|
-
type: "patch" | "file";
|
|
2328
2295
|
path: string;
|
|
2296
|
+
type: "file" | "patch";
|
|
2329
2297
|
content: string;
|
|
2330
2298
|
}>, "many">;
|
|
2331
2299
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2350,13 +2318,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2350
2318
|
userInputId: string;
|
|
2351
2319
|
response: string;
|
|
2352
2320
|
changes: {
|
|
2353
|
-
type: "patch" | "file";
|
|
2354
2321
|
path: string;
|
|
2322
|
+
type: "file" | "patch";
|
|
2355
2323
|
content: string;
|
|
2356
2324
|
}[];
|
|
2357
2325
|
changesAlreadyApplied: {
|
|
2358
|
-
type: "patch" | "file";
|
|
2359
2326
|
path: string;
|
|
2327
|
+
type: "file" | "patch";
|
|
2360
2328
|
content: string;
|
|
2361
2329
|
}[];
|
|
2362
2330
|
addedFileVersions: {
|
|
@@ -2374,13 +2342,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2374
2342
|
userInputId: string;
|
|
2375
2343
|
response: string;
|
|
2376
2344
|
changes: {
|
|
2377
|
-
type: "patch" | "file";
|
|
2378
2345
|
path: string;
|
|
2346
|
+
type: "file" | "patch";
|
|
2379
2347
|
content: string;
|
|
2380
2348
|
}[];
|
|
2381
2349
|
changesAlreadyApplied: {
|
|
2382
|
-
type: "patch" | "file";
|
|
2383
2350
|
path: string;
|
|
2351
|
+
type: "file" | "patch";
|
|
2384
2352
|
content: string;
|
|
2385
2353
|
}[];
|
|
2386
2354
|
addedFileVersions: {
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -3053,12 +3014,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3053
3014
|
path: z.ZodString;
|
|
3054
3015
|
content: z.ZodString;
|
|
3055
3016
|
}, "strip", z.ZodTypeAny, {
|
|
3056
|
-
type: "patch" | "file";
|
|
3057
3017
|
path: string;
|
|
3018
|
+
type: "file" | "patch";
|
|
3058
3019
|
content: string;
|
|
3059
3020
|
}, {
|
|
3060
|
-
type: "patch" | "file";
|
|
3061
3021
|
path: string;
|
|
3022
|
+
type: "file" | "patch";
|
|
3062
3023
|
content: string;
|
|
3063
3024
|
}>, "many">;
|
|
3064
3025
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3066,12 +3027,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3066
3027
|
path: z.ZodString;
|
|
3067
3028
|
content: z.ZodString;
|
|
3068
3029
|
}, "strip", z.ZodTypeAny, {
|
|
3069
|
-
type: "patch" | "file";
|
|
3070
3030
|
path: string;
|
|
3031
|
+
type: "file" | "patch";
|
|
3071
3032
|
content: string;
|
|
3072
3033
|
}, {
|
|
3073
|
-
type: "patch" | "file";
|
|
3074
3034
|
path: string;
|
|
3035
|
+
type: "file" | "patch";
|
|
3075
3036
|
content: string;
|
|
3076
3037
|
}>, "many">;
|
|
3077
3038
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3095,13 +3056,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3095
3056
|
userInputId: string;
|
|
3096
3057
|
response: string;
|
|
3097
3058
|
changes: {
|
|
3098
|
-
type: "patch" | "file";
|
|
3099
3059
|
path: string;
|
|
3060
|
+
type: "file" | "patch";
|
|
3100
3061
|
content: string;
|
|
3101
3062
|
}[];
|
|
3102
3063
|
changesAlreadyApplied: {
|
|
3103
|
-
type: "patch" | "file";
|
|
3104
3064
|
path: string;
|
|
3065
|
+
type: "file" | "patch";
|
|
3105
3066
|
content: string;
|
|
3106
3067
|
}[];
|
|
3107
3068
|
addedFileVersions: {
|
|
@@ -3119,13 +3080,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3119
3080
|
userInputId: string;
|
|
3120
3081
|
response: string;
|
|
3121
3082
|
changes: {
|
|
3122
|
-
type: "patch" | "file";
|
|
3123
3083
|
path: string;
|
|
3084
|
+
type: "file" | "patch";
|
|
3124
3085
|
content: string;
|
|
3125
3086
|
}[];
|
|
3126
3087
|
changesAlreadyApplied: {
|
|
3127
|
-
type: "patch" | "file";
|
|
3128
3088
|
path: string;
|
|
3089
|
+
type: "file" | "patch";
|
|
3129
3090
|
content: string;
|
|
3130
3091
|
}[];
|
|
3131
3092
|
addedFileVersions: {
|
|
@@ -3219,13 +3180,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3219
3180
|
error: z.ZodOptional<z.ZodString>;
|
|
3220
3181
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3221
3182
|
}, "strip", z.ZodTypeAny, {
|
|
3222
|
-
type: "action-error";
|
|
3223
3183
|
message: string;
|
|
3184
|
+
type: "action-error";
|
|
3224
3185
|
remainingBalance?: number | undefined;
|
|
3225
3186
|
error?: string | undefined;
|
|
3226
3187
|
}, {
|
|
3227
|
-
type: "action-error";
|
|
3228
3188
|
message: string;
|
|
3189
|
+
type: "action-error";
|
|
3229
3190
|
remainingBalance?: number | undefined;
|
|
3230
3191
|
error?: string | undefined;
|
|
3231
3192
|
}>, z.ZodObject<{
|
|
@@ -3265,13 +3226,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3265
3226
|
userInputId: string;
|
|
3266
3227
|
response: string;
|
|
3267
3228
|
changes: {
|
|
3268
|
-
type: "patch" | "file";
|
|
3269
3229
|
path: string;
|
|
3230
|
+
type: "file" | "patch";
|
|
3270
3231
|
content: string;
|
|
3271
3232
|
}[];
|
|
3272
3233
|
changesAlreadyApplied: {
|
|
3273
|
-
type: "patch" | "file";
|
|
3274
3234
|
path: string;
|
|
3235
|
+
type: "file" | "patch";
|
|
3275
3236
|
content: string;
|
|
3276
3237
|
}[];
|
|
3277
3238
|
addedFileVersions: {
|
|
@@ -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;
|
|
@@ -3386,13 +3346,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3386
3346
|
userInputId: string;
|
|
3387
3347
|
response: string;
|
|
3388
3348
|
changes: {
|
|
3389
|
-
type: "patch" | "file";
|
|
3390
3349
|
path: string;
|
|
3350
|
+
type: "file" | "patch";
|
|
3391
3351
|
content: string;
|
|
3392
3352
|
}[];
|
|
3393
3353
|
changesAlreadyApplied: {
|
|
3394
|
-
type: "patch" | "file";
|
|
3395
3354
|
path: string;
|
|
3355
|
+
type: "file" | "patch";
|
|
3396
3356
|
content: string;
|
|
3397
3357
|
}[];
|
|
3398
3358
|
addedFileVersions: {
|
|
@@ -3409,8 +3369,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3409
3369
|
isUpToDate: boolean;
|
|
3410
3370
|
latestVersion: string;
|
|
3411
3371
|
} | {
|
|
3412
|
-
type: "action-error";
|
|
3413
3372
|
message: string;
|
|
3373
|
+
type: "action-error";
|
|
3414
3374
|
remainingBalance?: number | undefined;
|
|
3415
3375
|
error?: string | undefined;
|
|
3416
3376
|
} | {
|
|
@@ -3440,13 +3400,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3440
3400
|
userInputId: string;
|
|
3441
3401
|
response: string;
|
|
3442
3402
|
changes: {
|
|
3443
|
-
type: "patch" | "file";
|
|
3444
3403
|
path: string;
|
|
3404
|
+
type: "file" | "patch";
|
|
3445
3405
|
content: string;
|
|
3446
3406
|
}[];
|
|
3447
3407
|
changesAlreadyApplied: {
|
|
3448
|
-
type: "patch" | "file";
|
|
3449
3408
|
path: string;
|
|
3409
|
+
type: "file" | "patch";
|
|
3450
3410
|
content: string;
|
|
3451
3411
|
}[];
|
|
3452
3412
|
addedFileVersions: {
|
|
@@ -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;
|
|
@@ -3561,13 +3520,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3561
3520
|
userInputId: string;
|
|
3562
3521
|
response: string;
|
|
3563
3522
|
changes: {
|
|
3564
|
-
type: "patch" | "file";
|
|
3565
3523
|
path: string;
|
|
3524
|
+
type: "file" | "patch";
|
|
3566
3525
|
content: string;
|
|
3567
3526
|
}[];
|
|
3568
3527
|
changesAlreadyApplied: {
|
|
3569
|
-
type: "patch" | "file";
|
|
3570
3528
|
path: string;
|
|
3529
|
+
type: "file" | "patch";
|
|
3571
3530
|
content: string;
|
|
3572
3531
|
}[];
|
|
3573
3532
|
addedFileVersions: {
|
|
@@ -3584,8 +3543,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3584
3543
|
isUpToDate: boolean;
|
|
3585
3544
|
latestVersion: string;
|
|
3586
3545
|
} | {
|
|
3587
|
-
type: "action-error";
|
|
3588
3546
|
message: string;
|
|
3547
|
+
type: "action-error";
|
|
3589
3548
|
remainingBalance?: number | undefined;
|
|
3590
3549
|
error?: string | undefined;
|
|
3591
3550
|
} | {
|
|
@@ -3634,12 +3593,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3634
3593
|
path: z.ZodString;
|
|
3635
3594
|
content: z.ZodString;
|
|
3636
3595
|
}, "strip", z.ZodTypeAny, {
|
|
3637
|
-
type: "patch" | "file";
|
|
3638
3596
|
path: string;
|
|
3597
|
+
type: "file" | "patch";
|
|
3639
3598
|
content: string;
|
|
3640
3599
|
}, {
|
|
3641
|
-
type: "patch" | "file";
|
|
3642
3600
|
path: string;
|
|
3601
|
+
type: "file" | "patch";
|
|
3643
3602
|
content: string;
|
|
3644
3603
|
}>, "many">;
|
|
3645
3604
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3647,12 +3606,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3647
3606
|
path: z.ZodString;
|
|
3648
3607
|
content: z.ZodString;
|
|
3649
3608
|
}, "strip", z.ZodTypeAny, {
|
|
3650
|
-
type: "patch" | "file";
|
|
3651
3609
|
path: string;
|
|
3610
|
+
type: "file" | "patch";
|
|
3652
3611
|
content: string;
|
|
3653
3612
|
}, {
|
|
3654
|
-
type: "patch" | "file";
|
|
3655
3613
|
path: string;
|
|
3614
|
+
type: "file" | "patch";
|
|
3656
3615
|
content: string;
|
|
3657
3616
|
}>, "many">;
|
|
3658
3617
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3677,13 +3636,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3677
3636
|
userInputId: string;
|
|
3678
3637
|
response: string;
|
|
3679
3638
|
changes: {
|
|
3680
|
-
type: "patch" | "file";
|
|
3681
3639
|
path: string;
|
|
3640
|
+
type: "file" | "patch";
|
|
3682
3641
|
content: string;
|
|
3683
3642
|
}[];
|
|
3684
3643
|
changesAlreadyApplied: {
|
|
3685
|
-
type: "patch" | "file";
|
|
3686
3644
|
path: string;
|
|
3645
|
+
type: "file" | "patch";
|
|
3687
3646
|
content: string;
|
|
3688
3647
|
}[];
|
|
3689
3648
|
addedFileVersions: {
|
|
@@ -3701,13 +3660,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3701
3660
|
userInputId: string;
|
|
3702
3661
|
response: string;
|
|
3703
3662
|
changes: {
|
|
3704
|
-
type: "patch" | "file";
|
|
3705
3663
|
path: string;
|
|
3664
|
+
type: "file" | "patch";
|
|
3706
3665
|
content: string;
|
|
3707
3666
|
}[];
|
|
3708
3667
|
changesAlreadyApplied: {
|
|
3709
|
-
type: "patch" | "file";
|
|
3710
3668
|
path: string;
|
|
3669
|
+
type: "file" | "patch";
|
|
3711
3670
|
content: string;
|
|
3712
3671
|
}[];
|
|
3713
3672
|
addedFileVersions: {
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -4380,12 +4332,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4380
4332
|
path: z.ZodString;
|
|
4381
4333
|
content: z.ZodString;
|
|
4382
4334
|
}, "strip", z.ZodTypeAny, {
|
|
4383
|
-
type: "patch" | "file";
|
|
4384
4335
|
path: string;
|
|
4336
|
+
type: "file" | "patch";
|
|
4385
4337
|
content: string;
|
|
4386
4338
|
}, {
|
|
4387
|
-
type: "patch" | "file";
|
|
4388
4339
|
path: string;
|
|
4340
|
+
type: "file" | "patch";
|
|
4389
4341
|
content: string;
|
|
4390
4342
|
}>, "many">;
|
|
4391
4343
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -4393,12 +4345,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4393
4345
|
path: z.ZodString;
|
|
4394
4346
|
content: z.ZodString;
|
|
4395
4347
|
}, "strip", z.ZodTypeAny, {
|
|
4396
|
-
type: "patch" | "file";
|
|
4397
4348
|
path: string;
|
|
4349
|
+
type: "file" | "patch";
|
|
4398
4350
|
content: string;
|
|
4399
4351
|
}, {
|
|
4400
|
-
type: "patch" | "file";
|
|
4401
4352
|
path: string;
|
|
4353
|
+
type: "file" | "patch";
|
|
4402
4354
|
content: string;
|
|
4403
4355
|
}>, "many">;
|
|
4404
4356
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -4422,13 +4374,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4422
4374
|
userInputId: string;
|
|
4423
4375
|
response: string;
|
|
4424
4376
|
changes: {
|
|
4425
|
-
type: "patch" | "file";
|
|
4426
4377
|
path: string;
|
|
4378
|
+
type: "file" | "patch";
|
|
4427
4379
|
content: string;
|
|
4428
4380
|
}[];
|
|
4429
4381
|
changesAlreadyApplied: {
|
|
4430
|
-
type: "patch" | "file";
|
|
4431
4382
|
path: string;
|
|
4383
|
+
type: "file" | "patch";
|
|
4432
4384
|
content: string;
|
|
4433
4385
|
}[];
|
|
4434
4386
|
addedFileVersions: {
|
|
@@ -4446,13 +4398,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4446
4398
|
userInputId: string;
|
|
4447
4399
|
response: string;
|
|
4448
4400
|
changes: {
|
|
4449
|
-
type: "patch" | "file";
|
|
4450
4401
|
path: string;
|
|
4402
|
+
type: "file" | "patch";
|
|
4451
4403
|
content: string;
|
|
4452
4404
|
}[];
|
|
4453
4405
|
changesAlreadyApplied: {
|
|
4454
|
-
type: "patch" | "file";
|
|
4455
4406
|
path: string;
|
|
4407
|
+
type: "file" | "patch";
|
|
4456
4408
|
content: string;
|
|
4457
4409
|
}[];
|
|
4458
4410
|
addedFileVersions: {
|
|
@@ -4546,13 +4498,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4546
4498
|
error: z.ZodOptional<z.ZodString>;
|
|
4547
4499
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
4548
4500
|
}, "strip", z.ZodTypeAny, {
|
|
4549
|
-
type: "action-error";
|
|
4550
4501
|
message: string;
|
|
4502
|
+
type: "action-error";
|
|
4551
4503
|
remainingBalance?: number | undefined;
|
|
4552
4504
|
error?: string | undefined;
|
|
4553
4505
|
}, {
|
|
4554
|
-
type: "action-error";
|
|
4555
4506
|
message: string;
|
|
4507
|
+
type: "action-error";
|
|
4556
4508
|
remainingBalance?: number | undefined;
|
|
4557
4509
|
error?: string | undefined;
|
|
4558
4510
|
}>, z.ZodObject<{
|
|
@@ -4592,13 +4544,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4592
4544
|
userInputId: string;
|
|
4593
4545
|
response: string;
|
|
4594
4546
|
changes: {
|
|
4595
|
-
type: "patch" | "file";
|
|
4596
4547
|
path: string;
|
|
4548
|
+
type: "file" | "patch";
|
|
4597
4549
|
content: string;
|
|
4598
4550
|
}[];
|
|
4599
4551
|
changesAlreadyApplied: {
|
|
4600
|
-
type: "patch" | "file";
|
|
4601
4552
|
path: string;
|
|
4553
|
+
type: "file" | "patch";
|
|
4602
4554
|
content: string;
|
|
4603
4555
|
}[];
|
|
4604
4556
|
addedFileVersions: {
|
|
@@ -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;
|
|
@@ -4713,13 +4664,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4713
4664
|
userInputId: string;
|
|
4714
4665
|
response: string;
|
|
4715
4666
|
changes: {
|
|
4716
|
-
type: "patch" | "file";
|
|
4717
4667
|
path: string;
|
|
4668
|
+
type: "file" | "patch";
|
|
4718
4669
|
content: string;
|
|
4719
4670
|
}[];
|
|
4720
4671
|
changesAlreadyApplied: {
|
|
4721
|
-
type: "patch" | "file";
|
|
4722
4672
|
path: string;
|
|
4673
|
+
type: "file" | "patch";
|
|
4723
4674
|
content: string;
|
|
4724
4675
|
}[];
|
|
4725
4676
|
addedFileVersions: {
|
|
@@ -4736,8 +4687,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4736
4687
|
isUpToDate: boolean;
|
|
4737
4688
|
latestVersion: string;
|
|
4738
4689
|
} | {
|
|
4739
|
-
type: "action-error";
|
|
4740
4690
|
message: string;
|
|
4691
|
+
type: "action-error";
|
|
4741
4692
|
remainingBalance?: number | undefined;
|
|
4742
4693
|
error?: string | undefined;
|
|
4743
4694
|
} | {
|
|
@@ -4767,13 +4718,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4767
4718
|
userInputId: string;
|
|
4768
4719
|
response: string;
|
|
4769
4720
|
changes: {
|
|
4770
|
-
type: "patch" | "file";
|
|
4771
4721
|
path: string;
|
|
4722
|
+
type: "file" | "patch";
|
|
4772
4723
|
content: string;
|
|
4773
4724
|
}[];
|
|
4774
4725
|
changesAlreadyApplied: {
|
|
4775
|
-
type: "patch" | "file";
|
|
4776
4726
|
path: string;
|
|
4727
|
+
type: "file" | "patch";
|
|
4777
4728
|
content: string;
|
|
4778
4729
|
}[];
|
|
4779
4730
|
addedFileVersions: {
|
|
@@ -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;
|
|
@@ -4888,13 +4838,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4888
4838
|
userInputId: string;
|
|
4889
4839
|
response: string;
|
|
4890
4840
|
changes: {
|
|
4891
|
-
type: "patch" | "file";
|
|
4892
4841
|
path: string;
|
|
4842
|
+
type: "file" | "patch";
|
|
4893
4843
|
content: string;
|
|
4894
4844
|
}[];
|
|
4895
4845
|
changesAlreadyApplied: {
|
|
4896
|
-
type: "patch" | "file";
|
|
4897
4846
|
path: string;
|
|
4847
|
+
type: "file" | "patch";
|
|
4898
4848
|
content: string;
|
|
4899
4849
|
}[];
|
|
4900
4850
|
addedFileVersions: {
|
|
@@ -4911,8 +4861,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4911
4861
|
isUpToDate: boolean;
|
|
4912
4862
|
latestVersion: string;
|
|
4913
4863
|
} | {
|
|
4914
|
-
type: "action-error";
|
|
4915
4864
|
message: string;
|
|
4865
|
+
type: "action-error";
|
|
4916
4866
|
remainingBalance?: number | undefined;
|
|
4917
4867
|
error?: string | undefined;
|
|
4918
4868
|
} | {
|