erosolar-cli 1.7.391 → 1.7.392

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (809) hide show
  1. package/dist/core/toolPreconditions.d.ts.map +1 -1
  2. package/dist/core/toolPreconditions.js +56 -8
  3. package/dist/core/toolPreconditions.js.map +1 -1
  4. package/dist/core/toolRuntime.d.ts +0 -6
  5. package/dist/core/toolRuntime.d.ts.map +1 -1
  6. package/dist/core/toolRuntime.js +0 -7
  7. package/dist/core/toolRuntime.js.map +1 -1
  8. package/dist/plugins/tools/nodeDefaults.js +2 -2
  9. package/dist/plugins/tools/nodeDefaults.js.map +1 -1
  10. package/dist/runtime/agentSession.d.ts +1 -2
  11. package/dist/runtime/agentSession.d.ts.map +1 -1
  12. package/dist/runtime/agentSession.js +0 -1
  13. package/dist/runtime/agentSession.js.map +1 -1
  14. package/dist/shell/interactiveShell.d.ts +5 -23
  15. package/dist/shell/interactiveShell.d.ts.map +1 -1
  16. package/dist/shell/interactiveShell.js +109 -218
  17. package/dist/shell/interactiveShell.js.map +1 -1
  18. package/dist/shell/shellApp.d.ts.map +1 -1
  19. package/dist/shell/shellApp.js +0 -5
  20. package/dist/shell/shellApp.js.map +1 -1
  21. package/dist/shell/systemPrompt.d.ts.map +1 -1
  22. package/dist/shell/systemPrompt.js +0 -1
  23. package/dist/shell/systemPrompt.js.map +1 -1
  24. package/dist/shell/terminalInput.d.ts +8 -16
  25. package/dist/shell/terminalInput.d.ts.map +1 -1
  26. package/dist/shell/terminalInput.js +78 -132
  27. package/dist/shell/terminalInput.js.map +1 -1
  28. package/dist/shell/terminalInputAdapter.d.ts +0 -9
  29. package/dist/shell/terminalInputAdapter.d.ts.map +1 -1
  30. package/dist/shell/terminalInputAdapter.js +0 -6
  31. package/dist/shell/terminalInputAdapter.js.map +1 -1
  32. package/dist/tools/fileTools.d.ts.map +1 -1
  33. package/dist/tools/fileTools.js +21 -26
  34. package/dist/tools/fileTools.js.map +1 -1
  35. package/dist/tools/grepTools.js +4 -3
  36. package/dist/tools/grepTools.js.map +1 -1
  37. package/dist/tools/webTools.d.ts.map +1 -1
  38. package/dist/tools/webTools.js +10 -30
  39. package/dist/tools/webTools.js.map +1 -1
  40. package/dist/ui/display.d.ts +8 -12
  41. package/dist/ui/display.d.ts.map +1 -1
  42. package/dist/ui/display.js +62 -122
  43. package/dist/ui/display.js.map +1 -1
  44. package/dist/ui/toolDisplay.d.ts.map +1 -1
  45. package/dist/ui/toolDisplay.js +2 -1
  46. package/dist/ui/toolDisplay.js.map +1 -1
  47. package/dist/ui/unified/layout.js +2 -2
  48. package/dist/ui/unified/layout.js.map +1 -1
  49. package/package.json +1 -1
  50. package/dist/StringUtils.d.ts +0 -8
  51. package/dist/StringUtils.d.ts.map +0 -1
  52. package/dist/StringUtils.js +0 -11
  53. package/dist/StringUtils.js.map +0 -1
  54. package/dist/adapters/browser/index.d.ts +0 -12
  55. package/dist/adapters/browser/index.d.ts.map +0 -1
  56. package/dist/adapters/browser/index.js +0 -11
  57. package/dist/adapters/browser/index.js.map +0 -1
  58. package/dist/adapters/node/index.d.ts +0 -17
  59. package/dist/adapters/node/index.d.ts.map +0 -1
  60. package/dist/adapters/node/index.js +0 -35
  61. package/dist/adapters/node/index.js.map +0 -1
  62. package/dist/adapters/remote/index.d.ts +0 -13
  63. package/dist/adapters/remote/index.d.ts.map +0 -1
  64. package/dist/adapters/remote/index.js +0 -20
  65. package/dist/adapters/remote/index.js.map +0 -1
  66. package/dist/adapters/types.d.ts +0 -14
  67. package/dist/adapters/types.d.ts.map +0 -1
  68. package/dist/adapters/types.js +0 -2
  69. package/dist/adapters/types.js.map +0 -1
  70. package/dist/bin/selfTest.d.ts +0 -14
  71. package/dist/bin/selfTest.d.ts.map +0 -1
  72. package/dist/bin/selfTest.js +0 -304
  73. package/dist/bin/selfTest.js.map +0 -1
  74. package/dist/browser/BrowserSessionManager.d.ts +0 -307
  75. package/dist/browser/BrowserSessionManager.d.ts.map +0 -1
  76. package/dist/browser/BrowserSessionManager.js +0 -713
  77. package/dist/browser/BrowserSessionManager.js.map +0 -1
  78. package/dist/capabilities/advancedTestGenerationCapability.d.ts +0 -17
  79. package/dist/capabilities/advancedTestGenerationCapability.d.ts.map +0 -1
  80. package/dist/capabilities/advancedTestGenerationCapability.js +0 -28
  81. package/dist/capabilities/advancedTestGenerationCapability.js.map +0 -1
  82. package/dist/capabilities/askUserCapability.d.ts +0 -21
  83. package/dist/capabilities/askUserCapability.d.ts.map +0 -1
  84. package/dist/capabilities/askUserCapability.js +0 -155
  85. package/dist/capabilities/askUserCapability.js.map +0 -1
  86. package/dist/capabilities/bashCapability.d.ts +0 -13
  87. package/dist/capabilities/bashCapability.d.ts.map +0 -1
  88. package/dist/capabilities/bashCapability.js +0 -24
  89. package/dist/capabilities/bashCapability.js.map +0 -1
  90. package/dist/capabilities/browserAutomationCapability.d.ts +0 -37
  91. package/dist/capabilities/browserAutomationCapability.d.ts.map +0 -1
  92. package/dist/capabilities/browserAutomationCapability.js +0 -49
  93. package/dist/capabilities/browserAutomationCapability.js.map +0 -1
  94. package/dist/capabilities/buildCapability.d.ts +0 -24
  95. package/dist/capabilities/buildCapability.d.ts.map +0 -1
  96. package/dist/capabilities/buildCapability.js +0 -25
  97. package/dist/capabilities/buildCapability.js.map +0 -1
  98. package/dist/capabilities/cloudCapability.d.ts +0 -13
  99. package/dist/capabilities/cloudCapability.d.ts.map +0 -1
  100. package/dist/capabilities/cloudCapability.js +0 -38
  101. package/dist/capabilities/cloudCapability.js.map +0 -1
  102. package/dist/capabilities/codeAnalysisCapability.d.ts +0 -13
  103. package/dist/capabilities/codeAnalysisCapability.d.ts.map +0 -1
  104. package/dist/capabilities/codeAnalysisCapability.js +0 -24
  105. package/dist/capabilities/codeAnalysisCapability.js.map +0 -1
  106. package/dist/capabilities/codeGenerationCapability.d.ts +0 -13
  107. package/dist/capabilities/codeGenerationCapability.d.ts.map +0 -1
  108. package/dist/capabilities/codeGenerationCapability.js +0 -25
  109. package/dist/capabilities/codeGenerationCapability.js.map +0 -1
  110. package/dist/capabilities/codeQualityCapability.d.ts +0 -13
  111. package/dist/capabilities/codeQualityCapability.d.ts.map +0 -1
  112. package/dist/capabilities/codeQualityCapability.js +0 -25
  113. package/dist/capabilities/codeQualityCapability.js.map +0 -1
  114. package/dist/capabilities/dependencySecurityCapability.d.ts +0 -13
  115. package/dist/capabilities/dependencySecurityCapability.d.ts.map +0 -1
  116. package/dist/capabilities/dependencySecurityCapability.js +0 -24
  117. package/dist/capabilities/dependencySecurityCapability.js.map +0 -1
  118. package/dist/capabilities/devCapability.d.ts +0 -13
  119. package/dist/capabilities/devCapability.d.ts.map +0 -1
  120. package/dist/capabilities/devCapability.js +0 -24
  121. package/dist/capabilities/devCapability.js.map +0 -1
  122. package/dist/capabilities/editCapability.d.ts +0 -17
  123. package/dist/capabilities/editCapability.d.ts.map +0 -1
  124. package/dist/capabilities/editCapability.js +0 -27
  125. package/dist/capabilities/editCapability.js.map +0 -1
  126. package/dist/capabilities/emailCapability.d.ts +0 -12
  127. package/dist/capabilities/emailCapability.d.ts.map +0 -1
  128. package/dist/capabilities/emailCapability.js +0 -22
  129. package/dist/capabilities/emailCapability.js.map +0 -1
  130. package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts +0 -17
  131. package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts.map +0 -1
  132. package/dist/capabilities/enhancedCodeIntelligenceCapability.js +0 -28
  133. package/dist/capabilities/enhancedCodeIntelligenceCapability.js.map +0 -1
  134. package/dist/capabilities/enhancedDevWorkflowCapability.d.ts +0 -17
  135. package/dist/capabilities/enhancedDevWorkflowCapability.d.ts.map +0 -1
  136. package/dist/capabilities/enhancedDevWorkflowCapability.js +0 -28
  137. package/dist/capabilities/enhancedDevWorkflowCapability.js.map +0 -1
  138. package/dist/capabilities/enhancedGitCapability.d.ts +0 -7
  139. package/dist/capabilities/enhancedGitCapability.d.ts.map +0 -1
  140. package/dist/capabilities/enhancedGitCapability.js +0 -220
  141. package/dist/capabilities/enhancedGitCapability.js.map +0 -1
  142. package/dist/capabilities/filesystemCapability.d.ts +0 -13
  143. package/dist/capabilities/filesystemCapability.d.ts.map +0 -1
  144. package/dist/capabilities/filesystemCapability.js +0 -24
  145. package/dist/capabilities/filesystemCapability.js.map +0 -1
  146. package/dist/capabilities/frontendTestingCapability.d.ts +0 -13
  147. package/dist/capabilities/frontendTestingCapability.d.ts.map +0 -1
  148. package/dist/capabilities/frontendTestingCapability.js +0 -28
  149. package/dist/capabilities/frontendTestingCapability.js.map +0 -1
  150. package/dist/capabilities/globCapability.d.ts +0 -17
  151. package/dist/capabilities/globCapability.d.ts.map +0 -1
  152. package/dist/capabilities/globCapability.js +0 -27
  153. package/dist/capabilities/globCapability.js.map +0 -1
  154. package/dist/capabilities/index.d.ts +0 -26
  155. package/dist/capabilities/index.d.ts.map +0 -1
  156. package/dist/capabilities/index.js +0 -26
  157. package/dist/capabilities/index.js.map +0 -1
  158. package/dist/capabilities/interactionCapability.d.ts +0 -12
  159. package/dist/capabilities/interactionCapability.d.ts.map +0 -1
  160. package/dist/capabilities/interactionCapability.js +0 -22
  161. package/dist/capabilities/interactionCapability.js.map +0 -1
  162. package/dist/capabilities/mcpCapability.d.ts +0 -6
  163. package/dist/capabilities/mcpCapability.d.ts.map +0 -1
  164. package/dist/capabilities/mcpCapability.js +0 -19
  165. package/dist/capabilities/mcpCapability.js.map +0 -1
  166. package/dist/capabilities/notebookCapability.d.ts +0 -17
  167. package/dist/capabilities/notebookCapability.d.ts.map +0 -1
  168. package/dist/capabilities/notebookCapability.js +0 -27
  169. package/dist/capabilities/notebookCapability.js.map +0 -1
  170. package/dist/capabilities/performanceMonitoringCapability.d.ts +0 -108
  171. package/dist/capabilities/performanceMonitoringCapability.d.ts.map +0 -1
  172. package/dist/capabilities/performanceMonitoringCapability.js +0 -176
  173. package/dist/capabilities/performanceMonitoringCapability.js.map +0 -1
  174. package/dist/capabilities/planningCapability.d.ts +0 -16
  175. package/dist/capabilities/planningCapability.d.ts.map +0 -1
  176. package/dist/capabilities/planningCapability.js +0 -26
  177. package/dist/capabilities/planningCapability.js.map +0 -1
  178. package/dist/capabilities/refactoringCapability.d.ts +0 -13
  179. package/dist/capabilities/refactoringCapability.d.ts.map +0 -1
  180. package/dist/capabilities/refactoringCapability.js +0 -25
  181. package/dist/capabilities/refactoringCapability.js.map +0 -1
  182. package/dist/capabilities/repoChecksCapability.d.ts +0 -10
  183. package/dist/capabilities/repoChecksCapability.d.ts.map +0 -1
  184. package/dist/capabilities/repoChecksCapability.js +0 -24
  185. package/dist/capabilities/repoChecksCapability.js.map +0 -1
  186. package/dist/capabilities/searchCapability.d.ts +0 -13
  187. package/dist/capabilities/searchCapability.d.ts.map +0 -1
  188. package/dist/capabilities/searchCapability.js +0 -24
  189. package/dist/capabilities/searchCapability.js.map +0 -1
  190. package/dist/capabilities/skillCapability.d.ts +0 -3
  191. package/dist/capabilities/skillCapability.d.ts.map +0 -1
  192. package/dist/capabilities/skillCapability.js +0 -77
  193. package/dist/capabilities/skillCapability.js.map +0 -1
  194. package/dist/capabilities/taskManagementCapability.d.ts +0 -12
  195. package/dist/capabilities/taskManagementCapability.d.ts.map +0 -1
  196. package/dist/capabilities/taskManagementCapability.js +0 -22
  197. package/dist/capabilities/taskManagementCapability.js.map +0 -1
  198. package/dist/capabilities/testingCapability.d.ts +0 -13
  199. package/dist/capabilities/testingCapability.d.ts.map +0 -1
  200. package/dist/capabilities/testingCapability.js +0 -25
  201. package/dist/capabilities/testingCapability.js.map +0 -1
  202. package/dist/capabilities/todoCapability.d.ts +0 -19
  203. package/dist/capabilities/todoCapability.d.ts.map +0 -1
  204. package/dist/capabilities/todoCapability.js +0 -169
  205. package/dist/capabilities/todoCapability.js.map +0 -1
  206. package/dist/capabilities/toolManifest.d.ts +0 -3
  207. package/dist/capabilities/toolManifest.d.ts.map +0 -1
  208. package/dist/capabilities/toolManifest.js +0 -160
  209. package/dist/capabilities/toolManifest.js.map +0 -1
  210. package/dist/capabilities/toolRegistry.d.ts +0 -22
  211. package/dist/capabilities/toolRegistry.d.ts.map +0 -1
  212. package/dist/capabilities/toolRegistry.js +0 -115
  213. package/dist/capabilities/toolRegistry.js.map +0 -1
  214. package/dist/capabilities/validationCapability.d.ts +0 -13
  215. package/dist/capabilities/validationCapability.d.ts.map +0 -1
  216. package/dist/capabilities/validationCapability.js +0 -24
  217. package/dist/capabilities/validationCapability.js.map +0 -1
  218. package/dist/capabilities/webCapability.d.ts +0 -12
  219. package/dist/capabilities/webCapability.d.ts.map +0 -1
  220. package/dist/capabilities/webCapability.js +0 -22
  221. package/dist/capabilities/webCapability.js.map +0 -1
  222. package/dist/config.d.ts +0 -25
  223. package/dist/config.d.ts.map +0 -1
  224. package/dist/config.js +0 -140
  225. package/dist/config.js.map +0 -1
  226. package/dist/contracts/v1/agent.d.ts +0 -147
  227. package/dist/contracts/v1/agent.d.ts.map +0 -1
  228. package/dist/contracts/v1/agent.js +0 -8
  229. package/dist/contracts/v1/agent.js.map +0 -1
  230. package/dist/contracts/v1/agentProfileManifest.d.ts +0 -60
  231. package/dist/contracts/v1/agentProfileManifest.d.ts.map +0 -1
  232. package/dist/contracts/v1/agentProfileManifest.js +0 -9
  233. package/dist/contracts/v1/agentProfileManifest.js.map +0 -1
  234. package/dist/contracts/v1/agentRules.d.ts +0 -60
  235. package/dist/contracts/v1/agentRules.d.ts.map +0 -1
  236. package/dist/contracts/v1/agentRules.js +0 -10
  237. package/dist/contracts/v1/agentRules.js.map +0 -1
  238. package/dist/contracts/v1/provider.d.ts +0 -149
  239. package/dist/contracts/v1/provider.d.ts.map +0 -1
  240. package/dist/contracts/v1/provider.js +0 -7
  241. package/dist/contracts/v1/provider.js.map +0 -1
  242. package/dist/contracts/v1/tool.d.ts +0 -136
  243. package/dist/contracts/v1/tool.d.ts.map +0 -1
  244. package/dist/contracts/v1/tool.js +0 -7
  245. package/dist/contracts/v1/tool.js.map +0 -1
  246. package/dist/contracts/v1/toolAccess.d.ts +0 -43
  247. package/dist/contracts/v1/toolAccess.d.ts.map +0 -1
  248. package/dist/contracts/v1/toolAccess.js +0 -9
  249. package/dist/contracts/v1/toolAccess.js.map +0 -1
  250. package/dist/core/LazyLoader.d.ts +0 -129
  251. package/dist/core/LazyLoader.d.ts.map +0 -1
  252. package/dist/core/LazyLoader.js +0 -240
  253. package/dist/core/LazyLoader.js.map +0 -1
  254. package/dist/core/agentProfileManifest.d.ts +0 -3
  255. package/dist/core/agentProfileManifest.d.ts.map +0 -1
  256. package/dist/core/agentProfileManifest.js +0 -188
  257. package/dist/core/agentProfileManifest.js.map +0 -1
  258. package/dist/core/agentProfiles.d.ts +0 -22
  259. package/dist/core/agentProfiles.d.ts.map +0 -1
  260. package/dist/core/agentProfiles.js +0 -35
  261. package/dist/core/agentProfiles.js.map +0 -1
  262. package/dist/core/agentRulebook.d.ts +0 -11
  263. package/dist/core/agentRulebook.d.ts.map +0 -1
  264. package/dist/core/agentRulebook.js +0 -136
  265. package/dist/core/agentRulebook.js.map +0 -1
  266. package/dist/core/agentSchemaLoader.d.ts +0 -131
  267. package/dist/core/agentSchemaLoader.d.ts.map +0 -1
  268. package/dist/core/agentSchemaLoader.js +0 -234
  269. package/dist/core/agentSchemaLoader.js.map +0 -1
  270. package/dist/core/aiErrorFixer.d.ts +0 -70
  271. package/dist/core/aiErrorFixer.d.ts.map +0 -1
  272. package/dist/core/aiErrorFixer.js +0 -402
  273. package/dist/core/aiErrorFixer.js.map +0 -1
  274. package/dist/core/cliTestHarness.d.ts +0 -200
  275. package/dist/core/cliTestHarness.d.ts.map +0 -1
  276. package/dist/core/cliTestHarness.js +0 -549
  277. package/dist/core/cliTestHarness.js.map +0 -1
  278. package/dist/core/contextWindow.d.ts +0 -42
  279. package/dist/core/contextWindow.d.ts.map +0 -1
  280. package/dist/core/contextWindow.js +0 -123
  281. package/dist/core/contextWindow.js.map +0 -1
  282. package/dist/core/errors/apiKeyErrors.d.ts +0 -11
  283. package/dist/core/errors/apiKeyErrors.d.ts.map +0 -1
  284. package/dist/core/errors/apiKeyErrors.js +0 -159
  285. package/dist/core/errors/apiKeyErrors.js.map +0 -1
  286. package/dist/core/errors/errorTypes.d.ts +0 -111
  287. package/dist/core/errors/errorTypes.d.ts.map +0 -1
  288. package/dist/core/errors/errorTypes.js +0 -348
  289. package/dist/core/errors/errorTypes.js.map +0 -1
  290. package/dist/core/errors/errorUtils.d.ts +0 -87
  291. package/dist/core/errors/errorUtils.d.ts.map +0 -1
  292. package/dist/core/errors/errorUtils.js +0 -158
  293. package/dist/core/errors/errorUtils.js.map +0 -1
  294. package/dist/core/errors/safetyValidator.d.ts +0 -71
  295. package/dist/core/errors/safetyValidator.d.ts.map +0 -1
  296. package/dist/core/errors/safetyValidator.js +0 -302
  297. package/dist/core/errors/safetyValidator.js.map +0 -1
  298. package/dist/core/errors.d.ts +0 -4
  299. package/dist/core/errors.d.ts.map +0 -1
  300. package/dist/core/errors.js +0 -33
  301. package/dist/core/errors.js.map +0 -1
  302. package/dist/core/isolatedVerifier.d.ts +0 -40
  303. package/dist/core/isolatedVerifier.d.ts.map +0 -1
  304. package/dist/core/isolatedVerifier.js +0 -129
  305. package/dist/core/isolatedVerifier.js.map +0 -1
  306. package/dist/core/modelDiscovery.d.ts +0 -101
  307. package/dist/core/modelDiscovery.d.ts.map +0 -1
  308. package/dist/core/modelDiscovery.js +0 -780
  309. package/dist/core/modelDiscovery.js.map +0 -1
  310. package/dist/core/multilinePasteHandler.d.ts +0 -35
  311. package/dist/core/multilinePasteHandler.d.ts.map +0 -1
  312. package/dist/core/multilinePasteHandler.js +0 -80
  313. package/dist/core/multilinePasteHandler.js.map +0 -1
  314. package/dist/core/performanceMonitor.d.ts +0 -124
  315. package/dist/core/performanceMonitor.d.ts.map +0 -1
  316. package/dist/core/performanceMonitor.js +0 -192
  317. package/dist/core/performanceMonitor.js.map +0 -1
  318. package/dist/core/responseVerifier.d.ts +0 -98
  319. package/dist/core/responseVerifier.d.ts.map +0 -1
  320. package/dist/core/responseVerifier.js +0 -509
  321. package/dist/core/responseVerifier.js.map +0 -1
  322. package/dist/core/resultVerification.d.ts +0 -141
  323. package/dist/core/resultVerification.d.ts.map +0 -1
  324. package/dist/core/resultVerification.js +0 -482
  325. package/dist/core/resultVerification.js.map +0 -1
  326. package/dist/core/schemaValidator.d.ts +0 -44
  327. package/dist/core/schemaValidator.d.ts.map +0 -1
  328. package/dist/core/schemaValidator.js +0 -155
  329. package/dist/core/schemaValidator.js.map +0 -1
  330. package/dist/core/testUtils.d.ts +0 -121
  331. package/dist/core/testUtils.d.ts.map +0 -1
  332. package/dist/core/testUtils.js +0 -235
  333. package/dist/core/testUtils.js.map +0 -1
  334. package/dist/core/types/utilityTypes.d.ts +0 -192
  335. package/dist/core/types/utilityTypes.d.ts.map +0 -1
  336. package/dist/core/types/utilityTypes.js +0 -272
  337. package/dist/core/types/utilityTypes.js.map +0 -1
  338. package/dist/core/types.d.ts +0 -306
  339. package/dist/core/types.d.ts.map +0 -1
  340. package/dist/core/types.js +0 -76
  341. package/dist/core/types.js.map +0 -1
  342. package/dist/intelligence/codeIntelligence.d.ts +0 -118
  343. package/dist/intelligence/codeIntelligence.d.ts.map +0 -1
  344. package/dist/intelligence/codeIntelligence.js +0 -552
  345. package/dist/intelligence/codeIntelligence.js.map +0 -1
  346. package/dist/intelligence/docGenerator.d.ts +0 -86
  347. package/dist/intelligence/docGenerator.d.ts.map +0 -1
  348. package/dist/intelligence/docGenerator.js +0 -564
  349. package/dist/intelligence/docGenerator.js.map +0 -1
  350. package/dist/intelligence/index.d.ts +0 -51
  351. package/dist/intelligence/index.d.ts.map +0 -1
  352. package/dist/intelligence/index.js +0 -253
  353. package/dist/intelligence/index.js.map +0 -1
  354. package/dist/intelligence/refactoring.d.ts +0 -50
  355. package/dist/intelligence/refactoring.d.ts.map +0 -1
  356. package/dist/intelligence/refactoring.js +0 -354
  357. package/dist/intelligence/refactoring.js.map +0 -1
  358. package/dist/intelligence/testGenerator.d.ts +0 -74
  359. package/dist/intelligence/testGenerator.d.ts.map +0 -1
  360. package/dist/intelligence/testGenerator.js +0 -483
  361. package/dist/intelligence/testGenerator.js.map +0 -1
  362. package/dist/mcp/config.d.ts +0 -8
  363. package/dist/mcp/config.d.ts.map +0 -1
  364. package/dist/mcp/config.js +0 -252
  365. package/dist/mcp/config.js.map +0 -1
  366. package/dist/mcp/sseClient.d.ts +0 -34
  367. package/dist/mcp/sseClient.d.ts.map +0 -1
  368. package/dist/mcp/sseClient.js +0 -327
  369. package/dist/mcp/sseClient.js.map +0 -1
  370. package/dist/mcp/stdioClient.d.ts +0 -24
  371. package/dist/mcp/stdioClient.d.ts.map +0 -1
  372. package/dist/mcp/stdioClient.js +0 -179
  373. package/dist/mcp/stdioClient.js.map +0 -1
  374. package/dist/mcp/toolBridge.d.ts +0 -12
  375. package/dist/mcp/toolBridge.d.ts.map +0 -1
  376. package/dist/mcp/toolBridge.js +0 -117
  377. package/dist/mcp/toolBridge.js.map +0 -1
  378. package/dist/mcp/types.d.ts +0 -60
  379. package/dist/mcp/types.d.ts.map +0 -1
  380. package/dist/mcp/types.js +0 -2
  381. package/dist/mcp/types.js.map +0 -1
  382. package/dist/plugins/index.d.ts +0 -49
  383. package/dist/plugins/index.d.ts.map +0 -1
  384. package/dist/plugins/index.js +0 -114
  385. package/dist/plugins/index.js.map +0 -1
  386. package/dist/plugins/providers/anthropic/index.d.ts +0 -11
  387. package/dist/plugins/providers/anthropic/index.d.ts.map +0 -1
  388. package/dist/plugins/providers/anthropic/index.js +0 -38
  389. package/dist/plugins/providers/anthropic/index.js.map +0 -1
  390. package/dist/plugins/providers/deepseek/index.d.ts +0 -11
  391. package/dist/plugins/providers/deepseek/index.d.ts.map +0 -1
  392. package/dist/plugins/providers/deepseek/index.js +0 -52
  393. package/dist/plugins/providers/deepseek/index.js.map +0 -1
  394. package/dist/plugins/providers/google/index.d.ts +0 -11
  395. package/dist/plugins/providers/google/index.d.ts.map +0 -1
  396. package/dist/plugins/providers/google/index.js +0 -40
  397. package/dist/plugins/providers/google/index.js.map +0 -1
  398. package/dist/plugins/providers/index.d.ts +0 -2
  399. package/dist/plugins/providers/index.d.ts.map +0 -1
  400. package/dist/plugins/providers/index.js +0 -20
  401. package/dist/plugins/providers/index.js.map +0 -1
  402. package/dist/plugins/providers/ollama/index.d.ts +0 -21
  403. package/dist/plugins/providers/ollama/index.d.ts.map +0 -1
  404. package/dist/plugins/providers/ollama/index.js +0 -69
  405. package/dist/plugins/providers/ollama/index.js.map +0 -1
  406. package/dist/plugins/providers/openai/index.d.ts +0 -12
  407. package/dist/plugins/providers/openai/index.d.ts.map +0 -1
  408. package/dist/plugins/providers/openai/index.js +0 -39
  409. package/dist/plugins/providers/openai/index.js.map +0 -1
  410. package/dist/plugins/providers/xai/index.d.ts +0 -11
  411. package/dist/plugins/providers/xai/index.d.ts.map +0 -1
  412. package/dist/plugins/providers/xai/index.js +0 -39
  413. package/dist/plugins/providers/xai/index.js.map +0 -1
  414. package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts +0 -3
  415. package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts.map +0 -1
  416. package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js +0 -9
  417. package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js.map +0 -1
  418. package/dist/plugins/tools/bash/localBashPlugin.d.ts +0 -3
  419. package/dist/plugins/tools/bash/localBashPlugin.d.ts.map +0 -1
  420. package/dist/plugins/tools/bash/localBashPlugin.js +0 -14
  421. package/dist/plugins/tools/bash/localBashPlugin.js.map +0 -1
  422. package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts +0 -14
  423. package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts.map +0 -1
  424. package/dist/plugins/tools/browser/browserAutomationPlugin.js +0 -26
  425. package/dist/plugins/tools/browser/browserAutomationPlugin.js.map +0 -1
  426. package/dist/plugins/tools/build/buildPlugin.d.ts +0 -3
  427. package/dist/plugins/tools/build/buildPlugin.d.ts.map +0 -1
  428. package/dist/plugins/tools/build/buildPlugin.js +0 -14
  429. package/dist/plugins/tools/build/buildPlugin.js.map +0 -1
  430. package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts +0 -3
  431. package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts.map +0 -1
  432. package/dist/plugins/tools/checks/localRepoChecksPlugin.js +0 -14
  433. package/dist/plugins/tools/checks/localRepoChecksPlugin.js.map +0 -1
  434. package/dist/plugins/tools/cloud/cloudPlugin.d.ts +0 -3
  435. package/dist/plugins/tools/cloud/cloudPlugin.d.ts.map +0 -1
  436. package/dist/plugins/tools/cloud/cloudPlugin.js +0 -14
  437. package/dist/plugins/tools/cloud/cloudPlugin.js.map +0 -1
  438. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts +0 -3
  439. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts.map +0 -1
  440. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +0 -14
  441. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js.map +0 -1
  442. package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts +0 -3
  443. package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts.map +0 -1
  444. package/dist/plugins/tools/codeQuality/codeQualityPlugin.js +0 -14
  445. package/dist/plugins/tools/codeQuality/codeQualityPlugin.js.map +0 -1
  446. package/dist/plugins/tools/dependency/dependencyPlugin.d.ts +0 -3
  447. package/dist/plugins/tools/dependency/dependencyPlugin.d.ts.map +0 -1
  448. package/dist/plugins/tools/dependency/dependencyPlugin.js +0 -12
  449. package/dist/plugins/tools/dependency/dependencyPlugin.js.map +0 -1
  450. package/dist/plugins/tools/development/devPlugin.d.ts +0 -3
  451. package/dist/plugins/tools/development/devPlugin.d.ts.map +0 -1
  452. package/dist/plugins/tools/development/devPlugin.js +0 -14
  453. package/dist/plugins/tools/development/devPlugin.js.map +0 -1
  454. package/dist/plugins/tools/edit/editPlugin.d.ts +0 -9
  455. package/dist/plugins/tools/edit/editPlugin.d.ts.map +0 -1
  456. package/dist/plugins/tools/edit/editPlugin.js +0 -15
  457. package/dist/plugins/tools/edit/editPlugin.js.map +0 -1
  458. package/dist/plugins/tools/email/emailPlugin.d.ts +0 -3
  459. package/dist/plugins/tools/email/emailPlugin.d.ts.map +0 -1
  460. package/dist/plugins/tools/email/emailPlugin.js +0 -12
  461. package/dist/plugins/tools/email/emailPlugin.js.map +0 -1
  462. package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts +0 -3
  463. package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts.map +0 -1
  464. package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js +0 -9
  465. package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js.map +0 -1
  466. package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts +0 -3
  467. package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts.map +0 -1
  468. package/dist/plugins/tools/filesystem/localFilesystemPlugin.js +0 -14
  469. package/dist/plugins/tools/filesystem/localFilesystemPlugin.js.map +0 -1
  470. package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts +0 -3
  471. package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts.map +0 -1
  472. package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js +0 -14
  473. package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js.map +0 -1
  474. package/dist/plugins/tools/glob/globPlugin.d.ts +0 -9
  475. package/dist/plugins/tools/glob/globPlugin.d.ts.map +0 -1
  476. package/dist/plugins/tools/glob/globPlugin.js +0 -15
  477. package/dist/plugins/tools/glob/globPlugin.js.map +0 -1
  478. package/dist/plugins/tools/index.d.ts +0 -3
  479. package/dist/plugins/tools/index.d.ts.map +0 -1
  480. package/dist/plugins/tools/index.js +0 -3
  481. package/dist/plugins/tools/index.js.map +0 -1
  482. package/dist/plugins/tools/interaction/interactionPlugin.d.ts +0 -3
  483. package/dist/plugins/tools/interaction/interactionPlugin.d.ts.map +0 -1
  484. package/dist/plugins/tools/interaction/interactionPlugin.js +0 -12
  485. package/dist/plugins/tools/interaction/interactionPlugin.js.map +0 -1
  486. package/dist/plugins/tools/learn/learnPlugin.d.ts +0 -3
  487. package/dist/plugins/tools/learn/learnPlugin.d.ts.map +0 -1
  488. package/dist/plugins/tools/learn/learnPlugin.js +0 -14
  489. package/dist/plugins/tools/learn/learnPlugin.js.map +0 -1
  490. package/dist/plugins/tools/mcp/mcpPlugin.d.ts +0 -3
  491. package/dist/plugins/tools/mcp/mcpPlugin.d.ts.map +0 -1
  492. package/dist/plugins/tools/mcp/mcpPlugin.js +0 -9
  493. package/dist/plugins/tools/mcp/mcpPlugin.js.map +0 -1
  494. package/dist/plugins/tools/notebook/notebookPlugin.d.ts +0 -9
  495. package/dist/plugins/tools/notebook/notebookPlugin.d.ts.map +0 -1
  496. package/dist/plugins/tools/notebook/notebookPlugin.js +0 -15
  497. package/dist/plugins/tools/notebook/notebookPlugin.js.map +0 -1
  498. package/dist/plugins/tools/planning/planningPlugin.d.ts +0 -9
  499. package/dist/plugins/tools/planning/planningPlugin.d.ts.map +0 -1
  500. package/dist/plugins/tools/planning/planningPlugin.js +0 -15
  501. package/dist/plugins/tools/planning/planningPlugin.js.map +0 -1
  502. package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts +0 -3
  503. package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts.map +0 -1
  504. package/dist/plugins/tools/refactoring/refactoringPlugin.js +0 -12
  505. package/dist/plugins/tools/refactoring/refactoringPlugin.js.map +0 -1
  506. package/dist/plugins/tools/registry.d.ts +0 -22
  507. package/dist/plugins/tools/registry.d.ts.map +0 -1
  508. package/dist/plugins/tools/registry.js +0 -58
  509. package/dist/plugins/tools/registry.js.map +0 -1
  510. package/dist/plugins/tools/search/localSearchPlugin.d.ts +0 -3
  511. package/dist/plugins/tools/search/localSearchPlugin.d.ts.map +0 -1
  512. package/dist/plugins/tools/search/localSearchPlugin.js +0 -14
  513. package/dist/plugins/tools/search/localSearchPlugin.js.map +0 -1
  514. package/dist/plugins/tools/skills/skillPlugin.d.ts +0 -3
  515. package/dist/plugins/tools/skills/skillPlugin.d.ts.map +0 -1
  516. package/dist/plugins/tools/skills/skillPlugin.js +0 -9
  517. package/dist/plugins/tools/skills/skillPlugin.js.map +0 -1
  518. package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts +0 -3
  519. package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts.map +0 -1
  520. package/dist/plugins/tools/taskManagement/taskManagementPlugin.js +0 -12
  521. package/dist/plugins/tools/taskManagement/taskManagementPlugin.js.map +0 -1
  522. package/dist/plugins/tools/testing/testingPlugin.d.ts +0 -3
  523. package/dist/plugins/tools/testing/testingPlugin.d.ts.map +0 -1
  524. package/dist/plugins/tools/testing/testingPlugin.js +0 -12
  525. package/dist/plugins/tools/testing/testingPlugin.js.map +0 -1
  526. package/dist/plugins/tools/validation/validationPlugin.d.ts +0 -3
  527. package/dist/plugins/tools/validation/validationPlugin.d.ts.map +0 -1
  528. package/dist/plugins/tools/validation/validationPlugin.js +0 -14
  529. package/dist/plugins/tools/validation/validationPlugin.js.map +0 -1
  530. package/dist/plugins/tools/web/webPlugin.d.ts +0 -3
  531. package/dist/plugins/tools/web/webPlugin.d.ts.map +0 -1
  532. package/dist/plugins/tools/web/webPlugin.js +0 -12
  533. package/dist/plugins/tools/web/webPlugin.js.map +0 -1
  534. package/dist/providers/anthropicProvider.d.ts +0 -41
  535. package/dist/providers/anthropicProvider.d.ts.map +0 -1
  536. package/dist/providers/anthropicProvider.js +0 -446
  537. package/dist/providers/anthropicProvider.js.map +0 -1
  538. package/dist/providers/googleProvider.d.ts +0 -36
  539. package/dist/providers/googleProvider.d.ts.map +0 -1
  540. package/dist/providers/googleProvider.js +0 -312
  541. package/dist/providers/googleProvider.js.map +0 -1
  542. package/dist/providers/openaiChatCompletionsProvider.d.ts +0 -43
  543. package/dist/providers/openaiChatCompletionsProvider.d.ts.map +0 -1
  544. package/dist/providers/openaiChatCompletionsProvider.js +0 -475
  545. package/dist/providers/openaiChatCompletionsProvider.js.map +0 -1
  546. package/dist/providers/openaiResponsesProvider.d.ts +0 -38
  547. package/dist/providers/openaiResponsesProvider.d.ts.map +0 -1
  548. package/dist/providers/openaiResponsesProvider.js +0 -364
  549. package/dist/providers/openaiResponsesProvider.js.map +0 -1
  550. package/dist/providers/providerFactory.d.ts +0 -18
  551. package/dist/providers/providerFactory.d.ts.map +0 -1
  552. package/dist/providers/providerFactory.js +0 -25
  553. package/dist/providers/providerFactory.js.map +0 -1
  554. package/dist/providers/resilientProvider.d.ts +0 -94
  555. package/dist/providers/resilientProvider.d.ts.map +0 -1
  556. package/dist/providers/resilientProvider.js +0 -370
  557. package/dist/providers/resilientProvider.js.map +0 -1
  558. package/dist/runtime/agentController.d.ts +0 -65
  559. package/dist/runtime/agentController.d.ts.map +0 -1
  560. package/dist/runtime/agentController.js +0 -353
  561. package/dist/runtime/agentController.js.map +0 -1
  562. package/dist/runtime/agentHost.d.ts +0 -63
  563. package/dist/runtime/agentHost.d.ts.map +0 -1
  564. package/dist/runtime/agentHost.js +0 -159
  565. package/dist/runtime/agentHost.js.map +0 -1
  566. package/dist/runtime/browser.d.ts +0 -7
  567. package/dist/runtime/browser.d.ts.map +0 -1
  568. package/dist/runtime/browser.js +0 -10
  569. package/dist/runtime/browser.js.map +0 -1
  570. package/dist/runtime/cloud.d.ts +0 -7
  571. package/dist/runtime/cloud.d.ts.map +0 -1
  572. package/dist/runtime/cloud.js +0 -10
  573. package/dist/runtime/cloud.js.map +0 -1
  574. package/dist/runtime/node.d.ts +0 -8
  575. package/dist/runtime/node.d.ts.map +0 -1
  576. package/dist/runtime/node.js +0 -11
  577. package/dist/runtime/node.js.map +0 -1
  578. package/dist/runtime/universal.d.ts +0 -22
  579. package/dist/runtime/universal.d.ts.map +0 -1
  580. package/dist/runtime/universal.js +0 -30
  581. package/dist/runtime/universal.js.map +0 -1
  582. package/dist/shell/autoExecutor.d.ts +0 -70
  583. package/dist/shell/autoExecutor.d.ts.map +0 -1
  584. package/dist/shell/autoExecutor.js +0 -288
  585. package/dist/shell/autoExecutor.js.map +0 -1
  586. package/dist/shell/composableMessage.d.ts +0 -183
  587. package/dist/shell/composableMessage.d.ts.map +0 -1
  588. package/dist/shell/composableMessage.js +0 -420
  589. package/dist/shell/composableMessage.js.map +0 -1
  590. package/dist/shell/fileChangeTracker.d.ts +0 -39
  591. package/dist/shell/fileChangeTracker.d.ts.map +0 -1
  592. package/dist/shell/fileChangeTracker.js +0 -64
  593. package/dist/shell/fileChangeTracker.js.map +0 -1
  594. package/dist/shell/liveStatus.d.ts +0 -29
  595. package/dist/shell/liveStatus.d.ts.map +0 -1
  596. package/dist/shell/liveStatus.js +0 -77
  597. package/dist/shell/liveStatus.js.map +0 -1
  598. package/dist/shell/taskCompletionDetector.d.ts +0 -106
  599. package/dist/shell/taskCompletionDetector.d.ts.map +0 -1
  600. package/dist/shell/taskCompletionDetector.js +0 -402
  601. package/dist/shell/taskCompletionDetector.js.map +0 -1
  602. package/dist/shell/updateManager.d.ts +0 -3
  603. package/dist/shell/updateManager.d.ts.map +0 -1
  604. package/dist/shell/updateManager.js +0 -120
  605. package/dist/shell/updateManager.js.map +0 -1
  606. package/dist/skills/skillRepository.d.ts +0 -103
  607. package/dist/skills/skillRepository.d.ts.map +0 -1
  608. package/dist/skills/skillRepository.js +0 -237
  609. package/dist/skills/skillRepository.js.map +0 -1
  610. package/dist/skills/types.d.ts +0 -37
  611. package/dist/skills/types.d.ts.map +0 -1
  612. package/dist/skills/types.js +0 -2
  613. package/dist/skills/types.js.map +0 -1
  614. package/dist/tools/advancedTestGenerationTools.d.ts +0 -21
  615. package/dist/tools/advancedTestGenerationTools.d.ts.map +0 -1
  616. package/dist/tools/advancedTestGenerationTools.js +0 -301
  617. package/dist/tools/advancedTestGenerationTools.js.map +0 -1
  618. package/dist/tools/backgroundBashTools.d.ts +0 -21
  619. package/dist/tools/backgroundBashTools.d.ts.map +0 -1
  620. package/dist/tools/backgroundBashTools.js +0 -215
  621. package/dist/tools/backgroundBashTools.js.map +0 -1
  622. package/dist/tools/bashTools.d.ts +0 -8
  623. package/dist/tools/bashTools.d.ts.map +0 -1
  624. package/dist/tools/bashTools.js +0 -251
  625. package/dist/tools/bashTools.js.map +0 -1
  626. package/dist/tools/browserAutomationTools.d.ts +0 -23
  627. package/dist/tools/browserAutomationTools.d.ts.map +0 -1
  628. package/dist/tools/browserAutomationTools.js +0 -916
  629. package/dist/tools/browserAutomationTools.js.map +0 -1
  630. package/dist/tools/buildTools.d.ts +0 -9
  631. package/dist/tools/buildTools.d.ts.map +0 -1
  632. package/dist/tools/buildTools.js +0 -344
  633. package/dist/tools/buildTools.js.map +0 -1
  634. package/dist/tools/cloudTools.d.ts +0 -49
  635. package/dist/tools/cloudTools.d.ts.map +0 -1
  636. package/dist/tools/cloudTools.js +0 -1258
  637. package/dist/tools/cloudTools.js.map +0 -1
  638. package/dist/tools/code-quality-dashboard.d.ts +0 -57
  639. package/dist/tools/code-quality-dashboard.d.ts.map +0 -1
  640. package/dist/tools/code-quality-dashboard.js +0 -218
  641. package/dist/tools/code-quality-dashboard.js.map +0 -1
  642. package/dist/tools/codeAnalysisTools.d.ts +0 -74
  643. package/dist/tools/codeAnalysisTools.d.ts.map +0 -1
  644. package/dist/tools/codeAnalysisTools.js +0 -664
  645. package/dist/tools/codeAnalysisTools.js.map +0 -1
  646. package/dist/tools/codeGenerationTools.d.ts +0 -3
  647. package/dist/tools/codeGenerationTools.d.ts.map +0 -1
  648. package/dist/tools/codeGenerationTools.js +0 -439
  649. package/dist/tools/codeGenerationTools.js.map +0 -1
  650. package/dist/tools/codeQualityTools.d.ts +0 -3
  651. package/dist/tools/codeQualityTools.d.ts.map +0 -1
  652. package/dist/tools/codeQualityTools.js +0 -296
  653. package/dist/tools/codeQualityTools.js.map +0 -1
  654. package/dist/tools/dependencyTools.d.ts +0 -3
  655. package/dist/tools/dependencyTools.d.ts.map +0 -1
  656. package/dist/tools/dependencyTools.js +0 -283
  657. package/dist/tools/dependencyTools.js.map +0 -1
  658. package/dist/tools/devTools.d.ts +0 -10
  659. package/dist/tools/devTools.d.ts.map +0 -1
  660. package/dist/tools/devTools.js +0 -2125
  661. package/dist/tools/devTools.js.map +0 -1
  662. package/dist/tools/diffUtils.d.ts +0 -36
  663. package/dist/tools/diffUtils.d.ts.map +0 -1
  664. package/dist/tools/diffUtils.js +0 -528
  665. package/dist/tools/diffUtils.js.map +0 -1
  666. package/dist/tools/editTools.d.ts +0 -29
  667. package/dist/tools/editTools.d.ts.map +0 -1
  668. package/dist/tools/editTools.js +0 -419
  669. package/dist/tools/editTools.js.map +0 -1
  670. package/dist/tools/emailTools.d.ts +0 -21
  671. package/dist/tools/emailTools.d.ts.map +0 -1
  672. package/dist/tools/emailTools.js +0 -449
  673. package/dist/tools/emailTools.js.map +0 -1
  674. package/dist/tools/enhancedCodeIntelligenceTools.d.ts +0 -27
  675. package/dist/tools/enhancedCodeIntelligenceTools.d.ts.map +0 -1
  676. package/dist/tools/enhancedCodeIntelligenceTools.js +0 -418
  677. package/dist/tools/enhancedCodeIntelligenceTools.js.map +0 -1
  678. package/dist/tools/enhancedDevWorkflowTools.d.ts +0 -15
  679. package/dist/tools/enhancedDevWorkflowTools.d.ts.map +0 -1
  680. package/dist/tools/enhancedDevWorkflowTools.js +0 -303
  681. package/dist/tools/enhancedDevWorkflowTools.js.map +0 -1
  682. package/dist/tools/frontendTestingTools.d.ts +0 -35
  683. package/dist/tools/frontendTestingTools.d.ts.map +0 -1
  684. package/dist/tools/frontendTestingTools.js +0 -1254
  685. package/dist/tools/frontendTestingTools.js.map +0 -1
  686. package/dist/tools/globTools.d.ts +0 -15
  687. package/dist/tools/globTools.d.ts.map +0 -1
  688. package/dist/tools/globTools.js +0 -174
  689. package/dist/tools/globTools.js.map +0 -1
  690. package/dist/tools/interactionTools.d.ts +0 -13
  691. package/dist/tools/interactionTools.d.ts.map +0 -1
  692. package/dist/tools/interactionTools.js +0 -171
  693. package/dist/tools/interactionTools.js.map +0 -1
  694. package/dist/tools/notebookEditTools.d.ts +0 -15
  695. package/dist/tools/notebookEditTools.d.ts.map +0 -1
  696. package/dist/tools/notebookEditTools.js +0 -197
  697. package/dist/tools/notebookEditTools.js.map +0 -1
  698. package/dist/tools/refactoringTools.d.ts +0 -3
  699. package/dist/tools/refactoringTools.d.ts.map +0 -1
  700. package/dist/tools/refactoringTools.js +0 -294
  701. package/dist/tools/refactoringTools.js.map +0 -1
  702. package/dist/tools/repoChecksTools.d.ts +0 -3
  703. package/dist/tools/repoChecksTools.d.ts.map +0 -1
  704. package/dist/tools/repoChecksTools.js +0 -161
  705. package/dist/tools/repoChecksTools.js.map +0 -1
  706. package/dist/tools/searchTools.d.ts +0 -3
  707. package/dist/tools/searchTools.d.ts.map +0 -1
  708. package/dist/tools/searchTools.js +0 -241
  709. package/dist/tools/searchTools.js.map +0 -1
  710. package/dist/tools/skillTools.d.ts +0 -8
  711. package/dist/tools/skillTools.d.ts.map +0 -1
  712. package/dist/tools/skillTools.js +0 -178
  713. package/dist/tools/skillTools.js.map +0 -1
  714. package/dist/tools/softwareEngineeringTools.d.ts +0 -7
  715. package/dist/tools/softwareEngineeringTools.d.ts.map +0 -1
  716. package/dist/tools/softwareEngineeringTools.js +0 -338
  717. package/dist/tools/softwareEngineeringTools.js.map +0 -1
  718. package/dist/tools/taskManagementTools.d.ts +0 -10
  719. package/dist/tools/taskManagementTools.d.ts.map +0 -1
  720. package/dist/tools/taskManagementTools.js +0 -157
  721. package/dist/tools/taskManagementTools.js.map +0 -1
  722. package/dist/tools/testingTools.d.ts +0 -3
  723. package/dist/tools/testingTools.d.ts.map +0 -1
  724. package/dist/tools/testingTools.js +0 -233
  725. package/dist/tools/testingTools.js.map +0 -1
  726. package/dist/tools/validationTools.d.ts +0 -7
  727. package/dist/tools/validationTools.d.ts.map +0 -1
  728. package/dist/tools/validationTools.js +0 -344
  729. package/dist/tools/validationTools.js.map +0 -1
  730. package/dist/ui/UnifiedUIController.d.ts +0 -70
  731. package/dist/ui/UnifiedUIController.d.ts.map +0 -1
  732. package/dist/ui/UnifiedUIController.js +0 -190
  733. package/dist/ui/UnifiedUIController.js.map +0 -1
  734. package/dist/ui/animation/AnimationScheduler.d.ts +0 -192
  735. package/dist/ui/animation/AnimationScheduler.d.ts.map +0 -1
  736. package/dist/ui/animation/AnimationScheduler.js +0 -432
  737. package/dist/ui/animation/AnimationScheduler.js.map +0 -1
  738. package/dist/ui/codeHighlighter.d.ts +0 -6
  739. package/dist/ui/codeHighlighter.d.ts.map +0 -1
  740. package/dist/ui/codeHighlighter.js +0 -855
  741. package/dist/ui/codeHighlighter.js.map +0 -1
  742. package/dist/ui/designSystem.d.ts +0 -26
  743. package/dist/ui/designSystem.d.ts.map +0 -1
  744. package/dist/ui/designSystem.js +0 -122
  745. package/dist/ui/designSystem.js.map +0 -1
  746. package/dist/ui/errorFormatter.d.ts +0 -54
  747. package/dist/ui/errorFormatter.d.ts.map +0 -1
  748. package/dist/ui/errorFormatter.js +0 -251
  749. package/dist/ui/errorFormatter.js.map +0 -1
  750. package/dist/ui/globalWriteLock.d.ts +0 -38
  751. package/dist/ui/globalWriteLock.d.ts.map +0 -1
  752. package/dist/ui/globalWriteLock.js +0 -54
  753. package/dist/ui/globalWriteLock.js.map +0 -1
  754. package/dist/ui/interrupts/InterruptManager.d.ts +0 -142
  755. package/dist/ui/interrupts/InterruptManager.d.ts.map +0 -1
  756. package/dist/ui/interrupts/InterruptManager.js +0 -439
  757. package/dist/ui/interrupts/InterruptManager.js.map +0 -1
  758. package/dist/ui/layout.d.ts +0 -17
  759. package/dist/ui/layout.d.ts.map +0 -1
  760. package/dist/ui/layout.js +0 -141
  761. package/dist/ui/layout.js.map +0 -1
  762. package/dist/ui/orchestration/StatusOrchestrator.d.ts +0 -156
  763. package/dist/ui/orchestration/StatusOrchestrator.d.ts.map +0 -1
  764. package/dist/ui/orchestration/StatusOrchestrator.js +0 -406
  765. package/dist/ui/orchestration/StatusOrchestrator.js.map +0 -1
  766. package/dist/ui/orchestration/UIUpdateCoordinator.d.ts +0 -77
  767. package/dist/ui/orchestration/UIUpdateCoordinator.d.ts.map +0 -1
  768. package/dist/ui/orchestration/UIUpdateCoordinator.js +0 -265
  769. package/dist/ui/orchestration/UIUpdateCoordinator.js.map +0 -1
  770. package/dist/ui/outputMode.d.ts +0 -22
  771. package/dist/ui/outputMode.d.ts.map +0 -1
  772. package/dist/ui/outputMode.js +0 -40
  773. package/dist/ui/outputMode.js.map +0 -1
  774. package/dist/ui/richText.d.ts +0 -6
  775. package/dist/ui/richText.d.ts.map +0 -1
  776. package/dist/ui/richText.js +0 -391
  777. package/dist/ui/richText.js.map +0 -1
  778. package/dist/ui/telemetry/UITelemetry.d.ts +0 -181
  779. package/dist/ui/telemetry/UITelemetry.d.ts.map +0 -1
  780. package/dist/ui/telemetry/UITelemetry.js +0 -446
  781. package/dist/ui/telemetry/UITelemetry.js.map +0 -1
  782. package/dist/ui/textHighlighter.d.ts +0 -83
  783. package/dist/ui/textHighlighter.d.ts.map +0 -1
  784. package/dist/ui/textHighlighter.js +0 -267
  785. package/dist/ui/textHighlighter.js.map +0 -1
  786. package/dist/ui/writeLock.d.ts +0 -65
  787. package/dist/ui/writeLock.d.ts.map +0 -1
  788. package/dist/ui/writeLock.js +0 -114
  789. package/dist/ui/writeLock.js.map +0 -1
  790. package/dist/utils/asyncUtils.d.ts +0 -95
  791. package/dist/utils/asyncUtils.d.ts.map +0 -1
  792. package/dist/utils/asyncUtils.js +0 -286
  793. package/dist/utils/asyncUtils.js.map +0 -1
  794. package/dist/utils/errorUtils.d.ts +0 -16
  795. package/dist/utils/errorUtils.d.ts.map +0 -1
  796. package/dist/utils/errorUtils.js +0 -66
  797. package/dist/utils/errorUtils.js.map +0 -1
  798. package/dist/utils/planFormatter.d.ts +0 -34
  799. package/dist/utils/planFormatter.d.ts.map +0 -1
  800. package/dist/utils/planFormatter.js +0 -140
  801. package/dist/utils/planFormatter.js.map +0 -1
  802. package/dist/workspace.d.ts +0 -8
  803. package/dist/workspace.d.ts.map +0 -1
  804. package/dist/workspace.js +0 -107
  805. package/dist/workspace.js.map +0 -1
  806. package/dist/workspace.validator.d.ts +0 -49
  807. package/dist/workspace.validator.d.ts.map +0 -1
  808. package/dist/workspace.validator.js +0 -214
  809. package/dist/workspace.validator.js.map +0 -1
@@ -1,509 +0,0 @@
1
- /**
2
- * AI Response Verification System - Isolated Runtime Only
3
- *
4
- * Verifies assistant claims by spawning fresh CLI instances and running
5
- * actual runtime tests. All verification happens in isolation.
6
- *
7
- * @license MIT
8
- */
9
- import { exec, spawn } from 'node:child_process';
10
- import { promisify } from 'node:util';
11
- import * as fs from 'node:fs/promises';
12
- import * as path from 'node:path';
13
- const execAsync = promisify(exec);
14
- // ============================================================================
15
- // ISOLATED RUNTIME - Core Functions
16
- // ============================================================================
17
- /**
18
- * Spawns a fresh isolated erosolar-cli instance for testing
19
- */
20
- async function spawnIsolatedCLI(cwd, timeout = 60000) {
21
- const cliPath = path.join(cwd, 'dist/bin/erosolar.js');
22
- // Verify CLI exists
23
- try {
24
- await fs.access(cliPath);
25
- }
26
- catch {
27
- throw new Error(`CLI not found at ${cliPath}. Run build first.`);
28
- }
29
- let output = '';
30
- let errors = '';
31
- let exitResolve;
32
- const exitPromise = new Promise(resolve => { exitResolve = resolve; });
33
- const child = spawn('node', [cliPath, '--plain'], {
34
- cwd,
35
- env: { ...process.env, EROSOLAR_TEST_MODE: '1', NO_COLOR: '1' },
36
- stdio: ['pipe', 'pipe', 'pipe']
37
- });
38
- child.stdout.on('data', (data) => { output += data.toString(); });
39
- child.stderr.on('data', (data) => { errors += data.toString(); });
40
- child.on('close', (code) => { exitResolve(code); });
41
- child.on('error', (err) => { errors += err.message; exitResolve(1); });
42
- // Set timeout
43
- const timeoutId = setTimeout(() => {
44
- child.kill('SIGTERM');
45
- errors += `\nTimeout after ${timeout}ms`;
46
- }, timeout);
47
- child.on('close', () => clearTimeout(timeoutId));
48
- // Wait for startup
49
- await new Promise(resolve => {
50
- const checkStartup = setInterval(() => {
51
- if (output.includes('erosolar') || output.includes('>') || output.length > 100) {
52
- clearInterval(checkStartup);
53
- resolve();
54
- }
55
- }, 100);
56
- setTimeout(() => { clearInterval(checkStartup); resolve(); }, 2000);
57
- });
58
- return {
59
- process: child,
60
- stdin: child.stdin,
61
- output,
62
- errors,
63
- exitPromise
64
- };
65
- }
66
- /**
67
- * Sends a command to the spawned CLI and waits for response
68
- */
69
- async function sendCommand(cli, command, waitMs = 5000) {
70
- const outputBefore = cli.output.length;
71
- cli.stdin.write(`${command}\n`);
72
- await new Promise(resolve => {
73
- let lastLength = cli.output.length;
74
- const checkInterval = setInterval(() => {
75
- if (cli.output.length > lastLength) {
76
- lastLength = cli.output.length;
77
- }
78
- else if (cli.output.length > outputBefore) {
79
- clearInterval(checkInterval);
80
- resolve();
81
- }
82
- }, 200);
83
- setTimeout(() => { clearInterval(checkInterval); resolve(); }, waitMs);
84
- });
85
- return cli.output.slice(outputBefore);
86
- }
87
- /**
88
- * Run a shell command for verification (file checks, etc.)
89
- */
90
- async function runShellVerification(cmd, cwd) {
91
- // Safety check - block dangerous commands
92
- const dangerous = [/\brm\s/i, /rmdir/i, /sudo/i, /chmod\s*7/i, /eval\s*\(/i, /DROP\s+TABLE/i, /DELETE\s+FROM/i];
93
- for (const p of dangerous) {
94
- if (p.test(cmd))
95
- return { ok: false, out: `Blocked dangerous command: ${p.source}` };
96
- }
97
- try {
98
- const { stdout, stderr } = await execAsync(cmd, { cwd, timeout: 30000 });
99
- return { ok: true, out: stdout + stderr };
100
- }
101
- catch (e) {
102
- return { ok: false, out: e instanceof Error ? e.message : 'Command failed' };
103
- }
104
- }
105
- /**
106
- * Runs an isolated runtime test
107
- */
108
- export async function runIsolatedTest(test, cwd, llmVerifier) {
109
- const startTime = Date.now();
110
- const result = {
111
- test,
112
- success: false,
113
- output: '',
114
- errors: '',
115
- exitCode: null,
116
- duration: 0,
117
- matchedPatterns: [],
118
- unmatchedPatterns: []
119
- };
120
- try {
121
- // Rebuild if required
122
- if (test.requiresBuild) {
123
- try {
124
- await execAsync('npm run build', { cwd, timeout: 120000 });
125
- }
126
- catch (buildErr) {
127
- result.errors = `Build failed: ${buildErr instanceof Error ? buildErr.message : 'unknown'}`;
128
- result.duration = Date.now() - startTime;
129
- return result;
130
- }
131
- }
132
- // Run shell commands first if any (file checks, etc.)
133
- if (test.shellCommands && test.shellCommands.length > 0) {
134
- for (const cmd of test.shellCommands) {
135
- const shellResult = await runShellVerification(cmd, cwd);
136
- result.output += `$ ${cmd}\n${shellResult.out}\n`;
137
- if (!shellResult.ok) {
138
- result.errors += `${shellResult.out}\n`;
139
- }
140
- }
141
- }
142
- // Run CLI commands if any
143
- if (test.commands && test.commands.length > 0) {
144
- const cli = await spawnIsolatedCLI(cwd, test.timeout || 60000);
145
- for (const cmd of test.commands) {
146
- const cmdOutput = await sendCommand(cli, cmd);
147
- result.output += `> ${cmd}\n${cmdOutput}\n`;
148
- }
149
- cli.stdin.write('/quit\n');
150
- await new Promise(resolve => setTimeout(resolve, 500));
151
- cli.process.kill('SIGTERM');
152
- result.exitCode = await cli.exitPromise;
153
- result.errors += cli.errors;
154
- }
155
- // Check expected output patterns
156
- if (test.expectedOutputs) {
157
- for (const pattern of test.expectedOutputs) {
158
- if (result.output.includes(pattern) || new RegExp(pattern, 'i').test(result.output)) {
159
- result.matchedPatterns.push(pattern);
160
- }
161
- else {
162
- result.unmatchedPatterns.push(pattern);
163
- }
164
- }
165
- }
166
- // LLM assessment of behavior
167
- if (test.expectedBehavior && llmVerifier) {
168
- const assessPrompt = `Assess if this output demonstrates the expected behavior.
169
-
170
- EXPECTED: ${test.expectedBehavior}
171
-
172
- OUTPUT:
173
- ---
174
- ${result.output.slice(0, 4000)}
175
- ---
176
-
177
- Return JSON: {"matches": true/false, "confidence": 0-100, "reasoning": "explanation"}`;
178
- try {
179
- const assessment = await llmVerifier(assessPrompt);
180
- const match = assessment.match(/\{[\s\S]*\}/);
181
- if (match) {
182
- const parsed = JSON.parse(match[0]);
183
- result.llmAssessment = `${parsed.matches ? '✅' : '❌'} [${parsed.confidence}%] ${parsed.reasoning}`;
184
- if (!parsed.matches || parsed.confidence < 70) {
185
- result.unmatchedPatterns.push(`behavior: ${test.expectedBehavior}`);
186
- }
187
- else {
188
- result.matchedPatterns.push(`behavior: ${test.expectedBehavior}`);
189
- }
190
- }
191
- }
192
- catch {
193
- result.llmAssessment = 'LLM assessment failed';
194
- }
195
- }
196
- // Determine success
197
- result.success = result.unmatchedPatterns.length === 0 &&
198
- (result.matchedPatterns.length > 0 || (!test.expectedOutputs?.length && !test.expectedBehavior));
199
- }
200
- catch (err) {
201
- result.errors = err instanceof Error ? err.message : 'Unknown error';
202
- }
203
- result.duration = Date.now() - startTime;
204
- return result;
205
- }
206
- // ============================================================================
207
- // CLAIM EXTRACTION - LLM extracts claims from responses
208
- // ============================================================================
209
- const EXTRACT_CLAIMS_PROMPT = `Extract ALL verifiable claims from this AI assistant response.
210
-
211
- RESPONSE:
212
- ---
213
- {RESPONSE}
214
- ---
215
-
216
- CONTEXT: {CONTEXT}
217
- WORKING_DIR: {WORKING_DIR}
218
-
219
- For each claim, determine:
220
- 1. What specific assertion is being made
221
- 2. Category: file_op (created/modified/deleted files), code (compiles/tests pass), command (executed successfully), state (something changed), behavior (feature works), fact (verifiable truth)
222
- 3. How it can be verified (shell command, file check, CLI test, etc.)
223
- 4. Priority: critical (must verify), high (should verify), medium (nice to verify), low (optional)
224
-
225
- Return JSON array:
226
- [{
227
- "id": "c1",
228
- "statement": "the specific claim",
229
- "category": "file_op|code|command|state|behavior|fact",
230
- "verifiable": true,
231
- "priority": "critical|high|medium|low",
232
- "context": {"path": "/path/if/relevant", "command": "if relevant"}
233
- }]
234
-
235
- Output ONLY valid JSON array.`;
236
- /**
237
- * Extract claims from assistant response using LLM
238
- */
239
- async function extractClaims(response, ctx) {
240
- if (!ctx.llmVerifier)
241
- return [];
242
- try {
243
- const prompt = EXTRACT_CLAIMS_PROMPT
244
- .replace('{RESPONSE}', response.slice(0, 8000))
245
- .replace('{CONTEXT}', ctx.conversationHistory?.slice(-3).join('\n') || '')
246
- .replace('{WORKING_DIR}', ctx.workingDirectory);
247
- const result = await ctx.llmVerifier(prompt);
248
- const match = result.match(/\[[\s\S]*\]/);
249
- if (match) {
250
- return JSON.parse(match[0]);
251
- }
252
- }
253
- catch {
254
- // Fall through
255
- }
256
- return [];
257
- }
258
- // ============================================================================
259
- // TEST GENERATION - LLM generates isolated tests for claims
260
- // ============================================================================
261
- const GENERATE_TESTS_PROMPT = `Generate isolated runtime tests for these claims.
262
-
263
- CLAIMS:
264
- {CLAIMS}
265
-
266
- WORKING_DIR: {WORKING_DIR}
267
- PLATFORM: {PLATFORM}
268
-
269
- For each claim, generate a test that verifies it using:
270
- - Shell commands (for file checks, git status, etc.)
271
- - CLI commands (for testing CLI behavior in fresh instance)
272
- - Expected output patterns
273
-
274
- Return JSON array:
275
- [{
276
- "id": "test-1",
277
- "description": "what we're testing",
278
- "shellCommands": ["ls -la path", "cat file"],
279
- "commands": ["/help", "some input"],
280
- "expectedOutputs": ["pattern1", "pattern2"],
281
- "expectedBehavior": "description for LLM assessment",
282
- "requiresBuild": false,
283
- "timeout": 30000
284
- }]
285
-
286
- Use READ-ONLY commands only. No destructive operations.
287
- Output ONLY valid JSON array.`;
288
- /**
289
- * Generate isolated tests for claims
290
- */
291
- async function generateTests(claims, ctx) {
292
- if (!ctx.llmVerifier || claims.length === 0)
293
- return [];
294
- try {
295
- const prompt = GENERATE_TESTS_PROMPT
296
- .replace('{CLAIMS}', JSON.stringify(claims.slice(0, 10)))
297
- .replace('{WORKING_DIR}', ctx.workingDirectory)
298
- .replace('{PLATFORM}', process.platform);
299
- const result = await ctx.llmVerifier(prompt);
300
- const match = result.match(/\[[\s\S]*\]/);
301
- if (match) {
302
- return JSON.parse(match[0]);
303
- }
304
- }
305
- catch {
306
- // Fall through to basic tests
307
- }
308
- // Fallback: generate basic tests
309
- return claims.filter(c => c.verifiable && (c.priority === 'critical' || c.priority === 'high')).map((c, i) => {
310
- const test = {
311
- id: `test-${i}`,
312
- description: c.statement,
313
- commands: [],
314
- shellCommands: [],
315
- expectedBehavior: c.statement,
316
- timeout: 30000
317
- };
318
- // Add basic verification based on category
319
- if (c.category === 'file_op' && c.context['path']) {
320
- test.shellCommands = [`test -f "${c.context['path']}" && echo "EXISTS" || echo "NOT_FOUND"`];
321
- test.expectedOutputs = ['EXISTS'];
322
- }
323
- else if (c.category === 'code') {
324
- test.shellCommands = ['npm run build 2>&1 | tail -5'];
325
- }
326
- else if (c.category === 'behavior') {
327
- test.commands = ['/help'];
328
- }
329
- return test;
330
- });
331
- }
332
- // ============================================================================
333
- // MAIN VERIFICATION API
334
- // ============================================================================
335
- /**
336
- * Verify an assistant response using a completely isolated process.
337
- *
338
- * This spawns a separate Node.js process to run all verification:
339
- * - Separate memory space from main CLI
340
- * - Separate event loop
341
- * - Independent error handling
342
- * - No shared state
343
- *
344
- * This ensures verification cannot interfere with the main process and vice versa.
345
- */
346
- export async function verifyResponse(response, ctx, responseId) {
347
- const timestamp = new Date().toISOString();
348
- const id = responseId || `verify-${Date.now()}`;
349
- // Find the isolated verifier script
350
- const verifierPath = path.join(ctx.workingDirectory, 'dist/core/isolatedVerifier.js');
351
- try {
352
- await fs.access(verifierPath);
353
- }
354
- catch {
355
- // Fallback: return unverified if script not found
356
- return {
357
- responseId: id,
358
- timestamp,
359
- claims: [],
360
- results: [],
361
- summary: { total: 0, verified: 0, failed: 0, inconclusive: 0 },
362
- overallVerdict: 'unverified',
363
- trustScore: 50
364
- };
365
- }
366
- // Build request for isolated process
367
- const request = {
368
- type: 'verify',
369
- response,
370
- workingDirectory: ctx.workingDirectory,
371
- conversationHistory: ctx.conversationHistory || [],
372
- provider: ctx.provider,
373
- model: ctx.model,
374
- };
375
- return new Promise((resolve) => {
376
- // Spawn completely isolated Node.js process
377
- const child = spawn('node', [verifierPath], {
378
- cwd: ctx.workingDirectory,
379
- env: {
380
- ...process.env,
381
- EROSOLAR_ISOLATED_VERIFIER: '1',
382
- NODE_OPTIONS: '--max-old-space-size=512', // Limit memory for safety
383
- },
384
- stdio: ['pipe', 'pipe', 'pipe'],
385
- });
386
- let stdout = '';
387
- let stderr = '';
388
- child.stdout.on('data', (data) => {
389
- stdout += data.toString();
390
- });
391
- child.stderr.on('data', (data) => {
392
- stderr += data.toString();
393
- });
394
- // Set timeout for verification (2 minutes max)
395
- const timeout = setTimeout(() => {
396
- child.kill('SIGTERM');
397
- resolve({
398
- responseId: id,
399
- timestamp,
400
- claims: [],
401
- results: [],
402
- summary: { total: 0, verified: 0, failed: 0, inconclusive: 0 },
403
- overallVerdict: 'unverified',
404
- trustScore: 50
405
- });
406
- }, 120000);
407
- child.on('close', (_code) => {
408
- clearTimeout(timeout);
409
- try {
410
- // Parse result from isolated process
411
- const result = JSON.parse(stdout);
412
- if (result.error) {
413
- // Process returned error
414
- resolve({
415
- responseId: id,
416
- timestamp,
417
- claims: [],
418
- results: [],
419
- summary: { total: 0, verified: 0, failed: 0, inconclusive: 0 },
420
- overallVerdict: 'unverified',
421
- trustScore: 50
422
- });
423
- }
424
- else {
425
- resolve(result);
426
- }
427
- }
428
- catch {
429
- // JSON parse failed
430
- resolve({
431
- responseId: id,
432
- timestamp,
433
- claims: [],
434
- results: [],
435
- summary: { total: 0, verified: 0, failed: 0, inconclusive: 0 },
436
- overallVerdict: 'unverified',
437
- trustScore: 50
438
- });
439
- }
440
- });
441
- child.on('error', () => {
442
- clearTimeout(timeout);
443
- resolve({
444
- responseId: id,
445
- timestamp,
446
- claims: [],
447
- results: [],
448
- summary: { total: 0, verified: 0, failed: 0, inconclusive: 0 },
449
- overallVerdict: 'unverified',
450
- trustScore: 50
451
- });
452
- });
453
- // Send request to isolated process via stdin
454
- child.stdin.write(JSON.stringify(request));
455
- child.stdin.end();
456
- });
457
- }
458
- /**
459
- * Format verification report for display
460
- */
461
- export function formatVerificationReport(report) {
462
- const bar = '█'.repeat(Math.round(report.trustScore / 10)) + '░'.repeat(10 - Math.round(report.trustScore / 10));
463
- const icon = report.trustScore >= 80 ? '✅' : report.trustScore >= 50 ? '⚠️' : '❌';
464
- let out = `╔════════════════════════════════════════════════════════════╗
465
- ║ ISOLATED RUNTIME VERIFICATION REPORT ║
466
- ╚════════════════════════════════════════════════════════════╝
467
-
468
- `;
469
- out += `Trust: ${icon} ${report.trustScore}/100 [${bar}]
470
- Verdict: ${report.overallVerdict.toUpperCase()}
471
-
472
- Claims: ${report.summary.total} | ✅ ${report.summary.verified} | ❌ ${report.summary.failed} | ❓ ${report.summary.inconclusive}
473
-
474
- `;
475
- out += `🔬 ISOLATED RUNTIME TESTS:\n`;
476
- for (const r of report.results.slice(0, 8)) {
477
- const statusIcon = r.verified ? '✅' : r.confidence === 'high' ? '❌' : '❓';
478
- out += ` ${statusIcon} [${r.confidence}] ${r.claim.statement.slice(0, 50)}...\n`;
479
- if (r.reasoning) {
480
- out += ` └─ ${r.reasoning.slice(0, 60)}\n`;
481
- }
482
- }
483
- if (report.results.length > 8) {
484
- out += ` ... +${report.results.length - 8} more\n`;
485
- }
486
- return out;
487
- }
488
- /**
489
- * Quick verification - verify only critical/high priority claims
490
- */
491
- export async function quickVerify(response, ctx) {
492
- const claims = await extractClaims(response, ctx);
493
- const critical = claims.filter(c => c.verifiable && (c.priority === 'critical' || c.priority === 'high')).slice(0, 3);
494
- if (critical.length === 0) {
495
- return { trustScore: 50, summary: 'No critical claims to verify' };
496
- }
497
- const tests = await generateTests(critical, ctx);
498
- let verified = 0;
499
- for (const test of tests) {
500
- const result = await runIsolatedTest(test, ctx.workingDirectory, ctx.llmVerifier);
501
- if (result.success)
502
- verified++;
503
- }
504
- return {
505
- trustScore: Math.round((verified / critical.length) * 100),
506
- summary: `${verified}/${critical.length} critical claims verified`
507
- };
508
- }
509
- //# sourceMappingURL=responseVerifier.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"responseVerifier.js","sourceRoot":"","sources":["../../src/core/responseVerifier.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;AAmFlC,+EAA+E;AAC/E,oCAAoC;AACpC,+EAA+E;AAE/E;;GAEG;AACH,KAAK,UAAU,gBAAgB,CAAC,GAAW,EAAE,UAAkB,KAAK;IAClE,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,sBAAsB,CAAC,CAAC;IAEvD,oBAAoB;IACpB,IAAI,CAAC;QACH,MAAM,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,oBAAoB,OAAO,oBAAoB,CAAC,CAAC;IACnE,CAAC;IAED,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,WAA0C,CAAC;IAC/C,MAAM,WAAW,GAAG,IAAI,OAAO,CAAgB,OAAO,CAAC,EAAE,GAAG,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtF,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE;QAChD,GAAG;QACH,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,kBAAkB,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE;QAC/D,KAAK,EAAE,CAAC,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AAU,IAAI,CAAC,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAEtH,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IACrE,CAAC;IAED,MAAM,KAAK,GAAG,MAAM,aAAa,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjD,IAAI,QAAQ,GAAG,CAAC,CAAC;IAEjB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,IAAI,EAAE,GAAG,CAAC,gBAAgB,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;QAClF,IAAI,MAAM,CAAC,OAAO;YAAE,QAAQ,EAAE,CAAC;IACjC,CAAC;IAED,OAAO;QACL,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;QAC1D,OAAO,EAAE,GAAG,QAAQ,IAAI,QAAQ,CAAC,MAAM,2BAA2B;KACnE,CAAC;AACJ,CAAC"}
@@ -1,141 +0,0 @@
1
- /**
2
- * Result Verification Framework
3
- *
4
- * Prevents erosolar-cli from hallucinating success by requiring explicit
5
- * verification of tool operation outcomes. All critical operations must
6
- * return structured results with verification status.
7
- *
8
- * CRITICAL: LLMs can misinterpret ambiguous output as success.
9
- * This module ensures clear, unambiguous success/failure signals.
10
- *
11
- * @license MIT
12
- * @author Bo Shang
13
- */
14
- export type VerificationStatus = 'VERIFIED_SUCCESS' | 'VERIFIED_FAILURE' | 'UNVERIFIED' | 'PARTIAL_SUCCESS' | 'REQUIRES_USER_ACTION';
15
- export interface VerifiedResult {
16
- /** Clear status for LLM to interpret */
17
- status: VerificationStatus;
18
- /** Human-readable summary (first line must state success/failure clearly) */
19
- summary: string;
20
- /** Detailed output from the operation */
21
- details: string;
22
- /** Specific verification checks that were performed */
23
- verificationChecks?: VerificationCheck[];
24
- /** Suggested next steps if operation failed or requires action */
25
- suggestedActions?: string[];
26
- /** Timestamp of verification */
27
- verifiedAt: string;
28
- /** Time elapsed for operation in ms */
29
- durationMs?: number;
30
- }
31
- export interface VerificationCheck {
32
- /** What was checked */
33
- check: string;
34
- /** Did it pass */
35
- passed: boolean;
36
- /** Details about the check result */
37
- details?: string;
38
- }
39
- /**
40
- * Format a verified result into a clear, unambiguous string for LLM consumption.
41
- * The format is designed to prevent misinterpretation.
42
- *
43
- * For SUCCESS: Keep it simple - just show the output
44
- * For FAILURE/others: Show detailed diagnostic information
45
- */
46
- export declare function formatVerifiedResult(result: VerifiedResult): string;
47
- /**
48
- * Create a verified success result
49
- */
50
- export declare function verifiedSuccess(summary: string, details: string, checks?: VerificationCheck[], durationMs?: number): string;
51
- /**
52
- * Create a verified failure result
53
- */
54
- export declare function verifiedFailure(summary: string, details: string, suggestedActions?: string[], checks?: VerificationCheck[], durationMs?: number): string;
55
- /**
56
- * Create an unverified result (when we can't confirm success)
57
- */
58
- export declare function unverifiedResult(summary: string, details: string, suggestedActions?: string[], durationMs?: number): string;
59
- /**
60
- * Create a partial success result
61
- */
62
- export declare function partialSuccess(summary: string, details: string, checks: VerificationCheck[], suggestedActions?: string[], durationMs?: number): string;
63
- /**
64
- * Create a result requiring user action
65
- */
66
- export declare function requiresUserAction(summary: string, details: string, requiredActions: string[], durationMs?: number): string;
67
- /**
68
- * Verification patterns for common outputs
69
- */
70
- export declare const OutputPatterns: {
71
- firebase: {
72
- success: RegExp[];
73
- failure: RegExp[];
74
- authRequired: RegExp[];
75
- };
76
- command: {
77
- success: RegExp[];
78
- failure: RegExp[];
79
- };
80
- npm: {
81
- success: RegExp[];
82
- failure: RegExp[];
83
- };
84
- git: {
85
- success: RegExp[];
86
- failure: RegExp[];
87
- };
88
- };
89
- /**
90
- * Normalize text to prevent Unicode lookalike attacks
91
- * Converts confusable characters (e.g., Cyrillic 'а' -> Latin 'a')
92
- * This prevents attackers from bypassing pattern detection with visually similar characters
93
- */
94
- export declare function normalizeForPatternMatch(text: string): string;
95
- /**
96
- * Analyze output against patterns to determine success/failure
97
- *
98
- * CRITICAL: This function is defensive against:
99
- * 1. Unicode lookalike attacks (Cyrillic/Greek characters that look like Latin)
100
- * 2. Exit code 0 with hidden failures in output
101
- * 3. False positives from success words appearing in error messages
102
- */
103
- export declare function analyzeOutput(output: string, patterns: {
104
- success: RegExp[];
105
- failure: RegExp[];
106
- }, exitCode?: number): {
107
- isSuccess: boolean;
108
- isFailure: boolean;
109
- matchedPattern?: string;
110
- confidence: 'high' | 'medium' | 'low';
111
- };
112
- /**
113
- * Create a verification check from a command result
114
- */
115
- export declare function createCommandCheck(checkName: string, exitCode: number, output: string, expectedPatterns?: RegExp[]): VerificationCheck;
116
- /**
117
- * Verify that a file exists and optionally contains expected content
118
- */
119
- export declare function verifyFileExists(filePath: string, expectedContent?: string | RegExp): Promise<VerificationCheck>;
120
- /**
121
- * Verify URL is accessible (for deployment verification)
122
- */
123
- export declare function verifyUrlAccessible(url: string, expectedStatus?: number, timeoutMs?: number): Promise<VerificationCheck>;
124
- /**
125
- * Verify a JSON response matches expected structure
126
- */
127
- export declare function verifyJsonEndpoint(url: string, expectedFields: string[], timeoutMs?: number): Promise<VerificationCheck>;
128
- /**
129
- * Check if content that would be truncated might contain error indicators
130
- * Returns a warning message if potential errors are detected in the truncated portion
131
- */
132
- export declare function checkTruncationForErrors(fullContent: string, truncateAt: number): {
133
- shouldWarn: boolean;
134
- warning: string;
135
- };
136
- /**
137
- * Safely truncate content with error detection
138
- * Returns truncated content with appropriate warning if errors might be hidden
139
- */
140
- export declare function safeTruncate(content: string, maxLength: number, _label?: string): string;
141
- //# sourceMappingURL=resultVerification.d.ts.map