agentic-qe 3.15.12 → 3.15.13
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.
- package/.claude/skills/skills-manifest.json +1 -1
- package/CHANGELOG.md +118 -0
- package/assets/skills/skills-manifest.json +1 -1
- package/dist/cli/bundle.js +6 -6
- package/dist/cli/chunks/adapter-KCQDVYY2.js +2 -0
- package/dist/cli/chunks/{agent-booster-wasm-5VZCKTIJ.js → agent-booster-wasm-6RRQWMNE.js} +2 -2
- package/dist/cli/chunks/{agent-handler-K3C6CQCD.js → agent-handler-AOH6TV7W.js} +2 -2
- package/dist/cli/chunks/{agent-memory-branch-NVFQ25WS.js → agent-memory-branch-2P54SF5N.js} +2 -2
- package/dist/cli/chunks/aqe-learning-engine-SAQOHSGN.js +2 -0
- package/dist/cli/chunks/{arena-QGWIJADQ.js → arena-NSVFCAF5.js} +2 -2
- package/dist/cli/chunks/{arena-TSZVDSXS.js → arena-X6MOGQHA.js} +4 -4
- package/dist/cli/chunks/{audit-KIEE2SHJ.js → audit-27DJLQNM.js} +3 -3
- package/dist/cli/chunks/base-WCACU3FN.js +2 -0
- package/dist/cli/chunks/{better-sqlite3-BNB32NW3.js → better-sqlite3-BU5GXILS.js} +2 -2
- package/dist/cli/chunks/{brain-handler-MPC5SPYI.js → brain-handler-GTQNHHZS.js} +3 -3
- package/dist/cli/chunks/{branch-enumerator-LZ7UXKAY.js → branch-enumerator-5CLULOCU.js} +2 -2
- package/dist/cli/chunks/{browser-VDHAW4RK.js → browser-R4DMU3LN.js} +2 -2
- package/dist/cli/chunks/browser-workflow-G6IASEAP.js +2 -0
- package/dist/cli/chunks/{chunk-QUJJYTJH.js → chunk-2G7TVT6W.js} +2 -2
- package/dist/cli/chunks/{chunk-FAGKBOX2.js → chunk-32ZMWEP3.js} +2 -2
- package/dist/cli/chunks/{chunk-FNUFTWEO.js → chunk-3AN5TNGD.js} +3 -3
- package/dist/cli/chunks/{chunk-JOWUS2X5.js → chunk-3LJ7LQMV.js} +1 -1
- package/dist/cli/chunks/{chunk-O4QJMANM.js → chunk-3QZEGE67.js} +1 -1
- package/dist/cli/chunks/{chunk-ICKUINKD.js → chunk-3RZV5DGO.js} +2 -2
- package/dist/cli/chunks/{chunk-W4II6SIH.js → chunk-3Y2ROSCL.js} +2 -2
- package/dist/cli/chunks/{chunk-L7NGKANW.js → chunk-3Y7TJFHU.js} +2 -2
- package/dist/cli/chunks/{chunk-UUZZXHUF.js → chunk-3YNLWPBF.js} +2 -2
- package/dist/cli/chunks/{chunk-JR6CUKAI.js → chunk-42J34YG4.js} +2 -2
- package/dist/cli/chunks/{chunk-65TH6RPD.js → chunk-4OVC4RIL.js} +1 -1
- package/dist/cli/chunks/{chunk-DRCBRUGN.js → chunk-526QYFJU.js} +2 -2
- package/dist/cli/chunks/{chunk-MCPXNUDK.js → chunk-5FKWCZNF.js} +2 -2
- package/dist/cli/chunks/{chunk-NX4BCSOZ.js → chunk-5K26BEYB.js} +2 -2
- package/dist/cli/chunks/{chunk-MCPEC6OO.js → chunk-5MDERQH3.js} +1 -1
- package/dist/cli/chunks/{chunk-7JFDLL2F.js → chunk-5VMAV6T6.js} +1 -1
- package/dist/cli/chunks/{chunk-5TAEW5OV.js → chunk-5ZGM3RMH.js} +1 -1
- package/dist/cli/chunks/{chunk-SG2TX72G.js → chunk-6KATY3KS.js} +2 -2
- package/dist/cli/chunks/{chunk-KA5SHLMW.js → chunk-6Z7PRBSG.js} +2 -2
- package/dist/cli/chunks/{chunk-LFBA735S.js → chunk-72ASBE35.js} +3 -3
- package/dist/cli/chunks/{chunk-TOWOJGEI.js → chunk-756CGMEH.js} +1 -1
- package/dist/cli/chunks/{chunk-IVTQF55W.js → chunk-75RDHBAX.js} +3 -3
- package/dist/cli/chunks/{chunk-66PXR3NI.js → chunk-7CMTY45A.js} +2 -2
- package/dist/cli/chunks/{chunk-WLRU6ESI.js → chunk-7JUC2MVZ.js} +2 -2
- package/dist/cli/chunks/{chunk-SBHM5X2S.js → chunk-7NA7JXNB.js} +2 -2
- package/dist/cli/chunks/{chunk-HZBXJFGN.js → chunk-7PLIEBY7.js} +2 -2
- package/dist/cli/chunks/{chunk-2ASQRBK2.js → chunk-7YTGHGK4.js} +2 -2
- package/dist/cli/chunks/{chunk-SQVZ3TRU.js → chunk-A64JFBWI.js} +2 -2
- package/dist/cli/chunks/{chunk-2PPSS4JD.js → chunk-AL6FBH3E.js} +2 -2
- package/dist/cli/chunks/{chunk-3IU4LDZR.js → chunk-AQSVJNEH.js} +2 -2
- package/dist/cli/chunks/{chunk-C74M4WUI.js → chunk-ARJW4I2O.js} +2 -2
- package/dist/cli/chunks/{chunk-VF7FTD64.js → chunk-ASQYASNV.js} +1 -1
- package/dist/cli/chunks/{chunk-HLGFHHWV.js → chunk-BEGR4D6N.js} +2 -2
- package/dist/cli/chunks/{chunk-EN7GRVEQ.js → chunk-BK577VL7.js} +2 -2
- package/dist/cli/chunks/{chunk-KGA7VAI4.js → chunk-BLSLEVDI.js} +2 -2
- package/dist/cli/chunks/{chunk-HM3LSFTY.js → chunk-BTVEYBW2.js} +2 -2
- package/dist/cli/chunks/{chunk-J7Y7ZBIT.js → chunk-C6JTLKG7.js} +5 -5
- package/dist/cli/chunks/{chunk-PTBOLBM4.js → chunk-C7JM7CD3.js} +2 -2
- package/dist/cli/chunks/{chunk-IL7GQNNE.js → chunk-CCMKSHAT.js} +2 -2
- package/dist/cli/chunks/{chunk-23PQF7NN.js → chunk-CE7B5LU7.js} +1 -1
- package/dist/cli/chunks/{chunk-BMG2JLSQ.js → chunk-CM4LSLKR.js} +2 -2
- package/dist/cli/chunks/chunk-CRWPZT74.js +62 -0
- package/dist/cli/chunks/{chunk-4HWUECVD.js → chunk-CT6SAVXQ.js} +2 -2
- package/dist/cli/chunks/chunk-CV77DMDQ.js +2 -0
- package/dist/cli/chunks/{chunk-CU36D7TN.js → chunk-DFUASIKA.js} +2 -2
- package/dist/cli/chunks/{chunk-T4EN5VVK.js → chunk-DLD7RUZ4.js} +2 -2
- package/dist/cli/chunks/{chunk-IA55PFLG.js → chunk-DNDL7SOS.js} +2 -2
- package/dist/cli/chunks/{chunk-6QRI3JVE.js → chunk-DVGRPK7A.js} +2 -2
- package/dist/cli/chunks/{chunk-UREDS662.js → chunk-E56B6IDX.js} +2 -2
- package/dist/cli/chunks/{chunk-ZGROHCOW.js → chunk-E7CLYGS7.js} +1 -1
- package/dist/cli/chunks/{chunk-YNVEDFPQ.js → chunk-EXGMJFAT.js} +1 -1
- package/dist/cli/chunks/{chunk-JRYWLOBD.js → chunk-F3YS57NF.js} +2 -2
- package/dist/cli/chunks/{chunk-ZYOYR3UR.js → chunk-FZ76G4QJ.js} +1 -1
- package/dist/cli/chunks/{chunk-UIKQPO4Y.js → chunk-G2Q66Z23.js} +2 -2
- package/dist/cli/chunks/{chunk-5S4UIDFK.js → chunk-G6WDYBLQ.js} +1 -1
- package/dist/cli/chunks/{chunk-4SA7M34P.js → chunk-G77ERMUD.js} +1 -1
- package/dist/cli/chunks/{chunk-ADUAJIAU.js → chunk-GB6HBNH2.js} +2 -2
- package/dist/cli/chunks/{chunk-IETBWYHW.js → chunk-GHM6MQNK.js} +2 -2
- package/dist/cli/chunks/{chunk-QWG3SILX.js → chunk-GHY6Z6KO.js} +5 -5
- package/dist/cli/chunks/{chunk-AJEXPFAB.js → chunk-GII6UM3F.js} +1 -1
- package/dist/cli/chunks/{chunk-SDRJJUPO.js → chunk-GU5HNCWI.js} +1 -1
- package/dist/cli/chunks/{chunk-ULCW6IVQ.js → chunk-H4GG2NLO.js} +2 -2
- package/dist/cli/chunks/{chunk-7TA5MUPW.js → chunk-H4H2YSFH.js} +1 -1
- package/dist/cli/chunks/{chunk-5A66EGEW.js → chunk-HD7YIFOI.js} +2 -2
- package/dist/cli/chunks/{chunk-CDA5Z74H.js → chunk-HOAJUIBQ.js} +2 -2
- package/dist/cli/chunks/{chunk-4KUOYDY2.js → chunk-HQZGPJYG.js} +2 -2
- package/dist/cli/chunks/{chunk-G3AABG4Q.js → chunk-HZ5NXFXH.js} +2 -2
- package/dist/cli/chunks/{chunk-U6IXYQO4.js → chunk-I3C7JOXC.js} +2 -2
- package/dist/cli/chunks/{chunk-MAJXZYGK.js → chunk-IC3TQEOA.js} +1 -1
- package/dist/cli/chunks/{chunk-RYHG3I7J.js → chunk-IJUHSJ2U.js} +2 -2
- package/dist/cli/chunks/{chunk-DZGPUGUG.js → chunk-J2ZIFFM6.js} +2 -2
- package/dist/cli/chunks/{chunk-NA3F6FEO.js → chunk-JGZ722G3.js} +2 -2
- package/dist/cli/chunks/{chunk-PX5OPXY6.js → chunk-JQGMW45H.js} +1 -1
- package/dist/cli/chunks/{chunk-WGTEZT7G.js → chunk-JRRXCODW.js} +2 -2
- package/dist/cli/chunks/{chunk-4Y6OEBJZ.js → chunk-K3TLLJMX.js} +1 -1
- package/dist/cli/chunks/{chunk-RCOLPF3B.js → chunk-K4CZA77U.js} +2 -2
- package/dist/cli/chunks/{chunk-YIDAXOUX.js → chunk-K65CGKLD.js} +2 -2
- package/dist/cli/chunks/{chunk-5ADXFUMO.js → chunk-KADFXPPN.js} +2 -2
- package/dist/cli/chunks/{chunk-P5E26N2X.js → chunk-KB56CPU4.js} +2 -2
- package/dist/cli/chunks/{chunk-YLKIXEPP.js → chunk-KCW47QR5.js} +1 -1
- package/dist/cli/chunks/{chunk-SPC4RBLF.js → chunk-KDNJ4F3P.js} +2 -2
- package/dist/cli/chunks/{chunk-P7UFJ6DO.js → chunk-KDVZND5Q.js} +1 -1
- package/dist/cli/chunks/{chunk-TLRHAMX5.js → chunk-KUAKV3IW.js} +1 -1
- package/dist/cli/chunks/{chunk-ZROAMFX2.js → chunk-KV4T4MXK.js} +2 -2
- package/dist/cli/chunks/{chunk-UZED4YZ5.js → chunk-KWYH3FI4.js} +1 -1
- package/dist/cli/chunks/{chunk-33I2ZP6E.js → chunk-LFJALJOA.js} +2 -2
- package/dist/cli/chunks/{chunk-TXEUVUMO.js → chunk-LL7LDPXS.js} +1 -1
- package/dist/cli/chunks/{chunk-W5HQIYQU.js → chunk-LUZNKJE6.js} +3 -3
- package/dist/cli/chunks/{chunk-GKFV6CUD.js → chunk-LWR3FV3Y.js} +2 -2
- package/dist/cli/chunks/{chunk-TVA5GRIU.js → chunk-LZYQHVD4.js} +2 -2
- package/dist/cli/chunks/{chunk-2JYUA27M.js → chunk-M6AAGIG7.js} +1 -1
- package/dist/cli/chunks/{chunk-PT2NXS43.js → chunk-MAMQA43L.js} +1 -1
- package/dist/cli/chunks/chunk-MB46UBGY.js +3 -0
- package/dist/cli/chunks/{chunk-ZPVGX4DI.js → chunk-MFW5HSG4.js} +2 -2
- package/dist/cli/chunks/{chunk-47RMGDG4.js → chunk-MGZ5FJUW.js} +2 -2
- package/dist/cli/chunks/{chunk-G24SWTAX.js → chunk-MVVB7C2E.js} +410 -410
- package/dist/cli/chunks/{chunk-XZOYKB22.js → chunk-N4CYAKOX.js} +2 -2
- package/dist/cli/chunks/{chunk-QCPVUNN3.js → chunk-NT4DBXSX.js} +2 -2
- package/dist/cli/chunks/{chunk-3EWQN37E.js → chunk-NU3W5WFT.js} +2 -2
- package/dist/cli/chunks/{chunk-VZBC6DP7.js → chunk-NURIILUB.js} +1 -1
- package/dist/cli/chunks/{chunk-6E6HB4N4.js → chunk-NW7IBHJA.js} +4 -4
- package/dist/cli/chunks/{chunk-K3A3NWT3.js → chunk-NZ3GUMB2.js} +2 -2
- package/dist/cli/chunks/{chunk-GJKZ7UQO.js → chunk-NZD4DPSU.js} +2 -2
- package/dist/cli/chunks/{chunk-7QEUHNKO.js → chunk-O6FGXMHD.js} +1 -1
- package/dist/cli/chunks/{chunk-YVJEUX3I.js → chunk-OCAEXYFA.js} +2 -2
- package/dist/cli/chunks/{chunk-BOSMELJX.js → chunk-OFACHK5O.js} +2 -2
- package/dist/cli/chunks/{chunk-PGSJBXTD.js → chunk-P7A4NKTZ.js} +2 -2
- package/dist/cli/chunks/{chunk-HSA5IGGW.js → chunk-PB6J6HAA.js} +2 -2
- package/dist/cli/chunks/{chunk-TGMXUZZC.js → chunk-PHP5UBT4.js} +2 -2
- package/dist/cli/chunks/{chunk-NV74SICL.js → chunk-PIDQVU3L.js} +2 -2
- package/dist/cli/chunks/{chunk-TSOQ2QLT.js → chunk-PSFSPGUD.js} +2 -2
- package/dist/cli/chunks/{chunk-4A76VPU4.js → chunk-PT4FMJPQ.js} +2 -2
- package/dist/cli/chunks/{chunk-U7ZHDGXG.js → chunk-Q3UDLV5Z.js} +1 -1
- package/dist/cli/chunks/{chunk-BYRCB5JT.js → chunk-QDEJ4CI2.js} +2 -2
- package/dist/cli/chunks/{chunk-CA5UNWQF.js → chunk-QPNG5ZN2.js} +2 -2
- package/dist/cli/chunks/{chunk-W7H55PY4.js → chunk-R7SYRCRP.js} +1 -1
- package/dist/cli/chunks/{chunk-4LWMAAWK.js → chunk-RF7HWBHN.js} +2 -2
- package/dist/cli/chunks/{chunk-MMEALJ4D.js → chunk-RFNW2LGD.js} +2 -2
- package/dist/cli/chunks/{chunk-UCSK2RMI.js → chunk-S5AZCIZS.js} +2 -2
- package/dist/cli/chunks/{chunk-JW5PDJ5O.js → chunk-SE4VNN4I.js} +3 -3
- package/dist/cli/chunks/{chunk-URSTP3WI.js → chunk-SG3NX7QE.js} +2 -2
- package/dist/cli/chunks/{chunk-N7O3PF6Y.js → chunk-SSU73QAX.js} +2 -2
- package/dist/cli/chunks/{chunk-7DNR4KKR.js → chunk-SVLQRAMF.js} +1 -1
- package/dist/cli/chunks/{chunk-BC4T6SCV.js → chunk-SYV2V3PL.js} +4 -4
- package/dist/cli/chunks/{chunk-4CB3QPZM.js → chunk-T3PGQFDI.js} +2 -2
- package/dist/cli/chunks/{chunk-OHVYINGM.js → chunk-TCBBNUBP.js} +3 -3
- package/dist/cli/chunks/{chunk-YWWMNTBF.js → chunk-TOQWL2ZF.js} +2 -2
- package/dist/cli/chunks/{chunk-SITL5YZV.js → chunk-TSQC2KKZ.js} +2 -2
- package/dist/cli/chunks/{chunk-YUA6ZKKY.js → chunk-TWDW32W2.js} +2 -2
- package/dist/cli/chunks/{chunk-SUX5XB2Z.js → chunk-TWJTK4CC.js} +2 -2
- package/dist/cli/chunks/{chunk-32UTHIY5.js → chunk-U2FUXDDJ.js} +3 -3
- package/dist/cli/chunks/{chunk-ENGL7FIJ.js → chunk-UDQSYWVF.js} +1 -1
- package/dist/cli/chunks/{chunk-7OEFBWAG.js → chunk-UOC3O6RP.js} +2 -2
- package/dist/cli/chunks/chunk-UT2VZ33P.js +2 -0
- package/dist/cli/chunks/{chunk-MYF5CNGV.js → chunk-UTRV7T2N.js} +2 -2
- package/dist/cli/chunks/{chunk-KJDI5CHX.js → chunk-UXZSUMEA.js} +2 -2
- package/dist/cli/chunks/{chunk-DAUEK66C.js → chunk-VRHRBAEM.js} +1 -1
- package/dist/cli/chunks/{chunk-FZJCBSN4.js → chunk-VRVMIPTM.js} +2 -2
- package/dist/cli/chunks/{chunk-26672ISV.js → chunk-VTDFVFST.js} +2 -2
- package/dist/cli/chunks/{chunk-WTAUF6O4.js → chunk-VTOBUZL6.js} +2 -2
- package/dist/cli/chunks/{chunk-4PU5GTZW.js → chunk-VU5TBX2V.js} +2 -2
- package/dist/cli/chunks/{chunk-C3YOVASQ.js → chunk-W26B7ERY.js} +1 -1
- package/dist/cli/chunks/{chunk-CPIBIR3X.js → chunk-W2QWSQVE.js} +2 -2
- package/dist/cli/chunks/{chunk-L3PV7VXK.js → chunk-W3INMZZ6.js} +1 -1
- package/dist/cli/chunks/{chunk-5Z23ZMXZ.js → chunk-W3PPFHI5.js} +54 -54
- package/dist/cli/chunks/{chunk-NVRYELCY.js → chunk-WKGTGOYS.js} +3 -3
- package/dist/cli/chunks/{chunk-35NW676P.js → chunk-WNQS4WTS.js} +2 -2
- package/dist/cli/chunks/{chunk-O3IM4WRZ.js → chunk-WO274FRI.js} +2 -2
- package/dist/cli/chunks/{chunk-35MIUSXQ.js → chunk-WOCGL4QP.js} +2 -2
- package/dist/cli/chunks/{chunk-EF6OERRR.js → chunk-WQL7WCIZ.js} +1 -1
- package/dist/cli/chunks/{chunk-INZARYUD.js → chunk-X2Z7F4EU.js} +2 -2
- package/dist/cli/chunks/{chunk-2E2QO44T.js → chunk-X7N2JF2X.js} +2 -2
- package/dist/cli/chunks/{chunk-2IVE5AR3.js → chunk-XEAEYC6Y.js} +1 -1
- package/dist/cli/chunks/{chunk-IPA7K556.js → chunk-XNBOGCF3.js} +2 -2
- package/dist/cli/chunks/{chunk-A2JCRXTK.js → chunk-XPRVF4YE.js} +2 -2
- package/dist/cli/chunks/{chunk-VUR5THML.js → chunk-YBQH2VOP.js} +2 -2
- package/dist/cli/chunks/{chunk-A5Y7DAVQ.js → chunk-YQFLQE53.js} +2 -2
- package/dist/cli/chunks/{chunk-JGIJPDGD.js → chunk-YSZ5OE3Z.js} +2 -2
- package/dist/cli/chunks/{chunk-JNXK47OL.js → chunk-YXRASAPI.js} +2 -2
- package/dist/cli/chunks/{chunk-MYUMJ2ZI.js → chunk-YZEXYO4W.js} +1 -1
- package/dist/cli/chunks/{chunk-NNBQZR73.js → chunk-YZWBNBTW.js} +2 -2
- package/dist/cli/chunks/{chunk-WDEXOLK2.js → chunk-ZAKQLAHT.js} +1 -1
- package/dist/cli/chunks/{ci-BZNWW3I3.js → ci-ENOASTYB.js} +2 -2
- package/dist/cli/chunks/{ci-config-LOHNXOKV.js → ci-config-B26OXHQM.js} +2 -2
- package/dist/cli/chunks/{ci-output-LCOQBSJL.js → ci-output-JTCLLNOQ.js} +2 -2
- package/dist/cli/chunks/{circuit-breaker-7LRXTLFE.js → circuit-breaker-23JMFNM5.js} +2 -2
- package/dist/cli/chunks/{claude-flow-setup-HBU4VWC3.js → claude-flow-setup-ON6L462G.js} +2 -2
- package/dist/cli/chunks/client-TV3V2YZ5.js +2 -0
- package/dist/cli/chunks/{cline-installer-CO6MLH6X.js → cline-installer-OWQ4D2FQ.js} +2 -2
- package/dist/cli/chunks/{code-SIXBS6JM.js → code-2ZRL7SEU.js} +19 -18
- package/dist/cli/chunks/{code-index-extractor-GWJKZ2IQ.js → code-index-extractor-JXSQVM67.js} +2 -2
- package/dist/cli/chunks/{codex-installer-6NINVWXJ.js → codex-installer-7LXZYBSQ.js} +2 -2
- package/dist/cli/chunks/{completions-7VIX3GML.js → completions-C2LR623C.js} +2 -2
- package/dist/cli/chunks/{complexity-analyzer-FBQR6ZP2.js → complexity-analyzer-TGQLHCYJ.js} +2 -2
- package/dist/cli/chunks/{continuedev-installer-VA7RIXW5.js → continuedev-installer-RUGD24D2.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-4QEBC4MU.js → copilot-installer-ZLFVLEJP.js} +2 -2
- package/dist/cli/chunks/core-handlers-PZT4OLWR.js +2 -0
- package/dist/cli/chunks/{cost-tracker-GRYKHPWL.js → cost-tracker-RT4QL745.js} +2 -2
- package/dist/cli/chunks/{coverage-USPMNKOU.js → coverage-NV3C4IMM.js} +3 -3
- package/dist/cli/chunks/cross-domain-router-QOFCZ7G4.js +2 -0
- package/dist/cli/chunks/{cursor-installer-ZXIPSZVH.js → cursor-installer-LJKLNFF6.js} +2 -2
- package/dist/cli/chunks/{daemon-D7F3RGI5.js → daemon-BMDXCQT5.js} +3 -3
- package/dist/cli/chunks/{daemon-N2VRHPSJ.js → daemon-FBH3IRYN.js} +4 -4
- package/dist/cli/chunks/{dag-attention-scheduler-NL6BA7BY.js → dag-attention-scheduler-JGDED55I.js} +2 -2
- package/dist/cli/chunks/{detect-XC2HCIIT.js → detect-SZIHIVCJ.js} +2 -2
- package/dist/cli/chunks/{dist-node-A3Y26MEI.js → dist-node-FV3KWXQ6.js} +2 -2
- package/dist/cli/chunks/{domain-handler-WV6SFXRB.js → domain-handler-GI5JWQOV.js} +2 -2
- package/dist/cli/chunks/{domain-plugins-KJIF6Z2B.js → domain-plugins-BUWY36TL.js} +2 -2
- package/dist/cli/chunks/domain-transfer-GCY7W5DA.js +2 -0
- package/dist/cli/chunks/dream-TRFBGDSQ.js +2 -0
- package/dist/cli/chunks/{embed-and-insert-pattern-PA3Y4KGO.js → embed-and-insert-pattern-GPRR3ZGD.js} +2 -2
- package/dist/cli/chunks/{eval-YGEZNUVE.js → eval-XPB3IGAP.js} +2 -2
- package/dist/cli/chunks/{experience-capture-middleware-D4T7NW6B.js → experience-capture-middleware-2E554UB3.js} +3 -3
- package/dist/cli/chunks/{fast-paths-6JYK7RYQ.js → fast-paths-ZSMWZPUC.js} +2 -2
- package/dist/cli/chunks/{feature-flags-RBH2GDSR.js → feature-flags-GIWVDVVC.js} +2 -2
- package/dist/cli/chunks/{feature-flags-DKXMDVPE.js → feature-flags-N7EOGE5P.js} +2 -2
- package/dist/cli/chunks/file-discovery-WCKGMSPZ.js +2 -0
- package/dist/cli/chunks/fleet-HCHDOUCX.js +44 -0
- package/dist/cli/chunks/{gnn-wrapper-MV54UC4C.js → gnn-wrapper-CZNCNXXZ.js} +2 -2
- package/dist/cli/chunks/{heartbeat-handler-7DKMVQQH.js → heartbeat-handler-6YUIF2YQ.js} +4 -4
- package/dist/cli/chunks/heartbeat-scheduler-P44A2OX3.js +2 -0
- package/dist/cli/chunks/hnsw-adapter-ZJQIQJKC.js +2 -0
- package/dist/cli/chunks/hnsw-index-HMG2GH3Z.js +2 -0
- package/dist/cli/chunks/{hnsw-legacy-bridge-6IWREDQC.js → hnsw-legacy-bridge-J3M3IK24.js} +2 -2
- package/dist/cli/chunks/{hnswlib-node-5BIESSCK.js → hnswlib-node-ULGTGDZW.js} +2 -2
- package/dist/cli/chunks/{hooks-3EETRM62.js → hooks-C4BUGYUQ.js} +10 -10
- package/dist/cli/chunks/hybrid-backend-B7M74PZG.js +2 -0
- package/dist/cli/chunks/{hypergraph-engine-RSWCB2D3.js → hypergraph-engine-WINGVMPG.js} +2 -2
- package/dist/cli/chunks/{hypergraph-handler-552LXKL3.js → hypergraph-handler-GADMWKAU.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-PZYOVKQO.js +2 -0
- package/dist/cli/chunks/{init-guard-OTDBJ5HD.js → init-guard-K2T4QWAO.js} +2 -2
- package/dist/cli/chunks/{init-handler-3FK3TKEA.js → init-handler-PCZTDZYI.js} +6 -6
- package/dist/cli/chunks/init-wizard-TZDJQK3U.js +2 -0
- package/dist/cli/chunks/kernel-Y6RRIOKW.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-KZ2O4LF3.js → kilocode-installer-XENXNEIU.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-MLCCXRF7.js → kiro-installer-3PG2TJ67.js} +2 -2
- package/dist/cli/chunks/knowledge-graph-BVD5Z66M.js +2 -0
- package/dist/cli/chunks/{learning-QUCMBD77.js → learning-6KDH7FK4.js} +3 -3
- package/dist/cli/chunks/{llm-router-PDEV3UP2.js → llm-router-RKVDEWU2.js} +4 -4
- package/dist/cli/chunks/llm-router-service-KHCAMSUU.js +2 -0
- package/dist/cli/chunks/{load-XFVVLO7E.js → load-ITHC564X.js} +2 -2
- package/dist/cli/chunks/load-test-RUF7DZA5.js +2 -0
- package/dist/cli/chunks/{mcp-74G3CL2S.js → mcp-TCL5UW3N.js} +2 -2
- package/dist/cli/chunks/{memory-XIFM6JNX.js → memory-BKDAY2N2.js} +5 -5
- package/dist/cli/chunks/memory-backend-7ZLFOVGG.js +2 -0
- package/dist/cli/chunks/{memory-handlers-ZCKURV6S.js → memory-handlers-WN4FXFOA.js} +2 -2
- package/dist/cli/chunks/{multi-model-executor-7L4W3O2Q.js → multi-model-executor-VHAT7ZPF.js} +2 -2
- package/dist/cli/chunks/{opencode-installer-BPG422LF.js → opencode-installer-E3VM3EEY.js} +2 -2
- package/dist/cli/chunks/{orchestrator-OEAFLAEV.js → orchestrator-BMQ6X762.js} +5 -5
- package/dist/cli/chunks/pattern-null-store-RY6CVYHP.js +2 -0
- package/dist/cli/chunks/{pattern-usage-recorder-LOPNCULT.js → pattern-usage-recorder-GOOR2BV5.js} +2 -2
- package/dist/cli/chunks/{pipeline-VWTYUZB7.js → pipeline-5NSFQQIX.js} +2 -2
- package/dist/cli/chunks/{platform-WFJJ3X2E.js → platform-SQM34J5G.js} +2 -2
- package/dist/cli/chunks/{plugin-744TPUSG.js → plugin-UQJZRMZG.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-BD5BLNDR.js → prime-radiant-advanced-wasm-WMDJOL4S.js} +2 -2
- package/dist/cli/chunks/project-root-IO5KRNGL.js +2 -0
- package/dist/cli/chunks/protocol-executor-U2CUDWDE.js +2 -0
- package/dist/cli/chunks/{protocol-handler-JIBILI74.js → protocol-handler-OBDCVY6X.js} +2 -2
- package/dist/cli/chunks/{prove-MNOL5FYW.js → prove-XDC7I4XT.js} +2 -2
- package/dist/cli/chunks/qe-reasoning-bank-DQSSX2IP.js +2 -0
- package/dist/cli/chunks/{quality-JEGBDGGX.js → quality-L4GQ6WX4.js} +2 -2
- package/dist/cli/chunks/{quality-gate-SYJ6ROMI.js → quality-gate-MJG66LKN.js} +3 -3
- package/dist/cli/chunks/queen-coordinator-6FN4BZIX.js +2 -0
- package/dist/cli/chunks/{real-embeddings-ZWXS5ZFV.js → real-embeddings-HW4G2LWL.js} +2 -2
- package/dist/cli/chunks/{ref-validation-RRHUFW2N.js → ref-validation-FC7JOJ2C.js} +2 -2
- package/dist/cli/chunks/{roocode-installer-XFO6JSVN.js → roocode-installer-KWS4CEIC.js} +2 -2
- package/dist/cli/chunks/router-YUO3I7RU.js +2 -0
- package/dist/cli/chunks/routing-feedback-36SLQGJE.js +2 -0
- package/dist/cli/chunks/{routing-handler-L2K3JASE.js → routing-handler-QF4WVB2S.js} +2 -2
- package/dist/cli/chunks/{ruvector-commands-A6CINHGM.js → ruvector-commands-2MTCOUK6.js} +2 -2
- package/dist/cli/chunks/rvf-dual-writer-FRYZH3WZ.js +2 -0
- package/dist/cli/chunks/rvf-migration-adapter-XXNITL5I.js +2 -0
- package/dist/cli/chunks/{rvf-migration-coordinator-T4RY7L53.js → rvf-migration-coordinator-BREJCXWN.js} +2 -2
- package/dist/cli/chunks/rvf-native-adapter-D2WWKJIV.js +2 -0
- package/dist/cli/chunks/{rvf-store-integrity-IR33TGQS.js → rvf-store-integrity-KKC6HOJD.js} +2 -2
- package/dist/cli/chunks/safe-db-4RRIGRXD.js +2 -0
- package/dist/cli/chunks/schedule-25RTO4DQ.js +2 -0
- package/dist/cli/chunks/scheduler-BPIOJZ5P.js +2 -0
- package/dist/cli/chunks/{security-Z5GDE2IH.js → security-OSAE7VAP.js} +3 -3
- package/dist/cli/chunks/{shared-rvf-adapter-SIZMEHPM.js → shared-rvf-adapter-COUOS665.js} +2 -2
- package/dist/cli/chunks/{shared-rvf-dual-writer-HLM65RDS.js → shared-rvf-dual-writer-YXMPZKQE.js} +2 -2
- package/dist/cli/chunks/sqlite-persistence-EDF47DDX.js +2 -0
- package/dist/cli/chunks/{standalone-memory-SKSZG7P5.js → standalone-memory-E6JBMOIL.js} +2 -2
- package/dist/cli/chunks/{status-handler-766YOOMJ.js → status-handler-AFTCIYIX.js} +2 -2
- package/dist/cli/chunks/{structural-health-M45FNOLT.js → structural-health-2FROCEI4.js} +2 -2
- package/dist/cli/chunks/{sync-B2U366I3.js → sync-VAYTOWDC.js} +2 -2
- package/dist/cli/chunks/{sync-6CJ24B5T.js → sync-YIQYOFGW.js} +2 -2
- package/dist/cli/chunks/task-handler-KVQHDEX3.js +62 -0
- package/dist/cli/chunks/task-handlers-MVVECQA6.js +9 -0
- package/dist/cli/chunks/{test-TODH7KRF.js → test-5JSVTOMY.js} +4 -4
- package/dist/cli/chunks/test-runner-process-LEPF2OSS.js +2 -0
- package/dist/cli/chunks/{test-scheduling-VMVMVRHT.js → test-scheduling-HBOHVLI3.js} +3 -3
- package/dist/cli/chunks/{token-bootstrap-XQW7BMCK.js → token-bootstrap-5VEPTPFA.js} +2 -2
- package/dist/cli/chunks/{token-usage-JCZEIRKO.js → token-usage-TBJHDLY6.js} +2 -2
- package/dist/cli/chunks/{transformers-U2ML3OHE.js → transformers-VAWYMHMZ.js} +2 -2
- package/dist/cli/chunks/tree-sitter-wasm-parser-TSZTCMFV.js +2 -0
- package/dist/cli/chunks/{types-GGEPCHP6.js → types-R5SDZU2E.js} +2 -2
- package/dist/cli/chunks/unified-memory-TLGSSLMI.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-MSUR7ZOO.js +2 -0
- package/dist/cli/chunks/unified-persistence-VFFOTWK7.js +2 -0
- package/dist/cli/chunks/{upgrade-T5GRM7HS.js → upgrade-K5PIHXRB.js} +2 -2
- package/dist/cli/chunks/{validate-XMUJPLP3.js → validate-RPTS7RYJ.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-KJLF7JEH.js → validate-swarm-B2ZL556X.js} +2 -2
- package/dist/cli/chunks/visual-security-6Q44XNLB.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-LOHVZ7G5.js → web-tree-sitter-K4DUJC32.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-33FBTXJU.js → windsurf-installer-OK2AJN35.js} +2 -2
- package/dist/cli/chunks/witness-chain-KDOMXDQX.js +2 -0
- package/dist/cli/chunks/witness-chain-N3OY2RMH.js +2 -0
- package/dist/cli/chunks/{witness-chain-repair-VWBO4NXE.js → witness-chain-repair-L6Y5RFXR.js} +2 -2
- package/dist/cli/chunks/{witness-chain-verifier-BHJ3ZAEK.js → witness-chain-verifier-N4CW7FZX.js} +2 -2
- package/dist/cli/chunks/{witness-key-manager-WNVPH2Z3.js → witness-key-manager-TDNPS3WD.js} +2 -2
- package/dist/cli/chunks/{workflow-6QR5MQTO.js → workflow-XRZA3YCY.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-CVNNT2RJ.js +2 -0
- package/dist/cli/chunks/{wrappers-EHOL62TS.js → wrappers-5JIFWKN6.js} +2 -2
- package/dist/cli/commands/code.js +6 -0
- package/dist/cli/commands/fleet-run.d.ts +12 -0
- package/dist/cli/commands/fleet-run.js +175 -0
- package/dist/cli/commands/fleet.js +2 -117
- package/dist/cli/handlers/task-handler.d.ts +5 -0
- package/dist/cli/handlers/task-handler.js +20 -0
- package/dist/cli/utils/fleet-operation.d.ts +5 -2
- package/dist/cli/utils/fleet-operation.js +13 -2
- package/dist/cli/utils/fleet-result.d.ts +16 -2
- package/dist/cli/utils/fleet-result.js +26 -21
- package/dist/cli/utils/fleet-shard.d.ts +36 -0
- package/dist/cli/utils/fleet-shard.js +110 -0
- package/dist/coordination/handlers/code-intelligence-handlers.js +21 -1
- package/dist/coordination/handlers/handler-types.d.ts +2 -2
- package/dist/coordination/handlers/handler-utils.d.ts +6 -0
- package/dist/coordination/handlers/handler-utils.js +14 -4
- package/dist/coordination/handlers/misc-handlers.js +5 -2
- package/dist/coordination/handlers/quality-handlers.js +2 -2
- package/dist/coordination/handlers/security-handlers.js +12 -2
- package/dist/coordination/protocols/security-audit.js +11 -1
- package/dist/coordination/task-executor.js +7 -2
- package/dist/domains/code-intelligence/coordinator-gnn.d.ts +2 -16
- package/dist/domains/code-intelligence/coordinator-gnn.js +1 -62
- package/dist/domains/code-intelligence/coordinator.d.ts +12 -6
- package/dist/domains/code-intelligence/coordinator.js +24 -27
- package/dist/domains/code-intelligence/interfaces.d.ts +9 -0
- package/dist/domains/code-intelligence/services/semantic-analyzer.d.ts +43 -5
- package/dist/domains/code-intelligence/services/semantic-analyzer.js +134 -71
- package/dist/domains/coverage-analysis/collected-metrics.d.ts +10 -0
- package/dist/domains/coverage-analysis/collected-metrics.js +29 -0
- package/dist/domains/coverage-analysis/services/coverage-analyzer.js +11 -3
- package/dist/domains/coverage-analysis/services/coverage-parser.d.ts +2 -0
- package/dist/domains/coverage-analysis/services/coverage-parser.js +18 -2
- package/dist/domains/quality-assessment/coherence/gate-controller.js +16 -4
- package/dist/domains/quality-assessment/coherence/lambda-calculator.d.ts +8 -0
- package/dist/domains/quality-assessment/coherence/lambda-calculator.js +57 -14
- package/dist/domains/quality-assessment/coherence/types.d.ts +12 -7
- package/dist/domains/quality-assessment/coordinator-gate-evaluation.js +3 -1
- package/dist/domains/quality-assessment/coordinator-reports.d.ts +30 -10
- package/dist/domains/quality-assessment/coordinator-reports.js +93 -57
- package/dist/domains/quality-assessment/coordinator.d.ts +14 -40
- package/dist/domains/quality-assessment/coordinator.js +10 -4
- package/dist/domains/quality-assessment/interfaces.d.ts +2 -0
- package/dist/domains/quality-assessment/services/coherence-gate.js +15 -2
- package/dist/domains/quality-assessment/services/quality-gate.js +6 -4
- package/dist/domains/security-compliance/index.d.ts +1 -1
- package/dist/domains/security-compliance/interfaces.d.ts +46 -5
- package/dist/domains/security-compliance/services/scanners/dast-auth-testing.d.ts +3 -3
- package/dist/domains/security-compliance/services/scanners/dast-auth-testing.js +15 -14
- package/dist/domains/security-compliance/services/scanners/dast-helpers.d.ts +8 -9
- package/dist/domains/security-compliance/services/scanners/dast-helpers.js +19 -44
- package/dist/domains/security-compliance/services/scanners/dast-injection-testing.d.ts +3 -3
- package/dist/domains/security-compliance/services/scanners/dast-injection-testing.js +13 -9
- package/dist/domains/security-compliance/services/scanners/dast-requests.d.ts +54 -0
- package/dist/domains/security-compliance/services/scanners/dast-requests.js +125 -0
- package/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts +5 -1
- package/dist/domains/security-compliance/services/scanners/dast-scanner.js +125 -155
- package/dist/domains/security-compliance/services/scanners/index.d.ts +1 -1
- package/dist/domains/security-compliance/services/scanners/index.js +1 -1
- package/dist/domains/security-compliance/services/scanners/scanner-types.d.ts +2 -2
- package/dist/domains/security-compliance/services/security-auditor-dast.js +183 -212
- package/dist/domains/security-compliance/services/security-auditor-reports.js +5 -1
- package/dist/domains/security-compliance/services/security-auditor.d.ts +11 -3
- package/dist/domains/security-compliance/services/security-auditor.js +106 -65
- package/dist/domains/test-execution/coordinator.d.ts +2 -1
- package/dist/domains/test-execution/coordinator.js +33 -27
- package/dist/domains/test-execution/interfaces.d.ts +5 -0
- package/dist/domains/test-execution/services/test-executor.d.ts +6 -0
- package/dist/domains/test-execution/services/test-executor.js +16 -4
- package/dist/domains/visual-accessibility/coordinator.js +34 -9
- package/dist/domains/visual-accessibility/interfaces.d.ts +27 -0
- package/dist/domains/visual-accessibility/plugin.js +5 -0
- package/dist/domains/visual-accessibility/services/accessibility-tester-heuristics.d.ts +13 -21
- package/dist/domains/visual-accessibility/services/accessibility-tester-heuristics.js +13 -297
- package/dist/domains/visual-accessibility/services/accessibility-tester.d.ts +13 -5
- package/dist/domains/visual-accessibility/services/accessibility-tester.js +96 -73
- package/dist/integrations/embeddings/index/HNSWIndex.js +8 -4
- package/dist/integrations/ruvector/transfer-coherence-stub.js +5 -10
- package/dist/mcp/bundle.js +480 -480
- package/dist/mcp/handlers/domain-handler-configs.d.ts +8 -0
- package/dist/mcp/handlers/domain-handler-configs.js +9 -2
- package/dist/mcp/handlers/handler-factory.js +3 -0
- package/dist/mcp/handlers/model-route-handlers.d.ts +107 -0
- package/dist/mcp/handlers/model-route-handlers.js +139 -0
- package/dist/mcp/handlers/orchestrate-routes.js +41 -3
- package/dist/mcp/handlers/task-handlers.d.ts +3 -251
- package/dist/mcp/handlers/task-handlers.js +6 -828
- package/dist/mcp/handlers/task-inference.d.ts +26 -0
- package/dist/mcp/handlers/task-inference.js +156 -0
- package/dist/mcp/handlers/task-learning-handlers.d.ts +92 -0
- package/dist/mcp/handlers/task-learning-handlers.js +230 -0
- package/dist/mcp/handlers/task-orchestrate-handler.d.ts +73 -0
- package/dist/mcp/handlers/task-orchestrate-handler.js +361 -0
- package/dist/mcp/protocol-server.js +12 -2
- package/dist/mcp/tools/code-intelligence/analyze.js +3 -6
- package/dist/mcp/tools/coverage-analysis/index.d.ts +4 -0
- package/dist/mcp/tools/coverage-analysis/index.js +8 -2
- package/dist/mcp/tools/visual-accessibility/index.d.ts +7 -0
- package/dist/mcp/tools/visual-accessibility/index.js +29 -13
- package/dist/shared/events/domain-events.d.ts +2 -0
- package/dist/shared/metrics/code-metrics.js +21 -3
- package/dist/shared/parsers/typescript-parser.d.ts +6 -0
- package/dist/shared/parsers/typescript-parser.js +13 -1
- package/package.json +1 -1
- package/dist/cli/chunks/adapter-HL7MOCQN.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-OZ2DXB4G.js +0 -2
- package/dist/cli/chunks/base-WIM7G3HC.js +0 -2
- package/dist/cli/chunks/browser-workflow-QRKCFVR3.js +0 -2
- package/dist/cli/chunks/chunk-QSGEBCDB.js +0 -62
- package/dist/cli/chunks/chunk-UJNGGFGX.js +0 -2
- package/dist/cli/chunks/chunk-VXVTFKRA.js +0 -2
- package/dist/cli/chunks/chunk-XCNSGSKV.js +0 -3
- package/dist/cli/chunks/client-4PNYDFYS.js +0 -2
- package/dist/cli/chunks/core-handlers-ODO6LUWQ.js +0 -2
- package/dist/cli/chunks/cross-domain-router-DT4MHJKK.js +0 -2
- package/dist/cli/chunks/domain-transfer-L3F6AES2.js +0 -2
- package/dist/cli/chunks/dream-QOB3JCOM.js +0 -2
- package/dist/cli/chunks/file-discovery-BN76S2PR.js +0 -2
- package/dist/cli/chunks/fleet-43YMXACN.js +0 -46
- package/dist/cli/chunks/heartbeat-scheduler-3NNP4WCP.js +0 -2
- package/dist/cli/chunks/hnsw-adapter-MZR7Y4WF.js +0 -2
- package/dist/cli/chunks/hnsw-index-HE4AX22U.js +0 -2
- package/dist/cli/chunks/hybrid-backend-IHUHB3Y2.js +0 -2
- package/dist/cli/chunks/impact-analyzer-FI6GI6PD.js +0 -2
- package/dist/cli/chunks/init-wizard-WLQKH5Y5.js +0 -2
- package/dist/cli/chunks/kernel-2WZOQEZS.js +0 -2
- package/dist/cli/chunks/knowledge-graph-G3LVKK6P.js +0 -2
- package/dist/cli/chunks/llm-router-service-MM75HKWJ.js +0 -2
- package/dist/cli/chunks/load-test-BEWEE44J.js +0 -2
- package/dist/cli/chunks/memory-backend-NYKBBKZR.js +0 -2
- package/dist/cli/chunks/pattern-null-store-QGPUIV6M.js +0 -2
- package/dist/cli/chunks/project-root-C7ELXZRK.js +0 -2
- package/dist/cli/chunks/protocol-executor-SUVE33BM.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-YWZMMGJB.js +0 -2
- package/dist/cli/chunks/queen-coordinator-ZFAKXRN7.js +0 -2
- package/dist/cli/chunks/router-4FTAVYLJ.js +0 -2
- package/dist/cli/chunks/routing-feedback-IO2KOWMJ.js +0 -2
- package/dist/cli/chunks/rvf-dual-writer-KCIRNE7C.js +0 -2
- package/dist/cli/chunks/rvf-migration-adapter-MFC5WTJU.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-I3KWHE7X.js +0 -2
- package/dist/cli/chunks/safe-db-QXDZ6QY3.js +0 -2
- package/dist/cli/chunks/schedule-CZKD6RIY.js +0 -2
- package/dist/cli/chunks/scheduler-BLA3Q4CH.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-XIUYDJC4.js +0 -2
- package/dist/cli/chunks/task-handler-P6IFLCKP.js +0 -62
- package/dist/cli/chunks/task-handlers-DPWMUKFC.js +0 -9
- package/dist/cli/chunks/test-runner-process-46IPK3GH.js +0 -2
- package/dist/cli/chunks/tree-sitter-wasm-parser-MOI2WWNJ.js +0 -2
- package/dist/cli/chunks/unified-memory-FL26RTV3.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-E2BPTH3U.js +0 -2
- package/dist/cli/chunks/unified-persistence-5ZOUPKHF.js +0 -2
- package/dist/cli/chunks/visual-security-IJVPO5FA.js +0 -2
- package/dist/cli/chunks/witness-chain-5FAFCQKP.js +0 -2
- package/dist/cli/chunks/witness-chain-V2M32W5D.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-3JLF3IX7.js +0 -2
|
@@ -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.15.
|
|
2
|
-
import{a as T}from"./chunk-
|
|
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.15.13");process.exit(0)}
|
|
2
|
+
import{a as T}from"./chunk-KWYH3FI4.js";import{r as y,v as D}from"./chunk-3Y7TJFHU.js";import"./chunk-7CMTY45A.js";import"./chunk-VTOBUZL6.js";import"./chunk-KDNJ4F3P.js";import"./chunk-JRRXCODW.js";import"./chunk-XNBOGCF3.js";import"./chunk-KV4T4MXK.js";import"./chunk-TWDW32W2.js";import"./chunk-AQSVJNEH.js";import"./chunk-OCAEXYFA.js";import"./chunk-DVGRPK7A.js";import{i as _}from"./chunk-H4H2YSFH.js";import"./chunk-TOQWL2ZF.js";import"./chunk-UT2VZ33P.js";import{d as x,e as R}from"./chunk-GB6HBNH2.js";import"./chunk-UOC3O6RP.js";import"./chunk-NT4DBXSX.js";import"./chunk-WOCGL4QP.js";import"./chunk-J2ZIFFM6.js";import"./chunk-RF7HWBHN.js";import"./chunk-DNDL7SOS.js";import{a as f,e as S}from"./chunk-3Y2ROSCL.js";import"./chunk-WO274FRI.js";import"./chunk-ZAKQLAHT.js";D();S();R();var A=x("ExperienceCapture"),O=600*1e3,M=120*1e3,U=1024*1024;function m(e,t=U){if(e==null)return null;try{let n=JSON.stringify(e);return n.length>t?(console.warn(`[ExperienceCaptureMiddleware] JSON payload exceeds size limit (${n.length} > ${t} bytes), truncating`),JSON.stringify({_truncated:!0,_originalSize:n.length,_preview:typeof e=="object"?Object.keys(e).slice(0,10):String(e).slice(0,100)})):n}catch(n){return console.warn("[ExperienceCaptureMiddleware] Failed to serialize JSON:",n),null}}var u=new Map,p=null;function I(){let e=Date.now(),t=0;for(let[n,s]of u){let i=e-s.context.startedAt.getTime();i>O&&(console.warn(`[ExperienceCaptureMiddleware] Cleaning up stale experience: ${n} (age=${Math.round(i/1e3)}s, domain=${s.context.domain})`),u.delete(n),t++)}return t>0&&console.log(`[ExperienceCaptureMiddleware] Cleaned ${t} stale experiences`),t}function F(){p||(p=setInterval(()=>{I()},M),p.unref())}function W(){p&&(clearInterval(p),p=null)}var c=null,E=null;async function L(){return E||(E=k(),E)}async function k(){try{c=y(),await c.initialize();let e=c.getDatabase();if(e){let t=!1;if(e.prepare("SELECT COUNT(*) as cnt FROM sqlite_master WHERE type='table' AND name='captured_experiences'").get().cnt>0){let a=e.prepare("PRAGMA table_info(captured_experiences)").all(),r=new Set(a.map(d=>d.name));!r.has("success")||!r.has("task")?(e.exec("ALTER TABLE captured_experiences RENAME TO captured_experiences_v2_backup"),t=!0):(r.has("domain")||e.exec("ALTER TABLE captured_experiences ADD COLUMN domain TEXT NOT NULL DEFAULT ''"),r.has("source")||e.exec("ALTER TABLE captured_experiences ADD COLUMN source TEXT DEFAULT 'middleware'"))}else t=!0;t&&e.exec(`
|
|
3
3
|
CREATE TABLE IF NOT EXISTS captured_experiences (
|
|
4
4
|
id TEXT PRIMARY KEY,
|
|
5
5
|
task TEXT NOT NULL,
|
|
@@ -27,7 +27,7 @@ import{a as T}from"./chunk-UZED4YZ5.js";import{r as y,v as D}from"./chunk-L7NGKA
|
|
|
27
27
|
(id, task, agent, domain, success, quality, duration_ms, model_tier,
|
|
28
28
|
routing_json, steps_json, result_json, error, started_at, completed_at, source)
|
|
29
29
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, datetime('now'), ?)
|
|
30
|
-
`).run(t.id,e.task,e.agent,e.domain,t.success?1:0,t.quality,t.durationMs,e.modelTier||null,m(e.routing),m(t.steps),m(t.result),t.error||null,e.startedAt.toISOString(),"middleware"),q(n,t.id,e.task,e.domain).catch(i=>{A.warn("Embedding computation failed",{error:i instanceof Error?i.message:String(i),experienceId:t.id,domain:e.domain})})}catch(n){console.error("[ExperienceCaptureMiddleware] Failed to persist experience:",n)}}async function q(e,t,n,s){try{let{computeRealEmbedding:i}=await import("./real-embeddings-
|
|
30
|
+
`).run(t.id,e.task,e.agent,e.domain,t.success?1:0,t.quality,t.durationMs,e.modelTier||null,m(e.routing),m(t.steps),m(t.result),t.error||null,e.startedAt.toISOString(),"middleware"),q(n,t.id,e.task,e.domain).catch(i=>{A.warn("Embedding computation failed",{error:i instanceof Error?i.message:String(i),experienceId:t.id,domain:e.domain})})}catch(n){console.error("[ExperienceCaptureMiddleware] Failed to persist experience:",n)}}async function q(e,t,n,s){try{let{computeRealEmbedding:i}=await import("./real-embeddings-HW4G2LWL.js"),a=`${s}: ${n}`.slice(0,512),r=await i(a);if(!r||r.length===0)return;let d=Buffer.from(new Float32Array(r).buffer);e.prepare(`
|
|
31
31
|
UPDATE captured_experiences
|
|
32
32
|
SET embedding = ?, embedding_dimension = ?
|
|
33
33
|
WHERE id = ? AND embedding IS NULL
|
|
@@ -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.15.
|
|
2
|
-
import"./chunk-
|
|
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.15.13");process.exit(0)}
|
|
2
|
+
import"./chunk-ZAKQLAHT.js";function n(e){return e.includes("--version")||e.includes("-v")?"cli-version":e[2]==="health"?"cli-health":process.env.AQE_MCP==="1"||process.env.AQE_MCP_MODE==="1"?"mcp":process.env.AQE_HTTP_PORT?"http":"cli-full"}function o(e){return process.env.AQE_FAST_PATHS==="false"?!1:e.includes("--version")||e.includes("-v")}function r(e){return e[2]==="health"}export{n as detectBootMode,r as isHealthFastPath,o as isVersionFastPath};
|
|
@@ -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.15.
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"./chunk-
|
|
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.15.13");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"./chunk-XPRVF4YE.js";import"./chunk-ZAKQLAHT.js";q();export{a as DEFAULT_FEATURE_FLAGS,n as configureForCI,o as configureForDevelopment,p as configureForHeuristicMode,b as getVibiumFeatureFlags,m as initVibiumFeatureFlagsFromEnv,j as isAutoRetryEnabled,l as isAxeCoreEnabled,e as isBrowserModeEnabled,i as isDefaultHeadless,h as isE2EExecutionEnabled,f as isScreenshotCaptureEnabled,g as isVisualRegressionEnabled,d as resetVibiumFeatureFlags,c as setVibiumFeatureFlags,k as shouldLogPerformanceMetrics};
|
|
@@ -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.15.
|
|
2
|
-
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,S as R,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-
|
|
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.15.13");process.exit(0)}
|
|
2
|
+
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,S as R,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-WOCGL4QP.js";import"./chunk-ZAKQLAHT.js";R();export{a as DEFAULT_FEATURE_FLAGS,b as getRuVectorFeatureFlags,A as getRvfMigrationStage,Q as initFeatureFlagsFromEnv,y as isAgentMemoryBranchingEnabled,t as isCNNVisualRegressionEnabled,O as isCognitiveRoutingEnabled,v as isCoherenceActionGateEnabled,r as isCoherenceGateEnabled,H as isColdTierGNNEnabled,o as isCrossDomainTransferEnabled,C as isCusumDriftDetectionEnabled,u as isDAGAttentionEnabled,D as isDeltaEventSourcingEnabled,l as isDeterministicDitherEnabled,M as isEpropOnlineLearningEnabled,E as isEwcPlusPlusEnabled,f as isFlashAttentionEnabled,g as isGNNIndexEnabled,N as isGrangerCausalityEnabled,F as isGraphMAEEnabled,B as isHDCFingerprintingEnabled,p as isHnswHealthMonitorEnabled,G as isHopfieldMemoryEnabled,P as isHyperbolicHnswEnabled,I as isMetaLearningEnabled,k as isMetadataFilteringEnabled,i as isNativeHNSWEnabled,m as isNeuralRoutingEnabled,x as isRVFPatternStoreEnabled,w as isReasoningQECEnabled,q as isRegretTrackingEnabled,L as isReservoirReplayEnabled,e as isSONAEnabled,n as isSONAThreeLoopEnabled,K as isSpectralSparsificationEnabled,J as isSublinearSolverEnabled,j as isTemporalCompressionEnabled,z as isUnifiedHnswEnabled,s as isWitnessChainEnabled,d as resetRuVectorFeatureFlags,c as setRuVectorFeatureFlags,h as shouldLogMigrationMetrics};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
+
import{a,b,c}from"./chunk-6Z7PRBSG.js";import"./chunk-5MDERQH3.js";import"./chunk-ZAKQLAHT.js";export{a as SOURCE_EXTENSIONS,c as filterTestFilesForFramework,b as walkSourceFiles};
|
|
@@ -0,0 +1,44 @@
|
|
|
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.15.13");process.exit(0)}
|
|
2
|
+
import{a as T,b as ye,c as _,d as V,e as he,f as G,g as we,j as ke}from"./chunk-3LJ7LQMV.js";import{a as be}from"./chunk-LFJALJOA.js";import{b as q}from"./chunk-6Z7PRBSG.js";import{d as z,e as C}from"./chunk-W26B7ERY.js";import{a as O,b as fe}from"./chunk-7NA7JXNB.js";import{a as pe}from"./chunk-NW7IBHJA.js";import"./chunk-OFACHK5O.js";import"./chunk-WNQS4WTS.js";import{e as me}from"./chunk-NU3W5WFT.js";import{a as ge}from"./chunk-SVLQRAMF.js";import"./chunk-LL7LDPXS.js";import{f as le,k as ce,l as de,o as W}from"./chunk-K65CGKLD.js";import{a as ue}from"./chunk-MGZ5FJUW.js";import{K as ae,w as B}from"./chunk-MVVB7C2E.js";import"./chunk-BEGR4D6N.js";import"./chunk-LUZNKJE6.js";import"./chunk-YXRASAPI.js";import"./chunk-MB46UBGY.js";import"./chunk-5MDERQH3.js";import"./chunk-BK577VL7.js";import"./chunk-YZEXYO4W.js";import"./chunk-S5AZCIZS.js";import"./chunk-756CGMEH.js";import"./chunk-K3TLLJMX.js";import"./chunk-ASQYASNV.js";import"./chunk-M6AAGIG7.js";import"./chunk-KCW47QR5.js";import"./chunk-VTDFVFST.js";import"./chunk-C6JTLKG7.js";import"./chunk-N4CYAKOX.js";import{d as re}from"./chunk-HQZGPJYG.js";import"./chunk-X2Z7F4EU.js";import{d as se}from"./chunk-SE4VNN4I.js";import"./chunk-KUAKV3IW.js";import"./chunk-5ZGM3RMH.js";import"./chunk-42J34YG4.js";import"./chunk-G2Q66Z23.js";import"./chunk-CT6SAVXQ.js";import"./chunk-GII6UM3F.js";import{a as ie}from"./chunk-SG3NX7QE.js";import"./chunk-UDQSYWVF.js";import"./chunk-JQGMW45H.js";import"./chunk-KB56CPU4.js";import"./chunk-GHY6Z6KO.js";import"./chunk-PB6J6HAA.js";import{b as oe}from"./chunk-NZ3GUMB2.js";import"./chunk-JGZ722G3.js";import"./chunk-3RZV5DGO.js";import"./chunk-I3C7JOXC.js";import"./chunk-A64JFBWI.js";import"./chunk-XPRVF4YE.js";import"./chunk-YBQH2VOP.js";import"./chunk-CV77DMDQ.js";import"./chunk-3AN5TNGD.js";import"./chunk-3YNLWPBF.js";import"./chunk-LZYQHVD4.js";import"./chunk-HZ5NXFXH.js";import"./chunk-YQFLQE53.js";import"./chunk-5K26BEYB.js";import"./chunk-VRHRBAEM.js";import"./chunk-IJUHSJ2U.js";import"./chunk-KDVZND5Q.js";import"./chunk-PIDQVU3L.js";import"./chunk-72ASBE35.js";import"./chunk-TSQC2KKZ.js";import"./chunk-SYV2V3PL.js";import"./chunk-NZD4DPSU.js";import"./chunk-E7CLYGS7.js";import"./chunk-GU5HNCWI.js";import"./chunk-5VMAV6T6.js";import"./chunk-TWJTK4CC.js";import"./chunk-GHM6MQNK.js";import"./chunk-XEAEYC6Y.js";import"./chunk-QDEJ4CI2.js";import"./chunk-6KATY3KS.js";import"./chunk-LWR3FV3Y.js";import"./chunk-C7JM7CD3.js";import"./chunk-TCBBNUBP.js";import"./chunk-H4GG2NLO.js";import"./chunk-Q3UDLV5Z.js";import"./chunk-YSZ5OE3Z.js";import"./chunk-SSU73QAX.js";import"./chunk-QPNG5ZN2.js";import"./chunk-PHP5UBT4.js";import"./chunk-P7A4NKTZ.js";import"./chunk-T3PGQFDI.js";import"./chunk-VRVMIPTM.js";import"./chunk-4OVC4RIL.js";import"./chunk-UTRV7T2N.js";import"./chunk-3Y7TJFHU.js";import"./chunk-7CMTY45A.js";import"./chunk-VTOBUZL6.js";import"./chunk-KDNJ4F3P.js";import"./chunk-JRRXCODW.js";import"./chunk-XNBOGCF3.js";import"./chunk-KV4T4MXK.js";import"./chunk-TWDW32W2.js";import"./chunk-AQSVJNEH.js";import"./chunk-OCAEXYFA.js";import"./chunk-526QYFJU.js";import"./chunk-WKGTGOYS.js";import"./chunk-DVGRPK7A.js";import"./chunk-H4H2YSFH.js";import"./chunk-5FKWCZNF.js";import{a as M}from"./chunk-NURIILUB.js";import"./chunk-TOQWL2ZF.js";import"./chunk-UT2VZ33P.js";import"./chunk-GB6HBNH2.js";import"./chunk-UOC3O6RP.js";import"./chunk-NT4DBXSX.js";import"./chunk-WOCGL4QP.js";import"./chunk-W2QWSQVE.js";import"./chunk-J2ZIFFM6.js";import"./chunk-RF7HWBHN.js";import"./chunk-IC3TQEOA.js";import"./chunk-HD7YIFOI.js";import{d as N,e as je}from"./chunk-DNDL7SOS.js";import{a as ne,e as Ee}from"./chunk-3Y2ROSCL.js";import"./chunk-WO274FRI.js";import"./chunk-ZAKQLAHT.js";import{Command as nt}from"commander";import d from"chalk";Ee();je();import y from"chalk";import{existsSync as Le}from"fs";import{join as H}from"path";var K=class{projectRoot;options;orchestrator;constructor(e){this.options=e,this.projectRoot=e.projectRoot}async checkCodeIntelligence(){if(this.options.skipCodeScan)return console.log(y.yellow(" Code intelligence scan skipped (--skip-code-scan flag)")),{codeIntelligence:{hasIndex:!1,entryCount:0,wasPrompted:!1,scanRequested:!1},shouldProceed:!0,skipReason:"skip-flag"};if(await this.hasCodeIntelligenceIndex()){let o=await this.getKGEntryCount();return console.log(y.green(` \u2713 Code intelligence index found (${o} entries)`)),{codeIntelligence:{hasIndex:!0,entryCount:o,wasPrompted:!1,scanRequested:!1},shouldProceed:!0}}return!this.options.nonInteractive&&(console.log(y.yellow(`
|
|
3
|
+
\u26A0 No code intelligence index found`)),console.log(y.gray(" Building a knowledge graph improves agent accuracy by 80%")),console.log(y.gray(" This is a one-time operation and can be run later with:")),console.log(y.cyan(` aqe code-intelligence index
|
|
4
|
+
`)),await this.promptScan())?{codeIntelligence:{hasIndex:!1,entryCount:0,wasPrompted:!0,scanRequested:!0},shouldProceed:!1,skipReason:"scan-requested"}:(console.log(y.gray(" Continuing without code intelligence index")),{codeIntelligence:{hasIndex:!1,entryCount:0,wasPrompted:!this.options.nonInteractive,scanRequested:!1},shouldProceed:!0})}async runCodeIntelligenceScan(){try{if(console.log(y.blue(`
|
|
5
|
+
Building code intelligence knowledge graph...`)),this.orchestrator||(this.orchestrator=new pe({projectRoot:this.projectRoot,autoMode:!0,...this.options.initOptions})),await this.hasCodeIntelligenceIndex()){let c=await this.getKGEntryCount();return console.log(y.green(` \u2713 Index already exists (${c} entries)`)),{success:!0,entries:c}}let{KnowledgeGraphService:o}=await import("./knowledge-graph-BVD5Z66M.js"),{InMemoryBackend:i}=await import("./memory-backend-7ZLFOVGG.js"),a=new i;await a.initialize();let n=new o(a,{namespace:"code-intelligence:kg",enableVectorEmbeddings:!0,projectRoot:this.projectRoot}),{glob:s}=await import("tinyglobby"),l=await s(["**/*.ts","**/*.tsx","**/*.js","**/*.jsx","**/*.py"],{cwd:this.projectRoot,ignore:["node_modules/**","dist/**","coverage/**",".agentic-qe/**"],expandDirectories:!1});console.log(y.gray(` Indexing ${l.length} files...`));let r=await n.index({paths:l.map(c=>H(this.projectRoot,c)),incremental:!1,includeTests:!0});if(n.destroy(),r.success){let c=r.value.nodesCreated+r.value.edgesCreated;return console.log(y.green(` \u2713 Indexed ${c} knowledge graph entries`)),{success:!0,entries:c}}return console.log(y.yellow(" \u26A0 Code intelligence scan completed with warnings")),{success:!1,entries:0}}catch(e){return console.error(y.red(" \u2717 Code intelligence scan failed:"),ne(e)),{success:!1,entries:0}}}async getStatusForAgents(){let e=await this.hasCodeIntelligenceIndex(),o=e?await this.getKGEntryCount():0;return{codeIntelligenceAvailable:e,knowledgeGraphSize:o,recommendedCapabilities:e?["semantic-search","code-analysis","context-aware"]:["basic-analysis"]}}async hasCodeIntelligenceIndex(){let e=H(this.projectRoot,".agentic-qe","memory.db");if(!Le(e))return!1;try{let o=N(e),i=o.prepare(`
|
|
6
|
+
SELECT COUNT(*) as count FROM kv_store
|
|
7
|
+
WHERE namespace = 'code-intelligence:kg'
|
|
8
|
+
`).get();return o.close(),i.count>0}catch{return!1}}async getKGEntryCount(){let e=H(this.projectRoot,".agentic-qe","memory.db");try{let o=N(e),i=o.prepare(`
|
|
9
|
+
SELECT COUNT(*) as count FROM kv_store
|
|
10
|
+
WHERE namespace LIKE 'code-intelligence:kg%'
|
|
11
|
+
`).get();return o.close(),i.count}catch{return 0}}async promptScan(){let o=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});return new Promise(i=>{o.question(y.white(" Run code intelligence scan now? [Y/n]: "),a=>{o.close();let n=a.trim().toLowerCase();i(n===""||n==="y"||n==="yes")})})}};function Me(t){return new K(t)}async function ve(t,e={}){return await Me({projectRoot:t,...e}).checkCodeIntelligence()}var U={"test-generation":{description:"AI-powered test creation and generation",agentTypes:["test-generator","mutation-tester"]},"test-execution":{description:"Parallel execution, retry, flaky detection",agentTypes:["test-executor","flaky-detector"]},"coverage-analysis":{description:"Sublinear O(log n) gap detection",agentTypes:["coverage-analyzer","gap-detector"]},"quality-assessment":{description:"Quality gates and deployment decisions",agentTypes:["quality-gate","deployment-validator"]},"defect-intelligence":{description:"Prediction and root cause analysis",agentTypes:["defect-predictor","rca-analyst"]},"requirements-validation":{description:"BDD scenarios and testability scoring",agentTypes:["requirements-validator","bdd-generator"]},"code-intelligence":{description:"Knowledge graph and semantic search",agentTypes:["code-indexer","semantic-searcher"]},"security-compliance":{description:"SAST/DAST and compliance scanning",agentTypes:["security-scanner","compliance-auditor"]},"contract-testing":{description:"API contracts and GraphQL validation",agentTypes:["contract-validator","api-tester"]},"visual-accessibility":{description:"Visual regression and a11y testing",agentTypes:["visual-tester","a11y-scanner"]},"chaos-resilience":{description:"Chaos engineering and load testing",agentTypes:["chaos-engineer","load-tester"]},"learning-optimization":{description:"Cross-domain learning and optimization",agentTypes:["learning-optimizer","pattern-recognizer"]}},Se={hierarchical:{description:"Queen-led hierarchy with direct worker control",recommended:"Large teams, clear task delegation"},mesh:{description:"Fully connected peer network for collaboration",recommended:"Small teams, equal peer collaboration"},ring:{description:"Sequential message passing in a ring",recommended:"Pipeline workflows, sequential processing"},adaptive:{description:"Dynamic topology based on workload",recommended:"Variable workloads, auto-scaling needs"},"hierarchical-mesh":{description:"Hybrid combining hierarchy with peer connections",recommended:"Most projects (best of both worlds)"}},Fe={sqlite:{description:"SQLite-based persistent storage",features:["Cross-platform","No setup required","Good for development"]},agentdb:{description:"AgentDB with HNSW vector indexing",features:["150x-12,500x faster search","Vector embeddings","Semantic queries"]},hybrid:{description:"Combined SQLite + AgentDB",features:["Best of both","Fallback support","Production recommended"]}},Q=class extends he{constructor(e){let o=Object.keys(U);super({id:"domains",stepNumber:"3/6",title:"Domain Focus",description:'Select which DDD domains to enable (comma-separated numbers or "all")',instructions:"Each domain brings specialized agents and capabilities",options:[{key:"0",value:"all",label:"all",description:"Enable all 12 domains"},...o.map((i,a)=>({key:String(a+1),value:i,label:i,description:U[i].description,isDefaultSelected:e.includes(i)||e.includes("all")}))],defaultValue:e,validValues:["all",...o],allowEmpty:!1})}async execute(e){let o=await super.execute(e);return o.value.includes("all")?{value:["all"],continue:!0}:o}},Y=class extends ke{constructor(e={}){super(e)}getTitle(){return"Fleet Initialization Wizard"}getSubtitle(){return"Configure your AQE v3 multi-agent fleet"}getConfirmationPrompt(){return"Initialize fleet with these settings?"}isNonInteractive(){return this.options.nonInteractive??!1}getCommands(){let e=ye.checkPatternsExist(this.cwd);return[new V({id:"topology",stepNumber:"1/6",title:"Topology Type",description:"Select the coordination topology for your agent fleet",options:Object.entries(Se).map(([o,i],a)=>({key:String(a+1),value:o,label:o,description:`${i.description}
|
|
12
|
+
Best for: ${i.recommended}`,isRecommended:o==="hierarchical-mesh"})),defaultValue:this.options.defaultTopology||"hierarchical-mesh",validValues:["hierarchical","mesh","ring","adaptive","hierarchical-mesh"]}),new we({id:"maxAgents",stepNumber:"2/6",title:"Max agents",description:"Set the maximum number of agents in your fleet (5-50). More agents = more parallelism, but higher resource usage.",presets:[{key:"1",value:5,label:"5 agents - Minimal (development/testing)"},{key:"2",value:10,label:"10 agents - Small team"},{key:"3",value:15,label:"15 agents - Standard (recommended)"},{key:"4",value:25,label:"25 agents - Large team"},{key:"5",value:50,label:"50 agents - Maximum capacity"}],defaultValue:this.options.defaultMaxAgents||15,min:5,max:50}),new Q(this.options.defaultDomains||["all"]),new V({id:"memoryBackend",stepNumber:"4/6",title:"Memory Backend",description:"Select the memory storage backend for agent coordination",options:Object.entries(Fe).map(([o,i],a)=>({key:String(a+1),value:o,label:o,description:`${i.description}
|
|
13
|
+
Features: ${i.features.join(", ")}`,isRecommended:o==="hybrid"})),defaultValue:this.options.defaultMemoryBackend||"hybrid",validValues:["sqlite","agentdb","hybrid"]}),new G({id:"lazyLoading",stepNumber:"5/6",title:"Enable lazy loading",description:"Enable lazy loading for agents and domains",additionalInfo:"Reduces startup time by loading components on-demand",defaultValue:this.options.defaultLazyLoading??!0}),new G({id:"loadPatterns",stepNumber:"6/6",title:"Load pre-trained patterns",description:"Load pre-trained intelligence patterns from repository",additionalInfo:e?"Pre-trained patterns detected in project":"No pre-trained patterns found (will start fresh)",defaultValue:this.options.defaultLoadPatterns??e})]}buildResult(e){return{topology:e.topology,maxAgents:e.maxAgents,domains:e.domains,memoryBackend:e.memoryBackend,lazyLoading:e.lazyLoading,loadPatterns:e.loadPatterns,cancelled:!1}}printSummary(e){T.printSummaryHeader(),T.printSummaryField("Topology",e.topology),T.printSummaryField("Max Agents",String(e.maxAgents));let o=e.domains.includes("all")?"all (12 domains)":e.domains.join(", ");T.printSummaryField("Domains",o),T.printSummaryField("Memory Backend",e.memoryBackend),T.printSummaryField("Lazy Loading",_.enabledDisabled(e.lazyLoading)),T.printSummaryField("Load Patterns",_.yesNo(e.loadPatterns));let i=Se[e.topology],a=Fe[e.memoryBackend],n={"Topology style":i.description,"Memory features":a.features.slice(0,2).join(", ")};if(!e.domains.includes("all")){let s=new Set;for(let r of e.domains)if(r!=="all"){let c=U[r];c&&c.agentTypes.forEach(m=>s.add(m))}let l=Array.from(s);n["Agent types"]=l.slice(0,4).join(", ")+(l.length>4?"...":"")}T.printDerivedSettings(n)}getDefaults(){return{topology:this.options.defaultTopology||"hierarchical-mesh",maxAgents:this.options.defaultMaxAgents||15,domains:this.options.defaultDomains||["all"],memoryBackend:this.options.defaultMemoryBackend||"hybrid",lazyLoading:this.options.defaultLazyLoading??!0,loadPatterns:this.options.defaultLoadPatterns??!1,cancelled:!1}}getCancelled(){return{topology:"hierarchical-mesh",maxAgents:15,domains:["all"],memoryBackend:"hybrid",lazyLoading:!0,loadPatterns:!1,cancelled:!0}}};async function Te(t={}){return new Y(t).run()}import v from"chalk";import{existsSync as Ne,statSync as Be}from"node:fs";import{extname as We,resolve as qe}from"node:path";var Re=["test","analyze","scan"],$=80,De=new Set([".ts",".tsx",".js",".jsx",".mjs",".cjs"]),R=t=>({success:!1,error:t});async function Ie(t,e,o){let i=qe(e);if(!Ne(i))return R(`Target does not exist: ${e}`);let{skipped:a}=await oe([e],{projectRoot:o,allowDirectory:!0});if(a[0]?.reason==="outside-project-root")return R(`Target ${e} resolves outside the project. Run aqe from the project the target belongs to.`);switch(t){case"test":{let n=q(i,{includeTests:!1});return n.length===0?R(`No source files under ${e} to generate tests for.`):{success:!0,task:{domain:"test-generation",type:"generate-tests",payload:{sourceFiles:n}}}}case"scan":{let n=q(i,{includeTests:!0}).filter(l=>De.has(We(l).toLowerCase()));if(n.length===0)return R(`No files under ${e} that the SAST scanner covers (${[...De].join(" ")}).`);let s=n.filter(l=>Be(l).size>B);return s.length>0?R(`${s.length} files under ${e} are over the ${B/(1024*1024)} MB SAST limit (${s.slice(0,5).join(", ")}${s.length>5?", \u2026":""}). Narrow --target to the source to scan.`):{success:!0,task:{domain:"security-compliance",type:"sast-scan",payload:{files:n}}}}case"analyze":{let n=await ce(i);if(n.status==="no-report")return R(`No coverage report for project ${n.projectRoot}, so there is no coverage to analyze. Run your tests with coverage first (e.g. \`npm test -- --coverage\`), or pass the report file as --target.`);if(n.status==="target-missing")return R(W("target-missing",e,null));let{evaluation:s,projectRoot:l}=n;if(s.status!=="measured")return R(W(s.reason,e,l));let r={files:s.files,summary:be(s.files)},c=le(s.evidence,l);return{success:!0,task:{domain:"coverage-analysis",type:"analyze-coverage",payload:{coverageData:r,threshold:$},...c.length>0?{insufficientEvidence:c}:{}}}}}}import J from"chalk";var _e={scan:"files",test:"sourceFiles"};function Ve(t,e){let o=Math.max(1,Math.min(e,t.length)),i=Math.floor(t.length/o),a=t.length%o,n=[],s=0;for(let l=0;l<o;l++){let r=i+(l<a?1:0);n.push(t.slice(s,s+r)),s+=r}return n}function ze(t,e,o){let i=_e[t];if(!i){let r=o!==void 0&&o>1?`${t} judges one coverage report as a whole, so it runs as one task; --parallel ${o} does not apply.`:void 0;return{payloads:[e],files:[[]],...r?{note:r}:{}}}let a=Array.isArray(e[i])?e[i]:[],s=Ve(a,o??4),l=o!==void 0&&s.length<o?`--parallel ${o} asks for more workers than there are files (${a.length}); ${s.length} run.`:void 0;return{payloads:s.map(r=>({...e,[i]:r})),files:s,...l?{note:l}:{}}}var P=t=>t!==null&&typeof t=="object"&&!Array.isArray(t)?t:void 0,Ge=["critical","high","medium","low","informational","totalFiles"];function X(t,e){let o=t.map(i=>i?.[e]);return o.every(i=>typeof i=="number")?o.reduce((i,a)=>i+a,0):void 0}function He(t){if(!t.every(r=>P(r.summary)&&Array.isArray(r.vulnerabilities)))return;let e=t.map(r=>P(r.summary)),o={};for(let r of Ge){let c=X(e,r);c!==void 0&&(o[r]=c)}let i=t.map(r=>P(r.coverage)),a=X(i,"filesScanned"),n=X(i,"linesScanned"),s=t.map(r=>P(r.evidence)?.completeness),l=s.every(r=>typeof r=="string")?s.every(r=>r==="complete")?"complete":s.every(r=>r==="none")?"none":"partial":void 0;return{vulnerabilities:t.flatMap(r=>r.vulnerabilities),summary:o,...a!==void 0||n!==void 0?{coverage:{...a!==void 0?{filesScanned:a}:{},...n!==void 0?{linesScanned:n}:{}}}:{},...l?{evidence:{completeness:l}}:{}}}function Ce(t,e){if(e.length===0)return;if(e.length===1)return e[0];let o=e.map(P);if(o.some(a=>!a))return;let i=o;switch(t){case"scan":return He(i);case"test":return i.every(a=>Array.isArray(a.tests))?{tests:i.flatMap(a=>a.tests)}:void 0;case"analyze":return}}var Ke=["critical","high","medium","low","informational"],E=10,x=t=>t!==null&&typeof t=="object"?t:void 0,xe=t=>typeof t=="number"?`${t}%`:"n/a";function Ue(t){let e=x(t.summary),o=Array.isArray(t.vulnerabilities)?t.vulnerabilities:void 0;if(!e||!o)return j("scan");let i=c=>Number(e[c]??0),a=x(t.coverage),n=x(t.evidence),s=typeof n?.completeness=="string"?n.completeness:"unknown",l=[`Findings: ${Ke.map(c=>`${c} ${i(c)}`).join(", ")}`,`Files scanned: ${a?.filesScanned??"n/a"} (evidence: ${s})`,...o.slice(0,E).map(c=>` [${c.severity??"?"}] ${c.title??"untitled"} @ ${c.location?.file??"?"}:${c.location?.line??"?"}`)];o.length>E&&l.push(` \u2026 ${o.length-E} more (--format json lists every finding)`);let r=[];return i("critical")+i("high")>0&&r.push(`${i("critical")} critical and ${i("high")} high findings`),s!=="complete"&&r.push(`scan evidence is ${s}: not every requested file was analyzed`),{lines:l,passed:r.length===0,reasons:r}}function Qe(t){if(!Array.isArray(t.tests))return j("test");let e=t.tests,o=e.reduce((l,r)=>l+(typeof r.assertions=="number"?r.assertions:0),0),i=[...new Set(e.map(l=>l.generationMode).filter(l=>typeof l=="string"))],a=e.filter(l=>x(l.qualityGateResult)?.passed===!1),n=[`Tests generated: ${e.length}, assertions: ${o}`+(i.length>0?`, generation mode: ${i.join(", ")}`:""),`Quality gate: ${a.length===0?"passed":`failed for ${a.length} of ${e.length} tests`}`,...a.slice(0,E).map(l=>` ${l.testFile??l.name??l.id}`)],s=[];return e.length===0&&s.push("no tests were generated"),a.length>0&&s.push(`${a.length} generated tests failed the test quality gate`),{lines:n,passed:s.length===0,reasons:s}}function Ye(t){let e=x(t.summary);if(!e||typeof e.line!="number")return j("analyze");let o=x(t.collected),i=c=>o?.[c]!==!1,a=c=>i(c)?xe(e[c]):"n/a (not collected)",n=c=>typeof e[c]=="number"?e[c]:0,s=de({line:n("line"),branch:n("branch"),function:n("function"),statement:n("statement")},$,{branch:i("branch"),function:i("function"),statement:i("statement")}),l=[`Coverage: line ${xe(e.line)}, branch ${a("branch")}, function ${a("function")}, statement ${a("statement")} over ${e.files??"n/a"} files`,`Overall over collected metrics: ${s.overall.toFixed(1)}% (threshold ${$}%)`],r=s.meetsThreshold?[]:[`coverage is below the ${$}% threshold`];return{lines:l,passed:r.length===0,reasons:r}}function j(t){let e=`the ${t} result has no readable summary`;return{lines:[`Result: ${e}`],passed:!1,reasons:[e]}}function Xe(t,e){let o=x(e);if(!o)return j(t);switch(t){case"scan":return Ue(o);case"test":return Qe(o);case"analyze":return Ye(o)}}function Z(t,e,o=[]){let i=e.filter(r=>r.success).map(r=>r.result),a=i.length>0?Ce(t,i):void 0,n=i.length>0?Xe(t,a):void 0,s=e.length-i.length,l=[...n?.reasons??[]];return o.length>0&&l.push("insufficient evidence: the coverage report is incomplete or stale for the target"),s>0&&l.unshift(`${s} of ${e.length} workers did not complete`),{combined:a,...n?{summary:n}:{},passed:l.length===0,reasons:l}}function $e(t,e,o=a=>console.log(a),i=[]){let a=Z(t,e,i);if(a.summary){o("");for(let n of a.summary.lines)o(` ${n}`)}for(let n of i)o(J.yellow(` Evidence: ${n}`));return o(""),o(a.passed?J.green(" Verdict: PASSED"):J.red(` Verdict: FAILED (${a.reasons.join("; ")})`)),a.passed}var Pe=6e4,Je=250,Ze={start:()=>{},addAgent:()=>{},updateAgent:()=>{},completeAgent:()=>{},stop:()=>{}};async function et({queen:t,type:e,domain:o,payload:i}){let a=await t.submitTask({type:e,priority:"p1",targetDomains:[o],payload:i,timeout:Pe});if(!a.success)throw a.error;let n=Date.now()+Pe;for(;Date.now()<n;){let s=t.getTaskStatus(a.value);if(!s)throw new Error(`Task status unavailable: ${a.value}`);if(s.status==="completed")return s.result;if(s.status==="failed"||s.status==="cancelled")throw new Error(s.error||`Task ${s.status}`);await new Promise(l=>setTimeout(l,Je))}throw new Error(`Task timed out: ${a.value}`)}function tt(t){if(t===void 0)return;let e=Number(t);if(!Number.isSafeInteger(e)||e<1)throw new Error("--parallel must be a positive integer");return e}function Ae(t,e,o,i){t.command("run").description("Run a coordinated fleet operation").argument("<operation>","Operation type (test|analyze|scan)").option("-t, --target <path>","Target path",".").option("--parallel <count>","Workers to split the target's files across (default 4; analyze runs as one task)").option("-F, --format <format>","Output format (text|json)","text").option("-o, --output <path>","Write output to file").action(async(a,n)=>{let s=n.format==="json",l=async r=>(s?z(C({operation:a,target:n.target,status:"refused",error:r}),n.output):console.error(v.red(`
|
|
14
|
+
Operation '${a}' cannot run: ${r}`)),o(1));if(!await i())return o(1);try{if(n.format!=="text"&&!s)throw new Error(`Unsupported format: ${n.format} (text|json)`);let r=tt(n.parallel);if(!Re.includes(a))throw new Error(`Unsupported operation: ${a}`);let c=a,m=await Ie(c,n.target);if(!m.success)return l(m.error);let{domain:w,payload:h}=m.task,k=m.task.type,f=e.queen.validateTaskExecutable(k,[w]);if(!f.success)return l(f.error.message);let u=ze(c,h,r),S=u.payloads.map((g,F)=>({id:`${a}-agent-${F+1}`,name:`${a}-worker-${F+1}`,files:u.files[F],payload:{...g,target:n.target,workerId:`${a}-agent-${F+1}`}}));s||(console.log(v.blue(`
|
|
15
|
+
Fleet Operation: ${a}
|
|
16
|
+
`)),u.note&&console.log(v.yellow(` Note: ${u.note}`)));let p=s?Ze:new O({title:`${a.charAt(0).toUpperCase()+a.slice(1)} Progress`,showEta:!0});p.start(S.length);for(let g of S)p.addAgent({id:g.id,name:g.name,status:"pending",progress:0});let b=await Promise.all(S.map(async g=>{p.updateAgent(g.id,0,{status:"running"});let F={id:g.id,name:g.name,files:g.files};try{let I=await et({queen:e.queen,type:k,domain:w,payload:g.payload});return p.completeAgent(g.id,!0),{...F,success:!0,result:I}}catch(I){let A=I instanceof Error?I.message:String(I);return s||console.error(v.red(` ${g.name}: ${A}`)),p.completeAgent(g.id,!1),{...F,success:!1,result:void 0,error:A}}})),D=Z(c,b,m.task.insufficientEvidence);if(p.stop({verdictFailed:!D.passed}),s)return z(C({operation:a,target:n.target,status:D.passed?"passed":"failed",verdict:{passed:D.passed,reasons:D.reasons},...D.summary?{summary:D.summary.lines}:{},...m.task.insufficientEvidence?{insufficientEvidence:m.task.insufficientEvidence}:{},...u.note?{note:u.note}:{},combined:D.combined,workers:b.map(({id:g,files:F,success:I,result:A,error:te})=>({id:g,files:F,status:I?"completed":"failed",...te?{error:te}:{result:A}}))}),n.output),o(D.passed?0:1);let L=b.filter(g=>!g.success).length;console.log(v.blue(`
|
|
17
|
+
Operation Summary:`)),console.log(v.gray(` Operation: ${a}`)),console.log(v.gray(` Target: ${n.target}`));let ee=u.files.map(g=>g.length);ee.some(g=>g>0)&&console.log(v.gray(` Workers: ${b.length}, files per worker: ${ee.join(", ")}`)),console.log(v.gray(` Completed: ${b.length-L}`)),L>0&&console.log(v.red(` Failed: ${L}`));let Oe=$e(c,b,void 0,m.task.insufficientEvidence);console.log(""),await o(Oe?0:1)}catch(r){s?z(C({operation:a,target:n.target,status:"error",error:r instanceof Error?r.message:String(r)}),n.output):console.error(v.red(`
|
|
18
|
+
Fleet operation failed:`),r),await o(1)}})}function Zt(t,e,o,i){let a=new nt("fleet").description("Fleet operations with multi-agent progress tracking");return a.command("init").description("Initialize fleet with interactive wizard").option("--wizard","Run interactive fleet initialization wizard").option("-t, --topology <type>","Fleet topology (hierarchical|mesh|ring|adaptive|hierarchical-mesh)","hierarchical-mesh").option("-m, --max-agents <count>","Maximum agent count (5-50)","15").option("-d, --domains <domains>",'Domains to enable (comma-separated or "all")',"all").option("--memory <backend>","Memory backend (sqlite|agentdb|hybrid)","hybrid").option("--lazy","Enable lazy loading",!0).option("--skip-patterns","Skip loading pre-trained patterns").option("--skip-code-scan","Skip code intelligence index check").option("-F, --format <format>","Output format (text|json)","text").option("-o, --output <path>","Write output to file").action(async n=>{try{let s=n.topology,l=parseInt(n.maxAgents,10),r=n.domains,c=n.memory,m=n.lazy,w=!n.skipPatterns;if(console.log(d.blue(`
|
|
19
|
+
Code Intelligence Check
|
|
20
|
+
`)),!(await ve(process.cwd(),{skipCodeScan:n.skipCodeScan,nonInteractive:!n.wizard})).shouldProceed){console.log(d.blue(`
|
|
21
|
+
Please run the code intelligence scan first:`)),console.log(d.cyan(` aqe code-intelligence index
|
|
22
|
+
`)),console.log(d.gray(` Then re-run fleet init when ready.
|
|
23
|
+
`)),await e(0);return}if(n.wizard){console.log(d.blue(`
|
|
24
|
+
Fleet Initialization Wizard
|
|
25
|
+
`));let u=await Te({defaultTopology:n.topology!=="hierarchical-mesh"?n.topology:void 0,defaultMaxAgents:n.maxAgents!=="15"?parseInt(n.maxAgents,10):void 0,defaultDomains:n.domains!=="all"?n.domains.split(","):void 0,defaultMemoryBackend:n.memory!=="hybrid"?n.memory:void 0});u.cancelled&&(console.log(d.yellow(`
|
|
26
|
+
Fleet initialization cancelled.
|
|
27
|
+
`)),await e(0)),s=u.topology,l=u.maxAgents,r=u.domains.join(","),c=u.memoryBackend,m=u.lazyLoading,w=u.loadPatterns,console.log(d.green(`
|
|
28
|
+
Starting fleet initialization...
|
|
29
|
+
`))}let k=r==="all"?[...M]:r.split(",").filter(u=>M.includes(u));if(console.log(d.blue(`
|
|
30
|
+
Fleet Configuration
|
|
31
|
+
`)),console.log(d.gray(` Topology: ${s}`)),console.log(d.gray(` Max Agents: ${l}`)),console.log(d.gray(` Domains: ${k.length}`)),console.log(d.gray(` Memory: ${c}`)),console.log(d.gray(` Lazy Loading: ${m?"enabled":"disabled"}`)),console.log(d.gray(` Pre-trained Patterns: ${w?"load":"skip"}
|
|
32
|
+
`)),!t.initialized){t.kernel=new ae({maxConcurrentAgents:l,memoryBackend:c,hnswEnabled:!0,lazyLoading:m,enabledDomains:k,enableExperienceBridge:!1}),await t.kernel.initialize();let u=await ge(t.kernel.plugins);console.log(d.green(" * Kernel initialized")),t.router=new ie(t.kernel.eventBus),await t.router.initialize(),console.log(d.green(" * Cross-domain router initialized")),t.workflowOrchestrator=new re(t.kernel.eventBus,t.kernel.memory,t.kernel.coordinator),await t.workflowOrchestrator.initialize(),i(t.kernel,t.workflowOrchestrator),console.log(d.green(" * Workflow orchestrator initialized")),t.persistentScheduler=me(),console.log(d.green(" * Persistent scheduler initialized"));let S=b=>t.kernel.getDomainAPI(b),p=new ue(t.kernel.eventBus,t.kernel.memory,S);t.queen=se(t.kernel,t.router,p,void 0,u),await t.queen.initialize(),console.log(d.green(" * Queen coordinator initialized")),t.initialized=!0}(n.format||"text")==="json"?z(C({status:"initialized",topology:s,maxAgents:l,domains:k,memoryBackend:c,lazyLoading:m,loadPatterns:w}),n.output):(console.log(d.green(`
|
|
33
|
+
Fleet initialized successfully!
|
|
34
|
+
`)),console.log(d.white("Next steps:")),console.log(d.gray(" 1. Spawn agents: aqe fleet spawn --domains test-generation")),console.log(d.gray(" 2. Run operation: aqe fleet run test --target ./src")),console.log(d.gray(` 3. Check status: aqe fleet status
|
|
35
|
+
`))),await e(0)}catch(s){console.error(d.red(`
|
|
36
|
+
Fleet initialization failed:`),s),await e(1)}}),a.command("spawn").description("Spawn multiple agents with progress tracking").option("-d, --domains <domains>","Comma-separated domains","test-generation,coverage-analysis").option("-t, --type <type>","Agent type for all","worker").option("-c, --count <count>","Number of agents per domain","1").action(async n=>{if(await o())try{let s=n.domains.split(","),l=parseInt(n.count,10);console.log(d.blue(`
|
|
37
|
+
Fleet Spawn Operation
|
|
38
|
+
`));let r=new O({title:"Agent Spawn Progress",showEta:!0}),c=s.length*l;r.start(c);let m=[],w=0;for(let f of s)for(let u=0;u<l;u++){let S=`${f}-${n.type}-${u+1}`,p=`agent-${w++}`;r.addAgent({id:p,name:S,status:"pending",progress:0}),r.updateAgent(p,10,{status:"running"});try{r.updateAgent(p,30,{message:"Initializing..."});let b=await t.queen.requestAgentSpawn(f,n.type,["general"]);r.updateAgent(p,80,{message:"Configuring..."}),b.success?(r.completeAgent(p,!0),m.push({id:b.value,domain:f,success:!0})):(r.completeAgent(p,!1),m.push({id:p,domain:f,success:!1}))}catch{r.completeAgent(p,!1),m.push({id:p,domain:f,success:!1})}}r.stop();let h=m.filter(f=>f.success).length,k=m.filter(f=>!f.success).length;console.log(d.blue(`
|
|
39
|
+
Fleet Summary:`)),console.log(d.gray(` Domains: ${s.join(", ")}`)),console.log(d.green(` Successful: ${h}`)),k>0&&console.log(d.red(` Failed: ${k}`)),console.log(""),await e(k>0?1:0)}catch(s){console.error(d.red(`
|
|
40
|
+
Fleet spawn failed:`),s),await e(1)}}),Ae(a,t,e,o),a.command("status").description("Show fleet status with agent progress").option("-w, --watch","Watch mode with live updates").option("-F, --format <format>","Output format (text|json)","text").option("-o, --output <path>","Write output to file").action(async n=>{if(await o())try{let s=async()=>{let r=t.queen.getHealth(),c=t.queen.getMetrics();console.log(d.blue(`
|
|
41
|
+
Fleet Status
|
|
42
|
+
`));let m="\u2588".repeat(Math.min(Math.round(c.agentUtilization*20),20))+"\u2591".repeat(Math.max(20-Math.round(c.agentUtilization*20),0));console.log(d.white(`Fleet Utilization ${d.cyan(m)} ${(c.agentUtilization*100).toFixed(0)}%`)),console.log(""),console.log(d.white("Agent Progress:"));for(let[w,h]of r.domainHealth){let k=h.agents.active,f=h.agents.total,u=f>0?Math.round(k/f*100):0,S=h.status==="healthy"?d.green("\u2713"):h.status==="degraded"?d.yellow("\u25B6"):d.red("\u2717"),p="\u2588".repeat(Math.round(u/5))+"\u2591".repeat(20-Math.round(u/5));console.log(` ${w.padEnd(28)} ${d.cyan(p)} ${u.toString().padStart(3)}% ${S}`)}console.log(""),console.log(d.gray(` Active: ${r.activeAgents}/${r.totalAgents} agents`)),console.log(d.gray(` Tasks: ${r.runningTasks} running, ${r.pendingTasks} pending`)),console.log("")};if((n.format||"text")==="json"){let r=t.queen.getHealth(),c=t.queen.getMetrics(),m={};for(let[w,h]of r.domainHealth)m[w]={status:h.status,agents:h.agents,errors:h.errors.length};z(C({status:r.status,utilization:c.agentUtilization,activeAgents:r.activeAgents,totalAgents:r.totalAgents,runningTasks:r.runningTasks,pendingTasks:r.pendingTasks,domains:m}),n.output),await e(0);return}if(n.watch){fe("Watching fleet status (Ctrl+C to exit)").spinner.stop(),await s();let c=setInterval(async()=>{console.clear(),await s()},2e3);c.unref?.(),process.once("SIGINT",async()=>{clearInterval(c),console.log(d.yellow(`
|
|
43
|
+
Stopped watching.`)),await e(0)})}else await s(),await e(0)}catch(s){console.error(d.red(`
|
|
44
|
+
Failed to get fleet status:`),s),await e(1)}}),a}export{Zt as createFleetCommand};
|
|
@@ -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.15.
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}from"./chunk-
|
|
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.15.13");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}from"./chunk-YQFLQE53.js";import"./chunk-VTOBUZL6.js";import"./chunk-OCAEXYFA.js";import"./chunk-WOCGL4QP.js";import"./chunk-ZAKQLAHT.js";export{e as GNNLayerFactory,c as QEGNNEmbeddingIndex,d as QEGNNIndexFactory,f as TensorCompressionFactory,p as batchDifferentiableSearch,i as getDifferentiableSearch,k as getGetCompressionLevel,j as getHierarchicalForward,l as getInit,g as getRuvectorLayer,h as getTensorCompress,b as initGNN,a as isGNNAvailable,m as toFloat32Array,o as toIEmbedding,n as toNumberArray};
|
|
@@ -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.15.
|
|
2
|
-
import{b as d}from"./chunk-
|
|
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.15.13");process.exit(0)}
|
|
2
|
+
import{b as d}from"./chunk-G77ERMUD.js";import"./chunk-5MDERQH3.js";import{a as c,e as f}from"./chunk-3Y2ROSCL.js";import"./chunk-ZAKQLAHT.js";import*as s from"fs";import*as l from"path";import e from"chalk";f();var h=class{name="heartbeat";description="Manage the token-free heartbeat scheduler";cleanupAndExit;worker;constructor(t){this.cleanupAndExit=t}async getWorker(){if(!this.worker){let{HeartbeatSchedulerWorker:t}=await import("./heartbeat-scheduler-P44A2OX3.js");this.worker=new t}return this.worker}register(t,o){let a=t.command("heartbeat").description(this.description);a.command("status").description("Show heartbeat worker status, health, and schedule").action(async()=>{await this.executeStatus()}),a.command("run-now").description("Trigger an immediate heartbeat cycle").option("-t, --timeout <ms>","Timeout in milliseconds (default: worker built-in 60s)").action(async n=>{let i=n.timeout?parseInt(n.timeout,10):void 0;await this.executeRunNow(i)}),a.command("history").description("Show recent heartbeat results").option("-n, --count <count>","Number of entries to show","10").action(async n=>{await this.executeHistory(parseInt(n.count,10)||10)}),a.command("log").description("Show today's daily log entries").option("-d, --date <date>","Show log for specific date (YYYY-MM-DD)").action(async n=>{await this.executeLog(n.date)}),a.command("pause").description("Pause the heartbeat worker").action(async()=>{await this.executePause()}),a.command("resume").description("Resume the heartbeat worker").action(async()=>{await this.executeResume()})}async executeStatus(){try{this.worker=await this.getWorker(),await this.worker.initialize();let t=this.worker.getHealth(),o=this.worker.lastResult;if(console.log(e.blue(`
|
|
3
3
|
Heartbeat Scheduler Status`)),console.log(e.gray(" "+"\u2500".repeat(35))),console.log(` Status: ${x(t.status)}`),console.log(` Health Score: ${y(t.healthScore)}${e.gray("/100")}`),this.worker.lastRunAt){let n=p(this.worker.lastRunAt);console.log(` Last Run: ${e.cyan(this.worker.lastRunAt.toISOString().replace("T"," ").slice(0,19))} ${e.gray(`(${n})`)}`)}else console.log(` Last Run: ${e.gray("never")}`);if(this.worker.nextRunAt){let n=p(this.worker.nextRunAt,!0);console.log(` Next Run: ${e.cyan(this.worker.nextRunAt.toISOString().replace("T"," ").slice(0,19))} ${e.gray(`(${n})`)}`)}console.log(` Total Runs: ${e.cyan(String(t.totalExecutions))}`);let a=t.totalExecutions>0?(t.successfulExecutions/t.totalExecutions*100).toFixed(1):"100.0";if(console.log(` Success Rate: ${e.cyan(a+"%")}`),o?.metrics?.domainMetrics){let n=o.metrics.domainMetrics;console.log(""),console.log(e.blue(" Last Result:")),console.log(` Promoted: ${e.cyan(String(n.promoted??0))} patterns`),console.log(` Deprecated: ${e.cyan(String(n.deprecated??0))} patterns`),console.log(` Decayed: ${e.cyan(String(n.decayed??0))} patterns`),console.log(` Pending Exp: ${e.cyan(String(n.pendingExperiences??0))}`),console.log(` Avg Conf: ${e.cyan(String(n.avgConfidence??0))}`)}console.log(""),await this.cleanupAndExit(0)}catch(t){console.error(e.red(`
|
|
4
4
|
Failed to get heartbeat status:`),c(t)),await this.cleanupAndExit(1)}}async executeRunNow(t){try{this.worker=await this.getWorker(),console.log(e.blue(`
|
|
5
5
|
Triggering heartbeat cycle...
|
|
@@ -8,7 +8,7 @@ import{b as d}from"./chunk-4SA7M34P.js";import"./chunk-MCPEC6OO.js";import{a as
|
|
|
8
8
|
Heartbeat History (last ${o.length})`)),console.log(e.gray(" "+"\u2500".repeat(60)));for(let a of o){let n=a.success?e.green("OK"):e.red("FAIL"),i=a.timestamp.slice(0,19).replace("T"," "),u=a.domainMetrics||{};console.log(` ${e.gray(i)} ${n} score:${e.cyan(String(a.healthScore))} +${u.promoted??0}/-${u.deprecated??0} ${e.gray(d(a.durationMs))}`)}console.log(""),await this.cleanupAndExit(0)}catch(o){console.error(e.red(`
|
|
9
9
|
Failed to load history:`),c(o)),await this.cleanupAndExit(1)}}async executeLog(t){try{let o=t||new Date().toISOString().split("T")[0];if(!/^\d{4}-\d{2}-\d{2}$/.test(o)){console.error(e.red(`
|
|
10
10
|
Invalid date format: "${o}". Use YYYY-MM-DD.
|
|
11
|
-
`)),await this.cleanupAndExit(1);return}let{findProjectRoot:a}=await import("./unified-memory-
|
|
11
|
+
`)),await this.cleanupAndExit(1);return}let{findProjectRoot:a}=await import("./unified-memory-TLGSSLMI.js"),n=l.join(a(),".agentic-qe","logs"),i=l.join(n,`${o}.md`);if(!s.existsSync(i)){console.log(e.yellow(`
|
|
12
12
|
No daily log found for ${o}.
|
|
13
13
|
`)),await this.cleanupAndExit(0);return}let u=s.readFileSync(i,"utf-8");console.log(e.blue(`
|
|
14
14
|
Daily Log \u2014 ${o}`)),console.log(e.gray(" "+"\u2500".repeat(40)));for(let g of u.split(`
|
|
@@ -45,4 +45,4 @@ Examples:
|
|
|
45
45
|
aqe heartbeat log --date 2026-03-25
|
|
46
46
|
aqe heartbeat pause
|
|
47
47
|
aqe heartbeat resume
|
|
48
|
-
`}},m=100;async function w(){let{findProjectRoot:r}=await import("./unified-memory-
|
|
48
|
+
`}},m=100;async function w(){let{findProjectRoot:r}=await import("./unified-memory-TLGSSLMI.js");return l.join(r(),".agentic-qe","heartbeat-history.json")}async function b(r){try{let t=await w(),o=l.dirname(t);s.existsSync(o)||s.mkdirSync(o,{recursive:!0});let a=[];if(s.existsSync(t))try{a=JSON.parse(s.readFileSync(t,"utf-8"))}catch{a=[]}a.unshift({timestamp:r.timestamp.toISOString(),success:r.success,durationMs:r.durationMs,healthScore:r.metrics.healthScore,domainMetrics:r.metrics.domainMetrics}),a.length>m&&(a=a.slice(0,m)),s.writeFileSync(t,JSON.stringify(a,null,2))}catch{}}async function S(r){try{let t=await w();return s.existsSync(t)?JSON.parse(s.readFileSync(t,"utf-8")).slice(0,r):[]}catch{return[]}}function x(r){switch(r){case"idle":return e.cyan(r);case"running":return e.yellow(r);case"paused":return e.yellow(r);case"stopped":return e.gray(r);case"error":return e.red(r);default:return e.white(r)}}function y(r){return r>=80?e.green(String(r)):r>=50?e.yellow(String(r)):e.red(String(r))}function k(r){switch(r){case"improving":return e.green(r);case"stable":return e.cyan(r);case"degrading":return e.red(r);default:return e.gray(r)}}function p(r,t=!1){let o=t?r.getTime()-Date.now():Date.now()-r.getTime();return o<0?t?"now":"just now":o<6e4?`${Math.floor(o/1e3)}s ${t?"from now":"ago"}`:o<36e5?`${Math.floor(o/6e4)}m ${t?"from now":"ago"}`:`${Math.floor(o/36e5)}h ${t?"from now":"ago"}`}function A(r){return new h(r)}export{h as HeartbeatHandler,A as createHeartbeatHandler};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
+
import{b as a}from"./chunk-7PLIEBY7.js";import"./chunk-CM4LSLKR.js";import"./chunk-CE7B5LU7.js";import"./chunk-EXGMJFAT.js";import"./chunk-E7CLYGS7.js";import"./chunk-3Y7TJFHU.js";import"./chunk-7CMTY45A.js";import"./chunk-VTOBUZL6.js";import"./chunk-KDNJ4F3P.js";import"./chunk-JRRXCODW.js";import"./chunk-XNBOGCF3.js";import"./chunk-KV4T4MXK.js";import"./chunk-TWDW32W2.js";import"./chunk-AQSVJNEH.js";import"./chunk-OCAEXYFA.js";import"./chunk-DVGRPK7A.js";import"./chunk-TOQWL2ZF.js";import"./chunk-UT2VZ33P.js";import"./chunk-GB6HBNH2.js";import"./chunk-UOC3O6RP.js";import"./chunk-NT4DBXSX.js";import"./chunk-WOCGL4QP.js";import"./chunk-J2ZIFFM6.js";import"./chunk-RF7HWBHN.js";import"./chunk-DNDL7SOS.js";import"./chunk-3Y2ROSCL.js";import"./chunk-WO274FRI.js";import"./chunk-ZAKQLAHT.js";export{a as HeartbeatSchedulerWorker};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
+
import{a,b}from"./chunk-AQSVJNEH.js";import"./chunk-OCAEXYFA.js";import"./chunk-WOCGL4QP.js";import"./chunk-ZAKQLAHT.js";b();export{a as HnswAdapter};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
+
import{a,b,c,d}from"./chunk-PIDQVU3L.js";import"./chunk-KV4T4MXK.js";import"./chunk-AQSVJNEH.js";import"./chunk-OCAEXYFA.js";import"./chunk-UT2VZ33P.js";import"./chunk-GB6HBNH2.js";import"./chunk-UOC3O6RP.js";import"./chunk-NT4DBXSX.js";import"./chunk-WOCGL4QP.js";import"./chunk-ZAKQLAHT.js";export{a as DEFAULT_HNSW_CONFIG,b as HNSWIndex,d as benchmarkHNSW,c as createHNSWIndex};
|
|
@@ -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.15.
|
|
2
|
-
import"./chunk-
|
|
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.15.13");process.exit(0)}
|
|
2
|
+
import"./chunk-ZAKQLAHT.js";var s=class{adapter;metadataMap=new Map;insertCount=0;constructor(e){this.adapter=e}async initialize(){}async insert(e,t,r){this.adapter.addByStringId(e,t),this.insertCount++,r&&this.metadataMap.set(e,r)}async search(e,t){return this.adapter.searchByArray(e,t).map(a=>({key:a.id,score:a.score,distance:1-a.score,metadata:this.metadataMap.get(a.id)}))}async batchInsert(e){for(let t of e)await this.insert(t.key,t.vector,t.metadata)}async delete(e){let t=this.adapter.removeByStringId(e);return t&&this.metadataMap.delete(e),t}async getStats(){return{nativeHNSW:!0,backendType:"ruvector-gnn",vectorCount:this.adapter.size(),indexSizeBytes:this.adapter.size()*this.adapter.dimensions()*4,avgSearchLatencyMs:this.adapter.lastSearchLatencyMs,p95SearchLatencyMs:0,p99SearchLatencyMs:0,searchOperations:0,insertOperations:this.insertCount}}async clear(){this.adapter.clear(),this.metadataMap.clear(),this.insertCount=0}isNativeAvailable(){return!0}};export{s as HnswLegacyBridge};
|
|
@@ -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.15.
|
|
2
|
-
import"./chunk-
|
|
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.15.13");process.exit(0)}
|
|
2
|
+
import"./chunk-ZAKQLAHT.js";import{createRequire as t}from"module";var o=t(import.meta.url),e=o("hnswlib-node"),i=e,{RuvectorLayer:r,TensorCompress:a,differentiableSearch:c,hierarchicalForward:l,getCompressionLevel:s,init:p,FlashAttention:d,DotProductAttention:m,MultiHeadAttention:u,HyperbolicAttention:A,LinearAttention:h,MoEAttention:f,SonaEngine:_,pipeline:b}=e||{};export{m as DotProductAttention,d as FlashAttention,A as HyperbolicAttention,h as LinearAttention,f as MoEAttention,u as MultiHeadAttention,r as RuvectorLayer,_ as SonaEngine,a as TensorCompress,i as default,c as differentiableSearch,s as getCompressionLevel,l as hierarchicalForward,p as init,b as pipeline};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.
|
|
3
|
-
import{a as A,b as Se,c as we}from"./chunk-
|
|
2
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
3
|
+
import{a as A,b as Se,c as we}from"./chunk-LUZNKJE6.js";import{c as _e,d as be}from"./chunk-3YNLWPBF.js";import{a as ee}from"./chunk-VRHRBAEM.js";import{d as W,h as oe}from"./chunk-72ASBE35.js";import"./chunk-TSQC2KKZ.js";import{b as he}from"./chunk-SYV2V3PL.js";import"./chunk-NZD4DPSU.js";import{b as Z}from"./chunk-E7CLYGS7.js";import"./chunk-GU5HNCWI.js";import"./chunk-5VMAV6T6.js";import"./chunk-TWJTK4CC.js";import"./chunk-GHM6MQNK.js";import"./chunk-XEAEYC6Y.js";import{a as fe}from"./chunk-6KATY3KS.js";import{d as Ee,e as Te}from"./chunk-VRVMIPTM.js";import{a as ke,b as ye}from"./chunk-4OVC4RIL.js";import"./chunk-UTRV7T2N.js";import{r as M,v as U}from"./chunk-3Y7TJFHU.js";import"./chunk-7CMTY45A.js";import{b as me,d as Fe}from"./chunk-VTOBUZL6.js";import{a as K,b as Y,c as pe,e as ze}from"./chunk-KDNJ4F3P.js";import"./chunk-JRRXCODW.js";import"./chunk-XNBOGCF3.js";import"./chunk-KV4T4MXK.js";import"./chunk-TWDW32W2.js";import"./chunk-AQSVJNEH.js";import"./chunk-OCAEXYFA.js";import{a as ge}from"./chunk-WKGTGOYS.js";import"./chunk-DVGRPK7A.js";import"./chunk-H4H2YSFH.js";import"./chunk-NURIILUB.js";import"./chunk-TOQWL2ZF.js";import{a as He}from"./chunk-UT2VZ33P.js";import{c as ue}from"./chunk-GB6HBNH2.js";import"./chunk-UOC3O6RP.js";import"./chunk-NT4DBXSX.js";import"./chunk-WOCGL4QP.js";import"./chunk-W2QWSQVE.js";import{c as R}from"./chunk-J2ZIFFM6.js";import"./chunk-RF7HWBHN.js";import"./chunk-IC3TQEOA.js";import"./chunk-HD7YIFOI.js";import"./chunk-DNDL7SOS.js";import"./chunk-3Y2ROSCL.js";import"./chunk-WO274FRI.js";import"./chunk-ZAKQLAHT.js";import{Command as yt}from"commander";import $ from"chalk";import ve from"node:path";U();import{randomUUID as B}from"crypto";import I from"chalk";var H="dream-scheduler:hook-state";async function Re(r,e,t){try{let{computeRealEmbedding:n}=await import("./real-embeddings-HW4G2LWL.js"),o=await n(t.slice(0,512));r.prepare("UPDATE captured_experiences SET embedding = ?, embedding_dimension = ? WHERE id = ?").run(Buffer.from(new Float32Array(o).buffer),o.length,e)}catch(n){console.error(I.dim(`[hooks] embedding persistence: ${n instanceof Error?n.message:"unknown"}`))}}async function x(r){try{let e=await r.get(H);return e||(e={lastDreamTime:null,experienceCount:0,sessionStartTime:new Date().toISOString(),totalDreamsThisSession:0}),e.experienceCount++,await r.set(H,e),e.experienceCount}catch{return 0}}async function G(r){try{let{getUnifiedMemory:e}=await import("./unified-memory-TLGSSLMI.js"),t=e();t.isInitialized()||await t.initialize();let{initializeExperienceCapture:n}=await import("./experience-capture-middleware-2E554UB3.js");await n();let o=t.getDatabase();try{o.pragma("busy_timeout = 60000")}catch{}let s=`cli-${Date.now()}-${B().slice(0,8)}`,a=r.durationMs||0,c;if(r.success){let i=a>0&&a<5e3?.1:0,f=r.source.includes("post-task")?.1:r.source.includes("post-edit")?.05:0;c=Math.min(.95,.7+i+f)}else{let i=r.source.includes("post-task")?.15:r.source.includes("post-edit")?.1:0;c=Math.min(.6,.3+i)}o.prepare(`
|
|
4
4
|
INSERT OR REPLACE INTO captured_experiences
|
|
5
5
|
(id, task, agent, domain, success, quality, duration_ms,
|
|
6
6
|
started_at, completed_at, source)
|
|
7
7
|
VALUES (?, ?, ?, ?, ?, ?, ?, datetime('now'), datetime('now'), ?)
|
|
8
|
-
`).run(s,r.task.slice(0,500),r.agent,r.domain,r.success?1:0,c,a,r.source),await Re(o,s,`${r.domain}: ${r.task}`)}catch(e){console.error(I.dim(`[hooks] persistCommandExperience: ${e instanceof Error?e.message:"unknown"}`))}}async function se(r){let{getUnifiedMemory:e}=await import("./unified-memory-
|
|
8
|
+
`).run(s,r.task.slice(0,500),r.agent,r.domain,r.success?1:0,c,a,r.source),await Re(o,s,`${r.domain}: ${r.task}`)}catch(e){console.error(I.dim(`[hooks] persistCommandExperience: ${e instanceof Error?e.message:"unknown"}`))}}async function se(r){let{getUnifiedMemory:e}=await import("./unified-memory-TLGSSLMI.js"),t=e();t.isInitialized()||await t.initialize();let n=t.getDatabase();try{n.pragma("busy_timeout = 60000")}catch{}try{n.exec(`
|
|
9
9
|
CREATE TABLE IF NOT EXISTS captured_experiences (
|
|
10
10
|
id TEXT PRIMARY KEY,
|
|
11
11
|
task TEXT NOT NULL,
|
|
@@ -89,7 +89,7 @@ import{a as A,b as Se,c as we}from"./chunk-W5HQIYQU.js";import{c as _e,d as be}f
|
|
|
89
89
|
WHERE actionable = 1 AND (applied = 0 OR applied IS NULL)
|
|
90
90
|
ORDER BY created_at DESC
|
|
91
91
|
LIMIT 3
|
|
92
|
-
`).all();if(u.length>0){let{createDreamEngine:E}=await import("./dream-
|
|
92
|
+
`).all();if(u.length>0){let{createDreamEngine:E}=await import("./dream-TRFBGDSQ.js"),g=E();await g.initialize();try{for(let T of u){let D=await g.applyInsight(T.id);D.success&&D.patternId&&d++}}finally{await g.close()}}}catch(u){console.error(I.dim(`[hooks] post-task insight apply: ${u instanceof Error?u.message:"unknown"}`))}return await Re(n,o,`${r.domain??"general"}: ${s}`),{experienceId:o,qualityScore:f,bridge:l,stitchedSiblings:p,insightsApplied:d}}async function Q(r){try{let{getUnifiedMemory:e}=await import("./unified-memory-TLGSSLMI.js"),t=e();t.isInitialized()||await t.initialize();let n=t.getDatabase();try{n.pragma("busy_timeout = 60000")}catch{}let o=`${r.taskType}|${r.priority}|${r.domain||"any"}`,s=r.agent,a=`q-learning:aqe-hook-router:${o}:${s}`,c=r.success?.1:-1,i=.1,f=.9,l=n.prepare(`
|
|
93
93
|
SELECT q_value FROM rl_q_values WHERE id = ?
|
|
94
94
|
`).get(a),p=l&&typeof l.q_value=="number"?l.q_value:0,d=n.prepare(`
|
|
95
95
|
SELECT MAX(q_value) AS m FROM rl_q_values WHERE state_key = ?
|
|
@@ -102,7 +102,7 @@ import{a as A,b as Se,c as we}from"./chunk-W5HQIYQU.js";import{c as _e,d as be}f
|
|
|
102
102
|
visits = visits + 1,
|
|
103
103
|
last_reward = excluded.last_reward,
|
|
104
104
|
updated_at = datetime('now')
|
|
105
|
-
`).run(a,o,s,u,c,r.domain||"any")}catch(e){console.error(I.dim(`[hooks] q-learning update: ${e instanceof Error?e.message:"unknown"}`))}}async function ae(r){try{let{getUnifiedMemory:e}=await import("./unified-memory-
|
|
105
|
+
`).run(a,o,s,u,c,r.domain||"any")}catch(e){console.error(I.dim(`[hooks] q-learning update: ${e instanceof Error?e.message:"unknown"}`))}}async function ae(r){try{let{getUnifiedMemory:e}=await import("./unified-memory-TLGSSLMI.js"),t=e();t.isInitialized()||await t.initialize();let n=t.getDatabase();try{n.pragma("busy_timeout = 60000")}catch{}n.prepare(`
|
|
106
106
|
UPDATE routing_outcomes
|
|
107
107
|
SET success = ?, quality_score = ?, duration_ms = ?
|
|
108
108
|
WHERE id IN (
|
|
@@ -113,7 +113,7 @@ import{a as A,b as Se,c as we}from"./chunk-W5HQIYQU.js";import{c as _e,d as be}f
|
|
|
113
113
|
ORDER BY (CASE WHEN used_agent = ? THEN 0 ELSE 1 END), created_at DESC
|
|
114
114
|
LIMIT 1
|
|
115
115
|
)
|
|
116
|
-
`).run(r.success?1:0,r.qualityScore,r.durationMs,r.agent)}catch(e){console.error(I.dim(`[hooks] routing UPDATE: ${e instanceof Error?e.message:"unknown"}`))}}async function ie(){let{getUnifiedMemory:r}=await import("./unified-memory-
|
|
116
|
+
`).run(r.success?1:0,r.qualityScore,r.durationMs,r.agent)}catch(e){console.error(I.dim(`[hooks] routing UPDATE: ${e instanceof Error?e.message:"unknown"}`))}}async function ie(){let{getUnifiedMemory:r}=await import("./unified-memory-TLGSSLMI.js"),e=r();e.isInitialized()||await e.initialize();let t=e.getDatabase();try{t.pragma("busy_timeout = 60000")}catch{}let n=new Set(t.prepare("PRAGMA table_info(captured_experiences)").all().map(i=>i.name)),o=[["consolidated_into","TEXT DEFAULT NULL"],["consolidation_count","INTEGER DEFAULT 1"],["quality_updated_at","TEXT DEFAULT NULL"],["reuse_success_count","INTEGER DEFAULT 0"],["reuse_failure_count","INTEGER DEFAULT 0"]];for(let[i,f]of o)n.has(i)||t.exec(`ALTER TABLE captured_experiences ADD COLUMN ${i} ${f}`);let s=t.prepare(`
|
|
117
117
|
SELECT
|
|
118
118
|
domain,
|
|
119
119
|
agent,
|
|
@@ -129,7 +129,7 @@ import{a as A,b as Se,c as we}from"./chunk-W5HQIYQU.js";import{c as _e,d as be}f
|
|
|
129
129
|
HAVING cnt >= 3 AND avg_quality >= 0.5 AND success_rate >= 0.6
|
|
130
130
|
ORDER BY avg_quality DESC
|
|
131
131
|
LIMIT 50
|
|
132
|
-
`).all();if(s.length===0)return 0;let{v4:a}=await import("./dist-node-
|
|
132
|
+
`).all();if(s.length===0)return 0;let{v4:a}=await import("./dist-node-FV3KWXQ6.js"),c=0;for(let i of s)try{let f=new Date().toISOString().slice(0,7),l=`${i.agent}-${i.domain}-${f}`,p=t.prepare(`
|
|
133
133
|
SELECT id FROM qe_patterns
|
|
134
134
|
WHERE qe_domain = ? AND name = ?
|
|
135
135
|
LIMIT 1
|
|
@@ -148,11 +148,11 @@ import{a as A,b as Se,c as we}from"./chunk-W5HQIYQU.js";import{c as _e,d as be}f
|
|
|
148
148
|
confidence, usage_count, success_rate, quality_score, tier,
|
|
149
149
|
template_json, context_json, created_at, last_used_at, successful_uses
|
|
150
150
|
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, datetime('now'), datetime('now'), ?)
|
|
151
|
-
`).run(d,"workflow",i.domain,i.domain,l,E,k,i.cnt,i.success_rate,u,"short-term",JSON.stringify({type:"workflow",content:`${i.agent} pattern for ${i.domain}`,variables:[]}),JSON.stringify({tags:g,sourceType:"session-consolidation",extractedAt:new Date().toISOString()}),i.successes);let{ensurePatternEmbedding:T}=await import("./embed-and-insert-pattern-
|
|
151
|
+
`).run(d,"workflow",i.domain,i.domain,l,E,k,i.cnt,i.success_rate,u,"short-term",JSON.stringify({type:"workflow",content:`${i.agent} pattern for ${i.domain}`,variables:[]}),JSON.stringify({tags:g,sourceType:"session-consolidation",extractedAt:new Date().toISOString()}),i.successes);let{ensurePatternEmbedding:T}=await import("./embed-and-insert-pattern-GPRR3ZGD.js");await T(t,d,l,E,g),c++}t.prepare(`
|
|
152
152
|
UPDATE captured_experiences
|
|
153
153
|
SET application_count = application_count + 1
|
|
154
154
|
WHERE domain = ? AND agent = ? AND application_count = 0
|
|
155
|
-
`).run(i.domain,i.agent)}catch{}return c}var m={reasoningBank:null,hookRegistry:null,coherenceService:null,sessionId:null,initialized:!1,initializationPromise:null};async function Ae(){let r=m.reasoningBank;try{r&&await r.dispose()}catch{}try{let{resetSharedRvfDualWriter:e}=await import("./shared-rvf-dual-writer-
|
|
155
|
+
`).run(i.domain,i.agent)}catch{}return c}var m={reasoningBank:null,hookRegistry:null,coherenceService:null,sessionId:null,initialized:!1,initializationPromise:null};async function Ae(){let r=m.reasoningBank;try{r&&await r.dispose()}catch{}try{let{resetSharedRvfDualWriter:e}=await import("./shared-rvf-dual-writer-YXMPZKQE.js");e()}catch{}try{let{resetSharedRvfAdapter:e}=await import("./shared-rvf-adapter-COUOS665.js");e()}catch{}m.reasoningBank=null,m.hookRegistry=null,m.coherenceService=null,m.sessionId=null,m.initialized=!1,m.initializationPromise=null}async function _(){if(m.initializationPromise&&await m.initializationPromise,m.initialized&&m.reasoningBank&&m.hookRegistry)return{reasoningBank:m.reasoningBank,hookRegistry:m.hookRegistry};if(m.initializationPromise=We(),await m.initializationPromise,m.initializationPromise=null,!m.reasoningBank||!m.hookRegistry)throw new Error("Failed to initialize hooks system");return{reasoningBank:m.reasoningBank,hookRegistry:m.hookRegistry}}async function We(){if(!m.initialized)try{let r=R(),e=ve.join(r,".agentic-qe"),t=await O(e);try{m.coherenceService=await _e(be),console.log($.dim("[hooks] CoherenceService initialized with WASM engines"))}catch(a){console.log($.dim(`[hooks] CoherenceService WASM unavailable, using fallback: ${a instanceof Error?a.message:"unknown"}`))}m.reasoningBank=oe(t,void 0,{enableLearning:!0,enableGuidance:!0,enableRouting:!0,embeddingDimension:384,useONNXEmbeddings:!0},m.coherenceService??void 0);let n=1e4,o=new AbortController,s=setTimeout(()=>o.abort(new Error("ReasoningBank init timeout")),n);try{await m.reasoningBank.initialize({signal:o.signal})}finally{clearTimeout(s)}try{let{getSharedRvfDualWriter:a}=await import("./shared-rvf-dual-writer-YXMPZKQE.js"),c=await a();c&&m.reasoningBank.setRvfDualWriter(c)}catch(a){process.env.DEBUG&&console.debug("[hooks] RVF wiring skipped:",a instanceof Error?a.message:a)}m.hookRegistry=we(m.reasoningBank),m.initialized=!0,console.log($.dim("[hooks] System initialized"))}catch(r){console.warn($.yellow(`[hooks] Using fallback mode: ${r instanceof Error?r.message:"unknown error"}`));let e=Ge();m.reasoningBank=oe(e,void 0,{enableLearning:!0,enableGuidance:!0,enableRouting:!0}),m.hookRegistry=new Se,m.hookRegistry.initialize(m.reasoningBank),m.initialized=!0}}function q(r){try{r.pragma("busy_timeout = 60000")}catch{}}async function O(r){let t=new fe({sqlite:{path:ve.join(r,"memory.db"),walMode:!0,poolSize:3,busyTimeout:6e4},enableFallback:!0,defaultNamespace:"qe-patterns"}),n=new AbortController,o=setTimeout(()=>n.abort(new Error("Backend init timeout")),5e3);try{await t.initialize({signal:n.signal})}finally{clearTimeout(o)}return t}function Ge(){let r=new Map;return{initialize:async()=>{},dispose:async()=>{r.clear()},get:async e=>{let t=r.get(e);return t?t.value:void 0},set:async(e,t,n)=>{r.set(e,{value:t})},delete:async e=>r.delete(e),has:async e=>r.has(e),search:async(e,t)=>{let n=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&"),o=new RegExp(n.replace(/\*/g,".*"));return Array.from(r.keys()).filter(s=>o.test(s))},vectorSearch:async(e,t)=>[],storeVector:async(e,t,n)=>{},count:async e=>{let t=0,n=`${e}:`;for(let o of r.keys())o.startsWith(n)&&t++;return t},hasCodeIntelligenceIndex:async()=>{let e="code-intelligence:kg:";for(let t of r.keys())if(t.startsWith(e))return!0;return!1}}}function h(r){console.log(JSON.stringify(r,null,2))}function N(r){console.log($.green("\u2713"),r)}function S(r){console.error($.red("\u2717"),r)}function te(r){if(r.length===0){console.log($.dim(" No specific guidance"));return}r.forEach((e,t)=>{console.log($.cyan(` ${t+1}.`),e)})}async function F(r=500){return process.stdin.isTTY?"":new Promise(e=>{let t="",n=setTimeout(()=>{process.stdin.removeAllListeners(),process.stdin.pause(),e(t)},r);process.stdin.setEncoding("utf8"),process.stdin.on("data",o=>{t+=o}),process.stdin.on("end",()=>{clearTimeout(n),e(t)}),process.stdin.on("error",()=>{clearTimeout(n),e(t)}),process.stdin.resume()})}function Oe(r){if(!r.trim())return"";let e;try{e=JSON.parse(r)}catch{return""}let t=e.tool_input,n=e.toolInput,o=[t?.file_path,t?.filePath,n?.file_path,n?.filePath,e.file_path,e.filePath];for(let s of o)if(typeof s=="string"&&s.trim())return s;return""}function Ne(r){if(!r.trim())return"";let e;try{e=JSON.parse(r)}catch{return""}let t=e.tool_input,n=e.toolInput,o=[t?.subagent_type,t?.subagentType,n?.subagent_type,n?.subagentType,e.subagent_type,e.subagentType];for(let s of o)if(typeof s=="string"&&s.trim())return s;return""}import P from"chalk";import Qe from"node:path";U();function De(r){r.command("pre-edit").description("Get context and guidance before editing a file").requiredOption("-f, --file <path>","File path to edit").option("-o, --operation <type>","Operation type: create, update, delete, refactor","update").option("--json","Output as JSON").action(async e=>{try{let{hookRegistry:t}=await _(),o=(await t.emit(A.PreTestGeneration,{targetFile:e.file,testType:"unit",operation:e.operation}))[0]||{success:!0,guidance:[],routing:null};if(e.json){let s=o.guidance||[],c=[o.routing?.recommendedAgent?`Recommended agent: ${o.routing.recommendedAgent} (${(o.routing.confidence*100).toFixed(0)}% confidence).`:"",...s.map(i=>i)].filter(Boolean).join(" ");h({hookSpecificOutput:{hookEventName:"PreToolUse",additionalContext:c||void 0},file:e.file,operation:e.operation,patterns:o.routing?.patterns?.length||0})}else console.log(P.bold(`
|
|
156
156
|
\u{1F4DD} Pre-Edit Analysis`)),console.log(P.dim(` File: ${e.file}`)),console.log(P.dim(` Operation: ${e.operation}`)),o.routing&&(console.log(P.bold(`
|
|
157
157
|
\u{1F3AF} Recommended Agent:`),P.cyan(o.routing.recommendedAgent)),console.log(P.dim(` Confidence: ${(o.routing.confidence*100).toFixed(1)}%`))),console.log(P.bold(`
|
|
158
158
|
\u{1F4A1} Guidance:`)),te(o.guidance||[]);return}catch(t){throw S(`pre-edit failed: ${t instanceof Error?t.message:"unknown"}`),t}}),r.command("post-edit").description("Record editing outcome for pattern learning").requiredOption("-f, --file <path>","File path that was edited").option("--success","Edit was successful").option("--failure","Edit failed").option("--pattern-id <id>","Pattern ID that was applied").option("--json","Output as JSON").action(async e=>{try{let{hookRegistry:t}=await _(),n=e.success||!e.failure,o=e.file||"";if(!o.trim())try{let p=await F();o=Oe(p)}catch{}let s=o.split("/").pop()||"unknown",c=/\.(test|spec)\.(ts|js|tsx|jsx)$/.test(s)?"test-generation":"code-intelligence",i=e.patternId||`edit:${c}:${s}`,l=(await t.emit(A.PostTestGeneration,{targetFile:o,success:n,patternId:i,generatedTests:null,testCount:0}))[0]||{success:!0,patternsLearned:0};try{let{reasoningBank:p}=await _();await p.recordOutcome({patternId:i,success:n,metrics:{executionTimeMs:0},feedback:`Edit ${n?"succeeded":"failed"}: ${o}`})}catch{}try{await G({task:`edit: ${o}`,agent:"cli-hook",domain:c,success:n,source:"cli-hook-post-edit"})}catch{}try{let p=R(),d=Qe.join(p,".agentic-qe"),k=await O(d);await x(k)}catch{}e.json?h({success:!0,file:o,editSuccess:n,patternsLearned:l.patternsLearned||0,dreamTriggered:!1,dreamReason:"deferred-to-kernel"}):(N(`Recorded edit outcome for ${o||"(unknown file)"}`),l.patternsLearned&&console.log(P.green(` Patterns learned: ${l.patternsLearned}`)));return}catch(t){throw S(`post-edit failed: ${t instanceof Error?t.message:"unknown"}`),t}})}import{randomUUID as Je}from"crypto";U();import v from"chalk";import Ve from"node:path";function Xe(r){if(!r.trim())return"";let e;try{e=JSON.parse(r)}catch{return r.trim()}let t=[e.prompt,e.user_prompt,e.command,e.tool_input?.prompt,e.tool_input?.description,e.toolInput?.prompt,e.toolInput?.description];for(let n of t)if(typeof n=="string"&&n.trim())return n;return""}function xe(r){r.command("route").description("Route a task to the optimal QE agent").option("-t, --task <description>","Task description (falls back to stdin event JSON)").option("-d, --domain <domain>","Target QE domain hint").option("-c, --capabilities <caps...>","Required capabilities").option("--json","Output as JSON").action(async e=>{try{let t=e.task??"";if(!t.trim()){let c=await F();t=Xe(c)}if(!t.trim())throw new Error("No task provided. Pass --task <description> or pipe a Claude Code hook event JSON to stdin.");let{reasoningBank:n}=await _(),o={task:t,domain:e.domain,capabilities:e.capabilities,includePatternGuidance:!0},s=await n.routeTask(o);if(!s.success)throw new Error(s.error.message);let a=s.value;e.json?h({recommendedAgent:a.recommendedAgent,confidence:a.confidence,alternatives:a.alternatives,domains:a.domains,patternCount:a.patterns.length,patterns:a.patterns.map(c=>({id:c.id,name:c.name,description:c.description,confidence:c.confidence})),guidance:a.guidance,reasoning:a.reasoning,exploration:a.exploration??!1,criticality:a.criticality??null,qWeight:a.qWeight??null}):(console.log(v.bold(`
|
|
@@ -161,7 +161,7 @@ import{a as A,b as Se,c as we}from"./chunk-W5HQIYQU.js";import{c as _e,d as be}f
|
|
|
161
161
|
\u{1F504} Alternatives:`)),a.alternatives.forEach(c=>{console.log(v.dim(` - ${c.agent}: ${(c.score*100).toFixed(1)}%`))})),console.log(v.bold(`
|
|
162
162
|
\u{1F4C2} Detected Domains:`),a.domains.join(", ")),console.log(v.bold(`
|
|
163
163
|
\u{1F4A1} Guidance:`)),te(a.guidance),console.log(v.bold(`
|
|
164
|
-
\u{1F4D6} Reasoning:`),v.dim(a.reasoning)));try{let{getUnifiedMemory:c}=await import("./unified-memory-
|
|
164
|
+
\u{1F4D6} Reasoning:`),v.dim(a.reasoning)));try{let{getUnifiedMemory:c}=await import("./unified-memory-TLGSSLMI.js"),i=c();i.isInitialized()||await i.initialize();let f=i.getDatabase();q(f),ee(f);let l=`route-${Date.now()}-${Je().slice(0,8)}`,p=a.confidence<.5,d=a;f.prepare(`
|
|
165
165
|
INSERT OR REPLACE INTO routing_outcomes (
|
|
166
166
|
id, task_json, decision_json, used_agent,
|
|
167
167
|
followed_recommendation, success, quality_score,
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
+
import{a,b}from"./chunk-6KATY3KS.js";import"./chunk-3Y7TJFHU.js";import"./chunk-7CMTY45A.js";import"./chunk-VTOBUZL6.js";import"./chunk-KDNJ4F3P.js";import"./chunk-JRRXCODW.js";import"./chunk-XNBOGCF3.js";import"./chunk-KV4T4MXK.js";import"./chunk-TWDW32W2.js";import"./chunk-AQSVJNEH.js";import"./chunk-OCAEXYFA.js";import"./chunk-DVGRPK7A.js";import"./chunk-TOQWL2ZF.js";import"./chunk-UT2VZ33P.js";import"./chunk-GB6HBNH2.js";import"./chunk-UOC3O6RP.js";import"./chunk-NT4DBXSX.js";import"./chunk-WOCGL4QP.js";import"./chunk-J2ZIFFM6.js";import"./chunk-RF7HWBHN.js";import"./chunk-DNDL7SOS.js";import"./chunk-3Y2ROSCL.js";import"./chunk-WO274FRI.js";import"./chunk-ZAKQLAHT.js";export{a as HybridMemoryBackend,b as createKernelMemoryBackend};
|
|
@@ -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.15.
|
|
2
|
-
import{a,b,c,d,e}from"./chunk-
|
|
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.15.13");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e}from"./chunk-JGZ722G3.js";import"./chunk-7CMTY45A.js";import"./chunk-VTOBUZL6.js";import"./chunk-H4H2YSFH.js";import"./chunk-3Y2ROSCL.js";import"./chunk-ZAKQLAHT.js";export{a as DEFAULT_HYPERGRAPH_ENGINE_CONFIG,b as HypergraphEngine,c as createHypergraphEngine,d as createHypergraphEngineSync,e as default};
|
|
@@ -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.15.
|
|
2
|
-
import"./chunk-
|
|
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.15.13");process.exit(0)}
|
|
2
|
+
import"./chunk-ZAKQLAHT.js";import e from"chalk";import{join as m,resolve as h}from"path";import{existsSync as y}from"fs";var c=class{name="hypergraph";description="Query the code knowledge hypergraph";cleanupAndExit;ensureInitialized;constructor(n,r){this.cleanupAndExit=n,this.ensureInitialized=r}register(n,r){let s=n.command("hypergraph").alias("hg").description(this.description);s.command("stats").description("Show hypergraph statistics (node/edge counts by type)").option("--db <path>","Database path").action(async t=>{await this.executeStats(t)}),s.command("untested").description("Find functions with no test coverage").option("--db <path>","Database path").option("--limit <number>","Max results","20").action(async t=>{await this.executeUntested(t)}),s.command("impacted <files...>").description("Find tests impacted by changed files").option("--db <path>","Database path").action(async(t,i)=>{await this.executeImpacted(t,i)}),s.command("gaps").description("Find functions with low coverage").option("--db <path>","Database path").option("--max-coverage <number>","Coverage threshold (%)","50").option("--limit <number>","Max results","20").action(async t=>{await this.executeGaps(t)})}async executeStats(n){if(!await this.ensureInitialized())return;let{engine:r,close:s}=await this.openEngine(n.db);try{let t=await r.getStats();if(console.log(e.blue(`
|
|
3
3
|
Hypergraph Statistics
|
|
4
4
|
`)),console.log(e.white(` Total nodes: ${t.totalNodes}`)),console.log(e.white(` Total edges: ${t.totalEdges}`)),t.totalNodes>0){console.log(e.gray(`
|
|
5
5
|
Nodes by type:`));for(let[i,o]of Object.entries(t.nodesByType))o>0&&console.log(e.gray(` ${i}: ${o}`));console.log(e.gray(`
|
|
@@ -15,7 +15,7 @@ import"./chunk-WDEXOLK2.js";import e from"chalk";import{join as m,resolve as h}f
|
|
|
15
15
|
`))}finally{i()}await this.cleanupAndExit(0)}async executeGaps(n){if(!await this.ensureInitialized())return;let{engine:r,close:s}=await this.openEngine(n.db);try{let t=parseInt(n.maxCoverage,10)||50,i=parseInt(n.limit,10)||20,o=await r.findCoverageGaps(t),a=o.slice(0,i);if(console.log(e.blue(`
|
|
16
16
|
Coverage Gaps (<= ${t}%) \u2014 ${o.length} total
|
|
17
17
|
`)),a.length===0)console.log(e.green(" No coverage gaps found!"));else{for(let l of a){let d=l.coverage!==void 0?e.red(` ${l.coverage}%`):"",p=l.complexity?e.yellow(` complexity=${l.complexity}`):"";console.log(e.white(` ${l.name}`)+d+e.gray(` ${l.filePath||""}`)+p)}o.length>i&&console.log(e.gray(`
|
|
18
|
-
... and ${o.length-i} more (use --limit to show more)`))}console.log("")}finally{s()}await this.cleanupAndExit(0)}async openEngine(n){let{findProjectRoot:r}=await import("./unified-memory-
|
|
18
|
+
... and ${o.length-i} more (use --limit to show more)`))}console.log("")}finally{s()}await this.cleanupAndExit(0)}async openEngine(n){let{findProjectRoot:r}=await import("./unified-memory-TLGSSLMI.js"),{openDatabase:s}=await import("./safe-db-4RRIGRXD.js"),{createHypergraphEngine:t}=await import("./hypergraph-engine-WINGVMPG.js"),i=r(),o=n||m(i,".agentic-qe","memory.db");if(!y(o))throw new Error(`Database not found: ${o}
|
|
19
19
|
Run "aqe init --auto" first.`);let a=s(o);try{return{engine:await t({db:a,maxTraversalDepth:10,maxQueryResults:1e3,enableVectorSearch:!1}),close:()=>{try{a.close()}catch{}}}}catch(l){try{a.close()}catch{}throw l}}getHelp(){return`
|
|
20
20
|
Query the code knowledge hypergraph for untested functions,
|
|
21
21
|
impacted tests, and coverage gaps.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
+
import{a}from"./chunk-KB56CPU4.js";import"./chunk-GHY6Z6KO.js";import"./chunk-PB6J6HAA.js";import"./chunk-NZ3GUMB2.js";import"./chunk-LZYQHVD4.js";import"./chunk-QPNG5ZN2.js";import"./chunk-P7A4NKTZ.js";import"./chunk-VTOBUZL6.js";import"./chunk-H4H2YSFH.js";import"./chunk-NURIILUB.js";import"./chunk-UT2VZ33P.js";import"./chunk-GB6HBNH2.js";import"./chunk-UOC3O6RP.js";import"./chunk-NT4DBXSX.js";import"./chunk-J2ZIFFM6.js";import"./chunk-RF7HWBHN.js";import"./chunk-3Y2ROSCL.js";import"./chunk-ZAKQLAHT.js";export{a as ImpactAnalyzerService};
|
|
@@ -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.15.
|
|
2
|
-
import{a,b,c,d}from"./chunk-
|
|
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.15.13");process.exit(0)}
|
|
2
|
+
import{a,b,c,d}from"./chunk-K4CZA77U.js";import"./chunk-RF7HWBHN.js";import"./chunk-ZAKQLAHT.js";export{d as explicitRootError,a as initProjectRoot,c as sharedDirInitError,b as sharedRootInitError};
|
|
@@ -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.15.
|
|
2
|
-
import{a as v,b as k}from"./chunk-
|
|
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.15.13");process.exit(0)}
|
|
2
|
+
import{a as v,b as k}from"./chunk-K4CZA77U.js";import{a as b}from"./chunk-NURIILUB.js";import"./chunk-RF7HWBHN.js";import{a as y,e as M}from"./chunk-3Y2ROSCL.js";import"./chunk-ZAKQLAHT.js";import{Option as I}from"commander";import o from"chalk";import{createRequire as S}from"node:module";M();var P="--no-mcp and --with-mcp cannot be combined: --no-mcp skips the .mcp.json entry, --with-mcp forces it";function w(a,e){return a===!1||e===!0}function h(a){let e={noMcp:w(a.mcp,a.noMcp),withMcp:a.withMcp===!0,noGovernance:w(a.governance,a.noGovernance),noClaude:w(a.claude,a.noClaude),noStatusLine:w(a.statusline,a.noStatusLine),noDatabase:a.database===!1};if(e.noMcp&&e.withMcp)throw new Error(P);return e}var C=class{name="init";description="Initialize the AQE v3 system";cleanupAndExit;originalStdoutWrite=null;constructor(e){this.cleanupAndExit=e}register(e,n){e.command("init").description(this.description).option("-d, --domains <domains>","Comma-separated list of domains to enable","all").option("-m, --max-agents <number>","Maximum concurrent agents","15").option("--memory <backend>",'Memory backend (sqlite|agentdb|hybrid|memory). "memory" = database-free, in-memory only.',"hybrid").option("--no-database","Database-free install: alias for `--memory memory`. Skips the SQLite database phase and runs any MCP server in-memory \u2014 nothing is written to .agentic-qe/.").option("--no-statusline","Do not install AQE's Claude Code status line; remove an existing AQE-owned status line while preserving custom ones").option("--lazy","Enable lazy loading of domains").option("--wizard","Run interactive setup wizard").option("--auto","Auto-configure based on project analysis").option("-u, --upgrade","Upgrade existing installation (overwrite skills, agents, validation)").option("--browser-engine","Install optional Vibium and browser payload (explicit download)",!1).option("--no-browser-engine","Skip optional browser setup (default)").option("--minimal","Minimal configuration (skip optional features)").option("--skip-patterns","Skip loading pre-trained patterns").option("--skip-code-index","Skip code intelligence pre-scan (supported escape hatch \u2014 KG can be built later via `aqe code index`, also via env AQE_SKIP_CODE_INDEX=1)").option("--json","Emit machine-readable JSON result on stdout (suppresses banners; phase progress goes to stderr). Used by the release-gate corpus and CI tooling. See InitJsonOutput in init-handler.ts for the schema.").option("--with-n8n","Install n8n workflow testing agents and skills").option("--with-opencode","Include OpenCode agent/skill provisioning").option("--with-kiro","Include AWS Kiro IDE integration (agents, skills, hooks, steering)").option("--with-copilot","Include GitHub Copilot MCP config and instructions").option("--with-cursor","Include Cursor MCP config and rules").option("--with-cline","Include Cline MCP config and custom QE mode").option("--with-kilocode","Include Kilo Code MCP config and custom QE mode").option("--with-roocode","Include Roo Code MCP config and custom QE mode").option("--with-codex","Include OpenAI Codex CLI MCP, AGENTS.md, hooks, and QE skills").addOption(new I("--codex-guidance <mode>","Codex AGENTS.md guidance policy").choices(["full","compact","none"]).default("full")).option("--with-ruflo","Add optional Ruflo guidance and lifecycle hooks to the Codex setup").option("--with-windsurf","Include Windsurf MCP config and rules").option("--with-continuedev","Include Continue.dev MCP config and rules").option("--no-mcp","Skip MCP server config (MCP is enabled by default). Cannot be combined with --with-mcp").addOption(new I("--with-mcp","Write the project .mcp.json agentic-qe entry even when the agentic-qe-fleet Claude Code plugin already provides the AQE MCP server (#922). Cannot be combined with --no-mcp").conflicts("mcp")).option("--with-all-platforms","Include all coding agent platform configurations").option("--auto-migrate","Automatically migrate from v2 if detected").option("--with-claude-flow","Force Claude Flow integration setup").option("--skip-claude-flow","Skip Claude Flow integration").option("--no-governance","Skip governance configuration (ADR-058)").option("--no-claude","Suppress the default Claude Code surface (.claude/, .mcp.json, CLAUDE.md, governance, hooks) so --with-<platform> flags are the only install targets (#532)").option("--modular","Use new modular init system (default for --auto)").action(async t=>{await this.execute(t,n)})}async execute(e,n){if(e.json===!0){this.originalStdoutWrite=process.stdout.write.bind(process.stdout);let t=process.stderr.write.bind(process.stderr);process.stdout.write=((...r)=>t(...r))}try{let t=v(),r=k(t,!!process.env.AQE_PROJECT_ROOT);if(r){console.error(o.red(`
|
|
3
3
|
${r}
|
|
4
4
|
`)),await this.cleanupAndExit(1);return}if(e.withAllPlatforms&&(e.withCopilot=!0,e.withCursor=!0,e.withCline=!0,e.withKilocode=!0,e.withRoocode=!0,e.withCodex=!0,e.withWindsurf=!0,e.withContinuedev=!0),e.upgrade&&!e.auto&&!e.wizard&&(e.auto=!0),e.wizard||e.auto){if(console.log(o.blue(`
|
|
5
5
|
Agentic QE v3 Initialization
|
|
@@ -8,14 +8,14 @@ import{a as v,b as k}from"./chunk-RCOLPF3B.js";import{a as b}from"./chunk-VZBC6D
|
|
|
8
8
|
`)),await this.runModularInit(e,n,t);return}await this.runStandardInit(e,n)}catch(t){console.error(o.red(`
|
|
9
9
|
Failed to initialize:`),t),await this.cleanupAndExit(1)}}async runModularInit(e,n,t){let r=e.json===!0,s=h(e),d=s.noDatabase||e.memory==="memory";d&&(process.env.AQE_MEMORY_BACKEND="memory",r||console.log(o.gray(` Database-free mode: in-memory backend (no .agentic-qe/memory.db)
|
|
10
10
|
`)));let u=s.noClaude;u&&!(e.withOpencode||e.withN8n||e.withKiro||e.withCopilot||e.withCursor||e.withCline||e.withKilocode||e.withRoocode||e.withCodex||e.withWindsurf||e.withContinuedev||e.withAllPlatforms)&&!r&&console.log(o.yellow(` --no-claude set without any --with-<platform>: this install will write almost nothing.
|
|
11
|
-
`));let{createModularInitOrchestrator:l}=await import("./orchestrator-
|
|
11
|
+
`));let{createModularInitOrchestrator:l}=await import("./orchestrator-BMQ6X762.js"),m=l({projectRoot:t,autoMode:e.auto,upgrade:e.upgrade,minimal:e.minimal,browserEngine:e.browserEngine,skipPatterns:e.skipPatterns,skipCodeIndex:e.skipCodeIndex,withN8n:e.withN8n,withOpenCode:e.withOpencode,withKiro:e.withKiro,withCopilot:e.withCopilot,withCursor:e.withCursor,withCline:e.withCline,withKiloCode:e.withKilocode,withRooCode:e.withRoocode,withCodex:e.withCodex,withRuflo:e.withRuflo,codexGuidance:e.codexGuidance,withWindsurf:e.withWindsurf,withContinueDev:e.withContinuedev,noMcp:s.noMcp,withMcp:s.withMcp,noGovernance:s.noGovernance,noClaude:u,noStatusLine:s.noStatusLine,memoryBackend:d?"memory":void 0});console.log(o.white(` Analyzing project...
|
|
12
12
|
`));let i=await m.initialize();if(r){this.originalStdoutWrite&&(process.stdout.write=this.originalStdoutWrite);let g={schemaVersion:1,success:i.success,steps:i.steps.map(p=>({step:p.step,status:p.status,message:p.message,durationMs:p.durationMs})),summary:i.summary,totalDurationMs:i.totalDurationMs,timestamp:i.timestamp.toISOString()};process.stdout.write(JSON.stringify(g,null,2)+`
|
|
13
|
-
`);let f=i.steps.some(p=>p.status==="error");await this.cleanupAndExit(i.success&&!f?0:1);return}A(i.steps);let c;if(!e.skipClaudeFlow&&(e.withClaudeFlow||i.success))try{let{setupClaudeFlowIntegration:g}=await import("./claude-flow-setup-
|
|
13
|
+
`);let f=i.steps.some(p=>p.status==="error");await this.cleanupAndExit(i.success&&!f?0:1);return}A(i.steps);let c;if(!e.skipClaudeFlow&&(e.withClaudeFlow||i.success))try{let{setupClaudeFlowIntegration:g}=await import("./claude-flow-setup-ON6L462G.js");if(c=await g({projectRoot:t,force:e.withClaudeFlow}),c.available)console.log(o.green(" * Claude Flow integration enabled")),c.features.trajectories&&console.log(o.gray(" - SONA trajectory tracking")),c.features.modelRouting&&console.log(o.gray(" - 3-tier model routing (haiku/sonnet/opus)")),c.features.pretrain&&console.log(o.gray(" - Codebase pretrain analysis")),console.log("");else{let{getClaudeFlowNotFoundMessage:f}=await import("./detect-SZIHIVCJ.js");console.log(o.gray(f())),console.log("")}}catch{let{getClaudeFlowNotFoundMessage:g}=await import("./detect-SZIHIVCJ.js");console.log(o.gray(g())),console.log("")}i.success?(console.log(o.green(` AQE v3 initialized successfully!
|
|
14
14
|
`)),console.log(o.blue(" Summary:")),console.log(o.gray(` - Patterns loaded: ${i.summary.patternsLoaded}`)),console.log(o.gray(` - Skills installed: ${i.summary.skillsInstalled}`)),console.log(o.gray(` - Agents installed: ${i.summary.agentsInstalled}`)),console.log(o.gray(` - Hooks configured: ${i.summary.hooksConfigured?"Yes":"No"}`)),console.log(o.gray(` - Workers started: ${i.summary.workersStarted}`)),console.log(o.gray(` - Claude Flow: ${c?.available?"Enabled":"Standalone mode"}`)),console.log(o.gray(` - Total time: ${i.totalDurationMs}ms
|
|
15
15
|
`)),console.log(o.white("Next steps:")),console.log(o.gray(" 1. Run tests: aqe test <path>")),console.log(o.gray(" 2. Check coverage: aqe coverage <path>")),console.log(o.gray(" 3. Check status: aqe status")),i.summary.mcpConfigured&&(console.log(o.gray(`
|
|
16
16
|
MCP server configured in .mcp.json`)),console.log(o.gray(` Use --no-mcp to skip MCP setup if using CLI only
|
|
17
17
|
`))),E()):(console.log(o.red(` Initialization failed. Check errors above.
|
|
18
|
-
`)),await this.cleanupAndExit(1)),await this.cleanupAndExit(0)}async runLegacyWizard(e,n,t){let r=h(e),{InitOrchestrator:s}=await import("./init-wizard-
|
|
18
|
+
`)),await this.cleanupAndExit(1)),await this.cleanupAndExit(0)}async runLegacyWizard(e,n,t){let r=h(e),{InitOrchestrator:s}=await import("./init-wizard-TZDJQK3U.js"),d={projectRoot:t,autoMode:e.auto,minimal:e.minimal,browserEngine:e.browserEngine,skipPatterns:e.skipPatterns,withN8n:e.withN8n,noMcp:r.noMcp,withMcp:r.withMcp},u=new s(d);if(e.wizard){console.log(o.white(` Setup Wizard Steps:
|
|
19
19
|
`));let m=u.getWizardSteps();for(let i=0;i<m.length;i++)console.log(o.gray(` ${i+1}. ${m[i].title}`)),console.log(o.gray(` ${m[i].description}
|
|
20
20
|
`))}console.log(o.white(` Analyzing project...
|
|
21
21
|
`));let l=await u.initialize();A(l.steps),l.success?(console.log(o.green(` AQE v3 initialized successfully!
|
|
@@ -23,7 +23,7 @@ import{a as v,b as k}from"./chunk-RCOLPF3B.js";import{a as b}from"./chunk-VZBC6D
|
|
|
23
23
|
`)),console.log(o.white("Next steps:")),console.log(o.gray(" 1. Run tests: aqe test <path>")),console.log(o.gray(" 2. Check coverage: aqe coverage <path>")),console.log(o.gray(" 3. Check status: aqe status")),l.summary.mcpConfigured&&(console.log(o.gray(`
|
|
24
24
|
MCP server configured in .mcp.json`)),console.log(o.gray(` Use --no-mcp to skip MCP setup if using CLI only
|
|
25
25
|
`))),E()):(console.log(o.red(` Initialization failed. Check errors above.
|
|
26
|
-
`)),await this.cleanupAndExit(1)),await this.cleanupAndExit(0)}async runStandardInit(e,n){let{QEKernelImpl:t}=await import("./kernel-
|
|
26
|
+
`)),await this.cleanupAndExit(1)),await this.cleanupAndExit(0)}async runStandardInit(e,n){let{QEKernelImpl:t}=await import("./kernel-Y6RRIOKW.js"),{CrossDomainEventRouter:r}=await import("./cross-domain-router-QOFCZ7G4.js"),{DefaultProtocolExecutor:s}=await import("./protocol-executor-U2CUDWDE.js"),{WorkflowOrchestrator:d}=await import("./workflow-orchestrator-CVNNT2RJ.js"),{createQueenCoordinator:u}=await import("./queen-coordinator-6FN4BZIX.js");console.log(o.blue(`
|
|
27
27
|
Initializing Agentic QE v3...
|
|
28
28
|
`));let l=e.domains==="all"?[...b]:e.domains.split(",").filter(c=>b.includes(c));console.log(o.gray(` Domains: ${l.length}`)),console.log(o.gray(` Max Agents: ${e.maxAgents}`)),console.log(o.gray(` Memory: ${e.memory}`)),console.log(o.gray(` Lazy Loading: ${e.lazy?"enabled":"disabled"}
|
|
29
29
|
`)),n.kernel=new t({maxConcurrentAgents:parseInt(e.maxAgents,10),memoryBackend:e.memory,hnswEnabled:!0,lazyLoading:e.lazy||!1,enabledDomains:l,enableExperienceBridge:!1}),await n.kernel.initialize(),console.log(o.green(" * Kernel initialized")),n.router=new r(n.kernel.eventBus),await n.router.initialize(),console.log(o.green(" * Cross-domain router initialized"));let m=c=>n.kernel.getDomainAPI(c),i=new s(n.kernel.eventBus,n.kernel.memory,m);console.log(o.green(" * Protocol executor initialized")),n.workflowOrchestrator=new d(n.kernel.eventBus,n.kernel.memory,n.kernel.coordinator),await n.workflowOrchestrator.initialize(),this.registerDomainWorkflowActions(n.kernel,n.workflowOrchestrator),console.log(o.green(" * Workflow orchestrator initialized")),n.queen=u(n.kernel,n.router,i,void 0),await n.queen.initialize(),console.log(o.green(" * Queen Coordinator initialized")),n.initialized=!0,console.log(o.green(`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
+
import{a,b,c,d}from"./chunk-NW7IBHJA.js";import"./chunk-OFACHK5O.js";import"./chunk-WNQS4WTS.js";import"./chunk-LL7LDPXS.js";import"./chunk-5ZGM3RMH.js";import"./chunk-KDVZND5Q.js";import"./chunk-E7CLYGS7.js";import"./chunk-VTOBUZL6.js";import"./chunk-KDNJ4F3P.js";import"./chunk-NURIILUB.js";import"./chunk-DNDL7SOS.js";import"./chunk-3Y2ROSCL.js";import"./chunk-WO274FRI.js";import"./chunk-ZAKQLAHT.js";export{a as InitOrchestrator,b as createInitOrchestrator,d as formatInitResult,c as quickInit};
|