agentic-qe 3.13.9 → 3.13.11

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 (739) hide show
  1. package/.claude/helpers/.helpers-version +1 -1
  2. package/.claude/helpers/auto-memory-hook.mjs +1 -1
  3. package/.claude/helpers/helpers.manifest.json +6 -6
  4. package/.claude/helpers/hook-handler.cjs +30 -0
  5. package/.claude/helpers/intelligence.cjs +121 -10
  6. package/.claude/helpers/statusline.cjs +737 -8
  7. package/.claude/skills/skills-manifest.json +1 -1
  8. package/CHANGELOG.md +79 -0
  9. package/README.md +1 -0
  10. package/assets/skills/skills-manifest.json +1 -1
  11. package/dist/agents/claim-verifier/claim-verifier-service.js +4 -4
  12. package/dist/agents/claim-verifier/index.js +6 -6
  13. package/dist/agents/claim-verifier/verifiers/file-verifier.js +1 -1
  14. package/dist/agents/claim-verifier/verifiers/index.js +3 -3
  15. package/dist/agents/claim-verifier/verifiers/output-verifier.js +1 -1
  16. package/dist/causal-discovery/causal-graph.js +2 -2
  17. package/dist/causal-discovery/discovery-engine.js +2 -2
  18. package/dist/causal-discovery/weight-matrix.js +2 -2
  19. package/dist/cli/bundle.js +5 -5
  20. package/dist/cli/chunks/adapter-YBSKQFQ4.js +2 -0
  21. package/dist/cli/chunks/{agent-booster-wasm-UVFQL2YN.js → agent-booster-wasm-5ARDZYNO.js} +2 -2
  22. package/dist/cli/chunks/{agent-handler-OOIYA6HY.js → agent-handler-SVKEPF7B.js} +2 -2
  23. package/dist/cli/chunks/{agent-memory-branch-JP657M2X.js → agent-memory-branch-QDL7OVHC.js} +2 -2
  24. package/dist/cli/chunks/aqe-learning-engine-3H7DRDD4.js +2 -0
  25. package/dist/cli/chunks/{arena-YQQGPT3A.js → arena-7OCKBN6O.js} +2 -2
  26. package/dist/cli/chunks/{arena-3TEQR4Z5.js → arena-HQLSNQZ3.js} +4 -4
  27. package/dist/cli/chunks/{audit-2ZNYXWUH.js → audit-2EQJW5UE.js} +3 -3
  28. package/dist/cli/chunks/base-ZTD6PFD7.js +2 -0
  29. package/dist/cli/chunks/{better-sqlite3-MIHBCO3K.js → better-sqlite3-OBFNNE4T.js} +2 -2
  30. package/dist/cli/chunks/{brain-handler-ROJZOXD3.js → brain-handler-FV2AJZ4A.js} +3 -3
  31. package/dist/cli/chunks/{branch-enumerator-LYOBZQYN.js → branch-enumerator-6B4L5O3D.js} +2 -2
  32. package/dist/cli/chunks/{browser-MYZ22Z22.js → browser-VDMGBWNK.js} +2 -2
  33. package/dist/cli/chunks/browser-workflow-GKWDM25H.js +2 -0
  34. package/dist/cli/chunks/{chunk-HUF4AONC.js → chunk-23E37MDA.js} +2 -2
  35. package/dist/cli/chunks/{chunk-3FUI4SKR.js → chunk-24XW7KUX.js} +2 -2
  36. package/dist/cli/chunks/{chunk-6HBULOTM.js → chunk-2BDTZYQN.js} +3 -3
  37. package/dist/cli/chunks/{chunk-ZSUBWGL3.js → chunk-2CBEQV6R.js} +2 -2
  38. package/dist/cli/chunks/{chunk-STFUARVH.js → chunk-2D7SBOZ4.js} +2 -2
  39. package/dist/cli/chunks/chunk-2E2QCIGR.js +12 -0
  40. package/dist/cli/chunks/{chunk-VGDQQVJI.js → chunk-2E3PRDEX.js} +2 -2
  41. package/dist/cli/chunks/{chunk-3Z44HZRV.js → chunk-2HT5HRAA.js} +2 -2
  42. package/dist/cli/chunks/{chunk-UNAAAXI2.js → chunk-2Y3PW5EJ.js} +2 -2
  43. package/dist/cli/chunks/{chunk-SMNHQK6U.js → chunk-36ONUM43.js} +1 -1
  44. package/dist/cli/chunks/{chunk-AET5ETY2.js → chunk-3SPYI7TS.js} +1 -1
  45. package/dist/cli/chunks/{chunk-FV2YHX26.js → chunk-4CTKRLRX.js} +2 -2
  46. package/dist/cli/chunks/{chunk-RQ3JWFH7.js → chunk-4DTBGQWA.js} +2 -2
  47. package/dist/cli/chunks/{chunk-OJ5FT22A.js → chunk-4TJJU5Y2.js} +3 -3
  48. package/dist/cli/chunks/{chunk-L5SV6NNH.js → chunk-4TUGQESL.js} +2 -2
  49. package/dist/cli/chunks/{chunk-WQT5WSDA.js → chunk-4X4GTEQY.js} +1 -1
  50. package/dist/cli/chunks/{chunk-KJKA35Q5.js → chunk-4ZQOJ7Q2.js} +2 -2
  51. package/dist/cli/chunks/{chunk-N4CORNKN.js → chunk-5364DBZG.js} +2 -2
  52. package/dist/cli/chunks/{chunk-65Q64QCC.js → chunk-76NSSNB3.js} +2 -2
  53. package/dist/cli/chunks/{chunk-NDO6NIB3.js → chunk-7HTYM6XY.js} +2 -2
  54. package/dist/cli/chunks/{chunk-CGVB4XBJ.js → chunk-7YL7P5XG.js} +2 -2
  55. package/dist/cli/chunks/{chunk-ZG25CHVY.js → chunk-AAPJG3WI.js} +2 -2
  56. package/dist/cli/chunks/{chunk-4FNDI3M2.js → chunk-AFXMTSO3.js} +1 -1
  57. package/dist/cli/chunks/{chunk-LCVKHWW2.js → chunk-AHG2O5HT.js} +2 -2
  58. package/dist/cli/chunks/{chunk-JA5WSDDW.js → chunk-ATRUE6CT.js} +2 -2
  59. package/dist/cli/chunks/{chunk-AKXLZ7CW.js → chunk-AZVV7POX.js} +3 -3
  60. package/dist/cli/chunks/{chunk-NUWMKDQH.js → chunk-B646CE3C.js} +2 -2
  61. package/dist/cli/chunks/{chunk-DSVSZPI3.js → chunk-BL5BHBXR.js} +1 -1
  62. package/dist/cli/chunks/{chunk-A546FJQP.js → chunk-BPPEN7SS.js} +2 -2
  63. package/dist/cli/chunks/{chunk-LNPXRGCM.js → chunk-BVKFBJX6.js} +4 -4
  64. package/dist/cli/chunks/{chunk-BSBYYUT5.js → chunk-CK7ZLMD2.js} +1 -1
  65. package/dist/cli/chunks/{chunk-UPCKORAJ.js → chunk-CTS545BF.js} +1 -1
  66. package/dist/cli/chunks/chunk-CYQRZ645.js +2 -0
  67. package/dist/cli/chunks/{chunk-ZKYKW4CH.js → chunk-DLL3AJH7.js} +1 -1
  68. package/dist/cli/chunks/{chunk-O6RY2MKE.js → chunk-DMHQ4ZUZ.js} +2 -2
  69. package/dist/cli/chunks/{chunk-HTVDDFRI.js → chunk-DPZ4AU6W.js} +2 -2
  70. package/dist/cli/chunks/{chunk-7NOX3Y6P.js → chunk-DXQMVATY.js} +2 -2
  71. package/dist/cli/chunks/{chunk-WC3WHPUW.js → chunk-E54QUKAD.js} +2 -2
  72. package/dist/cli/chunks/{chunk-JWS2G6PO.js → chunk-EHZQIXH6.js} +3 -3
  73. package/dist/cli/chunks/{chunk-TGFOEDBY.js → chunk-EI4KYBNI.js} +2 -2
  74. package/dist/cli/chunks/{chunk-EZITEQMG.js → chunk-EKFKQGIT.js} +1 -1
  75. package/dist/cli/chunks/{chunk-PG2ERIJE.js → chunk-EN36AFRJ.js} +1 -1
  76. package/dist/cli/chunks/{chunk-CKRIQVMB.js → chunk-EWH7PFV6.js} +1 -1
  77. package/dist/cli/chunks/{chunk-RWR5G4Q2.js → chunk-FBASWZ7G.js} +1 -1
  78. package/dist/cli/chunks/{chunk-72ALY5JJ.js → chunk-FPX4JSFH.js} +2 -2
  79. package/dist/cli/chunks/{chunk-C6HU5SIU.js → chunk-FXKOHZBN.js} +1 -1
  80. package/dist/cli/chunks/{chunk-RH2VLBDQ.js → chunk-GJTGHVAX.js} +4 -4
  81. package/dist/cli/chunks/{chunk-BJNQ4H5G.js → chunk-GP5QBJVO.js} +2 -2
  82. package/dist/cli/chunks/{chunk-X4OKGVV2.js → chunk-GPJDZFFV.js} +2 -2
  83. package/dist/cli/chunks/{chunk-LZF2HITR.js → chunk-GWTGBQ6X.js} +2 -2
  84. package/dist/cli/chunks/{chunk-IB6YCQDH.js → chunk-H3AKF2HS.js} +10 -10
  85. package/dist/cli/chunks/{chunk-4NJZLASI.js → chunk-H3BHOIT6.js} +3 -3
  86. package/dist/cli/chunks/{chunk-LN7FJGP7.js → chunk-H5DS7S4B.js} +2 -2
  87. package/dist/cli/chunks/{chunk-OOVCVFUF.js → chunk-H7QWOJF2.js} +2 -2
  88. package/dist/cli/chunks/{chunk-YDWDU45I.js → chunk-HGPMS6JL.js} +2 -2
  89. package/dist/cli/chunks/{chunk-NIRZ7WJ6.js → chunk-HHEWINDL.js} +1 -1
  90. package/dist/cli/chunks/{chunk-ZBLJYWUE.js → chunk-HV6LJ57R.js} +1 -1
  91. package/dist/cli/chunks/{chunk-OYVUVHNV.js → chunk-HZR4G6I3.js} +1 -1
  92. package/dist/cli/chunks/{chunk-E5SUSYYD.js → chunk-IGW5L7YM.js} +1 -1
  93. package/dist/cli/chunks/{chunk-TZ67G37C.js → chunk-IYMV4CU5.js} +2 -2
  94. package/dist/cli/chunks/{chunk-EFAH6NUD.js → chunk-IZF3VLNW.js} +1 -1
  95. package/dist/cli/chunks/{chunk-QWSAEJSB.js → chunk-IZOWGVTU.js} +2 -2
  96. package/dist/cli/chunks/{chunk-T56N64OC.js → chunk-JGXP67BP.js} +1 -1
  97. package/dist/cli/chunks/{chunk-K55DZSEB.js → chunk-JK6ENS3J.js} +2 -2
  98. package/dist/cli/chunks/{chunk-C3D6X6NJ.js → chunk-JKP2BUF5.js} +2 -2
  99. package/dist/cli/chunks/{chunk-JKIVHK36.js → chunk-JKPMV5VB.js} +5 -5
  100. package/dist/cli/chunks/{chunk-TON5HYQM.js → chunk-JTQSXU6V.js} +6 -6
  101. package/dist/cli/chunks/{chunk-DT4ZMOFZ.js → chunk-JWT675RM.js} +2 -2
  102. package/dist/cli/chunks/{chunk-6EKA2SCV.js → chunk-K652SCBA.js} +2 -2
  103. package/dist/cli/chunks/{chunk-2G5ALMG4.js → chunk-LIGDJP6H.js} +1 -1
  104. package/dist/cli/chunks/{chunk-6VX2X4V5.js → chunk-LLP3UW62.js} +2 -2
  105. package/dist/cli/chunks/{chunk-ATIP66H7.js → chunk-LM727BVL.js} +4 -4
  106. package/dist/cli/chunks/{chunk-NWIO7QC2.js → chunk-LPDT27EC.js} +2 -2
  107. package/dist/cli/chunks/{chunk-N46VHXWO.js → chunk-LREIHR2A.js} +2 -2
  108. package/dist/cli/chunks/{chunk-HZLDCCUG.js → chunk-LUAXQB57.js} +1 -1
  109. package/dist/cli/chunks/{chunk-2IZTUE6F.js → chunk-M3MRFZKD.js} +1 -1
  110. package/dist/cli/chunks/{chunk-RCWHZB3R.js → chunk-MS5CAEPA.js} +2 -2
  111. package/dist/cli/chunks/chunk-MUAW4AJ6.js +21 -0
  112. package/dist/cli/chunks/{chunk-3CJOOHYG.js → chunk-MWTFFGU3.js} +2 -2
  113. package/dist/cli/chunks/{chunk-X2337R6M.js → chunk-NC7HTDH5.js} +2 -2
  114. package/dist/cli/chunks/{chunk-MTDKYFTA.js → chunk-NHL37QAZ.js} +2 -2
  115. package/dist/cli/chunks/{chunk-YTSBGM2P.js → chunk-OJUI65TR.js} +2 -2
  116. package/dist/cli/chunks/{chunk-VS77GAT4.js → chunk-OLPJGYO5.js} +2 -2
  117. package/dist/cli/chunks/{chunk-54IXQXIS.js → chunk-OQWG7GOD.js} +2 -2
  118. package/dist/cli/chunks/{chunk-RBXHFTQ5.js → chunk-P736OKQN.js} +1 -1
  119. package/dist/cli/chunks/{chunk-LUWMJZ7E.js → chunk-PADCR4LY.js} +2 -2
  120. package/dist/cli/chunks/{chunk-L7XNBJHV.js → chunk-PBJ5I2NS.js} +2 -2
  121. package/dist/cli/chunks/{chunk-A5AE5UPZ.js → chunk-PJNIDDER.js} +1 -1
  122. package/dist/cli/chunks/{chunk-ZXXUIYCB.js → chunk-PT6U3IIK.js} +2 -2
  123. package/dist/cli/chunks/{chunk-JHVEZHOK.js → chunk-PZHAPI47.js} +3 -3
  124. package/dist/cli/chunks/{chunk-IYG6DTCX.js → chunk-QYHRDBKI.js} +2 -2
  125. package/dist/cli/chunks/{chunk-EJK3MI3R.js → chunk-RAV2NJNX.js} +1 -1
  126. package/dist/cli/chunks/{chunk-GBYAKR2N.js → chunk-RGUKQXKL.js} +2 -2
  127. package/dist/cli/chunks/{chunk-SXZQT2FZ.js → chunk-S3FNAHNC.js} +2 -2
  128. package/dist/cli/chunks/{chunk-B6XFUYR5.js → chunk-SJJFU7KK.js} +2 -2
  129. package/dist/cli/chunks/{chunk-A3DXONS3.js → chunk-SW56PB22.js} +2 -2
  130. package/dist/cli/chunks/{chunk-W6GI7MUQ.js → chunk-T5M4TZRB.js} +3 -3
  131. package/dist/cli/chunks/{chunk-GX6CO3D6.js → chunk-TBO64O56.js} +1 -1
  132. package/dist/cli/chunks/{chunk-MOI2ZRZO.js → chunk-TCVEXQLL.js} +2 -2
  133. package/dist/cli/chunks/{chunk-4QMDA37H.js → chunk-TJ67B7S7.js} +2 -2
  134. package/dist/cli/chunks/{chunk-4GQ5VVOT.js → chunk-TMY2Y7SC.js} +4 -4
  135. package/dist/cli/chunks/{chunk-PESU633W.js → chunk-TU4BYSXR.js} +2 -2
  136. package/dist/cli/chunks/{chunk-JOCSV4LF.js → chunk-TZA45FI7.js} +2 -2
  137. package/dist/cli/chunks/{chunk-7XX27XNP.js → chunk-U6G6RUFI.js} +1 -1
  138. package/dist/cli/chunks/{chunk-FWKC7LT4.js → chunk-UDFTDQ6C.js} +34 -29
  139. package/dist/cli/chunks/{chunk-UYTIAJYR.js → chunk-UDSNWQQI.js} +1 -1
  140. package/dist/cli/chunks/{chunk-RKW2QJOO.js → chunk-UGFHEVG4.js} +2 -2
  141. package/dist/cli/chunks/{chunk-LX6NH7H6.js → chunk-UJ2NRIAS.js} +2 -2
  142. package/dist/cli/chunks/chunk-UPMQHCC2.js +22 -0
  143. package/dist/cli/chunks/{chunk-Q3TRNLVW.js → chunk-UX5SM2PW.js} +1 -1
  144. package/dist/cli/chunks/{chunk-AWS57CRP.js → chunk-UZ7OWJ75.js} +1 -1
  145. package/dist/cli/chunks/{chunk-WCXFSJRL.js → chunk-V7QZMOG3.js} +2 -2
  146. package/dist/cli/chunks/{chunk-FOFNV7BX.js → chunk-VC77SDNH.js} +2 -2
  147. package/dist/cli/chunks/{chunk-LIGWEFMX.js → chunk-VHNAN7E2.js} +1 -1
  148. package/dist/cli/chunks/{chunk-ZFMJT3W3.js → chunk-VLW63UA2.js} +2 -2
  149. package/dist/cli/chunks/{chunk-DSIBLIBT.js → chunk-VNVGCJCS.js} +1 -1
  150. package/dist/cli/chunks/{chunk-D33E5HHN.js → chunk-VU3ARH4S.js} +1 -1
  151. package/dist/cli/chunks/{chunk-QLZARNJZ.js → chunk-W2NQDAJZ.js} +2 -2
  152. package/dist/cli/chunks/{chunk-CXE4PRSD.js → chunk-W2T36CS5.js} +1 -1
  153. package/dist/cli/chunks/{chunk-63MYZ3M7.js → chunk-W7BB4XLP.js} +2 -2
  154. package/dist/cli/chunks/{chunk-GTODN5Y4.js → chunk-WINYWMQP.js} +1 -1
  155. package/dist/cli/chunks/{chunk-IAETFGEU.js → chunk-WJB6YYMJ.js} +2 -2
  156. package/dist/cli/chunks/{chunk-HG72GVB7.js → chunk-WRMJWQUI.js} +1 -1
  157. package/dist/cli/chunks/{chunk-IPEZNH4I.js → chunk-WRZ5WZG3.js} +2 -2
  158. package/dist/cli/chunks/{chunk-JQOCV2J6.js → chunk-WVNLNXXI.js} +2 -2
  159. package/dist/cli/chunks/{chunk-DUTNDBCG.js → chunk-WYQM7GXW.js} +2 -2
  160. package/dist/cli/chunks/{chunk-GM2PCHSQ.js → chunk-XDK2TPI5.js} +1 -1
  161. package/dist/cli/chunks/{chunk-THFXHXI5.js → chunk-XEUUWOSS.js} +3 -3
  162. package/dist/cli/chunks/{chunk-OF6KNZTQ.js → chunk-XVFSZLRS.js} +1 -1
  163. package/dist/cli/chunks/{chunk-CHI37YGC.js → chunk-XZI4QXJJ.js} +2 -2
  164. package/dist/cli/chunks/{chunk-3ZE2SY34.js → chunk-Y2S6SS7M.js} +2 -2
  165. package/dist/cli/chunks/{chunk-6VYUCWXP.js → chunk-YDEYB6Z2.js} +1 -1
  166. package/dist/cli/chunks/{chunk-KMXLPREX.js → chunk-YEPJS4AM.js} +2 -2
  167. package/dist/cli/chunks/{chunk-YQJ2OXDO.js → chunk-YRCNWQBO.js} +2 -2
  168. package/dist/cli/chunks/{chunk-VAXIHPO5.js → chunk-YRV45WDT.js} +2 -2
  169. package/dist/cli/chunks/{chunk-XIPRR7GY.js → chunk-YXUFGDGS.js} +1 -1
  170. package/dist/cli/chunks/{chunk-IQ56TA3L.js → chunk-YYAJEPRD.js} +1 -1
  171. package/dist/cli/chunks/{chunk-IQVO6WPK.js → chunk-Z5ARI4XT.js} +2 -2
  172. package/dist/cli/chunks/{chunk-UHEBXKTE.js → chunk-ZNGFSR5M.js} +2 -2
  173. package/dist/cli/chunks/{ci-IMU2IXPA.js → ci-M6WYL2XY.js} +2 -2
  174. package/dist/cli/chunks/{ci-output-LGKIJVS5.js → ci-output-JFC3WOHX.js} +2 -2
  175. package/dist/cli/chunks/{circuit-breaker-FZ7TGAHZ.js → circuit-breaker-IMVBU6WP.js} +2 -2
  176. package/dist/cli/chunks/{claude-flow-setup-W3XJ4FJ2.js → claude-flow-setup-M5T5ZUXX.js} +2 -2
  177. package/dist/cli/chunks/client-4Q5JE7RY.js +2 -0
  178. package/dist/cli/chunks/{cline-installer-TI3Y6JJR.js → cline-installer-LSFAUHXC.js} +2 -2
  179. package/dist/cli/chunks/{code-NX6PWOUZ.js → code-N3SWJ3XL.js} +2 -2
  180. package/dist/cli/chunks/{code-index-extractor-GQDB5XMF.js → code-index-extractor-WPGRG36B.js} +2 -2
  181. package/dist/cli/chunks/{codex-installer-EZZFZ5VD.js → codex-installer-LKRCSDU5.js} +2 -2
  182. package/dist/cli/chunks/{completions-X4ASXBRI.js → completions-E5TBZ5AB.js} +2 -2
  183. package/dist/cli/chunks/{complexity-analyzer-PYG3DINO.js → complexity-analyzer-3FOSOELK.js} +2 -2
  184. package/dist/cli/chunks/{continuedev-installer-IR3Y2BQQ.js → continuedev-installer-ZSVFWMQB.js} +2 -2
  185. package/dist/cli/chunks/{copilot-installer-JCTLA6PG.js → copilot-installer-POSKHPZM.js} +2 -2
  186. package/dist/cli/chunks/core-handlers-4GKEYGPS.js +2 -0
  187. package/dist/cli/chunks/{cost-tracker-BYW7MIWY.js → cost-tracker-3UWDCNGC.js} +2 -2
  188. package/dist/cli/chunks/{coverage-NY5GJHHO.js → coverage-HPBO67JF.js} +3 -3
  189. package/dist/cli/chunks/cross-domain-router-PBJ2ZGPJ.js +2 -0
  190. package/dist/cli/chunks/{cursor-installer-LY2DK5ME.js → cursor-installer-DSW3L62X.js} +2 -2
  191. package/dist/cli/chunks/{daemon-LUSUET7S.js → daemon-2622ZCMJ.js} +3 -3
  192. package/dist/cli/chunks/{daemon-6BBTE3WA.js → daemon-33KTKDUM.js} +6 -6
  193. package/dist/cli/chunks/{dag-attention-scheduler-ETVDRH42.js → dag-attention-scheduler-YFT5JMM6.js} +2 -2
  194. package/dist/cli/chunks/{detect-5TDALRZ4.js → detect-COR3Q6BE.js} +2 -2
  195. package/dist/cli/chunks/{dist-node-ITA3A7NT.js → dist-node-5TRNTNWI.js} +2 -2
  196. package/dist/cli/chunks/{domain-handler-MMK44XEP.js → domain-handler-TZC4GCF6.js} +2 -2
  197. package/dist/cli/chunks/{domain-transfer-XUYQQUDR.js → domain-transfer-D2TENM3Y.js} +2 -2
  198. package/dist/cli/chunks/dream-4EXVFHUJ.js +2 -0
  199. package/dist/cli/chunks/{embed-and-insert-pattern-QVICUJUQ.js → embed-and-insert-pattern-COAZZGS6.js} +2 -2
  200. package/dist/cli/chunks/{eval-SXTOGYM3.js → eval-5ID5D77H.js} +2 -2
  201. package/dist/cli/chunks/{experience-capture-middleware-4HPAJFR6.js → experience-capture-middleware-MT4Z74TD.js} +3 -3
  202. package/dist/cli/chunks/{fast-paths-YBKHXUDN.js → fast-paths-MACRZGSE.js} +2 -2
  203. package/dist/cli/chunks/{feature-flags-Z5FQBEV4.js → feature-flags-JZX6ZBUX.js} +2 -2
  204. package/dist/cli/chunks/{feature-flags-S5Z3ULWK.js → feature-flags-LFNL6BHS.js} +2 -2
  205. package/dist/cli/chunks/{file-discovery-XZW5LKN3.js → file-discovery-DA5BEAO2.js} +2 -2
  206. package/dist/cli/chunks/{fleet-O75AZK4L.js → fleet-35I4F7D2.js} +3 -3
  207. package/dist/cli/chunks/{gnn-wrapper-U4DJTYGF.js → gnn-wrapper-2W3HM3ZI.js} +2 -2
  208. package/dist/cli/chunks/{heartbeat-handler-OWA45EGK.js → heartbeat-handler-6O2D2FU2.js} +4 -4
  209. package/dist/cli/chunks/heartbeat-scheduler-UNEYR3WR.js +2 -0
  210. package/dist/cli/chunks/hnsw-adapter-JQG66H4L.js +2 -0
  211. package/dist/cli/chunks/hnsw-index-2NOROILM.js +2 -0
  212. package/dist/cli/chunks/{hnsw-legacy-bridge-7TOTV3ZL.js → hnsw-legacy-bridge-GWBXEMQR.js} +2 -2
  213. package/dist/cli/chunks/{hnswlib-node-IZMOJZUS.js → hnswlib-node-TZ4VLARU.js} +2 -2
  214. package/dist/cli/chunks/{hooks-PE5LSJKB.js → hooks-723GPTQ4.js} +46 -45
  215. package/dist/cli/chunks/hybrid-router-FXTAJATE.js +2 -0
  216. package/dist/cli/chunks/{hypergraph-engine-D35OOHVQ.js → hypergraph-engine-ILRYFJM5.js} +2 -2
  217. package/dist/cli/chunks/{hypergraph-handler-DK3LHKQH.js → hypergraph-handler-523TSK4P.js} +3 -3
  218. package/dist/cli/chunks/impact-analyzer-VHZSBWMT.js +2 -0
  219. package/dist/cli/chunks/{init-handler-IRDWSHCT.js → init-handler-RBDYIXNV.js} +6 -6
  220. package/dist/cli/chunks/init-wizard-EML4OET2.js +2 -0
  221. package/dist/cli/chunks/kernel-TMRJOEO2.js +2 -0
  222. package/dist/cli/chunks/{kilocode-installer-USR3YEL6.js → kilocode-installer-E2QSX7Z7.js} +2 -2
  223. package/dist/cli/chunks/{kiro-installer-HYY224T6.js → kiro-installer-EZZLT2R5.js} +2 -2
  224. package/dist/cli/chunks/knowledge-graph-FMKVCMJQ.js +2 -0
  225. package/dist/cli/chunks/{learning-IHMVNPBE.js → learning-II2U3EV2.js} +44 -44
  226. package/dist/cli/chunks/{llm-router-J56WPWPM.js → llm-router-WC66OXZH.js} +4 -4
  227. package/dist/cli/chunks/llm-router-service-GOSVGMKM.js +2 -0
  228. package/dist/cli/chunks/{load-FXXVWFL6.js → load-QFQ3YOBQ.js} +2 -2
  229. package/dist/cli/chunks/load-test-WIRGDZIA.js +2 -0
  230. package/dist/cli/chunks/{mcp-KU5KYQTD.js → mcp-FPBBJJFY.js} +2 -2
  231. package/dist/cli/chunks/{memory-J2IAQPDA.js → memory-RKN6KV75.js} +5 -5
  232. package/dist/cli/chunks/memory-backend-XBBIXDZU.js +2 -0
  233. package/dist/cli/chunks/{memory-handlers-7ABPOY43.js → memory-handlers-SQHNK3DK.js} +2 -2
  234. package/dist/cli/chunks/{multi-model-executor-6PUQXMYY.js → multi-model-executor-OUNW3JM5.js} +2 -2
  235. package/dist/cli/chunks/{opencode-installer-WMIV5I7Y.js → opencode-installer-FXETYGGY.js} +2 -2
  236. package/dist/cli/chunks/{orchestrator-5IT7SH3J.js → orchestrator-35UTVXSP.js} +8 -8
  237. package/dist/cli/chunks/pattern-null-store-PFLKHRVU.js +2 -0
  238. package/dist/cli/chunks/pattern-usage-recorder-YEQDS7DN.js +2 -0
  239. package/dist/cli/chunks/{pipeline-E2IRDQWS.js → pipeline-YDJMWCAR.js} +2 -2
  240. package/dist/cli/chunks/{platform-2VT7N4FW.js → platform-L3LPNVKT.js} +2 -2
  241. package/dist/cli/chunks/{plugin-LCDA6EH7.js → plugin-55EYFJH5.js} +2 -2
  242. package/dist/cli/chunks/{prime-radiant-advanced-wasm-ROJL25C7.js → prime-radiant-advanced-wasm-SUZT6RTM.js} +2 -2
  243. package/dist/cli/chunks/protocol-executor-GAMNY2JB.js +2 -0
  244. package/dist/cli/chunks/{protocol-handler-VFJIPR3Z.js → protocol-handler-QNBFRJNY.js} +2 -2
  245. package/dist/cli/chunks/{prove-7FUSRIPO.js → prove-3X5NQP4L.js} +2 -2
  246. package/dist/cli/chunks/provider-manager-VTIG5AKU.js +2 -0
  247. package/dist/cli/chunks/qe-reasoning-bank-KAX63PXV.js +2 -0
  248. package/dist/cli/chunks/{quality-ZH7UVAOX.js → quality-5ZONTNA6.js} +2 -2
  249. package/dist/cli/chunks/{quality-gate-AMEWYWGC.js → quality-gate-JPNREEVR.js} +3 -3
  250. package/dist/cli/chunks/queen-coordinator-UYW2MDKI.js +2 -0
  251. package/dist/cli/chunks/{real-embeddings-IZVFG3L7.js → real-embeddings-HHR75AR5.js} +2 -2
  252. package/dist/cli/chunks/{roocode-installer-HAYQZOWR.js → roocode-installer-ZK73O2GD.js} +2 -2
  253. package/dist/cli/chunks/router-NVDU7IIA.js +2 -0
  254. package/dist/cli/chunks/routing-feedback-KHR3J2J3.js +2 -0
  255. package/dist/cli/chunks/{routing-handler-7BQ4DGTC.js → routing-handler-2UN5GRHJ.js} +2 -2
  256. package/dist/cli/chunks/ruvector-commands-EQQUEVWN.js +8 -0
  257. package/dist/cli/chunks/{rvf-dual-writer-FWKV5K2X.js → rvf-dual-writer-43L75WLF.js} +2 -2
  258. package/dist/cli/chunks/{rvf-migration-adapter-PI5KBWJU.js → rvf-migration-adapter-Y5OVCYTO.js} +2 -2
  259. package/dist/cli/chunks/{rvf-migration-coordinator-JHXYB46O.js → rvf-migration-coordinator-NEPDFB3N.js} +2 -2
  260. package/dist/cli/chunks/rvf-native-adapter-PQ4IOTZU.js +2 -0
  261. package/dist/cli/chunks/{rvf-store-integrity-DUM657DL.js → rvf-store-integrity-66FEC3MD.js} +2 -2
  262. package/dist/cli/chunks/safe-db-QHSFV63M.js +2 -0
  263. package/dist/cli/chunks/schedule-JGZFHJGM.js +2 -0
  264. package/dist/cli/chunks/scheduler-NGCDQIW5.js +2 -0
  265. package/dist/cli/chunks/{security-T5DTMZC6.js → security-H7PEUUCV.js} +3 -3
  266. package/dist/cli/chunks/{shared-rvf-adapter-H5DBPOKP.js → shared-rvf-adapter-XETNK4ID.js} +2 -2
  267. package/dist/cli/chunks/{shared-rvf-dual-writer-RNX4ZPSI.js → shared-rvf-dual-writer-PXD54BWJ.js} +2 -2
  268. package/dist/cli/chunks/sqlite-persistence-3JSNWL6I.js +2 -0
  269. package/dist/cli/chunks/{status-handler-FRFUWMNX.js → status-handler-CTXOH3FX.js} +2 -2
  270. package/dist/cli/chunks/{structural-health-HGI5BVK5.js → structural-health-EIFBDCRI.js} +2 -2
  271. package/dist/cli/chunks/{sync-SM74LPGW.js → sync-3SU4H6R3.js} +2 -2
  272. package/dist/cli/chunks/{sync-BZXPUFID.js → sync-PECWQ64K.js} +2 -2
  273. package/dist/cli/chunks/{task-handler-JSNI3UUU.js → task-handler-ZTUAT6YF.js} +2 -2
  274. package/dist/cli/chunks/{task-handlers-3GX6FAIK.js → task-handlers-4RIO7LJJ.js} +3 -3
  275. package/dist/cli/chunks/{test-GJKIE5YP.js → test-EV7BSUTI.js} +4 -4
  276. package/dist/cli/chunks/{test-scheduling-GNQNODVJ.js → test-scheduling-4WVI5DLE.js} +3 -3
  277. package/dist/cli/chunks/{token-bootstrap-Y7M4MA5T.js → token-bootstrap-3P22AYZ4.js} +2 -2
  278. package/dist/cli/chunks/{token-usage-MJFATDHC.js → token-usage-FR3JOWYB.js} +2 -2
  279. package/dist/cli/chunks/{transformers-4KPBAG5X.js → transformers-FENO33LA.js} +2 -2
  280. package/dist/cli/chunks/{tree-sitter-wasm-parser-DH7LQEKB.js → tree-sitter-wasm-parser-YFGJLSMB.js} +2 -2
  281. package/dist/cli/chunks/{types-LMEHA7DB.js → types-N3Y565RZ.js} +2 -2
  282. package/dist/cli/chunks/unified-memory-4VO5KSHP.js +2 -0
  283. package/dist/cli/chunks/unified-memory-hnsw-ZR2FZXOB.js +2 -0
  284. package/dist/cli/chunks/unified-persistence-VFPW5MFM.js +2 -0
  285. package/dist/cli/chunks/upgrade-33ZVVZFW.js +5 -0
  286. package/dist/cli/chunks/{validate-MLIAYGQB.js → validate-CS5PXGDF.js} +2 -2
  287. package/dist/cli/chunks/{validate-swarm-35YPIDUP.js → validate-swarm-GRZPWYNM.js} +2 -2
  288. package/dist/cli/chunks/{vibium-6SVRNFHR.js → vibium-IO7N4VEE.js} +2 -2
  289. package/dist/cli/chunks/visual-security-SNADRUPR.js +2 -0
  290. package/dist/cli/chunks/{web-tree-sitter-QYZYEGUN.js → web-tree-sitter-UQXR5HHR.js} +2 -2
  291. package/dist/cli/chunks/{windsurf-installer-XUFBPW4P.js → windsurf-installer-BCKLSLZT.js} +2 -2
  292. package/dist/cli/chunks/witness-chain-2TXUTEJE.js +2 -0
  293. package/dist/cli/chunks/{witness-chain-33NEUT4H.js → witness-chain-R3V26QWL.js} +2 -2
  294. package/dist/cli/chunks/{witness-key-manager-SVCIWNWV.js → witness-key-manager-Y36HMPEM.js} +2 -2
  295. package/dist/cli/chunks/{workflow-GFR6CHMB.js → workflow-4TCIUUFQ.js} +4 -4
  296. package/dist/cli/chunks/workflow-orchestrator-ON6UYRVE.js +2 -0
  297. package/dist/cli/chunks/{wrappers-IBS4IWV4.js → wrappers-MD4JRHJH.js} +2 -2
  298. package/dist/cli/commands/daemon.js +3 -3
  299. package/dist/cli/commands/hooks-handlers/hooks-dream-learning.js +20 -10
  300. package/dist/cli/commands/hooks-handlers/routing-hooks.js +7 -0
  301. package/dist/cli/commands/learning.js +55 -17
  302. package/dist/cli/commands/plugin.js +4 -4
  303. package/dist/cli/commands/quality-gate.js +5 -1
  304. package/dist/cli/commands/ruvector-commands.js +1 -1
  305. package/dist/cli/commands/upgrade.d.ts +5 -1
  306. package/dist/cli/commands/upgrade.js +34 -6
  307. package/dist/cli/index.js +1 -1
  308. package/dist/cli/utils/index.js +2 -2
  309. package/dist/context/compaction/index.js +11 -11
  310. package/dist/context/compaction/tier1-microcompact.js +1 -1
  311. package/dist/context/compaction/tier2-session-summary.js +1 -1
  312. package/dist/context/compaction/tier3-llm-compact.js +1 -1
  313. package/dist/context/compaction/tier4-reactive.js +1 -1
  314. package/dist/coordination/claims/index.js +8 -8
  315. package/dist/coordination/consensus/consensus-engine.js +4 -4
  316. package/dist/coordination/consensus/factory.js +4 -4
  317. package/dist/coordination/consensus/index.js +8 -8
  318. package/dist/coordination/consensus/providers/claude-provider.js +1 -1
  319. package/dist/coordination/consensus/providers/gemini-provider.js +1 -1
  320. package/dist/coordination/consensus/providers/index.js +7 -7
  321. package/dist/coordination/consensus/providers/native-learning-provider.js +1 -1
  322. package/dist/coordination/consensus/providers/ollama-provider.js +1 -1
  323. package/dist/coordination/consensus/providers/openai-provider.js +1 -1
  324. package/dist/coordination/consensus/providers/openrouter-provider.js +1 -1
  325. package/dist/coordination/consensus/strategies/index.js +3 -3
  326. package/dist/coordination/cross-domain-router.js +2 -2
  327. package/dist/coordination/dynamic-scaling/dynamic-scaler.js +1 -1
  328. package/dist/coordination/dynamic-scaling/index.js +2 -2
  329. package/dist/coordination/fleet-tiers/index.js +3 -3
  330. package/dist/coordination/fleet-tiers/tier-selector.js +2 -2
  331. package/dist/coordination/handlers/code-intelligence-handlers.js +2 -2
  332. package/dist/coordination/handlers/coverage-collection.js +1 -1
  333. package/dist/coordination/handlers/coverage-handlers.js +3 -3
  334. package/dist/coordination/handlers/index.js +7 -7
  335. package/dist/coordination/handlers/misc-handlers.js +1 -1
  336. package/dist/coordination/handlers/quality-handlers.js +2 -2
  337. package/dist/coordination/handlers/requirements-handlers.js +2 -2
  338. package/dist/coordination/handlers/security-handlers.js +2 -2
  339. package/dist/coordination/handlers/test-execution-handlers.js +1 -1
  340. package/dist/coordination/index.js +20 -20
  341. package/dist/coordination/mincut/dream-integration.js +1 -1
  342. package/dist/coordination/mincut/index.js +14 -14
  343. package/dist/coordination/mincut/mincut-health-monitor.js +2 -2
  344. package/dist/coordination/mincut/mincut-persistence.js +1 -1
  345. package/dist/coordination/mincut/morphogenetic-growth.js +1 -1
  346. package/dist/coordination/mincut/neural-goap.js +1 -1
  347. package/dist/coordination/mincut/queen-integration.js +5 -5
  348. package/dist/coordination/mincut/shared-singleton.js +3 -3
  349. package/dist/coordination/mincut/strange-loop.js +1 -1
  350. package/dist/coordination/mincut/time-crystal.js +8 -8
  351. package/dist/coordination/mixins/consensus-enabled-domain.js +2 -2
  352. package/dist/coordination/mixins/index.js +3 -3
  353. package/dist/coordination/protocol-executor.js +2 -2
  354. package/dist/coordination/protocols/code-intelligence-index.js +4 -4
  355. package/dist/coordination/protocols/defect-investigation.js +2 -2
  356. package/dist/coordination/protocols/morning-sync.js +1 -1
  357. package/dist/coordination/protocols/quality-gate.js +2 -2
  358. package/dist/coordination/queen-coordinator.js +4 -4
  359. package/dist/coordination/queen-task-management.js +1 -1
  360. package/dist/coordination/services/index.js +1 -1
  361. package/dist/coordination/task-executor.js +6 -6
  362. package/dist/domains/chaos-resilience/coordinator.js +6 -6
  363. package/dist/domains/chaos-resilience/index.js +5 -5
  364. package/dist/domains/chaos-resilience/plugin.js +6 -6
  365. package/dist/domains/chaos-resilience/services/chaos-engineer.js +3 -3
  366. package/dist/domains/chaos-resilience/services/index.js +3 -3
  367. package/dist/domains/chaos-resilience/services/load-tester.js +2 -2
  368. package/dist/domains/chaos-resilience/services/performance-profiler.js +2 -2
  369. package/dist/domains/code-intelligence/coordinator-consensus.js +1 -1
  370. package/dist/domains/code-intelligence/coordinator-gnn.js +1 -1
  371. package/dist/domains/code-intelligence/coordinator-hypergraph.js +2 -2
  372. package/dist/domains/code-intelligence/coordinator.js +9 -9
  373. package/dist/domains/code-intelligence/index.js +7 -7
  374. package/dist/domains/code-intelligence/plugin.js +6 -6
  375. package/dist/domains/code-intelligence/services/c4-model/index.js +3 -3
  376. package/dist/domains/code-intelligence/services/impact-analyzer.js +2 -2
  377. package/dist/domains/code-intelligence/services/index.js +6 -6
  378. package/dist/domains/code-intelligence/services/knowledge-graph.js +4 -4
  379. package/dist/domains/code-intelligence/services/metric-collector/loc-counter.js +1 -1
  380. package/dist/domains/code-intelligence/services/metric-collector/test-counter.js +1 -1
  381. package/dist/domains/code-intelligence/services/product-factors-bridge.js +5 -5
  382. package/dist/domains/code-intelligence/services/semantic-analyzer.js +2 -2
  383. package/dist/domains/coverage-analysis/coordinator.js +9 -9
  384. package/dist/domains/coverage-analysis/index.js +10 -10
  385. package/dist/domains/coverage-analysis/plugin.js +4 -4
  386. package/dist/domains/coverage-analysis/services/coverage-analyzer.js +1 -1
  387. package/dist/domains/coverage-analysis/services/gap-detector.js +1 -1
  388. package/dist/domains/coverage-analysis/services/ghost-coverage-analyzer.js +1 -1
  389. package/dist/domains/coverage-analysis/services/index.js +7 -7
  390. package/dist/domains/coverage-analysis/services/risk-scorer.js +1 -1
  391. package/dist/domains/coverage-analysis/services/sublinear-analyzer.js +3 -3
  392. package/dist/domains/defect-intelligence/coordinator.js +5 -5
  393. package/dist/domains/defect-intelligence/index.js +5 -5
  394. package/dist/domains/defect-intelligence/plugin.js +6 -6
  395. package/dist/domains/defect-intelligence/services/causal-root-cause-analyzer.js +2 -2
  396. package/dist/domains/defect-intelligence/services/defect-predictor.js +4 -4
  397. package/dist/domains/defect-intelligence/services/index.js +4 -4
  398. package/dist/domains/defect-intelligence/services/pattern-learner.js +2 -2
  399. package/dist/domains/defect-intelligence/services/root-cause-analyzer.js +1 -1
  400. package/dist/domains/domain-interface.js +1 -1
  401. package/dist/domains/index.js +14 -14
  402. package/dist/domains/learning-optimization/coordinator.d.ts +3 -0
  403. package/dist/domains/learning-optimization/coordinator.js +6 -0
  404. package/dist/domains/learning-optimization/interfaces.d.ts +2 -0
  405. package/dist/domains/learning-optimization/plugin.d.ts +3 -0
  406. package/dist/domains/learning-optimization/plugin.js +5 -0
  407. package/dist/domains/quality-assessment/coherence/gate-controller.js +2 -2
  408. package/dist/domains/quality-assessment/coherence/lambda-calculator.js +1 -1
  409. package/dist/domains/quality-assessment/coherence/partition-detector.js +1 -1
  410. package/dist/domains/quality-assessment/coordinator-gate-evaluation.js +1 -1
  411. package/dist/domains/quality-assessment/coordinator-reports.js +1 -1
  412. package/dist/domains/quality-assessment/coordinator-rl-integration.js +2 -2
  413. package/dist/domains/quality-assessment/coordinator.js +5 -5
  414. package/dist/domains/quality-assessment/index.js +9 -9
  415. package/dist/domains/quality-assessment/plugin.js +6 -6
  416. package/dist/domains/quality-assessment/services/coherence-gate.js +6 -6
  417. package/dist/domains/quality-assessment/services/deployment-advisor.js +1 -1
  418. package/dist/domains/quality-assessment/services/index.js +4 -4
  419. package/dist/domains/quality-assessment/services/quality-analyzer.js +2 -2
  420. package/dist/domains/quality-assessment/services/quality-gate.js +1 -1
  421. package/dist/domains/requirements-validation/services/product-factors-assessment/analyzers/brutal-honesty-analyzer.js +2 -2
  422. package/dist/domains/requirements-validation/services/product-factors-assessment/analyzers/sfdipot-analyzer.js +2 -2
  423. package/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.js +1 -1
  424. package/dist/domains/requirements-validation/services/product-factors-assessment/formatters/gherkin-formatter.js +1 -1
  425. package/dist/domains/requirements-validation/services/product-factors-assessment/formatters/html-formatter.js +2 -2
  426. package/dist/domains/requirements-validation/services/product-factors-assessment/formatters/markdown-formatter.js +1 -1
  427. package/dist/domains/requirements-validation/services/product-factors-assessment/generators/question-generator.js +3 -3
  428. package/dist/domains/requirements-validation/services/product-factors-assessment/generators/test-idea-generator.js +3 -3
  429. package/dist/domains/requirements-validation/services/product-factors-assessment/patterns/domain-registry.js +1 -1
  430. package/dist/domains/requirements-validation/services/product-factors-assessment/patterns/index.js +1 -1
  431. package/dist/domains/requirements-validation/services/product-factors-assessment/skills/skill-integration.js +1 -1
  432. package/dist/domains/security-compliance/coordinator.js +1 -1
  433. package/dist/domains/security-compliance/index.js +1 -1
  434. package/dist/domains/security-compliance/services/compliance-validator.js +1 -1
  435. package/dist/domains/security-compliance/services/scanners/dast-helpers.js +1 -1
  436. package/dist/domains/security-compliance/services/scanners/dast-scanner.js +2 -2
  437. package/dist/domains/security-compliance/services/scanners/dependency-scanner.js +4 -4
  438. package/dist/domains/security-compliance/services/scanners/sast-scanner.js +3 -3
  439. package/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js +2 -2
  440. package/dist/domains/test-execution/coordinator.js +8 -8
  441. package/dist/domains/test-execution/index.js +9 -9
  442. package/dist/domains/test-execution/interfaces.js +1 -1
  443. package/dist/domains/test-execution/plugin.js +3 -3
  444. package/dist/domains/test-execution/services/e2e/adaptive-locator-service.js +1 -1
  445. package/dist/domains/test-execution/services/e2e/assertion-handlers.js +2 -2
  446. package/dist/domains/test-execution/services/e2e/browser-orchestrator.js +3 -3
  447. package/dist/domains/test-execution/services/e2e/e2e-coordinator.js +7 -7
  448. package/dist/domains/test-execution/services/e2e/index.js +10 -10
  449. package/dist/domains/test-execution/services/e2e/step-executors.js +6 -6
  450. package/dist/domains/test-execution/services/e2e/step-retry-handler.js +3 -3
  451. package/dist/domains/test-execution/services/e2e/wait-condition-handler.js +1 -1
  452. package/dist/domains/test-execution/services/e2e-runner.js +6 -6
  453. package/dist/domains/test-execution/services/flaky-detector.js +1 -1
  454. package/dist/domains/test-execution/services/index.js +9 -9
  455. package/dist/domains/test-execution/services/retry-handler.js +1 -1
  456. package/dist/domains/test-execution/services/test-executor.js +1 -1
  457. package/dist/domains/test-execution/services/test-prioritizer.js +3 -3
  458. package/dist/domains/test-execution/services/user-flow-generator.js +3 -3
  459. package/dist/domains/test-execution/test-prioritization-types.js +1 -1
  460. package/dist/domains/test-execution/types/index.js +3 -3
  461. package/dist/domains/test-generation/coordinator.js +5 -5
  462. package/dist/domains/test-generation/factories/index.js +1 -1
  463. package/dist/domains/test-generation/factories/test-generator-factory.js +1 -1
  464. package/dist/domains/test-generation/generators/base-test-generator.js +1 -1
  465. package/dist/domains/test-generation/generators/go-test-generator.js +2 -2
  466. package/dist/domains/test-generation/generators/index.js +13 -13
  467. package/dist/domains/test-generation/generators/jest-vitest-generator.js +1 -1
  468. package/dist/domains/test-generation/generators/junit5-generator.js +2 -2
  469. package/dist/domains/test-generation/generators/kotlin-junit-generator.js +2 -2
  470. package/dist/domains/test-generation/generators/mocha-generator.js +1 -1
  471. package/dist/domains/test-generation/generators/node-test-generator.js +1 -1
  472. package/dist/domains/test-generation/generators/pytest-generator.js +2 -2
  473. package/dist/domains/test-generation/generators/rust-test-generator.js +3 -3
  474. package/dist/domains/test-generation/generators/swift-testing-generator.js +2 -2
  475. package/dist/domains/test-generation/generators/xunit-generator.js +2 -2
  476. package/dist/domains/test-generation/index.js +7 -7
  477. package/dist/domains/test-generation/interfaces/index.js +1 -1
  478. package/dist/domains/test-generation/plugin.js +5 -5
  479. package/dist/domains/test-generation/services/code-transform-integration.js +1 -1
  480. package/dist/domains/test-generation/services/index.js +10 -10
  481. package/dist/domains/test-generation/services/pattern-matcher.js +2 -2
  482. package/dist/domains/test-generation/services/test-generator.js +5 -5
  483. package/dist/domains/visual-accessibility/coordinator.js +1 -1
  484. package/dist/early-exit/early-exit-controller.js +4 -4
  485. package/dist/early-exit/early-exit-decision.js +2 -2
  486. package/dist/early-exit/index.js +5 -5
  487. package/dist/early-exit/quality-signal.js +1 -1
  488. package/dist/early-exit/speculative-executor.js +1 -1
  489. package/dist/index.js +18 -18
  490. package/dist/init/phases/12-verification.js +8 -2
  491. package/dist/integrations/agentic-flow/agent-booster/adapter.js +4 -4
  492. package/dist/integrations/agentic-flow/agent-booster/index.js +10 -10
  493. package/dist/integrations/agentic-flow/index.js +6 -6
  494. package/dist/integrations/agentic-flow/metrics/index.js +3 -3
  495. package/dist/integrations/agentic-flow/metrics/metrics-tracker.js +2 -2
  496. package/dist/integrations/agentic-flow/metrics/pattern-updater.js +1 -1
  497. package/dist/integrations/agentic-flow/model-router/budget-enforcer.js +1 -1
  498. package/dist/integrations/agentic-flow/model-router/complexity-analyzer.js +7 -7
  499. package/dist/integrations/agentic-flow/model-router/example.js +1 -1
  500. package/dist/integrations/agentic-flow/model-router/index.js +16 -16
  501. package/dist/integrations/agentic-flow/model-router/router.js +6 -6
  502. package/dist/integrations/agentic-flow/model-router/signal-collector.js +1 -1
  503. package/dist/integrations/agentic-flow/model-router/tier-recommender.js +1 -1
  504. package/dist/integrations/agentic-flow/reasoning-bank/pattern-evolution.js +11 -6
  505. package/dist/integrations/browser/agent-browser/client.js +4 -4
  506. package/dist/integrations/browser/agent-browser/index.js +4 -4
  507. package/dist/integrations/browser/agent-browser/session-manager.js +1 -1
  508. package/dist/integrations/browser/client-factory.js +3 -3
  509. package/dist/integrations/browser/index.js +8 -8
  510. package/dist/integrations/browser/page-pool.js +1 -1
  511. package/dist/integrations/browser/stealth/index.js +2 -2
  512. package/dist/integrations/browser/stealth/stealth-client.js +3 -3
  513. package/dist/integrations/browser/web-content-fetcher.js +1 -1
  514. package/dist/integrations/coherence/coherence-service.js +2 -2
  515. package/dist/integrations/coherence/engines/category-adapter.js +1 -1
  516. package/dist/integrations/coherence/engines/causal-adapter.js +1 -1
  517. package/dist/integrations/coherence/engines/cohomology-adapter.js +1 -1
  518. package/dist/integrations/coherence/engines/homotopy-adapter.js +1 -1
  519. package/dist/integrations/coherence/engines/index.js +6 -6
  520. package/dist/integrations/coherence/engines/spectral-adapter.js +1 -1
  521. package/dist/integrations/coherence/engines/witness-adapter.js +1 -1
  522. package/dist/integrations/coherence/index.js +7 -7
  523. package/dist/integrations/coherence/threshold-tuner.js +1 -1
  524. package/dist/integrations/coherence/wasm-loader.js +2 -2
  525. package/dist/integrations/rl-suite/algorithms/a2c.js +2 -2
  526. package/dist/integrations/rl-suite/algorithms/actor-critic.js +2 -2
  527. package/dist/integrations/rl-suite/algorithms/ddpg.js +1 -1
  528. package/dist/integrations/rl-suite/algorithms/decision-transformer.js +1 -1
  529. package/dist/integrations/rl-suite/algorithms/dqn.js +2 -2
  530. package/dist/integrations/rl-suite/algorithms/eprop.js +2 -2
  531. package/dist/integrations/rl-suite/algorithms/index.js +10 -10
  532. package/dist/integrations/rl-suite/algorithms/policy-gradient.js +2 -2
  533. package/dist/integrations/rl-suite/algorithms/ppo.js +2 -2
  534. package/dist/integrations/rl-suite/algorithms/q-learning.js +3 -3
  535. package/dist/integrations/rl-suite/algorithms/sarsa.js +2 -2
  536. package/dist/integrations/rl-suite/base-algorithm.js +1 -1
  537. package/dist/integrations/rl-suite/index.js +6 -6
  538. package/dist/integrations/rl-suite/neural/index.js +2 -2
  539. package/dist/integrations/rl-suite/orchestrator.js +11 -11
  540. package/dist/integrations/ruvector/ast-complexity.js +1 -1
  541. package/dist/integrations/ruvector/coverage-router.js +1 -1
  542. package/dist/integrations/ruvector/diff-risk-classifier.js +1 -1
  543. package/dist/integrations/ruvector/feature-flags.d.ts +2 -2
  544. package/dist/integrations/ruvector/graph-boundaries.js +1 -1
  545. package/dist/integrations/ruvector/hypergraph-engine.js +1 -1
  546. package/dist/integrations/ruvector/hypergraph-schema.js +1 -1
  547. package/dist/integrations/ruvector/index.d.ts +1 -1
  548. package/dist/integrations/ruvector/index.js +52 -52
  549. package/dist/integrations/ruvector/page-rank-backends.d.ts +41 -0
  550. package/dist/integrations/ruvector/page-rank-backends.js +154 -0
  551. package/dist/integrations/ruvector/persistent-q-router.js +2 -2
  552. package/dist/integrations/ruvector/q-learning-router.js +1 -1
  553. package/dist/integrations/ruvector/solver-adapter.d.ts +26 -29
  554. package/dist/integrations/ruvector/solver-adapter.js +57 -164
  555. package/dist/integrations/ruvector/sona-persistence.d.ts +13 -11
  556. package/dist/integrations/ruvector/sona-persistence.js +1 -1
  557. package/dist/integrations/vibium/client.js +3 -3
  558. package/dist/integrations/vibium/fallback.js +2 -2
  559. package/dist/integrations/vibium/index.js +9 -9
  560. package/dist/kernel/agent-coordinator.js +1 -1
  561. package/dist/kernel/event-bus.js +1 -1
  562. package/dist/kernel/hybrid-backend.js +1 -1
  563. package/dist/kernel/index.js +11 -11
  564. package/dist/kernel/kernel.js +27 -27
  565. package/dist/kernel/memory-factory.js +2 -2
  566. package/dist/kernel/unified-persistence.js +1 -1
  567. package/dist/learning/aqe-learning-engine.d.ts +0 -1
  568. package/dist/learning/aqe-learning-engine.js +2 -36
  569. package/dist/learning/pattern-lifecycle.js +1 -1
  570. package/dist/learning/pattern-promotion.d.ts +11 -1
  571. package/dist/learning/pattern-promotion.js +27 -0
  572. package/dist/learning/pattern-routing-guidance.d.ts +16 -0
  573. package/dist/learning/pattern-routing-guidance.js +34 -0
  574. package/dist/learning/pattern-usage-recorder.d.ts +10 -0
  575. package/dist/learning/pattern-usage-recorder.js +47 -0
  576. package/dist/learning/qe-reasoning-bank-types.d.ts +4 -0
  577. package/dist/learning/qe-reasoning-bank.d.ts +6 -0
  578. package/dist/learning/qe-reasoning-bank.js +16 -1
  579. package/dist/learning/real-qe-reasoning-bank.d.ts +2 -0
  580. package/dist/learning/real-qe-reasoning-bank.js +4 -2
  581. package/dist/learning/token-tracker.js +1 -1
  582. package/dist/logging/index.js +1 -1
  583. package/dist/logging/logger-factory.js +1 -1
  584. package/dist/mcp/bundle.js +402 -389
  585. package/dist/mcp/entry.js +1 -1
  586. package/dist/mcp/handlers/agent-handlers.js +2 -2
  587. package/dist/mcp/handlers/core-handlers.js +9 -9
  588. package/dist/mcp/handlers/domain-handler-configs.js +2 -2
  589. package/dist/mcp/handlers/domain-handlers.js +2 -2
  590. package/dist/mcp/handlers/handler-factory.js +3 -3
  591. package/dist/mcp/handlers/index.js +7 -7
  592. package/dist/mcp/handlers/memory-handlers.js +1 -1
  593. package/dist/mcp/handlers/task-handlers.js +3 -3
  594. package/dist/mcp/handlers/team-handlers.js +1 -1
  595. package/dist/mcp/index.js +11 -11
  596. package/dist/mcp/metrics/index.js +1 -1
  597. package/dist/mcp/protocol-server.js +13 -13
  598. package/dist/mcp/security/cve-prevention.js +23 -23
  599. package/dist/mcp/security/index.js +9 -9
  600. package/dist/mcp/security/validators/index.js +6 -6
  601. package/dist/mcp/services/index.js +1 -1
  602. package/dist/mcp/services/task-router.js +1 -1
  603. package/dist/mcp/tool-registry.js +4 -4
  604. package/dist/mcp/tools/base.js +1 -1
  605. package/dist/mcp/tools/code-intelligence/analyze.js +4 -4
  606. package/dist/mcp/tools/code-intelligence/c4.js +6 -6
  607. package/dist/mcp/tools/coverage-analysis/index.js +4 -4
  608. package/dist/mcp/tools/defect-intelligence/predict.js +2 -2
  609. package/dist/mcp/tools/embeddings/embedding.js +2 -2
  610. package/dist/mcp/tools/embeddings/index.js +1 -1
  611. package/dist/mcp/tools/index.js +20 -20
  612. package/dist/mcp/tools/learning-optimization/optimize.d.ts +11 -0
  613. package/dist/mcp/tools/learning-optimization/optimize.js +21 -0
  614. package/dist/mcp/tools/mincut/index.js +2 -2
  615. package/dist/mcp/tools/quality-assessment/evaluate.js +1 -1
  616. package/dist/mcp/tools/quality-assessment/gate.js +5 -2
  617. package/dist/mcp/tools/qx-analysis/analyze.js +5 -5
  618. package/dist/mcp/tools/qx-analysis/heuristics-engine.js +1 -1
  619. package/dist/mcp/tools/qx-analysis/index.js +6 -6
  620. package/dist/mcp/tools/registry.js +25 -25
  621. package/dist/mcp/tools/requirements-validation/quality-criteria.js +1 -1
  622. package/dist/mcp/tools/requirements-validation/validate.js +1 -1
  623. package/dist/mcp/tools/security-compliance/scan.js +1 -1
  624. package/dist/mcp/tools/test-execution/e2e-execute.js +3 -3
  625. package/dist/mcp/tools/test-execution/execute.js +1 -1
  626. package/dist/mcp/tools/test-execution/index.js +2 -2
  627. package/dist/mcp/tools/test-generation/generate.js +3 -3
  628. package/dist/mcp/tools/visual-accessibility/index.js +3 -3
  629. package/dist/plugins/index.js +8 -8
  630. package/dist/plugins/lifecycle.js +5 -5
  631. package/dist/plugins/sources/github.js +1 -1
  632. package/dist/plugins/sources/local.js +1 -1
  633. package/dist/plugins/sources/npm.js +1 -1
  634. package/dist/shared/base-domain-plugin.js +1 -1
  635. package/dist/shared/c4-model/index.js +1 -1
  636. package/dist/shared/embeddings/index.js +4 -4
  637. package/dist/shared/embeddings/nomic-embedder.js +3 -3
  638. package/dist/shared/embeddings/ollama-client.js +1 -1
  639. package/dist/shared/entities/agent.js +1 -1
  640. package/dist/shared/entities/index.js +2 -2
  641. package/dist/shared/events/index.js +1 -1
  642. package/dist/shared/git/index.js +1 -1
  643. package/dist/shared/http/http-client.js +1 -1
  644. package/dist/shared/http/index.js +1 -1
  645. package/dist/shared/index.js +15 -15
  646. package/dist/shared/io/file-reader.js +1 -1
  647. package/dist/shared/io/index.js +1 -1
  648. package/dist/shared/llm/circuit-breaker.js +1 -1
  649. package/dist/shared/llm/index.js +11 -11
  650. package/dist/shared/llm/metrics/cost-metrics.js +2 -2
  651. package/dist/shared/llm/metrics/index.js +2 -2
  652. package/dist/shared/llm/metrics/router-metrics.js +1 -1
  653. package/dist/shared/llm/model-registry.js +1 -1
  654. package/dist/shared/llm/provider-manager.js +16 -16
  655. package/dist/shared/llm/providers/azure-openai.js +2 -2
  656. package/dist/shared/llm/providers/bedrock.js +2 -2
  657. package/dist/shared/llm/providers/claude-code.js +1 -1
  658. package/dist/shared/llm/providers/claude.js +4 -4
  659. package/dist/shared/llm/providers/codex.js +1 -1
  660. package/dist/shared/llm/providers/cognitum.js +1 -1
  661. package/dist/shared/llm/providers/gemini.js +1 -1
  662. package/dist/shared/llm/providers/index.js +10 -10
  663. package/dist/shared/llm/providers/ollama.js +2 -2
  664. package/dist/shared/llm/providers/openai.js +2 -2
  665. package/dist/shared/llm/providers/openrouter.js +1 -1
  666. package/dist/shared/llm/router/hybrid-router.js +7 -7
  667. package/dist/shared/llm/router/index.js +4 -4
  668. package/dist/shared/llm/router/routing-rules.js +1 -1
  669. package/dist/shared/llm/translation/index.js +3 -3
  670. package/dist/shared/llm/translation/prompt-translator.js +2 -2
  671. package/dist/shared/metrics/code-metrics.js +2 -2
  672. package/dist/shared/metrics/index.js +2 -2
  673. package/dist/shared/parsers/index.js +3 -3
  674. package/dist/shared/security/compliance-patterns.js +1 -1
  675. package/dist/shared/security/index.js +8 -8
  676. package/dist/shared/security/osv-client.js +1 -1
  677. package/dist/test-scheduling/index.js +9 -9
  678. package/dist/test-scheduling/phase-scheduler.js +1 -1
  679. package/dist/test-scheduling/pipeline.js +9 -9
  680. package/dist/validation/provider-llm-executor.js +5 -5
  681. package/dist/workers/daemon.js +3 -3
  682. package/dist/workers/index.js +5 -5
  683. package/dist/workers/quality-daemon/index.js +15 -15
  684. package/dist/workers/workers/compliance-checker.js +2 -2
  685. package/dist/workers/workers/coverage-tracker.js +1 -1
  686. package/dist/workers/workers/defect-predictor.js +1 -1
  687. package/dist/workers/workers/flaky-detector.js +1 -1
  688. package/dist/workers/workers/learning-consolidation.js +4 -4
  689. package/dist/workers/workers/performance-baseline.js +1 -1
  690. package/dist/workers/workers/quality-gate.js +1 -1
  691. package/dist/workers/workers/regression-monitor.js +1 -1
  692. package/dist/workers/workers/security-scan.js +1 -1
  693. package/dist/workers/workers/test-health.js +1 -1
  694. package/dist/workflows/browser/index.js +1 -1
  695. package/package.json +4 -3
  696. package/dist/cli/chunks/adapter-RFMUKKTU.js +0 -2
  697. package/dist/cli/chunks/aqe-learning-engine-YX4ZUVGL.js +0 -2
  698. package/dist/cli/chunks/base-BSRCRB56.js +0 -2
  699. package/dist/cli/chunks/browser-workflow-MDJBG6CZ.js +0 -2
  700. package/dist/cli/chunks/chunk-2FZW44YF.js +0 -21
  701. package/dist/cli/chunks/chunk-EEKIJM5G.js +0 -2
  702. package/dist/cli/chunks/chunk-G733R72C.js +0 -12
  703. package/dist/cli/chunks/chunk-Y5K3U5TI.js +0 -14
  704. package/dist/cli/chunks/client-N4UGKZ2N.js +0 -2
  705. package/dist/cli/chunks/core-handlers-AGVNKIM6.js +0 -2
  706. package/dist/cli/chunks/cross-domain-router-OKWDNCGK.js +0 -2
  707. package/dist/cli/chunks/dream-ET6PS24D.js +0 -2
  708. package/dist/cli/chunks/heartbeat-scheduler-MORGAHPF.js +0 -2
  709. package/dist/cli/chunks/hnsw-adapter-ZGMA3JMM.js +0 -2
  710. package/dist/cli/chunks/hnsw-index-SOQKFDD4.js +0 -2
  711. package/dist/cli/chunks/hybrid-router-DUOPXCME.js +0 -2
  712. package/dist/cli/chunks/impact-analyzer-7VPH2ILD.js +0 -2
  713. package/dist/cli/chunks/init-wizard-DEVYG7A6.js +0 -2
  714. package/dist/cli/chunks/kernel-QXRVO4OT.js +0 -2
  715. package/dist/cli/chunks/knowledge-graph-DJNX5GHZ.js +0 -2
  716. package/dist/cli/chunks/llm-router-service-LGB7IXQN.js +0 -2
  717. package/dist/cli/chunks/load-test-4UPWRKNK.js +0 -2
  718. package/dist/cli/chunks/memory-backend-7GNWUUTD.js +0 -2
  719. package/dist/cli/chunks/pattern-null-store-VIN6WCCD.js +0 -2
  720. package/dist/cli/chunks/pattern-usage-recorder-BSTPCNTW.js +0 -2
  721. package/dist/cli/chunks/protocol-executor-LZRFQ3LC.js +0 -2
  722. package/dist/cli/chunks/provider-manager-776QJ45P.js +0 -2
  723. package/dist/cli/chunks/qe-reasoning-bank-ZA47GW6I.js +0 -2
  724. package/dist/cli/chunks/queen-coordinator-6YQWKOKJ.js +0 -2
  725. package/dist/cli/chunks/router-XILTD4YX.js +0 -2
  726. package/dist/cli/chunks/routing-feedback-D6NPEQ7P.js +0 -2
  727. package/dist/cli/chunks/ruvector-commands-QPSAC3JN.js +0 -8
  728. package/dist/cli/chunks/rvf-native-adapter-TPQTEI42.js +0 -2
  729. package/dist/cli/chunks/safe-db-PRWZLYKS.js +0 -2
  730. package/dist/cli/chunks/schedule-NPNJ2XSF.js +0 -2
  731. package/dist/cli/chunks/scheduler-IS3IM2KD.js +0 -2
  732. package/dist/cli/chunks/sqlite-persistence-Q2JMMJ4C.js +0 -2
  733. package/dist/cli/chunks/unified-memory-VH2UVAIN.js +0 -2
  734. package/dist/cli/chunks/unified-memory-hnsw-WRGZCJLD.js +0 -2
  735. package/dist/cli/chunks/unified-persistence-LLARTGPG.js +0 -2
  736. package/dist/cli/chunks/upgrade-TZQKTKEE.js +0 -5
  737. package/dist/cli/chunks/visual-security-AR645425.js +0 -2
  738. package/dist/cli/chunks/witness-chain-DCFTYGUF.js +0 -2
  739. package/dist/cli/chunks/workflow-orchestrator-PDPORL64.js +0 -2
@@ -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.13.9");process.exit(0)}
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.13.11");process.exit(0)}
2
2
  var i={claude:"metered-api","claude-code":"subscription",codex:"subscription",openai:"metered-api",openrouter:"metered-api",gemini:"metered-api","azure-openai":"metered-api",bedrock:"metered-api",cognitum:"metered-capped",ollama:"local"};function n(e){return e.billingMode??i[e.type]??"metered-api"}function t(e){return i[e]??"metered-api"}function d(e,r){switch(r){case"metered-api":return`\u26A0\uFE0F LLM provider "${e}" bills a pay-per-token API key (not your Claude subscription) and has no server-side spend cap. Set a budget with --max-budget-usd / AQE_MAX_BUDGET_USD, or use AQE_LLM_PROVIDER=claude-code to run on your Claude Code subscription instead.`;case"metered-capped":return`\u2139\uFE0F LLM provider "${e}" bills per-token but enforces a server-side hard spend cap; it will pause at the cap rather than overspend.`;case"subscription":return`\u2139\uFE0F LLM provider "${e}" runs on your ${e==="codex"?"ChatGPT":"Claude Code"} subscription (shared plan usage). Worst case is hitting your plan's rate limit and pausing \u2014 no per-token API charges.`;case"local":return}}export{n as a,t as b,d as c};
@@ -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.13.9");process.exit(0)}
2
- import{b as c,d as p}from"./chunk-JOCSV4LF.js";import{a as f}from"./chunk-HZLDCCUG.js";p();import{existsSync as l,readFileSync as i}from"node:fs";import{join as a}from"node:path";import{execSync as m}from"node:child_process";var s=null,d=0,g=6e4;function S(){s=null,d=0}function b(e){if(s&&Date.now()-d<g)return s;let n=w(e);return s=n,d=Date.now(),n}function w(e){let n=h(e);if(n)return n;let r=v(e);if(r)return r;let t=k(e);return t||{available:!1}}function h(e){let n=a(e,".mcp.json");if(l(n))try{let o=c(i(n,"utf-8"));if(o.mcpServers?.ruflo||o.mcpServers?.["claude-flow"])return{available:!0,method:"mcp-config"}}catch{}let r=a(e,".claude","mcp.json");if(l(r))try{let o=c(i(r,"utf-8"));if(o.mcpServers?.ruflo||o.mcpServers?.["claude-flow"])return{available:!0,method:"mcp-config"}}catch{}let t=a(e,".claude","settings.json");if(l(t))try{let o=c(i(t,"utf-8")),u=o.mcpServers||o.mcp?.servers||{};if(u.ruflo||u["claude-flow"]||u["@anthropic/claude-flow"])return{available:!0,method:"mcp-config"}}catch{}return null}function v(e){let n=a(e,"package.json");if(!l(n))return null;try{let r=c(i(n,"utf-8")),t={...r.dependencies,...r.devDependencies};if(t.ruflo||t["@claude-flow/cli"]||t["claude-flow"])return{available:!0,method:"npm-dependency"}}catch{}return null}function k(e){for(let n of["ruflo","@claude-flow/cli"])try{return{available:!0,method:"npx-cached",version:m(`npx --no-install ${n} --version`,{encoding:"utf-8",timeout:5e3,cwd:e,stdio:["pipe","pipe","pipe"]}).trim().match(/\d+\.\d+\.\d+[\w.-]*/)?.[0]}}catch{}return null}function x(){for(let e of["ruflo","@claude-flow/cli"])try{return f.resolve(`${e}/package.json`),e}catch{}return"ruflo"}function P(){return[" Claude Flow not found \u2014 running in standalone mode.",""," Claude Flow adds optional features:"," - SONA trajectory tracking (reinforcement learning)"," - 3-tier model routing (haiku / sonnet / opus)"," - Codebase pretrain analysis",""," To install later:"," npm install -g ruflo"," claude mcp add ruflo -- npx -y ruflo@3.5.18"," aqe init --auto --with-claude-flow"].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.13.11");process.exit(0)}
2
+ import{b as c,d as p}from"./chunk-TZA45FI7.js";import{a as f}from"./chunk-LUAXQB57.js";p();import{existsSync as l,readFileSync as i}from"node:fs";import{join as a}from"node:path";import{execSync as m}from"node:child_process";var s=null,d=0,g=6e4;function S(){s=null,d=0}function b(e){if(s&&Date.now()-d<g)return s;let n=w(e);return s=n,d=Date.now(),n}function w(e){let n=h(e);if(n)return n;let r=v(e);if(r)return r;let t=k(e);return t||{available:!1}}function h(e){let n=a(e,".mcp.json");if(l(n))try{let o=c(i(n,"utf-8"));if(o.mcpServers?.ruflo||o.mcpServers?.["claude-flow"])return{available:!0,method:"mcp-config"}}catch{}let r=a(e,".claude","mcp.json");if(l(r))try{let o=c(i(r,"utf-8"));if(o.mcpServers?.ruflo||o.mcpServers?.["claude-flow"])return{available:!0,method:"mcp-config"}}catch{}let t=a(e,".claude","settings.json");if(l(t))try{let o=c(i(t,"utf-8")),u=o.mcpServers||o.mcp?.servers||{};if(u.ruflo||u["claude-flow"]||u["@anthropic/claude-flow"])return{available:!0,method:"mcp-config"}}catch{}return null}function v(e){let n=a(e,"package.json");if(!l(n))return null;try{let r=c(i(n,"utf-8")),t={...r.dependencies,...r.devDependencies};if(t.ruflo||t["@claude-flow/cli"]||t["claude-flow"])return{available:!0,method:"npm-dependency"}}catch{}return null}function k(e){for(let n of["ruflo","@claude-flow/cli"])try{return{available:!0,method:"npx-cached",version:m(`npx --no-install ${n} --version`,{encoding:"utf-8",timeout:5e3,cwd:e,stdio:["pipe","pipe","pipe"]}).trim().match(/\d+\.\d+\.\d+[\w.-]*/)?.[0]}}catch{}return null}function x(){for(let e of["ruflo","@claude-flow/cli"])try{return f.resolve(`${e}/package.json`),e}catch{}return"ruflo"}function P(){return[" Claude Flow not found \u2014 running in standalone mode.",""," Claude Flow adds optional features:"," - SONA trajectory tracking (reinforcement learning)"," - 3-tier model routing (haiku / sonnet / opus)"," - Codebase pretrain analysis",""," To install later:"," npm install -g ruflo"," claude mcp add ruflo -- npx -y ruflo@3.5.18"," aqe init --auto --with-claude-flow"].join(`
3
3
  `)}export{S as a,b,x as c,P as d};
@@ -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.13.9");process.exit(0)}
2
- import{a as v}from"./chunk-EEKIJM5G.js";import{c as l}from"./chunk-IYG6DTCX.js";import{S as R,b as g}from"./chunk-MTDKYFTA.js";v();R();import{createHash as m,randomUUID as f}from"crypto";var a=l.create("witness-chain"),p=class{logLikelihoodRatio=0;upperBound;lowerBound;observations=0;constructor(t=.05,e=.05){this.upperBound=Math.log(1/t),this.lowerBound=Math.log(e)}addWeightedEvidence(t,e){return this.logLikelihoodRatio+=t?e:-e,this.observations++,this.logLikelihoodRatio>=this.upperBound?"PASS":this.logLikelihoodRatio<=this.lowerBound?"FAIL":"INCONCLUSIVE"}addEvidence(t){return this.addWeightedEvidence(t,.5)}getRatio(){return this.logLikelihoodRatio}getObservations(){return this.observations}getBounds(){return{upper:this.upperBound,lower:this.lowerBound}}reset(){this.logLikelihoodRatio=0,this.observations=0}},c="0".repeat(64),h=class{receipts=[];lastHash=c;sprtAccumulators=new Map;appendWitness(t){let e=f(),i=Date.now(),s=this.receipts.length,n=this.lastHash+JSON.stringify(t)+i,o=m("sha256").update(n).digest("hex"),u={id:e,timestamp:i,previousHash:this.lastHash,hash:o,decision:t,chainIndex:s};return this.receipts.push(u),this.lastHash=o,this.updateSPRT(t),a.debug("Witness appended",{chainIndex:s,type:t.type,decision:t.decision,hash:o.slice(0,16)+"..."}),u}verifyChain(){if(this.receipts.length===0)return{valid:!0,length:0,brokenAt:-1,message:"Chain is empty (valid)",lastHash:c};let t=c;for(let e=0;e<this.receipts.length;e++){let i=this.receipts[e];if(i.previousHash!==t)return{valid:!1,length:this.receipts.length,brokenAt:e,message:`Chain broken at index ${e}: previousHash mismatch`,lastHash:this.lastHash};let s=i.previousHash+JSON.stringify(i.decision)+i.timestamp,n=m("sha256").update(s).digest("hex");if(i.hash!==n)return{valid:!1,length:this.receipts.length,brokenAt:e,message:`Chain broken at index ${e}: hash mismatch (tamper detected)`,lastHash:this.lastHash};t=i.hash}return{valid:!0,length:this.receipts.length,brokenAt:-1,message:`Chain valid (${this.receipts.length} receipts)`,lastHash:this.lastHash}}getChain(t){return t!==void 0&&t>0?[...this.receipts.slice(-t)]:[...this.receipts]}getChainLength(){return this.receipts.length}getLastHash(){return this.lastHash}exportChain(){let t={version:"1.0.0",exportedAt:Date.now(),length:this.receipts.length,receipts:this.receipts};return JSON.stringify(t,null,2)}importChain(t){try{let e=JSON.parse(t);if(!e||e.version!=="1.0.0"||!Array.isArray(e.receipts))return a.warn("Import failed: invalid format"),!1;let i=this.receipts,s=this.lastHash;this.receipts=e.receipts,this.lastHash=e.receipts.length>0?e.receipts[e.receipts.length-1].hash:c;let n=this.verifyChain();return n.valid?(a.info("Chain imported successfully",{length:e.receipts.length}),!0):(this.receipts=i,this.lastHash=s,a.warn("Import failed: chain integrity check failed",{message:n.message}),!1)}catch(e){return a.warn("Import failed: parse error",{error:e instanceof Error?e.message:String(e)}),!1}}getSPRT(t,e,i){return this.sprtAccumulators.has(t)||this.sprtAccumulators.set(t,new p(e,i)),this.sprtAccumulators.get(t)}getReceipt(t){return this.receipts[t]}updateSPRT(t){let e=t.decision==="PASS"||t.decision==="PERMIT";this.getSPRT(t.type).addEvidence(e)}},d=class extends h{persistence;constructor(t){super(),this.persistence=t;let e=t.loadAllReceipts();if(e.length>0){let i={version:"1.0.0",exportedAt:Date.now(),length:e.length,receipts:e};this.importChain(JSON.stringify(i))?a.info("Witness chain restored from SQLite",{receipts:e.length}):a.warn("Failed to restore witness chain from SQLite \u2014 starting fresh")}}appendWitness(t){let e=super.appendWitness(t);try{this.persistence.insertReceipt(e)}catch(i){a.warn("Failed to persist witness receipt to SQLite",{chainIndex:e.chainIndex,error:i instanceof Error?i.message:String(i)})}return e}};function C(r){r.exec(`
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.13.11");process.exit(0)}
2
+ import{a as v}from"./chunk-CYQRZ645.js";import{c as l}from"./chunk-QYHRDBKI.js";import{S as R,b as g}from"./chunk-NHL37QAZ.js";v();R();import{createHash as m,randomUUID as f}from"crypto";var a=l.create("witness-chain"),p=class{logLikelihoodRatio=0;upperBound;lowerBound;observations=0;constructor(t=.05,e=.05){this.upperBound=Math.log(1/t),this.lowerBound=Math.log(e)}addWeightedEvidence(t,e){return this.logLikelihoodRatio+=t?e:-e,this.observations++,this.logLikelihoodRatio>=this.upperBound?"PASS":this.logLikelihoodRatio<=this.lowerBound?"FAIL":"INCONCLUSIVE"}addEvidence(t){return this.addWeightedEvidence(t,.5)}getRatio(){return this.logLikelihoodRatio}getObservations(){return this.observations}getBounds(){return{upper:this.upperBound,lower:this.lowerBound}}reset(){this.logLikelihoodRatio=0,this.observations=0}},c="0".repeat(64),h=class{receipts=[];lastHash=c;sprtAccumulators=new Map;appendWitness(t){let e=f(),i=Date.now(),s=this.receipts.length,n=this.lastHash+JSON.stringify(t)+i,o=m("sha256").update(n).digest("hex"),u={id:e,timestamp:i,previousHash:this.lastHash,hash:o,decision:t,chainIndex:s};return this.receipts.push(u),this.lastHash=o,this.updateSPRT(t),a.debug("Witness appended",{chainIndex:s,type:t.type,decision:t.decision,hash:o.slice(0,16)+"..."}),u}verifyChain(){if(this.receipts.length===0)return{valid:!0,length:0,brokenAt:-1,message:"Chain is empty (valid)",lastHash:c};let t=c;for(let e=0;e<this.receipts.length;e++){let i=this.receipts[e];if(i.previousHash!==t)return{valid:!1,length:this.receipts.length,brokenAt:e,message:`Chain broken at index ${e}: previousHash mismatch`,lastHash:this.lastHash};let s=i.previousHash+JSON.stringify(i.decision)+i.timestamp,n=m("sha256").update(s).digest("hex");if(i.hash!==n)return{valid:!1,length:this.receipts.length,brokenAt:e,message:`Chain broken at index ${e}: hash mismatch (tamper detected)`,lastHash:this.lastHash};t=i.hash}return{valid:!0,length:this.receipts.length,brokenAt:-1,message:`Chain valid (${this.receipts.length} receipts)`,lastHash:this.lastHash}}getChain(t){return t!==void 0&&t>0?[...this.receipts.slice(-t)]:[...this.receipts]}getChainLength(){return this.receipts.length}getLastHash(){return this.lastHash}exportChain(){let t={version:"1.0.0",exportedAt:Date.now(),length:this.receipts.length,receipts:this.receipts};return JSON.stringify(t,null,2)}importChain(t){try{let e=JSON.parse(t);if(!e||e.version!=="1.0.0"||!Array.isArray(e.receipts))return a.warn("Import failed: invalid format"),!1;let i=this.receipts,s=this.lastHash;this.receipts=e.receipts,this.lastHash=e.receipts.length>0?e.receipts[e.receipts.length-1].hash:c;let n=this.verifyChain();return n.valid?(a.info("Chain imported successfully",{length:e.receipts.length}),!0):(this.receipts=i,this.lastHash=s,a.warn("Import failed: chain integrity check failed",{message:n.message}),!1)}catch(e){return a.warn("Import failed: parse error",{error:e instanceof Error?e.message:String(e)}),!1}}getSPRT(t,e,i){return this.sprtAccumulators.has(t)||this.sprtAccumulators.set(t,new p(e,i)),this.sprtAccumulators.get(t)}getReceipt(t){return this.receipts[t]}updateSPRT(t){let e=t.decision==="PASS"||t.decision==="PERMIT";this.getSPRT(t.type).addEvidence(e)}},d=class extends h{persistence;constructor(t){super(),this.persistence=t;let e=t.loadAllReceipts();if(e.length>0){let i={version:"1.0.0",exportedAt:Date.now(),length:e.length,receipts:e};this.importChain(JSON.stringify(i))?a.info("Witness chain restored from SQLite",{receipts:e.length}):a.warn("Failed to restore witness chain from SQLite \u2014 starting fresh")}}appendWitness(t){let e=super.appendWitness(t);try{this.persistence.insertReceipt(e)}catch(i){a.warn("Failed to persist witness receipt to SQLite",{chainIndex:e.chainIndex,error:i instanceof Error?i.message:String(i)})}return e}};function C(r){r.exec(`
3
3
  CREATE TABLE IF NOT EXISTS witness_chain_receipts (
4
4
  id TEXT PRIMARY KEY,
5
5
  chain_index INTEGER NOT NULL,
@@ -0,0 +1,22 @@
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.13.11");process.exit(0)}
2
+ function l(s,e){let t=s.prepare("SELECT confidence, usage_count, successful_uses FROM qe_patterns WHERE id = ?").get(e.patternId);if(!t)return{updated:!1};let u=e.success?1:0,n=t.usage_count+1,a=t.successful_uses+u,c=a/n,r=Math.min(1,n/100),o=t.confidence*.3+r*.2+c*.5,i=s.prepare(`
3
+ INSERT INTO qe_pattern_usage (pattern_id, success, metrics_json, feedback)
4
+ VALUES (?, ?, ?, ?)
5
+ `),p=s.prepare(`
6
+ UPDATE qe_patterns SET
7
+ usage_count = ?,
8
+ successful_uses = ?,
9
+ success_rate = ?,
10
+ quality_score = ?,
11
+ last_used_at = datetime('now'),
12
+ updated_at = datetime('now')
13
+ WHERE id = ?
14
+ `);return s.transaction(()=>{i.run(e.patternId,u,e.metrics?JSON.stringify(e.metrics):null,e.feedback??null),p.run(n,a,c,o,e.patternId)})(),{updated:!0,usageCount:n,successfulUses:a,successRate:c,qualityScore:o}}function _(s,e){if(!Number.isInteger(e.usageCount)||e.usageCount<1||!Number.isInteger(e.successfulUses)||e.successfulUses<0||e.successfulUses>e.usageCount)throw new Error("Invalid aggregate pattern usage counts");let t=s.prepare("SELECT confidence, usage_count, successful_uses FROM qe_patterns WHERE id = ?").get(e.patternId);if(!t)return{updated:!1};let u=t.usage_count+e.usageCount,n=t.successful_uses+e.successfulUses,a=n/u,c=Math.min(1,u/100),r=t.confidence*.3+c*.2+a*.5,o=s.prepare(`
15
+ INSERT INTO qe_pattern_usage (pattern_id, success, metrics_json, feedback)
16
+ VALUES (?, ?, ?, ?)
17
+ `),i=s.prepare(`
18
+ UPDATE qe_patterns SET
19
+ usage_count = ?, successful_uses = ?, success_rate = ?, quality_score = ?,
20
+ last_used_at = datetime('now'), updated_at = datetime('now')
21
+ WHERE id = ?
22
+ `),p=e.metrics?JSON.stringify(e.metrics):null,f=e.feedback??null;return s.transaction(()=>{for(let g=0;g<e.usageCount;g++)o.run(e.patternId,g<e.successfulUses?1:0,p,f);i.run(u,n,a,r,e.patternId)})(),{updated:!0,usageCount:u,successfulUses:n,successRate:a,qualityScore:r}}export{l as a,_ as b};
@@ -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.13.9");process.exit(0)}
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.13.11");process.exit(0)}
2
2
  var l=["var-to-const","add-types","remove-console","promise-to-async","cjs-to-esm","func-to-arrow"],p={"var-to-const":{type:"var-to-const",name:"Var to Const/Let",description:"Convert var declarations to const (if not reassigned) or let (if reassigned)",complexity:"simple",wasmAvailable:!0,typicalLatencyMs:1},"add-types":{type:"add-types",name:"Add TypeScript Types",description:"Add TypeScript type annotations to function parameters and return types",complexity:"moderate",wasmAvailable:!0,typicalLatencyMs:5},"remove-console":{type:"remove-console",name:"Remove Console Statements",description:"Remove all console.log, console.warn, console.error, etc. statements",complexity:"simple",wasmAvailable:!0,typicalLatencyMs:1},"promise-to-async":{type:"promise-to-async",name:"Promise to Async/Await",description:"Convert Promise .then()/.catch() chains to async/await syntax",complexity:"complex",wasmAvailable:!0,typicalLatencyMs:10},"cjs-to-esm":{type:"cjs-to-esm",name:"CommonJS to ES Modules",description:"Convert require() calls to import statements and module.exports to export",complexity:"moderate",wasmAvailable:!0,typicalLatencyMs:5},"func-to-arrow":{type:"func-to-arrow",name:"Function to Arrow",description:"Convert function declarations and expressions to arrow functions",complexity:"moderate",wasmAvailable:!0,typicalLatencyMs:3}},u={enabled:!0,fallbackToLLM:!0,confidenceThreshold:.7,transforms:[],maxFileSizeBytes:1024*1024,timeoutMs:5e3,cacheEnabled:!0,cacheTtlMs:300*1e3},t=class extends Error{constructor(e,s,o){super(e);this.code=s;this.cause=o;this.name="AgentBoosterError"}code;cause},a=class extends t{constructor(e,s,o){super(e,"TRANSFORM_ERROR",o);this.transformType=s;this.name="TransformError"}transformType},i=class extends t{constructor(r="WASM module is not available",e){super(r,"WASM_UNAVAILABLE",e),this.name="WasmUnavailableError"}},c=class extends t{constructor(e,s,o){super(e,"TRANSFORM_TIMEOUT");this.transformType=s;this.timeoutMs=o;this.name="TransformTimeoutError"}transformType;timeoutMs},m=class extends t{constructor(e,s,o){super(`File ${e} is too large (${s} bytes, max ${o} bytes)`,"FILE_TOO_LARGE");this.filePath=e;this.sizeBytes=s;this.maxSizeBytes=o;this.name="FileTooLargeError"}filePath;sizeBytes;maxSizeBytes};export{l as a,p as b,u as c,a as d,i as e,c as f,m as g};
@@ -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.13.9");process.exit(0)}
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.13.11");process.exit(0)}
2
2
  import{existsSync as d,readFileSync as g,readdirSync as _,statSync as w}from"fs";import{join as o,extname as T}from"path";var E=new Set([".ts",".tsx",".js",".jsx",".mjs",".cjs",".py",".pyw",".go",".rs",".java",".kt",".kts",".rb",".cs",".php",".swift",".c",".h",".cpp",".hpp",".cc",".scala"]),v=[".test.",".spec.","_test.","_spec."],F=new Set(["node_modules","dist","build","coverage",".git","__pycache__",".venv","venv",".tox",".mypy_cache","target",".gradle","vendor",".bundle",".next",".nuxt",".output"]);function O(s,n={}){let{maxDepth:r=6,includeTests:m=!1,testsOnly:x=!1,extraExtensions:y=[]}=n;if(!d(s))return[];let c=w(s);if(c.isFile())return[s];if(!c.isDirectory())return[];let S=new Set(y.map(e=>e.startsWith(".")?e:`.${e}`)),i=[];function a(e,u){if(u>r)return;let l;try{l=_(e,{withFileTypes:!0})}catch{return}for(let t of l)if(t.isDirectory()){if(F.has(t.name))continue;a(o(e,t.name),u+1)}else if(t.isFile()){let p=T(t.name).toLowerCase();if(!(E.has(p)||S.has(p))||t.name.endsWith(".d.ts"))continue;let f=v.some(h=>t.name.includes(h))||t.name.startsWith("test_");x?f&&i.push(o(e,t.name)):(m||!f)&&i.push(o(e,t.name))}}return a(s,0),i}function D(s,n){return n!=="node"&&n!=="node-test"?s:s.filter(r=>{try{return!/@playwright\/test|require\(\s*['"]playwright['"]\s*\)/.test(g(r,"utf8"))}catch{return!0}})}export{E as a,O as b,D as c};
@@ -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.13.9");process.exit(0)}
2
- import{a as I}from"./chunk-ZFMJT3W3.js";import{l as F,m as q}from"./chunk-UNAAAXI2.js";import{a as A,b as m,c as d}from"./chunk-GM2PCHSQ.js";import{a as b,b as W,c as O}from"./chunk-MOI2ZRZO.js";import{i as D}from"./chunk-A5AE5UPZ.js";import{g as T}from"./chunk-HZLDCCUG.js";O();var w={WorkflowStarted:"workflow.WorkflowStarted",WorkflowCompleted:"workflow.WorkflowCompleted",WorkflowFailed:"workflow.WorkflowFailed",WorkflowCancelled:"workflow.WorkflowCancelled",StepStarted:"workflow.StepStarted",StepCompleted:"workflow.StepCompleted",StepFailed:"workflow.StepFailed",StepSkipped:"workflow.StepSkipped",StepAwaitingApproval:"workflow.StepAwaitingApproval",StepApproved:"workflow.StepApproved",StepRejected:"workflow.StepRejected"},E={maxConcurrentWorkflows:10,defaultStepTimeout:6e4,defaultWorkflowTimeout:6e5,enableEventTriggers:!0,persistExecutions:!0};function S(){try{let{getUnifiedMemory:s}=(q(),T(F)),e=s();return e.isInitialized()?e.getDatabase():null}catch{return null}}var N={id:"quality-gate-check",domain:"quality-assessment",action:"gate-check",async execute(s){let e=typeof s.coverageMin=="number"?s.coverageMin:80,t=typeof s.testsPassingMin=="number"?s.testsPassingMin:90,i=typeof s.maxBugs=="number"?s.maxBugs:5,r=typeof s.currentCoverage=="number"?s.currentCoverage:null,n=typeof s.currentTestsPassingRate=="number"?s.currentTestsPassingRate:null,o=typeof s.currentBugs=="number"?s.currentBugs:null;if(r===null||n===null||o===null){let p=S();if(p)try{if(r===null&&(r=p.prepare("SELECT after_lines FROM coverage_sessions ORDER BY created_at DESC LIMIT 1").get()?.after_lines??0),n===null){let y=p.prepare(`SELECT COUNT(*) as total,
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.13.11");process.exit(0)}
2
+ import{a as I}from"./chunk-VLW63UA2.js";import{l as F,m as q}from"./chunk-2Y3PW5EJ.js";import{a as A,b as m,c as d}from"./chunk-XDK2TPI5.js";import{a as b,b as W,c as O}from"./chunk-TCVEXQLL.js";import{i as D}from"./chunk-PJNIDDER.js";import{g as T}from"./chunk-LUAXQB57.js";O();var w={WorkflowStarted:"workflow.WorkflowStarted",WorkflowCompleted:"workflow.WorkflowCompleted",WorkflowFailed:"workflow.WorkflowFailed",WorkflowCancelled:"workflow.WorkflowCancelled",StepStarted:"workflow.StepStarted",StepCompleted:"workflow.StepCompleted",StepFailed:"workflow.StepFailed",StepSkipped:"workflow.StepSkipped",StepAwaitingApproval:"workflow.StepAwaitingApproval",StepApproved:"workflow.StepApproved",StepRejected:"workflow.StepRejected"},E={maxConcurrentWorkflows:10,defaultStepTimeout:6e4,defaultWorkflowTimeout:6e5,enableEventTriggers:!0,persistExecutions:!0};function S(){try{let{getUnifiedMemory:s}=(q(),T(F)),e=s();return e.isInitialized()?e.getDatabase():null}catch{return null}}var N={id:"quality-gate-check",domain:"quality-assessment",action:"gate-check",async execute(s){let e=typeof s.coverageMin=="number"?s.coverageMin:80,t=typeof s.testsPassingMin=="number"?s.testsPassingMin:90,i=typeof s.maxBugs=="number"?s.maxBugs:5,r=typeof s.currentCoverage=="number"?s.currentCoverage:null,n=typeof s.currentTestsPassingRate=="number"?s.currentTestsPassingRate:null,o=typeof s.currentBugs=="number"?s.currentBugs:null;if(r===null||n===null||o===null){let p=S();if(p)try{if(r===null&&(r=p.prepare("SELECT after_lines FROM coverage_sessions ORDER BY created_at DESC LIMIT 1").get()?.after_lines??0),n===null){let y=p.prepare(`SELECT COUNT(*) as total,
3
3
  SUM(CASE WHEN passed = 1 THEN 1 ELSE 0 END) as passed
4
4
  FROM test_outcomes
5
5
  WHERE created_at > datetime('now', '-7 days')`).get();n=y&&y.total>0?y.passed/y.total*100:0}o===null&&(o=p.prepare(`SELECT COUNT(*) as bugs FROM test_outcomes
@@ -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.13.9");process.exit(0)}
2
- function b(n,t){return{ingest(e){n.ingest(e)},search(e,r){return n.search(e,r).map(i=>({id:i.id,score:i.score}))},delete(e){n.delete(e)},status(){let e=n.status();return{totalVectors:e.totalVectors,dimensions:t,totalSegments:e.totalSegments,fileSizeBytes:e.fileSizeBytes,epoch:e.epoch,witnessValid:e.witnessValid,witnessEntries:e.witnessEntries}},close(){n.close()},compact(){return n.compact()}}}function c(n,t){return(n.prepare("SELECT COUNT(*) as cnt FROM sqlite_master WHERE type='table' AND name=?").get(t)?.cnt??0)>0}var v=class{db;config;rvfStore=null;rvfAvailable=!1;constructor(t,e){this.db=t,this.config={...e,dimensions:e.dimensions??384}}async initialize(){if(this.config.mode==="sqlite-only"){this.rvfAvailable=!1;return}try{let t=await import("./rvf-native-adapter-TPQTEI42.js");if(!t.isRvfNativeAvailable()){this.rvfAvailable=!1;return}let e;try{e=t.openRvfStore(this.config.rvfPath)}catch{try{e=t.createRvfStore(this.config.rvfPath,this.config.dimensions)}catch(r){let{quarantineUnusableStore:i}=await import("./rvf-store-integrity-DUM657DL.js");if(!i(this.config.rvfPath,r instanceof Error?r.message:String(r)))throw r;e=t.createRvfStore(this.config.rvfPath,this.config.dimensions)}}this.rvfStore=b(e,this.config.dimensions),this.rvfAvailable=!0}catch(t){this.rvfAvailable=!1,console.warn(`[RVF] Dual-writer disabled for ${this.config.rvfPath}; falling back to SQLite: ${t instanceof Error?t.message:String(t)}`)}}setRvfStore(t){this.rvfStore=t,this.rvfAvailable=!0}writePattern(t,e){let r={sqliteSuccess:!1,rvfSuccess:!1};try{this.writeSqliteEmbedding(t,e),r.sqliteSuccess=!0}catch{r.sqliteSuccess=!1}if(this.shouldWriteRvf())try{this.rvfStore.ingest([{id:t,vector:e instanceof Float32Array?Array.from(e):e}]),r.rvfSuccess=!0}catch{r.rvfSuccess=!1,r.divergence="rvf-write-failed"}return r}deletePattern(t){let e={sqliteSuccess:!1,rvfSuccess:!1};try{this.deleteSqliteEmbedding(t),e.sqliteSuccess=!0}catch{e.sqliteSuccess=!1}if(this.shouldWriteRvf())try{this.rvfStore.delete([t]),e.rvfSuccess=!0}catch{e.rvfSuccess=!1,e.divergence="rvf-delete-failed"}return e}search(t,e){if(this.config.mode==="rvf-primary"&&this.rvfAvailable&&this.rvfStore)try{return this.rvfStore.search(t,e)}catch{}return this.searchSqlite(t,e)}getDivergenceReport(){let t={totalChecked:0,divergences:0,details:[]},e=this.getSqliteEmbeddingCount();if(t.totalChecked=e,!this.rvfAvailable||!this.rvfStore)return this.config.mode!=="sqlite-only"&&e>0&&(t.divergences=1,t.details.push({patternId:"*",issue:"count-mismatch"})),t;let i=this.rvfStore.status().totalVectors;return e!==i&&(t.divergences=1,t.details.push({patternId:"*",issue:"count-mismatch"})),t}isPromotionSafe(){return this.getDivergenceReport().divergences===0}status(){let t=this.getSqlitePatternCount(),e=this.getSqliteEmbeddingCount(),r=null;if(this.rvfAvailable&&this.rvfStore)try{r=this.rvfStore.status()}catch{r=null}return{sqlite:{patternCount:t,vectorCount:e},rvf:r,mode:this.config.mode}}close(){if(this.rvfStore){try{this.rvfStore.close()}catch{}this.rvfStore=null,this.rvfAvailable=!1}}compact(){if(!this.rvfStore||!this.rvfAvailable||!this.rvfStore.compact)return null;try{return this.rvfStore.compact()??null}catch{return null}}shouldWriteRvf(){return(this.config.mode==="dual-write"||this.config.mode==="rvf-primary")&&this.rvfAvailable&&this.rvfStore!==null}writeSqliteEmbedding(t,e){let r=Buffer.from(e instanceof Float32Array?e.buffer:new Float32Array(e).buffer),i=e.length;c(this.db,"qe_pattern_embeddings")&&this.db.prepare(`
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.13.11");process.exit(0)}
2
+ function b(n,t){return{ingest(e){n.ingest(e)},search(e,r){return n.search(e,r).map(i=>({id:i.id,score:i.score}))},delete(e){n.delete(e)},status(){let e=n.status();return{totalVectors:e.totalVectors,dimensions:t,totalSegments:e.totalSegments,fileSizeBytes:e.fileSizeBytes,epoch:e.epoch,witnessValid:e.witnessValid,witnessEntries:e.witnessEntries}},close(){n.close()},compact(){return n.compact()}}}function c(n,t){return(n.prepare("SELECT COUNT(*) as cnt FROM sqlite_master WHERE type='table' AND name=?").get(t)?.cnt??0)>0}var v=class{db;config;rvfStore=null;rvfAvailable=!1;constructor(t,e){this.db=t,this.config={...e,dimensions:e.dimensions??384}}async initialize(){if(this.config.mode==="sqlite-only"){this.rvfAvailable=!1;return}try{let t=await import("./rvf-native-adapter-PQ4IOTZU.js");if(!t.isRvfNativeAvailable()){this.rvfAvailable=!1;return}let e;try{e=t.openRvfStore(this.config.rvfPath)}catch{try{e=t.createRvfStore(this.config.rvfPath,this.config.dimensions)}catch(r){let{quarantineUnusableStore:i}=await import("./rvf-store-integrity-66FEC3MD.js");if(!i(this.config.rvfPath,r instanceof Error?r.message:String(r)))throw r;e=t.createRvfStore(this.config.rvfPath,this.config.dimensions)}}this.rvfStore=b(e,this.config.dimensions),this.rvfAvailable=!0}catch(t){this.rvfAvailable=!1,console.warn(`[RVF] Dual-writer disabled for ${this.config.rvfPath}; falling back to SQLite: ${t instanceof Error?t.message:String(t)}`)}}setRvfStore(t){this.rvfStore=t,this.rvfAvailable=!0}writePattern(t,e){let r={sqliteSuccess:!1,rvfSuccess:!1};try{this.writeSqliteEmbedding(t,e),r.sqliteSuccess=!0}catch{r.sqliteSuccess=!1}if(this.shouldWriteRvf())try{this.rvfStore.ingest([{id:t,vector:e instanceof Float32Array?Array.from(e):e}]),r.rvfSuccess=!0}catch{r.rvfSuccess=!1,r.divergence="rvf-write-failed"}return r}deletePattern(t){let e={sqliteSuccess:!1,rvfSuccess:!1};try{this.deleteSqliteEmbedding(t),e.sqliteSuccess=!0}catch{e.sqliteSuccess=!1}if(this.shouldWriteRvf())try{this.rvfStore.delete([t]),e.rvfSuccess=!0}catch{e.rvfSuccess=!1,e.divergence="rvf-delete-failed"}return e}search(t,e){if(this.config.mode==="rvf-primary"&&this.rvfAvailable&&this.rvfStore)try{return this.rvfStore.search(t,e)}catch{}return this.searchSqlite(t,e)}getDivergenceReport(){let t={totalChecked:0,divergences:0,details:[]},e=this.getSqliteEmbeddingCount();if(t.totalChecked=e,!this.rvfAvailable||!this.rvfStore)return this.config.mode!=="sqlite-only"&&e>0&&(t.divergences=1,t.details.push({patternId:"*",issue:"count-mismatch"})),t;let i=this.rvfStore.status().totalVectors;return e!==i&&(t.divergences=1,t.details.push({patternId:"*",issue:"count-mismatch"})),t}isPromotionSafe(){return this.getDivergenceReport().divergences===0}status(){let t=this.getSqlitePatternCount(),e=this.getSqliteEmbeddingCount(),r=null;if(this.rvfAvailable&&this.rvfStore)try{r=this.rvfStore.status()}catch{r=null}return{sqlite:{patternCount:t,vectorCount:e},rvf:r,mode:this.config.mode}}close(){if(this.rvfStore){try{this.rvfStore.close()}catch{}this.rvfStore=null,this.rvfAvailable=!1}}compact(){if(!this.rvfStore||!this.rvfAvailable||!this.rvfStore.compact)return null;try{return this.rvfStore.compact()??null}catch{return null}}shouldWriteRvf(){return(this.config.mode==="dual-write"||this.config.mode==="rvf-primary")&&this.rvfAvailable&&this.rvfStore!==null}writeSqliteEmbedding(t,e){let r=Buffer.from(e instanceof Float32Array?e.buffer:new Float32Array(e).buffer),i=e.length;c(this.db,"qe_pattern_embeddings")&&this.db.prepare(`
3
3
  INSERT INTO qe_pattern_embeddings (pattern_id, embedding, dimension, model, created_at)
4
4
  VALUES (?, ?, ?, 'all-MiniLM-L6-v2', datetime('now'))
5
5
  ON CONFLICT(pattern_id) DO UPDATE SET
@@ -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.13.9");process.exit(0)}
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.13.11");process.exit(0)}
2
2
  import{isIP as o}from"net";import{lookup as n}from"dns/promises";var f=[/^10\./,/^172\.(1[6-9]|2\d|3[01])\./,/^192\.168\./,/^127\./,/^0\./,/^169\.254\./,/^::1$/,/^fc00:/,/^fe80:/,/^fd[0-9a-f]{2}:/i];function t(r){return f.some(s=>s.test(r))}async function u(r){if(process.env.AQE_HOOKS_SSRF_DISABLED==="true")return{safe:!0};let s;try{s=new URL(r)}catch{return{safe:!1,reason:`Invalid URL: ${r}`}}let e=s.hostname.replace(/^\[|\]$/g,"");if(o(e))return t(e)?{safe:!1,reason:`Private IP blocked: ${e}`}:{safe:!0};try{let a=await n(e);if(t(a.address))return{safe:!1,reason:`DNS resolves to private IP: ${a.address}`}}catch(a){return{safe:!1,reason:`DNS lookup failed for ${e}: ${a.message}`}}return{safe:!0}}export{t as a,u as b};
@@ -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.13.9");process.exit(0)}
2
- import{i as e}from"./chunk-A5AE5UPZ.js";function g(t,n,r,a){return{id:e(),type:t,timestamp:new Date,source:n,correlationId:a,payload:r}}var i={TestGenerated:"test-generation.TestGenerated",TestSuiteCreated:"test-generation.TestSuiteCreated",PatternLearned:"test-generation.PatternLearned",GenerationFailed:"test-generation.GenerationFailed"},s={TestRunStarted:"test-execution.TestRunStarted",TestRunCompleted:"test-execution.TestRunCompleted",FlakyTestDetected:"test-execution.FlakyTestDetected",RetryTriggered:"test-execution.RetryTriggered"},o={CoverageReportCreated:"coverage-analysis.CoverageReportCreated",CoverageGapDetected:"coverage-analysis.CoverageGapDetected",RiskZoneIdentified:"coverage-analysis.RiskZoneIdentified"},d={QualityGateEvaluated:"quality-assessment.QualityGateEvaluated",DeploymentApproved:"quality-assessment.DeploymentApproved",DeploymentBlocked:"quality-assessment.DeploymentBlocked"},l={DefectPredicted:"defect-intelligence.DefectPredicted",RootCauseIdentified:"defect-intelligence.RootCauseIdentified",RegressionRiskAnalyzed:"defect-intelligence.RegressionRiskAnalyzed"},c={KnowledgeGraphUpdated:"code-intelligence.KnowledgeGraphUpdated",ImpactAnalysisCompleted:"code-intelligence.ImpactAnalysisCompleted",SemanticSearchCompleted:"code-intelligence.SemanticSearchCompleted",C4DiagramsGenerated:"code-intelligence.C4DiagramsGenerated"},m={VulnerabilityDetected:"security-compliance.VulnerabilityDetected",ComplianceValidated:"security-compliance.ComplianceValidated",SecurityAuditCompleted:"security-compliance.SecurityAuditCompleted"},p={PatternConsolidated:"learning-optimization.PatternConsolidated",TransferCompleted:"learning-optimization.TransferCompleted",OptimizationApplied:"learning-optimization.OptimizationApplied",DreamCycleCompleted:"learning-optimization.dream.completed"},y={...i,...s,...o,...d,...l,...c,...m,...p};export{g as a,i as b,s as c,o as d,d as e,l as f,c as g,m as h,p as i};
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.13.11");process.exit(0)}
2
+ import{i as e}from"./chunk-PJNIDDER.js";function g(t,n,r,a){return{id:e(),type:t,timestamp:new Date,source:n,correlationId:a,payload:r}}var i={TestGenerated:"test-generation.TestGenerated",TestSuiteCreated:"test-generation.TestSuiteCreated",PatternLearned:"test-generation.PatternLearned",GenerationFailed:"test-generation.GenerationFailed"},s={TestRunStarted:"test-execution.TestRunStarted",TestRunCompleted:"test-execution.TestRunCompleted",FlakyTestDetected:"test-execution.FlakyTestDetected",RetryTriggered:"test-execution.RetryTriggered"},o={CoverageReportCreated:"coverage-analysis.CoverageReportCreated",CoverageGapDetected:"coverage-analysis.CoverageGapDetected",RiskZoneIdentified:"coverage-analysis.RiskZoneIdentified"},d={QualityGateEvaluated:"quality-assessment.QualityGateEvaluated",DeploymentApproved:"quality-assessment.DeploymentApproved",DeploymentBlocked:"quality-assessment.DeploymentBlocked"},l={DefectPredicted:"defect-intelligence.DefectPredicted",RootCauseIdentified:"defect-intelligence.RootCauseIdentified",RegressionRiskAnalyzed:"defect-intelligence.RegressionRiskAnalyzed"},c={KnowledgeGraphUpdated:"code-intelligence.KnowledgeGraphUpdated",ImpactAnalysisCompleted:"code-intelligence.ImpactAnalysisCompleted",SemanticSearchCompleted:"code-intelligence.SemanticSearchCompleted",C4DiagramsGenerated:"code-intelligence.C4DiagramsGenerated"},m={VulnerabilityDetected:"security-compliance.VulnerabilityDetected",ComplianceValidated:"security-compliance.ComplianceValidated",SecurityAuditCompleted:"security-compliance.SecurityAuditCompleted"},p={PatternConsolidated:"learning-optimization.PatternConsolidated",TransferCompleted:"learning-optimization.TransferCompleted",OptimizationApplied:"learning-optimization.OptimizationApplied",DreamCycleCompleted:"learning-optimization.dream.completed"},y={...i,...s,...o,...d,...l,...c,...m,...p};export{g as a,i as b,s as c,o as d,d as e,l as f,c as g,m as h,p as i};
@@ -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.13.9");process.exit(0)}
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.13.11");process.exit(0)}
2
2
  import a from"chalk";import{existsSync as m,statSync as S}from"fs";import{join as p,relative as P}from"path";var l=class{static prompt(t,e){return new Promise(r=>{t.question(e,s=>{r(s)})})}static printStepHeader(t,e,r){console.log(""),console.log(a.cyan(`Step ${t}: ${e}`)),r&&console.log(a.gray(r)),console.log("")}static printWizardHeader(t,e){console.log(""),console.log(a.blue("========================================")),console.log(a.blue.bold(` ${t}`)),console.log(a.blue("========================================")),e&&console.log(a.gray(e)),console.log(a.gray("Press Ctrl+C to cancel at any time")),console.log("")}static printSummaryHeader(){console.log(""),console.log(a.blue("========================================")),console.log(a.blue.bold(" Configuration Summary")),console.log(a.blue("========================================")),console.log("")}static printSummaryField(t,e,r){let s=r?.indent??" ",i=r?.maxItems??5,c=r?.formatValue??(o=>a.cyan(o));if(Array.isArray(e))e.length===0?console.log(a.white(`${s}${t}: ${a.gray("(none)")}`)):e.length<=i?console.log(a.white(`${s}${t}: ${c(e.join(", "))}`)):(console.log(a.white(`${s}${t}:`)),e.slice(0,i).forEach(o=>{console.log(a.gray(`${s} - ${o}`))}),console.log(a.gray(`${s} ... and ${e.length-i} more`)));else{let o=t.padEnd(16);console.log(a.white(`${s}${o}${c(e)}`))}}static printDerivedSettings(t,e=" "){console.log(""),console.log(a.gray(`${e}Derived settings:`));for(let[r,s]of Object.entries(t))console.log(a.gray(`${e} ${r}: ${s}`));console.log("")}};var h=class u{static getSourceDirectories(t){let e=[],r=["src","lib","app","packages","api"];for(let s of r){let i=p(t,s);m(i)&&S(i).isDirectory()&&e.push(s)}return e}static getCoverageTargets(t){let e=u.getSourceDirectories(t),r=["coverage","coverage/lcov.info","coverage/coverage-final.json",".nyc_output"];for(let s of r){let i=p(t,s);m(i)&&e.push(s)}return e}static getSecurityTargets(t){let e=u.getSourceDirectories(t),r=["package.json","package-lock.json","yarn.lock","pnpm-lock.yaml",".env",".env.example","docker-compose.yml","Dockerfile"];for(let s of r){let i=p(t,s);m(i)&&e.push(s)}return e}static getTestSourceFiles(t){let e=[],r=["src","lib","app","packages"];for(let s of r){let i=p(t,s);m(i)&&S(i).isDirectory()&&(e.push(`${s}/**/*.ts`),e.push(s))}return m(p(t,"src"))&&(e.push("src/services/**/*.ts"),e.push("src/utils/**/*.ts"),e.push("src/components/**/*.tsx")),e}static checkPatternsExist(t){return[p(t,".agentic-qe","patterns"),p(t,".agentic-qe","memory.db"),p(t,".aqe","patterns"),p(t,"data","patterns")].some(r=>m(r))}},f=class{static relativePath(t,e){return P(e,t)||"."}static yesNo(t){return t?"Yes":"No"}static enabledDisabled(t){return t?"Enabled":"Disabled"}static percentage(t){return`${t}%`}static truncatedList(t,e=5){return t.length===0?"(none)":t.length<=e?t.join(", "):`${t.slice(0,e).join(", ")}... and ${t.length-e} more`}};import n from"chalk";import{existsSync as w}from"fs";import{resolve as I}from"path";var d=class{constructor(t){this.defaultValue=t}defaultValue;description;getDefaultValue(){return this.defaultValue}success(t){return{value:t,continue:!0}}cancelled(){return{value:this.defaultValue,continue:!1}}error(t){return{value:this.defaultValue,continue:!1,error:t}}};var y=class extends d{id;stepNumber;title;description;options;validValues;constructor(t){super(t.defaultValue),this.id=t.id,this.stepNumber=t.stepNumber,this.title=t.title,this.description=t.description,this.options=t.options,this.validValues=t.validValues}async execute(t){if(t.nonInteractive)return this.success(this.defaultValue);l.printStepHeader(this.stepNumber,this.title,this.description),this.options.forEach(i=>{let c=[];i.isRecommended?c.push(n.green(" (recommended)")):(i.isDefault||i.value===this.defaultValue)&&c.push(n.green(" (default)")),console.log(n.white(` ${i.key}. ${i.label||i.value}${c.join("")}`)),i.description&&console.log(n.gray(` ${i.description}`))}),console.log("");let r=(await l.prompt(t.rl,`Select ${this.title.toLowerCase()} [${n.gray(String(this.defaultValue))}]: `)).trim();if(!r)return this.success(this.defaultValue);let s=parseInt(r,10);return s>=1&&s<=this.options.length?this.success(this.options[s-1].value):this.validValues.includes(r)?this.success(r):(console.log(n.yellow(` Invalid input, using default: ${this.defaultValue}`)),this.success(this.defaultValue))}},b=class extends d{id;stepNumber;title;description;options;validValues;instructions;allowEmpty;constructor(t){super(t.defaultValue),this.id=t.id,this.stepNumber=t.stepNumber,this.title=t.title,this.description=t.description,this.options=t.options,this.validValues=t.validValues,this.instructions=t.instructions,this.allowEmpty=t.allowEmpty??!1}async execute(t){if(t.nonInteractive)return this.success(this.defaultValue);l.printStepHeader(this.stepNumber,this.title,this.description),this.instructions&&(console.log(n.gray(this.instructions)),console.log("")),this.options.forEach(o=>{let N=o.isDefaultSelected||this.defaultValue.includes(o.value)?n.green(" *"):"";console.log(n.white(` ${o.key}. ${o.label||o.value}${N}`)),o.description&&console.log(n.gray(` ${o.description}`))}),console.log(""),console.log(n.gray(" * = included in default selection")),console.log("");let e=this.defaultValue.join(","),s=(await l.prompt(t.rl,`Select options [${n.gray(e)}]: `)).trim();if(!s)return this.success(this.defaultValue);let i=s.split(",").map(o=>o.trim().toLowerCase()).filter(o=>o.length>0),c=[];for(let o of i){let g=parseInt(o,10);g>=1&&g<=this.options.length?c.push(this.options[g-1].value):this.validValues.includes(o)&&c.push(o)}return c.length===0?this.allowEmpty?this.success([]):(console.log(n.yellow(` Invalid input, using default: ${e}`)),this.success(this.defaultValue)):this.success([...new Set(c)])}},v=class extends d{id;stepNumber;title;description;additionalInfo;constructor(t){super(t.defaultValue),this.id=t.id,this.stepNumber=t.stepNumber,this.title=t.title,this.description=t.description,this.additionalInfo=t.additionalInfo}async execute(t){if(t.nonInteractive)return this.success(this.defaultValue);l.printStepHeader(this.stepNumber,this.title,this.description),this.additionalInfo&&(console.log(n.gray(this.additionalInfo)),console.log(""));let e=this.defaultValue?"Y/n":"y/N",s=(await l.prompt(t.rl,`${this.title}? [${n.gray(e)}]: `)).trim().toLowerCase();return s===""?this.success(this.defaultValue):s==="n"||s==="no"?this.success(!1):s==="y"||s==="yes"?this.success(!0):this.success(this.defaultValue)}},x=class extends d{id;stepNumber;title;description;presets;min;max;constructor(t){super(t.defaultValue),this.id=t.id,this.stepNumber=t.stepNumber,this.title=t.title,this.description=t.description,this.presets=t.presets,this.min=t.min,this.max=t.max}async execute(t){if(t.nonInteractive)return this.success(this.defaultValue);l.printStepHeader(this.stepNumber,this.title,this.description),this.presets&&this.presets.length>0&&(this.presets.forEach(i=>{let c=i.value===this.defaultValue?n.green(" (default)"):"";console.log(n.gray(` ${i.key}. ${i.label}${c}`))}),this.min!==void 0&&this.max!==void 0&&console.log(n.gray(` Or enter a custom number (${this.min}-${this.max})`)),console.log(""));let r=(await l.prompt(t.rl,`${this.title} [${n.gray(String(this.defaultValue))}]: `)).trim();if(!r)return this.success(this.defaultValue);let s=parseInt(r,10);if(this.presets){let i=s;if(i>=1&&i<=this.presets.length)return this.success(this.presets[i-1].value)}return isNaN(s)?(console.log(n.yellow(` Invalid input, using default: ${this.defaultValue}`)),this.success(this.defaultValue)):this.min!==void 0&&s<this.min?(console.log(n.yellow(` Value too low, using minimum: ${this.min}`)),this.success(this.min)):this.max!==void 0&&s>this.max?(console.log(n.yellow(` Value too high, using maximum: ${this.max}`)),this.success(this.max)):this.success(s)}},C=class extends d{id;stepNumber;title;description;examples;suggestionsProvider;validatePath;constructor(t){super(t.defaultValue),this.id=t.id,this.stepNumber=t.stepNumber,this.title=t.title,this.description=t.description,this.examples=t.examples,this.suggestionsProvider=t.suggestionsProvider,this.validatePath=t.validatePath??!0}async execute(t){if(t.nonInteractive){let i=I(t.cwd,this.defaultValue);return this.success(w(i)?i:t.cwd)}if(l.printStepHeader(this.stepNumber,this.title,this.description),this.examples&&(console.log(n.gray(`Examples: ${this.examples}`)),console.log("")),this.suggestionsProvider){let i=this.suggestionsProvider(t.cwd);i.length>0&&(console.log(n.yellow("Detected directories:")),i.slice(0,5).forEach((c,o)=>{console.log(n.gray(` ${o+1}. ${c}`))}),console.log(""))}let r=(await l.prompt(t.rl,`${this.title} [${n.gray(this.defaultValue)}]: `)).trim()||this.defaultValue,s=I(t.cwd,r);return this.validatePath&&!w(s)?(console.log(n.yellow(` Warning: '${r}' does not exist, using current directory.`)),this.success(t.cwd)):this.success(s)}};var T=class extends d{id;stepNumber;title;description;constructor(t){super({}),this.id=t.id,this.stepNumber=t.stepNumber,this.title=t.title,this.description=t.description}async execute(t){if(t.nonInteractive)return this.success({});l.printStepHeader(this.stepNumber,this.title,this.description);let e=await l.prompt(t.rl,`Include patterns [${n.gray("e.g., src/**/*.ts")}]: `),r=await l.prompt(t.rl,`Exclude patterns [${n.gray("e.g., **/*.test.ts,dist/**")}]: `),s={};return e.trim()&&(s.include=e.split(",").map(i=>i.trim()).filter(i=>i.length>0)),r.trim()&&(s.exclude=r.split(",").map(i=>i.trim()).filter(i=>i.length>0)),this.success(s)}};import{createInterface as R}from"readline";import $ from"chalk";var V=class{options;cwd;constructor(t){this.options=t,this.cwd=process.cwd()}async run(){if(this.isNonInteractive())return this.getDefaults();let t=R({input:process.stdin,output:process.stdout});try{this.printHeader();let e={},r=this.getCommands();for(let c of r){let o={rl:t,cwd:this.cwd,results:e,nonInteractive:!1},g=await c.execute(o);if(!g.continue)return this.getCancelled();e[c.id]=g.value}let s=this.buildResult(e);return this.printSummary(s),await this.promptConfirmation(t)?s:this.getCancelled()}finally{t.close()}}printHeader(){l.printWizardHeader(this.getTitle(),this.getSubtitle())}async promptConfirmation(t){console.log("");let r=(await l.prompt(t,`${$.green(this.getConfirmationPrompt())} [${$.gray("Y/n")}]: `)).trim().toLowerCase();return r==="n"||r==="no"?(console.log($.yellow(`
3
3
  Wizard cancelled.`)),!1):!0}};export{l as a,h as b,f as c,y as d,b as e,v as f,x as g,C as h,T as i,V as j};
@@ -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.13.9");process.exit(0)}
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.13.11");process.exit(0)}
2
2
  function r(e,f){if(e==null)return e;let n={...e};for(let t of f){let o=n[t];typeof o=="string"&&(n[t]=new Date(o))}return n}export{r as a};
@@ -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.13.9");process.exit(0)}
2
- import{a as j,c as V}from"./chunk-BJNQ4H5G.js";import{a as U,b as W,d as G}from"./chunk-OJ5FT22A.js";import{b as F}from"./chunk-UYTIAJYR.js";import{a as T,c as N}from"./chunk-MOI2ZRZO.js";import{b as D,c as $,d as Y}from"./chunk-IAETFGEU.js";N();Y();import*as C from"fs";import*as b from"path";import*as H from"yaml";var z=5,X=4,Z=3e4,ee=".claude/skills",te=5e3,se=500,K=100,re=1e3,q=500,ne=.8,ae=.2,ie=.1,w=.1,oe=.1,le=.1,ce=.1,ue=200,de=500,pe=300,me=1,ge=.9,Q={maxWorkers:z,batchSize:X,retryFailedTests:!0,timeout:Z,skillsDir:ee,progressIntervalMs:te},S=class{async execute(e,r,s){let t=$(K,se+K);return await new Promise(i=>setTimeout(i,t)),{output:this.generateMockResponse(e),tokensUsed:D(q,re+q),durationMs:t}}generateMockResponse(e){let r=[];return e.includes("alt")&&r.push("alt","1.1.1","perceivable"),e.includes("contrast")&&r.push("contrast","1.4.3","4.5:1"),e.includes("keyboard")&&r.push("keyboard","2.1.1","operable","button"),e.includes("label")&&r.push("label","3.3.2","understandable"),e.includes("ARIA")&&r.push("ARIA","4.1.2","robust"),e.includes("focus")&&r.push("focus","2.4.7","outline"),e.includes("lang")&&r.push("lang","3.1.1","language"),e.includes("caption")&&r.push("caption","1.2.2","track"),e.includes("accessible")&&r.push("accessible","compliant"),r.length===0&&r.push("accessibility","WCAG","finding"),`Analysis complete. Found issues related to: ${r.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.13.11");process.exit(0)}
2
+ import{a as j,c as V}from"./chunk-GP5QBJVO.js";import{a as U,b as W,d as G}from"./chunk-4TJJU5Y2.js";import{b as F}from"./chunk-UDSNWQQI.js";import{a as T,c as N}from"./chunk-TCVEXQLL.js";import{b as D,c as $,d as Y}from"./chunk-WJB6YYMJ.js";N();Y();import*as C from"fs";import*as b from"path";import*as H from"yaml";var z=5,X=4,Z=3e4,ee=".claude/skills",te=5e3,se=500,K=100,re=1e3,q=500,ne=.8,ae=.2,ie=.1,w=.1,oe=.1,le=.1,ce=.1,ue=200,de=500,pe=300,me=1,ge=.9,Q={maxWorkers:z,batchSize:X,retryFailedTests:!0,timeout:Z,skillsDir:ee,progressIntervalMs:te},S=class{async execute(e,r,s){let t=$(K,se+K);return await new Promise(i=>setTimeout(i,t)),{output:this.generateMockResponse(e),tokensUsed:D(q,re+q),durationMs:t}}generateMockResponse(e){let r=[];return e.includes("alt")&&r.push("alt","1.1.1","perceivable"),e.includes("contrast")&&r.push("contrast","1.4.3","4.5:1"),e.includes("keyboard")&&r.push("keyboard","2.1.1","operable","button"),e.includes("label")&&r.push("label","3.3.2","understandable"),e.includes("ARIA")&&r.push("ARIA","4.1.2","robust"),e.includes("focus")&&r.push("focus","2.4.7","outline"),e.includes("lang")&&r.push("lang","3.1.1","language"),e.includes("caption")&&r.push("caption","1.2.2","track"),e.includes("accessible")&&r.push("accessible","compliant"),r.length===0&&r.push("accessibility","WCAG","finding"),`Analysis complete. Found issues related to: ${r.join(", ")}.
3
3
  Recommendations: Implement proper ${r[0]} attributes for better accessibility.
4
4
  Severity: ${e.includes("critical")?"critical":"serious"}`}},P=class{constructor(e,r,s){this.executor=r;this.config=s;this.id=e}executor;config;id;status="idle";tasksCompleted=0;tasksFailed=0;lastHeartbeat=Date.now();async executeBatch(e){this.status="running";let r=[];for(let s of e){this.lastHeartbeat=Date.now();try{let t=await this.executeTestCase(s);if(r.push(t),t.passed)this.tasksCompleted++;else if(this.tasksFailed++,this.config.retryFailedTests&&!t.passed){let a=await this.executeTestCase(s,!0);a.passed&&(r[r.length-1]=a,this.tasksCompleted++,this.tasksFailed--)}}catch(t){this.tasksFailed++,r.push({testId:s.testCaseId,passed:!1,expectedPatterns:s.testCase.expected_output.must_contain||[],actualPatterns:[],reasoningQuality:0,category:s.testCase.category,priority:s.testCase.priority,error:T(t)})}}return this.status="idle",r}async executeTestCase(e,r=!1){let s=Date.now(),t=this.buildPrompt(e),a=await this.executor.execute(t,e.model,{timeout:this.config.timeout}),i=this.validateResponse(a.output,e.testCase.expected_output,e.testCase.validation);return{testId:e.testCaseId,passed:i.passed,expectedPatterns:e.testCase.expected_output.must_contain||[],actualPatterns:i.foundPatterns,reasoningQuality:i.reasoningQuality,executionTimeMs:Date.now()-s,category:e.testCase.category,priority:e.testCase.priority,error:i.error}}buildPrompt(e){let{testCase:r}=e,s=r.input.context;return`Analyze the following ${s.language||"HTML"} code for accessibility issues.
5
5
  Context: ${s.description||r.description}
@@ -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.13.9");process.exit(0)}
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.13.11");process.exit(0)}
2
2
  import{readFileSync as l,writeFileSync as c,mkdirSync as m,renameSync as u}from"node:fs";import{join as d,dirname as h}from"node:path";import{homedir as p}from"node:os";var C={maxCallsPerSession:10},S=d(p(),".agentic-qe","advisor","circuit-breaker.json"),x=1440*60*1e3,n=class{maxCalls;statePath;constructor(t){this.maxCalls=t?.maxCallsPerSession??C.maxCallsPerSession,this.statePath=t?.statePath??S}acquire(t){let e=this.load(),a=e.sessions[t]?.count??0;if(a>=this.maxCalls)throw new i(`Advisor circuit breaker tripped: ${a} calls in session "${t}" (max: ${this.maxCalls}). Do not retry \u2014 continue without the advisor.`,t,a,this.maxCalls);let r=a+1;return e.sessions[t]={count:r,lastUpdated:new Date().toISOString()},this.save(e),{sessionId:t,callCount:r,maxCalls:this.maxCalls,remaining:this.maxCalls-r,tripped:!1}}getState(t){let s=this.load().sessions[t]?.count??0;return{sessionId:t,callCount:s,maxCalls:this.maxCalls,remaining:this.maxCalls-s,tripped:s>=this.maxCalls}}reset(t){if(t){let e=this.load();delete e.sessions[t],this.save(e)}else this.save({sessions:{}})}load(){try{let t=l(this.statePath,"utf-8"),e=JSON.parse(t);return this.evictStale(e),e}catch{return{sessions:{}}}}save(t){try{m(h(this.statePath),{recursive:!0});let e=this.statePath+".tmp."+process.pid;c(e,JSON.stringify(t,null,2)),u(e,this.statePath)}catch{}}evictStale(t){let e=Date.now();for(let[s,a]of Object.entries(t.sessions))e-new Date(a.lastUpdated).getTime()>x&&delete t.sessions[s]}},i=class extends Error{constructor(e,s,a,r){super(e);this.sessionId=s;this.callCount=a;this.maxCalls=r;this.name="AdvisorCircuitBreakerError"}sessionId;callCount;maxCalls;exitCode=3};export{n as a,i as b};
@@ -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.13.9");process.exit(0)}
2
- import{e as a}from"./chunk-6VX2X4V5.js";import{b as w,d as y}from"./chunk-JOCSV4LF.js";import{a as f,c as P}from"./chunk-MOI2ZRZO.js";import{randomUUID as v}from"crypto";import*as i from"fs";import*as n from"path";import*as c from"os";y();P();var k=".aqe",b="schedules.json",F="1.0.0",g=5e3,x=50,p=10*1024*1024,d=class{schedulesPath;debug;lockFile;initialized=!1;constructor(e={}){e.schedulesPath&&this.validateSchedulesPath(e.schedulesPath),this.schedulesPath=e.schedulesPath??this.getDefaultSchedulesPath(),this.lockFile=`${this.schedulesPath}.lock`,this.debug=e.debug??!1}validateSchedulesPath(e){let s=c.homedir(),t=n.resolve(e),r=n.resolve(s);if(t.startsWith(r+n.sep)||t===r)return;let l=process.cwd(),h=n.resolve(l);if(t.startsWith(h+n.sep)||t===h)return;let u=c.tmpdir(),S=n.resolve(u);if(!(t.startsWith(S+n.sep)||t===S))throw new Error(`Security: Custom schedulesPath must be within home directory (${s}), current working directory (${l}), or temp directory (${u}). Provided path: ${e}`)}getDefaultSchedulesPath(){let e=c.homedir();return n.join(e,k,b)}async initialize(){if(this.initialized)return;let e=n.dirname(this.schedulesPath);i.existsSync(e)||(i.mkdirSync(e,{recursive:!0}),this.log(`Created directory: ${e}`)),this.initialized=!0}async loadSchedules(){if(await this.initialize(),!i.existsSync(this.schedulesPath))return this.log("Schedules file does not exist, returning empty array"),[];try{let e=i.readFileSync(this.schedulesPath,"utf-8"),s=this.parseSchedulesFile(e);return this.log(`Loaded ${s.schedules.length} schedules`),s.schedules}catch(e){return await this.handleCorruptFile(e),[]}}async saveSchedule(e){await this.initialize(),await this.withFileLock(async()=>{let s=await this.loadSchedulesUnsafe(),t=s.findIndex(r=>r.id===e.id);t>=0?(s[t]=e,this.log(`Updated schedule: ${e.id}`)):(s.push(e),this.log(`Added schedule: ${e.id}`)),await this.writeSchedules(s)})}async removeSchedule(e){await this.initialize(),await this.withFileLock(async()=>{let s=await this.loadSchedulesUnsafe(),t=s.filter(r=>r.id!==e);if(t.length===s.length){this.log(`Schedule not found: ${e}`);return}await this.writeSchedules(t),this.log(`Removed schedule: ${e}`)})}async getSchedules(){return this.loadSchedules()}async getSchedule(e){return(await this.loadSchedules()).find(t=>t.id===e)}async getDueSchedules(){let e=await this.loadSchedules(),s=new Date;return e.filter(t=>t.enabled?new Date(t.nextRun)<=s:!1)}async markExecuted(e){await this.initialize(),await this.withFileLock(async()=>{let s=await this.loadSchedulesUnsafe(),t=s.find(l=>l.id===e);if(!t)throw new Error(`Schedule not found: ${e}`);let r=new Date;t.lastRun=r.toISOString(),t.nextRun=a(t.schedule,r).toISOString(),await this.writeSchedules(s),this.log(`Marked executed: ${e}, next run: ${t.nextRun}`)})}async setEnabled(e,s){await this.initialize(),await this.withFileLock(async()=>{let t=await this.loadSchedulesUnsafe(),r=t.find(l=>l.id===e);if(!r)throw new Error(`Schedule not found: ${e}`);r.enabled=s,s&&(r.nextRun=a(r.schedule,new Date).toISOString()),await this.writeSchedules(t),this.log(`Set enabled=${s}: ${e}`)})}async getEnabledSchedules(){return(await this.loadSchedules()).filter(s=>s.enabled)}async getSchedulesByWorkflow(e){return(await this.loadSchedules()).filter(t=>t.workflowId===e)}async clearAll(){await this.initialize(),await this.withFileLock(async()=>{await this.writeSchedules([]),this.log("Cleared all schedules")})}async getStats(){let e=await this.loadSchedules(),s=new Date;return{total:e.length,enabled:e.filter(t=>t.enabled).length,disabled:e.filter(t=>!t.enabled).length,due:e.filter(t=>t.enabled&&new Date(t.nextRun)<=s).length}}async loadSchedulesUnsafe(){if(!i.existsSync(this.schedulesPath))return[];try{let e=i.readFileSync(this.schedulesPath,"utf-8");return this.parseSchedulesFile(e).schedules}catch{return[]}}parseSchedulesFile(e){let s=Buffer.byteLength(e,"utf-8");if(s>p)throw new Error(`Schedules file exceeds maximum allowed size (${p/(1024*1024)}MB). File is ${(s/(1024*1024)).toFixed(2)}MB.`);let t=w(e);if(!t.schedules||!Array.isArray(t.schedules))throw new Error("Invalid schedules file: missing schedules array");for(let r of t.schedules)if(!r.id||!r.workflowId||!r.schedule)throw new Error("Invalid schedule entry: missing required fields");return t}async writeSchedules(e){let s={version:F,updatedAt:new Date().toISOString(),schedules:e},t=JSON.stringify(s,null,2);i.writeFileSync(this.schedulesPath,t,"utf-8"),this.log(`Wrote ${e.length} schedules to disk`)}async handleCorruptFile(e){let s=f(e);this.log(`Corrupt schedules file detected: ${s}`);let t=`${this.schedulesPath}.corrupt.${Date.now()}`;try{i.existsSync(this.schedulesPath)&&(i.copyFileSync(this.schedulesPath,t),this.log(`Backed up corrupt file to: ${t}`))}catch(r){this.log(`Failed to backup corrupt file: ${r}`)}try{i.existsSync(this.schedulesPath)&&(i.unlinkSync(this.schedulesPath),this.log("Removed corrupt schedules file"))}catch(r){this.log(`Failed to remove corrupt file: ${r}`)}}async withFileLock(e){await this.acquireLock();try{return await e()}finally{this.releaseLock()}}async acquireLock(){let e=Date.now();for(;i.existsSync(this.lockFile);){try{let s=i.statSync(this.lockFile);if(Date.now()-s.mtimeMs>g){i.unlinkSync(this.lockFile),this.log("Removed stale lock file");break}}catch{break}if(Date.now()-e>g)throw new Error("Timeout waiting for scheduler lock");await this.sleep(x)}try{i.writeFileSync(this.lockFile,`${process.pid}:${Date.now()}`,{flag:"wx"})}catch(s){if(s.code==="EEXIST")return this.acquireLock();throw s}}releaseLock(){try{i.existsSync(this.lockFile)&&i.unlinkSync(this.lockFile)}catch(e){console.debug("[PersistentScheduler] Lock release error:",e instanceof Error?e.message:e)}}sleep(e){return new Promise(s=>setTimeout(s,e))}log(e){this.debug&&console.log(`[PersistentScheduler] ${e}`)}};function E(o={}){return new d(o)}function m(){let o=Date.now().toString(36),e=v().slice(0,8);return`sched-${o}-${e}`}function $(o){let e=new Date;return{id:m(),workflowId:o.workflowId,pipelinePath:o.pipelinePath,schedule:o.schedule,scheduleDescription:o.scheduleDescription,nextRun:a(o.schedule,e).toISOString(),enabled:o.enabled??!0,createdAt:e.toISOString()}}export{d as a,E as b,m as c,$ as d};
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.13.11");process.exit(0)}
2
+ import{e as a}from"./chunk-LLP3UW62.js";import{b as w,d as y}from"./chunk-TZA45FI7.js";import{a as f,c as P}from"./chunk-TCVEXQLL.js";import{randomUUID as v}from"crypto";import*as i from"fs";import*as n from"path";import*as c from"os";y();P();var k=".aqe",b="schedules.json",F="1.0.0",g=5e3,x=50,p=10*1024*1024,d=class{schedulesPath;debug;lockFile;initialized=!1;constructor(e={}){e.schedulesPath&&this.validateSchedulesPath(e.schedulesPath),this.schedulesPath=e.schedulesPath??this.getDefaultSchedulesPath(),this.lockFile=`${this.schedulesPath}.lock`,this.debug=e.debug??!1}validateSchedulesPath(e){let s=c.homedir(),t=n.resolve(e),r=n.resolve(s);if(t.startsWith(r+n.sep)||t===r)return;let l=process.cwd(),h=n.resolve(l);if(t.startsWith(h+n.sep)||t===h)return;let u=c.tmpdir(),S=n.resolve(u);if(!(t.startsWith(S+n.sep)||t===S))throw new Error(`Security: Custom schedulesPath must be within home directory (${s}), current working directory (${l}), or temp directory (${u}). Provided path: ${e}`)}getDefaultSchedulesPath(){let e=c.homedir();return n.join(e,k,b)}async initialize(){if(this.initialized)return;let e=n.dirname(this.schedulesPath);i.existsSync(e)||(i.mkdirSync(e,{recursive:!0}),this.log(`Created directory: ${e}`)),this.initialized=!0}async loadSchedules(){if(await this.initialize(),!i.existsSync(this.schedulesPath))return this.log("Schedules file does not exist, returning empty array"),[];try{let e=i.readFileSync(this.schedulesPath,"utf-8"),s=this.parseSchedulesFile(e);return this.log(`Loaded ${s.schedules.length} schedules`),s.schedules}catch(e){return await this.handleCorruptFile(e),[]}}async saveSchedule(e){await this.initialize(),await this.withFileLock(async()=>{let s=await this.loadSchedulesUnsafe(),t=s.findIndex(r=>r.id===e.id);t>=0?(s[t]=e,this.log(`Updated schedule: ${e.id}`)):(s.push(e),this.log(`Added schedule: ${e.id}`)),await this.writeSchedules(s)})}async removeSchedule(e){await this.initialize(),await this.withFileLock(async()=>{let s=await this.loadSchedulesUnsafe(),t=s.filter(r=>r.id!==e);if(t.length===s.length){this.log(`Schedule not found: ${e}`);return}await this.writeSchedules(t),this.log(`Removed schedule: ${e}`)})}async getSchedules(){return this.loadSchedules()}async getSchedule(e){return(await this.loadSchedules()).find(t=>t.id===e)}async getDueSchedules(){let e=await this.loadSchedules(),s=new Date;return e.filter(t=>t.enabled?new Date(t.nextRun)<=s:!1)}async markExecuted(e){await this.initialize(),await this.withFileLock(async()=>{let s=await this.loadSchedulesUnsafe(),t=s.find(l=>l.id===e);if(!t)throw new Error(`Schedule not found: ${e}`);let r=new Date;t.lastRun=r.toISOString(),t.nextRun=a(t.schedule,r).toISOString(),await this.writeSchedules(s),this.log(`Marked executed: ${e}, next run: ${t.nextRun}`)})}async setEnabled(e,s){await this.initialize(),await this.withFileLock(async()=>{let t=await this.loadSchedulesUnsafe(),r=t.find(l=>l.id===e);if(!r)throw new Error(`Schedule not found: ${e}`);r.enabled=s,s&&(r.nextRun=a(r.schedule,new Date).toISOString()),await this.writeSchedules(t),this.log(`Set enabled=${s}: ${e}`)})}async getEnabledSchedules(){return(await this.loadSchedules()).filter(s=>s.enabled)}async getSchedulesByWorkflow(e){return(await this.loadSchedules()).filter(t=>t.workflowId===e)}async clearAll(){await this.initialize(),await this.withFileLock(async()=>{await this.writeSchedules([]),this.log("Cleared all schedules")})}async getStats(){let e=await this.loadSchedules(),s=new Date;return{total:e.length,enabled:e.filter(t=>t.enabled).length,disabled:e.filter(t=>!t.enabled).length,due:e.filter(t=>t.enabled&&new Date(t.nextRun)<=s).length}}async loadSchedulesUnsafe(){if(!i.existsSync(this.schedulesPath))return[];try{let e=i.readFileSync(this.schedulesPath,"utf-8");return this.parseSchedulesFile(e).schedules}catch{return[]}}parseSchedulesFile(e){let s=Buffer.byteLength(e,"utf-8");if(s>p)throw new Error(`Schedules file exceeds maximum allowed size (${p/(1024*1024)}MB). File is ${(s/(1024*1024)).toFixed(2)}MB.`);let t=w(e);if(!t.schedules||!Array.isArray(t.schedules))throw new Error("Invalid schedules file: missing schedules array");for(let r of t.schedules)if(!r.id||!r.workflowId||!r.schedule)throw new Error("Invalid schedule entry: missing required fields");return t}async writeSchedules(e){let s={version:F,updatedAt:new Date().toISOString(),schedules:e},t=JSON.stringify(s,null,2);i.writeFileSync(this.schedulesPath,t,"utf-8"),this.log(`Wrote ${e.length} schedules to disk`)}async handleCorruptFile(e){let s=f(e);this.log(`Corrupt schedules file detected: ${s}`);let t=`${this.schedulesPath}.corrupt.${Date.now()}`;try{i.existsSync(this.schedulesPath)&&(i.copyFileSync(this.schedulesPath,t),this.log(`Backed up corrupt file to: ${t}`))}catch(r){this.log(`Failed to backup corrupt file: ${r}`)}try{i.existsSync(this.schedulesPath)&&(i.unlinkSync(this.schedulesPath),this.log("Removed corrupt schedules file"))}catch(r){this.log(`Failed to remove corrupt file: ${r}`)}}async withFileLock(e){await this.acquireLock();try{return await e()}finally{this.releaseLock()}}async acquireLock(){let e=Date.now();for(;i.existsSync(this.lockFile);){try{let s=i.statSync(this.lockFile);if(Date.now()-s.mtimeMs>g){i.unlinkSync(this.lockFile),this.log("Removed stale lock file");break}}catch{break}if(Date.now()-e>g)throw new Error("Timeout waiting for scheduler lock");await this.sleep(x)}try{i.writeFileSync(this.lockFile,`${process.pid}:${Date.now()}`,{flag:"wx"})}catch(s){if(s.code==="EEXIST")return this.acquireLock();throw s}}releaseLock(){try{i.existsSync(this.lockFile)&&i.unlinkSync(this.lockFile)}catch(e){console.debug("[PersistentScheduler] Lock release error:",e instanceof Error?e.message:e)}}sleep(e){return new Promise(s=>setTimeout(s,e))}log(e){this.debug&&console.log(`[PersistentScheduler] ${e}`)}};function E(o={}){return new d(o)}function m(){let o=Date.now().toString(36),e=v().slice(0,8);return`sched-${o}-${e}`}function $(o){let e=new Date;return{id:m(),workflowId:o.workflowId,pipelinePath:o.pipelinePath,schedule:o.schedule,scheduleDescription:o.scheduleDescription,nextRun:a(o.schedule,e).toISOString(),enabled:o.enabled??!0,createdAt:e.toISOString()}}export{d as a,E as b,m as c,$ as d};
@@ -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.13.9");process.exit(0)}
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.13.11");process.exit(0)}
2
2
  var n=class{constructor(t){this.capacity=t;this.buffer=new Array(t)}capacity;buffer;head=0;tail=0;count=0;push(t){this.buffer[this.tail]=t,this.tail=(this.tail+1)%this.capacity,this.count<this.capacity?this.count++:this.head=(this.head+1)%this.capacity}toArray(){let t=[];for(let e=0;e<this.count;e++){let i=(this.head+e)%this.capacity;t.push(this.buffer[i])}return t}get length(){return this.count}get size(){return this.count}clear(){this.buffer=new Array(this.capacity),this.head=0,this.tail=0,this.count=0}last(t){let e=[],i=Math.max(0,this.count-t);for(let s=i;s<this.count;s++){let r=(this.head+s)%this.capacity;e.push(this.buffer[r])}return e}percentile(t){if(this.count===0)return;let e=this.toArray().sort((s,r)=>Number(s)-Number(r)),i=Math.floor(t/100*(e.length-1));return e[i]}reduce(t,e){let i=e;for(let s=0;s<this.count;s++){let r=(this.head+s)%this.capacity;i=t(i,this.buffer[r])}return i}average(){return this.count===0?0:this.reduce((e,i)=>e+i,0)/this.count}};export{n as a};
@@ -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.13.9");process.exit(0)}
2
- import{c as t}from"./chunk-HZLDCCUG.js";import{randomInt as o}from"node:crypto";function a(){return Math.random()}function m(n,e){return o(n,e)}function c(n,e){return n+Math.random()*(e-n)}var r=t(()=>{"use strict"});export{a,m as b,c,r as d};
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.13.11");process.exit(0)}
2
+ import{c as t}from"./chunk-LUAXQB57.js";import{randomInt as o}from"node:crypto";function a(){return Math.random()}function m(n,e){return o(n,e)}function c(n,e){return n+Math.random()*(e-n)}var r=t(()=>{"use strict"});export{a,m as b,c,r as d};
@@ -1,4 +1,4 @@
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.13.9");process.exit(0)}
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.13.11");process.exit(0)}
2
2
  var h={0:"sqlite-only",1:"hybrid",2:"dual-write-sqlite-primary",3:"dual-write-rvf-primary",4:"rvf-primary"},g=class{config;db=null;rvfStore=null;totalWrites=0;totalReads=0;rvfWriteFailures=0;rvfReadFailures=0;fallbacksUsed=0;sqliteLatencies=[];rvfLatencies=[];sqliteWriteLatencies=[];rvfWriteLatencies=[];constructor(e){this.config={rvfPath:".agentic-qe/patterns.rvf",dimensions:384,enableFallback:!0,...e}}setSqliteDb(e){this.db=e}setRvfStore(e){this.rvfStore=e}get stage(){return this.config.stage}setStage(e){this.config={...this.config,stage:e}}write(e,t){this.totalWrites++;let s={sqliteSuccess:!1,rvfSuccess:!1,stage:this.config.stage,fallbackUsed:!1},n=this.config.stage<4,o=this.config.stage>=2;if(n&&this.db){let i=performance.now();try{let r=Buffer.from(t instanceof Float32Array?t.buffer:new Float32Array(t).buffer);this.db.prepare(`
3
3
  INSERT INTO qe_pattern_embeddings (pattern_id, embedding, dimension, model, created_at)
4
4
  VALUES (?, ?, ?, 'all-MiniLM-L6-v2', datetime('now'))
@@ -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.13.9");process.exit(0)}
2
- import{a as n}from"./chunk-3FUI4SKR.js";import{a as o}from"./chunk-L5SV6NNH.js";import{a,e as c}from"./chunk-LCVKHWW2.js";c();var M=a.CLEANUP_INTERVAL_MS,y=".agentic-qe/memory.db";async function d(r,t=!0){let e;switch(r.type){case"memory":e=new o;break;case"sqlite":e=new n({sqlite:r.sqlite,enableFallback:!0});break;case"agentdb":e=new n({sqlite:{path:r.agentdb?.path??y},enableFallback:!0});break;case"hybrid":e=new n(r.hybrid);break;default:throw new Error(`Unknown memory backend type: ${r.type}`)}return t&&await e.initialize(),{backend:e,type:r.type,initialized:t}}async function u(r=!0){let t=process.env.AQE_MEMORY_BACKEND??"memory",e=process.env.AQE_MEMORY_PATH??".agentic-qe",i={type:t,sqlite:{path:`${e}/memory.db`,walMode:!0},agentdb:{path:`${e}/memory.db`},hybrid:{enableFallback:!0,sqlite:{path:`${e}/memory.db`}}};return d(i,r)}export{d as a,u as b};
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.13.11");process.exit(0)}
2
+ import{a as n}from"./chunk-24XW7KUX.js";import{a as o}from"./chunk-4TUGQESL.js";import{a,e as c}from"./chunk-AHG2O5HT.js";c();var M=a.CLEANUP_INTERVAL_MS,y=".agentic-qe/memory.db";async function d(r,t=!0){let e;switch(r.type){case"memory":e=new o;break;case"sqlite":e=new n({sqlite:r.sqlite,enableFallback:!0});break;case"agentdb":e=new n({sqlite:{path:r.agentdb?.path??y},enableFallback:!0});break;case"hybrid":e=new n(r.hybrid);break;default:throw new Error(`Unknown memory backend type: ${r.type}`)}return t&&await e.initialize(),{backend:e,type:r.type,initialized:t}}async function u(r=!0){let t=process.env.AQE_MEMORY_BACKEND??"memory",e=process.env.AQE_MEMORY_PATH??".agentic-qe",i={type:t,sqlite:{path:`${e}/memory.db`,walMode:!0},agentdb:{path:`${e}/memory.db`},hybrid:{enableFallback:!0,sqlite:{path:`${e}/memory.db`}}};return d(i,r)}export{d as a,u as b};
@@ -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.13.9");process.exit(0)}
2
- import{a as f}from"./chunk-EEKIJM5G.js";import{c as p}from"./chunk-IYG6DTCX.js";import{a as l,d as b}from"./chunk-IAETFGEU.js";import{a as d,b as g}from"./chunk-X2337R6M.js";f();g();b();var v={dimensions:384,M:16,efConstruction:200,efSearch:100,metric:"cosine",namespace:"coverage-hnsw",maxElements:1e5},S=p.create("coverage-analysis/hnsw-index"),u=class{constructor(e,t={}){this.memory=e;this.config={...v,...t},this.stats={vectorCount:0,searchOperations:0,insertOperations:0}}memory;config;stats;searchLatencies=[];backendType="ruvector-gnn";adapter=null;initialized=!1;metadataStore=new Map;async initialize(){if(this.initialized)return;let e=this.config.metric==="cosine"?"cosine":"euclidean",t=`coverage-${this.config.namespace}`;d.close(t),this.adapter=d.create(t,{dimensions:this.config.dimensions,M:this.config.M,efConstruction:this.config.efConstruction,efSearch:this.config.efSearch,metric:e}),S.info(`HnswAdapter initialized: dimension=${this.config.dimensions}, metric=${this.config.metric}, M=${this.config.M} (unified backend via ADR-071)`),this.initialized=!0}isNativeAvailable(){return this.initialized&&this.adapter!==null}getBackendType(){return this.backendType}isRuvectorAvailable(){return this.initialized&&this.adapter!==null&&this.adapter.isRuvectorAvailable()}async insert(e,t,a){this.initialized||await this.initialize(),t=this.validateVector(t),this.adapter.addByStringId(e,t),a&&this.metadataStore.set(e,a),this.stats.insertOperations++,this.stats.vectorCount=this.adapter.size()}async search(e,t){this.initialized||await this.initialize(),e=this.validateVector(e);let a=performance.now(),n=[];this.adapter.size()>0&&(n=this.adapter.searchByArray(e,t).map(({id:i,score:o})=>({key:i,score:o,distance:1-o,metadata:this.metadataStore.get(i)})));let s=performance.now()-a;return this.recordSearchLatency(s),this.stats.searchOperations++,n}async batchInsert(e){this.initialized||await this.initialize();let t=100;for(let a=0;a<e.length;a+=t){let n=e.slice(a,a+t);await Promise.all(n.map(r=>this.insert(r.key,r.vector,r.metadata)))}}async delete(e){if(!this.adapter)return!1;let t=this.adapter.removeByStringId(e);if(t){this.metadataStore.delete(e);let a=this.buildKey(e);await this.memory.delete(a),this.stats.vectorCount=this.adapter.size()}return t}async getStats(){return{nativeHNSW:this.initialized&&this.adapter!==null,backendType:this.backendType,vectorCount:this.stats.vectorCount,indexSizeBytes:this.stats.vectorCount*this.config.dimensions*4,avgSearchLatencyMs:this.calculateAvgLatency(),p95SearchLatencyMs:this.calculatePercentileLatency(95),p99SearchLatencyMs:this.calculatePercentileLatency(99),searchOperations:this.stats.searchOperations,insertOperations:this.stats.insertOperations}}async clear(){this.metadataStore.clear(),this.adapter&&this.adapter.clear(),this.stats.vectorCount=0,this.searchLatencies=[]}validateVector(e){if(e.length!==this.config.dimensions)return this.resizeVector(e,this.config.dimensions);for(let t=0;t<e.length;t++)if(!Number.isFinite(e[t]))throw new Error(`Invalid vector value at index ${t}: ${e[t]}`);return e}resizeVector(e,t){if(e.length===t)return e;if(e.length>t){let n=new Array(t).fill(0),r=e.length/t;for(let s=0;s<t;s++){let h=Math.floor(s*r),i=Math.floor((s+1)*r),o=0;for(let m=h;m<i;m++)o+=e[m];n[s]=o/(i-h)}return n}let a=new Array(t).fill(0);for(let n=0;n<e.length;n++)a[n]=e[n];return a}buildKey(e){return`${this.config.namespace}:${e}`}recordSearchLatency(e){this.searchLatencies.push(e);let t=1e3;this.searchLatencies.length>t&&(this.searchLatencies=this.searchLatencies.slice(-t))}calculateAvgLatency(){return this.searchLatencies.length===0?0:this.searchLatencies.reduce((t,a)=>t+a,0)/this.searchLatencies.length}calculatePercentileLatency(e){if(this.searchLatencies.length===0)return 0;let t=[...this.searchLatencies].sort((n,r)=>n-r),a=Math.ceil(e/100*t.length)-1;return t[Math.max(0,a)]}setEfSearch(e){this.config.efSearch=e}};function C(c,e){return new u(c,e)}async function H(c,e=1e4,t=1e3){let n=performance.now();for(let i=0;i<e;i++){let o=Array.from({length:384},()=>l());await c.insert(`bench-${i}`,o)}let r=performance.now()-n,s=performance.now();for(let i=0;i<t;i++){let o=Array.from({length:384},()=>l());await c.search(o,10)}let h=performance.now()-s;return{insertTimeMs:r,searchTimeMs:h,avgSearchLatencyMs:h/t,isNative:c.isNativeAvailable(),backendType:c.getBackendType()}}export{v as a,u as b,C as c,H as d};
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.13.11");process.exit(0)}
2
+ import{a as f}from"./chunk-CYQRZ645.js";import{c as p}from"./chunk-QYHRDBKI.js";import{a as l,d as b}from"./chunk-WJB6YYMJ.js";import{a as d,b as g}from"./chunk-NC7HTDH5.js";f();g();b();var v={dimensions:384,M:16,efConstruction:200,efSearch:100,metric:"cosine",namespace:"coverage-hnsw",maxElements:1e5},S=p.create("coverage-analysis/hnsw-index"),u=class{constructor(e,t={}){this.memory=e;this.config={...v,...t},this.stats={vectorCount:0,searchOperations:0,insertOperations:0}}memory;config;stats;searchLatencies=[];backendType="ruvector-gnn";adapter=null;initialized=!1;metadataStore=new Map;async initialize(){if(this.initialized)return;let e=this.config.metric==="cosine"?"cosine":"euclidean",t=`coverage-${this.config.namespace}`;d.close(t),this.adapter=d.create(t,{dimensions:this.config.dimensions,M:this.config.M,efConstruction:this.config.efConstruction,efSearch:this.config.efSearch,metric:e}),S.info(`HnswAdapter initialized: dimension=${this.config.dimensions}, metric=${this.config.metric}, M=${this.config.M} (unified backend via ADR-071)`),this.initialized=!0}isNativeAvailable(){return this.initialized&&this.adapter!==null}getBackendType(){return this.backendType}isRuvectorAvailable(){return this.initialized&&this.adapter!==null&&this.adapter.isRuvectorAvailable()}async insert(e,t,a){this.initialized||await this.initialize(),t=this.validateVector(t),this.adapter.addByStringId(e,t),a&&this.metadataStore.set(e,a),this.stats.insertOperations++,this.stats.vectorCount=this.adapter.size()}async search(e,t){this.initialized||await this.initialize(),e=this.validateVector(e);let a=performance.now(),n=[];this.adapter.size()>0&&(n=this.adapter.searchByArray(e,t).map(({id:i,score:o})=>({key:i,score:o,distance:1-o,metadata:this.metadataStore.get(i)})));let s=performance.now()-a;return this.recordSearchLatency(s),this.stats.searchOperations++,n}async batchInsert(e){this.initialized||await this.initialize();let t=100;for(let a=0;a<e.length;a+=t){let n=e.slice(a,a+t);await Promise.all(n.map(r=>this.insert(r.key,r.vector,r.metadata)))}}async delete(e){if(!this.adapter)return!1;let t=this.adapter.removeByStringId(e);if(t){this.metadataStore.delete(e);let a=this.buildKey(e);await this.memory.delete(a),this.stats.vectorCount=this.adapter.size()}return t}async getStats(){return{nativeHNSW:this.initialized&&this.adapter!==null,backendType:this.backendType,vectorCount:this.stats.vectorCount,indexSizeBytes:this.stats.vectorCount*this.config.dimensions*4,avgSearchLatencyMs:this.calculateAvgLatency(),p95SearchLatencyMs:this.calculatePercentileLatency(95),p99SearchLatencyMs:this.calculatePercentileLatency(99),searchOperations:this.stats.searchOperations,insertOperations:this.stats.insertOperations}}async clear(){this.metadataStore.clear(),this.adapter&&this.adapter.clear(),this.stats.vectorCount=0,this.searchLatencies=[]}validateVector(e){if(e.length!==this.config.dimensions)return this.resizeVector(e,this.config.dimensions);for(let t=0;t<e.length;t++)if(!Number.isFinite(e[t]))throw new Error(`Invalid vector value at index ${t}: ${e[t]}`);return e}resizeVector(e,t){if(e.length===t)return e;if(e.length>t){let n=new Array(t).fill(0),r=e.length/t;for(let s=0;s<t;s++){let h=Math.floor(s*r),i=Math.floor((s+1)*r),o=0;for(let m=h;m<i;m++)o+=e[m];n[s]=o/(i-h)}return n}let a=new Array(t).fill(0);for(let n=0;n<e.length;n++)a[n]=e[n];return a}buildKey(e){return`${this.config.namespace}:${e}`}recordSearchLatency(e){this.searchLatencies.push(e);let t=1e3;this.searchLatencies.length>t&&(this.searchLatencies=this.searchLatencies.slice(-t))}calculateAvgLatency(){return this.searchLatencies.length===0?0:this.searchLatencies.reduce((t,a)=>t+a,0)/this.searchLatencies.length}calculatePercentileLatency(e){if(this.searchLatencies.length===0)return 0;let t=[...this.searchLatencies].sort((n,r)=>n-r),a=Math.ceil(e/100*t.length)-1;return t[Math.max(0,a)]}setEfSearch(e){this.config.efSearch=e}};function C(c,e){return new u(c,e)}async function H(c,e=1e4,t=1e3){let n=performance.now();for(let i=0;i<e;i++){let o=Array.from({length:384},()=>l());await c.insert(`bench-${i}`,o)}let r=performance.now()-n,s=performance.now();for(let i=0;i<t;i++){let o=Array.from({length:384},()=>l());await c.search(o,10)}let h=performance.now()-s;return{insertTimeMs:r,searchTimeMs:h,avgSearchLatencyMs:h/t,isNative:c.isNativeAvailable(),backendType:c.getBackendType()}}export{v as a,u as b,C as c,H as d};
@@ -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.13.9");process.exit(0)}
2
- import{c as e}from"./chunk-HZLDCCUG.js";function r(t){t.exec(n)}var n,a=e(()=>{"use strict";n=`
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.13.11");process.exit(0)}
2
+ import{c as e}from"./chunk-LUAXQB57.js";function r(t){t.exec(n)}var n,a=e(()=>{"use strict";n=`
3
3
  -- Negative pattern records (ADR-110 kept nulls)
4
4
  CREATE TABLE IF NOT EXISTS qe_pattern_nulls (
5
5
  id TEXT PRIMARY KEY,
@@ -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.13.9");process.exit(0)}
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.13.11");process.exit(0)}
2
2
  var n=["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"];function t(e){return{success:!0,value:e}}function r(e){return{success:!1,error:e}}export{n as a,t as b,r as c};