agentic-qe 1.0.0 → 1.0.2

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 (863) hide show
  1. package/.claude/agents/qe-api-contract-validator.md +51 -11
  2. package/.claude/agents/qe-chaos-engineer.md +95 -43
  3. package/.claude/agents/qe-coverage-analyzer.md +134 -57
  4. package/.claude/agents/qe-deployment-readiness.md +48 -11
  5. package/.claude/agents/qe-flaky-test-hunter.md +57 -11
  6. package/.claude/agents/qe-fleet-commander.md +106 -49
  7. package/.claude/agents/qe-performance-tester.md +98 -45
  8. package/.claude/agents/qe-production-intelligence.md +48 -11
  9. package/.claude/agents/qe-quality-gate.md +160 -28
  10. package/.claude/agents/qe-regression-risk-analyzer.md +53 -11
  11. package/.claude/agents/qe-requirements-validator.md +48 -11
  12. package/.claude/agents/qe-security-scanner.md +230 -47
  13. package/.claude/agents/qe-test-data-architect.md +49 -11
  14. package/.claude/agents/qe-test-executor.md +59 -55
  15. package/.claude/agents/qe-test-generator.md +222 -48
  16. package/.claude/agents/qe-visual-tester.md +66 -65
  17. package/.claude/aqe-fleet.json +3 -3
  18. package/CHANGELOG.md +376 -0
  19. package/README.md +47 -3
  20. package/dist/agents/ApiContractValidatorAgent.d.ts.map +1 -1
  21. package/dist/agents/ApiContractValidatorAgent.js +1 -1
  22. package/dist/agents/ApiContractValidatorAgent.js.map +1 -1
  23. package/dist/agents/BaseAgent.d.ts +22 -3
  24. package/dist/agents/BaseAgent.d.ts.map +1 -1
  25. package/dist/agents/BaseAgent.js +124 -6
  26. package/dist/agents/BaseAgent.js.map +1 -1
  27. package/dist/agents/CoverageAnalyzerAgent.d.ts +0 -1
  28. package/dist/agents/CoverageAnalyzerAgent.d.ts.map +1 -1
  29. package/dist/agents/CoverageAnalyzerAgent.js +12 -8
  30. package/dist/agents/CoverageAnalyzerAgent.js.map +1 -1
  31. package/dist/agents/QualityAnalyzerAgent.d.ts +0 -1
  32. package/dist/agents/QualityAnalyzerAgent.d.ts.map +1 -1
  33. package/dist/agents/QualityGateAgent.d.ts +0 -1
  34. package/dist/agents/QualityGateAgent.d.ts.map +1 -1
  35. package/dist/agents/RegressionRiskAnalyzerAgent.js +17 -7
  36. package/dist/agents/RegressionRiskAnalyzerAgent.js.map +1 -1
  37. package/dist/agents/SecurityScannerAgent.d.ts +1 -0
  38. package/dist/agents/SecurityScannerAgent.d.ts.map +1 -1
  39. package/dist/agents/SecurityScannerAgent.js +46 -41
  40. package/dist/agents/SecurityScannerAgent.js.map +1 -1
  41. package/dist/agents/TestExecutorAgent.d.ts +1 -1
  42. package/dist/agents/TestExecutorAgent.d.ts.map +1 -1
  43. package/dist/agents/TestExecutorAgent.js +74 -13
  44. package/dist/agents/TestExecutorAgent.js.map +1 -1
  45. package/dist/agents/index.js +2 -2
  46. package/dist/agents/index.js.map +1 -1
  47. package/dist/cli/commands/agent/assign.d.ts +76 -0
  48. package/dist/cli/commands/agent/assign.d.ts.map +1 -0
  49. package/dist/cli/commands/agent/assign.js +290 -0
  50. package/dist/cli/commands/agent/assign.js.map +1 -0
  51. package/dist/cli/commands/agent/attach.d.ts +86 -0
  52. package/dist/cli/commands/agent/attach.d.ts.map +1 -0
  53. package/dist/cli/commands/agent/attach.js +278 -0
  54. package/dist/cli/commands/agent/attach.js.map +1 -0
  55. package/dist/cli/commands/agent/benchmark.d.ts +45 -0
  56. package/dist/cli/commands/agent/benchmark.d.ts.map +1 -0
  57. package/dist/cli/commands/agent/benchmark.js +102 -0
  58. package/dist/cli/commands/agent/benchmark.js.map +1 -0
  59. package/dist/cli/commands/agent/clone.d.ts +20 -0
  60. package/dist/cli/commands/agent/clone.d.ts.map +1 -0
  61. package/dist/cli/commands/agent/clone.js +58 -0
  62. package/dist/cli/commands/agent/clone.js.map +1 -0
  63. package/dist/cli/commands/agent/detach.d.ts +76 -0
  64. package/dist/cli/commands/agent/detach.d.ts.map +1 -0
  65. package/dist/cli/commands/agent/detach.js +260 -0
  66. package/dist/cli/commands/agent/detach.js.map +1 -0
  67. package/dist/cli/commands/agent/index.d.ts +31 -0
  68. package/dist/cli/commands/agent/index.d.ts.map +1 -0
  69. package/dist/cli/commands/agent/index.js +54 -0
  70. package/dist/cli/commands/agent/index.js.map +1 -0
  71. package/dist/cli/commands/agent/inspect.d.ts +110 -0
  72. package/dist/cli/commands/agent/inspect.d.ts.map +1 -0
  73. package/dist/cli/commands/agent/inspect.js +282 -0
  74. package/dist/cli/commands/agent/inspect.js.map +1 -0
  75. package/dist/cli/commands/agent/migrate.d.ts +24 -0
  76. package/dist/cli/commands/agent/migrate.d.ts.map +1 -0
  77. package/dist/cli/commands/agent/migrate.js +80 -0
  78. package/dist/cli/commands/agent/migrate.js.map +1 -0
  79. package/dist/cli/commands/agent/restart.d.ts +71 -0
  80. package/dist/cli/commands/agent/restart.d.ts.map +1 -0
  81. package/dist/cli/commands/agent/restart.js +237 -0
  82. package/dist/cli/commands/agent/restart.js.map +1 -0
  83. package/dist/cli/commands/analyze.js +17 -7
  84. package/dist/cli/commands/analyze.js.map +1 -1
  85. package/dist/cli/commands/config/export.d.ts +15 -0
  86. package/dist/cli/commands/config/export.d.ts.map +1 -0
  87. package/dist/cli/commands/config/export.js +104 -0
  88. package/dist/cli/commands/config/export.js.map +1 -0
  89. package/dist/cli/commands/config/get.d.ts +23 -0
  90. package/dist/cli/commands/config/get.d.ts.map +1 -0
  91. package/dist/cli/commands/config/get.js +129 -0
  92. package/dist/cli/commands/config/get.js.map +1 -0
  93. package/dist/cli/commands/config/import.d.ts +17 -0
  94. package/dist/cli/commands/config/import.d.ts.map +1 -0
  95. package/dist/cli/commands/config/import.js +148 -0
  96. package/dist/cli/commands/config/import.js.map +1 -0
  97. package/dist/cli/commands/config/index.d.ts +18 -0
  98. package/dist/cli/commands/config/index.d.ts.map +1 -0
  99. package/dist/cli/commands/config/index.js +35 -0
  100. package/dist/cli/commands/config/index.js.map +1 -0
  101. package/dist/cli/commands/config/init.d.ts +21 -0
  102. package/dist/cli/commands/config/init.d.ts.map +1 -0
  103. package/dist/cli/commands/config/init.js +181 -0
  104. package/dist/cli/commands/config/init.js.map +1 -0
  105. package/dist/cli/commands/config/list.d.ts +5 -0
  106. package/dist/cli/commands/config/list.d.ts.map +1 -0
  107. package/dist/cli/commands/config/list.js +39 -0
  108. package/dist/cli/commands/config/list.js.map +1 -0
  109. package/dist/cli/commands/config/reset.d.ts +5 -0
  110. package/dist/cli/commands/config/reset.d.ts.map +1 -0
  111. package/dist/cli/commands/config/reset.js +44 -0
  112. package/dist/cli/commands/config/reset.js.map +1 -0
  113. package/dist/cli/commands/config/schema.d.ts +115 -0
  114. package/dist/cli/commands/config/schema.d.ts.map +1 -0
  115. package/dist/cli/commands/config/schema.js +98 -0
  116. package/dist/cli/commands/config/schema.js.map +1 -0
  117. package/dist/cli/commands/config/set.d.ts +19 -0
  118. package/dist/cli/commands/config/set.d.ts.map +1 -0
  119. package/dist/cli/commands/config/set.js +143 -0
  120. package/dist/cli/commands/config/set.js.map +1 -0
  121. package/dist/cli/commands/config/validate.d.ts +23 -0
  122. package/dist/cli/commands/config/validate.d.ts.map +1 -0
  123. package/dist/cli/commands/config/validate.js +165 -0
  124. package/dist/cli/commands/config/validate.js.map +1 -0
  125. package/dist/cli/commands/debug/agent.d.ts +40 -0
  126. package/dist/cli/commands/debug/agent.d.ts.map +1 -0
  127. package/dist/cli/commands/debug/agent.js +184 -0
  128. package/dist/cli/commands/debug/agent.js.map +1 -0
  129. package/dist/cli/commands/debug/diagnostics.d.ts +27 -0
  130. package/dist/cli/commands/debug/diagnostics.d.ts.map +1 -0
  131. package/dist/cli/commands/debug/diagnostics.js +386 -0
  132. package/dist/cli/commands/debug/diagnostics.js.map +1 -0
  133. package/dist/cli/commands/debug/health-check.d.ts +38 -0
  134. package/dist/cli/commands/debug/health-check.d.ts.map +1 -0
  135. package/dist/cli/commands/debug/health-check.js +326 -0
  136. package/dist/cli/commands/debug/health-check.js.map +1 -0
  137. package/dist/cli/commands/debug/index.d.ts +17 -0
  138. package/dist/cli/commands/debug/index.d.ts.map +1 -0
  139. package/dist/cli/commands/debug/index.js +20 -0
  140. package/dist/cli/commands/debug/index.js.map +1 -0
  141. package/dist/cli/commands/debug/profile.d.ts +84 -0
  142. package/dist/cli/commands/debug/profile.d.ts.map +1 -0
  143. package/dist/cli/commands/debug/profile.js +375 -0
  144. package/dist/cli/commands/debug/profile.js.map +1 -0
  145. package/dist/cli/commands/debug/trace.d.ts +40 -0
  146. package/dist/cli/commands/debug/trace.d.ts.map +1 -0
  147. package/dist/cli/commands/debug/trace.js +252 -0
  148. package/dist/cli/commands/debug/trace.js.map +1 -0
  149. package/dist/cli/commands/debug/troubleshoot.d.ts +38 -0
  150. package/dist/cli/commands/debug/troubleshoot.d.ts.map +1 -0
  151. package/dist/cli/commands/debug/troubleshoot.js +324 -0
  152. package/dist/cli/commands/debug/troubleshoot.js.map +1 -0
  153. package/dist/cli/commands/fleet/backup.d.ts +49 -0
  154. package/dist/cli/commands/fleet/backup.d.ts.map +1 -0
  155. package/dist/cli/commands/fleet/backup.js +88 -0
  156. package/dist/cli/commands/fleet/backup.js.map +1 -0
  157. package/dist/cli/commands/fleet/health.d.ts +24 -0
  158. package/dist/cli/commands/fleet/health.d.ts.map +1 -0
  159. package/dist/cli/commands/fleet/health.js +417 -0
  160. package/dist/cli/commands/fleet/health.js.map +1 -0
  161. package/dist/cli/commands/fleet/init.d.ts +11 -0
  162. package/dist/cli/commands/fleet/init.d.ts.map +1 -0
  163. package/dist/cli/commands/fleet/init.js +91 -0
  164. package/dist/cli/commands/fleet/init.js.map +1 -0
  165. package/dist/cli/commands/fleet/logs.d.ts +21 -0
  166. package/dist/cli/commands/fleet/logs.d.ts.map +1 -0
  167. package/dist/cli/commands/fleet/logs.js +266 -0
  168. package/dist/cli/commands/fleet/logs.js.map +1 -0
  169. package/dist/cli/commands/fleet/metrics.d.ts +27 -0
  170. package/dist/cli/commands/fleet/metrics.d.ts.map +1 -0
  171. package/dist/cli/commands/fleet/metrics.js +368 -0
  172. package/dist/cli/commands/fleet/metrics.js.map +1 -0
  173. package/dist/cli/commands/fleet/monitor.d.ts +18 -0
  174. package/dist/cli/commands/fleet/monitor.d.ts.map +1 -0
  175. package/dist/cli/commands/fleet/monitor.js +234 -0
  176. package/dist/cli/commands/fleet/monitor.js.map +1 -0
  177. package/dist/cli/commands/fleet/optimize.d.ts +42 -0
  178. package/dist/cli/commands/fleet/optimize.d.ts.map +1 -0
  179. package/dist/cli/commands/fleet/optimize.js +135 -0
  180. package/dist/cli/commands/fleet/optimize.js.map +1 -0
  181. package/dist/cli/commands/fleet/recover.d.ts +22 -0
  182. package/dist/cli/commands/fleet/recover.d.ts.map +1 -0
  183. package/dist/cli/commands/fleet/recover.js +99 -0
  184. package/dist/cli/commands/fleet/recover.js.map +1 -0
  185. package/dist/cli/commands/fleet/restart.d.ts +18 -0
  186. package/dist/cli/commands/fleet/restart.d.ts.map +1 -0
  187. package/dist/cli/commands/fleet/restart.js +290 -0
  188. package/dist/cli/commands/fleet/restart.js.map +1 -0
  189. package/dist/cli/commands/fleet/scale.d.ts +9 -0
  190. package/dist/cli/commands/fleet/scale.d.ts.map +1 -0
  191. package/dist/cli/commands/fleet/scale.js +77 -0
  192. package/dist/cli/commands/fleet/scale.js.map +1 -0
  193. package/dist/cli/commands/fleet/shutdown.d.ts +19 -0
  194. package/dist/cli/commands/fleet/shutdown.d.ts.map +1 -0
  195. package/dist/cli/commands/fleet/shutdown.js +307 -0
  196. package/dist/cli/commands/fleet/shutdown.js.map +1 -0
  197. package/dist/cli/commands/fleet/status.d.ts +10 -0
  198. package/dist/cli/commands/fleet/status.d.ts.map +1 -0
  199. package/dist/cli/commands/fleet/status.js +97 -0
  200. package/dist/cli/commands/fleet/status.js.map +1 -0
  201. package/dist/cli/commands/fleet/topology.d.ts +23 -0
  202. package/dist/cli/commands/fleet/topology.d.ts.map +1 -0
  203. package/dist/cli/commands/fleet/topology.js +375 -0
  204. package/dist/cli/commands/fleet/topology.js.map +1 -0
  205. package/dist/cli/commands/fleet.d.ts +0 -1
  206. package/dist/cli/commands/fleet.d.ts.map +1 -1
  207. package/dist/cli/commands/fleet.js +35 -58
  208. package/dist/cli/commands/fleet.js.map +1 -1
  209. package/dist/cli/commands/generate.js +17 -7
  210. package/dist/cli/commands/generate.js.map +1 -1
  211. package/dist/cli/commands/init.d.ts.map +1 -1
  212. package/dist/cli/commands/init.js +194 -64
  213. package/dist/cli/commands/init.js.map +1 -1
  214. package/dist/cli/commands/memory/compact.d.ts +19 -0
  215. package/dist/cli/commands/memory/compact.d.ts.map +1 -0
  216. package/dist/cli/commands/memory/compact.js +69 -0
  217. package/dist/cli/commands/memory/compact.js.map +1 -0
  218. package/dist/cli/commands/memory/index.d.ts +9 -0
  219. package/dist/cli/commands/memory/index.d.ts.map +1 -0
  220. package/dist/cli/commands/memory/index.js +24 -0
  221. package/dist/cli/commands/memory/index.js.map +1 -0
  222. package/dist/cli/commands/memory/stats.d.ts +30 -0
  223. package/dist/cli/commands/memory/stats.d.ts.map +1 -0
  224. package/dist/cli/commands/memory/stats.js +73 -0
  225. package/dist/cli/commands/memory/stats.js.map +1 -0
  226. package/dist/cli/commands/memory/vacuum.d.ts +24 -0
  227. package/dist/cli/commands/memory/vacuum.d.ts.map +1 -0
  228. package/dist/cli/commands/memory/vacuum.js +104 -0
  229. package/dist/cli/commands/memory/vacuum.js.map +1 -0
  230. package/dist/cli/commands/monitor/alerts.d.ts +45 -0
  231. package/dist/cli/commands/monitor/alerts.d.ts.map +1 -0
  232. package/dist/cli/commands/monitor/alerts.js +167 -0
  233. package/dist/cli/commands/monitor/alerts.js.map +1 -0
  234. package/dist/cli/commands/monitor/analyze.d.ts +49 -0
  235. package/dist/cli/commands/monitor/analyze.d.ts.map +1 -0
  236. package/dist/cli/commands/monitor/analyze.js +209 -0
  237. package/dist/cli/commands/monitor/analyze.js.map +1 -0
  238. package/dist/cli/commands/monitor/compare.d.ts +38 -0
  239. package/dist/cli/commands/monitor/compare.d.ts.map +1 -0
  240. package/dist/cli/commands/monitor/compare.js +177 -0
  241. package/dist/cli/commands/monitor/compare.js.map +1 -0
  242. package/dist/cli/commands/monitor/dashboard.d.ts +34 -0
  243. package/dist/cli/commands/monitor/dashboard.d.ts.map +1 -0
  244. package/dist/cli/commands/monitor/dashboard.js +157 -0
  245. package/dist/cli/commands/monitor/dashboard.js.map +1 -0
  246. package/dist/cli/commands/monitor/export.d.ts +36 -0
  247. package/dist/cli/commands/monitor/export.d.ts.map +1 -0
  248. package/dist/cli/commands/monitor/export.js +157 -0
  249. package/dist/cli/commands/monitor/export.js.map +1 -0
  250. package/dist/cli/commands/monitor/index.d.ts +11 -0
  251. package/dist/cli/commands/monitor/index.d.ts.map +1 -0
  252. package/dist/cli/commands/monitor/index.js +14 -0
  253. package/dist/cli/commands/monitor/index.js.map +1 -0
  254. package/dist/cli/commands/quality/baseline.d.ts +27 -0
  255. package/dist/cli/commands/quality/baseline.d.ts.map +1 -0
  256. package/dist/cli/commands/quality/baseline.js +124 -0
  257. package/dist/cli/commands/quality/baseline.js.map +1 -0
  258. package/dist/cli/commands/quality/compare.d.ts +36 -0
  259. package/dist/cli/commands/quality/compare.d.ts.map +1 -0
  260. package/dist/cli/commands/quality/compare.js +136 -0
  261. package/dist/cli/commands/quality/compare.js.map +1 -0
  262. package/dist/cli/commands/quality/decision.d.ts +81 -0
  263. package/dist/cli/commands/quality/decision.d.ts.map +1 -0
  264. package/dist/cli/commands/quality/decision.js +317 -0
  265. package/dist/cli/commands/quality/decision.js.map +1 -0
  266. package/dist/cli/commands/quality/gate.d.ts +47 -0
  267. package/dist/cli/commands/quality/gate.d.ts.map +1 -0
  268. package/dist/cli/commands/quality/gate.js +203 -0
  269. package/dist/cli/commands/quality/gate.js.map +1 -0
  270. package/dist/cli/commands/quality/index.d.ts +17 -0
  271. package/dist/cli/commands/quality/index.d.ts.map +1 -0
  272. package/dist/cli/commands/quality/index.js +41 -0
  273. package/dist/cli/commands/quality/index.js.map +1 -0
  274. package/dist/cli/commands/quality/policy.d.ts +57 -0
  275. package/dist/cli/commands/quality/policy.d.ts.map +1 -0
  276. package/dist/cli/commands/quality/policy.js +357 -0
  277. package/dist/cli/commands/quality/policy.js.map +1 -0
  278. package/dist/cli/commands/quality/risk.d.ts +41 -0
  279. package/dist/cli/commands/quality/risk.d.ts.map +1 -0
  280. package/dist/cli/commands/quality/risk.js +253 -0
  281. package/dist/cli/commands/quality/risk.js.map +1 -0
  282. package/dist/cli/commands/quality/trends.d.ts +40 -0
  283. package/dist/cli/commands/quality/trends.d.ts.map +1 -0
  284. package/dist/cli/commands/quality/trends.js +122 -0
  285. package/dist/cli/commands/quality/trends.js.map +1 -0
  286. package/dist/cli/commands/quality/validate.d.ts +44 -0
  287. package/dist/cli/commands/quality/validate.d.ts.map +1 -0
  288. package/dist/cli/commands/quality/validate.js +232 -0
  289. package/dist/cli/commands/quality/validate.js.map +1 -0
  290. package/dist/cli/commands/run.js +17 -7
  291. package/dist/cli/commands/run.js.map +1 -1
  292. package/dist/cli/commands/test/analyze-failures.d.ts +39 -0
  293. package/dist/cli/commands/test/analyze-failures.d.ts.map +1 -0
  294. package/dist/cli/commands/test/analyze-failures.js +113 -0
  295. package/dist/cli/commands/test/analyze-failures.js.map +1 -0
  296. package/dist/cli/commands/test/clean.d.ts +3 -0
  297. package/dist/cli/commands/test/clean.d.ts.map +1 -0
  298. package/dist/cli/commands/test/clean.js +131 -0
  299. package/dist/cli/commands/test/clean.js.map +1 -0
  300. package/dist/cli/commands/test/debug.d.ts +3 -0
  301. package/dist/cli/commands/test/debug.d.ts.map +1 -0
  302. package/dist/cli/commands/test/debug.js +167 -0
  303. package/dist/cli/commands/test/debug.js.map +1 -0
  304. package/dist/cli/commands/test/diff.d.ts +3 -0
  305. package/dist/cli/commands/test/diff.d.ts.map +1 -0
  306. package/dist/cli/commands/test/diff.js +228 -0
  307. package/dist/cli/commands/test/diff.js.map +1 -0
  308. package/dist/cli/commands/test/flakiness.d.ts +32 -0
  309. package/dist/cli/commands/test/flakiness.d.ts.map +1 -0
  310. package/dist/cli/commands/test/flakiness.js +121 -0
  311. package/dist/cli/commands/test/flakiness.js.map +1 -0
  312. package/dist/cli/commands/test/index.d.ts +17 -0
  313. package/dist/cli/commands/test/index.d.ts.map +1 -0
  314. package/dist/cli/commands/test/index.js +45 -0
  315. package/dist/cli/commands/test/index.js.map +1 -0
  316. package/dist/cli/commands/test/mutate.d.ts +29 -0
  317. package/dist/cli/commands/test/mutate.d.ts.map +1 -0
  318. package/dist/cli/commands/test/mutate.js +162 -0
  319. package/dist/cli/commands/test/mutate.js.map +1 -0
  320. package/dist/cli/commands/test/parallel.d.ts +3 -0
  321. package/dist/cli/commands/test/parallel.d.ts.map +1 -0
  322. package/dist/cli/commands/test/parallel.js +115 -0
  323. package/dist/cli/commands/test/parallel.js.map +1 -0
  324. package/dist/cli/commands/test/profile.d.ts +3 -0
  325. package/dist/cli/commands/test/profile.d.ts.map +1 -0
  326. package/dist/cli/commands/test/profile.js +188 -0
  327. package/dist/cli/commands/test/profile.js.map +1 -0
  328. package/dist/cli/commands/test/queue.d.ts +3 -0
  329. package/dist/cli/commands/test/queue.d.ts.map +1 -0
  330. package/dist/cli/commands/test/queue.js +139 -0
  331. package/dist/cli/commands/test/queue.js.map +1 -0
  332. package/dist/cli/commands/test/retry.d.ts +3 -0
  333. package/dist/cli/commands/test/retry.d.ts.map +1 -0
  334. package/dist/cli/commands/test/retry.js +103 -0
  335. package/dist/cli/commands/test/retry.js.map +1 -0
  336. package/dist/cli/commands/test/snapshot.d.ts +3 -0
  337. package/dist/cli/commands/test/snapshot.d.ts.map +1 -0
  338. package/dist/cli/commands/test/snapshot.js +176 -0
  339. package/dist/cli/commands/test/snapshot.js.map +1 -0
  340. package/dist/cli/commands/test/trace.d.ts +3 -0
  341. package/dist/cli/commands/test/trace.d.ts.map +1 -0
  342. package/dist/cli/commands/test/trace.js +169 -0
  343. package/dist/cli/commands/test/trace.js.map +1 -0
  344. package/dist/cli/commands/test/watch.d.ts +3 -0
  345. package/dist/cli/commands/test/watch.d.ts.map +1 -0
  346. package/dist/cli/commands/test/watch.js +129 -0
  347. package/dist/cli/commands/test/watch.js.map +1 -0
  348. package/dist/cli/commands/workflow/cancel.d.ts +55 -0
  349. package/dist/cli/commands/workflow/cancel.d.ts.map +1 -0
  350. package/dist/cli/commands/workflow/cancel.js +330 -0
  351. package/dist/cli/commands/workflow/cancel.js.map +1 -0
  352. package/dist/cli/commands/workflow/index.d.ts +11 -0
  353. package/dist/cli/commands/workflow/index.d.ts.map +1 -0
  354. package/dist/cli/commands/workflow/index.js +20 -0
  355. package/dist/cli/commands/workflow/index.js.map +1 -0
  356. package/dist/cli/commands/workflow/list.d.ts +43 -0
  357. package/dist/cli/commands/workflow/list.d.ts.map +1 -0
  358. package/dist/cli/commands/workflow/list.js +256 -0
  359. package/dist/cli/commands/workflow/list.js.map +1 -0
  360. package/dist/cli/commands/workflow/pause.d.ts +44 -0
  361. package/dist/cli/commands/workflow/pause.d.ts.map +1 -0
  362. package/dist/cli/commands/workflow/pause.js +221 -0
  363. package/dist/cli/commands/workflow/pause.js.map +1 -0
  364. package/dist/cli/index-working.js +17 -7
  365. package/dist/cli/index-working.js.map +1 -1
  366. package/dist/cli/index.js +321 -0
  367. package/dist/cli/index.js.map +1 -1
  368. package/dist/core/Agent.d.ts +0 -1
  369. package/dist/core/Agent.d.ts.map +1 -1
  370. package/dist/core/Agent.js +18 -8
  371. package/dist/core/Agent.js.map +1 -1
  372. package/dist/core/ArtifactWorkflow.d.ts +149 -0
  373. package/dist/core/ArtifactWorkflow.d.ts.map +1 -0
  374. package/dist/core/ArtifactWorkflow.js +357 -0
  375. package/dist/core/ArtifactWorkflow.js.map +1 -0
  376. package/dist/core/EventBus.d.ts +0 -1
  377. package/dist/core/EventBus.d.ts.map +1 -1
  378. package/dist/core/EventBus.js +18 -12
  379. package/dist/core/EventBus.js.map +1 -1
  380. package/dist/core/FleetManager.d.ts +0 -1
  381. package/dist/core/FleetManager.d.ts.map +1 -1
  382. package/dist/core/FleetManager.js +17 -7
  383. package/dist/core/FleetManager.js.map +1 -1
  384. package/dist/core/MemoryManager.d.ts +0 -1
  385. package/dist/core/MemoryManager.d.ts.map +1 -1
  386. package/dist/core/Task.d.ts +0 -1
  387. package/dist/core/Task.d.ts.map +1 -1
  388. package/dist/core/coordination/BlackboardCoordination.d.ts +43 -0
  389. package/dist/core/coordination/BlackboardCoordination.d.ts.map +1 -0
  390. package/dist/core/coordination/BlackboardCoordination.js +95 -0
  391. package/dist/core/coordination/BlackboardCoordination.js.map +1 -0
  392. package/dist/core/coordination/ConsensusGating.d.ts +52 -0
  393. package/dist/core/coordination/ConsensusGating.d.ts.map +1 -0
  394. package/dist/core/coordination/ConsensusGating.js +137 -0
  395. package/dist/core/coordination/ConsensusGating.js.map +1 -0
  396. package/dist/core/coordination/GOAPCoordination.d.ts +78 -0
  397. package/dist/core/coordination/GOAPCoordination.d.ts.map +1 -0
  398. package/dist/core/coordination/GOAPCoordination.js +178 -0
  399. package/dist/core/coordination/GOAPCoordination.js.map +1 -0
  400. package/dist/core/coordination/OODACoordination.d.ts +98 -0
  401. package/dist/core/coordination/OODACoordination.d.ts.map +1 -0
  402. package/dist/core/coordination/OODACoordination.js +207 -0
  403. package/dist/core/coordination/OODACoordination.js.map +1 -0
  404. package/dist/core/coordination/index.d.ts +19 -0
  405. package/dist/core/coordination/index.d.ts.map +1 -0
  406. package/dist/core/coordination/index.js +22 -0
  407. package/dist/core/coordination/index.js.map +1 -0
  408. package/dist/core/events/QEEventBus.d.ts +61 -0
  409. package/dist/core/events/QEEventBus.d.ts.map +1 -0
  410. package/dist/core/events/QEEventBus.js +109 -0
  411. package/dist/core/events/QEEventBus.js.map +1 -0
  412. package/dist/core/events/index.d.ts +7 -0
  413. package/dist/core/events/index.d.ts.map +1 -0
  414. package/dist/core/events/index.js +25 -0
  415. package/dist/core/events/index.js.map +1 -0
  416. package/dist/core/events/types.d.ts +72 -0
  417. package/dist/core/events/types.d.ts.map +1 -0
  418. package/dist/core/events/types.js +6 -0
  419. package/dist/core/events/types.js.map +1 -0
  420. package/dist/core/hooks/RollbackManager.d.ts +90 -0
  421. package/dist/core/hooks/RollbackManager.d.ts.map +1 -0
  422. package/dist/core/hooks/RollbackManager.js +224 -0
  423. package/dist/core/hooks/RollbackManager.js.map +1 -0
  424. package/dist/core/hooks/VerificationHookManager.d.ts +133 -0
  425. package/dist/core/hooks/VerificationHookManager.d.ts.map +1 -0
  426. package/dist/core/hooks/VerificationHookManager.js +293 -0
  427. package/dist/core/hooks/VerificationHookManager.js.map +1 -0
  428. package/dist/core/hooks/checkers/ConfigurationChecker.d.ts +31 -0
  429. package/dist/core/hooks/checkers/ConfigurationChecker.d.ts.map +1 -0
  430. package/dist/core/hooks/checkers/ConfigurationChecker.js +98 -0
  431. package/dist/core/hooks/checkers/ConfigurationChecker.js.map +1 -0
  432. package/dist/core/hooks/checkers/EnvironmentChecker.d.ts +23 -0
  433. package/dist/core/hooks/checkers/EnvironmentChecker.d.ts.map +1 -0
  434. package/dist/core/hooks/checkers/EnvironmentChecker.js +103 -0
  435. package/dist/core/hooks/checkers/EnvironmentChecker.js.map +1 -0
  436. package/dist/core/hooks/checkers/PermissionChecker.d.ts +26 -0
  437. package/dist/core/hooks/checkers/PermissionChecker.d.ts.map +1 -0
  438. package/dist/core/hooks/checkers/PermissionChecker.js +146 -0
  439. package/dist/core/hooks/checkers/PermissionChecker.js.map +1 -0
  440. package/dist/core/hooks/checkers/ResourceChecker.d.ts +24 -0
  441. package/dist/core/hooks/checkers/ResourceChecker.d.ts.map +1 -0
  442. package/dist/core/hooks/checkers/ResourceChecker.js +107 -0
  443. package/dist/core/hooks/checkers/ResourceChecker.js.map +1 -0
  444. package/dist/core/hooks/checkers/index.d.ts +12 -0
  445. package/dist/core/hooks/checkers/index.d.ts.map +1 -0
  446. package/dist/core/hooks/checkers/index.js +15 -0
  447. package/dist/core/hooks/checkers/index.js.map +1 -0
  448. package/dist/core/hooks/index.d.ts +16 -0
  449. package/dist/core/hooks/index.d.ts.map +1 -0
  450. package/dist/core/hooks/index.js +34 -0
  451. package/dist/core/hooks/index.js.map +1 -0
  452. package/dist/core/hooks/validators/CoverageValidator.d.ts +38 -0
  453. package/dist/core/hooks/validators/CoverageValidator.d.ts.map +1 -0
  454. package/dist/core/hooks/validators/CoverageValidator.js +68 -0
  455. package/dist/core/hooks/validators/CoverageValidator.js.map +1 -0
  456. package/dist/core/hooks/validators/OutputValidator.d.ts +19 -0
  457. package/dist/core/hooks/validators/OutputValidator.d.ts.map +1 -0
  458. package/dist/core/hooks/validators/OutputValidator.js +57 -0
  459. package/dist/core/hooks/validators/OutputValidator.js.map +1 -0
  460. package/dist/core/hooks/validators/PerformanceValidator.d.ts +39 -0
  461. package/dist/core/hooks/validators/PerformanceValidator.d.ts.map +1 -0
  462. package/dist/core/hooks/validators/PerformanceValidator.js +97 -0
  463. package/dist/core/hooks/validators/PerformanceValidator.js.map +1 -0
  464. package/dist/core/hooks/validators/QualityValidator.d.ts +32 -0
  465. package/dist/core/hooks/validators/QualityValidator.d.ts.map +1 -0
  466. package/dist/core/hooks/validators/QualityValidator.js +71 -0
  467. package/dist/core/hooks/validators/QualityValidator.js.map +1 -0
  468. package/dist/core/hooks/validators/index.d.ts +12 -0
  469. package/dist/core/hooks/validators/index.d.ts.map +1 -0
  470. package/dist/core/hooks/validators/index.js +15 -0
  471. package/dist/core/hooks/validators/index.js.map +1 -0
  472. package/dist/core/index.d.ts +2 -0
  473. package/dist/core/index.d.ts.map +1 -1
  474. package/dist/core/index.js +3 -1
  475. package/dist/core/index.js.map +1 -1
  476. package/dist/core/memory/AccessControl.d.ts +139 -0
  477. package/dist/core/memory/AccessControl.d.ts.map +1 -0
  478. package/dist/core/memory/AccessControl.js +269 -0
  479. package/dist/core/memory/AccessControl.js.map +1 -0
  480. package/dist/core/memory/CompressionManager.d.ts +85 -0
  481. package/dist/core/memory/CompressionManager.d.ts.map +1 -0
  482. package/dist/core/memory/CompressionManager.js +237 -0
  483. package/dist/core/memory/CompressionManager.js.map +1 -0
  484. package/dist/core/memory/EncryptionManager.d.ts +86 -0
  485. package/dist/core/memory/EncryptionManager.d.ts.map +1 -0
  486. package/dist/core/memory/EncryptionManager.js +223 -0
  487. package/dist/core/memory/EncryptionManager.js.map +1 -0
  488. package/dist/core/memory/EnhancedSwarmMemoryManager.d.ts +91 -0
  489. package/dist/core/memory/EnhancedSwarmMemoryManager.d.ts.map +1 -0
  490. package/dist/core/memory/EnhancedSwarmMemoryManager.js +226 -0
  491. package/dist/core/memory/EnhancedSwarmMemoryManager.js.map +1 -0
  492. package/dist/core/memory/SwarmMemoryManager.d.ts +295 -0
  493. package/dist/core/memory/SwarmMemoryManager.d.ts.map +1 -0
  494. package/dist/core/memory/SwarmMemoryManager.js +1417 -0
  495. package/dist/core/memory/SwarmMemoryManager.js.map +1 -0
  496. package/dist/core/memory/VersionHistory.d.ts +88 -0
  497. package/dist/core/memory/VersionHistory.d.ts.map +1 -0
  498. package/dist/core/memory/VersionHistory.js +249 -0
  499. package/dist/core/memory/VersionHistory.js.map +1 -0
  500. package/dist/core/memory/index.d.ts +11 -0
  501. package/dist/core/memory/index.d.ts.map +1 -0
  502. package/dist/core/memory/index.js +18 -0
  503. package/dist/core/memory/index.js.map +1 -0
  504. package/dist/coverage/coverage-collector.d.ts +63 -8
  505. package/dist/coverage/coverage-collector.d.ts.map +1 -1
  506. package/dist/coverage/coverage-collector.js +364 -14
  507. package/dist/coverage/coverage-collector.js.map +1 -1
  508. package/dist/coverage/coverage-reporter.d.ts +48 -11
  509. package/dist/coverage/coverage-reporter.d.ts.map +1 -1
  510. package/dist/coverage/coverage-reporter.js +434 -14
  511. package/dist/coverage/coverage-reporter.js.map +1 -1
  512. package/dist/mcp/handlers/advanced/api-breaking-changes.d.ts +7 -0
  513. package/dist/mcp/handlers/advanced/api-breaking-changes.d.ts.map +1 -0
  514. package/dist/mcp/handlers/advanced/api-breaking-changes.js +216 -0
  515. package/dist/mcp/handlers/advanced/api-breaking-changes.js.map +1 -0
  516. package/dist/mcp/handlers/advanced/index.d.ts +10 -0
  517. package/dist/mcp/handlers/advanced/index.d.ts.map +1 -0
  518. package/dist/mcp/handlers/advanced/index.js +19 -0
  519. package/dist/mcp/handlers/advanced/index.js.map +1 -0
  520. package/dist/mcp/handlers/advanced/mutation-test-execute.d.ts +7 -0
  521. package/dist/mcp/handlers/advanced/mutation-test-execute.d.ts.map +1 -0
  522. package/dist/mcp/handlers/advanced/mutation-test-execute.js +229 -0
  523. package/dist/mcp/handlers/advanced/mutation-test-execute.js.map +1 -0
  524. package/dist/mcp/handlers/advanced/production-incident-replay.d.ts +7 -0
  525. package/dist/mcp/handlers/advanced/production-incident-replay.d.ts.map +1 -0
  526. package/dist/mcp/handlers/advanced/production-incident-replay.js +227 -0
  527. package/dist/mcp/handlers/advanced/production-incident-replay.js.map +1 -0
  528. package/dist/mcp/handlers/advanced/production-rum-analyze.d.ts +7 -0
  529. package/dist/mcp/handlers/advanced/production-rum-analyze.d.ts.map +1 -0
  530. package/dist/mcp/handlers/advanced/production-rum-analyze.js +288 -0
  531. package/dist/mcp/handlers/advanced/production-rum-analyze.js.map +1 -0
  532. package/dist/mcp/handlers/advanced/requirements-generate-bdd.d.ts +7 -0
  533. package/dist/mcp/handlers/advanced/requirements-generate-bdd.d.ts.map +1 -0
  534. package/dist/mcp/handlers/advanced/requirements-generate-bdd.js +267 -0
  535. package/dist/mcp/handlers/advanced/requirements-generate-bdd.js.map +1 -0
  536. package/dist/mcp/handlers/advanced/requirements-validate.d.ts +7 -0
  537. package/dist/mcp/handlers/advanced/requirements-validate.d.ts.map +1 -0
  538. package/dist/mcp/handlers/advanced/requirements-validate.js +175 -0
  539. package/dist/mcp/handlers/advanced/requirements-validate.js.map +1 -0
  540. package/dist/mcp/handlers/analysis/coverage-analyze-sublinear-handler.d.ts +10 -0
  541. package/dist/mcp/handlers/analysis/coverage-analyze-sublinear-handler.d.ts.map +1 -0
  542. package/dist/mcp/handlers/analysis/coverage-analyze-sublinear-handler.js +31 -0
  543. package/dist/mcp/handlers/analysis/coverage-analyze-sublinear-handler.js.map +1 -0
  544. package/dist/mcp/handlers/analysis/coverage-gaps-detect-handler.d.ts +14 -0
  545. package/dist/mcp/handlers/analysis/coverage-gaps-detect-handler.d.ts.map +1 -0
  546. package/dist/mcp/handlers/analysis/coverage-gaps-detect-handler.js +55 -0
  547. package/dist/mcp/handlers/analysis/coverage-gaps-detect-handler.js.map +1 -0
  548. package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.d.ts +35 -0
  549. package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.d.ts.map +1 -0
  550. package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.js +162 -0
  551. package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.js.map +1 -0
  552. package/dist/mcp/handlers/analysis/coverageGapsDetect.d.ts +56 -0
  553. package/dist/mcp/handlers/analysis/coverageGapsDetect.d.ts.map +1 -0
  554. package/dist/mcp/handlers/analysis/coverageGapsDetect.js +203 -0
  555. package/dist/mcp/handlers/analysis/coverageGapsDetect.js.map +1 -0
  556. package/dist/mcp/handlers/analysis/index.d.ts +15 -0
  557. package/dist/mcp/handlers/analysis/index.d.ts.map +1 -0
  558. package/dist/mcp/handlers/analysis/index.js +18 -0
  559. package/dist/mcp/handlers/analysis/index.js.map +1 -0
  560. package/dist/mcp/handlers/analysis/performance-benchmark-run-handler.d.ts +15 -0
  561. package/dist/mcp/handlers/analysis/performance-benchmark-run-handler.d.ts.map +1 -0
  562. package/dist/mcp/handlers/analysis/performance-benchmark-run-handler.js +47 -0
  563. package/dist/mcp/handlers/analysis/performance-benchmark-run-handler.js.map +1 -0
  564. package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.d.ts +15 -0
  565. package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.d.ts.map +1 -0
  566. package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.js +55 -0
  567. package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.js.map +1 -0
  568. package/dist/mcp/handlers/analysis/performanceBenchmarkRun.d.ts +58 -0
  569. package/dist/mcp/handlers/analysis/performanceBenchmarkRun.d.ts.map +1 -0
  570. package/dist/mcp/handlers/analysis/performanceBenchmarkRun.js +187 -0
  571. package/dist/mcp/handlers/analysis/performanceBenchmarkRun.js.map +1 -0
  572. package/dist/mcp/handlers/analysis/performanceMonitorRealtime.d.ts +58 -0
  573. package/dist/mcp/handlers/analysis/performanceMonitorRealtime.d.ts.map +1 -0
  574. package/dist/mcp/handlers/analysis/performanceMonitorRealtime.js +184 -0
  575. package/dist/mcp/handlers/analysis/performanceMonitorRealtime.js.map +1 -0
  576. package/dist/mcp/handlers/analysis/security-scan-comprehensive-handler.d.ts +15 -0
  577. package/dist/mcp/handlers/analysis/security-scan-comprehensive-handler.d.ts.map +1 -0
  578. package/dist/mcp/handlers/analysis/security-scan-comprehensive-handler.js +70 -0
  579. package/dist/mcp/handlers/analysis/security-scan-comprehensive-handler.js.map +1 -0
  580. package/dist/mcp/handlers/analysis/securityScanComprehensive.d.ts +66 -0
  581. package/dist/mcp/handlers/analysis/securityScanComprehensive.d.ts.map +1 -0
  582. package/dist/mcp/handlers/analysis/securityScanComprehensive.js +299 -0
  583. package/dist/mcp/handlers/analysis/securityScanComprehensive.js.map +1 -0
  584. package/dist/mcp/handlers/chaos/chaos-inject-failure.d.ts +18 -0
  585. package/dist/mcp/handlers/chaos/chaos-inject-failure.d.ts.map +1 -0
  586. package/dist/mcp/handlers/chaos/chaos-inject-failure.js +277 -0
  587. package/dist/mcp/handlers/chaos/chaos-inject-failure.js.map +1 -0
  588. package/dist/mcp/handlers/chaos/chaos-inject-latency.d.ts +18 -0
  589. package/dist/mcp/handlers/chaos/chaos-inject-latency.d.ts.map +1 -0
  590. package/dist/mcp/handlers/chaos/chaos-inject-latency.js +214 -0
  591. package/dist/mcp/handlers/chaos/chaos-inject-latency.js.map +1 -0
  592. package/dist/mcp/handlers/chaos/chaos-resilience-test.d.ts +18 -0
  593. package/dist/mcp/handlers/chaos/chaos-resilience-test.d.ts.map +1 -0
  594. package/dist/mcp/handlers/chaos/chaos-resilience-test.js +429 -0
  595. package/dist/mcp/handlers/chaos/chaos-resilience-test.js.map +1 -0
  596. package/dist/mcp/handlers/chaos/index.d.ts +8 -0
  597. package/dist/mcp/handlers/chaos/index.d.ts.map +1 -0
  598. package/dist/mcp/handlers/chaos/index.js +19 -0
  599. package/dist/mcp/handlers/chaos/index.js.map +1 -0
  600. package/dist/mcp/handlers/coordination/event-emit.d.ts +47 -0
  601. package/dist/mcp/handlers/coordination/event-emit.d.ts.map +1 -0
  602. package/dist/mcp/handlers/coordination/event-emit.js +96 -0
  603. package/dist/mcp/handlers/coordination/event-emit.js.map +1 -0
  604. package/dist/mcp/handlers/coordination/event-subscribe.d.ts +49 -0
  605. package/dist/mcp/handlers/coordination/event-subscribe.d.ts.map +1 -0
  606. package/dist/mcp/handlers/coordination/event-subscribe.js +210 -0
  607. package/dist/mcp/handlers/coordination/event-subscribe.js.map +1 -0
  608. package/dist/mcp/handlers/coordination/index.d.ts +22 -0
  609. package/dist/mcp/handlers/coordination/index.d.ts.map +1 -0
  610. package/dist/mcp/handlers/coordination/index.js +25 -0
  611. package/dist/mcp/handlers/coordination/index.js.map +1 -0
  612. package/dist/mcp/handlers/coordination/task-status.d.ts +75 -0
  613. package/dist/mcp/handlers/coordination/task-status.d.ts.map +1 -0
  614. package/dist/mcp/handlers/coordination/task-status.js +134 -0
  615. package/dist/mcp/handlers/coordination/task-status.js.map +1 -0
  616. package/dist/mcp/handlers/coordination/workflow-checkpoint.d.ts +45 -0
  617. package/dist/mcp/handlers/coordination/workflow-checkpoint.d.ts.map +1 -0
  618. package/dist/mcp/handlers/coordination/workflow-checkpoint.js +114 -0
  619. package/dist/mcp/handlers/coordination/workflow-checkpoint.js.map +1 -0
  620. package/dist/mcp/handlers/coordination/workflow-create.d.ts +71 -0
  621. package/dist/mcp/handlers/coordination/workflow-create.d.ts.map +1 -0
  622. package/dist/mcp/handlers/coordination/workflow-create.js +163 -0
  623. package/dist/mcp/handlers/coordination/workflow-create.js.map +1 -0
  624. package/dist/mcp/handlers/coordination/workflow-execute.d.ts +61 -0
  625. package/dist/mcp/handlers/coordination/workflow-execute.d.ts.map +1 -0
  626. package/dist/mcp/handlers/coordination/workflow-execute.js +160 -0
  627. package/dist/mcp/handlers/coordination/workflow-execute.js.map +1 -0
  628. package/dist/mcp/handlers/coordination/workflow-resume.d.ts +49 -0
  629. package/dist/mcp/handlers/coordination/workflow-resume.d.ts.map +1 -0
  630. package/dist/mcp/handlers/coordination/workflow-resume.js +124 -0
  631. package/dist/mcp/handlers/coordination/workflow-resume.js.map +1 -0
  632. package/dist/mcp/handlers/integration/contract-validate.d.ts +10 -0
  633. package/dist/mcp/handlers/integration/contract-validate.d.ts.map +1 -0
  634. package/dist/mcp/handlers/integration/contract-validate.js +348 -0
  635. package/dist/mcp/handlers/integration/contract-validate.js.map +1 -0
  636. package/dist/mcp/handlers/integration/dependency-check.d.ts +10 -0
  637. package/dist/mcp/handlers/integration/dependency-check.d.ts.map +1 -0
  638. package/dist/mcp/handlers/integration/dependency-check.js +252 -0
  639. package/dist/mcp/handlers/integration/dependency-check.js.map +1 -0
  640. package/dist/mcp/handlers/integration/index.d.ts +9 -0
  641. package/dist/mcp/handlers/integration/index.d.ts.map +1 -0
  642. package/dist/mcp/handlers/integration/index.js +14 -0
  643. package/dist/mcp/handlers/integration/index.js.map +1 -0
  644. package/dist/mcp/handlers/integration/integration-test-orchestrate.d.ts +10 -0
  645. package/dist/mcp/handlers/integration/integration-test-orchestrate.d.ts.map +1 -0
  646. package/dist/mcp/handlers/integration/integration-test-orchestrate.js +241 -0
  647. package/dist/mcp/handlers/integration/integration-test-orchestrate.js.map +1 -0
  648. package/dist/mcp/handlers/memory/artifact-manifest.d.ts +57 -0
  649. package/dist/mcp/handlers/memory/artifact-manifest.d.ts.map +1 -0
  650. package/dist/mcp/handlers/memory/artifact-manifest.js +176 -0
  651. package/dist/mcp/handlers/memory/artifact-manifest.js.map +1 -0
  652. package/dist/mcp/handlers/memory/blackboard-post.d.ts +50 -0
  653. package/dist/mcp/handlers/memory/blackboard-post.d.ts.map +1 -0
  654. package/dist/mcp/handlers/memory/blackboard-post.js +88 -0
  655. package/dist/mcp/handlers/memory/blackboard-post.js.map +1 -0
  656. package/dist/mcp/handlers/memory/blackboard-read.d.ts +33 -0
  657. package/dist/mcp/handlers/memory/blackboard-read.d.ts.map +1 -0
  658. package/dist/mcp/handlers/memory/blackboard-read.js +81 -0
  659. package/dist/mcp/handlers/memory/blackboard-read.js.map +1 -0
  660. package/dist/mcp/handlers/memory/consensus-propose.d.ts +57 -0
  661. package/dist/mcp/handlers/memory/consensus-propose.d.ts.map +1 -0
  662. package/dist/mcp/handlers/memory/consensus-propose.js +99 -0
  663. package/dist/mcp/handlers/memory/consensus-propose.js.map +1 -0
  664. package/dist/mcp/handlers/memory/consensus-vote.d.ts +37 -0
  665. package/dist/mcp/handlers/memory/consensus-vote.d.ts.map +1 -0
  666. package/dist/mcp/handlers/memory/consensus-vote.js +131 -0
  667. package/dist/mcp/handlers/memory/consensus-vote.js.map +1 -0
  668. package/dist/mcp/handlers/memory/memory-backup.d.ts +49 -0
  669. package/dist/mcp/handlers/memory/memory-backup.d.ts.map +1 -0
  670. package/dist/mcp/handlers/memory/memory-backup.js +154 -0
  671. package/dist/mcp/handlers/memory/memory-backup.js.map +1 -0
  672. package/dist/mcp/handlers/memory/memory-query.d.ts +35 -0
  673. package/dist/mcp/handlers/memory/memory-query.d.ts.map +1 -0
  674. package/dist/mcp/handlers/memory/memory-query.js +96 -0
  675. package/dist/mcp/handlers/memory/memory-query.js.map +1 -0
  676. package/dist/mcp/handlers/memory/memory-retrieve.d.ts +32 -0
  677. package/dist/mcp/handlers/memory/memory-retrieve.d.ts.map +1 -0
  678. package/dist/mcp/handlers/memory/memory-retrieve.js +91 -0
  679. package/dist/mcp/handlers/memory/memory-retrieve.js.map +1 -0
  680. package/dist/mcp/handlers/memory/memory-share.d.ts +39 -0
  681. package/dist/mcp/handlers/memory/memory-share.d.ts.map +1 -0
  682. package/dist/mcp/handlers/memory/memory-share.js +96 -0
  683. package/dist/mcp/handlers/memory/memory-share.js.map +1 -0
  684. package/dist/mcp/handlers/memory/memory-store.d.ts +47 -0
  685. package/dist/mcp/handlers/memory/memory-store.d.ts.map +1 -0
  686. package/dist/mcp/handlers/memory/memory-store.js +107 -0
  687. package/dist/mcp/handlers/memory/memory-store.js.map +1 -0
  688. package/dist/mcp/handlers/prediction/deployment-readiness-check.d.ts +157 -0
  689. package/dist/mcp/handlers/prediction/deployment-readiness-check.d.ts.map +1 -0
  690. package/dist/mcp/handlers/prediction/deployment-readiness-check.js +483 -0
  691. package/dist/mcp/handlers/prediction/deployment-readiness-check.js.map +1 -0
  692. package/dist/mcp/handlers/prediction/flaky-test-detect.d.ts +178 -0
  693. package/dist/mcp/handlers/prediction/flaky-test-detect.d.ts.map +1 -0
  694. package/dist/mcp/handlers/prediction/flaky-test-detect.js +438 -0
  695. package/dist/mcp/handlers/prediction/flaky-test-detect.js.map +1 -0
  696. package/dist/mcp/handlers/prediction/index.d.ts +19 -0
  697. package/dist/mcp/handlers/prediction/index.d.ts.map +1 -0
  698. package/dist/mcp/handlers/prediction/index.js +22 -0
  699. package/dist/mcp/handlers/prediction/index.js.map +1 -0
  700. package/dist/mcp/handlers/prediction/predict-defects-ai.d.ts +133 -0
  701. package/dist/mcp/handlers/prediction/predict-defects-ai.d.ts.map +1 -0
  702. package/dist/mcp/handlers/prediction/predict-defects-ai.js +278 -0
  703. package/dist/mcp/handlers/prediction/predict-defects-ai.js.map +1 -0
  704. package/dist/mcp/handlers/prediction/regression-risk-analyze.d.ts +189 -0
  705. package/dist/mcp/handlers/prediction/regression-risk-analyze.d.ts.map +1 -0
  706. package/dist/mcp/handlers/prediction/regression-risk-analyze.js +419 -0
  707. package/dist/mcp/handlers/prediction/regression-risk-analyze.js.map +1 -0
  708. package/dist/mcp/handlers/prediction/visual-test-regression.d.ts +138 -0
  709. package/dist/mcp/handlers/prediction/visual-test-regression.d.ts.map +1 -0
  710. package/dist/mcp/handlers/prediction/visual-test-regression.js +274 -0
  711. package/dist/mcp/handlers/prediction/visual-test-regression.js.map +1 -0
  712. package/dist/mcp/handlers/quality/quality-decision-make.d.ts +104 -0
  713. package/dist/mcp/handlers/quality/quality-decision-make.d.ts.map +1 -0
  714. package/dist/mcp/handlers/quality/quality-decision-make.js +418 -0
  715. package/dist/mcp/handlers/quality/quality-decision-make.js.map +1 -0
  716. package/dist/mcp/handlers/quality/quality-gate-execute.d.ts +160 -0
  717. package/dist/mcp/handlers/quality/quality-gate-execute.d.ts.map +1 -0
  718. package/dist/mcp/handlers/quality/quality-gate-execute.js +424 -0
  719. package/dist/mcp/handlers/quality/quality-gate-execute.js.map +1 -0
  720. package/dist/mcp/handlers/quality/quality-policy-check.d.ts +163 -0
  721. package/dist/mcp/handlers/quality/quality-policy-check.d.ts.map +1 -0
  722. package/dist/mcp/handlers/quality/quality-policy-check.js +465 -0
  723. package/dist/mcp/handlers/quality/quality-policy-check.js.map +1 -0
  724. package/dist/mcp/handlers/quality/quality-risk-assess.d.ts +123 -0
  725. package/dist/mcp/handlers/quality/quality-risk-assess.d.ts.map +1 -0
  726. package/dist/mcp/handlers/quality/quality-risk-assess.js +532 -0
  727. package/dist/mcp/handlers/quality/quality-risk-assess.js.map +1 -0
  728. package/dist/mcp/handlers/quality/quality-validate-metrics.d.ts +117 -0
  729. package/dist/mcp/handlers/quality/quality-validate-metrics.d.ts.map +1 -0
  730. package/dist/mcp/handlers/quality/quality-validate-metrics.js +298 -0
  731. package/dist/mcp/handlers/quality/quality-validate-metrics.js.map +1 -0
  732. package/dist/mcp/handlers/test/index.d.ts +9 -0
  733. package/dist/mcp/handlers/test/index.d.ts.map +1 -0
  734. package/dist/mcp/handlers/test/index.js +25 -0
  735. package/dist/mcp/handlers/test/index.js.map +1 -0
  736. package/dist/mcp/handlers/test/test-coverage-detailed.d.ts +65 -0
  737. package/dist/mcp/handlers/test/test-coverage-detailed.d.ts.map +1 -0
  738. package/dist/mcp/handlers/test/test-coverage-detailed.js +305 -0
  739. package/dist/mcp/handlers/test/test-coverage-detailed.js.map +1 -0
  740. package/dist/mcp/handlers/test/test-execute-parallel.d.ts +39 -0
  741. package/dist/mcp/handlers/test/test-execute-parallel.d.ts.map +1 -0
  742. package/dist/mcp/handlers/test/test-execute-parallel.js +189 -0
  743. package/dist/mcp/handlers/test/test-execute-parallel.js.map +1 -0
  744. package/dist/mcp/handlers/test/test-generate-enhanced.d.ts +40 -0
  745. package/dist/mcp/handlers/test/test-generate-enhanced.d.ts.map +1 -0
  746. package/dist/mcp/handlers/test/test-generate-enhanced.js +240 -0
  747. package/dist/mcp/handlers/test/test-generate-enhanced.js.map +1 -0
  748. package/dist/mcp/handlers/test/test-optimize-sublinear.d.ts +40 -0
  749. package/dist/mcp/handlers/test/test-optimize-sublinear.d.ts.map +1 -0
  750. package/dist/mcp/handlers/test/test-optimize-sublinear.js +223 -0
  751. package/dist/mcp/handlers/test/test-optimize-sublinear.js.map +1 -0
  752. package/dist/mcp/handlers/test/test-report-comprehensive.d.ts +50 -0
  753. package/dist/mcp/handlers/test/test-report-comprehensive.d.ts.map +1 -0
  754. package/dist/mcp/handlers/test/test-report-comprehensive.js +239 -0
  755. package/dist/mcp/handlers/test/test-report-comprehensive.js.map +1 -0
  756. package/dist/mcp/handlers/test-execute.d.ts +0 -2
  757. package/dist/mcp/handlers/test-execute.d.ts.map +1 -1
  758. package/dist/mcp/handlers/test-execute.js +92 -45
  759. package/dist/mcp/handlers/test-execute.js.map +1 -1
  760. package/dist/mcp/server.d.ts +4 -0
  761. package/dist/mcp/server.d.ts.map +1 -1
  762. package/dist/mcp/server.js +92 -3
  763. package/dist/mcp/server.js.map +1 -1
  764. package/dist/mcp/services/AgentRegistry.js +3 -3
  765. package/dist/mcp/services/AgentRegistry.js.map +1 -1
  766. package/dist/mcp/services/HookExecutor.d.ts +44 -5
  767. package/dist/mcp/services/HookExecutor.d.ts.map +1 -1
  768. package/dist/mcp/services/HookExecutor.js +43 -7
  769. package/dist/mcp/services/HookExecutor.js.map +1 -1
  770. package/dist/mcp/tools.d.ts +43 -0
  771. package/dist/mcp/tools.d.ts.map +1 -1
  772. package/dist/mcp/tools.js +1256 -1
  773. package/dist/mcp/tools.js.map +1 -1
  774. package/dist/mcp/types/advanced.d.ts +193 -0
  775. package/dist/mcp/types/advanced.d.ts.map +1 -0
  776. package/dist/mcp/types/advanced.js +7 -0
  777. package/dist/mcp/types/advanced.js.map +1 -0
  778. package/dist/mcp/types/analysis.d.ts +46 -0
  779. package/dist/mcp/types/analysis.d.ts.map +1 -0
  780. package/dist/mcp/types/analysis.js +6 -0
  781. package/dist/mcp/types/analysis.js.map +1 -0
  782. package/dist/mcp/types/chaos.d.ts +343 -0
  783. package/dist/mcp/types/chaos.d.ts.map +1 -0
  784. package/dist/mcp/types/chaos.js +7 -0
  785. package/dist/mcp/types/chaos.js.map +1 -0
  786. package/dist/mcp/types/integration.d.ts +418 -0
  787. package/dist/mcp/types/integration.d.ts.map +1 -0
  788. package/dist/mcp/types/integration.js +7 -0
  789. package/dist/mcp/types/integration.js.map +1 -0
  790. package/dist/types/api-contract.types.js +1 -2
  791. package/dist/types/api-contract.types.js.map +1 -1
  792. package/dist/types/errors.d.ts.map +1 -1
  793. package/dist/types/errors.js +5 -5
  794. package/dist/types/errors.js.map +1 -1
  795. package/dist/types/hook.types.d.ts +147 -0
  796. package/dist/types/hook.types.d.ts.map +1 -0
  797. package/dist/types/hook.types.js +7 -0
  798. package/dist/types/hook.types.js.map +1 -0
  799. package/dist/types/index.d.ts +1 -0
  800. package/dist/types/index.d.ts.map +1 -1
  801. package/dist/types/index.js +16 -0
  802. package/dist/types/index.js.map +1 -1
  803. package/dist/utils/Config.d.ts +6 -2
  804. package/dist/utils/Config.d.ts.map +1 -1
  805. package/dist/utils/Config.js +41 -0
  806. package/dist/utils/Config.js.map +1 -1
  807. package/dist/utils/FakerDataGenerator.d.ts +203 -0
  808. package/dist/utils/FakerDataGenerator.d.ts.map +1 -0
  809. package/dist/utils/FakerDataGenerator.js +379 -0
  810. package/dist/utils/FakerDataGenerator.js.map +1 -0
  811. package/dist/utils/SecurityScanner.d.ts +72 -0
  812. package/dist/utils/SecurityScanner.d.ts.map +1 -0
  813. package/dist/utils/SecurityScanner.js +388 -0
  814. package/dist/utils/SecurityScanner.js.map +1 -0
  815. package/dist/utils/TestFrameworkExecutor.d.ts +146 -0
  816. package/dist/utils/TestFrameworkExecutor.d.ts.map +1 -0
  817. package/dist/utils/TestFrameworkExecutor.js +576 -0
  818. package/dist/utils/TestFrameworkExecutor.js.map +1 -0
  819. package/dist/utils/index.d.ts +2 -0
  820. package/dist/utils/index.d.ts.map +1 -1
  821. package/dist/utils/index.js +3 -1
  822. package/dist/utils/index.js.map +1 -1
  823. package/dist/utils/validation.d.ts +28 -0
  824. package/dist/utils/validation.d.ts.map +1 -0
  825. package/dist/utils/validation.js +56 -0
  826. package/dist/utils/validation.js.map +1 -0
  827. package/package.json +31 -17
  828. package/dist/core/coverage-analyzer.d.ts +0 -50
  829. package/dist/core/coverage-analyzer.d.ts.map +0 -1
  830. package/dist/core/coverage-analyzer.js +0 -146
  831. package/dist/core/coverage-analyzer.js.map +0 -1
  832. package/dist/core/quality-gate.d.ts +0 -81
  833. package/dist/core/quality-gate.d.ts.map +0 -1
  834. package/dist/core/quality-gate.js +0 -254
  835. package/dist/core/quality-gate.js.map +0 -1
  836. package/dist/optimization/sublinear-solver.d.ts +0 -72
  837. package/dist/optimization/sublinear-solver.d.ts.map +0 -1
  838. package/dist/optimization/sublinear-solver.js +0 -263
  839. package/dist/optimization/sublinear-solver.js.map +0 -1
  840. package/dist/scripts/verifyComplexity.d.ts +0 -8
  841. package/dist/scripts/verifyComplexity.d.ts.map +0 -1
  842. package/dist/scripts/verifyComplexity.js +0 -56
  843. package/dist/scripts/verifyComplexity.js.map +0 -1
  844. package/dist/utils/sublinear/coverageOptimizer.d.ts +0 -84
  845. package/dist/utils/sublinear/coverageOptimizer.d.ts.map +0 -1
  846. package/dist/utils/sublinear/coverageOptimizer.js +0 -415
  847. package/dist/utils/sublinear/coverageOptimizer.js.map +0 -1
  848. package/dist/utils/sublinear/index.d.ts +0 -50
  849. package/dist/utils/sublinear/index.d.ts.map +0 -1
  850. package/dist/utils/sublinear/index.js +0 -390
  851. package/dist/utils/sublinear/index.js.map +0 -1
  852. package/dist/utils/sublinear/matrixSolver.d.ts +0 -132
  853. package/dist/utils/sublinear/matrixSolver.d.ts.map +0 -1
  854. package/dist/utils/sublinear/matrixSolver.js +0 -642
  855. package/dist/utils/sublinear/matrixSolver.js.map +0 -1
  856. package/dist/utils/sublinear/temporalPredictor.d.ts +0 -195
  857. package/dist/utils/sublinear/temporalPredictor.d.ts.map +0 -1
  858. package/dist/utils/sublinear/temporalPredictor.js +0 -474
  859. package/dist/utils/sublinear/temporalPredictor.js.map +0 -1
  860. package/dist/utils/sublinear/testSelector.d.ts +0 -81
  861. package/dist/utils/sublinear/testSelector.d.ts.map +0 -1
  862. package/dist/utils/sublinear/testSelector.js +0 -303
  863. package/dist/utils/sublinear/testSelector.js.map +0 -1
@@ -0,0 +1,133 @@
1
+ import { EventEmitter } from 'events';
2
+ import { SwarmMemoryManager } from '../memory/SwarmMemoryManager';
3
+ export interface PreToolUseBundle {
4
+ summary: string;
5
+ rules: string[];
6
+ artifactIds: string[];
7
+ hints: any;
8
+ patterns: any[];
9
+ workflow: any;
10
+ }
11
+ export interface PostToolUsePersistence {
12
+ events: Array<{
13
+ type: string;
14
+ payload: any;
15
+ }>;
16
+ patterns: Array<{
17
+ pattern: string;
18
+ confidence: number;
19
+ }>;
20
+ checkpoints: Array<{
21
+ step: string;
22
+ status: string;
23
+ }>;
24
+ artifacts: Array<{
25
+ kind: string;
26
+ path: string;
27
+ sha256: string;
28
+ }>;
29
+ metrics: Array<{
30
+ metric: string;
31
+ value: number;
32
+ unit: string;
33
+ }>;
34
+ }
35
+ export interface VerificationResult {
36
+ passed: boolean;
37
+ score: number;
38
+ priority: number;
39
+ checks: string[];
40
+ }
41
+ export interface ValidationResult {
42
+ valid: boolean;
43
+ accuracy: number;
44
+ priority: number;
45
+ validations: string[];
46
+ }
47
+ export interface EditVerificationResult {
48
+ allowed: boolean;
49
+ priority: number;
50
+ checks: string[];
51
+ }
52
+ export interface EditUpdateResult {
53
+ updated: boolean;
54
+ priority: number;
55
+ updates: string[];
56
+ }
57
+ export interface SessionFinalizationResult {
58
+ finalized: boolean;
59
+ priority: number;
60
+ actions: string[];
61
+ }
62
+ /**
63
+ * VerificationHookManager - Implements 5-stage verification hooks with context engineering
64
+ * Provides PreToolUse context bundles and PostToolUse persistence across multiple memory tables
65
+ */
66
+ export declare class VerificationHookManager extends EventEmitter {
67
+ private memory;
68
+ private readonly RULES;
69
+ private environmentChecker;
70
+ private resourceChecker;
71
+ private permissionChecker;
72
+ private configurationChecker;
73
+ private outputValidator;
74
+ private qualityValidator;
75
+ private coverageValidator;
76
+ private performanceValidator;
77
+ private rollbackManager;
78
+ constructor(memory: SwarmMemoryManager);
79
+ /**
80
+ * Build a small context bundle for PreToolUse with top-N artifacts (IDs only)
81
+ * Includes hints from blackboard, patterns, and workflow state
82
+ */
83
+ buildPreToolUseBundle(options: {
84
+ task: string;
85
+ maxArtifacts?: number;
86
+ }): Promise<PreToolUseBundle>;
87
+ /**
88
+ * Persist PostToolUse outcomes to multiple memory tables with appropriate TTLs
89
+ */
90
+ persistPostToolUseOutcomes(outcomes: PostToolUsePersistence): Promise<void>;
91
+ /**
92
+ * Stage 1: Pre-Task Verification (Priority 100)
93
+ * Validates environment, resources, and dependencies before task execution
94
+ */
95
+ executePreTaskVerification(options: {
96
+ task: string;
97
+ context?: any;
98
+ }): Promise<VerificationResult>;
99
+ /**
100
+ * Stage 2: Post-Task Validation (Priority 90)
101
+ * Validates task outputs and quality metrics
102
+ */
103
+ executePostTaskValidation(options: {
104
+ task: string;
105
+ result: any;
106
+ }): Promise<ValidationResult>;
107
+ /**
108
+ * Stage 3: Pre-Edit Verification (Priority 80)
109
+ * Verifies file locks and syntax before editing
110
+ */
111
+ executePreEditVerification(options: {
112
+ file: string;
113
+ changes: any;
114
+ }): Promise<EditVerificationResult>;
115
+ /**
116
+ * Stage 4: Post-Edit Update (Priority 70)
117
+ * Updates artifact tracking and dependencies after edits
118
+ */
119
+ executePostEditUpdate(options: {
120
+ file: string;
121
+ changes: any;
122
+ }): Promise<EditUpdateResult>;
123
+ /**
124
+ * Stage 5: Session-End Finalization (Priority 60)
125
+ * Exports state, aggregates metrics, and performs cleanup
126
+ */
127
+ executeSessionEndFinalization(options: {
128
+ sessionId: string;
129
+ duration: number;
130
+ tasksCompleted: number;
131
+ }): Promise<SessionFinalizationResult>;
132
+ }
133
+ //# sourceMappingURL=VerificationHookManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerificationHookManager.d.ts","sourceRoot":"","sources":["../../../src/core/hooks/VerificationHookManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAKlE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,GAAG,EAAE,CAAC;IAChB,QAAQ,EAAE,GAAG,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,GAAG,CAAA;KAAE,CAAC,CAAC;IAC9C,QAAQ,EAAE,KAAK,CAAC;QAAE,OAAO,EAA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AAO,EAAE;QAC3C,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,cAAc,EAAE,MAAM,CAAC;KACxB,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAiBvC"}
@@ -0,0 +1,293 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerificationHookManager = void 0;
4
+ const events_1 = require("events");
5
+ const checkers_1 = require("./checkers");
6
+ const validators_1 = require("./validators");
7
+ const RollbackManager_1 = require("./RollbackManager");
8
+ /**
9
+ * VerificationHookManager - Implements 5-stage verification hooks with context engineering
10
+ * Provides PreToolUse context bundles and PostToolUse persistence across multiple memory tables
11
+ */
12
+ class VerificationHookManager extends events_1.EventEmitter {
13
+ constructor(memory) {
14
+ super();
15
+ this.memory = memory;
16
+ this.RULES = ['prefer-small-diffs', 'tdd-required', 'coverage-95'];
17
+ this.environmentChecker = new checkers_1.EnvironmentChecker();
18
+ this.resourceChecker = new checkers_1.ResourceChecker();
19
+ this.permissionChecker = new checkers_1.PermissionChecker();
20
+ this.configurationChecker = new checkers_1.ConfigurationChecker(memory);
21
+ this.outputValidator = new validators_1.OutputValidator();
22
+ this.qualityValidator = new validators_1.QualityValidator();
23
+ this.coverageValidator = new validators_1.CoverageValidator();
24
+ this.performanceValidator = new validators_1.PerformanceValidator();
25
+ this.rollbackManager = new RollbackManager_1.RollbackManager(memory);
26
+ }
27
+ /**
28
+ * Build a small context bundle for PreToolUse with top-N artifacts (IDs only)
29
+ * Includes hints from blackboard, patterns, and workflow state
30
+ */
31
+ async buildPreToolUseBundle(options) {
32
+ const maxArtifacts = options.maxArtifacts || 5;
33
+ // 1. Get top-N artifacts (by ID only, not content) - using SQL LIKE pattern
34
+ const artifacts = await this.memory.query('artifact:%', {
35
+ partition: 'artifacts'
36
+ });
37
+ const limitedArtifacts = artifacts.slice(0, maxArtifacts);
38
+ // 2. Get hints from blackboard (shared_state) - using SQL LIKE pattern
39
+ const hints = await this.memory.readHints('aqe/%');
40
+ const hintsMap = hints.reduce((acc, h) => {
41
+ acc[h.key] = h.value;
42
+ return acc;
43
+ }, {});
44
+ // 3. Get relevant patterns with confidence threshold >= 0.8 - using SQL LIKE pattern
45
+ const allPatterns = await this.memory.query('patterns:%', {
46
+ partition: 'patterns'
47
+ });
48
+ const patterns = allPatterns.filter(p => p.value.confidence >= 0.8);
49
+ // 4. Get current workflow state
50
+ const workflow = await this.memory.retrieve('workflow:current', {
51
+ partition: 'workflow_state'
52
+ });
53
+ // 5. Build small bundle
54
+ return {
55
+ summary: `Task: ${options.task}`,
56
+ rules: this.RULES,
57
+ artifactIds: limitedArtifacts.map(a => a.value.id),
58
+ hints: hintsMap,
59
+ patterns: patterns,
60
+ workflow: workflow
61
+ };
62
+ }
63
+ /**
64
+ * Persist PostToolUse outcomes to multiple memory tables with appropriate TTLs
65
+ */
66
+ async persistPostToolUseOutcomes(outcomes) {
67
+ // Persist events to events table (30 days TTL)
68
+ for (const event of outcomes.events) {
69
+ await this.memory.store(`events:${Date.now()}`, event, {
70
+ partition: 'events',
71
+ ttl: 2592000 // 30 days in seconds
72
+ });
73
+ }
74
+ // Persist patterns to patterns table (7 days TTL)
75
+ for (const pattern of outcomes.patterns) {
76
+ await this.memory.store(`patterns:${pattern.pattern}`, pattern, {
77
+ partition: 'patterns',
78
+ ttl: 604800 // 7 days in seconds
79
+ });
80
+ }
81
+ // Persist checkpoints to workflow_state (no expiration - omit ttl)
82
+ for (const checkpoint of outcomes.checkpoints) {
83
+ await this.memory.store(`workflow:${checkpoint.step}`, checkpoint, {
84
+ partition: 'workflow_state'
85
+ // No TTL = never expires
86
+ });
87
+ }
88
+ // Persist artifacts to artifacts table (no expiration - omit ttl)
89
+ for (const artifact of outcomes.artifacts) {
90
+ await this.memory.store(`artifact:${Date.now()}`, artifact, {
91
+ partition: 'artifacts'
92
+ // No TTL = never expires
93
+ });
94
+ }
95
+ // Persist metrics (no explicit TTL)
96
+ for (const metric of outcomes.metrics) {
97
+ await this.memory.store(`metrics:${metric.metric}`, metric, {
98
+ partition: 'performance_metrics'
99
+ });
100
+ }
101
+ this.emit('post-tool-use:persisted', outcomes);
102
+ }
103
+ /**
104
+ * Stage 1: Pre-Task Verification (Priority 100)
105
+ * Validates environment, resources, and dependencies before task execution
106
+ */
107
+ async executePreTaskVerification(options) {
108
+ const checks = [];
109
+ let totalScore = 0;
110
+ let checkCount = 0;
111
+ // Environment check
112
+ const envResult = await this.environmentChecker.check({
113
+ requiredVars: options.context?.requiredVars || [],
114
+ minNodeVersion: options.context?.minNodeVersion,
115
+ requiredModules: options.context?.requiredModules || []
116
+ });
117
+ checks.push(...envResult.checks);
118
+ totalScore += envResult.passed ? 1 : 0;
119
+ checkCount++;
120
+ // Resource check
121
+ const resourceResult = await this.resourceChecker.check({
122
+ minMemoryMB: options.context?.minMemoryMB,
123
+ minCPUCores: options.context?.minCPUCores,
124
+ minDiskSpaceMB: options.context?.minDiskSpaceMB,
125
+ checkPath: options.context?.checkPath,
126
+ maxLoadAverage: options.context?.maxLoadAverage
127
+ });
128
+ checks.push(...resourceResult.checks);
129
+ totalScore += resourceResult.passed ? 1 : 0;
130
+ checkCount++;
131
+ // Permission check (if files specified)
132
+ if (options.context?.files || options.context?.directories) {
133
+ const permResult = await this.permissionChecker.check({
134
+ files: options.context.files,
135
+ directories: options.context.directories,
136
+ requiredPermissions: options.context.requiredPermissions,
137
+ requiredAccess: options.context.requiredAccess
138
+ });
139
+ checks.push(...permResult.checks);
140
+ totalScore += permResult.passed ? 1 : 0;
141
+ checkCount++;
142
+ }
143
+ // Configuration check (if config specified)
144
+ if (options.context?.config) {
145
+ const configResult = await this.configurationChecker.check({
146
+ config: options.context.config,
147
+ schema: options.context.schema,
148
+ requiredKeys: options.context.requiredKeys,
149
+ validateAgainstStored: options.context.validateAgainstStored,
150
+ storedKey: options.context.storedKey
151
+ });
152
+ checks.push(...configResult.checks);
153
+ totalScore += configResult.passed ? 1 : 0;
154
+ checkCount++;
155
+ }
156
+ const passed = envResult.passed && resourceResult.passed;
157
+ const score = checkCount > 0 ? totalScore / checkCount : 0;
158
+ const result = {
159
+ passed,
160
+ score,
161
+ priority: 100,
162
+ checks
163
+ };
164
+ this.emit('hook:executed', { stage: 'pre-task', priority: 100, result });
165
+ return result;
166
+ }
167
+ /**
168
+ * Stage 2: Post-Task Validation (Priority 90)
169
+ * Validates task outputs and quality metrics
170
+ */
171
+ async executePostTaskValidation(options) {
172
+ const validations = [];
173
+ let totalScore = 0;
174
+ let validatorCount = 0;
175
+ let allValid = true;
176
+ // Output validation
177
+ if (options.result.output) {
178
+ const outputResult = await this.outputValidator.validate({
179
+ output: options.result.output,
180
+ expectedStructure: options.result.expectedStructure,
181
+ expectedTypes: options.result.expectedTypes,
182
+ requiredFields: options.result.requiredFields
183
+ });
184
+ validations.push(...outputResult.validations);
185
+ totalScore += outputResult.valid ? 1 : 0;
186
+ validatorCount++;
187
+ allValid = allValid && outputResult.valid;
188
+ }
189
+ // Quality validation
190
+ if (options.result.metrics) {
191
+ const qualityResult = await this.qualityValidator.validate({
192
+ metrics: options.result.metrics,
193
+ thresholds: options.result.qualityThresholds || {
194
+ maxComplexity: 10,
195
+ minMaintainability: 70,
196
+ maxDuplication: 10
197
+ }
198
+ });
199
+ validations.push(...qualityResult.validations);
200
+ totalScore += qualityResult.score;
201
+ validatorCount++;
202
+ allValid = allValid && qualityResult.valid;
203
+ }
204
+ // Coverage validation
205
+ if (options.result.coverage) {
206
+ const coverageResult = await this.coverageValidator.validate({
207
+ coverage: options.result.coverage,
208
+ thresholds: options.result.coverageThresholds,
209
+ baseline: options.result.coverageBaseline
210
+ });
211
+ validations.push(...coverageResult.validations);
212
+ totalScore += coverageResult.valid ? 1 : 0;
213
+ validatorCount++;
214
+ allValid = allValid && coverageResult.valid;
215
+ }
216
+ // Performance validation
217
+ if (options.result.performance) {
218
+ const perfResult = await this.performanceValidator.validate({
219
+ metrics: options.result.performance,
220
+ thresholds: options.result.performanceThresholds,
221
+ baseline: options.result.performanceBaseline,
222
+ regressionThreshold: options.result.regressionThreshold
223
+ });
224
+ validations.push(...perfResult.validations);
225
+ totalScore += perfResult.valid ? 1 : 0;
226
+ validatorCount++;
227
+ allValid = allValid && perfResult.valid;
228
+ }
229
+ const accuracy = validatorCount > 0 ? totalScore / validatorCount : 0;
230
+ const result = {
231
+ valid: allValid,
232
+ accuracy,
233
+ priority: 90,
234
+ validations
235
+ };
236
+ this.emit('hook:executed', { stage: 'post-task', priority: 90, result });
237
+ return result;
238
+ }
239
+ /**
240
+ * Stage 3: Pre-Edit Verification (Priority 80)
241
+ * Verifies file locks and syntax before editing
242
+ */
243
+ async executePreEditVerification(options) {
244
+ const checks = [
245
+ 'file-lock-check',
246
+ 'syntax-validation'
247
+ ];
248
+ const result = {
249
+ allowed: true,
250
+ priority: 80,
251
+ checks
252
+ };
253
+ this.emit('hook:executed', { stage: 'pre-edit', priority: 80, result });
254
+ return result;
255
+ }
256
+ /**
257
+ * Stage 4: Post-Edit Update (Priority 70)
258
+ * Updates artifact tracking and dependencies after edits
259
+ */
260
+ async executePostEditUpdate(options) {
261
+ const updates = [
262
+ 'artifact-tracking',
263
+ 'dependency-update'
264
+ ];
265
+ const result = {
266
+ updated: true,
267
+ priority: 70,
268
+ updates
269
+ };
270
+ this.emit('hook:executed', { stage: 'post-edit', priority: 70, result });
271
+ return result;
272
+ }
273
+ /**
274
+ * Stage 5: Session-End Finalization (Priority 60)
275
+ * Exports state, aggregates metrics, and performs cleanup
276
+ */
277
+ async executeSessionEndFinalization(options) {
278
+ const actions = [
279
+ 'state-export',
280
+ 'metrics-aggregation',
281
+ 'cleanup'
282
+ ];
283
+ const result = {
284
+ finalized: true,
285
+ priority: 60,
286
+ actions
287
+ };
288
+ this.emit('hook:executed', { stage: 'session-end', priority: 60, result });
289
+ return result;
290
+ }
291
+ }
292
+ exports.VerificationHookManager = VerificationHookManager;
293
+ //# sourceMappingURL=VerificationHookManager.js.map
@@ -0,0 +1 @@
1
+ {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YAC/B,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,EAAE;YACZ,OAAO;SACR,CAAC;QAEF,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QAEzE,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,6BAA6B,CAAC,OAInC;QACC,MAAM,OAAO,GAAG;YACd,cAAc;YACd,qBAAqB;YACrB,SAAS;SACV,CAAC;QAEF,MAAM,MAAM,GAA8B;YACxC,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,EAAE;YACZ,OAAO;SACR,CAAC;QAEF,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QAE3E,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AA7VD,0DA6VC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * ConfigurationChecker - Validates configuration schema and values
3
+ */
4
+ import { SwarmMemoryManager } from '../../memory/SwarmMemoryManager';
5
+ export interface ConfigurationCheckOptions {
6
+ config: Record<string, any>;
7
+ schema?: Record<string, {
8
+ type: string;
9
+ min?: number;
10
+ max?: number;
11
+ }>;
12
+ requiredKeys?: string[];
13
+ validateAgainstStored?: boolean;
14
+ storedKey?: string;
15
+ }
16
+ export interface ConfigurationCheckResult {
17
+ passed: boolean;
18
+ checks: string[];
19
+ details: {
20
+ errors: string[];
21
+ missingKeys?: string[];
22
+ schemaViolations?: string[];
23
+ };
24
+ }
25
+ export declare class ConfigurationChecker {
26
+ private memory?;
27
+ constructor(memory?: SwarmMemoryManager | undefined);
28
+ check(options: ConfigurationCheckOptions): Promise<ConfigurationCheckResult>;
29
+ private compareConfigs;
30
+ }
31
+ //# sourceMappingURL=ConfigurationChecker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigurationChecker.d.ts","sourceRoot":"","sources":["../../../../src/core/hooks/checkers/ConfigurationChecker.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACtE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC7B,CAAC;CACH;AAED,qBAAa,oBAAoB;IACnB,OAAO,CAAC,MAAM,CAAC;gBAAP,MAAM,CAAC,EAAE,kBAAkB,YAAA;IAEzC,KAAK,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IA0FlF,OAAO,CAAC,cAAc;CAWvB"}
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ /**
3
+ * ConfigurationChecker - Validates configuration schema and values
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ConfigurationChecker = void 0;
7
+ class ConfigurationChecker {
8
+ constructor(memory) {
9
+ this.memory = memory;
10
+ }
11
+ async check(options) {
12
+ const checks = [];
13
+ const details = {
14
+ errors: [],
15
+ missingKeys: [],
16
+ schemaViolations: []
17
+ };
18
+ let passed = true;
19
+ // Validate schema
20
+ if (options.schema) {
21
+ checks.push('schema-validation');
22
+ for (const [key, schema] of Object.entries(options.schema)) {
23
+ const value = options.config[key];
24
+ if (value === undefined) {
25
+ details.schemaViolations.push(`Missing key: ${key}`);
26
+ passed = false;
27
+ continue;
28
+ }
29
+ // Type validation
30
+ const actualType = typeof value;
31
+ if (actualType !== schema.type) {
32
+ details.schemaViolations.push(`Type mismatch for ${key}: expected ${schema.type}, got ${actualType}`);
33
+ details.errors.push(`Invalid type for ${key}`);
34
+ passed = false;
35
+ }
36
+ // Range validation for numbers
37
+ if (schema.type === 'number' && typeof value === 'number') {
38
+ if (schema.min !== undefined && value < schema.min) {
39
+ details.schemaViolations.push(`${key} below minimum: ${value} < ${schema.min}`);
40
+ details.errors.push(`${key} out of range`);
41
+ passed = false;
42
+ }
43
+ if (schema.max !== undefined && value > schema.max) {
44
+ details.schemaViolations.push(`${key} above maximum: ${value} > ${schema.max}`);
45
+ details.errors.push(`${key} out of range`);
46
+ passed = false;
47
+ }
48
+ }
49
+ }
50
+ }
51
+ // Check required keys
52
+ if (options.requiredKeys && options.requiredKeys.length > 0) {
53
+ checks.push('required-keys');
54
+ for (const key of options.requiredKeys) {
55
+ if (options.config[key] === undefined) {
56
+ details.missingKeys.push(key);
57
+ details.errors.push(`Missing required key: ${key}`);
58
+ passed = false;
59
+ }
60
+ }
61
+ }
62
+ // Validate against stored configuration
63
+ if (options.validateAgainstStored && this.memory && options.storedKey) {
64
+ checks.push('baseline-comparison');
65
+ try {
66
+ const stored = await this.memory.retrieve(options.storedKey, {
67
+ partition: 'configuration'
68
+ });
69
+ if (stored) {
70
+ const differences = this.compareConfigs(options.config, stored);
71
+ if (differences.length > 0) {
72
+ details.errors.push(...differences);
73
+ // Note: differences don't necessarily mean failure, just information
74
+ }
75
+ }
76
+ }
77
+ catch (error) {
78
+ details.errors.push('Failed to retrieve stored configuration');
79
+ }
80
+ }
81
+ return {
82
+ passed,
83
+ checks,
84
+ details
85
+ };
86
+ }
87
+ compareConfigs(current, stored) {
88
+ const differences = [];
89
+ for (const key of Object.keys(stored)) {
90
+ if (JSON.stringify(current[key]) !== JSON.stringify(stored[key])) {
91
+ differences.push(`Configuration mismatch for ${key}`);
92
+ }
93
+ }
94
+ return differences;
95
+ }
96
+ }
97
+ exports.ConfigurationChecker = ConfigurationChecker;
98
+ //# sourceMappingURL=ConfigurationChecker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigurationChecker.js","sourceRoot":"","sources":["../../../../src/core/hooks/checkers/ConfigurationChecker.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAsBH,MAAa,oBAAoB;IAC/B,YAAoB,MAA2B;QAA3B,WAAM,GAAN,MAAM,CAAqB;IAAG,CAAC;IAEnD,KAAK,CAAC,KAAK,CAAC,OAAkC;QAC5C,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,MAAM,OAAO,GAAwC;YACnD,MAAM,EAAE,EAAE;YACV,WAAW,EAAE,EAAE;YACf,gBAAgB,EAAE,EAAE;SACrB,CAAC;QAEF,IAAI,MAAM,GAAG,IAAI,CAAC;QAElB,kBAAkB;QAClB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YACnB,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;YAEjC,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC3D,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBAElC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;oBACxB,OAAO,CAAC,gBAAiB,CAAC,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAC,CAAC;oBACtD,MAAM,GAAG,KAAK,CAAC;oBACf,SAAS;gBACX,CAAC;gBAED,kBAAkB;gBAClB,M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E,CAAC;QAEjC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YACtC,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;gBACjE,WAAW,CAAC,IAAI,CAAC,8BAA8B,GAAG,EAAE,CAAC,CAAC;YACxD,CAAC;QACH,CAAC;QAED,OAAO,WAAW,CAAC;IACrB,CAAC;CACF;AAxGD,oDAwGC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * EnvironmentChecker - Validates environment variables, Node.js version, and dependencies
3
+ */
4
+ export interface EnvironmentCheckOptions {
5
+ requiredVars?: string[];
6
+ minNodeVersion?: string;
7
+ requiredModules?: string[];
8
+ }
9
+ export interface EnvironmentCheckResult {
10
+ passed: boolean;
11
+ checks: string[];
12
+ details: {
13
+ missing: string[];
14
+ nodeVersion?: string;
15
+ availableModules?: string[];
16
+ unavailableModules?: string[];
17
+ };
18
+ }
19
+ export declare class EnvironmentChecker {
20
+ check(options: EnvironmentCheckOptions): Promise<EnvironmentCheckResult>;
21
+ private isVersionCompatible;
22
+ }
23
+ //# sourceMappingURL=EnvironmentChecker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentChecker.d.ts","sourceRoot":"","sources":["../../../../src/core/hooks/checkers/EnvironmentChecker.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,MAAM,WAAW,uBAAuB;IACtC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;QAC5B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC/B,CAAC;CACH;AAED,qBAAa,kBAAkB;IACvB,KAAK,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAsD9E,OAAO,CAAC,mBAAmB;CAc5B"}