@vybestack/llxprt-code-core 0.1.18-nightly.250811.b0db22c6 → 0.1.18-nightly.250812.12fa8ad2

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 (485) hide show
  1. package/README.md +49 -2
  2. package/dist/index.d.ts +3 -0
  3. package/dist/index.js +2 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/auth/anthropic-device-flow.d.ts +53 -0
  6. package/dist/src/auth/anthropic-device-flow.js +208 -0
  7. package/dist/src/auth/anthropic-device-flow.js.map +1 -0
  8. package/dist/src/auth/token-store.js +11 -7
  9. package/dist/src/auth/token-store.js.map +1 -1
  10. package/dist/src/config/config.d.ts +7 -1
  11. package/dist/src/config/config.js +42 -4
  12. package/dist/src/config/config.js.map +1 -1
  13. package/dist/src/config/profileManager.d.ts +14 -4
  14. package/dist/src/config/profileManager.js +90 -11
  15. package/dist/src/config/profileManager.js.map +1 -1
  16. package/dist/src/core/contentGenerator.d.ts +2 -1
  17. package/dist/src/core/contentGenerator.js +1 -0
  18. package/dist/src/core/contentGenerator.js.map +1 -1
  19. package/dist/src/index.d.ts +6 -0
  20. package/dist/src/index.js +5 -0
  21. package/dist/src/index.js.map +1 -1
  22. package/dist/src/providers/BaseProvider.d.ts +51 -0
  23. package/dist/src/providers/BaseProvider.js +136 -1
  24. package/dist/src/providers/BaseProvider.js.map +1 -1
  25. package/dist/src/providers/IProvider.d.ts +1 -0
  26. package/dist/src/providers/LoggingProviderWrapper.d.ts +1 -0
  27. package/dist/src/providers/LoggingProviderWrapper.js +3 -0
  28. package/dist/src/providers/LoggingProviderWrapper.js.map +1 -1
  29. package/dist/src/providers/ProviderManager.d.ts +0 -1
  30. package/dist/src/providers/ProviderManager.js +23 -14
  31. package/dist/src/providers/ProviderManager.js.map +1 -1
  32. package/dist/src/providers/anthropic/AnthropicProvider.d.ts +20 -6
  33. package/dist/src/providers/anthropic/AnthropicProvider.js +172 -26
  34. package/dist/src/providers/anthropic/AnthropicProvider.js.map +1 -1
  35. package/dist/src/providers/gemini/GeminiProvider.d.ts +4 -0
  36. package/dist/src/providers/gemini/GeminiProvider.js +33 -1
  37. package/dist/src/providers/gemini/GeminiProvider.js.map +1 -1
  38. package/dist/src/providers/openai/OpenAIProvider.d.ts +32 -0
  39. package/dist/src/providers/openai/OpenAIProvider.js +200 -13
  40. package/dist/src/providers/openai/OpenAIProvider.js.map +1 -1
  41. package/dist/src/providers/openai/RESPONSES_API_MODELS.d.ts +1 -1
  42. package/dist/src/providers/openai/RESPONSES_API_MODELS.js +1 -0
  43. package/dist/src/providers/openai/RESPONSES_API_MODELS.js.map +1 -1
  44. package/dist/src/providers/openai/syntheticToolResponses.d.ts +52 -0
  45. package/dist/src/providers/openai/syntheticToolResponses.js +129 -0
  46. package/dist/src/providers/openai/syntheticToolResponses.js.map +1 -0
  47. package/dist/src/settings/SettingsService.d.ts +32 -0
  48. package/dist/src/settings/SettingsService.js +204 -0
  49. package/dist/src/settings/SettingsService.js.map +1 -0
  50. package/dist/src/settings/settingsServiceInstance.d.ts +12 -0
  51. package/dist/src/settings/settingsServiceInstance.js +24 -0
  52. package/dist/src/settings/settingsServiceInstance.js.map +1 -0
  53. package/dist/src/settings/types.d.ts +141 -0
  54. package/dist/src/settings/types.js +5 -0
  55. package/dist/src/settings/types.js.map +1 -0
  56. package/package.json +4 -2
  57. package/dist/src/auth/auth-integration.spec.d.ts +0 -6
  58. package/dist/src/auth/auth-integration.spec.js +0 -384
  59. package/dist/src/auth/auth-integration.spec.js.map +0 -1
  60. package/dist/src/auth/precedence.test.d.ts +0 -6
  61. package/dist/src/auth/precedence.test.js +0 -374
  62. package/dist/src/auth/precedence.test.js.map +0 -1
  63. package/dist/src/auth/qwen-device-flow.spec.d.ts +0 -6
  64. package/dist/src/auth/qwen-device-flow.spec.js +0 -793
  65. package/dist/src/auth/qwen-device-flow.spec.js.map +0 -1
  66. package/dist/src/auth/token-store.spec.d.ts +0 -6
  67. package/dist/src/auth/token-store.spec.js +0 -405
  68. package/dist/src/auth/token-store.spec.js.map +0 -1
  69. package/dist/src/code_assist/converter.test.d.ts +0 -6
  70. package/dist/src/code_assist/converter.test.js +0 -279
  71. package/dist/src/code_assist/converter.test.js.map +0 -1
  72. package/dist/src/code_assist/oauth2.test.d.ts +0 -6
  73. package/dist/src/code_assist/oauth2.test.js +0 -370
  74. package/dist/src/code_assist/oauth2.test.js.map +0 -1
  75. package/dist/src/code_assist/server.test.d.ts +0 -6
  76. package/dist/src/code_assist/server.test.js +0 -134
  77. package/dist/src/code_assist/server.test.js.map +0 -1
  78. package/dist/src/code_assist/setup.test.d.ts +0 -6
  79. package/dist/src/code_assist/setup.test.js +0 -65
  80. package/dist/src/code_assist/setup.test.js.map +0 -1
  81. package/dist/src/config/config.alwaysAllow.test.d.ts +0 -6
  82. package/dist/src/config/config.alwaysAllow.test.js +0 -84
  83. package/dist/src/config/config.alwaysAllow.test.js.map +0 -1
  84. package/dist/src/config/config.ephemeral.test.d.ts +0 -6
  85. package/dist/src/config/config.ephemeral.test.js +0 -152
  86. package/dist/src/config/config.ephemeral.test.js.map +0 -1
  87. package/dist/src/config/config.test.d.ts +0 -6
  88. package/dist/src/config/config.test.js +0 -369
  89. package/dist/src/config/config.test.js.map +0 -1
  90. package/dist/src/config/endpoints.test.d.ts +0 -6
  91. package/dist/src/config/endpoints.test.js +0 -196
  92. package/dist/src/config/endpoints.test.js.map +0 -1
  93. package/dist/src/config/flashFallback.test.d.ts +0 -6
  94. package/dist/src/config/flashFallback.test.js +0 -91
  95. package/dist/src/config/flashFallback.test.js.map +0 -1
  96. package/dist/src/core/client.test.d.ts +0 -6
  97. package/dist/src/core/client.test.js +0 -1323
  98. package/dist/src/core/client.test.js.map +0 -1
  99. package/dist/src/core/contentGenerator.test.d.ts +0 -6
  100. package/dist/src/core/contentGenerator.test.js +0 -103
  101. package/dist/src/core/contentGenerator.test.js.map +0 -1
  102. package/dist/src/core/coreToolScheduler.test.d.ts +0 -6
  103. package/dist/src/core/coreToolScheduler.test.js +0 -637
  104. package/dist/src/core/coreToolScheduler.test.js.map +0 -1
  105. package/dist/src/core/geminiChat.test.d.ts +0 -6
  106. package/dist/src/core/geminiChat.test.js +0 -425
  107. package/dist/src/core/geminiChat.test.js.map +0 -1
  108. package/dist/src/core/googleGenAIWrapper.test.d.ts +0 -6
  109. package/dist/src/core/googleGenAIWrapper.test.js +0 -104
  110. package/dist/src/core/googleGenAIWrapper.test.js.map +0 -1
  111. package/dist/src/core/logger.test.d.ts +0 -6
  112. package/dist/src/core/logger.test.js +0 -467
  113. package/dist/src/core/logger.test.js.map +0 -1
  114. package/dist/src/core/nonInteractiveToolExecutor.test.d.ts +0 -6
  115. package/dist/src/core/nonInteractiveToolExecutor.test.js +0 -165
  116. package/dist/src/core/nonInteractiveToolExecutor.test.js.map +0 -1
  117. package/dist/src/core/prompts-async.test.d.ts +0 -6
  118. package/dist/src/core/prompts-async.test.js +0 -115
  119. package/dist/src/core/prompts-async.test.js.map +0 -1
  120. package/dist/src/core/prompts.test.d.ts +0 -6
  121. package/dist/src/core/prompts.test.js +0 -68
  122. package/dist/src/core/prompts.test.js.map +0 -1
  123. package/dist/src/core/subagent.test.d.ts +0 -6
  124. package/dist/src/core/subagent.test.js +0 -510
  125. package/dist/src/core/subagent.test.js.map +0 -1
  126. package/dist/src/core/tokenLimits.test.d.ts +0 -6
  127. package/dist/src/core/tokenLimits.test.js +0 -66
  128. package/dist/src/core/tokenLimits.test.js.map +0 -1
  129. package/dist/src/core/turn.test.d.ts +0 -6
  130. package/dist/src/core/turn.test.js +0 -366
  131. package/dist/src/core/turn.test.js.map +0 -1
  132. package/dist/src/hooks/tool-render-suppression-hook.test.d.ts +0 -6
  133. package/dist/src/hooks/tool-render-suppression-hook.test.js +0 -59
  134. package/dist/src/hooks/tool-render-suppression-hook.test.js.map +0 -1
  135. package/dist/src/ide/ide-installer.test.d.ts +0 -6
  136. package/dist/src/ide/ide-installer.test.js +0 -55
  137. package/dist/src/ide/ide-installer.test.js.map +0 -1
  138. package/dist/src/ide/ideContext.test.d.ts +0 -6
  139. package/dist/src/ide/ideContext.test.js +0 -265
  140. package/dist/src/ide/ideContext.test.js.map +0 -1
  141. package/dist/src/index.test.d.ts +0 -6
  142. package/dist/src/index.test.js +0 -12
  143. package/dist/src/index.test.js.map +0 -1
  144. package/dist/src/integration-tests/oauth-integration.spec.d.ts +0 -6
  145. package/dist/src/integration-tests/oauth-integration.spec.js +0 -518
  146. package/dist/src/integration-tests/oauth-integration.spec.js.map +0 -1
  147. package/dist/src/integration-tests/oauth-simple-test.spec.d.ts +0 -1
  148. package/dist/src/integration-tests/oauth-simple-test.spec.js +0 -88
  149. package/dist/src/integration-tests/oauth-simple-test.spec.js.map +0 -1
  150. package/dist/src/integration-tests/todo-system.test.d.ts +0 -6
  151. package/dist/src/integration-tests/todo-system.test.js +0 -46
  152. package/dist/src/integration-tests/todo-system.test.js.map +0 -1
  153. package/dist/src/mcp/google-auth-provider.test.d.ts +0 -6
  154. package/dist/src/mcp/google-auth-provider.test.js +0 -54
  155. package/dist/src/mcp/google-auth-provider.test.js.map +0 -1
  156. package/dist/src/mcp/oauth-provider.test.d.ts +0 -6
  157. package/dist/src/mcp/oauth-provider.test.js +0 -602
  158. package/dist/src/mcp/oauth-provider.test.js.map +0 -1
  159. package/dist/src/mcp/oauth-token-storage.test.d.ts +0 -6
  160. package/dist/src/mcp/oauth-token-storage.test.js +0 -205
  161. package/dist/src/mcp/oauth-token-storage.test.js.map +0 -1
  162. package/dist/src/mcp/oauth-utils.test.d.ts +0 -6
  163. package/dist/src/mcp/oauth-utils.test.js +0 -144
  164. package/dist/src/mcp/oauth-utils.test.js.map +0 -1
  165. package/dist/src/parsers/TextToolCallParser.multibyte.test.d.ts +0 -1
  166. package/dist/src/parsers/TextToolCallParser.multibyte.test.js +0 -42
  167. package/dist/src/parsers/TextToolCallParser.multibyte.test.js.map +0 -1
  168. package/dist/src/parsers/TextToolCallParser.test.d.ts +0 -1
  169. package/dist/src/parsers/TextToolCallParser.test.js +0 -225
  170. package/dist/src/parsers/TextToolCallParser.test.js.map +0 -1
  171. package/dist/src/prompt-config/TemplateEngine.test.d.ts +0 -1
  172. package/dist/src/prompt-config/TemplateEngine.test.js +0 -494
  173. package/dist/src/prompt-config/TemplateEngine.test.js.map +0 -1
  174. package/dist/src/prompt-config/prompt-cache.test.d.ts +0 -6
  175. package/dist/src/prompt-config/prompt-cache.test.js +0 -437
  176. package/dist/src/prompt-config/prompt-cache.test.js.map +0 -1
  177. package/dist/src/prompt-config/prompt-installer.test.d.ts +0 -7
  178. package/dist/src/prompt-config/prompt-installer.test.js +0 -503
  179. package/dist/src/prompt-config/prompt-installer.test.js.map +0 -1
  180. package/dist/src/prompt-config/prompt-loader.test.d.ts +0 -5
  181. package/dist/src/prompt-config/prompt-loader.test.js +0 -413
  182. package/dist/src/prompt-config/prompt-loader.test.js.map +0 -1
  183. package/dist/src/prompt-config/prompt-resolver.test.d.ts +0 -1
  184. package/dist/src/prompt-config/prompt-resolver.test.js +0 -529
  185. package/dist/src/prompt-config/prompt-resolver.test.js.map +0 -1
  186. package/dist/src/prompt-config/prompt-service.test.d.ts +0 -1
  187. package/dist/src/prompt-config/prompt-service.test.js +0 -811
  188. package/dist/src/prompt-config/prompt-service.test.js.map +0 -1
  189. package/dist/src/providers/BaseProvider.test.d.ts +0 -6
  190. package/dist/src/providers/BaseProvider.test.js +0 -472
  191. package/dist/src/providers/BaseProvider.test.js.map +0 -1
  192. package/dist/src/providers/ProviderManager.gemini-switch.test.d.ts +0 -6
  193. package/dist/src/providers/ProviderManager.gemini-switch.test.js +0 -57
  194. package/dist/src/providers/ProviderManager.gemini-switch.test.js.map +0 -1
  195. package/dist/src/providers/ProviderManager.test.d.ts +0 -6
  196. package/dist/src/providers/ProviderManager.test.js +0 -284
  197. package/dist/src/providers/ProviderManager.test.js.map +0 -1
  198. package/dist/src/providers/adapters/GeminiCompatibleWrapper.test.d.ts +0 -6
  199. package/dist/src/providers/adapters/GeminiCompatibleWrapper.test.js +0 -273
  200. package/dist/src/providers/adapters/GeminiCompatibleWrapper.test.js.map +0 -1
  201. package/dist/src/providers/anthropic/AnthropicProvider.modelParams.test.d.ts +0 -1
  202. package/dist/src/providers/anthropic/AnthropicProvider.modelParams.test.js +0 -48
  203. package/dist/src/providers/anthropic/AnthropicProvider.modelParams.test.js.map +0 -1
  204. package/dist/src/providers/anthropic/AnthropicProvider.test.d.ts +0 -1
  205. package/dist/src/providers/anthropic/AnthropicProvider.test.js +0 -487
  206. package/dist/src/providers/anthropic/AnthropicProvider.test.js.map +0 -1
  207. package/dist/src/providers/gemini/GeminiProvider.integration.test.d.ts +0 -6
  208. package/dist/src/providers/gemini/GeminiProvider.integration.test.js +0 -126
  209. package/dist/src/providers/gemini/GeminiProvider.integration.test.js.map +0 -1
  210. package/dist/src/providers/gemini/GeminiProvider.test.d.ts +0 -6
  211. package/dist/src/providers/gemini/GeminiProvider.test.js +0 -136
  212. package/dist/src/providers/gemini/GeminiProvider.test.js.map +0 -1
  213. package/dist/src/providers/integration/multi-provider.integration.test.d.ts +0 -6
  214. package/dist/src/providers/integration/multi-provider.integration.test.js +0 -308
  215. package/dist/src/providers/integration/multi-provider.integration.test.js.map +0 -1
  216. package/dist/src/providers/openai/ConversationCache.accumTokens.test.d.ts +0 -1
  217. package/dist/src/providers/openai/ConversationCache.accumTokens.test.js +0 -97
  218. package/dist/src/providers/openai/ConversationCache.accumTokens.test.js.map +0 -1
  219. package/dist/src/providers/openai/ConversationCache.test.d.ts +0 -1
  220. package/dist/src/providers/openai/ConversationCache.test.js +0 -113
  221. package/dist/src/providers/openai/ConversationCache.test.js.map +0 -1
  222. package/dist/src/providers/openai/OpenAIProvider.callResponses.stateless.test.d.ts +0 -1
  223. package/dist/src/providers/openai/OpenAIProvider.callResponses.stateless.test.js +0 -189
  224. package/dist/src/providers/openai/OpenAIProvider.callResponses.stateless.test.js.map +0 -1
  225. package/dist/src/providers/openai/OpenAIProvider.integration.test.d.ts +0 -6
  226. package/dist/src/providers/openai/OpenAIProvider.integration.test.js +0 -125
  227. package/dist/src/providers/openai/OpenAIProvider.integration.test.js.map +0 -1
  228. package/dist/src/providers/openai/OpenAIProvider.responses.test.d.ts +0 -1
  229. package/dist/src/providers/openai/OpenAIProvider.responses.test.js +0 -350
  230. package/dist/src/providers/openai/OpenAIProvider.responses.test.js.map +0 -1
  231. package/dist/src/providers/openai/OpenAIProvider.responsesIntegration.test.d.ts +0 -1
  232. package/dist/src/providers/openai/OpenAIProvider.responsesIntegration.test.js +0 -213
  233. package/dist/src/providers/openai/OpenAIProvider.responsesIntegration.test.js.map +0 -1
  234. package/dist/src/providers/openai/OpenAIProvider.shouldUseResponses.test.d.ts +0 -1
  235. package/dist/src/providers/openai/OpenAIProvider.shouldUseResponses.test.js +0 -59
  236. package/dist/src/providers/openai/OpenAIProvider.shouldUseResponses.test.js.map +0 -1
  237. package/dist/src/providers/openai/OpenAIProvider.stateful.integration.test.d.ts +0 -6
  238. package/dist/src/providers/openai/OpenAIProvider.stateful.integration.test.js +0 -105
  239. package/dist/src/providers/openai/OpenAIProvider.stateful.integration.test.js.map +0 -1
  240. package/dist/src/providers/openai/OpenAIProvider.switch.test.d.ts +0 -1
  241. package/dist/src/providers/openai/OpenAIProvider.switch.test.js +0 -256
  242. package/dist/src/providers/openai/OpenAIProvider.switch.test.js.map +0 -1
  243. package/dist/src/providers/openai/OpenAIProvider.test.d.ts +0 -16
  244. package/dist/src/providers/openai/OpenAIProvider.test.js +0 -621
  245. package/dist/src/providers/openai/OpenAIProvider.test.js.map +0 -1
  246. package/dist/src/providers/openai/ResponsesContextTrim.integration.test.d.ts +0 -1
  247. package/dist/src/providers/openai/ResponsesContextTrim.integration.test.js +0 -210
  248. package/dist/src/providers/openai/ResponsesContextTrim.integration.test.js.map +0 -1
  249. package/dist/src/providers/openai/__tests__/formatArrayResponse.test.d.ts +0 -1
  250. package/dist/src/providers/openai/__tests__/formatArrayResponse.test.js +0 -65
  251. package/dist/src/providers/openai/__tests__/formatArrayResponse.test.js.map +0 -1
  252. package/dist/src/providers/openai/buildResponsesRequest.stripToolCalls.test.d.ts +0 -1
  253. package/dist/src/providers/openai/buildResponsesRequest.stripToolCalls.test.js +0 -129
  254. package/dist/src/providers/openai/buildResponsesRequest.stripToolCalls.test.js.map +0 -1
  255. package/dist/src/providers/openai/buildResponsesRequest.test.d.ts +0 -1
  256. package/dist/src/providers/openai/buildResponsesRequest.test.js +0 -406
  257. package/dist/src/providers/openai/buildResponsesRequest.test.js.map +0 -1
  258. package/dist/src/providers/openai/buildResponsesRequest.undefined.test.d.ts +0 -1
  259. package/dist/src/providers/openai/buildResponsesRequest.undefined.test.js +0 -50
  260. package/dist/src/providers/openai/buildResponsesRequest.undefined.test.js.map +0 -1
  261. package/dist/src/providers/openai/estimateRemoteTokens.test.d.ts +0 -1
  262. package/dist/src/providers/openai/estimateRemoteTokens.test.js +0 -125
  263. package/dist/src/providers/openai/estimateRemoteTokens.test.js.map +0 -1
  264. package/dist/src/providers/openai/openai-oauth.spec.d.ts +0 -16
  265. package/dist/src/providers/openai/openai-oauth.spec.js +0 -544
  266. package/dist/src/providers/openai/openai-oauth.spec.js.map +0 -1
  267. package/dist/src/providers/openai/parseResponsesStream.responsesToolCalls.test.d.ts +0 -1
  268. package/dist/src/providers/openai/parseResponsesStream.responsesToolCalls.test.js +0 -192
  269. package/dist/src/providers/openai/parseResponsesStream.responsesToolCalls.test.js.map +0 -1
  270. package/dist/src/providers/openai/parseResponsesStream.test.d.ts +0 -1
  271. package/dist/src/providers/openai/parseResponsesStream.test.js +0 -151
  272. package/dist/src/providers/openai/parseResponsesStream.test.js.map +0 -1
  273. package/dist/src/services/fileDiscoveryService.test.d.ts +0 -6
  274. package/dist/src/services/fileDiscoveryService.test.js +0 -143
  275. package/dist/src/services/fileDiscoveryService.test.js.map +0 -1
  276. package/dist/src/services/gitService.test.d.ts +0 -6
  277. package/dist/src/services/gitService.test.js +0 -209
  278. package/dist/src/services/gitService.test.js.map +0 -1
  279. package/dist/src/services/loopDetectionService.test.d.ts +0 -6
  280. package/dist/src/services/loopDetectionService.test.js +0 -484
  281. package/dist/src/services/loopDetectionService.test.js.map +0 -1
  282. package/dist/src/services/shellExecutionService.multibyte.test.d.ts +0 -6
  283. package/dist/src/services/shellExecutionService.multibyte.test.js +0 -72
  284. package/dist/src/services/shellExecutionService.multibyte.test.js.map +0 -1
  285. package/dist/src/services/shellExecutionService.test.d.ts +0 -6
  286. package/dist/src/services/shellExecutionService.test.js +0 -272
  287. package/dist/src/services/shellExecutionService.test.js.map +0 -1
  288. package/dist/src/services/shellExecutionService.windows.multibyte.test.d.ts +0 -6
  289. package/dist/src/services/shellExecutionService.windows.multibyte.test.js +0 -98
  290. package/dist/src/services/shellExecutionService.windows.multibyte.test.js.map +0 -1
  291. package/dist/src/services/shellExecutionService.windows.test.d.ts +0 -6
  292. package/dist/src/services/shellExecutionService.windows.test.js +0 -79
  293. package/dist/src/services/shellExecutionService.windows.test.js.map +0 -1
  294. package/dist/src/services/tool-call-tracker-service.test.d.ts +0 -6
  295. package/dist/src/services/tool-call-tracker-service.test.js +0 -99
  296. package/dist/src/services/tool-call-tracker-service.test.js.map +0 -1
  297. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.d.ts +0 -6
  298. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js +0 -187
  299. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js.map +0 -1
  300. package/dist/src/telemetry/loggers.test.d.ts +0 -6
  301. package/dist/src/telemetry/loggers.test.js +0 -573
  302. package/dist/src/telemetry/loggers.test.js.map +0 -1
  303. package/dist/src/telemetry/metrics.test.d.ts +0 -6
  304. package/dist/src/telemetry/metrics.test.js +0 -212
  305. package/dist/src/telemetry/metrics.test.js.map +0 -1
  306. package/dist/src/telemetry/telemetry.test.d.ts +0 -6
  307. package/dist/src/telemetry/telemetry.test.js +0 -54
  308. package/dist/src/telemetry/telemetry.test.js.map +0 -1
  309. package/dist/src/telemetry/uiTelemetry.test.d.ts +0 -6
  310. package/dist/src/telemetry/uiTelemetry.test.js +0 -518
  311. package/dist/src/telemetry/uiTelemetry.test.js.map +0 -1
  312. package/dist/src/tools/ToolFormatter.test.d.ts +0 -16
  313. package/dist/src/tools/ToolFormatter.test.js +0 -349
  314. package/dist/src/tools/ToolFormatter.test.js.map +0 -1
  315. package/dist/src/tools/ToolFormatter.toResponsesTool.test.d.ts +0 -1
  316. package/dist/src/tools/ToolFormatter.toResponsesTool.test.js +0 -241
  317. package/dist/src/tools/ToolFormatter.toResponsesTool.test.js.map +0 -1
  318. package/dist/src/tools/diffOptions.test.d.ts +0 -6
  319. package/dist/src/tools/diffOptions.test.js +0 -119
  320. package/dist/src/tools/diffOptions.test.js.map +0 -1
  321. package/dist/src/tools/edit.test.d.ts +0 -6
  322. package/dist/src/tools/edit.test.js +0 -689
  323. package/dist/src/tools/edit.test.js.map +0 -1
  324. package/dist/src/tools/glob.test.d.ts +0 -6
  325. package/dist/src/tools/glob.test.js +0 -332
  326. package/dist/src/tools/glob.test.js.map +0 -1
  327. package/dist/src/tools/grep.test.d.ts +0 -6
  328. package/dist/src/tools/grep.test.js +0 -272
  329. package/dist/src/tools/grep.test.js.map +0 -1
  330. package/dist/src/tools/ls.test.d.ts +0 -6
  331. package/dist/src/tools/ls.test.js +0 -357
  332. package/dist/src/tools/ls.test.js.map +0 -1
  333. package/dist/src/tools/mcp-client.test.d.ts +0 -6
  334. package/dist/src/tools/mcp-client.test.js +0 -617
  335. package/dist/src/tools/mcp-client.test.js.map +0 -1
  336. package/dist/src/tools/mcp-tool.test.d.ts +0 -6
  337. package/dist/src/tools/mcp-tool.test.js +0 -501
  338. package/dist/src/tools/mcp-tool.test.js.map +0 -1
  339. package/dist/src/tools/memoryTool.test.d.ts +0 -6
  340. package/dist/src/tools/memoryTool.test.js +0 -266
  341. package/dist/src/tools/memoryTool.test.js.map +0 -1
  342. package/dist/src/tools/modifiable-tool.test.d.ts +0 -6
  343. package/dist/src/tools/modifiable-tool.test.js +0 -193
  344. package/dist/src/tools/modifiable-tool.test.js.map +0 -1
  345. package/dist/src/tools/read-file.test.d.ts +0 -6
  346. package/dist/src/tools/read-file.test.js +0 -319
  347. package/dist/src/tools/read-file.test.js.map +0 -1
  348. package/dist/src/tools/read-many-files.test.d.ts +0 -6
  349. package/dist/src/tools/read-many-files.test.js +0 -644
  350. package/dist/src/tools/read-many-files.test.js.map +0 -1
  351. package/dist/src/tools/shell.multibyte.test.d.ts +0 -6
  352. package/dist/src/tools/shell.multibyte.test.js +0 -75
  353. package/dist/src/tools/shell.multibyte.test.js.map +0 -1
  354. package/dist/src/tools/shell.test.d.ts +0 -6
  355. package/dist/src/tools/shell.test.js +0 -367
  356. package/dist/src/tools/shell.test.js.map +0 -1
  357. package/dist/src/tools/todo-pause.spec.d.ts +0 -6
  358. package/dist/src/tools/todo-pause.spec.js +0 -287
  359. package/dist/src/tools/todo-pause.spec.js.map +0 -1
  360. package/dist/src/tools/todo-read.test.d.ts +0 -6
  361. package/dist/src/tools/todo-read.test.js +0 -162
  362. package/dist/src/tools/todo-read.test.js.map +0 -1
  363. package/dist/src/tools/todo-schemas.test.d.ts +0 -6
  364. package/dist/src/tools/todo-schemas.test.js +0 -341
  365. package/dist/src/tools/todo-schemas.test.js.map +0 -1
  366. package/dist/src/tools/todo-store.test.d.ts +0 -6
  367. package/dist/src/tools/todo-store.test.js +0 -169
  368. package/dist/src/tools/todo-store.test.js.map +0 -1
  369. package/dist/src/tools/todo-write.test.d.ts +0 -6
  370. package/dist/src/tools/todo-write.test.js +0 -226
  371. package/dist/src/tools/todo-write.test.js.map +0 -1
  372. package/dist/src/tools/tool-registry.test.d.ts +0 -6
  373. package/dist/src/tools/tool-registry.test.js +0 -468
  374. package/dist/src/tools/tool-registry.test.js.map +0 -1
  375. package/dist/src/tools/tools.test.d.ts +0 -6
  376. package/dist/src/tools/tools.test.js +0 -117
  377. package/dist/src/tools/tools.test.js.map +0 -1
  378. package/dist/src/tools/web-fetch.integration.test.d.ts +0 -6
  379. package/dist/src/tools/web-fetch.integration.test.js +0 -532
  380. package/dist/src/tools/web-fetch.integration.test.js.map +0 -1
  381. package/dist/src/tools/web-search.test.d.ts +0 -6
  382. package/dist/src/tools/web-search.test.js +0 -230
  383. package/dist/src/tools/web-search.test.js.map +0 -1
  384. package/dist/src/tools/write-file.test.d.ts +0 -6
  385. package/dist/src/tools/write-file.test.js +0 -465
  386. package/dist/src/tools/write-file.test.js.map +0 -1
  387. package/dist/src/utils/bfsFileSearch.test.d.ts +0 -6
  388. package/dist/src/utils/bfsFileSearch.test.js +0 -191
  389. package/dist/src/utils/bfsFileSearch.test.js.map +0 -1
  390. package/dist/src/utils/editCorrector.test.d.ts +0 -6
  391. package/dist/src/utils/editCorrector.test.js +0 -564
  392. package/dist/src/utils/editCorrector.test.js.map +0 -1
  393. package/dist/src/utils/editor.test.d.ts +0 -6
  394. package/dist/src/utils/editor.test.js +0 -445
  395. package/dist/src/utils/editor.test.js.map +0 -1
  396. package/dist/src/utils/environmentContext.test.d.ts +0 -6
  397. package/dist/src/utils/environmentContext.test.js +0 -139
  398. package/dist/src/utils/environmentContext.test.js.map +0 -1
  399. package/dist/src/utils/errorReporting.test.d.ts +0 -6
  400. package/dist/src/utils/errorReporting.test.js +0 -130
  401. package/dist/src/utils/errorReporting.test.js.map +0 -1
  402. package/dist/src/utils/fileUtils.test.d.ts +0 -6
  403. package/dist/src/utils/fileUtils.test.js +0 -363
  404. package/dist/src/utils/fileUtils.test.js.map +0 -1
  405. package/dist/src/utils/filesearch/crawlCache.test.d.ts +0 -6
  406. package/dist/src/utils/filesearch/crawlCache.test.js +0 -103
  407. package/dist/src/utils/filesearch/crawlCache.test.js.map +0 -1
  408. package/dist/src/utils/filesearch/fileSearch.test.d.ts +0 -6
  409. package/dist/src/utils/filesearch/fileSearch.test.js +0 -654
  410. package/dist/src/utils/filesearch/fileSearch.test.js.map +0 -1
  411. package/dist/src/utils/filesearch/ignore.test.d.ts +0 -6
  412. package/dist/src/utils/filesearch/ignore.test.js +0 -57
  413. package/dist/src/utils/filesearch/ignore.test.js.map +0 -1
  414. package/dist/src/utils/filesearch/result-cache.test.d.ts +0 -6
  415. package/dist/src/utils/filesearch/result-cache.test.js +0 -47
  416. package/dist/src/utils/filesearch/result-cache.test.js.map +0 -1
  417. package/dist/src/utils/flashFallback.integration.test.d.ts +0 -6
  418. package/dist/src/utils/flashFallback.integration.test.js +0 -120
  419. package/dist/src/utils/flashFallback.integration.test.js.map +0 -1
  420. package/dist/src/utils/generateContentResponseUtilities.test.d.ts +0 -6
  421. package/dist/src/utils/generateContentResponseUtilities.test.js +0 -273
  422. package/dist/src/utils/generateContentResponseUtilities.test.js.map +0 -1
  423. package/dist/src/utils/getFolderStructure.test.d.ts +0 -6
  424. package/dist/src/utils/getFolderStructure.test.js +0 -282
  425. package/dist/src/utils/getFolderStructure.test.js.map +0 -1
  426. package/dist/src/utils/gitIgnoreParser.test.d.ts +0 -6
  427. package/dist/src/utils/gitIgnoreParser.test.js +0 -154
  428. package/dist/src/utils/gitIgnoreParser.test.js.map +0 -1
  429. package/dist/src/utils/memoryDiscovery.test.d.ts +0 -6
  430. package/dist/src/utils/memoryDiscovery.test.js +0 -181
  431. package/dist/src/utils/memoryDiscovery.test.js.map +0 -1
  432. package/dist/src/utils/memoryImportProcessor.test.d.ts +0 -6
  433. package/dist/src/utils/memoryImportProcessor.test.js +0 -715
  434. package/dist/src/utils/memoryImportProcessor.test.js.map +0 -1
  435. package/dist/src/utils/nextSpeakerChecker.test.d.ts +0 -6
  436. package/dist/src/utils/nextSpeakerChecker.test.js +0 -172
  437. package/dist/src/utils/nextSpeakerChecker.test.js.map +0 -1
  438. package/dist/src/utils/partUtils.test.d.ts +0 -6
  439. package/dist/src/utils/partUtils.test.js +0 -130
  440. package/dist/src/utils/partUtils.test.js.map +0 -1
  441. package/dist/src/utils/paths.test.d.ts +0 -6
  442. package/dist/src/utils/paths.test.js +0 -153
  443. package/dist/src/utils/paths.test.js.map +0 -1
  444. package/dist/src/utils/retry.test.d.ts +0 -6
  445. package/dist/src/utils/retry.test.js +0 -322
  446. package/dist/src/utils/retry.test.js.map +0 -1
  447. package/dist/src/utils/safeJsonStringify.test.d.ts +0 -6
  448. package/dist/src/utils/safeJsonStringify.test.js +0 -61
  449. package/dist/src/utils/safeJsonStringify.test.js.map +0 -1
  450. package/dist/src/utils/sanitization.test.d.ts +0 -6
  451. package/dist/src/utils/sanitization.test.js +0 -81
  452. package/dist/src/utils/sanitization.test.js.map +0 -1
  453. package/dist/src/utils/schemaValidator.test.d.ts +0 -6
  454. package/dist/src/utils/schemaValidator.test.js +0 -146
  455. package/dist/src/utils/schemaValidator.test.js.map +0 -1
  456. package/dist/src/utils/secure-browser-launcher.test.d.ts +0 -6
  457. package/dist/src/utils/secure-browser-launcher.test.js +0 -149
  458. package/dist/src/utils/secure-browser-launcher.test.js.map +0 -1
  459. package/dist/src/utils/shell-utils.shellReplacement.test.d.ts +0 -6
  460. package/dist/src/utils/shell-utils.shellReplacement.test.js +0 -149
  461. package/dist/src/utils/shell-utils.shellReplacement.test.js.map +0 -1
  462. package/dist/src/utils/shell-utils.test.d.ts +0 -6
  463. package/dist/src/utils/shell-utils.test.js +0 -200
  464. package/dist/src/utils/shell-utils.test.js.map +0 -1
  465. package/dist/src/utils/summarizer.test.d.ts +0 -6
  466. package/dist/src/utils/summarizer.test.js +0 -131
  467. package/dist/src/utils/summarizer.test.js.map +0 -1
  468. package/dist/src/utils/systemEncoding.test.d.ts +0 -6
  469. package/dist/src/utils/systemEncoding.test.js +0 -368
  470. package/dist/src/utils/systemEncoding.test.js.map +0 -1
  471. package/dist/src/utils/toolOutputLimiter.test.d.ts +0 -6
  472. package/dist/src/utils/toolOutputLimiter.test.js +0 -164
  473. package/dist/src/utils/toolOutputLimiter.test.js.map +0 -1
  474. package/dist/src/utils/unicodeUtils.test.d.ts +0 -6
  475. package/dist/src/utils/unicodeUtils.test.js +0 -120
  476. package/dist/src/utils/unicodeUtils.test.js.map +0 -1
  477. package/dist/src/utils/user_account.test.d.ts +0 -6
  478. package/dist/src/utils/user_account.test.js +0 -153
  479. package/dist/src/utils/user_account.test.js.map +0 -1
  480. package/dist/src/utils/user_id.test.d.ts +0 -6
  481. package/dist/src/utils/user_id.test.js +0 -21
  482. package/dist/src/utils/user_id.test.js.map +0 -1
  483. package/dist/src/utils/workspaceContext.test.d.ts +0 -6
  484. package/dist/src/utils/workspaceContext.test.js +0 -209
  485. package/dist/src/utils/workspaceContext.test.js.map +0 -1
@@ -1,130 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
7
- import fs from 'node:fs/promises';
8
- import os from 'node:os';
9
- import path from 'node:path';
10
- import { reportError } from './errorReporting.js';
11
- describe('reportError', () => {
12
- let consoleErrorSpy;
13
- let testDir;
14
- const MOCK_TIMESTAMP = '2025-01-01T00-00-00-000Z';
15
- beforeEach(async () => {
16
- // Create a temporary directory for logs
17
- testDir = await fs.mkdtemp(path.join(os.tmpdir(), 'gemini-report-test-'));
18
- vi.resetAllMocks();
19
- consoleErrorSpy = vi.spyOn(console, 'error').mockImplementation(() => { });
20
- vi.spyOn(Date.prototype, 'toISOString').mockReturnValue(MOCK_TIMESTAMP);
21
- });
22
- afterEach(async () => {
23
- vi.restoreAllMocks();
24
- // Clean up the temporary directory
25
- await fs.rm(testDir, { recursive: true, force: true });
26
- });
27
- const getExpectedReportPath = (type) => path.join(testDir, `gemini-client-error-${type}-${MOCK_TIMESTAMP}.json`);
28
- it('should generate a report and log the path', async () => {
29
- const error = new Error('Test error');
30
- error.stack = 'Test stack';
31
- const baseMessage = 'An error occurred.';
32
- const context = { data: 'test context' };
33
- const type = 'test-type';
34
- const expectedReportPath = getExpectedReportPath(type);
35
- await reportError(error, baseMessage, context, type, testDir);
36
- // Verify the file was written
37
- const reportContent = await fs.readFile(expectedReportPath, 'utf-8');
38
- const parsedReport = JSON.parse(reportContent);
39
- expect(parsedReport).toEqual({
40
- error: { message: 'Test error', stack: 'Test stack' },
41
- context,
42
- });
43
- // Verify the console log
44
- expect(consoleErrorSpy).toHaveBeenCalledWith(`${baseMessage} Full report available at: ${expectedReportPath}`);
45
- });
46
- it('should handle errors that are plain objects with a message property', async () => {
47
- const error = { message: 'Test plain object error' };
48
- const baseMessage = 'Another error.';
49
- const type = 'general';
50
- const expectedReportPath = getExpectedReportPath(type);
51
- await reportError(error, baseMessage, undefined, type, testDir);
52
- const reportContent = await fs.readFile(expectedReportPath, 'utf-8');
53
- const parsedReport = JSON.parse(reportContent);
54
- expect(parsedReport).toEqual({
55
- error: { message: 'Test plain object error' },
56
- });
57
- expect(consoleErrorSpy).toHaveBeenCalledWith(`${baseMessage} Full report available at: ${expectedReportPath}`);
58
- });
59
- it('should handle string errors', async () => {
60
- const error = 'Just a string error';
61
- const baseMessage = 'String error occurred.';
62
- const type = 'general';
63
- const expectedReportPath = getExpectedReportPath(type);
64
- await reportError(error, baseMessage, undefined, type, testDir);
65
- const reportContent = await fs.readFile(expectedReportPath, 'utf-8');
66
- const parsedReport = JSON.parse(reportContent);
67
- expect(parsedReport).toEqual({
68
- error: { message: 'Just a string error' },
69
- });
70
- expect(consoleErrorSpy).toHaveBeenCalledWith(`${baseMessage} Full report available at: ${expectedReportPath}`);
71
- });
72
- it('should log fallback message if writing report fails', async () => {
73
- const error = new Error('Main error');
74
- const baseMessage = 'Failed operation.';
75
- const context = ['some context'];
76
- const type = 'general';
77
- const nonExistentDir = path.join(testDir, 'non-existent-dir');
78
- await reportError(error, baseMessage, context, type, nonExistentDir);
79
- expect(consoleErrorSpy).toHaveBeenCalledWith(`${baseMessage} Additionally, failed to write detailed error report:`, expect.any(Error));
80
- expect(consoleErrorSpy).toHaveBeenCalledWith('Original error that triggered report generation:', error);
81
- expect(consoleErrorSpy).toHaveBeenCalledWith('Original context:', context);
82
- });
83
- it('should handle stringification failure of report content (e.g. BigInt in context)', async () => {
84
- const error = new Error('Main error');
85
- error.stack = 'Main stack';
86
- const baseMessage = 'Failed operation with BigInt.';
87
- const context = { a: BigInt(1) }; // BigInt cannot be stringified by JSON.stringify
88
- const type = 'bigint-fail';
89
- const stringifyError = new TypeError('Do not know how to serialize a BigInt');
90
- const expectedMinimalReportPath = getExpectedReportPath(type);
91
- // Simulate JSON.stringify throwing an error for the full report
92
- const originalJsonStringify = JSON.stringify;
93
- let callCount = 0;
94
- vi.spyOn(JSON, 'stringify').mockImplementation((value, replacer, space) => {
95
- callCount++;
96
- if (callCount === 1) {
97
- // First call is for the full report content
98
- throw stringifyError;
99
- }
100
- // Subsequent calls (for minimal report) should succeed
101
- return originalJsonStringify(value, replacer, space);
102
- });
103
- await reportError(error, baseMessage, context, type, testDir);
104
- expect(consoleErrorSpy).toHaveBeenCalledWith(`${baseMessage} Could not stringify report content (likely due to context):`, stringifyError);
105
- expect(consoleErrorSpy).toHaveBeenCalledWith('Original error that triggered report generation:', error);
106
- expect(consoleErrorSpy).toHaveBeenCalledWith('Original context could not be stringified or included in report.');
107
- // Check that it writes a minimal report
108
- const reportContent = await fs.readFile(expectedMinimalReportPath, 'utf-8');
109
- const parsedReport = JSON.parse(reportContent);
110
- expect(parsedReport).toEqual({
111
- error: { message: error.message, stack: error.stack },
112
- });
113
- expect(consoleErrorSpy).toHaveBeenCalledWith(`${baseMessage} Partial report (excluding context) available at: ${expectedMinimalReportPath}`);
114
- });
115
- it('should generate a report without context if context is not provided', async () => {
116
- const error = new Error('Error without context');
117
- error.stack = 'No context stack';
118
- const baseMessage = 'Simple error.';
119
- const type = 'general';
120
- const expectedReportPath = getExpectedReportPath(type);
121
- await reportError(error, baseMessage, undefined, type, testDir);
122
- const reportContent = await fs.readFile(expectedReportPath, 'utf-8');
123
- const parsedReport = JSON.parse(reportContent);
124
- expect(parsedReport).toEqual({
125
- error: { message: 'Error without context', stack: 'No context stack' },
126
- });
127
- expect(consoleErrorSpy).toHaveBeenCalledWith(`${baseMessage} Full report available at: ${expectedReportPath}`);
128
- });
129
- });
130
- //# sourceMappingURL=errorReporting.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errorReporting.test.js","sourceRoot":"","sources":["../../../src/utils/errorReporting.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKlD,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,IAAI,eAA4B,CAAC;IACjC,IAAI,OAAe,CAAC;IACpB,MAAM,cAAc,GAAG,0BAA0B,CAAC;IAElD,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,wCAAwC;QACxC,OAAO,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,qBAAqB,CAAC,CAAC,CAAC;QAC1E,EAAE,CAAC,aAAa,EAAE,CAAC;QACnB,eAAe,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QAC1E,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK,IAAI,EAAE;QACnB,EAAE,CAAC,eAAe,EAAE,CAAC;QACrB,mCAAmC;QACnC,MAAM,EAAE,CAAC,EAAE,CAAC,OAAO,EAA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AAG,WAAW,qDAAqD,yBAAyB,EAAE,CAC/F,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qEAAqE,EAAE,KAAK,IAAI,EAAE;QACnF,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QACjD,KAAK,CAAC,KAAK,GAAG,kBAAkB,CAAC;QACjC,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,IAAI,GAAG,SAAS,CAAC;QACvB,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAEvD,MAAM,WAAW,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEhE,MAAM,aAAa,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;QACrE,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAE/C,MAAM,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC;YAC3B,KAAK,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE,KAAK,EAAE,kBAAkB,EAAE;SACvE,CAAC,CAAC;QAEH,MAAM,CAAC,eAAe,CAAC,CAAC,oBAAoB,CAC1C,GAAG,WAAW,8BAA8B,kBAAkB,EAAE,CACjE,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export {};
@@ -1,363 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { describe, it, expect, vi, beforeEach, afterEach, } from 'vitest';
7
- import * as actualNodeFs from 'node:fs'; // For setup/teardown
8
- import fsPromises from 'node:fs/promises';
9
- import path from 'node:path';
10
- import os from 'node:os';
11
- import mime from 'mime-types';
12
- import { isWithinRoot, isBinaryFile, detectFileType, processSingleFileContent, } from './fileUtils.js';
13
- vi.mock('mime-types', () => ({
14
- default: { lookup: vi.fn() },
15
- lookup: vi.fn(),
16
- }));
17
- const mockMimeLookup = mime.lookup;
18
- describe('fileUtils', () => {
19
- let tempRootDir;
20
- const originalProcessCwd = process.cwd;
21
- let testTextFilePath;
22
- let testImageFilePath;
23
- let testPdfFilePath;
24
- let testBinaryFilePath;
25
- let nonexistentFilePath;
26
- let directoryPath;
27
- beforeEach(() => {
28
- vi.resetAllMocks(); // Reset all mocks, including mime.lookup
29
- tempRootDir = actualNodeFs.mkdtempSync(path.join(os.tmpdir(), 'fileUtils-test-'));
30
- process.cwd = vi.fn(() => tempRootDir); // Mock cwd if necessary for relative path logic within tests
31
- testTextFilePath = path.join(tempRootDir, 'test.txt');
32
- testImageFilePath = path.join(tempRootDir, 'image.png');
33
- testPdfFilePath = path.join(tempRootDir, 'document.pdf');
34
- testBinaryFilePath = path.join(tempRootDir, 'app.exe');
35
- nonexistentFilePath = path.join(tempRootDir, 'nonexistent.txt');
36
- directoryPath = path.join(tempRootDir, 'subdir');
37
- actualNodeFs.mkdirSync(directoryPath, { recursive: true }); // Ensure subdir exists
38
- });
39
- afterEach(() => {
40
- if (actualNodeFs.existsSync(tempRootDir)) {
41
- actualNodeFs.rmSync(tempRootDir, { recursive: true, force: true });
42
- }
43
- process.cwd = originalProcessCwd;
44
- vi.restoreAllMocks(); // Restore any spies
45
- });
46
- describe('isWithinRoot', () => {
47
- const root = path.resolve('/project/root');
48
- it('should return true for paths directly within the root', () => {
49
- expect(isWithinRoot(path.join(root, 'file.txt'), root)).toBe(true);
50
- expect(isWithinRoot(path.join(root, 'subdir', 'file.txt'), root)).toBe(true);
51
- });
52
- it('should return true for the root path itself', () => {
53
- expect(isWithinRoot(root, root)).toBe(true);
54
- });
55
- it('should return false for paths outside the root', () => {
56
- expect(isWithinRoot(path.resolve('/project/other', 'file.txt'), root)).toBe(false);
57
- expect(isWithinRoot(path.resolve('/unrelated', 'file.txt'), root)).toBe(false);
58
- });
59
- it('should return false for paths that only partially match the root prefix', () => {
60
- expect(isWithinRoot(path.resolve('/project/root-but-actually-different'), root)).toBe(false);
61
- });
62
- it('should handle paths with trailing slashes correctly', () => {
63
- expect(isWithinRoot(path.join(root, 'file.txt') + path.sep, root)).toBe(true);
64
- expect(isWithinRoot(root + path.sep, root)).toBe(true);
65
- });
66
- it('should handle different path separators (POSIX vs Windows)', () => {
67
- const posixRoot = '/project/root';
68
- const posixPathInside = '/project/root/file.txt';
69
- const posixPathOutside = '/project/other/file.txt';
70
- expect(isWithinRoot(posixPathInside, posixRoot)).toBe(true);
71
- expect(isWithinRoot(posixPathOutside, posixRoot)).toBe(false);
72
- });
73
- it('should return false for a root path that is a sub-path of the path to check', () => {
74
- const pathToCheck = path.resolve('/project/root/sub');
75
- const rootSub = path.resolve('/project/root');
76
- expect(isWithinRoot(pathToCheck, rootSub)).toBe(true);
77
- const pathToCheckSuper = path.resolve('/project/root');
78
- const rootSuper = path.resolve('/project/root/sub');
79
- expect(isWithinRoot(pathToCheckSuper, rootSuper)).toBe(false);
80
- });
81
- });
82
- describe('isBinaryFile', () => {
83
- let filePathForBinaryTest;
84
- beforeEach(() => {
85
- filePathForBinaryTest = path.join(tempRootDir, 'binaryCheck.tmp');
86
- });
87
- afterEach(() => {
88
- if (actualNodeFs.existsSync(filePathForBinaryTest)) {
89
- actualNodeFs.unlinkSync(filePathForBinaryTest);
90
- }
91
- });
92
- it('should return false for an empty file', async () => {
93
- actualNodeFs.writeFileSync(filePathForBinaryTest, '');
94
- expect(await isBinaryFile(filePathForBinaryTest)).toBe(false);
95
- });
96
- it('should return false for a typical text file', async () => {
97
- actualNodeFs.writeFileSync(filePathForBinaryTest, 'Hello, world!\nThis is a test file with normal text content.');
98
- expect(await isBinaryFile(filePathForBinaryTest)).toBe(false);
99
- });
100
- it('should return true for a file with many null bytes', async () => {
101
- const binaryContent = Buffer.from([
102
- 0x48, 0x65, 0x00, 0x6c, 0x6f, 0x00, 0x00, 0x00, 0x00, 0x00,
103
- ]); // "He\0llo\0\0\0\0\0"
104
- actualNodeFs.writeFileSync(filePathForBinaryTest, binaryContent);
105
- expect(await isBinaryFile(filePathForBinaryTest)).toBe(true);
106
- });
107
- it('should return true for a file with high percentage of non-printable ASCII', async () => {
108
- const binaryContent = Buffer.from([
109
- 0x41, 0x42, 0x01, 0x02, 0x03, 0x04, 0x05, 0x43, 0x44, 0x06,
110
- ]); // AB\x01\x02\x03\x04\x05CD\x06
111
- actualNodeFs.writeFileSync(filePathForBinaryTest, binaryContent);
112
- expect(await isBinaryFile(filePathForBinaryTest)).toBe(true);
113
- });
114
- it('should return false if file access fails (e.g., ENOENT)', async () => {
115
- // Ensure the file does not exist
116
- if (actualNodeFs.existsSync(filePathForBinaryTest)) {
117
- actualNodeFs.unlinkSync(filePathForBinaryTest);
118
- }
119
- expect(await isBinaryFile(filePathForBinaryTest)).toBe(false);
120
- });
121
- });
122
- describe('detectFileType', () => {
123
- let filePathForDetectTest;
124
- beforeEach(() => {
125
- filePathForDetectTest = path.join(tempRootDir, 'detectType.tmp');
126
- // Default: create as a text file for isBinaryFile fallback
127
- actualNodeFs.writeFileSync(filePathForDetectTest, 'Plain text content');
128
- });
129
- afterEach(() => {
130
- if (actualNodeFs.existsSync(filePathForDetectTest)) {
131
- actualNodeFs.unlinkSync(filePathForDetectTest);
132
- }
133
- vi.restoreAllMocks(); // Restore spies on actualNodeFs
134
- });
135
- it('should detect typescript type by extension (ts, mts, cts, tsx)', async () => {
136
- expect(await detectFileType('file.ts')).toBe('text');
137
- expect(await detectFileType('file.test.ts')).toBe('text');
138
- expect(await detectFileType('file.mts')).toBe('text');
139
- expect(await detectFileType('vite.config.mts')).toBe('text');
140
- expect(await detectFileType('file.cts')).toBe('text');
141
- expect(await detectFileType('component.tsx')).toBe('text');
142
- });
143
- it('should detect image type by extension (png)', async () => {
144
- mockMimeLookup.mockReturnValueOnce('image/png');
145
- expect(await detectFileType('file.png')).toBe('image');
146
- });
147
- it('should detect image type by extension (jpeg)', async () => {
148
- mockMimeLookup.mockReturnValueOnce('image/jpeg');
149
- expect(await detectFileType('file.jpg')).toBe('image');
150
- });
151
- it('should detect svg type by extension', async () => {
152
- expect(await detectFileType('image.svg')).toBe('svg');
153
- expect(await detectFileType('image.icon.svg')).toBe('svg');
154
- });
155
- it('should detect pdf type by extension', async () => {
156
- mockMimeLookup.mockReturnValueOnce('application/pdf');
157
- expect(await detectFileType('file.pdf')).toBe('pdf');
158
- });
159
- it('should detect audio type by extension', async () => {
160
- mockMimeLookup.mockReturnValueOnce('audio/mpeg');
161
- expect(await detectFileType('song.mp3')).toBe('audio');
162
- });
163
- it('should detect video type by extension', async () => {
164
- mockMimeLookup.mockReturnValueOnce('video/mp4');
165
- expect(await detectFileType('movie.mp4')).toBe('video');
166
- });
167
- it('should detect known binary extensions as binary (e.g. .zip)', async () => {
168
- mockMimeLookup.mockReturnValueOnce('application/zip');
169
- expect(await detectFileType('archive.zip')).toBe('binary');
170
- });
171
- it('should detect known binary extensions as binary (e.g. .exe)', async () => {
172
- mockMimeLookup.mockReturnValueOnce('application/octet-stream'); // Common for .exe
173
- expect(await detectFileType('app.exe')).toBe('binary');
174
- });
175
- it('should use isBinaryFile for unknown extensions and detect as binary', async () => {
176
- mockMimeLookup.mockReturnValueOnce(false); // Unknown mime type
177
- // Create a file that isBinaryFile will identify as binary
178
- const binaryContent = Buffer.from([
179
- 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a,
180
- ]);
181
- actualNodeFs.writeFileSync(filePathForDetectTest, binaryContent);
182
- expect(await detectFileType(filePathForDetectTest)).toBe('binary');
183
- });
184
- it('should default to text if mime type is unknown and content is not binary', async () => {
185
- mockMimeLookup.mockReturnValueOnce(false); // Unknown mime type
186
- // filePathForDetectTest is already a text file by default from beforeEach
187
- expect(await detectFileType(filePathForDetectTest)).toBe('text');
188
- });
189
- });
190
- describe('processSingleFileContent', () => {
191
- beforeEach(() => {
192
- // Ensure files exist for statSync checks before readFile might be mocked
193
- if (actualNodeFs.existsSync(testTextFilePath))
194
- actualNodeFs.unlinkSync(testTextFilePath);
195
- if (actualNodeFs.existsSync(testImageFilePath))
196
- actualNodeFs.unlinkSync(testImageFilePath);
197
- if (actualNodeFs.existsSync(testPdfFilePath))
198
- actualNodeFs.unlinkSync(testPdfFilePath);
199
- if (actualNodeFs.existsSync(testBinaryFilePath))
200
- actualNodeFs.unlinkSync(testBinaryFilePath);
201
- });
202
- it('should read a text file successfully', async () => {
203
- const content = 'Line 1\\nLine 2\\nLine 3';
204
- actualNodeFs.writeFileSync(testTextFilePath, content);
205
- const result = await processSingleFileContent(testTextFilePath, tempRootDir);
206
- expect(result.llmContent).toBe(content);
207
- expect(result.returnDisplay).toBe('');
208
- expect(result.error).toBeUndefined();
209
- });
210
- it('should handle file not found', async () => {
211
- const result = await processSingleFileContent(nonexistentFilePath, tempRootDir);
212
- expect(result.error).toContain('File not found');
213
- expect(result.returnDisplay).toContain('File not found');
214
- });
215
- it('should handle read errors for text files', async () => {
216
- actualNodeFs.writeFileSync(testTextFilePath, 'content'); // File must exist for initial statSync
217
- const readError = new Error('Simulated read error');
218
- vi.spyOn(fsPromises, 'readFile').mockRejectedValueOnce(readError);
219
- const result = await processSingleFileContent(testTextFilePath, tempRootDir);
220
- expect(result.error).toContain('Simulated read error');
221
- expect(result.returnDisplay).toContain('Simulated read error');
222
- });
223
- it('should handle read errors for image/pdf files', async () => {
224
- actualNodeFs.writeFileSync(testImageFilePath, 'content'); // File must exist
225
- mockMimeLookup.mockReturnValue('image/png');
226
- const readError = new Error('Simulated image read error');
227
- vi.spyOn(fsPromises, 'readFile').mockRejectedValueOnce(readError);
228
- const result = await processSingleFileContent(testImageFilePath, tempRootDir);
229
- expect(result.error).toContain('Simulated image read error');
230
- expect(result.returnDisplay).toContain('Simulated image read error');
231
- });
232
- it('should process an image file', async () => {
233
- const fakePngData = Buffer.from('fake png data');
234
- actualNodeFs.writeFileSync(testImageFilePath, fakePngData);
235
- mockMimeLookup.mockReturnValue('image/png');
236
- const result = await processSingleFileContent(testImageFilePath, tempRootDir);
237
- expect(result.llmContent.inlineData).toBeDefined();
238
- expect(result.llmContent.inlineData
239
- .mimeType).toBe('image/png');
240
- expect(result.llmContent.inlineData.data).toBe(fakePngData.toString('base64'));
241
- expect(result.returnDisplay).toContain('Read image file: image.png');
242
- });
243
- it('should process a PDF file', async () => {
244
- const fakePdfData = Buffer.from('fake pdf data');
245
- actualNodeFs.writeFileSync(testPdfFilePath, fakePdfData);
246
- mockMimeLookup.mockReturnValue('application/pdf');
247
- const result = await processSingleFileContent(testPdfFilePath, tempRootDir);
248
- expect(result.llmContent.inlineData).toBeDefined();
249
- expect(result.llmContent.inlineData
250
- .mimeType).toBe('application/pdf');
251
- expect(result.llmContent.inlineData.data).toBe(fakePdfData.toString('base64'));
252
- expect(result.returnDisplay).toContain('Read pdf file: document.pdf');
253
- });
254
- it('should read an SVG file as text when under 1MB', async () => {
255
- const svgContent = `
256
- <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
257
- <rect width="100" height="100" fill="blue" />
258
- </svg>
259
- `;
260
- const testSvgFilePath = path.join(tempRootDir, 'test.svg');
261
- actualNodeFs.writeFileSync(testSvgFilePath, svgContent, 'utf-8');
262
- mockMimeLookup.mockReturnValue('image/svg+xml');
263
- const result = await processSingleFileContent(testSvgFilePath, tempRootDir);
264
- expect(result.llmContent).toBe(svgContent);
265
- expect(result.returnDisplay).toContain('Read SVG as text');
266
- });
267
- it('should skip binary files', async () => {
268
- actualNodeFs.writeFileSync(testBinaryFilePath, Buffer.from([0x00, 0x01, 0x02]));
269
- mockMimeLookup.mockReturnValueOnce('application/octet-stream');
270
- // isBinaryFile will operate on the real file.
271
- const result = await processSingleFileContent(testBinaryFilePath, tempRootDir);
272
- expect(result.llmContent).toContain('Cannot display content of binary file');
273
- expect(result.returnDisplay).toContain('Skipped binary file: app.exe');
274
- });
275
- it('should handle path being a directory', async () => {
276
- const result = await processSingleFileContent(directoryPath, tempRootDir);
277
- expect(result.error).toContain('Path is a directory');
278
- expect(result.returnDisplay).toContain('Path is a directory');
279
- });
280
- it('should paginate text files correctly (offset and limit)', async () => {
281
- const lines = Array.from({ length: 20 }, (_, i) => `Line ${i + 1}`);
282
- actualNodeFs.writeFileSync(testTextFilePath, lines.join('\n'));
283
- const result = await processSingleFileContent(testTextFilePath, tempRootDir, 5, 5); // Read lines 6-10
284
- const expectedContent = lines.slice(5, 10).join('\n');
285
- expect(result.llmContent).toBe(expectedContent);
286
- expect(result.returnDisplay).toBe('Read lines 6-10 of 20 from test.txt');
287
- expect(result.isTruncated).toBe(true);
288
- expect(result.originalLineCount).toBe(20);
289
- expect(result.linesShown).toEqual([6, 10]);
290
- });
291
- it('should identify truncation when reading the end of a file', async () => {
292
- const lines = Array.from({ length: 20 }, (_, i) => `Line ${i + 1}`);
293
- actualNodeFs.writeFileSync(testTextFilePath, lines.join('\n'));
294
- // Read from line 11 to 20. The start is not 0, so it's truncated.
295
- const result = await processSingleFileContent(testTextFilePath, tempRootDir, 10, 10);
296
- const expectedContent = lines.slice(10, 20).join('\n');
297
- expect(result.llmContent).toContain(expectedContent);
298
- expect(result.returnDisplay).toBe('Read lines 11-20 of 20 from test.txt');
299
- expect(result.isTruncated).toBe(true); // This is the key check for the bug
300
- expect(result.originalLineCount).toBe(20);
301
- expect(result.linesShown).toEqual([11, 20]);
302
- });
303
- it('should handle limit exceeding file length', async () => {
304
- const lines = ['Line 1', 'Line 2'];
305
- actualNodeFs.writeFileSync(testTextFilePath, lines.join('\n'));
306
- const result = await processSingleFileContent(testTextFilePath, tempRootDir, 0, 10);
307
- const expectedContent = lines.join('\n');
308
- expect(result.llmContent).toBe(expectedContent);
309
- expect(result.returnDisplay).toBe('');
310
- expect(result.isTruncated).toBe(false);
311
- expect(result.originalLineCount).toBe(2);
312
- expect(result.linesShown).toEqual([1, 2]);
313
- });
314
- it('should truncate long lines in text files', async () => {
315
- const longLine = 'a'.repeat(2500);
316
- actualNodeFs.writeFileSync(testTextFilePath, `Short line\n${longLine}\nAnother short line`);
317
- const result = await processSingleFileContent(testTextFilePath, tempRootDir);
318
- expect(result.llmContent).toContain('Short line');
319
- expect(result.llmContent).toContain(longLine.substring(0, 2000) + '... [truncated]');
320
- expect(result.llmContent).toContain('Another short line');
321
- expect(result.returnDisplay).toBe('Read all 3 lines from test.txt (some lines were shortened)');
322
- expect(result.isTruncated).toBe(true);
323
- });
324
- it('should truncate when line count exceeds the limit', async () => {
325
- const lines = Array.from({ length: 11 }, (_, i) => `Line ${i + 1}`);
326
- actualNodeFs.writeFileSync(testTextFilePath, lines.join('\n'));
327
- // Read 5 lines, but there are 11 total
328
- const result = await processSingleFileContent(testTextFilePath, tempRootDir, 0, 5);
329
- expect(result.isTruncated).toBe(true);
330
- expect(result.returnDisplay).toBe('Read lines 1-5 of 11 from test.txt');
331
- });
332
- it('should truncate when a line length exceeds the character limit', async () => {
333
- const longLine = 'b'.repeat(2500);
334
- const lines = Array.from({ length: 10 }, (_, i) => `Line ${i + 1}`);
335
- lines.push(longLine); // Total 11 lines
336
- actualNodeFs.writeFileSync(testTextFilePath, lines.join('\n'));
337
- // Read all 11 lines, including the long one
338
- const result = await processSingleFileContent(testTextFilePath, tempRootDir, 0, 11);
339
- expect(result.isTruncated).toBe(true);
340
- expect(result.returnDisplay).toBe('Read all 11 lines from test.txt (some lines were shortened)');
341
- });
342
- it('should truncate both line count and line length when both exceed limits', async () => {
343
- const linesWithLongInMiddle = Array.from({ length: 20 }, (_, i) => `Line ${i + 1}`);
344
- linesWithLongInMiddle[4] = 'c'.repeat(2500);
345
- actualNodeFs.writeFileSync(testTextFilePath, linesWithLongInMiddle.join('\n'));
346
- // Read 10 lines out of 20, including the long line
347
- const result = await processSingleFileContent(testTextFilePath, tempRootDir, 0, 10);
348
- expect(result.isTruncated).toBe(true);
349
- expect(result.returnDisplay).toBe('Read lines 1-10 of 20 from test.txt (some lines were shortened)');
350
- });
351
- it('should return an error if the file size exceeds 20MB', async () => {
352
- // Create a file just over 20MB
353
- const twentyOneMB = 21 * 1024 * 1024;
354
- const buffer = Buffer.alloc(twentyOneMB, 0x61); // Fill with 'a'
355
- actualNodeFs.writeFileSync(testTextFilePath, buffer);
356
- const result = await processSingleFileContent(testTextFilePath, tempRootDir);
357
- expect(result.error).toContain('File size exceeds the 20MB limit');
358
- expect(result.returnDisplay).toContain('File size exceeds the 20MB limit');
359
- expect(result.llmContent).toContain('File size exceeds the 20MB limit');
360
- });
361
- });
362
- });
363
- //# sourceMappingURL=fileUtils.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fileUtils.test.js","sourceRoot":"","sources":["../../../src/utils/fileUtils.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,QAAQ,EACR,EAAE,EACF,MAAM,EACN,EAAE,EACF,UAAU,EACV,SAAS,GAEV,MAAM,QAAQ,CAAC;AAEhB,OAAO,KAAK,YAAY,MAAM,SAAS,CAAC,CAAC,qBAAqB;AAC9D,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,YAAY,CAAC;AAE9B,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AAExB,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC;IAC3B,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;IAC5B,MAAM,EAAE,EAAE,CAAC,EAAE,EAAE;CAChB,CAAC,CAAC,CAAC;AAEJ,MAAM,cAAc,GAAG,IAAI,CAAC,MAAc,CAAC;AAE3C,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,IAAI,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