agentic-qe 3.9.26 → 3.9.28

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 (301) hide show
  1. package/.claude/skills/skills-manifest.json +1 -1
  2. package/CHANGELOG.md +94 -0
  3. package/assets/skills/skills-manifest.json +1 -1
  4. package/dist/bridge/captured-experience-bridge.d.ts +40 -0
  5. package/dist/bridge/captured-experience-bridge.js +232 -0
  6. package/dist/cli/bundle.js +5 -5
  7. package/dist/cli/chunks/adapter-EZP2PBUO.js +2 -0
  8. package/dist/cli/chunks/{agent-booster-wasm-ZOADSKRX.js → agent-booster-wasm-V5PG6GFO.js} +2 -2
  9. package/dist/cli/chunks/{agent-handler-SPLFCIHA.js → agent-handler-7ZQNRIZC.js} +2 -2
  10. package/dist/cli/chunks/{agent-memory-branch-R6ZVL2FT.js → agent-memory-branch-KGEYSKXW.js} +2 -2
  11. package/dist/cli/chunks/aqe-learning-engine-RM4YQPRF.js +2 -0
  12. package/dist/cli/chunks/{audit-6TQQFGQN.js → audit-5A4AC2NA.js} +2 -2
  13. package/dist/cli/chunks/base-2KYCMSPN.js +2 -0
  14. package/dist/cli/chunks/{hnswlib-node-TULXUZI4.js → better-sqlite3-RZZIAME7.js} +2 -2
  15. package/dist/cli/chunks/{brain-handler-6BQCTD3M.js → brain-handler-KNERI5RC.js} +3 -3
  16. package/dist/cli/chunks/{branch-enumerator-JTESSKID.js → branch-enumerator-DGR3U73T.js} +2 -2
  17. package/dist/cli/chunks/{browser-YDZLFZNH.js → browser-Y5DC6QCK.js} +2 -2
  18. package/dist/cli/chunks/browser-workflow-FZ2BRH4H.js +2 -0
  19. package/dist/cli/chunks/{chunk-IKRLPS4M.js → chunk-2RKR6KT5.js} +2 -2
  20. package/dist/cli/chunks/{chunk-SDD3XQ7X.js → chunk-33VVPBAK.js} +1 -1
  21. package/dist/cli/chunks/{chunk-QFXOKERO.js → chunk-3ZPK7HCD.js} +1 -1
  22. package/dist/cli/chunks/{chunk-SYRUG2T7.js → chunk-4MYXPDXX.js} +1 -1
  23. package/dist/cli/chunks/chunk-4R6DN7IO.js +2 -0
  24. package/dist/cli/chunks/{chunk-TZ73IAF5.js → chunk-5KOR5ZMG.js} +2 -2
  25. package/dist/cli/chunks/{chunk-SYQZPNHQ.js → chunk-5RZ26J4J.js} +2 -2
  26. package/dist/cli/chunks/{chunk-6UFMNYQV.js → chunk-5UHMNAK2.js} +1 -1
  27. package/dist/cli/chunks/{chunk-RLAXE5HU.js → chunk-6BJ6O7JZ.js} +2 -2
  28. package/dist/cli/chunks/{chunk-PJPNRDEF.js → chunk-6WKX2O66.js} +2 -2
  29. package/dist/cli/chunks/{chunk-MW4WEMLE.js → chunk-7GLCWLZL.js} +2 -2
  30. package/dist/cli/chunks/{chunk-7T2KT74O.js → chunk-7MLACLCT.js} +2 -2
  31. package/dist/cli/chunks/{chunk-MSPY7HMF.js → chunk-7MVFQGFZ.js} +2 -2
  32. package/dist/cli/chunks/{chunk-Y3YJMKXS.js → chunk-7NDBKLDK.js} +2 -2
  33. package/dist/cli/chunks/{chunk-HKHRIPXP.js → chunk-A77JCFFC.js} +9 -9
  34. package/dist/cli/chunks/{chunk-QXQWQRZA.js → chunk-AFSVRY7S.js} +1 -1
  35. package/dist/cli/chunks/{chunk-G3KTLF57.js → chunk-AL7LMXTA.js} +2 -2
  36. package/dist/cli/chunks/{chunk-2OFL5HSB.js → chunk-B5KYS65U.js} +2 -2
  37. package/dist/cli/chunks/{chunk-FWPV44HL.js → chunk-BRCWESMJ.js} +2 -2
  38. package/dist/cli/chunks/{chunk-EPCKRFMU.js → chunk-C5RA5PDV.js} +2 -2
  39. package/dist/cli/chunks/{chunk-3QPQZJUY.js → chunk-CAZ2CIU4.js} +2 -2
  40. package/dist/cli/chunks/{chunk-FRUDEEZH.js → chunk-CCZGT2HD.js} +1 -1
  41. package/dist/cli/chunks/{chunk-RNVXTNEB.js → chunk-CGQN4R76.js} +2 -2
  42. package/dist/cli/chunks/{chunk-OFAXQGU5.js → chunk-CKDW7YFV.js} +2 -2
  43. package/dist/cli/chunks/{chunk-6AH4SN6I.js → chunk-D4YJ3SDF.js} +1 -1
  44. package/dist/cli/chunks/{chunk-JWKNHSXP.js → chunk-DHLT7OCI.js} +2 -2
  45. package/dist/cli/chunks/{chunk-EYFL6QLX.js → chunk-DMMFUB3Z.js} +2 -2
  46. package/dist/cli/chunks/{chunk-CMFRBO4N.js → chunk-DQ3FERVR.js} +3 -3
  47. package/dist/cli/chunks/{chunk-F24XTOID.js → chunk-DTS3ZD7P.js} +2 -2
  48. package/dist/cli/chunks/{chunk-UJPERPQU.js → chunk-FI2JQJYJ.js} +1 -1
  49. package/dist/cli/chunks/{chunk-LPDPGCDC.js → chunk-FQJXLJ6G.js} +2 -2
  50. package/dist/cli/chunks/{chunk-EFAN5HUX.js → chunk-FTQXXYHG.js} +2 -2
  51. package/dist/cli/chunks/{chunk-A4U4DNPR.js → chunk-FUKWABUF.js} +1 -1
  52. package/dist/cli/chunks/{chunk-GHQ6QT47.js → chunk-G4YZWVOV.js} +2 -2
  53. package/dist/cli/chunks/{chunk-EQ4IZRD5.js → chunk-G6LGV6KD.js} +2 -2
  54. package/dist/cli/chunks/{chunk-RXQX6JNQ.js → chunk-GECEU6U3.js} +2 -2
  55. package/dist/cli/chunks/{chunk-4F6RPT7N.js → chunk-HEMQ4DEF.js} +3 -3
  56. package/dist/cli/chunks/{chunk-VBJ4UQ3X.js → chunk-HL26OBVJ.js} +2 -2
  57. package/dist/cli/chunks/{chunk-YYOKX7VH.js → chunk-HQFREWNC.js} +2 -2
  58. package/dist/cli/chunks/{chunk-HSQLB4GR.js → chunk-I4TSLBEZ.js} +2 -2
  59. package/dist/cli/chunks/{chunk-4GUVB7FG.js → chunk-IJNRJY2R.js} +2 -2
  60. package/dist/cli/chunks/{chunk-ARLHD5MG.js → chunk-IVRBWQBU.js} +1 -1
  61. package/dist/cli/chunks/{chunk-4U57VG6R.js → chunk-J62GSTYJ.js} +2 -2
  62. package/dist/cli/chunks/{chunk-QQMGUORN.js → chunk-JOSEPQIU.js} +2 -2
  63. package/dist/cli/chunks/{chunk-6VRKHHYI.js → chunk-JZ5TPG5T.js} +1 -1
  64. package/dist/cli/chunks/{chunk-XAA7ZBNG.js → chunk-KCP5CS4C.js} +1 -1
  65. package/dist/cli/chunks/{chunk-AOURUJFN.js → chunk-KYPNHW4G.js} +1 -1
  66. package/dist/cli/chunks/{chunk-CYPOU765.js → chunk-LCSDE5DQ.js} +1 -1
  67. package/dist/cli/chunks/{chunk-IVNZLESN.js → chunk-LE3V4QHG.js} +2 -2
  68. package/dist/cli/chunks/{chunk-XDEF6UFY.js → chunk-LG3F5F7B.js} +2 -2
  69. package/dist/cli/chunks/{chunk-RD3CNJWR.js → chunk-LKWJUZVH.js} +2 -2
  70. package/dist/cli/chunks/{chunk-K64UL5PA.js → chunk-LM624ZDD.js} +2 -2
  71. package/dist/cli/chunks/{chunk-PPP7KZQL.js → chunk-LQDKLJBO.js} +2 -2
  72. package/dist/cli/chunks/{chunk-ETBVBV2M.js → chunk-M3FFEZFJ.js} +2 -2
  73. package/dist/cli/chunks/{chunk-YUMVG55I.js → chunk-MDXIESNH.js} +2 -2
  74. package/dist/cli/chunks/{chunk-CU5Q46NR.js → chunk-MFKVWTIY.js} +4 -4
  75. package/dist/cli/chunks/{chunk-ONYCSOAR.js → chunk-ML2XD4RS.js} +1 -1
  76. package/dist/cli/chunks/{chunk-AH3IPNOJ.js → chunk-MWVZTQOR.js} +2 -2
  77. package/dist/cli/chunks/{chunk-VC2FHUOY.js → chunk-NIWTQURH.js} +2 -2
  78. package/dist/cli/chunks/{chunk-GW5T4BSO.js → chunk-NNYRIYEZ.js} +4 -4
  79. package/dist/cli/chunks/{chunk-4EBC7ATS.js → chunk-NUN7N7MB.js} +9 -9
  80. package/dist/cli/chunks/{chunk-VPPXZORB.js → chunk-O22BAOMU.js} +1 -1
  81. package/dist/cli/chunks/{chunk-LP7ILPFQ.js → chunk-O5AZETA7.js} +2 -2
  82. package/dist/cli/chunks/{chunk-XHENTAXI.js → chunk-OE7U5SX2.js} +2 -2
  83. package/dist/cli/chunks/{chunk-U5BMUXV2.js → chunk-OQWTTKJU.js} +2 -2
  84. package/dist/cli/chunks/{chunk-5TTQNRAP.js → chunk-OVOXPXPC.js} +1 -1
  85. package/dist/cli/chunks/{chunk-AGBIQXB4.js → chunk-PHPT6QTF.js} +2 -2
  86. package/dist/cli/chunks/{chunk-F77VZ4IY.js → chunk-PMWIZ7TC.js} +2 -2
  87. package/dist/cli/chunks/{chunk-4RFODPDS.js → chunk-PNLEMDLY.js} +2 -2
  88. package/dist/cli/chunks/{chunk-TLBP7EVX.js → chunk-POOFM7MT.js} +1 -1
  89. package/dist/cli/chunks/{chunk-QU7TNCUB.js → chunk-Q2GEEKE4.js} +1 -1
  90. package/dist/cli/chunks/{chunk-C77FS4ER.js → chunk-QGQ6XWFK.js} +2 -2
  91. package/dist/cli/chunks/{chunk-MTRA6I7Y.js → chunk-QKODMLPS.js} +1 -1
  92. package/dist/cli/chunks/{chunk-N2ET2TL5.js → chunk-QMCRT3AX.js} +2 -2
  93. package/dist/cli/chunks/{chunk-FDC2ANCP.js → chunk-QY4NWJET.js} +3 -3
  94. package/dist/cli/chunks/{chunk-VHHFSVR3.js → chunk-RB5T2HNT.js} +2 -2
  95. package/dist/cli/chunks/{chunk-YCZEXLKL.js → chunk-RJGSHAHW.js} +2 -2
  96. package/dist/cli/chunks/{chunk-XYMUYLHY.js → chunk-ROXQZJ6J.js} +1 -1
  97. package/dist/cli/chunks/{chunk-N3GLRFMH.js → chunk-RPNBVYWZ.js} +1 -1
  98. package/dist/cli/chunks/{chunk-PS7YB3IV.js → chunk-RUOWR53U.js} +3 -3
  99. package/dist/cli/chunks/{chunk-KQQPUHQD.js → chunk-RX3S6244.js} +1 -1
  100. package/dist/cli/chunks/{chunk-BBALCRJM.js → chunk-S5YTV4G3.js} +1 -1
  101. package/dist/cli/chunks/{chunk-MXZY5IJA.js → chunk-S7RGN5OC.js} +1 -1
  102. package/dist/cli/chunks/{chunk-TU2A5BGA.js → chunk-SH7IVDWV.js} +2 -2
  103. package/dist/cli/chunks/{chunk-EX7UGFWX.js → chunk-SQHCTVEH.js} +2 -2
  104. package/dist/cli/chunks/{chunk-BOV44F3Z.js → chunk-SVPX24HJ.js} +2 -2
  105. package/dist/cli/chunks/{chunk-ZFLD5ATZ.js → chunk-T5YDBTD6.js} +2 -2
  106. package/dist/cli/chunks/{chunk-P6M6LNSI.js → chunk-TYR7ZETY.js} +2 -2
  107. package/dist/cli/chunks/{chunk-PSOF6DZA.js → chunk-UCQ2AFAR.js} +129 -124
  108. package/dist/cli/chunks/{chunk-AUD45G7X.js → chunk-UEADBMAA.js} +2 -2
  109. package/dist/cli/chunks/{chunk-22YZRYG4.js → chunk-UJRYZ6TO.js} +3 -3
  110. package/dist/cli/chunks/{chunk-B3KHJQ34.js → chunk-UYTAAWAO.js} +2 -2
  111. package/dist/cli/chunks/{chunk-3K2QCWFD.js → chunk-V6GKWUCS.js} +1 -1
  112. package/dist/cli/chunks/{chunk-G42KXBBG.js → chunk-V7VCP42A.js} +2 -2
  113. package/dist/cli/chunks/{chunk-C5ZA6UBI.js → chunk-VGQYRIQ2.js} +1 -1
  114. package/dist/cli/chunks/{chunk-TQBP3YGG.js → chunk-VJ7OJ7I3.js} +1 -1
  115. package/dist/cli/chunks/{chunk-5JGFDJA6.js → chunk-VK3VXDNA.js} +2 -2
  116. package/dist/cli/chunks/{chunk-MAPQ2UZ5.js → chunk-VPF2RECU.js} +2 -2
  117. package/dist/cli/chunks/{chunk-7L3F76MS.js → chunk-VQA6GDNN.js} +3 -3
  118. package/dist/cli/chunks/{chunk-TRIA62JA.js → chunk-VZEKUY3G.js} +2 -2
  119. package/dist/cli/chunks/{chunk-WCI2FMWZ.js → chunk-WQIT7I46.js} +1 -1
  120. package/dist/cli/chunks/{chunk-BFSKBIAM.js → chunk-WT2IUWYG.js} +1 -1
  121. package/dist/cli/chunks/{chunk-CBBVUZFD.js → chunk-XCLG5FGQ.js} +4 -4
  122. package/dist/cli/chunks/{chunk-PLB75ASZ.js → chunk-XCMM2NLF.js} +1 -1
  123. package/dist/cli/chunks/{chunk-2XOIJE7J.js → chunk-XLNWSI7Y.js} +2 -2
  124. package/dist/cli/chunks/{chunk-EEWGVVKH.js → chunk-Y7EPJRQT.js} +2 -2
  125. package/dist/cli/chunks/{chunk-4QUKBJAS.js → chunk-YF5JCM45.js} +2 -2
  126. package/dist/cli/chunks/{chunk-SGGYSL7J.js → chunk-YG6ZRK5N.js} +1 -1
  127. package/dist/cli/chunks/{chunk-ZUUNOGHI.js → chunk-YJPNL6K4.js} +2 -2
  128. package/dist/cli/chunks/{chunk-4I6XGKSB.js → chunk-YLZZZRB7.js} +2 -2
  129. package/dist/cli/chunks/{chunk-QUHNBIUZ.js → chunk-YUV4EMRT.js} +1 -1
  130. package/dist/cli/chunks/{chunk-4ZAOHYFA.js → chunk-ZDM6AWU6.js} +2 -2
  131. package/dist/cli/chunks/{chunk-DBSEDJ7P.js → chunk-ZH2WOQP3.js} +2 -2
  132. package/dist/cli/chunks/{chunk-WND3EYCS.js → chunk-ZJEPVWBV.js} +2 -2
  133. package/dist/cli/chunks/{chunk-ANEIDNH7.js → chunk-ZKNO5AR4.js} +2 -2
  134. package/dist/cli/chunks/{ci-EAX5WWT6.js → ci-XTEXFMLT.js} +2 -2
  135. package/dist/cli/chunks/{ci-output-JCWHRJ2A.js → ci-output-5NU5WEOG.js} +2 -2
  136. package/dist/cli/chunks/{circuit-breaker-RAEDVT33.js → circuit-breaker-UBO4B3ER.js} +2 -2
  137. package/dist/cli/chunks/{claude-flow-setup-NJAY4WXY.js → claude-flow-setup-X7SVV2YA.js} +2 -2
  138. package/dist/cli/chunks/client-SRNILWCG.js +2 -0
  139. package/dist/cli/chunks/{cline-installer-X3GCUEWC.js → cline-installer-EBLJPYJW.js} +2 -2
  140. package/dist/cli/chunks/{code-GXJ6JC6O.js → code-WO52OOGB.js} +2 -2
  141. package/dist/cli/chunks/{code-index-extractor-TTA7HZEW.js → code-index-extractor-MVR5EQ4S.js} +2 -2
  142. package/dist/cli/chunks/{codex-installer-TXMSGJHK.js → codex-installer-LR2NDWTK.js} +2 -2
  143. package/dist/cli/chunks/{completions-RSFIDY22.js → completions-J5OYMQCR.js} +2 -2
  144. package/dist/cli/chunks/{complexity-analyzer-C6244ZOI.js → complexity-analyzer-GUFXAK6I.js} +2 -2
  145. package/dist/cli/chunks/{continuedev-installer-5WQIRQW4.js → continuedev-installer-45ZDPPTK.js} +2 -2
  146. package/dist/cli/chunks/{copilot-installer-5Q64SC52.js → copilot-installer-FIKML2UD.js} +2 -2
  147. package/dist/cli/chunks/{cost-tracker-6SBRULNN.js → cost-tracker-SSI3GZ5C.js} +2 -2
  148. package/dist/cli/chunks/{coverage-X2AG3K6E.js → coverage-GQSRYPVJ.js} +3 -3
  149. package/dist/cli/chunks/cross-domain-router-QCOROKUM.js +2 -0
  150. package/dist/cli/chunks/{cursor-installer-VHZ5LEPG.js → cursor-installer-WRIQ2MXB.js} +2 -2
  151. package/dist/cli/chunks/{daemon-CDQXWIV4.js → daemon-TKQOU66X.js} +3 -3
  152. package/dist/cli/chunks/{dag-attention-scheduler-33UWNTSB.js → dag-attention-scheduler-DZ4Y7G3P.js} +2 -2
  153. package/dist/cli/chunks/{detect-UDWTKRQL.js → detect-DLXIZ3JQ.js} +2 -2
  154. package/dist/cli/chunks/{dist-node-CKTPNPBG.js → dist-node-3QZ37HLE.js} +2 -2
  155. package/dist/cli/chunks/{domain-handler-5J4AH4XR.js → domain-handler-F2XFKJOG.js} +2 -2
  156. package/dist/cli/chunks/{domain-transfer-P6VPN56R.js → domain-transfer-NZNJ6O5Y.js} +2 -2
  157. package/dist/cli/chunks/dream-P5YCSXOG.js +2 -0
  158. package/dist/cli/chunks/{embed-and-insert-pattern-2YFFI7IN.js → embed-and-insert-pattern-IXQSPD2Q.js} +2 -2
  159. package/dist/cli/chunks/{eval-K7VFIO2T.js → eval-5VQNSHMZ.js} +2 -2
  160. package/dist/cli/chunks/{experience-capture-middleware-P4RQW7JV.js → experience-capture-middleware-SQQVSGWT.js} +3 -3
  161. package/dist/cli/chunks/{fast-paths-T27YLQWQ.js → fast-paths-XZ4PMW4T.js} +2 -2
  162. package/dist/cli/chunks/{feature-flags-YFPFETDZ.js → feature-flags-I3E33SWO.js} +2 -2
  163. package/dist/cli/chunks/{feature-flags-HHQNCU6V.js → feature-flags-VYNQQIWP.js} +2 -2
  164. package/dist/cli/chunks/{file-discovery-ZKNENDOJ.js → file-discovery-VBJYSQEB.js} +2 -2
  165. package/dist/cli/chunks/{fleet-N5OTMFIN.js → fleet-R24REKY3.js} +4 -4
  166. package/dist/cli/chunks/{gnn-wrapper-D6L4FIWY.js → gnn-wrapper-ZSS765OF.js} +2 -2
  167. package/dist/cli/chunks/{heartbeat-handler-5RDU3KKK.js → heartbeat-handler-DXMMYI3L.js} +4 -4
  168. package/dist/cli/chunks/{heartbeat-scheduler-FALV24GQ.js → heartbeat-scheduler-CAXANO7U.js} +2 -2
  169. package/dist/cli/chunks/hnsw-adapter-CR22XKGP.js +2 -0
  170. package/dist/cli/chunks/hnsw-index-BTN322XC.js +2 -0
  171. package/dist/cli/chunks/{hnsw-legacy-bridge-ARD7KA3G.js → hnsw-legacy-bridge-EU46A4HQ.js} +2 -2
  172. package/dist/cli/chunks/{better-sqlite3-QIKWKEGD.js → hnswlib-node-K5N5YEYS.js} +2 -2
  173. package/dist/cli/chunks/{hooks-6HA23JHQ.js → hooks-2AFKHPAH.js} +30 -30
  174. package/dist/cli/chunks/{hybrid-router-XUYQW7FJ.js → hybrid-router-TLHKB3V6.js} +2 -2
  175. package/dist/cli/chunks/{hypergraph-engine-OGGXYQAO.js → hypergraph-engine-QKIUFDJP.js} +2 -2
  176. package/dist/cli/chunks/{hypergraph-handler-UFV3XYVX.js → hypergraph-handler-CT77BGUK.js} +3 -3
  177. package/dist/cli/chunks/impact-analyzer-ZYIZG4GS.js +2 -0
  178. package/dist/cli/chunks/{init-handler-VUSXGONQ.js → init-handler-L5Y4EZPZ.js} +8 -8
  179. package/dist/cli/chunks/init-wizard-2GJYCDEQ.js +2 -0
  180. package/dist/cli/chunks/kernel-GR44AXQ6.js +2 -0
  181. package/dist/cli/chunks/{kilocode-installer-C2JMSYAU.js → kilocode-installer-5XLS62BE.js} +2 -2
  182. package/dist/cli/chunks/{kiro-installer-6LJFFEEZ.js → kiro-installer-YNGEFQJ6.js} +2 -2
  183. package/dist/cli/chunks/knowledge-graph-23VGRP7G.js +2 -0
  184. package/dist/cli/chunks/{learning-4B624JV3.js → learning-H4PJXEZT.js} +3 -3
  185. package/dist/cli/chunks/{llm-router-QUOLZECD.js → llm-router-5V7S4RBP.js} +4 -4
  186. package/dist/cli/chunks/{load-MIQWBMGE.js → load-MERCK5J7.js} +2 -2
  187. package/dist/cli/chunks/load-test-5O3AB7JK.js +2 -0
  188. package/dist/cli/chunks/{mcp-MBJWNXDM.js → mcp-AY3EW3M4.js} +2 -2
  189. package/dist/cli/chunks/{memory-WX3XHQZP.js → memory-L7QEPZ3O.js} +5 -5
  190. package/dist/cli/chunks/memory-backend-JMFE5AFK.js +2 -0
  191. package/dist/cli/chunks/{memory-handlers-Q3XCN5SC.js → memory-handlers-3MMKDYQH.js} +2 -2
  192. package/dist/cli/chunks/{multi-model-executor-RLY7OQOG.js → multi-model-executor-MCYVGMYJ.js} +2 -2
  193. package/dist/cli/chunks/{opencode-installer-JATQNZWA.js → opencode-installer-NSJCDEG7.js} +2 -2
  194. package/dist/cli/chunks/{orchestrator-7BNG32I2.js → orchestrator-PSFROJTM.js} +5 -5
  195. package/dist/cli/chunks/{pipeline-ORKGL7DP.js → pipeline-TXZZCEOG.js} +2 -2
  196. package/dist/cli/chunks/{platform-4SLJDRVL.js → platform-PUFZFG66.js} +2 -2
  197. package/dist/cli/chunks/{plugin-V6FRBF4W.js → plugin-ALNATTS7.js} +2 -2
  198. package/dist/cli/chunks/{prime-radiant-advanced-wasm-NA7AXKCA.js → prime-radiant-advanced-wasm-PZZRWJEK.js} +2 -2
  199. package/dist/cli/chunks/protocol-executor-J6KJRPXK.js +2 -0
  200. package/dist/cli/chunks/{protocol-handler-RSJOZ4XL.js → protocol-handler-WR4JQLSR.js} +2 -2
  201. package/dist/cli/chunks/{prove-2ZMKUODH.js → prove-AI7HVVJW.js} +2 -2
  202. package/dist/cli/chunks/{provider-manager-PSPAFCK7.js → provider-manager-XWDJJTRQ.js} +2 -2
  203. package/dist/cli/chunks/qe-reasoning-bank-A2Z7QLTV.js +2 -0
  204. package/dist/cli/chunks/{quality-6PZOOQSK.js → quality-W5K6U7NU.js} +2 -2
  205. package/dist/cli/chunks/queen-coordinator-RSASVM4O.js +2 -0
  206. package/dist/cli/chunks/{real-embeddings-BGNTSKHD.js → real-embeddings-Y65TLGVT.js} +2 -2
  207. package/dist/cli/chunks/{roocode-installer-NOHRQJIP.js → roocode-installer-2INES4NP.js} +2 -2
  208. package/dist/cli/chunks/router-LIO2DAHL.js +2 -0
  209. package/dist/cli/chunks/routing-feedback-WQ4XI7TT.js +2 -0
  210. package/dist/cli/chunks/{routing-handler-ZAOGNENU.js → routing-handler-IR4K3W3W.js} +2 -2
  211. package/dist/cli/chunks/{ruvector-commands-5K3Q4N5H.js → ruvector-commands-JGIJKLE5.js} +2 -2
  212. package/dist/cli/chunks/{rvf-dual-writer-NWFQC4KN.js → rvf-dual-writer-3RPYL6GB.js} +2 -2
  213. package/dist/cli/chunks/{rvf-migration-adapter-MS7QGBWK.js → rvf-migration-adapter-DZO5RSBU.js} +2 -2
  214. package/dist/cli/chunks/{rvf-migration-coordinator-YUBSSB6Z.js → rvf-migration-coordinator-5OIXOLND.js} +2 -2
  215. package/dist/cli/chunks/rvf-native-adapter-E7ODRU4B.js +2 -0
  216. package/dist/cli/chunks/safe-db-BW2OSAL7.js +2 -0
  217. package/dist/cli/chunks/schedule-JF75BBFQ.js +2 -0
  218. package/dist/cli/chunks/scheduler-EYCKXDGY.js +2 -0
  219. package/dist/cli/chunks/{security-BJWJWQRB.js → security-6I65LIPS.js} +3 -3
  220. package/dist/cli/chunks/shared-rvf-adapter-4Z3AKN2H.js +2 -0
  221. package/dist/cli/chunks/{shared-rvf-dual-writer-LEBD3EHA.js → shared-rvf-dual-writer-LEY65TEP.js} +2 -2
  222. package/dist/cli/chunks/sqlite-persistence-RUVPC4L5.js +2 -0
  223. package/dist/cli/chunks/{status-handler-XANOAVIB.js → status-handler-DOJ2JTXS.js} +2 -2
  224. package/dist/cli/chunks/{structural-health-TZA7PJ2T.js → structural-health-GSWBOWZR.js} +2 -2
  225. package/dist/cli/chunks/{sync-MKNYPUYP.js → sync-VJ7W4F4G.js} +2 -2
  226. package/dist/cli/chunks/{task-handler-KXSUKNQV.js → task-handler-AETQISNK.js} +2 -2
  227. package/dist/cli/chunks/{task-handlers-54MMRT3D.js → task-handlers-OQSZGWCK.js} +3 -3
  228. package/dist/cli/chunks/{test-AKS5AAT7.js → test-G57YV5WH.js} +4 -4
  229. package/dist/cli/chunks/{test-scheduling-OA7UPWQ5.js → test-scheduling-ONWDZENP.js} +3 -3
  230. package/dist/cli/chunks/{token-bootstrap-ZIUNRF3E.js → token-bootstrap-CTG7NE77.js} +2 -2
  231. package/dist/cli/chunks/{token-usage-IJENSXPQ.js → token-usage-YDHUAMJQ.js} +2 -2
  232. package/dist/cli/chunks/{transformers-CACTFP7H.js → transformers-W7SFGSLI.js} +2 -2
  233. package/dist/cli/chunks/{tree-sitter-wasm-parser-4H4UVHAQ.js → tree-sitter-wasm-parser-K7UHIIO2.js} +2 -2
  234. package/dist/cli/chunks/{types-AGACOWV3.js → types-EIZ5IMMV.js} +2 -2
  235. package/dist/cli/chunks/unified-memory-XE5LJO5T.js +2 -0
  236. package/dist/cli/chunks/unified-memory-hnsw-DB6HGWEU.js +2 -0
  237. package/dist/cli/chunks/unified-persistence-XGXZG42H.js +2 -0
  238. package/dist/cli/chunks/{upgrade-EKE25VPL.js → upgrade-TIQBZYJ7.js} +2 -2
  239. package/dist/cli/chunks/{validate-BZTYZQGP.js → validate-IIN2ODDK.js} +2 -2
  240. package/dist/cli/chunks/{validate-swarm-GZANKJ7M.js → validate-swarm-V6Y4I77Q.js} +2 -2
  241. package/dist/cli/chunks/{vibium-5X7QY25W.js → vibium-NMIWAEGL.js} +2 -2
  242. package/dist/cli/chunks/visual-security-NF4MBB32.js +2 -0
  243. package/dist/cli/chunks/{web-tree-sitter-KDFT6ZUY.js → web-tree-sitter-BGIECWPA.js} +2 -2
  244. package/dist/cli/chunks/{windsurf-installer-QFZJISMO.js → windsurf-installer-WTZG4PZD.js} +2 -2
  245. package/dist/cli/chunks/{witness-chain-ESSANJ4X.js → witness-chain-EQ2RE7CZ.js} +2 -2
  246. package/dist/cli/chunks/witness-chain-ZIE7GCJI.js +2 -0
  247. package/dist/cli/chunks/{workflow-EQFV2P66.js → workflow-3ZDRY6TE.js} +4 -4
  248. package/dist/cli/chunks/workflow-orchestrator-Z4KE75MK.js +2 -0
  249. package/dist/cli/chunks/{wrappers-RKJJDJLC.js → wrappers-FOP76K6J.js} +2 -2
  250. package/dist/cli/commands/fleet.js +2 -0
  251. package/dist/cli/commands/hooks-handlers/hooks-shared.js +39 -6
  252. package/dist/cli/handlers/init-handler.js +2 -0
  253. package/dist/cli/index.js +3 -0
  254. package/dist/kernel/interfaces.d.ts +14 -0
  255. package/dist/kernel/kernel.d.ts +1 -0
  256. package/dist/kernel/kernel.js +42 -0
  257. package/dist/learning/pattern-promotion.d.ts +6 -0
  258. package/dist/learning/pattern-promotion.js +5 -0
  259. package/dist/learning/qe-reasoning-bank-types.d.ts +12 -3
  260. package/dist/learning/qe-reasoning-bank.d.ts +10 -3
  261. package/dist/learning/qe-reasoning-bank.js +28 -7
  262. package/dist/mcp/bundle.js +323 -318
  263. package/dist/optimization/index.d.ts +0 -2
  264. package/dist/optimization/index.js +0 -2
  265. package/dist/workers/workers/learning-consolidation.js +9 -3
  266. package/package.json +1 -1
  267. package/dist/cli/chunks/adapter-LIPKRUFH.js +0 -2
  268. package/dist/cli/chunks/aqe-learning-engine-XJGJ6YS7.js +0 -2
  269. package/dist/cli/chunks/base-22RFSMJU.js +0 -2
  270. package/dist/cli/chunks/browser-workflow-ST7DX7KA.js +0 -2
  271. package/dist/cli/chunks/chunk-RSNZQ3MN.js +0 -2
  272. package/dist/cli/chunks/client-6463JNJR.js +0 -2
  273. package/dist/cli/chunks/cross-domain-router-OYUCD42M.js +0 -2
  274. package/dist/cli/chunks/dream-R76KD347.js +0 -2
  275. package/dist/cli/chunks/hnsw-adapter-CYWGI732.js +0 -2
  276. package/dist/cli/chunks/hnsw-index-UOYT3QKQ.js +0 -2
  277. package/dist/cli/chunks/impact-analyzer-PWV7CJUA.js +0 -2
  278. package/dist/cli/chunks/init-wizard-DKIFAPJJ.js +0 -2
  279. package/dist/cli/chunks/kernel-WQL2MUBH.js +0 -2
  280. package/dist/cli/chunks/knowledge-graph-U5OZDWGT.js +0 -2
  281. package/dist/cli/chunks/load-test-D2CQYRZQ.js +0 -2
  282. package/dist/cli/chunks/memory-backend-HFIGDCZE.js +0 -2
  283. package/dist/cli/chunks/protocol-executor-LTJIEFVG.js +0 -2
  284. package/dist/cli/chunks/qe-reasoning-bank-ZJ56AWO2.js +0 -2
  285. package/dist/cli/chunks/queen-coordinator-CZA7SS4O.js +0 -2
  286. package/dist/cli/chunks/router-N23IDBEQ.js +0 -2
  287. package/dist/cli/chunks/routing-feedback-IADXJ4RV.js +0 -2
  288. package/dist/cli/chunks/rvf-native-adapter-MOR7NUA5.js +0 -2
  289. package/dist/cli/chunks/safe-db-IRAUFZTC.js +0 -2
  290. package/dist/cli/chunks/schedule-PKUUCNCA.js +0 -2
  291. package/dist/cli/chunks/scheduler-NE4NP4W5.js +0 -2
  292. package/dist/cli/chunks/shared-rvf-adapter-OTON2BMV.js +0 -2
  293. package/dist/cli/chunks/sqlite-persistence-DXFBYN5L.js +0 -2
  294. package/dist/cli/chunks/unified-memory-4M3V7XL6.js +0 -2
  295. package/dist/cli/chunks/unified-memory-hnsw-6IKIDXEW.js +0 -2
  296. package/dist/cli/chunks/unified-persistence-XJ4D23TB.js +0 -2
  297. package/dist/cli/chunks/visual-security-2X63QHFJ.js +0 -2
  298. package/dist/cli/chunks/witness-chain-MWIG363M.js +0 -2
  299. package/dist/cli/chunks/workflow-orchestrator-B3ECPAFI.js +0 -2
  300. package/dist/optimization/qe-workers.d.ts +0 -193
  301. package/dist/optimization/qe-workers.js +0 -692
@@ -939,7 +939,7 @@
939
939
  },
940
940
  "metadata": {
941
941
  "generatedBy": "Agentic QE Fleet",
942
- "fleetVersion": "3.9.26",
942
+ "fleetVersion": "3.9.28",
943
943
  "manifestVersion": "1.4.0",
944
944
  "lastUpdated": "2026-04-13T00:00:00.000Z",
945
945
  "contributors": [
package/CHANGELOG.md CHANGED
@@ -5,6 +5,100 @@ All notable changes to the Agentic QE project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [3.9.28] - 2026-05-14
9
+
10
+ Hotfix for v3.9.27 — bridge subscriber wiring.
11
+
12
+ ### Fixed
13
+
14
+ - **`CapturedExperienceBridge` published events to a kernel with zero
15
+ subscribers** (#482). The v3.9.27 bridge correctly drained
16
+ `captured_experiences` rows and advanced its cursor, but no
17
+ `learning:experience:*` keys appeared and the `learning-consolidation`
18
+ worker still saw nothing. Root cause: the kernel default
19
+ `lazyLoading: true` meant domain plugins weren't loaded by the time
20
+ `kernel.initialize()` started the bridge, so each plugin's
21
+ `subscribeToEvents()` had not yet registered handlers on the eventBus.
22
+ The bridge's immediate drain published into a kernel with no listeners,
23
+ the cursor advanced past those rows, and they were silently lost.
24
+
25
+ Fix: `kernel.initialize()` now eagerly loads all enabled domain plugins
26
+ before starting the bridge, ensuring subscribers exist when the first
27
+ drain runs. CLI commands that don't need event-driven domain reactions
28
+ opt out with `enableExperienceBridge: false` to preserve fast startup.
29
+ Added an end-to-end integration test (real kernel + real plugin + real
30
+ drain → asserts `kv_store` contains a `learning:experience:*` key) so
31
+ the same regression can't slip through unit tests again.
32
+
33
+ ## [3.9.27] - 2026-05-14
34
+
35
+ Two architectural fixes from downstream investigations against v3.9.26.
36
+
37
+ ### Fixed
38
+
39
+ - **`session-start` hook could leak unbounded writes to `patterns.rvf`** (#478) —
40
+ `getHooksSystem()` bounded `ReasoningBank.initialize()` with `Promise.race`
41
+ against a 10 s timeout. When the timeout won, the losing init promise kept
42
+ running in the background and continued to append to the RVF pattern store
43
+ indefinitely (downstream report: 43.8 GB written in 29 minutes, disk
44
+ filled, `SIGKILL` required). Threaded an `AbortSignal` through
45
+ `ReasoningBank.initialize()`, `loadPretrainedPatterns()`, and
46
+ `seedCrossDomainPatterns()` — every awaited step now calls
47
+ `signal.throwIfAborted()` before doing work, so the timeout actually
48
+ cancels the bootstrap instead of leaking past it. The hook caller was
49
+ switched from `Promise.race` to `AbortController` + `setTimeout`. The
50
+ hybrid backend init still uses race semantics for now (its own signature
51
+ refactor is separate), but the leaked promise's resulting backend is
52
+ disposed once it resolves so SQLite handles aren't held open in the
53
+ background.
54
+
55
+ - **Hook-driven activity never reached the 13 domain plugins** (#479) — the
56
+ hook subprocess fires events on `hookRegistry`, the kernel-side domain
57
+ plugins listen on `eventBus`, and the two systems were not bridged. In
58
+ default `aqe init --auto` deployments (Claude Code hook driven), every
59
+ domain plugin's `subscribeToEvents()` listened to events that nothing
60
+ emitted; `learning:pattern:*` keys stayed at zero, `qe_learning_optimize`
61
+ reported `experiencesProcessed: 0`, and the `learning-consolidation`
62
+ worker logged "No learning patterns found" on every cycle. Added a
63
+ `CapturedExperienceBridge` that runs inside `QEKernelImpl` and drains the
64
+ shared `captured_experiences` SQLite table (already populated by hooks
65
+ and MCP wrapped handlers) into the kernel's `eventBus` as
66
+ `learning.ExperienceCaptured` plus domain-specific events. Cursor-based
67
+ drain survives kernel restarts and never republishes. Domain plugins now
68
+ receive hook activity transparently in every kernel-owning process
69
+ (CLI, MCP server).
70
+
71
+ ### Removed
72
+
73
+ - **Dead `v3-qe-bridge.sh` script and its config reference** — already
74
+ declared dead in the v3.6.6 release notes; targeted a `v3/dist/` path
75
+ that no longer exists in the flat repo layout, so it silently no-op'd
76
+ every invocation. Removed `.claude/hooks/v3-qe-bridge.sh` and the
77
+ `AQE_V3_HOOK_BRIDGE` env var in `.claude/settings.json`.
78
+
79
+ - **Obsolete planning docs** — `docs/LEARNING_IMPROVEMENT_PLAN.md` and
80
+ `docs/LEARNING_SYSTEMS_ANALYSIS.md` were v3-alpha era artifacts that
81
+ documented the broken bridge as the integration mechanism and referenced
82
+ paths (`v3/src/...`) that haven't existed since the dist flatten.
83
+
84
+ - **Five orphan workers in `src/optimization/qe-workers.ts`** (949 LOC) and
85
+ their tautological tests (407 LOC). `PatternConsolidatorWorker`,
86
+ `DreamConsolidatorWorker`, `CoverageGapScannerWorker`,
87
+ `FlakyTestDetectorWorker`, `RoutingAccuracyMonitorWorker` had zero
88
+ internal callers and no documented use case. Their functionality is
89
+ fully covered by the live `LearningConsolidationWorker`
90
+ (pattern consolidation, dream cycles via `runDreamCycle()`, confidence
91
+ decay, cross-domain identification, Phase 7 continuous learning loop)
92
+ and `FlakyDetectorWorker` (flaky tests). Re-exports in
93
+ `src/optimization/index.ts` cleaned up.
94
+
95
+ ### Changed
96
+
97
+ - **`learning-consolidation` worker error message** now explains the
98
+ bridge dependency instead of telling operators to "ensure the
99
+ learning-optimization domain has stored pattern data" — that message
100
+ predated the bridge fix and gaslighted users on fresh installs.
101
+
8
102
  ## [3.9.26] - 2026-05-13
9
103
 
10
104
  **Ten learning-pipeline fixes reported by Jordi against v3.9.24.** Most are
@@ -939,7 +939,7 @@
939
939
  },
940
940
  "metadata": {
941
941
  "generatedBy": "Agentic QE Fleet",
942
- "fleetVersion": "3.9.26",
942
+ "fleetVersion": "3.9.28",
943
943
  "manifestVersion": "1.4.0",
944
944
  "lastUpdated": "2026-04-13T00:00:00.000Z",
945
945
  "contributors": [
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Captured-Experience Bridge — Issue #479
3
+ *
4
+ * Drains rows from the `captured_experiences` SQLite table (populated by
5
+ * hook subprocesses that fire on every Claude Code Edit/Task/Bash) and
6
+ * republishes each row as a `DomainEvent` on the kernel-side `eventBus`.
7
+ *
8
+ * This is the *only* path by which hook-driven activity reaches the 13
9
+ * domain plugins' `subscribeToEvents()` registrations. Hook subprocesses
10
+ * are short-lived `npx aqe hooks ...` processes — they have no eventBus
11
+ * and no domain plugins, so a direct `hookRegistry → eventBus` subscriber
12
+ * inside `getHooksSystem()` cannot work. The shared state hooks leave
13
+ * behind is the SQLite table; this bridge is the consumer of that queue.
14
+ *
15
+ * Wired from `QEKernelImpl.initialize()` so every process that owns a
16
+ * kernel (CLI commands, MCP server) automatically picks up new hook
17
+ * captures and fans them out as domain events.
18
+ */
19
+ import type { EventBus, MemoryBackend } from '../kernel/interfaces.js';
20
+ export interface CapturedExperienceBridgeOptions {
21
+ intervalMs?: number;
22
+ batchSize?: number;
23
+ }
24
+ export declare class CapturedExperienceBridge {
25
+ private readonly eventBus;
26
+ private readonly memory;
27
+ private cursor;
28
+ private intervalId;
29
+ private draining;
30
+ private readonly intervalMs;
31
+ private readonly batchSize;
32
+ constructor(eventBus: EventBus, memory: MemoryBackend, options?: CapturedExperienceBridgeOptions);
33
+ start(): Promise<void>;
34
+ stop(): Promise<void>;
35
+ /** Visible for tests — perform one drain pass on demand. */
36
+ drainOnce(): Promise<number>;
37
+ private drainSafe;
38
+ private drain;
39
+ }
40
+ //# sourceMappingURL=captured-experience-bridge.d.ts.map
@@ -0,0 +1,232 @@
1
+ /**
2
+ * Captured-Experience Bridge — Issue #479
3
+ *
4
+ * Drains rows from the `captured_experiences` SQLite table (populated by
5
+ * hook subprocesses that fire on every Claude Code Edit/Task/Bash) and
6
+ * republishes each row as a `DomainEvent` on the kernel-side `eventBus`.
7
+ *
8
+ * This is the *only* path by which hook-driven activity reaches the 13
9
+ * domain plugins' `subscribeToEvents()` registrations. Hook subprocesses
10
+ * are short-lived `npx aqe hooks ...` processes — they have no eventBus
11
+ * and no domain plugins, so a direct `hookRegistry → eventBus` subscriber
12
+ * inside `getHooksSystem()` cannot work. The shared state hooks leave
13
+ * behind is the SQLite table; this bridge is the consumer of that queue.
14
+ *
15
+ * Wired from `QEKernelImpl.initialize()` so every process that owns a
16
+ * kernel (CLI commands, MCP server) automatically picks up new hook
17
+ * captures and fans them out as domain events.
18
+ */
19
+ import { randomUUID } from 'crypto';
20
+ import { getUnifiedMemory } from '../kernel/unified-memory.js';
21
+ /** Cursor key in the kernel's MemoryBackend so the bridge resumes after restart. */
22
+ const CURSOR_KEY = 'aqe/bridge/captured-experiences/cursor';
23
+ /** Default polling cadence — short enough that domain plugins react quickly,
24
+ * long enough that idle systems don't burn CPU. */
25
+ const DEFAULT_INTERVAL_MS = 5_000;
26
+ /** Cap rows per drain so a backlog doesn't block the event loop. */
27
+ const DEFAULT_BATCH_SIZE = 100;
28
+ export class CapturedExperienceBridge {
29
+ eventBus;
30
+ memory;
31
+ cursor = 0;
32
+ intervalId;
33
+ draining = false;
34
+ intervalMs;
35
+ batchSize;
36
+ constructor(eventBus, memory, options = {}) {
37
+ this.eventBus = eventBus;
38
+ this.memory = memory;
39
+ this.intervalMs = options.intervalMs ?? DEFAULT_INTERVAL_MS;
40
+ this.batchSize = options.batchSize ?? DEFAULT_BATCH_SIZE;
41
+ }
42
+ async start() {
43
+ if (this.intervalId)
44
+ return;
45
+ // Restore cursor so we don't re-publish events from prior process lifetimes.
46
+ const stored = await this.memory.get(CURSOR_KEY);
47
+ this.cursor = typeof stored === 'number' ? stored : 0;
48
+ // Drain immediately so events sitting in the table from the last hook
49
+ // burst reach the domains without waiting for the first tick.
50
+ await this.drainSafe();
51
+ this.intervalId = setInterval(() => {
52
+ void this.drainSafe();
53
+ }, this.intervalMs);
54
+ // Don't keep the process alive solely for this poller.
55
+ this.intervalId.unref?.();
56
+ }
57
+ async stop() {
58
+ if (this.intervalId) {
59
+ clearInterval(this.intervalId);
60
+ this.intervalId = undefined;
61
+ }
62
+ }
63
+ /** Visible for tests — perform one drain pass on demand. */
64
+ async drainOnce() {
65
+ return this.drainSafe();
66
+ }
67
+ async drainSafe() {
68
+ if (this.draining)
69
+ return 0;
70
+ this.draining = true;
71
+ try {
72
+ return await this.drain();
73
+ }
74
+ catch (err) {
75
+ // Bridge is best-effort: never crash the kernel because of a stale
76
+ // schema or a transient SQLite lock. Surface to console so operators
77
+ // can spot persistent failures.
78
+ console.warn('[CapturedExperienceBridge] drain failed:', err instanceof Error ? err.message : err);
79
+ return 0;
80
+ }
81
+ finally {
82
+ this.draining = false;
83
+ }
84
+ }
85
+ async drain() {
86
+ const um = getUnifiedMemory();
87
+ if (!um.isInitialized())
88
+ return 0;
89
+ const db = um.getDatabase();
90
+ // Skip cleanly if the schema isn't there yet (kernel started before any
91
+ // hook ever fired in this project).
92
+ const tableExists = db
93
+ .prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='captured_experiences'")
94
+ .get();
95
+ if (!tableExists)
96
+ return 0;
97
+ const rows = db
98
+ .prepare(`SELECT rowid, id, task, agent, domain, success, quality,
99
+ duration_ms, source, completed_at
100
+ FROM captured_experiences
101
+ WHERE rowid > ?
102
+ ORDER BY rowid ASC
103
+ LIMIT ?`)
104
+ .all(this.cursor, this.batchSize);
105
+ if (rows.length === 0)
106
+ return 0;
107
+ let published = 0;
108
+ for (const row of rows) {
109
+ for (const event of mapRowToEvents(row)) {
110
+ try {
111
+ await this.eventBus.publish(event);
112
+ published += 1;
113
+ }
114
+ catch (err) {
115
+ // One bad subscriber must not stall the whole drain.
116
+ console.warn(`[CapturedExperienceBridge] publish failed for ${event.type}:`, err instanceof Error ? err.message : err);
117
+ }
118
+ }
119
+ this.cursor = row.rowid;
120
+ }
121
+ await this.memory.set(CURSOR_KEY, this.cursor);
122
+ return published;
123
+ }
124
+ }
125
+ // ----------------------------------------------------------------------
126
+ // Row → DomainEvent mapping
127
+ // ----------------------------------------------------------------------
128
+ //
129
+ // Every captured experience yields a `learning.ExperienceCaptured` event
130
+ // (the learning-optimization domain consumes this for its replay/dream
131
+ // pipeline). When the row's `domain` field matches a known QE domain, we
132
+ // also emit the domain-specific event the corresponding plugin listens
133
+ // for in `subscribeToEvents()`.
134
+ //
135
+ // Mapping is intentionally narrow: we only emit events that at least one
136
+ // domain plugin actually subscribes to (verified at issue #479 filing).
137
+ // Adding a new event here only makes sense after a subscriber exists.
138
+ function mapRowToEvents(row) {
139
+ const timestamp = parseTimestamp(row.completed_at);
140
+ const correlationId = row.id;
141
+ const events = [];
142
+ // 1. Universal experience event — always emit.
143
+ events.push(buildEvent({
144
+ type: 'learning.ExperienceCaptured',
145
+ source: 'learning-optimization',
146
+ correlationId,
147
+ timestamp,
148
+ payload: {
149
+ experienceId: row.id,
150
+ domain: row.domain ?? '',
151
+ agent: row.agent ?? '',
152
+ task: row.task ?? '',
153
+ success: row.success === 1,
154
+ quality: row.quality,
155
+ durationMs: row.duration_ms,
156
+ sourceHook: row.source ?? '',
157
+ },
158
+ }));
159
+ // 2. Domain-specific event — fan out by `domain` field.
160
+ const domainSpecific = mapDomainSpecificEvent(row, timestamp, correlationId);
161
+ if (domainSpecific)
162
+ events.push(domainSpecific);
163
+ return events;
164
+ }
165
+ function mapDomainSpecificEvent(row, timestamp, correlationId) {
166
+ const basePayload = {
167
+ experienceId: row.id,
168
+ agent: row.agent ?? '',
169
+ task: row.task ?? '',
170
+ success: row.success === 1,
171
+ quality: row.quality,
172
+ durationMs: row.duration_ms,
173
+ };
174
+ switch (row.domain) {
175
+ case 'test-generation':
176
+ return buildEvent({
177
+ type: 'test-generation.TestGenerated',
178
+ source: 'test-generation',
179
+ correlationId,
180
+ timestamp,
181
+ payload: basePayload,
182
+ });
183
+ case 'test-execution':
184
+ return buildEvent({
185
+ type: 'test-execution.TestRunCompleted',
186
+ source: 'test-execution',
187
+ correlationId,
188
+ timestamp,
189
+ payload: basePayload,
190
+ });
191
+ case 'coverage-analysis':
192
+ // Successful coverage runs publish CoverageReportCreated;
193
+ // failed/incomplete runs publish CoverageGapDetected so the
194
+ // subscribers (code-intelligence, test-generation) can react.
195
+ return buildEvent({
196
+ type: row.success === 1
197
+ ? 'coverage-analysis.CoverageReportCreated'
198
+ : 'coverage-analysis.CoverageGapDetected',
199
+ source: 'coverage-analysis',
200
+ correlationId,
201
+ timestamp,
202
+ payload: basePayload,
203
+ });
204
+ case 'code-intelligence':
205
+ // Hook-fired edits surface here as FileChanged; the plugin's
206
+ // handler decides whether to re-index based on payload.
207
+ return buildEvent({
208
+ type: 'code-intelligence.FileChanged',
209
+ source: 'code-intelligence',
210
+ correlationId,
211
+ timestamp,
212
+ payload: basePayload,
213
+ });
214
+ default:
215
+ return null;
216
+ }
217
+ }
218
+ function buildEvent(input) {
219
+ return {
220
+ id: randomUUID(),
221
+ type: input.type,
222
+ timestamp: input.timestamp,
223
+ source: input.source,
224
+ correlationId: input.correlationId,
225
+ payload: input.payload,
226
+ };
227
+ }
228
+ function parseTimestamp(value) {
229
+ const parsed = new Date(value);
230
+ return Number.isNaN(parsed.getTime()) ? new Date() : parsed;
231
+ }
232
+ //# sourceMappingURL=captured-experience-bridge.js.map
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
- import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.26");process.exit(0)}
3
- import{a as y}from"./chunks/chunk-SDD3XQ7X.js";import{a as f,c as A}from"./chunks/chunk-TZ73IAF5.js";import"./chunks/chunk-ARLHD5MG.js";A();import{Command as P}from"commander";import m from"chalk";function h(e,i,a,s){let l=e.command(i).description(a);if(s)for(let u of s)l.alias(u);return l.helpOption(!1),l.allowUnknownOption(!0),l.allowExcessArguments(!0),l}function w(e,i){let a=e.commands,s=a.indexOf(i);s>=0&&a.splice(s,1)}function o(e,i){let a=h(e,i.name,i.description,i.aliases);a.action(async()=>{try{let s=await i.factory();w(e,a),e.addCommand(s),await e.parseAsync(process.argv)}catch(s){console.error(`Failed to load command '${i.name}':`,s instanceof Error?s.message:s),process.exit(1)}})}function d(e,i,a,s,l,u){let g=h(e,i,a,u);g.action(async()=>{try{let p=await s();w(e,g),p.register(e,l),await e.parseAsync(process.argv)}catch(p){console.error(`Failed to load command '${i}':`,p instanceof Error?p.message:p),process.exit(1)}})}var S=["[UnifiedMemory]","[HybridBackend]","[UnifiedPersistence]","[PersistentSONAEngine]","[QueenGovernance]","[QueenCoordinator]","[Queen]","[QUEEN]","[DomainBreakerRegistry]","[RealEmbeddings]","[HNSWIndex]","[PatternStore]","[TestGenerationCoordinator]","[CodeIntelligence]","[ProductFactorsBridge]","[LearningOptimizationCoordinator]","[DreamEngine]","[DreamScheduler]","[SecurityCompliance]","[Providers]","[GNN]","[test-generation]","[test-execution]","[coverage-analysis]","[quality-assessment]","[defect-intelligence]","[requirements-validation]","[code-intelligence]","[security-compliance]","[contract-testing]","[visual-accessibility]","[chaos-resilience]","[learning-optimization]","[enterprise-integration]","[coordination]","[PatternLearnerService]","[RequirementsValidation]","[ParserRegistry]","[AdversarialDefense]","[ContinueGateIntegration]","[ContinueGate]","[SQLitePatternStore]","[TokenTracking]","[InfraHealing]","[ExperienceCapture]"],I=/^\[\d{2}:\d{2}:\d{2}\.\d{3}\]\s+\[/,b=console.log.bind(console);console.log=(...e)=>{let a=(typeof e[0]=="string"?e[0]:"").trimStart();if(S.some(s=>a.startsWith(s))||I.test(a)){process.stderr.write(e.map(String).join(" ")+`
2
+ import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
3
+ import{a as y}from"./chunks/chunk-33VVPBAK.js";import{a as f,c as A}from"./chunks/chunk-5KOR5ZMG.js";import"./chunks/chunk-IVRBWQBU.js";A();import{Command as P}from"commander";import m from"chalk";function h(e,i,a,s){let l=e.command(i).description(a);if(s)for(let u of s)l.alias(u);return l.helpOption(!1),l.allowUnknownOption(!0),l.allowExcessArguments(!0),l}function w(e,i){let a=e.commands,s=a.indexOf(i);s>=0&&a.splice(s,1)}function o(e,i){let a=h(e,i.name,i.description,i.aliases);a.action(async()=>{try{let s=await i.factory();w(e,a),e.addCommand(s),await e.parseAsync(process.argv)}catch(s){console.error(`Failed to load command '${i.name}':`,s instanceof Error?s.message:s),process.exit(1)}})}function d(e,i,a,s,l,u){let g=h(e,i,a,u);g.action(async()=>{try{let p=await s();w(e,g),p.register(e,l),await e.parseAsync(process.argv)}catch(p){console.error(`Failed to load command '${i}':`,p instanceof Error?p.message:p),process.exit(1)}})}var S=["[UnifiedMemory]","[HybridBackend]","[UnifiedPersistence]","[PersistentSONAEngine]","[QueenGovernance]","[QueenCoordinator]","[Queen]","[QUEEN]","[DomainBreakerRegistry]","[RealEmbeddings]","[HNSWIndex]","[PatternStore]","[TestGenerationCoordinator]","[CodeIntelligence]","[ProductFactorsBridge]","[LearningOptimizationCoordinator]","[DreamEngine]","[DreamScheduler]","[SecurityCompliance]","[Providers]","[GNN]","[test-generation]","[test-execution]","[coverage-analysis]","[quality-assessment]","[defect-intelligence]","[requirements-validation]","[code-intelligence]","[security-compliance]","[contract-testing]","[visual-accessibility]","[chaos-resilience]","[learning-optimization]","[enterprise-integration]","[coordination]","[PatternLearnerService]","[RequirementsValidation]","[ParserRegistry]","[AdversarialDefense]","[ContinueGateIntegration]","[ContinueGate]","[SQLitePatternStore]","[TokenTracking]","[InfraHealing]","[ExperienceCapture]"],I=/^\[\d{2}:\d{2}:\d{2}\.\d{3}\]\s+\[/,b=console.log.bind(console);console.log=(...e)=>{let a=(typeof e[0]=="string"?e[0]:"").trimStart();if(S.some(s=>a.startsWith(s))||I.test(a)){process.stderr.write(e.map(String).join(" ")+`
4
4
  `);return}b(...e)};console.info=(...e)=>{process.stderr.write(e.map(String).join(" ")+`
5
- `)};var t={kernel:null,queen:null,router:null,workflowOrchestrator:null,scheduledWorkflows:new Map,persistentScheduler:null,initialized:!1};function C(e,i){let a=e.getDomainAPI("visual-accessibility");if(a?.registerWorkflowActions)try{a.registerWorkflowActions(i)}catch(l){console.error(m.yellow(` Warning: Could not register visual-accessibility workflow actions: ${f(l)}`))}let s=e.getDomainAPI("requirements-validation");if(s?.registerWorkflowActions)try{s.registerWorkflowActions(i)}catch(l){console.error(m.yellow(` Warning: Could not register requirements-validation workflow actions: ${f(l)}`))}}async function D(){let{QEKernelImpl:e}=await import("./chunks/kernel-WQL2MUBH.js"),{CrossDomainEventRouter:i}=await import("./chunks/cross-domain-router-OYUCD42M.js"),{DefaultProtocolExecutor:a}=await import("./chunks/protocol-executor-LTJIEFVG.js"),{WorkflowOrchestrator:s}=await import("./chunks/workflow-orchestrator-B3ECPAFI.js"),{createQueenCoordinator:l}=await import("./chunks/queen-coordinator-CZA7SS4O.js"),{createPersistentScheduler:u}=await import("./chunks/scheduler-NE4NP4W5.js");t.kernel=new e({maxConcurrentAgents:15,memoryBackend:"sqlite",hnswEnabled:!0,lazyLoading:!0,enabledDomains:[...y]}),await t.kernel.initialize(),t.router=new i(t.kernel.eventBus),await t.router.initialize();let g=E=>t.kernel.getDomainAPI(E),p=new a(t.kernel.eventBus,t.kernel.memory,g);t.workflowOrchestrator=new s(t.kernel.eventBus,t.kernel.memory,t.kernel.coordinator),await t.workflowOrchestrator.initialize(),C(t.kernel,t.workflowOrchestrator),t.persistentScheduler=u(),t.queen=l(t.kernel,t.router,p,void 0),await t.queen.initialize(),t.initialized=!0}async function k(){if(t.initialized&&t.kernel&&t.queen)return!0;let e=await import("fs"),a=(await import("path")).resolve(".agentic-qe");return e.existsSync(a)?c():(console.error(m.red(`
5
+ `)};var t={kernel:null,queen:null,router:null,workflowOrchestrator:null,scheduledWorkflows:new Map,persistentScheduler:null,initialized:!1};function C(e,i){let a=e.getDomainAPI("visual-accessibility");if(a?.registerWorkflowActions)try{a.registerWorkflowActions(i)}catch(l){console.error(m.yellow(` Warning: Could not register visual-accessibility workflow actions: ${f(l)}`))}let s=e.getDomainAPI("requirements-validation");if(s?.registerWorkflowActions)try{s.registerWorkflowActions(i)}catch(l){console.error(m.yellow(` Warning: Could not register requirements-validation workflow actions: ${f(l)}`))}}async function D(){let{QEKernelImpl:e}=await import("./chunks/kernel-GR44AXQ6.js"),{CrossDomainEventRouter:i}=await import("./chunks/cross-domain-router-QCOROKUM.js"),{DefaultProtocolExecutor:a}=await import("./chunks/protocol-executor-J6KJRPXK.js"),{WorkflowOrchestrator:s}=await import("./chunks/workflow-orchestrator-Z4KE75MK.js"),{createQueenCoordinator:l}=await import("./chunks/queen-coordinator-RSASVM4O.js"),{createPersistentScheduler:u}=await import("./chunks/scheduler-EYCKXDGY.js");t.kernel=new e({maxConcurrentAgents:15,memoryBackend:"sqlite",hnswEnabled:!0,lazyLoading:!0,enabledDomains:[...y],enableExperienceBridge:!1}),await t.kernel.initialize(),t.router=new i(t.kernel.eventBus),await t.router.initialize();let g=E=>t.kernel.getDomainAPI(E),p=new a(t.kernel.eventBus,t.kernel.memory,g);t.workflowOrchestrator=new s(t.kernel.eventBus,t.kernel.memory,t.kernel.coordinator),await t.workflowOrchestrator.initialize(),C(t.kernel,t.workflowOrchestrator),t.persistentScheduler=u(),t.queen=l(t.kernel,t.router,p,void 0),await t.queen.initialize(),t.initialized=!0}async function k(){if(t.initialized&&t.kernel&&t.queen)return!0;let e=await import("fs"),a=(await import("path")).resolve(".agentic-qe");return e.existsSync(a)?c():(console.error(m.red(`
6
6
  Error: AQE system not initialized in this directory.`)),console.log(m.yellow("Run `aqe init` first to set up this project.\n")),!1)}async function c(){if(t.initialized&&t.kernel&&t.queen)return!0;process.stderr.write(m.gray("Auto-initializing v3 system...")+`
7
7
  `);let e=3e4,i=new Promise((a,s)=>{setTimeout(()=>s(new Error("Initialization timeout after 30 seconds")),e)});try{return await Promise.race([D(),i]),process.stderr.write(m.green("System ready")+`
8
8
 
9
- `),!0}catch(a){return a.message.includes("timeout")?(console.error(m.red("Initialization timed out after 30 seconds.")),console.log(m.yellow("Try running `aqe init` manually."))):(console.error(m.red("Failed to auto-initialize:"),a),console.log(m.yellow("Try running `aqe init` manually."))),!1}}async function r(e=0){try{t.workflowOrchestrator&&t.workflowOrchestrator.dispose().catch(()=>{}),t.queen&&t.queen.dispose().catch(()=>{}),t.router&&t.router.dispose().catch(()=>{}),t.kernel&&t.kernel.dispose().catch(()=>{})}catch{}process.exit(e)}var n=new P,v="3.9.26";n.name("aqe").description("Agentic QE - Domain-Driven Quality Engineering").version(v);d(n,"init","Initialize the AQE v3 system",()=>import("./chunks/init-handler-VUSXGONQ.js").then(e=>e.createInitHandler(r)),t);d(n,"status","Show system status",()=>import("./chunks/status-handler-XANOAVIB.js").then(e=>e.createStatusHandler(r,k)),t);d(n,"health","Check system health",()=>import("./chunks/status-handler-XANOAVIB.js").then(e=>e.createHealthHandler(r,k)),t);d(n,"task","Manage QE tasks",()=>import("./chunks/task-handler-KXSUKNQV.js").then(e=>e.createTaskHandler(r,c)),t);d(n,"agent","Manage QE agents",()=>import("./chunks/agent-handler-SPLFCIHA.js").then(e=>e.createAgentHandler(r,c)),t);d(n,"domain","Domain operations",()=>import("./chunks/domain-handler-5J4AH4XR.js").then(e=>e.createDomainHandler(r,c)),t);d(n,"protocol","Execute coordination protocols",()=>import("./chunks/protocol-handler-RSJOZ4XL.js").then(e=>e.createProtocolHandler(r,c)),t);d(n,"brain","Export, import, and inspect QE brain state",()=>import("./chunks/brain-handler-6BQCTD3M.js").then(e=>e.createBrainHandler(r,c)),t);d(n,"hypergraph","Query the code knowledge hypergraph",()=>import("./chunks/hypergraph-handler-UFV3XYVX.js").then(e=>e.createHypergraphHandler(r,c)),t,["hg"]);d(n,"heartbeat","Manage the token-free heartbeat scheduler",()=>import("./chunks/heartbeat-handler-5RDU3KKK.js").then(e=>e.createHeartbeatHandler(r)),t);d(n,"routing","View routing performance, economics, and accuracy",()=>import("./chunks/routing-handler-ZAOGNENU.js").then(e=>e.createRoutingHandler(r)),t);o(n,{name:"workflow",description:"Manage QE workflows and pipelines (ADR-041)",factory:()=>import("./chunks/workflow-EQFV2P66.js").then(e=>e.createWorkflowCommand(t,r,c))});o(n,{name:"test",description:"Test generation, execution, scheduling, and load testing",factory:()=>import("./chunks/test-AKS5AAT7.js").then(e=>e.createTestCommand(t,r,c))});o(n,{name:"coverage",description:"Coverage analysis shortcut",factory:()=>import("./chunks/coverage-X2AG3K6E.js").then(e=>e.createCoverageCommand(t,r,c))});o(n,{name:"quality",description:"Quality assessment shortcut",factory:()=>import("./chunks/quality-6PZOOQSK.js").then(e=>e.createQualityCommand(t,r,c))});o(n,{name:"security",description:"Security scanning and URL validation",factory:()=>import("./chunks/security-BJWJWQRB.js").then(e=>e.createSecurityCommand(t,r,c))});o(n,{name:"code",description:"Code intelligence analysis",factory:()=>import("./chunks/code-GXJ6JC6O.js").then(e=>e.createCodeCommand(t,r,c))});o(n,{name:"completions",description:"Generate shell completions for aqe",factory:()=>import("./chunks/completions-RSFIDY22.js").then(e=>e.createCompletionsCommand(r))});o(n,{name:"upgrade",description:"Detect optional native bindings and recommend install / flag changes",factory:()=>import("./chunks/upgrade-EKE25VPL.js").then(e=>e.createUpgradeCommand(r))});o(n,{name:"fleet",description:"Fleet operations with multi-agent progress tracking",factory:()=>import("./chunks/fleet-N5OTMFIN.js").then(e=>e.createFleetCommand(t,r,c,C))});o(n,{name:"validate",description:"Validation commands for skills and agents",factory:()=>import("./chunks/validate-swarm-GZANKJ7M.js").then(e=>e.createValidateSwarmCommand(t,r,c))});o(n,{name:"skill",description:"Skill validation and reporting (ADR-056)",factory:()=>import("./chunks/validate-BZTYZQGP.js").then(e=>e.createValidateCommand(t,r,c))});o(n,{name:"eval",description:"Run skill evaluation suites in parallel",factory:()=>import("./chunks/eval-K7VFIO2T.js").then(e=>e.createEvalCommand())});o(n,{name:"ci",description:"CI/CD pipeline orchestration",factory:()=>import("./chunks/ci-EAX5WWT6.js").then(e=>e.createCICommand(t,r,c))});o(n,{name:"token-usage",description:"View and analyze token consumption metrics (ADR-042)",factory:()=>import("./chunks/token-usage-IJENSXPQ.js").then(e=>e.createTokenUsageCommand())});o(n,{name:"llm",description:"LLM Router management (ADR-043)",factory:()=>import("./chunks/llm-router-QUOLZECD.js").then(e=>e.createLLMRouterCommand())});o(n,{name:"sync",description:"Sync local learning data to cloud PostgreSQL",factory:()=>import("./chunks/sync-MKNYPUYP.js").then(e=>e.createSyncCommands())});o(n,{name:"hooks",description:"Self-learning QE hooks for pattern recognition and guidance",factory:()=>import("./chunks/hooks-6HA23JHQ.js").then(e=>e.createHooksCommand())});o(n,{name:"learning",description:"AQE self-learning system management (standalone, no claude-flow required)",factory:()=>import("./chunks/learning-4B624JV3.js").then(e=>e.createLearningCommand())});o(n,{name:"memory",description:"Memory store, retrieve, search, and delete operations",factory:()=>import("./chunks/memory-WX3XHQZP.js").then(e=>e.createMemoryCommand(t,r,c))});o(n,{name:"mcp",description:"Start the MCP protocol server for Claude Code integration",factory:()=>import("./chunks/mcp-MBJWNXDM.js").then(e=>e.createMcpCommand())});o(n,{name:"platform",description:"Manage coding agent platform configurations",factory:()=>import("./chunks/platform-4SLJDRVL.js").then(e=>e.createPlatformCommand())});o(n,{name:"prove",description:"Generate a verifiable Proof-of-Quality attestation",factory:()=>import("./chunks/prove-2ZMKUODH.js").then(e=>e.createProveCommand(t,r,c))});o(n,{name:"ruvector",description:"RuVector integration management",factory:()=>import("./chunks/ruvector-commands-5K3Q4N5H.js").then(e=>e.createRuVectorCommand())});o(n,{name:"audit",description:"Witness chain audit trail management",factory:()=>import("./chunks/audit-6TQQFGQN.js").then(e=>e.createAuditCommand(t,r,c))});o(n,{name:"pipeline",description:"Manage YAML deterministic pipelines (Imp-9)",factory:()=>import("./chunks/pipeline-ORKGL7DP.js").then(e=>e.createPipelineCommand(t,r,c))});o(n,{name:"plugin",description:"Manage external QE domain plugins",factory:()=>import("./chunks/plugin-V6FRBF4W.js").then(e=>e.createPluginCommand())});o(n,{name:"daemon",description:"Manage the QE Quality Daemon",factory:()=>import("./chunks/daemon-CDQXWIV4.js").then(e=>e.createDaemonCommand())});process.on("SIGINT",async()=>{console.log(m.yellow(`
9
+ `),!0}catch(a){return a.message.includes("timeout")?(console.error(m.red("Initialization timed out after 30 seconds.")),console.log(m.yellow("Try running `aqe init` manually."))):(console.error(m.red("Failed to auto-initialize:"),a),console.log(m.yellow("Try running `aqe init` manually."))),!1}}async function r(e=0){try{t.workflowOrchestrator&&t.workflowOrchestrator.dispose().catch(()=>{}),t.queen&&t.queen.dispose().catch(()=>{}),t.router&&t.router.dispose().catch(()=>{}),t.kernel&&t.kernel.dispose().catch(()=>{})}catch{}process.exit(e)}var n=new P,v="3.9.28";n.name("aqe").description("Agentic QE - Domain-Driven Quality Engineering").version(v);d(n,"init","Initialize the AQE v3 system",()=>import("./chunks/init-handler-L5Y4EZPZ.js").then(e=>e.createInitHandler(r)),t);d(n,"status","Show system status",()=>import("./chunks/status-handler-DOJ2JTXS.js").then(e=>e.createStatusHandler(r,k)),t);d(n,"health","Check system health",()=>import("./chunks/status-handler-DOJ2JTXS.js").then(e=>e.createHealthHandler(r,k)),t);d(n,"task","Manage QE tasks",()=>import("./chunks/task-handler-AETQISNK.js").then(e=>e.createTaskHandler(r,c)),t);d(n,"agent","Manage QE agents",()=>import("./chunks/agent-handler-7ZQNRIZC.js").then(e=>e.createAgentHandler(r,c)),t);d(n,"domain","Domain operations",()=>import("./chunks/domain-handler-F2XFKJOG.js").then(e=>e.createDomainHandler(r,c)),t);d(n,"protocol","Execute coordination protocols",()=>import("./chunks/protocol-handler-WR4JQLSR.js").then(e=>e.createProtocolHandler(r,c)),t);d(n,"brain","Export, import, and inspect QE brain state",()=>import("./chunks/brain-handler-KNERI5RC.js").then(e=>e.createBrainHandler(r,c)),t);d(n,"hypergraph","Query the code knowledge hypergraph",()=>import("./chunks/hypergraph-handler-CT77BGUK.js").then(e=>e.createHypergraphHandler(r,c)),t,["hg"]);d(n,"heartbeat","Manage the token-free heartbeat scheduler",()=>import("./chunks/heartbeat-handler-DXMMYI3L.js").then(e=>e.createHeartbeatHandler(r)),t);d(n,"routing","View routing performance, economics, and accuracy",()=>import("./chunks/routing-handler-IR4K3W3W.js").then(e=>e.createRoutingHandler(r)),t);o(n,{name:"workflow",description:"Manage QE workflows and pipelines (ADR-041)",factory:()=>import("./chunks/workflow-3ZDRY6TE.js").then(e=>e.createWorkflowCommand(t,r,c))});o(n,{name:"test",description:"Test generation, execution, scheduling, and load testing",factory:()=>import("./chunks/test-G57YV5WH.js").then(e=>e.createTestCommand(t,r,c))});o(n,{name:"coverage",description:"Coverage analysis shortcut",factory:()=>import("./chunks/coverage-GQSRYPVJ.js").then(e=>e.createCoverageCommand(t,r,c))});o(n,{name:"quality",description:"Quality assessment shortcut",factory:()=>import("./chunks/quality-W5K6U7NU.js").then(e=>e.createQualityCommand(t,r,c))});o(n,{name:"security",description:"Security scanning and URL validation",factory:()=>import("./chunks/security-6I65LIPS.js").then(e=>e.createSecurityCommand(t,r,c))});o(n,{name:"code",description:"Code intelligence analysis",factory:()=>import("./chunks/code-WO52OOGB.js").then(e=>e.createCodeCommand(t,r,c))});o(n,{name:"completions",description:"Generate shell completions for aqe",factory:()=>import("./chunks/completions-J5OYMQCR.js").then(e=>e.createCompletionsCommand(r))});o(n,{name:"upgrade",description:"Detect optional native bindings and recommend install / flag changes",factory:()=>import("./chunks/upgrade-TIQBZYJ7.js").then(e=>e.createUpgradeCommand(r))});o(n,{name:"fleet",description:"Fleet operations with multi-agent progress tracking",factory:()=>import("./chunks/fleet-R24REKY3.js").then(e=>e.createFleetCommand(t,r,c,C))});o(n,{name:"validate",description:"Validation commands for skills and agents",factory:()=>import("./chunks/validate-swarm-V6Y4I77Q.js").then(e=>e.createValidateSwarmCommand(t,r,c))});o(n,{name:"skill",description:"Skill validation and reporting (ADR-056)",factory:()=>import("./chunks/validate-IIN2ODDK.js").then(e=>e.createValidateCommand(t,r,c))});o(n,{name:"eval",description:"Run skill evaluation suites in parallel",factory:()=>import("./chunks/eval-5VQNSHMZ.js").then(e=>e.createEvalCommand())});o(n,{name:"ci",description:"CI/CD pipeline orchestration",factory:()=>import("./chunks/ci-XTEXFMLT.js").then(e=>e.createCICommand(t,r,c))});o(n,{name:"token-usage",description:"View and analyze token consumption metrics (ADR-042)",factory:()=>import("./chunks/token-usage-YDHUAMJQ.js").then(e=>e.createTokenUsageCommand())});o(n,{name:"llm",description:"LLM Router management (ADR-043)",factory:()=>import("./chunks/llm-router-5V7S4RBP.js").then(e=>e.createLLMRouterCommand())});o(n,{name:"sync",description:"Sync local learning data to cloud PostgreSQL",factory:()=>import("./chunks/sync-VJ7W4F4G.js").then(e=>e.createSyncCommands())});o(n,{name:"hooks",description:"Self-learning QE hooks for pattern recognition and guidance",factory:()=>import("./chunks/hooks-2AFKHPAH.js").then(e=>e.createHooksCommand())});o(n,{name:"learning",description:"AQE self-learning system management (standalone, no claude-flow required)",factory:()=>import("./chunks/learning-H4PJXEZT.js").then(e=>e.createLearningCommand())});o(n,{name:"memory",description:"Memory store, retrieve, search, and delete operations",factory:()=>import("./chunks/memory-L7QEPZ3O.js").then(e=>e.createMemoryCommand(t,r,c))});o(n,{name:"mcp",description:"Start the MCP protocol server for Claude Code integration",factory:()=>import("./chunks/mcp-AY3EW3M4.js").then(e=>e.createMcpCommand())});o(n,{name:"platform",description:"Manage coding agent platform configurations",factory:()=>import("./chunks/platform-PUFZFG66.js").then(e=>e.createPlatformCommand())});o(n,{name:"prove",description:"Generate a verifiable Proof-of-Quality attestation",factory:()=>import("./chunks/prove-AI7HVVJW.js").then(e=>e.createProveCommand(t,r,c))});o(n,{name:"ruvector",description:"RuVector integration management",factory:()=>import("./chunks/ruvector-commands-JGIJKLE5.js").then(e=>e.createRuVectorCommand())});o(n,{name:"audit",description:"Witness chain audit trail management",factory:()=>import("./chunks/audit-5A4AC2NA.js").then(e=>e.createAuditCommand(t,r,c))});o(n,{name:"pipeline",description:"Manage YAML deterministic pipelines (Imp-9)",factory:()=>import("./chunks/pipeline-TXZZCEOG.js").then(e=>e.createPipelineCommand(t,r,c))});o(n,{name:"plugin",description:"Manage external QE domain plugins",factory:()=>import("./chunks/plugin-ALNATTS7.js").then(e=>e.createPluginCommand())});o(n,{name:"daemon",description:"Manage the QE Quality Daemon",factory:()=>import("./chunks/daemon-TKQOU66X.js").then(e=>e.createDaemonCommand())});process.on("SIGINT",async()=>{console.log(m.yellow(`
10
10
 
11
11
  Shutting down...`)),console.log(m.green(`Shutdown complete
12
12
  `)),await r(0)});process.on("SIGTERM",async()=>{console.log(m.yellow(`
13
- Received SIGTERM, shutting down gracefully...`)),await r(0)});async function z(){let{isVersionFastPath:e}=await import("./chunks/fast-paths-T27YLQWQ.js");e(process.argv)&&(console.log(v),process.exit(0));let{bootstrapTokenTracking:i}=await import("./chunks/token-bootstrap-ZIUNRF3E.js");await i({enableOptimization:!0,enablePersistence:!0,verbose:process.env.AQE_VERBOSE==="true"}),await n.parseAsync(),await r(0)}z().catch(async e=>{console.error(m.red("Fatal error:"),e),await r(1)});
13
+ Received SIGTERM, shutting down gracefully...`)),await r(0)});async function x(){let{isVersionFastPath:e}=await import("./chunks/fast-paths-XZ4PMW4T.js");e(process.argv)&&(console.log(v),process.exit(0));let{bootstrapTokenTracking:i}=await import("./chunks/token-bootstrap-CTG7NE77.js");await i({enableOptimization:!0,enablePersistence:!0,verbose:process.env.AQE_VERBOSE==="true"}),await n.parseAsync(),await r(0)}x().catch(async e=>{console.error(m.red("Fatal error:"),e),await r(1)});
@@ -0,0 +1,2 @@
1
+ import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
2
+ import{a,b,c}from"./chunk-UJRYZ6TO.js";import"./chunk-LM624ZDD.js";import"./chunk-4MYXPDXX.js";import"./chunk-ZH2WOQP3.js";import"./chunk-5KOR5ZMG.js";import"./chunk-IVRBWQBU.js";export{a as AgentBoosterAdapter,b as createAgentBoosterAdapter,c as createAgentBoosterAdapterSync};
@@ -1,2 +1,2 @@
1
- import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.26");process.exit(0)}
2
- import{a as x}from"./chunk-RSNZQ3MN.js";import{c as f}from"./chunk-F77VZ4IY.js";import"./chunk-ARLHD5MG.js";x();import{createRequire as w}from"module";var S=f.create("agent-booster-wasm"),t={JavaScript:0,TypeScript:1,Python:2,Rust:3,Go:4,Java:5,C:6,Cpp:7},l={ExactReplace:0,FuzzyReplace:1,InsertAfter:2,InsertBefore:3,Append:4},v={0:"JavaScript",1:"TypeScript",2:"Python",3:"Rust",4:"Go",5:"Java",6:"C",7:"Cpp"},a=null,u=null,p=null;async function g(){if(a)return!0;if(p)return!1;try{if(a=w(import.meta.url)("./agent_booster_wasm.js"),!a)throw new Error("WASM module loaded but is null");return u=new a.AgentBoosterWasm,!0}catch(e){return p=e,console.warn("[AgentBoosterWASM] Failed to load WASM module:",e),!1}}function A(e){return{".js":t.JavaScript,".mjs":t.JavaScript,".cjs":t.JavaScript,".jsx":t.JavaScript,".ts":t.TypeScript,".tsx":t.TypeScript,".mts":t.TypeScript,".cts":t.TypeScript,".py":t.Python,".rs":t.Rust,".go":t.Go,".java":t.Java,".c":t.C,".h":t.C,".cpp":t.Cpp,".cc":t.Cpp,".cxx":t.Cpp,".hpp":t.Cpp}[e.toLowerCase()]??t.JavaScript}var M=[{name:"var-to-const",detect:(e,r)=>e.includes("var ")&&r.includes("const "),apply:(e,r)=>e.replace(/\bvar\s+/g,"const ")},{name:"var-to-let",detect:(e,r)=>e.includes("var ")&&r.includes("let "),apply:(e,r)=>e.replace(/\bvar\s+/g,"let ")},{name:"add-types-function",detect:(e,r)=>e.includes("function")&&!e.includes(":")&&r.includes(":"),apply:(e,r)=>r},{name:"async-wrapper",detect:(e,r)=>!e.includes("async")&&r.includes("async")&&r.includes("await"),apply:(e,r)=>r},{name:"try-catch-wrapper",detect:(e,r)=>!e.includes("try {")&&r.includes("try {"),apply:(e,r)=>r},{name:"null-check",detect:(e,r)=>!e.includes("if (!")&&!e.includes("if (!")&&(r.includes("if (!")||r.includes("?.")),apply:(e,r)=>r},{name:"test-assertion",detect:(e,r)=>e.includes("test(")&&!e.includes("expect(")&&r.includes("expect("),apply:(e,r)=>r}];function y(e,r){for(let n of M)if(n.detect(e,r))try{return{success:!0,code:n.apply(e,r),pattern:n.name}}catch(s){S.debug("Pattern transform failed, trying next",{pattern:n.name,error:s instanceof Error?s.message:String(s)});continue}return{success:!1,code:r}}async function b(e,r,n,s={}){let o=performance.now(),{confidenceThreshold:T=.5,allowFallback:d=!0}=s;if(!e.trim())return{success:!0,mergedCode:r,confidence:1,strategy:l.Append,syntaxValid:!0,source:"fallback",latencyMs:performance.now()-o};if(await g()&&u&&a)try{let c=a.WasmLanguage[v[n]],i=u.apply_edit(e,r,c);return{success:!0,mergedCode:i.merged_code,confidence:i.confidence,strategy:i.strategy,syntaxValid:i.syntax_valid,source:"wasm",latencyMs:performance.now()-o}}catch(c){let i=c;if(d){let m=y(e,r);if(m.success)return{success:!0,mergedCode:m.code,confidence:.7,strategy:l.FuzzyReplace,syntaxValid:!0,source:"pattern",latencyMs:performance.now()-o}}return{success:!1,mergedCode:r,confidence:0,strategy:l.Append,syntaxValid:!1,source:"fallback",latencyMs:performance.now()-o,error:i.message}}if(d){let c=y(e,r);return{success:c.success,mergedCode:c.code,confidence:c.success?.7:0,strategy:l.FuzzyReplace,syntaxValid:!0,source:"pattern",latencyMs:performance.now()-o}}return{success:!1,mergedCode:r,confidence:0,strategy:l.Append,syntaxValid:!1,source:"fallback",latencyMs:performance.now()-o,error:p?.message??"WASM not available"}}async function W(e,r={}){return Promise.all(e.map(({original:n,edit:s,language:o})=>b(n,s,o,r)))}async function C(){return g()}async function L(){return await g()&&a?a.AgentBoosterWasm.version():"unavailable"}async function R(){if(await g(),u&&a)try{u.apply_edit("function x() {}","function x() {}",a.WasmLanguage.JavaScript)}catch(e){console.debug("[AgentBoosterWASM] Warmup error:",e instanceof Error?e.message:e)}}var _={transform:b,batchTransform:W,isWasmAvailable:C,getVersion:L,warmup:R,Language:t,MergeStrategy:l,languageFromExtension:A};export{t as Language,l as MergeStrategy,W as batchTransform,_ as default,L as getVersion,C as isWasmAvailable,A as languageFromExtension,b as transform,R as warmup};
1
+ import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
2
+ import{a as x}from"./chunk-4R6DN7IO.js";import{c as f}from"./chunk-PMWIZ7TC.js";import"./chunk-IVRBWQBU.js";x();import{createRequire as w}from"module";var S=f.create("agent-booster-wasm"),t={JavaScript:0,TypeScript:1,Python:2,Rust:3,Go:4,Java:5,C:6,Cpp:7},l={ExactReplace:0,FuzzyReplace:1,InsertAfter:2,InsertBefore:3,Append:4},v={0:"JavaScript",1:"TypeScript",2:"Python",3:"Rust",4:"Go",5:"Java",6:"C",7:"Cpp"},a=null,u=null,p=null;async function g(){if(a)return!0;if(p)return!1;try{if(a=w(import.meta.url)("./agent_booster_wasm.js"),!a)throw new Error("WASM module loaded but is null");return u=new a.AgentBoosterWasm,!0}catch(e){return p=e,console.warn("[AgentBoosterWASM] Failed to load WASM module:",e),!1}}function A(e){return{".js":t.JavaScript,".mjs":t.JavaScript,".cjs":t.JavaScript,".jsx":t.JavaScript,".ts":t.TypeScript,".tsx":t.TypeScript,".mts":t.TypeScript,".cts":t.TypeScript,".py":t.Python,".rs":t.Rust,".go":t.Go,".java":t.Java,".c":t.C,".h":t.C,".cpp":t.Cpp,".cc":t.Cpp,".cxx":t.Cpp,".hpp":t.Cpp}[e.toLowerCase()]??t.JavaScript}var M=[{name:"var-to-const",detect:(e,r)=>e.includes("var ")&&r.includes("const "),apply:(e,r)=>e.replace(/\bvar\s+/g,"const ")},{name:"var-to-let",detect:(e,r)=>e.includes("var ")&&r.includes("let "),apply:(e,r)=>e.replace(/\bvar\s+/g,"let ")},{name:"add-types-function",detect:(e,r)=>e.includes("function")&&!e.includes(":")&&r.includes(":"),apply:(e,r)=>r},{name:"async-wrapper",detect:(e,r)=>!e.includes("async")&&r.includes("async")&&r.includes("await"),apply:(e,r)=>r},{name:"try-catch-wrapper",detect:(e,r)=>!e.includes("try {")&&r.includes("try {"),apply:(e,r)=>r},{name:"null-check",detect:(e,r)=>!e.includes("if (!")&&!e.includes("if (!")&&(r.includes("if (!")||r.includes("?.")),apply:(e,r)=>r},{name:"test-assertion",detect:(e,r)=>e.includes("test(")&&!e.includes("expect(")&&r.includes("expect("),apply:(e,r)=>r}];function y(e,r){for(let n of M)if(n.detect(e,r))try{return{success:!0,code:n.apply(e,r),pattern:n.name}}catch(s){S.debug("Pattern transform failed, trying next",{pattern:n.name,error:s instanceof Error?s.message:String(s)});continue}return{success:!1,code:r}}async function b(e,r,n,s={}){let o=performance.now(),{confidenceThreshold:T=.5,allowFallback:d=!0}=s;if(!e.trim())return{success:!0,mergedCode:r,confidence:1,strategy:l.Append,syntaxValid:!0,source:"fallback",latencyMs:performance.now()-o};if(await g()&&u&&a)try{let c=a.WasmLanguage[v[n]],i=u.apply_edit(e,r,c);return{success:!0,mergedCode:i.merged_code,confidence:i.confidence,strategy:i.strategy,syntaxValid:i.syntax_valid,source:"wasm",latencyMs:performance.now()-o}}catch(c){let i=c;if(d){let m=y(e,r);if(m.success)return{success:!0,mergedCode:m.code,confidence:.7,strategy:l.FuzzyReplace,syntaxValid:!0,source:"pattern",latencyMs:performance.now()-o}}return{success:!1,mergedCode:r,confidence:0,strategy:l.Append,syntaxValid:!1,source:"fallback",latencyMs:performance.now()-o,error:i.message}}if(d){let c=y(e,r);return{success:c.success,mergedCode:c.code,confidence:c.success?.7:0,strategy:l.FuzzyReplace,syntaxValid:!0,source:"pattern",latencyMs:performance.now()-o}}return{success:!1,mergedCode:r,confidence:0,strategy:l.Append,syntaxValid:!1,source:"fallback",latencyMs:performance.now()-o,error:p?.message??"WASM not available"}}async function W(e,r={}){return Promise.all(e.map(({original:n,edit:s,language:o})=>b(n,s,o,r)))}async function C(){return g()}async function L(){return await g()&&a?a.AgentBoosterWasm.version():"unavailable"}async function R(){if(await g(),u&&a)try{u.apply_edit("function x() {}","function x() {}",a.WasmLanguage.JavaScript)}catch(e){console.debug("[AgentBoosterWASM] Warmup error:",e instanceof Error?e.message:e)}}var _={transform:b,batchTransform:W,isWasmAvailable:C,getVersion:L,warmup:R,Language:t,MergeStrategy:l,languageFromExtension:A};export{t as Language,l as MergeStrategy,W as batchTransform,_ as default,L as getVersion,C as isWasmAvailable,A as languageFromExtension,b as transform,R as warmup};
@@ -1,5 +1,5 @@
1
- import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.26");process.exit(0)}
2
- import{b as p}from"./chunk-EEWGVVKH.js";import{a as g}from"./chunk-SGGYSL7J.js";import"./chunk-DBSEDJ7P.js";import"./chunk-ARLHD5MG.js";import s from"chalk";var l=class{name="agent";description="Manage QE agents";cleanupAndExit;ensureInitialized;constructor(n,t){this.cleanupAndExit=n,this.ensureInitialized=t}register(n,t){let a=n.command("agent").description(this.description);a.command("list").description("List all agents").option("-d, --domain <domain>","Filter by domain").option("-s, --status <status>","Filter by status").action(async e=>{await this.executeList(e,t)}),a.command("spawn <domain>").description("Spawn an agent in a domain").option("-t, --type <type>","Agent type","worker").option("-c, --capabilities <caps>","Comma-separated capabilities","general").option("--no-progress","Disable progress indicator").action(async(e,o)=>{await this.executeSpawn(e,o,t)})}async executeList(n,t){if(await this.ensureInitialized())try{let a=n.domain?t.queen.getAgentsByDomain(n.domain):t.queen.listAllAgents();if(n.status&&(a=a.filter(e=>e.status===n.status)),console.log(s.blue(`
1
+ import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
2
+ import{b as p}from"./chunk-Y7EPJRQT.js";import{a as g}from"./chunk-YG6ZRK5N.js";import"./chunk-ZH2WOQP3.js";import"./chunk-IVRBWQBU.js";import s from"chalk";var l=class{name="agent";description="Manage QE agents";cleanupAndExit;ensureInitialized;constructor(n,t){this.cleanupAndExit=n,this.ensureInitialized=t}register(n,t){let a=n.command("agent").description(this.description);a.command("list").description("List all agents").option("-d, --domain <domain>","Filter by domain").option("-s, --status <status>","Filter by status").action(async e=>{await this.executeList(e,t)}),a.command("spawn <domain>").description("Spawn an agent in a domain").option("-t, --type <type>","Agent type","worker").option("-c, --capabilities <caps>","Comma-separated capabilities","general").option("--no-progress","Disable progress indicator").action(async(e,o)=>{await this.executeSpawn(e,o,t)})}async executeList(n,t){if(await this.ensureInitialized())try{let a=n.domain?t.queen.getAgentsByDomain(n.domain):t.queen.listAllAgents();if(n.status&&(a=a.filter(e=>e.status===n.status)),console.log(s.blue(`
3
3
  Agents (${a.length})
4
4
  `)),a.length===0)console.log(s.gray(" No agents found"));else{let e=new Map;for(let i of a)e.has(i.domain)||e.set(i.domain,[]),e.get(i.domain).push(i);let o=Array.from(e.entries());for(let[i,m]of o){console.log(s.cyan(` ${i}:`));for(let r of m)console.log(` ${r.id}`),console.log(` Type: ${r.type}`),console.log(` Status: ${g(r.status)}`),r.startedAt&&console.log(s.gray(` Started: ${r.startedAt.toISOString()}`));console.log("")}}}catch(a){console.error(s.red(`
5
5
  Failed to list agents:`),a),await this.cleanupAndExit(1)}}async executeSpawn(n,t,a){if(await this.ensureInitialized())try{let e=t.capabilities.split(",");console.log(s.blue(`
@@ -1,2 +1,2 @@
1
- import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.26");process.exit(0)}
2
- import"./chunk-ARLHD5MG.js";import{existsSync as i,mkdirSync as d,unlinkSync as s,readdirSync as p,statSync as f}from"fs";import{join as o,basename as l}from"path";var v={branchDir:".agentic-qe/branches",defaultStrategy:"child-wins",orphanMaxAgeMs:36e5},g=class{config;parentAdapter;activeBranches=new Map;witnessChain=null;constructor(t,e){this.parentAdapter=t,this.config={...v,...e}}setWitnessChain(t){this.witnessChain=t}createBranch(t){if(this.activeBranches.has(t))throw new Error(`Branch already exists for agent ${t}`);i(this.config.branchDir)||d(this.config.branchDir,{recursive:!0});let e=o(this.config.branchDir,`${t}.rvf`),r=this.parentAdapter.path(),n=this.parentAdapter.derive(e),a={agentId:t,childPath:e,parentPath:r,childAdapter:n,createdAt:Date.now(),ingestLog:[]};return this.activeBranches.set(t,a),a}recordIngest(t,e){let r=this.activeBranches.get(t);if(r)for(let n of e)r.ingestLog.push({id:n.id,vector:n.vector})}async mergeBranch(t,e){let r=e??this.config.defaultStrategy,n=performance.now(),a=0;if(r==="child-wins"&&t.ingestLog.length>0)try{a=this.parentAdapter.ingest(t.ingestLog).accepted}catch(c){console.warn(`[AgentMemoryBranch] Merge replay failed for ${t.agentId}:`,c)}return this.witnessChain?.append("BRANCH_MERGE",{agentId:t.agentId,strategy:r,vectorsMerged:a,branchPath:t.childPath},`agent-${t.agentId}`),this.cleanupBranchFile(t),this.activeBranches.delete(t.agentId),{vectorsMerged:a,strategy:r,durationMs:performance.now()-n}}discardBranch(t){this.witnessChain?.append("BRANCH_DISCARD",{agentId:t.agentId,action:"discard",branchPath:t.childPath},`agent-${t.agentId}`),this.cleanupBranchFile(t),this.activeBranches.delete(t.agentId)}getBranch(t){return this.activeBranches.get(t)}getActiveBranches(){return Array.from(this.activeBranches.values())}listBranchFiles(){return i(this.config.branchDir)?p(this.config.branchDir).filter(e=>e.endsWith(".rvf")).map(e=>{let r=o(this.config.branchDir,e),n=f(r);return{agentId:l(e,".rvf"),path:r,sizeBytes:n.size,modifiedAt:n.mtime}}):[]}cleanupOrphans(t){let e=t??this.config.orphanMaxAgeMs,r=Date.now(),n=0;for(let a of this.listBranchFiles())if(r-a.modifiedAt.getTime()>e&&!this.activeBranches.has(a.agentId))try{s(a.path);let h=`${a.path}.idmap.json`;i(h)&&s(h),n++}catch{}return n}cleanupBranchFile(t){try{t.childAdapter.close()}catch{}try{i(t.childPath)&&s(t.childPath);let e=`${t.childPath}.idmap.json`;i(e)&&s(e)}catch{}}};export{g as AgentMemoryBranch};
1
+ import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
2
+ import"./chunk-IVRBWQBU.js";import{existsSync as i,mkdirSync as d,unlinkSync as s,readdirSync as p,statSync as f}from"fs";import{join as o,basename as l}from"path";var v={branchDir:".agentic-qe/branches",defaultStrategy:"child-wins",orphanMaxAgeMs:36e5},g=class{config;parentAdapter;activeBranches=new Map;witnessChain=null;constructor(t,e){this.parentAdapter=t,this.config={...v,...e}}setWitnessChain(t){this.witnessChain=t}createBranch(t){if(this.activeBranches.has(t))throw new Error(`Branch already exists for agent ${t}`);i(this.config.branchDir)||d(this.config.branchDir,{recursive:!0});let e=o(this.config.branchDir,`${t}.rvf`),r=this.parentAdapter.path(),n=this.parentAdapter.derive(e),a={agentId:t,childPath:e,parentPath:r,childAdapter:n,createdAt:Date.now(),ingestLog:[]};return this.activeBranches.set(t,a),a}recordIngest(t,e){let r=this.activeBranches.get(t);if(r)for(let n of e)r.ingestLog.push({id:n.id,vector:n.vector})}async mergeBranch(t,e){let r=e??this.config.defaultStrategy,n=performance.now(),a=0;if(r==="child-wins"&&t.ingestLog.length>0)try{a=this.parentAdapter.ingest(t.ingestLog).accepted}catch(c){console.warn(`[AgentMemoryBranch] Merge replay failed for ${t.agentId}:`,c)}return this.witnessChain?.append("BRANCH_MERGE",{agentId:t.agentId,strategy:r,vectorsMerged:a,branchPath:t.childPath},`agent-${t.agentId}`),this.cleanupBranchFile(t),this.activeBranches.delete(t.agentId),{vectorsMerged:a,strategy:r,durationMs:performance.now()-n}}discardBranch(t){this.witnessChain?.append("BRANCH_DISCARD",{agentId:t.agentId,action:"discard",branchPath:t.childPath},`agent-${t.agentId}`),this.cleanupBranchFile(t),this.activeBranches.delete(t.agentId)}getBranch(t){return this.activeBranches.get(t)}getActiveBranches(){return Array.from(this.activeBranches.values())}listBranchFiles(){return i(this.config.branchDir)?p(this.config.branchDir).filter(e=>e.endsWith(".rvf")).map(e=>{let r=o(this.config.branchDir,e),n=f(r);return{agentId:l(e,".rvf"),path:r,sizeBytes:n.size,modifiedAt:n.mtime}}):[]}cleanupOrphans(t){let e=t??this.config.orphanMaxAgeMs,r=Date.now(),n=0;for(let a of this.listBranchFiles())if(r-a.modifiedAt.getTime()>e&&!this.activeBranches.has(a.agentId))try{s(a.path);let h=`${a.path}.idmap.json`;i(h)&&s(h),n++}catch{}return n}cleanupBranchFile(t){try{t.childAdapter.close()}catch{}try{i(t.childPath)&&s(t.childPath);let e=`${t.childPath}.idmap.json`;i(e)&&s(e)}catch{}}};export{g as AgentMemoryBranch};
@@ -0,0 +1,2 @@
1
+ import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
2
+ import{a,b,c,d,e,f}from"./chunk-HEMQ4DEF.js";import"./chunk-LKWJUZVH.js";import"./chunk-A77JCFFC.js";import"./chunk-NNYRIYEZ.js";import"./chunk-FUKWABUF.js";import"./chunk-CCZGT2HD.js";import"./chunk-O22BAOMU.js";import"./chunk-7MLACLCT.js";import"./chunk-QMCRT3AX.js";import"./chunk-PHPT6QTF.js";import"./chunk-JOSEPQIU.js";import"./chunk-YF5JCM45.js";import"./chunk-SH7IVDWV.js";import"./chunk-5RZ26J4J.js";import"./chunk-ZKNO5AR4.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import"./chunk-ZH2WOQP3.js";import"./chunk-33VVPBAK.js";import"./chunk-5KOR5ZMG.js";import"./chunk-LCSDE5DQ.js";import"./chunk-YLZZZRB7.js";import"./chunk-UYTAAWAO.js";import"./chunk-7GLCWLZL.js";import"./chunk-ZDM6AWU6.js";import"./chunk-CKDW7YFV.js";import"./chunk-B5KYS65U.js";import"./chunk-M3FFEZFJ.js";import"./chunk-SVPX24HJ.js";import"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";export{b as AQELearningEngine,a as DEFAULT_ENGINE_CONFIG,c as DEFAULT_META_LEARNING_CONFIG,d as MetaLearningEngine,e as createAQELearningEngine,f as createDefaultLearningEngine};
@@ -1,3 +1,3 @@
1
- import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.26");process.exit(0)}
2
- import{f as s,o as p}from"./chunk-SYQZPNHQ.js";import"./chunk-ANEIDNH7.js";import{d as c,e as u,f as h,g as m}from"./chunk-PJPNRDEF.js";import"./chunk-RSNZQ3MN.js";import"./chunk-F77VZ4IY.js";import"./chunk-DBSEDJ7P.js";import"./chunk-TZ73IAF5.js";import"./chunk-4I6XGKSB.js";import{p as l,q as d}from"./chunk-B3KHJQ34.js";import"./chunk-MW4WEMLE.js";import"./chunk-4ZAOHYFA.js";import"./chunk-OFAXQGU5.js";import"./chunk-2OFL5HSB.js";import"./chunk-ETBVBV2M.js";import"./chunk-BOV44F3Z.js";import"./chunk-RXQX6JNQ.js";import{g as f}from"./chunk-ARLHD5MG.js";import{Command as g}from"commander";import a from"chalk";p();import{existsSync as y}from"node:fs";import b from"node:path";function C(n,i){let t=[];t.push(a.bold("Witness Chain Audit Verification")),t.push("");let e=i?a.green("ENABLED"):a.yellow("DISABLED");t.push(` Feature Flag: ${e}`),t.push(` Chain Length: ${n.length} receipts`);let r=n.valid?a.green("VALID"):a.red("BROKEN");return t.push(` Integrity: ${r}`),n.length>0&&t.push(` Last Hash: ${n.lastHash.slice(0,16)}...`),!n.valid&&n.brokenAt>=0&&(t.push(""),t.push(a.red(` Break detected at index ${n.brokenAt}`)),t.push(a.red(` ${n.message}`))),t.push(""),t.join(`
1
+ import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
2
+ import{f as s,o as p}from"./chunk-5RZ26J4J.js";import"./chunk-ZKNO5AR4.js";import{d as c,e as u,f as h,g as m}from"./chunk-6WKX2O66.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import"./chunk-ZH2WOQP3.js";import"./chunk-5KOR5ZMG.js";import"./chunk-YLZZZRB7.js";import{p as l,q as d}from"./chunk-UYTAAWAO.js";import"./chunk-7GLCWLZL.js";import"./chunk-ZDM6AWU6.js";import"./chunk-CKDW7YFV.js";import"./chunk-B5KYS65U.js";import"./chunk-M3FFEZFJ.js";import"./chunk-SVPX24HJ.js";import"./chunk-GECEU6U3.js";import{g as f}from"./chunk-IVRBWQBU.js";import{Command as g}from"commander";import a from"chalk";p();import{existsSync as y}from"node:fs";import b from"node:path";function C(n,i){let t=[];t.push(a.bold("Witness Chain Audit Verification")),t.push("");let e=i?a.green("ENABLED"):a.yellow("DISABLED");t.push(` Feature Flag: ${e}`),t.push(` Chain Length: ${n.length} receipts`);let r=n.valid?a.green("VALID"):a.red("BROKEN");return t.push(` Integrity: ${r}`),n.length>0&&t.push(` Last Hash: ${n.lastHash.slice(0,16)}...`),!n.valid&&n.brokenAt>=0&&(t.push(""),t.push(a.red(` Break detected at index ${n.brokenAt}`)),t.push(a.red(` ${n.message}`))),t.push(""),t.join(`
3
3
  `)}function x(){try{let n=s(),i=b.join(n,".agentic-qe","memory.db");if(!y(i))return null;let t=(d(),f(l)),e=new t(i),r=c(e),o=h(r);return e.close(),o}catch{return null}}async function A(n){let i=m(),e=(x()??u()).verifyChain(),r={featureEnabled:i,chainLength:e.length,integrity:e.valid,brokenAt:e.brokenAt,lastHash:e.lastHash,message:e.message};return n.format==="json"?console.log(JSON.stringify(r,null,2)):console.log(C(e,i)),r}function v(n,i,t){let e=new g("audit").description("Witness chain audit trail management");return e.command("verify").description("Verify witness chain integrity").option("-F, --format <format>","Output format (json|text)","text").action(async r=>{try{await A({format:r.format}),await i(0)}catch(o){console.error("Failed to verify witness chain:",o),await i(1)}}),e}export{v as createAuditCommand,C as formatVerificationText,A as handleAuditVerify};
@@ -0,0 +1,2 @@
1
+ import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
2
+ import{a,b,c,d,e,f}from"./chunk-ZJEPVWBV.js";import"./chunk-V7VCP42A.js";import"./chunk-5RZ26J4J.js";import"./chunk-ZKNO5AR4.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import"./chunk-ZH2WOQP3.js";import"./chunk-5KOR5ZMG.js";import"./chunk-LCSDE5DQ.js";import"./chunk-YLZZZRB7.js";import"./chunk-UYTAAWAO.js";import"./chunk-7GLCWLZL.js";import"./chunk-ZDM6AWU6.js";import"./chunk-CKDW7YFV.js";import"./chunk-B5KYS65U.js";import"./chunk-M3FFEZFJ.js";import"./chunk-SVPX24HJ.js";import"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";export{f as MCPToolBase,e as defaultToolLogger,d as getMemoryBackend,b as getSharedMemoryBackend,a as registerRvfResetFn,c as resetSharedMemoryBackend};
@@ -1,2 +1,2 @@
1
- import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.26");process.exit(0)}
2
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q as p}from"./chunk-TRIA62JA.js";import"./chunk-ARLHD5MG.js";p();export{i as DotProductAttention,h as FlashAttention,k as HyperbolicAttention,l as LinearAttention,m as MoEAttention,j as MultiHeadAttention,b as RuvectorLayer,n as SonaEngine,c as TensorCompress,a as default,d as differentiableSearch,f as getCompressionLevel,e as hierarchicalForward,g as init,o as pipeline};
1
+ import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
2
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q as p}from"./chunk-UYTAAWAO.js";import"./chunk-IVRBWQBU.js";p();export{i as DotProductAttention,h as FlashAttention,k as HyperbolicAttention,l as LinearAttention,m as MoEAttention,j as MultiHeadAttention,b as RuvectorLayer,n as SonaEngine,c as TensorCompress,a as default,d as differentiableSearch,f as getCompressionLevel,e as hierarchicalForward,g as init,o as pipeline};