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,1333 +0,0 @@
1
- /**
2
- * Unified Tool Implementations
3
- *
4
- * Complete implementation of all tools defined in the unified schema.
5
- * Single source of truth for tool executors in TypeScript.
6
- *
7
- * Principal Investigator: Bo Shang
8
- * Framework: erosolar-cli
9
- */
10
- import { readFileSync, writeFileSync, existsSync, readdirSync, statSync, mkdirSync } from 'node:fs';
11
- import { join, dirname, relative, resolve, isAbsolute } from 'node:path';
12
- import { exec } from 'node:child_process';
13
- import { promisify } from 'node:util';
14
- import { performSurgicalEdit } from '../../tools/editTools.js';
15
- const execAsync = promisify(exec);
16
- // ============================================================================
17
- // Core Tools
18
- // ============================================================================
19
- /**
20
- * Read tool - Read file contents
21
- */
22
- export function createReadTool(workingDir) {
23
- return {
24
- name: 'Read',
25
- description: 'Read file contents from the filesystem',
26
- category: 'core',
27
- cacheable: true,
28
- parameters: {
29
- type: 'object',
30
- properties: {
31
- file_path: { type: 'string', description: 'Absolute path to the file' },
32
- offset: { type: 'number', description: 'Line number to start from' },
33
- limit: { type: 'number', description: 'Number of lines to read' },
34
- },
35
- required: ['file_path'],
36
- },
37
- execute: async (args) => {
38
- const filePath = resolvePath(workingDir, args['file_path']);
39
- const offset = args['offset'] || 0;
40
- const limit = args['limit'] || 2000;
41
- if (!existsSync(filePath)) {
42
- return `Error: File not found: ${filePath}`;
43
- }
44
- try {
45
- const content = readFileSync(filePath, 'utf-8');
46
- const lines = content.split('\n');
47
- const selectedLines = lines.slice(offset, offset + limit);
48
- // Format with line numbers
49
- const numbered = selectedLines.map((line, i) => {
50
- const lineNum = offset + i + 1;
51
- return `${String(lineNum).padStart(6)}→${line}`;
52
- });
53
- return numbered.join('\n');
54
- }
55
- catch (error) {
56
- return `Error reading file: ${error}`;
57
- }
58
- },
59
- };
60
- }
61
- /**
62
- * Write tool - Write content to a file
63
- */
64
- export function createWriteTool(workingDir) {
65
- return {
66
- name: 'Write',
67
- description: 'Write content to a file (creates new file or overwrites existing). Use this for creating new files or completely replacing file contents. For making small changes to existing files, use Edit tool instead (Edit is faster and shows diffs). CRITICAL: For existing files, prefer Edit over Write to avoid accidental overwrites.',
68
- category: 'core',
69
- cacheable: false,
70
- parameters: {
71
- type: 'object',
72
- properties: {
73
- file_path: { type: 'string', description: 'Absolute path to the file to create or overwrite' },
74
- content: { type: 'string', description: 'Full content to write to the file (will replace existing content entirely)' },
75
- },
76
- required: ['file_path', 'content'],
77
- },
78
- execute: async (args) => {
79
- const filePath = resolvePath(workingDir, args['file_path']);
80
- const content = args['content'];
81
- try {
82
- const dir = dirname(filePath);
83
- if (!existsSync(dir)) {
84
- mkdirSync(dir, { recursive: true });
85
- }
86
- const existed = existsSync(filePath);
87
- const newLines = content.split('\n').length;
88
- // Safety check: Prevent accidental truncation when overwriting larger files
89
- // This catches cases where AI output was cut off mid-generation
90
- if (existed) {
91
- const existingContent = readFileSync(filePath, 'utf-8');
92
- const existingLines = existingContent.split('\n').length;
93
- // If new content is significantly smaller (less than 50% of original and at least 50 lines shorter),
94
- // this likely indicates truncation rather than intentional reduction
95
- const lineReduction = existingLines - newLines;
96
- const reductionRatio = newLines / existingLines;
97
- if (existingLines > 100 && lineReduction > 50 && reductionRatio < 0.5) {
98
- // Truncation detected - always succeed by appending missing content from original
99
- const existingLineArr = existingContent.split('\n');
100
- const newLineArr = content.split('\n');
101
- // Always append the remaining lines from original to preserve content
102
- // This ensures the file is never truncated - new content at start, original remainder preserved
103
- const mergedLines = [
104
- ...newLineArr,
105
- ...existingLineArr.slice(newLineArr.length)
106
- ];
107
- const mergedContent = mergedLines.join('\n');
108
- writeFileSync(filePath, mergedContent, 'utf-8');
109
- const preservedLines = existingLines - newLines;
110
- return `✓ Updated ${relative(workingDir, filePath)} (${mergedLines.length} lines) ` +
111
- `[Protected: preserved ${preservedLines} lines from original after truncation point]`;
112
- }
113
- }
114
- writeFileSync(filePath, content, 'utf-8');
115
- const action = existed ? 'Updated' : 'Created';
116
- return `✓ ${action} ${relative(workingDir, filePath)} (${newLines} lines)`;
117
- }
118
- catch (error) {
119
- return `Error writing file: ${error}`;
120
- }
121
- },
122
- };
123
- }
124
- /**
125
- * Edit tool - Make surgical edits to a file
126
- */
127
- export function createEditTool(workingDir) {
128
- return {
129
- name: 'Edit',
130
- description: 'Performs exact string replacements in files. CRITICAL: For existing files, ALWAYS use Read tool FIRST to get exact text, then copy it (excluding line numbers) directly to old_string. Use Edit for small changes - faster than Write and shows diffs. To CREATE new file, use empty old_string (no prior read needed). To DELETE text, use empty new_string. Edit FAILS if old_string not unique unless replace_all is true.',
131
- category: 'core',
132
- cacheable: false,
133
- parameters: {
134
- type: 'object',
135
- properties: {
136
- file_path: { type: 'string', description: 'Absolute path to the file to modify or create' },
137
- old_string: { type: 'string', description: 'Exact text to replace. Use "" to create a new file.' },
138
- new_string: {
139
- type: 'string',
140
- description: 'Replacement text. Use "" to delete the old_string. Defaults to "" when omitted.',
141
- },
142
- replace_all: { type: 'boolean', description: 'Replace all occurrences (default false)' },
143
- },
144
- required: ['file_path', 'old_string'],
145
- additionalProperties: false,
146
- },
147
- execute: async (args) => performSurgicalEdit(workingDir, args),
148
- };
149
- }
150
- /**
151
- * Bash tool - Execute shell commands
152
- */
153
- export function createBashTool(workingDir) {
154
- return {
155
- name: 'Bash',
156
- description: 'Execute shell commands in the working directory. IMPORTANT: Always provide a clear description parameter explaining what the command does. Commands timeout after 2 minutes by default (auto-extended for npm/git/docker). For long-running commands, increase timeout or use background execution. Exit code 0 = success, non-zero = failure.',
157
- category: 'core',
158
- cacheable: false,
159
- parameters: {
160
- type: 'object',
161
- properties: {
162
- command: { type: 'string', description: 'The shell command to execute (e.g., "npm test", "git status")' },
163
- timeout: { type: 'number', description: 'Timeout in milliseconds (default: 120000 = 2 minutes). Use higher for npm install/build (300000+)' },
164
- description: { type: 'string', description: 'Clear description of what this command does (e.g., "Run unit tests", "Build the project")' },
165
- },
166
- required: ['command'],
167
- },
168
- execute: async (args) => {
169
- const command = args['command'];
170
- const userTimeout = args['timeout'];
171
- // Smart timeout based on command type
172
- const getSmartTimeout = (cmd) => {
173
- const lower = cmd.toLowerCase().trim();
174
- if (/\b(npm|yarn|pnpm)\s+(install|ci|i|add|update|build|test)\b/.test(lower))
175
- return 300000;
176
- if (/\bnpx\s+create-\b/.test(lower))
177
- return 300000;
178
- if (/\bdocker\s+(build|pull|push)\b/.test(lower))
179
- return 600000;
180
- if (/\bgit\s+clone\b/.test(lower))
181
- return 180000;
182
- if (/\bpip\s+install\b/.test(lower))
183
- return 180000;
184
- return 120000;
185
- };
186
- const timeout = userTimeout ?? getSmartTimeout(command);
187
- // Enhanced safety checks
188
- const dangerousPatterns = [
189
- { pattern: /rm\s+-rf\s+[\/~]/, message: 'Dangerous recursive delete of system directories' },
190
- { pattern: />\s*\/dev\/sd/, message: 'Writing to raw disk device' },
191
- { pattern: /mkfs\./, message: 'Filesystem formatting command' },
192
- { pattern: /dd\s+if=.*of=\/dev/, message: 'Direct disk write operation' },
193
- { pattern: /:(){ :|:& };:/, message: 'Fork bomb detected' },
194
- ];
195
- for (const { pattern, message } of dangerousPatterns) {
196
- if (pattern.test(command)) {
197
- return `Error: Command blocked for safety - ${message}\n\nCommand: ${command}\n\nIf this operation is intentional, use a safer alternative or implement proper safeguards.`;
198
- }
199
- }
200
- try {
201
- const { stdout, stderr } = await execAsync(command, {
202
- cwd: workingDir,
203
- timeout,
204
- maxBuffer: 10 * 1024 * 1024, // 10MB
205
- });
206
- // Check for common error patterns even with exit code 0
207
- const output = (stdout + stderr).toLowerCase();
208
- const hasErrors = /\b(error|failed|fatal|exception)\b/i.test(output) &&
209
- !/\b0 (errors?|vulnerabilities)\b/i.test(output);
210
- if (hasErrors) {
211
- return `⚠️ Command completed but output contains errors:\n\nCommand: ${command}\n\n${stdout}${stderr ? '\n' + stderr : ''}`;
212
- }
213
- const parts = [];
214
- if (stdout)
215
- parts.push(stdout);
216
- if (stderr)
217
- parts.push(stderr);
218
- return parts.length > 0
219
- ? `✓ Command executed successfully\n\nCommand: ${command}\n\n${parts.join('\n')}`
220
- : `✓ Command executed successfully (no output)\n\nCommand: ${command}`;
221
- }
222
- catch (error) {
223
- const exitCode = error.code ?? 1;
224
- const errorOutput = [error.stdout, error.stderr, error.message].filter(Boolean).join('\n');
225
- if (error.killed) {
226
- return `❌ Command timed out after ${timeout}ms\n\nCommand: ${command}\n\nThis command exceeded the timeout limit. Try:\n1. Increase the timeout parameter (e.g., timeout: ${timeout * 2})\n2. Check if the command is waiting for input\n3. Verify the command is valid\n\nPartial output:\n${errorOutput || '(none)'}`;
227
- }
228
- return `❌ Command failed with exit code ${exitCode}\n\nCommand: ${command}\n\nError output:\n${errorOutput || '(no error details available)'}\n\nTroubleshooting:\n1. Review the error message above\n2. Verify the command syntax is correct\n3. Check if required files/dependencies exist\n4. Ensure you have necessary permissions`;
229
- }
230
- },
231
- };
232
- }
233
- /**
234
- * Glob tool - Find files matching a pattern
235
- */
236
- export function createGlobTool(workingDir) {
237
- return {
238
- name: 'Glob',
239
- description: 'Find files matching a pattern',
240
- category: 'core',
241
- cacheable: true,
242
- parameters: {
243
- type: 'object',
244
- properties: {
245
- pattern: { type: 'string', description: 'Glob pattern to match' },
246
- path: { type: 'string', description: 'Directory to search in' },
247
- },
248
- required: ['pattern'],
249
- },
250
- execute: async (args) => {
251
- const pattern = args['pattern'];
252
- const searchPath = args['path'] ? resolvePath(workingDir, args['path']) : workingDir;
253
- if (!pattern.trim()) {
254
- return 'Error: pattern must be a non-empty string';
255
- }
256
- // Warn about overly broad patterns
257
- if (['*', '.', '**/*'].includes(pattern.trim())) {
258
- return `Warning: Pattern "${pattern}" is too broad. Use a more specific pattern.`;
259
- }
260
- try {
261
- const matches = globSearch(searchPath, pattern);
262
- const relativePaths = matches.map((p) => relative(workingDir, p));
263
- if (relativePaths.length === 0) {
264
- return `No files found matching pattern: ${pattern}`;
265
- }
266
- // Limit results
267
- const limit = 50;
268
- const limited = relativePaths.slice(0, limit);
269
- const truncated = relativePaths.length > limit;
270
- let result = `${relativePaths.length} files found matching "${pattern}":\n\n${limited.join('\n')}`;
271
- if (truncated) {
272
- result += `\n\n... [${relativePaths.length - limit} more files truncated]`;
273
- }
274
- return result;
275
- }
276
- catch (error) {
277
- return `Error during glob search: ${error}`;
278
- }
279
- },
280
- };
281
- }
282
- /**
283
- * Grep tool - Search file contents with regex
284
- */
285
- export function createGrepTool(workingDir) {
286
- return {
287
- name: 'Grep',
288
- description: 'Search file contents with regex',
289
- category: 'core',
290
- cacheable: true,
291
- parameters: {
292
- type: 'object',
293
- properties: {
294
- pattern: { type: 'string', description: 'Regex pattern to search for' },
295
- path: { type: 'string', description: 'File or directory to search' },
296
- output_mode: {
297
- type: 'string',
298
- enum: ['content', 'files_with_matches', 'count'],
299
- description: 'Output mode',
300
- },
301
- },
302
- required: ['pattern'],
303
- },
304
- execute: async (args) => {
305
- const pattern = args['pattern'];
306
- const searchPath = args['path'] ? resolvePath(workingDir, args['path']) : workingDir;
307
- const outputMode = args['output_mode'] || 'files_with_matches';
308
- const caseInsensitive = args['-i'] === true;
309
- try {
310
- const flags = caseInsensitive ? 'gi' : 'g';
311
- const regex = new RegExp(pattern, flags);
312
- const matches = grepSearch(searchPath, regex);
313
- if (matches.length === 0) {
314
- return 'No matches found.';
315
- }
316
- if (outputMode === 'files_with_matches') {
317
- const files = Array.from(new Set(matches.map((m) => m.file)));
318
- return files.map((f) => relative(workingDir, f)).join('\n');
319
- }
320
- if (outputMode === 'count') {
321
- const counts = new Map();
322
- for (const match of matches) {
323
- counts.set(match.file, (counts.get(match.file) || 0) + 1);
324
- }
325
- return Array.from(counts.entries())
326
- .map(([file, count]) => `${count}:${relative(workingDir, file)}`)
327
- .join('\n');
328
- }
329
- // content mode
330
- const limit = 50;
331
- const limited = matches.slice(0, limit);
332
- const result = limited
333
- .map((m) => `${relative(workingDir, m.file)}:${m.line}:${m.content}`)
334
- .join('\n');
335
- if (matches.length > limit) {
336
- return result + `\n\n... [${matches.length - limit} more matches truncated]`;
337
- }
338
- return result;
339
- }
340
- catch (error) {
341
- return `Error during grep search: ${error}`;
342
- }
343
- },
344
- };
345
- }
346
- // ============================================================================
347
- // Web Tools
348
- // ============================================================================
349
- /**
350
- * WebSearch tool - Search the web
351
- */
352
- export function createWebSearchTool() {
353
- return {
354
- name: 'WebSearch',
355
- description: 'Search the web for information',
356
- category: 'web',
357
- cacheable: true,
358
- parameters: {
359
- type: 'object',
360
- properties: {
361
- query: { type: 'string', description: 'Search query' },
362
- },
363
- required: ['query'],
364
- },
365
- execute: async (args) => {
366
- const query = args['query'];
367
- // Placeholder - actual implementation would use a search API
368
- return `[WebSearch] Would search for: "${query}"\n\nNote: WebSearch requires API configuration.`;
369
- },
370
- };
371
- }
372
- /**
373
- * WebFetch tool - Fetch and analyze web page content
374
- */
375
- export function createWebFetchTool() {
376
- return {
377
- name: 'WebFetch',
378
- description: 'Fetch and analyze web page content',
379
- category: 'web',
380
- cacheable: true,
381
- parameters: {
382
- type: 'object',
383
- properties: {
384
- url: { type: 'string', description: 'URL to fetch' },
385
- prompt: { type: 'string', description: 'What to extract from the page' },
386
- },
387
- required: ['url', 'prompt'],
388
- },
389
- execute: async (args) => {
390
- const url = args['url'];
391
- const prompt = args['prompt'];
392
- // Placeholder - actual implementation would fetch and process the URL
393
- return `[WebFetch] Would fetch: ${url}\nPrompt: ${prompt}\n\nNote: WebFetch requires network access.`;
394
- },
395
- };
396
- }
397
- // ============================================================================
398
- // Coding Tools
399
- // ============================================================================
400
- /**
401
- * AnalyzeComplexity tool - Analyze code complexity
402
- */
403
- export function createAnalyzeComplexityTool() {
404
- return {
405
- name: 'AnalyzeComplexity',
406
- description: 'Analyze code complexity metrics',
407
- category: 'coding',
408
- cacheable: true,
409
- parameters: {
410
- type: 'object',
411
- properties: {
412
- code: { type: 'string', description: 'Code to analyze' },
413
- language: { type: 'string', description: 'Programming language' },
414
- },
415
- required: ['code'],
416
- },
417
- execute: async (args) => {
418
- const code = args['code'];
419
- const language = args['language'] || 'unknown';
420
- const lines = code.split('\n');
421
- const nonEmpty = lines.filter((l) => l.trim().length > 0);
422
- const functions = (code.match(/function\s+\w+|const\s+\w+\s*=\s*(?:async\s*)?\(/g) || []).length;
423
- const loops = (code.match(/\b(for|while|do)\b/g) || []).length;
424
- const conditions = (code.match(/\b(if|else|switch|case|\?)\b/g) || []).length;
425
- return `Code Complexity Analysis (${language}):
426
- - Total lines: ${lines.length}
427
- - Non-empty lines: ${nonEmpty.length}
428
- - Functions/methods: ${functions}
429
- - Loops: ${loops}
430
- - Conditionals: ${conditions}
431
- - Estimated cyclomatic complexity: ${1 + loops + conditions}`;
432
- },
433
- };
434
- }
435
- /**
436
- * FindDependencies tool - Find imports and dependencies
437
- */
438
- export function createFindDependenciesTool() {
439
- return {
440
- name: 'FindDependencies',
441
- description: 'Find imports and dependencies in code',
442
- category: 'coding',
443
- cacheable: true,
444
- parameters: {
445
- type: 'object',
446
- properties: {
447
- code: { type: 'string', description: 'Code to analyze' },
448
- language: { type: 'string', description: 'Programming language' },
449
- },
450
- required: ['code'],
451
- },
452
- execute: async (args) => {
453
- const code = args['code'];
454
- const language = args['language'] || 'unknown';
455
- const imports = [];
456
- // JavaScript/TypeScript imports
457
- const jsImports = code.match(/import\s+.*?from\s+['"]([^'"]+)['"]/g) || [];
458
- const requireImports = code.match(/require\s*\(\s*['"]([^'"]+)['"]\s*\)/g) || [];
459
- imports.push(...jsImports, ...requireImports);
460
- // Python imports
461
- const pyImports = code.match(/(?:from\s+\S+\s+)?import\s+\S+/g) || [];
462
- imports.push(...pyImports);
463
- if (imports.length === 0) {
464
- return `No dependencies found in ${language} code.`;
465
- }
466
- return `Dependencies found (${language}):\n${imports.join('\n')}`;
467
- },
468
- };
469
- }
470
- /**
471
- * GenerateDocstring tool - Generate documentation for code
472
- */
473
- export function createGenerateDocstringTool() {
474
- return {
475
- name: 'GenerateDocstring',
476
- description: 'Generate documentation for code',
477
- category: 'coding',
478
- cacheable: false,
479
- parameters: {
480
- type: 'object',
481
- properties: {
482
- code: { type: 'string', description: 'Code to document' },
483
- style: { type: 'string', enum: ['google', 'numpy', 'sphinx', 'jsdoc'], description: 'Doc style' },
484
- },
485
- required: ['code'],
486
- },
487
- execute: async (args) => {
488
- const code = args['code'];
489
- const style = args['style'] || 'google';
490
- // Extract function signature if present
491
- const funcMatch = code.match(/(?:async\s+)?function\s+(\w+)\s*\(([^)]*)\)/);
492
- const arrowMatch = code.match(/(?:const|let)\s+(\w+)\s*=\s*(?:async\s*)?\(([^)]*)\)/);
493
- const match = funcMatch || arrowMatch;
494
- if (!match) {
495
- return 'Could not detect function signature. Provide a function to document.';
496
- }
497
- const [, name, params] = match;
498
- const funcName = name || 'function';
499
- const paramStr = params || '';
500
- const paramList = paramStr
501
- .split(',')
502
- .map((p) => p.trim())
503
- .filter(Boolean);
504
- if (style === 'jsdoc') {
505
- const paramDocs = paramList.map((p) => ` * @param {*} ${(p.split(':')[0] || '').trim()} - Description`);
506
- return `/**
507
- * ${funcName} - Description of what this function does
508
- *
509
- ${paramDocs.join('\n')}
510
- * @returns {*} Description of return value
511
- */`;
512
- }
513
- // Google style (Python)
514
- const paramDocs = paramList.map((p) => ` ${(p.split(':')[0] || '').trim()}: Description`);
515
- return `"""${funcName} - Description of what this function does
516
-
517
- Args:
518
- ${paramDocs.join('\n')}
519
-
520
- Returns:
521
- Description of return value
522
- """`;
523
- },
524
- };
525
- }
526
- /**
527
- * SuggestRefactorings tool - Suggest code refactoring improvements
528
- */
529
- export function createSuggestRefactoringsTool() {
530
- return {
531
- name: 'SuggestRefactorings',
532
- description: 'Suggest code refactoring improvements',
533
- category: 'coding',
534
- cacheable: true,
535
- parameters: {
536
- type: 'object',
537
- properties: {
538
- code: { type: 'string', description: 'Code to analyze' },
539
- focus: { type: 'array', items: { type: 'string' }, description: 'Areas to focus on' },
540
- },
541
- required: ['code'],
542
- },
543
- execute: async (args) => {
544
- const code = args['code'];
545
- const suggestions = [];
546
- // Check for long functions
547
- const lines = code.split('\n');
548
- if (lines.length > 50) {
549
- suggestions.push('- Consider breaking this into smaller functions (>50 lines)');
550
- }
551
- // Check for deeply nested code
552
- const maxIndent = Math.max(...lines.map((l) => l.match(/^\s*/)?.[0].length || 0));
553
- if (maxIndent > 16) {
554
- suggestions.push('- Reduce nesting depth - consider early returns or extracting functions');
555
- }
556
- // Check for magic numbers
557
- if (/[^a-zA-Z0-9_]\d{2,}[^a-zA-Z0-9_]/.test(code)) {
558
- suggestions.push('- Extract magic numbers into named constants');
559
- }
560
- // Check for repeated code patterns
561
- if ((code.match(/console\.log/g) || []).length > 3) {
562
- suggestions.push('- Consider using a proper logging framework');
563
- }
564
- if (suggestions.length === 0) {
565
- return 'No immediate refactoring suggestions. Code looks clean!';
566
- }
567
- return `Refactoring Suggestions:\n${suggestions.join('\n')}`;
568
- },
569
- };
570
- }
571
- /**
572
- * GenerateTestStub tool - Generate test stubs
573
- */
574
- export function createGenerateTestStubTool() {
575
- return {
576
- name: 'GenerateTestStub',
577
- description: 'Generate test stubs for code',
578
- category: 'coding',
579
- cacheable: false,
580
- parameters: {
581
- type: 'object',
582
- properties: {
583
- code: { type: 'string', description: 'Code to test' },
584
- framework: { type: 'string', description: 'Test framework' },
585
- },
586
- required: ['code'],
587
- },
588
- execute: async (args) => {
589
- const code = args['code'];
590
- const framework = args['framework'] || 'jest';
591
- // Extract function names
592
- const functions = code.match(/(?:async\s+)?function\s+(\w+)|(?:const|let)\s+(\w+)\s*=\s*(?:async\s*)?\(/g) || [];
593
- const names = functions
594
- .map((f) => f.match(/function\s+(\w+)|(?:const|let)\s+(\w+)/)?.[1] || f.match(/(?:const|let)\s+(\w+)/)?.[1])
595
- .filter(Boolean);
596
- if (names.length === 0) {
597
- return 'No functions found to generate tests for.';
598
- }
599
- if (framework === 'pytest') {
600
- return names
601
- .map((name) => `def test_${name}():
602
- """Test ${name} function."""
603
- # Arrange
604
-
605
- # Act
606
- result = ${name}()
607
-
608
- # Assert
609
- assert result is not None`)
610
- .join('\n\n');
611
- }
612
- // Jest style
613
- return `describe('Module Tests', () => {
614
- ${names
615
- .map((name) => ` describe('${name}', () => {
616
- it('should work correctly', () => {
617
- // Arrange
618
-
619
- // Act
620
- const result = ${name}();
621
-
622
- // Assert
623
- expect(result).toBeDefined();
624
- });
625
- });`)
626
- .join('\n\n')}
627
- });`;
628
- },
629
- };
630
- }
631
- // ============================================================================
632
- // Security Tools
633
- // ============================================================================
634
- /**
635
- * DependencyAudit tool - Audit dependencies for vulnerabilities
636
- */
637
- export function createDependencyAuditTool(workingDir) {
638
- return {
639
- name: 'DependencyAudit',
640
- description: 'Audit dependencies for vulnerabilities',
641
- category: 'security',
642
- cacheable: true,
643
- requiresAuth: true,
644
- parameters: {
645
- type: 'object',
646
- properties: {
647
- packageFile: { type: 'string', description: 'Path to package file' },
648
- severityThreshold: {
649
- type: 'string',
650
- enum: ['critical', 'high', 'medium', 'low'],
651
- description: 'Minimum severity to report',
652
- },
653
- },
654
- required: ['packageFile'],
655
- },
656
- execute: async (args) => {
657
- const packageFile = resolvePath(workingDir, args['packageFile']);
658
- // severityThreshold used for filtering results (implementation uses npm/pip audit defaults)
659
- if (!existsSync(packageFile)) {
660
- return `Error: Package file not found: ${packageFile}`;
661
- }
662
- // Determine package type and run appropriate audit
663
- const fileName = packageFile.split('/').pop() || '';
664
- if (fileName === 'package.json' || fileName === 'package-lock.json') {
665
- try {
666
- const { stdout } = await execAsync('npm audit --json', { cwd: dirname(packageFile) });
667
- return `NPM Audit Results:\n${stdout}`;
668
- }
669
- catch (error) {
670
- return `NPM Audit:\n${error.stdout || error.message}`;
671
- }
672
- }
673
- if (fileName === 'requirements.txt' || fileName === 'Pipfile') {
674
- return `[DependencyAudit] Python audit for ${fileName}\nNote: Run 'pip-audit' or 'safety check' manually.`;
675
- }
676
- return `[DependencyAudit] Unknown package format: ${fileName}`;
677
- },
678
- };
679
- }
680
- /**
681
- * CodeSecurityScan tool - Scan code for security vulnerabilities
682
- */
683
- export function createCodeSecurityScanTool() {
684
- return {
685
- name: 'CodeSecurityScan',
686
- description: 'Scan code for security vulnerabilities',
687
- category: 'security',
688
- cacheable: true,
689
- requiresAuth: true,
690
- parameters: {
691
- type: 'object',
692
- properties: {
693
- code: { type: 'string', description: 'Code to scan' },
694
- language: { type: 'string', description: 'Programming language' },
695
- },
696
- required: ['code', 'language'],
697
- },
698
- execute: async (args) => {
699
- const code = args['code'];
700
- const language = args['language'];
701
- const findings = [];
702
- // Common vulnerability patterns
703
- const patterns = [
704
- { regex: /eval\s*\(/, issue: 'Dangerous use of eval()' },
705
- { regex: /innerHTML\s*=/, issue: 'Potential XSS via innerHTML' },
706
- { regex: /document\.write/, issue: 'Potential XSS via document.write' },
707
- { regex: /exec\s*\(/, issue: 'Command injection risk via exec()' },
708
- { regex: /shell\s*=\s*True/, issue: 'Shell injection risk' },
709
- { regex: /password\s*=\s*["'][^"']+["']/, issue: 'Hardcoded password detected' },
710
- { regex: /api[_-]?key\s*=\s*["'][^"']+["']/i, issue: 'Hardcoded API key detected' },
711
- { regex: /SELECT.*FROM.*WHERE.*\+/, issue: 'Potential SQL injection' },
712
- { regex: /\.readFile\s*\(.*\+/, issue: 'Path traversal risk' },
713
- ];
714
- for (const { regex, issue } of patterns) {
715
- if (regex.test(code)) {
716
- findings.push(`- ${issue}`);
717
- }
718
- }
719
- if (findings.length === 0) {
720
- return `Security scan complete (${language}): No vulnerabilities detected.`;
721
- }
722
- return `Security Findings (${language}):\n${findings.join('\n')}\n\nReview and address these issues.`;
723
- },
724
- };
725
- }
726
- /**
727
- * AnalyzeAttackSurface tool - Analyze code attack surface
728
- */
729
- export function createAnalyzeAttackSurfaceTool() {
730
- return {
731
- name: 'AnalyzeAttackSurface',
732
- description: 'Analyze code attack surface',
733
- category: 'security',
734
- cacheable: true,
735
- requiresAuth: true,
736
- parameters: {
737
- type: 'object',
738
- properties: {
739
- code: { type: 'string', description: 'Code to analyze' },
740
- context: { type: 'string', enum: ['web_app', 'api', 'cli', 'library'], description: 'App context' },
741
- },
742
- required: ['code'],
743
- },
744
- execute: async (args) => {
745
- const code = args['code'];
746
- const context = args['context'] || 'unknown';
747
- const surfaces = [];
748
- // Detect input points
749
- if (/req\.(body|params|query|headers)/.test(code))
750
- surfaces.push('- HTTP request parameters');
751
- if (/process\.argv/.test(code))
752
- surfaces.push('- Command line arguments');
753
- if (/process\.env/.test(code))
754
- surfaces.push('- Environment variables');
755
- if (/readFile|createReadStream/.test(code))
756
- surfaces.push('- File system reads');
757
- if (/fetch\(|axios|http\.get/.test(code))
758
- surfaces.push('- External HTTP requests');
759
- if (/\.query\(|\.execute\(/.test(code))
760
- surfaces.push('- Database queries');
761
- if (surfaces.length === 0) {
762
- return `Attack surface analysis (${context}): No obvious input points detected.`;
763
- }
764
- return `Attack Surface Analysis (${context}):\n\nInput Points:\n${surfaces.join('\n')}\n\nRecommendation: Validate and sanitize all inputs.`;
765
- },
766
- };
767
- }
768
- // ============================================================================
769
- // Alpha Zero Tools
770
- // ============================================================================
771
- /**
772
- * AlphaZeroEvaluate tool - Evaluate code quality
773
- */
774
- export function createAlphaZeroEvaluateTool() {
775
- return {
776
- name: 'AlphaZeroEvaluate',
777
- description: 'Evaluate code quality with Alpha Zero 2 metrics',
778
- category: 'alpha_zero',
779
- cacheable: true,
780
- parameters: {
781
- type: 'object',
782
- properties: {
783
- code: { type: 'string', description: 'Code to evaluate' },
784
- },
785
- required: ['code'],
786
- },
787
- execute: async (args) => {
788
- const code = args['code'];
789
- const lines = code.split('\n');
790
- // Calculate metrics
791
- const metrics = {
792
- codeQuality: Math.min(100, Math.max(0, 100 - (lines.length > 100 ? 20 : 0))),
793
- algorithmEfficiency: 75 + Math.random() * 25,
794
- errorHandling: code.includes('try') && code.includes('catch') ? 85 : 50,
795
- documentation: (code.match(/\/\*\*|\/\/|#.*|"""/g) || []).length > 3 ? 80 : 40,
796
- maintainability: lines.length < 50 ? 90 : lines.length < 100 ? 70 : 50,
797
- security: code.includes('eval') || code.includes('exec') ? 30 : 80,
798
- };
799
- const overall = Object.values(metrics).reduce((a, b) => a + b, 0) / Object.keys(metrics).length;
800
- return `Alpha Zero 2 Code Evaluation:
801
-
802
- Overall Score: ${overall.toFixed(1)}/100
803
-
804
- Metrics:
805
- - Code Quality: ${metrics.codeQuality.toFixed(1)}
806
- - Algorithm Efficiency: ${metrics.algorithmEfficiency.toFixed(1)}
807
- - Error Handling: ${metrics.errorHandling.toFixed(1)}
808
- - Documentation: ${metrics.documentation.toFixed(1)}
809
- - Maintainability: ${metrics.maintainability.toFixed(1)}
810
- - Security: ${metrics.security.toFixed(1)}`;
811
- },
812
- };
813
- }
814
- /**
815
- * AlphaZeroTournament tool - Run competitive tournament
816
- */
817
- export function createAlphaZeroTournamentTool() {
818
- return {
819
- name: 'AlphaZeroTournament',
820
- description: 'Run a competitive tournament between agents',
821
- category: 'alpha_zero',
822
- cacheable: false,
823
- parameters: {
824
- type: 'object',
825
- properties: {
826
- taskPrompts: { type: 'array', items: { type: 'string' }, description: 'Task prompts' },
827
- numRounds: { type: 'integer', description: 'Number of rounds' },
828
- },
829
- required: ['taskPrompts'],
830
- },
831
- execute: async (args) => {
832
- const prompts = args['taskPrompts'];
833
- const rounds = args['numRounds'] || 3;
834
- return `[AlphaZeroTournament] Would run tournament:
835
- - Prompts: ${prompts.length}
836
- - Rounds: ${rounds}
837
-
838
- Note: Tournament execution requires agent configuration.`;
839
- },
840
- };
841
- }
842
- /**
843
- * AlphaZeroIntrospect tool - Analyze agent performance
844
- */
845
- export function createAlphaZeroIntrospectTool() {
846
- return {
847
- name: 'AlphaZeroIntrospect',
848
- description: 'Analyze agent performance and get improvement suggestions',
849
- category: 'alpha_zero',
850
- cacheable: false,
851
- parameters: {
852
- type: 'object',
853
- properties: {},
854
- },
855
- execute: async () => {
856
- return `[AlphaZeroIntrospect] Agent Performance Analysis
857
-
858
- Current session metrics would be displayed here.
859
- Note: Introspection requires active session tracking.`;
860
- },
861
- };
862
- }
863
- /**
864
- * AlphaZeroHistory tool - Get historical competition data
865
- */
866
- export function createAlphaZeroHistoryTool() {
867
- return {
868
- name: 'AlphaZeroHistory',
869
- description: 'Get historical competition data',
870
- category: 'alpha_zero',
871
- cacheable: true,
872
- parameters: {
873
- type: 'object',
874
- properties: {},
875
- },
876
- execute: async () => {
877
- return `[AlphaZeroHistory] Historical Data
878
-
879
- No historical data available in current session.
880
- Note: History requires persistent storage configuration.`;
881
- },
882
- };
883
- }
884
- /**
885
- * AlphaZeroMetrics tool - Get comprehensive metrics
886
- */
887
- export function createAlphaZeroMetricsTool() {
888
- return {
889
- name: 'AlphaZeroMetrics',
890
- description: 'Get comprehensive performance metrics',
891
- category: 'alpha_zero',
892
- cacheable: false,
893
- parameters: {
894
- type: 'object',
895
- properties: {
896
- timeframe: {
897
- type: 'string',
898
- enum: ['hour', 'day', 'week', 'month', 'all'],
899
- description: 'Time range',
900
- },
901
- includeTrends: { type: 'boolean', description: 'Include trend analysis' },
902
- },
903
- },
904
- execute: async (args) => {
905
- const timeframe = args['timeframe'] || 'all';
906
- const includeTrends = args['includeTrends'] === true;
907
- return `[AlphaZeroMetrics] Performance Metrics (${timeframe})
908
-
909
- Metrics collection would be displayed here.
910
- Include trends: ${includeTrends}
911
-
912
- Note: Requires metrics collection to be enabled.`;
913
- },
914
- };
915
- }
916
- // ============================================================================
917
- // Utility Functions
918
- // ============================================================================
919
- function resolvePath(workingDir, path) {
920
- if (!path || typeof path !== 'string') {
921
- throw new Error('Path must be a non-empty string');
922
- }
923
- const trimmed = path.trim();
924
- return isAbsolute(trimmed) ? trimmed : resolve(workingDir, trimmed);
925
- }
926
- const IGNORED_DIRS = new Set([
927
- '.git',
928
- 'node_modules',
929
- 'dist',
930
- '.next',
931
- 'build',
932
- 'coverage',
933
- '__pycache__',
934
- '.pytest_cache',
935
- '.venv',
936
- 'venv',
937
- ]);
938
- function globSearch(dir, pattern) {
939
- const results = [];
940
- const regex = globToRegex(pattern);
941
- function search(currentDir) {
942
- try {
943
- const entries = readdirSync(currentDir, { withFileTypes: true });
944
- for (const entry of entries) {
945
- if (IGNORED_DIRS.has(entry.name))
946
- continue;
947
- const fullPath = join(currentDir, entry.name);
948
- if (entry.isDirectory()) {
949
- search(fullPath);
950
- }
951
- else if (regex.test(fullPath)) {
952
- results.push(fullPath);
953
- }
954
- }
955
- }
956
- catch {
957
- // Ignore permission errors
958
- }
959
- }
960
- search(dir);
961
- return results;
962
- }
963
- function globToRegex(pattern) {
964
- const escaped = pattern
965
- .replace(/\./g, '\\.')
966
- .replace(/\*\*/g, '.*')
967
- .replace(/\*/g, '[^/]*')
968
- .replace(/\?/g, '.');
969
- return new RegExp(escaped + '$');
970
- }
971
- function grepSearch(dir, regex) {
972
- const results = [];
973
- function search(currentPath) {
974
- try {
975
- const stats = statSync(currentPath);
976
- if (stats.isDirectory()) {
977
- const entries = readdirSync(currentPath, { withFileTypes: true });
978
- for (const entry of entries) {
979
- if (IGNORED_DIRS.has(entry.name))
980
- continue;
981
- search(join(currentPath, entry.name));
982
- }
983
- }
984
- else if (stats.isFile()) {
985
- try {
986
- const content = readFileSync(currentPath, 'utf-8');
987
- const lines = content.split('\n');
988
- for (let i = 0; i < lines.length; i++) {
989
- const line = lines[i];
990
- if (line !== undefined && regex.test(line)) {
991
- results.push({ file: currentPath, line: i + 1, content: line });
992
- }
993
- }
994
- }
995
- catch {
996
- // Skip binary or unreadable files
997
- }
998
- }
999
- }
1000
- catch {
1001
- // Ignore permission errors
1002
- }
1003
- }
1004
- search(dir);
1005
- return results;
1006
- }
1007
- // ============================================================================
1008
- // Intelligence Tools
1009
- // ============================================================================
1010
- /**
1011
- * Intelligence Analyze - Run code analysis
1012
- */
1013
- export function createIntelligenceAnalyzeTool(workingDir) {
1014
- return {
1015
- name: 'IntelligenceAnalyze',
1016
- description: 'Analyze codebase for issues, patterns, and metrics',
1017
- category: 'intelligence',
1018
- cacheable: true,
1019
- parameters: {
1020
- type: 'object',
1021
- properties: {
1022
- path: { type: 'string', description: 'Path to analyze' },
1023
- includeMetrics: { type: 'boolean', description: 'Include code metrics' },
1024
- severity: { type: 'string', description: 'Minimum severity level' },
1025
- },
1026
- },
1027
- execute: async (args) => {
1028
- try {
1029
- const { CodeIntelligenceEngine } = await import('../../intelligence/index.js');
1030
- const targetPath = resolvePath(workingDir, args['path'] || '.');
1031
- const engine = new CodeIntelligenceEngine(targetPath);
1032
- const result = await engine.analyze();
1033
- const severityFilter = args['severity'] || 'all';
1034
- let filteredIssues = result.issues;
1035
- if (severityFilter !== 'all') {
1036
- const severityOrder = ['critical', 'high', 'medium', 'low', 'info'];
1037
- const minIndex = severityOrder.indexOf(severityFilter);
1038
- filteredIssues = result.issues.filter(i => severityOrder.indexOf(i.severity) <= minIndex);
1039
- }
1040
- return JSON.stringify({
1041
- files: result.files,
1042
- linesOfCode: result.linesOfCode,
1043
- issues: filteredIssues.length,
1044
- metrics: args['includeMetrics'] ? result.metrics : undefined,
1045
- topIssues: filteredIssues.slice(0, 10).map(i => ({
1046
- file: i.file,
1047
- line: i.line,
1048
- severity: i.severity,
1049
- message: i.message,
1050
- })),
1051
- }, null, 2);
1052
- }
1053
- catch (error) {
1054
- return `Error: ${error instanceof Error ? error.message : String(error)}`;
1055
- }
1056
- },
1057
- };
1058
- }
1059
- /**
1060
- * Intelligence Refactor - Find and apply refactorings
1061
- */
1062
- export function createIntelligenceRefactorTool(workingDir) {
1063
- return {
1064
- name: 'IntelligenceRefactor',
1065
- description: 'Find and optionally apply refactoring opportunities',
1066
- category: 'intelligence',
1067
- cacheable: false,
1068
- parameters: {
1069
- type: 'object',
1070
- properties: {
1071
- path: { type: 'string', description: 'Path to analyze' },
1072
- autoApply: { type: 'boolean', description: 'Auto-apply safe refactorings' },
1073
- riskLevel: { type: 'string', description: 'Max risk level' },
1074
- },
1075
- },
1076
- execute: async (args) => {
1077
- try {
1078
- const { RefactoringEngine } = await import('../../intelligence/index.js');
1079
- const targetPath = resolvePath(workingDir, args['path'] || '.');
1080
- const engine = new RefactoringEngine(targetPath);
1081
- const opportunities = engine.findOpportunities();
1082
- const riskLevel = args['riskLevel'] || 'safe';
1083
- const riskOrder = ['safe', 'low', 'medium', 'high'];
1084
- const maxRiskIndex = riskOrder.indexOf(riskLevel);
1085
- const filtered = opportunities.filter(o => riskOrder.indexOf(o.risk) <= maxRiskIndex);
1086
- let applied = 0;
1087
- if (args['autoApply'] && riskLevel === 'safe') {
1088
- const safeOps = filtered.filter(o => o.risk === 'safe');
1089
- const result = engine.applySafeRefactorings(safeOps);
1090
- applied = result.changes.length;
1091
- }
1092
- return JSON.stringify({
1093
- totalOpportunities: opportunities.length,
1094
- filtered: filtered.length,
1095
- applied,
1096
- opportunities: filtered.slice(0, 10).map(o => ({
1097
- type: o.type,
1098
- file: o.file,
1099
- line: o.line,
1100
- description: o.description,
1101
- risk: o.risk,
1102
- })),
1103
- }, null, 2);
1104
- }
1105
- catch (error) {
1106
- return `Error: ${error instanceof Error ? error.message : String(error)}`;
1107
- }
1108
- },
1109
- };
1110
- }
1111
- /**
1112
- * Intelligence Document - Generate documentation
1113
- */
1114
- export function createIntelligenceDocumentTool(workingDir) {
1115
- return {
1116
- name: 'IntelligenceDocument',
1117
- description: 'Generate documentation from code analysis',
1118
- category: 'intelligence',
1119
- cacheable: true,
1120
- parameters: {
1121
- type: 'object',
1122
- properties: {
1123
- path: { type: 'string', description: 'Path to document' },
1124
- format: { type: 'string', description: 'Output format' },
1125
- includeArchitecture: { type: 'boolean', description: 'Include architecture' },
1126
- },
1127
- },
1128
- execute: async (args) => {
1129
- try {
1130
- const { DocGenerator } = await import('../../intelligence/index.js');
1131
- const targetPath = resolvePath(workingDir, args['path'] || '.');
1132
- const generator = new DocGenerator(targetPath);
1133
- const projectDoc = generator.generateProjectDoc();
1134
- const format = args['format'] || 'markdown';
1135
- if (format === 'json') {
1136
- return JSON.stringify(projectDoc, null, 2);
1137
- }
1138
- return generator.generateMarkdown(projectDoc);
1139
- }
1140
- catch (error) {
1141
- return `Error: ${error instanceof Error ? error.message : String(error)}`;
1142
- }
1143
- },
1144
- };
1145
- }
1146
- /**
1147
- * Intelligence Test - Generate test suites
1148
- */
1149
- export function createIntelligenceTestTool(workingDir) {
1150
- return {
1151
- name: 'IntelligenceTest',
1152
- description: 'Generate test suites from code analysis',
1153
- category: 'intelligence',
1154
- cacheable: false,
1155
- parameters: {
1156
- type: 'object',
1157
- properties: {
1158
- path: { type: 'string', description: 'Path to generate tests for' },
1159
- framework: { type: 'string', description: 'Test framework' },
1160
- includeEdgeCases: { type: 'boolean', description: 'Include edge cases' },
1161
- },
1162
- },
1163
- execute: async (args) => {
1164
- try {
1165
- const { TestGenerator } = await import('../../intelligence/index.js');
1166
- const targetPath = resolvePath(workingDir, args['path'] || '.');
1167
- const generator = new TestGenerator(targetPath);
1168
- const result = generator.generateTests();
1169
- return JSON.stringify({
1170
- suites: result.suites.length,
1171
- testCases: result.suites.reduce((sum, s) => sum + s.testCases.length, 0),
1172
- coverage: result.coverage,
1173
- files: result.suites.map(s => s.file),
1174
- }, null, 2);
1175
- }
1176
- catch (error) {
1177
- return `Error: ${error instanceof Error ? error.message : String(error)}`;
1178
- }
1179
- },
1180
- };
1181
- }
1182
- /**
1183
- * Intelligence Full - Run complete intelligence suite
1184
- */
1185
- export function createIntelligenceFullTool(workingDir) {
1186
- return {
1187
- name: 'IntelligenceFull',
1188
- description: 'Run full intelligence suite',
1189
- category: 'intelligence',
1190
- cacheable: false,
1191
- parameters: {
1192
- type: 'object',
1193
- properties: {
1194
- path: { type: 'string', description: 'Path to analyze' },
1195
- autoFix: { type: 'boolean', description: 'Auto-apply fixes' },
1196
- outputDir: { type: 'string', description: 'Output directory' },
1197
- },
1198
- },
1199
- execute: async (args) => {
1200
- try {
1201
- const { CodeIntelligenceSuite } = await import('../../intelligence/index.js');
1202
- const targetPath = resolvePath(workingDir, args['path'] || '.');
1203
- const outputDir = args['outputDir'] ? resolvePath(workingDir, args['outputDir']) : undefined;
1204
- const suite = new CodeIntelligenceSuite({
1205
- workingDir: targetPath,
1206
- enableAutoFix: !!args['autoFix'],
1207
- generateTests: true,
1208
- generateDocs: true,
1209
- outputDir,
1210
- });
1211
- const report = await suite.runFullAnalysis();
1212
- return suite.formatSummary(report);
1213
- }
1214
- catch (error) {
1215
- return `Error: ${error instanceof Error ? error.message : String(error)}`;
1216
- }
1217
- },
1218
- };
1219
- }
1220
- // ============================================================================
1221
- // Suite Factory
1222
- // ============================================================================
1223
- /**
1224
- * Create the complete unified tool suite
1225
- */
1226
- export function createUnifiedToolSuite(workingDir) {
1227
- return {
1228
- name: 'unified',
1229
- version: '2.0.0',
1230
- description: 'Complete unified tool suite for erosolar-cli',
1231
- tools: [
1232
- // Core tools
1233
- createReadTool(workingDir),
1234
- createWriteTool(workingDir),
1235
- createEditTool(workingDir),
1236
- createBashTool(workingDir),
1237
- createGlobTool(workingDir),
1238
- createGrepTool(workingDir),
1239
- // Web tools
1240
- createWebSearchTool(),
1241
- createWebFetchTool(),
1242
- // Coding tools
1243
- createAnalyzeComplexityTool(),
1244
- createFindDependenciesTool(),
1245
- createGenerateDocstringTool(),
1246
- createSuggestRefactoringsTool(),
1247
- createGenerateTestStubTool(),
1248
- // Security tools
1249
- createDependencyAuditTool(workingDir),
1250
- createCodeSecurityScanTool(),
1251
- createAnalyzeAttackSurfaceTool(),
1252
- // Alpha Zero tools
1253
- createAlphaZeroEvaluateTool(),
1254
- createAlphaZeroTournamentTool(),
1255
- createAlphaZeroIntrospectTool(),
1256
- createAlphaZeroHistoryTool(),
1257
- createAlphaZeroMetricsTool(),
1258
- // Intelligence tools
1259
- createIntelligenceAnalyzeTool(workingDir),
1260
- createIntelligenceRefactorTool(workingDir),
1261
- createIntelligenceDocumentTool(workingDir),
1262
- createIntelligenceTestTool(workingDir),
1263
- createIntelligenceFullTool(workingDir),
1264
- ],
1265
- };
1266
- }
1267
- /**
1268
- * Create individual tool suites by category
1269
- */
1270
- export function createCoreToolSuite(workingDir) {
1271
- return {
1272
- name: 'core',
1273
- version: '2.0.0',
1274
- description: 'Core file and system tools',
1275
- tools: [
1276
- createReadTool(workingDir),
1277
- createWriteTool(workingDir),
1278
- createEditTool(workingDir),
1279
- createBashTool(workingDir),
1280
- createGlobTool(workingDir),
1281
- createGrepTool(workingDir),
1282
- ],
1283
- };
1284
- }
1285
- export function createWebToolSuite() {
1286
- return {
1287
- name: 'web',
1288
- version: '2.0.0',
1289
- description: 'Web search and fetch tools',
1290
- tools: [createWebSearchTool(), createWebFetchTool()],
1291
- };
1292
- }
1293
- export function createCodingToolSuite() {
1294
- return {
1295
- name: 'coding',
1296
- version: '2.0.0',
1297
- description: 'Code analysis and generation tools',
1298
- tools: [
1299
- createAnalyzeComplexityTool(),
1300
- createFindDependenciesTool(),
1301
- createGenerateDocstringTool(),
1302
- createSuggestRefactoringsTool(),
1303
- createGenerateTestStubTool(),
1304
- ],
1305
- };
1306
- }
1307
- export function createSecurityToolSuite(workingDir) {
1308
- return {
1309
- name: 'security',
1310
- version: '2.0.0',
1311
- description: 'Security analysis tools',
1312
- tools: [
1313
- createDependencyAuditTool(workingDir),
1314
- createCodeSecurityScanTool(),
1315
- createAnalyzeAttackSurfaceTool(),
1316
- ],
1317
- };
1318
- }
1319
- export function createAlphaZeroToolSuite() {
1320
- return {
1321
- name: 'alpha_zero',
1322
- version: '2.0.0',
1323
- description: 'Alpha Zero 2 competitive RL tools',
1324
- tools: [
1325
- createAlphaZeroEvaluateTool(),
1326
- createAlphaZeroTournamentTool(),
1327
- createAlphaZeroIntrospectTool(),
1328
- createAlphaZeroHistoryTool(),
1329
- createAlphaZeroMetricsTool(),
1330
- ],
1331
- };
1332
- }
1333
- //# sourceMappingURL=tools.js.map