agentic-qe 3.15.15 → 3.15.16

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 (495) hide show
  1. package/.claude/skills/skills-manifest.json +1 -1
  2. package/CHANGELOG.md +90 -0
  3. package/assets/skills/skills-manifest.json +1 -1
  4. package/dist/audit/witness-chain.d.ts +7 -0
  5. package/dist/audit/witness-chain.js +10 -0
  6. package/dist/cli/bundle.js +6 -6
  7. package/dist/cli/chunks/adapter-6CQ2PIP5.js +2 -0
  8. package/dist/cli/chunks/{agent-booster-wasm-EUF4XVUC.js → agent-booster-wasm-45NWEKVS.js} +2 -2
  9. package/dist/cli/chunks/{agent-handler-MOX6PSIQ.js → agent-handler-LVHMYFEF.js} +2 -2
  10. package/dist/cli/chunks/{agent-memory-branch-AEXKIGDG.js → agent-memory-branch-YDWOJFEQ.js} +2 -2
  11. package/dist/cli/chunks/aqe-learning-engine-73RR52VS.js +2 -0
  12. package/dist/cli/chunks/{arena-IQ5ZZDRF.js → arena-CZKHXDDS.js} +2 -2
  13. package/dist/cli/chunks/{arena-M7GA3CVG.js → arena-ELDZH3CZ.js} +4 -4
  14. package/dist/cli/chunks/{audit-4IPBMKWB.js → audit-5MT4T47Z.js} +3 -3
  15. package/dist/cli/chunks/base-SMCMMVGP.js +2 -0
  16. package/dist/cli/chunks/{better-sqlite3-IKDKJ2IE.js → better-sqlite3-6TGYPC2B.js} +2 -2
  17. package/dist/cli/chunks/{brain-handler-5NQUDH4W.js → brain-handler-HQWZFO52.js} +3 -3
  18. package/dist/cli/chunks/{branch-enumerator-KSXELWRC.js → branch-enumerator-WVILM4SO.js} +2 -2
  19. package/dist/cli/chunks/{browser-6LACARWE.js → browser-RX5ALU3H.js} +2 -2
  20. package/dist/cli/chunks/browser-workflow-A2MEZ66K.js +2 -0
  21. package/dist/cli/chunks/{chunk-SJCKCSN3.js → chunk-24OX5TQJ.js} +1 -1
  22. package/dist/cli/chunks/{chunk-J3FP5UGL.js → chunk-24QHCVX6.js} +1 -1
  23. package/dist/cli/chunks/{chunk-BZULJMGH.js → chunk-2H4XH6FT.js} +2 -2
  24. package/dist/cli/chunks/{chunk-E3MRDIZF.js → chunk-2YZ4G6NW.js} +1 -1
  25. package/dist/cli/chunks/chunk-32BPDLRZ.js +27 -0
  26. package/dist/cli/chunks/{chunk-76P32JVU.js → chunk-32GN3JKR.js} +1 -1
  27. package/dist/cli/chunks/{chunk-W62OOK7A.js → chunk-3HD7E6HN.js} +2 -2
  28. package/dist/cli/chunks/{chunk-AJPROCDW.js → chunk-4D4DENG6.js} +2 -2
  29. package/dist/cli/chunks/{chunk-PFQCV6YS.js → chunk-4LQFBY5L.js} +6 -6
  30. package/dist/cli/chunks/{chunk-4ATQP3PR.js → chunk-4NFQLP6R.js} +1 -1
  31. package/dist/cli/chunks/{chunk-WUOOX7UG.js → chunk-525CFDUE.js} +2 -2
  32. package/dist/cli/chunks/chunk-5B5QPCNU.js +65 -0
  33. package/dist/cli/chunks/{chunk-SON6ZRH3.js → chunk-5JZRZI4S.js} +2 -2
  34. package/dist/cli/chunks/{chunk-2ZFLULL4.js → chunk-5LAVKGLH.js} +2 -2
  35. package/dist/cli/chunks/chunk-5NNNEWLS.js +755 -0
  36. package/dist/cli/chunks/{chunk-JCZCJE6X.js → chunk-5PBLPQ5T.js} +2 -2
  37. package/dist/cli/chunks/chunk-5QO3R3TU.js +6 -0
  38. package/dist/cli/chunks/{chunk-EKP2SC77.js → chunk-5SPCGMBB.js} +2 -2
  39. package/dist/cli/chunks/{chunk-3J3RNJNX.js → chunk-5V3TI2LG.js} +1 -1
  40. package/dist/cli/chunks/{chunk-UAQZI6N4.js → chunk-5VZL4UVN.js} +2 -2
  41. package/dist/cli/chunks/{chunk-MIA447GY.js → chunk-63GMRQ25.js} +1 -1
  42. package/dist/cli/chunks/{chunk-TODNOP7C.js → chunk-63ZKI4PX.js} +6 -6
  43. package/dist/cli/chunks/{chunk-TZIHDJZD.js → chunk-67Z5R7RJ.js} +2 -2
  44. package/dist/cli/chunks/{chunk-WVXJ2QIG.js → chunk-6DPYNAOK.js} +2 -2
  45. package/dist/cli/chunks/{chunk-4HKAD25N.js → chunk-6ICX3FEG.js} +3 -3
  46. package/dist/cli/chunks/{chunk-BLL2XU7A.js → chunk-6XXZDV2C.js} +2 -2
  47. package/dist/cli/chunks/{chunk-R6LHJ7ME.js → chunk-6ZBXSOX6.js} +2 -2
  48. package/dist/cli/chunks/{chunk-5PTAFGJT.js → chunk-72XSEQMW.js} +2 -2
  49. package/dist/cli/chunks/{chunk-GKSMRBHU.js → chunk-7TE5ONQQ.js} +1 -1
  50. package/dist/cli/chunks/{chunk-UJABDXST.js → chunk-A5GBXCP5.js} +2 -2
  51. package/dist/cli/chunks/{chunk-22UKJGGN.js → chunk-AAMLQ2LF.js} +3 -3
  52. package/dist/cli/chunks/chunk-AG2EWGXS.js +21 -0
  53. package/dist/cli/chunks/{chunk-SZAZQZWI.js → chunk-AGRV5B3T.js} +2 -2
  54. package/dist/cli/chunks/{chunk-XH4JMX5O.js → chunk-AJMJNQMP.js} +1 -1
  55. package/dist/cli/chunks/{chunk-ZIPAB5J6.js → chunk-AR67RJPY.js} +2 -2
  56. package/dist/cli/chunks/{chunk-GGQGCT4Y.js → chunk-ASEOFRIG.js} +2 -2
  57. package/dist/cli/chunks/{chunk-AHMWD6JG.js → chunk-BEKDKVQT.js} +2 -2
  58. package/dist/cli/chunks/{chunk-W27AJ5B4.js → chunk-BY5OF7OH.js} +2 -2
  59. package/dist/cli/chunks/{chunk-T67R2MUN.js → chunk-C5FP5GW3.js} +2 -2
  60. package/dist/cli/chunks/{chunk-XHHWABJV.js → chunk-C6D5AHBO.js} +2 -2
  61. package/dist/cli/chunks/{chunk-PXATBHWN.js → chunk-CAKMOVZ6.js} +2 -2
  62. package/dist/cli/chunks/{chunk-337Z52QM.js → chunk-CEYSYSK5.js} +2 -2
  63. package/dist/cli/chunks/{chunk-KJBPB7P5.js → chunk-CGGUM2YJ.js} +2 -2
  64. package/dist/cli/chunks/{chunk-CAOUV5GZ.js → chunk-CJSHWQXP.js} +2 -2
  65. package/dist/cli/chunks/{chunk-GCHYOPRZ.js → chunk-CRPIYUTJ.js} +2 -2
  66. package/dist/cli/chunks/{chunk-RIRZHOS2.js → chunk-D6COXLYE.js} +2 -2
  67. package/dist/cli/chunks/{chunk-O6EWL5DQ.js → chunk-DTMAS2GB.js} +2 -2
  68. package/dist/cli/chunks/{chunk-XM6ZVFM5.js → chunk-DVYHMDFR.js} +470 -411
  69. package/dist/cli/chunks/chunk-DXD6K2ZP.js +3 -0
  70. package/dist/cli/chunks/{chunk-74YG72NQ.js → chunk-E3D4GPLP.js} +3 -3
  71. package/dist/cli/chunks/{chunk-KCQNFBBR.js → chunk-EA4YQVKS.js} +1 -1
  72. package/dist/cli/chunks/{chunk-4D4CWP72.js → chunk-EGYE5UPQ.js} +2 -2
  73. package/dist/cli/chunks/{chunk-DURD37JZ.js → chunk-EK7OLYOZ.js} +2 -2
  74. package/dist/cli/chunks/{chunk-DKX4GNRU.js → chunk-F742SZAX.js} +2 -2
  75. package/dist/cli/chunks/{chunk-JCQGJGGZ.js → chunk-FBDVGRSC.js} +1 -1
  76. package/dist/cli/chunks/{chunk-LVABQNRF.js → chunk-FDDC72IA.js} +2 -2
  77. package/dist/cli/chunks/{chunk-5AFVEWMT.js → chunk-FL64OUBA.js} +2 -2
  78. package/dist/cli/chunks/{chunk-5I7357KS.js → chunk-FLNAW7C4.js} +2 -2
  79. package/dist/cli/chunks/{chunk-BQ47GQPK.js → chunk-G5RHFBAY.js} +2 -2
  80. package/dist/cli/chunks/{chunk-XIVVTYM2.js → chunk-GAHNO6JJ.js} +2 -2
  81. package/dist/cli/chunks/{chunk-X33CWRDF.js → chunk-GFWHUQSF.js} +2 -2
  82. package/dist/cli/chunks/{chunk-VMAM46HQ.js → chunk-GJYHWYXR.js} +2 -2
  83. package/dist/cli/chunks/{chunk-ZYJB6FML.js → chunk-GQ6TUIKY.js} +1 -1
  84. package/dist/cli/chunks/{chunk-E56PVVWC.js → chunk-GSKMOPL7.js} +2 -2
  85. package/dist/cli/chunks/{chunk-JUDUBQHA.js → chunk-HCH4Y6XX.js} +2 -2
  86. package/dist/cli/chunks/{chunk-QFGYH6HD.js → chunk-HGWXF45W.js} +1 -1
  87. package/dist/cli/chunks/{chunk-FTRSS64D.js → chunk-HJ6ZGVTB.js} +2 -2
  88. package/dist/cli/chunks/{chunk-6BRQPHMZ.js → chunk-HLUXXCHF.js} +1 -1
  89. package/dist/cli/chunks/{chunk-BP5T3OEV.js → chunk-HVRRLYX6.js} +4 -4
  90. package/dist/cli/chunks/{chunk-AOKKUB5F.js → chunk-I7MQIM2U.js} +1 -1
  91. package/dist/cli/chunks/{chunk-7XB3FCKM.js → chunk-IESR7TNB.js} +2 -2
  92. package/dist/cli/chunks/{chunk-OQG3UQQ7.js → chunk-IHRXZZQM.js} +1 -1
  93. package/dist/cli/chunks/{chunk-YUS6TWAL.js → chunk-IOKYCMTJ.js} +6 -6
  94. package/dist/cli/chunks/{chunk-ERN56H6S.js → chunk-IOQ6ZQ5W.js} +1 -1
  95. package/dist/cli/chunks/{chunk-GQABPCQE.js → chunk-IOYG4VFL.js} +2 -2
  96. package/dist/cli/chunks/{chunk-KLTMOXIK.js → chunk-IUBJVHNB.js} +2 -2
  97. package/dist/cli/chunks/{chunk-ZSOMUTNL.js → chunk-J442IZLE.js} +1 -1
  98. package/dist/cli/chunks/{chunk-G242G224.js → chunk-J4ELZNLY.js} +2 -2
  99. package/dist/cli/chunks/chunk-J7I6PABJ.js +153 -0
  100. package/dist/cli/chunks/chunk-JDIYMZCQ.js +2 -0
  101. package/dist/cli/chunks/{chunk-2IIXCEMS.js → chunk-JHQCRRJI.js} +2 -2
  102. package/dist/cli/chunks/{chunk-6LE362LZ.js → chunk-JQ3DYUMS.js} +2 -2
  103. package/dist/cli/chunks/{chunk-EFUJDMNC.js → chunk-KITOPKRG.js} +2 -2
  104. package/dist/cli/chunks/{chunk-M4CJCPCQ.js → chunk-KKU2QGSJ.js} +2 -2
  105. package/dist/cli/chunks/chunk-KL7OKSU2.js +4 -0
  106. package/dist/cli/chunks/{chunk-HL2ANKN3.js → chunk-KNSRL6NO.js} +2 -2
  107. package/dist/cli/chunks/{chunk-FOOW4JVS.js → chunk-KPRCB5LT.js} +2 -2
  108. package/dist/cli/chunks/{chunk-E5G4WZ2T.js → chunk-KQYJ4VQ5.js} +1 -1
  109. package/dist/cli/chunks/{chunk-RBKUU7WF.js → chunk-KU2AUFGX.js} +2 -2
  110. package/dist/cli/chunks/{chunk-UQPA33UK.js → chunk-KVF4NXGQ.js} +2 -2
  111. package/dist/cli/chunks/{chunk-BDKEAGQ2.js → chunk-KXCLACFG.js} +2 -2
  112. package/dist/cli/chunks/{chunk-K3WZICFA.js → chunk-L2DWPVNJ.js} +1 -1
  113. package/dist/cli/chunks/{chunk-6YVMX2TC.js → chunk-L6QSTQME.js} +2 -2
  114. package/dist/cli/chunks/{chunk-LJMYRTJ7.js → chunk-LE4QJREF.js} +1 -1
  115. package/dist/cli/chunks/{chunk-NWIIYHT6.js → chunk-LKTTUHLF.js} +2 -2
  116. package/dist/cli/chunks/{chunk-W5ZJG2OU.js → chunk-LQLPB2T6.js} +2 -2
  117. package/dist/cli/chunks/{chunk-JKJOB65O.js → chunk-LRSX2FJM.js} +1 -1
  118. package/dist/cli/chunks/chunk-M4FRQ4TE.js +12 -0
  119. package/dist/cli/chunks/chunk-M7WJCTG3.js +2 -0
  120. package/dist/cli/chunks/{chunk-6RBTS3NF.js → chunk-MAFQV4U4.js} +2 -2
  121. package/dist/cli/chunks/{chunk-UE2J6MA5.js → chunk-MD43XRX5.js} +1 -1
  122. package/dist/cli/chunks/{chunk-2CKERSMB.js → chunk-MI5MFHRA.js} +2 -2
  123. package/dist/cli/chunks/{chunk-T66PPF4D.js → chunk-MO55CVMT.js} +32 -32
  124. package/dist/cli/chunks/{chunk-C4KLXFJP.js → chunk-N7HL5PHH.js} +1 -1
  125. package/dist/cli/chunks/chunk-NAEWCFQT.js +14 -0
  126. package/dist/cli/chunks/{chunk-U62OUXBF.js → chunk-NDJ7P2EP.js} +1 -1
  127. package/dist/cli/chunks/{chunk-M4WMSCAE.js → chunk-NO3IV5Q5.js} +1 -1
  128. package/dist/cli/chunks/{chunk-27HE2BHC.js → chunk-NQXXI77K.js} +2 -2
  129. package/dist/cli/chunks/{chunk-NQS3BWS6.js → chunk-NVEWF4JV.js} +1 -1
  130. package/dist/cli/chunks/{chunk-EBTNMQSS.js → chunk-NZU4ACBZ.js} +2 -2
  131. package/dist/cli/chunks/chunk-O5W3FIO6.js +63 -0
  132. package/dist/cli/chunks/{chunk-BFQTLF5X.js → chunk-OAEE6JWQ.js} +2 -2
  133. package/dist/cli/chunks/{chunk-PS6UMZVK.js → chunk-OCV2XEWQ.js} +2 -2
  134. package/dist/cli/chunks/{chunk-BU4UQR36.js → chunk-P3EYRILV.js} +2 -2
  135. package/dist/cli/chunks/{chunk-LHMQIZ6B.js → chunk-PEQDY4BO.js} +2 -2
  136. package/dist/cli/chunks/{chunk-PYPS65P7.js → chunk-PF7RBAYL.js} +2 -2
  137. package/dist/cli/chunks/{chunk-UXIY4IAI.js → chunk-PHT5N7SC.js} +2 -2
  138. package/dist/cli/chunks/{chunk-GV2QE5TO.js → chunk-PINSJCM3.js} +1 -1
  139. package/dist/cli/chunks/{chunk-4X3SWKBA.js → chunk-PPUZWYUG.js} +2 -2
  140. package/dist/cli/chunks/{chunk-L32JNNKL.js → chunk-QPEOLAAS.js} +1 -1
  141. package/dist/cli/chunks/{chunk-UUBIQR6A.js → chunk-QQWBWEJS.js} +18 -18
  142. package/dist/cli/chunks/{chunk-VCXI4XC4.js → chunk-QVDCVD5D.js} +2 -2
  143. package/dist/cli/chunks/{chunk-JW74KRBC.js → chunk-RJIEG3NA.js} +2 -2
  144. package/dist/cli/chunks/{chunk-C4RTAVC6.js → chunk-RV74I3YO.js} +2 -2
  145. package/dist/cli/chunks/{chunk-5G4UFTV4.js → chunk-S75SOOZL.js} +2 -2
  146. package/dist/cli/chunks/{chunk-MV55NXTD.js → chunk-SASBO5Y5.js} +2 -2
  147. package/dist/cli/chunks/{chunk-UORB2QDU.js → chunk-SDLWKRVL.js} +2 -2
  148. package/dist/cli/chunks/{chunk-Y2OX6KGN.js → chunk-SHKOCGNK.js} +2 -2
  149. package/dist/cli/chunks/{chunk-6KCSKGVY.js → chunk-SI6DPU5D.js} +1 -1
  150. package/dist/cli/chunks/{chunk-LYJHUNBK.js → chunk-SJ6Y4725.js} +2 -2
  151. package/dist/cli/chunks/{chunk-7ACCBHRB.js → chunk-SR52XP5F.js} +1 -1
  152. package/dist/cli/chunks/{chunk-C5CXL3JP.js → chunk-SSUAAX3F.js} +2 -2
  153. package/dist/cli/chunks/{chunk-BBRROA3Z.js → chunk-SSYAQZXA.js} +2 -2
  154. package/dist/cli/chunks/{chunk-DUKE27HC.js → chunk-SUDMM5SO.js} +2 -2
  155. package/dist/cli/chunks/{chunk-H5DER3JY.js → chunk-TIUKLYAI.js} +1 -1
  156. package/dist/cli/chunks/{chunk-5C62XMJR.js → chunk-TVGI32MB.js} +33 -33
  157. package/dist/cli/chunks/{chunk-MPFPWJTH.js → chunk-U2A7NHZA.js} +2 -2
  158. package/dist/cli/chunks/{chunk-TX2CHQD7.js → chunk-UE5ZOZR2.js} +2 -2
  159. package/dist/cli/chunks/{chunk-OLZH5LRT.js → chunk-UHEOGZLX.js} +11 -11
  160. package/dist/cli/chunks/chunk-UNGBRZDK.js +12 -0
  161. package/dist/cli/chunks/{chunk-XWIAZG3C.js → chunk-V5NHZV7S.js} +2 -2
  162. package/dist/cli/chunks/{chunk-AP2W7Z3A.js → chunk-VJCIEHEF.js} +1 -1
  163. package/dist/cli/chunks/{chunk-K3XBQC3R.js → chunk-VMDFFTCK.js} +1 -1
  164. package/dist/cli/chunks/chunk-VSIKHWZ4.js +29 -0
  165. package/dist/cli/chunks/{chunk-LB2LGEDP.js → chunk-VWPM27GU.js} +2 -2
  166. package/dist/cli/chunks/{chunk-HTZSRMHW.js → chunk-VXFLJNCA.js} +2 -2
  167. package/dist/cli/chunks/{chunk-73PBAWAF.js → chunk-W5HQUIML.js} +2 -2
  168. package/dist/cli/chunks/{chunk-DEKR3CTS.js → chunk-WP4RETKG.js} +2 -2
  169. package/dist/cli/chunks/{chunk-ZWBGYJ7K.js → chunk-XIIQ5QTT.js} +2 -2
  170. package/dist/cli/chunks/{chunk-TDQWTSBS.js → chunk-XIQW7EFL.js} +2 -2
  171. package/dist/cli/chunks/{chunk-AKZO6GGG.js → chunk-XWUWX7BV.js} +4 -4
  172. package/dist/cli/chunks/{chunk-LNX74WHQ.js → chunk-Y4PFUMOU.js} +1 -1
  173. package/dist/cli/chunks/chunk-YAPLJR7K.js +2 -0
  174. package/dist/cli/chunks/{chunk-3CYNZFKH.js → chunk-YLMNVLDK.js} +1 -1
  175. package/dist/cli/chunks/{chunk-XG4F4XH4.js → chunk-YNMJEDN5.js} +2 -2
  176. package/dist/cli/chunks/{chunk-RDMRY7CT.js → chunk-YPBSUGMI.js} +1 -1
  177. package/dist/cli/chunks/{chunk-OBDONJQM.js → chunk-YRAX7SFJ.js} +2 -2
  178. package/dist/cli/chunks/{chunk-7BLZHFKD.js → chunk-YTHTQPWR.js} +1 -1
  179. package/dist/cli/chunks/{chunk-IXL5ZHWJ.js → chunk-YU2BDRSD.js} +1 -1
  180. package/dist/cli/chunks/chunk-ZB3LEFYG.js +2 -0
  181. package/dist/cli/chunks/{chunk-T4GE7MPI.js → chunk-ZFL436FN.js} +2 -2
  182. package/dist/cli/chunks/{chunk-CBK5CT6T.js → chunk-ZJH5MU2I.js} +2 -2
  183. package/dist/cli/chunks/{chunk-LTQVUAPH.js → chunk-ZQ2XW3IP.js} +2 -2
  184. package/dist/cli/chunks/chunk-ZR2TKVXQ.js +14 -0
  185. package/dist/cli/chunks/{ci-UCUJOSBW.js → ci-MFUR4CWV.js} +2 -2
  186. package/dist/cli/chunks/{ci-config-2XILD3XG.js → ci-config-PNDLQ6XV.js} +2 -2
  187. package/dist/cli/chunks/{ci-output-BL6KWOHW.js → ci-output-PFZ4M7NC.js} +2 -2
  188. package/dist/cli/chunks/{circuit-breaker-5XLIOXE5.js → circuit-breaker-5HH6NLZN.js} +2 -2
  189. package/dist/cli/chunks/{claude-flow-setup-4IMP6ACS.js → claude-flow-setup-QCKYLGLC.js} +2 -2
  190. package/dist/cli/chunks/client-MHQRTZM4.js +2 -0
  191. package/dist/cli/chunks/{cline-installer-RYLHCDK7.js → cline-installer-EASVPFXR.js} +2 -2
  192. package/dist/cli/chunks/{code-WY3GJXHX.js → code-UJXDVYRK.js} +4 -3
  193. package/dist/cli/chunks/{code-index-extractor-Y4MZBZCW.js → code-index-extractor-BZJ3UDP4.js} +2 -2
  194. package/dist/cli/chunks/{codex-installer-SCJ3T3DX.js → codex-installer-XSQZUVOZ.js} +2 -2
  195. package/dist/cli/chunks/{completions-CN2DXQFU.js → completions-OWOOJFI2.js} +2 -2
  196. package/dist/cli/chunks/{complexity-analyzer-7MDPPIBH.js → complexity-analyzer-KP5TOHDT.js} +2 -2
  197. package/dist/cli/chunks/{continuedev-installer-GCEJRK34.js → continuedev-installer-IFKQXLHM.js} +2 -2
  198. package/dist/cli/chunks/{copilot-installer-BHPDSELY.js → copilot-installer-IGJ6KGQY.js} +2 -2
  199. package/dist/cli/chunks/core-handlers-UAK3LLJE.js +2 -0
  200. package/dist/cli/chunks/{cost-tracker-VO5MFWR6.js → cost-tracker-MMDDNKZB.js} +2 -2
  201. package/dist/cli/chunks/{coverage-LYFQYNH6.js → coverage-LUH2B7NT.js} +3 -3
  202. package/dist/cli/chunks/cross-domain-router-WTRZQPNQ.js +2 -0
  203. package/dist/cli/chunks/{cursor-installer-KP4HA7TV.js → cursor-installer-4YLM5GWM.js} +2 -2
  204. package/dist/cli/chunks/daemon-CAVZ7OFV.js +18 -0
  205. package/dist/cli/chunks/{daemon-7RC7TS57.js → daemon-MZKVM4CJ.js} +3 -3
  206. package/dist/cli/chunks/{dag-attention-scheduler-NKA44RSR.js → dag-attention-scheduler-X4CYW665.js} +2 -2
  207. package/dist/cli/chunks/{detect-CMYAJWYF.js → detect-7BM2XINO.js} +2 -2
  208. package/dist/cli/chunks/{dist-node-EN3PYEGW.js → dist-node-Y5APLEYB.js} +2 -2
  209. package/dist/cli/chunks/{domain-handler-EXSZCX7A.js → domain-handler-X3ZRJNAH.js} +2 -2
  210. package/dist/cli/chunks/{domain-plugins-HCQFSNL7.js → domain-plugins-2UW5KQJB.js} +2 -2
  211. package/dist/cli/chunks/{domain-transfer-3LGSNTPO.js → domain-transfer-35W4CIBV.js} +2 -2
  212. package/dist/cli/chunks/dream-EJY24JN6.js +2 -0
  213. package/dist/cli/chunks/embed-and-insert-pattern-COG4C7ZI.js +3 -0
  214. package/dist/cli/chunks/embedding-space-SBM2MZD2.js +2 -0
  215. package/dist/cli/chunks/{eval-OQELIWJK.js → eval-4QA2SROK.js} +2 -2
  216. package/dist/cli/chunks/experience-capture-middleware-Z6BF6KYM.js +40 -0
  217. package/dist/cli/chunks/{fast-paths-UV4NDEWM.js → fast-paths-FIORX6GN.js} +2 -2
  218. package/dist/cli/chunks/{feature-flags-CKTYX67J.js → feature-flags-6LYI2T4G.js} +2 -2
  219. package/dist/cli/chunks/{feature-flags-H7H33B6C.js → feature-flags-ZOO7LMIC.js} +2 -2
  220. package/dist/cli/chunks/file-discovery-UZSFSS4V.js +2 -0
  221. package/dist/cli/chunks/{fleet-ZJBCAKRG.js → fleet-7WF53H4F.js} +3 -3
  222. package/dist/cli/chunks/{gnn-wrapper-RUE2QZRG.js → gnn-wrapper-KJ6B7BRM.js} +2 -2
  223. package/dist/cli/chunks/{heartbeat-handler-XRV327M7.js → heartbeat-handler-DEKKMOVW.js} +4 -4
  224. package/dist/cli/chunks/heartbeat-scheduler-NVR356I7.js +2 -0
  225. package/dist/cli/chunks/hnsw-adapter-LFMPLUJU.js +2 -0
  226. package/dist/cli/chunks/hnsw-index-POCPMVJH.js +2 -0
  227. package/dist/cli/chunks/{hnsw-legacy-bridge-UJID6ZZ4.js → hnsw-legacy-bridge-L27WS27N.js} +2 -2
  228. package/dist/cli/chunks/{hnswlib-node-WS43R4AX.js → hnswlib-node-4YOQC6L4.js} +2 -2
  229. package/dist/cli/chunks/{hooks-YZNJKXAJ.js → hooks-TAOKV4EJ.js} +23 -22
  230. package/dist/cli/chunks/hybrid-backend-4STAO7CV.js +2 -0
  231. package/dist/cli/chunks/{hypergraph-engine-XQJSIMTS.js → hypergraph-engine-BODRJLHL.js} +2 -2
  232. package/dist/cli/chunks/{hypergraph-handler-ZD2NYXMR.js → hypergraph-handler-RKMYJNTU.js} +3 -3
  233. package/dist/cli/chunks/impact-analyzer-3VIIISBQ.js +2 -0
  234. package/dist/cli/chunks/{init-guard-DSRUAVRT.js → init-guard-MXHSLSB2.js} +2 -2
  235. package/dist/cli/chunks/{init-handler-RJU5QMAP.js → init-handler-HUE57IFW.js} +6 -6
  236. package/dist/cli/chunks/init-wizard-PL6QN6RQ.js +2 -0
  237. package/dist/cli/chunks/kernel-CCDWT7KS.js +2 -0
  238. package/dist/cli/chunks/{kilocode-installer-BCPOCVMC.js → kilocode-installer-S333IKYQ.js} +2 -2
  239. package/dist/cli/chunks/{kiro-installer-GFCWCB2S.js → kiro-installer-WM5DLQWC.js} +2 -2
  240. package/dist/cli/chunks/knowledge-graph-KFOMEN3H.js +2 -0
  241. package/dist/cli/chunks/{learning-FZTD72CF.js → learning-LNHMQLH5.js} +3 -3
  242. package/dist/cli/chunks/{llm-router-GJVKGRJL.js → llm-router-EWFXYZZR.js} +4 -4
  243. package/dist/cli/chunks/llm-router-service-7NBE2EX6.js +2 -0
  244. package/dist/cli/chunks/{load-YKTPOYBE.js → load-FGYGWVDK.js} +2 -2
  245. package/dist/cli/chunks/load-test-UNZUWY3F.js +2 -0
  246. package/dist/cli/chunks/{mcp-LT6R2IKS.js → mcp-2FHNAAOM.js} +2 -2
  247. package/dist/cli/chunks/{memory-4HKKOLRY.js → memory-DZMQ73AB.js} +5 -5
  248. package/dist/cli/chunks/memory-backend-DFGKWA2Q.js +2 -0
  249. package/dist/cli/chunks/memory-handlers-MP426XRJ.js +2 -0
  250. package/dist/cli/chunks/{multi-model-executor-2YPM2WTK.js → multi-model-executor-6F2UAEUW.js} +2 -2
  251. package/dist/cli/chunks/{opencode-installer-WBAJMH5K.js → opencode-installer-XY3BGOTZ.js} +2 -2
  252. package/dist/cli/chunks/{orchestrator-5W5WVMVJ.js → orchestrator-B4CNKUOS.js} +5 -5
  253. package/dist/cli/chunks/pattern-null-store-SSVF5TE5.js +2 -0
  254. package/dist/cli/chunks/{pattern-usage-recorder-GXRMNPAZ.js → pattern-usage-recorder-R4GUFNMD.js} +2 -2
  255. package/dist/cli/chunks/{pipeline-2NA4DRDA.js → pipeline-FG5RKVRO.js} +2 -2
  256. package/dist/cli/chunks/{platform-BGERNQ5V.js → platform-3BT4KEVJ.js} +2 -2
  257. package/dist/cli/chunks/{plugin-L4EPVENR.js → plugin-WI4RIN7O.js} +2 -2
  258. package/dist/cli/chunks/{prime-radiant-advanced-wasm-RTQRTPTM.js → prime-radiant-advanced-wasm-7ECDNQFS.js} +2 -2
  259. package/dist/cli/chunks/project-root-BEANNYWU.js +2 -0
  260. package/dist/cli/chunks/protocol-executor-FQVIHXZ7.js +2 -0
  261. package/dist/cli/chunks/{protocol-handler-SYQXM6JK.js → protocol-handler-WNODKPGW.js} +2 -2
  262. package/dist/cli/chunks/{prove-5O7GPJCU.js → prove-5RHAEPYZ.js} +2 -2
  263. package/dist/cli/chunks/qe-reasoning-bank-5TFYSE24.js +2 -0
  264. package/dist/cli/chunks/{quality-KIIDHGNF.js → quality-WPHR7BGQ.js} +2 -2
  265. package/dist/cli/chunks/{quality-gate-H65VECD3.js → quality-gate-4RKTEZMX.js} +3 -3
  266. package/dist/cli/chunks/queen-coordinator-Y2OUL7IN.js +2 -0
  267. package/dist/cli/chunks/real-embeddings-OXLYU7JW.js +2 -0
  268. package/dist/cli/chunks/{ref-validation-CSBJOMZM.js → ref-validation-TPAWHOHH.js} +2 -2
  269. package/dist/cli/chunks/{roocode-installer-G7OVYXEN.js → roocode-installer-7AVHFNDI.js} +2 -2
  270. package/dist/cli/chunks/router-EP34O3KB.js +2 -0
  271. package/dist/cli/chunks/routing-feedback-FJCRKXNG.js +2 -0
  272. package/dist/cli/chunks/{routing-handler-ZNZPPI5Y.js → routing-handler-YKEDVJSH.js} +2 -2
  273. package/dist/cli/chunks/{ruvector-commands-C6IG3OY3.js → ruvector-commands-JUAMM354.js} +2 -2
  274. package/dist/cli/chunks/rvf-dual-writer-ILITJSFG.js +2 -0
  275. package/dist/cli/chunks/rvf-migration-adapter-XF6W4C2N.js +2 -0
  276. package/dist/cli/chunks/rvf-migration-coordinator-CMKG56AR.js +2 -0
  277. package/dist/cli/chunks/rvf-native-adapter-7YFW6S4Y.js +2 -0
  278. package/dist/cli/chunks/{rvf-store-integrity-3G6LFLT3.js → rvf-store-integrity-VJDUIRTX.js} +2 -2
  279. package/dist/cli/chunks/safe-db-TCAU4FUT.js +2 -0
  280. package/dist/cli/chunks/schedule-NB5KV435.js +2 -0
  281. package/dist/cli/chunks/scheduler-JKXGKVK6.js +2 -0
  282. package/dist/cli/chunks/{security-A3IMVLFM.js → security-ORDN3RD2.js} +3 -3
  283. package/dist/cli/chunks/{shared-rvf-adapter-VHWQ6US5.js → shared-rvf-adapter-CF4BCIO7.js} +2 -2
  284. package/dist/cli/chunks/{shared-rvf-dual-writer-JB3QS7IG.js → shared-rvf-dual-writer-C32UBR6D.js} +2 -2
  285. package/dist/cli/chunks/sqlite-persistence-IXCNZRTW.js +2 -0
  286. package/dist/cli/chunks/{standalone-memory-DDNXCSBD.js → standalone-memory-OXRJYZXN.js} +2 -2
  287. package/dist/cli/chunks/{status-handler-2HK7XPEK.js → status-handler-BCX5D4HY.js} +2 -2
  288. package/dist/cli/chunks/{structural-health-DSJVLEPV.js → structural-health-LFG7RUU6.js} +2 -2
  289. package/dist/cli/chunks/sync-OSF7C2NL.js +2 -0
  290. package/dist/cli/chunks/{sync-NTUR53PI.js → sync-YJEE2K2L.js} +2 -2
  291. package/dist/cli/chunks/task-handler-6LXKPTXJ.js +64 -0
  292. package/dist/cli/chunks/{task-handlers-VJR6EHRZ.js → task-handlers-CILP36I7.js} +4 -4
  293. package/dist/cli/chunks/{test-O6FK3FVF.js → test-SD457QJ6.js} +4 -4
  294. package/dist/cli/chunks/test-runner-process-VKD65QQU.js +2 -0
  295. package/dist/cli/chunks/{test-scheduling-Q6QEEOS6.js → test-scheduling-ISI2O4Q5.js} +3 -3
  296. package/dist/cli/chunks/token-bootstrap-VUELSBOS.js +2 -0
  297. package/dist/cli/chunks/{token-usage-YEEFWSSI.js → token-usage-XOC5KG7S.js} +2 -2
  298. package/dist/cli/chunks/{transformers-BZCHJJJT.js → transformers-LSLQAARK.js} +2 -2
  299. package/dist/cli/chunks/tree-sitter-wasm-parser-YAIPHRIL.js +2 -0
  300. package/dist/cli/chunks/{types-4AOKZYOX.js → types-5BLCGLCR.js} +2 -2
  301. package/dist/cli/chunks/unified-memory-GI76TXFV.js +2 -0
  302. package/dist/cli/chunks/unified-memory-hnsw-GXJ5BTZO.js +2 -0
  303. package/dist/cli/chunks/unified-persistence-OP7FDQPD.js +2 -0
  304. package/dist/cli/chunks/{upgrade-2MWW6BT2.js → upgrade-RQJYLK3J.js} +2 -2
  305. package/dist/cli/chunks/{validate-PAEV3GT5.js → validate-QBHWXXCK.js} +2 -2
  306. package/dist/cli/chunks/{validate-swarm-ZIXACK5K.js → validate-swarm-IKXBKFB5.js} +2 -2
  307. package/dist/cli/chunks/visual-security-GZ2MOKWB.js +2 -0
  308. package/dist/cli/chunks/{web-tree-sitter-VLTXZFAB.js → web-tree-sitter-ZF6FIE5R.js} +2 -2
  309. package/dist/cli/chunks/{windsurf-installer-VELMLOZF.js → windsurf-installer-HQGDZT5D.js} +2 -2
  310. package/dist/cli/chunks/witness-chain-DCHCAMSQ.js +2 -0
  311. package/dist/cli/chunks/witness-chain-P3XXXA62.js +2 -0
  312. package/dist/cli/chunks/witness-chain-repair-PUX2NFDL.js +2 -0
  313. package/dist/cli/chunks/{witness-chain-verifier-MIDWD4JS.js → witness-chain-verifier-PX2OQ6XT.js} +2 -2
  314. package/dist/cli/chunks/{witness-key-manager-OSVCWOB2.js → witness-key-manager-RXYQNFJB.js} +2 -2
  315. package/dist/cli/chunks/{workflow-MK7A7QCX.js → workflow-FBKCA4H6.js} +4 -4
  316. package/dist/cli/chunks/workflow-orchestrator-P2APAJAA.js +2 -0
  317. package/dist/cli/chunks/wrappers-TWSKBTWD.js +2 -0
  318. package/dist/cli/commands/code.js +4 -0
  319. package/dist/cli/commands/hooks-handlers/hooks-dream-learning.js +10 -2
  320. package/dist/cli/handlers/task-handler.d.ts +5 -0
  321. package/dist/cli/handlers/task-handler.js +21 -1
  322. package/dist/cli/utils/task-result.d.ts +11 -0
  323. package/dist/cli/utils/task-result.js +39 -0
  324. package/dist/coordination/handlers/test-execution-handlers.js +92 -58
  325. package/dist/coordination/mincut/mincut-persistence.js +29 -25
  326. package/dist/domains/code-intelligence/coordinator.d.ts +4 -0
  327. package/dist/domains/code-intelligence/coordinator.js +46 -13
  328. package/dist/domains/code-intelligence/interfaces.d.ts +10 -1
  329. package/dist/domains/code-intelligence/services/semantic-analyzer.d.ts +32 -7
  330. package/dist/domains/code-intelligence/services/semantic-analyzer.js +112 -53
  331. package/dist/domains/learning-optimization/services/learning-coordinator.js +1 -1
  332. package/dist/domains/quality-assessment/coordinator.js +2 -1
  333. package/dist/domains/test-execution/coordinator.js +10 -5
  334. package/dist/domains/test-execution/interfaces.d.ts +12 -0
  335. package/dist/domains/test-execution/plugin.js +6 -2
  336. package/dist/domains/test-execution/services/retry-handler.d.ts +2 -0
  337. package/dist/domains/test-execution/services/retry-handler.js +14 -9
  338. package/dist/domains/test-execution/services/test-executor.d.ts +1 -0
  339. package/dist/domains/test-execution/services/test-executor.js +28 -9
  340. package/dist/domains/visual-accessibility/coordinator.d.ts +15 -7
  341. package/dist/domains/visual-accessibility/coordinator.js +15 -7
  342. package/dist/domains/visual-accessibility/interfaces.d.ts +27 -3
  343. package/dist/domains/visual-accessibility/services/accessibility-contrast.d.ts +39 -0
  344. package/dist/domains/visual-accessibility/services/accessibility-contrast.js +93 -0
  345. package/dist/domains/visual-accessibility/services/accessibility-tester-browser.d.ts +18 -3
  346. package/dist/domains/visual-accessibility/services/accessibility-tester-browser.js +50 -40
  347. package/dist/domains/visual-accessibility/services/accessibility-tester-checks.d.ts +27 -0
  348. package/dist/domains/visual-accessibility/services/accessibility-tester-checks.js +137 -0
  349. package/dist/domains/visual-accessibility/services/accessibility-tester.d.ts +5 -0
  350. package/dist/domains/visual-accessibility/services/accessibility-tester.js +43 -24
  351. package/dist/domains/visual-accessibility/services/browser-swarm-coordinator.d.ts +2 -3
  352. package/dist/domains/visual-accessibility/services/browser-swarm-coordinator.js +8 -14
  353. package/dist/feedback/coverage-learner.js +13 -9
  354. package/dist/feedback/test-outcome-tracker.js +13 -9
  355. package/dist/governance/witness-chain.d.ts +5 -0
  356. package/dist/governance/witness-chain.js +22 -6
  357. package/dist/integrations/agentic-flow/reasoning-bank/experience-replay.d.ts +22 -0
  358. package/dist/integrations/agentic-flow/reasoning-bank/experience-replay.js +115 -45
  359. package/dist/integrations/agentic-flow/reasoning-bank/pattern-evolution.d.ts +6 -0
  360. package/dist/integrations/agentic-flow/reasoning-bank/pattern-evolution.js +51 -33
  361. package/dist/integrations/agentic-flow/reasoning-bank/trajectory-tracker.js +17 -9
  362. package/dist/integrations/embeddings/cache/EmbeddingCache.d.ts +8 -0
  363. package/dist/integrations/embeddings/cache/EmbeddingCache.js +24 -10
  364. package/dist/integrations/ruvector/delta-tracker.d.ts +11 -0
  365. package/dist/integrations/ruvector/delta-tracker.js +16 -0
  366. package/dist/integrations/ruvector/sona-persistence.d.ts +10 -0
  367. package/dist/integrations/ruvector/sona-persistence.js +49 -24
  368. package/dist/kernel/unified-memory.d.ts +24 -0
  369. package/dist/kernel/unified-memory.js +63 -8
  370. package/dist/learning/aqe-learning-engine.js +1 -1
  371. package/dist/learning/embed-and-insert-pattern.js +4 -2
  372. package/dist/learning/embedder-endpoint-client.d.ts +31 -0
  373. package/dist/learning/embedder-endpoint-client.js +103 -10
  374. package/dist/learning/embedding-space.d.ts +12 -0
  375. package/dist/learning/embedding-space.js +17 -0
  376. package/dist/learning/experience-capture-middleware.js +25 -13
  377. package/dist/learning/experience-capture.js +1 -1
  378. package/dist/learning/experience-consolidation.d.ts +18 -0
  379. package/dist/learning/experience-consolidation.js +55 -8
  380. package/dist/learning/experience-space-verification.d.ts +71 -0
  381. package/dist/learning/experience-space-verification.js +147 -0
  382. package/dist/learning/pattern-lifecycle.d.ts +40 -4
  383. package/dist/learning/pattern-lifecycle.js +153 -76
  384. package/dist/learning/pattern-null-store.d.ts +5 -0
  385. package/dist/learning/pattern-null-store.js +8 -0
  386. package/dist/learning/pattern-promotion.js +6 -3
  387. package/dist/learning/pattern-store.d.ts +6 -0
  388. package/dist/learning/pattern-store.js +19 -6
  389. package/dist/learning/qe-reasoning-bank.js +2 -2
  390. package/dist/learning/real-embeddings.js +3 -1
  391. package/dist/learning/real-qe-reasoning-bank.d.ts +5 -0
  392. package/dist/learning/real-qe-reasoning-bank.js +77 -47
  393. package/dist/learning/rvf-pattern-store.js +6 -2
  394. package/dist/learning/sqlite-persistence.d.ts +6 -0
  395. package/dist/learning/sqlite-persistence.js +10 -0
  396. package/dist/mcp/bundle.js +641 -570
  397. package/dist/mcp/entry.js +4 -0
  398. package/dist/mcp/handlers/domain-handler-configs.js +2 -0
  399. package/dist/mcp/handlers/trajectory-judge.js +1 -1
  400. package/dist/mcp/protocol-server.js +1 -0
  401. package/dist/mcp/tools/visual-accessibility/index.js +8 -2
  402. package/dist/mcp/types.d.ts +6 -0
  403. package/dist/optimization/session-cache.d.ts +17 -1
  404. package/dist/optimization/session-cache.js +40 -36
  405. package/dist/planning/goap-planner.d.ts +6 -0
  406. package/dist/planning/goap-planner.js +35 -19
  407. package/dist/planning/plan-executor.js +24 -15
  408. package/dist/routing/co-execution-repository.js +12 -9
  409. package/dist/routing/routing-feedback.d.ts +8 -0
  410. package/dist/routing/routing-feedback.js +46 -24
  411. package/dist/routing/routing-outcomes-migration.js +7 -2
  412. package/dist/shared/llm/spend-ledger.d.ts +9 -0
  413. package/dist/shared/llm/spend-ledger.js +64 -39
  414. package/dist/shared/sqlite-lock-wait.d.ts +27 -0
  415. package/dist/shared/sqlite-lock-wait.js +37 -0
  416. package/dist/shared/sqlite-write-queue.d.ts +28 -0
  417. package/dist/shared/sqlite-write-queue.js +38 -0
  418. package/dist/shared/test-runner-project.d.ts +69 -0
  419. package/dist/shared/test-runner-project.js +186 -0
  420. package/dist/skills/security-visual-testing/index.d.ts +3 -1
  421. package/dist/skills/security-visual-testing/index.js +49 -35
  422. package/dist/skills/security-visual-testing/types.d.ts +19 -3
  423. package/dist/workers/workers/heartbeat-scheduler.js +5 -5
  424. package/dist/workers/workers/learning-consolidation.js +8 -7
  425. package/package.json +1 -1
  426. package/dist/cli/chunks/adapter-QU6INSKP.js +0 -2
  427. package/dist/cli/chunks/aqe-learning-engine-PAJPENJD.js +0 -2
  428. package/dist/cli/chunks/base-OTGSN6IC.js +0 -2
  429. package/dist/cli/chunks/browser-workflow-WLZGR6SB.js +0 -2
  430. package/dist/cli/chunks/chunk-2LUTPMBO.js +0 -21
  431. package/dist/cli/chunks/chunk-3HVFIITW.js +0 -2
  432. package/dist/cli/chunks/chunk-5KA5TVPR.js +0 -6
  433. package/dist/cli/chunks/chunk-6NBRMD25.js +0 -13
  434. package/dist/cli/chunks/chunk-7O45RQHF.js +0 -153
  435. package/dist/cli/chunks/chunk-EMSZVUYA.js +0 -29
  436. package/dist/cli/chunks/chunk-G6RDCCFV.js +0 -4
  437. package/dist/cli/chunks/chunk-HH4ED4F7.js +0 -744
  438. package/dist/cli/chunks/chunk-Q6I4SIUU.js +0 -65
  439. package/dist/cli/chunks/chunk-QGBGSQ2E.js +0 -14
  440. package/dist/cli/chunks/chunk-QRKTBSZT.js +0 -27
  441. package/dist/cli/chunks/chunk-SHRI7TKJ.js +0 -62
  442. package/dist/cli/chunks/chunk-UGYM4U44.js +0 -2
  443. package/dist/cli/chunks/chunk-VY4U6DPO.js +0 -12
  444. package/dist/cli/chunks/chunk-WNTA4YKE.js +0 -14
  445. package/dist/cli/chunks/chunk-XHLYGXYE.js +0 -2
  446. package/dist/cli/chunks/client-KKRNPX4F.js +0 -2
  447. package/dist/cli/chunks/core-handlers-47MPMED7.js +0 -2
  448. package/dist/cli/chunks/cross-domain-router-U6MBFHEC.js +0 -2
  449. package/dist/cli/chunks/daemon-AXLVPKVO.js +0 -18
  450. package/dist/cli/chunks/dream-76L6EEN7.js +0 -2
  451. package/dist/cli/chunks/embed-and-insert-pattern-B6MNHICW.js +0 -3
  452. package/dist/cli/chunks/experience-capture-middleware-SUFILYPW.js +0 -40
  453. package/dist/cli/chunks/file-discovery-VSFKZ3LJ.js +0 -2
  454. package/dist/cli/chunks/heartbeat-scheduler-NIK3KKEH.js +0 -2
  455. package/dist/cli/chunks/hnsw-adapter-WJG7LUJJ.js +0 -2
  456. package/dist/cli/chunks/hnsw-index-D6PRI5HC.js +0 -2
  457. package/dist/cli/chunks/hybrid-backend-RIUR3I7F.js +0 -2
  458. package/dist/cli/chunks/impact-analyzer-C36YYTJ5.js +0 -2
  459. package/dist/cli/chunks/init-wizard-JCKNGIGT.js +0 -2
  460. package/dist/cli/chunks/kernel-F7ILJTYD.js +0 -2
  461. package/dist/cli/chunks/knowledge-graph-VTXDBHB2.js +0 -2
  462. package/dist/cli/chunks/llm-router-service-TNOWQINA.js +0 -2
  463. package/dist/cli/chunks/load-test-FPVBK2EV.js +0 -2
  464. package/dist/cli/chunks/memory-backend-2QE7O67A.js +0 -2
  465. package/dist/cli/chunks/memory-handlers-X4CMVBXB.js +0 -2
  466. package/dist/cli/chunks/pattern-null-store-UI35ORHW.js +0 -2
  467. package/dist/cli/chunks/project-root-S7WDFTMU.js +0 -2
  468. package/dist/cli/chunks/protocol-executor-OPANXQVB.js +0 -2
  469. package/dist/cli/chunks/qe-reasoning-bank-3OTF4DYQ.js +0 -2
  470. package/dist/cli/chunks/queen-coordinator-WTYH4TAN.js +0 -2
  471. package/dist/cli/chunks/real-embeddings-DYIOLKQ3.js +0 -2
  472. package/dist/cli/chunks/router-DBBW4NC2.js +0 -2
  473. package/dist/cli/chunks/routing-feedback-W35QHCL4.js +0 -2
  474. package/dist/cli/chunks/rvf-dual-writer-X3NSL25Z.js +0 -2
  475. package/dist/cli/chunks/rvf-migration-adapter-TZR7GDOK.js +0 -2
  476. package/dist/cli/chunks/rvf-migration-coordinator-4ATTHGHD.js +0 -2
  477. package/dist/cli/chunks/rvf-native-adapter-HD25ZYV5.js +0 -2
  478. package/dist/cli/chunks/safe-db-ZS2QKANY.js +0 -2
  479. package/dist/cli/chunks/schedule-ZH6VNA32.js +0 -2
  480. package/dist/cli/chunks/scheduler-T6CD74B6.js +0 -2
  481. package/dist/cli/chunks/sqlite-persistence-47WU5EKZ.js +0 -2
  482. package/dist/cli/chunks/sync-3MUV6S5E.js +0 -2
  483. package/dist/cli/chunks/task-handler-74MZN2EO.js +0 -62
  484. package/dist/cli/chunks/test-runner-process-2NPW3UDQ.js +0 -2
  485. package/dist/cli/chunks/token-bootstrap-TTRCECLP.js +0 -2
  486. package/dist/cli/chunks/tree-sitter-wasm-parser-RZAND65G.js +0 -2
  487. package/dist/cli/chunks/unified-memory-FZ5K2C7W.js +0 -2
  488. package/dist/cli/chunks/unified-memory-hnsw-VREWX56M.js +0 -2
  489. package/dist/cli/chunks/unified-persistence-YZGMKX6B.js +0 -2
  490. package/dist/cli/chunks/visual-security-GXGSFBVA.js +0 -2
  491. package/dist/cli/chunks/witness-chain-MRJKVCOW.js +0 -2
  492. package/dist/cli/chunks/witness-chain-WWHJKITG.js +0 -2
  493. package/dist/cli/chunks/witness-chain-repair-5SAXPETG.js +0 -2
  494. package/dist/cli/chunks/workflow-orchestrator-SG7DV72E.js +0 -2
  495. package/dist/cli/chunks/wrappers-5QFMCKXL.js +0 -2
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Agentic QE v3 - Printing a completed task's result (#1228, #1146)
3
+ *
4
+ * `aqe task submit --wait` reported only "Task completed", so a CLI user never
5
+ * saw what the task found, nor that part of it was not measured. These lines
6
+ * show the result: its status / measured / message fields first, then the
7
+ * whole result as JSON (cut after a line limit; --output writes all of it).
8
+ */
9
+ import { toJSON } from './ci-output.js';
10
+ export const MAX_RESULT_LINES = 200;
11
+ /** Top-level fields that say whether, and how much of, the result was measured. */
12
+ const HEADLINE_FIELDS = ['status', 'measured', 'message', 'note', 'notMeasuredReason', 'notMeasured', 'warning', 'error', 'incompleteChecks'];
13
+ export function taskResultLines(result, maxLines = MAX_RESULT_LINES) {
14
+ if (result === undefined || result === null)
15
+ return ['Result: none (the task returned no result)'];
16
+ const lines = [];
17
+ if (typeof result === 'object' && !Array.isArray(result)) {
18
+ const record = result;
19
+ for (const field of HEADLINE_FIELDS) {
20
+ if (record[field] !== undefined)
21
+ lines.push(`${field}: ${headline(record[field])}`);
22
+ }
23
+ }
24
+ const json = toJSON(result).split('\n');
25
+ lines.push('Result:');
26
+ lines.push(...json.slice(0, maxLines).map((line) => ` ${line}`));
27
+ if (json.length > maxLines) {
28
+ lines.push(` … ${json.length - maxLines} more line(s); --output <file> writes the full result`);
29
+ }
30
+ return lines;
31
+ }
32
+ function headline(value) {
33
+ if (typeof value === 'string')
34
+ return value;
35
+ if (Array.isArray(value) && value.length === 0)
36
+ return '[]';
37
+ return JSON.stringify(value);
38
+ }
39
+ //# sourceMappingURL=task-result.js.map
@@ -14,6 +14,7 @@ import { jestExactPathPattern, runnerFilePath } from '../../shared/test-runner-a
14
14
  import { testCasesFromRunnerReport } from '../../domains/test-execution/services/runner-test-cases.js';
15
15
  import { runTestRunnerProcess } from '../../shared/test-runner-process.js';
16
16
  import { MAX_PAYLOAD_FILE_BYTES, requirePayloadFiles } from '../../shared/io/payload-path-guard.js';
17
+ import { groupByRunnerProject, requireTestRunTargets } from '../../shared/test-runner-project.js';
17
18
  function escapeRegExp(s) {
18
19
  return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
19
20
  }
@@ -57,6 +58,66 @@ export function rewriteTempPathsInGeneratedTest(testCode, sourceFile, tempPath,
57
58
  const newRef = sourceFile === tempPath ? (originalFilePath || sourceFile) : sourceFile;
58
59
  return { testCode: newCode, sourceFile: newRef };
59
60
  }
61
+ /**
62
+ * Run `testFiles` (paths relative to the process cwd, or absolute) with the
63
+ * runner started in `cwd`.
64
+ */
65
+ async function runProjectTests(testFiles, cwd) {
66
+ // #1074: run the runner asynchronously so the MCP server keeps serving
67
+ // other requests (task_status, task_cancel, ...) during the test run.
68
+ const options = { cwd, timeout: 120000 };
69
+ let runner = 'vitest';
70
+ // Vitest 5 writes the JSON report to a file rather than stdout; an explicit
71
+ // --outputFile gives Vitest 4 and 5 the same contract.
72
+ const report = createVitestJsonReport();
73
+ let execution;
74
+ let output;
75
+ try {
76
+ // #909: absolute paths cannot be read as flags (e.g. a "--watch" entry).
77
+ execution = await runTestRunnerProcess('npx', ['vitest', 'run', ...testFiles.map(file => runnerFilePath(file)), '--reporter=json', ...report.args], options);
78
+ output = execution.error || execution.signal
79
+ ? ''
80
+ : report.read(execution.stdout || '') ?? '';
81
+ }
82
+ finally {
83
+ report.cleanup();
84
+ }
85
+ // Preserve the existing Jest fallback when Vitest cannot produce a report.
86
+ if (!output.includes('{') && execution.status !== 0 && !execution.error && !execution.signal) {
87
+ runner = 'jest';
88
+ execution = await runTestRunnerProcess('npx', ['jest', ...testFiles.map(file => jestExactPathPattern(file)), '--json'], options);
89
+ output = execution.stdout || '';
90
+ }
91
+ const diagnostics = [execution.error?.message, execution.signal && `Terminated by ${execution.signal}`, execution.stderr, output].filter(Boolean).join('\n');
92
+ if (execution.error) {
93
+ return err(new TestRunnerExecutionError(`${runner} could not complete: ${capDiagnostics(diagnostics)}`));
94
+ }
95
+ try {
96
+ const jsonStart = output.indexOf('{');
97
+ if (jsonStart >= 0) {
98
+ const json = JSON.parse(output.slice(jsonStart));
99
+ if (json.testResults) {
100
+ const total = json.numTotalTests || 0;
101
+ const passed = json.numPassedTests || 0;
102
+ const failed = json.numFailedTests || 0;
103
+ const skipped = total - passed - failed;
104
+ const executionError = getTestRunnerExecutionError(runner, testFiles.join(', '), execution.status, { passed, failed, skipped }, diagnostics, json);
105
+ if (executionError)
106
+ return err(executionError);
107
+ // #1110: per-test entries come from the runner report itself, or are left out.
108
+ const testCases = testCasesFromRunnerReport(json, testFiles.join(', '));
109
+ return ok({
110
+ total, passed, failed, skipped,
111
+ ...(testCases && testCases.length === total ? { testCases } : {}),
112
+ });
113
+ }
114
+ }
115
+ }
116
+ catch {
117
+ // A malformed report cannot establish that the requested tests completed.
118
+ }
119
+ return err(new TestRunnerExecutionError(`Could not parse ${runner} results (exit code ${execution.status ?? 'unknown'}):\n${capDiagnostics(diagnostics)}`));
120
+ }
60
121
  export function registerTestExecutionHandlers(ctx) {
61
122
  // Register test generation handler - REAL IMPLEMENTATION
62
123
  ctx.registerHandler('generate-tests', async (task) => {
@@ -198,10 +259,11 @@ export function registerTestExecutionHandlers(ctx) {
198
259
  // #1126: a runner executes what it is given, so only files and
199
260
  // directories (#909 Jest targets) inside the project, run as the real
200
261
  // paths that were checked. A missing file is still reported by the runner.
201
- const confined = await requirePayloadFiles('execute-tests', 'testFiles', requestedFiles, { allowMissing: true, allowDirectory: true });
262
+ // #1247: an explicit projectRoot is confined the same way.
263
+ const confined = await requireTestRunTargets('execute-tests', requestedFiles, payload.projectRoot);
202
264
  if (!confined.success)
203
265
  return confined;
204
- const testFiles = confined.value;
266
+ const { testFiles, projectRoot } = confined.value;
205
267
  // A caller-owned MCP task skips the Queen's plugin dispatch. Run through
206
268
  // that same domain API here: it owns persistence, measured quality evidence
207
269
  // and TestRunStarted/Completed events as well as the runner itself.
@@ -216,68 +278,40 @@ export function registerTestExecutionHandlers(ctx) {
216
278
  workers: payload.parallelism,
217
279
  // The domain owns requested retries; Queen dispatch must not replay it.
218
280
  retryCount: payload.retryCount ?? 0,
281
+ projectRoot,
219
282
  });
220
283
  if (!result.success)
221
284
  return result;
222
285
  return ok({ ...result.value, coverage: result.value.coverage?.line ?? null });
223
286
  }
224
- // #1074: run the runner asynchronously so the MCP server keeps serving
225
- // other requests (task_status, task_cancel, ...) during the test run.
226
- const options = { cwd: process.cwd(), timeout: 120000 };
227
- let runner = 'vitest';
228
- // Vitest 5 writes the JSON report to a file rather than stdout; an explicit
229
- // --outputFile gives Vitest 4 and 5 the same contract.
230
- const report = createVitestJsonReport();
231
- let execution;
232
- let output;
233
- try {
234
- // #909: absolute paths cannot be read as flags (e.g. a "--watch" entry).
235
- execution = await runTestRunnerProcess('npx', ['vitest', 'run', ...testFiles.map(file => runnerFilePath(file, options.cwd)), '--reporter=json', ...report.args], options);
236
- output = execution.error || execution.signal
237
- ? ''
238
- : report.read(execution.stdout || '') ?? '';
239
- }
240
- finally {
241
- report.cleanup();
242
- }
243
- // Preserve the existing Jest fallback when Vitest cannot produce a report.
244
- if (!output.includes('{') && execution.status !== 0 && !execution.error && !execution.signal) {
245
- runner = 'jest';
246
- execution = await runTestRunnerProcess('npx', ['jest', ...testFiles.map(file => jestExactPathPattern(file, options.cwd)), '--json'], options);
247
- output = execution.stdout || '';
248
- }
249
- const diagnostics = [execution.error?.message, execution.signal && `Terminated by ${execution.signal}`, execution.stderr, output].filter(Boolean).join('\n');
250
- if (execution.error) {
251
- return err(new TestRunnerExecutionError(`${runner} could not complete: ${capDiagnostics(diagnostics)}`));
287
+ // #1247: a runner loads the config of the directory it starts in, so
288
+ // each runner project's files run from that project (or projectRoot).
289
+ const groups = projectRoot
290
+ ? [{ cwd: projectRoot, files: testFiles }]
291
+ : groupByRunnerProject(testFiles);
292
+ const totals = { total: 0, passed: 0, failed: 0, skipped: 0 };
293
+ const testCases = [];
294
+ let everyTestCase = true;
295
+ for (const group of groups) {
296
+ const run = await runProjectTests(group.files, group.cwd);
297
+ if (!run.success)
298
+ return run;
299
+ totals.total += run.value.total;
300
+ totals.passed += run.value.passed;
301
+ totals.failed += run.value.failed;
302
+ totals.skipped += run.value.skipped;
303
+ if (run.value.testCases)
304
+ testCases.push(...run.value.testCases);
305
+ else
306
+ everyTestCase = false;
252
307
  }
253
- try {
254
- const jsonStart = output.indexOf('{');
255
- if (jsonStart >= 0) {
256
- const json = JSON.parse(output.slice(jsonStart));
257
- if (json.testResults) {
258
- const total = json.numTotalTests || 0;
259
- const passed = json.numPassedTests || 0;
260
- const failed = json.numFailedTests || 0;
261
- const skipped = total - passed - failed;
262
- const executionError = getTestRunnerExecutionError(runner, testFiles.join(', '), execution.status, { passed, failed, skipped }, diagnostics, json);
263
- if (executionError)
264
- return err(executionError);
265
- // #1027 N5/NB5: this handler runs the tests without --coverage, so it has no
266
- // coverage figure to return (null, never 0%). For test_execute_parallel the
267
- // measured coverage + testsPassing are recorded by TestExecutorService.
268
- // #1110: per-test entries come from the runner report itself, or are left out.
269
- const testCases = testCasesFromRunnerReport(json, testFiles.join(', '));
270
- return ok({
271
- total, passed, failed, skipped, duration: 0, coverage: null, failedTests: [],
272
- ...(testCases && testCases.length === total ? { testCases } : {}),
273
- });
274
- }
275
- }
276
- }
277
- catch {
278
- // A malformed report cannot establish that the requested tests completed.
279
- }
280
- return err(new TestRunnerExecutionError(`Could not parse ${runner} results (exit code ${execution.status ?? 'unknown'}):\n${capDiagnostics(diagnostics)}`));
308
+ // #1027 N5/NB5: this handler runs the tests without --coverage, so it has no
309
+ // coverage figure to return (null, never 0%). For test_execute_parallel the
310
+ // measured coverage + testsPassing are recorded by TestExecutorService.
311
+ return ok({
312
+ ...totals, duration: 0, coverage: null, failedTests: [],
313
+ ...(everyTestCase ? { testCases } : {}),
314
+ });
281
315
  }
282
316
  catch (error) {
283
317
  return err(toError(error));
@@ -49,12 +49,14 @@ export class MinCutPersistence {
49
49
  this.ensureInitialized();
50
50
  const id = uuidv4();
51
51
  const db = this.memory.getDatabase();
52
- db.prepare(`
52
+ // #1274: the queen's snapshot timer and agent events write here, so the
53
+ // writes queue instead of freezing the MCP server on a locked memory.db.
54
+ await this.memory.writeWhenUnlocked(() => db.prepare(`
53
55
  INSERT INTO mincut_snapshots (
54
56
  id, timestamp, vertex_count, edge_count, total_weight,
55
57
  is_connected, component_count, vertices_json, edges_json
56
58
  ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
57
- `).run(id, snapshot.timestamp.toISOString(), snapshot.stats.vertexCount, snapshot.stats.edgeCount, snapshot.stats.totalWeight, snapshot.stats.isConnected ? 1 : 0, snapshot.stats.componentCount, JSON.stringify(snapshot.vertices), JSON.stringify(snapshot.edges));
59
+ `).run(id, snapshot.timestamp.toISOString(), snapshot.stats.vertexCount, snapshot.stats.edgeCount, snapshot.stats.totalWeight, snapshot.stats.isConnected ? 1 : 0, snapshot.stats.componentCount, JSON.stringify(snapshot.vertices), JSON.stringify(snapshot.edges)));
58
60
  // Enforce retention to prevent unbounded snapshot growth (Issue #258)
59
61
  await this.enforceRetention();
60
62
  return id;
@@ -70,20 +72,20 @@ export class MinCutPersistence {
70
72
  if (!countRow || countRow.count <= maxSnapshots)
71
73
  return 0;
72
74
  const deleteCount = countRow.count - maxSnapshots;
73
- db.prepare(`
75
+ await this.memory.writeWhenUnlocked(() => db.prepare(`
74
76
  DELETE FROM mincut_snapshots WHERE id IN (
75
77
  SELECT id FROM mincut_snapshots ORDER BY created_at ASC LIMIT ?
76
78
  )
77
- `).run(deleteCount);
79
+ `).run(deleteCount));
78
80
  // Also trim history
79
81
  const historyCount = db.prepare('SELECT COUNT(*) as count FROM mincut_history').get();
80
82
  if (historyCount.count > 500) {
81
83
  const historyDelete = historyCount.count - 500;
82
- db.prepare(`
84
+ await this.memory.writeWhenUnlocked(() => db.prepare(`
83
85
  DELETE FROM mincut_history WHERE id IN (
84
86
  SELECT id FROM mincut_history ORDER BY created_at ASC LIMIT ?
85
87
  )
86
- `).run(historyDelete);
88
+ `).run(historyDelete));
87
89
  }
88
90
  return deleteCount;
89
91
  }
@@ -121,11 +123,11 @@ export class MinCutPersistence {
121
123
  async recordHistory(entry) {
122
124
  this.ensureInitialized();
123
125
  const db = this.memory.getDatabase();
124
- const result = db.prepare(`
126
+ const result = await this.memory.writeWhenUnlocked(() => db.prepare(`
125
127
  INSERT INTO mincut_history (
126
128
  mincut_value, vertex_count, edge_count, algorithm, duration_ms, snapshot_id
127
129
  ) VALUES (?, ?, ?, ?, ?, ?)
128
- `).run(entry.minCutValue, entry.vertexCount, entry.edgeCount, entry.algorithm ?? 'weighted-degree', entry.durationMs ?? null, entry.snapshotId ?? null);
130
+ `).run(entry.minCutValue, entry.vertexCount, entry.edgeCount, entry.algorithm ?? 'weighted-degree', entry.durationMs ?? null, entry.snapshotId ?? null));
129
131
  return Number(result.lastInsertRowid);
130
132
  }
131
133
  /**
@@ -225,13 +227,15 @@ export class MinCutPersistence {
225
227
  ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
226
228
  `);
227
229
  const insertMany = db.transaction((vertices) => {
230
+ ids.length = 0; // a retried attempt starts over (#1283)
228
231
  for (const weak of vertices) {
229
232
  const id = uuidv4();
230
233
  insert.run(id, weak.vertexId, weak.weightedDegree, weak.riskScore, weak.reason, weak.vertex.domain ?? null, weak.vertex.type, JSON.stringify(weak.suggestions), snapshotId ?? null);
231
234
  ids.push(id);
232
235
  }
233
236
  });
234
- insertMany(weakVertices);
237
+ // #1283: queued, so a locked memory.db does not freeze the MCP server.
238
+ await this.memory.writeWhenUnlocked(() => insertMany(weakVertices));
235
239
  return ids;
236
240
  }
237
241
  /**
@@ -260,11 +264,11 @@ export class MinCutPersistence {
260
264
  async resolveWeakVertex(id) {
261
265
  this.ensureInitialized();
262
266
  const db = this.memory.getDatabase();
263
- const result = db.prepare(`
267
+ const result = await this.memory.writeWhenUnlocked(() => db.prepare(`
264
268
  UPDATE mincut_weak_vertices
265
269
  SET resolved_at = datetime('now')
266
270
  WHERE id = ? AND resolved_at IS NULL
267
- `).run(id);
271
+ `).run(id));
268
272
  return result.changes > 0;
269
273
  }
270
274
  // ==========================================================================
@@ -276,12 +280,12 @@ export class MinCutPersistence {
276
280
  async saveAlert(alert) {
277
281
  this.ensureInitialized();
278
282
  const db = this.memory.getDatabase();
279
- db.prepare(`
283
+ await this.memory.writeWhenUnlocked(() => db.prepare(`
280
284
  INSERT INTO mincut_alerts (
281
285
  id, severity, message, mincut_value, threshold,
282
286
  affected_vertices_json, remediations_json, acknowledged, timestamp
283
287
  ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
284
- `).run(alert.id, alert.severity, alert.message, alert.minCutValue, alert.threshold, JSON.stringify(alert.affectedVertices), JSON.stringify(alert.remediations), alert.acknowledged ? 1 : 0, alert.timestamp.toISOString());
288
+ `).run(alert.id, alert.severity, alert.message, alert.minCutValue, alert.threshold, JSON.stringify(alert.affectedVertices), JSON.stringify(alert.remediations), alert.acknowledged ? 1 : 0, alert.timestamp.toISOString()));
285
289
  return alert.id;
286
290
  }
287
291
  /**
@@ -303,13 +307,13 @@ export class MinCutPersistence {
303
307
  async acknowledgeAlert(id, acknowledgedBy) {
304
308
  this.ensureInitialized();
305
309
  const db = this.memory.getDatabase();
306
- const result = db.prepare(`
310
+ const result = await this.memory.writeWhenUnlocked(() => db.prepare(`
307
311
  UPDATE mincut_alerts
308
312
  SET acknowledged = 1,
309
313
  acknowledged_at = datetime('now'),
310
314
  acknowledged_by = ?
311
315
  WHERE id = ? AND acknowledged = 0
312
- `).run(acknowledgedBy ?? null, id);
316
+ `).run(acknowledgedBy ?? null, id));
313
317
  return result.changes > 0;
314
318
  }
315
319
  /**
@@ -335,14 +339,14 @@ export class MinCutPersistence {
335
339
  this.ensureInitialized();
336
340
  const id = uuidv4();
337
341
  const db = this.memory.getDatabase();
338
- db.prepare(`
342
+ await this.memory.writeWhenUnlocked(() => db.prepare(`
339
343
  INSERT INTO mincut_healing_actions (
340
344
  id, action_type, action_params_json, success,
341
345
  mincut_before, mincut_after, improvement,
342
346
  error_message, duration_ms, triggered_by,
343
347
  snapshot_before_id, snapshot_after_id
344
348
  ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
345
- `).run(id, result.action.type, JSON.stringify(result.action), result.success ? 1 : 0, result.minCutBefore, result.minCutAfter, result.improvement, result.error ?? null, result.durationMs, result.triggeredBy ?? null, result.snapshotBeforeId ?? null, result.snapshotAfterId ?? null);
349
+ `).run(id, result.action.type, JSON.stringify(result.action), result.success ? 1 : 0, result.minCutBefore, result.minCutAfter, result.improvement, result.error ?? null, result.durationMs, result.triggeredBy ?? null, result.snapshotBeforeId ?? null, result.snapshotAfterId ?? null));
346
350
  return id;
347
351
  }
348
352
  /**
@@ -408,13 +412,13 @@ export class MinCutPersistence {
408
412
  if (observation.prediction) {
409
413
  actualVsPredictedDiff = observation.minCutValue - observation.prediction.predictedMinCut;
410
414
  }
411
- db.prepare(`
415
+ await this.memory.writeWhenUnlocked(() => db.prepare(`
412
416
  INSERT INTO mincut_observations (
413
417
  id, iteration, mincut_value, weak_vertex_count,
414
418
  weak_vertices_json, snapshot_id, prediction_json,
415
419
  actual_vs_predicted_diff
416
420
  ) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
417
- `).run(id, observation.iteration, observation.minCutValue, observation.weakVertices.length, JSON.stringify(observation.weakVertices.map(v => v.vertexId)), observation.snapshotId ?? null, observation.prediction ? JSON.stringify(observation.prediction) : null, actualVsPredictedDiff);
421
+ `).run(id, observation.iteration, observation.minCutValue, observation.weakVertices.length, JSON.stringify(observation.weakVertices.map(v => v.vertexId)), observation.snapshotId ?? null, observation.prediction ? JSON.stringify(observation.prediction) : null, actualVsPredictedDiff));
418
422
  return id;
419
423
  }
420
424
  /**
@@ -474,18 +478,18 @@ export class MinCutPersistence {
474
478
  const historyMaxAge = options.historyMaxAge ?? 7 * 24 * 60 * 60 * 1000; // 7 days
475
479
  const snapshotMaxAge = options.snapshotMaxAge ?? 24 * 60 * 60 * 1000; // 1 day
476
480
  const alertMaxAge = options.alertMaxAge ?? 30 * 24 * 60 * 60 * 1000; // 30 days
477
- const historyResult = db.prepare(`
481
+ const historyResult = await this.memory.writeWhenUnlocked(() => db.prepare(`
478
482
  DELETE FROM mincut_history
479
483
  WHERE timestamp < ?
480
- `).run(new Date(now - historyMaxAge).toISOString());
481
- const snapshotResult = db.prepare(`
484
+ `).run(new Date(now - historyMaxAge).toISOString()));
485
+ const snapshotResult = await this.memory.writeWhenUnlocked(() => db.prepare(`
482
486
  DELETE FROM mincut_snapshots
483
487
  WHERE timestamp < ?
484
- `).run(new Date(now - snapshotMaxAge).toISOString());
485
- const alertResult = db.prepare(`
488
+ `).run(new Date(now - snapshotMaxAge).toISOString()));
489
+ const alertResult = await this.memory.writeWhenUnlocked(() => db.prepare(`
486
490
  DELETE FROM mincut_alerts
487
491
  WHERE timestamp < ? AND acknowledged = 1
488
- `).run(new Date(now - alertMaxAge).toISOString());
492
+ `).run(new Date(now - alertMaxAge).toISOString()));
489
493
  return {
490
494
  historyDeleted: historyResult.changes,
491
495
  snapshotsDeleted: snapshotResult.changes,
@@ -217,6 +217,10 @@ export declare class CodeIntelligenceCoordinator extends BaseDomainCoordinator<C
217
217
  protected subscribeToEvents(): void;
218
218
  private handleTestRunCompleted;
219
219
  private handleFilesChanged;
220
+ /**
221
+ * #1230: makes every given file searchable, one file at a time (only one
222
+ * file's content is held at once), with no per-run file cap.
223
+ */
220
224
  indexForSearch(paths: string[]): Promise<SearchIndexSummary>;
221
225
  private loadWorkflowState;
222
226
  private saveWorkflowState;
@@ -59,8 +59,13 @@ const DEFAULT_CONFIG = {
59
59
  * CQ-002: Extends BaseDomainCoordinator
60
60
  */
61
61
  const logger = LoggerFactory.create('code-intelligence');
62
- /** Files made searchable per index run (content, plus vectors with an embedding model). */
63
- const SEARCH_INDEX_FILE_LIMIT = 100;
62
+ /**
63
+ * #1230: after this many files in a row fail to embed, an index run stops
64
+ * asking the embedding model and stores the remaining files as text only.
65
+ * Each failed embed costs the client's retries and backoff (about 3s), which
66
+ * would otherwise dominate a large run while the model is down.
67
+ */
68
+ const MAX_CONSECUTIVE_EMBED_FAILURES = 3;
64
69
  export class CodeIntelligenceCoordinator extends BaseDomainCoordinator {
65
70
  memory;
66
71
  agentCoordinator;
@@ -761,19 +766,39 @@ export class CodeIntelligenceCoordinator extends BaseDomainCoordinator {
761
766
  // ============================================================================
762
767
  // Helper Methods
763
768
  // ============================================================================
769
+ /**
770
+ * #1230: makes every given file searchable, one file at a time (only one
771
+ * file's content is held at once), with no per-run file cap.
772
+ */
764
773
  async indexForSearch(paths) {
765
- // Index a subset of files for search
766
- // Limit to 100 files for performance in a single batch
767
- const filesToIndex = paths.slice(0, SEARCH_INDEX_FILE_LIMIT);
768
774
  let searchable = 0;
769
- for (const path of filesToIndex) {
775
+ let withVector = 0;
776
+ let embedFailures = 0;
777
+ let consecutiveEmbedFailures = 0;
778
+ let lastEmbedFailure;
779
+ let notEmbedded = 0;
780
+ for (const path of paths) {
770
781
  try {
771
782
  // Read actual file content
772
783
  const result = await this.fileReader.readFile(path);
773
- if (result.success && result.value) {
774
- const indexed = await this.semanticAnalyzer.indexCode(path, result.value);
775
- if (indexed.success)
776
- searchable++;
784
+ if (!result.success || !result.value)
785
+ continue;
786
+ const embed = consecutiveEmbedFailures < MAX_CONSECUTIVE_EMBED_FAILURES;
787
+ const indexed = await this.semanticAnalyzer.indexCode(path, result.value, { embed });
788
+ if (!indexed.success)
789
+ continue;
790
+ searchable++;
791
+ if (indexed.value.vector) {
792
+ withVector++;
793
+ consecutiveEmbedFailures = 0;
794
+ }
795
+ else if (indexed.value.vectorFailure !== undefined) {
796
+ embedFailures++;
797
+ consecutiveEmbedFailures++;
798
+ lastEmbedFailure = indexed.value.vectorFailure;
799
+ }
800
+ else if (!embed) {
801
+ notEmbedded++;
777
802
  }
778
803
  }
779
804
  catch {
@@ -783,9 +808,17 @@ export class CodeIntelligenceCoordinator extends BaseDomainCoordinator {
783
808
  // #1224: say when search will not see every indexed file.
784
809
  const warnings = [];
785
810
  if (searchable < paths.length) {
786
- warnings.push(`Search covers ${searchable} of ${paths.length} indexed files` +
787
- (paths.length > SEARCH_INDEX_FILE_LIMIT ? ` (at most ${SEARCH_INDEX_FILE_LIMIT} per index run)` : '') +
788
- '; code in the other files is not found by search.');
811
+ warnings.push(`Search covers ${searchable} of ${paths.length} indexed files; ` +
812
+ 'the other files could not be added to the search index, so code in them is not found by search.');
813
+ }
814
+ // #1231: say which files a semantic search can only match by text.
815
+ if (embedFailures > 0) {
816
+ warnings.push(`The embedding model failed for ${embedFailures} file(s) (${lastEmbedFailure})` +
817
+ (notEmbedded > 0
818
+ ? `, so it was not asked for the remaining ${notEmbedded} file(s) of this run`
819
+ : '') +
820
+ `. ${searchable - withVector} of ${searchable} searchable files have no vector; ` +
821
+ 'semantic search matches them by text only. Re-index when the model is available.');
789
822
  }
790
823
  return { searchable, warnings };
791
824
  }
@@ -75,9 +75,18 @@ export interface SearchResults {
75
75
  * #1224, semantic searches only: 'vector' when an embedding model ranked the
76
76
  * results, 'lexical-only' when none was available and query words were
77
77
  * matched against the indexed text instead (`reason` says why).
78
+ * #1231: 'partial-vector' when only some indexed files have a vector; the
79
+ * others were matched by text (hits with `matchType: 'lexical'`) and
80
+ * `coverage` gives the counts.
78
81
  */
79
- mode?: 'vector' | 'lexical-only';
82
+ mode?: 'vector' | 'partial-vector' | 'lexical-only';
80
83
  reason?: string;
84
+ /** #1231, semantic searches that ranked by vector: how many indexed files have a vector. */
85
+ coverage?: SearchVectorCoverage;
86
+ }
87
+ export interface SearchVectorCoverage {
88
+ indexedFiles: number;
89
+ filesWithVector: number;
81
90
  }
82
91
  export interface SearchResult {
83
92
  file: string;
@@ -11,6 +11,17 @@ import { SearchRequest, SearchResults, SearchResult } from '../interfaces';
11
11
  * reported after searching an index that holds code.
12
12
  */
13
13
  export declare const NOTHING_INDEXED_FOR_SEARCH: string;
14
+ export interface IndexCodeOptions {
15
+ /** false: store the text only, without asking the embedding model (#1230: it kept failing this run). */
16
+ embed?: boolean;
17
+ }
18
+ /** What indexCode stored for a file. */
19
+ export interface IndexedCode {
20
+ /** A vector from the current embedding model was stored. */
21
+ vector: boolean;
22
+ /** Set when an embedding model is configured but failed for this file. */
23
+ vectorFailure?: string;
24
+ }
14
25
  /**
15
26
  * Interface for the semantic analyzer service
16
27
  */
@@ -18,7 +29,7 @@ export interface ISemanticAnalyzerService {
18
29
  /** Perform semantic search across codebase */
19
30
  search(request: SearchRequest): Promise<Result<SearchResults, Error>>;
20
31
  /** Index code for semantic search */
21
- indexCode(file: string, content: string): Promise<Result<void, Error>>;
32
+ indexCode(file: string, content: string, options?: IndexCodeOptions): Promise<Result<IndexedCode, Error>>;
22
33
  /** Find semantically similar code */
23
34
  findSimilar(code: string, limit?: number): Promise<Result<SearchResult[], Error>>;
24
35
  /** Analyze code semantics */
@@ -113,7 +124,7 @@ export declare class SemanticAnalyzerService implements ISemanticAnalyzerService
113
124
  /**
114
125
  * Index code content for semantic search
115
126
  */
116
- indexCode(file: string, content: string): Promise<Result<void, Error>>;
127
+ indexCode(file: string, content: string, options?: IndexCodeOptions): Promise<Result<IndexedCode, Error>>;
117
128
  /**
118
129
  * Find semantically similar code
119
130
  */
@@ -139,17 +150,30 @@ export declare class SemanticAnalyzerService implements ISemanticAnalyzerService
139
150
  private isCurrentModelVector;
140
151
  private vectorKeyPrefix;
141
152
  private contentKeyPattern;
153
+ /** Visits every indexed file's stored content, one at a time. */
154
+ private forEachIndexed;
142
155
  /**
143
156
  * #1224: vector search when an embedding model is available. Otherwise (or
144
157
  * when no indexed file has a vector from that model) it matches query words
145
- * against the indexed text and says so through `lexicalOnlyReason`; no
146
- * similarity is invented for those hits.
158
+ * against the indexed text and reports `mode: 'lexical-only'` with the
159
+ * reason; no similarity is invented for those hits.
147
160
  */
148
161
  private semanticSearch;
162
+ /**
163
+ * #1231: files indexed while the embedding model was unavailable have no
164
+ * vector, so vector search cannot rank them. Match those by text, label the
165
+ * hits 'lexical', and report the result as 'partial-vector' with the counts.
166
+ * Cosine and text-match scores are not comparable, so vector hits come
167
+ * first (by cosine), then lexical hits (by share of query words found); the
168
+ * reason says how many text matches the limit left out.
169
+ */
170
+ private withVectorlessFiles;
149
171
  /** Word-overlap matching for a semantic query when no vectors can be used. */
150
172
  private lexicalSearch;
151
173
  private exactSearch;
152
174
  private fuzzySearch;
175
+ /** Token-overlap match of one indexed file, or null when it is filtered out or scores too low. */
176
+ private fuzzyMatch;
153
177
  private extractConcepts;
154
178
  private detectPatterns;
155
179
  private calculateComplexity;
@@ -160,9 +184,10 @@ export declare class SemanticAnalyzerService implements ISemanticAnalyzerService
160
184
  private tokenize;
161
185
  private calculateFuzzyScore;
162
186
  /**
163
- * A content token matches a query token it contains, or that contains it.
164
- * #1224: the second direction needs a content token of 3+ characters, so a
165
- * one-letter variable such as `i` does not match the query "login".
187
+ * A query word is found when a content word contains it (or equals it):
188
+ * "login" is found in `loginWithPassword`. #1279: not the reverse; a query
189
+ * word such as `stepHandler450` is not found just because the file has the
190
+ * shorter word `step`, which made almost every file a full match.
166
191
  */
167
192
  private tokensMatch;
168
193
  private matchesFilters;