erosolar-cli 1.7.194 → 1.7.195

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 (1089) hide show
  1. package/package.json +1 -1
  2. package/dist/StringUtils.d.ts +0 -8
  3. package/dist/StringUtils.d.ts.map +0 -1
  4. package/dist/StringUtils.js +0 -11
  5. package/dist/StringUtils.js.map +0 -1
  6. package/dist/adapters/browser/index.d.ts +0 -12
  7. package/dist/adapters/browser/index.d.ts.map +0 -1
  8. package/dist/adapters/browser/index.js +0 -11
  9. package/dist/adapters/browser/index.js.map +0 -1
  10. package/dist/adapters/node/index.d.ts +0 -17
  11. package/dist/adapters/node/index.d.ts.map +0 -1
  12. package/dist/adapters/node/index.js +0 -35
  13. package/dist/adapters/node/index.js.map +0 -1
  14. package/dist/adapters/remote/index.d.ts +0 -13
  15. package/dist/adapters/remote/index.d.ts.map +0 -1
  16. package/dist/adapters/remote/index.js +0 -20
  17. package/dist/adapters/remote/index.js.map +0 -1
  18. package/dist/adapters/types.d.ts +0 -14
  19. package/dist/adapters/types.d.ts.map +0 -1
  20. package/dist/adapters/types.js +0 -2
  21. package/dist/adapters/types.js.map +0 -1
  22. package/dist/alpha-zero/agentWrapper.d.ts +0 -84
  23. package/dist/alpha-zero/agentWrapper.d.ts.map +0 -1
  24. package/dist/alpha-zero/agentWrapper.js +0 -171
  25. package/dist/alpha-zero/agentWrapper.js.map +0 -1
  26. package/dist/alpha-zero/codeEvaluator.d.ts +0 -25
  27. package/dist/alpha-zero/codeEvaluator.d.ts.map +0 -1
  28. package/dist/alpha-zero/codeEvaluator.js +0 -273
  29. package/dist/alpha-zero/codeEvaluator.js.map +0 -1
  30. package/dist/alpha-zero/competitiveRunner.d.ts +0 -66
  31. package/dist/alpha-zero/competitiveRunner.d.ts.map +0 -1
  32. package/dist/alpha-zero/competitiveRunner.js +0 -224
  33. package/dist/alpha-zero/competitiveRunner.js.map +0 -1
  34. package/dist/alpha-zero/index.d.ts +0 -67
  35. package/dist/alpha-zero/index.d.ts.map +0 -1
  36. package/dist/alpha-zero/index.js +0 -99
  37. package/dist/alpha-zero/index.js.map +0 -1
  38. package/dist/alpha-zero/introspection.d.ts +0 -128
  39. package/dist/alpha-zero/introspection.d.ts.map +0 -1
  40. package/dist/alpha-zero/introspection.js +0 -300
  41. package/dist/alpha-zero/introspection.js.map +0 -1
  42. package/dist/alpha-zero/metricsTracker.d.ts +0 -71
  43. package/dist/alpha-zero/metricsTracker.d.ts.map +0 -1
  44. package/dist/alpha-zero/metricsTracker.js +0 -209
  45. package/dist/alpha-zero/metricsTracker.js.map +0 -1
  46. package/dist/alpha-zero/security/core.d.ts +0 -125
  47. package/dist/alpha-zero/security/core.d.ts.map +0 -1
  48. package/dist/alpha-zero/security/core.js +0 -271
  49. package/dist/alpha-zero/security/core.js.map +0 -1
  50. package/dist/alpha-zero/security/google.d.ts +0 -125
  51. package/dist/alpha-zero/security/google.d.ts.map +0 -1
  52. package/dist/alpha-zero/security/google.js +0 -311
  53. package/dist/alpha-zero/security/google.js.map +0 -1
  54. package/dist/alpha-zero/security/googleLoader.d.ts +0 -17
  55. package/dist/alpha-zero/security/googleLoader.d.ts.map +0 -1
  56. package/dist/alpha-zero/security/googleLoader.js +0 -41
  57. package/dist/alpha-zero/security/googleLoader.js.map +0 -1
  58. package/dist/alpha-zero/security/index.d.ts +0 -29
  59. package/dist/alpha-zero/security/index.d.ts.map +0 -1
  60. package/dist/alpha-zero/security/index.js +0 -32
  61. package/dist/alpha-zero/security/index.js.map +0 -1
  62. package/dist/alpha-zero/security/simulation.d.ts +0 -124
  63. package/dist/alpha-zero/security/simulation.d.ts.map +0 -1
  64. package/dist/alpha-zero/security/simulation.js +0 -277
  65. package/dist/alpha-zero/security/simulation.js.map +0 -1
  66. package/dist/alpha-zero/selfModification.d.ts +0 -109
  67. package/dist/alpha-zero/selfModification.d.ts.map +0 -1
  68. package/dist/alpha-zero/selfModification.js +0 -233
  69. package/dist/alpha-zero/selfModification.js.map +0 -1
  70. package/dist/alpha-zero/types.d.ts +0 -170
  71. package/dist/alpha-zero/types.d.ts.map +0 -1
  72. package/dist/alpha-zero/types.js +0 -31
  73. package/dist/alpha-zero/types.js.map +0 -1
  74. package/dist/bin/erosolar.d.ts +0 -9
  75. package/dist/bin/erosolar.d.ts.map +0 -1
  76. package/dist/bin/erosolar.js +0 -88
  77. package/dist/bin/erosolar.js.map +0 -1
  78. package/dist/bin/selfTest.d.ts +0 -14
  79. package/dist/bin/selfTest.d.ts.map +0 -1
  80. package/dist/bin/selfTest.js +0 -304
  81. package/dist/bin/selfTest.js.map +0 -1
  82. package/dist/browser/BrowserSessionManager.d.ts +0 -307
  83. package/dist/browser/BrowserSessionManager.d.ts.map +0 -1
  84. package/dist/browser/BrowserSessionManager.js +0 -713
  85. package/dist/browser/BrowserSessionManager.js.map +0 -1
  86. package/dist/capabilities/advancedTestGenerationCapability.d.ts +0 -17
  87. package/dist/capabilities/advancedTestGenerationCapability.d.ts.map +0 -1
  88. package/dist/capabilities/advancedTestGenerationCapability.js +0 -28
  89. package/dist/capabilities/advancedTestGenerationCapability.js.map +0 -1
  90. package/dist/capabilities/agentSpawningCapability.d.ts +0 -6
  91. package/dist/capabilities/agentSpawningCapability.d.ts.map +0 -1
  92. package/dist/capabilities/agentSpawningCapability.js +0 -115
  93. package/dist/capabilities/agentSpawningCapability.js.map +0 -1
  94. package/dist/capabilities/askUserCapability.d.ts +0 -21
  95. package/dist/capabilities/askUserCapability.d.ts.map +0 -1
  96. package/dist/capabilities/askUserCapability.js +0 -155
  97. package/dist/capabilities/askUserCapability.js.map +0 -1
  98. package/dist/capabilities/bashCapability.d.ts +0 -13
  99. package/dist/capabilities/bashCapability.d.ts.map +0 -1
  100. package/dist/capabilities/bashCapability.js +0 -24
  101. package/dist/capabilities/bashCapability.js.map +0 -1
  102. package/dist/capabilities/browserAutomationCapability.d.ts +0 -37
  103. package/dist/capabilities/browserAutomationCapability.d.ts.map +0 -1
  104. package/dist/capabilities/browserAutomationCapability.js +0 -49
  105. package/dist/capabilities/browserAutomationCapability.js.map +0 -1
  106. package/dist/capabilities/cloudCapability.d.ts +0 -13
  107. package/dist/capabilities/cloudCapability.d.ts.map +0 -1
  108. package/dist/capabilities/cloudCapability.js +0 -38
  109. package/dist/capabilities/cloudCapability.js.map +0 -1
  110. package/dist/capabilities/codeAnalysisCapability.d.ts +0 -13
  111. package/dist/capabilities/codeAnalysisCapability.d.ts.map +0 -1
  112. package/dist/capabilities/codeAnalysisCapability.js +0 -24
  113. package/dist/capabilities/codeAnalysisCapability.js.map +0 -1
  114. package/dist/capabilities/codeGenerationCapability.d.ts +0 -13
  115. package/dist/capabilities/codeGenerationCapability.d.ts.map +0 -1
  116. package/dist/capabilities/codeGenerationCapability.js +0 -25
  117. package/dist/capabilities/codeGenerationCapability.js.map +0 -1
  118. package/dist/capabilities/codeQualityCapability.d.ts +0 -13
  119. package/dist/capabilities/codeQualityCapability.d.ts.map +0 -1
  120. package/dist/capabilities/codeQualityCapability.js +0 -25
  121. package/dist/capabilities/codeQualityCapability.js.map +0 -1
  122. package/dist/capabilities/dependencySecurityCapability.d.ts +0 -13
  123. package/dist/capabilities/dependencySecurityCapability.d.ts.map +0 -1
  124. package/dist/capabilities/dependencySecurityCapability.js +0 -24
  125. package/dist/capabilities/dependencySecurityCapability.js.map +0 -1
  126. package/dist/capabilities/devCapability.d.ts +0 -13
  127. package/dist/capabilities/devCapability.d.ts.map +0 -1
  128. package/dist/capabilities/devCapability.js +0 -24
  129. package/dist/capabilities/devCapability.js.map +0 -1
  130. package/dist/capabilities/editCapability.d.ts +0 -17
  131. package/dist/capabilities/editCapability.d.ts.map +0 -1
  132. package/dist/capabilities/editCapability.js +0 -27
  133. package/dist/capabilities/editCapability.js.map +0 -1
  134. package/dist/capabilities/emailCapability.d.ts +0 -12
  135. package/dist/capabilities/emailCapability.d.ts.map +0 -1
  136. package/dist/capabilities/emailCapability.js +0 -22
  137. package/dist/capabilities/emailCapability.js.map +0 -1
  138. package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts +0 -17
  139. package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts.map +0 -1
  140. package/dist/capabilities/enhancedCodeIntelligenceCapability.js +0 -28
  141. package/dist/capabilities/enhancedCodeIntelligenceCapability.js.map +0 -1
  142. package/dist/capabilities/enhancedDevWorkflowCapability.d.ts +0 -17
  143. package/dist/capabilities/enhancedDevWorkflowCapability.d.ts.map +0 -1
  144. package/dist/capabilities/enhancedDevWorkflowCapability.js +0 -28
  145. package/dist/capabilities/enhancedDevWorkflowCapability.js.map +0 -1
  146. package/dist/capabilities/enhancedGitCapability.d.ts +0 -7
  147. package/dist/capabilities/enhancedGitCapability.d.ts.map +0 -1
  148. package/dist/capabilities/enhancedGitCapability.js +0 -220
  149. package/dist/capabilities/enhancedGitCapability.js.map +0 -1
  150. package/dist/capabilities/filesystemCapability.d.ts +0 -13
  151. package/dist/capabilities/filesystemCapability.d.ts.map +0 -1
  152. package/dist/capabilities/filesystemCapability.js +0 -24
  153. package/dist/capabilities/filesystemCapability.js.map +0 -1
  154. package/dist/capabilities/frontendTestingCapability.d.ts +0 -13
  155. package/dist/capabilities/frontendTestingCapability.d.ts.map +0 -1
  156. package/dist/capabilities/frontendTestingCapability.js +0 -28
  157. package/dist/capabilities/frontendTestingCapability.js.map +0 -1
  158. package/dist/capabilities/globCapability.d.ts +0 -17
  159. package/dist/capabilities/globCapability.d.ts.map +0 -1
  160. package/dist/capabilities/globCapability.js +0 -27
  161. package/dist/capabilities/globCapability.js.map +0 -1
  162. package/dist/capabilities/index.d.ts +0 -25
  163. package/dist/capabilities/index.d.ts.map +0 -1
  164. package/dist/capabilities/index.js +0 -25
  165. package/dist/capabilities/index.js.map +0 -1
  166. package/dist/capabilities/interactionCapability.d.ts +0 -12
  167. package/dist/capabilities/interactionCapability.d.ts.map +0 -1
  168. package/dist/capabilities/interactionCapability.js +0 -22
  169. package/dist/capabilities/interactionCapability.js.map +0 -1
  170. package/dist/capabilities/learnCapability.d.ts +0 -13
  171. package/dist/capabilities/learnCapability.d.ts.map +0 -1
  172. package/dist/capabilities/learnCapability.js +0 -24
  173. package/dist/capabilities/learnCapability.js.map +0 -1
  174. package/dist/capabilities/mcpCapability.d.ts +0 -6
  175. package/dist/capabilities/mcpCapability.d.ts.map +0 -1
  176. package/dist/capabilities/mcpCapability.js +0 -19
  177. package/dist/capabilities/mcpCapability.js.map +0 -1
  178. package/dist/capabilities/notebookCapability.d.ts +0 -17
  179. package/dist/capabilities/notebookCapability.d.ts.map +0 -1
  180. package/dist/capabilities/notebookCapability.js +0 -27
  181. package/dist/capabilities/notebookCapability.js.map +0 -1
  182. package/dist/capabilities/performanceMonitoringCapability.d.ts +0 -108
  183. package/dist/capabilities/performanceMonitoringCapability.d.ts.map +0 -1
  184. package/dist/capabilities/performanceMonitoringCapability.js +0 -176
  185. package/dist/capabilities/performanceMonitoringCapability.js.map +0 -1
  186. package/dist/capabilities/planningCapability.d.ts +0 -16
  187. package/dist/capabilities/planningCapability.d.ts.map +0 -1
  188. package/dist/capabilities/planningCapability.js +0 -26
  189. package/dist/capabilities/planningCapability.js.map +0 -1
  190. package/dist/capabilities/refactoringCapability.d.ts +0 -13
  191. package/dist/capabilities/refactoringCapability.d.ts.map +0 -1
  192. package/dist/capabilities/refactoringCapability.js +0 -25
  193. package/dist/capabilities/refactoringCapability.js.map +0 -1
  194. package/dist/capabilities/repoChecksCapability.d.ts +0 -10
  195. package/dist/capabilities/repoChecksCapability.d.ts.map +0 -1
  196. package/dist/capabilities/repoChecksCapability.js +0 -24
  197. package/dist/capabilities/repoChecksCapability.js.map +0 -1
  198. package/dist/capabilities/searchCapability.d.ts +0 -13
  199. package/dist/capabilities/searchCapability.d.ts.map +0 -1
  200. package/dist/capabilities/searchCapability.js +0 -24
  201. package/dist/capabilities/searchCapability.js.map +0 -1
  202. package/dist/capabilities/skillCapability.d.ts +0 -3
  203. package/dist/capabilities/skillCapability.d.ts.map +0 -1
  204. package/dist/capabilities/skillCapability.js +0 -77
  205. package/dist/capabilities/skillCapability.js.map +0 -1
  206. package/dist/capabilities/taskManagementCapability.d.ts +0 -12
  207. package/dist/capabilities/taskManagementCapability.d.ts.map +0 -1
  208. package/dist/capabilities/taskManagementCapability.js +0 -22
  209. package/dist/capabilities/taskManagementCapability.js.map +0 -1
  210. package/dist/capabilities/testingCapability.d.ts +0 -13
  211. package/dist/capabilities/testingCapability.d.ts.map +0 -1
  212. package/dist/capabilities/testingCapability.js +0 -25
  213. package/dist/capabilities/testingCapability.js.map +0 -1
  214. package/dist/capabilities/todoCapability.d.ts +0 -19
  215. package/dist/capabilities/todoCapability.d.ts.map +0 -1
  216. package/dist/capabilities/todoCapability.js +0 -169
  217. package/dist/capabilities/todoCapability.js.map +0 -1
  218. package/dist/capabilities/toolManifest.d.ts +0 -3
  219. package/dist/capabilities/toolManifest.d.ts.map +0 -1
  220. package/dist/capabilities/toolManifest.js +0 -160
  221. package/dist/capabilities/toolManifest.js.map +0 -1
  222. package/dist/capabilities/toolRegistry.d.ts +0 -22
  223. package/dist/capabilities/toolRegistry.d.ts.map +0 -1
  224. package/dist/capabilities/toolRegistry.js +0 -115
  225. package/dist/capabilities/toolRegistry.js.map +0 -1
  226. package/dist/capabilities/validationCapability.d.ts +0 -13
  227. package/dist/capabilities/validationCapability.d.ts.map +0 -1
  228. package/dist/capabilities/validationCapability.js +0 -24
  229. package/dist/capabilities/validationCapability.js.map +0 -1
  230. package/dist/capabilities/webCapability.d.ts +0 -12
  231. package/dist/capabilities/webCapability.d.ts.map +0 -1
  232. package/dist/capabilities/webCapability.js +0 -22
  233. package/dist/capabilities/webCapability.js.map +0 -1
  234. package/dist/config.d.ts +0 -25
  235. package/dist/config.d.ts.map +0 -1
  236. package/dist/config.js +0 -140
  237. package/dist/config.js.map +0 -1
  238. package/dist/contracts/v1/agent.d.ts +0 -147
  239. package/dist/contracts/v1/agent.d.ts.map +0 -1
  240. package/dist/contracts/v1/agent.js +0 -8
  241. package/dist/contracts/v1/agent.js.map +0 -1
  242. package/dist/contracts/v1/agentProfileManifest.d.ts +0 -60
  243. package/dist/contracts/v1/agentProfileManifest.d.ts.map +0 -1
  244. package/dist/contracts/v1/agentProfileManifest.js +0 -9
  245. package/dist/contracts/v1/agentProfileManifest.js.map +0 -1
  246. package/dist/contracts/v1/agentRules.d.ts +0 -60
  247. package/dist/contracts/v1/agentRules.d.ts.map +0 -1
  248. package/dist/contracts/v1/agentRules.js +0 -10
  249. package/dist/contracts/v1/agentRules.js.map +0 -1
  250. package/dist/contracts/v1/provider.d.ts +0 -149
  251. package/dist/contracts/v1/provider.d.ts.map +0 -1
  252. package/dist/contracts/v1/provider.js +0 -7
  253. package/dist/contracts/v1/provider.js.map +0 -1
  254. package/dist/contracts/v1/tool.d.ts +0 -136
  255. package/dist/contracts/v1/tool.d.ts.map +0 -1
  256. package/dist/contracts/v1/tool.js +0 -7
  257. package/dist/contracts/v1/tool.js.map +0 -1
  258. package/dist/contracts/v1/toolAccess.d.ts +0 -43
  259. package/dist/contracts/v1/toolAccess.d.ts.map +0 -1
  260. package/dist/contracts/v1/toolAccess.js +0 -9
  261. package/dist/contracts/v1/toolAccess.js.map +0 -1
  262. package/dist/core/LazyLoader.d.ts +0 -129
  263. package/dist/core/LazyLoader.d.ts.map +0 -1
  264. package/dist/core/LazyLoader.js +0 -240
  265. package/dist/core/LazyLoader.js.map +0 -1
  266. package/dist/core/agent.d.ts +0 -144
  267. package/dist/core/agent.d.ts.map +0 -1
  268. package/dist/core/agent.js +0 -780
  269. package/dist/core/agent.js.map +0 -1
  270. package/dist/core/agentProfileManifest.d.ts +0 -3
  271. package/dist/core/agentProfileManifest.d.ts.map +0 -1
  272. package/dist/core/agentProfileManifest.js +0 -188
  273. package/dist/core/agentProfileManifest.js.map +0 -1
  274. package/dist/core/agentProfiles.d.ts +0 -22
  275. package/dist/core/agentProfiles.d.ts.map +0 -1
  276. package/dist/core/agentProfiles.js +0 -35
  277. package/dist/core/agentProfiles.js.map +0 -1
  278. package/dist/core/agentRulebook.d.ts +0 -11
  279. package/dist/core/agentRulebook.d.ts.map +0 -1
  280. package/dist/core/agentRulebook.js +0 -136
  281. package/dist/core/agentRulebook.js.map +0 -1
  282. package/dist/core/agentSchemaLoader.d.ts +0 -131
  283. package/dist/core/agentSchemaLoader.d.ts.map +0 -1
  284. package/dist/core/agentSchemaLoader.js +0 -234
  285. package/dist/core/agentSchemaLoader.js.map +0 -1
  286. package/dist/core/cliTestHarness.d.ts +0 -200
  287. package/dist/core/cliTestHarness.d.ts.map +0 -1
  288. package/dist/core/cliTestHarness.js +0 -549
  289. package/dist/core/cliTestHarness.js.map +0 -1
  290. package/dist/core/contextManager.d.ts +0 -259
  291. package/dist/core/contextManager.d.ts.map +0 -1
  292. package/dist/core/contextManager.js +0 -1057
  293. package/dist/core/contextManager.js.map +0 -1
  294. package/dist/core/contextWindow.d.ts +0 -42
  295. package/dist/core/contextWindow.d.ts.map +0 -1
  296. package/dist/core/contextWindow.js +0 -123
  297. package/dist/core/contextWindow.js.map +0 -1
  298. package/dist/core/customCommands.d.ts +0 -18
  299. package/dist/core/customCommands.d.ts.map +0 -1
  300. package/dist/core/customCommands.js +0 -81
  301. package/dist/core/customCommands.js.map +0 -1
  302. package/dist/core/errors/apiKeyErrors.d.ts +0 -11
  303. package/dist/core/errors/apiKeyErrors.d.ts.map +0 -1
  304. package/dist/core/errors/apiKeyErrors.js +0 -159
  305. package/dist/core/errors/apiKeyErrors.js.map +0 -1
  306. package/dist/core/errors/errorTypes.d.ts +0 -111
  307. package/dist/core/errors/errorTypes.d.ts.map +0 -1
  308. package/dist/core/errors/errorTypes.js +0 -348
  309. package/dist/core/errors/errorTypes.js.map +0 -1
  310. package/dist/core/errors/safetyValidator.d.ts +0 -71
  311. package/dist/core/errors/safetyValidator.d.ts.map +0 -1
  312. package/dist/core/errors/safetyValidator.js +0 -302
  313. package/dist/core/errors/safetyValidator.js.map +0 -1
  314. package/dist/core/errors.d.ts +0 -4
  315. package/dist/core/errors.d.ts.map +0 -1
  316. package/dist/core/errors.js +0 -33
  317. package/dist/core/errors.js.map +0 -1
  318. package/dist/core/isolatedVerifier.d.ts +0 -40
  319. package/dist/core/isolatedVerifier.d.ts.map +0 -1
  320. package/dist/core/isolatedVerifier.js +0 -129
  321. package/dist/core/isolatedVerifier.js.map +0 -1
  322. package/dist/core/modelDiscovery.d.ts +0 -101
  323. package/dist/core/modelDiscovery.d.ts.map +0 -1
  324. package/dist/core/modelDiscovery.js +0 -780
  325. package/dist/core/modelDiscovery.js.map +0 -1
  326. package/dist/core/multilinePasteHandler.d.ts +0 -35
  327. package/dist/core/multilinePasteHandler.d.ts.map +0 -1
  328. package/dist/core/multilinePasteHandler.js +0 -80
  329. package/dist/core/multilinePasteHandler.js.map +0 -1
  330. package/dist/core/performanceMonitor.d.ts +0 -124
  331. package/dist/core/performanceMonitor.d.ts.map +0 -1
  332. package/dist/core/performanceMonitor.js +0 -195
  333. package/dist/core/performanceMonitor.js.map +0 -1
  334. package/dist/core/preferences.d.ts +0 -31
  335. package/dist/core/preferences.d.ts.map +0 -1
  336. package/dist/core/preferences.js +0 -232
  337. package/dist/core/preferences.js.map +0 -1
  338. package/dist/core/responseVerifier.d.ts +0 -98
  339. package/dist/core/responseVerifier.d.ts.map +0 -1
  340. package/dist/core/responseVerifier.js +0 -509
  341. package/dist/core/responseVerifier.js.map +0 -1
  342. package/dist/core/resultVerification.d.ts +0 -141
  343. package/dist/core/resultVerification.d.ts.map +0 -1
  344. package/dist/core/resultVerification.js +0 -482
  345. package/dist/core/resultVerification.js.map +0 -1
  346. package/dist/core/schemaValidator.d.ts +0 -44
  347. package/dist/core/schemaValidator.d.ts.map +0 -1
  348. package/dist/core/schemaValidator.js +0 -155
  349. package/dist/core/schemaValidator.js.map +0 -1
  350. package/dist/core/secretStore.d.ts +0 -47
  351. package/dist/core/secretStore.d.ts.map +0 -1
  352. package/dist/core/secretStore.js +0 -364
  353. package/dist/core/secretStore.js.map +0 -1
  354. package/dist/core/sessionStore.d.ts +0 -33
  355. package/dist/core/sessionStore.d.ts.map +0 -1
  356. package/dist/core/sessionStore.js +0 -188
  357. package/dist/core/sessionStore.js.map +0 -1
  358. package/dist/core/testUtils.d.ts +0 -121
  359. package/dist/core/testUtils.d.ts.map +0 -1
  360. package/dist/core/testUtils.js +0 -235
  361. package/dist/core/testUtils.js.map +0 -1
  362. package/dist/core/toolPreconditions.d.ts +0 -41
  363. package/dist/core/toolPreconditions.d.ts.map +0 -1
  364. package/dist/core/toolPreconditions.js +0 -319
  365. package/dist/core/toolPreconditions.js.map +0 -1
  366. package/dist/core/toolRuntime.d.ts +0 -137
  367. package/dist/core/toolRuntime.d.ts.map +0 -1
  368. package/dist/core/toolRuntime.js +0 -375
  369. package/dist/core/toolRuntime.js.map +0 -1
  370. package/dist/core/types.d.ts +0 -306
  371. package/dist/core/types.d.ts.map +0 -1
  372. package/dist/core/types.js +0 -76
  373. package/dist/core/types.js.map +0 -1
  374. package/dist/core/unified/errors.d.ts +0 -189
  375. package/dist/core/unified/errors.d.ts.map +0 -1
  376. package/dist/core/unified/errors.js +0 -497
  377. package/dist/core/unified/errors.js.map +0 -1
  378. package/dist/core/unified/index.d.ts +0 -19
  379. package/dist/core/unified/index.d.ts.map +0 -1
  380. package/dist/core/unified/index.js +0 -68
  381. package/dist/core/unified/index.js.map +0 -1
  382. package/dist/core/unified/schema.d.ts +0 -101
  383. package/dist/core/unified/schema.d.ts.map +0 -1
  384. package/dist/core/unified/schema.js +0 -350
  385. package/dist/core/unified/schema.js.map +0 -1
  386. package/dist/core/unified/toolRuntime.d.ts +0 -179
  387. package/dist/core/unified/toolRuntime.d.ts.map +0 -1
  388. package/dist/core/unified/toolRuntime.js +0 -517
  389. package/dist/core/unified/toolRuntime.js.map +0 -1
  390. package/dist/core/unified/tools.d.ts +0 -127
  391. package/dist/core/unified/tools.d.ts.map +0 -1
  392. package/dist/core/unified/tools.js +0 -1333
  393. package/dist/core/unified/tools.js.map +0 -1
  394. package/dist/core/unified/types.d.ts +0 -352
  395. package/dist/core/unified/types.d.ts.map +0 -1
  396. package/dist/core/unified/types.js +0 -12
  397. package/dist/core/unified/types.js.map +0 -1
  398. package/dist/core/unified/version.d.ts +0 -209
  399. package/dist/core/unified/version.d.ts.map +0 -1
  400. package/dist/core/unified/version.js +0 -454
  401. package/dist/core/unified/version.js.map +0 -1
  402. package/dist/core/validationRunner.d.ts +0 -93
  403. package/dist/core/validationRunner.d.ts.map +0 -1
  404. package/dist/core/validationRunner.js +0 -740
  405. package/dist/core/validationRunner.js.map +0 -1
  406. package/dist/headless/headlessApp.d.ts +0 -5
  407. package/dist/headless/headlessApp.d.ts.map +0 -1
  408. package/dist/headless/headlessApp.js +0 -189
  409. package/dist/headless/headlessApp.js.map +0 -1
  410. package/dist/intelligence/codeIntelligence.d.ts +0 -84
  411. package/dist/intelligence/codeIntelligence.d.ts.map +0 -1
  412. package/dist/intelligence/codeIntelligence.js +0 -493
  413. package/dist/intelligence/codeIntelligence.js.map +0 -1
  414. package/dist/intelligence/docGenerator.d.ts +0 -86
  415. package/dist/intelligence/docGenerator.d.ts.map +0 -1
  416. package/dist/intelligence/docGenerator.js +0 -564
  417. package/dist/intelligence/docGenerator.js.map +0 -1
  418. package/dist/intelligence/index.d.ts +0 -51
  419. package/dist/intelligence/index.d.ts.map +0 -1
  420. package/dist/intelligence/index.js +0 -253
  421. package/dist/intelligence/index.js.map +0 -1
  422. package/dist/intelligence/refactoring.d.ts +0 -50
  423. package/dist/intelligence/refactoring.d.ts.map +0 -1
  424. package/dist/intelligence/refactoring.js +0 -354
  425. package/dist/intelligence/refactoring.js.map +0 -1
  426. package/dist/intelligence/testGenerator.d.ts +0 -74
  427. package/dist/intelligence/testGenerator.d.ts.map +0 -1
  428. package/dist/intelligence/testGenerator.js +0 -483
  429. package/dist/intelligence/testGenerator.js.map +0 -1
  430. package/dist/mcp/config.d.ts +0 -8
  431. package/dist/mcp/config.d.ts.map +0 -1
  432. package/dist/mcp/config.js +0 -252
  433. package/dist/mcp/config.js.map +0 -1
  434. package/dist/mcp/sseClient.d.ts +0 -34
  435. package/dist/mcp/sseClient.d.ts.map +0 -1
  436. package/dist/mcp/sseClient.js +0 -299
  437. package/dist/mcp/sseClient.js.map +0 -1
  438. package/dist/mcp/stdioClient.d.ts +0 -24
  439. package/dist/mcp/stdioClient.d.ts.map +0 -1
  440. package/dist/mcp/stdioClient.js +0 -179
  441. package/dist/mcp/stdioClient.js.map +0 -1
  442. package/dist/mcp/toolBridge.d.ts +0 -12
  443. package/dist/mcp/toolBridge.d.ts.map +0 -1
  444. package/dist/mcp/toolBridge.js +0 -117
  445. package/dist/mcp/toolBridge.js.map +0 -1
  446. package/dist/mcp/types.d.ts +0 -60
  447. package/dist/mcp/types.d.ts.map +0 -1
  448. package/dist/mcp/types.js +0 -2
  449. package/dist/mcp/types.js.map +0 -1
  450. package/dist/plugins/index.d.ts +0 -49
  451. package/dist/plugins/index.d.ts.map +0 -1
  452. package/dist/plugins/index.js +0 -114
  453. package/dist/plugins/index.js.map +0 -1
  454. package/dist/plugins/providers/anthropic/index.d.ts +0 -11
  455. package/dist/plugins/providers/anthropic/index.d.ts.map +0 -1
  456. package/dist/plugins/providers/anthropic/index.js +0 -38
  457. package/dist/plugins/providers/anthropic/index.js.map +0 -1
  458. package/dist/plugins/providers/deepseek/index.d.ts +0 -11
  459. package/dist/plugins/providers/deepseek/index.d.ts.map +0 -1
  460. package/dist/plugins/providers/deepseek/index.js +0 -52
  461. package/dist/plugins/providers/deepseek/index.js.map +0 -1
  462. package/dist/plugins/providers/google/index.d.ts +0 -11
  463. package/dist/plugins/providers/google/index.d.ts.map +0 -1
  464. package/dist/plugins/providers/google/index.js +0 -40
  465. package/dist/plugins/providers/google/index.js.map +0 -1
  466. package/dist/plugins/providers/index.d.ts +0 -2
  467. package/dist/plugins/providers/index.d.ts.map +0 -1
  468. package/dist/plugins/providers/index.js +0 -20
  469. package/dist/plugins/providers/index.js.map +0 -1
  470. package/dist/plugins/providers/ollama/index.d.ts +0 -21
  471. package/dist/plugins/providers/ollama/index.d.ts.map +0 -1
  472. package/dist/plugins/providers/ollama/index.js +0 -69
  473. package/dist/plugins/providers/ollama/index.js.map +0 -1
  474. package/dist/plugins/providers/openai/index.d.ts +0 -12
  475. package/dist/plugins/providers/openai/index.d.ts.map +0 -1
  476. package/dist/plugins/providers/openai/index.js +0 -39
  477. package/dist/plugins/providers/openai/index.js.map +0 -1
  478. package/dist/plugins/providers/xai/index.d.ts +0 -11
  479. package/dist/plugins/providers/xai/index.d.ts.map +0 -1
  480. package/dist/plugins/providers/xai/index.js +0 -39
  481. package/dist/plugins/providers/xai/index.js.map +0 -1
  482. package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts +0 -3
  483. package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts.map +0 -1
  484. package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js +0 -9
  485. package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js.map +0 -1
  486. package/dist/plugins/tools/bash/localBashPlugin.d.ts +0 -3
  487. package/dist/plugins/tools/bash/localBashPlugin.d.ts.map +0 -1
  488. package/dist/plugins/tools/bash/localBashPlugin.js +0 -14
  489. package/dist/plugins/tools/bash/localBashPlugin.js.map +0 -1
  490. package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts +0 -14
  491. package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts.map +0 -1
  492. package/dist/plugins/tools/browser/browserAutomationPlugin.js +0 -26
  493. package/dist/plugins/tools/browser/browserAutomationPlugin.js.map +0 -1
  494. package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts +0 -3
  495. package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts.map +0 -1
  496. package/dist/plugins/tools/checks/localRepoChecksPlugin.js +0 -14
  497. package/dist/plugins/tools/checks/localRepoChecksPlugin.js.map +0 -1
  498. package/dist/plugins/tools/cloud/cloudPlugin.d.ts +0 -3
  499. package/dist/plugins/tools/cloud/cloudPlugin.d.ts.map +0 -1
  500. package/dist/plugins/tools/cloud/cloudPlugin.js +0 -14
  501. package/dist/plugins/tools/cloud/cloudPlugin.js.map +0 -1
  502. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts +0 -3
  503. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts.map +0 -1
  504. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +0 -14
  505. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js.map +0 -1
  506. package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts +0 -3
  507. package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts.map +0 -1
  508. package/dist/plugins/tools/codeQuality/codeQualityPlugin.js +0 -14
  509. package/dist/plugins/tools/codeQuality/codeQualityPlugin.js.map +0 -1
  510. package/dist/plugins/tools/dependency/dependencyPlugin.d.ts +0 -3
  511. package/dist/plugins/tools/dependency/dependencyPlugin.d.ts.map +0 -1
  512. package/dist/plugins/tools/dependency/dependencyPlugin.js +0 -12
  513. package/dist/plugins/tools/dependency/dependencyPlugin.js.map +0 -1
  514. package/dist/plugins/tools/development/devPlugin.d.ts +0 -3
  515. package/dist/plugins/tools/development/devPlugin.d.ts.map +0 -1
  516. package/dist/plugins/tools/development/devPlugin.js +0 -14
  517. package/dist/plugins/tools/development/devPlugin.js.map +0 -1
  518. package/dist/plugins/tools/edit/editPlugin.d.ts +0 -9
  519. package/dist/plugins/tools/edit/editPlugin.d.ts.map +0 -1
  520. package/dist/plugins/tools/edit/editPlugin.js +0 -15
  521. package/dist/plugins/tools/edit/editPlugin.js.map +0 -1
  522. package/dist/plugins/tools/email/emailPlugin.d.ts +0 -3
  523. package/dist/plugins/tools/email/emailPlugin.d.ts.map +0 -1
  524. package/dist/plugins/tools/email/emailPlugin.js +0 -12
  525. package/dist/plugins/tools/email/emailPlugin.js.map +0 -1
  526. package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts +0 -3
  527. package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts.map +0 -1
  528. package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js +0 -9
  529. package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js.map +0 -1
  530. package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts +0 -3
  531. package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts.map +0 -1
  532. package/dist/plugins/tools/filesystem/localFilesystemPlugin.js +0 -14
  533. package/dist/plugins/tools/filesystem/localFilesystemPlugin.js.map +0 -1
  534. package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts +0 -3
  535. package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts.map +0 -1
  536. package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js +0 -14
  537. package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js.map +0 -1
  538. package/dist/plugins/tools/glob/globPlugin.d.ts +0 -9
  539. package/dist/plugins/tools/glob/globPlugin.d.ts.map +0 -1
  540. package/dist/plugins/tools/glob/globPlugin.js +0 -15
  541. package/dist/plugins/tools/glob/globPlugin.js.map +0 -1
  542. package/dist/plugins/tools/index.d.ts +0 -3
  543. package/dist/plugins/tools/index.d.ts.map +0 -1
  544. package/dist/plugins/tools/index.js +0 -3
  545. package/dist/plugins/tools/index.js.map +0 -1
  546. package/dist/plugins/tools/interaction/interactionPlugin.d.ts +0 -3
  547. package/dist/plugins/tools/interaction/interactionPlugin.d.ts.map +0 -1
  548. package/dist/plugins/tools/interaction/interactionPlugin.js +0 -12
  549. package/dist/plugins/tools/interaction/interactionPlugin.js.map +0 -1
  550. package/dist/plugins/tools/learn/learnPlugin.d.ts +0 -3
  551. package/dist/plugins/tools/learn/learnPlugin.d.ts.map +0 -1
  552. package/dist/plugins/tools/learn/learnPlugin.js +0 -14
  553. package/dist/plugins/tools/learn/learnPlugin.js.map +0 -1
  554. package/dist/plugins/tools/mcp/mcpPlugin.d.ts +0 -3
  555. package/dist/plugins/tools/mcp/mcpPlugin.d.ts.map +0 -1
  556. package/dist/plugins/tools/mcp/mcpPlugin.js +0 -9
  557. package/dist/plugins/tools/mcp/mcpPlugin.js.map +0 -1
  558. package/dist/plugins/tools/nodeDefaults.d.ts +0 -2
  559. package/dist/plugins/tools/nodeDefaults.d.ts.map +0 -1
  560. package/dist/plugins/tools/nodeDefaults.js +0 -63
  561. package/dist/plugins/tools/nodeDefaults.js.map +0 -1
  562. package/dist/plugins/tools/notebook/notebookPlugin.d.ts +0 -9
  563. package/dist/plugins/tools/notebook/notebookPlugin.d.ts.map +0 -1
  564. package/dist/plugins/tools/notebook/notebookPlugin.js +0 -15
  565. package/dist/plugins/tools/notebook/notebookPlugin.js.map +0 -1
  566. package/dist/plugins/tools/planning/planningPlugin.d.ts +0 -9
  567. package/dist/plugins/tools/planning/planningPlugin.d.ts.map +0 -1
  568. package/dist/plugins/tools/planning/planningPlugin.js +0 -15
  569. package/dist/plugins/tools/planning/planningPlugin.js.map +0 -1
  570. package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts +0 -3
  571. package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts.map +0 -1
  572. package/dist/plugins/tools/refactoring/refactoringPlugin.js +0 -12
  573. package/dist/plugins/tools/refactoring/refactoringPlugin.js.map +0 -1
  574. package/dist/plugins/tools/registry.d.ts +0 -22
  575. package/dist/plugins/tools/registry.d.ts.map +0 -1
  576. package/dist/plugins/tools/registry.js +0 -58
  577. package/dist/plugins/tools/registry.js.map +0 -1
  578. package/dist/plugins/tools/search/localSearchPlugin.d.ts +0 -3
  579. package/dist/plugins/tools/search/localSearchPlugin.d.ts.map +0 -1
  580. package/dist/plugins/tools/search/localSearchPlugin.js +0 -14
  581. package/dist/plugins/tools/search/localSearchPlugin.js.map +0 -1
  582. package/dist/plugins/tools/skills/skillPlugin.d.ts +0 -3
  583. package/dist/plugins/tools/skills/skillPlugin.d.ts.map +0 -1
  584. package/dist/plugins/tools/skills/skillPlugin.js +0 -9
  585. package/dist/plugins/tools/skills/skillPlugin.js.map +0 -1
  586. package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts +0 -3
  587. package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts.map +0 -1
  588. package/dist/plugins/tools/taskManagement/taskManagementPlugin.js +0 -12
  589. package/dist/plugins/tools/taskManagement/taskManagementPlugin.js.map +0 -1
  590. package/dist/plugins/tools/testing/testingPlugin.d.ts +0 -3
  591. package/dist/plugins/tools/testing/testingPlugin.d.ts.map +0 -1
  592. package/dist/plugins/tools/testing/testingPlugin.js +0 -12
  593. package/dist/plugins/tools/testing/testingPlugin.js.map +0 -1
  594. package/dist/plugins/tools/validation/validationPlugin.d.ts +0 -3
  595. package/dist/plugins/tools/validation/validationPlugin.d.ts.map +0 -1
  596. package/dist/plugins/tools/validation/validationPlugin.js +0 -14
  597. package/dist/plugins/tools/validation/validationPlugin.js.map +0 -1
  598. package/dist/plugins/tools/web/webPlugin.d.ts +0 -3
  599. package/dist/plugins/tools/web/webPlugin.d.ts.map +0 -1
  600. package/dist/plugins/tools/web/webPlugin.js +0 -12
  601. package/dist/plugins/tools/web/webPlugin.js.map +0 -1
  602. package/dist/providers/anthropicProvider.d.ts +0 -41
  603. package/dist/providers/anthropicProvider.d.ts.map +0 -1
  604. package/dist/providers/anthropicProvider.js +0 -446
  605. package/dist/providers/anthropicProvider.js.map +0 -1
  606. package/dist/providers/googleProvider.d.ts +0 -36
  607. package/dist/providers/googleProvider.d.ts.map +0 -1
  608. package/dist/providers/googleProvider.js +0 -312
  609. package/dist/providers/googleProvider.js.map +0 -1
  610. package/dist/providers/openaiChatCompletionsProvider.d.ts +0 -43
  611. package/dist/providers/openaiChatCompletionsProvider.d.ts.map +0 -1
  612. package/dist/providers/openaiChatCompletionsProvider.js +0 -468
  613. package/dist/providers/openaiChatCompletionsProvider.js.map +0 -1
  614. package/dist/providers/openaiResponsesProvider.d.ts +0 -38
  615. package/dist/providers/openaiResponsesProvider.d.ts.map +0 -1
  616. package/dist/providers/openaiResponsesProvider.js +0 -364
  617. package/dist/providers/openaiResponsesProvider.js.map +0 -1
  618. package/dist/providers/providerFactory.d.ts +0 -18
  619. package/dist/providers/providerFactory.d.ts.map +0 -1
  620. package/dist/providers/providerFactory.js +0 -25
  621. package/dist/providers/providerFactory.js.map +0 -1
  622. package/dist/providers/resilientProvider.d.ts +0 -94
  623. package/dist/providers/resilientProvider.d.ts.map +0 -1
  624. package/dist/providers/resilientProvider.js +0 -370
  625. package/dist/providers/resilientProvider.js.map +0 -1
  626. package/dist/runtime/agentController.d.ts +0 -65
  627. package/dist/runtime/agentController.d.ts.map +0 -1
  628. package/dist/runtime/agentController.js +0 -353
  629. package/dist/runtime/agentController.js.map +0 -1
  630. package/dist/runtime/agentHost.d.ts +0 -61
  631. package/dist/runtime/agentHost.d.ts.map +0 -1
  632. package/dist/runtime/agentHost.js +0 -156
  633. package/dist/runtime/agentHost.js.map +0 -1
  634. package/dist/runtime/agentSession.d.ts +0 -40
  635. package/dist/runtime/agentSession.d.ts.map +0 -1
  636. package/dist/runtime/agentSession.js +0 -206
  637. package/dist/runtime/agentSession.js.map +0 -1
  638. package/dist/runtime/browser.d.ts +0 -7
  639. package/dist/runtime/browser.d.ts.map +0 -1
  640. package/dist/runtime/browser.js +0 -10
  641. package/dist/runtime/browser.js.map +0 -1
  642. package/dist/runtime/cloud.d.ts +0 -7
  643. package/dist/runtime/cloud.d.ts.map +0 -1
  644. package/dist/runtime/cloud.js +0 -10
  645. package/dist/runtime/cloud.js.map +0 -1
  646. package/dist/runtime/node.d.ts +0 -8
  647. package/dist/runtime/node.d.ts.map +0 -1
  648. package/dist/runtime/node.js +0 -11
  649. package/dist/runtime/node.js.map +0 -1
  650. package/dist/runtime/universal.d.ts +0 -21
  651. package/dist/runtime/universal.d.ts.map +0 -1
  652. package/dist/runtime/universal.js +0 -29
  653. package/dist/runtime/universal.js.map +0 -1
  654. package/dist/security/active-stack-security.d.ts +0 -112
  655. package/dist/security/active-stack-security.d.ts.map +0 -1
  656. package/dist/security/active-stack-security.js +0 -296
  657. package/dist/security/active-stack-security.js.map +0 -1
  658. package/dist/security/advanced-persistence-research.d.ts +0 -92
  659. package/dist/security/advanced-persistence-research.d.ts.map +0 -1
  660. package/dist/security/advanced-persistence-research.js +0 -195
  661. package/dist/security/advanced-persistence-research.js.map +0 -1
  662. package/dist/security/advanced-targeting.d.ts +0 -119
  663. package/dist/security/advanced-targeting.d.ts.map +0 -1
  664. package/dist/security/advanced-targeting.js +0 -233
  665. package/dist/security/advanced-targeting.js.map +0 -1
  666. package/dist/security/assessment/vulnerabilityAssessment.d.ts +0 -104
  667. package/dist/security/assessment/vulnerabilityAssessment.d.ts.map +0 -1
  668. package/dist/security/assessment/vulnerabilityAssessment.js +0 -315
  669. package/dist/security/assessment/vulnerabilityAssessment.js.map +0 -1
  670. package/dist/security/authorization/securityAuthorization.d.ts +0 -88
  671. package/dist/security/authorization/securityAuthorization.d.ts.map +0 -1
  672. package/dist/security/authorization/securityAuthorization.js +0 -172
  673. package/dist/security/authorization/securityAuthorization.js.map +0 -1
  674. package/dist/security/comprehensive-targeting.d.ts +0 -85
  675. package/dist/security/comprehensive-targeting.d.ts.map +0 -1
  676. package/dist/security/comprehensive-targeting.js +0 -438
  677. package/dist/security/comprehensive-targeting.js.map +0 -1
  678. package/dist/security/global-security-integration.d.ts +0 -91
  679. package/dist/security/global-security-integration.d.ts.map +0 -1
  680. package/dist/security/global-security-integration.js +0 -218
  681. package/dist/security/global-security-integration.js.map +0 -1
  682. package/dist/security/index.d.ts +0 -38
  683. package/dist/security/index.d.ts.map +0 -1
  684. package/dist/security/index.js +0 -47
  685. package/dist/security/index.js.map +0 -1
  686. package/dist/security/persistence-analyzer.d.ts +0 -56
  687. package/dist/security/persistence-analyzer.d.ts.map +0 -1
  688. package/dist/security/persistence-analyzer.js +0 -187
  689. package/dist/security/persistence-analyzer.js.map +0 -1
  690. package/dist/security/persistence-cli.d.ts +0 -36
  691. package/dist/security/persistence-cli.d.ts.map +0 -1
  692. package/dist/security/persistence-cli.js +0 -160
  693. package/dist/security/persistence-cli.js.map +0 -1
  694. package/dist/security/persistence-research.d.ts +0 -92
  695. package/dist/security/persistence-research.d.ts.map +0 -1
  696. package/dist/security/persistence-research.js +0 -364
  697. package/dist/security/persistence-research.js.map +0 -1
  698. package/dist/security/research/persistenceResearch.d.ts +0 -97
  699. package/dist/security/research/persistenceResearch.d.ts.map +0 -1
  700. package/dist/security/research/persistenceResearch.js +0 -282
  701. package/dist/security/research/persistenceResearch.js.map +0 -1
  702. package/dist/security/security-integration.d.ts +0 -74
  703. package/dist/security/security-integration.d.ts.map +0 -1
  704. package/dist/security/security-integration.js +0 -137
  705. package/dist/security/security-integration.js.map +0 -1
  706. package/dist/security/security-testing-framework.d.ts +0 -112
  707. package/dist/security/security-testing-framework.d.ts.map +0 -1
  708. package/dist/security/security-testing-framework.js +0 -364
  709. package/dist/security/security-testing-framework.js.map +0 -1
  710. package/dist/security/simulation/attackSimulation.d.ts +0 -93
  711. package/dist/security/simulation/attackSimulation.d.ts.map +0 -1
  712. package/dist/security/simulation/attackSimulation.js +0 -341
  713. package/dist/security/simulation/attackSimulation.js.map +0 -1
  714. package/dist/security/strategic-operations.d.ts +0 -100
  715. package/dist/security/strategic-operations.d.ts.map +0 -1
  716. package/dist/security/strategic-operations.js +0 -276
  717. package/dist/security/strategic-operations.js.map +0 -1
  718. package/dist/security/tool-security-wrapper.d.ts +0 -58
  719. package/dist/security/tool-security-wrapper.d.ts.map +0 -1
  720. package/dist/security/tool-security-wrapper.js +0 -156
  721. package/dist/security/tool-security-wrapper.js.map +0 -1
  722. package/dist/shell/autoExecutor.d.ts +0 -70
  723. package/dist/shell/autoExecutor.d.ts.map +0 -1
  724. package/dist/shell/autoExecutor.js +0 -288
  725. package/dist/shell/autoExecutor.js.map +0 -1
  726. package/dist/shell/bracketedPasteManager.d.ts +0 -128
  727. package/dist/shell/bracketedPasteManager.d.ts.map +0 -1
  728. package/dist/shell/bracketedPasteManager.enhanced.d.ts +0 -2
  729. package/dist/shell/bracketedPasteManager.enhanced.d.ts.map +0 -1
  730. package/dist/shell/bracketedPasteManager.enhanced.js +0 -4
  731. package/dist/shell/bracketedPasteManager.enhanced.js.map +0 -1
  732. package/dist/shell/bracketedPasteManager.js +0 -372
  733. package/dist/shell/bracketedPasteManager.js.map +0 -1
  734. package/dist/shell/chatBox.d.ts +0 -228
  735. package/dist/shell/chatBox.d.ts.map +0 -1
  736. package/dist/shell/chatBox.js +0 -811
  737. package/dist/shell/chatBox.js.map +0 -1
  738. package/dist/shell/claudeCodeStreamHandler.d.ts +0 -145
  739. package/dist/shell/claudeCodeStreamHandler.d.ts.map +0 -1
  740. package/dist/shell/claudeCodeStreamHandler.js +0 -312
  741. package/dist/shell/claudeCodeStreamHandler.js.map +0 -1
  742. package/dist/shell/composableMessage.d.ts +0 -183
  743. package/dist/shell/composableMessage.d.ts.map +0 -1
  744. package/dist/shell/composableMessage.js +0 -420
  745. package/dist/shell/composableMessage.js.map +0 -1
  746. package/dist/shell/fileChangeTracker.d.ts +0 -39
  747. package/dist/shell/fileChangeTracker.d.ts.map +0 -1
  748. package/dist/shell/fileChangeTracker.js +0 -64
  749. package/dist/shell/fileChangeTracker.js.map +0 -1
  750. package/dist/shell/inputQueueManager.d.ts +0 -144
  751. package/dist/shell/inputQueueManager.d.ts.map +0 -1
  752. package/dist/shell/inputQueueManager.js +0 -290
  753. package/dist/shell/inputQueueManager.js.map +0 -1
  754. package/dist/shell/interactiveShell.d.ts +0 -312
  755. package/dist/shell/interactiveShell.d.ts.map +0 -1
  756. package/dist/shell/interactiveShell.js +0 -3271
  757. package/dist/shell/interactiveShell.js.map +0 -1
  758. package/dist/shell/liveStatus.d.ts +0 -29
  759. package/dist/shell/liveStatus.d.ts.map +0 -1
  760. package/dist/shell/liveStatus.js +0 -77
  761. package/dist/shell/liveStatus.js.map +0 -1
  762. package/dist/shell/shellApp.d.ts +0 -19
  763. package/dist/shell/shellApp.d.ts.map +0 -1
  764. package/dist/shell/shellApp.js +0 -364
  765. package/dist/shell/shellApp.js.map +0 -1
  766. package/dist/shell/streamingOutputManager.d.ts +0 -114
  767. package/dist/shell/streamingOutputManager.d.ts.map +0 -1
  768. package/dist/shell/streamingOutputManager.js +0 -213
  769. package/dist/shell/streamingOutputManager.js.map +0 -1
  770. package/dist/shell/systemPrompt.d.ts +0 -3
  771. package/dist/shell/systemPrompt.d.ts.map +0 -1
  772. package/dist/shell/systemPrompt.js +0 -73
  773. package/dist/shell/systemPrompt.js.map +0 -1
  774. package/dist/shell/taskCompletionDetector.d.ts +0 -106
  775. package/dist/shell/taskCompletionDetector.d.ts.map +0 -1
  776. package/dist/shell/taskCompletionDetector.js +0 -402
  777. package/dist/shell/taskCompletionDetector.js.map +0 -1
  778. package/dist/shell/terminalInput.d.ts +0 -221
  779. package/dist/shell/terminalInput.d.ts.map +0 -1
  780. package/dist/shell/terminalInput.js +0 -1082
  781. package/dist/shell/terminalInput.js.map +0 -1
  782. package/dist/shell/terminalInputAdapter.d.ts +0 -117
  783. package/dist/shell/terminalInputAdapter.d.ts.map +0 -1
  784. package/dist/shell/terminalInputAdapter.js +0 -217
  785. package/dist/shell/terminalInputAdapter.js.map +0 -1
  786. package/dist/shell/unifiedChatBox.d.ts +0 -194
  787. package/dist/shell/unifiedChatBox.d.ts.map +0 -1
  788. package/dist/shell/unifiedChatBox.js +0 -585
  789. package/dist/shell/unifiedChatBox.js.map +0 -1
  790. package/dist/shell/updateManager.d.ts +0 -2
  791. package/dist/shell/updateManager.d.ts.map +0 -1
  792. package/dist/shell/updateManager.js +0 -111
  793. package/dist/shell/updateManager.js.map +0 -1
  794. package/dist/skills/skillRepository.d.ts +0 -103
  795. package/dist/skills/skillRepository.d.ts.map +0 -1
  796. package/dist/skills/skillRepository.js +0 -237
  797. package/dist/skills/skillRepository.js.map +0 -1
  798. package/dist/skills/types.d.ts +0 -37
  799. package/dist/skills/types.d.ts.map +0 -1
  800. package/dist/skills/types.js +0 -2
  801. package/dist/skills/types.js.map +0 -1
  802. package/dist/subagents/taskRunner.d.ts +0 -23
  803. package/dist/subagents/taskRunner.d.ts.map +0 -1
  804. package/dist/subagents/taskRunner.js +0 -271
  805. package/dist/subagents/taskRunner.js.map +0 -1
  806. package/dist/tools/advancedTestGenerationTools.d.ts +0 -21
  807. package/dist/tools/advancedTestGenerationTools.d.ts.map +0 -1
  808. package/dist/tools/advancedTestGenerationTools.js +0 -301
  809. package/dist/tools/advancedTestGenerationTools.js.map +0 -1
  810. package/dist/tools/backgroundBashTools.d.ts +0 -21
  811. package/dist/tools/backgroundBashTools.d.ts.map +0 -1
  812. package/dist/tools/backgroundBashTools.js +0 -215
  813. package/dist/tools/backgroundBashTools.js.map +0 -1
  814. package/dist/tools/bashTools.d.ts +0 -8
  815. package/dist/tools/bashTools.d.ts.map +0 -1
  816. package/dist/tools/bashTools.js +0 -227
  817. package/dist/tools/bashTools.js.map +0 -1
  818. package/dist/tools/browserAutomationTools.d.ts +0 -23
  819. package/dist/tools/browserAutomationTools.d.ts.map +0 -1
  820. package/dist/tools/browserAutomationTools.js +0 -916
  821. package/dist/tools/browserAutomationTools.js.map +0 -1
  822. package/dist/tools/cloudTools.d.ts +0 -49
  823. package/dist/tools/cloudTools.d.ts.map +0 -1
  824. package/dist/tools/cloudTools.js +0 -1258
  825. package/dist/tools/cloudTools.js.map +0 -1
  826. package/dist/tools/code-quality-dashboard.d.ts +0 -57
  827. package/dist/tools/code-quality-dashboard.d.ts.map +0 -1
  828. package/dist/tools/code-quality-dashboard.js +0 -218
  829. package/dist/tools/code-quality-dashboard.js.map +0 -1
  830. package/dist/tools/codeAnalysisTools.d.ts +0 -74
  831. package/dist/tools/codeAnalysisTools.d.ts.map +0 -1
  832. package/dist/tools/codeAnalysisTools.js +0 -664
  833. package/dist/tools/codeAnalysisTools.js.map +0 -1
  834. package/dist/tools/codeGenerationTools.d.ts +0 -3
  835. package/dist/tools/codeGenerationTools.d.ts.map +0 -1
  836. package/dist/tools/codeGenerationTools.js +0 -439
  837. package/dist/tools/codeGenerationTools.js.map +0 -1
  838. package/dist/tools/codeQualityTools.d.ts +0 -3
  839. package/dist/tools/codeQualityTools.d.ts.map +0 -1
  840. package/dist/tools/codeQualityTools.js +0 -296
  841. package/dist/tools/codeQualityTools.js.map +0 -1
  842. package/dist/tools/dependencyTools.d.ts +0 -3
  843. package/dist/tools/dependencyTools.d.ts.map +0 -1
  844. package/dist/tools/dependencyTools.js +0 -283
  845. package/dist/tools/dependencyTools.js.map +0 -1
  846. package/dist/tools/devTools.d.ts +0 -10
  847. package/dist/tools/devTools.d.ts.map +0 -1
  848. package/dist/tools/devTools.js +0 -2305
  849. package/dist/tools/devTools.js.map +0 -1
  850. package/dist/tools/diffUtils.d.ts +0 -36
  851. package/dist/tools/diffUtils.d.ts.map +0 -1
  852. package/dist/tools/diffUtils.js +0 -528
  853. package/dist/tools/diffUtils.js.map +0 -1
  854. package/dist/tools/editTools.d.ts +0 -29
  855. package/dist/tools/editTools.d.ts.map +0 -1
  856. package/dist/tools/editTools.js +0 -419
  857. package/dist/tools/editTools.js.map +0 -1
  858. package/dist/tools/emailTools.d.ts +0 -21
  859. package/dist/tools/emailTools.d.ts.map +0 -1
  860. package/dist/tools/emailTools.js +0 -449
  861. package/dist/tools/emailTools.js.map +0 -1
  862. package/dist/tools/enhancedCodeIntelligenceTools.d.ts +0 -27
  863. package/dist/tools/enhancedCodeIntelligenceTools.d.ts.map +0 -1
  864. package/dist/tools/enhancedCodeIntelligenceTools.js +0 -418
  865. package/dist/tools/enhancedCodeIntelligenceTools.js.map +0 -1
  866. package/dist/tools/enhancedDevWorkflowTools.d.ts +0 -15
  867. package/dist/tools/enhancedDevWorkflowTools.d.ts.map +0 -1
  868. package/dist/tools/enhancedDevWorkflowTools.js +0 -303
  869. package/dist/tools/enhancedDevWorkflowTools.js.map +0 -1
  870. package/dist/tools/fileTools.d.ts +0 -3
  871. package/dist/tools/fileTools.d.ts.map +0 -1
  872. package/dist/tools/fileTools.js +0 -252
  873. package/dist/tools/fileTools.js.map +0 -1
  874. package/dist/tools/frontendTestingTools.d.ts +0 -35
  875. package/dist/tools/frontendTestingTools.d.ts.map +0 -1
  876. package/dist/tools/frontendTestingTools.js +0 -1254
  877. package/dist/tools/frontendTestingTools.js.map +0 -1
  878. package/dist/tools/globTools.d.ts +0 -15
  879. package/dist/tools/globTools.d.ts.map +0 -1
  880. package/dist/tools/globTools.js +0 -174
  881. package/dist/tools/globTools.js.map +0 -1
  882. package/dist/tools/grepTools.d.ts +0 -19
  883. package/dist/tools/grepTools.d.ts.map +0 -1
  884. package/dist/tools/grepTools.js +0 -339
  885. package/dist/tools/grepTools.js.map +0 -1
  886. package/dist/tools/interactionTools.d.ts +0 -13
  887. package/dist/tools/interactionTools.d.ts.map +0 -1
  888. package/dist/tools/interactionTools.js +0 -171
  889. package/dist/tools/interactionTools.js.map +0 -1
  890. package/dist/tools/learnTools.d.ts +0 -152
  891. package/dist/tools/learnTools.d.ts.map +0 -1
  892. package/dist/tools/learnTools.js +0 -1819
  893. package/dist/tools/learnTools.js.map +0 -1
  894. package/dist/tools/notebookEditTools.d.ts +0 -15
  895. package/dist/tools/notebookEditTools.d.ts.map +0 -1
  896. package/dist/tools/notebookEditTools.js +0 -197
  897. package/dist/tools/notebookEditTools.js.map +0 -1
  898. package/dist/tools/planningTools.d.ts +0 -11
  899. package/dist/tools/planningTools.d.ts.map +0 -1
  900. package/dist/tools/planningTools.js +0 -47
  901. package/dist/tools/planningTools.js.map +0 -1
  902. package/dist/tools/refactoringTools.d.ts +0 -3
  903. package/dist/tools/refactoringTools.d.ts.map +0 -1
  904. package/dist/tools/refactoringTools.js +0 -294
  905. package/dist/tools/refactoringTools.js.map +0 -1
  906. package/dist/tools/repoChecksTools.d.ts +0 -3
  907. package/dist/tools/repoChecksTools.d.ts.map +0 -1
  908. package/dist/tools/repoChecksTools.js +0 -161
  909. package/dist/tools/repoChecksTools.js.map +0 -1
  910. package/dist/tools/searchTools.d.ts +0 -3
  911. package/dist/tools/searchTools.d.ts.map +0 -1
  912. package/dist/tools/searchTools.js +0 -207
  913. package/dist/tools/searchTools.js.map +0 -1
  914. package/dist/tools/skillTools.d.ts +0 -8
  915. package/dist/tools/skillTools.d.ts.map +0 -1
  916. package/dist/tools/skillTools.js +0 -178
  917. package/dist/tools/skillTools.js.map +0 -1
  918. package/dist/tools/softwareEngineeringTools.d.ts +0 -7
  919. package/dist/tools/softwareEngineeringTools.d.ts.map +0 -1
  920. package/dist/tools/softwareEngineeringTools.js +0 -338
  921. package/dist/tools/softwareEngineeringTools.js.map +0 -1
  922. package/dist/tools/taskManagementTools.d.ts +0 -10
  923. package/dist/tools/taskManagementTools.d.ts.map +0 -1
  924. package/dist/tools/taskManagementTools.js +0 -157
  925. package/dist/tools/taskManagementTools.js.map +0 -1
  926. package/dist/tools/testingTools.d.ts +0 -3
  927. package/dist/tools/testingTools.d.ts.map +0 -1
  928. package/dist/tools/testingTools.js +0 -233
  929. package/dist/tools/testingTools.js.map +0 -1
  930. package/dist/tools/validationTools.d.ts +0 -7
  931. package/dist/tools/validationTools.d.ts.map +0 -1
  932. package/dist/tools/validationTools.js +0 -278
  933. package/dist/tools/validationTools.js.map +0 -1
  934. package/dist/tools/webTools.d.ts +0 -3
  935. package/dist/tools/webTools.d.ts.map +0 -1
  936. package/dist/tools/webTools.js +0 -495
  937. package/dist/tools/webTools.js.map +0 -1
  938. package/dist/ui/FixedInputArea.d.ts +0 -108
  939. package/dist/ui/FixedInputArea.d.ts.map +0 -1
  940. package/dist/ui/FixedInputArea.js +0 -312
  941. package/dist/ui/FixedInputArea.js.map +0 -1
  942. package/dist/ui/ShellUIAdapter.d.ts +0 -141
  943. package/dist/ui/ShellUIAdapter.d.ts.map +0 -1
  944. package/dist/ui/ShellUIAdapter.js +0 -680
  945. package/dist/ui/ShellUIAdapter.js.map +0 -1
  946. package/dist/ui/UnifiedUIController.d.ts +0 -70
  947. package/dist/ui/UnifiedUIController.d.ts.map +0 -1
  948. package/dist/ui/UnifiedUIController.js +0 -190
  949. package/dist/ui/UnifiedUIController.js.map +0 -1
  950. package/dist/ui/advancedTheme.d.ts +0 -246
  951. package/dist/ui/advancedTheme.d.ts.map +0 -1
  952. package/dist/ui/advancedTheme.js +0 -478
  953. package/dist/ui/advancedTheme.js.map +0 -1
  954. package/dist/ui/animation/AnimationScheduler.d.ts +0 -192
  955. package/dist/ui/animation/AnimationScheduler.d.ts.map +0 -1
  956. package/dist/ui/animation/AnimationScheduler.js +0 -432
  957. package/dist/ui/animation/AnimationScheduler.js.map +0 -1
  958. package/dist/ui/codeHighlighter.d.ts +0 -6
  959. package/dist/ui/codeHighlighter.d.ts.map +0 -1
  960. package/dist/ui/codeHighlighter.js +0 -855
  961. package/dist/ui/codeHighlighter.js.map +0 -1
  962. package/dist/ui/collapsibleContent.d.ts +0 -57
  963. package/dist/ui/collapsibleContent.d.ts.map +0 -1
  964. package/dist/ui/collapsibleContent.js +0 -106
  965. package/dist/ui/collapsibleContent.js.map +0 -1
  966. package/dist/ui/designSystem.d.ts +0 -26
  967. package/dist/ui/designSystem.d.ts.map +0 -1
  968. package/dist/ui/designSystem.js +0 -122
  969. package/dist/ui/designSystem.js.map +0 -1
  970. package/dist/ui/diffViewer.d.ts +0 -42
  971. package/dist/ui/diffViewer.d.ts.map +0 -1
  972. package/dist/ui/diffViewer.js +0 -343
  973. package/dist/ui/diffViewer.js.map +0 -1
  974. package/dist/ui/display.d.ts +0 -295
  975. package/dist/ui/display.d.ts.map +0 -1
  976. package/dist/ui/display.js +0 -1469
  977. package/dist/ui/display.js.map +0 -1
  978. package/dist/ui/errorFormatter.d.ts +0 -54
  979. package/dist/ui/errorFormatter.d.ts.map +0 -1
  980. package/dist/ui/errorFormatter.js +0 -251
  981. package/dist/ui/errorFormatter.js.map +0 -1
  982. package/dist/ui/gitDisplay.d.ts +0 -45
  983. package/dist/ui/gitDisplay.d.ts.map +0 -1
  984. package/dist/ui/gitDisplay.js +0 -215
  985. package/dist/ui/gitDisplay.js.map +0 -1
  986. package/dist/ui/gitFormatter.d.ts +0 -29
  987. package/dist/ui/gitFormatter.d.ts.map +0 -1
  988. package/dist/ui/gitFormatter.js +0 -203
  989. package/dist/ui/gitFormatter.js.map +0 -1
  990. package/dist/ui/interrupts/InterruptManager.d.ts +0 -142
  991. package/dist/ui/interrupts/InterruptManager.d.ts.map +0 -1
  992. package/dist/ui/interrupts/InterruptManager.js +0 -439
  993. package/dist/ui/interrupts/InterruptManager.js.map +0 -1
  994. package/dist/ui/keyboardShortcuts.d.ts +0 -49
  995. package/dist/ui/keyboardShortcuts.d.ts.map +0 -1
  996. package/dist/ui/keyboardShortcuts.js +0 -128
  997. package/dist/ui/keyboardShortcuts.js.map +0 -1
  998. package/dist/ui/layout.d.ts +0 -17
  999. package/dist/ui/layout.d.ts.map +0 -1
  1000. package/dist/ui/layout.js +0 -140
  1001. package/dist/ui/layout.js.map +0 -1
  1002. package/dist/ui/logFormatter.d.ts +0 -70
  1003. package/dist/ui/logFormatter.d.ts.map +0 -1
  1004. package/dist/ui/logFormatter.js +0 -323
  1005. package/dist/ui/logFormatter.js.map +0 -1
  1006. package/dist/ui/orchestration/StatusOrchestrator.d.ts +0 -156
  1007. package/dist/ui/orchestration/StatusOrchestrator.d.ts.map +0 -1
  1008. package/dist/ui/orchestration/StatusOrchestrator.js +0 -406
  1009. package/dist/ui/orchestration/StatusOrchestrator.js.map +0 -1
  1010. package/dist/ui/outputMode.d.ts +0 -22
  1011. package/dist/ui/outputMode.d.ts.map +0 -1
  1012. package/dist/ui/outputMode.js +0 -40
  1013. package/dist/ui/outputMode.js.map +0 -1
  1014. package/dist/ui/outputSummarizer.d.ts +0 -52
  1015. package/dist/ui/outputSummarizer.d.ts.map +0 -1
  1016. package/dist/ui/outputSummarizer.js +0 -242
  1017. package/dist/ui/outputSummarizer.js.map +0 -1
  1018. package/dist/ui/persistentPrompt.d.ts +0 -545
  1019. package/dist/ui/persistentPrompt.d.ts.map +0 -1
  1020. package/dist/ui/persistentPrompt.js +0 -1529
  1021. package/dist/ui/persistentPrompt.js.map +0 -1
  1022. package/dist/ui/progressBar.d.ts +0 -51
  1023. package/dist/ui/progressBar.d.ts.map +0 -1
  1024. package/dist/ui/progressBar.js +0 -153
  1025. package/dist/ui/progressBar.js.map +0 -1
  1026. package/dist/ui/progressIndicator.d.ts +0 -69
  1027. package/dist/ui/progressIndicator.d.ts.map +0 -1
  1028. package/dist/ui/progressIndicator.js +0 -145
  1029. package/dist/ui/progressIndicator.js.map +0 -1
  1030. package/dist/ui/richText.d.ts +0 -6
  1031. package/dist/ui/richText.d.ts.map +0 -1
  1032. package/dist/ui/richText.js +0 -391
  1033. package/dist/ui/richText.js.map +0 -1
  1034. package/dist/ui/shortcutsHelp.d.ts +0 -23
  1035. package/dist/ui/shortcutsHelp.d.ts.map +0 -1
  1036. package/dist/ui/shortcutsHelp.js +0 -89
  1037. package/dist/ui/shortcutsHelp.js.map +0 -1
  1038. package/dist/ui/streamingIndicators.d.ts +0 -42
  1039. package/dist/ui/streamingIndicators.d.ts.map +0 -1
  1040. package/dist/ui/streamingIndicators.js +0 -155
  1041. package/dist/ui/streamingIndicators.js.map +0 -1
  1042. package/dist/ui/tableFormatter.d.ts +0 -31
  1043. package/dist/ui/tableFormatter.d.ts.map +0 -1
  1044. package/dist/ui/tableFormatter.js +0 -186
  1045. package/dist/ui/tableFormatter.js.map +0 -1
  1046. package/dist/ui/telemetry/UITelemetry.d.ts +0 -181
  1047. package/dist/ui/telemetry/UITelemetry.d.ts.map +0 -1
  1048. package/dist/ui/telemetry/UITelemetry.js +0 -446
  1049. package/dist/ui/telemetry/UITelemetry.js.map +0 -1
  1050. package/dist/ui/textHighlighter.d.ts +0 -83
  1051. package/dist/ui/textHighlighter.d.ts.map +0 -1
  1052. package/dist/ui/textHighlighter.js +0 -267
  1053. package/dist/ui/textHighlighter.js.map +0 -1
  1054. package/dist/ui/theme.d.ts +0 -103
  1055. package/dist/ui/theme.d.ts.map +0 -1
  1056. package/dist/ui/theme.js +0 -128
  1057. package/dist/ui/theme.js.map +0 -1
  1058. package/dist/ui/thinkingTracker.d.ts +0 -51
  1059. package/dist/ui/thinkingTracker.d.ts.map +0 -1
  1060. package/dist/ui/thinkingTracker.js +0 -115
  1061. package/dist/ui/thinkingTracker.js.map +0 -1
  1062. package/dist/ui/toolDisplay.d.ts +0 -151
  1063. package/dist/ui/toolDisplay.d.ts.map +0 -1
  1064. package/dist/ui/toolDisplay.js +0 -1338
  1065. package/dist/ui/toolDisplay.js.map +0 -1
  1066. package/dist/ui/toolDisplayAdapter.d.ts +0 -66
  1067. package/dist/ui/toolDisplayAdapter.d.ts.map +0 -1
  1068. package/dist/ui/toolDisplayAdapter.js +0 -356
  1069. package/dist/ui/toolDisplayAdapter.js.map +0 -1
  1070. package/dist/ui/treeVisualizer.d.ts +0 -56
  1071. package/dist/ui/treeVisualizer.d.ts.map +0 -1
  1072. package/dist/ui/treeVisualizer.js +0 -247
  1073. package/dist/ui/treeVisualizer.js.map +0 -1
  1074. package/dist/utils/asyncUtils.d.ts +0 -95
  1075. package/dist/utils/asyncUtils.d.ts.map +0 -1
  1076. package/dist/utils/asyncUtils.js +0 -286
  1077. package/dist/utils/asyncUtils.js.map +0 -1
  1078. package/dist/utils/errorUtils.d.ts +0 -16
  1079. package/dist/utils/errorUtils.d.ts.map +0 -1
  1080. package/dist/utils/errorUtils.js +0 -66
  1081. package/dist/utils/errorUtils.js.map +0 -1
  1082. package/dist/workspace.d.ts +0 -8
  1083. package/dist/workspace.d.ts.map +0 -1
  1084. package/dist/workspace.js +0 -107
  1085. package/dist/workspace.js.map +0 -1
  1086. package/dist/workspace.validator.d.ts +0 -49
  1087. package/dist/workspace.validator.d.ts.map +0 -1
  1088. package/dist/workspace.validator.js +0 -214
  1089. package/dist/workspace.validator.js.map +0 -1
@@ -1,1338 +0,0 @@
1
- /**
2
- * Tool Display Formatter - Claude Code style
3
- *
4
- * Implements the clean, informative tool execution display that Claude Code uses:
5
- * - Tool call indicators with inline args
6
- * - Result summaries with status indicators
7
- * - Expandable content with previews
8
- * - Diff formatting with colors
9
- */
10
- import { theme } from './theme.js';
11
- /**
12
- * Format tool call display (Claude Code style)
13
- *
14
- * Example output:
15
- * ⏺ Read(src/core/agent.ts)
16
- * ⏺ Search(pattern: "TODO|FIXME", output_mode: "content", head_limit: 15)
17
- */
18
- export function formatToolCall(call, options = {}) {
19
- const includePrefix = options.includePrefix ?? true;
20
- const symbol = includePrefix ? `${theme.info('⏺')} ` : '';
21
- const toolName = theme.tool(call.name);
22
- // Format args inline (only show relevant ones)
23
- const argsDisplay = formatInlineArgs(call.args);
24
- return `${symbol}${toolName}${argsDisplay}`;
25
- }
26
- /**
27
- * Format tool result display (Claude Code style)
28
- *
29
- * Example output:
30
- * ⎿ Read 340 lines
31
- * ⎿ Found 15 lines (ctrl+o to expand)
32
- * ⎿ Completed
33
- */
34
- export function formatToolResult(result, options = {}) {
35
- const includePrefix = options.includePrefix ?? true;
36
- const prefix = includePrefix
37
- ? result.status === 'error'
38
- ? `${theme.error('⎿')} `
39
- : `${theme.success('⎿')} `
40
- : '';
41
- let output = `${prefix}${result.summary}`;
42
- // Add expandable indicator if there's hidden content
43
- if (result.totalLines && result.linesShown && result.totalLines > result.linesShown) {
44
- const expandHint = theme.ui.muted('(ctrl+o to expand)');
45
- output += ` ${expandHint}`;
46
- }
47
- return output;
48
- }
49
- /**
50
- * Format inline args for tool call display
51
- * Keeps it concise, shows only non-default values
52
- * Prioritizes important args like paths, patterns, commands
53
- */
54
- function formatInlineArgs(args) {
55
- // Priority order for different argument types
56
- const priorityArgs = [
57
- 'file_path', 'path', 'pattern', 'command', 'query', 'url',
58
- 'output_mode', 'glob', 'type', 'head_limit', 'offset',
59
- ];
60
- // Special handling for specific args
61
- const skipDefaults = new Set([
62
- 'dangerouslyDisableSandbox',
63
- 'run_in_background',
64
- 'description',
65
- ]);
66
- const formattedArgs = [];
67
- for (const [key, value] of Object.entries(args)) {
68
- // Skip empty/null/undefined
69
- if (value === null || value === undefined || value === '')
70
- continue;
71
- // Skip common defaults
72
- if (skipDefaults.has(key))
73
- continue;
74
- if (key === 'path' && value === '.')
75
- continue;
76
- if (key === 'format' && value === 'plain')
77
- continue;
78
- if (key === 'output_mode' && value === 'files_with_matches')
79
- continue;
80
- // Determine priority
81
- const priority = priorityArgs.indexOf(key);
82
- const actualPriority = priority === -1 ? 999 : priority;
83
- // Format value
84
- let formatted;
85
- if (typeof value === 'string') {
86
- // Smart truncation for paths
87
- if (key === 'file_path' || key === 'path') {
88
- formatted = truncatePathForDisplay(value, 60);
89
- }
90
- else if (key === 'pattern' || key === 'query') {
91
- // Show patterns/queries more prominently
92
- if (value.length > 40) {
93
- formatted = `"${value.slice(0, 37)}..."`;
94
- }
95
- else {
96
- formatted = `"${value}"`;
97
- }
98
- }
99
- else if (key === 'command') {
100
- // Truncate commands intelligently
101
- if (value.length > 60) {
102
- formatted = `"${value.slice(0, 57)}..."`;
103
- }
104
- else {
105
- formatted = `"${value}"`;
106
- }
107
- }
108
- else {
109
- // Regular string truncation
110
- if (value.length > 50) {
111
- formatted = `"${value.slice(0, 47)}..."`;
112
- }
113
- else {
114
- formatted = `"${value}"`;
115
- }
116
- }
117
- }
118
- else if (typeof value === 'boolean') {
119
- // Only show boolean if true (false is usually default)
120
- if (!value)
121
- continue;
122
- formatted = 'true';
123
- }
124
- else if (typeof value === 'number') {
125
- formatted = String(value);
126
- }
127
- else if (Array.isArray(value)) {
128
- // Show array length
129
- formatted = `[${value.length} items]`;
130
- }
131
- else {
132
- formatted = JSON.stringify(value);
133
- }
134
- formattedArgs.push({ key, value: formatted, priority: actualPriority });
135
- }
136
- // Sort by priority and limit to most important args
137
- formattedArgs.sort((a, b) => a.priority - b.priority);
138
- const displayArgs = formattedArgs.slice(0, 5); // Show max 5 args
139
- if (displayArgs.length === 0) {
140
- return '';
141
- }
142
- // Format as inline args
143
- const argStrings = displayArgs.map(arg => {
144
- // For primary args (path, pattern, command), show value directly
145
- if (['file_path', 'path', 'pattern', 'command', 'query', 'url'].includes(arg.key)) {
146
- return arg.value;
147
- }
148
- // For others, show key: value
149
- return `${arg.key}: ${arg.value}`;
150
- });
151
- return `(${argStrings.join(', ')})`;
152
- }
153
- /**
154
- * Truncate path intelligently for display
155
- * Keeps filename and important parent dirs
156
- */
157
- function truncatePathForDisplay(path, maxLength) {
158
- if (path.length <= maxLength)
159
- return path;
160
- const parts = path.split('/').filter(p => p);
161
- if (parts.length <= 2) {
162
- // Short path, just truncate
163
- return `${path.slice(0, maxLength - 3)}...`;
164
- }
165
- // Keep filename and truncate middle
166
- const filename = parts[parts.length - 1];
167
- if (!filename) {
168
- return `${path.slice(0, maxLength - 3)}...`;
169
- }
170
- const firstPart = parts.slice(0, 2).join('/');
171
- if (firstPart.length + filename.length + 4 <= maxLength) {
172
- return `${firstPart}/.../${filename}`;
173
- }
174
- // Just show filename if still too long
175
- if (filename.length <= maxLength - 3) {
176
- return `.../${filename}`;
177
- }
178
- return `${filename.slice(0, maxLength - 3)}...`;
179
- }
180
- /**
181
- * Format expandable content preview
182
- *
183
- * Example:
184
- * import { foo } from 'bar';
185
- * … +312 lines (ctrl+o to expand)
186
- */
187
- export function formatExpandablePreview(content, maxLines = 5) {
188
- const lines = content.split('\n');
189
- const totalLines = lines.length;
190
- if (totalLines <= maxLines) {
191
- return {
192
- preview: content,
193
- isExpanded: true,
194
- totalLines,
195
- };
196
- }
197
- // Show first N lines
198
- const previewLines = lines.slice(0, maxLines);
199
- const remainingLines = totalLines - maxLines;
200
- const ellipsis = theme.ui.muted(`… +${remainingLines} lines`);
201
- const hint = theme.ui.muted('(ctrl+o to expand)');
202
- previewLines.push(`${ellipsis} ${hint}`);
203
- return {
204
- preview: previewLines.join('\n'),
205
- isExpanded: false,
206
- totalLines,
207
- };
208
- }
209
- /**
210
- * Format diff output (Claude Code style)
211
- *
212
- * Example:
213
- * Update(src/core/agent.ts)
214
- * ⎿ Updated src/core/agent.ts with 2 additions and 1 removal
215
- * 75 private async processConversation(): Promise<string> {
216
- * 76 while (true) {
217
- * 77 - this.pruneMessagesIfNeeded();
218
- * 77 + await this.pruneMessagesIfNeeded();
219
- * 78
220
- */
221
- export function formatDiff(diff) {
222
- const lines = [];
223
- for (const line of diff) {
224
- let formatted;
225
- switch (line.type) {
226
- case 'add':
227
- // Green + with line number
228
- const addNum = line.lineNumber ? theme.ui.muted(String(line.lineNumber).padStart(6)) : ' ';
229
- const addSymbol = theme.diff.added('+');
230
- const addContent = theme.diff.added(line.content);
231
- formatted = `${addNum} ${addSymbol} ${addContent}`;
232
- break;
233
- case 'remove':
234
- // Red - with line number
235
- const remNum = line.lineNumber ? theme.ui.muted(String(line.lineNumber).padStart(6)) : ' ';
236
- const remSymbol = theme.diff.removed('-');
237
- const remContent = theme.diff.removed(line.content);
238
- formatted = `${remNum} ${remSymbol} ${remContent}`;
239
- break;
240
- case 'context':
241
- // Gray line number, regular content
242
- const ctxNum = line.lineNumber ? theme.ui.muted(String(line.lineNumber).padStart(6)) : ' ';
243
- formatted = `${ctxNum} ${line.content}`;
244
- break;
245
- case 'info':
246
- // Special info line (file headers, etc.)
247
- formatted = theme.diff.header(line.content);
248
- break;
249
- }
250
- lines.push(formatted);
251
- }
252
- return lines.join('\n');
253
- }
254
- /**
255
- * Format diff summary
256
- * Example: "Updated src/core/agent.ts with 2 additions and 1 removal"
257
- */
258
- export function formatDiffSummary(file, additions, removals) {
259
- const parts = ['Updated', file, 'with'];
260
- if (additions > 0) {
261
- parts.push(theme.diff.added(`${additions} addition${additions === 1 ? '' : 's'}`));
262
- }
263
- if (removals > 0) {
264
- if (additions > 0) {
265
- parts.push('and');
266
- }
267
- parts.push(theme.diff.removed(`${removals} removal${removals === 1 ? '' : 's'}`));
268
- }
269
- return parts.join(' ');
270
- }
271
- /**
272
- * Format multiline content with indentation (Claude Code style)
273
- *
274
- * Adds proper indentation and line wrapping
275
- */
276
- export function formatIndentedContent(content, indent = 4) {
277
- const lines = content.split('\n');
278
- const indentStr = ' '.repeat(indent);
279
- return lines.map(line => `${indentStr}${line}`).join('\n');
280
- }
281
- /**
282
- * Format token usage indicator
283
- * Example: "• Context 5% used (7.2k tokens)"
284
- */
285
- export function formatTokenUsage(percentage, tokens) {
286
- const bullet = theme.info('•');
287
- let pct;
288
- if (percentage >= 90) {
289
- pct = theme.error(`${percentage}%`);
290
- }
291
- else if (percentage >= 70) {
292
- pct = theme.warning(`${percentage}%`);
293
- }
294
- else {
295
- pct = theme.success(`${percentage}%`);
296
- }
297
- const tokensStr = tokens ? ` (${formatTokenCount(tokens)} tokens)` : '';
298
- return `${bullet} Context ${pct} used${tokensStr}`;
299
- }
300
- /**
301
- * Format token count with k/M suffixes
302
- */
303
- function formatTokenCount(tokens) {
304
- if (tokens >= 1000000) {
305
- return `${(tokens / 1000000).toFixed(1)}M`;
306
- }
307
- if (tokens >= 1000) {
308
- return `${(tokens / 1000).toFixed(1)}k`;
309
- }
310
- return String(tokens);
311
- }
312
- /**
313
- * Format timing information
314
- * Example: "(1m 43s)" or "(250ms)"
315
- */
316
- export function formatDuration(ms) {
317
- if (ms < 1000) {
318
- return `${Math.round(ms)}ms`;
319
- }
320
- const seconds = Math.floor(ms / 1000);
321
- const minutes = Math.floor(seconds / 60);
322
- const remainingSeconds = seconds % 60;
323
- if (minutes > 0) {
324
- return `${minutes}m ${remainingSeconds}s`;
325
- }
326
- return `${seconds}s`;
327
- }
328
- /**
329
- * Create a "thinking" indicator
330
- * Example: "∴ Thinking…" or "∴ Thought for 2s (ctrl+o to show thinking)"
331
- */
332
- export function formatThinking(durationMs, hasContent = false) {
333
- const symbol = theme.info('∴');
334
- if (durationMs === undefined) {
335
- return `${symbol} Thinking…`;
336
- }
337
- const duration = formatDuration(durationMs);
338
- const hint = hasContent ? theme.ui.muted('(ctrl+o to show thinking)') : '';
339
- return `${symbol} Thought for ${duration}${hint ? ` ${hint}` : ''}`;
340
- }
341
- /**
342
- * Format status line at bottom
343
- * Example: "• Ready for prompts (250ms)"
344
- */
345
- export function formatStatusLine(message, durationMs, tokenUsage) {
346
- const parts = [];
347
- // Add token usage first if available
348
- if (tokenUsage) {
349
- parts.push(formatTokenUsage(tokenUsage.percentage, tokenUsage.tokens));
350
- }
351
- // Add message with duration
352
- const duration = durationMs ? ` (${formatDuration(durationMs)})` : '';
353
- parts.push(message + duration);
354
- return parts.join(' · ');
355
- }
356
- /**
357
- * Smart truncate for shell commands
358
- * Preserves important parts like command name and key flags
359
- */
360
- export function truncateCommand(command, maxLength = 60) {
361
- if (command.length <= maxLength)
362
- return command;
363
- // Try to keep command name and first few args
364
- const parts = command.split(/\s+/).filter(p => p);
365
- if (parts.length === 0 || !parts[0]) {
366
- return `${command.slice(0, maxLength - 3)}...`;
367
- }
368
- if (parts.length === 1) {
369
- // Single long command/path
370
- return `${command.slice(0, maxLength - 3)}...`;
371
- }
372
- // Keep first part (command) and truncate rest
373
- const cmdName = parts[0];
374
- const rest = parts.slice(1).join(' ');
375
- if (cmdName.length + 7 > maxLength) {
376
- return `${cmdName.slice(0, maxLength - 3)}...`;
377
- }
378
- const availableSpace = maxLength - cmdName.length - 4; // -4 for " ..."
379
- if (rest.length <= availableSpace) {
380
- return command;
381
- }
382
- return `${cmdName} ${rest.slice(0, availableSpace)}...`;
383
- }
384
- /**
385
- * Format file size in human-readable format
386
- */
387
- export function formatFileSize(bytes) {
388
- if (bytes < 1024)
389
- return `${bytes}B`;
390
- if (bytes < 1024 * 1024)
391
- return `${(bytes / 1024).toFixed(1)}KB`;
392
- if (bytes < 1024 * 1024 * 1024)
393
- return `${(bytes / (1024 * 1024)).toFixed(1)}MB`;
394
- return `${(bytes / (1024 * 1024 * 1024)).toFixed(1)}GB`;
395
- }
396
- /**
397
- * Format JSON output with syntax highlighting
398
- */
399
- export function formatJSON(data, compact = false) {
400
- const json = JSON.stringify(data, null, compact ? 0 : 2);
401
- // Add basic syntax highlighting
402
- return json
403
- .replace(/"([^"]+)":/g, (_, key) => `${theme.info(`"${key}"`)}: `) // Keys in blue
404
- .replace(/: "([^"]*)"/g, (_, value) => `: ${theme.success(`"${value}"`)}`) // String values in green
405
- .replace(/: (\d+\.?\d*)/g, (_, num) => `: ${theme.warning(num)}`) // Numbers in amber
406
- .replace(/: (true|false|null)/g, (_, bool) => `: ${theme.secondary(bool)}`); // Booleans in purple
407
- }
408
- /**
409
- * Format a list of items (Claude Code style)
410
- * Example:
411
- * • Item 1
412
- * • Item 2
413
- * • Item 3
414
- */
415
- export function formatList(items, bullet = '•') {
416
- return items.map(item => ` ${theme.info(bullet)} ${item}`).join('\n');
417
- }
418
- /**
419
- * Format a key-value pair (Claude Code style)
420
- */
421
- export function formatKeyValue(key, value) {
422
- return `${theme.ui.muted(key)}: ${value}`;
423
- }
424
- /**
425
- * Format a tool result summary for display in the terminal.
426
- * This is the central function for displaying ALL tool results.
427
- *
428
- * To add support for a new tool:
429
- * 1. Add a case in the switch statement below
430
- * 2. Create a format function for that tool type
431
- *
432
- * @returns Formatted string to display, or null if no display needed
433
- */
434
- export function formatToolResultSummary(input) {
435
- const { toolName, args, output, success, durationMs } = input;
436
- // Determine tool category and format accordingly
437
- switch (toolName) {
438
- // === FILE OPERATIONS ===
439
- case 'Edit':
440
- case 'edit_file':
441
- // These already return formatted diff output from editTools.ts
442
- return output;
443
- // === BASH/COMMAND EXECUTION ===
444
- case 'Bash':
445
- case 'bash':
446
- case 'execute_bash':
447
- case 'execute_bash_stream':
448
- case 'execute_command':
449
- return formatBashResult(args, output, success, durationMs);
450
- // === BACKGROUND BASH ===
451
- case 'BashOutput':
452
- return formatBashOutputResult(args, output, success);
453
- case 'KillShell':
454
- return formatKillShellResult(args, output, success);
455
- // === FILE READING ===
456
- case 'Read':
457
- case 'read_file':
458
- return formatReadResult(args, output, success);
459
- // === SEARCH OPERATIONS ===
460
- case 'Grep':
461
- case 'grep':
462
- case 'grep_search':
463
- case 'search_text':
464
- case 'search_files':
465
- return formatGrepResult(args, output, success);
466
- case 'Glob':
467
- case 'glob':
468
- case 'list_files':
469
- return formatGlobResult(args, output, success);
470
- case 'find_definition':
471
- return formatFindDefinitionResult(args, output, success);
472
- // === WEB OPERATIONS ===
473
- case 'WebFetch':
474
- case 'web_fetch':
475
- return formatWebFetchResult(args, output, success);
476
- case 'WebSearch':
477
- case 'web_search':
478
- return formatWebSearchResult(args, output, success);
479
- case 'WebExtract':
480
- return formatWebExtractResult(args, output, success);
481
- // === TASK/AGENT OPERATIONS ===
482
- case 'Task':
483
- case 'task':
484
- return formatTaskResult(args, output, success);
485
- // === TODO OPERATIONS ===
486
- case 'TodoWrite':
487
- case 'todo_write':
488
- return formatTodoResult(args, output, success);
489
- // === NOTEBOOK OPERATIONS ===
490
- case 'NotebookEdit':
491
- case 'notebook_edit':
492
- return formatNotebookResult(args, output, success);
493
- // === USER INTERACTION ===
494
- case 'AskUserQuestion':
495
- return formatAskUserResult(args, output, success);
496
- // === DEV TOOLS ===
497
- case 'run_tests':
498
- return formatTestResult(args, output, success, durationMs);
499
- case 'run_build':
500
- return formatBuildResult(args, output, success, durationMs);
501
- case 'install_dependencies':
502
- return formatInstallResult(args, output, success, durationMs);
503
- case 'check_package_info':
504
- return formatPackageInfoResult(args, output, success);
505
- // === GIT OPERATIONS ===
506
- case 'git_release':
507
- case 'git_sync':
508
- case 'git_cleanup':
509
- return formatGitResult(toolName, args, output, success);
510
- // === DOCKER ===
511
- case 'docker_build':
512
- case 'docker_compose':
513
- return formatDockerResult(toolName, args, output, success, durationMs);
514
- // === CODE ANALYSIS ===
515
- case 'analyze_code_structure':
516
- case 'find_dependencies':
517
- case 'check_code_complexity':
518
- case 'advanced_ast_analysis':
519
- case 'analyze_code_complexity':
520
- case 'suggest_refactoring':
521
- case 'generate_code_quality_report':
522
- return formatCodeAnalysisResult(toolName, args, output, success);
523
- // === TESTING TOOLS ===
524
- case 'generate_test_templates':
525
- case 'run_coverage_analysis':
526
- case 'summarize_coverage_report':
527
- case 'analyze_test_coverage':
528
- case 'generate_comprehensive_tests':
529
- return formatTestingToolResult(toolName, args, output, success);
530
- // === LINT/QUALITY ===
531
- case 'run_lint_checks':
532
- case 'inspect_code_quality':
533
- case 'list_lint_rules':
534
- return formatLintResult(toolName, args, output, success);
535
- // === CLOUD DEPLOY ===
536
- case 'cloud_status':
537
- case 'cloud_deploy':
538
- case 'cloud_init':
539
- case 'cloud_login':
540
- case 'firebase_deploy':
541
- case 'aliyun_deploy':
542
- return formatCloudResult(toolName, args, output, success);
543
- // === BROWSER AUTOMATION ===
544
- case 'browser_create_session':
545
- case 'browser_navigate':
546
- case 'browser_click':
547
- case 'browser_type':
548
- case 'browser_screenshot':
549
- case 'browser_close_session':
550
- return formatBrowserResult(toolName, args, output, success);
551
- // === EMAIL ===
552
- case 'send_email':
553
- case 'send_batch_emails':
554
- case 'verify_email_config':
555
- return formatEmailResult(toolName, args, output, success);
556
- // === SKILLS ===
557
- case 'ListSkills':
558
- case 'Skill':
559
- return formatSkillResult(toolName, args, output, success);
560
- // === PLANNING ===
561
- case 'ExitPlanMode':
562
- return formatPlanModeResult(args, output, success);
563
- // === REPO CHECKS ===
564
- case 'run_repo_checks':
565
- return formatRepoChecksResult(args, output, success);
566
- // === LEARNING ===
567
- case 'learn_codebase':
568
- case 'learn_file':
569
- case 'learn_topic':
570
- case 'learn_summary':
571
- return formatLearnResult(toolName, args, output, success);
572
- // === DEFAULT: Unknown tools ===
573
- default:
574
- // For unknown tools, show a generic summary if output is non-empty
575
- return formatGenericToolResult(toolName, output, success, durationMs);
576
- }
577
- }
578
- /**
579
- * Format Bash command result
580
- * Shows: command executed, exit status, and output preview
581
- */
582
- function formatBashResult(args, output, success, durationMs) {
583
- const command = args['command'] || '';
584
- const description = args['description'];
585
- const lines = [];
586
- // Header with command
587
- const statusIcon = success ? theme.success('✓') : theme.error('✗');
588
- const cmdDisplay = truncateCommand(command, 50);
589
- const durationStr = durationMs ? ` ${theme.ui.muted(`(${formatDuration(durationMs)})`)}` : '';
590
- if (description) {
591
- lines.push(`${statusIcon} ${description}${durationStr}`);
592
- lines.push(` ${theme.ui.muted('$')} ${theme.dim(cmdDisplay)}`);
593
- }
594
- else {
595
- lines.push(`${statusIcon} ${theme.ui.muted('$')} ${cmdDisplay}${durationStr}`);
596
- }
597
- // Output preview (max 5 lines)
598
- if (output && output.trim()) {
599
- const outputLines = output.trim().split('\n');
600
- const maxPreviewLines = 5;
601
- const previewLines = outputLines.slice(0, maxPreviewLines);
602
- for (const line of previewLines) {
603
- // Truncate long lines
604
- const truncatedLine = line.length > 80 ? `${line.slice(0, 77)}...` : line;
605
- lines.push(` ${theme.dim(truncatedLine)}`);
606
- }
607
- if (outputLines.length > maxPreviewLines) {
608
- const remaining = outputLines.length - maxPreviewLines;
609
- lines.push(` ${theme.ui.muted(`... +${remaining} more line${remaining === 1 ? '' : 's'}`)}`);
610
- }
611
- }
612
- return lines.join('\n');
613
- }
614
- /**
615
- * Format Read file result
616
- * Shows: file path and line count
617
- */
618
- function formatReadResult(args, output, success) {
619
- const filePath = (args['file_path'] || args['path']) || '';
620
- const displayPath = truncatePathForDisplay(filePath, 50);
621
- if (!success) {
622
- return `${theme.error('✗')} Failed to read ${displayPath}`;
623
- }
624
- const lineCount = output.split('\n').length;
625
- return `${theme.success('✓')} Read ${theme.info(displayPath)} ${theme.ui.muted(`(${lineCount} lines)`)}`;
626
- }
627
- /**
628
- * Format Grep search result
629
- * Shows: pattern, matches found, and file list preview
630
- */
631
- function formatGrepResult(args, output, success) {
632
- const pattern = args['pattern'] || '';
633
- const patternDisplay = pattern.length > 30 ? `${pattern.slice(0, 27)}...` : pattern;
634
- const lines = [];
635
- if (!success || !output.trim()) {
636
- lines.push(`${theme.warning('○')} No matches for "${patternDisplay}"`);
637
- return lines.join('\n');
638
- }
639
- // Count matches/files
640
- const outputLines = output.trim().split('\n').filter(l => l.trim());
641
- const matchCount = outputLines.length;
642
- lines.push(`${theme.success('✓')} Found ${theme.info(String(matchCount))} match${matchCount === 1 ? '' : 'es'} for "${patternDisplay}"`);
643
- // Show first few matches
644
- const maxPreview = 3;
645
- for (let i = 0; i < Math.min(maxPreview, outputLines.length); i++) {
646
- const line = outputLines[i] || '';
647
- const truncated = line.length > 70 ? `${line.slice(0, 67)}...` : line;
648
- lines.push(` ${theme.dim(truncated)}`);
649
- }
650
- if (matchCount > maxPreview) {
651
- lines.push(` ${theme.ui.muted(`... +${matchCount - maxPreview} more`)}`);
652
- }
653
- return lines.join('\n');
654
- }
655
- /**
656
- * Format Glob file search result
657
- * Shows: pattern and files found
658
- */
659
- function formatGlobResult(args, output, success) {
660
- const pattern = args['pattern'] || '*';
661
- const lines = [];
662
- if (!success || !output.trim()) {
663
- lines.push(`${theme.warning('○')} No files matching "${pattern}"`);
664
- return lines.join('\n');
665
- }
666
- const files = output.trim().split('\n').filter(f => f.trim());
667
- const fileCount = files.length;
668
- lines.push(`${theme.success('✓')} Found ${theme.info(String(fileCount))} file${fileCount === 1 ? '' : 's'} matching "${pattern}"`);
669
- // Show first few files
670
- const maxPreview = 4;
671
- for (let i = 0; i < Math.min(maxPreview, files.length); i++) {
672
- const file = files[i] || '';
673
- lines.push(` ${theme.dim(truncatePathForDisplay(file, 60))}`);
674
- }
675
- if (fileCount > maxPreview) {
676
- lines.push(` ${theme.ui.muted(`... +${fileCount - maxPreview} more`)}`);
677
- }
678
- return lines.join('\n');
679
- }
680
- /**
681
- * Format WebFetch result
682
- * Shows: URL and content summary
683
- */
684
- function formatWebFetchResult(args, output, success) {
685
- const url = args['url'] || '';
686
- let hostname = url;
687
- try {
688
- hostname = new URL(url).hostname;
689
- }
690
- catch {
691
- // Keep original URL if parsing fails
692
- }
693
- if (!success) {
694
- return `${theme.error('✗')} Failed to fetch ${hostname}`;
695
- }
696
- const contentLength = output.length;
697
- const sizeStr = formatFileSize(contentLength);
698
- return `${theme.success('✓')} Fetched ${theme.info(hostname)} ${theme.ui.muted(`(${sizeStr})`)}`;
699
- }
700
- /**
701
- * Format WebSearch result
702
- * Shows: query and result count
703
- */
704
- function formatWebSearchResult(args, output, success) {
705
- const query = args['query'] || '';
706
- const queryDisplay = query.length > 40 ? `${query.slice(0, 37)}...` : query;
707
- if (!success) {
708
- return `${theme.error('✗')} Search failed for "${queryDisplay}"`;
709
- }
710
- // Try to count results from output
711
- const resultMatches = output.match(/^\d+\./gm);
712
- const resultCount = resultMatches ? resultMatches.length : 'multiple';
713
- return `${theme.success('✓')} Found ${theme.info(String(resultCount))} results for "${queryDisplay}"`;
714
- }
715
- /**
716
- * Format Task/Agent result
717
- * Shows: task description and completion status
718
- */
719
- function formatTaskResult(args, _output, success) {
720
- const description = args['description'] || 'Task';
721
- const truncatedDesc = description.length > 50 ? `${description.slice(0, 47)}...` : description;
722
- if (!success) {
723
- return `${theme.error('✗')} Task failed: ${truncatedDesc}`;
724
- }
725
- return `${theme.success('✓')} Completed: ${truncatedDesc}`;
726
- }
727
- /**
728
- * Format TodoWrite result
729
- * Shows: todo list update summary
730
- */
731
- function formatTodoResult(args, _output, success) {
732
- const todos = args['todos'];
733
- if (!success) {
734
- return `${theme.error('✗')} Failed to update todo list`;
735
- }
736
- if (!todos || !Array.isArray(todos)) {
737
- return `${theme.success('✓')} Todo list updated`;
738
- }
739
- const completed = todos.filter(t => t.status === 'completed').length;
740
- const inProgress = todos.filter(t => t.status === 'in_progress').length;
741
- const pending = todos.filter(t => t.status === 'pending').length;
742
- const parts = [`${theme.success('✓')} Todos:`];
743
- if (completed > 0)
744
- parts.push(theme.success(`${completed} done`));
745
- if (inProgress > 0)
746
- parts.push(theme.warning(`${inProgress} active`));
747
- if (pending > 0)
748
- parts.push(theme.dim(`${pending} pending`));
749
- return parts.join(' ');
750
- }
751
- /**
752
- * Format NotebookEdit result
753
- * Shows: notebook and cell info
754
- */
755
- function formatNotebookResult(args, _output, success) {
756
- const notebookPath = args['notebook_path'] || '';
757
- const editMode = args['edit_mode'] || 'replace';
758
- const displayPath = truncatePathForDisplay(notebookPath, 40);
759
- if (!success) {
760
- return `${theme.error('✗')} Failed to edit notebook ${displayPath}`;
761
- }
762
- const action = editMode === 'insert' ? 'Inserted cell in' : editMode === 'delete' ? 'Deleted cell from' : 'Updated';
763
- return `${theme.success('✓')} ${action} ${theme.info(displayPath)}`;
764
- }
765
- /**
766
- * Format generic/unknown tool result
767
- * Provides a basic summary for tools not explicitly handled
768
- */
769
- function formatGenericToolResult(toolName, output, success, durationMs) {
770
- const statusIcon = success ? theme.success('✓') : theme.error('✗');
771
- const durationStr = durationMs ? ` ${theme.ui.muted(`(${formatDuration(durationMs)})`)}` : '';
772
- if (!output || !output.trim()) {
773
- return `${statusIcon} ${toolName} completed${durationStr}`;
774
- }
775
- const lineCount = output.split('\n').length;
776
- return `${statusIcon} ${toolName} completed ${theme.ui.muted(`(${lineCount} lines)`)}${durationStr}`;
777
- }
778
- // ============================================================================
779
- // ADDITIONAL TOOL FORMATTERS
780
- // ============================================================================
781
- /**
782
- * Format BashOutput (background shell) result
783
- */
784
- function formatBashOutputResult(args, output, success) {
785
- const shellId = (args['bash_id'] || args['shell_id']) || '';
786
- const lines = [];
787
- if (!success) {
788
- return `${theme.error('✗')} Failed to get output from shell ${shellId}`;
789
- }
790
- const outputLines = output.trim().split('\n').filter(l => l);
791
- const lineCount = outputLines.length;
792
- lines.push(`${theme.success('✓')} Shell ${theme.info(shellId)} ${theme.ui.muted(`(${lineCount} lines)`)}`);
793
- // Show preview
794
- const maxPreview = 3;
795
- for (let i = 0; i < Math.min(maxPreview, outputLines.length); i++) {
796
- const line = outputLines[i] || '';
797
- const truncated = line.length > 70 ? `${line.slice(0, 67)}...` : line;
798
- lines.push(` ${theme.dim(truncated)}`);
799
- }
800
- if (lineCount > maxPreview) {
801
- lines.push(` ${theme.ui.muted(`... +${lineCount - maxPreview} more`)}`);
802
- }
803
- return lines.join('\n');
804
- }
805
- /**
806
- * Format KillShell result
807
- */
808
- function formatKillShellResult(args, _output, success) {
809
- const shellId = (args['shell_id']) || '';
810
- if (!success) {
811
- return `${theme.error('✗')} Failed to kill shell ${shellId}`;
812
- }
813
- return `${theme.success('✓')} Killed shell ${theme.info(shellId)}`;
814
- }
815
- /**
816
- * Format find_definition result
817
- */
818
- function formatFindDefinitionResult(args, output, success) {
819
- const symbol = (args['symbol'] || args['name']) || '';
820
- if (!success || !output.trim()) {
821
- return `${theme.warning('○')} Definition not found: ${symbol}`;
822
- }
823
- const locations = output.trim().split('\n').filter(l => l);
824
- return `${theme.success('✓')} Found ${theme.info(String(locations.length))} definition${locations.length === 1 ? '' : 's'} for "${symbol}"`;
825
- }
826
- /**
827
- * Format WebExtract result
828
- */
829
- function formatWebExtractResult(args, output, success) {
830
- const url = args['url'] || '';
831
- let hostname = url;
832
- try {
833
- hostname = new URL(url).hostname;
834
- }
835
- catch {
836
- // Keep original
837
- }
838
- if (!success) {
839
- return `${theme.error('✗')} Failed to extract from ${hostname}`;
840
- }
841
- const contentLength = output.length;
842
- return `${theme.success('✓')} Extracted from ${theme.info(hostname)} ${theme.ui.muted(`(${formatFileSize(contentLength)})`)}`;
843
- }
844
- /**
845
- * Format AskUserQuestion result
846
- */
847
- function formatAskUserResult(args, output, success) {
848
- const questions = args['questions'];
849
- const questionCount = questions?.length || 1;
850
- if (!success) {
851
- return `${theme.error('✗')} Failed to ask user`;
852
- }
853
- if (output.includes('answer') || output.includes('response')) {
854
- return `${theme.success('✓')} User responded`;
855
- }
856
- return `${theme.info('?')} Asked ${questionCount} question${questionCount === 1 ? '' : 's'}`;
857
- }
858
- /**
859
- * Format test run result
860
- */
861
- function formatTestResult(args, output, success, durationMs) {
862
- const testPattern = (args['pattern'] || args['filter']);
863
- const lines = [];
864
- const durationStr = durationMs ? ` ${theme.ui.muted(`(${formatDuration(durationMs)})`)}` : '';
865
- // Try to extract test counts from output
866
- const passMatch = output.match(/(\d+)\s*(?:passing|passed|✓)/i);
867
- const failMatch = output.match(/(\d+)\s*(?:failing|failed|✗)/i);
868
- const skipMatch = output.match(/(\d+)\s*(?:skipped|pending)/i);
869
- const passed = passMatch ? parseInt(passMatch[1] || '0', 10) : 0;
870
- const failed = failMatch ? parseInt(failMatch[1] || '0', 10) : 0;
871
- const skipped = skipMatch ? parseInt(skipMatch[1] || '0', 10) : 0;
872
- const statusIcon = success && failed === 0 ? theme.success('✓') : theme.error('✗');
873
- let summary = `${statusIcon} Tests`;
874
- if (testPattern) {
875
- summary += ` "${testPattern}"`;
876
- }
877
- summary += durationStr;
878
- lines.push(summary);
879
- // Show counts
880
- const counts = [];
881
- if (passed > 0)
882
- counts.push(theme.success(`${passed} passed`));
883
- if (failed > 0)
884
- counts.push(theme.error(`${failed} failed`));
885
- if (skipped > 0)
886
- counts.push(theme.warning(`${skipped} skipped`));
887
- if (counts.length > 0) {
888
- lines.push(` ${counts.join(', ')}`);
889
- }
890
- // Show first error if failed
891
- if (!success && failed > 0) {
892
- const errorMatch = output.match(/(?:Error|FAIL|✗).*?:(.*?)(?:\n|$)/i);
893
- if (errorMatch && errorMatch[1]) {
894
- const errorMsg = errorMatch[1].trim().slice(0, 60);
895
- lines.push(` ${theme.error(errorMsg)}`);
896
- }
897
- }
898
- return lines.join('\n');
899
- }
900
- /**
901
- * Format build result
902
- */
903
- function formatBuildResult(args, output, success, durationMs) {
904
- const target = (args['target'] || args['script']);
905
- const durationStr = durationMs ? ` ${theme.ui.muted(`(${formatDuration(durationMs)})`)}` : '';
906
- if (!success) {
907
- // Try to extract error count
908
- const errorMatches = output.match(/error/gi);
909
- const errorCount = errorMatches ? errorMatches.length : 0;
910
- if (errorCount > 0) {
911
- return `${theme.error('✗')} Build failed with ${errorCount} error${errorCount === 1 ? '' : 's'}${durationStr}`;
912
- }
913
- return `${theme.error('✗')} Build failed${durationStr}`;
914
- }
915
- const label = target ? `Build "${target}"` : 'Build';
916
- return `${theme.success('✓')} ${label} succeeded${durationStr}`;
917
- }
918
- /**
919
- * Format install dependencies result
920
- */
921
- function formatInstallResult(args, output, success, durationMs) {
922
- const packages = args['packages'];
923
- const durationStr = durationMs ? ` ${theme.ui.muted(`(${formatDuration(durationMs)})`)}` : '';
924
- if (!success) {
925
- return `${theme.error('✗')} Install failed${durationStr}`;
926
- }
927
- // Try to extract package count from output
928
- const addedMatch = output.match(/added\s+(\d+)\s+packages?/i);
929
- const packageCount = addedMatch ? addedMatch[1] : null;
930
- let summary = `${theme.success('✓')} Dependencies installed`;
931
- if (packageCount) {
932
- summary += ` ${theme.ui.muted(`(${packageCount} packages)`)}`;
933
- }
934
- else if (packages) {
935
- const pkgList = Array.isArray(packages) ? packages : [packages];
936
- summary += ` ${theme.ui.muted(`(${pkgList.length} packages)`)}`;
937
- }
938
- summary += durationStr;
939
- return summary;
940
- }
941
- /**
942
- * Format package info result
943
- */
944
- function formatPackageInfoResult(args, output, success) {
945
- const packageName = (args['package'] || args['name']) || '';
946
- if (!success) {
947
- return `${theme.error('✗')} Package info failed for ${packageName}`;
948
- }
949
- // Try to extract version
950
- const versionMatch = output.match(/version[:\s]+["']?([^"'\s\n]+)/i);
951
- const version = versionMatch ? versionMatch[1] : null;
952
- if (version) {
953
- return `${theme.success('✓')} ${theme.info(packageName)}@${version}`;
954
- }
955
- return `${theme.success('✓')} Package info: ${theme.info(packageName)}`;
956
- }
957
- /**
958
- * Format git operation result
959
- */
960
- function formatGitResult(toolName, args, output, success) {
961
- const action = toolName.replace('git_', '');
962
- if (!success) {
963
- return `${theme.error('✗')} Git ${action} failed`;
964
- }
965
- switch (toolName) {
966
- case 'git_release': {
967
- const version = (args['version'] || args['tag']);
968
- if (version) {
969
- return `${theme.success('✓')} Released ${theme.info(version)}`;
970
- }
971
- return `${theme.success('✓')} Release created`;
972
- }
973
- case 'git_sync': {
974
- // Try to extract ahead/behind from output
975
- const aheadMatch = output.match(/(\d+)\s+commit.*ahead/i);
976
- const behindMatch = output.match(/(\d+)\s+commit.*behind/i);
977
- const parts = [];
978
- if (aheadMatch)
979
- parts.push(`${aheadMatch[1]} ahead`);
980
- if (behindMatch)
981
- parts.push(`${behindMatch[1]} behind`);
982
- if (parts.length > 0) {
983
- return `${theme.success('✓')} Synced ${theme.ui.muted(`(${parts.join(', ')})`)}`;
984
- }
985
- return `${theme.success('✓')} Git synced`;
986
- }
987
- case 'git_cleanup': {
988
- const branchMatch = output.match(/deleted.*?(\d+)/i);
989
- if (branchMatch) {
990
- return `${theme.success('✓')} Cleaned up ${branchMatch[1]} branches`;
991
- }
992
- return `${theme.success('✓')} Git cleanup completed`;
993
- }
994
- default:
995
- return `${theme.success('✓')} Git ${action} completed`;
996
- }
997
- }
998
- /**
999
- * Format docker result
1000
- */
1001
- function formatDockerResult(toolName, args, output, success, durationMs) {
1002
- const durationStr = durationMs ? ` ${theme.ui.muted(`(${formatDuration(durationMs)})`)}` : '';
1003
- if (!success) {
1004
- return `${theme.error('✗')} Docker ${toolName.replace('docker_', '')} failed${durationStr}`;
1005
- }
1006
- switch (toolName) {
1007
- case 'docker_build': {
1008
- const tag = (args['tag'] || args['image']);
1009
- // Try to extract image ID from output
1010
- const imageMatch = output.match(/(?:Successfully built|sha256:)\s*([a-f0-9]{12})/i);
1011
- if (tag) {
1012
- return `${theme.success('✓')} Built image ${theme.info(tag)}${durationStr}`;
1013
- }
1014
- if (imageMatch) {
1015
- return `${theme.success('✓')} Built image ${theme.info(imageMatch[1] || '')}${durationStr}`;
1016
- }
1017
- return `${theme.success('✓')} Docker build completed${durationStr}`;
1018
- }
1019
- case 'docker_compose': {
1020
- const action = (args['action'] || args['command']) || 'up';
1021
- return `${theme.success('✓')} Docker compose ${action}${durationStr}`;
1022
- }
1023
- default:
1024
- return `${theme.success('✓')} Docker operation completed${durationStr}`;
1025
- }
1026
- }
1027
- /**
1028
- * Format code analysis result
1029
- */
1030
- function formatCodeAnalysisResult(toolName, args, output, success) {
1031
- const filePath = (args['file_path'] || args['path'] || args['file']);
1032
- const displayPath = filePath ? truncatePathForDisplay(filePath, 40) : '';
1033
- if (!success) {
1034
- return `${theme.error('✗')} Analysis failed${displayPath ? ` for ${displayPath}` : ''}`;
1035
- }
1036
- const toolLabels = {
1037
- 'analyze_code_structure': 'Structure analyzed',
1038
- 'find_dependencies': 'Dependencies found',
1039
- 'check_code_complexity': 'Complexity checked',
1040
- 'advanced_ast_analysis': 'AST analyzed',
1041
- 'analyze_code_complexity': 'Complexity analyzed',
1042
- 'suggest_refactoring': 'Refactoring suggestions',
1043
- 'generate_code_quality_report': 'Quality report generated',
1044
- };
1045
- const label = toolLabels[toolName] || 'Analysis completed';
1046
- // Try to extract counts from output
1047
- const issueMatch = output.match(/(\d+)\s*(?:issue|warning|suggestion)/i);
1048
- if (issueMatch) {
1049
- return `${theme.success('✓')} ${label}: ${issueMatch[1]} items${displayPath ? ` in ${displayPath}` : ''}`;
1050
- }
1051
- return `${theme.success('✓')} ${label}${displayPath ? ` for ${displayPath}` : ''}`;
1052
- }
1053
- /**
1054
- * Format testing tool result
1055
- */
1056
- function formatTestingToolResult(toolName, args, output, success) {
1057
- const filePath = (args['file_path'] || args['path']);
1058
- const displayPath = filePath ? truncatePathForDisplay(filePath, 40) : '';
1059
- if (!success) {
1060
- return `${theme.error('✗')} ${toolName.replace(/_/g, ' ')} failed`;
1061
- }
1062
- switch (toolName) {
1063
- case 'generate_test_templates': {
1064
- const countMatch = output.match(/(\d+)\s*(?:test|template)/i);
1065
- if (countMatch) {
1066
- return `${theme.success('✓')} Generated ${countMatch[1]} test templates`;
1067
- }
1068
- return `${theme.success('✓')} Test templates generated`;
1069
- }
1070
- case 'run_coverage_analysis':
1071
- case 'summarize_coverage_report': {
1072
- const coverageMatch = output.match(/(\d+(?:\.\d+)?)\s*%/);
1073
- if (coverageMatch) {
1074
- const pct = parseFloat(coverageMatch[1] || '0');
1075
- const color = pct >= 80 ? theme.success : pct >= 60 ? theme.warning : theme.error;
1076
- return `${theme.success('✓')} Coverage: ${color(`${pct}%`)}${displayPath ? ` for ${displayPath}` : ''}`;
1077
- }
1078
- return `${theme.success('✓')} Coverage analyzed${displayPath ? ` for ${displayPath}` : ''}`;
1079
- }
1080
- case 'analyze_test_coverage': {
1081
- const coverageMatch = output.match(/(\d+(?:\.\d+)?)\s*%/);
1082
- if (coverageMatch) {
1083
- return `${theme.success('✓')} Test coverage: ${coverageMatch[1]}%`;
1084
- }
1085
- return `${theme.success('✓')} Test coverage analyzed`;
1086
- }
1087
- case 'generate_comprehensive_tests': {
1088
- return `${theme.success('✓')} Comprehensive tests generated${displayPath ? ` for ${displayPath}` : ''}`;
1089
- }
1090
- default:
1091
- return `${theme.success('✓')} Testing tool completed`;
1092
- }
1093
- }
1094
- /**
1095
- * Format lint result
1096
- */
1097
- function formatLintResult(toolName, args, output, success) {
1098
- const filePath = (args['file_path'] || args['path']);
1099
- const displayPath = filePath ? truncatePathForDisplay(filePath, 40) : '';
1100
- // Try to extract error/warning counts
1101
- const errorMatch = output.match(/(\d+)\s*error/i);
1102
- const warnMatch = output.match(/(\d+)\s*warning/i);
1103
- const errors = errorMatch ? parseInt(errorMatch[1] || '0', 10) : 0;
1104
- const warnings = warnMatch ? parseInt(warnMatch[1] || '0', 10) : 0;
1105
- const statusIcon = errors === 0 ? theme.success('✓') : theme.error('✗');
1106
- switch (toolName) {
1107
- case 'run_lint_checks': {
1108
- let summary = `${statusIcon} Lint`;
1109
- if (displayPath)
1110
- summary += ` ${displayPath}`;
1111
- const counts = [];
1112
- if (errors > 0)
1113
- counts.push(theme.error(`${errors} errors`));
1114
- if (warnings > 0)
1115
- counts.push(theme.warning(`${warnings} warnings`));
1116
- if (counts.length > 0) {
1117
- summary += `: ${counts.join(', ')}`;
1118
- }
1119
- else if (success) {
1120
- summary += ': clean';
1121
- }
1122
- return summary;
1123
- }
1124
- case 'inspect_code_quality': {
1125
- return `${statusIcon} Code quality inspected${displayPath ? ` for ${displayPath}` : ''}`;
1126
- }
1127
- case 'list_lint_rules': {
1128
- const ruleMatch = output.match(/(\d+)\s*rule/i);
1129
- if (ruleMatch) {
1130
- return `${theme.success('✓')} Found ${ruleMatch[1]} lint rules`;
1131
- }
1132
- return `${theme.success('✓')} Lint rules listed`;
1133
- }
1134
- default:
1135
- return `${statusIcon} Lint completed`;
1136
- }
1137
- }
1138
- /**
1139
- * Format cloud deployment result
1140
- */
1141
- function formatCloudResult(toolName, args, output, success) {
1142
- const provider = (args['provider'] || args['platform']);
1143
- if (!success) {
1144
- return `${theme.error('✗')} ${toolName.replace(/_/g, ' ')} failed`;
1145
- }
1146
- switch (toolName) {
1147
- case 'cloud_status': {
1148
- return `${theme.success('✓')} Cloud status checked${provider ? ` (${provider})` : ''}`;
1149
- }
1150
- case 'cloud_deploy':
1151
- case 'firebase_deploy':
1152
- case 'aliyun_deploy': {
1153
- // Try to extract URL from output
1154
- const urlMatch = output.match(/https?:\/\/[^\s]+/);
1155
- if (urlMatch) {
1156
- return `${theme.success('✓')} Deployed to ${theme.info(urlMatch[0])}`;
1157
- }
1158
- return `${theme.success('✓')} Deployment successful${provider ? ` (${provider})` : ''}`;
1159
- }
1160
- case 'cloud_init': {
1161
- return `${theme.success('✓')} Cloud project initialized${provider ? ` (${provider})` : ''}`;
1162
- }
1163
- case 'cloud_login': {
1164
- return `${theme.success('✓')} Logged in${provider ? ` to ${provider}` : ''}`;
1165
- }
1166
- default:
1167
- return `${theme.success('✓')} Cloud operation completed`;
1168
- }
1169
- }
1170
- /**
1171
- * Format browser automation result
1172
- */
1173
- function formatBrowserResult(toolName, args, output, success) {
1174
- if (!success) {
1175
- return `${theme.error('✗')} Browser ${toolName.replace('browser_', '')} failed`;
1176
- }
1177
- switch (toolName) {
1178
- case 'browser_create_session': {
1179
- const sessionMatch = output.match(/session[:\s]+["']?([^"'\s\n]+)/i);
1180
- if (sessionMatch) {
1181
- return `${theme.success('✓')} Browser session created: ${theme.info(sessionMatch[1] || '')}`;
1182
- }
1183
- return `${theme.success('✓')} Browser session created`;
1184
- }
1185
- case 'browser_navigate': {
1186
- const url = (args['url']);
1187
- if (url) {
1188
- try {
1189
- const hostname = new URL(url).hostname;
1190
- return `${theme.success('✓')} Navigated to ${theme.info(hostname)}`;
1191
- }
1192
- catch {
1193
- return `${theme.success('✓')} Navigated to page`;
1194
- }
1195
- }
1196
- return `${theme.success('✓')} Navigated`;
1197
- }
1198
- case 'browser_click': {
1199
- const selector = (args['selector']);
1200
- return `${theme.success('✓')} Clicked ${selector ? theme.dim(selector) : 'element'}`;
1201
- }
1202
- case 'browser_type': {
1203
- const selector = (args['selector']);
1204
- return `${theme.success('✓')} Typed text ${selector ? `in ${theme.dim(selector)}` : ''}`;
1205
- }
1206
- case 'browser_screenshot': {
1207
- const path = (args['path'] || args['file_path']);
1208
- if (path) {
1209
- return `${theme.success('✓')} Screenshot saved: ${truncatePathForDisplay(path, 40)}`;
1210
- }
1211
- return `${theme.success('✓')} Screenshot captured`;
1212
- }
1213
- case 'browser_close_session': {
1214
- return `${theme.success('✓')} Browser session closed`;
1215
- }
1216
- default:
1217
- return `${theme.success('✓')} Browser action completed`;
1218
- }
1219
- }
1220
- /**
1221
- * Format email result
1222
- */
1223
- function formatEmailResult(toolName, args, _output, success) {
1224
- if (!success) {
1225
- return `${theme.error('✗')} ${toolName.replace(/_/g, ' ')} failed`;
1226
- }
1227
- switch (toolName) {
1228
- case 'send_email': {
1229
- const to = (args['to']);
1230
- const recipients = Array.isArray(to) ? to.length : (to ? 1 : 0);
1231
- return `${theme.success('✓')} Email sent${recipients ? ` to ${recipients} recipient${recipients === 1 ? '' : 's'}` : ''}`;
1232
- }
1233
- case 'send_batch_emails': {
1234
- const emails = (args['emails']);
1235
- const count = emails?.length || 0;
1236
- return `${theme.success('✓')} Sent ${count} email${count === 1 ? '' : 's'}`;
1237
- }
1238
- case 'verify_email_config': {
1239
- return `${theme.success('✓')} Email config verified`;
1240
- }
1241
- default:
1242
- return `${theme.success('✓')} Email operation completed`;
1243
- }
1244
- }
1245
- /**
1246
- * Format skill result
1247
- */
1248
- function formatSkillResult(toolName, args, output, success) {
1249
- if (!success) {
1250
- return `${theme.error('✗')} Skill operation failed`;
1251
- }
1252
- switch (toolName) {
1253
- case 'ListSkills': {
1254
- const skillMatch = output.match(/(\d+)\s*skill/i);
1255
- if (skillMatch) {
1256
- return `${theme.success('✓')} Found ${skillMatch[1]} skills`;
1257
- }
1258
- return `${theme.success('✓')} Skills listed`;
1259
- }
1260
- case 'Skill': {
1261
- const skillName = (args['skill'] || args['name']);
1262
- if (skillName) {
1263
- return `${theme.success('✓')} Skill "${skillName}" executed`;
1264
- }
1265
- return `${theme.success('✓')} Skill executed`;
1266
- }
1267
- default:
1268
- return `${theme.success('✓')} Skill completed`;
1269
- }
1270
- }
1271
- /**
1272
- * Format plan mode result
1273
- */
1274
- function formatPlanModeResult(_args, _output, success) {
1275
- if (!success) {
1276
- return `${theme.error('✗')} Failed to exit plan mode`;
1277
- }
1278
- return `${theme.success('✓')} Exited plan mode`;
1279
- }
1280
- /**
1281
- * Format repo checks result
1282
- */
1283
- function formatRepoChecksResult(args, output, success) {
1284
- const checks = (args['checks']);
1285
- const checkCount = checks?.length || 0;
1286
- // Try to extract pass/fail counts
1287
- const passMatch = output.match(/(\d+)\s*pass/i);
1288
- const failMatch = output.match(/(\d+)\s*fail/i);
1289
- const passed = passMatch ? parseInt(passMatch[1] || '0', 10) : 0;
1290
- const failed = failMatch ? parseInt(failMatch[1] || '0', 10) : 0;
1291
- const statusIcon = success && failed === 0 ? theme.success('✓') : theme.error('✗');
1292
- if (passed > 0 || failed > 0) {
1293
- const counts = [];
1294
- if (passed > 0)
1295
- counts.push(theme.success(`${passed} passed`));
1296
- if (failed > 0)
1297
- counts.push(theme.error(`${failed} failed`));
1298
- return `${statusIcon} Repo checks: ${counts.join(', ')}`;
1299
- }
1300
- return `${statusIcon} Repo checks${checkCount > 0 ? ` (${checkCount} checks)` : ''} ${success ? 'passed' : 'failed'}`;
1301
- }
1302
- /**
1303
- * Format learn tool result
1304
- */
1305
- function formatLearnResult(toolName, args, output, success) {
1306
- if (!success) {
1307
- return `${theme.error('✗')} Learning failed`;
1308
- }
1309
- switch (toolName) {
1310
- case 'learn_codebase': {
1311
- const fileMatch = output.match(/(\d+)\s*file/i);
1312
- if (fileMatch) {
1313
- return `${theme.success('✓')} Learned codebase: ${fileMatch[1]} files analyzed`;
1314
- }
1315
- return `${theme.success('✓')} Codebase learned`;
1316
- }
1317
- case 'learn_file': {
1318
- const filePath = (args['file_path'] || args['path']);
1319
- if (filePath) {
1320
- return `${theme.success('✓')} Learned: ${truncatePathForDisplay(filePath, 40)}`;
1321
- }
1322
- return `${theme.success('✓')} File learned`;
1323
- }
1324
- case 'learn_topic': {
1325
- const topic = (args['topic']);
1326
- if (topic) {
1327
- return `${theme.success('✓')} Learned topic: ${topic}`;
1328
- }
1329
- return `${theme.success('✓')} Topic learned`;
1330
- }
1331
- case 'learn_summary': {
1332
- return `${theme.success('✓')} Summary generated`;
1333
- }
1334
- default:
1335
- return `${theme.success('✓')} Learning completed`;
1336
- }
1337
- }
1338
- //# sourceMappingURL=toolDisplay.js.map