agentic-qe 3.15.13 → 3.15.14
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/helpers/brain-checkpoint.cjs +124 -5
- package/.claude/skills/skills-manifest.json +1 -1
- package/CHANGELOG.md +78 -0
- package/assets/skills/skills-manifest.json +1 -1
- package/dist/cli/bundle.js +6 -6
- package/dist/cli/chunks/adapter-23KA2YW7.js +2 -0
- package/dist/cli/chunks/{agent-booster-wasm-6RRQWMNE.js → agent-booster-wasm-2DLAEZK6.js} +2 -2
- package/dist/cli/chunks/{agent-handler-AOH6TV7W.js → agent-handler-P3IY7XEE.js} +2 -2
- package/dist/cli/chunks/{agent-memory-branch-2P54SF5N.js → agent-memory-branch-WWKC2H3G.js} +2 -2
- package/dist/cli/chunks/aqe-learning-engine-MUICAXW5.js +2 -0
- package/dist/cli/chunks/{arena-X6MOGQHA.js → arena-4BMFF6BS.js} +4 -4
- package/dist/cli/chunks/{arena-NSVFCAF5.js → arena-EIV5OALF.js} +2 -2
- package/dist/cli/chunks/{audit-27DJLQNM.js → audit-DNTI453H.js} +3 -3
- package/dist/cli/chunks/base-XPWGYDKD.js +2 -0
- package/dist/cli/chunks/{better-sqlite3-BU5GXILS.js → better-sqlite3-TQBQGNC6.js} +2 -2
- package/dist/cli/chunks/brain-handler-HY57CNAO.js +95 -0
- package/dist/cli/chunks/{branch-enumerator-5CLULOCU.js → branch-enumerator-THPMZPHQ.js} +2 -2
- package/dist/cli/chunks/{browser-R4DMU3LN.js → browser-O6JJOZCK.js} +2 -2
- package/dist/cli/chunks/browser-workflow-UMQVBVGK.js +2 -0
- package/dist/cli/chunks/{chunk-VU5TBX2V.js → chunk-2HPNGK7A.js} +2 -2
- package/dist/cli/chunks/{chunk-5FKWCZNF.js → chunk-2IJO3657.js} +2 -2
- package/dist/cli/chunks/{chunk-K3TLLJMX.js → chunk-2QLE6NDW.js} +1 -1
- package/dist/cli/chunks/{chunk-J2ZIFFM6.js → chunk-2UZBLC5H.js} +2 -2
- package/dist/cli/chunks/{chunk-HD7YIFOI.js → chunk-2W5MQDHM.js} +2 -2
- package/dist/cli/chunks/{chunk-F3YS57NF.js → chunk-3FITMWWJ.js} +2 -2
- package/dist/cli/chunks/{chunk-K4CZA77U.js → chunk-3TF27MG5.js} +2 -2
- package/dist/cli/chunks/{chunk-BLSLEVDI.js → chunk-3XACRXBY.js} +2 -2
- package/dist/cli/chunks/{chunk-A64JFBWI.js → chunk-43XHGWYH.js} +2 -2
- package/dist/cli/chunks/{chunk-42J34YG4.js → chunk-4RPBODN5.js} +2 -2
- package/dist/cli/chunks/{chunk-W26B7ERY.js → chunk-4T7XV5KQ.js} +1 -1
- package/dist/cli/chunks/{chunk-SSU73QAX.js → chunk-4WLIOPHX.js} +2 -2
- package/dist/cli/chunks/{chunk-P7A4NKTZ.js → chunk-52KOPIMI.js} +2 -2
- package/dist/cli/chunks/{chunk-HQZGPJYG.js → chunk-56NSE3LJ.js} +2 -2
- package/dist/cli/chunks/{chunk-AQSVJNEH.js → chunk-57DRT6UA.js} +2 -2
- package/dist/cli/chunks/{chunk-M6AAGIG7.js → chunk-57FX3GP6.js} +1 -1
- package/dist/cli/chunks/{chunk-O6FGXMHD.js → chunk-5PLBQZ5J.js} +1 -1
- package/dist/cli/chunks/{chunk-ASQYASNV.js → chunk-5Y7UFHJD.js} +1 -1
- package/dist/cli/chunks/{chunk-5VMAV6T6.js → chunk-5Z4MO2F3.js} +1 -1
- package/dist/cli/chunks/chunk-65EE2EST.js +8 -0
- package/dist/cli/chunks/{chunk-7CMTY45A.js → chunk-6NIGSY5L.js} +2 -2
- package/dist/cli/chunks/chunk-6O63ZTVX.js +3 -0
- package/dist/cli/chunks/{chunk-FZ76G4QJ.js → chunk-6OI5SK7M.js} +1 -1
- package/dist/cli/chunks/{chunk-5ZGM3RMH.js → chunk-6P4Q4RTC.js} +1 -1
- package/dist/cli/chunks/{chunk-LUZNKJE6.js → chunk-7724KXM2.js} +3 -3
- package/dist/cli/chunks/{chunk-XPRVF4YE.js → chunk-7MISCSL5.js} +2 -2
- package/dist/cli/chunks/{chunk-TCBBNUBP.js → chunk-7MUO4DEH.js} +3 -3
- package/dist/cli/chunks/{chunk-NT4DBXSX.js → chunk-7QUSNBAA.js} +2 -2
- package/dist/cli/chunks/{chunk-TWDW32W2.js → chunk-7SQTLUEN.js} +2 -2
- package/dist/cli/chunks/{chunk-QPNG5ZN2.js → chunk-7T6L3LFN.js} +2 -2
- package/dist/cli/chunks/{chunk-E56B6IDX.js → chunk-7TH4PJSU.js} +2 -2
- package/dist/cli/chunks/{chunk-LZYQHVD4.js → chunk-7Y3LXH57.js} +2 -2
- package/dist/cli/chunks/{chunk-YQFLQE53.js → chunk-A2T56XVL.js} +2 -2
- package/dist/cli/chunks/{chunk-KV4T4MXK.js → chunk-AJVLVF7V.js} +2 -2
- package/dist/cli/chunks/{chunk-VTDFVFST.js → chunk-ARRBXCII.js} +2 -2
- package/dist/cli/chunks/{chunk-G6WDYBLQ.js → chunk-AYLEH2UF.js} +1 -1
- package/dist/cli/chunks/{chunk-526QYFJU.js → chunk-BBYJBZHG.js} +2 -2
- package/dist/cli/chunks/{chunk-CM4LSLKR.js → chunk-BM3EJLMV.js} +2 -2
- package/dist/cli/chunks/{chunk-DVGRPK7A.js → chunk-BNG4J3CE.js} +2 -2
- package/dist/cli/chunks/{chunk-BK577VL7.js → chunk-BPDAQB3F.js} +2 -2
- package/dist/cli/chunks/{chunk-C6JTLKG7.js → chunk-BQJ7CV53.js} +9 -9
- package/dist/cli/chunks/{chunk-GB6HBNH2.js → chunk-C3OIBFAA.js} +2 -2
- package/dist/cli/chunks/{chunk-RF7HWBHN.js → chunk-CAZM63TP.js} +2 -2
- package/dist/cli/chunks/{chunk-KWYH3FI4.js → chunk-CIINJHOX.js} +1 -1
- package/dist/cli/chunks/{chunk-ARJW4I2O.js → chunk-CPPYZYXC.js} +2 -2
- package/dist/cli/chunks/{chunk-CRWPZT74.js → chunk-D3ZZ2NLL.js} +2 -2
- package/dist/cli/chunks/{chunk-Q3UDLV5Z.js → chunk-D5GB5PUU.js} +1 -1
- package/dist/cli/chunks/{chunk-7PLIEBY7.js → chunk-DLTB5KCR.js} +2 -2
- package/dist/cli/chunks/{chunk-YZWBNBTW.js → chunk-DRLSJJIC.js} +2 -2
- package/dist/cli/chunks/{chunk-BEGR4D6N.js → chunk-DSQESXL4.js} +2 -2
- package/dist/cli/chunks/{chunk-72ASBE35.js → chunk-E2JLAW3U.js} +3 -3
- package/dist/cli/chunks/{chunk-MAMQA43L.js → chunk-E3QIQMMN.js} +1 -1
- package/dist/cli/chunks/{chunk-WOCGL4QP.js → chunk-E7OR6V3V.js} +2 -2
- package/dist/cli/chunks/{chunk-MVVB7C2E.js → chunk-E7QTWGPI.js} +156 -156
- package/dist/cli/chunks/{chunk-JQGMW45H.js → chunk-EC65UZ77.js} +1 -1
- package/dist/cli/chunks/{chunk-YXRASAPI.js → chunk-EIEEST4T.js} +2 -2
- package/dist/cli/chunks/{chunk-AL6FBH3E.js → chunk-FHPNWHY7.js} +2 -2
- package/dist/cli/chunks/{chunk-C7JM7CD3.js → chunk-FJOIBZUB.js} +2 -2
- package/dist/cli/chunks/{chunk-LL7LDPXS.js → chunk-FTYRPEJS.js} +1 -1
- package/dist/cli/chunks/{chunk-MFW5HSG4.js → chunk-G7HGUQAE.js} +2 -2
- package/dist/cli/chunks/{chunk-WQL7WCIZ.js → chunk-GY4P7KAI.js} +1 -1
- package/dist/cli/chunks/{chunk-3YNLWPBF.js → chunk-H3C5FJRH.js} +2 -2
- package/dist/cli/chunks/{chunk-W3INMZZ6.js → chunk-H4LYXLAT.js} +1 -1
- package/dist/cli/chunks/{chunk-W3PPFHI5.js → chunk-HAYKLXCT.js} +52 -50
- package/dist/cli/chunks/{chunk-XNBOGCF3.js → chunk-HEDGFKC5.js} +2 -2
- package/dist/cli/chunks/{chunk-SYV2V3PL.js → chunk-HHBF2BZC.js} +4 -4
- package/dist/cli/chunks/{chunk-75RDHBAX.js → chunk-HSDWPQQY.js} +3 -3
- package/dist/cli/chunks/{chunk-6KATY3KS.js → chunk-HTVGHHX2.js} +2 -2
- package/dist/cli/chunks/{chunk-VRVMIPTM.js → chunk-HV43NX4A.js} +2 -2
- package/dist/cli/chunks/{chunk-RFNW2LGD.js → chunk-IDBA5GK2.js} +2 -2
- package/dist/cli/chunks/{chunk-DNDL7SOS.js → chunk-INGXD5IX.js} +2 -2
- package/dist/cli/chunks/{chunk-IJUHSJ2U.js → chunk-IQRPR4KB.js} +2 -2
- package/dist/cli/chunks/{chunk-UOC3O6RP.js → chunk-IRPNEXOU.js} +2 -2
- package/dist/cli/chunks/{chunk-KDVZND5Q.js → chunk-J35JWDJE.js} +1 -1
- package/dist/cli/chunks/{chunk-CV77DMDQ.js → chunk-J6ASX536.js} +2 -2
- package/dist/cli/chunks/{chunk-7YTGHGK4.js → chunk-JAOCHPYX.js} +2 -2
- package/dist/cli/chunks/{chunk-HZ5NXFXH.js → chunk-JB7R77SH.js} +2 -2
- package/dist/cli/chunks/{chunk-PB6J6HAA.js → chunk-JI67T6Q2.js} +2 -2
- package/dist/cli/chunks/{chunk-E7CLYGS7.js → chunk-JJHLGGPP.js} +1 -1
- package/dist/cli/chunks/{chunk-3Y7TJFHU.js → chunk-JK6PMLQQ.js} +2 -2
- package/dist/cli/chunks/{chunk-CCMKSHAT.js → chunk-JO26SG47.js} +2 -2
- package/dist/cli/chunks/{chunk-NU3W5WFT.js → chunk-JSSU4RIK.js} +2 -2
- package/dist/cli/chunks/{chunk-756CGMEH.js → chunk-K2SMP4OD.js} +1 -1
- package/dist/cli/chunks/{chunk-OCAEXYFA.js → chunk-K7GFYFBO.js} +2 -2
- package/dist/cli/chunks/{chunk-VRHRBAEM.js → chunk-K7RT6ITZ.js} +1 -1
- package/dist/cli/chunks/{chunk-LFJALJOA.js → chunk-KJ5A54ZH.js} +2 -2
- package/dist/cli/chunks/{chunk-3Y2ROSCL.js → chunk-L5VSLPMW.js} +2 -2
- package/dist/cli/chunks/{chunk-WKGTGOYS.js → chunk-L752CNG3.js} +3 -3
- package/dist/cli/chunks/{chunk-IC3TQEOA.js → chunk-L7PC675Y.js} +1 -1
- package/dist/cli/chunks/{chunk-TOQWL2ZF.js → chunk-LTGQJYYO.js} +2 -2
- package/dist/cli/chunks/{chunk-SVLQRAMF.js → chunk-M2TG7VDK.js} +1 -1
- package/dist/cli/chunks/{chunk-X7N2JF2X.js → chunk-M5JEA6ZY.js} +2 -2
- package/dist/cli/chunks/{chunk-GHM6MQNK.js → chunk-MB4UKUBV.js} +2 -2
- package/dist/cli/chunks/{chunk-R7SYRCRP.js → chunk-MKYOE7NE.js} +1 -1
- package/dist/cli/chunks/{chunk-3AN5TNGD.js → chunk-MQXWG55U.js} +3 -3
- package/dist/cli/chunks/{chunk-3QZEGE67.js → chunk-MR2OPUSA.js} +1 -1
- package/dist/cli/chunks/{chunk-6Z7PRBSG.js → chunk-N736GLWZ.js} +2 -2
- package/dist/cli/chunks/{chunk-PIDQVU3L.js → chunk-NHEG2DLN.js} +2 -2
- package/dist/cli/chunks/chunk-NKOLILT7.js +86 -0
- package/dist/cli/chunks/{chunk-UXZSUMEA.js → chunk-NPCXGX7N.js} +2 -2
- package/dist/cli/chunks/{chunk-XEAEYC6Y.js → chunk-NZQYJCO6.js} +1 -1
- package/dist/cli/chunks/{chunk-G77ERMUD.js → chunk-O2AAYJUV.js} +1 -1
- package/dist/cli/chunks/{chunk-H4GG2NLO.js → chunk-O32BFQV4.js} +2 -2
- package/dist/cli/chunks/{chunk-3LJ7LQMV.js → chunk-O3ERGUXH.js} +1 -1
- package/dist/cli/chunks/{chunk-QDEJ4CI2.js → chunk-O5CEL447.js} +2 -2
- package/dist/cli/chunks/{chunk-W2QWSQVE.js → chunk-O756AOUX.js} +2 -2
- package/dist/cli/chunks/{chunk-PSFSPGUD.js → chunk-OCN53CCK.js} +2 -2
- package/dist/cli/chunks/{chunk-KCW47QR5.js → chunk-OGEIHS76.js} +1 -1
- package/dist/cli/chunks/{chunk-3RZV5DGO.js → chunk-OLUOVNUF.js} +2 -2
- package/dist/cli/chunks/{chunk-KADFXPPN.js → chunk-P2TPH3TC.js} +2 -2
- package/dist/cli/chunks/{chunk-7NA7JXNB.js → chunk-PCQZIAXB.js} +2 -2
- package/dist/cli/chunks/{chunk-HOAJUIBQ.js → chunk-PGN4TARY.js} +2 -2
- package/dist/cli/chunks/{chunk-KB56CPU4.js → chunk-PNRPVQGI.js} +2 -2
- package/dist/cli/chunks/{chunk-CE7B5LU7.js → chunk-PWQWKYBG.js} +1 -1
- package/dist/cli/chunks/{chunk-DLD7RUZ4.js → chunk-QNQE3EOH.js} +2 -2
- package/dist/cli/chunks/chunk-QP2HLKTS.js +2 -0
- package/dist/cli/chunks/{chunk-H4H2YSFH.js → chunk-QP6GL3O5.js} +1 -1
- package/dist/cli/chunks/{chunk-LWR3FV3Y.js → chunk-QUZ745UQ.js} +2 -2
- package/dist/cli/chunks/{chunk-X2Z7F4EU.js → chunk-R5RRWLRI.js} +2 -2
- package/dist/cli/chunks/{chunk-NURIILUB.js → chunk-RE6JTSDM.js} +1 -1
- package/dist/cli/chunks/{chunk-YSZ5OE3Z.js → chunk-TOJF3ZG4.js} +2 -2
- package/dist/cli/chunks/{chunk-7JUC2MVZ.js → chunk-TSP6SU5V.js} +2 -2
- package/dist/cli/chunks/{chunk-NW7IBHJA.js → chunk-TW6Z6W4X.js} +4 -4
- package/dist/cli/chunks/{chunk-UDQSYWVF.js → chunk-TWOV3I3A.js} +1 -1
- package/dist/cli/chunks/chunk-U4TML2VD.js +3 -0
- package/dist/cli/chunks/{chunk-WO274FRI.js → chunk-U6IOQKCT.js} +2 -2
- package/dist/cli/chunks/{chunk-KDNJ4F3P.js → chunk-UDSB3XCG.js} +2 -2
- package/dist/cli/chunks/{chunk-SG3NX7QE.js → chunk-UFP7SN5V.js} +2 -2
- package/dist/cli/chunks/{chunk-UTRV7T2N.js → chunk-UMHFTQTR.js} +2 -2
- package/dist/cli/chunks/{chunk-4OVC4RIL.js → chunk-UNYTHZDZ.js} +1 -1
- package/dist/cli/chunks/{chunk-32ZMWEP3.js → chunk-UPWLMIDY.js} +2 -2
- package/dist/cli/chunks/{chunk-T3PGQFDI.js → chunk-USAKCGHC.js} +2 -2
- package/dist/cli/chunks/{chunk-2G7TVT6W.js → chunk-V3MGY76S.js} +2 -2
- package/dist/cli/chunks/{chunk-ZAKQLAHT.js → chunk-V6SE2ZU2.js} +1 -1
- package/dist/cli/chunks/{chunk-SE4VNN4I.js → chunk-VCVRZD4Y.js} +3 -3
- package/dist/cli/chunks/{chunk-PHP5UBT4.js → chunk-VG32EEUG.js} +2 -2
- package/dist/cli/chunks/{chunk-YZEXYO4W.js → chunk-VGZOPQQY.js} +1 -1
- package/dist/cli/chunks/{chunk-OFACHK5O.js → chunk-VJBJRFUO.js} +2 -2
- package/dist/cli/chunks/{chunk-NZ3GUMB2.js → chunk-WBC6WB32.js} +2 -2
- package/dist/cli/chunks/{chunk-GHY6Z6KO.js → chunk-WCM6WE7G.js} +3 -3
- package/dist/cli/chunks/{chunk-NZD4DPSU.js → chunk-WCPSR4MJ.js} +2 -2
- package/dist/cli/chunks/{chunk-I3C7JOXC.js → chunk-WKI46WWN.js} +2 -2
- package/dist/cli/chunks/{chunk-5K26BEYB.js → chunk-WM2QRIRD.js} +2 -2
- package/dist/cli/chunks/{chunk-U2FUXDDJ.js → chunk-WRC3HLUY.js} +3 -3
- package/dist/cli/chunks/{chunk-GII6UM3F.js → chunk-WUGXXNK4.js} +1 -1
- package/dist/cli/chunks/{chunk-JGZ722G3.js → chunk-WZQADC5R.js} +2 -2
- package/dist/cli/chunks/{chunk-GU5HNCWI.js → chunk-X6NJOT3V.js} +1 -1
- package/dist/cli/chunks/{chunk-DFUASIKA.js → chunk-X6Q2N5S5.js} +2 -2
- package/dist/cli/chunks/{chunk-G2Q66Z23.js → chunk-X7CUI7KH.js} +2 -2
- package/dist/cli/chunks/{chunk-5MDERQH3.js → chunk-XMCSKYDE.js} +1 -1
- package/dist/cli/chunks/{chunk-VTOBUZL6.js → chunk-XN3KCKAM.js} +2 -2
- package/dist/cli/chunks/{chunk-KUAKV3IW.js → chunk-XSPMLJCQ.js} +1 -1
- package/dist/cli/chunks/{chunk-YBQH2VOP.js → chunk-XTZGAG6P.js} +2 -2
- package/dist/cli/chunks/{chunk-MGZ5FJUW.js → chunk-YE54T2NQ.js} +2 -2
- package/dist/cli/chunks/{chunk-BTVEYBW2.js → chunk-YEFTK4HD.js} +2 -2
- package/dist/cli/chunks/{chunk-CT6SAVXQ.js → chunk-YGC5QKQ4.js} +2 -2
- package/dist/cli/chunks/{chunk-TWJTK4CC.js → chunk-YGOSSVY5.js} +2 -2
- package/dist/cli/chunks/chunk-YKQWIXUY.js +2 -0
- package/dist/cli/chunks/{chunk-TSQC2KKZ.js → chunk-Z2S7DNFP.js} +2 -2
- package/dist/cli/chunks/{chunk-JRRXCODW.js → chunk-Z54G2YOL.js} +2 -2
- package/dist/cli/chunks/{chunk-EXGMJFAT.js → chunk-ZJGFQK27.js} +1 -1
- package/dist/cli/chunks/{chunk-WNQS4WTS.js → chunk-ZUE524JL.js} +2 -2
- package/dist/cli/chunks/{ci-ENOASTYB.js → ci-UMA2SMNW.js} +2 -2
- package/dist/cli/chunks/{ci-config-B26OXHQM.js → ci-config-UQSILJFQ.js} +2 -2
- package/dist/cli/chunks/{ci-output-JTCLLNOQ.js → ci-output-U6YZLLKH.js} +2 -2
- package/dist/cli/chunks/{circuit-breaker-23JMFNM5.js → circuit-breaker-ATYQP6X2.js} +2 -2
- package/dist/cli/chunks/{claude-flow-setup-ON6L462G.js → claude-flow-setup-6YHFD7AN.js} +2 -2
- package/dist/cli/chunks/client-E43GWLQH.js +2 -0
- package/dist/cli/chunks/{cline-installer-OWQ4D2FQ.js → cline-installer-EPE7IOZE.js} +2 -2
- package/dist/cli/chunks/{code-2ZRL7SEU.js → code-NUEJ4XYO.js} +3 -3
- package/dist/cli/chunks/{code-index-extractor-JXSQVM67.js → code-index-extractor-D4DBT6OL.js} +2 -2
- package/dist/cli/chunks/{codex-installer-7LXZYBSQ.js → codex-installer-633SM4LR.js} +2 -2
- package/dist/cli/chunks/{completions-C2LR623C.js → completions-WUKVIW3L.js} +2 -2
- package/dist/cli/chunks/{complexity-analyzer-TGQLHCYJ.js → complexity-analyzer-F73ACR5H.js} +2 -2
- package/dist/cli/chunks/{continuedev-installer-RUGD24D2.js → continuedev-installer-QH42TKMS.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-ZLFVLEJP.js → copilot-installer-Y3XC7BTT.js} +2 -2
- package/dist/cli/chunks/core-handlers-R5A3SQDY.js +2 -0
- package/dist/cli/chunks/{cost-tracker-RT4QL745.js → cost-tracker-57QPV7E3.js} +2 -2
- package/dist/cli/chunks/coverage-IBCHMBCR.js +51 -0
- package/dist/cli/chunks/cross-domain-router-LLYVPZF6.js +2 -0
- package/dist/cli/chunks/{cursor-installer-LJKLNFF6.js → cursor-installer-F4UYQHIN.js} +2 -2
- package/dist/cli/chunks/{daemon-FBH3IRYN.js → daemon-BYYPIJ7G.js} +4 -4
- package/dist/cli/chunks/{daemon-BMDXCQT5.js → daemon-XR4Q6YZF.js} +3 -3
- package/dist/cli/chunks/{dag-attention-scheduler-JGDED55I.js → dag-attention-scheduler-ZR5ZD3TW.js} +2 -2
- package/dist/cli/chunks/{detect-SZIHIVCJ.js → detect-GEGYURLL.js} +2 -2
- package/dist/cli/chunks/{dist-node-FV3KWXQ6.js → dist-node-JU3KT2JO.js} +2 -2
- package/dist/cli/chunks/{domain-handler-GI5JWQOV.js → domain-handler-7QI3FJGE.js} +2 -2
- package/dist/cli/chunks/{domain-plugins-BUWY36TL.js → domain-plugins-O2YRM2PD.js} +2 -2
- package/dist/cli/chunks/{domain-transfer-GCY7W5DA.js → domain-transfer-7J3S2OS6.js} +2 -2
- package/dist/cli/chunks/dream-6C4NURSE.js +2 -0
- package/dist/cli/chunks/{embed-and-insert-pattern-GPRR3ZGD.js → embed-and-insert-pattern-URES5Q6J.js} +2 -2
- package/dist/cli/chunks/{eval-XPB3IGAP.js → eval-RVMCIUOR.js} +2 -2
- package/dist/cli/chunks/{experience-capture-middleware-2E554UB3.js → experience-capture-middleware-SYJQSBKE.js} +3 -3
- package/dist/cli/chunks/{fast-paths-ZSMWZPUC.js → fast-paths-QUKPKWKZ.js} +2 -2
- package/dist/cli/chunks/{feature-flags-N7EOGE5P.js → feature-flags-5JCSKL2P.js} +2 -2
- package/dist/cli/chunks/{feature-flags-GIWVDVVC.js → feature-flags-K7JXNKJI.js} +2 -2
- package/dist/cli/chunks/file-discovery-J5IE5KP7.js +2 -0
- package/dist/cli/chunks/{fleet-HCHDOUCX.js → fleet-II4Q6HXK.js} +3 -3
- package/dist/cli/chunks/{gnn-wrapper-CZNCNXXZ.js → gnn-wrapper-M7VO2EMS.js} +2 -2
- package/dist/cli/chunks/{heartbeat-handler-6YUIF2YQ.js → heartbeat-handler-ND5CY26N.js} +4 -4
- package/dist/cli/chunks/heartbeat-scheduler-FC5PBTMN.js +2 -0
- package/dist/cli/chunks/hnsw-adapter-47UIVOBG.js +2 -0
- package/dist/cli/chunks/hnsw-index-3AKVLOZQ.js +2 -0
- package/dist/cli/chunks/{hnsw-legacy-bridge-J3M3IK24.js → hnsw-legacy-bridge-N3AUUUU7.js} +2 -2
- package/dist/cli/chunks/{hnswlib-node-ULGTGDZW.js → hnswlib-node-NZY3E5EN.js} +2 -2
- package/dist/cli/chunks/{hooks-C4BUGYUQ.js → hooks-QVJDTII5.js} +10 -10
- package/dist/cli/chunks/hybrid-backend-YAOSNX47.js +2 -0
- package/dist/cli/chunks/{hypergraph-engine-WINGVMPG.js → hypergraph-engine-ZRY6MTDV.js} +2 -2
- package/dist/cli/chunks/{hypergraph-handler-GADMWKAU.js → hypergraph-handler-56DO4XZQ.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-4FMJXM4M.js +2 -0
- package/dist/cli/chunks/{init-guard-K2T4QWAO.js → init-guard-DTF4EVUY.js} +2 -2
- package/dist/cli/chunks/{init-handler-PCZTDZYI.js → init-handler-M6CNQHMX.js} +6 -6
- package/dist/cli/chunks/init-wizard-RTLCRWDT.js +2 -0
- package/dist/cli/chunks/kernel-2OWIGGGT.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-XENXNEIU.js → kilocode-installer-IJN7XKBH.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-3PG2TJ67.js → kiro-installer-UKKPGPDC.js} +2 -2
- package/dist/cli/chunks/knowledge-graph-25XXKDJN.js +2 -0
- package/dist/cli/chunks/learning-W2HETWQ4.js +131 -0
- package/dist/cli/chunks/{llm-router-RKVDEWU2.js → llm-router-Y546K4VX.js} +4 -4
- package/dist/cli/chunks/llm-router-service-G3EIN4UB.js +2 -0
- package/dist/cli/chunks/{load-ITHC564X.js → load-MKAB2AXE.js} +2 -2
- package/dist/cli/chunks/load-test-D6QYNIVT.js +2 -0
- package/dist/cli/chunks/{mcp-TCL5UW3N.js → mcp-AZKUS6K3.js} +2 -2
- package/dist/cli/chunks/{memory-BKDAY2N2.js → memory-ZDOQN2KU.js} +5 -5
- package/dist/cli/chunks/memory-backend-LDFFZMEQ.js +2 -0
- package/dist/cli/chunks/{memory-handlers-WN4FXFOA.js → memory-handlers-3SQVY7FE.js} +2 -2
- package/dist/cli/chunks/{multi-model-executor-VHAT7ZPF.js → multi-model-executor-WWVXDHG4.js} +2 -2
- package/dist/cli/chunks/{opencode-installer-E3VM3EEY.js → opencode-installer-YUJNXXWS.js} +2 -2
- package/dist/cli/chunks/{orchestrator-BMQ6X762.js → orchestrator-Z6PWPLRE.js} +109 -25
- package/dist/cli/chunks/pattern-null-store-KDVRM7PW.js +2 -0
- package/dist/cli/chunks/{pattern-usage-recorder-GOOR2BV5.js → pattern-usage-recorder-TPWPX32U.js} +2 -2
- package/dist/cli/chunks/{pipeline-5NSFQQIX.js → pipeline-4BBGTE4M.js} +2 -2
- package/dist/cli/chunks/{platform-SQM34J5G.js → platform-5GSHXCV5.js} +2 -2
- package/dist/cli/chunks/{plugin-UQJZRMZG.js → plugin-OFDVF5HS.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-WMDJOL4S.js → prime-radiant-advanced-wasm-NC6MUYGJ.js} +2 -2
- package/dist/cli/chunks/project-root-DDGBWDP6.js +2 -0
- package/dist/cli/chunks/protocol-executor-KBOLLCWA.js +2 -0
- package/dist/cli/chunks/{protocol-handler-OBDCVY6X.js → protocol-handler-MPOAAEPA.js} +2 -2
- package/dist/cli/chunks/{prove-XDC7I4XT.js → prove-CDKMAIVM.js} +2 -2
- package/dist/cli/chunks/qe-reasoning-bank-GRXBT7FC.js +2 -0
- package/dist/cli/chunks/{quality-L4GQ6WX4.js → quality-ZH4F7R7R.js} +2 -2
- package/dist/cli/chunks/{quality-gate-MJG66LKN.js → quality-gate-IDRMW6OE.js} +3 -3
- package/dist/cli/chunks/queen-coordinator-L2QWMJ5Q.js +2 -0
- package/dist/cli/chunks/{real-embeddings-HW4G2LWL.js → real-embeddings-I2UVNNB3.js} +2 -2
- package/dist/cli/chunks/{ref-validation-FC7JOJ2C.js → ref-validation-Z5GCGVXK.js} +2 -2
- package/dist/cli/chunks/{roocode-installer-KWS4CEIC.js → roocode-installer-IZ2S7PH2.js} +2 -2
- package/dist/cli/chunks/router-FT5WJPUH.js +2 -0
- package/dist/cli/chunks/routing-feedback-EO2MKOUX.js +2 -0
- package/dist/cli/chunks/{routing-handler-QF4WVB2S.js → routing-handler-NAX35VUW.js} +2 -2
- package/dist/cli/chunks/{ruvector-commands-2MTCOUK6.js → ruvector-commands-5YW2SOFF.js} +2 -2
- package/dist/cli/chunks/rvf-dual-writer-WHBFQJVU.js +2 -0
- package/dist/cli/chunks/rvf-migration-adapter-YT3APF2I.js +2 -0
- package/dist/cli/chunks/{rvf-migration-coordinator-BREJCXWN.js → rvf-migration-coordinator-VUIZHTVG.js} +2 -2
- package/dist/cli/chunks/rvf-native-adapter-37PUFKQD.js +2 -0
- package/dist/cli/chunks/{rvf-store-integrity-KKC6HOJD.js → rvf-store-integrity-IPGCAT6C.js} +2 -2
- package/dist/cli/chunks/safe-db-TDZKUOZJ.js +2 -0
- package/dist/cli/chunks/schedule-CRKTRY2A.js +2 -0
- package/dist/cli/chunks/scheduler-6ZBDVQWN.js +2 -0
- package/dist/cli/chunks/{security-OSAE7VAP.js → security-3IH4BO5Z.js} +3 -3
- package/dist/cli/chunks/{shared-rvf-adapter-COUOS665.js → shared-rvf-adapter-ABY7PAY2.js} +2 -2
- package/dist/cli/chunks/{shared-rvf-dual-writer-YXMPZKQE.js → shared-rvf-dual-writer-6KENLN2W.js} +2 -2
- package/dist/cli/chunks/sqlite-persistence-FFJQAIKW.js +2 -0
- package/dist/cli/chunks/{standalone-memory-E6JBMOIL.js → standalone-memory-RLFAUGOW.js} +2 -2
- package/dist/cli/chunks/{status-handler-AFTCIYIX.js → status-handler-FCOZBPE5.js} +2 -2
- package/dist/cli/chunks/{structural-health-2FROCEI4.js → structural-health-4RDA5UUM.js} +2 -2
- package/dist/cli/chunks/{sync-VAYTOWDC.js → sync-54LUAUTK.js} +2 -2
- package/dist/cli/chunks/{sync-YIQYOFGW.js → sync-KGEEXXCC.js} +2 -2
- package/dist/cli/chunks/{task-handler-KVQHDEX3.js → task-handler-K3OXHYKU.js} +2 -2
- package/dist/cli/chunks/{task-handlers-MVVECQA6.js → task-handlers-6H7L2UT4.js} +3 -3
- package/dist/cli/chunks/{test-5JSVTOMY.js → test-S7IG6EIX.js} +4 -4
- package/dist/cli/chunks/test-runner-process-OTQDAJLN.js +2 -0
- package/dist/cli/chunks/{test-scheduling-HBOHVLI3.js → test-scheduling-7XYXI4L2.js} +3 -3
- package/dist/cli/chunks/{token-bootstrap-5VEPTPFA.js → token-bootstrap-3QMABE45.js} +2 -2
- package/dist/cli/chunks/{token-usage-TBJHDLY6.js → token-usage-Y2YTPOFE.js} +2 -2
- package/dist/cli/chunks/{transformers-VAWYMHMZ.js → transformers-UCJ3HHHC.js} +2 -2
- package/dist/cli/chunks/tree-sitter-wasm-parser-D6JTTHTP.js +2 -0
- package/dist/cli/chunks/{types-R5SDZU2E.js → types-6CMFPETH.js} +2 -2
- package/dist/cli/chunks/unified-memory-QARWQKJ2.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-LHY3DXCP.js +2 -0
- package/dist/cli/chunks/unified-persistence-WEYYGLHM.js +2 -0
- package/dist/cli/chunks/{upgrade-K5PIHXRB.js → upgrade-K25DN6WU.js} +2 -2
- package/dist/cli/chunks/{validate-RPTS7RYJ.js → validate-T4V3TBY3.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-B2ZL556X.js → validate-swarm-XSRC576T.js} +2 -2
- package/dist/cli/chunks/visual-security-O4ALMCXQ.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-K4DUJC32.js → web-tree-sitter-YOZXHRTN.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-OK2AJN35.js → windsurf-installer-ITPU2IYL.js} +2 -2
- package/dist/cli/chunks/witness-chain-B3YW5NMS.js +2 -0
- package/dist/cli/chunks/witness-chain-PIYR72HJ.js +2 -0
- package/dist/cli/chunks/{witness-chain-repair-L6Y5RFXR.js → witness-chain-repair-YUG7E3UX.js} +2 -2
- package/dist/cli/chunks/{witness-chain-verifier-N4CW7FZX.js → witness-chain-verifier-DTDSVKOG.js} +2 -2
- package/dist/cli/chunks/{witness-key-manager-TDNPS3WD.js → witness-key-manager-EWACWGAW.js} +2 -2
- package/dist/cli/chunks/{workflow-XRZA3YCY.js → workflow-ZIQ4FV42.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-3ZN2BCGY.js +2 -0
- package/dist/cli/chunks/{wrappers-5JIFWKN6.js → wrappers-PW2O27LL.js} +2 -2
- package/dist/cli/commands/coverage.js +6 -0
- package/dist/cli/commands/learning-prune.d.ts +14 -0
- package/dist/cli/commands/learning-prune.js +105 -0
- package/dist/cli/commands/learning.js +9 -0
- package/dist/cli/handlers/brain-handler.js +12 -1
- package/dist/cli/utils/coverage-verdict.js +14 -3
- package/dist/context/compaction/index.d.ts +7 -0
- package/dist/context/compaction/index.js +30 -6
- package/dist/coordination/handlers/coverage-evidence.d.ts +19 -0
- package/dist/coordination/handlers/coverage-evidence.js +31 -2
- package/dist/coordination/handlers/coverage-handlers.js +5 -1
- package/dist/coordination/handlers/coverage-target.js +8 -1
- package/dist/coordination/handlers/quality-handlers.js +9 -1
- package/dist/coordination/result-saver-adapters.js +1 -0
- package/dist/coordination/result-saver.js +9 -5
- package/dist/domains/chaos-resilience/services/chaos-engineer.d.ts +1 -0
- package/dist/domains/chaos-resilience/services/chaos-engineer.js +23 -45
- package/dist/domains/coverage-analysis/collected-metrics.d.ts +22 -6
- package/dist/domains/coverage-analysis/collected-metrics.js +37 -12
- package/dist/domains/coverage-analysis/services/coverage-analyzer.js +2 -0
- package/dist/domains/defect-intelligence/services/defect-predictor.js +3 -6
- package/dist/domains/quality-assessment/coverage-report-event.d.ts +8 -0
- package/dist/domains/quality-assessment/coverage-report-event.js +22 -1
- package/dist/domains/quality-assessment/interfaces.d.ts +6 -0
- package/dist/domains/quality-assessment/services/quality-analyzer.d.ts +4 -0
- package/dist/domains/quality-assessment/services/quality-analyzer.js +63 -17
- package/dist/domains/test-execution/interfaces.d.ts +5 -0
- package/dist/domains/test-execution/services/test-executor.js +6 -0
- package/dist/init/phases/07-hooks.js +90 -6
- package/dist/integrations/ruvector/brain-rvf-exporter.d.ts +25 -0
- package/dist/integrations/ruvector/brain-rvf-exporter.js +154 -61
- package/dist/learning/dream/dream-engine.d.ts +24 -1
- package/dist/learning/dream/dream-engine.js +57 -6
- package/dist/learning/learning-retention.d.ts +103 -0
- package/dist/learning/learning-retention.js +213 -0
- package/dist/mcp/bundle.js +494 -489
- package/dist/mcp/handlers/domain-handler-configs.d.ts +9 -1
- package/dist/mcp/handlers/domain-handler-configs.js +24 -14
- package/dist/mcp/protocol-server.js +1 -1
- package/dist/mcp/tools/chaos-resilience/inject.d.ts +3 -4
- package/dist/mcp/tools/chaos-resilience/inject.js +11 -81
- package/dist/mcp/tools/learning-optimization/dream.d.ts +8 -0
- package/dist/mcp/tools/learning-optimization/dream.js +4 -0
- package/package.json +1 -1
- package/dist/cli/chunks/adapter-KCQDVYY2.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-SAQOHSGN.js +0 -2
- package/dist/cli/chunks/base-WCACU3FN.js +0 -2
- package/dist/cli/chunks/brain-handler-GTQNHHZS.js +0 -94
- package/dist/cli/chunks/browser-workflow-G6IASEAP.js +0 -2
- package/dist/cli/chunks/chunk-K65CGKLD.js +0 -8
- package/dist/cli/chunks/chunk-MB46UBGY.js +0 -3
- package/dist/cli/chunks/chunk-N4CYAKOX.js +0 -79
- package/dist/cli/chunks/chunk-PT4FMJPQ.js +0 -3
- package/dist/cli/chunks/chunk-S5AZCIZS.js +0 -2
- package/dist/cli/chunks/chunk-UT2VZ33P.js +0 -2
- package/dist/cli/chunks/client-TV3V2YZ5.js +0 -2
- package/dist/cli/chunks/core-handlers-PZT4OLWR.js +0 -2
- package/dist/cli/chunks/coverage-NV3C4IMM.js +0 -50
- package/dist/cli/chunks/cross-domain-router-QOFCZ7G4.js +0 -2
- package/dist/cli/chunks/dream-TRFBGDSQ.js +0 -2
- package/dist/cli/chunks/file-discovery-WCKGMSPZ.js +0 -2
- package/dist/cli/chunks/heartbeat-scheduler-P44A2OX3.js +0 -2
- package/dist/cli/chunks/hnsw-adapter-ZJQIQJKC.js +0 -2
- package/dist/cli/chunks/hnsw-index-HMG2GH3Z.js +0 -2
- package/dist/cli/chunks/hybrid-backend-B7M74PZG.js +0 -2
- package/dist/cli/chunks/impact-analyzer-PZYOVKQO.js +0 -2
- package/dist/cli/chunks/init-wizard-TZDJQK3U.js +0 -2
- package/dist/cli/chunks/kernel-Y6RRIOKW.js +0 -2
- package/dist/cli/chunks/knowledge-graph-BVD5Z66M.js +0 -2
- package/dist/cli/chunks/learning-6KDH7FK4.js +0 -122
- package/dist/cli/chunks/llm-router-service-KHCAMSUU.js +0 -2
- package/dist/cli/chunks/load-test-RUF7DZA5.js +0 -2
- package/dist/cli/chunks/memory-backend-7ZLFOVGG.js +0 -2
- package/dist/cli/chunks/pattern-null-store-RY6CVYHP.js +0 -2
- package/dist/cli/chunks/project-root-IO5KRNGL.js +0 -2
- package/dist/cli/chunks/protocol-executor-U2CUDWDE.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-DQSSX2IP.js +0 -2
- package/dist/cli/chunks/queen-coordinator-6FN4BZIX.js +0 -2
- package/dist/cli/chunks/router-YUO3I7RU.js +0 -2
- package/dist/cli/chunks/routing-feedback-36SLQGJE.js +0 -2
- package/dist/cli/chunks/rvf-dual-writer-FRYZH3WZ.js +0 -2
- package/dist/cli/chunks/rvf-migration-adapter-XXNITL5I.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-D2WWKJIV.js +0 -2
- package/dist/cli/chunks/safe-db-4RRIGRXD.js +0 -2
- package/dist/cli/chunks/schedule-25RTO4DQ.js +0 -2
- package/dist/cli/chunks/scheduler-BPIOJZ5P.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-EDF47DDX.js +0 -2
- package/dist/cli/chunks/test-runner-process-LEPF2OSS.js +0 -2
- package/dist/cli/chunks/tree-sitter-wasm-parser-TSZTCMFV.js +0 -2
- package/dist/cli/chunks/unified-memory-TLGSSLMI.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-MSUR7ZOO.js +0 -2
- package/dist/cli/chunks/unified-persistence-VFFOTWK7.js +0 -2
- package/dist/cli/chunks/visual-security-6Q44XNLB.js +0 -2
- package/dist/cli/chunks/witness-chain-KDOMXDQX.js +0 -2
- package/dist/cli/chunks/witness-chain-N3OY2RMH.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-CVNNT2RJ.js +0 -2
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{j as c}from"./chunk-E7CLYGS7.js";import{b as g,d as E}from"./chunk-VTOBUZL6.js";import{a as p}from"./chunk-UT2VZ33P.js";import{c as m}from"./chunk-GB6HBNH2.js";import{d as l,e as _}from"./chunk-DNDL7SOS.js";_();import b from"node:path";import{existsSync as h}from"node:fs";E();p();var T=m.create("metrics-tracker"),d=class{db=null;dbPath;initialized=!1;constructor(e=process.cwd()){this.dbPath=b.join(e,".agentic-qe","memory.db")}async initialize(){if(!this.initialized){if(!h(this.dbPath))throw new Error(`Database not found: ${this.dbPath}. Run "aqe init --auto" first.`);this.db=l(this.dbPath),this.ensureMetricsTable(),this.initialized=!0}}ensureMetricsTable(){this.db&&this.db.exec(`
|
|
3
|
-
CREATE TABLE IF NOT EXISTS learning_daily_snapshots (
|
|
4
|
-
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
5
|
-
snapshot_date TEXT NOT NULL UNIQUE,
|
|
6
|
-
total_patterns INTEGER DEFAULT 0,
|
|
7
|
-
patterns_created_today INTEGER DEFAULT 0,
|
|
8
|
-
total_experiences INTEGER DEFAULT 0,
|
|
9
|
-
experiences_today INTEGER DEFAULT 0,
|
|
10
|
-
total_q_values INTEGER DEFAULT 0,
|
|
11
|
-
avg_reward REAL DEFAULT 0.0,
|
|
12
|
-
avg_confidence REAL DEFAULT 0.0,
|
|
13
|
-
avg_quality_score REAL DEFAULT 0.0,
|
|
14
|
-
success_rate REAL DEFAULT 0.0,
|
|
15
|
-
pattern_reuse_count INTEGER DEFAULT 0,
|
|
16
|
-
short_term_patterns INTEGER DEFAULT 0,
|
|
17
|
-
long_term_patterns INTEGER DEFAULT 0,
|
|
18
|
-
domain_coverage_json TEXT,
|
|
19
|
-
created_at TEXT DEFAULT (datetime('now'))
|
|
20
|
-
);
|
|
21
|
-
CREATE INDEX IF NOT EXISTS idx_learning_daily_snapshots_date ON learning_daily_snapshots(snapshot_date DESC);
|
|
22
|
-
`)}async getCurrentMetrics(){if(this.initialized||await this.initialize(),!this.db)throw new Error("Database not initialized");let e=new Date().toISOString().split("T")[0],r=new Date(Date.now()-10080*60*1e3).toISOString().split("T")[0],a=this.getPatternStats(e),t=this.getExperienceStats(e),s=this.getQValueStats(),o=this.getDomainCoverage(),n=this.getHistoricalAvgReward(r);return{timestamp:new Date,totalPatterns:a.total,patternsCreatedToday:a.createdToday,totalExperiences:t.total,experiencesToday:t.recordedToday,totalQValues:s.total,avgReward:t.avgReward,avgRewardDelta:t.avgReward-n,domainCoverage:o,patternReuseCount:a.reuseCount,shortTermPatterns:a.shortTerm,longTermPatterns:a.longTerm,avgConfidence:a.avgConfidence,avgQualityScore:a.avgQualityScore,successRate:t.successRate}}getPatternStats(e){if(!this.db)return{total:0,createdToday:0,shortTerm:0,longTerm:0,avgConfidence:0,avgQualityScore:0,reuseCount:0};if(!this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='qe_patterns'").get())return{total:0,createdToday:0,shortTerm:0,longTerm:0,avgConfidence:0,avgQualityScore:0,reuseCount:0};let a=this.db.prepare(`
|
|
23
|
-
SELECT
|
|
24
|
-
COUNT(*) as total,
|
|
25
|
-
SUM(CASE WHEN date(created_at) = ? THEN 1 ELSE 0 END) as created_today,
|
|
26
|
-
SUM(CASE WHEN tier = 'short-term' THEN 1 ELSE 0 END) as short_term,
|
|
27
|
-
SUM(CASE WHEN tier = 'long-term' THEN 1 ELSE 0 END) as long_term,
|
|
28
|
-
AVG(confidence) as avg_confidence,
|
|
29
|
-
AVG(quality_score) as avg_quality_score,
|
|
30
|
-
SUM(usage_count) as total_usage
|
|
31
|
-
FROM qe_patterns
|
|
32
|
-
`).get(e);return{total:a.total||0,createdToday:a.created_today||0,shortTerm:a.short_term||0,longTerm:a.long_term||0,avgConfidence:a.avg_confidence||0,avgQualityScore:a.avg_quality_score||0,reuseCount:a.total_usage||0}}getExperienceStats(e){if(!this.db)return{total:0,recordedToday:0,avgReward:0,successRate:0};if(this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='captured_experiences'").get()){let t=this.db.prepare(`
|
|
33
|
-
SELECT
|
|
34
|
-
COUNT(*) as total,
|
|
35
|
-
SUM(CASE WHEN date(started_at) = ? THEN 1 ELSE 0 END) as recorded_today,
|
|
36
|
-
AVG(quality) as avg_reward,
|
|
37
|
-
AVG(CASE WHEN success = 1 THEN 1.0 ELSE 0.0 END) as success_rate
|
|
38
|
-
FROM captured_experiences
|
|
39
|
-
WHERE agent != 'cli-hook'
|
|
40
|
-
`).get(e);return{total:t.total||0,recordedToday:t.recorded_today||0,avgReward:t.avg_reward||0,successRate:t.success_rate||0}}if(this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='qe_pattern_usage'").get()){let t=this.db.prepare(`
|
|
41
|
-
SELECT
|
|
42
|
-
COUNT(*) as total,
|
|
43
|
-
SUM(CASE WHEN date(created_at) = ? THEN 1 ELSE 0 END) as recorded_today,
|
|
44
|
-
AVG(success) as success_rate
|
|
45
|
-
FROM qe_pattern_usage
|
|
46
|
-
`).get(e);return{total:t.total||0,recordedToday:t.recorded_today||0,avgReward:t.success_rate||0,successRate:t.success_rate||0}}return{total:0,recordedToday:0,avgReward:0,successRate:0}}getQValueStats(){return this.db?this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='rl_q_values'").get()?{total:this.db.prepare(`
|
|
47
|
-
SELECT COUNT(*) as total FROM rl_q_values
|
|
48
|
-
`).get().total||0}:{total:0}:{total:0}}getDomainCoverage(){let e={};for(let t of c)e[t]=0;if(!this.db||!this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='qe_patterns'").get())return e;let a=this.db.prepare(`
|
|
49
|
-
SELECT qe_domain, COUNT(*) as count
|
|
50
|
-
FROM qe_patterns
|
|
51
|
-
GROUP BY qe_domain
|
|
52
|
-
`).all();for(let t of a)c.includes(t.qe_domain)&&(e[t.qe_domain]=t.count);return e}getHistoricalAvgReward(e){return this.db&&this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='captured_experiences'").get()&&this.db.prepare(`
|
|
53
|
-
SELECT AVG(quality) as avg_reward
|
|
54
|
-
FROM captured_experiences
|
|
55
|
-
WHERE started_at <= datetime(?)
|
|
56
|
-
AND agent != 'cli-hook'
|
|
57
|
-
`).get(e+" 23:59:59")?.avg_reward||0}async getDashboardData(){this.initialized||await this.initialize();let e=await this.getCurrentMetrics(),r=await this.getMetricsHistory(7),a=r.map(n=>n.patternsCreatedToday),t=r.map(n=>n.experiencesToday),s=r.map(n=>n.avgReward),o=Object.entries(e.domainCoverage).filter(([n,i])=>i>0).sort((n,i)=>i[1]-n[1]).slice(0,5).map(([n,i])=>({domain:n,count:i}));return{current:e,history:r,trends:{patternsPerDay:a,experiencesPerDay:t,avgRewardPerDay:s},topDomains:o}}async getMetricsHistory(e){if(this.initialized||await this.initialize(),!this.db)return[];let r=[];if(!this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='learning_daily_snapshots'").get())return[];let t=this.db.prepare(`
|
|
58
|
-
SELECT *
|
|
59
|
-
FROM learning_daily_snapshots
|
|
60
|
-
ORDER BY snapshot_date DESC
|
|
61
|
-
LIMIT ?
|
|
62
|
-
`).all(e);for(let s of t){let o={};try{o=g(s.domain_coverage_json||"{}")}catch(n){T.debug("Domain coverage JSON parse failed",{error:n instanceof Error?n.message:String(n)});for(let i of c)o[i]=0}r.push({timestamp:new Date(s.snapshot_date),totalPatterns:s.total_patterns,patternsCreatedToday:s.patterns_created_today,totalExperiences:s.total_experiences,experiencesToday:s.experiences_today,totalQValues:s.total_q_values,avgReward:s.avg_reward,avgRewardDelta:0,domainCoverage:o,patternReuseCount:s.pattern_reuse_count,shortTermPatterns:s.short_term_patterns,longTermPatterns:s.long_term_patterns,avgConfidence:s.avg_confidence,avgQualityScore:s.avg_quality_score,successRate:s.success_rate})}return r}async saveSnapshot(){if(this.initialized||await this.initialize(),!this.db)throw new Error("Database not initialized");let e=await this.getCurrentMetrics(),r=new Date().toISOString().split("T")[0];this.db.prepare(`
|
|
63
|
-
INSERT OR REPLACE INTO learning_daily_snapshots (
|
|
64
|
-
snapshot_date,
|
|
65
|
-
total_patterns,
|
|
66
|
-
patterns_created_today,
|
|
67
|
-
total_experiences,
|
|
68
|
-
experiences_today,
|
|
69
|
-
total_q_values,
|
|
70
|
-
avg_reward,
|
|
71
|
-
avg_confidence,
|
|
72
|
-
avg_quality_score,
|
|
73
|
-
success_rate,
|
|
74
|
-
pattern_reuse_count,
|
|
75
|
-
short_term_patterns,
|
|
76
|
-
long_term_patterns,
|
|
77
|
-
domain_coverage_json
|
|
78
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
79
|
-
`).run(r,e.totalPatterns,e.patternsCreatedToday,e.totalExperiences,e.experiencesToday,e.totalQValues,e.avgReward,e.avgConfidence,e.avgQualityScore,e.successRate,e.patternReuseCount,e.shortTermPatterns,e.longTermPatterns,JSON.stringify(e.domainCoverage))}async getDashboardDataWithRegret(e){let r=await this.getDashboardData();return e&&e.length>0&&(r.regretHealth=e),r}async collectUnifiedSnapshot(){this.initialized||await this.initialize();let e=await this.getCurrentMetrics();return{timestamp:Date.now(),tokenMetrics:{totalTokens:0,costUsd:0,savingsUsd:0,cacheHitRate:0},qualityMetrics:{gatePassRate:e.successRate,averageScore:e.avgQualityScore,ratchetLevel:0},learningMetrics:{patternCount:e.totalPatterns,averageConfidence:e.avgConfidence,quarantinedCount:0,transferSuccessRate:0},performanceMetrics:{avgLatencyMs:0,p95LatencyMs:0,errorRate:0}}}close(){this.db&&(this.db.close(),this.db=null,this.initialized=!1)}};function C(u){return new d(u)}export{d as a,C as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{a as h,b as y}from"./chunk-LFJALJOA.js";import{b as p}from"./chunk-6Z7PRBSG.js";import{f as g,k as v,l as f,m as b,o as c}from"./chunk-K65CGKLD.js";import k from"chalk";var C=3,D="instrumented-report",R="static-estimation";async function T(e,r=a=>console.log(a)){let a=await v(e);if(a.status==="target-missing")return{kind:"no-data",reason:"target-missing",message:c("target-missing",e,null)};if(a.status==="evaluated"){let{evaluation:n,projectRoot:t}=a;if(n.status==="measured"){let{files:l,evidence:o}=n;return{kind:"data",data:{files:l,summary:h(l),instrumented:!0,...o.unmeasuredFiles.length>0?{unmeasuredFiles:o.unmeasuredFiles}:{}},projectRoot:t,evidence:o}}return{kind:"no-data",reason:n.reason,message:c(n.reason,e,t)}}let s=p(a.target,{includeTests:!1});return s.length===0?{kind:"no-sources"}:(r(k.gray(` Analyzing ${s.length} files...
|
|
3
|
-
`)),{kind:"data",data:y(s,a.projectRoot),projectRoot:a.projectRoot})}function x(e){return{branch:e.files.some(r=>r.branches.total>0),function:e.files.some(r=>r.functions.total>0),statement:e.files.some(r=>r.statements.total>0)}}var N=e=>e==="target-missing"||e==="unreadable-report";function w(){return"UNMEASURED: no coverage report exists for this project, so these figures are a STATIC ESTIMATE derived from source shape \u2014 not measured coverage. No threshold verdict is given and nothing is stored as evidence. Run your tests with coverage first (e.g. `npm test -- --coverage`) and re-run."}async function M(e,r,a,s){let n=await T(r,s);if(n.kind==="no-sources")return n;if(n.kind==="no-data")return N(n.reason)?{kind:"error",reason:n.reason,message:n.message}:{kind:"unmeasured",reason:n.reason,message:n.message};let t=n.data,l=t.instrumented,o=await e.analyze({coverageData:t,threshold:a,includeFileDetails:!0,measured:l,...n.projectRoot?{projectRoot:n.projectRoot}:{}});if(!o.success||!o.value)return{kind:"analysis-failed",message:o.error?.message||"Coverage analysis failed"};let i=o.value;if(!l)return{kind:"estimate",data:t,summary:{...i.summary},message:w()};let u=x(t),m=f(i.summary,a,u),d=g(n.evidence,n.projectRoot??r),E={...m,meetsThreshold:m.meetsThreshold&&d.length===0};return{kind:"measured",data:t,collected:u,verdict:E,insufficientEvidence:d,...n.evidence?{evidence:n.evidence}:{},summary:{...i.summary,branch:u.branch?i.summary.branch:null,function:u.function?i.summary.function:null,statement:u.statement?i.summary.statement:null},recommendations:b(i.recommendations??[],m,a,u)}}function z(e,r){switch(e.kind){case"measured":{if(e.insufficientEvidence.length>0)return C;let{overall:a,meetsThreshold:s}=e.verdict;return s?a<r+5?2:0:1}case"estimate":case"unmeasured":return C;case"no-sources":return 0;default:return 1}}function O(e,r,a){let s={line:null,branch:null,function:null,statement:null};switch(e.kind){case"measured":return{summary:e.summary,meetsThreshold:e.verdict.meetsThreshold,threshold:r,recommendations:e.recommendations,measured:!0,estimated:!1,coverageMethod:D,branchDataCollected:e.collected.branch,functionDataCollected:e.collected.function,statementDataCollected:e.collected.statement,...e.data.unmeasuredFiles?.length?{unmeasuredFiles:e.data.unmeasuredFiles}:{},...e.evidence?{evidenceStatus:e.evidence.status}:{},...e.evidence?.stale?{staleReport:e.evidence.stale}:{},...e.insufficientEvidence.length>0?{warning:`INSUFFICIENT EVIDENCE: ${e.insufficientEvidence.join("; ")}`}:{}};case"estimate":return{summary:e.summary,meetsThreshold:null,threshold:r,measured:!1,estimated:!0,unmeasured:!0,coverageMethod:R,reason:"no-coverage-report",target:a,warning:e.message};case"unmeasured":case"error":return{summary:s,meetsThreshold:null,threshold:r,measured:!1,unmeasured:e.kind==="unmeasured",reason:e.reason,target:a,warning:e.message};case"analysis-failed":return{summary:s,meetsThreshold:null,threshold:r,measured:!1,target:a,error:e.message};case"no-sources":return{summary:s,meetsThreshold:null,threshold:r,measured:!1,target:a,warning:"No source files found"}}}export{C as a,T as b,M as c,z as d,O as e};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{d as l,e as o}from"./chunk-A64JFBWI.js";var t=n=>typeof n=="number"&&Number.isFinite(n)&&n>=0&&n<=100,i=n=>n===null||t(n);function a(n){if(!n||typeof n!="object")return null;let e=n;if(e.measured!==!0||!t(e.line)||!i(e.statement)||!i(e.branch)||!i(e.function))return null;let r=typeof e.files=="number"&&Number.isInteger(e.files)&&e.files>=0?e.files:null;return r===null?null:{line:e.line,branch:e.branch,function:e.function,statement:e.statement,files:r,measured:!0,...e.runStatus==="passed"||e.runStatus==="failed"?{runStatus:e.runStatus}:{}}}function m(n){if(!n||typeof n!="object")return null;let e=n;if(e.measured!==!0||!t(e.line))return null;let r=s=>t(s)?s:null;return{line:e.line,branch:r(e.branch),function:r(e.function),statement:r(e.statement),measured:!0}}o();var u=class extends Error{constructor(e,r){super(`git ${e.join(" ")} timed out after ${Math.max(0,r)}ms`),this.name="GitTimeoutError"}};async function b(n,e){if(e.timeout<=0)throw new u(n,e.timeout);try{return await l("git",n,{cwd:e.cwd,timeout:e.timeout,maxBuffer:e.maxBuffer,env:{...process.env,GIT_TERMINAL_PROMPT:"0"}})}catch(r){throw r.code==="ETIMEDOUT"?new u(n,e.timeout):r}}export{a,m as b,u as c,b as d};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{a as e,b as g,e as t}from"./chunk-GB6HBNH2.js";import{d as r}from"./chunk-UOC3O6RP.js";import{b as o}from"./chunk-ZAKQLAHT.js";var L=o(()=>{"use strict";e();g();t();r()});export{L as a};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{c as a,d as b,e as c}from"./chunk-3RZV5DGO.js";import"./chunk-I3C7JOXC.js";import"./chunk-A64JFBWI.js";import"./chunk-XPRVF4YE.js";import"./chunk-3Y2ROSCL.js";import"./chunk-ZAKQLAHT.js";c();export{a as VibiumClientImpl,b as VibiumClientProvider};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{d as a,e as b,f as c,g as d,h as e,i as f,j as g,k as h,l as i,m as j,n as k,o as l}from"./chunk-W3PPFHI5.js";import"./chunk-KWYH3FI4.js";import"./chunk-AL6FBH3E.js";import"./chunk-F3YS57NF.js";import"./chunk-CCMKSHAT.js";import"./chunk-YZWBNBTW.js";import"./chunk-PSFSPGUD.js";import"./chunk-O6FGXMHD.js";import"./chunk-K65CGKLD.js";import"./chunk-CRWPZT74.js";import"./chunk-CM4LSLKR.js";import"./chunk-CE7B5LU7.js";import"./chunk-EXGMJFAT.js";import"./chunk-DFUASIKA.js";import"./chunk-BLSLEVDI.js";import"./chunk-BTVEYBW2.js";import"./chunk-HOAJUIBQ.js";import"./chunk-KADFXPPN.js";import"./chunk-UXZSUMEA.js";import"./chunk-MGZ5FJUW.js";import"./chunk-75RDHBAX.js";import"./chunk-RFNW2LGD.js";import"./chunk-32ZMWEP3.js";import"./chunk-MFW5HSG4.js";import"./chunk-R7SYRCRP.js";import"./chunk-7YTGHGK4.js";import"./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"./chunk-HQZGPJYG.js";import"./chunk-X2Z7F4EU.js";import"./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"./chunk-SG3NX7QE.js";import"./chunk-UDQSYWVF.js";import"./chunk-JQGMW45H.js";import"./chunk-KB56CPU4.js";import"./chunk-GHY6Z6KO.js";import"./chunk-PB6J6HAA.js";import"./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"./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"./chunk-DNDL7SOS.js";import"./chunk-3Y2ROSCL.js";import"./chunk-WO274FRI.js";import"./chunk-ZAKQLAHT.js";export{c as adoptExternalFleet,e as assignAgentLevel,k as disposeFleet,f as getAgentLevel,g as getAllAgentLevels,a as getFleetState,d as getFleetTopology,l as handleAQEHealth,j as handleFleetHealth,h as handleFleetInit,i as handleFleetStatus,b as isFleetInitialized};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{a as d,b as A,c as x,d as E,e as O,f as L,g as M,h as U,i as B,j as V}from"./chunk-3LJ7LQMV.js";import{a as I,b as _,c as q,d as N,e as j}from"./chunk-PT4FMJPQ.js";import"./chunk-LFJALJOA.js";import"./chunk-6Z7PRBSG.js";import{d as G,e as T,h as D}from"./chunk-W26B7ERY.js";import"./chunk-K65CGKLD.js";import"./chunk-MB46UBGY.js";import"./chunk-5MDERQH3.js";import"./chunk-PB6J6HAA.js";import"./chunk-A64JFBWI.js";import"./chunk-VTOBUZL6.js";import"./chunk-J2ZIFFM6.js";import"./chunk-RF7HWBHN.js";import"./chunk-3Y2ROSCL.js";import"./chunk-ZAKQLAHT.js";import{Command as Q}from"commander";import e from"chalk";var $={low:{minRisk:.7,maxGaps:10,description:"Only critical gaps with high risk scores"},medium:{minRisk:.5,maxGaps:20,description:"Moderate gaps including medium risk items"},high:{minRisk:.3,maxGaps:50,description:"All gaps including low risk items"}},W=class extends V{constructor(t={}){super(t)}getTitle(){return"Coverage Analysis Wizard"}getSubtitle(){return"Analyze code coverage with O(log n) gap detection"}getConfirmationPrompt(){return"Proceed with coverage analysis?"}isNonInteractive(){return this.options.nonInteractive??!1}getCommands(){return[new U({id:"target",stepNumber:"1/7",title:"Target Directory",description:"Enter the directory or file to analyze for coverage",examples:"src/, ./lib, coverage/lcov.info",defaultValue:this.options.defaultTarget||".",suggestionsProvider:A.getCoverageTargets,validatePath:!0}),new E({id:"sensitivity",stepNumber:"2/7",title:"Gap Detection Sensitivity",description:"Select how sensitive the gap detection should be",options:[{key:"1",value:"low",label:"low",description:$.low.description},{key:"2",value:"medium",label:"medium",description:$.medium.description},{key:"3",value:"high",label:"high",description:$.high.description}],defaultValue:this.options.defaultSensitivity||"medium",validValues:["low","medium","high"]}),new E({id:"format",stepNumber:"3/7",title:"Report Format",description:"Select the output format for the coverage report",options:[{key:"1",value:"json",label:"json",description:"JSON - Machine-readable, good for CI/CD pipelines"},{key:"2",value:"html",label:"html",description:"HTML - Interactive, visual report with charts"},{key:"3",value:"markdown",label:"markdown",description:"Markdown - Documentation-friendly format"},{key:"4",value:"text",label:"text",description:"Text - Simple console output"}],defaultValue:this.options.defaultFormat||"json",validValues:["json","html","markdown","text"]}),new O({id:"priorityFocus",stepNumber:"4/7",title:"Priority Focus Areas",description:"Select coverage metrics to prioritize (comma-separated or numbers)",instructions:"Example: 1,2 or functions,branches",options:[{key:"1",value:"functions",label:"functions",description:"Functions - Focus on function coverage"},{key:"2",value:"branches",label:"branches",description:"Branches - Focus on branch/decision coverage"},{key:"3",value:"lines",label:"lines",description:"Lines - Focus on line coverage"},{key:"4",value:"statements",label:"statements",description:"Statements - Focus on statement coverage"}],defaultValue:this.options.defaultPriorityFocus||["functions","branches"],validValues:["functions","branches","lines","statements"]}),new L({id:"riskScoring",stepNumber:"5/7",title:"Enable risk scoring",description:"Enable risk scoring to prioritize coverage gaps by potential impact",additionalInfo:"Risk scores consider code complexity, change frequency, and criticality",defaultValue:this.options.defaultRiskScoring??!0}),new M({id:"threshold",stepNumber:"6/7",title:"Coverage threshold %",description:"Set the minimum coverage percentage required. Files below this threshold will be flagged.",presets:[{key:"1",value:60,label:"60% - Legacy/maintenance projects"},{key:"2",value:70,label:"70% - Standard projects"},{key:"3",value:80,label:"80% - Quality-focused projects"},{key:"4",value:90,label:"90% - Critical/high-reliability projects"}],defaultValue:this.options.defaultThreshold||80,min:0,max:100}),new B({id:"patterns",stepNumber:"7/7",title:"File Patterns (Optional)",description:"Specify patterns to include or exclude from analysis. Leave blank to analyze all files."})]}buildResult(t){let f=t.patterns;return{target:t.target,sensitivity:t.sensitivity,format:t.format,priorityFocus:t.priorityFocus,riskScoring:t.riskScoring,threshold:t.threshold,includePatterns:f?.include,excludePatterns:f?.exclude,cancelled:!1}}printSummary(t){d.printSummaryHeader();let f=x.relativePath(t.target,this.cwd);d.printSummaryField("Target",f),d.printSummaryField("Sensitivity",t.sensitivity),d.printSummaryField("Report Format",t.format),d.printSummaryField("Priority Focus",t.priorityFocus.join(", ")),d.printSummaryField("Risk Scoring",x.enabledDisabled(t.riskScoring)),d.printSummaryField("Threshold",x.percentage(t.threshold)),t.includePatterns&&t.includePatterns.length>0&&d.printSummaryField("Include",t.includePatterns.join(", ")),t.excludePatterns&&t.excludePatterns.length>0&&d.printSummaryField("Exclude",t.excludePatterns.join(", "));let b=$[t.sensitivity];d.printDerivedSettings({"Min risk score":String(b.minRisk),"Max gaps shown":String(b.maxGaps)})}getDefaults(){return{target:this.options.defaultTarget||this.cwd,sensitivity:this.options.defaultSensitivity||"medium",format:this.options.defaultFormat||"json",priorityFocus:this.options.defaultPriorityFocus||["functions","branches"],riskScoring:this.options.defaultRiskScoring??!0,threshold:this.options.defaultThreshold||80,cancelled:!1}}getCancelled(){return{target:".",sensitivity:"medium",format:"json",priorityFocus:["functions","branches"],riskScoring:!0,threshold:80,cancelled:!0}}};async function J(h={}){return new W(h).run()}import*as H from"path";function Y(h){return h>=80?e.green:h>=50?e.yellow:e.red}function ae(h,t,f){let b=new Q("coverage").description("Coverage analysis shortcut").argument("[target]","Target file or directory",".").option("--risk","Include risk scoring").option("--gaps","Detect coverage gaps").option("--threshold <percent>","Coverage threshold percentage","80").option("--sensitivity <level>","Gap detection sensitivity (low|medium|high)","medium").option("--wizard","Run interactive coverage analysis wizard").option("--ghost","Include ghost intent coverage analysis (detect untested behavioral intents)").option("-F, --format <format>","Output format (text|json|markdown)","text").option("-o, --output <path>","Write output to file").addHelpText("after",`
|
|
3
|
-
Target: a directory, a source file, or an existing coverage report
|
|
4
|
-
(lcov.info, coverage-final.json, coverage-summary.json, Cobertura XML).
|
|
5
|
-
Reports are read from the target's project root (nearest package.json / .git).
|
|
6
|
-
|
|
7
|
-
Threshold: judged on the metrics the report actually collected. A metric with
|
|
8
|
-
no data (e.g. a report without branch data) is shown as n/a and is excluded
|
|
9
|
-
from the threshold, not counted as 0%.
|
|
10
|
-
|
|
11
|
-
Exit codes:
|
|
12
|
-
0 coverage meets the threshold (by more than 5%)
|
|
13
|
-
1 coverage below the threshold, or an error (missing target, unreadable report)
|
|
14
|
-
2 coverage within 5% above the threshold
|
|
15
|
-
${I} UNMEASURED: no coverage measurement exists for the target
|
|
16
|
-
(not in the report, the runner ran 0 tests, or only test files were reported),
|
|
17
|
-
or NO coverage report exists, so only a labelled static estimate was shown
|
|
18
|
-
(-F json: measured:false, estimated:true; no threshold verdict)
|
|
19
|
-
|
|
20
|
-
In \`aqe ci\`, an UNMEASURED coverage phase is a warning (phase exit code 3); it
|
|
21
|
-
does not fail the pipeline by itself. An enforced quality gate fails on
|
|
22
|
-
missing coverage evidence.`).action(async(y,a)=>{let g=y,w=a.risk,k=a.gaps,l=parseInt(a.threshold,10);if(a.wizard)try{let s=await J({defaultTarget:y!=="."?y:void 0,defaultThreshold:a.threshold!=="80"?parseInt(a.threshold,10):void 0,defaultRiskScoring:a.risk,defaultSensitivity:a.sensitivity!=="medium"?a.sensitivity:void 0});s.cancelled&&(console.log(e.yellow(`
|
|
23
|
-
Coverage analysis cancelled.
|
|
24
|
-
`)),await t(0)),g=s.target,w=s.riskScoring,k=!0,l=s.threshold,console.log(e.green(`
|
|
25
|
-
Starting coverage analysis...
|
|
26
|
-
`))}catch(s){console.error(e.red(`
|
|
27
|
-
Wizard error:`),s),await t(1)}let z=a.format!=="text",R=console.log;z&&(console.log=(...s)=>console.error(...s));let m=s=>{console.log=R,G(s,a.output)};try{if(!await f())return;try{console.log(e.blue(`
|
|
28
|
-
Analyzing coverage for ${g}...
|
|
29
|
-
`));let s=await h.kernel.getDomainAPIAsync("coverage-analysis");if(!s){console.log(e.red("Coverage analysis domain not available"));return}let u=H.resolve(g),r=await q(s,u,l),v=a.format;if(r.kind==="no-sources"){console.log(e.yellow("No source files found"));return}if(r.kind==="error"||r.kind==="unmeasured"||r.kind==="analysis-failed"){v==="json"?m(T(j(r,l,u))):console.log((r.kind==="unmeasured"?e.yellow:e.red)(` ${r.message}
|
|
30
|
-
`)),await t(N(r,l));return}let S=r.data,C=r.kind==="estimate";C?(console.log(e.yellow(" No coverage report found \u2014 showing a heuristic STATIC ESTIMATE (UNMEASURED)")),console.log(e.gray(` Run tests with coverage first: npm test -- --coverage
|
|
31
|
-
`))):(console.log(e.green(` Using instrumented coverage data (V8/istanbul)
|
|
32
|
-
`)),S.unmeasuredFiles?.length&&console.log(e.yellow(` ${S.unmeasuredFiles.length} file(s) not in the coverage report \u2014 UNMEASURED, excluded from the figures
|
|
33
|
-
`)));let P=j(r,l,u),p=r.summary;if(v==="text"){let c=i=>i===null?"n/a (not collected)":(C?"~":"")+i.toFixed(1)+"%",n=i=>i===null||C?e.gray:Y(i);if(console.log(e.cyan(C?" Coverage Summary (STATIC ESTIMATE \u2014 not measured):":" Coverage Summary:")),console.log(` Lines: ${n(p.line)(c(p.line))}`),console.log(` Branches: ${n(p.branch)(c(p.branch))}`),console.log(` Functions: ${n(p.function)(c(p.function))}`),console.log(` Statements: ${n(p.statement)(c(p.statement))}`),r.kind==="measured"&&r.insufficientEvidence.length>0){console.log(`
|
|
34
|
-
Threshold: ${e.red(`Not met (${l}%) \u2014 INSUFFICIENT EVIDENCE`)}`);for(let i of r.insufficientEvidence)console.log(e.yellow(` - ${i}`))}else r.kind==="measured"?console.log(`
|
|
35
|
-
Threshold: ${r.verdict.meetsThreshold?e.green(`Met (${l}%)`):e.red(`Not met (${l}%)`)}`):(console.log(`
|
|
36
|
-
Threshold: ${e.yellow(`not evaluated (${l}%) \u2014 UNMEASURED, estimate only`)}`),console.log(e.gray(` ${r.message}`)));let o=r.kind==="measured"?r.recommendations:[];if(o.length>0){console.log(e.cyan(`
|
|
37
|
-
Recommendations:`));for(let i of o)console.log(e.gray(` - ${i}`))}}if(k){console.log(e.cyan(`
|
|
38
|
-
Coverage Gaps:`));let c=await s.detectGaps({coverageData:S,minCoverage:l,prioritize:w?"risk":"size",measured:!C});if(c.success&&c.value){let n=c.value;P.gaps=n.gaps.map(o=>({file:o.file.replace(process.cwd()+"/",""),lines:o.lines,riskScore:o.riskScore,severity:o.severity})),console.log(e.gray(` Total uncovered lines: ${n.totalUncoveredLines}`)),console.log(e.gray(` Estimated effort: ${n.estimatedEffort} hours
|
|
39
|
-
`));for(let o of n.gaps.slice(0,8)){let i=o.severity==="high"?e.red:o.severity==="medium"?e.yellow:e.gray,F=o.file.replace(process.cwd()+"/","");console.log(` ${i(`[${o.severity}]`)} ${e.white(F)}`),console.log(e.gray(` ${o.lines.length} uncovered lines, Risk: ${(o.riskScore*100).toFixed(0)}%`))}n.gaps.length>8&&console.log(e.gray(` ... and ${n.gaps.length-8} more gaps`))}}if(a.ghost||k){console.log(e.cyan(`
|
|
40
|
-
Ghost Intent Coverage (ADR-059):`));try{let c=S.files.map(o=>o.path),n=await s.analyzeGhostCoverage(c,g);if(n.success&&n.value){let o=n.value;console.log(e.gray(` Phantom gaps detected: ${o.gaps.length}`)),console.log(e.gray(` Ghost score: ${(o.totalGhostScore*100).toFixed(1)}%`)),console.log(e.gray(` Coverage completeness: ${(o.coverageCompleteness*100).toFixed(1)}%
|
|
41
|
-
`));for(let i of o.gaps.slice(0,8)){let F=i.severity==="critical"?e.red:i.severity==="high"?e.red:i.severity==="medium"?e.yellow:e.gray;console.log(` ${F(`[${i.severity}]`)} ${e.white(i.category)}`),console.log(e.gray(` ${i.description}`))}o.gaps.length>8&&console.log(e.gray(` ... and ${o.gaps.length-8} more phantom gaps`))}else console.log(e.dim(" Ghost analysis not available (requires HNSW index)"))}catch{console.log(e.dim(" Ghost analysis skipped (analyzer not initialized)"))}}if(w){console.log(e.cyan(`
|
|
42
|
-
Risk Analysis:`));let c=[...S.files].sort((n,o)=>n.lines.covered/n.lines.total-o.lines.covered/o.lines.total).slice(0,5);for(let n of c){let o=await s.calculateRisk({file:n.path,uncoveredLines:n.uncoveredLines});if(o.success&&o.value){let i=o.value,F=i.riskLevel==="high"?e.red:i.riskLevel==="medium"?e.yellow:e.green,X=n.path.replace(process.cwd()+"/","");console.log(` ${F(`[${i.riskLevel}]`)} ${e.white(X)}`),console.log(e.gray(` Risk: ${(i.overallRisk*100).toFixed(0)}%, Coverage: ${Math.round(n.lines.covered/n.lines.total*100)}%`))}}}v==="json"?m(T(P)):v==="markdown"?m(D(P)):v==="text"&&console.log(e.green(`
|
|
43
|
-
Coverage analysis complete
|
|
44
|
-
`)),await t(N(r,l))}catch(s){console.error(e.red(`
|
|
45
|
-
Failed:`),s),await t(1)}}finally{console.log=R}});return b.command("gaps").description("Enumerate unhandled branches in source files").argument("<file>","Source file to analyze").option("--mechanical","Exhaustive mode: report all branches without filtering").option("--json","Output as JSON").option("--markdown","Output as markdown report").action(async(y,a)=>{try{let{readFileSync:g,existsSync:w}=await import("fs"),k=await import("path"),{enumerateBranches:l,formatBranchReport:z,formatBranchJSON:R}=await import("./branch-enumerator-5CLULOCU.js"),m=k.resolve(y);w(m)||(console.error(e.red(`
|
|
46
|
-
File not found: ${m}
|
|
47
|
-
`)),await t(1));let s=g(m,"utf-8"),u=l(s,m);if(a.json)console.log(R(u));else if(a.markdown)console.log(z(u));else{if(console.log(`
|
|
48
|
-
${e.cyan("Branch Enumeration:")} ${e.white(y)}`),console.log(e.gray(`Found ${u.unhandledCount} unhandled branches (${u.duration}ms)
|
|
49
|
-
`)),u.branches.length>0){console.log(e.dim("Line | Severity | Construct | Trigger")),console.log(e.dim("-----|----------|---------------------------|--------"));for(let r of u.branches){let v=r.severity==="high"?e.red:r.severity==="medium"?e.yellow:e.gray;console.log(`${String(r.line).padStart(4)} | ${v(r.severity.padEnd(8))} | ${r.construct.padEnd(25)} | ${r.triggerCondition}`)}}else console.log(e.green("No unhandled branches detected."));console.log("")}await t(0)}catch(g){console.error(e.red(`
|
|
50
|
-
Branch enumeration failed:`),g),await t(1)}}),b}export{I as EXIT_UNMEASURED,ae as createCoverageCommand,_ as resolveCliCoverageData};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{a,b}from"./chunk-SG3NX7QE.js";import"./chunk-UDQSYWVF.js";import"./chunk-H4H2YSFH.js";import"./chunk-NURIILUB.js";import"./chunk-ZAKQLAHT.js";export{a as CrossDomainEventRouter,b as createCrossDomainRouter};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,q as p,r as q,s as r,t as s,u as t,v as u,w as v,x as w,y as x,z as y}from"./chunk-C6JTLKG7.js";import"./chunk-N4CYAKOX.js";import"./chunk-3AN5TNGD.js";import"./chunk-3YNLWPBF.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-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-WKGTGOYS.js";import"./chunk-DVGRPK7A.js";import"./chunk-H4H2YSFH.js";import"./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"./chunk-DNDL7SOS.js";import"./chunk-3Y2ROSCL.js";import"./chunk-WO274FRI.js";import"./chunk-ZAKQLAHT.js";export{q as ABANDONED_CYCLE_GRACE_MS,x as BUILT_IN_STRATEGIES,e as ConceptGraph,j as DEFAULT_ACTIVATION_CONFIG,d as DEFAULT_CONCEPT_GRAPH_CONFIG,s as DEFAULT_DREAM_CONFIG,a as DEFAULT_DREAM_SCHEDULER_CONFIG,l as DEFAULT_INSIGHT_CONFIG,n as DEFAULT_VALIDATION_THRESHOLDS,t as DreamAlreadyRunningError,u as DreamEngine,b as DreamScheduler,i as HISTORY_TRIM_TARGET_RATIO,m as InsightGenerator,g as MAX_ACTIVATION_HISTORY_ENTRIES,h as MAX_COACTIVATION_ENTRIES,o as RVCOWBranchManager,y as SpeculativeDreamer,k as SpreadingActivation,p as commitDream,f as createConceptGraph,v as createDreamEngine,c as createDreamScheduler,w as default,r as markAbandonedCycles};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.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};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.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};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.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};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.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 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.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 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.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 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.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};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{K as a,L 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"./chunk-HQZGPJYG.js";import"./chunk-X2Z7F4EU.js";import"./chunk-G2Q66Z23.js";import"./chunk-CT6SAVXQ.js";import"./chunk-GII6UM3F.js";import"./chunk-UDQSYWVF.js";import"./chunk-JQGMW45H.js";import"./chunk-KB56CPU4.js";import"./chunk-GHY6Z6KO.js";import"./chunk-PB6J6HAA.js";import"./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"./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"./chunk-DNDL7SOS.js";import"./chunk-3Y2ROSCL.js";import"./chunk-WO274FRI.js";import"./chunk-ZAKQLAHT.js";export{a as QEKernelImpl,b as createKernel};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{h as a}from"./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-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 KnowledgeGraphService};
|
|
@@ -1,122 +0,0 @@
|
|
|
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.13");process.exit(0)}
|
|
3
|
-
import{a as ue}from"./chunk-AL6FBH3E.js";import{b as pe}from"./chunk-N4CYAKOX.js";import{h as ge}from"./chunk-72ASBE35.js";import"./chunk-TSQC2KKZ.js";import{b as L}from"./chunk-SYV2V3PL.js";import"./chunk-NZD4DPSU.js";import{j as Q}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 ie}from"./chunk-6KATY3KS.js";import{d as ce,e as le,i as de}from"./chunk-VRVMIPTM.js";import"./chunk-4OVC4RIL.js";import"./chunk-UTRV7T2N.js";import{v as re}from"./chunk-3Y7TJFHU.js";import"./chunk-7CMTY45A.js";import{b as M,d as Oe}from"./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{c as ae,s as se}from"./chunk-WKGTGOYS.js";import"./chunk-DVGRPK7A.js";import"./chunk-H4H2YSFH.js";import"./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{c as A}from"./chunk-J2ZIFFM6.js";import"./chunk-RF7HWBHN.js";import"./chunk-IC3TQEOA.js";import"./chunk-HD7YIFOI.js";import{d as E,e as U}from"./chunk-DNDL7SOS.js";import"./chunk-3Y2ROSCL.js";import"./chunk-WO274FRI.js";import"./chunk-ZAKQLAHT.js";re();Oe();import{Command as qe}from"commander";import o from"chalk";import v from"node:path";import{randomUUID as Be}from"node:crypto";import{existsSync as x,writeFileSync as Ae,readFileSync as oe,copyFileSync as Me,renameSync as Pe}from"node:fs";import{stat as Qe,unlink as I}from"node:fs/promises";U();U();import{existsSync as j,realpathSync as $e,statSync as Z}from"node:fs";import{mkdir as Ee,mkdtemp as xe,rename as je,rm as ee,stat as te}from"node:fs/promises";import{basename as Le,dirname as q,join as _,resolve as ve}from"node:path";import{randomUUID as Fe}from"node:crypto";re();import k from"chalk";import J from"node:path";import{createReadStream as me,createWriteStream as fe}from"node:fs";import{createGzip as Te,createGunzip as _e}from"node:zlib";import{pipeline as he}from"node:stream/promises";U();var O={reasoningBank:null,initialized:!1};async function C(){if(O.initialized&&O.reasoningBank)return O.reasoningBank;let a=A(),t=J.join(a,".agentic-qe"),e=new ie({sqlite:{path:J.join(t,"memory.db"),walMode:!0,poolSize:3,busyTimeout:5e3},enableFallback:!0,defaultNamespace:"qe-patterns"});await e.initialize(),O.reasoningBank=ge(e,void 0,{enableLearning:!0,enableGuidance:!0,enableRouting:!0,embeddingDimension:384,useONNXEmbeddings:!0}),await O.reasoningBank.initialize();try{let{getSharedRvfDualWriter:n}=await import("./shared-rvf-dual-writer-YXMPZKQE.js"),i=await n();i&&O.reasoningBank.setRvfDualWriter(i)}catch(n){process.env.DEBUG&&console.debug("[learning] RVF wiring skipped:",n instanceof Error?n.message:n)}return O.initialized=!0,O.reasoningBank}function $(a){console.log(JSON.stringify(a,null,2))}function P(a){console.log(k.green("\u2713"),a)}function S(a){console.error(k.red("\u2717"),a)}function T(a){console.log(k.blue("\u2139"),a)}function ye(a){let{current:t,topDomains:e}=a,n={tl:"\u250C",tr:"\u2510",bl:"\u2514",br:"\u2518",h:"\u2500",v:"\u2502",ml:"\u251C",mr:"\u2524"},i=55,g=n.h.repeat(i-2);console.log(""),console.log(`${n.tl}${g}${n.tr}`),console.log(`${n.v}${Ie("AQE LEARNING DASHBOARD",i-2)}${n.v}`),console.log(`${n.ml}${g}${n.mr}`);let c=t.patternsCreatedToday>0?k.green(` (+${t.patternsCreatedToday} today)`):"";console.log(`${n.v} Patterns: ${D(String(t.totalPatterns)+c,32)}${n.v}`);let l=t.experiencesToday>0?k.green(` (+${t.experiencesToday} today)`):"";console.log(`${n.v} Experiences: ${D(String(t.totalExperiences)+l,32)}${n.v}`),console.log(`${n.v} Q-Values: ${D(String(t.totalQValues),32)}${n.v}`);let p=t.avgReward.toFixed(2),u=t.avgRewardDelta>=0?k.green(`(\u2191 ${Math.abs(t.avgRewardDelta).toFixed(2)} from last week)`):k.red(`(\u2193 ${Math.abs(t.avgRewardDelta).toFixed(2)} from last week)`);console.log(`${n.v} Avg Reward: ${D(`${p} ${u}`,32)}${n.v}`);let r=(t.successRate*100).toFixed(1);if(console.log(`${n.v} Success Rate: ${D(`${r}%`,32)}${n.v}`),console.log(`${n.v} Short-term: ${D(String(t.shortTermPatterns),32)}${n.v}`),console.log(`${n.v} Long-term: ${D(String(t.longTermPatterns),32)}${n.v}`),console.log(`${n.v}${" ".repeat(i-2)}${n.v}`),console.log(`${n.v} ${k.bold("Domain Coverage:")}${" ".repeat(i-19)}${n.v}`),e.length===0)console.log(`${n.v} ${k.dim("No patterns yet")}${" ".repeat(i-19)}${n.v}`);else{let s=Math.max(...e.map(f=>f.count),1),m=14;for(let{domain:f,count:y}of e){let b=Math.round(y/s*m),w=m-b,R=k.green("\u2588".repeat(b))+k.dim("\u2591".repeat(w)),B=D(f,20),H=Ne(String(y),3);console.log(`${n.v} ${B} ${R} ${H} patterns ${n.v}`)}let d=new Set(e.map(f=>f.domain)),h=Q.filter(f=>!d.has(f)).slice(0,3);for(let f of h){let y=k.dim("\u2591".repeat(m)),b=D(f,20);console.log(`${n.v} ${b} ${y} 0 patterns ${n.v}`)}}console.log(`${n.bl}${g}${n.br}`),console.log("")}function Ie(a,t){let e=K(a),n=Math.max(0,t-e.length),i=Math.floor(n/2),g=n-i;return" ".repeat(i)+a+" ".repeat(g)}function D(a,t){let e=K(a),n=Math.max(0,t-e.length);return a+" ".repeat(n)}function Ne(a,t){let e=K(a),n=Math.max(0,t-e.length);return" ".repeat(n)+a}function K(a){return a.replace(/\x1b\[[0-9;]*m/g,"")}function N(){let a=A();return J.join(a,".agentic-qe","memory.db")}async function z(a,t){let e=t||`${a}.gz`;return await he(me(a),Te(),fe(e)),e}async function F(a,t){await he(me(a),_e(),fe(t))}async function V(a){try{let t=E(a,{readonly:!0}),e=t.prepare("PRAGMA integrity_check").get();return t.close(),e.integrity_check==="ok"?{valid:!0,message:"Database integrity verified"}:{valid:!1,message:`Integrity check failed: ${e.integrity_check}`}}catch(t){return{valid:!1,message:`Failed to verify: ${t instanceof Error?t.message:"unknown error"}`}}}async function Y(a){try{let t=E(a,{readonly:!0});if(!t.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='schema_version'").get())return t.close(),0;let n=t.prepare("SELECT version FROM schema_version WHERE id = 1").get();return t.close(),n?.version??0}catch{return 0}}var X="3.1.0",be={generate:"test-generation","test-generation":"test-generation",analyze:"coverage-analysis",coverage:"coverage-analysis","coverage-analysis":"coverage-analysis",run:"test-execution","test-execution":"test-execution",report:"quality-assessment",quality:"quality-assessment","quality-analysis":"quality-assessment",security:"security-compliance",sast:"security-compliance",owasp:"security-compliance",secrets:"security-compliance",audit:"security-compliance",recommend:"defect-intelligence",predict:"defect-intelligence","complexity-analysis":"code-intelligence","code-analysis":"code-intelligence",stabilize:"chaos-resilience",flaky:"chaos-resilience",quarantine:"chaos-resilience",retry:"chaos-resilience",stress:"chaos-resilience",load:"chaos-resilience",endurance:"chaos-resilience",baseline:"chaos-resilience"},we={generate:"test-template","test-generation":"test-template",analyze:"coverage-strategy",coverage:"coverage-strategy","coverage-analysis":"coverage-strategy",run:"test-template","test-execution":"test-template",report:"assertion-pattern",quality:"assertion-pattern","quality-analysis":"assertion-pattern",security:"assertion-pattern",sast:"assertion-pattern",owasp:"assertion-pattern",secrets:"assertion-pattern",audit:"assertion-pattern",recommend:"assertion-pattern",predict:"assertion-pattern","complexity-analysis":"assertion-pattern","code-analysis":"assertion-pattern",stabilize:"flaky-fix",flaky:"flaky-fix",quarantine:"flaky-fix",retry:"flaky-fix",stress:"perf-benchmark",load:"perf-benchmark",endurance:"perf-benchmark",baseline:"perf-benchmark",mock:"mock-pattern",dependency:"mock-pattern"};function Re(a){let t=E(a,{readonly:!0,fileMustExist:!0});try{let e=t.pragma("integrity_check");if(e.length!==1||e[0].integrity_check!=="ok")throw new Error("Database integrity verification failed");return{schemaVersion:(t.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_version'").get()?t.prepare("SELECT version FROM schema_version WHERE id = 1").get():void 0)?.version??0,pages:t.pragma("page_count",{simple:!0}),verification:{valid:!0,message:"Database integrity verified"}}}finally{t.close()}}function G(a){return j(a)?$e(a):_($e(q(a)),Le(a))}function Se(a,t){if(G(a)===G(t))return!0;if(!j(a)||!j(t))return!1;let e=Z(a),n=Z(t);return e.dev===n.dev&&e.ino===n.ino}function ne(a,t){let e=G(a),n=G(t);for(let i of["","-wal","-shm","-journal"])if(Se(`${e}${i}`,t)||Se(a,`${n}${i}`))throw new Error("Backup source and destination must not alias the same database or its sidecars")}function ke(a){if(!Z(a).isFile())throw new Error("Backup input must be a regular file")}async function W(a,t,e={}){let n=E(a,{readonly:!0,fileMustExist:!0});try{let i=await n.backup(t);if(i.totalPages<=0||i.remainingPages!==0||e.expectedPages!==void 0&&i.totalPages!==e.expectedPages)throw new Error("SQLite snapshot did not complete; the source may be empty or the destination busy");if(e.standalone){let c=E(t,{fileMustExist:!0,walMode:!1});try{if(c.pragma("journal_mode = DELETE",{simple:!0})!=="delete")throw new Error("Could not create a standalone SQLite image")}finally{c.close()}}let g=Re(t);if(g.pages!==i.totalPages)throw new Error("SQLite snapshot page count does not match the completed backup");return g}finally{n.close()}}async function De(a,t,e={}){ke(a);let n=ve(e.compress?`${t}.gz`:t);await Ee(q(n),{recursive:!0}),ne(a,ve(t)),ne(a,n);let i=await xe(_(q(n),".aqe-backup-"));try{let g=_(i,"snapshot.db"),c=await W(a,g,{standalone:!0}),l=e.compress?await z(g):g;if(e.compress&&e.verify){let r=_(i,"verified.db");await F(l,r),Re(r)}let p=Number(((await te(a)).size/1024).toFixed(2)),u=Number(((await te(l)).size/1024).toFixed(2));if(["-wal","-shm","-journal"].some(r=>j(`${n}${r}`)))throw new Error("Backup destination has SQLite sidecars; choose an unused output path");return await je(l,n),{backupPath:n,sourceSizeKB:p,backupSizeKB:u,compressed:!!e.compress,schemaVersion:c.schemaVersion,verification:c.verification}}finally{await ee(i,{recursive:!0,force:!0})}}async function Ce(a,t,e={}){if(ke(a),await Ee(q(t),{recursive:!0}),ne(a,t),j(t)&&!e.force)throw new Error(`Database already exists at: ${t}. Use --force to overwrite`);let n=await xe(_(q(t),".aqe-restore-")),i;try{let g=a.endsWith(".gz"),c=_(n,"snapshot.db"),l=a;g&&(l=_(n,"decompressed.db"),await F(a,l));let p=await W(l,c,{standalone:!0}),u=Number(((await te(c)).size/1024).toFixed(2));if(j(t)){let r=new Date().toISOString().replace(/[:.]/g,"-"),s=`${t}.pre-restore-${r}-${Fe()}.db`;try{await W(t,s,{standalone:!0}),i=s}catch(m){throw await ee(s,{force:!0}),new Error("Cannot create a verified safety backup of the existing database; restore refused. Stop project processes and preserve the database and its sidecars before restoring into an absent destination.",{cause:m})}}return await W(c,t,{expectedPages:p.pages}),{sizeKB:u,schemaVersion:p.schemaVersion,wasCompressed:g,safetyBackupPath:i}}catch(g){if(i){let c=g instanceof Error?g.message:"SQLite snapshot failed";throw new Error(`Restore failed: ${c}; previous database snapshot preserved at ${i}`,{cause:g})}throw g}finally{await ee(n,{recursive:!0,force:!0})}}function Jt(){let a=new qe("learning").description("AQE self-learning system management (standalone, no claude-flow required)").addHelpText("after",`
|
|
4
|
-
Examples:
|
|
5
|
-
# Check learning system status
|
|
6
|
-
aqe learning stats
|
|
7
|
-
|
|
8
|
-
# Consolidate patterns (promote successful patterns to long-term memory)
|
|
9
|
-
aqe learning consolidate
|
|
10
|
-
|
|
11
|
-
# Export learned patterns for sharing
|
|
12
|
-
aqe learning export --output patterns.json
|
|
13
|
-
|
|
14
|
-
# Import patterns from another project
|
|
15
|
-
aqe learning import --input patterns.json
|
|
16
|
-
|
|
17
|
-
# Run background learning consolidation
|
|
18
|
-
aqe learning daemon --interval 3600
|
|
19
|
-
`);return We(a),Ge(a),He(a),Ue(a),Je(a),Ke(a),Ye(a),Xe(a),Ze(a),et(a),tt(a),nt(a),ot(a),rt(a),Ve(a),ze(a),at(a),it(a),lt(a),a}function ze(a){a.command("embedding-health").description("Display active and stored embedding-space provenance").option("--json","Output as JSON").action(async t=>{let e=v.join(A(),".agentic-qe","memory.db");if(!x(e))throw new Error('Database not found. Run "aqe init --auto" first.');let n=E(e,{readonly:!0});try{let i=n.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='qe_pattern_embeddings'").get(),g=i?n.prepare("PRAGMA table_info('qe_pattern_embeddings')").all().some(p=>p.name==="space_id"):!1,c=i?n.prepare(`SELECT ${g?"space_id":"NULL"} AS spaceId FROM qe_pattern_embeddings`).all():[],l=ae(c,se()?.spaceId??null);if(t.json){$(l);return}console.log(o.bold(`
|
|
20
|
-
Embedding Space Health
|
|
21
|
-
`)),console.log(` Status: ${l.status}`),console.log(` Active space: ${l.activeSpaceId??"(runtime not initialized)"}`),console.log(` Stored spaces: ${l.storedSpaceIds.join(", ")||"(none)"}`),console.log(` Verified vectors: ${l.verifiedVectors}`),console.log(` Mismatched vectors: ${l.mismatchedVectors}`),console.log(` Unverified vectors: ${l.unverifiedVectors}
|
|
22
|
-
`)}finally{n.close()}})}function Ve(a){a.command("backfill-embeddings").description("Generate embeddings for learned patterns that are missing vectors").option("-b, --batch-size <n>","Patterns per embedding batch","32").option("--dry-run","Report missing embeddings without writing").option("--json","Output as JSON").action(async t=>{let e=Number(t.batchSize);if(!Number.isInteger(e)||e<=0)throw new Error("batch size must be a positive integer");let n=de();try{await n.initialize();let i=n.getGhostPatternCount();if(t.dryRun){t.json?$({dryRun:!0,batchSize:e,...i}):(console.log(o.bold(`
|
|
23
|
-
Pattern Embedding Backfill (dry run)
|
|
24
|
-
`)),console.log(` Patterns: ${i.total}`),console.log(` Missing embeddings: ${i.withoutEmbeddings}`),i.sampleGhostIds.length>0&&console.log(` Sample IDs: ${i.sampleGhostIds.join(", ")}`),console.log(""));return}let g=await n.backfillEmbeddings(e),c=n.getGhostPatternCount(),l={skipped:"vector index unavailable"};if(g.processed>0)try{let u=await C(),r=u.getLastVectorReconcile()??u.reconcileVectorIndex();r&&(l={ingested:r.ingested,missing:r.missing,capped:r.capped})}catch(u){l={skipped:u instanceof Error?u.message:String(u)}}let p={...g,batchSize:e,missingBefore:i.withoutEmbeddings,missingAfter:c.withoutEmbeddings,rvfIndex:l};t.json?$(p):(P("Pattern embedding backfill complete."),console.log(` Processed: ${g.processed}`),console.log(` Skipped: ${g.skipped}`),console.log(` Errors: ${g.errors}`),console.log(` Remaining missing: ${c.withoutEmbeddings}`),console.log(` Method: ${g.method}`),console.log("ingested"in l?` Vector index (RVF): ingested ${l.ingested} of ${l.missing} missing${l.capped?" (capped; rerun to continue)":""}`:` Vector index (RVF): not updated (${l.skipped})`),console.log(""))}catch(i){throw S(`backfill-embeddings failed: ${i instanceof Error?i.message:"unknown"}`),i}finally{n.close()}})}function We(a){a.command("stats").description("Display learning system statistics").option("--json","Output as JSON").option("--detailed","Show detailed breakdown").action(async t=>{try{let n=await(await C()).getStats();if(t.json)$(n);else{console.log(o.bold(`
|
|
25
|
-
\u{1F4CA} AQE Learning System Statistics
|
|
26
|
-
`)),console.log(o.bold("Patterns:")),console.log(` Total: ${o.cyan(n.totalPatterns)}`),console.log(` Short-term: ${n.patternStoreStats.byTier.shortTerm}`),console.log(` Long-term: ${n.patternStoreStats.byTier.longTerm}`),console.log(` Avg Confidence: ${(n.patternStoreStats.avgConfidence*100).toFixed(1)}%`),console.log(` Avg Quality: ${(n.patternStoreStats.avgQualityScore*100).toFixed(1)}%`),console.log(o.bold(`
|
|
27
|
-
By Domain:`));let i=Object.entries(n.byDomain).filter(([c,l])=>l>0).sort((c,l)=>l[1]-c[1]);if(i.length===0)console.log(o.dim(" No patterns yet"));else for(let[c,l]of i)console.log(` ${c}: ${l}`);console.log(o.bold(`
|
|
28
|
-
Learning:`)),console.log(` Routing Requests: ${n.routingRequests}`),console.log(` Avg Routing Confidence: ${(n.avgRoutingConfidence*100).toFixed(1)}%`),console.log(` Learning Outcomes: ${ce(n)}`),console.log(` Pattern Success Rate: ${le(n)}`),console.log(o.bold(`
|
|
29
|
-
Search Performance:`)),console.log(` Operations: ${n.patternStoreStats.searchOperations}`),console.log(` Avg Latency: ${n.patternStoreStats.avgSearchLatencyMs.toFixed(2)}ms`),console.log(` HNSW Native: ${n.patternStoreStats.hnswStats.nativeAvailable?o.green("\u2713"):o.dim("\u25CB")}`),console.log(` Vector Count: ${n.patternStoreStats.hnswStats.vectorCount}`);let g=n.asymmetricLearning;if(g&&(console.log(o.bold(`
|
|
30
|
-
Asymmetric Learning (ADR-061):`)),console.log(` Failure Penalty Ratio: ${g.failurePenaltyRatio||"10:1"}`),console.log(` Quarantined Patterns: ${g.quarantinedPatterns||0}`),console.log(` Rehabilitated: ${g.rehabilitatedPatterns||0}`),console.log(` Avg Confidence Delta: ${((g.avgConfidenceDelta||0)*100).toFixed(1)}%`)),t.detailed){console.log(o.bold(`
|
|
31
|
-
By Pattern Type:`));for(let[c,l]of Object.entries(n.patternStoreStats.byType))l>0&&console.log(` ${c}: ${l}`)}console.log("")}return}catch(e){throw S(`stats failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function Ge(a){a.command("consolidate").description("Consolidate patterns - promote successful patterns to long-term memory").option("--dry-run","Show what would be promoted without making changes").option("--threshold <n>","Minimum successful uses for promotion","3").option("--success-rate <n>","Minimum success rate for promotion (0-1)","0.7").option("--json","Output as JSON").action(async t=>{try{let e=await C(),n=Number(t.threshold),i=Number(t.successRate),g=.6;if(!Number.isInteger(n)||n<1)throw new Error("threshold must be a positive integer");if(!Number.isFinite(i)||i<0||i>1)throw new Error("success rate must be between 0 and 1");let c=[],l=await e.searchPatterns("",{limit:1e3});if(!l.success)throw new Error(l.error.message);for(let r of l.value){let s=r.pattern;s.tier==="short-term"&&s.successfulUses>=n&&s.successRate>=i&&s.confidence>=g&&c.push({id:s.id,name:s.name,domain:s.qeDomain,successfulUses:s.successfulUses,successRate:s.successRate,currentTier:s.tier})}let p=0,u=[];if(!t.dryRun)for(let r of c){let s=await e.promotePattern(r.id);s.success?p++:u.push({id:r.id,error:s.error.message})}if(t.json)$({dryRun:t.dryRun||!1,eligibleCount:c.length,promotedCount:p,failedCount:u.length,threshold:n,successRateMin:i,confidenceMin:g,patterns:c,failures:u});else{if(console.log(o.bold(`
|
|
32
|
-
\u{1F504} Pattern Consolidation
|
|
33
|
-
`)),console.log(` Promotion threshold: ${n} successful uses`),console.log(` Minimum success rate: ${(i*100).toFixed(0)}%`),console.log(` Minimum confidence: ${(g*100).toFixed(0)}%`),console.log(` Eligible patterns: ${c.length}
|
|
34
|
-
`),c.length===0)console.log(o.dim(" No patterns eligible for promotion yet."));else{console.log(o.bold(" Patterns to promote:"));for(let r of c)console.log(` ${o.cyan(r.name)}`),console.log(o.dim(` Domain: ${r.domain}, Uses: ${r.successfulUses}, Rate: ${(r.successRate*100).toFixed(0)}%`));if(t.dryRun)console.log(o.yellow(`
|
|
35
|
-
Dry run - no changes made`));else if(console.log(o.green(`
|
|
36
|
-
Promoted: ${p}`)),u.length>0){console.log(o.red(` Failed: ${u.length}`));for(let r of u)console.log(o.dim(` ${r.id}: ${r.error}`))}}console.log("")}return}catch(e){throw S(`consolidate failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function He(a){a.command("export").description("Export learned patterns for sharing").option("-o, --output <file>","Output file path","aqe-patterns.json").option("-d, --domain <domain>","Filter by domain").option("--long-term-only","Only export long-term patterns").option("--json","Output as JSON (to stdout)").action(async t=>{try{let n=await(await C()).searchPatterns("",{limit:1e4,domain:t.domain});if(!n.success)throw new Error(n.error.message);let i=n.value.map(c=>c.pattern).filter(c=>!t.longTermOnly||c.tier==="long-term"),g={version:"3.0.0",exportedAt:new Date().toISOString(),source:process.cwd(),patternCount:i.length,patterns:i.map(c=>({id:c.id,name:c.name,description:c.description,patternType:c.patternType,qeDomain:c.qeDomain,tier:c.tier,confidence:c.confidence,successRate:c.successRate,successfulUses:c.successfulUses,qualityScore:c.qualityScore,template:c.template,context:c.context}))};if(t.json)$(g);else{let c=v.resolve(t.output);Ae(c,JSON.stringify(g,null,2),"utf-8"),P(`Exported ${i.length} patterns to ${c}`)}return}catch(e){throw S(`export failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function Ue(a){a.command("import").description("Import patterns from file").requiredOption("-i, --input <file>","Input file path").option("--dry-run","Show what would be imported without making changes").option("--json","Output as JSON").action(async t=>{try{let e=v.resolve(t.input);if(!x(e))throw new Error(`File not found: ${e}`);let n=oe(e,"utf-8"),i=M(n);if(!i.patterns||!Array.isArray(i.patterns))throw new Error("Invalid pattern file format");let g=await C(),c=0,l=0,p=0,u=[];if(!t.dryRun)for(let r of i.patterns)try{let s=await g.storePattern({patternType:r.patternType,name:r.name,description:r.description,template:r.template,context:r.context});s.success?(c++,s.value.embedding&&s.value.embedding.length>0||p++):L(s.error)?(c++,p++):(l++,u.push(`${r.name}: ${s.error.message}`))}catch(s){l++,u.push(`${r.name}: ${s instanceof Error?s.message:"unknown"}`)}t.json?$({dryRun:t.dryRun||!1,totalPatterns:i.patterns.length,imported:c,skipped:l,pendingIndex:p,errors:u}):(console.log(o.bold(`
|
|
37
|
-
\u{1F4E5} Pattern Import
|
|
38
|
-
`)),console.log(` Source: ${e}`),console.log(` Total patterns: ${i.patterns.length}`),t.dryRun?(console.log(o.yellow(`
|
|
39
|
-
Dry run - no changes made`)),console.log(` Would import: ${i.patterns.length} patterns`)):(console.log(o.green(`
|
|
40
|
-
Imported: ${c}`)),p>0&&console.log(o.yellow(` Vector index pending: ${p} (run "aqe learning backfill-embeddings" once an embedder is available)`)),l>0&&console.log(o.yellow(` Skipped: ${l}`))),console.log(""));return}catch(e){throw S(`import failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function Je(a){a.command("reset").description("Reset learning data (patterns and metrics)").option("--confirm","Confirm reset without prompting").option("--patterns-only","Only reset patterns, keep metrics").action(async t=>{try{if(!t.confirm){console.log(o.yellow(`
|
|
41
|
-
\u26A0\uFE0F This will reset your learning data.`)),console.log(o.gray(` Use --confirm to proceed
|
|
42
|
-
`));return}let e=A(),n=v.join(e,".agentic-qe"),i=[v.join(n,"data","patterns"),v.join(n,"data","hnsw")];t.patternsOnly||i.push(v.join(n,"data","learning-config.json")),console.log(o.bold(`
|
|
43
|
-
\u{1F5D1}\uFE0F Resetting Learning Data
|
|
44
|
-
`));for(let g of i)x(g)&&console.log(o.dim(` Removing: ${v.relative(e,g)}`));P(`Learning data reset. Run "aqe init --auto" to reinitialize.
|
|
45
|
-
`);return}catch(e){throw S(`reset failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function Ke(a){a.command("extract").description("Extract QE patterns from existing learning experiences").option("--min-reward <n>","Minimum reward threshold for pattern extraction","0.7").option("--min-count <n>","Minimum occurrences to form a pattern","3").option("--dry-run","Show what would be extracted without saving").option("--json","Output as JSON").action(async t=>{try{let e=A(),n=v.join(e,".agentic-qe","memory.db");if(!x(n))throw new Error('No memory database found. Run "aqe init --auto" first.');let i=parseFloat(t.minReward),g=parseInt(t.minCount,10);console.log(o.bold(`
|
|
46
|
-
\u{1F52C} Pattern Extraction from Learning Experiences
|
|
47
|
-
`)),console.log(` Min reward threshold: ${i}`),console.log(` Min occurrences: ${g}
|
|
48
|
-
`);let c=E(n,{readonly:!0}),l=c.prepare(`
|
|
49
|
-
SELECT domain as task_type, COUNT(*) as count, AVG(quality) as avg_reward, MAX(quality) as max_reward,
|
|
50
|
-
MIN(quality) as min_reward, GROUP_CONCAT(DISTINCT agent) as actions
|
|
51
|
-
FROM captured_experiences WHERE quality >= ? AND agent != 'cli-hook' GROUP BY domain HAVING COUNT(*) >= ? ORDER BY avg_reward DESC
|
|
52
|
-
`).all(i,g),p=[];try{p=c.prepare(`
|
|
53
|
-
SELECT substr(key, 1, 40) as key_prefix, COUNT(*) as count
|
|
54
|
-
FROM memory_entries WHERE key LIKE 'phase2/learning/%'
|
|
55
|
-
GROUP BY substr(key, 1, 40) HAVING COUNT(*) >= ? ORDER BY COUNT(*) DESC LIMIT 20
|
|
56
|
-
`).all(g)}catch{}c.close();let u=[];for(let r of l){let s=be[r.task_type]||"code-intelligence",m=we[r.task_type]||"test-template",d=r.actions?r.actions.split(",").slice(0,5):[];u.push({name:`${r.task_type}-success-pattern`,domain:s,patternType:m,confidence:Math.min(.95,r.avg_reward/2),sourceCount:r.count,avgReward:r.avg_reward,actions:d})}if(t.json)$({minReward:i,minCount:g,dryRun:t.dryRun||!1,experienceGroups:l.length,memoryPatterns:p.length,extractedPatterns:u});else{if(console.log(o.bold("Learning Experience Groups:")),l.length===0)console.log(o.dim(" No qualifying experience groups found"));else for(let r of l){let s=r.avg_reward>=1?o.green:r.avg_reward>=.5?o.yellow:o.red;console.log(` ${o.cyan(r.task_type)}`),console.log(` Count: ${r.count}, Avg Reward: ${s(r.avg_reward.toFixed(2))}`)}console.log(o.bold(`
|
|
57
|
-
Memory Pattern Sources:`));for(let r of p.slice(0,10))console.log(` ${r.key_prefix}... (${r.count})`);if(console.log(o.bold(`
|
|
58
|
-
Extracted Patterns:`)),u.length===0)console.log(o.dim(" No patterns extracted"));else for(let r of u)console.log(` ${o.green("+")} ${o.cyan(r.name)}`),console.log(o.dim(` Domain: ${r.domain}, Type: ${r.patternType}`)),console.log(o.dim(` Confidence: ${(r.confidence*100).toFixed(0)}%, Sources: ${r.sourceCount}`));if(!t.dryRun&&u.length>0){let r=await C(),s=0,m=[];for(let d of u)try{let h=d.actions.length>0?`// ${d.name}
|
|
59
|
-
// Steps: ${d.actions.join(" -> ")}
|
|
60
|
-
|
|
61
|
-
{{implementation}}`:`// ${d.name}
|
|
62
|
-
// Extracted pattern with ${d.sourceCount} successful uses
|
|
63
|
-
|
|
64
|
-
{{implementation}}`,f=await r.storePattern({patternType:d.patternType,name:d.name,description:`Extracted from ${d.sourceCount} learning experiences with avg reward ${d.avgReward.toFixed(2)}`,template:{type:"code",content:h,variables:[{name:"implementation",type:"code",required:!0,description:"Implementation code for this pattern"}]},context:{tags:[d.domain,d.patternType,`sources:${d.sourceCount}`,`reward:${d.avgReward.toFixed(2)}`]}});f.success||L(f.error)?s++:m.push(`${d.name}: ${f.error.message}`)}catch(h){m.push(`${d.name}: ${h instanceof Error?h.message:"unknown"}`)}console.log(o.green(`
|
|
65
|
-
\u2713 Stored ${s} new patterns`)),m.length>0&&m.length<=5&&console.log(o.yellow(` Errors: ${m.slice(0,3).join(", ")}${m.length>3?"...":""}`))}else t.dryRun&&console.log(o.yellow(`
|
|
66
|
-
Dry run - no patterns stored`));console.log("")}return}catch(e){throw S(`extract failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function Ye(a){a.command("dashboard").description("Display learning system dashboard with metrics and trends").option("--json","Output as JSON").option("--save-snapshot","Save a daily metrics snapshot").action(async t=>{try{let e=A(),n=pe(e);await n.initialize(),t.saveSnapshot&&(await n.saveSnapshot(),P("Daily snapshot saved"));let i=await n.getDashboardData();n.close(),t.json?$(i):ye(i);return}catch(e){throw S(`dashboard failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function Xe(a){a.command("info").description("Show learning system configuration and paths").action(async()=>{try{let t=A(),e=v.join(t,".agentic-qe");console.log(o.bold(`
|
|
67
|
-
\u{1F4CB} AQE Learning System Info
|
|
68
|
-
`)),console.log(o.bold("Paths:")),console.log(` Data directory: ${e}`),console.log(` Memory database: ${v.join(e,"memory.db")}`),console.log(` HNSW index: ${v.join(e,"data","hnsw")}`),console.log(` Patterns: ${v.join(e,"data","patterns")}`),console.log(o.bold(`
|
|
69
|
-
Configuration:`)),console.log(` Learning enabled: ${process.env.AQE_LEARNING_ENABLED!=="false"?o.green("yes"):o.red("no")}`),console.log(` V3 mode: ${process.env.AQE_V3_MODE==="true"?o.green("yes"):o.dim("no")}`),console.log(` Promotion threshold: ${process.env.AQE_V3_PATTERN_PROMOTION_THRESHOLD||"3"} uses`),console.log(` Success rate threshold: ${process.env.AQE_V3_SUCCESS_RATE_THRESHOLD||"0.7"}`),console.log(o.bold(`
|
|
70
|
-
Domains:`)),console.log(` ${Q.join(", ")}`),console.log(o.bold(`
|
|
71
|
-
Hooks:`)),console.log(" Configure in .claude/settings.json"),console.log(` Events: pre-edit, post-edit, pre-task, post-task, route
|
|
72
|
-
`);return}catch(t){throw S(`info failed: ${t instanceof Error?t.message:"unknown"}`),t}})}function Ze(a){a.command("backup").description("Backup learning database to a file").option("-o, --output <path>","Dedicated backup artifact path; never another live database").option("--compress","Compress backup with gzip").option("--verify","Verify backup integrity after creation").option("--json","Output as JSON").action(async t=>{try{let e=N();if(!x(e))throw new Error(`No learning database found at: ${e}`);let n=new Date().toISOString().replace(/[:.]/g,"-").slice(0,23),i=v.join(process.cwd(),"backups",`learning-${n}-${Be()}.db`),g=t.output?v.resolve(t.output):i,c=await De(e,g,t),{backupPath:l,sourceSizeKB:p,backupSizeKB:u,schemaVersion:r}=c,s=t.verify?c.verification:void 0;if(t.json)$({success:!0,sourcePath:e,backupPath:l,sourceSizeKB:p,backupSizeKB:u,compressed:t.compress||!1,schemaVersion:r,verification:s,timestamp:new Date().toISOString()});else{if(console.log(o.bold(`
|
|
73
|
-
\u{1F4BE} Learning Database Backup
|
|
74
|
-
`)),console.log(` Source: ${e}`),console.log(` Source size: ${p} KB`),console.log(` Backup: ${l}`),console.log(` Backup size: ${u} KB`),console.log(` Schema version: ${r}`),t.compress){let m=((1-u/p)*100).toFixed(1);console.log(` Compression: ${m}% reduction`)}s&&console.log(s.valid?o.green(` Verification: ${s.message}`):o.red(` Verification: ${s.message}`)),P(`Backup saved to: ${l}
|
|
75
|
-
`)}return}catch(e){throw S(`backup failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function et(a){a.command("restore").description("Restore a verified learning database backup (stop project writers first)").requiredOption("-i, --input <path>","Backup file path to restore from").option("--verify","Verify backup integrity before restore (always enforced)").option("--force","Overwrite existing database without confirmation").option("--json","Output as JSON").action(async t=>{try{let e=v.resolve(t.input),n=N();if(!x(e))throw new Error(`Backup file not found: ${e}`);let i=await Ce(e,n,{force:t.force}),{sizeKB:g,schemaVersion:c,wasCompressed:l,safetyBackupPath:p}=i;t.json?$({success:!0,backupPath:e,restoredPath:n,sizeKB:g,schemaVersion:c,wasCompressed:l,safetyBackupPath:p,timestamp:new Date().toISOString()}):(console.log(o.bold(`
|
|
76
|
-
\u{1F504} Learning Database Restore
|
|
77
|
-
`)),console.log(` Backup: ${e}`),console.log(` Restored to: ${n}`),console.log(` Size: ${g.toFixed(2)} KB`),console.log(` Schema version: ${c}`),p&&console.log(` Previous database: ${p}`),P(`Database restored successfully
|
|
78
|
-
`));return}catch(e){throw S(`restore failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function tt(a){a.command("verify").description("Verify learning database integrity").option("-f, --file <path>","Database file to verify (defaults to current)").option("--json","Output as JSON").action(async t=>{try{let e=t.file?v.resolve(t.file):N();if(!x(e))throw new Error(`Database file not found: ${e}`);let n=await V(e),i=await Y(e),g=await Qe(e),c={};try{let l=E(e,{readonly:!0});for(let p of["qe_patterns","qe_trajectories","captured_experiences","kv_store","vectors"])try{let u=l.prepare(`SELECT COUNT(*) as count FROM ${p}`).get();c[p]=u.count}catch{}l.close()}catch{}if(t.json)$({valid:n.valid,message:n.message,path:e,sizeKB:parseFloat((g.size/1024).toFixed(2)),schemaVersion:i,tableCounts:c,timestamp:new Date().toISOString()});else{if(console.log(o.bold(`
|
|
79
|
-
\u{1F50D} Database Verification
|
|
80
|
-
`)),console.log(` Path: ${e}`),console.log(` Size: ${(g.size/1024).toFixed(2)} KB`),console.log(` Schema version: ${i}`),console.log(n.valid?o.green(` Status: ${n.message}`):o.red(` Status: ${n.message}`)),Object.keys(c).length>0){console.log(o.bold(`
|
|
81
|
-
Table Counts:`));for(let[l,p]of Object.entries(c))console.log(` ${l}: ${p}`)}console.log("")}if(!n.valid)throw new Error(`Database verification failed: ${n.message}`);return}catch(e){throw S(`verify failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function nt(a){a.command("export-full").description("Export all learning data including patterns, trajectories, and experiences").option("-o, --output <file>","Output file path","aqe-learning-export.json").option("--compress","Compress output with gzip").option("--include-trajectories","Include learning trajectories").option("--include-experiences","Include learning experiences").option("--json","Output as JSON (to stdout)").action(async t=>{try{let e=N();if(!x(e))throw new Error('No learning database found. Run "aqe init --auto" first.');let n=await C(),i=await Y(e),g=await n.searchPatterns("",{limit:1e4});if(!g.success)throw new Error(g.error.message);let c=g.value.map(p=>({id:p.pattern.id,name:p.pattern.name,description:p.pattern.description,patternType:p.pattern.patternType,qeDomain:p.pattern.qeDomain,tier:p.pattern.tier,confidence:p.pattern.confidence,successRate:p.pattern.successRate,successfulUses:p.pattern.successfulUses,qualityScore:p.pattern.qualityScore,template:p.pattern.template,context:p.pattern.context,createdAt:p.pattern.createdAt instanceof Date?p.pattern.createdAt.toISOString():p.pattern.createdAt||void 0,lastUsedAt:p.pattern.lastUsedAt instanceof Date?p.pattern.lastUsedAt.toISOString():p.pattern.lastUsedAt||void 0})),l={version:X,exportedAt:new Date().toISOString(),source:process.cwd(),schemaVersion:i,patternCount:c.length,patterns:c};if(t.includeTrajectories)try{let p=E(e,{readonly:!0}),u=p.prepare("SELECT id, task, agent, domain, success, steps_json FROM qe_trajectories ORDER BY started_at DESC LIMIT 1000").all();l.trajectories=u.map(r=>({id:r.id,task:r.task,agent:r.agent,domain:r.domain,success:r.success,stepsJson:r.steps_json})),p.close()}catch{}if(t.includeExperiences)try{let p=E(e,{readonly:!0}),u=p.prepare("SELECT domain as task_type, agent as action, AVG(quality) as avg_reward, COUNT(*) as count FROM captured_experiences WHERE agent != 'cli-hook' GROUP BY domain, agent ORDER BY count DESC LIMIT 500").all();l.experiences=u.map(s=>({taskType:s.task_type,action:s.action,reward:s.avg_reward,count:s.count}));let r=p.prepare("SELECT COUNT(*) as total, AVG(quality) as avg_reward FROM captured_experiences WHERE agent != 'cli-hook'").get();l.metadata={totalExperiences:r.total,avgReward:r.avg_reward},p.close()}catch{}if(t.json)$(l);else{let p=v.resolve(t.output);if(Ae(p,JSON.stringify(l,null,2),"utf-8"),t.compress){let u=await z(p);await I(p),p=u}console.log(o.bold(`
|
|
82
|
-
\u{1F4E4} Learning Data Export
|
|
83
|
-
`)),console.log(` Patterns: ${c.length}`),l.trajectories&&console.log(` Trajectories: ${l.trajectories.length}`),l.experiences&&console.log(` Experience groups: ${l.experiences.length}`),console.log(` Schema version: ${i}`),console.log(` Export format: ${X}`),P(`Exported to: ${p}
|
|
84
|
-
`)}return}catch(e){throw S(`export-full failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function ot(a){a.command("import-merge").description("Import and merge patterns from export file (preserves existing data)").requiredOption("-i, --input <file>","Input file path").option("--skip-duplicates","Skip patterns with matching names (default: update)").option("--dry-run","Show what would be imported without making changes").option("--json","Output as JSON").action(async t=>{try{let e=v.resolve(t.input);if(!x(e))throw new Error(`File not found: ${e}`);let n;if(e.endsWith(".gz")){let f=e.replace(".gz",".tmp.json");await F(e,f),n=oe(f,"utf-8"),await I(f)}else n=oe(e,"utf-8");let i=M(n);if(!i.patterns||!Array.isArray(i.patterns))throw new Error("Invalid import file format: missing patterns array");let g=await C(),c=await g.searchPatterns("",{limit:1e4}),l=new Set;if(c.success)for(let f of c.value)l.add(f.pattern.name);let p=0,u=0,r=0,s=[];if(!t.dryRun)for(let f of i.patterns){let y=l.has(f.name);if(y&&t.skipDuplicates){u++;continue}try{let b=await g.storePattern({patternType:f.patternType,name:f.name,description:f.description,template:f.template,context:f.context});b.success||L(b.error)?y?r++:p++:(u++,s.push(`${f.name}: ${b.error.message}`))}catch(b){u++,s.push(`${f.name}: ${b instanceof Error?b.message:"unknown"}`)}}let m=0,d=0,h=0;if(t.dryRun)for(let f of i.patterns){let y=l.has(f.name);y&&t.skipDuplicates?d++:y?h++:m++}t.json?$({dryRun:t.dryRun||!1,importVersion:i.version,totalPatterns:i.patterns.length,imported:t.dryRun?m:p,updated:t.dryRun?h:r,skipped:t.dryRun?d:u,errors:s.slice(0,10)}):(console.log(o.bold(`
|
|
85
|
-
\u{1F4E5} Learning Data Import (Merge)
|
|
86
|
-
`)),console.log(` Source: ${e}`),console.log(` Export version: ${i.version||"unknown"}`),console.log(` Total patterns: ${i.patterns.length}`),console.log(` Existing patterns: ${l.size}`),t.dryRun?(console.log(o.yellow(`
|
|
87
|
-
Dry run - no changes made`)),console.log(` Would import: ${m}
|
|
88
|
-
Would update: ${h}
|
|
89
|
-
Would skip: ${d}`)):(console.log(o.green(`
|
|
90
|
-
Imported: ${p}`)),console.log(o.blue(` Updated: ${r}`)),u>0&&console.log(o.yellow(` Skipped: ${u}`)),s.length>0&&console.log(o.red(` Errors: ${s.length}`))),console.log(""));return}catch(e){throw S(`import-merge failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function rt(a){a.command("dream").description("Run dream cycles for pattern discovery via spreading activation").option("--duration <ms>","Duration of dream cycle in milliseconds","30000").option("--quick","Run a quick 5-second dream cycle").option("--full","Run a full 30-second dream cycle").option("--status","Show dream system status").option("--history","Show past dream cycles").option("--insights","Show pending insights from previous cycles").option("--apply <id>","Apply a specific insight by ID").option("--limit <n>","Maximum results for history/insights","20").option("--min-patterns <n>","Minimum patterns required to dream","10").option("--json","Output as JSON").action(async t=>{try{let{createDreamEngine:e}=await import("./dream-TRFBGDSQ.js");if(t.status){let r=e();await r.initialize();let s=r.isDreaming(),m=await r.getDreamHistory(100),d=await r.getPendingInsights(100),h=m.reduce((y,b)=>y+b.insightsGenerated,0),f=m[0];if(t.json)$({isDreaming:s,totalCycles:m.length,totalInsights:h,pendingInsights:d.length,lastDreamTime:f?.startTime.toISOString()||null});else{if(console.log(o.bold(`
|
|
91
|
-
\u{1F319} Dream System Status
|
|
92
|
-
`)),console.log(` Currently dreaming: ${s?o.green("Yes"):o.dim("No")}`),console.log(` Total dream cycles: ${m.length}`),console.log(` Total insights generated: ${h}`),console.log(` Pending insights: ${d.length}`),console.log(` Last dream: ${f?f.startTime.toISOString():o.dim("never")}`),m.length>0){console.log(o.bold(`
|
|
93
|
-
Recent cycles:`));for(let y of m.slice(0,3)){let b=y.status==="completed"?o.green(y.status):o.yellow(y.status);console.log(` ${y.id.slice(0,8)} | ${b} | ${y.durationMs||0}ms | ${y.insightsGenerated} insights`)}}console.log("")}await r.close();return}if(t.history){let r=parseInt(t.limit,10),s=e();await s.initialize();let m=await s.getDreamHistory(r);if(t.json)$(m.map(d=>({id:d.id,startTime:d.startTime.toISOString(),endTime:d.endTime?.toISOString(),durationMs:d.durationMs,status:d.status,conceptsProcessed:d.conceptsProcessed,associationsFound:d.associationsFound,insightsGenerated:d.insightsGenerated})));else{if(console.log(o.bold(`
|
|
94
|
-
\u{1F319} Dream Cycle History (${m.length} cycles)
|
|
95
|
-
`)),m.length===0)console.log(o.dim(" No dream cycles found. Run: aqe learning dream"));else for(let d of m){let h=d.status==="completed"?o.green("\u2713"):d.status==="failed"?o.red("\u2717"):o.yellow("\u22EF");console.log(` ${h} ${d.id.slice(0,8)} | ${d.startTime.toISOString()}`),console.log(o.dim(` Duration: ${d.durationMs||0}ms | Concepts: ${d.conceptsProcessed} | Associations: ${d.associationsFound} | Insights: ${d.insightsGenerated}`))}console.log("")}await s.close();return}if(t.insights){let r=parseInt(t.limit,10),s=e();await s.initialize();let m=await s.getPendingInsights(r);if(t.json)$(m.map(d=>({id:d.id,type:d.type,description:d.description,noveltyScore:d.noveltyScore,confidenceScore:d.confidenceScore,actionable:d.actionable,applied:d.applied||!1,suggestedAction:d.suggestedAction,createdAt:d.createdAt?.toISOString()})));else{if(console.log(o.bold(`
|
|
96
|
-
\u{1F4A1} Pending Dream Insights (${m.length})
|
|
97
|
-
`)),m.length===0)console.log(o.dim(" No pending insights. Run a dream cycle first: aqe learning dream"));else for(let d of m){let h=d.noveltyScore>=.7?o.green(`${(d.noveltyScore*100).toFixed(0)}%`):o.yellow(`${(d.noveltyScore*100).toFixed(0)}%`),f=d.confidenceScore>=.7?o.green(`${(d.confidenceScore*100).toFixed(0)}%`):o.yellow(`${(d.confidenceScore*100).toFixed(0)}%`);console.log(` ${o.cyan(d.id.slice(0,8))} [${d.type}] ${d.actionable?"\u26A1":" "}`),console.log(` ${d.description}`),console.log(o.dim(` Novelty: ${h} | Confidence: ${f}`)),d.suggestedAction&&console.log(o.dim(` Action: ${d.suggestedAction}`))}console.log("")}await s.close();return}if(t.apply){let r=t.apply,s=e();await s.initialize();let d=(await s.getPendingInsights(100)).find(w=>w.id===r||w.id.startsWith(r));if(!d)throw await s.close(),new Error(`Insight not found: ${r}`);if(!d.actionable)throw await s.close(),new Error(`Insight ${r} is not actionable`);let h=await s.applyInsight(d.id),y=await(await C()).storePattern({patternType:"test-template",name:`Dream Insight: ${d.type}`,description:`${d.description} (confidence: ${d.confidenceScore.toFixed(2)})`,template:{type:"workflow",content:d.suggestedAction||d.description,variables:[]},context:{tags:["dream-generated",d.type,...d.sourceConcepts.slice(0,3)],complexity:"medium"}}),b=y.success?y.value.id:L(y.error);if(t.json?$({insightId:d.id,applied:h.success,patternId:b,error:h.error||(b||y.success?null:y.error?.message)}):h.success?(P(`Applied insight ${d.id.slice(0,8)}`),b&&P(`Created pattern ${b} in ReasoningBank`)):S(`Failed to apply insight: ${h.error}`),await s.close(),!h.success)throw new Error(`Failed to apply insight: ${h.error}`);return}let n=parseInt(t.duration,10);t.quick&&(n=5e3),t.full&&(n=3e4),n=Math.min(n,6e4);let i=parseInt(t.minPatterns,10);T(`Starting dream cycle (${n}ms, min ${i} patterns)...`);let g=e({maxDurationMs:n,minConceptsRequired:i});await g.initialize();let l=await(await C()).searchPatterns("",{limit:100,minConfidence:.3}),p=0;if(l.success&&l.value.length>0){let r=l.value.map(s=>({id:s.pattern.id,name:s.pattern.name,description:s.pattern.description||`${s.pattern.patternType} pattern`,domain:s.pattern.qeDomain||"learning-optimization",patternType:s.pattern.patternType,confidence:s.pattern.confidence,successRate:s.pattern.usageCount>0?s.pattern.successRate:void 0}));p=await g.loadPatternsAsConcepts(r),T(`Loaded ${p} patterns from ReasoningBank as concepts`)}else T("No patterns found in ReasoningBank \u2014 dreaming with existing concepts");let u=await g.dream(n);if(t.json)$({cycleId:u.cycle.id,status:u.cycle.status,durationMs:u.cycle.durationMs||0,conceptsProcessed:u.cycle.conceptsProcessed,associationsFound:u.cycle.associationsFound,insightsGenerated:u.cycle.insightsGenerated,activationStats:u.activationStats,patternsCreated:u.patternsCreated,insights:u.insights.map(r=>({id:r.id,type:r.type,description:r.description,noveltyScore:r.noveltyScore,confidenceScore:r.confidenceScore,actionable:r.actionable}))});else{if(console.log(o.bold(`
|
|
98
|
-
\u{1F319} Dream Cycle Complete
|
|
99
|
-
`)),console.log(` Cycle ID: ${u.cycle.id.slice(0,8)}`),console.log(` Status: ${u.cycle.status==="completed"?o.green("completed"):o.yellow(u.cycle.status)}`),console.log(` Duration: ${u.cycle.durationMs||0}ms`),console.log(` Concepts: ${u.cycle.conceptsProcessed}`),console.log(` Associations: ${u.cycle.associationsFound}`),console.log(` Insights: ${u.cycle.insightsGenerated}`),u.activationStats&&(console.log(o.bold(`
|
|
100
|
-
Activation Stats:`)),console.log(` Iterations: ${u.activationStats.totalIterations}`),console.log(` Peak level: ${u.activationStats.peakActivation.toFixed(3)}`),console.log(` Nodes active: ${u.activationStats.nodesActivated}`)),u.insights.length>0){console.log(o.bold(`
|
|
101
|
-
Generated Insights:`));for(let r of u.insights){let s=r.noveltyScore>=.7?o.green(`${(r.noveltyScore*100).toFixed(0)}%`):o.yellow(`${(r.noveltyScore*100).toFixed(0)}%`);console.log(` ${o.cyan(r.id.slice(0,8))} [${r.type}] ${r.actionable?"\u26A1 actionable":""}`),console.log(` ${r.description}`),console.log(o.dim(` Novelty: ${s} | Confidence: ${(r.confidenceScore*100).toFixed(0)}%`))}console.log(o.dim(`
|
|
102
|
-
Apply insights with: aqe learning dream --apply <insight-id>`))}else console.log(o.dim(`
|
|
103
|
-
No insights generated this cycle.`)),console.log(o.dim(" Try loading more patterns or running a longer cycle."));console.log("")}await g.close();return}catch(e){throw S(`dream failed: ${e instanceof Error?e.message:"unknown"}`),e instanceof Error&&e.stack&&console.error(o.dim(e.stack)),e}})}function at(a){a.command("repair").description("Repair a corrupted learning database (dump + reimport to rebuild indexes)").option("-f, --file <path>","Database file to repair (defaults to current project)").option("--dry-run","Show what would be done without modifying files").option("--json","Output as JSON").action(async t=>{try{let e=t.file?v.resolve(t.file):N();if(!x(e))throw new Error(`Database file not found: ${e}`);let n=await V(e);if(n.valid){t.json?$({status:"healthy",message:"Database is already healthy, no repair needed",path:e}):P("Database integrity check passed \u2014 no repair needed.");return}T(`Corruption detected: ${n.message}`);let i={};try{let w=E(e,{readonly:!0}),R=w.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%'").all();for(let B of R)try{let H=w.prepare(`SELECT COUNT(*) as count FROM "${B.name}"`).get();i[B.name]=H.count}catch{}w.close()}catch{}let g=Object.values(i).reduce((w,R)=>w+R,0);if(T(`Found ${Object.keys(i).length} tables, ~${g} total rows`),t.dryRun){t.json?$({status:"dry-run",corruptionDetected:!0,message:n.message,tables:i,totalRows:g}):(console.log(o.bold(`
|
|
104
|
-
Dry run \u2014 would perform these steps:`)),console.log(" 1. Backup corrupted DB"),console.log(" 2. Dump all data via .dump"),console.log(" 3. Reimport into fresh DB (rebuilds all indexes)"),console.log(" 4. Verify integrity of repaired DB"),console.log(" 5. Verify row counts match"),console.log(" 6. Swap repaired DB into place"),console.log(""));return}let c=`${e}.bak-${Date.now()}`;Me(e,c),T(`Backup created: ${c}`);for(let w of["-wal","-shm"]){let R=e+w;x(R)&&await I(R)}let{execFileSync:l}=await import("node:child_process"),{openSync:p,closeSync:u,readFileSync:r}=await import("node:fs"),s=`${e}.repaired`,m=`${e}.dump.sql`;try{let w=p(m,"w");try{l("sqlite3",[e,".dump"],{stdio:["ignore",w,"pipe"],timeout:12e4})}finally{u(w)}l("sqlite3",[s],{input:r(m),stdio:["pipe","pipe","pipe"],timeout:12e4}),l("sqlite3",[s,"PRAGMA journal_mode=WAL;"],{stdio:"pipe"})}catch(w){throw x(s)&&await I(s),x(m)&&await I(m),new Error(`sqlite3 dump/reimport failed: ${w instanceof Error?w.message:"unknown"}. Is sqlite3 installed?`)}let d=await V(s);if(!d.valid)throw x(m)&&await I(m),new Error(`Repaired DB still has integrity issues: ${d.message}. Backup preserved at ${c}`);let h={},f=E(s,{readonly:!0}),y=f.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%'").all();for(let w of y)try{let R=f.prepare(`SELECT COUNT(*) as count FROM "${w.name}"`).get();h[w.name]=R.count}catch{}f.close();let b=Object.values(h).reduce((w,R)=>w+R,0);Pe(e,`${e}.pre-repair`),Pe(s,e),x(m)&&await I(m),t.json?$({status:"repaired",backupPath:c,rowsBefore:g,rowsAfter:b,tablesRepaired:Object.keys(h).length,rowCounts:h}):(P("Database repaired successfully!"),console.log(` Backup: ${c}`),console.log(` Rows before: ${g}`),console.log(` Rows after: ${b}`),b<g&&console.log(o.yellow(` Warning: ${g-b} rows may have been lost due to data page corruption`)),console.log(` Tables: ${Object.keys(h).length}`),console.log(` Integrity: ${o.green("OK")}`),console.log(""));return}catch(e){throw S(`repair failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function st(a){switch(a){case"sublinear":return{arrow:"\u25B2",label:"Sublinear (learning)",color:o.green};case"linear":return{arrow:"\u2192",label:"Linear (stagnating)",color:o.yellow};case"superlinear":return{arrow:"\u25BC",label:"Superlinear (degrading)",color:o.red};default:return{arrow:"?",label:"Insufficient data",color:o.dim}}}function it(a){a.command("health").description("Display per-domain learning health based on regret tracking").option("--json","Output as JSON").option("--domain <domain>","Filter to a specific domain").action(async t=>{try{let e=A(),n=v.join(e,".agentic-qe","memory.db");if(!x(n))throw new Error('Database not found. Run "aqe init --auto" first.');let i=ue(),g=E(n,{readonly:!0});if(g.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='captured_experiences'").get()){let s=t.domain?"AND domain = ?":"",m=[];t.domain&&m.push(t.domain);let d=g.prepare(`
|
|
105
|
-
SELECT domain, quality, success, started_at
|
|
106
|
-
FROM captured_experiences
|
|
107
|
-
WHERE agent != 'cli-hook'
|
|
108
|
-
AND domain IS NOT NULL
|
|
109
|
-
AND domain != ''
|
|
110
|
-
${s}
|
|
111
|
-
ORDER BY started_at ASC
|
|
112
|
-
`).all(...m);for(let h of d){let f=h.quality??(h.success?1:0);i.recordDecision(h.domain,f,1)}}g.close();let l=i.getHealthSummary();if(t.json){$(l);return}if(console.log(""),console.log(o.bold("Learning Health Dashboard:")),l.length===0){console.log(o.dim(" No domain data available. Run some QE tasks to generate learning data.")),console.log("");return}let p=Math.max(...l.map(s=>s.domain.length),20);for(let s of l){let{arrow:m,label:d,color:h}=st(s.growthRate),f=D(s.domain+":",p+1),y=h(`${m} ${D(d,26)}`),b=`regret: ${s.cumulativeRegret.toFixed(1)}`,w=`decisions: ${s.totalDecisions}`;console.log(` ${f} ${y} ${b} ${w}`)}let u=l.filter(s=>s.stagnating);u.length>0&&(console.log(""),console.log(o.yellow(` Warning: ${u.length} domain(s) showing stagnation: ${u.map(s=>s.domain).join(", ")}`)));let r=l.filter(s=>s.growthRate==="sublinear");r.length>0&&console.log(o.green(` ${r.length} domain(s) actively learning`)),console.log("");return}catch(e){throw S(`health check failed: ${e instanceof Error?e.message:"unknown"}`),e}})}var ct={bridge:3e4,learningWorker:2*36e5,dreamScheduler:2*36e5};function lt(a){a.command("loop-health").description("Show pipeline component liveness for the self-learning loop").option("--json","Output as JSON").action(async t=>{try{let e=A(),n=v.join(e,".agentic-qe","memory.db");if(!x(n))throw new Error('Database not found. Run "aqe init --auto" first.');let i=E(n,{readonly:!0}),g;try{g=i.prepare("SELECT value FROM kv_store WHERE key = 'learning:loop-health' LIMIT 1").get()?.value}catch{}let c=null;try{if(i.prepare("PRAGMA table_info(routing_outcomes)").all().some(m=>m.name==="exploration")){let m=i.prepare(`SELECT
|
|
113
|
-
COUNT(*) AS total,
|
|
114
|
-
SUM(CASE WHEN exploration = 1 THEN 1 ELSE 0 END) AS explore,
|
|
115
|
-
AVG(criticality) AS avgCrit,
|
|
116
|
-
AVG(q_weight) AS avgQ
|
|
117
|
-
FROM routing_outcomes
|
|
118
|
-
WHERE created_at >= datetime('now', '-7 days')`).get(),d=m.total??0,h=m.explore??0,f=d-h,y=i.prepare(`SELECT AVG(quality_score) AS avgQ FROM routing_outcomes
|
|
119
|
-
WHERE exploration = 0 AND quality_score >= 0
|
|
120
|
-
AND created_at >= datetime('now', '-7 days')`).get(),b=i.prepare(`SELECT AVG(quality_score) AS avgQ FROM routing_outcomes
|
|
121
|
-
WHERE exploration = 1 AND quality_score >= 0
|
|
122
|
-
AND created_at >= datetime('now', '-7 days')`).get();c={totalDecisions:d,explorationCount:h,exploitCount:f,explorationRate:d>0?h/d:0,avgQualityExploit:y.avgQ,avgQualityExplore:b.avgQ,avgCriticality:m.avgCrit,avgQWeight:m.avgQ}}}catch{}i.close();let l=null;if(g)try{l=M(g)}catch{l=null}let p=Date.now(),u=(r,s)=>{let m=ct[r]??6e5;return!s||!s.lastSuccessAt?"never-ran":p-new Date(s.lastSuccessAt).getTime()>m?"stale":"live"};if(t.json){if(!l){$({overallLastSuccess:null,bootedAt:null,components:{},verdicts:{},routingDiversification:c,note:"No loop-health record yet. Workers must run at least once for this to populate."});return}let r={};for(let s of Object.keys(l.components))r[s]=u(s,l.components[s]);$({...l,verdicts:r,routingDiversification:c});return}if(console.log(""),console.log(o.bold("Self-Learning Loop Health")),console.log(""),!l)console.log(o.dim(" No loop-health record yet.")),console.log(o.dim(" Workers must run at least once to populate.")),console.log(o.dim(" Start the daemon: aqe daemon start"));else{console.log(` Booted at: ${o.dim(l.bootedAt)}`),console.log(` Last success (any): ${l.overallLastSuccess||o.dim("(none yet)")}`),console.log(""),console.log(o.bold(" Components:"));let r=[["bridge","CapturedExperienceBridge"],["learningWorker","LearningConsolidationWorker"],["dreamScheduler","DreamScheduler"]];for(let[m,d]of r){let h=l.components[m],f=u(m,h),y=f==="live"?o.green("\u25CF live"):f==="stale"?o.yellow("\u25CF stale"):o.dim("\u25CB never-ran"),b=h?.lastSuccessAt||o.dim("(never)"),w=h?`${h.successesSinceBoot}/${h.ticksSinceBoot} ticks ok`:o.dim("no ticks");console.log(` ${d.padEnd(32)} ${y.padEnd(20)} ${w}`),console.log(` ${o.dim("last success:")} ${b}`),h?.lastError&&console.log(` ${o.red("last error:")} ${h.lastError.message} ${o.dim("(at "+h.lastError.at+")")}`)}let s=r.filter(([m,d])=>u(m,l.components[m])==="stale");s.length>0&&(console.log(""),console.log(o.yellow(` Warning: ${s.length} component(s) stale \u2014 daemon may not be running or the loop is wedged.`)))}if(c&&c.totalDecisions>0){console.log(""),console.log(o.bold(" Routing diversification (last 7 days):"));let r=(c.explorationRate*100).toFixed(1);if(console.log(` Decisions: ${c.totalDecisions} (${c.exploitCount} exploit, ${c.explorationCount} explore = ${r}%)`),c.avgQualityExploit!==null&&c.avgQualityExplore!==null){let s=c.avgQualityExplore-c.avgQualityExploit,m=s>=0?o.green(`+${s.toFixed(3)}`):o.red(s.toFixed(3));console.log(` Avg quality: exploit=${c.avgQualityExploit.toFixed(3)}, explore=${c.avgQualityExplore.toFixed(3)} (\u0394 ${m})`)}c.avgCriticality!==null&&console.log(` Avg mincut multiplier: ${c.avgCriticality.toFixed(2)} (1.0=full rate, 0.2=critical-topology dampening)`),c.avgQWeight!==null&&c.avgQWeight>0&&console.log(` Avg Q-weight: ${c.avgQWeight.toFixed(3)} (0=cold start, ${.4} max)`)}console.log("");return}catch(e){throw S(`loop-health failed: ${e instanceof Error?e.message:"unknown"}`),e}})}export{Jt as createLearningCommand,C as initializeLearningSystem};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{a,b,c,d}from"./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-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-H4H2YSFH.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 createLLMRouterService,d as extractProviderConfigs,b as pickEnabledProviders,c as pickPrimaryAndFallbacks};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{a}from"./chunk-BTVEYBW2.js";import"./chunk-UXZSUMEA.js";import"./chunk-6KATY3KS.js";import"./chunk-LWR3FV3Y.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-H4H2YSFH.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 LoadTestTool};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{a}from"./chunk-LWR3FV3Y.js";import"./chunk-TWDW32W2.js";import"./chunk-DVGRPK7A.js";import"./chunk-ZAKQLAHT.js";export{a as InMemoryBackend};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{a}from"./chunk-UTRV7T2N.js";import"./chunk-JRRXCODW.js";import"./chunk-H4H2YSFH.js";import"./chunk-ZAKQLAHT.js";export{a as PatternNullStore};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{a as c,b as d,c as e,d as f}from"./chunk-J2ZIFFM6.js";import{c as a,d as b}from"./chunk-RF7HWBHN.js";import"./chunk-ZAKQLAHT.js";f();export{c as clearProjectRootCache,e as findProjectRoot,d as getProjectStorePath,a as isSharedSystemDir,b as scratchRootPath};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{a,b}from"./chunk-MGZ5FJUW.js";import"./chunk-KCW47QR5.js";import"./chunk-X2Z7F4EU.js";import"./chunk-H4H2YSFH.js";import"./chunk-NURIILUB.js";import"./chunk-3Y2ROSCL.js";import"./chunk-ZAKQLAHT.js";export{a as DefaultProtocolExecutor,b as createProtocolExecutor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{a as h,b as i,c as j,e as k,f as l,g as m,h as n}from"./chunk-72ASBE35.js";import{a as e,b as f,d as g}from"./chunk-TSQC2KKZ.js";import"./chunk-SYV2V3PL.js";import"./chunk-NZD4DPSU.js";import{a,b,c,i as d}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"./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-WKGTGOYS.js";import"./chunk-DVGRPK7A.js";import"./chunk-H4H2YSFH.js";import"./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"./chunk-DNDL7SOS.js";import"./chunk-3Y2ROSCL.js";import"./chunk-WO274FRI.js";import"./chunk-ZAKQLAHT.js";export{j as AGENT_CAPABILITIES,h as DEFAULT_QE_REASONING_BANK_CONFIG,i as PRETRAINED_PATTERNS,m as QEReasoningBank,l as RELATED_DOMAINS,d as applyPatternTemplate,k as calculateAgentScores,n as createQEReasoningBank,a as detectQEDomain,b as detectQEDomains,g as generateGuidanceContext,f as getCombinedGuidance,e as getGuidance,c as mapQEDomainToAQE};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{a,b,c,d}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"./chunk-UDQSYWVF.js";import"./chunk-YBQH2VOP.js";import"./chunk-NZD4DPSU.js";import"./chunk-E7CLYGS7.js";import"./chunk-GU5HNCWI.js";import"./chunk-5VMAV6T6.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-H4H2YSFH.js";import"./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-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 DOMAIN_GROUPS,c as QueenCoordinator,b as TASK_DOMAIN_MAP,d as createQueenCoordinator};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.13");process.exit(0)}
|
|
2
|
-
import{a,b,c}from"./chunk-RFNW2LGD.js";import"./chunk-32ZMWEP3.js";import"./chunk-MFW5HSG4.js";import"./chunk-R7SYRCRP.js";import"./chunk-7YTGHGK4.js";import"./chunk-P7A4NKTZ.js";import"./chunk-VTOBUZL6.js";import"./chunk-3Y2ROSCL.js";import"./chunk-ZAKQLAHT.js";export{a as ModelRouter,b as createModelRouter,c as createModelRouterWithAgentBooster};
|