@vybestack/llxprt-code-tools 0.10.0-nightly.260613.1adad3b34

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 (364) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +294 -0
  3. package/dist/.last_build +0 -0
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.js +2 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/src/__tests__/fixtures/filesystem-tool-fixtures.d.ts +29 -0
  8. package/dist/src/__tests__/fixtures/filesystem-tool-fixtures.js +30 -0
  9. package/dist/src/__tests__/fixtures/filesystem-tool-fixtures.js.map +1 -0
  10. package/dist/src/__tests__/fixtures/key-storage-fixtures.d.ts +39 -0
  11. package/dist/src/__tests__/fixtures/key-storage-fixtures.js +53 -0
  12. package/dist/src/__tests__/fixtures/key-storage-fixtures.js.map +1 -0
  13. package/dist/src/__tests__/fixtures/provider-formatting-fixtures.d.ts +140 -0
  14. package/dist/src/__tests__/fixtures/provider-formatting-fixtures.js +157 -0
  15. package/dist/src/__tests__/fixtures/provider-formatting-fixtures.js.map +1 -0
  16. package/dist/src/__tests__/red-test-helpers.d.ts +14 -0
  17. package/dist/src/__tests__/red-test-helpers.js +18 -0
  18. package/dist/src/__tests__/red-test-helpers.js.map +1 -0
  19. package/dist/src/formatters/IToolFormatter.d.ts +84 -0
  20. package/dist/src/formatters/IToolFormatter.js +6 -0
  21. package/dist/src/formatters/IToolFormatter.js.map +1 -0
  22. package/dist/src/formatters/ToolFormatter.d.ts +94 -0
  23. package/dist/src/formatters/ToolFormatter.js +379 -0
  24. package/dist/src/formatters/ToolFormatter.js.map +1 -0
  25. package/dist/src/formatters/ToolIdStrategy.d.ts +79 -0
  26. package/dist/src/formatters/ToolIdStrategy.js +173 -0
  27. package/dist/src/formatters/ToolIdStrategy.js.map +1 -0
  28. package/dist/src/formatters/doubleEscapeUtils.d.ts +46 -0
  29. package/dist/src/formatters/doubleEscapeUtils.js +223 -0
  30. package/dist/src/formatters/doubleEscapeUtils.js.map +1 -0
  31. package/dist/src/formatters/index.d.ts +21 -0
  32. package/dist/src/formatters/index.js +12 -0
  33. package/dist/src/formatters/index.js.map +1 -0
  34. package/dist/src/formatters/toolIdNormalization.d.ts +28 -0
  35. package/dist/src/formatters/toolIdNormalization.js +97 -0
  36. package/dist/src/formatters/toolIdNormalization.js.map +1 -0
  37. package/dist/src/formatters/toolNameUtils.d.ts +43 -0
  38. package/dist/src/formatters/toolNameUtils.js +143 -0
  39. package/dist/src/formatters/toolNameUtils.js.map +1 -0
  40. package/dist/src/index.d.ts +88 -0
  41. package/dist/src/index.js +68 -0
  42. package/dist/src/index.js.map +1 -0
  43. package/dist/src/interfaces/IAsyncTaskService.d.ts +57 -0
  44. package/dist/src/interfaces/IAsyncTaskService.js +6 -0
  45. package/dist/src/interfaces/IAsyncTaskService.js.map +1 -0
  46. package/dist/src/interfaces/IIdeService.d.ts +62 -0
  47. package/dist/src/interfaces/IIdeService.js +6 -0
  48. package/dist/src/interfaces/IIdeService.js.map +1 -0
  49. package/dist/src/interfaces/ILspService.d.ts +54 -0
  50. package/dist/src/interfaces/ILspService.js +6 -0
  51. package/dist/src/interfaces/ILspService.js.map +1 -0
  52. package/dist/src/interfaces/IMcpToolService.d.ts +47 -0
  53. package/dist/src/interfaces/IMcpToolService.js +6 -0
  54. package/dist/src/interfaces/IMcpToolService.js.map +1 -0
  55. package/dist/src/interfaces/IPromptRegistryService.d.ts +51 -0
  56. package/dist/src/interfaces/IPromptRegistryService.js +6 -0
  57. package/dist/src/interfaces/IPromptRegistryService.js.map +1 -0
  58. package/dist/src/interfaces/ISettingsService.d.ts +50 -0
  59. package/dist/src/interfaces/ISettingsService.js +6 -0
  60. package/dist/src/interfaces/ISettingsService.js.map +1 -0
  61. package/dist/src/interfaces/IShellExecutionService.d.ts +55 -0
  62. package/dist/src/interfaces/IShellExecutionService.js +6 -0
  63. package/dist/src/interfaces/IShellExecutionService.js.map +1 -0
  64. package/dist/src/interfaces/IShellToolHost.d.ts +176 -0
  65. package/dist/src/interfaces/IShellToolHost.js +6 -0
  66. package/dist/src/interfaces/IShellToolHost.js.map +1 -0
  67. package/dist/src/interfaces/ISkillService.d.ts +69 -0
  68. package/dist/src/interfaces/ISkillService.js +6 -0
  69. package/dist/src/interfaces/ISkillService.js.map +1 -0
  70. package/dist/src/interfaces/IStorageService.d.ts +42 -0
  71. package/dist/src/interfaces/IStorageService.js +6 -0
  72. package/dist/src/interfaces/IStorageService.js.map +1 -0
  73. package/dist/src/interfaces/ISubagentService.d.ts +112 -0
  74. package/dist/src/interfaces/ISubagentService.js +6 -0
  75. package/dist/src/interfaces/ISubagentService.js.map +1 -0
  76. package/dist/src/interfaces/ITaskToolHost.d.ts +185 -0
  77. package/dist/src/interfaces/ITaskToolHost.js +6 -0
  78. package/dist/src/interfaces/ITaskToolHost.js.map +1 -0
  79. package/dist/src/interfaces/ITodoService.d.ts +79 -0
  80. package/dist/src/interfaces/ITodoService.js +6 -0
  81. package/dist/src/interfaces/ITodoService.js.map +1 -0
  82. package/dist/src/interfaces/IToolHost.d.ts +91 -0
  83. package/dist/src/interfaces/IToolHost.js +6 -0
  84. package/dist/src/interfaces/IToolHost.js.map +1 -0
  85. package/dist/src/interfaces/IToolKeyStorage.d.ts +62 -0
  86. package/dist/src/interfaces/IToolKeyStorage.js +6 -0
  87. package/dist/src/interfaces/IToolKeyStorage.js.map +1 -0
  88. package/dist/src/interfaces/IToolMessageBus.d.ts +63 -0
  89. package/dist/src/interfaces/IToolMessageBus.js +6 -0
  90. package/dist/src/interfaces/IToolMessageBus.js.map +1 -0
  91. package/dist/src/interfaces/IToolRegistryHost.d.ts +43 -0
  92. package/dist/src/interfaces/IToolRegistryHost.js +6 -0
  93. package/dist/src/interfaces/IToolRegistryHost.js.map +1 -0
  94. package/dist/src/interfaces/IWebSearchService.d.ts +16 -0
  95. package/dist/src/interfaces/IWebSearchService.js +7 -0
  96. package/dist/src/interfaces/IWebSearchService.js.map +1 -0
  97. package/dist/src/interfaces/index.d.ts +33 -0
  98. package/dist/src/interfaces/index.js +6 -0
  99. package/dist/src/interfaces/index.js.map +1 -0
  100. package/dist/src/tools/activate-skill.d.ts +26 -0
  101. package/dist/src/tools/activate-skill.js +121 -0
  102. package/dist/src/tools/activate-skill.js.map +1 -0
  103. package/dist/src/tools/apply-patch.d.ts +65 -0
  104. package/dist/src/tools/apply-patch.js +528 -0
  105. package/dist/src/tools/apply-patch.js.map +1 -0
  106. package/dist/src/tools/ast-edit/ast-config.d.ts +67 -0
  107. package/dist/src/tools/ast-edit/ast-config.js +72 -0
  108. package/dist/src/tools/ast-edit/ast-config.js.map +1 -0
  109. package/dist/src/tools/ast-edit/ast-edit-invocation.d.ts +40 -0
  110. package/dist/src/tools/ast-edit/ast-edit-invocation.js +410 -0
  111. package/dist/src/tools/ast-edit/ast-edit-invocation.js.map +1 -0
  112. package/dist/src/tools/ast-edit/ast-query-extractor.d.ts +21 -0
  113. package/dist/src/tools/ast-edit/ast-query-extractor.js +178 -0
  114. package/dist/src/tools/ast-edit/ast-query-extractor.js.map +1 -0
  115. package/dist/src/tools/ast-edit/ast-read-file-invocation.d.ts +26 -0
  116. package/dist/src/tools/ast-edit/ast-read-file-invocation.js +149 -0
  117. package/dist/src/tools/ast-edit/ast-read-file-invocation.js.map +1 -0
  118. package/dist/src/tools/ast-edit/constants.d.ts +30 -0
  119. package/dist/src/tools/ast-edit/constants.js +36 -0
  120. package/dist/src/tools/ast-edit/constants.js.map +1 -0
  121. package/dist/src/tools/ast-edit/context-collector.d.ts +25 -0
  122. package/dist/src/tools/ast-edit/context-collector.js +115 -0
  123. package/dist/src/tools/ast-edit/context-collector.js.map +1 -0
  124. package/dist/src/tools/ast-edit/context-optimizer.d.ts +29 -0
  125. package/dist/src/tools/ast-edit/context-optimizer.js +86 -0
  126. package/dist/src/tools/ast-edit/context-optimizer.js.map +1 -0
  127. package/dist/src/tools/ast-edit/cross-file-analyzer.d.ts +41 -0
  128. package/dist/src/tools/ast-edit/cross-file-analyzer.js +294 -0
  129. package/dist/src/tools/ast-edit/cross-file-analyzer.js.map +1 -0
  130. package/dist/src/tools/ast-edit/edit-calculator.d.ts +71 -0
  131. package/dist/src/tools/ast-edit/edit-calculator.js +249 -0
  132. package/dist/src/tools/ast-edit/edit-calculator.js.map +1 -0
  133. package/dist/src/tools/ast-edit/edit-helpers.d.ts +22 -0
  134. package/dist/src/tools/ast-edit/edit-helpers.js +36 -0
  135. package/dist/src/tools/ast-edit/edit-helpers.js.map +1 -0
  136. package/dist/src/tools/ast-edit/language-analysis.d.ts +19 -0
  137. package/dist/src/tools/ast-edit/language-analysis.js +123 -0
  138. package/dist/src/tools/ast-edit/language-analysis.js.map +1 -0
  139. package/dist/src/tools/ast-edit/local-context-analyzer.d.ts +84 -0
  140. package/dist/src/tools/ast-edit/local-context-analyzer.js +267 -0
  141. package/dist/src/tools/ast-edit/local-context-analyzer.js.map +1 -0
  142. package/dist/src/tools/ast-edit/repository-context-provider.d.ts +22 -0
  143. package/dist/src/tools/ast-edit/repository-context-provider.js +139 -0
  144. package/dist/src/tools/ast-edit/repository-context-provider.js.map +1 -0
  145. package/dist/src/tools/ast-edit/types.d.ts +155 -0
  146. package/dist/src/tools/ast-edit/types.js +7 -0
  147. package/dist/src/tools/ast-edit/types.js.map +1 -0
  148. package/dist/src/tools/ast-edit/workspace-context-provider.d.ts +22 -0
  149. package/dist/src/tools/ast-edit/workspace-context-provider.js +39 -0
  150. package/dist/src/tools/ast-edit/workspace-context-provider.js.map +1 -0
  151. package/dist/src/tools/ast-edit.d.ts +43 -0
  152. package/dist/src/tools/ast-edit.js +183 -0
  153. package/dist/src/tools/ast-edit.js.map +1 -0
  154. package/dist/src/tools/ast-grep.d.ts +22 -0
  155. package/dist/src/tools/ast-grep.js +291 -0
  156. package/dist/src/tools/ast-grep.js.map +1 -0
  157. package/dist/src/tools/check-async-tasks.d.ts +46 -0
  158. package/dist/src/tools/check-async-tasks.js +241 -0
  159. package/dist/src/tools/check-async-tasks.js.map +1 -0
  160. package/dist/src/tools/codesearch.d.ts +25 -0
  161. package/dist/src/tools/codesearch.js +153 -0
  162. package/dist/src/tools/codesearch.js.map +1 -0
  163. package/dist/src/tools/delete_line_range.d.ts +41 -0
  164. package/dist/src/tools/delete_line_range.js +238 -0
  165. package/dist/src/tools/delete_line_range.js.map +1 -0
  166. package/dist/src/tools/direct-web-fetch.d.ts +22 -0
  167. package/dist/src/tools/direct-web-fetch.js +215 -0
  168. package/dist/src/tools/direct-web-fetch.js.map +1 -0
  169. package/dist/src/tools/edit-utils.d.ts +53 -0
  170. package/dist/src/tools/edit-utils.js +250 -0
  171. package/dist/src/tools/edit-utils.js.map +1 -0
  172. package/dist/src/tools/edit.d.ts +70 -0
  173. package/dist/src/tools/edit.js +816 -0
  174. package/dist/src/tools/edit.js.map +1 -0
  175. package/dist/src/tools/exa-web-search.d.ts +27 -0
  176. package/dist/src/tools/exa-web-search.js +153 -0
  177. package/dist/src/tools/exa-web-search.js.map +1 -0
  178. package/dist/src/tools/glob.d.ts +55 -0
  179. package/dist/src/tools/glob.js +284 -0
  180. package/dist/src/tools/glob.js.map +1 -0
  181. package/dist/src/tools/google-web-fetch.d.ts +34 -0
  182. package/dist/src/tools/google-web-fetch.js +417 -0
  183. package/dist/src/tools/google-web-fetch.js.map +1 -0
  184. package/dist/src/tools/google-web-search-invocation.d.ts +53 -0
  185. package/dist/src/tools/google-web-search-invocation.js +180 -0
  186. package/dist/src/tools/google-web-search-invocation.js.map +1 -0
  187. package/dist/src/tools/google-web-search.d.ts +16 -0
  188. package/dist/src/tools/google-web-search.js +34 -0
  189. package/dist/src/tools/google-web-search.js.map +1 -0
  190. package/dist/src/tools/grep.d.ts +56 -0
  191. package/dist/src/tools/grep.js +883 -0
  192. package/dist/src/tools/grep.js.map +1 -0
  193. package/dist/src/tools/insert_at_line.d.ts +41 -0
  194. package/dist/src/tools/insert_at_line.js +287 -0
  195. package/dist/src/tools/insert_at_line.js.map +1 -0
  196. package/dist/src/tools/list-subagents.d.ts +31 -0
  197. package/dist/src/tools/list-subagents.js +122 -0
  198. package/dist/src/tools/list-subagents.js.map +1 -0
  199. package/dist/src/tools/ls.d.ts +71 -0
  200. package/dist/src/tools/ls.js +238 -0
  201. package/dist/src/tools/ls.js.map +1 -0
  202. package/dist/src/tools/memoryTool.d.ts +66 -0
  203. package/dist/src/tools/memoryTool.js +435 -0
  204. package/dist/src/tools/memoryTool.js.map +1 -0
  205. package/dist/src/tools/modifiable-tool.d.ts +37 -0
  206. package/dist/src/tools/modifiable-tool.js +120 -0
  207. package/dist/src/tools/modifiable-tool.js.map +1 -0
  208. package/dist/src/tools/read-file.d.ts +49 -0
  209. package/dist/src/tools/read-file.js +279 -0
  210. package/dist/src/tools/read-file.js.map +1 -0
  211. package/dist/src/tools/read-many-files.d.ts +60 -0
  212. package/dist/src/tools/read-many-files.js +529 -0
  213. package/dist/src/tools/read-many-files.js.map +1 -0
  214. package/dist/src/tools/read_line_range.d.ts +47 -0
  215. package/dist/src/tools/read_line_range.js +248 -0
  216. package/dist/src/tools/read_line_range.js.map +1 -0
  217. package/dist/src/tools/ripGrep.d.ts +41 -0
  218. package/dist/src/tools/ripGrep.js +395 -0
  219. package/dist/src/tools/ripGrep.js.map +1 -0
  220. package/dist/src/tools/shell.d.ts +60 -0
  221. package/dist/src/tools/shell.js +735 -0
  222. package/dist/src/tools/shell.js.map +1 -0
  223. package/dist/src/tools/structural-analysis.d.ts +27 -0
  224. package/dist/src/tools/structural-analysis.js +1089 -0
  225. package/dist/src/tools/structural-analysis.js.map +1 -0
  226. package/dist/src/tools/stubs.d.ts +10 -0
  227. package/dist/src/tools/stubs.js +6 -0
  228. package/dist/src/tools/stubs.js.map +1 -0
  229. package/dist/src/tools/task.d.ts +41 -0
  230. package/dist/src/tools/task.js +195 -0
  231. package/dist/src/tools/task.js.map +1 -0
  232. package/dist/src/tools/todo-events.d.ts +22 -0
  233. package/dist/src/tools/todo-events.js +24 -0
  234. package/dist/src/tools/todo-events.js.map +1 -0
  235. package/dist/src/tools/todo-pause.d.ts +29 -0
  236. package/dist/src/tools/todo-pause.js +172 -0
  237. package/dist/src/tools/todo-pause.js.map +1 -0
  238. package/dist/src/tools/todo-read.d.ts +18 -0
  239. package/dist/src/tools/todo-read.js +98 -0
  240. package/dist/src/tools/todo-read.js.map +1 -0
  241. package/dist/src/tools/todo-store.d.ts +35 -0
  242. package/dist/src/tools/todo-store.js +124 -0
  243. package/dist/src/tools/todo-store.js.map +1 -0
  244. package/dist/src/tools/todo-write.d.ts +29 -0
  245. package/dist/src/tools/todo-write.js +366 -0
  246. package/dist/src/tools/todo-write.js.map +1 -0
  247. package/dist/src/tools/tool-registry.d.ts +156 -0
  248. package/dist/src/tools/tool-registry.js +623 -0
  249. package/dist/src/tools/tool-registry.js.map +1 -0
  250. package/dist/src/tools/tools.d.ts +403 -0
  251. package/dist/src/tools/tools.js +519 -0
  252. package/dist/src/tools/tools.js.map +1 -0
  253. package/dist/src/tools/write-file.d.ts +45 -0
  254. package/dist/src/tools/write-file.js +320 -0
  255. package/dist/src/tools/write-file.js.map +1 -0
  256. package/dist/src/types/index.d.ts +17 -0
  257. package/dist/src/types/index.js +9 -0
  258. package/dist/src/types/index.js.map +1 -0
  259. package/dist/src/types/provider-content-types.d.ts +56 -0
  260. package/dist/src/types/provider-content-types.js +6 -0
  261. package/dist/src/types/provider-content-types.js.map +1 -0
  262. package/dist/src/types/todo-schemas.d.ts +263 -0
  263. package/dist/src/types/todo-schemas.js +32 -0
  264. package/dist/src/types/todo-schemas.js.map +1 -0
  265. package/dist/src/types/tool-confirmation-types.d.ts +34 -0
  266. package/dist/src/types/tool-confirmation-types.js +29 -0
  267. package/dist/src/types/tool-confirmation-types.js.map +1 -0
  268. package/dist/src/types/tool-context.d.ts +31 -0
  269. package/dist/src/types/tool-context.js +6 -0
  270. package/dist/src/types/tool-context.js.map +1 -0
  271. package/dist/src/types/tool-error.d.ts +69 -0
  272. package/dist/src/types/tool-error.js +94 -0
  273. package/dist/src/types/tool-error.js.map +1 -0
  274. package/dist/src/types/tool-names.d.ts +57 -0
  275. package/dist/src/types/tool-names.js +64 -0
  276. package/dist/src/types/tool-names.js.map +1 -0
  277. package/dist/src/utils/EmojiFilter.d.ts +134 -0
  278. package/dist/src/utils/EmojiFilter.js +370 -0
  279. package/dist/src/utils/EmojiFilter.js.map +1 -0
  280. package/dist/src/utils/ast-grep-utils.d.ts +42 -0
  281. package/dist/src/utils/ast-grep-utils.js +140 -0
  282. package/dist/src/utils/ast-grep-utils.js.map +1 -0
  283. package/dist/src/utils/debugLogger.d.ts +11 -0
  284. package/dist/src/utils/debugLogger.js +16 -0
  285. package/dist/src/utils/debugLogger.js.map +1 -0
  286. package/dist/src/utils/diffOptions.d.ts +14 -0
  287. package/dist/src/utils/diffOptions.js +46 -0
  288. package/dist/src/utils/diffOptions.js.map +1 -0
  289. package/dist/src/utils/editor.d.ts +39 -0
  290. package/dist/src/utils/editor.js +212 -0
  291. package/dist/src/utils/editor.js.map +1 -0
  292. package/dist/src/utils/ensure-dirs.d.ts +10 -0
  293. package/dist/src/utils/ensure-dirs.js +16 -0
  294. package/dist/src/utils/ensure-dirs.js.map +1 -0
  295. package/dist/src/utils/errors.d.ts +59 -0
  296. package/dist/src/utils/errors.js +178 -0
  297. package/dist/src/utils/errors.js.map +1 -0
  298. package/dist/src/utils/fetch.d.ts +11 -0
  299. package/dist/src/utils/fetch.js +74 -0
  300. package/dist/src/utils/fetch.js.map +1 -0
  301. package/dist/src/utils/fileUtils.d.ts +32 -0
  302. package/dist/src/utils/fileUtils.js +363 -0
  303. package/dist/src/utils/fileUtils.js.map +1 -0
  304. package/dist/src/utils/fuzzy-replacer.d.ts +61 -0
  305. package/dist/src/utils/fuzzy-replacer.js +492 -0
  306. package/dist/src/utils/fuzzy-replacer.js.map +1 -0
  307. package/dist/src/utils/gitLineChanges.d.ts +12 -0
  308. package/dist/src/utils/gitLineChanges.js +171 -0
  309. package/dist/src/utils/gitLineChanges.js.map +1 -0
  310. package/dist/src/utils/gitUtils.d.ts +6 -0
  311. package/dist/src/utils/gitUtils.js +31 -0
  312. package/dist/src/utils/gitUtils.js.map +1 -0
  313. package/dist/src/utils/lsp-diagnostics-helper.d.ts +27 -0
  314. package/dist/src/utils/lsp-diagnostics-helper.js +62 -0
  315. package/dist/src/utils/lsp-diagnostics-helper.js.map +1 -0
  316. package/dist/src/utils/mediaUtils.d.ts +38 -0
  317. package/dist/src/utils/mediaUtils.js +22 -0
  318. package/dist/src/utils/mediaUtils.js.map +1 -0
  319. package/dist/src/utils/pathValidation.d.ts +7 -0
  320. package/dist/src/utils/pathValidation.js +39 -0
  321. package/dist/src/utils/pathValidation.js.map +1 -0
  322. package/dist/src/utils/paths.d.ts +7 -0
  323. package/dist/src/utils/paths.js +158 -0
  324. package/dist/src/utils/paths.js.map +1 -0
  325. package/dist/src/utils/resolveTextSearchTarget.d.ts +17 -0
  326. package/dist/src/utils/resolveTextSearchTarget.js +45 -0
  327. package/dist/src/utils/resolveTextSearchTarget.js.map +1 -0
  328. package/dist/src/utils/retry.d.ts +17 -0
  329. package/dist/src/utils/retry.js +185 -0
  330. package/dist/src/utils/retry.js.map +1 -0
  331. package/dist/src/utils/ripgrepPathResolver.d.ts +23 -0
  332. package/dist/src/utils/ripgrepPathResolver.js +179 -0
  333. package/dist/src/utils/ripgrepPathResolver.js.map +1 -0
  334. package/dist/src/utils/safeJsonStringify.d.ts +9 -0
  335. package/dist/src/utils/safeJsonStringify.js +21 -0
  336. package/dist/src/utils/safeJsonStringify.js.map +1 -0
  337. package/dist/src/utils/schemaValidator.d.ts +13 -0
  338. package/dist/src/utils/schemaValidator.js +275 -0
  339. package/dist/src/utils/schemaValidator.js.map +1 -0
  340. package/dist/src/utils/terminalSerializer.d.ts +33 -0
  341. package/dist/src/utils/terminalSerializer.js +6 -0
  342. package/dist/src/utils/terminalSerializer.js.map +1 -0
  343. package/dist/src/utils/todoContextTracker.d.ts +12 -0
  344. package/dist/src/utils/todoContextTracker.js +28 -0
  345. package/dist/src/utils/todoContextTracker.js.map +1 -0
  346. package/dist/src/utils/todoFormatter.d.ts +24 -0
  347. package/dist/src/utils/todoFormatter.js +157 -0
  348. package/dist/src/utils/todoFormatter.js.map +1 -0
  349. package/dist/src/utils/todoReminderService.d.ts +22 -0
  350. package/dist/src/utils/todoReminderService.js +43 -0
  351. package/dist/src/utils/todoReminderService.js.map +1 -0
  352. package/dist/src/utils/tool-key-storage-facade.d.ts +32 -0
  353. package/dist/src/utils/tool-key-storage-facade.js +56 -0
  354. package/dist/src/utils/tool-key-storage-facade.js.map +1 -0
  355. package/dist/src/utils/tool-key-storage-types.d.ts +56 -0
  356. package/dist/src/utils/tool-key-storage-types.js +56 -0
  357. package/dist/src/utils/tool-key-storage-types.js.map +1 -0
  358. package/dist/src/utils/toolOutputLimiter.d.ts +29 -0
  359. package/dist/src/utils/toolOutputLimiter.js +107 -0
  360. package/dist/src/utils/toolOutputLimiter.js.map +1 -0
  361. package/dist/src/utils/unicodeUtils.d.ts +55 -0
  362. package/dist/src/utils/unicodeUtils.js +129 -0
  363. package/dist/src/utils/unicodeUtils.js.map +1 -0
  364. package/package.json +75 -0
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,294 @@
1
+ <h1>
2
+ <img src="docs/assets/llxprt.svg" alt="LLxprt logo" width="42" />
3
+ <a href="https://vybestack.dev/llxprt-code.html">LLxprt Code</a>
4
+ </h1>
5
+
6
+ [![LLxprt Code CI](https://github.com/vybestack/llxprt-code/actions/workflows/ci.yml/badge.svg)](https://github.com/vybestack/llxprt-code/actions/workflows/ci.yml)
7
+ &nbsp;[![Discord Server](https://dcbadge.limes.pink/api/server/https://discord.gg/Wc6dZqWWYv?style=flat)](https://discord.gg/Wc6dZqWWYv)&nbsp;![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/vybestack/llxprt-code?utm_source=oss&utm_medium=github&utm_campaign=vybestack%2Fllxprt-code&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews)
8
+
9
+ ![LLxprt Code Screenshot](./docs/assets/llxprt-screenshot.png)
10
+
11
+ **AI-powered coding assistant that works with any LLM provider.** Command-line interface for querying and editing codebases, generating applications, and automating development workflows.
12
+
13
+ ## Free & Subscription Options
14
+
15
+ Get started immediately with powerful LLM options:
16
+
17
+ ```bash
18
+ # Free Gemini models
19
+ /auth gemini enable
20
+ /provider gemini
21
+ /model gemini-3-flash-preview
22
+
23
+ # Your Claude Pro / Max subscription
24
+ /auth anthropic enable
25
+ /provider anthropic
26
+ /model claude-sonnet-4-8
27
+
28
+ # Your ChatGPT Plus / Pro subscription (Codex)
29
+ /auth codex enable
30
+ /provider codex
31
+ /model gpt-5.5
32
+
33
+ # Kimi subscription (K2 Thinking with reasoning)
34
+ /provider kimi
35
+ /key **************
36
+ /model kimi-for-coding
37
+ ```
38
+
39
+ ## Why Choose LLxprt Code?
40
+
41
+ - **Use Your Existing Subscriptions**: Use Claude Pro/Max, ChatGPT Plus/Pro (Codex) directly via OAuth. Use Kimi/Synthetic/Chutes subscriptions via keys.
42
+ - **Multi-Account Failover**: Configure multiple OAuth accounts that automatically failover on rate limits
43
+ - **Load Balancer Profiles**: Balance requests across providers or accounts with automatic failover
44
+ - **Free Tier Support**: Start coding immediately with Gemini or Qwen free tiers
45
+ - **Provider Flexibility**: Switch between any Anthropic, Gemini, OpenAI, Kimi, or OpenAI-compatible provider
46
+ - **Top Open Models**: Works seamlessly with GLM 5, Kimi K2.5, MiniMax M2.5, and Qwen 3 Coder Next
47
+ - **Local Models**: Run models locally with LM Studio, llama.cpp for complete privacy
48
+ - **Privacy First**: No telemetry by default, local processing available
49
+ - **Subagent Flexibility**: Create agents with different models, providers, or settings
50
+ - **Interactive REPL**: Beautiful terminal UI with multiple themes
51
+ - **Zed Integration**: Native Zed editor integration for seamless workflow
52
+
53
+ ```bash
54
+ # macOS (Homebrew)
55
+ brew tap vybestack/homebrew-tap
56
+ brew update
57
+ brew install llxprt-code
58
+
59
+ # npm
60
+ npm install -g @vybestack/llxprt-code
61
+
62
+ # Start coding
63
+ llxprt
64
+
65
+ # Try without installing
66
+ npx @vybestack/llxprt-code --provider synthetic --model hf:zai-org/GLM-5 --keyfile ~/.synthetic_key "simplify the README.md"
67
+ ```
68
+
69
+ ## What is LLxprt Code?
70
+
71
+ LLxprt Code is a command-line AI assistant designed for developers who want powerful LLM capabilities without leaving their terminal. Unlike GitHub Copilot or ChatGPT, LLxprt Code works with **any provider** and can run **locally** for complete privacy.
72
+
73
+ **Key differences:**
74
+
75
+ - **Open source & community driven**: Not locked into proprietary ecosystems
76
+ - **Provider agnostic**: Not locked into one AI service
77
+ - **Local-first**: Run entirely offline if needed
78
+ - **Developer-centric**: Built specifically for coding workflows
79
+ - **Terminal native**: Designed for CLI workflows, not web interfaces
80
+
81
+ ## Quick Start
82
+
83
+ 1. **Prerequisites:** Node.js 20+ installed (not required for Homebrew)
84
+ 2. **Install:**
85
+
86
+ ```bash
87
+ # macOS (Homebrew)
88
+ brew tap vybestack/homebrew-tap
89
+ brew update
90
+ brew install llxprt-code
91
+
92
+ # npm
93
+ npm install -g @vybestack/llxprt-code
94
+ # Or try without installing:
95
+ npx @vybestack/llxprt-code
96
+ ```
97
+
98
+ 3. **Run:** `llxprt`
99
+ 4. **Choose provider:** Use `/provider` to select your preferred LLM service
100
+ 5. **Start coding:** Ask questions, generate code, or analyze projects
101
+
102
+ **First session example:**
103
+
104
+ ```bash
105
+ cd your-project/
106
+ llxprt
107
+ > Explain the architecture of this codebase and suggest improvements
108
+ > Create a test file for the user authentication module
109
+ > Help me debug this error: [paste error message]
110
+ ```
111
+
112
+ ## Key Features
113
+
114
+ - **Subscription OAuth** - Use Claude Pro/Max, ChatGPT Plus/Pro (Codex), or Kimi subscriptions directly
115
+ - **Free Tiers** - Gemini, Qwen free tiers with generous limits
116
+ - **Multi-Account Failover** - Configure multiple OAuth buckets that failover automatically on rate limits
117
+ - **Load Balancer Profiles** - Balance across providers/accounts with roundrobin or failover policies
118
+ - **Extensive Provider Support** - Anthropic, Gemini, OpenAI, Kimi, and any OpenAI-compatible provider [**Provider Guide →**](./docs/providers/quick-reference.md)
119
+ - **Top Open Models** - GLM 5, Kimi K2.5, MiniMax M2.5, Qwen 3 Coder Next
120
+ - **Local Model Support** - LM Studio, llama.cpp, Ollama for complete privacy
121
+ - **Profile System** - Save provider configurations and model settings
122
+ - **Advanced Subagents** - Isolated AI assistants with different models/providers
123
+ - **MCP Integration** - Connect to external tools and services
124
+ - **Beautiful Terminal UI** - Multiple themes with syntax highlighting
125
+
126
+ ## Interactive vs Non-Interactive Workflows
127
+
128
+ **Interactive Mode (REPL):**
129
+ Perfect for exploration, rapid prototyping, and iterative development:
130
+
131
+ ```bash
132
+ # Start interactive session
133
+ llxprt
134
+
135
+ > Explore this codebase and suggest improvements
136
+ > Create a REST API endpoint with tests
137
+ > Debug this authentication issue
138
+ > Optimize this database query
139
+ ```
140
+
141
+ **Non-Interactive Mode:**
142
+ Ideal for automation, CI/CD, and scripted workflows:
143
+
144
+ ```bash
145
+ # Single command with immediate response
146
+ llxprt --profile-load zai-glm5 "Refactor this function for better readability"
147
+ llxprt "Generate unit tests for payment module" > tests/payment.test.js
148
+ ```
149
+
150
+ ## Top Open Weight Models
151
+
152
+ LLxprt Code works seamlessly with the best open-weight models:
153
+
154
+ ### Kimi K2.6
155
+
156
+ - **Context Window**: 262,144 tokens
157
+ - **Architecture**: Trillion-parameter MoE (32B active)
158
+ - **Strengths**: Deep reasoning, multi-step tool orchestration, 200-300 sequential tool calls
159
+ - **Special**: Native thinking/reasoning mode with tool interleaving
160
+
161
+ ```bash
162
+ /provider kimi
163
+ /model kimi-for-coding
164
+ # Or via Synthetic/Chutes:
165
+ /provider synthetic
166
+ /model hf:moonshotai/Kimi-K2.5
167
+ ```
168
+
169
+ ### GLM 5.2
170
+
171
+ - **Context Window**: 200,000 tokens
172
+ - **Max Output**: 131,072 tokens
173
+ - **Architecture**: Mixture-of-Experts with 355B total parameters (32B active)
174
+ - **Strengths**: Coding, multi-step planning, tool integration
175
+
176
+ ### MiniMax M3
177
+
178
+ - **Context Window**: 1M tokens
179
+ - **Architecture**: MoE with 230B total parameters (10B active)
180
+ - **Strengths**: Coding workflows, multi-step agents, tool calling
181
+ - **Cost**: Only 8% of Claude Sonnet, ~2x faster
182
+
183
+ ### Qwen 3 Coder Next
184
+
185
+ - **Context Window**: 262,144 tokens
186
+ - **Max Output**: 65,536 tokens
187
+ - **Architecture**: MoE with 480B total parameters (35B active)
188
+ - **Strengths**: Agentic coding, browser automation, tool usage
189
+ - **Performance**: State-of-the-art on SWE-bench Verified (69.6%)
190
+
191
+ ## Local Models
192
+
193
+ Run models completely offline for maximum privacy:
194
+
195
+ ```bash
196
+ # With LM Studio
197
+ /provider openai
198
+ /baseurl http://localhost:1234/v1/
199
+ /model your-local-model
200
+
201
+ # With Ollama
202
+ /provider ollama
203
+ /model codellama:13b
204
+ ```
205
+
206
+ Supported local providers:
207
+
208
+ - **LM Studio**: Easy Windows/Mac/Linux setup
209
+ - **llama.cpp**: Maximum performance and control
210
+ - **Ollama**: Simple model management
211
+ - **Any OpenAI-compatible API**: Full flexibility
212
+
213
+ ## Advanced Subagents
214
+
215
+ Create specialized AI assistants with isolated contexts and different configurations:
216
+
217
+ ```bash
218
+ # Subagents run with custom profiles and tool access
219
+ # Access via the commands interface
220
+ /subagent list
221
+ /subagent create <name>
222
+ ```
223
+
224
+ Each subagent can be configured with:
225
+
226
+ - **Different providers** (Gemini vs Anthropic vs Qwen vs Local)
227
+ - **Different models** (Flash vs Sonnet vs GLM 5 vs Custom)
228
+ - **Different tool access** (Restrict or allow specific tools)
229
+ - **Different settings** (Temperature, timeouts, max turns)
230
+ - **Isolated runtime context** (No memory or state crossover)
231
+
232
+ Subagents are designed for:
233
+
234
+ - **Specialized tasks** (Code review, debugging, documentation)
235
+ - **Different expertise areas** (Frontend vs Backend vs DevOps)
236
+ - **Tool-limited environments** (Read-only analysis vs Full development)
237
+ - **Experimental configurations** (Testing new models or settings)
238
+
239
+ **[Full Subagent Documentation →](./docs/subagents.md)**
240
+
241
+ ## Zed Integration
242
+
243
+ LLxprt Code integrates with the [Zed editor](https://zed.dev) using the Agent Communication Protocol (ACP):
244
+
245
+ ```json
246
+ {
247
+ "agent_servers": {
248
+ "llxprt": {
249
+ "command": "/opt/homebrew/bin/llxprt",
250
+ "args": ["--experimental-acp", "--profile-load", "my-profile", "--yolo"]
251
+ }
252
+ }
253
+ }
254
+ ```
255
+
256
+ Configure in Zed's `settings.json` under `agent_servers`. Use `which llxprt` to find your binary path.
257
+
258
+ Features:
259
+
260
+ - **In-editor chat**: Direct AI interaction without leaving Zed
261
+ - **Code selection**: Ask about specific code selections
262
+ - **Project awareness**: Full context of your open workspace
263
+ - **Multiple providers**: Configure different agents for Claude, OpenAI, Gemini, etc.
264
+
265
+ **[Zed Integration Guide →](./docs/zed-integration.md)**
266
+
267
+ ** [Complete Provider Guide →](./docs/cli/providers.md)**
268
+
269
+ ## Advanced Features
270
+
271
+ - **Settings & Profiles**: Fine-tune model parameters and save configurations
272
+ - **Subagents**: Create specialized assistants for different tasks
273
+ - **MCP Servers**: Connect external tools and data sources
274
+ - **Checkpointing**: Save and resume complex conversations
275
+ - **IDE Integration**: Connect to VS Code and other editors
276
+
277
+ ** [Full Documentation →](./docs/index.md)**
278
+
279
+ ## Migration & Resources
280
+
281
+ - **From Gemini CLI**: [Migration Guide](./docs/gemini-cli-tips.md)
282
+ - **Local Models Setup**: [Local Models Guide](./docs/local-models.md)
283
+ - **Command Reference**: [CLI Commands](./docs/cli/commands.md)
284
+ - **Troubleshooting**: [Common Issues](./docs/troubleshooting.md)
285
+
286
+ ## Privacy & Terms
287
+
288
+ LLxprt Code does not collect telemetry by default. Your data stays with you unless you choose to send it to external AI providers.
289
+
290
+ When using external services, their respective terms of service apply:
291
+
292
+ - [OpenAI Terms](https://openai.com/policies/terms-of-use)
293
+ - [Anthropic Terms](https://www.anthropic.com/legal/terms)
294
+ - [Google Terms](https://policies.google.com/terms)
File without changes
@@ -0,0 +1 @@
1
+ export * from './src/index.js';
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './src/index.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,29 @@
1
+ export declare const READ_FILE_FIXTURE: {
2
+ readonly capturedAt: "2026-06-08T23:45:10.325Z";
3
+ readonly contract: {
4
+ readonly llmContentType: "string | Part[]";
5
+ readonly returnDisplayType: "string";
6
+ readonly errorType: "{ message: string; type?: ToolErrorType } | undefined";
7
+ readonly suppressDisplayType: "boolean | undefined";
8
+ };
9
+ readonly exampleContent: "Hello, fixture world!";
10
+ readonly expectedLlmContentContains: readonly ["Hello, fixture world!"];
11
+ };
12
+ export declare const WRITE_FILE_FIXTURE: {
13
+ readonly capturedAt: "2026-06-08T23:45:10.325Z";
14
+ readonly contract: {
15
+ readonly llmContentType: "string | Part[]";
16
+ readonly returnDisplayType: "string";
17
+ readonly errorType: "{ message: string; type?: ToolErrorType } | undefined";
18
+ };
19
+ readonly expectedWrittenContent: "Written by fixture test";
20
+ };
21
+ export declare const GLOB_FIXTURE: {
22
+ readonly capturedAt: "2026-06-08T23:45:10.325Z";
23
+ readonly contract: {
24
+ readonly llmContentType: "string | Part[]";
25
+ readonly returnDisplayType: "string";
26
+ };
27
+ readonly expectedPatterns: readonly ["*.ts", "*.txt"];
28
+ readonly expectedFilePatterns: readonly [".ts$", ".txt$"];
29
+ };
@@ -0,0 +1,30 @@
1
+ export const READ_FILE_FIXTURE = {
2
+ capturedAt: '2026-06-08T23:45:10.325Z',
3
+ contract: {
4
+ llmContentType: 'string | Part[]',
5
+ returnDisplayType: 'string',
6
+ errorType: '{ message: string; type?: ToolErrorType } | undefined',
7
+ suppressDisplayType: 'boolean | undefined',
8
+ },
9
+ exampleContent: 'Hello, fixture world!',
10
+ expectedLlmContentContains: ['Hello, fixture world!'],
11
+ };
12
+ export const WRITE_FILE_FIXTURE = {
13
+ capturedAt: '2026-06-08T23:45:10.325Z',
14
+ contract: {
15
+ llmContentType: 'string | Part[]',
16
+ returnDisplayType: 'string',
17
+ errorType: '{ message: string; type?: ToolErrorType } | undefined',
18
+ },
19
+ expectedWrittenContent: 'Written by fixture test',
20
+ };
21
+ export const GLOB_FIXTURE = {
22
+ capturedAt: '2026-06-08T23:45:10.325Z',
23
+ contract: {
24
+ llmContentType: 'string | Part[]',
25
+ returnDisplayType: 'string',
26
+ },
27
+ expectedPatterns: ['*.ts', '*.txt'],
28
+ expectedFilePatterns: ['.ts$', '.txt$'],
29
+ };
30
+ //# sourceMappingURL=filesystem-tool-fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filesystem-tool-fixtures.js","sourceRoot":"","sources":["../../../../src/__tests__/fixtures/filesystem-tool-fixtures.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,UAAU,EAAE,0BAA0B;IACtC,QAAQ,EAAE;QACR,cAAc,EAAE,iBAAiB;QACjC,iBAAiB,EAAE,QAAQ;QAC3B,SAAS,EAAE,uDAAuD;QAClE,mBAAmB,EAAE,qBAAqB;KAC3C;IACD,cAAc,EAAE,uBAAuB;IACvC,0BAA0B,EAAE,CAAC,uBAAuB,CAAC;CAC7C,CAAC;AAEX,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,UAAU,EAAE,0BAA0B;IACtC,QAAQ,EAAE;QACR,cAAc,EAAE,iBAAiB;QACjC,iBAAiB,EAAE,QAAQ;QAC3B,SAAS,EAAE,uDAAuD;KACnE;IACD,sBAAsB,EAAE,yBAAyB;CACzC,CAAC;AAEX,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,UAAU,EAAE,0BAA0B;IACtC,QAAQ,EAAE;QACR,cAAc,EAAE,iBAAiB;QACjC,iBAAiB,EAAE,QAAQ;KAC5B;IACD,gBAAgB,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;IACnC,oBAAoB,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;CAC/B,CAAC"}
@@ -0,0 +1,39 @@
1
+ export declare const MASK_KEY_FIXTURES: readonly [{
2
+ readonly input: "sk-1234567890abcdef";
3
+ readonly output: "sk***************ef";
4
+ }, {
5
+ readonly input: "short";
6
+ readonly output: "*****";
7
+ }, {
8
+ readonly input: "";
9
+ readonly output: "";
10
+ }, {
11
+ readonly input: "exactly8c";
12
+ readonly output: "ex*****8c";
13
+ }, {
14
+ readonly input: "apikey-with-lots-of-characters-here";
15
+ readonly output: "ap*******************************re";
16
+ }];
17
+ export declare const SUPPORTED_TOOL_NAMES_FIXTURE: readonly ["exa"];
18
+ export declare const VALID_KEY_CHECK_FIXTURES: readonly [{
19
+ readonly input: "exa";
20
+ readonly isValid: true;
21
+ }, {
22
+ readonly input: "codesearch";
23
+ readonly isValid: false;
24
+ }, {
25
+ readonly input: "invalid_key";
26
+ readonly isValid: false;
27
+ }, {
28
+ readonly input: "google-web-search";
29
+ readonly isValid: false;
30
+ }];
31
+ export declare const KEY_ENTRY_FIXTURES: readonly [{
32
+ readonly name: "exa";
33
+ readonly entry: {
34
+ readonly toolKeyName: "exa";
35
+ readonly displayName: "Exa Search";
36
+ readonly urlParamName: "exaApiKey";
37
+ readonly description: "API key for Exa web and code search";
38
+ };
39
+ }];
@@ -0,0 +1,53 @@
1
+ export const MASK_KEY_FIXTURES = [
2
+ {
3
+ input: 'sk-1234567890abcdef',
4
+ output: 'sk***************ef',
5
+ },
6
+ {
7
+ input: 'short',
8
+ output: '*****',
9
+ },
10
+ {
11
+ input: '',
12
+ output: '',
13
+ },
14
+ {
15
+ input: 'exactly8c',
16
+ output: 'ex*****8c',
17
+ },
18
+ {
19
+ input: 'apikey-with-lots-of-characters-here',
20
+ output: 'ap*******************************re',
21
+ },
22
+ ];
23
+ export const SUPPORTED_TOOL_NAMES_FIXTURE = ['exa'];
24
+ export const VALID_KEY_CHECK_FIXTURES = [
25
+ {
26
+ input: 'exa',
27
+ isValid: true,
28
+ },
29
+ {
30
+ input: 'codesearch',
31
+ isValid: false,
32
+ },
33
+ {
34
+ input: 'invalid_key',
35
+ isValid: false,
36
+ },
37
+ {
38
+ input: 'google-web-search',
39
+ isValid: false,
40
+ },
41
+ ];
42
+ export const KEY_ENTRY_FIXTURES = [
43
+ {
44
+ name: 'exa',
45
+ entry: {
46
+ toolKeyName: 'exa',
47
+ displayName: 'Exa Search',
48
+ urlParamName: 'exaApiKey',
49
+ description: 'API key for Exa web and code search',
50
+ },
51
+ },
52
+ ];
53
+ //# sourceMappingURL=key-storage-fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"key-storage-fixtures.js","sourceRoot":"","sources":["../../../../src/__tests__/fixtures/key-storage-fixtures.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B;QACE,KAAK,EAAE,qBAAqB;QAC5B,MAAM,EAAE,qBAAqB;KAC9B;IACD;QACE,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,OAAO;KAChB;IACD;QACE,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;KACX;IACD;QACE,KAAK,EAAE,WAAW;QAClB,MAAM,EAAE,WAAW;KACpB;IACD;QACE,KAAK,EAAE,qCAAqC;QAC5C,MAAM,EAAE,qCAAqC;KAC9C;CACO,CAAC;AAEX,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,KAAK,CAAU,CAAC;AAE7D,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC;QACE,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,IAAI;KACd;IACD;QACE,KAAK,EAAE,YAAY;QACnB,OAAO,EAAE,KAAK;KACf;IACD;QACE,KAAK,EAAE,aAAa;QACpB,OAAO,EAAE,KAAK;KACf;IACD;QACE,KAAK,EAAE,mBAAmB;QAC1B,OAAO,EAAE,KAAK;KACf;CACO,CAAC;AAEX,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC;QACE,IAAI,EAAE,KAAK;QACX,KAAK,EAAE;YACL,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,YAAY;YACzB,YAAY,EAAE,WAAW;YACzB,WAAW,EAAE,qCAAqC;SACnD;KACF;CACO,CAAC"}