agentic-qe 3.2.2 → 3.3.0

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 (381) hide show
  1. package/.claude/agents/v3/qe-accessibility-auditor.md +90 -0
  2. package/.claude/helpers/github-safe.js +10 -10
  3. package/README.md +43 -5
  4. package/package.json +4 -2
  5. package/scripts/cloud-db-config.json +37 -0
  6. package/scripts/cloud-db-connect.sh +37 -0
  7. package/scripts/cloud-db-tunnel.sh +23 -0
  8. package/v3/CHANGELOG.md +165 -0
  9. package/v3/README.md +59 -1
  10. package/v3/assets/agents/v3/qe-accessibility-auditor.md +90 -0
  11. package/v3/dist/adapters/claude-flow/index.d.ts +54 -0
  12. package/v3/dist/adapters/claude-flow/index.d.ts.map +1 -0
  13. package/v3/dist/adapters/claude-flow/index.js +79 -0
  14. package/v3/dist/adapters/claude-flow/index.js.map +1 -0
  15. package/v3/dist/adapters/claude-flow/model-router-bridge.d.ts +70 -0
  16. package/v3/dist/adapters/claude-flow/model-router-bridge.d.ts.map +1 -0
  17. package/v3/dist/adapters/claude-flow/model-router-bridge.js +203 -0
  18. package/v3/dist/adapters/claude-flow/model-router-bridge.js.map +1 -0
  19. package/v3/dist/adapters/claude-flow/pretrain-bridge.d.ts +73 -0
  20. package/v3/dist/adapters/claude-flow/pretrain-bridge.d.ts.map +1 -0
  21. package/v3/dist/adapters/claude-flow/pretrain-bridge.js +276 -0
  22. package/v3/dist/adapters/claude-flow/pretrain-bridge.js.map +1 -0
  23. package/v3/dist/adapters/claude-flow/trajectory-bridge.d.ts +70 -0
  24. package/v3/dist/adapters/claude-flow/trajectory-bridge.d.ts.map +1 -0
  25. package/v3/dist/adapters/claude-flow/trajectory-bridge.js +205 -0
  26. package/v3/dist/adapters/claude-flow/trajectory-bridge.js.map +1 -0
  27. package/v3/dist/adapters/claude-flow/types.d.ts +99 -0
  28. package/v3/dist/adapters/claude-flow/types.d.ts.map +1 -0
  29. package/v3/dist/adapters/claude-flow/types.js +6 -0
  30. package/v3/dist/adapters/claude-flow/types.js.map +1 -0
  31. package/v3/dist/causal-discovery/causal-graph.d.ts +80 -1
  32. package/v3/dist/causal-discovery/causal-graph.d.ts.map +1 -1
  33. package/v3/dist/causal-discovery/causal-graph.js +111 -1
  34. package/v3/dist/causal-discovery/causal-graph.js.map +1 -1
  35. package/v3/dist/cli/bundle.js +12486 -5503
  36. package/v3/dist/cli/commands/claude-flow-setup.d.ts +82 -0
  37. package/v3/dist/cli/commands/claude-flow-setup.d.ts.map +1 -0
  38. package/v3/dist/cli/commands/claude-flow-setup.js +334 -0
  39. package/v3/dist/cli/commands/claude-flow-setup.js.map +1 -0
  40. package/v3/dist/cli/commands/hooks.d.ts +2 -0
  41. package/v3/dist/cli/commands/hooks.d.ts.map +1 -1
  42. package/v3/dist/cli/commands/hooks.js +13 -2
  43. package/v3/dist/cli/commands/hooks.js.map +1 -1
  44. package/v3/dist/cli/commands/init.d.ts +19 -0
  45. package/v3/dist/cli/commands/init.d.ts.map +1 -0
  46. package/v3/dist/cli/commands/init.js +345 -0
  47. package/v3/dist/cli/commands/init.js.map +1 -0
  48. package/v3/dist/cli/index.js +110 -2
  49. package/v3/dist/cli/index.js.map +1 -1
  50. package/v3/dist/coordination/cross-domain-router.d.ts.map +1 -1
  51. package/v3/dist/coordination/cross-domain-router.js +2 -0
  52. package/v3/dist/coordination/cross-domain-router.js.map +1 -1
  53. package/v3/dist/coordination/mincut/interfaces.d.ts +8 -2
  54. package/v3/dist/coordination/mincut/interfaces.d.ts.map +1 -1
  55. package/v3/dist/coordination/mincut/interfaces.js.map +1 -1
  56. package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts +5 -0
  57. package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts.map +1 -1
  58. package/v3/dist/coordination/mincut/mincut-health-monitor.js +22 -4
  59. package/v3/dist/coordination/mincut/mincut-health-monitor.js.map +1 -1
  60. package/v3/dist/coordination/mincut/queen-integration.d.ts +4 -0
  61. package/v3/dist/coordination/mincut/queen-integration.d.ts.map +1 -1
  62. package/v3/dist/coordination/mincut/queen-integration.js +14 -1
  63. package/v3/dist/coordination/mincut/queen-integration.js.map +1 -1
  64. package/v3/dist/coordination/queen-coordinator.d.ts +5 -0
  65. package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
  66. package/v3/dist/coordination/queen-coordinator.js +45 -7
  67. package/v3/dist/coordination/queen-coordinator.js.map +1 -1
  68. package/v3/dist/domains/learning-optimization/coordinator.d.ts +5 -0
  69. package/v3/dist/domains/learning-optimization/coordinator.d.ts.map +1 -1
  70. package/v3/dist/domains/learning-optimization/coordinator.js +79 -0
  71. package/v3/dist/domains/learning-optimization/coordinator.js.map +1 -1
  72. package/v3/dist/domains/security-compliance/services/semgrep-integration.d.ts.map +1 -1
  73. package/v3/dist/domains/security-compliance/services/semgrep-integration.js +16 -12
  74. package/v3/dist/domains/security-compliance/services/semgrep-integration.js.map +1 -1
  75. package/v3/dist/domains/test-execution/services/e2e-runner.d.ts +1 -0
  76. package/v3/dist/domains/test-execution/services/e2e-runner.d.ts.map +1 -1
  77. package/v3/dist/domains/test-execution/services/e2e-runner.js +9 -12
  78. package/v3/dist/domains/test-execution/services/e2e-runner.js.map +1 -1
  79. package/v3/dist/domains/test-generation/coherence-gate.d.ts +245 -0
  80. package/v3/dist/domains/test-generation/coherence-gate.d.ts.map +1 -0
  81. package/v3/dist/domains/test-generation/coherence-gate.js +454 -0
  82. package/v3/dist/domains/test-generation/coherence-gate.js.map +1 -0
  83. package/v3/dist/domains/test-generation/coordinator.d.ts +32 -1
  84. package/v3/dist/domains/test-generation/coordinator.d.ts.map +1 -1
  85. package/v3/dist/domains/test-generation/coordinator.js +70 -1
  86. package/v3/dist/domains/test-generation/coordinator.js.map +1 -1
  87. package/v3/dist/domains/test-generation/index.d.ts +1 -0
  88. package/v3/dist/domains/test-generation/index.d.ts.map +1 -1
  89. package/v3/dist/domains/test-generation/index.js +4 -0
  90. package/v3/dist/domains/test-generation/index.js.map +1 -1
  91. package/v3/dist/domains/test-generation/services/index.d.ts +1 -0
  92. package/v3/dist/domains/test-generation/services/index.d.ts.map +1 -1
  93. package/v3/dist/domains/test-generation/services/index.js +2 -0
  94. package/v3/dist/domains/test-generation/services/index.js.map +1 -1
  95. package/v3/dist/domains/visual-accessibility/index.d.ts +2 -1
  96. package/v3/dist/domains/visual-accessibility/index.d.ts.map +1 -1
  97. package/v3/dist/domains/visual-accessibility/index.js +1 -0
  98. package/v3/dist/domains/visual-accessibility/index.js.map +1 -1
  99. package/v3/dist/domains/visual-accessibility/interfaces.d.ts +131 -0
  100. package/v3/dist/domains/visual-accessibility/interfaces.d.ts.map +1 -1
  101. package/v3/dist/domains/visual-accessibility/plugin.d.ts +26 -0
  102. package/v3/dist/domains/visual-accessibility/plugin.d.ts.map +1 -1
  103. package/v3/dist/domains/visual-accessibility/plugin.js +151 -0
  104. package/v3/dist/domains/visual-accessibility/plugin.js.map +1 -1
  105. package/v3/dist/domains/visual-accessibility/services/accessibility-tester.d.ts +42 -1
  106. package/v3/dist/domains/visual-accessibility/services/accessibility-tester.d.ts.map +1 -1
  107. package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js +69 -0
  108. package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js.map +1 -1
  109. package/v3/dist/domains/visual-accessibility/services/eu-compliance.d.ts +138 -0
  110. package/v3/dist/domains/visual-accessibility/services/eu-compliance.d.ts.map +1 -0
  111. package/v3/dist/domains/visual-accessibility/services/eu-compliance.js +830 -0
  112. package/v3/dist/domains/visual-accessibility/services/eu-compliance.js.map +1 -0
  113. package/v3/dist/domains/visual-accessibility/services/index.d.ts +1 -0
  114. package/v3/dist/domains/visual-accessibility/services/index.d.ts.map +1 -1
  115. package/v3/dist/domains/visual-accessibility/services/index.js +1 -0
  116. package/v3/dist/domains/visual-accessibility/services/index.js.map +1 -1
  117. package/v3/dist/init/enhancements/claude-flow-adapter.d.ts +84 -0
  118. package/v3/dist/init/enhancements/claude-flow-adapter.d.ts.map +1 -0
  119. package/v3/dist/init/enhancements/claude-flow-adapter.js +250 -0
  120. package/v3/dist/init/enhancements/claude-flow-adapter.js.map +1 -0
  121. package/v3/dist/init/enhancements/detector.d.ts +10 -0
  122. package/v3/dist/init/enhancements/detector.d.ts.map +1 -0
  123. package/v3/dist/init/enhancements/detector.js +87 -0
  124. package/v3/dist/init/enhancements/detector.js.map +1 -0
  125. package/v3/dist/init/enhancements/index.d.ts +13 -0
  126. package/v3/dist/init/enhancements/index.d.ts.map +1 -0
  127. package/v3/dist/init/enhancements/index.js +25 -0
  128. package/v3/dist/init/enhancements/index.js.map +1 -0
  129. package/v3/dist/init/enhancements/types.d.ts +93 -0
  130. package/v3/dist/init/enhancements/types.d.ts.map +1 -0
  131. package/v3/dist/init/enhancements/types.js +6 -0
  132. package/v3/dist/init/enhancements/types.js.map +1 -0
  133. package/v3/dist/init/index.d.ts +8 -0
  134. package/v3/dist/init/index.d.ts.map +1 -1
  135. package/v3/dist/init/index.js +4 -0
  136. package/v3/dist/init/index.js.map +1 -1
  137. package/v3/dist/init/migration/config-migrator.d.ts +31 -0
  138. package/v3/dist/init/migration/config-migrator.d.ts.map +1 -0
  139. package/v3/dist/init/migration/config-migrator.js +133 -0
  140. package/v3/dist/init/migration/config-migrator.js.map +1 -0
  141. package/v3/dist/init/migration/data-migrator.d.ts +72 -0
  142. package/v3/dist/init/migration/data-migrator.d.ts.map +1 -0
  143. package/v3/dist/init/migration/data-migrator.js +233 -0
  144. package/v3/dist/init/migration/data-migrator.js.map +1 -0
  145. package/v3/dist/init/migration/detector.d.ts +44 -0
  146. package/v3/dist/init/migration/detector.d.ts.map +1 -0
  147. package/v3/dist/init/migration/detector.js +106 -0
  148. package/v3/dist/init/migration/detector.js.map +1 -0
  149. package/v3/dist/init/migration/index.d.ts +8 -0
  150. package/v3/dist/init/migration/index.d.ts.map +1 -0
  151. package/v3/dist/init/migration/index.js +8 -0
  152. package/v3/dist/init/migration/index.js.map +1 -0
  153. package/v3/dist/init/orchestrator.d.ts +68 -0
  154. package/v3/dist/init/orchestrator.d.ts.map +1 -0
  155. package/v3/dist/init/orchestrator.js +239 -0
  156. package/v3/dist/init/orchestrator.js.map +1 -0
  157. package/v3/dist/init/phases/01-detection.d.ts +30 -0
  158. package/v3/dist/init/phases/01-detection.d.ts.map +1 -0
  159. package/v3/dist/init/phases/01-detection.js +143 -0
  160. package/v3/dist/init/phases/01-detection.js.map +1 -0
  161. package/v3/dist/init/phases/02-analysis.d.ts +18 -0
  162. package/v3/dist/init/phases/02-analysis.d.ts.map +1 -0
  163. package/v3/dist/init/phases/02-analysis.js +28 -0
  164. package/v3/dist/init/phases/02-analysis.js.map +1 -0
  165. package/v3/dist/init/phases/03-configuration.d.ts +26 -0
  166. package/v3/dist/init/phases/03-configuration.d.ts.map +1 -0
  167. package/v3/dist/init/phases/03-configuration.js +98 -0
  168. package/v3/dist/init/phases/03-configuration.js.map +1 -0
  169. package/v3/dist/init/phases/04-database.d.ts +22 -0
  170. package/v3/dist/init/phases/04-database.d.ts.map +1 -0
  171. package/v3/dist/init/phases/04-database.js +88 -0
  172. package/v3/dist/init/phases/04-database.js.map +1 -0
  173. package/v3/dist/init/phases/05-learning.d.ts +28 -0
  174. package/v3/dist/init/phases/05-learning.d.ts.map +1 -0
  175. package/v3/dist/init/phases/05-learning.js +98 -0
  176. package/v3/dist/init/phases/05-learning.js.map +1 -0
  177. package/v3/dist/init/phases/06-code-intelligence.d.ts +33 -0
  178. package/v3/dist/init/phases/06-code-intelligence.d.ts.map +1 -0
  179. package/v3/dist/init/phases/06-code-intelligence.js +115 -0
  180. package/v3/dist/init/phases/06-code-intelligence.js.map +1 -0
  181. package/v3/dist/init/phases/07-hooks.d.ts +27 -0
  182. package/v3/dist/init/phases/07-hooks.d.ts.map +1 -0
  183. package/v3/dist/init/phases/07-hooks.js +209 -0
  184. package/v3/dist/init/phases/07-hooks.js.map +1 -0
  185. package/v3/dist/init/phases/08-mcp.d.ts +22 -0
  186. package/v3/dist/init/phases/08-mcp.d.ts.map +1 -0
  187. package/v3/dist/init/phases/08-mcp.js +62 -0
  188. package/v3/dist/init/phases/08-mcp.js.map +1 -0
  189. package/v3/dist/init/phases/09-assets.d.ts +23 -0
  190. package/v3/dist/init/phases/09-assets.d.ts.map +1 -0
  191. package/v3/dist/init/phases/09-assets.js +82 -0
  192. package/v3/dist/init/phases/09-assets.js.map +1 -0
  193. package/v3/dist/init/phases/10-workers.d.ts +23 -0
  194. package/v3/dist/init/phases/10-workers.d.ts.map +1 -0
  195. package/v3/dist/init/phases/10-workers.js +111 -0
  196. package/v3/dist/init/phases/10-workers.js.map +1 -0
  197. package/v3/dist/init/phases/11-claude-md.d.ts +26 -0
  198. package/v3/dist/init/phases/11-claude-md.d.ts.map +1 -0
  199. package/v3/dist/init/phases/11-claude-md.js +121 -0
  200. package/v3/dist/init/phases/11-claude-md.js.map +1 -0
  201. package/v3/dist/init/phases/12-verification.d.ts +38 -0
  202. package/v3/dist/init/phases/12-verification.d.ts.map +1 -0
  203. package/v3/dist/init/phases/12-verification.js +187 -0
  204. package/v3/dist/init/phases/12-verification.js.map +1 -0
  205. package/v3/dist/init/phases/index.d.ts +46 -0
  206. package/v3/dist/init/phases/index.d.ts.map +1 -0
  207. package/v3/dist/init/phases/index.js +64 -0
  208. package/v3/dist/init/phases/index.js.map +1 -0
  209. package/v3/dist/init/phases/phase-interface.d.ts +193 -0
  210. package/v3/dist/init/phases/phase-interface.d.ts.map +1 -0
  211. package/v3/dist/init/phases/phase-interface.js +119 -0
  212. package/v3/dist/init/phases/phase-interface.js.map +1 -0
  213. package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.d.ts +9 -3
  214. package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.d.ts.map +1 -1
  215. package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.js +103 -26
  216. package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.js.map +1 -1
  217. package/v3/dist/integrations/coherence/coherence-service.d.ts +323 -0
  218. package/v3/dist/integrations/coherence/coherence-service.d.ts.map +1 -0
  219. package/v3/dist/integrations/coherence/coherence-service.js +799 -0
  220. package/v3/dist/integrations/coherence/coherence-service.js.map +1 -0
  221. package/v3/dist/integrations/coherence/engines/category-adapter.d.ts +170 -0
  222. package/v3/dist/integrations/coherence/engines/category-adapter.d.ts.map +1 -0
  223. package/v3/dist/integrations/coherence/engines/category-adapter.js +403 -0
  224. package/v3/dist/integrations/coherence/engines/category-adapter.js.map +1 -0
  225. package/v3/dist/integrations/coherence/engines/causal-adapter.d.ts +159 -0
  226. package/v3/dist/integrations/coherence/engines/causal-adapter.d.ts.map +1 -0
  227. package/v3/dist/integrations/coherence/engines/causal-adapter.js +348 -0
  228. package/v3/dist/integrations/coherence/engines/causal-adapter.js.map +1 -0
  229. package/v3/dist/integrations/coherence/engines/cohomology-adapter.d.ts +174 -0
  230. package/v3/dist/integrations/coherence/engines/cohomology-adapter.d.ts.map +1 -0
  231. package/v3/dist/integrations/coherence/engines/cohomology-adapter.js +401 -0
  232. package/v3/dist/integrations/coherence/engines/cohomology-adapter.js.map +1 -0
  233. package/v3/dist/integrations/coherence/engines/homotopy-adapter.d.ts +201 -0
  234. package/v3/dist/integrations/coherence/engines/homotopy-adapter.d.ts.map +1 -0
  235. package/v3/dist/integrations/coherence/engines/homotopy-adapter.js +324 -0
  236. package/v3/dist/integrations/coherence/engines/homotopy-adapter.js.map +1 -0
  237. package/v3/dist/integrations/coherence/engines/index.d.ts +20 -0
  238. package/v3/dist/integrations/coherence/engines/index.d.ts.map +1 -0
  239. package/v3/dist/integrations/coherence/engines/index.js +26 -0
  240. package/v3/dist/integrations/coherence/engines/index.js.map +1 -0
  241. package/v3/dist/integrations/coherence/engines/spectral-adapter.d.ts +193 -0
  242. package/v3/dist/integrations/coherence/engines/spectral-adapter.d.ts.map +1 -0
  243. package/v3/dist/integrations/coherence/engines/spectral-adapter.js +476 -0
  244. package/v3/dist/integrations/coherence/engines/spectral-adapter.js.map +1 -0
  245. package/v3/dist/integrations/coherence/engines/witness-adapter.d.ts +175 -0
  246. package/v3/dist/integrations/coherence/engines/witness-adapter.d.ts.map +1 -0
  247. package/v3/dist/integrations/coherence/engines/witness-adapter.js +377 -0
  248. package/v3/dist/integrations/coherence/engines/witness-adapter.js.map +1 -0
  249. package/v3/dist/integrations/coherence/index.d.ts +84 -0
  250. package/v3/dist/integrations/coherence/index.d.ts.map +1 -0
  251. package/v3/dist/integrations/coherence/index.js +114 -0
  252. package/v3/dist/integrations/coherence/index.js.map +1 -0
  253. package/v3/dist/integrations/coherence/threshold-tuner.d.ts +396 -0
  254. package/v3/dist/integrations/coherence/threshold-tuner.d.ts.map +1 -0
  255. package/v3/dist/integrations/coherence/threshold-tuner.js +538 -0
  256. package/v3/dist/integrations/coherence/threshold-tuner.js.map +1 -0
  257. package/v3/dist/integrations/coherence/types.d.ts +879 -0
  258. package/v3/dist/integrations/coherence/types.d.ts.map +1 -0
  259. package/v3/dist/integrations/coherence/types.js +134 -0
  260. package/v3/dist/integrations/coherence/types.js.map +1 -0
  261. package/v3/dist/integrations/coherence/wasm-loader.d.ts +351 -0
  262. package/v3/dist/integrations/coherence/wasm-loader.d.ts.map +1 -0
  263. package/v3/dist/integrations/coherence/wasm-loader.js +842 -0
  264. package/v3/dist/integrations/coherence/wasm-loader.js.map +1 -0
  265. package/v3/dist/integrations/embeddings/base/EmbeddingGenerator.d.ts.map +1 -1
  266. package/v3/dist/integrations/embeddings/base/EmbeddingGenerator.js +1 -0
  267. package/v3/dist/integrations/embeddings/base/EmbeddingGenerator.js.map +1 -1
  268. package/v3/dist/integrations/embeddings/base/types.d.ts +1 -1
  269. package/v3/dist/integrations/embeddings/base/types.d.ts.map +1 -1
  270. package/v3/dist/integrations/embeddings/cache/EmbeddingCache.d.ts.map +1 -1
  271. package/v3/dist/integrations/embeddings/cache/EmbeddingCache.js +1 -0
  272. package/v3/dist/integrations/embeddings/cache/EmbeddingCache.js.map +1 -1
  273. package/v3/dist/integrations/embeddings/index/HNSWIndex.d.ts.map +1 -1
  274. package/v3/dist/integrations/embeddings/index/HNSWIndex.js +4 -1
  275. package/v3/dist/integrations/embeddings/index/HNSWIndex.js.map +1 -1
  276. package/v3/dist/kernel/interfaces.d.ts +8 -1
  277. package/v3/dist/kernel/interfaces.d.ts.map +1 -1
  278. package/v3/dist/learning/aqe-learning-engine.d.ts +272 -0
  279. package/v3/dist/learning/aqe-learning-engine.d.ts.map +1 -0
  280. package/v3/dist/learning/aqe-learning-engine.js +708 -0
  281. package/v3/dist/learning/aqe-learning-engine.js.map +1 -0
  282. package/v3/dist/learning/causal-verifier.d.ts +244 -0
  283. package/v3/dist/learning/causal-verifier.d.ts.map +1 -0
  284. package/v3/dist/learning/causal-verifier.js +300 -0
  285. package/v3/dist/learning/causal-verifier.js.map +1 -0
  286. package/v3/dist/learning/experience-capture.d.ts +266 -0
  287. package/v3/dist/learning/experience-capture.d.ts.map +1 -0
  288. package/v3/dist/learning/experience-capture.js +647 -0
  289. package/v3/dist/learning/experience-capture.js.map +1 -0
  290. package/v3/dist/learning/index.d.ts +8 -0
  291. package/v3/dist/learning/index.d.ts.map +1 -1
  292. package/v3/dist/learning/index.js +16 -0
  293. package/v3/dist/learning/index.js.map +1 -1
  294. package/v3/dist/learning/memory-auditor.d.ts +235 -0
  295. package/v3/dist/learning/memory-auditor.d.ts.map +1 -0
  296. package/v3/dist/learning/memory-auditor.js +478 -0
  297. package/v3/dist/learning/memory-auditor.js.map +1 -0
  298. package/v3/dist/learning/pattern-store.d.ts.map +1 -1
  299. package/v3/dist/learning/pattern-store.js +27 -6
  300. package/v3/dist/learning/pattern-store.js.map +1 -1
  301. package/v3/dist/learning/qe-patterns.d.ts +15 -1
  302. package/v3/dist/learning/qe-patterns.d.ts.map +1 -1
  303. package/v3/dist/learning/qe-patterns.js +26 -5
  304. package/v3/dist/learning/qe-patterns.js.map +1 -1
  305. package/v3/dist/learning/qe-reasoning-bank.d.ts +38 -2
  306. package/v3/dist/learning/qe-reasoning-bank.d.ts.map +1 -1
  307. package/v3/dist/learning/qe-reasoning-bank.js +86 -4
  308. package/v3/dist/learning/qe-reasoning-bank.js.map +1 -1
  309. package/v3/dist/learning/real-qe-reasoning-bank.d.ts +32 -2
  310. package/v3/dist/learning/real-qe-reasoning-bank.d.ts.map +1 -1
  311. package/v3/dist/learning/real-qe-reasoning-bank.js +61 -6
  312. package/v3/dist/learning/real-qe-reasoning-bank.js.map +1 -1
  313. package/v3/dist/learning/token-tracker.d.ts.map +1 -1
  314. package/v3/dist/learning/token-tracker.js +5 -2
  315. package/v3/dist/learning/token-tracker.js.map +1 -1
  316. package/v3/dist/mcp/bundle.js +6698 -303
  317. package/v3/dist/mcp/tools/coherence/audit.d.ts +107 -0
  318. package/v3/dist/mcp/tools/coherence/audit.d.ts.map +1 -0
  319. package/v3/dist/mcp/tools/coherence/audit.js +236 -0
  320. package/v3/dist/mcp/tools/coherence/audit.js.map +1 -0
  321. package/v3/dist/mcp/tools/coherence/check.d.ts +106 -0
  322. package/v3/dist/mcp/tools/coherence/check.d.ts.map +1 -0
  323. package/v3/dist/mcp/tools/coherence/check.js +205 -0
  324. package/v3/dist/mcp/tools/coherence/check.js.map +1 -0
  325. package/v3/dist/mcp/tools/coherence/collapse.d.ts +123 -0
  326. package/v3/dist/mcp/tools/coherence/collapse.d.ts.map +1 -0
  327. package/v3/dist/mcp/tools/coherence/collapse.js +279 -0
  328. package/v3/dist/mcp/tools/coherence/collapse.js.map +1 -0
  329. package/v3/dist/mcp/tools/coherence/consensus.d.ts +100 -0
  330. package/v3/dist/mcp/tools/coherence/consensus.d.ts.map +1 -0
  331. package/v3/dist/mcp/tools/coherence/consensus.js +201 -0
  332. package/v3/dist/mcp/tools/coherence/consensus.js.map +1 -0
  333. package/v3/dist/mcp/tools/coherence/index.d.ts +31 -0
  334. package/v3/dist/mcp/tools/coherence/index.d.ts.map +1 -0
  335. package/v3/dist/mcp/tools/coherence/index.js +42 -0
  336. package/v3/dist/mcp/tools/coherence/index.js.map +1 -0
  337. package/v3/dist/mcp/tools/contract-testing/validate.d.ts +1 -1
  338. package/v3/dist/mcp/tools/contract-testing/validate.d.ts.map +1 -1
  339. package/v3/dist/mcp/tools/contract-testing/validate.js +66 -0
  340. package/v3/dist/mcp/tools/contract-testing/validate.js.map +1 -1
  341. package/v3/dist/mcp/tools/index.d.ts +6 -1
  342. package/v3/dist/mcp/tools/index.d.ts.map +1 -1
  343. package/v3/dist/mcp/tools/index.js +9 -1
  344. package/v3/dist/mcp/tools/index.js.map +1 -1
  345. package/v3/dist/mcp/tools/mincut/index.d.ts +1 -1
  346. package/v3/dist/mcp/tools/mincut/index.d.ts.map +1 -1
  347. package/v3/dist/mcp/tools/mincut/index.js.map +1 -1
  348. package/v3/dist/mcp/tools/registry.d.ts +4 -0
  349. package/v3/dist/mcp/tools/registry.d.ts.map +1 -1
  350. package/v3/dist/mcp/tools/registry.js +5 -0
  351. package/v3/dist/mcp/tools/registry.js.map +1 -1
  352. package/v3/dist/mcp/types.d.ts +1 -1
  353. package/v3/dist/mcp/types.d.ts.map +1 -1
  354. package/v3/dist/shared/utils/safe-expression-evaluator.d.ts +61 -0
  355. package/v3/dist/shared/utils/safe-expression-evaluator.d.ts.map +1 -0
  356. package/v3/dist/shared/utils/safe-expression-evaluator.js +365 -0
  357. package/v3/dist/shared/utils/safe-expression-evaluator.js.map +1 -0
  358. package/v3/dist/strange-loop/belief-reconciler.d.ts +357 -0
  359. package/v3/dist/strange-loop/belief-reconciler.d.ts.map +1 -0
  360. package/v3/dist/strange-loop/belief-reconciler.js +696 -0
  361. package/v3/dist/strange-loop/belief-reconciler.js.map +1 -0
  362. package/v3/dist/strange-loop/index.d.ts +1 -0
  363. package/v3/dist/strange-loop/index.d.ts.map +1 -1
  364. package/v3/dist/strange-loop/index.js +2 -0
  365. package/v3/dist/strange-loop/index.js.map +1 -1
  366. package/v3/dist/strange-loop/strange-loop.d.ts +177 -5
  367. package/v3/dist/strange-loop/strange-loop.d.ts.map +1 -1
  368. package/v3/dist/strange-loop/strange-loop.js +452 -9
  369. package/v3/dist/strange-loop/strange-loop.js.map +1 -1
  370. package/v3/dist/strange-loop/types.d.ts +205 -1
  371. package/v3/dist/strange-loop/types.d.ts.map +1 -1
  372. package/v3/dist/strange-loop/types.js +5 -0
  373. package/v3/dist/strange-loop/types.js.map +1 -1
  374. package/v3/dist/test-scheduling/executors/vitest-executor.d.ts.map +1 -1
  375. package/v3/dist/test-scheduling/executors/vitest-executor.js +7 -2
  376. package/v3/dist/test-scheduling/executors/vitest-executor.js.map +1 -1
  377. package/v3/dist/workflows/browser/workflow-loader.d.ts +1 -0
  378. package/v3/dist/workflows/browser/workflow-loader.d.ts.map +1 -1
  379. package/v3/dist/workflows/browser/workflow-loader.js +11 -16
  380. package/v3/dist/workflows/browser/workflow-loader.js.map +1 -1
  381. package/v3/package.json +5 -1
@@ -0,0 +1,111 @@
1
+ /**
2
+ * Phase 10: Workers
3
+ * Configures background workers for continuous monitoring
4
+ */
5
+ import { existsSync, mkdirSync, writeFileSync } from 'fs';
6
+ import { join } from 'path';
7
+ import { BasePhase, } from './phase-interface.js';
8
+ /**
9
+ * Workers phase - configures background workers
10
+ */
11
+ export class WorkersPhase extends BasePhase {
12
+ name = 'workers';
13
+ description = 'Configure background workers';
14
+ order = 100;
15
+ critical = false;
16
+ requiresPhases = ['configuration'];
17
+ async shouldRun(context) {
18
+ const config = context.config;
19
+ return config?.workers?.daemonAutoStart && (config?.workers?.enabled?.length ?? 0) > 0;
20
+ }
21
+ async run(context) {
22
+ const config = context.config;
23
+ const { projectRoot } = context;
24
+ if (!config.workers.daemonAutoStart || config.workers.enabled.length === 0) {
25
+ return {
26
+ workersDir: '',
27
+ workersConfigured: 0,
28
+ registryPath: '',
29
+ };
30
+ }
31
+ // Create workers directory
32
+ const workersDir = join(projectRoot, '.agentic-qe', 'workers');
33
+ if (!existsSync(workersDir)) {
34
+ mkdirSync(workersDir, { recursive: true });
35
+ }
36
+ // Default intervals
37
+ const defaultIntervals = {
38
+ 'pattern-consolidator': 60000,
39
+ 'coverage-gap-scanner': 300000,
40
+ 'flaky-test-detector': 600000,
41
+ 'routing-accuracy-monitor': 120000,
42
+ };
43
+ // Build worker registry
44
+ const workerRegistry = {};
45
+ for (const workerName of config.workers.enabled) {
46
+ workerRegistry[workerName] = {
47
+ name: workerName,
48
+ enabled: true,
49
+ interval: config.workers.intervals[workerName] || defaultIntervals[workerName] || 60000,
50
+ lastRun: null,
51
+ status: 'pending',
52
+ };
53
+ }
54
+ // Write registry
55
+ const registryPath = join(workersDir, 'registry.json');
56
+ const registryData = {
57
+ version: config.version,
58
+ maxConcurrent: config.workers.maxConcurrent,
59
+ workers: workerRegistry,
60
+ createdAt: new Date().toISOString(),
61
+ daemonPid: null,
62
+ };
63
+ writeFileSync(registryPath, JSON.stringify(registryData, null, 2), 'utf-8');
64
+ // Write individual worker configs
65
+ for (const workerName of config.workers.enabled) {
66
+ const workerConfigPath = join(workersDir, `${workerName}.json`);
67
+ const workerConfig = {
68
+ name: workerName,
69
+ enabled: true,
70
+ interval: config.workers.intervals[workerName] || defaultIntervals[workerName] || 60000,
71
+ projectRoot,
72
+ dataDir: join(projectRoot, '.agentic-qe', 'data'),
73
+ createdAt: new Date().toISOString(),
74
+ };
75
+ writeFileSync(workerConfigPath, JSON.stringify(workerConfig, null, 2), 'utf-8');
76
+ }
77
+ // Write daemon startup script
78
+ const daemonScriptPath = join(workersDir, 'start-daemon.sh');
79
+ const daemonScript = `#!/bin/bash
80
+ # AQE v3 Worker Daemon Startup Script
81
+ # Generated by aqe init
82
+
83
+ PROJECT_ROOT="${projectRoot}"
84
+ WORKERS_DIR="$PROJECT_ROOT/.agentic-qe/workers"
85
+ PID_FILE="$WORKERS_DIR/daemon.pid"
86
+
87
+ # Check if already running
88
+ if [ -f "$PID_FILE" ]; then
89
+ PID=$(cat "$PID_FILE")
90
+ if kill -0 "$PID" 2>/dev/null; then
91
+ echo "Daemon already running (PID: $PID)"
92
+ exit 0
93
+ fi
94
+ fi
95
+
96
+ # AQE v3 hooks work via CLI commands
97
+ echo "AQE v3 hooks work via CLI commands"
98
+ echo "Use: npx aqe hooks session-start"
99
+ `;
100
+ writeFileSync(daemonScriptPath, daemonScript, { mode: 0o755 });
101
+ context.services.log(` Workers dir: ${workersDir}`);
102
+ context.services.log(` Workers: ${config.workers.enabled.join(', ')}`);
103
+ return {
104
+ workersDir,
105
+ workersConfigured: config.workers.enabled.length,
106
+ registryPath,
107
+ };
108
+ }
109
+ }
110
+ // Instance exported from index.ts
111
+ //# sourceMappingURL=10-workers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"10-workers.js","sourceRoot":"","sources":["../../../src/init/phases/10-workers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EACL,SAAS,GAEV,MAAM,sBAAsB,CAAC;AAiB9B;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,SAAwB;IAC/C,IAAI,GAAG,SAAS,CAAC;IACjB,WAAW,GAAG,8BAA8B,CAAC;IAC7C,KAAK,GAAG,GAAG,CAAC;IACZ,QAAQ,GAAG,KAAK,CAAC;IACjB,cAAc,GAAG,CAAC,eAAe,CAAU,CAAC;IAErD,KAAK,CAAC,SAAS,CAAC,OAAoB;QAClC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAuB,CAAC;QAC/C,OAAO,MAAM,EAAE,OAAO,EAAE,eAAe,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACzF,CAAC;IAES,KAAK,CAAC,GAAG,CAAC,OAAoB;QACtC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAuB,CAAC;QAC/C,MAAM,EAAE,WAAW,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C,cAAc,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAExE,OAAO;YACL,UAAU;YACV,iBAAiB,EAAE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM;YAChD,YAAY;SACb,CAAC;IACJ,CAAC;CACF;AAED,kCAAkC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Phase 11: CLAUDE.md
3
+ * Generates CLAUDE.md documentation for Claude Code
4
+ */
5
+ import { BasePhase, type InitContext } from './phase-interface.js';
6
+ export interface ClaudeMdResult {
7
+ generated: boolean;
8
+ path: string;
9
+ backupCreated: boolean;
10
+ }
11
+ /**
12
+ * CLAUDE.md phase - generates Claude Code documentation
13
+ */
14
+ export declare class ClaudeMdPhase extends BasePhase<ClaudeMdResult> {
15
+ readonly name = "claude-md";
16
+ readonly description = "Generate CLAUDE.md";
17
+ readonly order = 110;
18
+ readonly critical = false;
19
+ readonly requiresPhases: readonly ["configuration"];
20
+ protected run(context: InitContext): Promise<ClaudeMdResult>;
21
+ /**
22
+ * Generate CLAUDE.md content
23
+ */
24
+ private generateContent;
25
+ }
26
+ //# sourceMappingURL=11-claude-md.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"11-claude-md.d.ts","sourceRoot":"","sources":["../../../src/init/phases/11-claude-md.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EACL,SAAS,EACT,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,qBAAa,aAAc,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC1D,QAAQ,CAAC,IAAI,eAAe;IAC5B,QAAQ,CAAC,WAAW,wBAAwB;IAC5C,QAAQ,CAAC,KAAK,OAAO;IACrB,QAAQ,CAAC,QAAQ,SAAS;IAC1B,QAAQ,CAAC,cAAc,6BAA8B;cAErC,GAAG,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC;IA0ClE;;OAEG;IACH,OAAO,CAAC,eAAe;CAiExB"}
@@ -0,0 +1,121 @@
1
+ /**
2
+ * Phase 11: CLAUDE.md
3
+ * Generates CLAUDE.md documentation for Claude Code
4
+ */
5
+ import { existsSync, readFileSync, writeFileSync } from 'fs';
6
+ import { join } from 'path';
7
+ import { BasePhase, } from './phase-interface.js';
8
+ /**
9
+ * CLAUDE.md phase - generates Claude Code documentation
10
+ */
11
+ export class ClaudeMdPhase extends BasePhase {
12
+ name = 'claude-md';
13
+ description = 'Generate CLAUDE.md';
14
+ order = 110;
15
+ critical = false;
16
+ requiresPhases = ['configuration'];
17
+ async run(context) {
18
+ const config = context.config;
19
+ const { projectRoot } = context;
20
+ const claudeMdPath = join(projectRoot, 'CLAUDE.md');
21
+ const content = this.generateContent(config);
22
+ let backupCreated = false;
23
+ // Check existing CLAUDE.md
24
+ if (existsSync(claudeMdPath)) {
25
+ const existing = readFileSync(claudeMdPath, 'utf-8');
26
+ // Skip if AQE section exists
27
+ if (existing.includes('## Agentic QE v3')) {
28
+ context.services.log(' CLAUDE.md already has AQE section');
29
+ return { generated: false, path: claudeMdPath, backupCreated: false };
30
+ }
31
+ // Create backup
32
+ const backupPath = join(projectRoot, 'CLAUDE.md.backup');
33
+ writeFileSync(backupPath, existing, 'utf-8');
34
+ backupCreated = true;
35
+ // Append AQE section
36
+ writeFileSync(claudeMdPath, existing + '\n\n' + content, 'utf-8');
37
+ }
38
+ else {
39
+ // Create new
40
+ writeFileSync(claudeMdPath, content, 'utf-8');
41
+ }
42
+ context.services.log(` Path: ${claudeMdPath}`);
43
+ if (backupCreated) {
44
+ context.services.log(' Backup created');
45
+ }
46
+ return {
47
+ generated: true,
48
+ path: claudeMdPath,
49
+ backupCreated,
50
+ };
51
+ }
52
+ /**
53
+ * Generate CLAUDE.md content
54
+ */
55
+ generateContent(config) {
56
+ const enabledDomains = config.domains.enabled.slice(0, 6).join(', ');
57
+ const moreDomainsCount = Math.max(0, config.domains.enabled.length - 6);
58
+ return `## Agentic QE v3
59
+
60
+ This project uses **Agentic QE v3** - a Domain-Driven Quality Engineering platform with 12 bounded contexts, ReasoningBank learning, and HNSW vector search.
61
+
62
+ ---
63
+
64
+ ### Quick Reference
65
+
66
+ \`\`\`bash
67
+ # Run tests
68
+ npm test -- --run
69
+
70
+ # Check quality
71
+ aqe quality assess
72
+
73
+ # Generate tests
74
+ aqe test generate <file>
75
+
76
+ # Coverage analysis
77
+ aqe coverage <path>
78
+ \`\`\`
79
+
80
+ ### MCP Server Tools
81
+
82
+ | Tool | Description |
83
+ |------|-------------|
84
+ | \`fleet_init\` | Initialize QE fleet with topology |
85
+ | \`agent_spawn\` | Spawn specialized QE agent |
86
+ | \`test_generate_enhanced\` | AI-powered test generation |
87
+ | \`test_execute_parallel\` | Parallel test execution with retry |
88
+ | \`task_orchestrate\` | Orchestrate multi-agent QE tasks |
89
+ | \`coverage_analyze_sublinear\` | O(log n) coverage analysis |
90
+ | \`quality_assess\` | Quality gate evaluation |
91
+ | \`memory_store\` / \`memory_query\` | Pattern storage with namespacing |
92
+
93
+ ### Configuration
94
+
95
+ - **Enabled Domains**: ${enabledDomains}${moreDomainsCount > 0 ? ` (+${moreDomainsCount} more)` : ''}
96
+ - **Learning**: ${config.learning.enabled ? 'Enabled' : 'Disabled'} (${config.learning.embeddingModel} embeddings)
97
+ - **Max Concurrent Agents**: ${config.agents.maxConcurrent}
98
+ - **Background Workers**: ${config.workers.enabled.length > 0 ? config.workers.enabled.join(', ') : 'None'}
99
+
100
+ ### V3 QE Agents
101
+
102
+ V3 QE agents are in \`.claude/agents/v3/\`. Use with Task tool:
103
+
104
+ \`\`\`javascript
105
+ Task({ prompt: "Generate tests", subagent_type: "qe-test-architect", run_in_background: true })
106
+ Task({ prompt: "Find coverage gaps", subagent_type: "qe-coverage-specialist", run_in_background: true })
107
+ Task({ prompt: "Security audit", subagent_type: "qe-security-scanner", run_in_background: true })
108
+ \`\`\`
109
+
110
+ ### Data Storage
111
+
112
+ - **Memory Backend**: \`.agentic-qe/memory.db\` (SQLite)
113
+ - **Configuration**: \`.agentic-qe/config.yaml\`
114
+
115
+ ---
116
+ *Generated by AQE v3 init - ${new Date().toISOString()}*
117
+ `;
118
+ }
119
+ }
120
+ // Instance exported from index.ts
121
+ //# sourceMappingURL=11-claude-md.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"11-claude-md.js","sourceRoot":"","sources":["../../../src/init/phases/11-claude-md.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EACL,SAAS,GAEV,MAAM,sBAAsB,CAAC;AAS9B;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,SAAyB;IACjD,IAAI,GAAG,WAAW,CAAC;IACnB,WAAW,GAAG,oBAAoB,CAAC;IACnC,KAAK,GAAG,GAAG,CAAC;IACZ,QAAQ,GAAG,KAAK,CAAC;IACjB,cAAc,GAAG,CAAC,eAAe,CAAU,CAAC;IAE3C,KAAK,CAAC,GAAG,CAAC,OAAoB;QACtC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAuB,CAAC;QAC/C,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;QAEhC,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACpD,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAC7C,IAAI,aAAa,GAAG,KAAK,CAAC;QAE1B,2BAA2B;QAC3B,IAAI,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;YAC7B,MAAM,QAAQ,GAAG,YAAY,CAA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,CAAC;QAExE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAqCc,cAAc,GAAG,gBAAgB,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,gBAAgB,QAAQ,CAAC,CAAC,CAAC,EAAE;kBAClF,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,KAAK,MAAM,CAAC,QAAQ,CAAC,cAAc;+BACtE,MAAM,CAAC,MAAM,CAAC,aAAa;4BAC9B,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM;;;;;;;;;;;;;;;;;;8BAkB5E,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;CACrD,CAAC;IACA,CAAC;CACF;AAED,kCAAkC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Phase 12: Verification
3
+ * Verifies the installation and writes version marker
4
+ */
5
+ import { BasePhase, type InitContext } from './phase-interface.js';
6
+ export interface VerificationResult {
7
+ verified: boolean;
8
+ versionWritten: boolean;
9
+ configSaved: boolean;
10
+ checks: {
11
+ name: string;
12
+ passed: boolean;
13
+ }[];
14
+ }
15
+ /**
16
+ * Verification phase - verifies installation and writes markers
17
+ */
18
+ export declare class VerificationPhase extends BasePhase<VerificationResult> {
19
+ readonly name = "verification";
20
+ readonly description = "Verify installation";
21
+ readonly order = 120;
22
+ readonly critical = true;
23
+ readonly requiresPhases: readonly ["database", "configuration"];
24
+ protected run(context: InitContext): Promise<VerificationResult>;
25
+ /**
26
+ * Write AQE version to memory.db
27
+ */
28
+ private writeVersionToDb;
29
+ /**
30
+ * Save configuration to YAML file
31
+ */
32
+ private saveConfig;
33
+ /**
34
+ * Convert config to YAML
35
+ */
36
+ private configToYAML;
37
+ }
38
+ //# sourceMappingURL=12-verification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"12-verification.d.ts","sourceRoot":"","sources":["../../../src/init/phases/12-verification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,EACL,SAAS,EACT,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAK9B,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,OAAO,CAAC;KACjB,EAAE,CAAC;CACL;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,SAAS,CAAC,kBAAkB,CAAC;IAClE,QAAQ,CAAC,IAAI,kBAAkB;IAC/B,QAAQ,CAAC,WAAW,yBAAyB;IAC7C,QAAQ,CAAC,KAAK,OAAO;IACrB,QAAQ,CAAC,QAAQ,QAAQ;IACzB,QAAQ,CAAC,cAAc,yCAA0C;cAEjD,GAAG,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAuDtE;;OAEG;YACW,gBAAgB;IA8C9B;;OAEG;YACW,UAAU;IAWxB;;OAEG;IACH,OAAO,CAAC,YAAY;CA8DrB"}
@@ -0,0 +1,187 @@
1
+ /**
2
+ * Phase 12: Verification
3
+ * Verifies the installation and writes version marker
4
+ */
5
+ import { existsSync } from 'fs';
6
+ import { join, dirname } from 'path';
7
+ import { mkdirSync, writeFileSync } from 'fs';
8
+ import { createRequire } from 'module';
9
+ import { BasePhase, } from './phase-interface.js';
10
+ const require = createRequire(import.meta.url);
11
+ /**
12
+ * Verification phase - verifies installation and writes markers
13
+ */
14
+ export class VerificationPhase extends BasePhase {
15
+ name = 'verification';
16
+ description = 'Verify installation';
17
+ order = 120;
18
+ critical = true;
19
+ requiresPhases = ['database', 'configuration'];
20
+ async run(context) {
21
+ const config = context.config;
22
+ const { projectRoot } = context;
23
+ const checks = [];
24
+ // Check database exists
25
+ const dbPath = join(projectRoot, '.agentic-qe', 'memory.db');
26
+ checks.push({
27
+ name: 'Database exists',
28
+ passed: existsSync(dbPath),
29
+ });
30
+ // Check .agentic-qe directory
31
+ checks.push({
32
+ name: '.agentic-qe directory',
33
+ passed: existsSync(join(projectRoot, '.agentic-qe')),
34
+ });
35
+ // Check config (will be written below)
36
+ const configPath = join(projectRoot, '.agentic-qe', 'config.yaml');
37
+ // Save configuration
38
+ await this.saveConfig(config, projectRoot);
39
+ checks.push({
40
+ name: 'Config saved',
41
+ passed: existsSync(configPath),
42
+ });
43
+ // Write version marker
44
+ const versionWritten = await this.writeVersionToDb(config.version, projectRoot);
45
+ checks.push({
46
+ name: 'Version marker',
47
+ passed: versionWritten,
48
+ });
49
+ // All critical checks must pass
50
+ const criticalChecks = ['Database exists', '.agentic-qe directory', 'Config saved'];
51
+ const allCriticalPassed = checks
52
+ .filter(c => criticalChecks.includes(c.name))
53
+ .every(c => c.passed);
54
+ context.services.log(' Verification checks:');
55
+ for (const check of checks) {
56
+ context.services.log(` ${check.passed ? '✓' : '✗'} ${check.name}`);
57
+ }
58
+ return {
59
+ verified: allCriticalPassed,
60
+ versionWritten,
61
+ configSaved: existsSync(configPath),
62
+ checks,
63
+ };
64
+ }
65
+ /**
66
+ * Write AQE version to memory.db
67
+ */
68
+ async writeVersionToDb(version, projectRoot) {
69
+ const memoryDbPath = join(projectRoot, '.agentic-qe', 'memory.db');
70
+ try {
71
+ const dir = dirname(memoryDbPath);
72
+ if (!existsSync(dir)) {
73
+ mkdirSync(dir, { recursive: true });
74
+ }
75
+ const Database = require('better-sqlite3');
76
+ const db = new Database(memoryDbPath);
77
+ try {
78
+ db.exec(`
79
+ CREATE TABLE IF NOT EXISTS kv_store (
80
+ key TEXT NOT NULL,
81
+ namespace TEXT NOT NULL,
82
+ value TEXT NOT NULL,
83
+ expires_at INTEGER,
84
+ created_at INTEGER DEFAULT (strftime('%s', 'now') * 1000),
85
+ PRIMARY KEY (namespace, key)
86
+ );
87
+ `);
88
+ const now = Date.now();
89
+ db.prepare(`
90
+ INSERT OR REPLACE INTO kv_store (key, namespace, value, created_at)
91
+ VALUES (?, '_system', ?, ?)
92
+ `).run('aqe_version', JSON.stringify(version), now);
93
+ db.prepare(`
94
+ INSERT OR REPLACE INTO kv_store (key, namespace, value, created_at)
95
+ VALUES (?, '_system', ?, ?)
96
+ `).run('init_timestamp', JSON.stringify(new Date().toISOString()), now);
97
+ db.close();
98
+ return true;
99
+ }
100
+ catch (err) {
101
+ db.close();
102
+ return false;
103
+ }
104
+ }
105
+ catch {
106
+ return false;
107
+ }
108
+ }
109
+ /**
110
+ * Save configuration to YAML file
111
+ */
112
+ async saveConfig(config, projectRoot) {
113
+ const configDir = join(projectRoot, '.agentic-qe');
114
+ if (!existsSync(configDir)) {
115
+ mkdirSync(configDir, { recursive: true });
116
+ }
117
+ const yaml = this.configToYAML(config);
118
+ const configPath = join(configDir, 'config.yaml');
119
+ writeFileSync(configPath, yaml, 'utf-8');
120
+ }
121
+ /**
122
+ * Convert config to YAML
123
+ */
124
+ configToYAML(config) {
125
+ const lines = [
126
+ '# Agentic QE v3 Configuration',
127
+ '# Generated by aqe init',
128
+ `# ${new Date().toISOString()}`,
129
+ '',
130
+ `version: "${config.version}"`,
131
+ '',
132
+ 'project:',
133
+ ` name: "${config.project.name}"`,
134
+ ` root: "${config.project.root}"`,
135
+ ` type: "${config.project.type}"`,
136
+ '',
137
+ 'learning:',
138
+ ` enabled: ${config.learning.enabled}`,
139
+ ` embeddingModel: "${config.learning.embeddingModel}"`,
140
+ ' hnswConfig:',
141
+ ` M: ${config.learning.hnswConfig.M}`,
142
+ ` efConstruction: ${config.learning.hnswConfig.efConstruction}`,
143
+ ` efSearch: ${config.learning.hnswConfig.efSearch}`,
144
+ ` qualityThreshold: ${config.learning.qualityThreshold}`,
145
+ ` promotionThreshold: ${config.learning.promotionThreshold}`,
146
+ ` pretrainedPatterns: ${config.learning.pretrainedPatterns}`,
147
+ '',
148
+ 'routing:',
149
+ ` mode: "${config.routing.mode}"`,
150
+ ` confidenceThreshold: ${config.routing.confidenceThreshold}`,
151
+ ` feedbackEnabled: ${config.routing.feedbackEnabled}`,
152
+ '',
153
+ 'workers:',
154
+ ' enabled:',
155
+ ...config.workers.enabled.map(w => ` - "${w}"`),
156
+ ' intervals:',
157
+ ...Object.entries(config.workers.intervals).map(([k, v]) => ` ${k}: ${v}`),
158
+ ` maxConcurrent: ${config.workers.maxConcurrent}`,
159
+ ` daemonAutoStart: ${config.workers.daemonAutoStart}`,
160
+ '',
161
+ 'hooks:',
162
+ ` claudeCode: ${config.hooks.claudeCode}`,
163
+ ` preCommit: ${config.hooks.preCommit}`,
164
+ ` ciIntegration: ${config.hooks.ciIntegration}`,
165
+ '',
166
+ 'skills:',
167
+ ` install: ${config.skills.install}`,
168
+ ` installV2: ${config.skills.installV2}`,
169
+ ` installV3: ${config.skills.installV3}`,
170
+ ` overwrite: ${config.skills.overwrite}`,
171
+ '',
172
+ 'domains:',
173
+ ' enabled:',
174
+ ...config.domains.enabled.map(d => ` - "${d}"`),
175
+ ' disabled:',
176
+ ...config.domains.disabled.map(d => ` - "${d}"`),
177
+ '',
178
+ 'agents:',
179
+ ` maxConcurrent: ${config.agents.maxConcurrent}`,
180
+ ` defaultTimeout: ${config.agents.defaultTimeout}`,
181
+ '',
182
+ ];
183
+ return lines.join('\n');
184
+ }
185
+ }
186
+ // Instance exported from index.ts
187
+ //# sourceMappingURL=12-verification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"12-verification.js","sourceRoot":"","sources":["../../../src/init/phases/12-verification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAC9C,O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
+ /**
2
+ * Init Phases Index
3
+ * Exports all phase modules for the modular init system
4
+ */
5
+ export { BasePhase, PhaseRegistry, createPhaseRegistry, type InitPhase, type InitContext, type InitOptions, type PhaseResult, type V2DetectionResult, type EnhancementStatus, } from './phase-interface.js';
6
+ import { DetectionPhase } from './01-detection.js';
7
+ import { AnalysisPhase } from './02-analysis.js';
8
+ import { ConfigurationPhase } from './03-configuration.js';
9
+ import { DatabasePhase } from './04-database.js';
10
+ import { LearningPhase } from './05-learning.js';
11
+ import { CodeIntelligencePhase } from './06-code-intelligence.js';
12
+ import { HooksPhase } from './07-hooks.js';
13
+ import { MCPPhase } from './08-mcp.js';
14
+ import { AssetsPhase } from './09-assets.js';
15
+ import { WorkersPhase } from './10-workers.js';
16
+ import { ClaudeMdPhase } from './11-claude-md.js';
17
+ import { VerificationPhase } from './12-verification.js';
18
+ export { DetectionPhase, type DetectionResult } from './01-detection.js';
19
+ export { AnalysisPhase } from './02-analysis.js';
20
+ export { ConfigurationPhase } from './03-configuration.js';
21
+ export { DatabasePhase, type DatabaseResult } from './04-database.js';
22
+ export { LearningPhase, type LearningResult } from './05-learning.js';
23
+ export { CodeIntelligencePhase, type CodeIntelligenceResult } from './06-code-intelligence.js';
24
+ export { HooksPhase, type HooksResult } from './07-hooks.js';
25
+ export { MCPPhase, type MCPResult } from './08-mcp.js';
26
+ export { AssetsPhase, type AssetsResult } from './09-assets.js';
27
+ export { WorkersPhase, type WorkersResult } from './10-workers.js';
28
+ export { ClaudeMdPhase, type ClaudeMdResult } from './11-claude-md.js';
29
+ export { VerificationPhase, type VerificationResult } from './12-verification.js';
30
+ export declare const detectionPhase: DetectionPhase;
31
+ export declare const analysisPhase: AnalysisPhase;
32
+ export declare const configurationPhase: ConfigurationPhase;
33
+ export declare const databasePhase: DatabasePhase;
34
+ export declare const learningPhase: LearningPhase;
35
+ export declare const codeIntelligencePhase: CodeIntelligencePhase;
36
+ export declare const hooksPhase: HooksPhase;
37
+ export declare const mcpPhase: MCPPhase;
38
+ export declare const assetsPhase: AssetsPhase;
39
+ export declare const workersPhase: WorkersPhase;
40
+ export declare const claudeMdPhase: ClaudeMdPhase;
41
+ export declare const verificationPhase: VerificationPhase;
42
+ /**
43
+ * Get all default phases in order
44
+ */
45
+ export declare function getDefaultPhases(): (DetectionPhase | AnalysisPhase | ConfigurationPhase | DatabasePhase | LearningPhase | CodeIntelligencePhase | HooksPhase | MCPPhase | AssetsPhase | WorkersPhase | ClaudeMdPhase | VerificationPhase)[];
46
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/init/phases/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,SAAS,EACT,aAAa,EACb,mBAAmB,EACnB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBA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AAC;AACjD,eAAO,MAAM,iBAAiB,mBAA0B,CAAC;AAEzD;;GAEG;AACH,wBAAgB,gBAAgB,6MAe/B"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Init Phases Index
3
+ * Exports all phase modules for the modular init system
4
+ */
5
+ // Phase interface and base class
6
+ export { BasePhase, PhaseRegistry, createPhaseRegistry, } from './phase-interface.js';
7
+ // Individual phases - import and re-export
8
+ import { DetectionPhase } from './01-detection.js';
9
+ import { AnalysisPhase } from './02-analysis.js';
10
+ import { ConfigurationPhase } from './03-configuration.js';
11
+ import { DatabasePhase } from './04-database.js';
12
+ import { LearningPhase } from './05-learning.js';
13
+ import { CodeIntelligencePhase } from './06-code-intelligence.js';
14
+ import { HooksPhase } from './07-hooks.js';
15
+ import { MCPPhase } from './08-mcp.js';
16
+ import { AssetsPhase } from './09-assets.js';
17
+ import { WorkersPhase } from './10-workers.js';
18
+ import { ClaudeMdPhase } from './11-claude-md.js';
19
+ import { VerificationPhase } from './12-verification.js';
20
+ export { DetectionPhase } from './01-detection.js';
21
+ export { AnalysisPhase } from './02-analysis.js';
22
+ export { ConfigurationPhase } from './03-configuration.js';
23
+ export { DatabasePhase } from './04-database.js';
24
+ export { LearningPhase } from './05-learning.js';
25
+ export { CodeIntelligencePhase } from './06-code-intelligence.js';
26
+ export { HooksPhase } from './07-hooks.js';
27
+ export { MCPPhase } from './08-mcp.js';
28
+ export { AssetsPhase } from './09-assets.js';
29
+ export { WorkersPhase } from './10-workers.js';
30
+ export { ClaudeMdPhase } from './11-claude-md.js';
31
+ export { VerificationPhase } from './12-verification.js';
32
+ // Phase instances
33
+ export const detectionPhase = new DetectionPhase();
34
+ export const analysisPhase = new AnalysisPhase();
35
+ export const configurationPhase = new ConfigurationPhase();
36
+ export const databasePhase = new DatabasePhase();
37
+ export const learningPhase = new LearningPhase();
38
+ export const codeIntelligencePhase = new CodeIntelligencePhase();
39
+ export const hooksPhase = new HooksPhase();
40
+ export const mcpPhase = new MCPPhase();
41
+ export const assetsPhase = new AssetsPhase();
42
+ export const workersPhase = new WorkersPhase();
43
+ export const claudeMdPhase = new ClaudeMdPhase();
44
+ export const verificationPhase = new VerificationPhase();
45
+ /**
46
+ * Get all default phases in order
47
+ */
48
+ export function getDefaultPhases() {
49
+ return [
50
+ detectionPhase,
51
+ analysisPhase,
52
+ configurationPhase,
53
+ databasePhase,
54
+ learningPhase,
55
+ codeIntelligencePhase,
56
+ hooksPhase,
57
+ mcpPhase,
58
+ assetsPhase,
59
+ workersPhase,
60
+ claudeMdPhase,
61
+ verificationPhase,
62
+ ];
63
+ }
64
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/init/phases/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,iCAAiC;AACjC,OAAO,EACL,SAAS,EACT,aAAa,EACb,mBAAmB,GAOpB,MAAM,sBAAsB,CAAC;AAE9B,2CAA2C;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAAE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