codebuff 1.0.273 → 1.0.275

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.
Files changed (173) hide show
  1. package/dist/cli-handlers/api-key.d.ts +1 -1
  2. package/dist/cli-handlers/api-key.js +1 -1
  3. package/dist/cli-handlers/api-key.js.map +1 -1
  4. package/dist/cli-handlers/initialization-flow.d.ts +1 -0
  5. package/dist/cli-handlers/initialization-flow.js +24 -0
  6. package/dist/cli-handlers/initialization-flow.js.map +1 -0
  7. package/dist/cli-modules/command-processor.d.ts +12 -0
  8. package/dist/cli-modules/command-processor.js +129 -0
  9. package/dist/cli-modules/command-processor.js.map +1 -0
  10. package/dist/cli-modules/input-handler.d.ts +20 -0
  11. package/dist/cli-modules/input-handler.js +98 -0
  12. package/dist/cli-modules/input-handler.js.map +1 -0
  13. package/dist/cli-modules/readline-handler.d.ts +17 -0
  14. package/dist/cli-modules/readline-handler.js +134 -0
  15. package/dist/cli-modules/readline-handler.js.map +1 -0
  16. package/dist/cli-modules/signal-handler.d.ts +13 -0
  17. package/dist/cli-modules/signal-handler.js +69 -0
  18. package/dist/cli-modules/signal-handler.js.map +1 -0
  19. package/dist/cli-modules/types.d.ts +51 -0
  20. package/dist/cli-modules/types.js +3 -0
  21. package/dist/cli-modules/types.js.map +1 -0
  22. package/dist/cli-modules/websocket-handler.d.ts +16 -0
  23. package/dist/cli-modules/websocket-handler.js +53 -0
  24. package/dist/cli-modules/websocket-handler.js.map +1 -0
  25. package/dist/cli.d.ts +6 -1
  26. package/dist/cli.js +60 -7
  27. package/dist/cli.js.map +1 -1
  28. package/dist/client.d.ts +1 -0
  29. package/dist/client.js +3 -0
  30. package/dist/client.js.map +1 -1
  31. package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts +12 -0
  32. package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts.map +1 -0
  33. package/dist/code-map/__mocks__/tree-sitter-typescript.js +14 -0
  34. package/dist/code-map/__mocks__/tree-sitter-typescript.js.map +1 -0
  35. package/dist/code-map/__mocks__/wasm-mock.d.ts +2 -0
  36. package/dist/code-map/__mocks__/wasm-mock.d.ts.map +1 -0
  37. package/dist/code-map/__mocks__/wasm-mock.js +3 -0
  38. package/dist/code-map/__mocks__/wasm-mock.js.map +1 -0
  39. package/dist/code-map/__tests__/parse.test.d.ts +2 -0
  40. package/dist/code-map/__tests__/parse.test.d.ts.map +1 -0
  41. package/dist/code-map/__tests__/parse.test.js +231 -0
  42. package/dist/code-map/__tests__/parse.test.js.map +1 -0
  43. package/dist/code-map/__tests__/test-langs/consumer.d.ts +2 -0
  44. package/dist/code-map/__tests__/test-langs/consumer.d.ts.map +1 -0
  45. package/dist/code-map/__tests__/test-langs/consumer.js +6 -0
  46. package/dist/code-map/__tests__/test-langs/consumer.js.map +1 -0
  47. package/dist/code-map/__tests__/test-langs/empty.d.ts +1 -0
  48. package/dist/code-map/__tests__/test-langs/empty.d.ts.map +1 -0
  49. package/dist/code-map/__tests__/test-langs/empty.js +2 -0
  50. package/dist/code-map/__tests__/test-langs/empty.js.map +1 -0
  51. package/dist/code-map/__tests__/test-langs/test.d.ts +12 -0
  52. package/dist/code-map/__tests__/test-langs/test.d.ts.map +1 -0
  53. package/dist/code-map/__tests__/test-langs/test.js +23 -0
  54. package/dist/code-map/__tests__/test-langs/test.js.map +1 -0
  55. package/dist/code-map/__tests__/test-langs/unused.d.ts +2 -0
  56. package/dist/code-map/__tests__/test-langs/unused.d.ts.map +1 -0
  57. package/dist/code-map/__tests__/test-langs/unused.js +7 -0
  58. package/dist/code-map/__tests__/test-langs/unused.js.map +1 -0
  59. package/dist/code-map/__tests__/test-langs/utils1.d.ts +2 -0
  60. package/dist/code-map/__tests__/test-langs/utils1.d.ts.map +1 -0
  61. package/dist/code-map/__tests__/test-langs/utils1.js +7 -0
  62. package/dist/code-map/__tests__/test-langs/utils1.js.map +1 -0
  63. package/dist/code-map/__tests__/test-langs/utils2.d.ts +2 -0
  64. package/dist/code-map/__tests__/test-langs/utils2.d.ts.map +1 -0
  65. package/dist/code-map/__tests__/test-langs/utils2.js +8 -0
  66. package/dist/code-map/__tests__/test-langs/utils2.js.map +1 -0
  67. package/dist/code-map/__tests__/tree-sitter-minimal.test.d.ts +2 -0
  68. package/dist/code-map/__tests__/tree-sitter-minimal.test.d.ts.map +1 -0
  69. package/dist/code-map/__tests__/tree-sitter-minimal.test.js +79 -0
  70. package/dist/code-map/__tests__/tree-sitter-minimal.test.js.map +1 -0
  71. package/dist/code-map/jest.config.d.ts +4 -0
  72. package/dist/code-map/jest.config.d.ts.map +1 -0
  73. package/dist/code-map/jest.config.js +18 -0
  74. package/dist/code-map/jest.config.js.map +1 -0
  75. package/dist/code-map/languages.d.ts +1 -2
  76. package/dist/code-map/languages.d.ts.map +1 -1
  77. package/dist/code-map/languages.js +2 -1
  78. package/dist/code-map/languages.js.map +1 -1
  79. package/dist/code-map/parse.d.ts +14 -4
  80. package/dist/code-map/parse.d.ts.map +1 -1
  81. package/dist/code-map/parse.js +91 -38
  82. package/dist/code-map/parse.js.map +1 -1
  83. package/dist/code-map/parse.test.d.ts +2 -0
  84. package/dist/code-map/parse.test.d.ts.map +1 -0
  85. package/dist/code-map/parse.test.js +218 -0
  86. package/dist/code-map/parse.test.js.map +1 -0
  87. package/dist/code-map/scripts/tree-sitter-test.cjs +27 -0
  88. package/dist/code-map/scripts/tree-sitter-test.cjs.map +1 -0
  89. package/dist/code-map/scripts/tree-sitter-test.d.cts +2 -0
  90. package/dist/code-map/scripts/tree-sitter-test.d.cts.map +1 -0
  91. package/dist/code-map/scripts/tree-sitter-test.d.ts +2 -0
  92. package/dist/code-map/scripts/tree-sitter-test.d.ts.map +1 -0
  93. package/dist/code-map/scripts/tree-sitter-test.js +54 -0
  94. package/dist/code-map/scripts/tree-sitter-test.js.map +1 -0
  95. package/dist/code-map/test-parser.d.ts +2 -0
  96. package/dist/code-map/test-parser.d.ts.map +1 -0
  97. package/dist/code-map/test-parser.js +42 -0
  98. package/dist/code-map/test-parser.js.map +1 -0
  99. package/dist/code-map/tree-sitter-queries/tree-sitter-c-tags.scm +6 -1
  100. package/dist/code-map/tree-sitter-queries/tree-sitter-c_sharp-tags.scm +11 -1
  101. package/dist/code-map/tree-sitter-queries/tree-sitter-cpp-tags.scm +13 -1
  102. package/dist/code-map/tree-sitter-queries/tree-sitter-javascript-tags.scm +1 -0
  103. package/dist/code-map/tree-sitter-queries/tree-sitter-php-tags.scm +5 -8
  104. package/dist/code-map/tree-sitter-queries/tree-sitter-python-tags.scm +5 -2
  105. package/dist/code-map/tree-sitter-queries/tree-sitter-typescript-tags.scm +7 -0
  106. package/dist/code-map/tsconfig.tsbuildinfo +1 -1
  107. package/dist/common/actions.d.ts +58 -32
  108. package/dist/common/bigquery/client.d.ts +15 -0
  109. package/dist/common/bigquery/client.js +265 -0
  110. package/dist/common/bigquery/client.js.map +1 -0
  111. package/dist/common/bigquery/schema.d.ts +55 -0
  112. package/dist/common/bigquery/schema.js +24 -0
  113. package/dist/common/bigquery/schema.js.map +1 -0
  114. package/dist/common/constants/tools.d.ts +1 -0
  115. package/dist/common/constants/tools.js +1 -0
  116. package/dist/common/constants/tools.js.map +1 -1
  117. package/dist/common/constants.d.ts +1 -1
  118. package/dist/common/constants.js +18 -7
  119. package/dist/common/constants.js.map +1 -1
  120. package/dist/common/project-file-tree.js +12 -0
  121. package/dist/common/project-file-tree.js.map +1 -1
  122. package/dist/common/types/agent-state.d.ts +13 -8
  123. package/dist/common/types/message.d.ts +6 -6
  124. package/dist/common/util/__tests__/saxy.test.js +140 -21
  125. package/dist/common/util/__tests__/saxy.test.js.map +1 -1
  126. package/dist/common/util/credentials.d.ts +2 -2
  127. package/dist/common/util/file-metadata.d.ts +9 -0
  128. package/dist/common/util/file-metadata.js +24 -0
  129. package/dist/common/util/file-metadata.js.map +1 -0
  130. package/dist/common/util/file.d.ts +3 -0
  131. package/dist/common/util/file.js +3 -0
  132. package/dist/common/util/file.js.map +1 -1
  133. package/dist/common/util/promise.js +1 -1
  134. package/dist/common/util/promise.js.map +1 -1
  135. package/dist/common/util/saxy.d.ts +2 -1
  136. package/dist/common/util/saxy.js +51 -18
  137. package/dist/common/util/saxy.js.map +1 -1
  138. package/dist/common/websockets/websocket-schema.d.ts +118 -68
  139. package/dist/display.d.ts +2 -0
  140. package/dist/display.js +8 -0
  141. package/dist/display.js.map +1 -1
  142. package/dist/index.js +4 -80
  143. package/dist/index.js.map +1 -1
  144. package/dist/menu.js +35 -110
  145. package/dist/menu.js.map +1 -1
  146. package/dist/project-files.d.ts +2 -0
  147. package/dist/project-files.js +3 -2
  148. package/dist/project-files.js.map +1 -1
  149. package/dist/tool-handlers.js +3 -0
  150. package/dist/tool-handlers.js.map +1 -1
  151. package/dist/utils/__tests__/tool-renderers.test.js +27 -1
  152. package/dist/utils/__tests__/tool-renderers.test.js.map +1 -1
  153. package/dist/utils/__tests__/xml-stream-parser.test.js +26 -0
  154. package/dist/utils/__tests__/xml-stream-parser.test.js.map +1 -1
  155. package/dist/utils/detect-shell.js +1 -1
  156. package/dist/utils/detect-shell.js.map +1 -1
  157. package/dist/utils/logger.d.ts +1 -1
  158. package/dist/utils/logger.js +3 -6
  159. package/dist/utils/logger.js.map +1 -1
  160. package/dist/utils/spinner.d.ts +1 -0
  161. package/dist/utils/spinner.js +8 -1
  162. package/dist/utils/spinner.js.map +1 -1
  163. package/dist/utils/system-info.js +2 -2
  164. package/dist/utils/system-info.js.map +1 -1
  165. package/dist/utils/terminal.d.ts +2 -2
  166. package/dist/utils/terminal.js +46 -34
  167. package/dist/utils/terminal.js.map +1 -1
  168. package/dist/utils/tool-renderers.js +25 -5
  169. package/dist/utils/tool-renderers.js.map +1 -1
  170. package/dist/utils/xml-stream-parser.js.map +1 -1
  171. package/dist/workers/project-context.js +4 -1
  172. package/dist/workers/project-context.js.map +1 -1
  173. 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, {
2278
- path: string;
2279
2310
  type: "file" | "patch";
2311
+ path: string;
2280
2312
  content: string;
2281
2313
  }, {
2282
- path: string;
2283
2314
  type: "file" | "patch";
2315
+ path: string;
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, {
2291
- path: string;
2292
2323
  type: "file" | "patch";
2324
+ path: string;
2293
2325
  content: string;
2294
2326
  }, {
2295
- path: string;
2296
2327
  type: "file" | "patch";
2328
+ path: string;
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: {
2321
- path: string;
2322
2353
  type: "file" | "patch";
2354
+ path: string;
2323
2355
  content: string;
2324
2356
  }[];
2325
2357
  changesAlreadyApplied: {
2326
- path: string;
2327
2358
  type: "file" | "patch";
2359
+ path: string;
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: {
2345
- path: string;
2346
2377
  type: "file" | "patch";
2378
+ path: string;
2347
2379
  content: string;
2348
2380
  }[];
2349
2381
  changesAlreadyApplied: {
2350
- path: string;
2351
2382
  type: "file" | "patch";
2383
+ path: string;
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, {
3017
- path: string;
3018
3056
  type: "file" | "patch";
3057
+ path: string;
3019
3058
  content: string;
3020
3059
  }, {
3021
- path: string;
3022
3060
  type: "file" | "patch";
3061
+ path: string;
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, {
3030
- path: string;
3031
3069
  type: "file" | "patch";
3070
+ path: string;
3032
3071
  content: string;
3033
3072
  }, {
3034
- path: string;
3035
3073
  type: "file" | "patch";
3074
+ path: string;
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: {
3059
- path: string;
3060
3098
  type: "file" | "patch";
3099
+ path: string;
3061
3100
  content: string;
3062
3101
  }[];
3063
3102
  changesAlreadyApplied: {
3064
- path: string;
3065
3103
  type: "file" | "patch";
3104
+ path: string;
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: {
3083
- path: string;
3084
3122
  type: "file" | "patch";
3123
+ path: string;
3085
3124
  content: string;
3086
3125
  }[];
3087
3126
  changesAlreadyApplied: {
3088
- path: string;
3089
3127
  type: "file" | "patch";
3128
+ path: string;
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: {
3229
- path: string;
3230
3268
  type: "file" | "patch";
3269
+ path: string;
3231
3270
  content: string;
3232
3271
  }[];
3233
3272
  changesAlreadyApplied: {
3234
- path: string;
3235
3273
  type: "file" | "patch";
3274
+ path: string;
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: {
3349
- path: string;
3350
3389
  type: "file" | "patch";
3390
+ path: string;
3351
3391
  content: string;
3352
3392
  }[];
3353
3393
  changesAlreadyApplied: {
3354
- path: string;
3355
3394
  type: "file" | "patch";
3395
+ path: string;
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: {
3403
- path: string;
3404
3443
  type: "file" | "patch";
3444
+ path: string;
3405
3445
  content: string;
3406
3446
  }[];
3407
3447
  changesAlreadyApplied: {
3408
- path: string;
3409
3448
  type: "file" | "patch";
3449
+ path: string;
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: {
3523
- path: string;
3524
3564
  type: "file" | "patch";
3565
+ path: string;
3525
3566
  content: string;
3526
3567
  }[];
3527
3568
  changesAlreadyApplied: {
3528
- path: string;
3529
3569
  type: "file" | "patch";
3570
+ path: string;
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, {
3596
- path: string;
3597
3637
  type: "file" | "patch";
3638
+ path: string;
3598
3639
  content: string;
3599
3640
  }, {
3600
- path: string;
3601
3641
  type: "file" | "patch";
3642
+ path: string;
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, {
3609
- path: string;
3610
3650
  type: "file" | "patch";
3651
+ path: string;
3611
3652
  content: string;
3612
3653
  }, {
3613
- path: string;
3614
3654
  type: "file" | "patch";
3655
+ path: string;
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: {
3639
- path: string;
3640
3680
  type: "file" | "patch";
3681
+ path: string;
3641
3682
  content: string;
3642
3683
  }[];
3643
3684
  changesAlreadyApplied: {
3644
- path: string;
3645
3685
  type: "file" | "patch";
3686
+ path: string;
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: {
3663
- path: string;
3664
3704
  type: "file" | "patch";
3705
+ path: string;
3665
3706
  content: string;
3666
3707
  }[];
3667
3708
  changesAlreadyApplied: {
3668
- path: string;
3669
3709
  type: "file" | "patch";
3710
+ path: string;
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, {
4335
- path: string;
4336
4383
  type: "file" | "patch";
4384
+ path: string;
4337
4385
  content: string;
4338
4386
  }, {
4339
- path: string;
4340
4387
  type: "file" | "patch";
4388
+ path: string;
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, {
4348
- path: string;
4349
4396
  type: "file" | "patch";
4397
+ path: string;
4350
4398
  content: string;
4351
4399
  }, {
4352
- path: string;
4353
4400
  type: "file" | "patch";
4401
+ path: string;
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: {
4377
- path: string;
4378
4425
  type: "file" | "patch";
4426
+ path: string;
4379
4427
  content: string;
4380
4428
  }[];
4381
4429
  changesAlreadyApplied: {
4382
- path: string;
4383
4430
  type: "file" | "patch";
4431
+ path: string;
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: {
4401
- path: string;
4402
4449
  type: "file" | "patch";
4450
+ path: string;
4403
4451
  content: string;
4404
4452
  }[];
4405
4453
  changesAlreadyApplied: {
4406
- path: string;
4407
4454
  type: "file" | "patch";
4455
+ path: string;
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: {
4547
- path: string;
4548
4595
  type: "file" | "patch";
4596
+ path: string;
4549
4597
  content: string;
4550
4598
  }[];
4551
4599
  changesAlreadyApplied: {
4552
- path: string;
4553
4600
  type: "file" | "patch";
4601
+ path: string;
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: {
4667
- path: string;
4668
4716
  type: "file" | "patch";
4717
+ path: string;
4669
4718
  content: string;
4670
4719
  }[];
4671
4720
  changesAlreadyApplied: {
4672
- path: string;
4673
4721
  type: "file" | "patch";
4722
+ path: string;
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: {
4721
- path: string;
4722
4770
  type: "file" | "patch";
4771
+ path: string;
4723
4772
  content: string;
4724
4773
  }[];
4725
4774
  changesAlreadyApplied: {
4726
- path: string;
4727
4775
  type: "file" | "patch";
4776
+ path: string;
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: {
4841
- path: string;
4842
4891
  type: "file" | "patch";
4892
+ path: string;
4843
4893
  content: string;
4844
4894
  }[];
4845
4895
  changesAlreadyApplied: {
4846
- path: string;
4847
4896
  type: "file" | "patch";
4897
+ path: string;
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
  } | {