agentic-qe 1.0.0 → 1.0.1

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 (796) hide show
  1. package/.claude/aqe-fleet.json +3 -3
  2. package/CHANGELOG.md +239 -0
  3. package/README.md +14 -1
  4. package/dist/agents/ApiContractValidatorAgent.d.ts.map +1 -1
  5. package/dist/agents/ApiContractValidatorAgent.js +1 -1
  6. package/dist/agents/ApiContractValidatorAgent.js.map +1 -1
  7. package/dist/agents/BaseAgent.d.ts.map +1 -1
  8. package/dist/agents/BaseAgent.js +16 -0
  9. package/dist/agents/BaseAgent.js.map +1 -1
  10. package/dist/agents/CoverageAnalyzerAgent.d.ts.map +1 -1
  11. package/dist/agents/CoverageAnalyzerAgent.js +12 -8
  12. package/dist/agents/CoverageAnalyzerAgent.js.map +1 -1
  13. package/dist/agents/SecurityScannerAgent.d.ts +1 -0
  14. package/dist/agents/SecurityScannerAgent.d.ts.map +1 -1
  15. package/dist/agents/SecurityScannerAgent.js +46 -41
  16. package/dist/agents/SecurityScannerAgent.js.map +1 -1
  17. package/dist/agents/TestExecutorAgent.d.ts +1 -1
  18. package/dist/agents/TestExecutorAgent.d.ts.map +1 -1
  19. package/dist/agents/TestExecutorAgent.js +64 -13
  20. package/dist/agents/TestExecutorAgent.js.map +1 -1
  21. package/dist/cli/commands/agent/assign.d.ts +76 -0
  22. package/dist/cli/commands/agent/assign.d.ts.map +1 -0
  23. package/dist/cli/commands/agent/assign.js +280 -0
  24. package/dist/cli/commands/agent/assign.js.map +1 -0
  25. package/dist/cli/commands/agent/attach.d.ts +87 -0
  26. package/dist/cli/commands/agent/attach.d.ts.map +1 -0
  27. package/dist/cli/commands/agent/attach.js +268 -0
  28. package/dist/cli/commands/agent/attach.js.map +1 -0
  29. package/dist/cli/commands/agent/benchmark.d.ts +45 -0
  30. package/dist/cli/commands/agent/benchmark.d.ts.map +1 -0
  31. package/dist/cli/commands/agent/benchmark.js +103 -0
  32. package/dist/cli/commands/agent/benchmark.js.map +1 -0
  33. package/dist/cli/commands/agent/clone.d.ts +20 -0
  34. package/dist/cli/commands/agent/clone.d.ts.map +1 -0
  35. package/dist/cli/commands/agent/clone.js +59 -0
  36. package/dist/cli/commands/agent/clone.js.map +1 -0
  37. package/dist/cli/commands/agent/detach.d.ts +76 -0
  38. package/dist/cli/commands/agent/detach.d.ts.map +1 -0
  39. package/dist/cli/commands/agent/detach.js +250 -0
  40. package/dist/cli/commands/agent/detach.js.map +1 -0
  41. package/dist/cli/commands/agent/index.d.ts +31 -0
  42. package/dist/cli/commands/agent/index.d.ts.map +1 -0
  43. package/dist/cli/commands/agent/index.js +54 -0
  44. package/dist/cli/commands/agent/index.js.map +1 -0
  45. package/dist/cli/commands/agent/inspect.d.ts +110 -0
  46. package/dist/cli/commands/agent/inspect.d.ts.map +1 -0
  47. package/dist/cli/commands/agent/inspect.js +272 -0
  48. package/dist/cli/commands/agent/inspect.js.map +1 -0
  49. package/dist/cli/commands/agent/migrate.d.ts +24 -0
  50. package/dist/cli/commands/agent/migrate.d.ts.map +1 -0
  51. package/dist/cli/commands/agent/migrate.js +81 -0
  52. package/dist/cli/commands/agent/migrate.js.map +1 -0
  53. package/dist/cli/commands/agent/restart.d.ts +71 -0
  54. package/dist/cli/commands/agent/restart.d.ts.map +1 -0
  55. package/dist/cli/commands/agent/restart.js +227 -0
  56. package/dist/cli/commands/agent/restart.js.map +1 -0
  57. package/dist/cli/commands/config/export.d.ts +15 -0
  58. package/dist/cli/commands/config/export.d.ts.map +1 -0
  59. package/dist/cli/commands/config/export.js +94 -0
  60. package/dist/cli/commands/config/export.js.map +1 -0
  61. package/dist/cli/commands/config/get.d.ts +23 -0
  62. package/dist/cli/commands/config/get.d.ts.map +1 -0
  63. package/dist/cli/commands/config/get.js +119 -0
  64. package/dist/cli/commands/config/get.js.map +1 -0
  65. package/dist/cli/commands/config/import.d.ts +17 -0
  66. package/dist/cli/commands/config/import.d.ts.map +1 -0
  67. package/dist/cli/commands/config/import.js +138 -0
  68. package/dist/cli/commands/config/import.js.map +1 -0
  69. package/dist/cli/commands/config/index.d.ts +18 -0
  70. package/dist/cli/commands/config/index.d.ts.map +1 -0
  71. package/dist/cli/commands/config/index.js +35 -0
  72. package/dist/cli/commands/config/index.js.map +1 -0
  73. package/dist/cli/commands/config/init.d.ts +21 -0
  74. package/dist/cli/commands/config/init.d.ts.map +1 -0
  75. package/dist/cli/commands/config/init.js +171 -0
  76. package/dist/cli/commands/config/init.js.map +1 -0
  77. package/dist/cli/commands/config/list.d.ts +5 -0
  78. package/dist/cli/commands/config/list.d.ts.map +1 -0
  79. package/dist/cli/commands/config/list.js +40 -0
  80. package/dist/cli/commands/config/list.js.map +1 -0
  81. package/dist/cli/commands/config/reset.d.ts +5 -0
  82. package/dist/cli/commands/config/reset.d.ts.map +1 -0
  83. package/dist/cli/commands/config/reset.js +45 -0
  84. package/dist/cli/commands/config/reset.js.map +1 -0
  85. package/dist/cli/commands/config/schema.d.ts +115 -0
  86. package/dist/cli/commands/config/schema.d.ts.map +1 -0
  87. package/dist/cli/commands/config/schema.js +98 -0
  88. package/dist/cli/commands/config/schema.js.map +1 -0
  89. package/dist/cli/commands/config/set.d.ts +19 -0
  90. package/dist/cli/commands/config/set.d.ts.map +1 -0
  91. package/dist/cli/commands/config/set.js +133 -0
  92. package/dist/cli/commands/config/set.js.map +1 -0
  93. package/dist/cli/commands/config/validate.d.ts +23 -0
  94. package/dist/cli/commands/config/validate.d.ts.map +1 -0
  95. package/dist/cli/commands/config/validate.js +155 -0
  96. package/dist/cli/commands/config/validate.js.map +1 -0
  97. package/dist/cli/commands/debug/agent.d.ts +40 -0
  98. package/dist/cli/commands/debug/agent.d.ts.map +1 -0
  99. package/dist/cli/commands/debug/agent.js +175 -0
  100. package/dist/cli/commands/debug/agent.js.map +1 -0
  101. package/dist/cli/commands/debug/diagnostics.d.ts +27 -0
  102. package/dist/cli/commands/debug/diagnostics.d.ts.map +1 -0
  103. package/dist/cli/commands/debug/diagnostics.js +377 -0
  104. package/dist/cli/commands/debug/diagnostics.js.map +1 -0
  105. package/dist/cli/commands/debug/health-check.d.ts +38 -0
  106. package/dist/cli/commands/debug/health-check.d.ts.map +1 -0
  107. package/dist/cli/commands/debug/health-check.js +317 -0
  108. package/dist/cli/commands/debug/health-check.js.map +1 -0
  109. package/dist/cli/commands/debug/index.d.ts +17 -0
  110. package/dist/cli/commands/debug/index.d.ts.map +1 -0
  111. package/dist/cli/commands/debug/index.js +20 -0
  112. package/dist/cli/commands/debug/index.js.map +1 -0
  113. package/dist/cli/commands/debug/profile.d.ts +84 -0
  114. package/dist/cli/commands/debug/profile.d.ts.map +1 -0
  115. package/dist/cli/commands/debug/profile.js +366 -0
  116. package/dist/cli/commands/debug/profile.js.map +1 -0
  117. package/dist/cli/commands/debug/trace.d.ts +40 -0
  118. package/dist/cli/commands/debug/trace.d.ts.map +1 -0
  119. package/dist/cli/commands/debug/trace.js +243 -0
  120. package/dist/cli/commands/debug/trace.js.map +1 -0
  121. package/dist/cli/commands/debug/troubleshoot.d.ts +38 -0
  122. package/dist/cli/commands/debug/troubleshoot.d.ts.map +1 -0
  123. package/dist/cli/commands/debug/troubleshoot.js +315 -0
  124. package/dist/cli/commands/debug/troubleshoot.js.map +1 -0
  125. package/dist/cli/commands/fleet/backup.d.ts +49 -0
  126. package/dist/cli/commands/fleet/backup.d.ts.map +1 -0
  127. package/dist/cli/commands/fleet/backup.js +89 -0
  128. package/dist/cli/commands/fleet/backup.js.map +1 -0
  129. package/dist/cli/commands/fleet/health.d.ts +24 -0
  130. package/dist/cli/commands/fleet/health.d.ts.map +1 -0
  131. package/dist/cli/commands/fleet/health.js +407 -0
  132. package/dist/cli/commands/fleet/health.js.map +1 -0
  133. package/dist/cli/commands/fleet/init.d.ts +11 -0
  134. package/dist/cli/commands/fleet/init.d.ts.map +1 -0
  135. package/dist/cli/commands/fleet/init.js +81 -0
  136. package/dist/cli/commands/fleet/init.js.map +1 -0
  137. package/dist/cli/commands/fleet/logs.d.ts +21 -0
  138. package/dist/cli/commands/fleet/logs.d.ts.map +1 -0
  139. package/dist/cli/commands/fleet/logs.js +256 -0
  140. package/dist/cli/commands/fleet/logs.js.map +1 -0
  141. package/dist/cli/commands/fleet/metrics.d.ts +27 -0
  142. package/dist/cli/commands/fleet/metrics.d.ts.map +1 -0
  143. package/dist/cli/commands/fleet/metrics.js +358 -0
  144. package/dist/cli/commands/fleet/metrics.js.map +1 -0
  145. package/dist/cli/commands/fleet/monitor.d.ts +18 -0
  146. package/dist/cli/commands/fleet/monitor.d.ts.map +1 -0
  147. package/dist/cli/commands/fleet/monitor.js +224 -0
  148. package/dist/cli/commands/fleet/monitor.js.map +1 -0
  149. package/dist/cli/commands/fleet/optimize.d.ts +42 -0
  150. package/dist/cli/commands/fleet/optimize.d.ts.map +1 -0
  151. package/dist/cli/commands/fleet/optimize.js +136 -0
  152. package/dist/cli/commands/fleet/optimize.js.map +1 -0
  153. package/dist/cli/commands/fleet/recover.d.ts +22 -0
  154. package/dist/cli/commands/fleet/recover.d.ts.map +1 -0
  155. package/dist/cli/commands/fleet/recover.js +100 -0
  156. package/dist/cli/commands/fleet/recover.js.map +1 -0
  157. package/dist/cli/commands/fleet/restart.d.ts +18 -0
  158. package/dist/cli/commands/fleet/restart.d.ts.map +1 -0
  159. package/dist/cli/commands/fleet/restart.js +280 -0
  160. package/dist/cli/commands/fleet/restart.js.map +1 -0
  161. package/dist/cli/commands/fleet/scale.d.ts +9 -0
  162. package/dist/cli/commands/fleet/scale.d.ts.map +1 -0
  163. package/dist/cli/commands/fleet/scale.js +67 -0
  164. package/dist/cli/commands/fleet/scale.js.map +1 -0
  165. package/dist/cli/commands/fleet/shutdown.d.ts +19 -0
  166. package/dist/cli/commands/fleet/shutdown.d.ts.map +1 -0
  167. package/dist/cli/commands/fleet/shutdown.js +297 -0
  168. package/dist/cli/commands/fleet/shutdown.js.map +1 -0
  169. package/dist/cli/commands/fleet/status.d.ts +10 -0
  170. package/dist/cli/commands/fleet/status.d.ts.map +1 -0
  171. package/dist/cli/commands/fleet/status.js +87 -0
  172. package/dist/cli/commands/fleet/status.js.map +1 -0
  173. package/dist/cli/commands/fleet/topology.d.ts +23 -0
  174. package/dist/cli/commands/fleet/topology.d.ts.map +1 -0
  175. package/dist/cli/commands/fleet/topology.js +365 -0
  176. package/dist/cli/commands/fleet/topology.js.map +1 -0
  177. package/dist/cli/commands/memory/compact.d.ts +19 -0
  178. package/dist/cli/commands/memory/compact.d.ts.map +1 -0
  179. package/dist/cli/commands/memory/compact.js +70 -0
  180. package/dist/cli/commands/memory/compact.js.map +1 -0
  181. package/dist/cli/commands/memory/index.d.ts +9 -0
  182. package/dist/cli/commands/memory/index.d.ts.map +1 -0
  183. package/dist/cli/commands/memory/index.js +25 -0
  184. package/dist/cli/commands/memory/index.js.map +1 -0
  185. package/dist/cli/commands/memory/stats.d.ts +30 -0
  186. package/dist/cli/commands/memory/stats.d.ts.map +1 -0
  187. package/dist/cli/commands/memory/stats.js +74 -0
  188. package/dist/cli/commands/memory/stats.js.map +1 -0
  189. package/dist/cli/commands/memory/vacuum.d.ts +24 -0
  190. package/dist/cli/commands/memory/vacuum.d.ts.map +1 -0
  191. package/dist/cli/commands/memory/vacuum.js +105 -0
  192. package/dist/cli/commands/memory/vacuum.js.map +1 -0
  193. package/dist/cli/commands/monitor/alerts.d.ts +45 -0
  194. package/dist/cli/commands/monitor/alerts.d.ts.map +1 -0
  195. package/dist/cli/commands/monitor/alerts.js +157 -0
  196. package/dist/cli/commands/monitor/alerts.js.map +1 -0
  197. package/dist/cli/commands/monitor/analyze.d.ts +49 -0
  198. package/dist/cli/commands/monitor/analyze.d.ts.map +1 -0
  199. package/dist/cli/commands/monitor/analyze.js +199 -0
  200. package/dist/cli/commands/monitor/analyze.js.map +1 -0
  201. package/dist/cli/commands/monitor/compare.d.ts +38 -0
  202. package/dist/cli/commands/monitor/compare.d.ts.map +1 -0
  203. package/dist/cli/commands/monitor/compare.js +167 -0
  204. package/dist/cli/commands/monitor/compare.js.map +1 -0
  205. package/dist/cli/commands/monitor/dashboard.d.ts +34 -0
  206. package/dist/cli/commands/monitor/dashboard.d.ts.map +1 -0
  207. package/dist/cli/commands/monitor/dashboard.js +147 -0
  208. package/dist/cli/commands/monitor/dashboard.js.map +1 -0
  209. package/dist/cli/commands/monitor/export.d.ts +36 -0
  210. package/dist/cli/commands/monitor/export.d.ts.map +1 -0
  211. package/dist/cli/commands/monitor/export.js +147 -0
  212. package/dist/cli/commands/monitor/export.js.map +1 -0
  213. package/dist/cli/commands/monitor/index.d.ts +11 -0
  214. package/dist/cli/commands/monitor/index.d.ts.map +1 -0
  215. package/dist/cli/commands/monitor/index.js +14 -0
  216. package/dist/cli/commands/monitor/index.js.map +1 -0
  217. package/dist/cli/commands/quality/baseline.d.ts +27 -0
  218. package/dist/cli/commands/quality/baseline.d.ts.map +1 -0
  219. package/dist/cli/commands/quality/baseline.js +125 -0
  220. package/dist/cli/commands/quality/baseline.js.map +1 -0
  221. package/dist/cli/commands/quality/compare.d.ts +36 -0
  222. package/dist/cli/commands/quality/compare.d.ts.map +1 -0
  223. package/dist/cli/commands/quality/compare.js +137 -0
  224. package/dist/cli/commands/quality/compare.js.map +1 -0
  225. package/dist/cli/commands/quality/decision.d.ts +81 -0
  226. package/dist/cli/commands/quality/decision.d.ts.map +1 -0
  227. package/dist/cli/commands/quality/decision.js +317 -0
  228. package/dist/cli/commands/quality/decision.js.map +1 -0
  229. package/dist/cli/commands/quality/gate.d.ts +47 -0
  230. package/dist/cli/commands/quality/gate.d.ts.map +1 -0
  231. package/dist/cli/commands/quality/gate.js +203 -0
  232. package/dist/cli/commands/quality/gate.js.map +1 -0
  233. package/dist/cli/commands/quality/index.d.ts +17 -0
  234. package/dist/cli/commands/quality/index.d.ts.map +1 -0
  235. package/dist/cli/commands/quality/index.js +41 -0
  236. package/dist/cli/commands/quality/index.js.map +1 -0
  237. package/dist/cli/commands/quality/policy.d.ts +57 -0
  238. package/dist/cli/commands/quality/policy.d.ts.map +1 -0
  239. package/dist/cli/commands/quality/policy.js +347 -0
  240. package/dist/cli/commands/quality/policy.js.map +1 -0
  241. package/dist/cli/commands/quality/risk.d.ts +41 -0
  242. package/dist/cli/commands/quality/risk.d.ts.map +1 -0
  243. package/dist/cli/commands/quality/risk.js +253 -0
  244. package/dist/cli/commands/quality/risk.js.map +1 -0
  245. package/dist/cli/commands/quality/trends.d.ts +40 -0
  246. package/dist/cli/commands/quality/trends.d.ts.map +1 -0
  247. package/dist/cli/commands/quality/trends.js +123 -0
  248. package/dist/cli/commands/quality/trends.js.map +1 -0
  249. package/dist/cli/commands/quality/validate.d.ts +44 -0
  250. package/dist/cli/commands/quality/validate.d.ts.map +1 -0
  251. package/dist/cli/commands/quality/validate.js +222 -0
  252. package/dist/cli/commands/quality/validate.js.map +1 -0
  253. package/dist/cli/commands/test/analyze-failures.d.ts +39 -0
  254. package/dist/cli/commands/test/analyze-failures.d.ts.map +1 -0
  255. package/dist/cli/commands/test/analyze-failures.js +114 -0
  256. package/dist/cli/commands/test/analyze-failures.js.map +1 -0
  257. package/dist/cli/commands/test/clean.d.ts +3 -0
  258. package/dist/cli/commands/test/clean.d.ts.map +1 -0
  259. package/dist/cli/commands/test/clean.js +122 -0
  260. package/dist/cli/commands/test/clean.js.map +1 -0
  261. package/dist/cli/commands/test/debug.d.ts +3 -0
  262. package/dist/cli/commands/test/debug.d.ts.map +1 -0
  263. package/dist/cli/commands/test/debug.js +158 -0
  264. package/dist/cli/commands/test/debug.js.map +1 -0
  265. package/dist/cli/commands/test/diff.d.ts +3 -0
  266. package/dist/cli/commands/test/diff.d.ts.map +1 -0
  267. package/dist/cli/commands/test/diff.js +219 -0
  268. package/dist/cli/commands/test/diff.js.map +1 -0
  269. package/dist/cli/commands/test/flakiness.d.ts +32 -0
  270. package/dist/cli/commands/test/flakiness.d.ts.map +1 -0
  271. package/dist/cli/commands/test/flakiness.js +122 -0
  272. package/dist/cli/commands/test/flakiness.js.map +1 -0
  273. package/dist/cli/commands/test/index.d.ts +17 -0
  274. package/dist/cli/commands/test/index.d.ts.map +1 -0
  275. package/dist/cli/commands/test/index.js +45 -0
  276. package/dist/cli/commands/test/index.js.map +1 -0
  277. package/dist/cli/commands/test/mutate.d.ts +29 -0
  278. package/dist/cli/commands/test/mutate.d.ts.map +1 -0
  279. package/dist/cli/commands/test/mutate.js +163 -0
  280. package/dist/cli/commands/test/mutate.js.map +1 -0
  281. package/dist/cli/commands/test/parallel.d.ts +3 -0
  282. package/dist/cli/commands/test/parallel.d.ts.map +1 -0
  283. package/dist/cli/commands/test/parallel.js +116 -0
  284. package/dist/cli/commands/test/parallel.js.map +1 -0
  285. package/dist/cli/commands/test/profile.d.ts +3 -0
  286. package/dist/cli/commands/test/profile.d.ts.map +1 -0
  287. package/dist/cli/commands/test/profile.js +179 -0
  288. package/dist/cli/commands/test/profile.js.map +1 -0
  289. package/dist/cli/commands/test/queue.d.ts +3 -0
  290. package/dist/cli/commands/test/queue.d.ts.map +1 -0
  291. package/dist/cli/commands/test/queue.js +140 -0
  292. package/dist/cli/commands/test/queue.js.map +1 -0
  293. package/dist/cli/commands/test/retry.d.ts +3 -0
  294. package/dist/cli/commands/test/retry.d.ts.map +1 -0
  295. package/dist/cli/commands/test/retry.js +104 -0
  296. package/dist/cli/commands/test/retry.js.map +1 -0
  297. package/dist/cli/commands/test/snapshot.d.ts +3 -0
  298. package/dist/cli/commands/test/snapshot.d.ts.map +1 -0
  299. package/dist/cli/commands/test/snapshot.js +177 -0
  300. package/dist/cli/commands/test/snapshot.js.map +1 -0
  301. package/dist/cli/commands/test/trace.d.ts +3 -0
  302. package/dist/cli/commands/test/trace.d.ts.map +1 -0
  303. package/dist/cli/commands/test/trace.js +160 -0
  304. package/dist/cli/commands/test/trace.js.map +1 -0
  305. package/dist/cli/commands/test/watch.d.ts +3 -0
  306. package/dist/cli/commands/test/watch.d.ts.map +1 -0
  307. package/dist/cli/commands/test/watch.js +130 -0
  308. package/dist/cli/commands/test/watch.js.map +1 -0
  309. package/dist/cli/commands/workflow/cancel.d.ts +55 -0
  310. package/dist/cli/commands/workflow/cancel.d.ts.map +1 -0
  311. package/dist/cli/commands/workflow/cancel.js +331 -0
  312. package/dist/cli/commands/workflow/cancel.js.map +1 -0
  313. package/dist/cli/commands/workflow/index.d.ts +11 -0
  314. package/dist/cli/commands/workflow/index.d.ts.map +1 -0
  315. package/dist/cli/commands/workflow/index.js +20 -0
  316. package/dist/cli/commands/workflow/index.js.map +1 -0
  317. package/dist/cli/commands/workflow/list.d.ts +43 -0
  318. package/dist/cli/commands/workflow/list.d.ts.map +1 -0
  319. package/dist/cli/commands/workflow/list.js +257 -0
  320. package/dist/cli/commands/workflow/list.js.map +1 -0
  321. package/dist/cli/commands/workflow/pause.d.ts +44 -0
  322. package/dist/cli/commands/workflow/pause.d.ts.map +1 -0
  323. package/dist/cli/commands/workflow/pause.js +222 -0
  324. package/dist/cli/commands/workflow/pause.js.map +1 -0
  325. package/dist/cli/index.js +311 -0
  326. package/dist/cli/index.js.map +1 -1
  327. package/dist/core/Agent.d.ts.map +1 -1
  328. package/dist/core/Agent.js +18 -8
  329. package/dist/core/Agent.js.map +1 -1
  330. package/dist/core/ArtifactWorkflow.d.ts +149 -0
  331. package/dist/core/ArtifactWorkflow.d.ts.map +1 -0
  332. package/dist/core/ArtifactWorkflow.js +347 -0
  333. package/dist/core/ArtifactWorkflow.js.map +1 -0
  334. package/dist/core/EventBus.d.ts.map +1 -1
  335. package/dist/core/EventBus.js +18 -12
  336. package/dist/core/EventBus.js.map +1 -1
  337. package/dist/core/coordination/BlackboardCoordination.d.ts +44 -0
  338. package/dist/core/coordination/BlackboardCoordination.d.ts.map +1 -0
  339. package/dist/core/coordination/BlackboardCoordination.js +95 -0
  340. package/dist/core/coordination/BlackboardCoordination.js.map +1 -0
  341. package/dist/core/coordination/ConsensusGating.d.ts +53 -0
  342. package/dist/core/coordination/ConsensusGating.d.ts.map +1 -0
  343. package/dist/core/coordination/ConsensusGating.js +137 -0
  344. package/dist/core/coordination/ConsensusGating.js.map +1 -0
  345. package/dist/core/coordination/GOAPCoordination.d.ts +79 -0
  346. package/dist/core/coordination/GOAPCoordination.d.ts.map +1 -0
  347. package/dist/core/coordination/GOAPCoordination.js +178 -0
  348. package/dist/core/coordination/GOAPCoordination.js.map +1 -0
  349. package/dist/core/coordination/OODACoordination.d.ts +99 -0
  350. package/dist/core/coordination/OODACoordination.d.ts.map +1 -0
  351. package/dist/core/coordination/OODACoordination.js +207 -0
  352. package/dist/core/coordination/OODACoordination.js.map +1 -0
  353. package/dist/core/coordination/index.d.ts +19 -0
  354. package/dist/core/coordination/index.d.ts.map +1 -0
  355. package/dist/core/coordination/index.js +22 -0
  356. package/dist/core/coordination/index.js.map +1 -0
  357. package/dist/core/events/QEEventBus.d.ts +62 -0
  358. package/dist/core/events/QEEventBus.d.ts.map +1 -0
  359. package/dist/core/events/QEEventBus.js +109 -0
  360. package/dist/core/events/QEEventBus.js.map +1 -0
  361. package/dist/core/events/index.d.ts +7 -0
  362. package/dist/core/events/index.d.ts.map +1 -0
  363. package/dist/core/events/index.js +25 -0
  364. package/dist/core/events/index.js.map +1 -0
  365. package/dist/core/events/types.d.ts +72 -0
  366. package/dist/core/events/types.d.ts.map +1 -0
  367. package/dist/core/events/types.js +6 -0
  368. package/dist/core/events/types.js.map +1 -0
  369. package/dist/core/hooks/RollbackManager.d.ts +90 -0
  370. package/dist/core/hooks/RollbackManager.d.ts.map +1 -0
  371. package/dist/core/hooks/RollbackManager.js +214 -0
  372. package/dist/core/hooks/RollbackManager.js.map +1 -0
  373. package/dist/core/hooks/VerificationHookManager.d.ts +134 -0
  374. package/dist/core/hooks/VerificationHookManager.d.ts.map +1 -0
  375. package/dist/core/hooks/VerificationHookManager.js +293 -0
  376. package/dist/core/hooks/VerificationHookManager.js.map +1 -0
  377. package/dist/core/hooks/checkers/ConfigurationChecker.d.ts +31 -0
  378. package/dist/core/hooks/checkers/ConfigurationChecker.d.ts.map +1 -0
  379. package/dist/core/hooks/checkers/ConfigurationChecker.js +98 -0
  380. package/dist/core/hooks/checkers/ConfigurationChecker.js.map +1 -0
  381. package/dist/core/hooks/checkers/EnvironmentChecker.d.ts +23 -0
  382. package/dist/core/hooks/checkers/EnvironmentChecker.d.ts.map +1 -0
  383. package/dist/core/hooks/checkers/EnvironmentChecker.js +93 -0
  384. package/dist/core/hooks/checkers/EnvironmentChecker.js.map +1 -0
  385. package/dist/core/hooks/checkers/PermissionChecker.d.ts +26 -0
  386. package/dist/core/hooks/checkers/PermissionChecker.d.ts.map +1 -0
  387. package/dist/core/hooks/checkers/PermissionChecker.js +136 -0
  388. package/dist/core/hooks/checkers/PermissionChecker.js.map +1 -0
  389. package/dist/core/hooks/checkers/ResourceChecker.d.ts +24 -0
  390. package/dist/core/hooks/checkers/ResourceChecker.d.ts.map +1 -0
  391. package/dist/core/hooks/checkers/ResourceChecker.js +97 -0
  392. package/dist/core/hooks/checkers/ResourceChecker.js.map +1 -0
  393. package/dist/core/hooks/checkers/index.d.ts +12 -0
  394. package/dist/core/hooks/checkers/index.d.ts.map +1 -0
  395. package/dist/core/hooks/checkers/index.js +15 -0
  396. package/dist/core/hooks/checkers/index.js.map +1 -0
  397. package/dist/core/hooks/index.d.ts +16 -0
  398. package/dist/core/hooks/index.d.ts.map +1 -0
  399. package/dist/core/hooks/index.js +34 -0
  400. package/dist/core/hooks/index.js.map +1 -0
  401. package/dist/core/hooks/validators/CoverageValidator.d.ts +38 -0
  402. package/dist/core/hooks/validators/CoverageValidator.d.ts.map +1 -0
  403. package/dist/core/hooks/validators/CoverageValidator.js +68 -0
  404. package/dist/core/hooks/validators/CoverageValidator.js.map +1 -0
  405. package/dist/core/hooks/validators/OutputValidator.d.ts +19 -0
  406. package/dist/core/hooks/validators/OutputValidator.d.ts.map +1 -0
  407. package/dist/core/hooks/validators/OutputValidator.js +57 -0
  408. package/dist/core/hooks/validators/OutputValidator.js.map +1 -0
  409. package/dist/core/hooks/validators/PerformanceValidator.d.ts +39 -0
  410. package/dist/core/hooks/validators/PerformanceValidator.d.ts.map +1 -0
  411. package/dist/core/hooks/validators/PerformanceValidator.js +97 -0
  412. package/dist/core/hooks/validators/PerformanceValidator.js.map +1 -0
  413. package/dist/core/hooks/validators/QualityValidator.d.ts +32 -0
  414. package/dist/core/hooks/validators/QualityValidator.d.ts.map +1 -0
  415. package/dist/core/hooks/validators/QualityValidator.js +71 -0
  416. package/dist/core/hooks/validators/QualityValidator.js.map +1 -0
  417. package/dist/core/hooks/validators/index.d.ts +12 -0
  418. package/dist/core/hooks/validators/index.d.ts.map +1 -0
  419. package/dist/core/hooks/validators/index.js +15 -0
  420. package/dist/core/hooks/validators/index.js.map +1 -0
  421. package/dist/core/index.d.ts +2 -0
  422. package/dist/core/index.d.ts.map +1 -1
  423. package/dist/core/index.js +3 -1
  424. package/dist/core/index.js.map +1 -1
  425. package/dist/core/memory/AccessControl.d.ts +139 -0
  426. package/dist/core/memory/AccessControl.d.ts.map +1 -0
  427. package/dist/core/memory/AccessControl.js +269 -0
  428. package/dist/core/memory/AccessControl.js.map +1 -0
  429. package/dist/core/memory/CompressionManager.d.ts +85 -0
  430. package/dist/core/memory/CompressionManager.d.ts.map +1 -0
  431. package/dist/core/memory/CompressionManager.js +227 -0
  432. package/dist/core/memory/CompressionManager.js.map +1 -0
  433. package/dist/core/memory/EncryptionManager.d.ts +86 -0
  434. package/dist/core/memory/EncryptionManager.d.ts.map +1 -0
  435. package/dist/core/memory/EncryptionManager.js +213 -0
  436. package/dist/core/memory/EncryptionManager.js.map +1 -0
  437. package/dist/core/memory/EnhancedSwarmMemoryManager.d.ts +91 -0
  438. package/dist/core/memory/EnhancedSwarmMemoryManager.d.ts.map +1 -0
  439. package/dist/core/memory/EnhancedSwarmMemoryManager.js +216 -0
  440. package/dist/core/memory/EnhancedSwarmMemoryManager.js.map +1 -0
  441. package/dist/core/memory/SwarmMemoryManager.d.ts +295 -0
  442. package/dist/core/memory/SwarmMemoryManager.d.ts.map +1 -0
  443. package/dist/core/memory/SwarmMemoryManager.js +1407 -0
  444. package/dist/core/memory/SwarmMemoryManager.js.map +1 -0
  445. package/dist/core/memory/VersionHistory.d.ts +88 -0
  446. package/dist/core/memory/VersionHistory.d.ts.map +1 -0
  447. package/dist/core/memory/VersionHistory.js +239 -0
  448. package/dist/core/memory/VersionHistory.js.map +1 -0
  449. package/dist/core/memory/index.d.ts +11 -0
  450. package/dist/core/memory/index.d.ts.map +1 -0
  451. package/dist/core/memory/index.js +18 -0
  452. package/dist/core/memory/index.js.map +1 -0
  453. package/dist/coverage/coverage-collector.d.ts +63 -8
  454. package/dist/coverage/coverage-collector.d.ts.map +1 -1
  455. package/dist/coverage/coverage-collector.js +354 -14
  456. package/dist/coverage/coverage-collector.js.map +1 -1
  457. package/dist/coverage/coverage-reporter.d.ts +48 -11
  458. package/dist/coverage/coverage-reporter.d.ts.map +1 -1
  459. package/dist/coverage/coverage-reporter.js +424 -14
  460. package/dist/coverage/coverage-reporter.js.map +1 -1
  461. package/dist/mcp/handlers/advanced/api-breaking-changes.d.ts +7 -0
  462. package/dist/mcp/handlers/advanced/api-breaking-changes.d.ts.map +1 -0
  463. package/dist/mcp/handlers/advanced/api-breaking-changes.js +217 -0
  464. package/dist/mcp/handlers/advanced/api-breaking-changes.js.map +1 -0
  465. package/dist/mcp/handlers/advanced/index.d.ts +10 -0
  466. package/dist/mcp/handlers/advanced/index.d.ts.map +1 -0
  467. package/dist/mcp/handlers/advanced/index.js +19 -0
  468. package/dist/mcp/handlers/advanced/index.js.map +1 -0
  469. package/dist/mcp/handlers/advanced/mutation-test-execute.d.ts +7 -0
  470. package/dist/mcp/handlers/advanced/mutation-test-execute.d.ts.map +1 -0
  471. package/dist/mcp/handlers/advanced/mutation-test-execute.js +230 -0
  472. package/dist/mcp/handlers/advanced/mutation-test-execute.js.map +1 -0
  473. package/dist/mcp/handlers/advanced/production-incident-replay.d.ts +7 -0
  474. package/dist/mcp/handlers/advanced/production-incident-replay.d.ts.map +1 -0
  475. package/dist/mcp/handlers/advanced/production-incident-replay.js +228 -0
  476. package/dist/mcp/handlers/advanced/production-incident-replay.js.map +1 -0
  477. package/dist/mcp/handlers/advanced/production-rum-analyze.d.ts +7 -0
  478. package/dist/mcp/handlers/advanced/production-rum-analyze.d.ts.map +1 -0
  479. package/dist/mcp/handlers/advanced/production-rum-analyze.js +289 -0
  480. package/dist/mcp/handlers/advanced/production-rum-analyze.js.map +1 -0
  481. package/dist/mcp/handlers/advanced/requirements-generate-bdd.d.ts +7 -0
  482. package/dist/mcp/handlers/advanced/requirements-generate-bdd.d.ts.map +1 -0
  483. package/dist/mcp/handlers/advanced/requirements-generate-bdd.js +268 -0
  484. package/dist/mcp/handlers/advanced/requirements-generate-bdd.js.map +1 -0
  485. package/dist/mcp/handlers/advanced/requirements-validate.d.ts +7 -0
  486. package/dist/mcp/handlers/advanced/requirements-validate.d.ts.map +1 -0
  487. package/dist/mcp/handlers/advanced/requirements-validate.js +176 -0
  488. package/dist/mcp/handlers/advanced/requirements-validate.js.map +1 -0
  489. package/dist/mcp/handlers/analysis/coverage-analyze-sublinear-handler.d.ts +10 -0
  490. package/dist/mcp/handlers/analysis/coverage-analyze-sublinear-handler.d.ts.map +1 -0
  491. package/dist/mcp/handlers/analysis/coverage-analyze-sublinear-handler.js +31 -0
  492. package/dist/mcp/handlers/analysis/coverage-analyze-sublinear-handler.js.map +1 -0
  493. package/dist/mcp/handlers/analysis/coverage-gaps-detect-handler.d.ts +14 -0
  494. package/dist/mcp/handlers/analysis/coverage-gaps-detect-handler.d.ts.map +1 -0
  495. package/dist/mcp/handlers/analysis/coverage-gaps-detect-handler.js +55 -0
  496. package/dist/mcp/handlers/analysis/coverage-gaps-detect-handler.js.map +1 -0
  497. package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.d.ts +35 -0
  498. package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.d.ts.map +1 -0
  499. package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.js +163 -0
  500. package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.js.map +1 -0
  501. package/dist/mcp/handlers/analysis/coverageGapsDetect.d.ts +56 -0
  502. package/dist/mcp/handlers/analysis/coverageGapsDetect.d.ts.map +1 -0
  503. package/dist/mcp/handlers/analysis/coverageGapsDetect.js +204 -0
  504. package/dist/mcp/handlers/analysis/coverageGapsDetect.js.map +1 -0
  505. package/dist/mcp/handlers/analysis/index.d.ts +15 -0
  506. package/dist/mcp/handlers/analysis/index.d.ts.map +1 -0
  507. package/dist/mcp/handlers/analysis/index.js +18 -0
  508. package/dist/mcp/handlers/analysis/index.js.map +1 -0
  509. package/dist/mcp/handlers/analysis/performance-benchmark-run-handler.d.ts +15 -0
  510. package/dist/mcp/handlers/analysis/performance-benchmark-run-handler.d.ts.map +1 -0
  511. package/dist/mcp/handlers/analysis/performance-benchmark-run-handler.js +47 -0
  512. package/dist/mcp/handlers/analysis/performance-benchmark-run-handler.js.map +1 -0
  513. package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.d.ts +15 -0
  514. package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.d.ts.map +1 -0
  515. package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.js +55 -0
  516. package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.js.map +1 -0
  517. package/dist/mcp/handlers/analysis/performanceBenchmarkRun.d.ts +58 -0
  518. package/dist/mcp/handlers/analysis/performanceBenchmarkRun.d.ts.map +1 -0
  519. package/dist/mcp/handlers/analysis/performanceBenchmarkRun.js +188 -0
  520. package/dist/mcp/handlers/analysis/performanceBenchmarkRun.js.map +1 -0
  521. package/dist/mcp/handlers/analysis/performanceMonitorRealtime.d.ts +58 -0
  522. package/dist/mcp/handlers/analysis/performanceMonitorRealtime.d.ts.map +1 -0
  523. package/dist/mcp/handlers/analysis/performanceMonitorRealtime.js +185 -0
  524. package/dist/mcp/handlers/analysis/performanceMonitorRealtime.js.map +1 -0
  525. package/dist/mcp/handlers/analysis/security-scan-comprehensive-handler.d.ts +15 -0
  526. package/dist/mcp/handlers/analysis/security-scan-comprehensive-handler.d.ts.map +1 -0
  527. package/dist/mcp/handlers/analysis/security-scan-comprehensive-handler.js +70 -0
  528. package/dist/mcp/handlers/analysis/security-scan-comprehensive-handler.js.map +1 -0
  529. package/dist/mcp/handlers/analysis/securityScanComprehensive.d.ts +66 -0
  530. package/dist/mcp/handlers/analysis/securityScanComprehensive.d.ts.map +1 -0
  531. package/dist/mcp/handlers/analysis/securityScanComprehensive.js +300 -0
  532. package/dist/mcp/handlers/analysis/securityScanComprehensive.js.map +1 -0
  533. package/dist/mcp/handlers/chaos/chaos-inject-failure.d.ts +18 -0
  534. package/dist/mcp/handlers/chaos/chaos-inject-failure.d.ts.map +1 -0
  535. package/dist/mcp/handlers/chaos/chaos-inject-failure.js +278 -0
  536. package/dist/mcp/handlers/chaos/chaos-inject-failure.js.map +1 -0
  537. package/dist/mcp/handlers/chaos/chaos-inject-latency.d.ts +18 -0
  538. package/dist/mcp/handlers/chaos/chaos-inject-latency.d.ts.map +1 -0
  539. package/dist/mcp/handlers/chaos/chaos-inject-latency.js +215 -0
  540. package/dist/mcp/handlers/chaos/chaos-inject-latency.js.map +1 -0
  541. package/dist/mcp/handlers/chaos/chaos-resilience-test.d.ts +18 -0
  542. package/dist/mcp/handlers/chaos/chaos-resilience-test.d.ts.map +1 -0
  543. package/dist/mcp/handlers/chaos/chaos-resilience-test.js +430 -0
  544. package/dist/mcp/handlers/chaos/chaos-resilience-test.js.map +1 -0
  545. package/dist/mcp/handlers/chaos/index.d.ts +8 -0
  546. package/dist/mcp/handlers/chaos/index.d.ts.map +1 -0
  547. package/dist/mcp/handlers/chaos/index.js +19 -0
  548. package/dist/mcp/handlers/chaos/index.js.map +1 -0
  549. package/dist/mcp/handlers/coordination/event-emit.d.ts +47 -0
  550. package/dist/mcp/handlers/coordination/event-emit.d.ts.map +1 -0
  551. package/dist/mcp/handlers/coordination/event-emit.js +96 -0
  552. package/dist/mcp/handlers/coordination/event-emit.js.map +1 -0
  553. package/dist/mcp/handlers/coordination/event-subscribe.d.ts +49 -0
  554. package/dist/mcp/handlers/coordination/event-subscribe.d.ts.map +1 -0
  555. package/dist/mcp/handlers/coordination/event-subscribe.js +210 -0
  556. package/dist/mcp/handlers/coordination/event-subscribe.js.map +1 -0
  557. package/dist/mcp/handlers/coordination/index.d.ts +22 -0
  558. package/dist/mcp/handlers/coordination/index.d.ts.map +1 -0
  559. package/dist/mcp/handlers/coordination/index.js +25 -0
  560. package/dist/mcp/handlers/coordination/index.js.map +1 -0
  561. package/dist/mcp/handlers/coordination/task-status.d.ts +75 -0
  562. package/dist/mcp/handlers/coordination/task-status.d.ts.map +1 -0
  563. package/dist/mcp/handlers/coordination/task-status.js +134 -0
  564. package/dist/mcp/handlers/coordination/task-status.js.map +1 -0
  565. package/dist/mcp/handlers/coordination/workflow-checkpoint.d.ts +45 -0
  566. package/dist/mcp/handlers/coordination/workflow-checkpoint.d.ts.map +1 -0
  567. package/dist/mcp/handlers/coordination/workflow-checkpoint.js +114 -0
  568. package/dist/mcp/handlers/coordination/workflow-checkpoint.js.map +1 -0
  569. package/dist/mcp/handlers/coordination/workflow-create.d.ts +71 -0
  570. package/dist/mcp/handlers/coordination/workflow-create.d.ts.map +1 -0
  571. package/dist/mcp/handlers/coordination/workflow-create.js +163 -0
  572. package/dist/mcp/handlers/coordination/workflow-create.js.map +1 -0
  573. package/dist/mcp/handlers/coordination/workflow-execute.d.ts +61 -0
  574. package/dist/mcp/handlers/coordination/workflow-execute.d.ts.map +1 -0
  575. package/dist/mcp/handlers/coordination/workflow-execute.js +160 -0
  576. package/dist/mcp/handlers/coordination/workflow-execute.js.map +1 -0
  577. package/dist/mcp/handlers/coordination/workflow-resume.d.ts +49 -0
  578. package/dist/mcp/handlers/coordination/workflow-resume.d.ts.map +1 -0
  579. package/dist/mcp/handlers/coordination/workflow-resume.js +124 -0
  580. package/dist/mcp/handlers/coordination/workflow-resume.js.map +1 -0
  581. package/dist/mcp/handlers/integration/contract-validate.d.ts +10 -0
  582. package/dist/mcp/handlers/integration/contract-validate.d.ts.map +1 -0
  583. package/dist/mcp/handlers/integration/contract-validate.js +349 -0
  584. package/dist/mcp/handlers/integration/contract-validate.js.map +1 -0
  585. package/dist/mcp/handlers/integration/dependency-check.d.ts +10 -0
  586. package/dist/mcp/handlers/integration/dependency-check.d.ts.map +1 -0
  587. package/dist/mcp/handlers/integration/dependency-check.js +253 -0
  588. package/dist/mcp/handlers/integration/dependency-check.js.map +1 -0
  589. package/dist/mcp/handlers/integration/index.d.ts +9 -0
  590. package/dist/mcp/handlers/integration/index.d.ts.map +1 -0
  591. package/dist/mcp/handlers/integration/index.js +14 -0
  592. package/dist/mcp/handlers/integration/index.js.map +1 -0
  593. package/dist/mcp/handlers/integration/integration-test-orchestrate.d.ts +10 -0
  594. package/dist/mcp/handlers/integration/integration-test-orchestrate.d.ts.map +1 -0
  595. package/dist/mcp/handlers/integration/integration-test-orchestrate.js +242 -0
  596. package/dist/mcp/handlers/integration/integration-test-orchestrate.js.map +1 -0
  597. package/dist/mcp/handlers/memory/artifact-manifest.d.ts +57 -0
  598. package/dist/mcp/handlers/memory/artifact-manifest.d.ts.map +1 -0
  599. package/dist/mcp/handlers/memory/artifact-manifest.js +176 -0
  600. package/dist/mcp/handlers/memory/artifact-manifest.js.map +1 -0
  601. package/dist/mcp/handlers/memory/blackboard-post.d.ts +50 -0
  602. package/dist/mcp/handlers/memory/blackboard-post.d.ts.map +1 -0
  603. package/dist/mcp/handlers/memory/blackboard-post.js +88 -0
  604. package/dist/mcp/handlers/memory/blackboard-post.js.map +1 -0
  605. package/dist/mcp/handlers/memory/blackboard-read.d.ts +33 -0
  606. package/dist/mcp/handlers/memory/blackboard-read.d.ts.map +1 -0
  607. package/dist/mcp/handlers/memory/blackboard-read.js +81 -0
  608. package/dist/mcp/handlers/memory/blackboard-read.js.map +1 -0
  609. package/dist/mcp/handlers/memory/consensus-propose.d.ts +57 -0
  610. package/dist/mcp/handlers/memory/consensus-propose.d.ts.map +1 -0
  611. package/dist/mcp/handlers/memory/consensus-propose.js +99 -0
  612. package/dist/mcp/handlers/memory/consensus-propose.js.map +1 -0
  613. package/dist/mcp/handlers/memory/consensus-vote.d.ts +37 -0
  614. package/dist/mcp/handlers/memory/consensus-vote.d.ts.map +1 -0
  615. package/dist/mcp/handlers/memory/consensus-vote.js +131 -0
  616. package/dist/mcp/handlers/memory/consensus-vote.js.map +1 -0
  617. package/dist/mcp/handlers/memory/memory-backup.d.ts +49 -0
  618. package/dist/mcp/handlers/memory/memory-backup.d.ts.map +1 -0
  619. package/dist/mcp/handlers/memory/memory-backup.js +154 -0
  620. package/dist/mcp/handlers/memory/memory-backup.js.map +1 -0
  621. package/dist/mcp/handlers/memory/memory-query.d.ts +35 -0
  622. package/dist/mcp/handlers/memory/memory-query.d.ts.map +1 -0
  623. package/dist/mcp/handlers/memory/memory-query.js +96 -0
  624. package/dist/mcp/handlers/memory/memory-query.js.map +1 -0
  625. package/dist/mcp/handlers/memory/memory-retrieve.d.ts +32 -0
  626. package/dist/mcp/handlers/memory/memory-retrieve.d.ts.map +1 -0
  627. package/dist/mcp/handlers/memory/memory-retrieve.js +91 -0
  628. package/dist/mcp/handlers/memory/memory-retrieve.js.map +1 -0
  629. package/dist/mcp/handlers/memory/memory-share.d.ts +39 -0
  630. package/dist/mcp/handlers/memory/memory-share.d.ts.map +1 -0
  631. package/dist/mcp/handlers/memory/memory-share.js +96 -0
  632. package/dist/mcp/handlers/memory/memory-share.js.map +1 -0
  633. package/dist/mcp/handlers/memory/memory-store.d.ts +47 -0
  634. package/dist/mcp/handlers/memory/memory-store.d.ts.map +1 -0
  635. package/dist/mcp/handlers/memory/memory-store.js +107 -0
  636. package/dist/mcp/handlers/memory/memory-store.js.map +1 -0
  637. package/dist/mcp/handlers/prediction/deployment-readiness-check.d.ts +157 -0
  638. package/dist/mcp/handlers/prediction/deployment-readiness-check.d.ts.map +1 -0
  639. package/dist/mcp/handlers/prediction/deployment-readiness-check.js +483 -0
  640. package/dist/mcp/handlers/prediction/deployment-readiness-check.js.map +1 -0
  641. package/dist/mcp/handlers/prediction/flaky-test-detect.d.ts +178 -0
  642. package/dist/mcp/handlers/prediction/flaky-test-detect.d.ts.map +1 -0
  643. package/dist/mcp/handlers/prediction/flaky-test-detect.js +438 -0
  644. package/dist/mcp/handlers/prediction/flaky-test-detect.js.map +1 -0
  645. package/dist/mcp/handlers/prediction/index.d.ts +19 -0
  646. package/dist/mcp/handlers/prediction/index.d.ts.map +1 -0
  647. package/dist/mcp/handlers/prediction/index.js +22 -0
  648. package/dist/mcp/handlers/prediction/index.js.map +1 -0
  649. package/dist/mcp/handlers/prediction/predict-defects-ai.d.ts +133 -0
  650. package/dist/mcp/handlers/prediction/predict-defects-ai.d.ts.map +1 -0
  651. package/dist/mcp/handlers/prediction/predict-defects-ai.js +278 -0
  652. package/dist/mcp/handlers/prediction/predict-defects-ai.js.map +1 -0
  653. package/dist/mcp/handlers/prediction/regression-risk-analyze.d.ts +189 -0
  654. package/dist/mcp/handlers/prediction/regression-risk-analyze.d.ts.map +1 -0
  655. package/dist/mcp/handlers/prediction/regression-risk-analyze.js +419 -0
  656. package/dist/mcp/handlers/prediction/regression-risk-analyze.js.map +1 -0
  657. package/dist/mcp/handlers/prediction/visual-test-regression.d.ts +138 -0
  658. package/dist/mcp/handlers/prediction/visual-test-regression.d.ts.map +1 -0
  659. package/dist/mcp/handlers/prediction/visual-test-regression.js +274 -0
  660. package/dist/mcp/handlers/prediction/visual-test-regression.js.map +1 -0
  661. package/dist/mcp/handlers/quality/quality-decision-make.d.ts +104 -0
  662. package/dist/mcp/handlers/quality/quality-decision-make.d.ts.map +1 -0
  663. package/dist/mcp/handlers/quality/quality-decision-make.js +418 -0
  664. package/dist/mcp/handlers/quality/quality-decision-make.js.map +1 -0
  665. package/dist/mcp/handlers/quality/quality-gate-execute.d.ts +160 -0
  666. package/dist/mcp/handlers/quality/quality-gate-execute.d.ts.map +1 -0
  667. package/dist/mcp/handlers/quality/quality-gate-execute.js +424 -0
  668. package/dist/mcp/handlers/quality/quality-gate-execute.js.map +1 -0
  669. package/dist/mcp/handlers/quality/quality-policy-check.d.ts +163 -0
  670. package/dist/mcp/handlers/quality/quality-policy-check.d.ts.map +1 -0
  671. package/dist/mcp/handlers/quality/quality-policy-check.js +465 -0
  672. package/dist/mcp/handlers/quality/quality-policy-check.js.map +1 -0
  673. package/dist/mcp/handlers/quality/quality-risk-assess.d.ts +123 -0
  674. package/dist/mcp/handlers/quality/quality-risk-assess.d.ts.map +1 -0
  675. package/dist/mcp/handlers/quality/quality-risk-assess.js +532 -0
  676. package/dist/mcp/handlers/quality/quality-risk-assess.js.map +1 -0
  677. package/dist/mcp/handlers/quality/quality-validate-metrics.d.ts +117 -0
  678. package/dist/mcp/handlers/quality/quality-validate-metrics.d.ts.map +1 -0
  679. package/dist/mcp/handlers/quality/quality-validate-metrics.js +298 -0
  680. package/dist/mcp/handlers/quality/quality-validate-metrics.js.map +1 -0
  681. package/dist/mcp/handlers/test/index.d.ts +9 -0
  682. package/dist/mcp/handlers/test/index.d.ts.map +1 -0
  683. package/dist/mcp/handlers/test/index.js +25 -0
  684. package/dist/mcp/handlers/test/index.js.map +1 -0
  685. package/dist/mcp/handlers/test/test-coverage-detailed.d.ts +65 -0
  686. package/dist/mcp/handlers/test/test-coverage-detailed.d.ts.map +1 -0
  687. package/dist/mcp/handlers/test/test-coverage-detailed.js +305 -0
  688. package/dist/mcp/handlers/test/test-coverage-detailed.js.map +1 -0
  689. package/dist/mcp/handlers/test/test-execute-parallel.d.ts +39 -0
  690. package/dist/mcp/handlers/test/test-execute-parallel.d.ts.map +1 -0
  691. package/dist/mcp/handlers/test/test-execute-parallel.js +189 -0
  692. package/dist/mcp/handlers/test/test-execute-parallel.js.map +1 -0
  693. package/dist/mcp/handlers/test/test-generate-enhanced.d.ts +40 -0
  694. package/dist/mcp/handlers/test/test-generate-enhanced.d.ts.map +1 -0
  695. package/dist/mcp/handlers/test/test-generate-enhanced.js +240 -0
  696. package/dist/mcp/handlers/test/test-generate-enhanced.js.map +1 -0
  697. package/dist/mcp/handlers/test/test-optimize-sublinear.d.ts +40 -0
  698. package/dist/mcp/handlers/test/test-optimize-sublinear.d.ts.map +1 -0
  699. package/dist/mcp/handlers/test/test-optimize-sublinear.js +223 -0
  700. package/dist/mcp/handlers/test/test-optimize-sublinear.js.map +1 -0
  701. package/dist/mcp/handlers/test/test-report-comprehensive.d.ts +50 -0
  702. package/dist/mcp/handlers/test/test-report-comprehensive.d.ts.map +1 -0
  703. package/dist/mcp/handlers/test/test-report-comprehensive.js +239 -0
  704. package/dist/mcp/handlers/test/test-report-comprehensive.js.map +1 -0
  705. package/dist/mcp/handlers/test-execute.d.ts +0 -2
  706. package/dist/mcp/handlers/test-execute.d.ts.map +1 -1
  707. package/dist/mcp/handlers/test-execute.js +82 -45
  708. package/dist/mcp/handlers/test-execute.js.map +1 -1
  709. package/dist/mcp/server.d.ts +4 -0
  710. package/dist/mcp/server.d.ts.map +1 -1
  711. package/dist/mcp/server.js +89 -0
  712. package/dist/mcp/server.js.map +1 -1
  713. package/dist/mcp/services/HookExecutor.d.ts +4 -1
  714. package/dist/mcp/services/HookExecutor.d.ts.map +1 -1
  715. package/dist/mcp/services/HookExecutor.js.map +1 -1
  716. package/dist/mcp/tools.d.ts +43 -0
  717. package/dist/mcp/tools.d.ts.map +1 -1
  718. package/dist/mcp/tools.js +1256 -1
  719. package/dist/mcp/tools.js.map +1 -1
  720. package/dist/mcp/types/advanced.d.ts +193 -0
  721. package/dist/mcp/types/advanced.d.ts.map +1 -0
  722. package/dist/mcp/types/advanced.js +7 -0
  723. package/dist/mcp/types/advanced.js.map +1 -0
  724. package/dist/mcp/types/analysis.d.ts +46 -0
  725. package/dist/mcp/types/analysis.d.ts.map +1 -0
  726. package/dist/mcp/types/analysis.js +6 -0
  727. package/dist/mcp/types/analysis.js.map +1 -0
  728. package/dist/mcp/types/chaos.d.ts +343 -0
  729. package/dist/mcp/types/chaos.d.ts.map +1 -0
  730. package/dist/mcp/types/chaos.js +7 -0
  731. package/dist/mcp/types/chaos.js.map +1 -0
  732. package/dist/mcp/types/integration.d.ts +418 -0
  733. package/dist/mcp/types/integration.d.ts.map +1 -0
  734. package/dist/mcp/types/integration.js +7 -0
  735. package/dist/mcp/types/integration.js.map +1 -0
  736. package/dist/utils/Config.d.ts +4 -0
  737. package/dist/utils/Config.d.ts.map +1 -1
  738. package/dist/utils/Config.js +31 -0
  739. package/dist/utils/Config.js.map +1 -1
  740. package/dist/utils/FakerDataGenerator.d.ts +203 -0
  741. package/dist/utils/FakerDataGenerator.d.ts.map +1 -0
  742. package/dist/utils/FakerDataGenerator.js +379 -0
  743. package/dist/utils/FakerDataGenerator.js.map +1 -0
  744. package/dist/utils/SecurityScanner.d.ts +72 -0
  745. package/dist/utils/SecurityScanner.d.ts.map +1 -0
  746. package/dist/utils/SecurityScanner.js +378 -0
  747. package/dist/utils/SecurityScanner.js.map +1 -0
  748. package/dist/utils/TestFrameworkExecutor.d.ts +146 -0
  749. package/dist/utils/TestFrameworkExecutor.d.ts.map +1 -0
  750. package/dist/utils/TestFrameworkExecutor.js +566 -0
  751. package/dist/utils/TestFrameworkExecutor.js.map +1 -0
  752. package/dist/utils/index.d.ts +2 -0
  753. package/dist/utils/index.d.ts.map +1 -1
  754. package/dist/utils/index.js +3 -1
  755. package/dist/utils/index.js.map +1 -1
  756. package/dist/utils/validation.d.ts +28 -0
  757. package/dist/utils/validation.d.ts.map +1 -0
  758. package/dist/utils/validation.js +57 -0
  759. package/dist/utils/validation.js.map +1 -0
  760. package/package.json +15 -5
  761. package/dist/core/coverage-analyzer.d.ts +0 -50
  762. package/dist/core/coverage-analyzer.d.ts.map +0 -1
  763. package/dist/core/coverage-analyzer.js +0 -146
  764. package/dist/core/coverage-analyzer.js.map +0 -1
  765. package/dist/core/quality-gate.d.ts +0 -81
  766. package/dist/core/quality-gate.d.ts.map +0 -1
  767. package/dist/core/quality-gate.js +0 -254
  768. package/dist/core/quality-gate.js.map +0 -1
  769. package/dist/optimization/sublinear-solver.d.ts +0 -72
  770. package/dist/optimization/sublinear-solver.d.ts.map +0 -1
  771. package/dist/optimization/sublinear-solver.js +0 -263
  772. package/dist/optimization/sublinear-solver.js.map +0 -1
  773. package/dist/scripts/verifyComplexity.d.ts +0 -8
  774. package/dist/scripts/verifyComplexity.d.ts.map +0 -1
  775. package/dist/scripts/verifyComplexity.js +0 -56
  776. package/dist/scripts/verifyComplexity.js.map +0 -1
  777. package/dist/utils/sublinear/coverageOptimizer.d.ts +0 -84
  778. package/dist/utils/sublinear/coverageOptimizer.d.ts.map +0 -1
  779. package/dist/utils/sublinear/coverageOptimizer.js +0 -415
  780. package/dist/utils/sublinear/coverageOptimizer.js.map +0 -1
  781. package/dist/utils/sublinear/index.d.ts +0 -50
  782. package/dist/utils/sublinear/index.d.ts.map +0 -1
  783. package/dist/utils/sublinear/index.js +0 -390
  784. package/dist/utils/sublinear/index.js.map +0 -1
  785. package/dist/utils/sublinear/matrixSolver.d.ts +0 -132
  786. package/dist/utils/sublinear/matrixSolver.d.ts.map +0 -1
  787. package/dist/utils/sublinear/matrixSolver.js +0 -642
  788. package/dist/utils/sublinear/matrixSolver.js.map +0 -1
  789. package/dist/utils/sublinear/temporalPredictor.d.ts +0 -195
  790. package/dist/utils/sublinear/temporalPredictor.d.ts.map +0 -1
  791. package/dist/utils/sublinear/temporalPredictor.js +0 -474
  792. package/dist/utils/sublinear/temporalPredictor.js.map +0 -1
  793. package/dist/utils/sublinear/testSelector.d.ts +0 -81
  794. package/dist/utils/sublinear/testSelector.d.ts.map +0 -1
  795. package/dist/utils/sublinear/testSelector.js +0 -303
  796. package/dist/utils/sublinear/testSelector.js.map +0 -1
@@ -0,0 +1,407 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.FleetHealthCommand = void 0;
30
+ const chalk_1 = __importDefault(require("chalk"));
31
+ const fs = __importStar(require("fs-extra"));
32
+ class FleetHealthCommand {
33
+ static async execute(options) {
34
+ // Check if fleet is initialized
35
+ if (!await fs.pathExists('.agentic-qe/config/fleet.json')) {
36
+ throw new Error('Fleet not initialized. Run: aqe fleet init');
37
+ }
38
+ console.log(chalk_1.default.blue.bold('\n🏥 Fleet Health Check\n'));
39
+ // Collect health data
40
+ const healthReport = await this.performHealthCheck(options.detailed);
41
+ // Display health report
42
+ this.displayHealthReport(healthReport, options.detailed);
43
+ // Export report if requested
44
+ if (options.exportReport) {
45
+ await this.exportHealthReport(healthReport);
46
+ console.log(chalk_1.default.green('\n✅ Health report exported'));
47
+ }
48
+ // Auto-fix if requested
49
+ if (options.fix && healthReport.issues.length > 0) {
50
+ await this.autoFixIssues(healthReport.issues);
51
+ }
52
+ // Store health check in coordination
53
+ await this.storeHealthCheck(healthReport);
54
+ return healthReport;
55
+ }
56
+ static async performHealthCheck(detailed) {
57
+ const report = {
58
+ timestamp: new Date().toISOString(),
59
+ status: 'healthy',
60
+ components: {},
61
+ issues: [],
62
+ recommendations: [],
63
+ metrics: {}
64
+ };
65
+ // Check configuration health
66
+ report.components.configuration = await this.checkConfigurationHealth();
67
+ // Check data integrity
68
+ report.components.data = await this.checkDataIntegrity();
69
+ // Check agent health
70
+ report.components.agents = await this.checkAgentHealth();
71
+ // Check task execution health
72
+ report.components.tasks = await this.checkTaskHealth();
73
+ // Check coordination health
74
+ report.components.coordination = await this.checkCoordinationHealth();
75
+ // Check system resources
76
+ report.components.resources = await this.checkSystemResources();
77
+ // Calculate overall status
78
+ const componentStatuses = Object.values(report.components).map((c) => c.status);
79
+ const healthyCount = componentStatuses.filter(s => s === 'healthy').length;
80
+ const totalCount = componentStatuses.length;
81
+ if (healthyCount === totalCount) {
82
+ report.status = 'healthy';
83
+ }
84
+ else if (healthyCount >= totalCount * 0.7) {
85
+ report.status = 'degraded';
86
+ }
87
+ else {
88
+ report.status = 'unhealthy';
89
+ }
90
+ // Collect issues from all components
91
+ Object.values(report.components).forEach((component) => {
92
+ if (component.issues) {
93
+ report.issues.push(...component.issues);
94
+ }
95
+ });
96
+ // Generate recommendations
97
+ report.recommendations = this.generateRecommendations(report.components);
98
+ // Collect detailed metrics if requested
99
+ if (detailed) {
100
+ report.metrics = await this.collectDetailedMetrics();
101
+ }
102
+ return report;
103
+ }
104
+ static async checkConfigurationHealth() {
105
+ const health = {
106
+ status: 'healthy',
107
+ issues: [],
108
+ checks: []
109
+ };
110
+ // Check required configuration files
111
+ const requiredFiles = [
112
+ '.agentic-qe/config/fleet.json',
113
+ '.agentic-qe/config/agents.json'
114
+ ];
115
+ for (const file of requiredFiles) {
116
+ if (await fs.pathExists(file)) {
117
+ health.checks.push({ file, status: 'ok' });
118
+ }
119
+ else {
120
+ health.issues.push({ severity: 'critical', message: `Missing configuration: ${file}` });
121
+ health.status = 'unhealthy';
122
+ }
123
+ }
124
+ // Validate configuration content
125
+ if (await fs.pathExists('.agentic-qe/config/fleet.json')) {
126
+ const config = await fs.readJson('.agentic-qe/config/fleet.json');
127
+ if (!config.topology) {
128
+ health.issues.push({ severity: 'warning', message: 'No topology specified' });
129
+ health.status = 'degraded';
130
+ }
131
+ if (!config.maxAgents || config.maxAgents < 1) {
132
+ health.issues.push({ severity: 'critical', message: 'Invalid maxAgents configuration' });
133
+ health.status = 'unhealthy';
134
+ }
135
+ }
136
+ return health;
137
+ }
138
+ static async checkDataIntegrity() {
139
+ const health = {
140
+ status: 'healthy',
141
+ issues: []
142
+ };
143
+ // Check data directory
144
+ if (!await fs.pathExists('.agentic-qe/data')) {
145
+ health.issues.push({ severity: 'warning', message: 'Data directory missing' });
146
+ health.status = 'degraded';
147
+ return health;
148
+ }
149
+ // Check registry file
150
+ if (await fs.pathExists('.agentic-qe/data/registry.json')) {
151
+ try {
152
+ const registry = await fs.readJson('.agentic-qe/data/registry.json');
153
+ // Validate registry structure
154
+ if (!registry.agents || !Array.isArray(registry.agents)) {
155
+ health.issues.push({ severity: 'critical', message: 'Invalid registry structure' });
156
+ health.status = 'unhealthy';
157
+ }
158
+ }
159
+ catch (error) {
160
+ health.issues.push({ severity: 'critical', message: 'Corrupted registry file' });
161
+ health.status = 'unhealthy';
162
+ }
163
+ }
164
+ return health;
165
+ }
166
+ static async checkAgentHealth() {
167
+ const health = {
168
+ status: 'healthy',
169
+ issues: [],
170
+ agentStats: {}
171
+ };
172
+ const registryPath = '.agentic-qe/data/registry.json';
173
+ if (!await fs.pathExists(registryPath)) {
174
+ health.issues.push({ severity: 'warning', message: 'No agent registry found' });
175
+ health.status = 'degraded';
176
+ return health;
177
+ }
178
+ const registry = await fs.readJson(registryPath);
179
+ const agents = registry.agents || [];
180
+ health.agentStats = {
181
+ total: agents.length,
182
+ active: agents.filter((a) => a.status === 'active').length,
183
+ idle: agents.filter((a) => a.status === 'idle').length,
184
+ failed: agents.filter((a) => a.status === 'failed').length
185
+ };
186
+ // Check for failed agents
187
+ if (health.agentStats.failed > 0) {
188
+ health.issues.push({
189
+ severity: 'warning',
190
+ message: `${health.agentStats.failed} failed agents detected`
191
+ });
192
+ health.status = 'degraded';
193
+ }
194
+ // Check for low active agent count
195
+ if (health.agentStats.active < health.agentStats.total * 0.5) {
196
+ health.issues.push({
197
+ severity: 'warning',
198
+ message: 'Less than 50% of agents are active'
199
+ });
200
+ health.status = 'degraded';
201
+ }
202
+ return health;
203
+ }
204
+ static async checkTaskHealth() {
205
+ const health = {
206
+ status: 'healthy',
207
+ issues: [],
208
+ taskStats: {}
209
+ };
210
+ const registryPath = '.agentic-qe/data/registry.json';
211
+ if (!await fs.pathExists(registryPath)) {
212
+ return health;
213
+ }
214
+ const registry = await fs.readJson(registryPath);
215
+ const tasks = registry.tasks || [];
216
+ health.taskStats = {
217
+ total: tasks.length,
218
+ running: tasks.filter((t) => t.status === 'running').length,
219
+ completed: tasks.filter((t) => t.status === 'completed').length,
220
+ failed: tasks.filter((t) => t.status === 'failed').length
221
+ };
222
+ // Calculate failure rate
223
+ if (health.taskStats.total > 0) {
224
+ const failureRate = health.taskStats.failed / health.taskStats.total;
225
+ if (failureRate > 0.3) {
226
+ health.issues.push({
227
+ severity: 'critical',
228
+ message: `High task failure rate: ${(failureRate * 100).toFixed(1)}%`
229
+ });
230
+ health.status = 'unhealthy';
231
+ }
232
+ else if (failureRate > 0.1) {
233
+ health.issues.push({
234
+ severity: 'warning',
235
+ message: `Elevated task failure rate: ${(failureRate * 100).toFixed(1)}%`
236
+ });
237
+ health.status = 'degraded';
238
+ }
239
+ }
240
+ return health;
241
+ }
242
+ static async checkCoordinationHealth() {
243
+ const health = {
244
+ status: 'healthy',
245
+ issues: []
246
+ };
247
+ // Check coordination scripts
248
+ const scriptsDir = '.agentic-qe/scripts';
249
+ if (await fs.pathExists(scriptsDir)) {
250
+ const scripts = await fs.readdir(scriptsDir);
251
+ if (scripts.length === 0) {
252
+ health.issues.push({ severity: 'info', message: 'No coordination scripts found' });
253
+ }
254
+ }
255
+ // Check if Claude Flow memory is accessible
256
+ try {
257
+ const { execSync } = require('child_process');
258
+ execSync('npx claude-flow@alpha hooks notify --message "Health check"', {
259
+ stdio: 'ignore',
260
+ timeout: 5000
261
+ });
262
+ }
263
+ catch (error) {
264
+ health.issues.push({ severity: 'warning', message: 'Claude Flow coordination unavailable' });
265
+ health.status = 'degraded';
266
+ }
267
+ return health;
268
+ }
269
+ static async checkSystemResources() {
270
+ const health = {
271
+ status: 'healthy',
272
+ issues: [],
273
+ resources: {}
274
+ };
275
+ // Check disk space
276
+ try {
277
+ const stats = await fs.stat('.agentic-qe');
278
+ health.resources.dataDir = 'ok';
279
+ }
280
+ catch (error) {
281
+ health.issues.push({ severity: 'critical', message: 'Cannot access data directory' });
282
+ health.status = 'unhealthy';
283
+ }
284
+ return health;
285
+ }
286
+ static generateRecommendations(components) {
287
+ const recommendations = [];
288
+ Object.entries(components).forEach(([name, component]) => {
289
+ if (component.status !== 'healthy') {
290
+ switch (name) {
291
+ case 'configuration':
292
+ recommendations.push('Run `aqe fleet init` to recreate configuration files');
293
+ break;
294
+ case 'data':
295
+ recommendations.push('Check data directory permissions and integrity');
296
+ break;
297
+ case 'agents':
298
+ recommendations.push('Investigate failed agents and restart if needed');
299
+ break;
300
+ case 'tasks':
301
+ recommendations.push('Review task logs for failure patterns');
302
+ break;
303
+ case 'coordination':
304
+ recommendations.push('Verify Claude Flow installation and configuration');
305
+ break;
306
+ }
307
+ }
308
+ });
309
+ if (recommendations.length === 0) {
310
+ recommendations.push('Fleet is healthy - continue regular monitoring');
311
+ }
312
+ return recommendations;
313
+ }
314
+ static async collectDetailedMetrics() {
315
+ return {
316
+ timestamp: new Date().toISOString(),
317
+ uptime: process.uptime() * 1000,
318
+ memoryUsage: process.memoryUsage(),
319
+ nodeVersion: process.version
320
+ };
321
+ }
322
+ static displayHealthReport(report, detailed) {
323
+ // Overall status
324
+ const statusColor = this.getHealthColor(report.status);
325
+ console.log(chalk_1.default.blue('📊 Overall Health:'));
326
+ console.log(` Status: ${statusColor(report.status.toUpperCase())}`);
327
+ // Component health
328
+ console.log(chalk_1.default.blue('\n🔧 Component Health:'));
329
+ Object.entries(report.components).forEach(([name, component]) => {
330
+ const color = this.getHealthColor(component.status);
331
+ console.log(` ${name}: ${color(component.status)}`);
332
+ });
333
+ // Issues
334
+ if (report.issues.length > 0) {
335
+ console.log(chalk_1.default.red('\n🚨 Issues Detected:'));
336
+ report.issues.forEach((issue) => {
337
+ const severityColor = this.getSeverityColor(issue.severity);
338
+ console.log(severityColor(` [${issue.severity.toUpperCase()}] ${issue.message}`));
339
+ });
340
+ }
341
+ else {
342
+ console.log(chalk_1.default.green('\n✅ No issues detected'));
343
+ }
344
+ // Recommendations
345
+ if (report.recommendations.length > 0) {
346
+ console.log(chalk_1.default.yellow('\n💡 Recommendations:'));
347
+ report.recommendations.forEach((rec) => {
348
+ console.log(chalk_1.default.gray(` • ${rec}`));
349
+ });
350
+ }
351
+ // Detailed metrics
352
+ if (detailed && report.metrics) {
353
+ console.log(chalk_1.default.blue('\n📈 Detailed Metrics:'));
354
+ console.log(chalk_1.default.gray(` Uptime: ${(report.metrics.uptime / 1000).toFixed(0)}s`));
355
+ console.log(chalk_1.default.gray(` Memory RSS: ${(report.metrics.memoryUsage.rss / 1024 / 1024).toFixed(2)} MB`));
356
+ console.log(chalk_1.default.gray(` Node Version: ${report.metrics.nodeVersion}`));
357
+ }
358
+ }
359
+ static getHealthColor(status) {
360
+ const colors = {
361
+ 'healthy': chalk_1.default.green,
362
+ 'degraded': chalk_1.default.yellow,
363
+ 'unhealthy': chalk_1.default.red,
364
+ 'unknown': chalk_1.default.gray
365
+ };
366
+ return colors[status] || chalk_1.default.white;
367
+ }
368
+ static getSeverityColor(severity) {
369
+ const colors = {
370
+ 'critical': chalk_1.default.red,
371
+ 'warning': chalk_1.default.yellow,
372
+ 'info': chalk_1.default.blue
373
+ };
374
+ return colors[severity] || chalk_1.default.gray;
375
+ }
376
+ static async exportHealthReport(report) {
377
+ const reportsDir = '.agentic-qe/reports';
378
+ await fs.ensureDir(reportsDir);
379
+ const timestamp = new Date().toISOString().replace(/:/g, '-');
380
+ const reportFile = `${reportsDir}/health-report-${timestamp}.json`;
381
+ await fs.writeJson(reportFile, report, { spaces: 2 });
382
+ console.log(chalk_1.default.gray(` Report saved: ${reportFile}`));
383
+ }
384
+ static async autoFixIssues(issues) {
385
+ console.log(chalk_1.default.blue('\n🔧 Auto-fixing detected issues...\n'));
386
+ for (const issue of issues) {
387
+ if (issue.severity === 'critical' && issue.message.includes('Missing configuration')) {
388
+ // Attempt to recreate missing configuration
389
+ console.log(chalk_1.default.yellow(` Attempting to fix: ${issue.message}`));
390
+ // In production, this would call the actual fix logic
391
+ }
392
+ }
393
+ }
394
+ static async storeHealthCheck(report) {
395
+ try {
396
+ const { execSync } = require('child_process');
397
+ const data = JSON.stringify({ status: report.status, timestamp: report.timestamp });
398
+ const command = `npx claude-flow@alpha memory store --key "aqe/swarm/fleet-cli-commands/health" --value '${data}'`;
399
+ execSync(command, { stdio: 'ignore', timeout: 5000 });
400
+ }
401
+ catch (error) {
402
+ // Silently handle coordination errors
403
+ }
404
+ }
405
+ }
406
+ exports.FleetHealthCommand = FleetHealthCommand;
407
+ //# sourceMappingURL=health.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"health.js","sourceRoot":"","sources":["../../../../src/cli/commands/fleet/health.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,6CAA+B;AAQ/B,MAAa,kBAAkB;IAC7B,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,OAA2B;QAC9C,gCAAgC;QAChC,IAAI,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,+BAA+B,CAAC,EAAE,CAAC;YAC1D,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;QAChE,CAAC;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AAC;YAC3B,IAAI,KAAK,CAAC,QAAQ,KAAK,UAAU,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,CAAC;gBACrF,4CAA4C;gBAC5C,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,wBAAwB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;gBACnE,sDAAsD;YACxD,CAAC;QACH,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,MAAW;QAC/C,IAAI,CAAC;YACH,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;YAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;YACpF,MAAM,OAAO,GAAG,2FAA2F,IAAI,GAAG,CAAC;YACnH,QAAQ,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QACxD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,sCAAsC;QACxC,CAAC;IACH,CAAC;CACF;AAnbD,gDAmbC"}
@@ -0,0 +1,11 @@
1
+ export interface FleetInitOptions {
2
+ topology: 'hierarchical' | 'mesh' | 'ring' | 'adaptive';
3
+ maxAgents: number;
4
+ config?: string;
5
+ }
6
+ export declare class FleetInitCommand {
7
+ static execute(options: FleetInitOptions): Promise<void>;
8
+ private static validateInputs;
9
+ private static createDirectories;
10
+ }
11
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/fleet/init.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACxD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,gBAAgB;WACd,OAAO,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;mBAkCzC,cAAc;mBAWd,iBAAiB;CAYvC"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.FleetInitCommand = void 0;
30
+ const chalk_1 = __importDefault(require("chalk"));
31
+ const fs = __importStar(require("fs-extra"));
32
+ class FleetInitCommand {
33
+ static async execute(options) {
34
+ // Validate inputs
35
+ await this.validateInputs(options);
36
+ console.log(chalk_1.default.blue('🚀 Initializing Agentic QE Fleet...'));
37
+ // Create directory structure
38
+ await this.createDirectories();
39
+ // Create fleet configuration
40
+ const fleetConfig = {
41
+ id: `fleet-${Date.now()}`,
42
+ topology: options.topology,
43
+ maxAgents: options.maxAgents,
44
+ status: 'initialized',
45
+ createdAt: new Date().toISOString()
46
+ };
47
+ await fs.writeJson('.agentic-qe/config/fleet.json', fleetConfig, { spaces: 2 });
48
+ // Initialize agent registry
49
+ const agentRegistry = {
50
+ fleet: fleetConfig,
51
+ agents: [],
52
+ tasks: []
53
+ };
54
+ await fs.writeJson('.agentic-qe/data/registry.json', agentRegistry, { spaces: 2 });
55
+ console.log(chalk_1.default.green('✅ Fleet initialized successfully'));
56
+ console.log(chalk_1.default.gray(` Topology: ${options.topology}`));
57
+ console.log(chalk_1.default.gray(` Max Agents: ${options.maxAgents}`));
58
+ }
59
+ static async validateInputs(options) {
60
+ const validTopologies = ['hierarchical', 'mesh', 'ring', 'adaptive'];
61
+ if (!validTopologies.includes(options.topology)) {
62
+ throw new Error(`Invalid topology. Must be one of: ${validTopologies.join(', ')}`);
63
+ }
64
+ if (options.maxAgents < 1 || options.maxAgents > 100) {
65
+ throw new Error('maxAgents must be between 1 and 100');
66
+ }
67
+ }
68
+ static async createDirectories() {
69
+ const dirs = [
70
+ '.agentic-qe/config',
71
+ '.agentic-qe/data',
72
+ '.agentic-qe/logs',
73
+ '.agentic-qe/reports'
74
+ ];
75
+ for (const dir of dirs) {
76
+ await fs.ensureDir(dir);
77
+ }
78
+ }
79
+ }
80
+ exports.FleetInitCommand = FleetInitCommand;
81
+ //# sourceMappingURL=init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../src/cli/commands/fleet/init.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,6CAA+B;AAQ/B,MAAa,gBAAgB;IAC3B,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,OAAyB;QAC5C,kBAAkB;QAClB,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,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OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChD,MAAM,IAAI,KAAK,CAAC,qCAAqC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACrF,CAAC;QAED,IAAI,OAAO,CAAC,SAAS,GAAG,CAAC,IAAI,OAAO,CAAC,SAAS,GAAG,GAAG,EAAE,CAAC;YACrD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,iBAAiB;QACpC,MAAM,IAAI,GAAG;YACX,oBAAoB;YACpB,kBAAkB;YAClB,kBAAkB;YAClB,qBAAqB;SACtB,CAAC;QAEF,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,MAAM,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;CACF;AA1DD,4CA0DC"}
@@ -0,0 +1,21 @@
1
+ export interface FleetLogsOptions {
2
+ lines?: number;
3
+ follow?: boolean;
4
+ level?: string;
5
+ agent?: string;
6
+ since?: string;
7
+ }
8
+ export declare class FleetLogsCommand {
9
+ private static isFollowing;
10
+ private static followInterval;
11
+ static execute(options: FleetLogsOptions): Promise<string>;
12
+ private static getLogFiles;
13
+ private static readLogs;
14
+ private static displayLogs;
15
+ private static followLogs;
16
+ private static stopFollowing;
17
+ private static extractTimestamp;
18
+ private static storeLogAccess;
19
+ static generateSampleLogs(): Promise<void>;
20
+ }
21
+ //# sourceMappingURL=logs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/fleet/logs.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAC,WAAW,CAAS;IACnC,OAAO,CAAC,MAAM,CAAC,cAAc,CAA+B;WAE/C,OAAO,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;mBAqC3C,WAAW;mBASX,QAAQ;IAyC7B,OAAO,CAAC,MAAM,CAAC,WAAW;mBA0BL,UAAU;IAkF/B,OAAO,CAAC,MAAM,CAAC,aAAa;IAQ5B,OAAO,CAAC,MAAM,CAAC,gBAAgB;mBAgBV,cAAc;WActB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;CAmBjD"}