agentic-qe 3.3.2 → 3.3.4

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 (672) hide show
  1. package/.claude/agents/v3/README.md +100 -0
  2. package/.claude/agents/v3/qe-accessibility-auditor.md +112 -11
  3. package/.claude/agents/v3/qe-bdd-generator.md +40 -0
  4. package/.claude/agents/v3/qe-coverage-specialist.md +39 -0
  5. package/.claude/agents/v3/qe-defect-predictor.md +36 -0
  6. package/.claude/agents/v3/qe-gap-detector.md +39 -0
  7. package/.claude/agents/v3/qe-pattern-learner.md +31 -0
  8. package/.claude/agents/v3/qe-product-factors-assessor.md +34 -0
  9. package/.claude/agents/v3/qe-quality-criteria-recommender.md +32 -0
  10. package/.claude/agents/v3/qe-quality-gate.md +39 -0
  11. package/.claude/agents/v3/qe-requirements-validator.md +37 -0
  12. package/.claude/agents/v3/qe-risk-assessor.md +33 -0
  13. package/.claude/agents/v3/qe-tdd-specialist.md +33 -0
  14. package/.claude/agents/v3/qe-test-architect.md +36 -0
  15. package/.claude/helpers/statusline-v3.cjs +96 -27
  16. package/.claude/skills/README.md +30 -104
  17. package/.claude/skills/a11y-ally/SKILL.md +1658 -0
  18. package/.claude/skills/qcsd-ideation-swarm/SKILL.md +1750 -0
  19. package/.claude/skills/skills-manifest.json +78 -8
  20. package/README.md +24 -7
  21. package/package.json +1 -1
  22. package/scripts/demo-warmup.sh +45 -0
  23. package/scripts/fetch-content.js +460 -0
  24. package/scripts/sync-claude-flow.cjs +99 -0
  25. package/v3/CHANGELOG.md +188 -0
  26. package/v3/README.md +18 -9
  27. package/v3/assets/agents/v3/README.md +100 -0
  28. package/v3/assets/agents/v3/qe-accessibility-auditor.md +112 -11
  29. package/v3/assets/agents/v3/qe-bdd-generator.md +40 -0
  30. package/v3/assets/agents/v3/qe-coverage-specialist.md +39 -0
  31. package/v3/assets/agents/v3/qe-defect-predictor.md +36 -0
  32. package/v3/assets/agents/v3/qe-gap-detector.md +39 -0
  33. package/v3/assets/agents/v3/qe-pattern-learner.md +31 -0
  34. package/v3/assets/agents/v3/qe-product-factors-assessor.md +34 -0
  35. package/v3/assets/agents/v3/qe-quality-criteria-recommender.md +32 -0
  36. package/v3/assets/agents/v3/qe-quality-gate.md +39 -0
  37. package/v3/assets/agents/v3/qe-requirements-validator.md +37 -0
  38. package/v3/assets/agents/v3/qe-risk-assessor.md +33 -0
  39. package/v3/assets/agents/v3/qe-tdd-specialist.md +33 -0
  40. package/v3/assets/agents/v3/qe-test-architect.md +36 -0
  41. package/v3/assets/hooks/cross-phase-memory.yaml +253 -0
  42. package/v3/assets/skills/a11y-ally/SKILL.md +1658 -0
  43. package/v3/assets/skills/qcsd-ideation-swarm/SKILL.md +1750 -0
  44. package/v3/assets/skills/skills-manifest.json +753 -0
  45. package/v3/dist/adapters/claude-flow/model-router-bridge.d.ts.map +1 -1
  46. package/v3/dist/adapters/claude-flow/model-router-bridge.js +6 -4
  47. package/v3/dist/adapters/claude-flow/model-router-bridge.js.map +1 -1
  48. package/v3/dist/adapters/claude-flow/pretrain-bridge.d.ts.map +1 -1
  49. package/v3/dist/adapters/claude-flow/pretrain-bridge.js +13 -8
  50. package/v3/dist/adapters/claude-flow/pretrain-bridge.js.map +1 -1
  51. package/v3/dist/adapters/claude-flow/trajectory-bridge.d.ts.map +1 -1
  52. package/v3/dist/adapters/claude-flow/trajectory-bridge.js +9 -6
  53. package/v3/dist/adapters/claude-flow/trajectory-bridge.js.map +1 -1
  54. package/v3/dist/benchmarks/performance-benchmarks.d.ts.map +1 -1
  55. package/v3/dist/benchmarks/performance-benchmarks.js +5 -3
  56. package/v3/dist/benchmarks/performance-benchmarks.js.map +1 -1
  57. package/v3/dist/cli/bundle.js +47008 -36837
  58. package/v3/dist/cli/commands/hooks.d.ts.map +1 -1
  59. package/v3/dist/cli/commands/hooks.js +288 -0
  60. package/v3/dist/cli/commands/hooks.js.map +1 -1
  61. package/v3/dist/cli/commands/sync.d.ts.map +1 -1
  62. package/v3/dist/cli/commands/sync.js +0 -6
  63. package/v3/dist/cli/commands/sync.js.map +1 -1
  64. package/v3/dist/cli/handlers/init-handler.d.ts.map +1 -1
  65. package/v3/dist/cli/handlers/init-handler.js +11 -0
  66. package/v3/dist/cli/handlers/init-handler.js.map +1 -1
  67. package/v3/dist/cli/index.js +14 -2
  68. package/v3/dist/cli/index.js.map +1 -1
  69. package/v3/dist/cli/scheduler/persistent-scheduler.d.ts.map +1 -1
  70. package/v3/dist/cli/scheduler/persistent-scheduler.js +3 -2
  71. package/v3/dist/cli/scheduler/persistent-scheduler.js.map +1 -1
  72. package/v3/dist/cli/wizards/test-wizard.d.ts.map +1 -1
  73. package/v3/dist/cli/wizards/test-wizard.js +6 -4
  74. package/v3/dist/cli/wizards/test-wizard.js.map +1 -1
  75. package/v3/dist/coordination/consensus/domain-findings.d.ts +202 -0
  76. package/v3/dist/coordination/consensus/domain-findings.d.ts.map +1 -0
  77. package/v3/dist/coordination/consensus/domain-findings.js +66 -0
  78. package/v3/dist/coordination/consensus/domain-findings.js.map +1 -0
  79. package/v3/dist/coordination/consensus/index.d.ts +2 -0
  80. package/v3/dist/coordination/consensus/index.d.ts.map +1 -1
  81. package/v3/dist/coordination/consensus/index.js +4 -0
  82. package/v3/dist/coordination/consensus/index.js.map +1 -1
  83. package/v3/dist/coordination/consensus/providers/native-learning-provider.d.ts.map +1 -1
  84. package/v3/dist/coordination/consensus/providers/native-learning-provider.js +10 -8
  85. package/v3/dist/coordination/consensus/providers/native-learning-provider.js.map +1 -1
  86. package/v3/dist/coordination/consensus/providers/ollama-provider.d.ts.map +1 -1
  87. package/v3/dist/coordination/consensus/providers/ollama-provider.js +5 -4
  88. package/v3/dist/coordination/consensus/providers/ollama-provider.js.map +1 -1
  89. package/v3/dist/coordination/consensus/providers/openai-provider.d.ts.map +1 -1
  90. package/v3/dist/coordination/consensus/providers/openai-provider.js +5 -4
  91. package/v3/dist/coordination/consensus/providers/openai-provider.js.map +1 -1
  92. package/v3/dist/coordination/constants.d.ts +198 -0
  93. package/v3/dist/coordination/constants.d.ts.map +1 -0
  94. package/v3/dist/coordination/constants.js +210 -0
  95. package/v3/dist/coordination/constants.js.map +1 -0
  96. package/v3/dist/coordination/index.d.ts +1 -0
  97. package/v3/dist/coordination/index.d.ts.map +1 -1
  98. package/v3/dist/coordination/index.js +4 -0
  99. package/v3/dist/coordination/index.js.map +1 -1
  100. package/v3/dist/coordination/mincut/dream-integration.d.ts.map +1 -1
  101. package/v3/dist/coordination/mincut/dream-integration.js +5 -1
  102. package/v3/dist/coordination/mincut/dream-integration.js.map +1 -1
  103. package/v3/dist/coordination/mixins/consensus-enabled-domain.d.ts +225 -0
  104. package/v3/dist/coordination/mixins/consensus-enabled-domain.d.ts.map +1 -0
  105. package/v3/dist/coordination/mixins/consensus-enabled-domain.js +466 -0
  106. package/v3/dist/coordination/mixins/consensus-enabled-domain.js.map +1 -0
  107. package/v3/dist/coordination/mixins/index.d.ts +14 -0
  108. package/v3/dist/coordination/mixins/index.d.ts.map +1 -0
  109. package/v3/dist/coordination/mixins/index.js +28 -0
  110. package/v3/dist/coordination/mixins/index.js.map +1 -0
  111. package/v3/dist/coordination/mixins/mincut-aware-domain.d.ts +227 -0
  112. package/v3/dist/coordination/mixins/mincut-aware-domain.d.ts.map +1 -0
  113. package/v3/dist/coordination/mixins/mincut-aware-domain.js +368 -0
  114. package/v3/dist/coordination/mixins/mincut-aware-domain.js.map +1 -0
  115. package/v3/dist/coordination/queen-coordinator.d.ts +19 -1
  116. package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
  117. package/v3/dist/coordination/queen-coordinator.js +87 -7
  118. package/v3/dist/coordination/queen-coordinator.js.map +1 -1
  119. package/v3/dist/coordination/task-executor.d.ts +21 -1
  120. package/v3/dist/coordination/task-executor.d.ts.map +1 -1
  121. package/v3/dist/coordination/task-executor.js +227 -11
  122. package/v3/dist/coordination/task-executor.js.map +1 -1
  123. package/v3/dist/coordination/workflow-orchestrator.d.ts.map +1 -1
  124. package/v3/dist/coordination/workflow-orchestrator.js +261 -0
  125. package/v3/dist/coordination/workflow-orchestrator.js.map +1 -1
  126. package/v3/dist/domains/chaos-resilience/coordinator.d.ts +92 -0
  127. package/v3/dist/domains/chaos-resilience/coordinator.d.ts.map +1 -1
  128. package/v3/dist/domains/chaos-resilience/coordinator.js +241 -1
  129. package/v3/dist/domains/chaos-resilience/coordinator.js.map +1 -1
  130. package/v3/dist/domains/chaos-resilience/plugin.d.ts +14 -3
  131. package/v3/dist/domains/chaos-resilience/plugin.d.ts.map +1 -1
  132. package/v3/dist/domains/chaos-resilience/plugin.js +97 -1
  133. package/v3/dist/domains/chaos-resilience/plugin.js.map +1 -1
  134. package/v3/dist/domains/chaos-resilience/services/chaos-engineer.d.ts +29 -2
  135. package/v3/dist/domains/chaos-resilience/services/chaos-engineer.d.ts.map +1 -1
  136. package/v3/dist/domains/chaos-resilience/services/chaos-engineer.js +62 -3
  137. package/v3/dist/domains/chaos-resilience/services/chaos-engineer.js.map +1 -1
  138. package/v3/dist/domains/chaos-resilience/services/performance-profiler.d.ts.map +1 -1
  139. package/v3/dist/domains/chaos-resilience/services/performance-profiler.js +12 -8
  140. package/v3/dist/domains/chaos-resilience/services/performance-profiler.js.map +1 -1
  141. package/v3/dist/domains/code-intelligence/coordinator.d.ts +112 -0
  142. package/v3/dist/domains/code-intelligence/coordinator.d.ts.map +1 -1
  143. package/v3/dist/domains/code-intelligence/coordinator.js +221 -0
  144. package/v3/dist/domains/code-intelligence/coordinator.js.map +1 -1
  145. package/v3/dist/domains/code-intelligence/plugin.d.ts +13 -3
  146. package/v3/dist/domains/code-intelligence/plugin.d.ts.map +1 -1
  147. package/v3/dist/domains/code-intelligence/plugin.js +85 -0
  148. package/v3/dist/domains/code-intelligence/plugin.js.map +1 -1
  149. package/v3/dist/domains/code-intelligence/services/knowledge-graph.d.ts +66 -2
  150. package/v3/dist/domains/code-intelligence/services/knowledge-graph.d.ts.map +1 -1
  151. package/v3/dist/domains/code-intelligence/services/knowledge-graph.js +253 -3
  152. package/v3/dist/domains/code-intelligence/services/knowledge-graph.js.map +1 -1
  153. package/v3/dist/domains/code-intelligence/services/product-factors-bridge.d.ts.map +1 -1
  154. package/v3/dist/domains/code-intelligence/services/product-factors-bridge.js +3 -2
  155. package/v3/dist/domains/code-intelligence/services/product-factors-bridge.js.map +1 -1
  156. package/v3/dist/domains/constants.d.ts +481 -0
  157. package/v3/dist/domains/constants.d.ts.map +1 -0
  158. package/v3/dist/domains/constants.js +503 -0
  159. package/v3/dist/domains/constants.js.map +1 -0
  160. package/v3/dist/domains/contract-testing/coordinator.d.ts +89 -1
  161. package/v3/dist/domains/contract-testing/coordinator.d.ts.map +1 -1
  162. package/v3/dist/domains/contract-testing/coordinator.js +222 -1
  163. package/v3/dist/domains/contract-testing/coordinator.js.map +1 -1
  164. package/v3/dist/domains/contract-testing/interfaces.d.ts +29 -1
  165. package/v3/dist/domains/contract-testing/interfaces.d.ts.map +1 -1
  166. package/v3/dist/domains/contract-testing/plugin.d.ts +6 -1
  167. package/v3/dist/domains/contract-testing/plugin.d.ts.map +1 -1
  168. package/v3/dist/domains/contract-testing/plugin.js +81 -2
  169. package/v3/dist/domains/contract-testing/plugin.js.map +1 -1
  170. package/v3/dist/domains/contract-testing/services/contract-validator.d.ts +29 -2
  171. package/v3/dist/domains/contract-testing/services/contract-validator.d.ts.map +1 -1
  172. package/v3/dist/domains/contract-testing/services/contract-validator.js +62 -6
  173. package/v3/dist/domains/contract-testing/services/contract-validator.js.map +1 -1
  174. package/v3/dist/domains/coverage-analysis/coordinator.d.ts +95 -2
  175. package/v3/dist/domains/coverage-analysis/coordinator.d.ts.map +1 -1
  176. package/v3/dist/domains/coverage-analysis/coordinator.js +274 -6
  177. package/v3/dist/domains/coverage-analysis/coordinator.js.map +1 -1
  178. package/v3/dist/domains/coverage-analysis/services/coverage-analyzer.d.ts +119 -3
  179. package/v3/dist/domains/coverage-analysis/services/coverage-analyzer.d.ts.map +1 -1
  180. package/v3/dist/domains/coverage-analysis/services/coverage-analyzer.js +267 -5
  181. package/v3/dist/domains/coverage-analysis/services/coverage-analyzer.js.map +1 -1
  182. package/v3/dist/domains/coverage-analysis/services/gap-detector.d.ts +111 -2
  183. package/v3/dist/domains/coverage-analysis/services/gap-detector.d.ts.map +1 -1
  184. package/v3/dist/domains/coverage-analysis/services/gap-detector.js +231 -3
  185. package/v3/dist/domains/coverage-analysis/services/gap-detector.js.map +1 -1
  186. package/v3/dist/domains/coverage-analysis/services/hnsw-index.d.ts.map +1 -1
  187. package/v3/dist/domains/coverage-analysis/services/hnsw-index.js +1 -0
  188. package/v3/dist/domains/coverage-analysis/services/hnsw-index.js.map +1 -1
  189. package/v3/dist/domains/defect-intelligence/coordinator.d.ts +80 -1
  190. package/v3/dist/domains/defect-intelligence/coordinator.d.ts.map +1 -1
  191. package/v3/dist/domains/defect-intelligence/coordinator.js +262 -7
  192. package/v3/dist/domains/defect-intelligence/coordinator.js.map +1 -1
  193. package/v3/dist/domains/defect-intelligence/interfaces.d.ts +17 -0
  194. package/v3/dist/domains/defect-intelligence/interfaces.d.ts.map +1 -1
  195. package/v3/dist/domains/defect-intelligence/plugin.d.ts +6 -1
  196. package/v3/dist/domains/defect-intelligence/plugin.d.ts.map +1 -1
  197. package/v3/dist/domains/defect-intelligence/plugin.js +101 -0
  198. package/v3/dist/domains/defect-intelligence/plugin.js.map +1 -1
  199. package/v3/dist/domains/defect-intelligence/services/defect-predictor.d.ts +91 -2
  200. package/v3/dist/domains/defect-intelligence/services/defect-predictor.d.ts.map +1 -1
  201. package/v3/dist/domains/defect-intelligence/services/defect-predictor.js +277 -9
  202. package/v3/dist/domains/defect-intelligence/services/defect-predictor.js.map +1 -1
  203. package/v3/dist/domains/defect-intelligence/services/root-cause-analyzer.d.ts +79 -2
  204. package/v3/dist/domains/defect-intelligence/services/root-cause-analyzer.d.ts.map +1 -1
  205. package/v3/dist/domains/defect-intelligence/services/root-cause-analyzer.js +259 -3
  206. package/v3/dist/domains/defect-intelligence/services/root-cause-analyzer.js.map +1 -1
  207. package/v3/dist/domains/domain-interface.d.ts +155 -0
  208. package/v3/dist/domains/domain-interface.d.ts.map +1 -1
  209. package/v3/dist/domains/domain-interface.js +164 -9
  210. package/v3/dist/domains/domain-interface.js.map +1 -1
  211. package/v3/dist/domains/learning-optimization/coordinator.d.ts +88 -0
  212. package/v3/dist/domains/learning-optimization/coordinator.d.ts.map +1 -1
  213. package/v3/dist/domains/learning-optimization/coordinator.js +227 -1
  214. package/v3/dist/domains/learning-optimization/coordinator.js.map +1 -1
  215. package/v3/dist/domains/learning-optimization/index.d.ts +1 -1
  216. package/v3/dist/domains/learning-optimization/index.d.ts.map +1 -1
  217. package/v3/dist/domains/learning-optimization/index.js.map +1 -1
  218. package/v3/dist/domains/learning-optimization/interfaces.d.ts +4 -0
  219. package/v3/dist/domains/learning-optimization/interfaces.d.ts.map +1 -1
  220. package/v3/dist/domains/learning-optimization/plugin.d.ts +2 -1
  221. package/v3/dist/domains/learning-optimization/plugin.d.ts.map +1 -1
  222. package/v3/dist/domains/learning-optimization/plugin.js +50 -1
  223. package/v3/dist/domains/learning-optimization/plugin.js.map +1 -1
  224. package/v3/dist/domains/learning-optimization/services/learning-coordinator.d.ts +54 -2
  225. package/v3/dist/domains/learning-optimization/services/learning-coordinator.d.ts.map +1 -1
  226. package/v3/dist/domains/learning-optimization/services/learning-coordinator.js +90 -3
  227. package/v3/dist/domains/learning-optimization/services/learning-coordinator.js.map +1 -1
  228. package/v3/dist/domains/quality-assessment/coordinator.d.ts +194 -1
  229. package/v3/dist/domains/quality-assessment/coordinator.d.ts.map +1 -1
  230. package/v3/dist/domains/quality-assessment/coordinator.js +664 -6
  231. package/v3/dist/domains/quality-assessment/coordinator.js.map +1 -1
  232. package/v3/dist/domains/quality-assessment/interfaces.d.ts +22 -0
  233. package/v3/dist/domains/quality-assessment/interfaces.d.ts.map +1 -1
  234. package/v3/dist/domains/quality-assessment/services/deployment-advisor.d.ts +61 -2
  235. package/v3/dist/domains/quality-assessment/services/deployment-advisor.d.ts.map +1 -1
  236. package/v3/dist/domains/quality-assessment/services/deployment-advisor.js +213 -5
  237. package/v3/dist/domains/quality-assessment/services/deployment-advisor.js.map +1 -1
  238. package/v3/dist/domains/quality-assessment/services/quality-analyzer.d.ts +59 -4
  239. package/v3/dist/domains/quality-assessment/services/quality-analyzer.d.ts.map +1 -1
  240. package/v3/dist/domains/quality-assessment/services/quality-analyzer.js +195 -3
  241. package/v3/dist/domains/quality-assessment/services/quality-analyzer.js.map +1 -1
  242. package/v3/dist/domains/requirements-validation/coordinator.d.ts +78 -0
  243. package/v3/dist/domains/requirements-validation/coordinator.d.ts.map +1 -1
  244. package/v3/dist/domains/requirements-validation/coordinator.js +189 -0
  245. package/v3/dist/domains/requirements-validation/coordinator.js.map +1 -1
  246. package/v3/dist/domains/requirements-validation/index.d.ts +1 -0
  247. package/v3/dist/domains/requirements-validation/index.d.ts.map +1 -1
  248. package/v3/dist/domains/requirements-validation/index.js +2 -0
  249. package/v3/dist/domains/requirements-validation/index.js.map +1 -1
  250. package/v3/dist/domains/requirements-validation/interfaces.d.ts +4 -0
  251. package/v3/dist/domains/requirements-validation/interfaces.d.ts.map +1 -1
  252. package/v3/dist/domains/requirements-validation/plugin.d.ts +13 -1
  253. package/v3/dist/domains/requirements-validation/plugin.d.ts.map +1 -1
  254. package/v3/dist/domains/requirements-validation/plugin.js +94 -0
  255. package/v3/dist/domains/requirements-validation/plugin.js.map +1 -1
  256. package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.d.ts +245 -0
  257. package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.d.ts.map +1 -0
  258. package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.js +1143 -0
  259. package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.js.map +1 -0
  260. package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.d.ts.map +1 -1
  261. package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.js +3 -2
  262. package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.js.map +1 -1
  263. package/v3/dist/domains/requirements-validation/services/requirements-validator.d.ts +106 -2
  264. package/v3/dist/domains/requirements-validation/services/requirements-validator.d.ts.map +1 -1
  265. package/v3/dist/domains/requirements-validation/services/requirements-validator.js +263 -3
  266. package/v3/dist/domains/requirements-validation/services/requirements-validator.js.map +1 -1
  267. package/v3/dist/domains/security-compliance/coordinator.d.ts +56 -1
  268. package/v3/dist/domains/security-compliance/coordinator.d.ts.map +1 -1
  269. package/v3/dist/domains/security-compliance/coordinator.js +241 -17
  270. package/v3/dist/domains/security-compliance/coordinator.js.map +1 -1
  271. package/v3/dist/domains/security-compliance/interfaces.d.ts +2 -0
  272. package/v3/dist/domains/security-compliance/interfaces.d.ts.map +1 -1
  273. package/v3/dist/domains/security-compliance/plugin.d.ts +3 -2
  274. package/v3/dist/domains/security-compliance/plugin.d.ts.map +1 -1
  275. package/v3/dist/domains/security-compliance/plugin.js +64 -0
  276. package/v3/dist/domains/security-compliance/plugin.js.map +1 -1
  277. package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.d.ts +25 -0
  278. package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.d.ts.map +1 -0
  279. package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.js +160 -0
  280. package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.js.map +1 -0
  281. package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.d.ts +48 -0
  282. package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.d.ts.map +1 -0
  283. package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.js +385 -0
  284. package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.js.map +1 -0
  285. package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.d.ts +20 -0
  286. package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.d.ts.map +1 -0
  287. package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.js +99 -0
  288. package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.js.map +1 -0
  289. package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts +62 -0
  290. package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts.map +1 -0
  291. package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.js +329 -0
  292. package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.js.map +1 -0
  293. package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.d.ts +46 -0
  294. package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.d.ts.map +1 -0
  295. package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.js +180 -0
  296. package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.js.map +1 -0
  297. package/v3/dist/domains/security-compliance/services/scanners/index.d.ts +14 -0
  298. package/v3/dist/domains/security-compliance/services/scanners/index.d.ts.map +1 -0
  299. package/v3/dist/domains/security-compliance/services/scanners/index.js +16 -0
  300. package/v3/dist/domains/security-compliance/services/scanners/index.js.map +1 -0
  301. package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.d.ts +92 -0
  302. package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.d.ts.map +1 -0
  303. package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.js +440 -0
  304. package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.js.map +1 -0
  305. package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.d.ts +78 -0
  306. package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.d.ts.map +1 -0
  307. package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js +179 -0
  308. package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js.map +1 -0
  309. package/v3/dist/domains/security-compliance/services/scanners/scanner-types.d.ts +91 -0
  310. package/v3/dist/domains/security-compliance/services/scanners/scanner-types.d.ts.map +1 -0
  311. package/v3/dist/domains/security-compliance/services/scanners/scanner-types.js +15 -0
  312. package/v3/dist/domains/security-compliance/services/scanners/scanner-types.js.map +1 -0
  313. package/v3/dist/domains/security-compliance/services/scanners/security-patterns.d.ts +16 -0
  314. package/v3/dist/domains/security-compliance/services/scanners/security-patterns.d.ts.map +1 -0
  315. package/v3/dist/domains/security-compliance/services/scanners/security-patterns.js +507 -0
  316. package/v3/dist/domains/security-compliance/services/scanners/security-patterns.js.map +1 -0
  317. package/v3/dist/domains/security-compliance/services/security-auditor.d.ts.map +1 -1
  318. package/v3/dist/domains/security-compliance/services/security-auditor.js +2 -1
  319. package/v3/dist/domains/security-compliance/services/security-auditor.js.map +1 -1
  320. package/v3/dist/domains/security-compliance/services/security-scanner.d.ts +20 -182
  321. package/v3/dist/domains/security-compliance/services/security-scanner.d.ts.map +1 -1
  322. package/v3/dist/domains/security-compliance/services/security-scanner.js +37 -1909
  323. package/v3/dist/domains/security-compliance/services/security-scanner.js.map +1 -1
  324. package/v3/dist/domains/security-compliance/services/semgrep-integration.d.ts.map +1 -1
  325. package/v3/dist/domains/security-compliance/services/semgrep-integration.js +7 -6
  326. package/v3/dist/domains/security-compliance/services/semgrep-integration.js.map +1 -1
  327. package/v3/dist/domains/test-execution/coordinator.d.ts +89 -0
  328. package/v3/dist/domains/test-execution/coordinator.d.ts.map +1 -1
  329. package/v3/dist/domains/test-execution/coordinator.js +259 -2
  330. package/v3/dist/domains/test-execution/coordinator.js.map +1 -1
  331. package/v3/dist/domains/test-execution/services/auth-state-manager.d.ts.map +1 -1
  332. package/v3/dist/domains/test-execution/services/auth-state-manager.js +6 -4
  333. package/v3/dist/domains/test-execution/services/auth-state-manager.js.map +1 -1
  334. package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.d.ts +55 -0
  335. package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.d.ts.map +1 -0
  336. package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.js +407 -0
  337. package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.js.map +1 -0
  338. package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.d.ts +122 -0
  339. package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.d.ts.map +1 -0
  340. package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.js +325 -0
  341. package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.js.map +1 -0
  342. package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.d.ts +97 -0
  343. package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.d.ts.map +1 -0
  344. package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.js +297 -0
  345. package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.js.map +1 -0
  346. package/v3/dist/domains/test-execution/services/e2e/index.d.ts +22 -0
  347. package/v3/dist/domains/test-execution/services/e2e/index.d.ts.map +1 -0
  348. package/v3/dist/domains/test-execution/services/e2e/index.js +52 -0
  349. package/v3/dist/domains/test-execution/services/e2e/index.js.map +1 -0
  350. package/v3/dist/domains/test-execution/services/e2e/result-collector.d.ts +51 -0
  351. package/v3/dist/domains/test-execution/services/e2e/result-collector.d.ts.map +1 -0
  352. package/v3/dist/domains/test-execution/services/e2e/result-collector.js +133 -0
  353. package/v3/dist/domains/test-execution/services/e2e/result-collector.js.map +1 -0
  354. package/v3/dist/domains/test-execution/services/e2e/step-executors.d.ts +48 -0
  355. package/v3/dist/domains/test-execution/services/e2e/step-executors.d.ts.map +1 -0
  356. package/v3/dist/domains/test-execution/services/e2e/step-executors.js +422 -0
  357. package/v3/dist/domains/test-execution/services/e2e/step-executors.js.map +1 -0
  358. package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.d.ts +49 -0
  359. package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.d.ts.map +1 -0
  360. package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.js +146 -0
  361. package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.js.map +1 -0
  362. package/v3/dist/domains/test-execution/services/e2e/types.d.ts +138 -0
  363. package/v3/dist/domains/test-execution/services/e2e/types.d.ts.map +1 -0
  364. package/v3/dist/domains/test-execution/services/e2e/types.js +65 -0
  365. package/v3/dist/domains/test-execution/services/e2e/types.js.map +1 -0
  366. package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.d.ts +33 -0
  367. package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.d.ts.map +1 -0
  368. package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.js +114 -0
  369. package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.js.map +1 -0
  370. package/v3/dist/domains/test-execution/services/e2e-runner.d.ts +18 -392
  371. package/v3/dist/domains/test-execution/services/e2e-runner.d.ts.map +1 -1
  372. package/v3/dist/domains/test-execution/services/e2e-runner.js +25 -1757
  373. package/v3/dist/domains/test-execution/services/e2e-runner.js.map +1 -1
  374. package/v3/dist/domains/test-execution/services/flaky-detector.d.ts.map +1 -1
  375. package/v3/dist/domains/test-execution/services/flaky-detector.js +12 -9
  376. package/v3/dist/domains/test-execution/services/flaky-detector.js.map +1 -1
  377. package/v3/dist/domains/test-execution/services/retry-handler.d.ts.map +1 -1
  378. package/v3/dist/domains/test-execution/services/retry-handler.js +7 -5
  379. package/v3/dist/domains/test-execution/services/retry-handler.js.map +1 -1
  380. package/v3/dist/domains/test-execution/services/test-executor.d.ts +30 -2
  381. package/v3/dist/domains/test-execution/services/test-executor.d.ts.map +1 -1
  382. package/v3/dist/domains/test-execution/services/test-executor.js +67 -5
  383. package/v3/dist/domains/test-execution/services/test-executor.js.map +1 -1
  384. package/v3/dist/domains/test-generation/coordinator.d.ts +97 -0
  385. package/v3/dist/domains/test-generation/coordinator.d.ts.map +1 -1
  386. package/v3/dist/domains/test-generation/coordinator.js +237 -0
  387. package/v3/dist/domains/test-generation/coordinator.js.map +1 -1
  388. package/v3/dist/domains/test-generation/interfaces.d.ts +2 -0
  389. package/v3/dist/domains/test-generation/interfaces.d.ts.map +1 -1
  390. package/v3/dist/domains/test-generation/services/test-generator.d.ts +32 -0
  391. package/v3/dist/domains/test-generation/services/test-generator.d.ts.map +1 -1
  392. package/v3/dist/domains/test-generation/services/test-generator.js +158 -3
  393. package/v3/dist/domains/test-generation/services/test-generator.js.map +1 -1
  394. package/v3/dist/domains/visual-accessibility/coordinator.d.ts +147 -0
  395. package/v3/dist/domains/visual-accessibility/coordinator.d.ts.map +1 -1
  396. package/v3/dist/domains/visual-accessibility/coordinator.js +382 -2
  397. package/v3/dist/domains/visual-accessibility/coordinator.js.map +1 -1
  398. package/v3/dist/domains/visual-accessibility/plugin.d.ts +2 -1
  399. package/v3/dist/domains/visual-accessibility/plugin.d.ts.map +1 -1
  400. package/v3/dist/domains/visual-accessibility/plugin.js +66 -3
  401. package/v3/dist/domains/visual-accessibility/plugin.js.map +1 -1
  402. package/v3/dist/domains/visual-accessibility/services/accessibility-tester.d.ts.map +1 -1
  403. package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js +3 -2
  404. package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js.map +1 -1
  405. package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.d.ts.map +1 -1
  406. package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.js +22 -12
  407. package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.js.map +1 -1
  408. package/v3/dist/domains/visual-accessibility/services/viewport-capture.d.ts.map +1 -1
  409. package/v3/dist/domains/visual-accessibility/services/viewport-capture.js +3 -2
  410. package/v3/dist/domains/visual-accessibility/services/viewport-capture.js.map +1 -1
  411. package/v3/dist/domains/visual-accessibility/services/visual-regression.d.ts.map +1 -1
  412. package/v3/dist/domains/visual-accessibility/services/visual-regression.js +3 -2
  413. package/v3/dist/domains/visual-accessibility/services/visual-regression.js.map +1 -1
  414. package/v3/dist/domains/visual-accessibility/services/visual-tester.d.ts +47 -2
  415. package/v3/dist/domains/visual-accessibility/services/visual-tester.d.ts.map +1 -1
  416. package/v3/dist/domains/visual-accessibility/services/visual-tester.js +87 -3
  417. package/v3/dist/domains/visual-accessibility/services/visual-tester.js.map +1 -1
  418. package/v3/dist/hooks/cross-phase-hooks.d.ts +42 -0
  419. package/v3/dist/hooks/cross-phase-hooks.d.ts.map +1 -0
  420. package/v3/dist/hooks/cross-phase-hooks.js +338 -0
  421. package/v3/dist/hooks/cross-phase-hooks.js.map +1 -0
  422. package/v3/dist/hooks/index.d.ts +9 -0
  423. package/v3/dist/hooks/index.d.ts.map +1 -0
  424. package/v3/dist/hooks/index.js +9 -0
  425. package/v3/dist/hooks/index.js.map +1 -0
  426. package/v3/dist/init/agents-installer.d.ts.map +1 -1
  427. package/v3/dist/init/agents-installer.js +6 -4
  428. package/v3/dist/init/agents-installer.js.map +1 -1
  429. package/v3/dist/init/enhancements/claude-flow-adapter.d.ts.map +1 -1
  430. package/v3/dist/init/enhancements/claude-flow-adapter.js +15 -9
  431. package/v3/dist/init/enhancements/claude-flow-adapter.js.map +1 -1
  432. package/v3/dist/init/enhancements/detector.js +6 -4
  433. package/v3/dist/init/enhancements/detector.js.map +1 -1
  434. package/v3/dist/init/init-wizard.d.ts +5 -0
  435. package/v3/dist/init/init-wizard.d.ts.map +1 -1
  436. package/v3/dist/init/init-wizard.js +74 -11
  437. package/v3/dist/init/init-wizard.js.map +1 -1
  438. package/v3/dist/init/migration/data-migrator.d.ts.map +1 -1
  439. package/v3/dist/init/migration/data-migrator.js +6 -4
  440. package/v3/dist/init/migration/data-migrator.js.map +1 -1
  441. package/v3/dist/init/phases/02-analysis.js +2 -2
  442. package/v3/dist/init/phases/02-analysis.js.map +1 -1
  443. package/v3/dist/init/phases/04-database.d.ts.map +1 -1
  444. package/v3/dist/init/phases/04-database.js +0 -1
  445. package/v3/dist/init/phases/04-database.js.map +1 -1
  446. package/v3/dist/init/phases/11-claude-md.d.ts.map +1 -1
  447. package/v3/dist/init/phases/11-claude-md.js +25 -0
  448. package/v3/dist/init/phases/11-claude-md.js.map +1 -1
  449. package/v3/dist/init/phases/12-verification.d.ts.map +1 -1
  450. package/v3/dist/init/phases/12-verification.js +2 -1
  451. package/v3/dist/init/phases/12-verification.js.map +1 -1
  452. package/v3/dist/init/project-analyzer.d.ts.map +1 -1
  453. package/v3/dist/init/project-analyzer.js +12 -8
  454. package/v3/dist/init/project-analyzer.js.map +1 -1
  455. package/v3/dist/init/skills-installer.d.ts.map +1 -1
  456. package/v3/dist/init/skills-installer.js +6 -4
  457. package/v3/dist/init/skills-installer.js.map +1 -1
  458. package/v3/dist/init/token-bootstrap.d.ts.map +1 -1
  459. package/v3/dist/init/token-bootstrap.js +2 -1
  460. package/v3/dist/init/token-bootstrap.js.map +1 -1
  461. package/v3/dist/integrations/agent-booster-wasm/index.d.ts.map +1 -1
  462. package/v3/dist/integrations/agent-booster-wasm/index.js +8 -4
  463. package/v3/dist/integrations/agent-booster-wasm/index.js.map +1 -1
  464. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts.map +1 -1
  465. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js +3 -2
  466. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js.map +1 -1
  467. package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.d.ts.map +1 -1
  468. package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.js.map +1 -1
  469. package/v3/dist/integrations/agentic-flow/reasoning-bank/trajectory-tracker.d.ts.map +1 -1
  470. package/v3/dist/integrations/agentic-flow/reasoning-bank/trajectory-tracker.js.map +1 -1
  471. package/v3/dist/integrations/browser/agent-browser/client.d.ts.map +1 -1
  472. package/v3/dist/integrations/browser/agent-browser/client.js +9 -6
  473. package/v3/dist/integrations/browser/agent-browser/client.js.map +1 -1
  474. package/v3/dist/integrations/browser/agent-browser/command-executor.d.ts.map +1 -1
  475. package/v3/dist/integrations/browser/agent-browser/command-executor.js +3 -2
  476. package/v3/dist/integrations/browser/agent-browser/command-executor.js.map +1 -1
  477. package/v3/dist/integrations/browser/index.d.ts +1 -0
  478. package/v3/dist/integrations/browser/index.d.ts.map +1 -1
  479. package/v3/dist/integrations/browser/index.js +6 -0
  480. package/v3/dist/integrations/browser/index.js.map +1 -1
  481. package/v3/dist/integrations/browser/web-content-fetcher.d.ts +154 -0
  482. package/v3/dist/integrations/browser/web-content-fetcher.d.ts.map +1 -0
  483. package/v3/dist/integrations/browser/web-content-fetcher.js +529 -0
  484. package/v3/dist/integrations/browser/web-content-fetcher.js.map +1 -0
  485. package/v3/dist/integrations/coherence/threshold-tuner.d.ts.map +1 -1
  486. package/v3/dist/integrations/coherence/threshold-tuner.js +3 -2
  487. package/v3/dist/integrations/coherence/threshold-tuner.js.map +1 -1
  488. package/v3/dist/integrations/coherence/wasm-loader.d.ts.map +1 -1
  489. package/v3/dist/integrations/coherence/wasm-loader.js +3 -2
  490. package/v3/dist/integrations/coherence/wasm-loader.js.map +1 -1
  491. package/v3/dist/integrations/n8n/agent-factory.d.ts.map +1 -1
  492. package/v3/dist/integrations/n8n/agent-factory.js +6 -4
  493. package/v3/dist/integrations/n8n/agent-factory.js.map +1 -1
  494. package/v3/dist/integrations/rl-suite/persistence/q-value-store.d.ts.map +1 -1
  495. package/v3/dist/integrations/rl-suite/persistence/q-value-store.js.map +1 -1
  496. package/v3/dist/integrations/ruvector/sona-persistence.d.ts.map +1 -1
  497. package/v3/dist/integrations/ruvector/sona-persistence.js +6 -4
  498. package/v3/dist/integrations/ruvector/sona-persistence.js.map +1 -1
  499. package/v3/dist/integrations/vibium/client.d.ts.map +1 -1
  500. package/v3/dist/integrations/vibium/client.js +3 -2
  501. package/v3/dist/integrations/vibium/client.js.map +1 -1
  502. package/v3/dist/kernel/agent-coordinator.d.ts +1 -1
  503. package/v3/dist/kernel/agent-coordinator.d.ts.map +1 -1
  504. package/v3/dist/kernel/agent-coordinator.js +4 -4
  505. package/v3/dist/kernel/agent-coordinator.js.map +1 -1
  506. package/v3/dist/kernel/constants.d.ts +155 -0
  507. package/v3/dist/kernel/constants.d.ts.map +1 -0
  508. package/v3/dist/kernel/constants.js +169 -0
  509. package/v3/dist/kernel/constants.js.map +1 -0
  510. package/v3/dist/kernel/event-bus.d.ts +8 -0
  511. package/v3/dist/kernel/event-bus.d.ts.map +1 -1
  512. package/v3/dist/kernel/event-bus.js +79 -17
  513. package/v3/dist/kernel/event-bus.js.map +1 -1
  514. package/v3/dist/kernel/hybrid-backend.d.ts.map +1 -1
  515. package/v3/dist/kernel/hybrid-backend.js +4 -3
  516. package/v3/dist/kernel/hybrid-backend.js.map +1 -1
  517. package/v3/dist/kernel/kernel.d.ts.map +1 -1
  518. package/v3/dist/kernel/kernel.js +3 -2
  519. package/v3/dist/kernel/kernel.js.map +1 -1
  520. package/v3/dist/kernel/memory-backend.d.ts.map +1 -1
  521. package/v3/dist/kernel/memory-backend.js +4 -3
  522. package/v3/dist/kernel/memory-backend.js.map +1 -1
  523. package/v3/dist/kernel/unified-memory.d.ts.map +1 -1
  524. package/v3/dist/kernel/unified-memory.js +14 -11
  525. package/v3/dist/kernel/unified-memory.js.map +1 -1
  526. package/v3/dist/kernel/unified-persistence.js +3 -2
  527. package/v3/dist/kernel/unified-persistence.js.map +1 -1
  528. package/v3/dist/learning/aqe-learning-engine.d.ts.map +1 -1
  529. package/v3/dist/learning/aqe-learning-engine.js +12 -8
  530. package/v3/dist/learning/aqe-learning-engine.js.map +1 -1
  531. package/v3/dist/learning/dream/index.d.ts +1 -1
  532. package/v3/dist/learning/dream/index.d.ts.map +1 -1
  533. package/v3/dist/learning/dream/index.js +3 -1
  534. package/v3/dist/learning/dream/index.js.map +1 -1
  535. package/v3/dist/learning/dream/spreading-activation.d.ts +41 -0
  536. package/v3/dist/learning/dream/spreading-activation.d.ts.map +1 -1
  537. package/v3/dist/learning/dream/spreading-activation.js +79 -0
  538. package/v3/dist/learning/dream/spreading-activation.js.map +1 -1
  539. package/v3/dist/learning/experience-capture-middleware.d.ts +119 -0
  540. package/v3/dist/learning/experience-capture-middleware.d.ts.map +1 -0
  541. package/v3/dist/learning/experience-capture-middleware.js +416 -0
  542. package/v3/dist/learning/experience-capture-middleware.js.map +1 -0
  543. package/v3/dist/learning/pattern-store.d.ts.map +1 -1
  544. package/v3/dist/learning/pattern-store.js +16 -6
  545. package/v3/dist/learning/pattern-store.js.map +1 -1
  546. package/v3/dist/learning/real-embeddings.d.ts.map +1 -1
  547. package/v3/dist/learning/real-embeddings.js +7 -1
  548. package/v3/dist/learning/real-embeddings.js.map +1 -1
  549. package/v3/dist/learning/sqlite-persistence.d.ts +1 -1
  550. package/v3/dist/learning/sqlite-persistence.d.ts.map +1 -1
  551. package/v3/dist/learning/sqlite-persistence.js.map +1 -1
  552. package/v3/dist/logging/console-logger.d.ts +96 -0
  553. package/v3/dist/logging/console-logger.d.ts.map +1 -0
  554. package/v3/dist/logging/console-logger.js +247 -0
  555. package/v3/dist/logging/console-logger.js.map +1 -0
  556. package/v3/dist/logging/index.d.ts +42 -0
  557. package/v3/dist/logging/index.d.ts.map +1 -0
  558. package/v3/dist/logging/index.js +39 -0
  559. package/v3/dist/logging/index.js.map +1 -0
  560. package/v3/dist/logging/logger-factory.d.ts +145 -0
  561. package/v3/dist/logging/logger-factory.d.ts.map +1 -0
  562. package/v3/dist/logging/logger-factory.js +218 -0
  563. package/v3/dist/logging/logger-factory.js.map +1 -0
  564. package/v3/dist/logging/logger.d.ts +89 -0
  565. package/v3/dist/logging/logger.d.ts.map +1 -0
  566. package/v3/dist/logging/logger.js +74 -0
  567. package/v3/dist/logging/logger.js.map +1 -0
  568. package/v3/dist/mcp/bundle.js +63771 -53632
  569. package/v3/dist/mcp/handlers/agent-handlers.js +2 -2
  570. package/v3/dist/mcp/handlers/agent-handlers.js.map +1 -1
  571. package/v3/dist/mcp/handlers/core-handlers.d.ts +2 -0
  572. package/v3/dist/mcp/handlers/core-handlers.d.ts.map +1 -1
  573. package/v3/dist/mcp/handlers/core-handlers.js +33 -0
  574. package/v3/dist/mcp/handlers/core-handlers.js.map +1 -1
  575. package/v3/dist/mcp/handlers/cross-phase-handlers.d.ts +110 -0
  576. package/v3/dist/mcp/handlers/cross-phase-handlers.d.ts.map +1 -0
  577. package/v3/dist/mcp/handlers/cross-phase-handlers.js +216 -0
  578. package/v3/dist/mcp/handlers/cross-phase-handlers.js.map +1 -0
  579. package/v3/dist/mcp/handlers/domain-handler-configs.d.ts +151 -0
  580. package/v3/dist/mcp/handlers/domain-handler-configs.d.ts.map +1 -0
  581. package/v3/dist/mcp/handlers/domain-handler-configs.js +486 -0
  582. package/v3/dist/mcp/handlers/domain-handler-configs.js.map +1 -0
  583. package/v3/dist/mcp/handlers/domain-handlers.d.ts +174 -121
  584. package/v3/dist/mcp/handlers/domain-handlers.d.ts.map +1 -1
  585. package/v3/dist/mcp/handlers/domain-handlers.js +178 -1049
  586. package/v3/dist/mcp/handlers/domain-handlers.js.map +1 -1
  587. package/v3/dist/mcp/handlers/handler-factory.d.ts +182 -0
  588. package/v3/dist/mcp/handlers/handler-factory.d.ts.map +1 -0
  589. package/v3/dist/mcp/handlers/handler-factory.js +327 -0
  590. package/v3/dist/mcp/handlers/handler-factory.js.map +1 -0
  591. package/v3/dist/mcp/handlers/index.d.ts +2 -1
  592. package/v3/dist/mcp/handlers/index.d.ts.map +1 -1
  593. package/v3/dist/mcp/handlers/index.js +4 -2
  594. package/v3/dist/mcp/handlers/index.js.map +1 -1
  595. package/v3/dist/mcp/handlers/task-handlers.d.ts +1 -0
  596. package/v3/dist/mcp/handlers/task-handlers.d.ts.map +1 -1
  597. package/v3/dist/mcp/handlers/task-handlers.js +91 -7
  598. package/v3/dist/mcp/handlers/task-handlers.js.map +1 -1
  599. package/v3/dist/mcp/handlers/wrapped-domain-handlers.d.ts +30 -0
  600. package/v3/dist/mcp/handlers/wrapped-domain-handlers.d.ts.map +1 -0
  601. package/v3/dist/mcp/handlers/wrapped-domain-handlers.js +75 -0
  602. package/v3/dist/mcp/handlers/wrapped-domain-handlers.js.map +1 -0
  603. package/v3/dist/mcp/server.d.ts.map +1 -1
  604. package/v3/dist/mcp/server.js +107 -1
  605. package/v3/dist/mcp/server.js.map +1 -1
  606. package/v3/dist/mcp/tools/chaos-resilience/inject.js +1 -1
  607. package/v3/dist/mcp/tools/chaos-resilience/inject.js.map +1 -1
  608. package/v3/dist/mcp/tools/contract-testing/validate.js +1 -1
  609. package/v3/dist/mcp/tools/contract-testing/validate.js.map +1 -1
  610. package/v3/dist/mcp/tools/learning-optimization/optimize.js +1 -1
  611. package/v3/dist/mcp/tools/learning-optimization/optimize.js.map +1 -1
  612. package/v3/dist/mcp/tools/visual-accessibility/index.js +2 -2
  613. package/v3/dist/mcp/tools/visual-accessibility/index.js.map +1 -1
  614. package/v3/dist/mcp/types.d.ts +5 -3
  615. package/v3/dist/mcp/types.d.ts.map +1 -1
  616. package/v3/dist/memory/cross-phase-memory.d.ts +55 -0
  617. package/v3/dist/memory/cross-phase-memory.d.ts.map +1 -0
  618. package/v3/dist/memory/cross-phase-memory.js +265 -0
  619. package/v3/dist/memory/cross-phase-memory.js.map +1 -0
  620. package/v3/dist/memory/index.d.ts +9 -0
  621. package/v3/dist/memory/index.d.ts.map +1 -0
  622. package/v3/dist/memory/index.js +9 -0
  623. package/v3/dist/memory/index.js.map +1 -0
  624. package/v3/dist/routing/qe-agent-registry.d.ts +1 -1
  625. package/v3/dist/routing/qe-agent-registry.d.ts.map +1 -1
  626. package/v3/dist/routing/qe-agent-registry.js +20 -1
  627. package/v3/dist/routing/qe-agent-registry.js.map +1 -1
  628. package/v3/dist/shared/io/file-reader.d.ts.map +1 -1
  629. package/v3/dist/shared/io/file-reader.js +3 -2
  630. package/v3/dist/shared/io/file-reader.js.map +1 -1
  631. package/v3/dist/shared/utils/binary-insert.d.ts +85 -0
  632. package/v3/dist/shared/utils/binary-insert.d.ts.map +1 -0
  633. package/v3/dist/shared/utils/binary-insert.js +122 -0
  634. package/v3/dist/shared/utils/binary-insert.js.map +1 -0
  635. package/v3/dist/shared/utils/index.d.ts +1 -0
  636. package/v3/dist/shared/utils/index.d.ts.map +1 -1
  637. package/v3/dist/shared/utils/index.js +1 -0
  638. package/v3/dist/shared/utils/index.js.map +1 -1
  639. package/v3/dist/strange-loop/belief-reconciler.d.ts.map +1 -1
  640. package/v3/dist/strange-loop/belief-reconciler.js +3 -2
  641. package/v3/dist/strange-loop/belief-reconciler.js.map +1 -1
  642. package/v3/dist/sync/claude-flow-bridge.d.ts +63 -0
  643. package/v3/dist/sync/claude-flow-bridge.d.ts.map +1 -0
  644. package/v3/dist/sync/claude-flow-bridge.js +322 -0
  645. package/v3/dist/sync/claude-flow-bridge.js.map +1 -0
  646. package/v3/dist/sync/cloud/postgres-writer.d.ts.map +1 -1
  647. package/v3/dist/sync/cloud/postgres-writer.js +0 -1
  648. package/v3/dist/sync/cloud/postgres-writer.js.map +1 -1
  649. package/v3/dist/sync/readers/sqlite-reader.d.ts.map +1 -1
  650. package/v3/dist/sync/readers/sqlite-reader.js +3 -2
  651. package/v3/dist/sync/readers/sqlite-reader.js.map +1 -1
  652. package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.d.ts.map +1 -1
  653. package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.js +3 -2
  654. package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.js.map +1 -1
  655. package/v3/dist/test-scheduling/git-aware/test-selector.d.ts.map +1 -1
  656. package/v3/dist/test-scheduling/git-aware/test-selector.js +3 -2
  657. package/v3/dist/test-scheduling/git-aware/test-selector.js.map +1 -1
  658. package/v3/dist/types/cross-phase-signals.d.ts +119 -0
  659. package/v3/dist/types/cross-phase-signals.d.ts.map +1 -0
  660. package/v3/dist/types/cross-phase-signals.js +33 -0
  661. package/v3/dist/types/cross-phase-signals.js.map +1 -0
  662. package/v3/dist/types/index.d.ts +9 -0
  663. package/v3/dist/types/index.d.ts.map +1 -0
  664. package/v3/dist/types/index.js +9 -0
  665. package/v3/dist/types/index.js.map +1 -0
  666. package/v3/dist/workers/worker-manager.d.ts.map +1 -1
  667. package/v3/dist/workers/worker-manager.js +3 -2
  668. package/v3/dist/workers/worker-manager.js.map +1 -1
  669. package/v3/dist/workflows/browser/workflow-loader.d.ts +3 -3
  670. package/v3/dist/workflows/browser/workflow-loader.d.ts.map +1 -1
  671. package/v3/dist/workflows/browser/workflow-loader.js.map +1 -1
  672. package/v3/package.json +4 -1
@@ -1,10 +1,21 @@
1
1
  /**
2
2
  * Agentic QE v3 - Base Domain Interface
3
3
  * Template for all domain implementations
4
+ *
5
+ * Extended with optional integration support for:
6
+ * - MinCut topology awareness (ADR-047)
7
+ * - Multi-model consensus verification (MM-006)
4
8
  */
5
9
  import { ok, err } from '../shared/types';
6
10
  /**
7
11
  * Abstract base class for domain plugins
12
+ *
13
+ * Provides common functionality for all domain implementations including:
14
+ * - Lifecycle management (initialize/dispose)
15
+ * - Health tracking
16
+ * - Event handling
17
+ * - Task execution (Queen-Domain integration)
18
+ * - Optional MinCut and Consensus integration (ADR-047, MM-006)
8
19
  */
9
20
  export class BaseDomainPlugin {
10
21
  eventBus;
@@ -17,6 +28,19 @@ export class BaseDomainPlugin {
17
28
  agents: { total: 0, active: 0, idle: 0, failed: 0 },
18
29
  errors: [],
19
30
  };
31
+ // ============================================================================
32
+ // Optional Integration Support (ADR-047, MM-006)
33
+ // ============================================================================
34
+ /**
35
+ * MinCut bridge for topology awareness
36
+ * @internal Set via setMinCutBridge() or setIntegrationConfig()
37
+ */
38
+ _minCutBridge;
39
+ /**
40
+ * Consensus configuration for multi-model verification
41
+ * @internal Set via setConsensusConfig() or setIntegrationConfig()
42
+ */
43
+ _consensusConfig;
20
44
  constructor(eventBus, memory) {
21
45
  this.eventBus = eventBus;
22
46
  this.memory = memory;
@@ -61,6 +85,122 @@ export class BaseDomainPlugin {
61
85
  this._health = { ...this._health, ...updates };
62
86
  }
63
87
  // ============================================================================
88
+ // Integration Configuration (ADR-047, MM-006)
89
+ // ============================================================================
90
+ /**
91
+ * Set MinCut bridge for topology awareness after construction
92
+ * Alternative to constructor injection for domains that need late binding
93
+ *
94
+ * @param bridge - The QueenMinCutBridge instance to use
95
+ *
96
+ * @example
97
+ * ```typescript
98
+ * const plugin = new MyDomainPlugin(eventBus, memory, coordinator);
99
+ * await plugin.initialize();
100
+ *
101
+ * // Later, when MinCut bridge is available:
102
+ * plugin.setMinCutBridge(minCutBridge);
103
+ * ```
104
+ */
105
+ setMinCutBridge(bridge) {
106
+ this._minCutBridge = bridge;
107
+ this.onMinCutBridgeSet(bridge);
108
+ }
109
+ /**
110
+ * Get the current MinCut bridge (if set)
111
+ * @returns The MinCut bridge or undefined if not configured
112
+ */
113
+ getMinCutBridge() {
114
+ return this._minCutBridge;
115
+ }
116
+ /**
117
+ * Set consensus configuration for multi-model verification after construction
118
+ * Alternative to constructor injection for domains that need late binding
119
+ *
120
+ * @param config - The consensus configuration to use
121
+ *
122
+ * @example
123
+ * ```typescript
124
+ * const plugin = new SecurityCompliancePlugin(eventBus, memory, coordinator);
125
+ * plugin.setConsensusConfig({
126
+ * enabled: true,
127
+ * verifySeverities: ['critical', 'high'],
128
+ * autoApprovalThreshold: 0.9,
129
+ * });
130
+ * ```
131
+ */
132
+ setConsensusConfig(config) {
133
+ this._consensusConfig = config;
134
+ this.onConsensusConfigSet(config);
135
+ }
136
+ /**
137
+ * Get the current consensus configuration (if set)
138
+ * @returns The consensus configuration or undefined if not configured
139
+ */
140
+ getConsensusConfig() {
141
+ return this._consensusConfig;
142
+ }
143
+ /**
144
+ * Set both MinCut and Consensus configuration at once
145
+ * Convenience method for full integration setup
146
+ *
147
+ * @param config - Integration configuration containing optional MinCut and Consensus settings
148
+ *
149
+ * @example
150
+ * ```typescript
151
+ * plugin.setIntegrationConfig({
152
+ * minCutBridge: queenMinCutBridge,
153
+ * consensusConfig: {
154
+ * enabled: true,
155
+ * verifySeverities: ['critical', 'high'],
156
+ * },
157
+ * });
158
+ * ```
159
+ */
160
+ setIntegrationConfig(config) {
161
+ if (config.minCutBridge) {
162
+ this.setMinCutBridge(config.minCutBridge);
163
+ }
164
+ if (config.consensusConfig) {
165
+ this.setConsensusConfig(config.consensusConfig);
166
+ }
167
+ }
168
+ /**
169
+ * Check if MinCut integration is configured and active
170
+ * @returns true if MinCut bridge is set
171
+ */
172
+ hasMinCutIntegration() {
173
+ return this._minCutBridge !== undefined;
174
+ }
175
+ /**
176
+ * Check if consensus verification is enabled
177
+ * @returns true if consensus is configured and enabled
178
+ */
179
+ hasConsensusEnabled() {
180
+ return this._consensusConfig?.enabled === true;
181
+ }
182
+ // ============================================================================
183
+ // Integration Hooks (Override in subclasses for custom behavior)
184
+ // ============================================================================
185
+ /**
186
+ * Called when MinCut bridge is set
187
+ * Override in subclasses to perform domain-specific setup
188
+ *
189
+ * @param _bridge - The MinCut bridge that was set
190
+ */
191
+ onMinCutBridgeSet(_bridge) {
192
+ // Default: no-op - subclasses can override to register with the bridge
193
+ }
194
+ /**
195
+ * Called when consensus configuration is set
196
+ * Override in subclasses to perform domain-specific setup
197
+ *
198
+ * @param _config - The consensus configuration that was set
199
+ */
200
+ onConsensusConfigSet(_config) {
201
+ // Default: no-op - subclasses can override to configure consensus verification
202
+ }
203
+ // ============================================================================
64
204
  // Task Execution (Queen-Domain Integration)
65
205
  // ============================================================================
66
206
  /**
@@ -126,15 +266,30 @@ export class BaseDomainPlugin {
126
266
  };
127
267
  // Report completion via callback
128
268
  await onComplete(taskResult);
129
- // Update health tracking
130
- this.updateHealth({
131
- lastActivity: new Date(),
132
- agents: {
133
- ...this._health.agents,
134
- active: Math.max(0, this._health.agents.active - 1),
135
- idle: this._health.agents.idle + 1,
136
- },
137
- });
269
+ // Update health tracking based on result
270
+ if (result.success) {
271
+ this.updateHealth({
272
+ lastActivity: new Date(),
273
+ agents: {
274
+ ...this._health.agents,
275
+ active: Math.max(0, this._health.agents.active - 1),
276
+ idle: this._health.agents.idle + 1,
277
+ },
278
+ });
279
+ }
280
+ else {
281
+ // Handler returned an error result - track it
282
+ const errorMessage = result.error?.message ?? 'Unknown error';
283
+ this.updateHealth({
284
+ lastActivity: new Date(),
285
+ errors: [...this._health.errors.slice(-9), errorMessage],
286
+ agents: {
287
+ ...this._health.agents,
288
+ active: Math.max(0, this._health.agents.active - 1),
289
+ failed: this._health.agents.failed + 1,
290
+ },
291
+ });
292
+ }
138
293
  }
139
294
  catch (error) {
140
295
  // Handler threw an exception
@@ -1 +1 @@
1
- {"version":3,"file":"domain-interface.js","sourceRoot":"","sources":["../../src/domains/domain-interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAmC,EAAE,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAmB3E;;GAEG;AACH,MAAM,OAAgB,gBAAgB;IAWf;IACA;IAXX,YAAY,GAAG,KAAK,CAAC;IAC/B,yEAAyE;IACzE,+DAA+D;IACrD,OAAO,GAAiB;QAChC,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;QACnD,MAAM,EAAE,EAAE;KACX,CAAC;IAEF,YACqB,QAAkB,EAClB,MAAqB;QADrB,aAAQ,GAAR,QAAQ,CAAU;QAClB,WAAM,GAAN,MAAM,CAAe;IACvC,CAAC;IAMJ,OAAO;QACL,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,SAAS;QACP,OAAO,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,UAAU;QACd,IAAI,IAAI,CAAC,YAAY;YAAE,OAAO;QAE9B,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAC1B,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QACvB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,W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MAAM,GAAG,CAAC;iBACvC;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF"}
@@ -8,6 +8,7 @@ import { ILearningOptimizationCoordinator, LearningCycleReport, OptimizationRepo
8
8
  import { type QESONAPattern, type QEPatternType, type QESONAStats, type QESONAAdaptationResult } from '../../integrations/ruvector/wrappers.js';
9
9
  import type { RLState, RLAction } from '../../integrations/rl-suite/interfaces.js';
10
10
  import { type DreamSchedulerStatus, type EngineResult as DreamCycleResult } from '../../learning/dream/index.js';
11
+ import type { QueenMinCutBridge } from '../../coordination/mincut/queen-integration.js';
11
12
  /**
12
13
  * Workflow status tracking
13
14
  */
@@ -44,6 +45,13 @@ export interface LearningCoordinatorConfig {
44
45
  autoApplyHighConfidenceInsights: boolean;
45
46
  /** Minimum confidence threshold for auto-applying insights (0-1) */
46
47
  autoApplyConfidenceThreshold: number;
48
+ enableMinCutAwareness: boolean;
49
+ topologyHealthThreshold: number;
50
+ pauseOnCriticalTopology: boolean;
51
+ enableConsensus: boolean;
52
+ consensusThreshold: number;
53
+ consensusStrategy: 'majority' | 'weighted' | 'unanimous';
54
+ consensusMinModels: number;
47
55
  }
48
56
  /**
49
57
  * Learning & Optimization Coordinator
@@ -71,6 +79,9 @@ export declare class LearningOptimizationCoordinator implements ILearningOptimiz
71
79
  * Wraps DreamEngine with automatic scheduling and trigger support
72
80
  */
73
81
  private dreamScheduler;
82
+ private readonly minCutMixin;
83
+ private readonly consensusMixin;
84
+ private readonly domainName;
74
85
  constructor(eventBus: EventBus, memory: MemoryBackend, agentCoordinator: AgentCoordinator, config?: Partial<LearningCoordinatorConfig>);
75
86
  /**
76
87
  * Initialize the coordinator.
@@ -316,5 +327,82 @@ export declare class LearningOptimizationCoordinator implements ILearningOptimiz
316
327
  private findSimilarPatterns;
317
328
  private contextsOverlap;
318
329
  private calculateChecksum;
330
+ /**
331
+ * Set the MinCut bridge for topology awareness
332
+ */
333
+ setMinCutBridge(bridge: QueenMinCutBridge): void;
334
+ /**
335
+ * Check if topology is healthy
336
+ */
337
+ isTopologyHealthy(): boolean;
338
+ /**
339
+ * Get topology-based routing excluding weak domains
340
+ * Per ADR-047: Filters out domains that are currently weak points
341
+ *
342
+ * @param targetDomains - List of potential target domains
343
+ * @returns Filtered list of healthy domains for routing
344
+ */
345
+ getTopologyBasedRouting(targetDomains: DomainName[]): DomainName[];
346
+ /**
347
+ * Get weak vertices belonging to this domain
348
+ * Per ADR-047: Identifies agents that are single points of failure
349
+ */
350
+ getDomainWeakVertices(): import("../../index.js").WeakVertex[];
351
+ /**
352
+ * Check if this domain is a weak point in the topology
353
+ * Per ADR-047: Returns true if any weak vertex belongs to learning-optimization domain
354
+ */
355
+ isDomainWeakPoint(): boolean;
356
+ /**
357
+ * Check if consensus engine is available
358
+ */
359
+ isConsensusAvailable(): boolean;
360
+ /**
361
+ * Get consensus statistics
362
+ * Per MM-001: Returns metrics about consensus verification
363
+ */
364
+ getConsensusStats(): import("../../index.js").ConsensusStats | undefined;
365
+ /**
366
+ * Verify a pattern recommendation using multi-model consensus
367
+ * Per MM-001: High-stakes pattern recommendations require verification
368
+ *
369
+ * @param pattern - The pattern being recommended
370
+ * @param confidence - Initial confidence in the recommendation
371
+ * @returns true if the recommendation is verified or doesn't require consensus
372
+ */
373
+ verifyPatternRecommendation(pattern: {
374
+ id: string;
375
+ name: string;
376
+ type: string;
377
+ domain: DomainName;
378
+ }, confidence: number): Promise<boolean>;
379
+ /**
380
+ * Verify an optimization suggestion using multi-model consensus
381
+ * Per MM-001: Optimization suggestions can have significant impact
382
+ *
383
+ * @param suggestion - The optimization suggestion to verify
384
+ * @param confidence - Initial confidence in the suggestion
385
+ * @returns true if the suggestion is verified or doesn't require consensus
386
+ */
387
+ verifyOptimizationSuggestion(suggestion: {
388
+ metric: string;
389
+ currentValue: number;
390
+ targetValue: number;
391
+ strategy: string;
392
+ }, confidence: number): Promise<boolean>;
393
+ /**
394
+ * Verify a cross-domain insight using multi-model consensus
395
+ * Per MM-001: Cross-domain insights require verification before propagation
396
+ *
397
+ * @param insight - The cross-domain insight to verify
398
+ * @param confidence - Initial confidence in the insight
399
+ * @returns true if the insight is verified or doesn't require consensus
400
+ */
401
+ verifyCrossDomainInsight(insight: {
402
+ sourceDomain: DomainName;
403
+ targetDomains: DomainName[];
404
+ description: string;
405
+ impact: string;
406
+ }, confidence: number): Promise<boolean>;
319
407
  }
320
408
  //# sourceMappingURL=coordinator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../../src/domains/learning-optimization/coordinator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,MAAM,EAGN,UAAU,EAEX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,QAAQ,EACR,aAAa,EACb,gBAAgB,EAEjB,MAAM,4BAA4B,CAAC;AASpC,OAAO,EACL,gCAAgC,EAChC,mBAAmB,EACnB,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,WAAW,EACX,YAAY,EASb,MAAM,iBAAiB,CAAC;AAWzB,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC5B,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEnF,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,YAAY,IAAI,gBAAgB,EACtC,MAAM,+BAA+B,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,GAAG,cAAc,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC3E,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IACvD,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,QAAQ,EA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AAC,YAAY,CAAC,CAAC;IA0K3E,OAAO,CAAC,iBAAiB;YA0BX,sBAAsB;YA4BtB,iBAAiB;YA2BjB,iBAAiB;IA0B/B;;;OAGG;YACW,wBAAwB;YA6GxB,0BAA0B;YAmB1B,wBAAwB;YAmBxB,0BAA0B;IAexC;;;;;;;;;;;OAWG;IACG,0BAA0B,CAC9B,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,KAAK,CAAC;QACd,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC;QACxB,UAAU,EAAE,OAAO,CAAC;QACpB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,cAAc,EAAE,MAAM,EAAE,CAAC;KAC1B,CAAC,EACF,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC;YA8BF,kBAAkB;IA0BhC,OAAO,CAAC,aAAa;IAqBrB,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,sBAAsB;YAWhB,iBAAiB;YAiBjB,iBAAiB;YAajB,uBAAuB;YAyBvB,kBAAkB;YA8BlB,aAAa;IAU3B,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,iBAAiB;IAoBzB,OAAO,CAAC,mBAAmB;IA+B3B,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,iBAAiB;CAwB1B"}
1
+ {"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../../src/domains/learning-optimization/coordinator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,MAAM,EAGN,UAAU,EAEX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,QAAQ,EACR,aAAa,EACb,gBAAgB,EAEj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;IACH,oBAAoB,IAAI,OAAO;IAI/B;;;OAGG;IACH,iBAAiB;IAIjB;;;;;;;OAOG;IACG,2BAA2B,CAC/B,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,UAAU,CAAA;KAAE,EACvE,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,OAAO,CAAC;IAuBnB;;;;;;;OAOG;IACG,4BAA4B,CAChC,UAAU,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAC3F,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,OAAO,CAAC;IAuBnB;;;;;;;OAOG;IACG,wBAAwB,CAC5B,OAAO,EAAE;QAAE,YAAY,EAAE,UAAU,CAAC;QAAC,aAAa,EAAE,UAAU,EAAE,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EACvG,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,OAAO,CAAC;CAsBpB"}
@@ -9,6 +9,12 @@ import { LearningOptimizationEvents, createEvent, } from '../../shared/events/do
9
9
  import { LearningCoordinatorService, TransferSpecialistService, MetricsOptimizerService, ProductionIntelService, } from './services/index.js';
10
10
  import { createPersistentSONAEngine, } from '../../integrations/ruvector/sona-persistence.js';
11
11
  import { createDreamScheduler, createDreamEngine, } from '../../learning/dream/index.js';
12
+ // ============================================================================
13
+ // MinCut & Consensus Mixin Imports (ADR-047, MM-001)
14
+ // ============================================================================
15
+ import { createMinCutAwareMixin, } from '../../coordination/mixins/mincut-aware-domain.js';
16
+ import { createConsensusEnabledMixin, } from '../../coordination/mixins/consensus-enabled-domain.js';
17
+ import { createDomainFinding, } from '../../coordination/consensus/domain-findings.js';
12
18
  const DEFAULT_CONFIG = {
13
19
  maxConcurrentWorkflows: 3,
14
20
  defaultTimeout: 120000, // 2 minutes
@@ -23,6 +29,15 @@ const DEFAULT_CONFIG = {
23
29
  enableQualityGateFailureTrigger: true,
24
30
  autoApplyHighConfidenceInsights: false,
25
31
  autoApplyConfidenceThreshold: 0.8,
32
+ // MinCut integration defaults (ADR-047)
33
+ enableMinCutAwareness: true,
34
+ topologyHealthThreshold: 0.5,
35
+ pauseOnCriticalTopology: false,
36
+ // Consensus integration defaults (MM-001)
37
+ enableConsensus: true,
38
+ consensusThreshold: 0.7,
39
+ consensusStrategy: 'weighted',
40
+ consensusMinModels: 2,
26
41
  };
27
42
  /**
28
43
  * Learning & Optimization Coordinator
@@ -50,12 +65,35 @@ export class LearningOptimizationCoordinator {
50
65
  * Wraps DreamEngine with automatic scheduling and trigger support
51
66
  */
52
67
  dreamScheduler = null;
68
+ // MinCut topology awareness mixin (ADR-047)
69
+ minCutMixin;
70
+ // Consensus verification mixin (MM-001)
71
+ consensusMixin;
72
+ // Domain identifier for mixin initialization
73
+ domainName = 'learning-optimization';
53
74
  constructor(eventBus, memory, agentCoordinator, config = {}) {
54
75
  this.eventBus = eventBus;
55
76
  this.memory = memory;
56
77
  this.agentCoordinator = agentCoordinator;
57
78
  this.config = { ...DEFAULT_CONFIG, ...config };
58
- this.learningService = new LearningCoordinatorService(memory);
79
+ // Initialize MinCut-aware mixin (ADR-047)
80
+ this.minCutMixin = createMinCutAwareMixin(this.domainName, {
81
+ enableMinCutAwareness: this.config.enableMinCutAwareness,
82
+ topologyHealthThreshold: this.config.topologyHealthThreshold,
83
+ pauseOnCriticalTopology: this.config.pauseOnCriticalTopology,
84
+ });
85
+ // Initialize Consensus-enabled mixin (MM-001)
86
+ this.consensusMixin = createConsensusEnabledMixin({
87
+ enableConsensus: this.config.enableConsensus,
88
+ consensusThreshold: this.config.consensusThreshold,
89
+ verifyFindingTypes: ['pattern-recommendation', 'optimization-suggestion', 'cross-domain-insight'],
90
+ strategy: this.config.consensusStrategy,
91
+ minModels: this.config.consensusMinModels,
92
+ modelTimeout: 60000,
93
+ verifySeverities: ['critical', 'high'],
94
+ enableLogging: false,
95
+ });
96
+ this.learningService = new LearningCoordinatorService({ memory });
59
97
  this.transferService = new TransferSpecialistService(memory);
60
98
  this.optimizerService = new MetricsOptimizerService(memory);
61
99
  this.productionIntel = new ProductionIntelService(memory);
@@ -112,12 +150,32 @@ export class LearningOptimizationCoordinator {
112
150
  this.subscribeToEvents();
113
151
  // Load any persisted workflow state
114
152
  await this.loadWorkflowState();
153
+ // Initialize Consensus engine if enabled (MM-001)
154
+ if (this.config.enableConsensus) {
155
+ try {
156
+ await this.consensusMixin.initializeConsensus();
157
+ console.log(`[${this.domainName}] Consensus engine initialized`);
158
+ }
159
+ catch (error) {
160
+ console.error(`[${this.domainName}] Failed to initialize consensus engine:`, error);
161
+ console.warn(`[${this.domainName}] Continuing without consensus verification`);
162
+ }
163
+ }
115
164
  this.initialized = true;
116
165
  }
117
166
  /**
118
167
  * Dispose and cleanup
119
168
  */
120
169
  async dispose() {
170
+ // Dispose Consensus engine (MM-001)
171
+ try {
172
+ await this.consensusMixin.disposeConsensus();
173
+ }
174
+ catch (error) {
175
+ console.error(`[${this.domainName}] Error disposing consensus engine:`, error);
176
+ }
177
+ // Dispose MinCut mixin (ADR-047)
178
+ this.minCutMixin.dispose();
121
179
  // Save workflow state
122
180
  await this.saveWorkflowState();
123
181
  // Clear active workflows
@@ -160,6 +218,15 @@ export class LearningOptimizationCoordinator {
160
218
  const workflowId = uuidv4();
161
219
  try {
162
220
  this.startWorkflow(workflowId, 'learning-cycle');
221
+ // ADR-047: Check topology health before expensive operations
222
+ if (this.config.enableMinCutAwareness && !this.isTopologyHealthy()) {
223
+ console.warn(`[${this.domainName}] Topology degraded, using conservative strategy for learning cycle`);
224
+ // Continue with reduced scope when topology is unhealthy
225
+ }
226
+ // ADR-047: Check if operations should be paused due to critical topology
227
+ if (this.minCutMixin.shouldPauseOperations()) {
228
+ return err(new Error('Learning cycle paused: topology is in critical state'));
229
+ }
163
230
  // Spawn learning agent
164
231
  const agentResult = await this.spawnLearningAgent(workflowId, domain);
165
232
  if (!agentResult.success) {
@@ -242,6 +309,14 @@ export class LearningOptimizationCoordinator {
242
309
  const workflowId = uuidv4();
243
310
  try {
244
311
  this.startWorkflow(workflowId, 'optimization');
312
+ // ADR-047: Check topology health before expensive operations
313
+ if (this.config.enableMinCutAwareness && !this.isTopologyHealthy()) {
314
+ console.warn(`[${this.domainName}] Topology degraded, using conservative optimization strategy`);
315
+ }
316
+ // ADR-047: Check if operations should be paused due to critical topology
317
+ if (this.minCutMixin.shouldPauseOperations()) {
318
+ return err(new Error('Optimization paused: topology is in critical state'));
319
+ }
245
320
  const byDomain = {};
246
321
  let totalStrategies = 0;
247
322
  let totalImprovement = 0;
@@ -301,6 +376,14 @@ export class LearningOptimizationCoordinator {
301
376
  const workflowId = uuidv4();
302
377
  try {
303
378
  this.startWorkflow(workflowId, 'transfer');
379
+ // ADR-047: Check topology health before cross-domain operations
380
+ if (this.config.enableMinCutAwareness && !this.isTopologyHealthy()) {
381
+ console.warn(`[${this.domainName}] Topology degraded, limiting cross-domain transfer scope`);
382
+ }
383
+ // ADR-047: Check if operations should be paused due to critical topology
384
+ if (this.minCutMixin.shouldPauseOperations()) {
385
+ return err(new Error('Cross-domain sharing paused: topology is in critical state'));
386
+ }
304
387
  let knowledgeShared = 0;
305
388
  const domainsUpdated = [];
306
389
  let newPatternsCreated = 0;
@@ -1280,5 +1363,148 @@ export class LearningOptimizationCoordinator {
1280
1363
  }
1281
1364
  return Math.abs(hash).toString(16);
1282
1365
  }
1366
+ // ============================================================================
1367
+ // MinCut Integration Methods (ADR-047)
1368
+ // ============================================================================
1369
+ /**
1370
+ * Set the MinCut bridge for topology awareness
1371
+ */
1372
+ setMinCutBridge(bridge) {
1373
+ this.minCutMixin.setMinCutBridge(bridge);
1374
+ console.log(`[${this.domainName}] MinCut bridge connected for topology awareness`);
1375
+ }
1376
+ /**
1377
+ * Check if topology is healthy
1378
+ */
1379
+ isTopologyHealthy() {
1380
+ return this.minCutMixin.isTopologyHealthy();
1381
+ }
1382
+ /**
1383
+ * Get topology-based routing excluding weak domains
1384
+ * Per ADR-047: Filters out domains that are currently weak points
1385
+ *
1386
+ * @param targetDomains - List of potential target domains
1387
+ * @returns Filtered list of healthy domains for routing
1388
+ */
1389
+ getTopologyBasedRouting(targetDomains) {
1390
+ return this.minCutMixin.getTopologyBasedRouting(targetDomains);
1391
+ }
1392
+ /**
1393
+ * Get weak vertices belonging to this domain
1394
+ * Per ADR-047: Identifies agents that are single points of failure
1395
+ */
1396
+ getDomainWeakVertices() {
1397
+ return this.minCutMixin.getDomainWeakVertices();
1398
+ }
1399
+ /**
1400
+ * Check if this domain is a weak point in the topology
1401
+ * Per ADR-047: Returns true if any weak vertex belongs to learning-optimization domain
1402
+ */
1403
+ isDomainWeakPoint() {
1404
+ return this.minCutMixin.isDomainWeakPoint();
1405
+ }
1406
+ // ============================================================================
1407
+ // Consensus Integration Methods (MM-001)
1408
+ // ============================================================================
1409
+ /**
1410
+ * Check if consensus engine is available
1411
+ */
1412
+ isConsensusAvailable() {
1413
+ return this.consensusMixin.isConsensusAvailable?.() ?? false;
1414
+ }
1415
+ /**
1416
+ * Get consensus statistics
1417
+ * Per MM-001: Returns metrics about consensus verification
1418
+ */
1419
+ getConsensusStats() {
1420
+ return this.consensusMixin.getConsensusStats();
1421
+ }
1422
+ /**
1423
+ * Verify a pattern recommendation using multi-model consensus
1424
+ * Per MM-001: High-stakes pattern recommendations require verification
1425
+ *
1426
+ * @param pattern - The pattern being recommended
1427
+ * @param confidence - Initial confidence in the recommendation
1428
+ * @returns true if the recommendation is verified or doesn't require consensus
1429
+ */
1430
+ async verifyPatternRecommendation(pattern, confidence) {
1431
+ const finding = createDomainFinding({
1432
+ id: uuidv4(),
1433
+ type: 'pattern-recommendation',
1434
+ confidence,
1435
+ description: `Verify pattern recommendation: ${pattern.name} (${pattern.type}) for domain ${pattern.domain}`,
1436
+ payload: pattern,
1437
+ detectedBy: 'learning-optimization-coordinator',
1438
+ severity: confidence > 0.9 ? 'high' : 'medium',
1439
+ });
1440
+ if (this.consensusMixin.requiresConsensus(finding)) {
1441
+ const result = await this.consensusMixin.verifyFinding(finding);
1442
+ if (result.success && result.value.verdict === 'verified') {
1443
+ console.log(`[${this.domainName}] Pattern recommendation '${pattern.name}' verified by consensus`);
1444
+ return true;
1445
+ }
1446
+ console.warn(`[${this.domainName}] Pattern recommendation '${pattern.name}' NOT verified: ${result.success ? result.value.verdict : result.error.message}`);
1447
+ return false;
1448
+ }
1449
+ return true; // No consensus needed
1450
+ }
1451
+ /**
1452
+ * Verify an optimization suggestion using multi-model consensus
1453
+ * Per MM-001: Optimization suggestions can have significant impact
1454
+ *
1455
+ * @param suggestion - The optimization suggestion to verify
1456
+ * @param confidence - Initial confidence in the suggestion
1457
+ * @returns true if the suggestion is verified or doesn't require consensus
1458
+ */
1459
+ async verifyOptimizationSuggestion(suggestion, confidence) {
1460
+ const finding = createDomainFinding({
1461
+ id: uuidv4(),
1462
+ type: 'optimization-suggestion',
1463
+ confidence,
1464
+ description: `Verify optimization: ${suggestion.metric} from ${suggestion.currentValue} to ${suggestion.targetValue} via ${suggestion.strategy}`,
1465
+ payload: suggestion,
1466
+ detectedBy: 'learning-optimization-coordinator',
1467
+ severity: confidence > 0.85 ? 'high' : 'medium',
1468
+ });
1469
+ if (this.consensusMixin.requiresConsensus(finding)) {
1470
+ const result = await this.consensusMixin.verifyFinding(finding);
1471
+ if (result.success && result.value.verdict === 'verified') {
1472
+ console.log(`[${this.domainName}] Optimization suggestion for '${suggestion.metric}' verified by consensus`);
1473
+ return true;
1474
+ }
1475
+ console.warn(`[${this.domainName}] Optimization suggestion for '${suggestion.metric}' NOT verified`);
1476
+ return false;
1477
+ }
1478
+ return true; // No consensus needed
1479
+ }
1480
+ /**
1481
+ * Verify a cross-domain insight using multi-model consensus
1482
+ * Per MM-001: Cross-domain insights require verification before propagation
1483
+ *
1484
+ * @param insight - The cross-domain insight to verify
1485
+ * @param confidence - Initial confidence in the insight
1486
+ * @returns true if the insight is verified or doesn't require consensus
1487
+ */
1488
+ async verifyCrossDomainInsight(insight, confidence) {
1489
+ const finding = createDomainFinding({
1490
+ id: uuidv4(),
1491
+ type: 'cross-domain-insight',
1492
+ confidence,
1493
+ description: `Verify cross-domain insight: ${insight.description}`,
1494
+ payload: insight,
1495
+ detectedBy: 'learning-optimization-coordinator',
1496
+ severity: 'high', // Cross-domain insights always have high impact
1497
+ });
1498
+ if (this.consensusMixin.requiresConsensus(finding)) {
1499
+ const result = await this.consensusMixin.verifyFinding(finding);
1500
+ if (result.success && result.value.verdict === 'verified') {
1501
+ console.log(`[${this.domainName}] Cross-domain insight verified by consensus for ${insight.targetDomains.length} target domains`);
1502
+ return true;
1503
+ }
1504
+ console.warn(`[${this.domainName}] Cross-domain insight NOT verified: ${result.success ? result.value.verdict : result.error.message}`);
1505
+ return false;
1506
+ }
1507
+ return true; // No consensus needed
1508
+ }
1283
1509
  }
1284
1510
  //# sourceMappingURL=coordinator.js.map