@blackbox_ai/blackbox-cli-core 0.0.4

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 (897) hide show
  1. package/LICENSE +203 -0
  2. package/README.md +420 -0
  3. package/dist/.last_build +0 -0
  4. package/dist/index.d.ts +13 -0
  5. package/dist/index.js +14 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/src/__mocks__/fs/promises.d.ts +11 -0
  8. package/dist/src/__mocks__/fs/promises.js +17 -0
  9. package/dist/src/__mocks__/fs/promises.js.map +1 -0
  10. package/dist/src/blackbox/blackboxContentGenerator.d.ts +70 -0
  11. package/dist/src/blackbox/blackboxContentGenerator.js +180 -0
  12. package/dist/src/blackbox/blackboxContentGenerator.js.map +1 -0
  13. package/dist/src/blackbox/blackboxContentGenerator.test.d.ts +6 -0
  14. package/dist/src/blackbox/blackboxContentGenerator.test.js +1178 -0
  15. package/dist/src/blackbox/blackboxContentGenerator.test.js.map +1 -0
  16. package/dist/src/blackbox/blackboxOAuth2.d.ts +191 -0
  17. package/dist/src/blackbox/blackboxOAuth2.js +566 -0
  18. package/dist/src/blackbox/blackboxOAuth2.js.map +1 -0
  19. package/dist/src/blackbox/blackboxOAuth2.test.d.ts +6 -0
  20. package/dist/src/blackbox/blackboxOAuth2.test.js +1718 -0
  21. package/dist/src/blackbox/blackboxOAuth2.test.js.map +1 -0
  22. package/dist/src/blackbox/sharedTokenManager.d.ts +196 -0
  23. package/dist/src/blackbox/sharedTokenManager.js +647 -0
  24. package/dist/src/blackbox/sharedTokenManager.js.map +1 -0
  25. package/dist/src/blackbox/sharedTokenManager.test.d.ts +7 -0
  26. package/dist/src/blackbox/sharedTokenManager.test.js +662 -0
  27. package/dist/src/blackbox/sharedTokenManager.test.js.map +1 -0
  28. package/dist/src/code_assist/codeAssist.d.ts +10 -0
  29. package/dist/src/code_assist/codeAssist.js +19 -0
  30. package/dist/src/code_assist/codeAssist.js.map +1 -0
  31. package/dist/src/code_assist/converter.d.ts +72 -0
  32. package/dist/src/code_assist/converter.js +159 -0
  33. package/dist/src/code_assist/converter.js.map +1 -0
  34. package/dist/src/code_assist/converter.test.d.ts +6 -0
  35. package/dist/src/code_assist/converter.test.js +362 -0
  36. package/dist/src/code_assist/converter.test.js.map +1 -0
  37. package/dist/src/code_assist/oauth2.d.ts +22 -0
  38. package/dist/src/code_assist/oauth2.js +368 -0
  39. package/dist/src/code_assist/oauth2.js.map +1 -0
  40. package/dist/src/code_assist/oauth2.test.d.ts +6 -0
  41. package/dist/src/code_assist/oauth2.test.js +436 -0
  42. package/dist/src/code_assist/oauth2.test.js.map +1 -0
  43. package/dist/src/code_assist/server.d.ts +37 -0
  44. package/dist/src/code_assist/server.js +125 -0
  45. package/dist/src/code_assist/server.js.map +1 -0
  46. package/dist/src/code_assist/server.test.d.ts +6 -0
  47. package/dist/src/code_assist/server.test.js +134 -0
  48. package/dist/src/code_assist/server.test.js.map +1 -0
  49. package/dist/src/code_assist/setup.d.ts +20 -0
  50. package/dist/src/code_assist/setup.js +101 -0
  51. package/dist/src/code_assist/setup.js.map +1 -0
  52. package/dist/src/code_assist/setup.test.d.ts +6 -0
  53. package/dist/src/code_assist/setup.test.js +171 -0
  54. package/dist/src/code_assist/setup.test.js.map +1 -0
  55. package/dist/src/code_assist/types.d.ts +148 -0
  56. package/dist/src/code_assist/types.js +46 -0
  57. package/dist/src/code_assist/types.js.map +1 -0
  58. package/dist/src/config/blackboxModels.d.ts +28 -0
  59. package/dist/src/config/blackboxModels.js +148 -0
  60. package/dist/src/config/blackboxModels.js.map +1 -0
  61. package/dist/src/config/config.d.ts +381 -0
  62. package/dist/src/config/config.js +753 -0
  63. package/dist/src/config/config.js.map +1 -0
  64. package/dist/src/config/config.test.d.ts +6 -0
  65. package/dist/src/config/config.test.js +674 -0
  66. package/dist/src/config/config.test.js.map +1 -0
  67. package/dist/src/config/flashFallback.test.d.ts +6 -0
  68. package/dist/src/config/flashFallback.test.js +87 -0
  69. package/dist/src/config/flashFallback.test.js.map +1 -0
  70. package/dist/src/config/models.d.ts +12 -0
  71. package/dist/src/config/models.js +13 -0
  72. package/dist/src/config/models.js.map +1 -0
  73. package/dist/src/config/storage.d.ts +32 -0
  74. package/dist/src/config/storage.js +90 -0
  75. package/dist/src/config/storage.js.map +1 -0
  76. package/dist/src/config/storage.test.d.ts +6 -0
  77. package/dist/src/config/storage.test.js +43 -0
  78. package/dist/src/config/storage.test.js.map +1 -0
  79. package/dist/src/core/__tests__/openaiTimeoutHandling.test.d.ts +6 -0
  80. package/dist/src/core/__tests__/openaiTimeoutHandling.test.js +292 -0
  81. package/dist/src/core/__tests__/openaiTimeoutHandling.test.js.map +1 -0
  82. package/dist/src/core/__tests__/orphanedToolCallsTest.d.ts +64 -0
  83. package/dist/src/core/__tests__/orphanedToolCallsTest.js +122 -0
  84. package/dist/src/core/__tests__/orphanedToolCallsTest.js.map +1 -0
  85. package/dist/src/core/client.d.ts +75 -0
  86. package/dist/src/core/client.js +826 -0
  87. package/dist/src/core/client.js.map +1 -0
  88. package/dist/src/core/client.test.d.ts +6 -0
  89. package/dist/src/core/client.test.js +2059 -0
  90. package/dist/src/core/client.test.js.map +1 -0
  91. package/dist/src/core/contentGenerator.d.ts +51 -0
  92. package/dist/src/core/contentGenerator.js +149 -0
  93. package/dist/src/core/contentGenerator.js.map +1 -0
  94. package/dist/src/core/contentGenerator.test.d.ts +6 -0
  95. package/dist/src/core/contentGenerator.test.js +133 -0
  96. package/dist/src/core/contentGenerator.test.js.map +1 -0
  97. package/dist/src/core/coreToolScheduler.d.ts +126 -0
  98. package/dist/src/core/coreToolScheduler.js +630 -0
  99. package/dist/src/core/coreToolScheduler.js.map +1 -0
  100. package/dist/src/core/coreToolScheduler.test.d.ts +6 -0
  101. package/dist/src/core/coreToolScheduler.test.js +1228 -0
  102. package/dist/src/core/coreToolScheduler.test.js.map +1 -0
  103. package/dist/src/core/geminiChat.d.ts +139 -0
  104. package/dist/src/core/geminiChat.js +636 -0
  105. package/dist/src/core/geminiChat.js.map +1 -0
  106. package/dist/src/core/geminiChat.test.d.ts +6 -0
  107. package/dist/src/core/geminiChat.test.js +1178 -0
  108. package/dist/src/core/geminiChat.test.js.map +1 -0
  109. package/dist/src/core/geminiRequest.d.ts +13 -0
  110. package/dist/src/core/geminiRequest.js +11 -0
  111. package/dist/src/core/geminiRequest.js.map +1 -0
  112. package/dist/src/core/geminiRequest.test.d.ts +6 -0
  113. package/dist/src/core/geminiRequest.test.js +73 -0
  114. package/dist/src/core/geminiRequest.test.js.map +1 -0
  115. package/dist/src/core/logger.d.ts +68 -0
  116. package/dist/src/core/logger.js +370 -0
  117. package/dist/src/core/logger.js.map +1 -0
  118. package/dist/src/core/logger.test.d.ts +6 -0
  119. package/dist/src/core/logger.test.js +591 -0
  120. package/dist/src/core/logger.test.js.map +1 -0
  121. package/dist/src/core/loggingContentGenerator.d.ts +25 -0
  122. package/dist/src/core/loggingContentGenerator.js +97 -0
  123. package/dist/src/core/loggingContentGenerator.js.map +1 -0
  124. package/dist/src/core/nonInteractiveToolExecutor.d.ts +10 -0
  125. package/dist/src/core/nonInteractiveToolExecutor.js +24 -0
  126. package/dist/src/core/nonInteractiveToolExecutor.js.map +1 -0
  127. package/dist/src/core/nonInteractiveToolExecutor.test.d.ts +6 -0
  128. package/dist/src/core/nonInteractiveToolExecutor.test.js +236 -0
  129. package/dist/src/core/nonInteractiveToolExecutor.test.js.map +1 -0
  130. package/dist/src/core/openaiContentGenerator/constants.d.ts +2 -0
  131. package/dist/src/core/openaiContentGenerator/constants.js +3 -0
  132. package/dist/src/core/openaiContentGenerator/constants.js.map +1 -0
  133. package/dist/src/core/openaiContentGenerator/converter.d.ts +107 -0
  134. package/dist/src/core/openaiContentGenerator/converter.js +802 -0
  135. package/dist/src/core/openaiContentGenerator/converter.js.map +1 -0
  136. package/dist/src/core/openaiContentGenerator/converter.test.d.ts +6 -0
  137. package/dist/src/core/openaiContentGenerator/converter.test.js +47 -0
  138. package/dist/src/core/openaiContentGenerator/converter.test.js.map +1 -0
  139. package/dist/src/core/openaiContentGenerator/errorHandler.d.ts +20 -0
  140. package/dist/src/core/openaiContentGenerator/errorHandler.js +82 -0
  141. package/dist/src/core/openaiContentGenerator/errorHandler.js.map +1 -0
  142. package/dist/src/core/openaiContentGenerator/errorHandler.test.d.ts +6 -0
  143. package/dist/src/core/openaiContentGenerator/errorHandler.test.js +287 -0
  144. package/dist/src/core/openaiContentGenerator/errorHandler.test.js.map +1 -0
  145. package/dist/src/core/openaiContentGenerator/index.d.ts +22 -0
  146. package/dist/src/core/openaiContentGenerator/index.js +41 -0
  147. package/dist/src/core/openaiContentGenerator/index.js.map +1 -0
  148. package/dist/src/core/openaiContentGenerator/openaiContentGenerator.d.ts +21 -0
  149. package/dist/src/core/openaiContentGenerator/openaiContentGenerator.js +105 -0
  150. package/dist/src/core/openaiContentGenerator/openaiContentGenerator.js.map +1 -0
  151. package/dist/src/core/openaiContentGenerator/openaiContentGenerator.test.d.ts +6 -0
  152. package/dist/src/core/openaiContentGenerator/openaiContentGenerator.test.js +230 -0
  153. package/dist/src/core/openaiContentGenerator/openaiContentGenerator.test.js.map +1 -0
  154. package/dist/src/core/openaiContentGenerator/pipeline.d.ts +66 -0
  155. package/dist/src/core/openaiContentGenerator/pipeline.js +256 -0
  156. package/dist/src/core/openaiContentGenerator/pipeline.js.map +1 -0
  157. package/dist/src/core/openaiContentGenerator/pipeline.test.d.ts +6 -0
  158. package/dist/src/core/openaiContentGenerator/pipeline.test.js +977 -0
  159. package/dist/src/core/openaiContentGenerator/pipeline.test.js.map +1 -0
  160. package/dist/src/core/openaiContentGenerator/provider/README.md +61 -0
  161. package/dist/src/core/openaiContentGenerator/provider/dashscope.d.ts +63 -0
  162. package/dist/src/core/openaiContentGenerator/provider/dashscope.js +241 -0
  163. package/dist/src/core/openaiContentGenerator/provider/dashscope.js.map +1 -0
  164. package/dist/src/core/openaiContentGenerator/provider/dashscope.test.d.ts +6 -0
  165. package/dist/src/core/openaiContentGenerator/provider/dashscope.test.js +707 -0
  166. package/dist/src/core/openaiContentGenerator/provider/dashscope.test.js.map +1 -0
  167. package/dist/src/core/openaiContentGenerator/provider/deepseek.d.ts +14 -0
  168. package/dist/src/core/openaiContentGenerator/provider/deepseek.js +52 -0
  169. package/dist/src/core/openaiContentGenerator/provider/deepseek.js.map +1 -0
  170. package/dist/src/core/openaiContentGenerator/provider/deepseek.test.d.ts +6 -0
  171. package/dist/src/core/openaiContentGenerator/provider/deepseek.test.js +103 -0
  172. package/dist/src/core/openaiContentGenerator/provider/deepseek.test.js.map +1 -0
  173. package/dist/src/core/openaiContentGenerator/provider/default.d.ts +15 -0
  174. package/dist/src/core/openaiContentGenerator/provider/default.js +38 -0
  175. package/dist/src/core/openaiContentGenerator/provider/default.js.map +1 -0
  176. package/dist/src/core/openaiContentGenerator/provider/default.test.d.ts +6 -0
  177. package/dist/src/core/openaiContentGenerator/provider/default.test.js +176 -0
  178. package/dist/src/core/openaiContentGenerator/provider/default.test.js.map +1 -0
  179. package/dist/src/core/openaiContentGenerator/provider/index.d.ts +5 -0
  180. package/dist/src/core/openaiContentGenerator/provider/index.js +5 -0
  181. package/dist/src/core/openaiContentGenerator/provider/index.js.map +1 -0
  182. package/dist/src/core/openaiContentGenerator/provider/openrouter.d.ts +8 -0
  183. package/dist/src/core/openaiContentGenerator/provider/openrouter.js +21 -0
  184. package/dist/src/core/openaiContentGenerator/provider/openrouter.js.map +1 -0
  185. package/dist/src/core/openaiContentGenerator/provider/openrouter.test.d.ts +6 -0
  186. package/dist/src/core/openaiContentGenerator/provider/openrouter.test.js +152 -0
  187. package/dist/src/core/openaiContentGenerator/provider/openrouter.test.js.map +1 -0
  188. package/dist/src/core/openaiContentGenerator/provider/types.d.ts +23 -0
  189. package/dist/src/core/openaiContentGenerator/provider/types.js +2 -0
  190. package/dist/src/core/openaiContentGenerator/provider/types.js.map +1 -0
  191. package/dist/src/core/openaiContentGenerator/streamingToolCallParser.d.ts +142 -0
  192. package/dist/src/core/openaiContentGenerator/streamingToolCallParser.js +363 -0
  193. package/dist/src/core/openaiContentGenerator/streamingToolCallParser.js.map +1 -0
  194. package/dist/src/core/openaiContentGenerator/streamingToolCallParser.test.d.ts +6 -0
  195. package/dist/src/core/openaiContentGenerator/streamingToolCallParser.test.js +537 -0
  196. package/dist/src/core/openaiContentGenerator/streamingToolCallParser.test.js.map +1 -0
  197. package/dist/src/core/openaiContentGenerator/telemetryService.d.ts +35 -0
  198. package/dist/src/core/openaiContentGenerator/telemetryService.js +146 -0
  199. package/dist/src/core/openaiContentGenerator/telemetryService.js.map +1 -0
  200. package/dist/src/core/openaiContentGenerator/telemetryService.test.d.ts +6 -0
  201. package/dist/src/core/openaiContentGenerator/telemetryService.test.js +978 -0
  202. package/dist/src/core/openaiContentGenerator/telemetryService.test.js.map +1 -0
  203. package/dist/src/core/prompts.d.ts +76 -0
  204. package/dist/src/core/prompts.js +860 -0
  205. package/dist/src/core/prompts.js.map +1 -0
  206. package/dist/src/core/prompts.test.d.ts +6 -0
  207. package/dist/src/core/prompts.test.js +436 -0
  208. package/dist/src/core/prompts.test.js.map +1 -0
  209. package/dist/src/core/tokenLimits.d.ts +25 -0
  210. package/dist/src/core/tokenLimits.js +175 -0
  211. package/dist/src/core/tokenLimits.js.map +1 -0
  212. package/dist/src/core/tokenLimits.test.d.ts +1 -0
  213. package/dist/src/core/tokenLimits.test.js +261 -0
  214. package/dist/src/core/tokenLimits.test.js.map +1 -0
  215. package/dist/src/core/turn.d.ts +140 -0
  216. package/dist/src/core/turn.js +168 -0
  217. package/dist/src/core/turn.js.map +1 -0
  218. package/dist/src/core/turn.test.d.ts +6 -0
  219. package/dist/src/core/turn.test.js +450 -0
  220. package/dist/src/core/turn.test.js.map +1 -0
  221. package/dist/src/generated/git-commit.d.ts +7 -0
  222. package/dist/src/generated/git-commit.js +10 -0
  223. package/dist/src/generated/git-commit.js.map +1 -0
  224. package/dist/src/ide/constants.d.ts +6 -0
  225. package/dist/src/ide/constants.js +7 -0
  226. package/dist/src/ide/constants.js.map +1 -0
  227. package/dist/src/ide/detect-ide.d.ts +25 -0
  228. package/dist/src/ide/detect-ide.js +104 -0
  229. package/dist/src/ide/detect-ide.js.map +1 -0
  230. package/dist/src/ide/detect-ide.test.d.ts +6 -0
  231. package/dist/src/ide/detect-ide.test.js +120 -0
  232. package/dist/src/ide/detect-ide.test.js.map +1 -0
  233. package/dist/src/ide/ide-client.d.ts +67 -0
  234. package/dist/src/ide/ide-client.js +424 -0
  235. package/dist/src/ide/ide-client.js.map +1 -0
  236. package/dist/src/ide/ide-client.test.d.ts +6 -0
  237. package/dist/src/ide/ide-client.test.js +165 -0
  238. package/dist/src/ide/ide-client.test.js.map +1 -0
  239. package/dist/src/ide/ide-installer.d.ts +14 -0
  240. package/dist/src/ide/ide-installer.js +107 -0
  241. package/dist/src/ide/ide-installer.js.map +1 -0
  242. package/dist/src/ide/ide-installer.test.d.ts +6 -0
  243. package/dist/src/ide/ide-installer.test.js +113 -0
  244. package/dist/src/ide/ide-installer.test.js.map +1 -0
  245. package/dist/src/ide/ideContext.d.ts +374 -0
  246. package/dist/src/ide/ideContext.js +147 -0
  247. package/dist/src/ide/ideContext.js.map +1 -0
  248. package/dist/src/ide/ideContext.test.d.ts +6 -0
  249. package/dist/src/ide/ideContext.test.js +265 -0
  250. package/dist/src/ide/ideContext.test.js.map +1 -0
  251. package/dist/src/ide/process-utils.d.ts +21 -0
  252. package/dist/src/ide/process-utils.js +164 -0
  253. package/dist/src/ide/process-utils.js.map +1 -0
  254. package/dist/src/ide/process-utils.test.d.ts +6 -0
  255. package/dist/src/ide/process-utils.test.js +158 -0
  256. package/dist/src/ide/process-utils.test.js.map +1 -0
  257. package/dist/src/index.d.ts +86 -0
  258. package/dist/src/index.js +97 -0
  259. package/dist/src/index.js.map +1 -0
  260. package/dist/src/index.test.d.ts +6 -0
  261. package/dist/src/index.test.js +12 -0
  262. package/dist/src/index.test.js.map +1 -0
  263. package/dist/src/mcp/google-auth-provider.d.ts +23 -0
  264. package/dist/src/mcp/google-auth-provider.js +72 -0
  265. package/dist/src/mcp/google-auth-provider.js.map +1 -0
  266. package/dist/src/mcp/google-auth-provider.test.d.ts +6 -0
  267. package/dist/src/mcp/google-auth-provider.test.js +89 -0
  268. package/dist/src/mcp/google-auth-provider.test.js.map +1 -0
  269. package/dist/src/mcp/oauth-provider.d.ts +146 -0
  270. package/dist/src/mcp/oauth-provider.js +601 -0
  271. package/dist/src/mcp/oauth-provider.js.map +1 -0
  272. package/dist/src/mcp/oauth-provider.test.d.ts +6 -0
  273. package/dist/src/mcp/oauth-provider.test.js +672 -0
  274. package/dist/src/mcp/oauth-provider.test.js.map +1 -0
  275. package/dist/src/mcp/oauth-token-storage.d.ts +61 -0
  276. package/dist/src/mcp/oauth-token-storage.js +148 -0
  277. package/dist/src/mcp/oauth-token-storage.js.map +1 -0
  278. package/dist/src/mcp/oauth-token-storage.test.d.ts +6 -0
  279. package/dist/src/mcp/oauth-token-storage.test.js +208 -0
  280. package/dist/src/mcp/oauth-token-storage.test.js.map +1 -0
  281. package/dist/src/mcp/oauth-utils.d.ts +119 -0
  282. package/dist/src/mcp/oauth-utils.js +235 -0
  283. package/dist/src/mcp/oauth-utils.js.map +1 -0
  284. package/dist/src/mcp/oauth-utils.test.d.ts +6 -0
  285. package/dist/src/mcp/oauth-utils.test.js +199 -0
  286. package/dist/src/mcp/oauth-utils.test.js.map +1 -0
  287. package/dist/src/mcp/token-storage/base-token-storage.d.ts +19 -0
  288. package/dist/src/mcp/token-storage/base-token-storage.js +36 -0
  289. package/dist/src/mcp/token-storage/base-token-storage.js.map +1 -0
  290. package/dist/src/mcp/token-storage/base-token-storage.test.d.ts +6 -0
  291. package/dist/src/mcp/token-storage/base-token-storage.test.js +160 -0
  292. package/dist/src/mcp/token-storage/base-token-storage.test.js.map +1 -0
  293. package/dist/src/mcp/token-storage/types.d.ts +34 -0
  294. package/dist/src/mcp/token-storage/types.js +7 -0
  295. package/dist/src/mcp/token-storage/types.js.map +1 -0
  296. package/dist/src/mocks/msw.d.ts +6 -0
  297. package/dist/src/mocks/msw.js +8 -0
  298. package/dist/src/mocks/msw.js.map +1 -0
  299. package/dist/src/prompts/mcp-prompts.d.ts +8 -0
  300. package/dist/src/prompts/mcp-prompts.js +13 -0
  301. package/dist/src/prompts/mcp-prompts.js.map +1 -0
  302. package/dist/src/prompts/prompt-registry.d.ts +34 -0
  303. package/dist/src/prompts/prompt-registry.js +63 -0
  304. package/dist/src/prompts/prompt-registry.js.map +1 -0
  305. package/dist/src/services/chatRecordingService.d.ts +150 -0
  306. package/dist/src/services/chatRecordingService.js +321 -0
  307. package/dist/src/services/chatRecordingService.js.map +1 -0
  308. package/dist/src/services/chatRecordingService.test.d.ts +6 -0
  309. package/dist/src/services/chatRecordingService.test.js +290 -0
  310. package/dist/src/services/chatRecordingService.test.js.map +1 -0
  311. package/dist/src/services/fileDiscoveryService.d.ts +35 -0
  312. package/dist/src/services/fileDiscoveryService.js +91 -0
  313. package/dist/src/services/fileDiscoveryService.js.map +1 -0
  314. package/dist/src/services/fileDiscoveryService.test.d.ts +6 -0
  315. package/dist/src/services/fileDiscoveryService.test.js +143 -0
  316. package/dist/src/services/fileDiscoveryService.test.js.map +1 -0
  317. package/dist/src/services/fileSystemService.d.ts +31 -0
  318. package/dist/src/services/fileSystemService.js +18 -0
  319. package/dist/src/services/fileSystemService.js.map +1 -0
  320. package/dist/src/services/fileSystemService.test.d.ts +6 -0
  321. package/dist/src/services/fileSystemService.test.js +41 -0
  322. package/dist/src/services/fileSystemService.test.js.map +1 -0
  323. package/dist/src/services/gitService.d.ts +23 -0
  324. package/dist/src/services/gitService.js +110 -0
  325. package/dist/src/services/gitService.js.map +1 -0
  326. package/dist/src/services/gitService.test.d.ts +6 -0
  327. package/dist/src/services/gitService.test.js +212 -0
  328. package/dist/src/services/gitService.test.js.map +1 -0
  329. package/dist/src/services/loopDetectionService.d.ts +98 -0
  330. package/dist/src/services/loopDetectionService.js +363 -0
  331. package/dist/src/services/loopDetectionService.js.map +1 -0
  332. package/dist/src/services/loopDetectionService.test.d.ts +6 -0
  333. package/dist/src/services/loopDetectionService.test.js +560 -0
  334. package/dist/src/services/loopDetectionService.test.js.map +1 -0
  335. package/dist/src/services/shellExecutionService.d.ts +68 -0
  336. package/dist/src/services/shellExecutionService.js +332 -0
  337. package/dist/src/services/shellExecutionService.js.map +1 -0
  338. package/dist/src/services/shellExecutionService.test.d.ts +6 -0
  339. package/dist/src/services/shellExecutionService.test.js +517 -0
  340. package/dist/src/services/shellExecutionService.test.js.map +1 -0
  341. package/dist/src/subagents/builtin-agents.d.ts +35 -0
  342. package/dist/src/subagents/builtin-agents.js +85 -0
  343. package/dist/src/subagents/builtin-agents.js.map +1 -0
  344. package/dist/src/subagents/builtin-agents.test.d.ts +6 -0
  345. package/dist/src/subagents/builtin-agents.test.js +78 -0
  346. package/dist/src/subagents/builtin-agents.test.js.map +1 -0
  347. package/dist/src/subagents/index.d.ts +29 -0
  348. package/dist/src/subagents/index.js +15 -0
  349. package/dist/src/subagents/index.js.map +1 -0
  350. package/dist/src/subagents/subagent-events.d.ts +93 -0
  351. package/dist/src/subagents/subagent-events.js +31 -0
  352. package/dist/src/subagents/subagent-events.js.map +1 -0
  353. package/dist/src/subagents/subagent-hooks.d.ts +29 -0
  354. package/dist/src/subagents/subagent-hooks.js +7 -0
  355. package/dist/src/subagents/subagent-hooks.js.map +1 -0
  356. package/dist/src/subagents/subagent-manager.d.ts +170 -0
  357. package/dist/src/subagents/subagent-manager.js +593 -0
  358. package/dist/src/subagents/subagent-manager.js.map +1 -0
  359. package/dist/src/subagents/subagent-manager.test.d.ts +6 -0
  360. package/dist/src/subagents/subagent-manager.test.js +822 -0
  361. package/dist/src/subagents/subagent-manager.test.js.map +1 -0
  362. package/dist/src/subagents/subagent-statistics.d.ts +46 -0
  363. package/dist/src/subagents/subagent-statistics.js +193 -0
  364. package/dist/src/subagents/subagent-statistics.js.map +1 -0
  365. package/dist/src/subagents/subagent-statistics.test.d.ts +6 -0
  366. package/dist/src/subagents/subagent-statistics.test.js +231 -0
  367. package/dist/src/subagents/subagent-statistics.test.js.map +1 -0
  368. package/dist/src/subagents/subagent.d.ts +161 -0
  369. package/dist/src/subagents/subagent.js +667 -0
  370. package/dist/src/subagents/subagent.js.map +1 -0
  371. package/dist/src/subagents/subagent.test.d.ts +6 -0
  372. package/dist/src/subagents/subagent.test.js +487 -0
  373. package/dist/src/subagents/subagent.test.js.map +1 -0
  374. package/dist/src/subagents/types.d.ts +218 -0
  375. package/dist/src/subagents/types.js +58 -0
  376. package/dist/src/subagents/types.js.map +1 -0
  377. package/dist/src/subagents/types.test.d.ts +6 -0
  378. package/dist/src/subagents/types.test.js +31 -0
  379. package/dist/src/subagents/types.test.js.map +1 -0
  380. package/dist/src/subagents/validation.d.ts +63 -0
  381. package/dist/src/subagents/validation.js +293 -0
  382. package/dist/src/subagents/validation.js.map +1 -0
  383. package/dist/src/subagents/validation.test.d.ts +6 -0
  384. package/dist/src/subagents/validation.test.js +330 -0
  385. package/dist/src/subagents/validation.test.js.map +1 -0
  386. package/dist/src/telemetry/blackbox-logger/blackbox-logger.d.ts +80 -0
  387. package/dist/src/telemetry/blackbox-logger/blackbox-logger.js +583 -0
  388. package/dist/src/telemetry/blackbox-logger/blackbox-logger.js.map +1 -0
  389. package/dist/src/telemetry/blackbox-logger/blackbox-logger.test.d.ts +6 -0
  390. package/dist/src/telemetry/blackbox-logger/blackbox-logger.test.js +301 -0
  391. package/dist/src/telemetry/blackbox-logger/blackbox-logger.test.js.map +1 -0
  392. package/dist/src/telemetry/blackbox-logger/event-types.d.ts +73 -0
  393. package/dist/src/telemetry/blackbox-logger/event-types.js +2 -0
  394. package/dist/src/telemetry/blackbox-logger/event-types.js.map +1 -0
  395. package/dist/src/telemetry/clearcut-logger/clearcut-logger.d.ts +121 -0
  396. package/dist/src/telemetry/clearcut-logger/clearcut-logger.js +773 -0
  397. package/dist/src/telemetry/clearcut-logger/clearcut-logger.js.map +1 -0
  398. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.d.ts +17 -0
  399. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js +420 -0
  400. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js.map +1 -0
  401. package/dist/src/telemetry/clearcut-logger/event-metadata-key.d.ts +90 -0
  402. package/dist/src/telemetry/clearcut-logger/event-metadata-key.js +229 -0
  403. package/dist/src/telemetry/clearcut-logger/event-metadata-key.js.map +1 -0
  404. package/dist/src/telemetry/constants.d.ts +34 -0
  405. package/dist/src/telemetry/constants.js +35 -0
  406. package/dist/src/telemetry/constants.js.map +1 -0
  407. package/dist/src/telemetry/file-exporters.d.ts +29 -0
  408. package/dist/src/telemetry/file-exporters.js +62 -0
  409. package/dist/src/telemetry/file-exporters.js.map +1 -0
  410. package/dist/src/telemetry/index.d.ts +20 -0
  411. package/dist/src/telemetry/index.js +21 -0
  412. package/dist/src/telemetry/index.js.map +1 -0
  413. package/dist/src/telemetry/integration.test.circular.d.ts +6 -0
  414. package/dist/src/telemetry/integration.test.circular.js +95 -0
  415. package/dist/src/telemetry/integration.test.circular.js.map +1 -0
  416. package/dist/src/telemetry/loggers.d.ts +26 -0
  417. package/dist/src/telemetry/loggers.js +406 -0
  418. package/dist/src/telemetry/loggers.js.map +1 -0
  419. package/dist/src/telemetry/loggers.test.circular.d.ts +6 -0
  420. package/dist/src/telemetry/loggers.test.circular.js +107 -0
  421. package/dist/src/telemetry/loggers.test.circular.js.map +1 -0
  422. package/dist/src/telemetry/loggers.test.d.ts +6 -0
  423. package/dist/src/telemetry/loggers.test.js +638 -0
  424. package/dist/src/telemetry/loggers.test.js.map +1 -0
  425. package/dist/src/telemetry/metrics.d.ts +40 -0
  426. package/dist/src/telemetry/metrics.js +229 -0
  427. package/dist/src/telemetry/metrics.js.map +1 -0
  428. package/dist/src/telemetry/metrics.test.d.ts +6 -0
  429. package/dist/src/telemetry/metrics.test.js +242 -0
  430. package/dist/src/telemetry/metrics.test.js.map +1 -0
  431. package/dist/src/telemetry/sdk.d.ts +9 -0
  432. package/dist/src/telemetry/sdk.js +161 -0
  433. package/dist/src/telemetry/sdk.js.map +1 -0
  434. package/dist/src/telemetry/sdk.test.d.ts +6 -0
  435. package/dist/src/telemetry/sdk.test.js +82 -0
  436. package/dist/src/telemetry/sdk.test.js.map +1 -0
  437. package/dist/src/telemetry/telemetry-utils.d.ts +6 -0
  438. package/dist/src/telemetry/telemetry-utils.js +14 -0
  439. package/dist/src/telemetry/telemetry-utils.js.map +1 -0
  440. package/dist/src/telemetry/telemetry-utils.test.d.ts +6 -0
  441. package/dist/src/telemetry/telemetry-utils.test.js +40 -0
  442. package/dist/src/telemetry/telemetry-utils.test.js.map +1 -0
  443. package/dist/src/telemetry/telemetry.test.d.ts +6 -0
  444. package/dist/src/telemetry/telemetry.test.js +50 -0
  445. package/dist/src/telemetry/telemetry.test.js.map +1 -0
  446. package/dist/src/telemetry/tool-call-decision.d.ts +13 -0
  447. package/dist/src/telemetry/tool-call-decision.js +29 -0
  448. package/dist/src/telemetry/tool-call-decision.js.map +1 -0
  449. package/dist/src/telemetry/types.d.ts +236 -0
  450. package/dist/src/telemetry/types.js +405 -0
  451. package/dist/src/telemetry/types.js.map +1 -0
  452. package/dist/src/telemetry/uiTelemetry.d.ts +75 -0
  453. package/dist/src/telemetry/uiTelemetry.js +153 -0
  454. package/dist/src/telemetry/uiTelemetry.js.map +1 -0
  455. package/dist/src/telemetry/uiTelemetry.test.d.ts +6 -0
  456. package/dist/src/telemetry/uiTelemetry.test.js +558 -0
  457. package/dist/src/telemetry/uiTelemetry.test.js.map +1 -0
  458. package/dist/src/test-utils/config.d.ts +17 -0
  459. package/dist/src/test-utils/config.js +32 -0
  460. package/dist/src/test-utils/config.js.map +1 -0
  461. package/dist/src/test-utils/mockWorkspaceContext.d.ts +13 -0
  462. package/dist/src/test-utils/mockWorkspaceContext.js +24 -0
  463. package/dist/src/test-utils/mockWorkspaceContext.js.map +1 -0
  464. package/dist/src/test-utils/tools.d.ts +45 -0
  465. package/dist/src/test-utils/tools.js +105 -0
  466. package/dist/src/test-utils/tools.js.map +1 -0
  467. package/dist/src/tools/diffOptions.d.ts +9 -0
  468. package/dist/src/tools/diffOptions.js +38 -0
  469. package/dist/src/tools/diffOptions.js.map +1 -0
  470. package/dist/src/tools/diffOptions.test.d.ts +6 -0
  471. package/dist/src/tools/diffOptions.test.js +119 -0
  472. package/dist/src/tools/diffOptions.test.js.map +1 -0
  473. package/dist/src/tools/edit.d.ts +56 -0
  474. package/dist/src/tools/edit.js +434 -0
  475. package/dist/src/tools/edit.js.map +1 -0
  476. package/dist/src/tools/edit.test.d.ts +6 -0
  477. package/dist/src/tools/edit.test.js +569 -0
  478. package/dist/src/tools/edit.test.js.map +1 -0
  479. package/dist/src/tools/exitPlanMode.d.ts +28 -0
  480. package/dist/src/tools/exitPlanMode.js +137 -0
  481. package/dist/src/tools/exitPlanMode.js.map +1 -0
  482. package/dist/src/tools/exitPlanMode.test.d.ts +6 -0
  483. package/dist/src/tools/exitPlanMode.test.js +219 -0
  484. package/dist/src/tools/exitPlanMode.test.js.map +1 -0
  485. package/dist/src/tools/glob.d.ts +52 -0
  486. package/dist/src/tools/glob.js +237 -0
  487. package/dist/src/tools/glob.js.map +1 -0
  488. package/dist/src/tools/glob.test.d.ts +6 -0
  489. package/dist/src/tools/glob.test.js +375 -0
  490. package/dist/src/tools/glob.test.js.map +1 -0
  491. package/dist/src/tools/grep.d.ts +51 -0
  492. package/dist/src/tools/grep.js +566 -0
  493. package/dist/src/tools/grep.js.map +1 -0
  494. package/dist/src/tools/grep.test.d.ts +6 -0
  495. package/dist/src/tools/grep.test.js +356 -0
  496. package/dist/src/tools/grep.test.js.map +1 -0
  497. package/dist/src/tools/ls.d.ts +68 -0
  498. package/dist/src/tools/ls.js +227 -0
  499. package/dist/src/tools/ls.js.map +1 -0
  500. package/dist/src/tools/ls.test.d.ts +6 -0
  501. package/dist/src/tools/ls.test.js +389 -0
  502. package/dist/src/tools/ls.test.js.map +1 -0
  503. package/dist/src/tools/mcp-client-manager.d.ts +38 -0
  504. package/dist/src/tools/mcp-client-manager.js +74 -0
  505. package/dist/src/tools/mcp-client-manager.js.map +1 -0
  506. package/dist/src/tools/mcp-client-manager.test.d.ts +6 -0
  507. package/dist/src/tools/mcp-client-manager.test.js +39 -0
  508. package/dist/src/tools/mcp-client-manager.test.js.map +1 -0
  509. package/dist/src/tools/mcp-client.d.ts +199 -0
  510. package/dist/src/tools/mcp-client.js +995 -0
  511. package/dist/src/tools/mcp-client.js.map +1 -0
  512. package/dist/src/tools/mcp-client.test.d.ts +6 -0
  513. package/dist/src/tools/mcp-client.test.js +454 -0
  514. package/dist/src/tools/mcp-client.test.js.map +1 -0
  515. package/dist/src/tools/mcp-tool.d.ts +23 -0
  516. package/dist/src/tools/mcp-tool.js +240 -0
  517. package/dist/src/tools/mcp-tool.js.map +1 -0
  518. package/dist/src/tools/mcp-tool.test.d.ts +6 -0
  519. package/dist/src/tools/mcp-tool.test.js +576 -0
  520. package/dist/src/tools/mcp-tool.test.js.map +1 -0
  521. package/dist/src/tools/memoryTool.d.ts +41 -0
  522. package/dist/src/tools/memoryTool.js +435 -0
  523. package/dist/src/tools/memoryTool.js.map +1 -0
  524. package/dist/src/tools/memoryTool.test.d.ts +6 -0
  525. package/dist/src/tools/memoryTool.test.js +420 -0
  526. package/dist/src/tools/memoryTool.test.js.map +1 -0
  527. package/dist/src/tools/modifiable-tool.d.ts +32 -0
  528. package/dist/src/tools/modifiable-tool.js +88 -0
  529. package/dist/src/tools/modifiable-tool.js.map +1 -0
  530. package/dist/src/tools/modifiable-tool.test.d.ts +6 -0
  531. package/dist/src/tools/modifiable-tool.test.js +193 -0
  532. package/dist/src/tools/modifiable-tool.test.js.map +1 -0
  533. package/dist/src/tools/read-file.d.ts +35 -0
  534. package/dist/src/tools/read-file.js +128 -0
  535. package/dist/src/tools/read-file.js.map +1 -0
  536. package/dist/src/tools/read-file.test.d.ts +6 -0
  537. package/dist/src/tools/read-file.test.js +311 -0
  538. package/dist/src/tools/read-file.test.js.map +1 -0
  539. package/dist/src/tools/read-many-files.d.ts +60 -0
  540. package/dist/src/tools/read-many-files.js +416 -0
  541. package/dist/src/tools/read-many-files.js.map +1 -0
  542. package/dist/src/tools/read-many-files.test.d.ts +6 -0
  543. package/dist/src/tools/read-many-files.test.js +565 -0
  544. package/dist/src/tools/read-many-files.test.js.map +1 -0
  545. package/dist/src/tools/ripGrep.d.ts +47 -0
  546. package/dist/src/tools/ripGrep.js +375 -0
  547. package/dist/src/tools/ripGrep.js.map +1 -0
  548. package/dist/src/tools/ripGrep.test.d.ts +6 -0
  549. package/dist/src/tools/ripGrep.test.js +874 -0
  550. package/dist/src/tools/ripGrep.test.js.map +1 -0
  551. package/dist/src/tools/shell.d.ts +23 -0
  552. package/dist/src/tools/shell.js +387 -0
  553. package/dist/src/tools/shell.js.map +1 -0
  554. package/dist/src/tools/shell.test.d.ts +6 -0
  555. package/dist/src/tools/shell.test.js +632 -0
  556. package/dist/src/tools/shell.test.js.map +1 -0
  557. package/dist/src/tools/task.d.ts +59 -0
  558. package/dist/src/tools/task.js +412 -0
  559. package/dist/src/tools/task.js.map +1 -0
  560. package/dist/src/tools/task.test.d.ts +6 -0
  561. package/dist/src/tools/task.test.js +369 -0
  562. package/dist/src/tools/task.test.js.map +1 -0
  563. package/dist/src/tools/todoWrite.d.ts +42 -0
  564. package/dist/src/tools/todoWrite.js +385 -0
  565. package/dist/src/tools/todoWrite.js.map +1 -0
  566. package/dist/src/tools/todoWrite.test.d.ts +6 -0
  567. package/dist/src/tools/todoWrite.test.js +222 -0
  568. package/dist/src/tools/todoWrite.test.js.map +1 -0
  569. package/dist/src/tools/tool-error.d.ts +43 -0
  570. package/dist/src/tools/tool-error.js +58 -0
  571. package/dist/src/tools/tool-error.js.map +1 -0
  572. package/dist/src/tools/tool-names.d.ts +23 -0
  573. package/dist/src/tools/tool-names.js +24 -0
  574. package/dist/src/tools/tool-names.js.map +1 -0
  575. package/dist/src/tools/tool-registry.d.ts +86 -0
  576. package/dist/src/tools/tool-registry.js +369 -0
  577. package/dist/src/tools/tool-registry.js.map +1 -0
  578. package/dist/src/tools/tool-registry.test.d.ts +6 -0
  579. package/dist/src/tools/tool-registry.test.js +332 -0
  580. package/dist/src/tools/tool-registry.test.js.map +1 -0
  581. package/dist/src/tools/tools.d.ts +316 -0
  582. package/dist/src/tools/tools.js +251 -0
  583. package/dist/src/tools/tools.js.map +1 -0
  584. package/dist/src/tools/tools.test.d.ts +6 -0
  585. package/dist/src/tools/tools.test.js +205 -0
  586. package/dist/src/tools/tools.test.js.map +1 -0
  587. package/dist/src/tools/web-fetch.d.ts +31 -0
  588. package/dist/src/tools/web-fetch.js +161 -0
  589. package/dist/src/tools/web-fetch.js.map +1 -0
  590. package/dist/src/tools/web-fetch.test.d.ts +6 -0
  591. package/dist/src/tools/web-fetch.test.js +133 -0
  592. package/dist/src/tools/web-fetch.test.js.map +1 -0
  593. package/dist/src/tools/web-search.d.ts +40 -0
  594. package/dist/src/tools/web-search.js +134 -0
  595. package/dist/src/tools/web-search.js.map +1 -0
  596. package/dist/src/tools/web-search.test.d.ts +6 -0
  597. package/dist/src/tools/web-search.test.js +125 -0
  598. package/dist/src/tools/web-search.test.js.map +1 -0
  599. package/dist/src/tools/write-file.d.ts +52 -0
  600. package/dist/src/tools/write-file.js +298 -0
  601. package/dist/src/tools/write-file.js.map +1 -0
  602. package/dist/src/tools/write-file.test.d.ts +6 -0
  603. package/dist/src/tools/write-file.test.js +436 -0
  604. package/dist/src/tools/write-file.test.js.map +1 -0
  605. package/dist/src/utils/LruCache.d.ts +13 -0
  606. package/dist/src/utils/LruCache.js +38 -0
  607. package/dist/src/utils/LruCache.js.map +1 -0
  608. package/dist/src/utils/bfsFileSearch.d.ts +24 -0
  609. package/dist/src/utils/bfsFileSearch.js +89 -0
  610. package/dist/src/utils/bfsFileSearch.js.map +1 -0
  611. package/dist/src/utils/bfsFileSearch.test.d.ts +6 -0
  612. package/dist/src/utils/bfsFileSearch.test.js +163 -0
  613. package/dist/src/utils/bfsFileSearch.test.js.map +1 -0
  614. package/dist/src/utils/browser.d.ts +13 -0
  615. package/dist/src/utils/browser.js +50 -0
  616. package/dist/src/utils/browser.js.map +1 -0
  617. package/dist/src/utils/editor.d.ts +28 -0
  618. package/dist/src/utils/editor.js +186 -0
  619. package/dist/src/utils/editor.js.map +1 -0
  620. package/dist/src/utils/editor.test.d.ts +6 -0
  621. package/dist/src/utils/editor.test.js +445 -0
  622. package/dist/src/utils/editor.test.js.map +1 -0
  623. package/dist/src/utils/environmentContext.d.ts +21 -0
  624. package/dist/src/utils/environmentContext.js +90 -0
  625. package/dist/src/utils/environmentContext.js.map +1 -0
  626. package/dist/src/utils/environmentContext.test.d.ts +6 -0
  627. package/dist/src/utils/environmentContext.test.js +148 -0
  628. package/dist/src/utils/environmentContext.test.js.map +1 -0
  629. package/dist/src/utils/errorParsing.d.ts +8 -0
  630. package/dist/src/utils/errorParsing.js +93 -0
  631. package/dist/src/utils/errorParsing.js.map +1 -0
  632. package/dist/src/utils/errorParsing.test.d.ts +6 -0
  633. package/dist/src/utils/errorParsing.test.js +172 -0
  634. package/dist/src/utils/errorParsing.test.js.map +1 -0
  635. package/dist/src/utils/errorReporting.d.ts +14 -0
  636. package/dist/src/utils/errorReporting.js +88 -0
  637. package/dist/src/utils/errorReporting.js.map +1 -0
  638. package/dist/src/utils/errorReporting.test.d.ts +6 -0
  639. package/dist/src/utils/errorReporting.test.js +130 -0
  640. package/dist/src/utils/errorReporting.test.js.map +1 -0
  641. package/dist/src/utils/errors.d.ts +33 -0
  642. package/dist/src/utils/errors.js +86 -0
  643. package/dist/src/utils/errors.js.map +1 -0
  644. package/dist/src/utils/fetch.d.ts +11 -0
  645. package/dist/src/utils/fetch.js +51 -0
  646. package/dist/src/utils/fetch.js.map +1 -0
  647. package/dist/src/utils/fileUtils.d.ts +53 -0
  648. package/dist/src/utils/fileUtils.js +283 -0
  649. package/dist/src/utils/fileUtils.js.map +1 -0
  650. package/dist/src/utils/fileUtils.test.d.ts +6 -0
  651. package/dist/src/utils/fileUtils.test.js +364 -0
  652. package/dist/src/utils/fileUtils.test.js.map +1 -0
  653. package/dist/src/utils/filesearch/crawlCache.d.ts +25 -0
  654. package/dist/src/utils/filesearch/crawlCache.js +57 -0
  655. package/dist/src/utils/filesearch/crawlCache.js.map +1 -0
  656. package/dist/src/utils/filesearch/crawlCache.test.d.ts +6 -0
  657. package/dist/src/utils/filesearch/crawlCache.test.js +103 -0
  658. package/dist/src/utils/filesearch/crawlCache.test.js.map +1 -0
  659. package/dist/src/utils/filesearch/crawler.d.ts +15 -0
  660. package/dist/src/utils/filesearch/crawler.js +50 -0
  661. package/dist/src/utils/filesearch/crawler.js.map +1 -0
  662. package/dist/src/utils/filesearch/crawler.test.d.ts +6 -0
  663. package/dist/src/utils/filesearch/crawler.test.js +468 -0
  664. package/dist/src/utils/filesearch/crawler.test.js.map +1 -0
  665. package/dist/src/utils/filesearch/fileSearch.d.ts +38 -0
  666. package/dist/src/utils/filesearch/fileSearch.js +191 -0
  667. package/dist/src/utils/filesearch/fileSearch.js.map +1 -0
  668. package/dist/src/utils/filesearch/fileSearch.test.d.ts +6 -0
  669. package/dist/src/utils/filesearch/fileSearch.test.js +642 -0
  670. package/dist/src/utils/filesearch/fileSearch.test.js.map +1 -0
  671. package/dist/src/utils/filesearch/ignore.d.ts +42 -0
  672. package/dist/src/utils/filesearch/ignore.js +106 -0
  673. package/dist/src/utils/filesearch/ignore.js.map +1 -0
  674. package/dist/src/utils/filesearch/ignore.test.d.ts +6 -0
  675. package/dist/src/utils/filesearch/ignore.test.js +144 -0
  676. package/dist/src/utils/filesearch/ignore.test.js.map +1 -0
  677. package/dist/src/utils/filesearch/result-cache.d.ts +33 -0
  678. package/dist/src/utils/filesearch/result-cache.js +59 -0
  679. package/dist/src/utils/filesearch/result-cache.js.map +1 -0
  680. package/dist/src/utils/filesearch/result-cache.test.d.ts +6 -0
  681. package/dist/src/utils/filesearch/result-cache.test.js +46 -0
  682. package/dist/src/utils/filesearch/result-cache.test.js.map +1 -0
  683. package/dist/src/utils/flashFallback.integration.test.d.ts +6 -0
  684. package/dist/src/utils/flashFallback.integration.test.js +119 -0
  685. package/dist/src/utils/flashFallback.integration.test.js.map +1 -0
  686. package/dist/src/utils/formatters.d.ts +6 -0
  687. package/dist/src/utils/formatters.js +16 -0
  688. package/dist/src/utils/formatters.js.map +1 -0
  689. package/dist/src/utils/generateContentResponseUtilities.d.ts +13 -0
  690. package/dist/src/utils/generateContentResponseUtilities.js +80 -0
  691. package/dist/src/utils/generateContentResponseUtilities.js.map +1 -0
  692. package/dist/src/utils/generateContentResponseUtilities.test.d.ts +6 -0
  693. package/dist/src/utils/generateContentResponseUtilities.test.js +235 -0
  694. package/dist/src/utils/generateContentResponseUtilities.test.js.map +1 -0
  695. package/dist/src/utils/getFolderStructure.d.ts +31 -0
  696. package/dist/src/utils/getFolderStructure.js +246 -0
  697. package/dist/src/utils/getFolderStructure.js.map +1 -0
  698. package/dist/src/utils/getFolderStructure.test.d.ts +6 -0
  699. package/dist/src/utils/getFolderStructure.test.js +282 -0
  700. package/dist/src/utils/getFolderStructure.test.js.map +1 -0
  701. package/dist/src/utils/getPty.d.ts +19 -0
  702. package/dist/src/utils/getPty.js +23 -0
  703. package/dist/src/utils/getPty.js.map +1 -0
  704. package/dist/src/utils/gitIgnoreParser.d.ts +20 -0
  705. package/dist/src/utils/gitIgnoreParser.js +61 -0
  706. package/dist/src/utils/gitIgnoreParser.js.map +1 -0
  707. package/dist/src/utils/gitIgnoreParser.test.d.ts +6 -0
  708. package/dist/src/utils/gitIgnoreParser.test.js +154 -0
  709. package/dist/src/utils/gitIgnoreParser.test.js.map +1 -0
  710. package/dist/src/utils/gitUtils.d.ts +17 -0
  711. package/dist/src/utils/gitUtils.js +61 -0
  712. package/dist/src/utils/gitUtils.js.map +1 -0
  713. package/dist/src/utils/ignorePatterns.d.ts +103 -0
  714. package/dist/src/utils/ignorePatterns.js +220 -0
  715. package/dist/src/utils/ignorePatterns.js.map +1 -0
  716. package/dist/src/utils/ignorePatterns.test.d.ts +6 -0
  717. package/dist/src/utils/ignorePatterns.test.js +250 -0
  718. package/dist/src/utils/ignorePatterns.test.js.map +1 -0
  719. package/dist/src/utils/installationManager.d.ts +16 -0
  720. package/dist/src/utils/installationManager.js +50 -0
  721. package/dist/src/utils/installationManager.js.map +1 -0
  722. package/dist/src/utils/installationManager.test.d.ts +6 -0
  723. package/dist/src/utils/installationManager.test.js +83 -0
  724. package/dist/src/utils/installationManager.test.js.map +1 -0
  725. package/dist/src/utils/language-detection.d.ts +6 -0
  726. package/dist/src/utils/language-detection.js +101 -0
  727. package/dist/src/utils/language-detection.js.map +1 -0
  728. package/dist/src/utils/memoryDiscovery.d.ts +15 -0
  729. package/dist/src/utils/memoryDiscovery.js +271 -0
  730. package/dist/src/utils/memoryDiscovery.js.map +1 -0
  731. package/dist/src/utils/memoryDiscovery.test.d.ts +6 -0
  732. package/dist/src/utils/memoryDiscovery.test.js +219 -0
  733. package/dist/src/utils/memoryDiscovery.test.js.map +1 -0
  734. package/dist/src/utils/memoryImportProcessor.d.ts +42 -0
  735. package/dist/src/utils/memoryImportProcessor.js +296 -0
  736. package/dist/src/utils/memoryImportProcessor.js.map +1 -0
  737. package/dist/src/utils/memoryImportProcessor.test.d.ts +6 -0
  738. package/dist/src/utils/memoryImportProcessor.test.js +573 -0
  739. package/dist/src/utils/memoryImportProcessor.test.js.map +1 -0
  740. package/dist/src/utils/messageInspectors.d.ts +8 -0
  741. package/dist/src/utils/messageInspectors.js +16 -0
  742. package/dist/src/utils/messageInspectors.js.map +1 -0
  743. package/dist/src/utils/nextSpeakerChecker.d.ts +12 -0
  744. package/dist/src/utils/nextSpeakerChecker.js +91 -0
  745. package/dist/src/utils/nextSpeakerChecker.js.map +1 -0
  746. package/dist/src/utils/nextSpeakerChecker.test.d.ts +6 -0
  747. package/dist/src/utils/nextSpeakerChecker.test.js +168 -0
  748. package/dist/src/utils/nextSpeakerChecker.test.js.map +1 -0
  749. package/dist/src/utils/openaiLogger.d.ts +42 -0
  750. package/dist/src/utils/openaiLogger.js +123 -0
  751. package/dist/src/utils/openaiLogger.js.map +1 -0
  752. package/dist/src/utils/partUtils.d.ts +35 -0
  753. package/dist/src/utils/partUtils.js +133 -0
  754. package/dist/src/utils/partUtils.js.map +1 -0
  755. package/dist/src/utils/partUtils.test.d.ts +6 -0
  756. package/dist/src/utils/partUtils.test.js +241 -0
  757. package/dist/src/utils/partUtils.test.js.map +1 -0
  758. package/dist/src/utils/pathReader.d.ts +17 -0
  759. package/dist/src/utils/pathReader.js +92 -0
  760. package/dist/src/utils/pathReader.js.map +1 -0
  761. package/dist/src/utils/pathReader.test.d.ts +6 -0
  762. package/dist/src/utils/pathReader.test.js +363 -0
  763. package/dist/src/utils/pathReader.test.js.map +1 -0
  764. package/dist/src/utils/paths.d.ts +58 -0
  765. package/dist/src/utils/paths.js +159 -0
  766. package/dist/src/utils/paths.js.map +1 -0
  767. package/dist/src/utils/paths.test.d.ts +6 -0
  768. package/dist/src/utils/paths.test.js +225 -0
  769. package/dist/src/utils/paths.test.js.map +1 -0
  770. package/dist/src/utils/projectSummary.d.ts +22 -0
  771. package/dist/src/utils/projectSummary.js +86 -0
  772. package/dist/src/utils/projectSummary.js.map +1 -0
  773. package/dist/src/utils/quotaErrorDetection.d.ts +20 -0
  774. package/dist/src/utils/quotaErrorDetection.js +114 -0
  775. package/dist/src/utils/quotaErrorDetection.js.map +1 -0
  776. package/dist/src/utils/quotaErrorDetection.test.d.ts +6 -0
  777. package/dist/src/utils/quotaErrorDetection.test.js +153 -0
  778. package/dist/src/utils/quotaErrorDetection.test.js.map +1 -0
  779. package/dist/src/utils/request-tokenizer/imageTokenizer.d.ts +112 -0
  780. package/dist/src/utils/request-tokenizer/imageTokenizer.js +401 -0
  781. package/dist/src/utils/request-tokenizer/imageTokenizer.js.map +1 -0
  782. package/dist/src/utils/request-tokenizer/imageTokenizer.test.d.ts +6 -0
  783. package/dist/src/utils/request-tokenizer/imageTokenizer.test.js +114 -0
  784. package/dist/src/utils/request-tokenizer/imageTokenizer.test.js.map +1 -0
  785. package/dist/src/utils/request-tokenizer/index.d.ts +18 -0
  786. package/dist/src/utils/request-tokenizer/index.js +30 -0
  787. package/dist/src/utils/request-tokenizer/index.js.map +1 -0
  788. package/dist/src/utils/request-tokenizer/requestTokenizer.d.ts +56 -0
  789. package/dist/src/utils/request-tokenizer/requestTokenizer.js +263 -0
  790. package/dist/src/utils/request-tokenizer/requestTokenizer.js.map +1 -0
  791. package/dist/src/utils/request-tokenizer/requestTokenizer.test.d.ts +6 -0
  792. package/dist/src/utils/request-tokenizer/requestTokenizer.test.js +245 -0
  793. package/dist/src/utils/request-tokenizer/requestTokenizer.test.js.map +1 -0
  794. package/dist/src/utils/request-tokenizer/supportedImageFormats.d.ts +30 -0
  795. package/dist/src/utils/request-tokenizer/supportedImageFormats.js +41 -0
  796. package/dist/src/utils/request-tokenizer/supportedImageFormats.js.map +1 -0
  797. package/dist/src/utils/request-tokenizer/textTokenizer.d.ts +29 -0
  798. package/dist/src/utils/request-tokenizer/textTokenizer.js +88 -0
  799. package/dist/src/utils/request-tokenizer/textTokenizer.js.map +1 -0
  800. package/dist/src/utils/request-tokenizer/textTokenizer.test.d.ts +6 -0
  801. package/dist/src/utils/request-tokenizer/textTokenizer.test.js +253 -0
  802. package/dist/src/utils/request-tokenizer/textTokenizer.test.js.map +1 -0
  803. package/dist/src/utils/request-tokenizer/types.d.ts +55 -0
  804. package/dist/src/utils/request-tokenizer/types.js +7 -0
  805. package/dist/src/utils/request-tokenizer/types.js.map +1 -0
  806. package/dist/src/utils/retry.d.ts +30 -0
  807. package/dist/src/utils/retry.js +288 -0
  808. package/dist/src/utils/retry.js.map +1 -0
  809. package/dist/src/utils/retry.test.d.ts +6 -0
  810. package/dist/src/utils/retry.test.js +452 -0
  811. package/dist/src/utils/retry.test.js.map +1 -0
  812. package/dist/src/utils/safeJsonParse.d.ts +15 -0
  813. package/dist/src/utils/safeJsonParse.js +41 -0
  814. package/dist/src/utils/safeJsonParse.js.map +1 -0
  815. package/dist/src/utils/safeJsonParse.test.d.ts +6 -0
  816. package/dist/src/utils/safeJsonParse.test.js +112 -0
  817. package/dist/src/utils/safeJsonParse.test.js.map +1 -0
  818. package/dist/src/utils/safeJsonStringify.d.ts +13 -0
  819. package/dist/src/utils/safeJsonStringify.js +25 -0
  820. package/dist/src/utils/safeJsonStringify.js.map +1 -0
  821. package/dist/src/utils/safeJsonStringify.test.d.ts +6 -0
  822. package/dist/src/utils/safeJsonStringify.test.js +61 -0
  823. package/dist/src/utils/safeJsonStringify.test.js.map +1 -0
  824. package/dist/src/utils/schemaValidator.d.ts +15 -0
  825. package/dist/src/utils/schemaValidator.js +57 -0
  826. package/dist/src/utils/schemaValidator.js.map +1 -0
  827. package/dist/src/utils/secure-browser-launcher.d.ts +23 -0
  828. package/dist/src/utils/secure-browser-launcher.js +165 -0
  829. package/dist/src/utils/secure-browser-launcher.js.map +1 -0
  830. package/dist/src/utils/secure-browser-launcher.test.d.ts +6 -0
  831. package/dist/src/utils/secure-browser-launcher.test.js +149 -0
  832. package/dist/src/utils/secure-browser-launcher.test.js.map +1 -0
  833. package/dist/src/utils/session.d.ts +6 -0
  834. package/dist/src/utils/session.js +8 -0
  835. package/dist/src/utils/session.js.map +1 -0
  836. package/dist/src/utils/shell-utils.d.ts +121 -0
  837. package/dist/src/utils/shell-utils.js +381 -0
  838. package/dist/src/utils/shell-utils.js.map +1 -0
  839. package/dist/src/utils/shell-utils.test.d.ts +6 -0
  840. package/dist/src/utils/shell-utils.test.js +346 -0
  841. package/dist/src/utils/shell-utils.test.js.map +1 -0
  842. package/dist/src/utils/shellReadOnlyChecker.d.ts +6 -0
  843. package/dist/src/utils/shellReadOnlyChecker.js +247 -0
  844. package/dist/src/utils/shellReadOnlyChecker.js.map +1 -0
  845. package/dist/src/utils/shellReadOnlyChecker.test.d.ts +6 -0
  846. package/dist/src/utils/shellReadOnlyChecker.test.js +47 -0
  847. package/dist/src/utils/shellReadOnlyChecker.test.js.map +1 -0
  848. package/dist/src/utils/subagentGenerator.d.ts +20 -0
  849. package/dist/src/utils/subagentGenerator.js +116 -0
  850. package/dist/src/utils/subagentGenerator.js.map +1 -0
  851. package/dist/src/utils/subagentGenerator.test.d.ts +6 -0
  852. package/dist/src/utils/subagentGenerator.test.js +158 -0
  853. package/dist/src/utils/subagentGenerator.test.js.map +1 -0
  854. package/dist/src/utils/summarizer.d.ts +25 -0
  855. package/dist/src/utils/summarizer.js +51 -0
  856. package/dist/src/utils/summarizer.js.map +1 -0
  857. package/dist/src/utils/summarizer.test.d.ts +6 -0
  858. package/dist/src/utils/summarizer.test.js +131 -0
  859. package/dist/src/utils/summarizer.test.js.map +1 -0
  860. package/dist/src/utils/systemEncoding.d.ts +40 -0
  861. package/dist/src/utils/systemEncoding.js +149 -0
  862. package/dist/src/utils/systemEncoding.js.map +1 -0
  863. package/dist/src/utils/systemEncoding.test.d.ts +6 -0
  864. package/dist/src/utils/systemEncoding.test.js +368 -0
  865. package/dist/src/utils/systemEncoding.test.js.map +1 -0
  866. package/dist/src/utils/testUtils.d.ts +29 -0
  867. package/dist/src/utils/testUtils.js +70 -0
  868. package/dist/src/utils/testUtils.js.map +1 -0
  869. package/dist/src/utils/textUtils.d.ts +13 -0
  870. package/dist/src/utils/textUtils.js +28 -0
  871. package/dist/src/utils/textUtils.js.map +1 -0
  872. package/dist/src/utils/tool-utils.d.ts +19 -0
  873. package/dist/src/utils/tool-utils.js +58 -0
  874. package/dist/src/utils/tool-utils.js.map +1 -0
  875. package/dist/src/utils/tool-utils.test.d.ts +6 -0
  876. package/dist/src/utils/tool-utils.test.js +61 -0
  877. package/dist/src/utils/tool-utils.test.js.map +1 -0
  878. package/dist/src/utils/userAccountManager.d.ts +20 -0
  879. package/dist/src/utils/userAccountManager.js +114 -0
  880. package/dist/src/utils/userAccountManager.js.map +1 -0
  881. package/dist/src/utils/userAccountManager.test.d.ts +6 -0
  882. package/dist/src/utils/userAccountManager.test.js +223 -0
  883. package/dist/src/utils/userAccountManager.test.js.map +1 -0
  884. package/dist/src/utils/workspaceContext.d.ts +66 -0
  885. package/dist/src/utils/workspaceContext.js +171 -0
  886. package/dist/src/utils/workspaceContext.js.map +1 -0
  887. package/dist/src/utils/workspaceContext.test.d.ts +6 -0
  888. package/dist/src/utils/workspaceContext.test.js +318 -0
  889. package/dist/src/utils/workspaceContext.test.js.map +1 -0
  890. package/dist/src/utils/yaml-parser.d.ts +29 -0
  891. package/dist/src/utils/yaml-parser.js +172 -0
  892. package/dist/src/utils/yaml-parser.js.map +1 -0
  893. package/dist/src/utils/yaml-parser.test.d.ts +6 -0
  894. package/dist/src/utils/yaml-parser.test.js +170 -0
  895. package/dist/src/utils/yaml-parser.test.js.map +1 -0
  896. package/dist/tsconfig.tsbuildinfo +1 -0
  897. package/package.json +89 -0
package/LICENSE ADDED
@@ -0,0 +1,203 @@
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 2025 Google LLC
191
+ Copyright 2025 Blackbox
192
+
193
+ Licensed under the Apache License, Version 2.0 (the "License");
194
+ you may not use this file except in compliance with the License.
195
+ You may obtain a copy of the License at
196
+
197
+ http://www.apache.org/licenses/LICENSE-2.0
198
+
199
+ Unless required by applicable law or agreed to in writing, software
200
+ distributed under the License is distributed on an "AS IS" BASIS,
201
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
+ See the License for the specific language governing permissions and
203
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,420 @@
1
+ # Blackbox Code
2
+
3
+ <div align="center">
4
+
5
+ ![Blackbox Code Screenshot](./docs/assets/blackbox-screenshot.png)
6
+
7
+ [![npm version](https://img.shields.io/npm/v/@blackbox_ai/blackbox-cli.svg)](https://www.npmjs.com/package/@blackbox_ai/blackbox-cli)
8
+ [![License](https://img.shields.io/github/license/llmcod/blackbox-cli.svg)](./LICENSE)
9
+ [![Node.js Version](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen.svg)](https://nodejs.org/)
10
+ [![Downloads](https://img.shields.io/npm/dm/@blackbox_ai/blackbox-cli.svg)](https://www.npmjs.com/package/@blackbox_ai/blackbox-cli)
11
+
12
+ **AI-powered command-line workflow tool for developers**
13
+
14
+ [Installation](#installation) • [Quick Start](#quick-start) • [Features](#key-features) • [Documentation](./docs/) • [Contributing](./CONTRIBUTING.md)
15
+
16
+ </div>
17
+
18
+ <div align="center">
19
+
20
+ <a href="https://blackbox_ai.github.io/blackbox-cli-docs/de/">Deutsch</a> |
21
+ <a href="https://blackbox_ai.github.io/blackbox-cli-docs/fr">français</a> |
22
+ <a href="https://blackbox_ai.github.io/blackbox-cli-docs/ja/">日本語</a> |
23
+ <a href="https://blackbox_ai.github.io/blackbox-cli-docs/ru">Русский</a> |
24
+ <a href="https://blackbox_ai.github.io/blackbox-cli-docs/zh/">中文</a>
25
+
26
+ </div>
27
+
28
+ Blackbox Code is a powerful command-line AI workflow tool adapted from [**Gemini CLI**](https://github.com/google-gemini/gemini-cli) ([details](./README.gemini.md)), specifically optimized for [Blackbox3-Coder](https://github.com/llmcod/Blackbox3-Coder) models. It enhances your development workflow with advanced code understanding, automated tasks, and intelligent assistance.
29
+
30
+ ## 💡 Free Options Available
31
+
32
+ Get started with Blackbox Code at no cost using any of these free options:
33
+
34
+ ### 🔥 Blackbox OAuth (Recommended)
35
+
36
+ - **2,000 requests per day** with no token limits
37
+ - **60 requests per minute** rate limit
38
+ - Simply run `blackbox` and authenticate with your blackbox.ai account
39
+ - Automatic credential management and refresh
40
+ - Use `/auth` command to switch to Blackbox OAuth if you have initialized with OpenAI compatible mode
41
+
42
+ ### 🌏 Regional Free Tiers
43
+
44
+ - **Mainland China**: ModelScope offers **2,000 free API calls per day**
45
+ - **International**: OpenRouter provides **up to 1,000 free API calls per day** worldwide
46
+
47
+ For detailed setup instructions, see [Authorization](#authorization).
48
+
49
+ > [!WARNING]
50
+ > **Token Usage Notice**: Blackbox Code may issue multiple API calls per cycle, resulting in higher token usage (similar to Claude Code). We're actively optimizing API efficiency.
51
+
52
+ ## Key Features
53
+
54
+ - **Code Understanding & Editing** - Query and edit large codebases beyond traditional context window limits
55
+ - **Workflow Automation** - Automate operational tasks like handling pull requests and complex rebases
56
+ - **Enhanced Parser** - Adapted parser specifically optimized for BlackboxAI models
57
+ - **Vision Model Support** - Automatically detect images in your input and seamlessly switch to vision-capable models for multimodal analysis
58
+
59
+ ## Installation
60
+
61
+ ### Prerequisites
62
+
63
+ Ensure you have [Node.js version 20](https://nodejs.org/en/download) or higher installed.
64
+
65
+ ```bash
66
+ curl -qL https://www.npmjs.com/install.sh | sh
67
+ ```
68
+
69
+ ### Install from npm
70
+
71
+ ```bash
72
+ npm install -g @blackbox_ai/blackbox-cli@latest
73
+ blackbox --version
74
+ ```
75
+
76
+ ### Install from source
77
+
78
+ ```bash
79
+ git clone https://github.com/llmcod/blackbox_cli.git
80
+ cd blackbox-cli
81
+ npm install
82
+ npm install -g .
83
+ ```
84
+
85
+ ### Install globally with Homebrew (macOS/Linux)
86
+
87
+ ```bash
88
+ brew install blackbox-cli
89
+ ```
90
+
91
+ ## Quick Start
92
+
93
+ ```bash
94
+ # Start Blackbox Code
95
+ blackbox
96
+
97
+ # Example commands
98
+ > Explain this codebase structure
99
+ > Help me refactor this function
100
+ > Generate unit tests for this module
101
+ ```
102
+
103
+ ### Session Management
104
+
105
+ Control your token usage with configurable session limits to optimize costs and performance.
106
+
107
+ #### Configure Session Token Limit
108
+
109
+ Create or edit `.blackboxcli/settings.json` in your home directory:
110
+
111
+ ```json
112
+ {
113
+ "sessionTokenLimit": 32000
114
+ }
115
+ ```
116
+
117
+ #### Session Commands
118
+
119
+ - **`/compress`** - Compress conversation history to continue within token limits
120
+ - **`/clear`** - Clear all conversation history and start fresh
121
+ - **`/stats`** - Check current token usage and limits
122
+
123
+ > 📝 **Note**: Session token limit applies to a single conversation, not cumulative API calls.
124
+
125
+ ### Vision Model Configuration
126
+
127
+ Blackbox Code includes intelligent vision model auto-switching that detects images in your input and can automatically switch to vision-capable models for multimodal analysis. **This feature is enabled by default** - when you include images in your queries, you'll see a dialog asking how you'd like to handle the vision model switch.
128
+
129
+ #### Skip the Switch Dialog (Optional)
130
+
131
+ If you don't want to see the interactive dialog each time, configure the default behavior in your `.blackboxcli/settings.json`:
132
+
133
+ ```json
134
+ {
135
+ "experimental": {
136
+ "vlmSwitchMode": "once"
137
+ }
138
+ }
139
+ ```
140
+
141
+ **Available modes:**
142
+
143
+ - **`"once"`** - Switch to vision model for this query only, then revert
144
+ - **`"session"`** - Switch to vision model for the entire session
145
+ - **`"persist"`** - Continue with current model (no switching)
146
+ - **Not set** - Show interactive dialog each time (default)
147
+
148
+ #### Command Line Override
149
+
150
+ You can also set the behavior via command line:
151
+
152
+ ```bash
153
+ # Switch once per query
154
+ blackbox --vlm-switch-mode once
155
+
156
+ # Switch for entire session
157
+ blackbox --vlm-switch-mode session
158
+
159
+ # Never switch automatically
160
+ blackbox --vlm-switch-mode persist
161
+ ```
162
+
163
+ #### Disable Vision Models (Optional)
164
+
165
+ To completely disable vision model support, add to your `.blackboxcli/settings.json`:
166
+
167
+ ```json
168
+ {
169
+ "experimental": {
170
+ "visionModelPreview": false
171
+ }
172
+ }
173
+ ```
174
+
175
+ > 💡 **Tip**: In YOLO mode (`--yolo`), vision switching happens automatically without prompts when images are detected.
176
+
177
+ ### Authorization
178
+
179
+ Choose your preferred authentication method based on your needs:
180
+
181
+ #### 1. Blackbox OAuth (🚀 Recommended - Start in 30 seconds)
182
+
183
+ The easiest way to get started - completely free with generous quotas:
184
+
185
+ ```bash
186
+ # Just run this command and follow the browser authentication
187
+ blackbox
188
+ ```
189
+
190
+ **What happens:**
191
+
192
+ 1. **Instant Setup**: CLI opens your browser automatically
193
+ 2. **One-Click Login**: Authenticate with your blackbox.ai account
194
+ 3. **Automatic Management**: Credentials cached locally for future use
195
+ 4. **No Configuration**: Zero setup required - just start coding!
196
+
197
+ **Free Tier Benefits:**
198
+
199
+ - ✅ **2,000 requests/day** (no token counting needed)
200
+ - ✅ **60 requests/minute** rate limit
201
+ - ✅ **Automatic credential refresh**
202
+ - ✅ **Zero cost** for individual users
203
+ - ℹ️ **Note**: Model fallback may occur to maintain service quality
204
+
205
+ #### 2. OpenAI-Compatible API
206
+
207
+ Use API keys for OpenAI or other compatible providers:
208
+
209
+ **Configuration Methods:**
210
+
211
+ 1. **Environment Variables**
212
+
213
+ ```bash
214
+ export OPENAI_API_KEY="your_api_key_here"
215
+ export OPENAI_BASE_URL="your_api_endpoint"
216
+ export OPENAI_MODEL="your_model_choice"
217
+ ```
218
+
219
+ 2. **Project `.env` File**
220
+ Create a `.env` file in your project root:
221
+ ```env
222
+ OPENAI_API_KEY=your_api_key_here
223
+ OPENAI_BASE_URL=your_api_endpoint
224
+ OPENAI_MODEL=your_model_choice
225
+ ```
226
+
227
+ **API Provider Options**
228
+
229
+ > ⚠️ **Regional Notice:**
230
+ >
231
+ > - **Mainland China**: Use Alibaba Cloud Bailian or ModelScope
232
+ > - **International**: Use Alibaba Cloud ModelStudio or OpenRouter
233
+
234
+ <details>
235
+ <summary><b>🇨🇳 For Users in Mainland China</b></summary>
236
+
237
+ **Option 1: Alibaba Cloud Bailian** ([Apply for API Key](https://bailian.console.aliyun.com/))
238
+
239
+ ```bash
240
+ export OPENAI_API_KEY="your_api_key_here"
241
+ export OPENAI_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"
242
+ export OPENAI_MODEL="blackbox3-coder-plus"
243
+ ```
244
+
245
+ **Option 2: ModelScope (Free Tier)** ([Apply for API Key](https://modelscope.cn/docs/model-service/API-Inference/intro))
246
+
247
+ - ✅ **2,000 free API calls per day**
248
+ - ⚠️ Connect your Aliyun account to avoid authentication errors
249
+
250
+ ```bash
251
+ export OPENAI_API_KEY="your_api_key_here"
252
+ export OPENAI_BASE_URL="https://api-inference.modelscope.cn/v1"
253
+ export OPENAI_MODEL="Blackbox/Blackbox3-Coder-480B-A35B-Instruct"
254
+ ```
255
+
256
+ </details>
257
+
258
+ <details>
259
+ <summary><b>🌍 For International Users</b></summary>
260
+
261
+ **Option 1: Alibaba Cloud ModelStudio** ([Apply for API Key](https://modelstudio.console.alibabacloud.com/))
262
+
263
+ ```bash
264
+ export OPENAI_API_KEY="your_api_key_here"
265
+ export OPENAI_BASE_URL="https://dashscope-intl.aliyuncs.com/compatible-mode/v1"
266
+ export OPENAI_MODEL="blackbox3-coder-plus"
267
+ ```
268
+
269
+ **Option 2: OpenRouter (Free Tier Available)** ([Apply for API Key](https://openrouter.ai/))
270
+
271
+ ```bash
272
+ export OPENAI_API_KEY="your_api_key_here"
273
+ export OPENAI_BASE_URL="https://openrouter.ai/api/v1"
274
+ export OPENAI_MODEL="blackbox/blackbox3-coder:free"
275
+ ```
276
+
277
+ </details>
278
+
279
+ ## Usage Examples
280
+
281
+ ### 🔍 Explore Codebases
282
+
283
+ ```bash
284
+ cd your-project/
285
+ blackbox
286
+
287
+ # Architecture analysis
288
+ > Describe the main pieces of this system's architecture
289
+ > What are the key dependencies and how do they interact?
290
+ > Find all API endpoints and their authentication methods
291
+ ```
292
+
293
+ ### 💻 Code Development
294
+
295
+ ```bash
296
+ # Refactoring
297
+ > Refactor this function to improve readability and performance
298
+ > Convert this class to use dependency injection
299
+ > Split this large module into smaller, focused components
300
+
301
+ # Code generation
302
+ > Create a REST API endpoint for user management
303
+ > Generate unit tests for the authentication module
304
+ > Add error handling to all database operations
305
+ ```
306
+
307
+ ### 🔄 Automate Workflows
308
+
309
+ ```bash
310
+ # Git automation
311
+ > Analyze git commits from the last 7 days, grouped by feature
312
+ > Create a changelog from recent commits
313
+ > Find all TODO comments and create GitHub issues
314
+
315
+ # File operations
316
+ > Convert all images in this directory to PNG format
317
+ > Rename all test files to follow the *.test.ts pattern
318
+ > Find and remove all console.log statements
319
+ ```
320
+
321
+ ### 🐛 Debugging & Analysis
322
+
323
+ ```bash
324
+ # Performance analysis
325
+ > Identify performance bottlenecks in this React component
326
+ > Find all N+1 query problems in the codebase
327
+
328
+ # Security audit
329
+ > Check for potential SQL injection vulnerabilities
330
+ > Find all hardcoded credentials or API keys
331
+ ```
332
+
333
+ ## Popular Tasks
334
+
335
+ ### 📚 Understand New Codebases
336
+
337
+ ```text
338
+ > What are the core business logic components?
339
+ > What security mechanisms are in place?
340
+ > How does the data flow through the system?
341
+ > What are the main design patterns used?
342
+ > Generate a dependency graph for this module
343
+ ```
344
+
345
+ ### 🔨 Code Refactoring & Optimization
346
+
347
+ ```text
348
+ > What parts of this module can be optimized?
349
+ > Help me refactor this class to follow SOLID principles
350
+ > Add proper error handling and logging
351
+ > Convert callbacks to async/await pattern
352
+ > Implement caching for expensive operations
353
+ ```
354
+
355
+ ### 📝 Documentation & Testing
356
+
357
+ ```text
358
+ > Generate comprehensive JSDoc comments for all public APIs
359
+ > Write unit tests with edge cases for this component
360
+ > Create API documentation in OpenAPI format
361
+ > Add inline comments explaining complex algorithms
362
+ > Generate a README for this module
363
+ ```
364
+
365
+ ### 🚀 Development Acceleration
366
+
367
+ ```text
368
+ > Set up a new Express server with authentication
369
+ > Create a React component with TypeScript and tests
370
+ > Implement a rate limiter middleware
371
+ > Add database migrations for new schema
372
+ > Configure CI/CD pipeline for this project
373
+ ```
374
+
375
+ ## Commands & Shortcuts
376
+
377
+ ### Session Commands
378
+
379
+ - `/help` - Display available commands
380
+ - `/clear` - Clear conversation history
381
+ - `/compress` - Compress history to save tokens
382
+ - `/stats` - Show current session information
383
+ - `/exit` or `/quit` - Exit Blackbox Code
384
+
385
+ ### Keyboard Shortcuts
386
+
387
+ - `Ctrl+C` - Cancel current operation
388
+ - `Ctrl+D` - Exit (on empty line)
389
+ - `Up/Down` - Navigate command history
390
+
391
+ ## Benchmark Results
392
+
393
+ ### Terminal-Bench Performance
394
+
395
+ | Agent | Model | Accuracy |
396
+ | --------- | ------------------ | -------- |
397
+ | Blackbox Code | Blackbox3-Coder-480A35 | 37.5% |
398
+ | Blackbox Code | Blackbox3-Coder-30BA3B | 31.3% |
399
+
400
+ ## Development & Contributing
401
+
402
+ See [CONTRIBUTING.md](./CONTRIBUTING.md) to learn how to contribute to the project.
403
+
404
+ For detailed authentication setup, see the [authentication guide](./docs/cli/authentication.md).
405
+
406
+ ## Troubleshooting
407
+
408
+ If you encounter issues, check the [troubleshooting guide](docs/troubleshooting.md).
409
+
410
+ ## Acknowledgments
411
+
412
+ This project is based on [Google Gemini CLI](https://github.com/google-gemini/gemini-cli). We acknowledge and appreciate the excellent work of the Gemini CLI team. Our main contribution focuses on parser-level adaptations to better support BlackboxAI models.
413
+
414
+ ## License
415
+
416
+ [LICENSE](./LICENSE)
417
+
418
+ ## Star History
419
+
420
+ [![Star History Chart](https://api.star-history.com/svg?repos=llmcod/blackbox-cli&type=Date)](https://www.star-history.com/#llmcod/blackbox-cli&Date)
File without changes
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export * from './src/index.js';
7
+ export { Storage } from './src/config/storage.js';
8
+ export { DEFAULT_GEMINI_MODEL, DEFAULT_GEMINI_FLASH_MODEL, DEFAULT_GEMINI_FLASH_LITE_MODEL, DEFAULT_GEMINI_EMBEDDING_MODEL, } from './src/config/models.js';
9
+ export { logIdeConnection } from './src/telemetry/loggers.js';
10
+ export { IdeConnectionEvent, IdeConnectionType, } from './src/telemetry/types.js';
11
+ export { makeFakeConfig } from './src/test-utils/config.js';
12
+ export * from './src/utils/pathReader.js';
13
+ export * from './src/utils/request-tokenizer/supportedImageFormats.js';
package/dist/index.js ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export * from './src/index.js';
7
+ export { Storage } from './src/config/storage.js';
8
+ export { DEFAULT_GEMINI_MODEL, DEFAULT_GEMINI_FLASH_MODEL, DEFAULT_GEMINI_FLASH_LITE_MODEL, DEFAULT_GEMINI_EMBEDDING_MODEL, } from './src/config/models.js';
9
+ export { logIdeConnection } from './src/telemetry/loggers.js';
10
+ export { IdeConnectionEvent, IdeConnectionType, } from './src/telemetry/types.js';
11
+ export { makeFakeConfig } from './src/test-utils/config.js';
12
+ export * from './src/utils/pathReader.js';
13
+ export * from './src/utils/request-tokenizer/supportedImageFormats.js';
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EACL,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wDAAwD,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import * as actualFsPromises from 'node:fs/promises';
7
+ export declare const mockControl: {
8
+ mockReadFile: import("vitest").Mock<(...args: any[]) => any>;
9
+ };
10
+ export declare const access: typeof actualFsPromises.access, appendFile: typeof actualFsPromises.appendFile, chmod: typeof actualFsPromises.chmod, chown: typeof actualFsPromises.chown, copyFile: typeof actualFsPromises.copyFile, cp: typeof actualFsPromises.cp, lchmod: typeof actualFsPromises.lchmod, lchown: typeof actualFsPromises.lchown, link: typeof actualFsPromises.link, lstat: typeof actualFsPromises.lstat, mkdir: typeof actualFsPromises.mkdir, open: typeof actualFsPromises.open, opendir: typeof actualFsPromises.opendir, readdir: typeof actualFsPromises.readdir, readlink: typeof actualFsPromises.readlink, realpath: typeof actualFsPromises.realpath, rename: typeof actualFsPromises.rename, rmdir: typeof actualFsPromises.rmdir, rm: typeof actualFsPromises.rm, stat: typeof actualFsPromises.stat, symlink: typeof actualFsPromises.symlink, truncate: typeof actualFsPromises.truncate, unlink: typeof actualFsPromises.unlink, utimes: typeof actualFsPromises.utimes, watch: typeof actualFsPromises.watch, writeFile: typeof actualFsPromises.writeFile;
11
+ export declare const readFile: import("vitest").Mock<(...args: any[]) => any>;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { vi } from 'vitest';
7
+ import * as actualFsPromises from 'node:fs/promises';
8
+ const readFileMock = vi.fn();
9
+ // Export a control object so tests can access and manipulate the mock
10
+ export const mockControl = {
11
+ mockReadFile: readFileMock,
12
+ };
13
+ // Export all other functions from the actual fs/promises module
14
+ export const { access, appendFile, chmod, chown, copyFile, cp, lchmod, lchown, link, lstat, mkdir, open, opendir, readdir, readlink, realpath, rename, rmdir, rm, stat, symlink, truncate, unlink, utimes, watch, writeFile, } = actualFsPromises;
15
+ // Override readFile with our mock
16
+ export const readFile = readFileMock;
17
+ //# sourceMappingURL=promises.js.map