erosolar-cli 1.7.391 → 1.7.392

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 (809) hide show
  1. package/dist/core/toolPreconditions.d.ts.map +1 -1
  2. package/dist/core/toolPreconditions.js +56 -8
  3. package/dist/core/toolPreconditions.js.map +1 -1
  4. package/dist/core/toolRuntime.d.ts +0 -6
  5. package/dist/core/toolRuntime.d.ts.map +1 -1
  6. package/dist/core/toolRuntime.js +0 -7
  7. package/dist/core/toolRuntime.js.map +1 -1
  8. package/dist/plugins/tools/nodeDefaults.js +2 -2
  9. package/dist/plugins/tools/nodeDefaults.js.map +1 -1
  10. package/dist/runtime/agentSession.d.ts +1 -2
  11. package/dist/runtime/agentSession.d.ts.map +1 -1
  12. package/dist/runtime/agentSession.js +0 -1
  13. package/dist/runtime/agentSession.js.map +1 -1
  14. package/dist/shell/interactiveShell.d.ts +5 -23
  15. package/dist/shell/interactiveShell.d.ts.map +1 -1
  16. package/dist/shell/interactiveShell.js +109 -218
  17. package/dist/shell/interactiveShell.js.map +1 -1
  18. package/dist/shell/shellApp.d.ts.map +1 -1
  19. package/dist/shell/shellApp.js +0 -5
  20. package/dist/shell/shellApp.js.map +1 -1
  21. package/dist/shell/systemPrompt.d.ts.map +1 -1
  22. package/dist/shell/systemPrompt.js +0 -1
  23. package/dist/shell/systemPrompt.js.map +1 -1
  24. package/dist/shell/terminalInput.d.ts +8 -16
  25. package/dist/shell/terminalInput.d.ts.map +1 -1
  26. package/dist/shell/terminalInput.js +78 -132
  27. package/dist/shell/terminalInput.js.map +1 -1
  28. package/dist/shell/terminalInputAdapter.d.ts +0 -9
  29. package/dist/shell/terminalInputAdapter.d.ts.map +1 -1
  30. package/dist/shell/terminalInputAdapter.js +0 -6
  31. package/dist/shell/terminalInputAdapter.js.map +1 -1
  32. package/dist/tools/fileTools.d.ts.map +1 -1
  33. package/dist/tools/fileTools.js +21 -26
  34. package/dist/tools/fileTools.js.map +1 -1
  35. package/dist/tools/grepTools.js +4 -3
  36. package/dist/tools/grepTools.js.map +1 -1
  37. package/dist/tools/webTools.d.ts.map +1 -1
  38. package/dist/tools/webTools.js +10 -30
  39. package/dist/tools/webTools.js.map +1 -1
  40. package/dist/ui/display.d.ts +8 -12
  41. package/dist/ui/display.d.ts.map +1 -1
  42. package/dist/ui/display.js +62 -122
  43. package/dist/ui/display.js.map +1 -1
  44. package/dist/ui/toolDisplay.d.ts.map +1 -1
  45. package/dist/ui/toolDisplay.js +2 -1
  46. package/dist/ui/toolDisplay.js.map +1 -1
  47. package/dist/ui/unified/layout.js +2 -2
  48. package/dist/ui/unified/layout.js.map +1 -1
  49. package/package.json +1 -1
  50. package/dist/StringUtils.d.ts +0 -8
  51. package/dist/StringUtils.d.ts.map +0 -1
  52. package/dist/StringUtils.js +0 -11
  53. package/dist/StringUtils.js.map +0 -1
  54. package/dist/adapters/browser/index.d.ts +0 -12
  55. package/dist/adapters/browser/index.d.ts.map +0 -1
  56. package/dist/adapters/browser/index.js +0 -11
  57. package/dist/adapters/browser/index.js.map +0 -1
  58. package/dist/adapters/node/index.d.ts +0 -17
  59. package/dist/adapters/node/index.d.ts.map +0 -1
  60. package/dist/adapters/node/index.js +0 -35
  61. package/dist/adapters/node/index.js.map +0 -1
  62. package/dist/adapters/remote/index.d.ts +0 -13
  63. package/dist/adapters/remote/index.d.ts.map +0 -1
  64. package/dist/adapters/remote/index.js +0 -20
  65. package/dist/adapters/remote/index.js.map +0 -1
  66. package/dist/adapters/types.d.ts +0 -14
  67. package/dist/adapters/types.d.ts.map +0 -1
  68. package/dist/adapters/types.js +0 -2
  69. package/dist/adapters/types.js.map +0 -1
  70. package/dist/bin/selfTest.d.ts +0 -14
  71. package/dist/bin/selfTest.d.ts.map +0 -1
  72. package/dist/bin/selfTest.js +0 -304
  73. package/dist/bin/selfTest.js.map +0 -1
  74. package/dist/browser/BrowserSessionManager.d.ts +0 -307
  75. package/dist/browser/BrowserSessionManager.d.ts.map +0 -1
  76. package/dist/browser/BrowserSessionManager.js +0 -713
  77. package/dist/browser/BrowserSessionManager.js.map +0 -1
  78. package/dist/capabilities/advancedTestGenerationCapability.d.ts +0 -17
  79. package/dist/capabilities/advancedTestGenerationCapability.d.ts.map +0 -1
  80. package/dist/capabilities/advancedTestGenerationCapability.js +0 -28
  81. package/dist/capabilities/advancedTestGenerationCapability.js.map +0 -1
  82. package/dist/capabilities/askUserCapability.d.ts +0 -21
  83. package/dist/capabilities/askUserCapability.d.ts.map +0 -1
  84. package/dist/capabilities/askUserCapability.js +0 -155
  85. package/dist/capabilities/askUserCapability.js.map +0 -1
  86. package/dist/capabilities/bashCapability.d.ts +0 -13
  87. package/dist/capabilities/bashCapability.d.ts.map +0 -1
  88. package/dist/capabilities/bashCapability.js +0 -24
  89. package/dist/capabilities/bashCapability.js.map +0 -1
  90. package/dist/capabilities/browserAutomationCapability.d.ts +0 -37
  91. package/dist/capabilities/browserAutomationCapability.d.ts.map +0 -1
  92. package/dist/capabilities/browserAutomationCapability.js +0 -49
  93. package/dist/capabilities/browserAutomationCapability.js.map +0 -1
  94. package/dist/capabilities/buildCapability.d.ts +0 -24
  95. package/dist/capabilities/buildCapability.d.ts.map +0 -1
  96. package/dist/capabilities/buildCapability.js +0 -25
  97. package/dist/capabilities/buildCapability.js.map +0 -1
  98. package/dist/capabilities/cloudCapability.d.ts +0 -13
  99. package/dist/capabilities/cloudCapability.d.ts.map +0 -1
  100. package/dist/capabilities/cloudCapability.js +0 -38
  101. package/dist/capabilities/cloudCapability.js.map +0 -1
  102. package/dist/capabilities/codeAnalysisCapability.d.ts +0 -13
  103. package/dist/capabilities/codeAnalysisCapability.d.ts.map +0 -1
  104. package/dist/capabilities/codeAnalysisCapability.js +0 -24
  105. package/dist/capabilities/codeAnalysisCapability.js.map +0 -1
  106. package/dist/capabilities/codeGenerationCapability.d.ts +0 -13
  107. package/dist/capabilities/codeGenerationCapability.d.ts.map +0 -1
  108. package/dist/capabilities/codeGenerationCapability.js +0 -25
  109. package/dist/capabilities/codeGenerationCapability.js.map +0 -1
  110. package/dist/capabilities/codeQualityCapability.d.ts +0 -13
  111. package/dist/capabilities/codeQualityCapability.d.ts.map +0 -1
  112. package/dist/capabilities/codeQualityCapability.js +0 -25
  113. package/dist/capabilities/codeQualityCapability.js.map +0 -1
  114. package/dist/capabilities/dependencySecurityCapability.d.ts +0 -13
  115. package/dist/capabilities/dependencySecurityCapability.d.ts.map +0 -1
  116. package/dist/capabilities/dependencySecurityCapability.js +0 -24
  117. package/dist/capabilities/dependencySecurityCapability.js.map +0 -1
  118. package/dist/capabilities/devCapability.d.ts +0 -13
  119. package/dist/capabilities/devCapability.d.ts.map +0 -1
  120. package/dist/capabilities/devCapability.js +0 -24
  121. package/dist/capabilities/devCapability.js.map +0 -1
  122. package/dist/capabilities/editCapability.d.ts +0 -17
  123. package/dist/capabilities/editCapability.d.ts.map +0 -1
  124. package/dist/capabilities/editCapability.js +0 -27
  125. package/dist/capabilities/editCapability.js.map +0 -1
  126. package/dist/capabilities/emailCapability.d.ts +0 -12
  127. package/dist/capabilities/emailCapability.d.ts.map +0 -1
  128. package/dist/capabilities/emailCapability.js +0 -22
  129. package/dist/capabilities/emailCapability.js.map +0 -1
  130. package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts +0 -17
  131. package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts.map +0 -1
  132. package/dist/capabilities/enhancedCodeIntelligenceCapability.js +0 -28
  133. package/dist/capabilities/enhancedCodeIntelligenceCapability.js.map +0 -1
  134. package/dist/capabilities/enhancedDevWorkflowCapability.d.ts +0 -17
  135. package/dist/capabilities/enhancedDevWorkflowCapability.d.ts.map +0 -1
  136. package/dist/capabilities/enhancedDevWorkflowCapability.js +0 -28
  137. package/dist/capabilities/enhancedDevWorkflowCapability.js.map +0 -1
  138. package/dist/capabilities/enhancedGitCapability.d.ts +0 -7
  139. package/dist/capabilities/enhancedGitCapability.d.ts.map +0 -1
  140. package/dist/capabilities/enhancedGitCapability.js +0 -220
  141. package/dist/capabilities/enhancedGitCapability.js.map +0 -1
  142. package/dist/capabilities/filesystemCapability.d.ts +0 -13
  143. package/dist/capabilities/filesystemCapability.d.ts.map +0 -1
  144. package/dist/capabilities/filesystemCapability.js +0 -24
  145. package/dist/capabilities/filesystemCapability.js.map +0 -1
  146. package/dist/capabilities/frontendTestingCapability.d.ts +0 -13
  147. package/dist/capabilities/frontendTestingCapability.d.ts.map +0 -1
  148. package/dist/capabilities/frontendTestingCapability.js +0 -28
  149. package/dist/capabilities/frontendTestingCapability.js.map +0 -1
  150. package/dist/capabilities/globCapability.d.ts +0 -17
  151. package/dist/capabilities/globCapability.d.ts.map +0 -1
  152. package/dist/capabilities/globCapability.js +0 -27
  153. package/dist/capabilities/globCapability.js.map +0 -1
  154. package/dist/capabilities/index.d.ts +0 -26
  155. package/dist/capabilities/index.d.ts.map +0 -1
  156. package/dist/capabilities/index.js +0 -26
  157. package/dist/capabilities/index.js.map +0 -1
  158. package/dist/capabilities/interactionCapability.d.ts +0 -12
  159. package/dist/capabilities/interactionCapability.d.ts.map +0 -1
  160. package/dist/capabilities/interactionCapability.js +0 -22
  161. package/dist/capabilities/interactionCapability.js.map +0 -1
  162. package/dist/capabilities/mcpCapability.d.ts +0 -6
  163. package/dist/capabilities/mcpCapability.d.ts.map +0 -1
  164. package/dist/capabilities/mcpCapability.js +0 -19
  165. package/dist/capabilities/mcpCapability.js.map +0 -1
  166. package/dist/capabilities/notebookCapability.d.ts +0 -17
  167. package/dist/capabilities/notebookCapability.d.ts.map +0 -1
  168. package/dist/capabilities/notebookCapability.js +0 -27
  169. package/dist/capabilities/notebookCapability.js.map +0 -1
  170. package/dist/capabilities/performanceMonitoringCapability.d.ts +0 -108
  171. package/dist/capabilities/performanceMonitoringCapability.d.ts.map +0 -1
  172. package/dist/capabilities/performanceMonitoringCapability.js +0 -176
  173. package/dist/capabilities/performanceMonitoringCapability.js.map +0 -1
  174. package/dist/capabilities/planningCapability.d.ts +0 -16
  175. package/dist/capabilities/planningCapability.d.ts.map +0 -1
  176. package/dist/capabilities/planningCapability.js +0 -26
  177. package/dist/capabilities/planningCapability.js.map +0 -1
  178. package/dist/capabilities/refactoringCapability.d.ts +0 -13
  179. package/dist/capabilities/refactoringCapability.d.ts.map +0 -1
  180. package/dist/capabilities/refactoringCapability.js +0 -25
  181. package/dist/capabilities/refactoringCapability.js.map +0 -1
  182. package/dist/capabilities/repoChecksCapability.d.ts +0 -10
  183. package/dist/capabilities/repoChecksCapability.d.ts.map +0 -1
  184. package/dist/capabilities/repoChecksCapability.js +0 -24
  185. package/dist/capabilities/repoChecksCapability.js.map +0 -1
  186. package/dist/capabilities/searchCapability.d.ts +0 -13
  187. package/dist/capabilities/searchCapability.d.ts.map +0 -1
  188. package/dist/capabilities/searchCapability.js +0 -24
  189. package/dist/capabilities/searchCapability.js.map +0 -1
  190. package/dist/capabilities/skillCapability.d.ts +0 -3
  191. package/dist/capabilities/skillCapability.d.ts.map +0 -1
  192. package/dist/capabilities/skillCapability.js +0 -77
  193. package/dist/capabilities/skillCapability.js.map +0 -1
  194. package/dist/capabilities/taskManagementCapability.d.ts +0 -12
  195. package/dist/capabilities/taskManagementCapability.d.ts.map +0 -1
  196. package/dist/capabilities/taskManagementCapability.js +0 -22
  197. package/dist/capabilities/taskManagementCapability.js.map +0 -1
  198. package/dist/capabilities/testingCapability.d.ts +0 -13
  199. package/dist/capabilities/testingCapability.d.ts.map +0 -1
  200. package/dist/capabilities/testingCapability.js +0 -25
  201. package/dist/capabilities/testingCapability.js.map +0 -1
  202. package/dist/capabilities/todoCapability.d.ts +0 -19
  203. package/dist/capabilities/todoCapability.d.ts.map +0 -1
  204. package/dist/capabilities/todoCapability.js +0 -169
  205. package/dist/capabilities/todoCapability.js.map +0 -1
  206. package/dist/capabilities/toolManifest.d.ts +0 -3
  207. package/dist/capabilities/toolManifest.d.ts.map +0 -1
  208. package/dist/capabilities/toolManifest.js +0 -160
  209. package/dist/capabilities/toolManifest.js.map +0 -1
  210. package/dist/capabilities/toolRegistry.d.ts +0 -22
  211. package/dist/capabilities/toolRegistry.d.ts.map +0 -1
  212. package/dist/capabilities/toolRegistry.js +0 -115
  213. package/dist/capabilities/toolRegistry.js.map +0 -1
  214. package/dist/capabilities/validationCapability.d.ts +0 -13
  215. package/dist/capabilities/validationCapability.d.ts.map +0 -1
  216. package/dist/capabilities/validationCapability.js +0 -24
  217. package/dist/capabilities/validationCapability.js.map +0 -1
  218. package/dist/capabilities/webCapability.d.ts +0 -12
  219. package/dist/capabilities/webCapability.d.ts.map +0 -1
  220. package/dist/capabilities/webCapability.js +0 -22
  221. package/dist/capabilities/webCapability.js.map +0 -1
  222. package/dist/config.d.ts +0 -25
  223. package/dist/config.d.ts.map +0 -1
  224. package/dist/config.js +0 -140
  225. package/dist/config.js.map +0 -1
  226. package/dist/contracts/v1/agent.d.ts +0 -147
  227. package/dist/contracts/v1/agent.d.ts.map +0 -1
  228. package/dist/contracts/v1/agent.js +0 -8
  229. package/dist/contracts/v1/agent.js.map +0 -1
  230. package/dist/contracts/v1/agentProfileManifest.d.ts +0 -60
  231. package/dist/contracts/v1/agentProfileManifest.d.ts.map +0 -1
  232. package/dist/contracts/v1/agentProfileManifest.js +0 -9
  233. package/dist/contracts/v1/agentProfileManifest.js.map +0 -1
  234. package/dist/contracts/v1/agentRules.d.ts +0 -60
  235. package/dist/contracts/v1/agentRules.d.ts.map +0 -1
  236. package/dist/contracts/v1/agentRules.js +0 -10
  237. package/dist/contracts/v1/agentRules.js.map +0 -1
  238. package/dist/contracts/v1/provider.d.ts +0 -149
  239. package/dist/contracts/v1/provider.d.ts.map +0 -1
  240. package/dist/contracts/v1/provider.js +0 -7
  241. package/dist/contracts/v1/provider.js.map +0 -1
  242. package/dist/contracts/v1/tool.d.ts +0 -136
  243. package/dist/contracts/v1/tool.d.ts.map +0 -1
  244. package/dist/contracts/v1/tool.js +0 -7
  245. package/dist/contracts/v1/tool.js.map +0 -1
  246. package/dist/contracts/v1/toolAccess.d.ts +0 -43
  247. package/dist/contracts/v1/toolAccess.d.ts.map +0 -1
  248. package/dist/contracts/v1/toolAccess.js +0 -9
  249. package/dist/contracts/v1/toolAccess.js.map +0 -1
  250. package/dist/core/LazyLoader.d.ts +0 -129
  251. package/dist/core/LazyLoader.d.ts.map +0 -1
  252. package/dist/core/LazyLoader.js +0 -240
  253. package/dist/core/LazyLoader.js.map +0 -1
  254. package/dist/core/agentProfileManifest.d.ts +0 -3
  255. package/dist/core/agentProfileManifest.d.ts.map +0 -1
  256. package/dist/core/agentProfileManifest.js +0 -188
  257. package/dist/core/agentProfileManifest.js.map +0 -1
  258. package/dist/core/agentProfiles.d.ts +0 -22
  259. package/dist/core/agentProfiles.d.ts.map +0 -1
  260. package/dist/core/agentProfiles.js +0 -35
  261. package/dist/core/agentProfiles.js.map +0 -1
  262. package/dist/core/agentRulebook.d.ts +0 -11
  263. package/dist/core/agentRulebook.d.ts.map +0 -1
  264. package/dist/core/agentRulebook.js +0 -136
  265. package/dist/core/agentRulebook.js.map +0 -1
  266. package/dist/core/agentSchemaLoader.d.ts +0 -131
  267. package/dist/core/agentSchemaLoader.d.ts.map +0 -1
  268. package/dist/core/agentSchemaLoader.js +0 -234
  269. package/dist/core/agentSchemaLoader.js.map +0 -1
  270. package/dist/core/aiErrorFixer.d.ts +0 -70
  271. package/dist/core/aiErrorFixer.d.ts.map +0 -1
  272. package/dist/core/aiErrorFixer.js +0 -402
  273. package/dist/core/aiErrorFixer.js.map +0 -1
  274. package/dist/core/cliTestHarness.d.ts +0 -200
  275. package/dist/core/cliTestHarness.d.ts.map +0 -1
  276. package/dist/core/cliTestHarness.js +0 -549
  277. package/dist/core/cliTestHarness.js.map +0 -1
  278. package/dist/core/contextWindow.d.ts +0 -42
  279. package/dist/core/contextWindow.d.ts.map +0 -1
  280. package/dist/core/contextWindow.js +0 -123
  281. package/dist/core/contextWindow.js.map +0 -1
  282. package/dist/core/errors/apiKeyErrors.d.ts +0 -11
  283. package/dist/core/errors/apiKeyErrors.d.ts.map +0 -1
  284. package/dist/core/errors/apiKeyErrors.js +0 -159
  285. package/dist/core/errors/apiKeyErrors.js.map +0 -1
  286. package/dist/core/errors/errorTypes.d.ts +0 -111
  287. package/dist/core/errors/errorTypes.d.ts.map +0 -1
  288. package/dist/core/errors/errorTypes.js +0 -348
  289. package/dist/core/errors/errorTypes.js.map +0 -1
  290. package/dist/core/errors/errorUtils.d.ts +0 -87
  291. package/dist/core/errors/errorUtils.d.ts.map +0 -1
  292. package/dist/core/errors/errorUtils.js +0 -158
  293. package/dist/core/errors/errorUtils.js.map +0 -1
  294. package/dist/core/errors/safetyValidator.d.ts +0 -71
  295. package/dist/core/errors/safetyValidator.d.ts.map +0 -1
  296. package/dist/core/errors/safetyValidator.js +0 -302
  297. package/dist/core/errors/safetyValidator.js.map +0 -1
  298. package/dist/core/errors.d.ts +0 -4
  299. package/dist/core/errors.d.ts.map +0 -1
  300. package/dist/core/errors.js +0 -33
  301. package/dist/core/errors.js.map +0 -1
  302. package/dist/core/isolatedVerifier.d.ts +0 -40
  303. package/dist/core/isolatedVerifier.d.ts.map +0 -1
  304. package/dist/core/isolatedVerifier.js +0 -129
  305. package/dist/core/isolatedVerifier.js.map +0 -1
  306. package/dist/core/modelDiscovery.d.ts +0 -101
  307. package/dist/core/modelDiscovery.d.ts.map +0 -1
  308. package/dist/core/modelDiscovery.js +0 -780
  309. package/dist/core/modelDiscovery.js.map +0 -1
  310. package/dist/core/multilinePasteHandler.d.ts +0 -35
  311. package/dist/core/multilinePasteHandler.d.ts.map +0 -1
  312. package/dist/core/multilinePasteHandler.js +0 -80
  313. package/dist/core/multilinePasteHandler.js.map +0 -1
  314. package/dist/core/performanceMonitor.d.ts +0 -124
  315. package/dist/core/performanceMonitor.d.ts.map +0 -1
  316. package/dist/core/performanceMonitor.js +0 -192
  317. package/dist/core/performanceMonitor.js.map +0 -1
  318. package/dist/core/responseVerifier.d.ts +0 -98
  319. package/dist/core/responseVerifier.d.ts.map +0 -1
  320. package/dist/core/responseVerifier.js +0 -509
  321. package/dist/core/responseVerifier.js.map +0 -1
  322. package/dist/core/resultVerification.d.ts +0 -141
  323. package/dist/core/resultVerification.d.ts.map +0 -1
  324. package/dist/core/resultVerification.js +0 -482
  325. package/dist/core/resultVerification.js.map +0 -1
  326. package/dist/core/schemaValidator.d.ts +0 -44
  327. package/dist/core/schemaValidator.d.ts.map +0 -1
  328. package/dist/core/schemaValidator.js +0 -155
  329. package/dist/core/schemaValidator.js.map +0 -1
  330. package/dist/core/testUtils.d.ts +0 -121
  331. package/dist/core/testUtils.d.ts.map +0 -1
  332. package/dist/core/testUtils.js +0 -235
  333. package/dist/core/testUtils.js.map +0 -1
  334. package/dist/core/types/utilityTypes.d.ts +0 -192
  335. package/dist/core/types/utilityTypes.d.ts.map +0 -1
  336. package/dist/core/types/utilityTypes.js +0 -272
  337. package/dist/core/types/utilityTypes.js.map +0 -1
  338. package/dist/core/types.d.ts +0 -306
  339. package/dist/core/types.d.ts.map +0 -1
  340. package/dist/core/types.js +0 -76
  341. package/dist/core/types.js.map +0 -1
  342. package/dist/intelligence/codeIntelligence.d.ts +0 -118
  343. package/dist/intelligence/codeIntelligence.d.ts.map +0 -1
  344. package/dist/intelligence/codeIntelligence.js +0 -552
  345. package/dist/intelligence/codeIntelligence.js.map +0 -1
  346. package/dist/intelligence/docGenerator.d.ts +0 -86
  347. package/dist/intelligence/docGenerator.d.ts.map +0 -1
  348. package/dist/intelligence/docGenerator.js +0 -564
  349. package/dist/intelligence/docGenerator.js.map +0 -1
  350. package/dist/intelligence/index.d.ts +0 -51
  351. package/dist/intelligence/index.d.ts.map +0 -1
  352. package/dist/intelligence/index.js +0 -253
  353. package/dist/intelligence/index.js.map +0 -1
  354. package/dist/intelligence/refactoring.d.ts +0 -50
  355. package/dist/intelligence/refactoring.d.ts.map +0 -1
  356. package/dist/intelligence/refactoring.js +0 -354
  357. package/dist/intelligence/refactoring.js.map +0 -1
  358. package/dist/intelligence/testGenerator.d.ts +0 -74
  359. package/dist/intelligence/testGenerator.d.ts.map +0 -1
  360. package/dist/intelligence/testGenerator.js +0 -483
  361. package/dist/intelligence/testGenerator.js.map +0 -1
  362. package/dist/mcp/config.d.ts +0 -8
  363. package/dist/mcp/config.d.ts.map +0 -1
  364. package/dist/mcp/config.js +0 -252
  365. package/dist/mcp/config.js.map +0 -1
  366. package/dist/mcp/sseClient.d.ts +0 -34
  367. package/dist/mcp/sseClient.d.ts.map +0 -1
  368. package/dist/mcp/sseClient.js +0 -327
  369. package/dist/mcp/sseClient.js.map +0 -1
  370. package/dist/mcp/stdioClient.d.ts +0 -24
  371. package/dist/mcp/stdioClient.d.ts.map +0 -1
  372. package/dist/mcp/stdioClient.js +0 -179
  373. package/dist/mcp/stdioClient.js.map +0 -1
  374. package/dist/mcp/toolBridge.d.ts +0 -12
  375. package/dist/mcp/toolBridge.d.ts.map +0 -1
  376. package/dist/mcp/toolBridge.js +0 -117
  377. package/dist/mcp/toolBridge.js.map +0 -1
  378. package/dist/mcp/types.d.ts +0 -60
  379. package/dist/mcp/types.d.ts.map +0 -1
  380. package/dist/mcp/types.js +0 -2
  381. package/dist/mcp/types.js.map +0 -1
  382. package/dist/plugins/index.d.ts +0 -49
  383. package/dist/plugins/index.d.ts.map +0 -1
  384. package/dist/plugins/index.js +0 -114
  385. package/dist/plugins/index.js.map +0 -1
  386. package/dist/plugins/providers/anthropic/index.d.ts +0 -11
  387. package/dist/plugins/providers/anthropic/index.d.ts.map +0 -1
  388. package/dist/plugins/providers/anthropic/index.js +0 -38
  389. package/dist/plugins/providers/anthropic/index.js.map +0 -1
  390. package/dist/plugins/providers/deepseek/index.d.ts +0 -11
  391. package/dist/plugins/providers/deepseek/index.d.ts.map +0 -1
  392. package/dist/plugins/providers/deepseek/index.js +0 -52
  393. package/dist/plugins/providers/deepseek/index.js.map +0 -1
  394. package/dist/plugins/providers/google/index.d.ts +0 -11
  395. package/dist/plugins/providers/google/index.d.ts.map +0 -1
  396. package/dist/plugins/providers/google/index.js +0 -40
  397. package/dist/plugins/providers/google/index.js.map +0 -1
  398. package/dist/plugins/providers/index.d.ts +0 -2
  399. package/dist/plugins/providers/index.d.ts.map +0 -1
  400. package/dist/plugins/providers/index.js +0 -20
  401. package/dist/plugins/providers/index.js.map +0 -1
  402. package/dist/plugins/providers/ollama/index.d.ts +0 -21
  403. package/dist/plugins/providers/ollama/index.d.ts.map +0 -1
  404. package/dist/plugins/providers/ollama/index.js +0 -69
  405. package/dist/plugins/providers/ollama/index.js.map +0 -1
  406. package/dist/plugins/providers/openai/index.d.ts +0 -12
  407. package/dist/plugins/providers/openai/index.d.ts.map +0 -1
  408. package/dist/plugins/providers/openai/index.js +0 -39
  409. package/dist/plugins/providers/openai/index.js.map +0 -1
  410. package/dist/plugins/providers/xai/index.d.ts +0 -11
  411. package/dist/plugins/providers/xai/index.d.ts.map +0 -1
  412. package/dist/plugins/providers/xai/index.js +0 -39
  413. package/dist/plugins/providers/xai/index.js.map +0 -1
  414. package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts +0 -3
  415. package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts.map +0 -1
  416. package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js +0 -9
  417. package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js.map +0 -1
  418. package/dist/plugins/tools/bash/localBashPlugin.d.ts +0 -3
  419. package/dist/plugins/tools/bash/localBashPlugin.d.ts.map +0 -1
  420. package/dist/plugins/tools/bash/localBashPlugin.js +0 -14
  421. package/dist/plugins/tools/bash/localBashPlugin.js.map +0 -1
  422. package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts +0 -14
  423. package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts.map +0 -1
  424. package/dist/plugins/tools/browser/browserAutomationPlugin.js +0 -26
  425. package/dist/plugins/tools/browser/browserAutomationPlugin.js.map +0 -1
  426. package/dist/plugins/tools/build/buildPlugin.d.ts +0 -3
  427. package/dist/plugins/tools/build/buildPlugin.d.ts.map +0 -1
  428. package/dist/plugins/tools/build/buildPlugin.js +0 -14
  429. package/dist/plugins/tools/build/buildPlugin.js.map +0 -1
  430. package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts +0 -3
  431. package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts.map +0 -1
  432. package/dist/plugins/tools/checks/localRepoChecksPlugin.js +0 -14
  433. package/dist/plugins/tools/checks/localRepoChecksPlugin.js.map +0 -1
  434. package/dist/plugins/tools/cloud/cloudPlugin.d.ts +0 -3
  435. package/dist/plugins/tools/cloud/cloudPlugin.d.ts.map +0 -1
  436. package/dist/plugins/tools/cloud/cloudPlugin.js +0 -14
  437. package/dist/plugins/tools/cloud/cloudPlugin.js.map +0 -1
  438. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts +0 -3
  439. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts.map +0 -1
  440. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +0 -14
  441. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js.map +0 -1
  442. package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts +0 -3
  443. package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts.map +0 -1
  444. package/dist/plugins/tools/codeQuality/codeQualityPlugin.js +0 -14
  445. package/dist/plugins/tools/codeQuality/codeQualityPlugin.js.map +0 -1
  446. package/dist/plugins/tools/dependency/dependencyPlugin.d.ts +0 -3
  447. package/dist/plugins/tools/dependency/dependencyPlugin.d.ts.map +0 -1
  448. package/dist/plugins/tools/dependency/dependencyPlugin.js +0 -12
  449. package/dist/plugins/tools/dependency/dependencyPlugin.js.map +0 -1
  450. package/dist/plugins/tools/development/devPlugin.d.ts +0 -3
  451. package/dist/plugins/tools/development/devPlugin.d.ts.map +0 -1
  452. package/dist/plugins/tools/development/devPlugin.js +0 -14
  453. package/dist/plugins/tools/development/devPlugin.js.map +0 -1
  454. package/dist/plugins/tools/edit/editPlugin.d.ts +0 -9
  455. package/dist/plugins/tools/edit/editPlugin.d.ts.map +0 -1
  456. package/dist/plugins/tools/edit/editPlugin.js +0 -15
  457. package/dist/plugins/tools/edit/editPlugin.js.map +0 -1
  458. package/dist/plugins/tools/email/emailPlugin.d.ts +0 -3
  459. package/dist/plugins/tools/email/emailPlugin.d.ts.map +0 -1
  460. package/dist/plugins/tools/email/emailPlugin.js +0 -12
  461. package/dist/plugins/tools/email/emailPlugin.js.map +0 -1
  462. package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts +0 -3
  463. package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts.map +0 -1
  464. package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js +0 -9
  465. package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js.map +0 -1
  466. package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts +0 -3
  467. package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts.map +0 -1
  468. package/dist/plugins/tools/filesystem/localFilesystemPlugin.js +0 -14
  469. package/dist/plugins/tools/filesystem/localFilesystemPlugin.js.map +0 -1
  470. package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts +0 -3
  471. package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts.map +0 -1
  472. package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js +0 -14
  473. package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js.map +0 -1
  474. package/dist/plugins/tools/glob/globPlugin.d.ts +0 -9
  475. package/dist/plugins/tools/glob/globPlugin.d.ts.map +0 -1
  476. package/dist/plugins/tools/glob/globPlugin.js +0 -15
  477. package/dist/plugins/tools/glob/globPlugin.js.map +0 -1
  478. package/dist/plugins/tools/index.d.ts +0 -3
  479. package/dist/plugins/tools/index.d.ts.map +0 -1
  480. package/dist/plugins/tools/index.js +0 -3
  481. package/dist/plugins/tools/index.js.map +0 -1
  482. package/dist/plugins/tools/interaction/interactionPlugin.d.ts +0 -3
  483. package/dist/plugins/tools/interaction/interactionPlugin.d.ts.map +0 -1
  484. package/dist/plugins/tools/interaction/interactionPlugin.js +0 -12
  485. package/dist/plugins/tools/interaction/interactionPlugin.js.map +0 -1
  486. package/dist/plugins/tools/learn/learnPlugin.d.ts +0 -3
  487. package/dist/plugins/tools/learn/learnPlugin.d.ts.map +0 -1
  488. package/dist/plugins/tools/learn/learnPlugin.js +0 -14
  489. package/dist/plugins/tools/learn/learnPlugin.js.map +0 -1
  490. package/dist/plugins/tools/mcp/mcpPlugin.d.ts +0 -3
  491. package/dist/plugins/tools/mcp/mcpPlugin.d.ts.map +0 -1
  492. package/dist/plugins/tools/mcp/mcpPlugin.js +0 -9
  493. package/dist/plugins/tools/mcp/mcpPlugin.js.map +0 -1
  494. package/dist/plugins/tools/notebook/notebookPlugin.d.ts +0 -9
  495. package/dist/plugins/tools/notebook/notebookPlugin.d.ts.map +0 -1
  496. package/dist/plugins/tools/notebook/notebookPlugin.js +0 -15
  497. package/dist/plugins/tools/notebook/notebookPlugin.js.map +0 -1
  498. package/dist/plugins/tools/planning/planningPlugin.d.ts +0 -9
  499. package/dist/plugins/tools/planning/planningPlugin.d.ts.map +0 -1
  500. package/dist/plugins/tools/planning/planningPlugin.js +0 -15
  501. package/dist/plugins/tools/planning/planningPlugin.js.map +0 -1
  502. package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts +0 -3
  503. package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts.map +0 -1
  504. package/dist/plugins/tools/refactoring/refactoringPlugin.js +0 -12
  505. package/dist/plugins/tools/refactoring/refactoringPlugin.js.map +0 -1
  506. package/dist/plugins/tools/registry.d.ts +0 -22
  507. package/dist/plugins/tools/registry.d.ts.map +0 -1
  508. package/dist/plugins/tools/registry.js +0 -58
  509. package/dist/plugins/tools/registry.js.map +0 -1
  510. package/dist/plugins/tools/search/localSearchPlugin.d.ts +0 -3
  511. package/dist/plugins/tools/search/localSearchPlugin.d.ts.map +0 -1
  512. package/dist/plugins/tools/search/localSearchPlugin.js +0 -14
  513. package/dist/plugins/tools/search/localSearchPlugin.js.map +0 -1
  514. package/dist/plugins/tools/skills/skillPlugin.d.ts +0 -3
  515. package/dist/plugins/tools/skills/skillPlugin.d.ts.map +0 -1
  516. package/dist/plugins/tools/skills/skillPlugin.js +0 -9
  517. package/dist/plugins/tools/skills/skillPlugin.js.map +0 -1
  518. package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts +0 -3
  519. package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts.map +0 -1
  520. package/dist/plugins/tools/taskManagement/taskManagementPlugin.js +0 -12
  521. package/dist/plugins/tools/taskManagement/taskManagementPlugin.js.map +0 -1
  522. package/dist/plugins/tools/testing/testingPlugin.d.ts +0 -3
  523. package/dist/plugins/tools/testing/testingPlugin.d.ts.map +0 -1
  524. package/dist/plugins/tools/testing/testingPlugin.js +0 -12
  525. package/dist/plugins/tools/testing/testingPlugin.js.map +0 -1
  526. package/dist/plugins/tools/validation/validationPlugin.d.ts +0 -3
  527. package/dist/plugins/tools/validation/validationPlugin.d.ts.map +0 -1
  528. package/dist/plugins/tools/validation/validationPlugin.js +0 -14
  529. package/dist/plugins/tools/validation/validationPlugin.js.map +0 -1
  530. package/dist/plugins/tools/web/webPlugin.d.ts +0 -3
  531. package/dist/plugins/tools/web/webPlugin.d.ts.map +0 -1
  532. package/dist/plugins/tools/web/webPlugin.js +0 -12
  533. package/dist/plugins/tools/web/webPlugin.js.map +0 -1
  534. package/dist/providers/anthropicProvider.d.ts +0 -41
  535. package/dist/providers/anthropicProvider.d.ts.map +0 -1
  536. package/dist/providers/anthropicProvider.js +0 -446
  537. package/dist/providers/anthropicProvider.js.map +0 -1
  538. package/dist/providers/googleProvider.d.ts +0 -36
  539. package/dist/providers/googleProvider.d.ts.map +0 -1
  540. package/dist/providers/googleProvider.js +0 -312
  541. package/dist/providers/googleProvider.js.map +0 -1
  542. package/dist/providers/openaiChatCompletionsProvider.d.ts +0 -43
  543. package/dist/providers/openaiChatCompletionsProvider.d.ts.map +0 -1
  544. package/dist/providers/openaiChatCompletionsProvider.js +0 -475
  545. package/dist/providers/openaiChatCompletionsProvider.js.map +0 -1
  546. package/dist/providers/openaiResponsesProvider.d.ts +0 -38
  547. package/dist/providers/openaiResponsesProvider.d.ts.map +0 -1
  548. package/dist/providers/openaiResponsesProvider.js +0 -364
  549. package/dist/providers/openaiResponsesProvider.js.map +0 -1
  550. package/dist/providers/providerFactory.d.ts +0 -18
  551. package/dist/providers/providerFactory.d.ts.map +0 -1
  552. package/dist/providers/providerFactory.js +0 -25
  553. package/dist/providers/providerFactory.js.map +0 -1
  554. package/dist/providers/resilientProvider.d.ts +0 -94
  555. package/dist/providers/resilientProvider.d.ts.map +0 -1
  556. package/dist/providers/resilientProvider.js +0 -370
  557. package/dist/providers/resilientProvider.js.map +0 -1
  558. package/dist/runtime/agentController.d.ts +0 -65
  559. package/dist/runtime/agentController.d.ts.map +0 -1
  560. package/dist/runtime/agentController.js +0 -353
  561. package/dist/runtime/agentController.js.map +0 -1
  562. package/dist/runtime/agentHost.d.ts +0 -63
  563. package/dist/runtime/agentHost.d.ts.map +0 -1
  564. package/dist/runtime/agentHost.js +0 -159
  565. package/dist/runtime/agentHost.js.map +0 -1
  566. package/dist/runtime/browser.d.ts +0 -7
  567. package/dist/runtime/browser.d.ts.map +0 -1
  568. package/dist/runtime/browser.js +0 -10
  569. package/dist/runtime/browser.js.map +0 -1
  570. package/dist/runtime/cloud.d.ts +0 -7
  571. package/dist/runtime/cloud.d.ts.map +0 -1
  572. package/dist/runtime/cloud.js +0 -10
  573. package/dist/runtime/cloud.js.map +0 -1
  574. package/dist/runtime/node.d.ts +0 -8
  575. package/dist/runtime/node.d.ts.map +0 -1
  576. package/dist/runtime/node.js +0 -11
  577. package/dist/runtime/node.js.map +0 -1
  578. package/dist/runtime/universal.d.ts +0 -22
  579. package/dist/runtime/universal.d.ts.map +0 -1
  580. package/dist/runtime/universal.js +0 -30
  581. package/dist/runtime/universal.js.map +0 -1
  582. package/dist/shell/autoExecutor.d.ts +0 -70
  583. package/dist/shell/autoExecutor.d.ts.map +0 -1
  584. package/dist/shell/autoExecutor.js +0 -288
  585. package/dist/shell/autoExecutor.js.map +0 -1
  586. package/dist/shell/composableMessage.d.ts +0 -183
  587. package/dist/shell/composableMessage.d.ts.map +0 -1
  588. package/dist/shell/composableMessage.js +0 -420
  589. package/dist/shell/composableMessage.js.map +0 -1
  590. package/dist/shell/fileChangeTracker.d.ts +0 -39
  591. package/dist/shell/fileChangeTracker.d.ts.map +0 -1
  592. package/dist/shell/fileChangeTracker.js +0 -64
  593. package/dist/shell/fileChangeTracker.js.map +0 -1
  594. package/dist/shell/liveStatus.d.ts +0 -29
  595. package/dist/shell/liveStatus.d.ts.map +0 -1
  596. package/dist/shell/liveStatus.js +0 -77
  597. package/dist/shell/liveStatus.js.map +0 -1
  598. package/dist/shell/taskCompletionDetector.d.ts +0 -106
  599. package/dist/shell/taskCompletionDetector.d.ts.map +0 -1
  600. package/dist/shell/taskCompletionDetector.js +0 -402
  601. package/dist/shell/taskCompletionDetector.js.map +0 -1
  602. package/dist/shell/updateManager.d.ts +0 -3
  603. package/dist/shell/updateManager.d.ts.map +0 -1
  604. package/dist/shell/updateManager.js +0 -120
  605. package/dist/shell/updateManager.js.map +0 -1
  606. package/dist/skills/skillRepository.d.ts +0 -103
  607. package/dist/skills/skillRepository.d.ts.map +0 -1
  608. package/dist/skills/skillRepository.js +0 -237
  609. package/dist/skills/skillRepository.js.map +0 -1
  610. package/dist/skills/types.d.ts +0 -37
  611. package/dist/skills/types.d.ts.map +0 -1
  612. package/dist/skills/types.js +0 -2
  613. package/dist/skills/types.js.map +0 -1
  614. package/dist/tools/advancedTestGenerationTools.d.ts +0 -21
  615. package/dist/tools/advancedTestGenerationTools.d.ts.map +0 -1
  616. package/dist/tools/advancedTestGenerationTools.js +0 -301
  617. package/dist/tools/advancedTestGenerationTools.js.map +0 -1
  618. package/dist/tools/backgroundBashTools.d.ts +0 -21
  619. package/dist/tools/backgroundBashTools.d.ts.map +0 -1
  620. package/dist/tools/backgroundBashTools.js +0 -215
  621. package/dist/tools/backgroundBashTools.js.map +0 -1
  622. package/dist/tools/bashTools.d.ts +0 -8
  623. package/dist/tools/bashTools.d.ts.map +0 -1
  624. package/dist/tools/bashTools.js +0 -251
  625. package/dist/tools/bashTools.js.map +0 -1
  626. package/dist/tools/browserAutomationTools.d.ts +0 -23
  627. package/dist/tools/browserAutomationTools.d.ts.map +0 -1
  628. package/dist/tools/browserAutomationTools.js +0 -916
  629. package/dist/tools/browserAutomationTools.js.map +0 -1
  630. package/dist/tools/buildTools.d.ts +0 -9
  631. package/dist/tools/buildTools.d.ts.map +0 -1
  632. package/dist/tools/buildTools.js +0 -344
  633. package/dist/tools/buildTools.js.map +0 -1
  634. package/dist/tools/cloudTools.d.ts +0 -49
  635. package/dist/tools/cloudTools.d.ts.map +0 -1
  636. package/dist/tools/cloudTools.js +0 -1258
  637. package/dist/tools/cloudTools.js.map +0 -1
  638. package/dist/tools/code-quality-dashboard.d.ts +0 -57
  639. package/dist/tools/code-quality-dashboard.d.ts.map +0 -1
  640. package/dist/tools/code-quality-dashboard.js +0 -218
  641. package/dist/tools/code-quality-dashboard.js.map +0 -1
  642. package/dist/tools/codeAnalysisTools.d.ts +0 -74
  643. package/dist/tools/codeAnalysisTools.d.ts.map +0 -1
  644. package/dist/tools/codeAnalysisTools.js +0 -664
  645. package/dist/tools/codeAnalysisTools.js.map +0 -1
  646. package/dist/tools/codeGenerationTools.d.ts +0 -3
  647. package/dist/tools/codeGenerationTools.d.ts.map +0 -1
  648. package/dist/tools/codeGenerationTools.js +0 -439
  649. package/dist/tools/codeGenerationTools.js.map +0 -1
  650. package/dist/tools/codeQualityTools.d.ts +0 -3
  651. package/dist/tools/codeQualityTools.d.ts.map +0 -1
  652. package/dist/tools/codeQualityTools.js +0 -296
  653. package/dist/tools/codeQualityTools.js.map +0 -1
  654. package/dist/tools/dependencyTools.d.ts +0 -3
  655. package/dist/tools/dependencyTools.d.ts.map +0 -1
  656. package/dist/tools/dependencyTools.js +0 -283
  657. package/dist/tools/dependencyTools.js.map +0 -1
  658. package/dist/tools/devTools.d.ts +0 -10
  659. package/dist/tools/devTools.d.ts.map +0 -1
  660. package/dist/tools/devTools.js +0 -2125
  661. package/dist/tools/devTools.js.map +0 -1
  662. package/dist/tools/diffUtils.d.ts +0 -36
  663. package/dist/tools/diffUtils.d.ts.map +0 -1
  664. package/dist/tools/diffUtils.js +0 -528
  665. package/dist/tools/diffUtils.js.map +0 -1
  666. package/dist/tools/editTools.d.ts +0 -29
  667. package/dist/tools/editTools.d.ts.map +0 -1
  668. package/dist/tools/editTools.js +0 -419
  669. package/dist/tools/editTools.js.map +0 -1
  670. package/dist/tools/emailTools.d.ts +0 -21
  671. package/dist/tools/emailTools.d.ts.map +0 -1
  672. package/dist/tools/emailTools.js +0 -449
  673. package/dist/tools/emailTools.js.map +0 -1
  674. package/dist/tools/enhancedCodeIntelligenceTools.d.ts +0 -27
  675. package/dist/tools/enhancedCodeIntelligenceTools.d.ts.map +0 -1
  676. package/dist/tools/enhancedCodeIntelligenceTools.js +0 -418
  677. package/dist/tools/enhancedCodeIntelligenceTools.js.map +0 -1
  678. package/dist/tools/enhancedDevWorkflowTools.d.ts +0 -15
  679. package/dist/tools/enhancedDevWorkflowTools.d.ts.map +0 -1
  680. package/dist/tools/enhancedDevWorkflowTools.js +0 -303
  681. package/dist/tools/enhancedDevWorkflowTools.js.map +0 -1
  682. package/dist/tools/frontendTestingTools.d.ts +0 -35
  683. package/dist/tools/frontendTestingTools.d.ts.map +0 -1
  684. package/dist/tools/frontendTestingTools.js +0 -1254
  685. package/dist/tools/frontendTestingTools.js.map +0 -1
  686. package/dist/tools/globTools.d.ts +0 -15
  687. package/dist/tools/globTools.d.ts.map +0 -1
  688. package/dist/tools/globTools.js +0 -174
  689. package/dist/tools/globTools.js.map +0 -1
  690. package/dist/tools/interactionTools.d.ts +0 -13
  691. package/dist/tools/interactionTools.d.ts.map +0 -1
  692. package/dist/tools/interactionTools.js +0 -171
  693. package/dist/tools/interactionTools.js.map +0 -1
  694. package/dist/tools/notebookEditTools.d.ts +0 -15
  695. package/dist/tools/notebookEditTools.d.ts.map +0 -1
  696. package/dist/tools/notebookEditTools.js +0 -197
  697. package/dist/tools/notebookEditTools.js.map +0 -1
  698. package/dist/tools/refactoringTools.d.ts +0 -3
  699. package/dist/tools/refactoringTools.d.ts.map +0 -1
  700. package/dist/tools/refactoringTools.js +0 -294
  701. package/dist/tools/refactoringTools.js.map +0 -1
  702. package/dist/tools/repoChecksTools.d.ts +0 -3
  703. package/dist/tools/repoChecksTools.d.ts.map +0 -1
  704. package/dist/tools/repoChecksTools.js +0 -161
  705. package/dist/tools/repoChecksTools.js.map +0 -1
  706. package/dist/tools/searchTools.d.ts +0 -3
  707. package/dist/tools/searchTools.d.ts.map +0 -1
  708. package/dist/tools/searchTools.js +0 -241
  709. package/dist/tools/searchTools.js.map +0 -1
  710. package/dist/tools/skillTools.d.ts +0 -8
  711. package/dist/tools/skillTools.d.ts.map +0 -1
  712. package/dist/tools/skillTools.js +0 -178
  713. package/dist/tools/skillTools.js.map +0 -1
  714. package/dist/tools/softwareEngineeringTools.d.ts +0 -7
  715. package/dist/tools/softwareEngineeringTools.d.ts.map +0 -1
  716. package/dist/tools/softwareEngineeringTools.js +0 -338
  717. package/dist/tools/softwareEngineeringTools.js.map +0 -1
  718. package/dist/tools/taskManagementTools.d.ts +0 -10
  719. package/dist/tools/taskManagementTools.d.ts.map +0 -1
  720. package/dist/tools/taskManagementTools.js +0 -157
  721. package/dist/tools/taskManagementTools.js.map +0 -1
  722. package/dist/tools/testingTools.d.ts +0 -3
  723. package/dist/tools/testingTools.d.ts.map +0 -1
  724. package/dist/tools/testingTools.js +0 -233
  725. package/dist/tools/testingTools.js.map +0 -1
  726. package/dist/tools/validationTools.d.ts +0 -7
  727. package/dist/tools/validationTools.d.ts.map +0 -1
  728. package/dist/tools/validationTools.js +0 -344
  729. package/dist/tools/validationTools.js.map +0 -1
  730. package/dist/ui/UnifiedUIController.d.ts +0 -70
  731. package/dist/ui/UnifiedUIController.d.ts.map +0 -1
  732. package/dist/ui/UnifiedUIController.js +0 -190
  733. package/dist/ui/UnifiedUIController.js.map +0 -1
  734. package/dist/ui/animation/AnimationScheduler.d.ts +0 -192
  735. package/dist/ui/animation/AnimationScheduler.d.ts.map +0 -1
  736. package/dist/ui/animation/AnimationScheduler.js +0 -432
  737. package/dist/ui/animation/AnimationScheduler.js.map +0 -1
  738. package/dist/ui/codeHighlighter.d.ts +0 -6
  739. package/dist/ui/codeHighlighter.d.ts.map +0 -1
  740. package/dist/ui/codeHighlighter.js +0 -855
  741. package/dist/ui/codeHighlighter.js.map +0 -1
  742. package/dist/ui/designSystem.d.ts +0 -26
  743. package/dist/ui/designSystem.d.ts.map +0 -1
  744. package/dist/ui/designSystem.js +0 -122
  745. package/dist/ui/designSystem.js.map +0 -1
  746. package/dist/ui/errorFormatter.d.ts +0 -54
  747. package/dist/ui/errorFormatter.d.ts.map +0 -1
  748. package/dist/ui/errorFormatter.js +0 -251
  749. package/dist/ui/errorFormatter.js.map +0 -1
  750. package/dist/ui/globalWriteLock.d.ts +0 -38
  751. package/dist/ui/globalWriteLock.d.ts.map +0 -1
  752. package/dist/ui/globalWriteLock.js +0 -54
  753. package/dist/ui/globalWriteLock.js.map +0 -1
  754. package/dist/ui/interrupts/InterruptManager.d.ts +0 -142
  755. package/dist/ui/interrupts/InterruptManager.d.ts.map +0 -1
  756. package/dist/ui/interrupts/InterruptManager.js +0 -439
  757. package/dist/ui/interrupts/InterruptManager.js.map +0 -1
  758. package/dist/ui/layout.d.ts +0 -17
  759. package/dist/ui/layout.d.ts.map +0 -1
  760. package/dist/ui/layout.js +0 -141
  761. package/dist/ui/layout.js.map +0 -1
  762. package/dist/ui/orchestration/StatusOrchestrator.d.ts +0 -156
  763. package/dist/ui/orchestration/StatusOrchestrator.d.ts.map +0 -1
  764. package/dist/ui/orchestration/StatusOrchestrator.js +0 -406
  765. package/dist/ui/orchestration/StatusOrchestrator.js.map +0 -1
  766. package/dist/ui/orchestration/UIUpdateCoordinator.d.ts +0 -77
  767. package/dist/ui/orchestration/UIUpdateCoordinator.d.ts.map +0 -1
  768. package/dist/ui/orchestration/UIUpdateCoordinator.js +0 -265
  769. package/dist/ui/orchestration/UIUpdateCoordinator.js.map +0 -1
  770. package/dist/ui/outputMode.d.ts +0 -22
  771. package/dist/ui/outputMode.d.ts.map +0 -1
  772. package/dist/ui/outputMode.js +0 -40
  773. package/dist/ui/outputMode.js.map +0 -1
  774. package/dist/ui/richText.d.ts +0 -6
  775. package/dist/ui/richText.d.ts.map +0 -1
  776. package/dist/ui/richText.js +0 -391
  777. package/dist/ui/richText.js.map +0 -1
  778. package/dist/ui/telemetry/UITelemetry.d.ts +0 -181
  779. package/dist/ui/telemetry/UITelemetry.d.ts.map +0 -1
  780. package/dist/ui/telemetry/UITelemetry.js +0 -446
  781. package/dist/ui/telemetry/UITelemetry.js.map +0 -1
  782. package/dist/ui/textHighlighter.d.ts +0 -83
  783. package/dist/ui/textHighlighter.d.ts.map +0 -1
  784. package/dist/ui/textHighlighter.js +0 -267
  785. package/dist/ui/textHighlighter.js.map +0 -1
  786. package/dist/ui/writeLock.d.ts +0 -65
  787. package/dist/ui/writeLock.d.ts.map +0 -1
  788. package/dist/ui/writeLock.js +0 -114
  789. package/dist/ui/writeLock.js.map +0 -1
  790. package/dist/utils/asyncUtils.d.ts +0 -95
  791. package/dist/utils/asyncUtils.d.ts.map +0 -1
  792. package/dist/utils/asyncUtils.js +0 -286
  793. package/dist/utils/asyncUtils.js.map +0 -1
  794. package/dist/utils/errorUtils.d.ts +0 -16
  795. package/dist/utils/errorUtils.d.ts.map +0 -1
  796. package/dist/utils/errorUtils.js +0 -66
  797. package/dist/utils/errorUtils.js.map +0 -1
  798. package/dist/utils/planFormatter.d.ts +0 -34
  799. package/dist/utils/planFormatter.d.ts.map +0 -1
  800. package/dist/utils/planFormatter.js +0 -140
  801. package/dist/utils/planFormatter.js.map +0 -1
  802. package/dist/workspace.d.ts +0 -8
  803. package/dist/workspace.d.ts.map +0 -1
  804. package/dist/workspace.js +0 -107
  805. package/dist/workspace.js.map +0 -1
  806. package/dist/workspace.validator.d.ts +0 -49
  807. package/dist/workspace.validator.d.ts.map +0 -1
  808. package/dist/workspace.validator.js +0 -214
  809. package/dist/workspace.validator.js.map +0 -1
@@ -1,267 +0,0 @@
1
- /**
2
- * Text Highlighter - Claude Code style
3
- * Applies sophisticated coloring to different text types
4
- */
5
- import { theme } from './theme.js';
6
- /**
7
- * Highlight file paths (Claude Code style)
8
- * Example: src/ui/display.ts
9
- */
10
- export function highlightFilePath(path) {
11
- const parts = path.split('/');
12
- const file = parts.pop() || '';
13
- const dir = parts.join('/');
14
- if (dir) {
15
- return `${theme.ui.muted(`${dir}/`)}${theme.info(file)}`;
16
- }
17
- return theme.info(file);
18
- }
19
- /**
20
- * Highlight numbers in text
21
- * Example: "Read 150 lines" -> "Read [150] lines"
22
- */
23
- export function highlightNumbers(text) {
24
- return text.replace(/\b(\d+)\b/g, (match) => theme.ui.number(match));
25
- }
26
- /**
27
- * Highlight code blocks (inline)
28
- * Example: `const foo = 'bar'`
29
- */
30
- export function highlightInlineCode(text) {
31
- return text.replace(/`([^`]+)`/g, (_, code) => theme.ui.code(code));
32
- }
33
- /**
34
- * Highlight quoted strings
35
- * Example: "hello world"
36
- */
37
- export function highlightQuotedStrings(text) {
38
- return text.replace(/"([^"]*)"/g, (_, str) => theme.ui.string(`"${str}"`));
39
- }
40
- /**
41
- * Highlight keywords (Claude Code style)
42
- * Example: function, class, const, let, etc.
43
- */
44
- export function highlightKeywords(text) {
45
- const keywords = [
46
- 'function', 'class', 'const', 'let', 'var',
47
- 'import', 'export', 'from', 'default',
48
- 'async', 'await', 'return', 'if', 'else',
49
- 'for', 'while', 'do', 'switch', 'case',
50
- 'try', 'catch', 'finally', 'throw',
51
- 'new', 'this', 'super', 'extends', 'implements',
52
- ];
53
- let result = text;
54
- for (const keyword of keywords) {
55
- const regex = new RegExp(`\\b(${keyword})\\b`, 'g');
56
- result = result.replace(regex, (match) => theme.ui.keyword(match));
57
- }
58
- return result;
59
- }
60
- /**
61
- * Highlight URLs
62
- */
63
- export function highlightUrls(text) {
64
- const urlRegex = /(https?:\/\/[^\s]+)/g;
65
- return text.replace(urlRegex, (url) => theme.link.url(url));
66
- }
67
- /**
68
- * Highlight error messages (Claude Code style)
69
- * Makes errors stand out with proper coloring and clickable file references
70
- */
71
- export function highlightError(text) {
72
- // Highlight error type (TypeScript, JavaScript, Node errors)
73
- text = text.replace(/^(Error|TypeError|SyntaxError|ReferenceError|RangeError|URIError|EvalError):/im, (match) => theme.error.bold(match));
74
- // Highlight TypeScript errors (TS2xxx)
75
- text = text.replace(/error (TS\d+):/g, (_, code) => `error ${theme.error.bold(code)}:`);
76
- // Highlight file:line:col references (Claude Code style - make them look clickable)
77
- // Pattern: path/to/file.ts(10,5) or path/to/file.ts:10:5
78
- text = text.replace(/([a-zA-Z0-9_\-./]+\.[a-zA-Z]+)\((\d+),(\d+)\)/g, (_, file, line, col) => `${theme.info(file)}:${theme.warning(line)}:${theme.warning(col)}`);
79
- text = text.replace(/([a-zA-Z0-9_\-./]+\.[a-zA-Z]+):(\d+):(\d+)/g, (_, file, line, col) => `${theme.info(file)}:${theme.warning(line)}:${theme.warning(col)}`);
80
- // Highlight stack trace lines (at function in file:line:col)
81
- text = text.replace(/^\s+at\s+([^\s]+)\s+\(([^:]+):(\d+):(\d+)\)/gm, (_, fn, file, line, col) => ` at ${theme.ui.muted(fn)} (${theme.info(file)}:${theme.warning(line)}:${theme.warning(col)})`);
82
- // Highlight anonymous stack trace (at file:line:col without function)
83
- text = text.replace(/^\s+at\s+([^(]+):(\d+):(\d+)$/gm, (_, file, line, col) => ` at ${theme.info(file.trim())}:${theme.warning(line)}:${theme.warning(col)}`);
84
- // Highlight error keywords in the message
85
- const errorKeywords = ['failed', 'cannot', 'unable', 'invalid', 'missing', 'undefined', 'null', 'expected'];
86
- for (const keyword of errorKeywords) {
87
- const regex = new RegExp(`\\b(${keyword})\\b`, 'gi');
88
- text = text.replace(regex, (match) => theme.error(match));
89
- }
90
- return text;
91
- }
92
- /**
93
- * Format file:line reference for terminal output (Claude Code style)
94
- * Returns a formatted string that looks like a clickable reference
95
- */
96
- export function formatFileLineRef(filePath, line, col) {
97
- if (line !== undefined && col !== undefined) {
98
- return `${theme.info(filePath)}:${theme.warning(String(line))}:${theme.warning(String(col))}`;
99
- }
100
- if (line !== undefined) {
101
- return `${theme.info(filePath)}:${theme.warning(String(line))}`;
102
- }
103
- return theme.info(filePath);
104
- }
105
- /**
106
- * Highlight success messages
107
- */
108
- export function highlightSuccess(text) {
109
- const successWords = ['success', 'completed', 'passed', 'done', 'ok'];
110
- let result = text;
111
- for (const word of successWords) {
112
- const regex = new RegExp(`\\b(${word})\\b`, 'gi');
113
- result = result.replace(regex, (match) => theme.success.bold(match));
114
- }
115
- return result;
116
- }
117
- /**
118
- * Highlight warning messages
119
- */
120
- export function highlightWarning(text) {
121
- const warningWords = ['warning', 'deprecated', 'caution', 'attention'];
122
- let result = text;
123
- for (const word of warningWords) {
124
- const regex = new RegExp(`\\b(${word})\\b`, 'gi');
125
- result = result.replace(regex, (match) => theme.warning.bold(match));
126
- }
127
- return result;
128
- }
129
- /**
130
- * Highlight tool names (Claude Code style)
131
- */
132
- export function highlightToolName(name) {
133
- return theme.info.bold(name);
134
- }
135
- /**
136
- * Highlight command output (Claude Code style)
137
- * Applies context-aware highlighting
138
- */
139
- export function highlightCommandOutput(output, command) {
140
- let result = output;
141
- // Git commands
142
- if (command?.includes('git')) {
143
- result = highlightGitOutput(result);
144
- }
145
- // npm commands
146
- else if (command?.includes('npm')) {
147
- result = highlightNpmOutput(result);
148
- }
149
- // General highlighting
150
- else {
151
- result = highlightNumbers(result);
152
- result = highlightUrls(result);
153
- result = highlightFilePaths(result);
154
- }
155
- return result;
156
- }
157
- /**
158
- * Highlight file paths in text
159
- */
160
- function highlightFilePaths(text) {
161
- // Match common file path patterns
162
- const pathRegex = /([a-zA-Z0-9_\-./]+\.(ts|js|tsx|jsx|json|md|txt|yml|yaml|css|scss|html))/g;
163
- return text.replace(pathRegex, (match) => highlightFilePath(match));
164
- }
165
- /**
166
- * Highlight git output
167
- */
168
- function highlightGitOutput(text) {
169
- let result = text;
170
- // Branch names
171
- result = result.replace(/On branch (\w+)/g, (_, branch) => `On branch ${theme.info.bold(branch)}`);
172
- // File statuses
173
- result = result.replace(/^\s*modified:/gm, (match) => theme.warning(match));
174
- result = result.replace(/^\s*deleted:/gm, (match) => theme.error(match));
175
- result = result.replace(/^\s*new file:/gm, (match) => theme.success(match));
176
- // Ahead/behind
177
- result = result.replace(/ahead (\d+)/g, (_, num) => `ahead ${theme.success.bold(num)}`);
178
- result = result.replace(/behind (\d+)/g, (_, num) => `behind ${theme.warning.bold(num)}`);
179
- return result;
180
- }
181
- /**
182
- * Highlight npm output
183
- */
184
- function highlightNpmOutput(text) {
185
- let result = text;
186
- // Package names
187
- result = result.replace(/(@[\w-]+\/[\w-]+|[\w-]+@[\d.]+)/g, (match) => theme.info(match));
188
- // Warnings
189
- result = result.replace(/WARN/g, theme.warning.bold('WARN'));
190
- // Errors
191
- result = result.replace(/ERR!/g, theme.error.bold('ERR!'));
192
- return result;
193
- }
194
- /**
195
- * Apply all highlighting (auto-detect)
196
- */
197
- export function highlightText(text, context) {
198
- let result = text;
199
- switch (context) {
200
- case 'error':
201
- result = highlightError(result);
202
- break;
203
- case 'code':
204
- result = highlightKeywords(result);
205
- result = highlightQuotedStrings(result);
206
- result = highlightNumbers(result);
207
- break;
208
- case 'command':
209
- result = highlightCommandOutput(result);
210
- break;
211
- case 'log':
212
- result = highlightSuccess(result);
213
- result = highlightWarning(result);
214
- result = highlightNumbers(result);
215
- break;
216
- default:
217
- // Auto-detect and apply all
218
- result = highlightNumbers(result);
219
- result = highlightUrls(result);
220
- result = highlightInlineCode(result);
221
- result = highlightSuccess(result);
222
- result = highlightWarning(result);
223
- }
224
- return result;
225
- }
226
- /**
227
- * Highlight important text (bold + colored)
228
- */
229
- export function highlightImportant(text) {
230
- return theme.ui.highlight(text);
231
- }
232
- /**
233
- * Emphasize text (less prominent than important)
234
- */
235
- export function emphasizeText(text) {
236
- return theme.ui.emphasis(text);
237
- }
238
- /**
239
- * Highlight thinking blocks (Claude Code style)
240
- * Wraps <thinking>...</thinking> content in a styled box
241
- */
242
- export function highlightThinkingBlock(text) {
243
- // Match <thinking>...</thinking> blocks
244
- const thinkingRegex = /<thinking>([\s\S]*?)<\/thinking>/gi;
245
- return text.replace(thinkingRegex, (_, content) => {
246
- const trimmedContent = content.trim();
247
- const lines = trimmedContent.split('\n');
248
- // Build the styled thinking box
249
- const header = theme.ui.muted('┌─ ') + theme.secondary('💭 Thinking') + theme.ui.muted(' ─');
250
- const footer = theme.ui.muted(`└${'─'.repeat(20)}`);
251
- const styledLines = lines.map(line => {
252
- const trimmedLine = line.trim();
253
- if (!trimmedLine)
254
- return theme.ui.muted('│');
255
- return theme.ui.muted('│ ') + theme.ui.muted(trimmedLine);
256
- });
257
- return [header, ...styledLines, footer].join('\n');
258
- });
259
- }
260
- /**
261
- * Format streaming thinking content (for incremental display)
262
- * Shows thinking in a muted italic style without the box
263
- */
264
- export function formatThinkingContent(content) {
265
- return theme.ui.muted(content);
266
- }
267
- //# sourceMappingURL=textHighlighter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"textHighlighter.js","sourceRoot":"","sources":["../../src/ui/textHighlighter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC9B,MAAM,IAAI,GAAG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AC,SAAS,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC7F,MAAM,MAAM,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAM,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAEtD,MAAM,WAAW,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YACnC,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;YAChC,IAAI,CAAC,WAAW;gBAAE,OAAO,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC7C,OAAO,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,MAAM,EAAE,GAAG,WAAW,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACnD,OAAO,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC"}
@@ -1,65 +0,0 @@
1
- /**
2
- * WriteLock - Shared write lock for coordinating terminal output
3
- *
4
- * Prevents race conditions when multiple sources write to stdout:
5
- * - Display output (messages, tool results)
6
- * - Terminal input rendering (prompt, status)
7
- * - Streaming content
8
- *
9
- * Uses a simple mutex pattern suitable for Node.js single-threaded event loop.
10
- */
11
- type WriteCallback = () => void;
12
- declare class WriteLockImpl {
13
- private locked;
14
- private readonly pendingWrites;
15
- private lockHolder;
16
- /**
17
- * Check if output is currently locked
18
- */
19
- isLocked(): boolean;
20
- /**
21
- * Acquire the lock for exclusive writing
22
- * @param holder Optional identifier for debugging
23
- */
24
- lock(holder?: string): void;
25
- /**
26
- * Release the lock and process any pending writes
27
- */
28
- unlock(): void;
29
- /**
30
- * Execute a write callback safely.
31
- * If locked, the callback is queued until unlock.
32
- */
33
- safeWrite(callback: WriteCallback): void;
34
- /**
35
- * Execute a write with the lock held.
36
- * Ensures exclusive access during the write operation.
37
- */
38
- withLock(callback: WriteCallback, holder?: string): void;
39
- /**
40
- * Execute an async operation with the lock held.
41
- */
42
- withLockAsync<T>(callback: () => Promise<T>, holder?: string): Promise<T>;
43
- /**
44
- * Process any pending writes that were queued while locked
45
- */
46
- private processPending;
47
- /**
48
- * Clear all pending writes (use when resetting state)
49
- */
50
- clearPending(): void;
51
- /**
52
- * Get debug info about the lock state
53
- */
54
- getDebugInfo(): {
55
- locked: boolean;
56
- holder: string | null;
57
- pendingCount: number;
58
- };
59
- }
60
- /**
61
- * Singleton instance for global use
62
- */
63
- export declare const writeLock: WriteLockImpl;
64
- export {};
65
- //# sourceMappingURL=writeLock.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"writeLock.d.ts","sourceRoot":"","sources":["../../src/ui/writeLock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,KAAK,aAAa,GAAG,MAAM,IAAI,CAAC;AAEhC,cAAM,aAAa;IACjB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAuB;IACrD,OAAO,CAAC,UAAU,CAAuB;IAEzC;;OAEG;IACH,QAAQ,IAAI,OAAO;IAInB;;;OAGG;IACH,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAK3B;;OAEG;IACH,MAAM,IAAI,IAAI;IAMd;;;OAGG;IACH,SAAS,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;IAQxC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAexD;;OAEG;IACG,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAc/E;;OAEG;IACH,OAAO,CAAC,cAAc;IAStB;;OAEG;IACH,YAAY,IAAI,IAAI;IAIpB;;OAEG;IACH,YAAY,IAAI;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE;CAOjF;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,eAAsB,CAAC"}
@@ -1,114 +0,0 @@
1
- /**
2
- * WriteLock - Shared write lock for coordinating terminal output
3
- *
4
- * Prevents race conditions when multiple sources write to stdout:
5
- * - Display output (messages, tool results)
6
- * - Terminal input rendering (prompt, status)
7
- * - Streaming content
8
- *
9
- * Uses a simple mutex pattern suitable for Node.js single-threaded event loop.
10
- */
11
- class WriteLockImpl {
12
- locked = false;
13
- pendingWrites = [];
14
- lockHolder = null;
15
- /**
16
- * Check if output is currently locked
17
- */
18
- isLocked() {
19
- return this.locked;
20
- }
21
- /**
22
- * Acquire the lock for exclusive writing
23
- * @param holder Optional identifier for debugging
24
- */
25
- lock(holder) {
26
- this.locked = true;
27
- this.lockHolder = holder ?? null;
28
- }
29
- /**
30
- * Release the lock and process any pending writes
31
- */
32
- unlock() {
33
- this.locked = false;
34
- this.lockHolder = null;
35
- this.processPending();
36
- }
37
- /**
38
- * Execute a write callback safely.
39
- * If locked, the callback is queued until unlock.
40
- */
41
- safeWrite(callback) {
42
- if (this.locked) {
43
- this.pendingWrites.push(callback);
44
- return;
45
- }
46
- callback();
47
- }
48
- /**
49
- * Execute a write with the lock held.
50
- * Ensures exclusive access during the write operation.
51
- */
52
- withLock(callback, holder) {
53
- if (this.locked) {
54
- // Queue for later execution
55
- this.pendingWrites.push(() => this.withLock(callback, holder));
56
- return;
57
- }
58
- this.lock(holder);
59
- try {
60
- callback();
61
- }
62
- finally {
63
- this.unlock();
64
- }
65
- }
66
- /**
67
- * Execute an async operation with the lock held.
68
- */
69
- async withLockAsync(callback, holder) {
70
- // Wait for lock to be available
71
- while (this.locked) {
72
- await new Promise((resolve) => setTimeout(resolve, 1));
73
- }
74
- this.lock(holder);
75
- try {
76
- return await callback();
77
- }
78
- finally {
79
- this.unlock();
80
- }
81
- }
82
- /**
83
- * Process any pending writes that were queued while locked
84
- */
85
- processPending() {
86
- while (this.pendingWrites.length > 0 && !this.locked) {
87
- const callback = this.pendingWrites.shift();
88
- if (callback) {
89
- callback();
90
- }
91
- }
92
- }
93
- /**
94
- * Clear all pending writes (use when resetting state)
95
- */
96
- clearPending() {
97
- this.pendingWrites.length = 0;
98
- }
99
- /**
100
- * Get debug info about the lock state
101
- */
102
- getDebugInfo() {
103
- return {
104
- locked: this.locked,
105
- holder: this.lockHolder,
106
- pendingCount: this.pendingWrites.length,
107
- };
108
- }
109
- }
110
- /**
111
- * Singleton instance for global use
112
- */
113
- export const writeLock = new WriteLockImpl();
114
- //# sourceMappingURL=writeLock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"writeLock.js","sourceRoot":"","sources":["../../src/ui/writeLock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,aAAa;IACT,MAAM,GAAG,KAAK,CAAC;IACN,aAAa,GAAoB,EAAE,CAAC;IAC7C,UAAU,GAAkB,IAAI,CAAC;IAEzC;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,MAAe;QAClB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,MAAM,IAAI,IAAI,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,IAAI,CAAC,cAAc,EAAE,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AC,KAAK,EAAE,CAAC;YAC5C,IAAI,QAAQ,EAAE,CAAC;gBACb,QAAQ,EAAE,CAAC;YACb,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACH,YAAY;QACV,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,YAAY;QACV,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,IAAI,CAAC,UAAU;YACvB,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;SACxC,CAAC;IACJ,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,aAAa,EAAE,CAAC"}
@@ -1,95 +0,0 @@
1
- /**
2
- * Async Utilities Module
3
- *
4
- * Production-ready async patterns for rate limiting, throttling,
5
- * concurrency control, and caching with TTL.
6
- *
7
- * Principal Investigator: Bo Shang
8
- * Framework: erosolar-cli
9
- */
10
- export interface RateLimiterConfig {
11
- maxRequests: number;
12
- windowMs: number;
13
- }
14
- export interface ThrottleConfig {
15
- intervalMs: number;
16
- leading?: boolean;
17
- trailing?: boolean;
18
- }
19
- export interface CacheEntry<T> {
20
- value: T;
21
- expiresAt: number;
22
- }
23
- export interface CacheConfig {
24
- ttlMs: number;
25
- maxSize?: number;
26
- }
27
- export interface ConcurrencyConfig {
28
- maxConcurrent: number;
29
- timeout?: number;
30
- }
31
- export declare class RateLimiter {
32
- private tokens;
33
- private lastRefill;
34
- private readonly maxTokens;
35
- private readonly refillRate;
36
- constructor(config: RateLimiterConfig);
37
- private refill;
38
- acquire(): Promise<void>;
39
- tryAcquire(): boolean;
40
- get availableTokens(): number;
41
- }
42
- export declare function throttle<T extends (...args: unknown[]) => unknown>(fn: T, config: ThrottleConfig): (...args: Parameters<T>) => ReturnType<T> | undefined;
43
- export declare function debounce<T extends (...args: unknown[]) => unknown>(fn: T, delayMs: number): (...args: Parameters<T>) => void;
44
- export declare class TTLCache<K, V> {
45
- private cache;
46
- private readonly ttlMs;
47
- private readonly maxSize;
48
- constructor(config: CacheConfig);
49
- get(key: K): V | undefined;
50
- set(key: K, value: V, ttlMs?: number): void;
51
- has(key: K): boolean;
52
- delete(key: K): boolean;
53
- clear(): void;
54
- get size(): number;
55
- private prune;
56
- }
57
- export declare function memoize<T extends (...args: unknown[]) => unknown>(fn: T, config: CacheConfig & {
58
- keyFn?: (...args: Parameters<T>) => string;
59
- }): T;
60
- export declare class ConcurrencyPool {
61
- private running;
62
- private queue;
63
- private readonly maxConcurrent;
64
- private readonly timeout;
65
- constructor(config: ConcurrencyConfig);
66
- run<T>(fn: () => Promise<T>): Promise<T>;
67
- private acquire;
68
- private release;
69
- get pending(): number;
70
- get active(): number;
71
- }
72
- export declare function parallelMap<T, R>(items: T[], fn: (item: T, index: number) => Promise<R>, concurrency?: number): Promise<R[]>;
73
- export declare function sleep(ms: number): Promise<void>;
74
- export declare function withTimeout<T>(promise: Promise<T>, timeoutMs: number, errorMessage?: string): Promise<T>;
75
- export declare function retry<T>(fn: () => Promise<T>, config?: {
76
- maxRetries?: number;
77
- baseDelayMs?: number;
78
- maxDelayMs?: number;
79
- backoffMultiplier?: number;
80
- shouldRetry?: (error: unknown) => boolean;
81
- }): Promise<T>;
82
- declare const _default: {
83
- RateLimiter: typeof RateLimiter;
84
- TTLCache: typeof TTLCache;
85
- ConcurrencyPool: typeof ConcurrencyPool;
86
- throttle: typeof throttle;
87
- debounce: typeof debounce;
88
- memoize: typeof memoize;
89
- parallelMap: typeof parallelMap;
90
- sleep: typeof sleep;
91
- withTimeout: typeof withTimeout;
92
- retry: typeof retry;
93
- };
94
- export default _default;
95
- //# sourceMappingURL=asyncUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncUtils.d.ts","sourceRoot":"","sources":["../../src/utils/asyncUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE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