agentic-qe 3.9.26 → 3.9.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/skills-manifest.json +1 -1
- package/CHANGELOG.md +94 -0
- package/assets/skills/skills-manifest.json +1 -1
- package/dist/bridge/captured-experience-bridge.d.ts +40 -0
- package/dist/bridge/captured-experience-bridge.js +232 -0
- package/dist/cli/bundle.js +5 -5
- package/dist/cli/chunks/adapter-EZP2PBUO.js +2 -0
- package/dist/cli/chunks/{agent-booster-wasm-ZOADSKRX.js → agent-booster-wasm-V5PG6GFO.js} +2 -2
- package/dist/cli/chunks/{agent-handler-SPLFCIHA.js → agent-handler-7ZQNRIZC.js} +2 -2
- package/dist/cli/chunks/{agent-memory-branch-R6ZVL2FT.js → agent-memory-branch-KGEYSKXW.js} +2 -2
- package/dist/cli/chunks/aqe-learning-engine-RM4YQPRF.js +2 -0
- package/dist/cli/chunks/{audit-6TQQFGQN.js → audit-5A4AC2NA.js} +2 -2
- package/dist/cli/chunks/base-2KYCMSPN.js +2 -0
- package/dist/cli/chunks/{hnswlib-node-TULXUZI4.js → better-sqlite3-RZZIAME7.js} +2 -2
- package/dist/cli/chunks/{brain-handler-6BQCTD3M.js → brain-handler-KNERI5RC.js} +3 -3
- package/dist/cli/chunks/{branch-enumerator-JTESSKID.js → branch-enumerator-DGR3U73T.js} +2 -2
- package/dist/cli/chunks/{browser-YDZLFZNH.js → browser-Y5DC6QCK.js} +2 -2
- package/dist/cli/chunks/browser-workflow-FZ2BRH4H.js +2 -0
- package/dist/cli/chunks/{chunk-IKRLPS4M.js → chunk-2RKR6KT5.js} +2 -2
- package/dist/cli/chunks/{chunk-SDD3XQ7X.js → chunk-33VVPBAK.js} +1 -1
- package/dist/cli/chunks/{chunk-QFXOKERO.js → chunk-3ZPK7HCD.js} +1 -1
- package/dist/cli/chunks/{chunk-SYRUG2T7.js → chunk-4MYXPDXX.js} +1 -1
- package/dist/cli/chunks/chunk-4R6DN7IO.js +2 -0
- package/dist/cli/chunks/{chunk-TZ73IAF5.js → chunk-5KOR5ZMG.js} +2 -2
- package/dist/cli/chunks/{chunk-SYQZPNHQ.js → chunk-5RZ26J4J.js} +2 -2
- package/dist/cli/chunks/{chunk-6UFMNYQV.js → chunk-5UHMNAK2.js} +1 -1
- package/dist/cli/chunks/{chunk-RLAXE5HU.js → chunk-6BJ6O7JZ.js} +2 -2
- package/dist/cli/chunks/{chunk-PJPNRDEF.js → chunk-6WKX2O66.js} +2 -2
- package/dist/cli/chunks/{chunk-MW4WEMLE.js → chunk-7GLCWLZL.js} +2 -2
- package/dist/cli/chunks/{chunk-7T2KT74O.js → chunk-7MLACLCT.js} +2 -2
- package/dist/cli/chunks/{chunk-MSPY7HMF.js → chunk-7MVFQGFZ.js} +2 -2
- package/dist/cli/chunks/{chunk-Y3YJMKXS.js → chunk-7NDBKLDK.js} +2 -2
- package/dist/cli/chunks/{chunk-HKHRIPXP.js → chunk-A77JCFFC.js} +9 -9
- package/dist/cli/chunks/{chunk-QXQWQRZA.js → chunk-AFSVRY7S.js} +1 -1
- package/dist/cli/chunks/{chunk-G3KTLF57.js → chunk-AL7LMXTA.js} +2 -2
- package/dist/cli/chunks/{chunk-2OFL5HSB.js → chunk-B5KYS65U.js} +2 -2
- package/dist/cli/chunks/{chunk-FWPV44HL.js → chunk-BRCWESMJ.js} +2 -2
- package/dist/cli/chunks/{chunk-EPCKRFMU.js → chunk-C5RA5PDV.js} +2 -2
- package/dist/cli/chunks/{chunk-3QPQZJUY.js → chunk-CAZ2CIU4.js} +2 -2
- package/dist/cli/chunks/{chunk-FRUDEEZH.js → chunk-CCZGT2HD.js} +1 -1
- package/dist/cli/chunks/{chunk-RNVXTNEB.js → chunk-CGQN4R76.js} +2 -2
- package/dist/cli/chunks/{chunk-OFAXQGU5.js → chunk-CKDW7YFV.js} +2 -2
- package/dist/cli/chunks/{chunk-6AH4SN6I.js → chunk-D4YJ3SDF.js} +1 -1
- package/dist/cli/chunks/{chunk-JWKNHSXP.js → chunk-DHLT7OCI.js} +2 -2
- package/dist/cli/chunks/{chunk-EYFL6QLX.js → chunk-DMMFUB3Z.js} +2 -2
- package/dist/cli/chunks/{chunk-CMFRBO4N.js → chunk-DQ3FERVR.js} +3 -3
- package/dist/cli/chunks/{chunk-F24XTOID.js → chunk-DTS3ZD7P.js} +2 -2
- package/dist/cli/chunks/{chunk-UJPERPQU.js → chunk-FI2JQJYJ.js} +1 -1
- package/dist/cli/chunks/{chunk-LPDPGCDC.js → chunk-FQJXLJ6G.js} +2 -2
- package/dist/cli/chunks/{chunk-EFAN5HUX.js → chunk-FTQXXYHG.js} +2 -2
- package/dist/cli/chunks/{chunk-A4U4DNPR.js → chunk-FUKWABUF.js} +1 -1
- package/dist/cli/chunks/{chunk-GHQ6QT47.js → chunk-G4YZWVOV.js} +2 -2
- package/dist/cli/chunks/{chunk-EQ4IZRD5.js → chunk-G6LGV6KD.js} +2 -2
- package/dist/cli/chunks/{chunk-RXQX6JNQ.js → chunk-GECEU6U3.js} +2 -2
- package/dist/cli/chunks/{chunk-4F6RPT7N.js → chunk-HEMQ4DEF.js} +3 -3
- package/dist/cli/chunks/{chunk-VBJ4UQ3X.js → chunk-HL26OBVJ.js} +2 -2
- package/dist/cli/chunks/{chunk-YYOKX7VH.js → chunk-HQFREWNC.js} +2 -2
- package/dist/cli/chunks/{chunk-HSQLB4GR.js → chunk-I4TSLBEZ.js} +2 -2
- package/dist/cli/chunks/{chunk-4GUVB7FG.js → chunk-IJNRJY2R.js} +2 -2
- package/dist/cli/chunks/{chunk-ARLHD5MG.js → chunk-IVRBWQBU.js} +1 -1
- package/dist/cli/chunks/{chunk-4U57VG6R.js → chunk-J62GSTYJ.js} +2 -2
- package/dist/cli/chunks/{chunk-QQMGUORN.js → chunk-JOSEPQIU.js} +2 -2
- package/dist/cli/chunks/{chunk-6VRKHHYI.js → chunk-JZ5TPG5T.js} +1 -1
- package/dist/cli/chunks/{chunk-XAA7ZBNG.js → chunk-KCP5CS4C.js} +1 -1
- package/dist/cli/chunks/{chunk-AOURUJFN.js → chunk-KYPNHW4G.js} +1 -1
- package/dist/cli/chunks/{chunk-CYPOU765.js → chunk-LCSDE5DQ.js} +1 -1
- package/dist/cli/chunks/{chunk-IVNZLESN.js → chunk-LE3V4QHG.js} +2 -2
- package/dist/cli/chunks/{chunk-XDEF6UFY.js → chunk-LG3F5F7B.js} +2 -2
- package/dist/cli/chunks/{chunk-RD3CNJWR.js → chunk-LKWJUZVH.js} +2 -2
- package/dist/cli/chunks/{chunk-K64UL5PA.js → chunk-LM624ZDD.js} +2 -2
- package/dist/cli/chunks/{chunk-PPP7KZQL.js → chunk-LQDKLJBO.js} +2 -2
- package/dist/cli/chunks/{chunk-ETBVBV2M.js → chunk-M3FFEZFJ.js} +2 -2
- package/dist/cli/chunks/{chunk-YUMVG55I.js → chunk-MDXIESNH.js} +2 -2
- package/dist/cli/chunks/{chunk-CU5Q46NR.js → chunk-MFKVWTIY.js} +4 -4
- package/dist/cli/chunks/{chunk-ONYCSOAR.js → chunk-ML2XD4RS.js} +1 -1
- package/dist/cli/chunks/{chunk-AH3IPNOJ.js → chunk-MWVZTQOR.js} +2 -2
- package/dist/cli/chunks/{chunk-VC2FHUOY.js → chunk-NIWTQURH.js} +2 -2
- package/dist/cli/chunks/{chunk-GW5T4BSO.js → chunk-NNYRIYEZ.js} +4 -4
- package/dist/cli/chunks/{chunk-4EBC7ATS.js → chunk-NUN7N7MB.js} +9 -9
- package/dist/cli/chunks/{chunk-VPPXZORB.js → chunk-O22BAOMU.js} +1 -1
- package/dist/cli/chunks/{chunk-LP7ILPFQ.js → chunk-O5AZETA7.js} +2 -2
- package/dist/cli/chunks/{chunk-XHENTAXI.js → chunk-OE7U5SX2.js} +2 -2
- package/dist/cli/chunks/{chunk-U5BMUXV2.js → chunk-OQWTTKJU.js} +2 -2
- package/dist/cli/chunks/{chunk-5TTQNRAP.js → chunk-OVOXPXPC.js} +1 -1
- package/dist/cli/chunks/{chunk-AGBIQXB4.js → chunk-PHPT6QTF.js} +2 -2
- package/dist/cli/chunks/{chunk-F77VZ4IY.js → chunk-PMWIZ7TC.js} +2 -2
- package/dist/cli/chunks/{chunk-4RFODPDS.js → chunk-PNLEMDLY.js} +2 -2
- package/dist/cli/chunks/{chunk-TLBP7EVX.js → chunk-POOFM7MT.js} +1 -1
- package/dist/cli/chunks/{chunk-QU7TNCUB.js → chunk-Q2GEEKE4.js} +1 -1
- package/dist/cli/chunks/{chunk-C77FS4ER.js → chunk-QGQ6XWFK.js} +2 -2
- package/dist/cli/chunks/{chunk-MTRA6I7Y.js → chunk-QKODMLPS.js} +1 -1
- package/dist/cli/chunks/{chunk-N2ET2TL5.js → chunk-QMCRT3AX.js} +2 -2
- package/dist/cli/chunks/{chunk-FDC2ANCP.js → chunk-QY4NWJET.js} +3 -3
- package/dist/cli/chunks/{chunk-VHHFSVR3.js → chunk-RB5T2HNT.js} +2 -2
- package/dist/cli/chunks/{chunk-YCZEXLKL.js → chunk-RJGSHAHW.js} +2 -2
- package/dist/cli/chunks/{chunk-XYMUYLHY.js → chunk-ROXQZJ6J.js} +1 -1
- package/dist/cli/chunks/{chunk-N3GLRFMH.js → chunk-RPNBVYWZ.js} +1 -1
- package/dist/cli/chunks/{chunk-PS7YB3IV.js → chunk-RUOWR53U.js} +3 -3
- package/dist/cli/chunks/{chunk-KQQPUHQD.js → chunk-RX3S6244.js} +1 -1
- package/dist/cli/chunks/{chunk-BBALCRJM.js → chunk-S5YTV4G3.js} +1 -1
- package/dist/cli/chunks/{chunk-MXZY5IJA.js → chunk-S7RGN5OC.js} +1 -1
- package/dist/cli/chunks/{chunk-TU2A5BGA.js → chunk-SH7IVDWV.js} +2 -2
- package/dist/cli/chunks/{chunk-EX7UGFWX.js → chunk-SQHCTVEH.js} +2 -2
- package/dist/cli/chunks/{chunk-BOV44F3Z.js → chunk-SVPX24HJ.js} +2 -2
- package/dist/cli/chunks/{chunk-ZFLD5ATZ.js → chunk-T5YDBTD6.js} +2 -2
- package/dist/cli/chunks/{chunk-P6M6LNSI.js → chunk-TYR7ZETY.js} +2 -2
- package/dist/cli/chunks/{chunk-PSOF6DZA.js → chunk-UCQ2AFAR.js} +129 -124
- package/dist/cli/chunks/{chunk-AUD45G7X.js → chunk-UEADBMAA.js} +2 -2
- package/dist/cli/chunks/{chunk-22YZRYG4.js → chunk-UJRYZ6TO.js} +3 -3
- package/dist/cli/chunks/{chunk-B3KHJQ34.js → chunk-UYTAAWAO.js} +2 -2
- package/dist/cli/chunks/{chunk-3K2QCWFD.js → chunk-V6GKWUCS.js} +1 -1
- package/dist/cli/chunks/{chunk-G42KXBBG.js → chunk-V7VCP42A.js} +2 -2
- package/dist/cli/chunks/{chunk-C5ZA6UBI.js → chunk-VGQYRIQ2.js} +1 -1
- package/dist/cli/chunks/{chunk-TQBP3YGG.js → chunk-VJ7OJ7I3.js} +1 -1
- package/dist/cli/chunks/{chunk-5JGFDJA6.js → chunk-VK3VXDNA.js} +2 -2
- package/dist/cli/chunks/{chunk-MAPQ2UZ5.js → chunk-VPF2RECU.js} +2 -2
- package/dist/cli/chunks/{chunk-7L3F76MS.js → chunk-VQA6GDNN.js} +3 -3
- package/dist/cli/chunks/{chunk-TRIA62JA.js → chunk-VZEKUY3G.js} +2 -2
- package/dist/cli/chunks/{chunk-WCI2FMWZ.js → chunk-WQIT7I46.js} +1 -1
- package/dist/cli/chunks/{chunk-BFSKBIAM.js → chunk-WT2IUWYG.js} +1 -1
- package/dist/cli/chunks/{chunk-CBBVUZFD.js → chunk-XCLG5FGQ.js} +4 -4
- package/dist/cli/chunks/{chunk-PLB75ASZ.js → chunk-XCMM2NLF.js} +1 -1
- package/dist/cli/chunks/{chunk-2XOIJE7J.js → chunk-XLNWSI7Y.js} +2 -2
- package/dist/cli/chunks/{chunk-EEWGVVKH.js → chunk-Y7EPJRQT.js} +2 -2
- package/dist/cli/chunks/{chunk-4QUKBJAS.js → chunk-YF5JCM45.js} +2 -2
- package/dist/cli/chunks/{chunk-SGGYSL7J.js → chunk-YG6ZRK5N.js} +1 -1
- package/dist/cli/chunks/{chunk-ZUUNOGHI.js → chunk-YJPNL6K4.js} +2 -2
- package/dist/cli/chunks/{chunk-4I6XGKSB.js → chunk-YLZZZRB7.js} +2 -2
- package/dist/cli/chunks/{chunk-QUHNBIUZ.js → chunk-YUV4EMRT.js} +1 -1
- package/dist/cli/chunks/{chunk-4ZAOHYFA.js → chunk-ZDM6AWU6.js} +2 -2
- package/dist/cli/chunks/{chunk-DBSEDJ7P.js → chunk-ZH2WOQP3.js} +2 -2
- package/dist/cli/chunks/{chunk-WND3EYCS.js → chunk-ZJEPVWBV.js} +2 -2
- package/dist/cli/chunks/{chunk-ANEIDNH7.js → chunk-ZKNO5AR4.js} +2 -2
- package/dist/cli/chunks/{ci-EAX5WWT6.js → ci-XTEXFMLT.js} +2 -2
- package/dist/cli/chunks/{ci-output-JCWHRJ2A.js → ci-output-5NU5WEOG.js} +2 -2
- package/dist/cli/chunks/{circuit-breaker-RAEDVT33.js → circuit-breaker-UBO4B3ER.js} +2 -2
- package/dist/cli/chunks/{claude-flow-setup-NJAY4WXY.js → claude-flow-setup-X7SVV2YA.js} +2 -2
- package/dist/cli/chunks/client-SRNILWCG.js +2 -0
- package/dist/cli/chunks/{cline-installer-X3GCUEWC.js → cline-installer-EBLJPYJW.js} +2 -2
- package/dist/cli/chunks/{code-GXJ6JC6O.js → code-WO52OOGB.js} +2 -2
- package/dist/cli/chunks/{code-index-extractor-TTA7HZEW.js → code-index-extractor-MVR5EQ4S.js} +2 -2
- package/dist/cli/chunks/{codex-installer-TXMSGJHK.js → codex-installer-LR2NDWTK.js} +2 -2
- package/dist/cli/chunks/{completions-RSFIDY22.js → completions-J5OYMQCR.js} +2 -2
- package/dist/cli/chunks/{complexity-analyzer-C6244ZOI.js → complexity-analyzer-GUFXAK6I.js} +2 -2
- package/dist/cli/chunks/{continuedev-installer-5WQIRQW4.js → continuedev-installer-45ZDPPTK.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-5Q64SC52.js → copilot-installer-FIKML2UD.js} +2 -2
- package/dist/cli/chunks/{cost-tracker-6SBRULNN.js → cost-tracker-SSI3GZ5C.js} +2 -2
- package/dist/cli/chunks/{coverage-X2AG3K6E.js → coverage-GQSRYPVJ.js} +3 -3
- package/dist/cli/chunks/cross-domain-router-QCOROKUM.js +2 -0
- package/dist/cli/chunks/{cursor-installer-VHZ5LEPG.js → cursor-installer-WRIQ2MXB.js} +2 -2
- package/dist/cli/chunks/{daemon-CDQXWIV4.js → daemon-TKQOU66X.js} +3 -3
- package/dist/cli/chunks/{dag-attention-scheduler-33UWNTSB.js → dag-attention-scheduler-DZ4Y7G3P.js} +2 -2
- package/dist/cli/chunks/{detect-UDWTKRQL.js → detect-DLXIZ3JQ.js} +2 -2
- package/dist/cli/chunks/{dist-node-CKTPNPBG.js → dist-node-3QZ37HLE.js} +2 -2
- package/dist/cli/chunks/{domain-handler-5J4AH4XR.js → domain-handler-F2XFKJOG.js} +2 -2
- package/dist/cli/chunks/{domain-transfer-P6VPN56R.js → domain-transfer-NZNJ6O5Y.js} +2 -2
- package/dist/cli/chunks/dream-P5YCSXOG.js +2 -0
- package/dist/cli/chunks/{embed-and-insert-pattern-2YFFI7IN.js → embed-and-insert-pattern-IXQSPD2Q.js} +2 -2
- package/dist/cli/chunks/{eval-K7VFIO2T.js → eval-5VQNSHMZ.js} +2 -2
- package/dist/cli/chunks/{experience-capture-middleware-P4RQW7JV.js → experience-capture-middleware-SQQVSGWT.js} +3 -3
- package/dist/cli/chunks/{fast-paths-T27YLQWQ.js → fast-paths-XZ4PMW4T.js} +2 -2
- package/dist/cli/chunks/{feature-flags-YFPFETDZ.js → feature-flags-I3E33SWO.js} +2 -2
- package/dist/cli/chunks/{feature-flags-HHQNCU6V.js → feature-flags-VYNQQIWP.js} +2 -2
- package/dist/cli/chunks/{file-discovery-ZKNENDOJ.js → file-discovery-VBJYSQEB.js} +2 -2
- package/dist/cli/chunks/{fleet-N5OTMFIN.js → fleet-R24REKY3.js} +4 -4
- package/dist/cli/chunks/{gnn-wrapper-D6L4FIWY.js → gnn-wrapper-ZSS765OF.js} +2 -2
- package/dist/cli/chunks/{heartbeat-handler-5RDU3KKK.js → heartbeat-handler-DXMMYI3L.js} +4 -4
- package/dist/cli/chunks/{heartbeat-scheduler-FALV24GQ.js → heartbeat-scheduler-CAXANO7U.js} +2 -2
- package/dist/cli/chunks/hnsw-adapter-CR22XKGP.js +2 -0
- package/dist/cli/chunks/hnsw-index-BTN322XC.js +2 -0
- package/dist/cli/chunks/{hnsw-legacy-bridge-ARD7KA3G.js → hnsw-legacy-bridge-EU46A4HQ.js} +2 -2
- package/dist/cli/chunks/{better-sqlite3-QIKWKEGD.js → hnswlib-node-K5N5YEYS.js} +2 -2
- package/dist/cli/chunks/{hooks-6HA23JHQ.js → hooks-2AFKHPAH.js} +30 -30
- package/dist/cli/chunks/{hybrid-router-XUYQW7FJ.js → hybrid-router-TLHKB3V6.js} +2 -2
- package/dist/cli/chunks/{hypergraph-engine-OGGXYQAO.js → hypergraph-engine-QKIUFDJP.js} +2 -2
- package/dist/cli/chunks/{hypergraph-handler-UFV3XYVX.js → hypergraph-handler-CT77BGUK.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-ZYIZG4GS.js +2 -0
- package/dist/cli/chunks/{init-handler-VUSXGONQ.js → init-handler-L5Y4EZPZ.js} +8 -8
- package/dist/cli/chunks/init-wizard-2GJYCDEQ.js +2 -0
- package/dist/cli/chunks/kernel-GR44AXQ6.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-C2JMSYAU.js → kilocode-installer-5XLS62BE.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-6LJFFEEZ.js → kiro-installer-YNGEFQJ6.js} +2 -2
- package/dist/cli/chunks/knowledge-graph-23VGRP7G.js +2 -0
- package/dist/cli/chunks/{learning-4B624JV3.js → learning-H4PJXEZT.js} +3 -3
- package/dist/cli/chunks/{llm-router-QUOLZECD.js → llm-router-5V7S4RBP.js} +4 -4
- package/dist/cli/chunks/{load-MIQWBMGE.js → load-MERCK5J7.js} +2 -2
- package/dist/cli/chunks/load-test-5O3AB7JK.js +2 -0
- package/dist/cli/chunks/{mcp-MBJWNXDM.js → mcp-AY3EW3M4.js} +2 -2
- package/dist/cli/chunks/{memory-WX3XHQZP.js → memory-L7QEPZ3O.js} +5 -5
- package/dist/cli/chunks/memory-backend-JMFE5AFK.js +2 -0
- package/dist/cli/chunks/{memory-handlers-Q3XCN5SC.js → memory-handlers-3MMKDYQH.js} +2 -2
- package/dist/cli/chunks/{multi-model-executor-RLY7OQOG.js → multi-model-executor-MCYVGMYJ.js} +2 -2
- package/dist/cli/chunks/{opencode-installer-JATQNZWA.js → opencode-installer-NSJCDEG7.js} +2 -2
- package/dist/cli/chunks/{orchestrator-7BNG32I2.js → orchestrator-PSFROJTM.js} +5 -5
- package/dist/cli/chunks/{pipeline-ORKGL7DP.js → pipeline-TXZZCEOG.js} +2 -2
- package/dist/cli/chunks/{platform-4SLJDRVL.js → platform-PUFZFG66.js} +2 -2
- package/dist/cli/chunks/{plugin-V6FRBF4W.js → plugin-ALNATTS7.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-NA7AXKCA.js → prime-radiant-advanced-wasm-PZZRWJEK.js} +2 -2
- package/dist/cli/chunks/protocol-executor-J6KJRPXK.js +2 -0
- package/dist/cli/chunks/{protocol-handler-RSJOZ4XL.js → protocol-handler-WR4JQLSR.js} +2 -2
- package/dist/cli/chunks/{prove-2ZMKUODH.js → prove-AI7HVVJW.js} +2 -2
- package/dist/cli/chunks/{provider-manager-PSPAFCK7.js → provider-manager-XWDJJTRQ.js} +2 -2
- package/dist/cli/chunks/qe-reasoning-bank-A2Z7QLTV.js +2 -0
- package/dist/cli/chunks/{quality-6PZOOQSK.js → quality-W5K6U7NU.js} +2 -2
- package/dist/cli/chunks/queen-coordinator-RSASVM4O.js +2 -0
- package/dist/cli/chunks/{real-embeddings-BGNTSKHD.js → real-embeddings-Y65TLGVT.js} +2 -2
- package/dist/cli/chunks/{roocode-installer-NOHRQJIP.js → roocode-installer-2INES4NP.js} +2 -2
- package/dist/cli/chunks/router-LIO2DAHL.js +2 -0
- package/dist/cli/chunks/routing-feedback-WQ4XI7TT.js +2 -0
- package/dist/cli/chunks/{routing-handler-ZAOGNENU.js → routing-handler-IR4K3W3W.js} +2 -2
- package/dist/cli/chunks/{ruvector-commands-5K3Q4N5H.js → ruvector-commands-JGIJKLE5.js} +2 -2
- package/dist/cli/chunks/{rvf-dual-writer-NWFQC4KN.js → rvf-dual-writer-3RPYL6GB.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-adapter-MS7QGBWK.js → rvf-migration-adapter-DZO5RSBU.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-coordinator-YUBSSB6Z.js → rvf-migration-coordinator-5OIXOLND.js} +2 -2
- package/dist/cli/chunks/rvf-native-adapter-E7ODRU4B.js +2 -0
- package/dist/cli/chunks/safe-db-BW2OSAL7.js +2 -0
- package/dist/cli/chunks/schedule-JF75BBFQ.js +2 -0
- package/dist/cli/chunks/scheduler-EYCKXDGY.js +2 -0
- package/dist/cli/chunks/{security-BJWJWQRB.js → security-6I65LIPS.js} +3 -3
- package/dist/cli/chunks/shared-rvf-adapter-4Z3AKN2H.js +2 -0
- package/dist/cli/chunks/{shared-rvf-dual-writer-LEBD3EHA.js → shared-rvf-dual-writer-LEY65TEP.js} +2 -2
- package/dist/cli/chunks/sqlite-persistence-RUVPC4L5.js +2 -0
- package/dist/cli/chunks/{status-handler-XANOAVIB.js → status-handler-DOJ2JTXS.js} +2 -2
- package/dist/cli/chunks/{structural-health-TZA7PJ2T.js → structural-health-GSWBOWZR.js} +2 -2
- package/dist/cli/chunks/{sync-MKNYPUYP.js → sync-VJ7W4F4G.js} +2 -2
- package/dist/cli/chunks/{task-handler-KXSUKNQV.js → task-handler-AETQISNK.js} +2 -2
- package/dist/cli/chunks/{task-handlers-54MMRT3D.js → task-handlers-OQSZGWCK.js} +3 -3
- package/dist/cli/chunks/{test-AKS5AAT7.js → test-G57YV5WH.js} +4 -4
- package/dist/cli/chunks/{test-scheduling-OA7UPWQ5.js → test-scheduling-ONWDZENP.js} +3 -3
- package/dist/cli/chunks/{token-bootstrap-ZIUNRF3E.js → token-bootstrap-CTG7NE77.js} +2 -2
- package/dist/cli/chunks/{token-usage-IJENSXPQ.js → token-usage-YDHUAMJQ.js} +2 -2
- package/dist/cli/chunks/{transformers-CACTFP7H.js → transformers-W7SFGSLI.js} +2 -2
- package/dist/cli/chunks/{tree-sitter-wasm-parser-4H4UVHAQ.js → tree-sitter-wasm-parser-K7UHIIO2.js} +2 -2
- package/dist/cli/chunks/{types-AGACOWV3.js → types-EIZ5IMMV.js} +2 -2
- package/dist/cli/chunks/unified-memory-XE5LJO5T.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-DB6HGWEU.js +2 -0
- package/dist/cli/chunks/unified-persistence-XGXZG42H.js +2 -0
- package/dist/cli/chunks/{upgrade-EKE25VPL.js → upgrade-TIQBZYJ7.js} +2 -2
- package/dist/cli/chunks/{validate-BZTYZQGP.js → validate-IIN2ODDK.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-GZANKJ7M.js → validate-swarm-V6Y4I77Q.js} +2 -2
- package/dist/cli/chunks/{vibium-5X7QY25W.js → vibium-NMIWAEGL.js} +2 -2
- package/dist/cli/chunks/visual-security-NF4MBB32.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-KDFT6ZUY.js → web-tree-sitter-BGIECWPA.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-QFZJISMO.js → windsurf-installer-WTZG4PZD.js} +2 -2
- package/dist/cli/chunks/{witness-chain-ESSANJ4X.js → witness-chain-EQ2RE7CZ.js} +2 -2
- package/dist/cli/chunks/witness-chain-ZIE7GCJI.js +2 -0
- package/dist/cli/chunks/{workflow-EQFV2P66.js → workflow-3ZDRY6TE.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-Z4KE75MK.js +2 -0
- package/dist/cli/chunks/{wrappers-RKJJDJLC.js → wrappers-FOP76K6J.js} +2 -2
- package/dist/cli/commands/fleet.js +2 -0
- package/dist/cli/commands/hooks-handlers/hooks-shared.js +39 -6
- package/dist/cli/handlers/init-handler.js +2 -0
- package/dist/cli/index.js +3 -0
- package/dist/kernel/interfaces.d.ts +14 -0
- package/dist/kernel/kernel.d.ts +1 -0
- package/dist/kernel/kernel.js +42 -0
- package/dist/learning/pattern-promotion.d.ts +6 -0
- package/dist/learning/pattern-promotion.js +5 -0
- package/dist/learning/qe-reasoning-bank-types.d.ts +12 -3
- package/dist/learning/qe-reasoning-bank.d.ts +10 -3
- package/dist/learning/qe-reasoning-bank.js +28 -7
- package/dist/mcp/bundle.js +323 -318
- package/dist/optimization/index.d.ts +0 -2
- package/dist/optimization/index.js +0 -2
- package/dist/workers/workers/learning-consolidation.js +9 -3
- package/package.json +1 -1
- package/dist/cli/chunks/adapter-LIPKRUFH.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-XJGJ6YS7.js +0 -2
- package/dist/cli/chunks/base-22RFSMJU.js +0 -2
- package/dist/cli/chunks/browser-workflow-ST7DX7KA.js +0 -2
- package/dist/cli/chunks/chunk-RSNZQ3MN.js +0 -2
- package/dist/cli/chunks/client-6463JNJR.js +0 -2
- package/dist/cli/chunks/cross-domain-router-OYUCD42M.js +0 -2
- package/dist/cli/chunks/dream-R76KD347.js +0 -2
- package/dist/cli/chunks/hnsw-adapter-CYWGI732.js +0 -2
- package/dist/cli/chunks/hnsw-index-UOYT3QKQ.js +0 -2
- package/dist/cli/chunks/impact-analyzer-PWV7CJUA.js +0 -2
- package/dist/cli/chunks/init-wizard-DKIFAPJJ.js +0 -2
- package/dist/cli/chunks/kernel-WQL2MUBH.js +0 -2
- package/dist/cli/chunks/knowledge-graph-U5OZDWGT.js +0 -2
- package/dist/cli/chunks/load-test-D2CQYRZQ.js +0 -2
- package/dist/cli/chunks/memory-backend-HFIGDCZE.js +0 -2
- package/dist/cli/chunks/protocol-executor-LTJIEFVG.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-ZJ56AWO2.js +0 -2
- package/dist/cli/chunks/queen-coordinator-CZA7SS4O.js +0 -2
- package/dist/cli/chunks/router-N23IDBEQ.js +0 -2
- package/dist/cli/chunks/routing-feedback-IADXJ4RV.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-MOR7NUA5.js +0 -2
- package/dist/cli/chunks/safe-db-IRAUFZTC.js +0 -2
- package/dist/cli/chunks/schedule-PKUUCNCA.js +0 -2
- package/dist/cli/chunks/scheduler-NE4NP4W5.js +0 -2
- package/dist/cli/chunks/shared-rvf-adapter-OTON2BMV.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-DXFBYN5L.js +0 -2
- package/dist/cli/chunks/unified-memory-4M3V7XL6.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-6IKIDXEW.js +0 -2
- package/dist/cli/chunks/unified-persistence-XJ4D23TB.js +0 -2
- package/dist/cli/chunks/visual-security-2X63QHFJ.js +0 -2
- package/dist/cli/chunks/witness-chain-MWIG363M.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-B3ECPAFI.js +0 -2
- package/dist/optimization/qe-workers.d.ts +0 -193
- package/dist/optimization/qe-workers.js +0 -692
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{a as B,b as L}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{a as B,b as L}from"./chunk-Q2GEEKE4.js";import{b as y,d as $}from"./chunk-ZH2WOQP3.js";import"./chunk-IVRBWQBU.js";var k=[{id:"unit",name:"Unit Tests",testTypes:["unit"],testPatterns:["**/*.test.ts","**/*.spec.ts","!**/*.integration.*","!**/*.e2e.*"],thresholds:{minPassRate:.99,maxFlakyRatio:.01,minCoverage:.8},parallelism:8,timeoutMs:6e4,failFast:!0},{id:"integration",name:"Integration Tests",testTypes:["integration","contract"],testPatterns:["**/*.integration.test.ts","**/*.integration.spec.ts"],thresholds:{minPassRate:.95,maxFlakyRatio:.05,minCoverage:.7},parallelism:4,timeoutMs:3e5,failFast:!1},{id:"e2e",name:"E2E Tests",testTypes:["e2e","visual"],testPatterns:["**/*.e2e.test.ts","**/*.e2e.spec.ts"],thresholds:{minPassRate:.9,maxFlakyRatio:.1,minCoverage:.5},parallelism:2,timeoutMs:6e5,failFast:!1}];var b=class{constructor(e,t={phases:k,failFast:!0,retryFailedPhases:!1,maxRetries:1}){this.executor=e;this.config=t}executor;config;state="idle";currentPhaseIndex=0;results=[];startTime;endTime;abortController;async run(){if(this.state==="running")throw new Error("Scheduler is already running");this.state="running",this.currentPhaseIndex=0,this.results=[],this.startTime=new Date,this.abortController=new AbortController;try{for(let e of this.config.phases){if(this.state==="paused"&&await this.waitForResume(),this.abortController.signal.aborted)break;let t=await this.executePhaseWithRetry(e);if(this.results.push(t),this.currentPhaseIndex++,this.config.onPhaseComplete?.(t),!t.success&&this.config.failFast){this.state="failed";break}}return this.endTime=new Date,this.state=this.results.every(e=>e.success)?"completed":"failed",this.config.onAllComplete?.(this.results),this.results}catch(e){throw this.state="failed",this.endTime=new Date,e}}async runPhase(e){let t=this.config.phases.find(s=>s.id===e);if(!t)throw new Error(`Phase not found: ${e}`);return this.executePhaseWithRetry(t)}pause(){this.state==="running"&&(this.state="paused")}resume(){this.state==="paused"&&(this.state="running")}async abort(){this.abortController?.abort(),await this.executor.abort(),this.state="idle"}getStats(){let e=this.startTime&&this.endTime?this.endTime.getTime()-this.startTime.getTime():this.startTime?Date.now()-this.startTime.getTime():void 0;return{state:this.state,currentPhaseIndex:this.currentPhaseIndex,totalPhases:this.config.phases.length,completedPhases:this.results.filter(t=>t.success).length,failedPhases:this.results.filter(t=>!t.success).length,results:[...this.results],startTime:this.startTime,endTime:this.endTime,durationMs:e}}async isReady(){return this.executor.isReady()}async executePhaseWithRetry(e){let t,s=this.config.retryFailedPhases?this.config.maxRetries:1;for(let r=1;r<=s;r++)try{if(t=await this.executor.execute(e),t.success||!this.config.retryFailedPhases)return t}catch(a){if(this.config.onError?.(a,e),r===s)return this.createErrorResult(e,a)}return t}createErrorResult(e,t){return{phaseId:e.id,phaseName:e.name,success:!1,passRate:0,flakyRatio:0,coverage:0,durationMs:0,totalTests:0,passed:0,failed:0,skipped:0,testResults:[],flakyTests:[],error:t.message}}waitForResume(){return new Promise(e=>{let t=()=>{this.state!=="paused"?e():setTimeout(t,100)};t()})}};function _(n,e){return new b(n,{phases:k,failFast:!0,retryFailedPhases:!1,maxRetries:1,...e})}function V(n,e){return n.passRate>=e.minPassRate&&n.flakyRatio<=e.maxFlakyRatio&&n.coverage>=e.minCoverage}$();import{spawn as j}from"child_process";var f=class{constructor(e={}){this.config=e}config;currentProcess=null;isAborted=!1;async execute(e,t){this.isAborted=!1;let s=Date.now();try{let r=this.buildArgs(e,t),a=await this.runVitest(r,e.timeoutMs),i=Date.now();return this.parseResult(e,a,i-s)}catch(r){let a=Date.now();return this.createErrorResult(e,r,a-s)}}async isReady(){try{return(await this.runCommand("npx",["vitest","--version"],5e3)).exitCode===0}catch{return!1}}getName(){return"vitest-executor"}async abort(){this.isAborted=!0,this.currentProcess&&(this.currentProcess.kill("SIGTERM"),this.currentProcess=null)}buildArgs(e,t){let s=["vitest","run","--reporter=json"];if(t&&t.length>0)s.push(...t);else for(let r of e.testPatterns)r.startsWith("!")?s.push("--exclude",r.slice(1)):s.push(r);return e.parallelism>0&&(s.push("--pool","threads"),s.push("--poolOptions.threads.maxThreads",String(e.parallelism))),e.failFast&&s.push("--bail","1"),s.push("--coverage"),s.push("--coverage.reporter",this.config.coverageReporter||"json"),this.config.coverageDir&&s.push("--coverage.reportsDirectory",this.config.coverageDir),this.config.extraArgs&&s.push(...this.config.extraArgs),s}async runVitest(e,t){let{stdout:s,exitCode:r}=await this.runCommand(this.config.vitestPath||"npx",e,t);try{let a=s.indexOf("{"),i=s.lastIndexOf("}");if(a===-1||i===-1)throw new Error("No JSON output from Vitest");let o=s.slice(a,i+1);return y(o)}catch{return{numTotalTestSuites:0,numPassedTestSuites:0,numFailedTestSuites:0,numTotalTests:0,numPassedTests:0,numFailedTests:0,numPendingTests:0,success:r===0,startTime:Date.now(),testResults:[]}}}runCommand(e,t,s){return new Promise((r,a)=>{let i="",o="",l=process.platform==="win32"&&e==="npx"?"npx.cmd":e;this.currentProcess=j(l,t,{cwd:this.config.cwd||process.cwd(),env:{...process.env,...this.config.env},shell:!1});let c=setTimeout(()=>{this.currentProcess?.kill("SIGTERM"),a(new Error(`Test execution timed out after ${s}ms`))},s);this.currentProcess.stdout?.on("data",u=>{i+=u.toString()}),this.currentProcess.stderr?.on("data",u=>{o+=u.toString()}),this.currentProcess.on("close",u=>{clearTimeout(c),this.currentProcess=null,this.isAborted?a(new Error("Test execution aborted")):r({stdout:i,stderr:o,exitCode:u??1})}),this.currentProcess.on("error",u=>{clearTimeout(c),this.currentProcess=null,a(u)})})}async parseResult(e,t,s){let r=[];for(let p of t.testResults)for(let h of p.assertionResults){let T={file:p.name,name:h.title,suite:h.ancestorTitles.join(" > "),passed:h.status==="passed",durationMs:h.duration||0,retries:0,error:h.failureMessages.join(`
|
|
3
3
|
`)||void 0};r.push(T)}let a=this.config.flakyTracker;a&&a.recordResults(r);let i=t.numTotalTests,o=t.numPassedTests,l=t.numFailedTests,c=t.numPendingTests,u=i>0?o/i:0,m=[],g=0;if(a){m=a.analyze().flakyTests.map(d=>d.testId);let h=new Set(r.map(d=>`${d.file}:${d.suite}:${d.name}`)),T=m.filter(d=>h.has(d));g=i>0?T.length/i:0}let R=await this.getCoverageFromReport(),w=u>=e.thresholds.minPassRate&&g<=e.thresholds.maxFlakyRatio&&R>=e.thresholds.minCoverage;return{phaseId:e.id,phaseName:e.name,success:w,passRate:u,flakyRatio:g,coverage:R,durationMs:s,totalTests:i,passed:o,failed:l,skipped:c,testResults:r,flakyTests:m}}async getCoverageFromReport(){try{let e=await import("fs/promises"),t=await import("path"),s=this.config.coverageDir||"coverage",r=t.join(this.config.cwd||process.cwd(),s,"coverage-summary.json"),a=await e.readFile(r,"utf-8");return(y(a).total?.lines?.pct??0)/100}catch{return 0}}createErrorResult(e,t,s){return{phaseId:e.id,phaseName:e.name,success:!1,passRate:0,flakyRatio:0,coverage:0,durationMs:s,totalTests:0,passed:0,failed:0,skipped:0,testResults:[],flakyTests:[],error:t.message}}};function z(n){return new f(n)}import{spawn as Q}from"child_process";import{resolve as W,dirname as J,basename as M}from"path";var Y=[{sourcePattern:/^src\/(.+)\.ts$/,toTestPaths:(n,e)=>{let t=n[1];return[`tests/unit/${t}.test.ts`,`tests/unit/${t}.spec.ts`,`tests/${t}.test.ts`,`tests/${t}.spec.ts`,`src/${t}.test.ts`,`src/${t}.spec.ts`]}},{sourcePattern:/^src\/(.+)\/index\.ts$/,toTestPaths:(n,e)=>{let t=n[1];return[`tests/unit/${t}.test.ts`,`tests/unit/${t}/index.test.ts`,`tests/unit/${t}.spec.ts`]}},{sourcePattern:/\.(test|spec)\.(ts|tsx|js|jsx)$/,toTestPaths:(n,e)=>[e]},{sourcePattern:/^(vitest\.config|jest\.config|tsconfig|package\.json)/,toTestPaths:()=>["**/*.test.ts","**/*.spec.ts"]}],v=class{constructor(e){this.config=e;if(!e.impactAnalyzer)throw new Error("GitAwareTestSelector requires impactAnalyzer. Use ImpactAnalyzerService from code-intelligence domain. NO FALLBACK TO PATTERN MATCHING - use real dependency analysis.");this.cwd=e.cwd||process.cwd(),this.baseRef=e.baseRef||"HEAD~1",this.mappingRules=e.mappingRules||Y,this.impactAnalyzer=e.impactAnalyzer}config;cwd;baseRef;mappingRules;impactAnalyzer;async selectAffectedTests(){try{let e=await this.getChangedFiles();if(e.length===0)return{changedFiles:[],selectedTests:[],mappings:[],runAllTests:!1};let{selectedTests:t,mappings:s,runAllTests:r,runAllReason:a}=await this.mapChangesToTests(e);return{changedFiles:e,selectedTests:[...new Set(t)],mappings:s,runAllTests:r,runAllReason:a}}catch(e){return{changedFiles:[],selectedTests:[],mappings:[],runAllTests:!0,runAllReason:`Git error: ${e.message}`}}}async selectTestsForFiles(e){let t=e.map(o=>({path:o,changeType:"modified"})),{selectedTests:s,mappings:r,runAllTests:a,runAllReason:i}=await this.mapChangesToTests(t);return{changedFiles:t,selectedTests:[...new Set(s)],mappings:r,runAllTests:a,runAllReason:i}}async getChangedFiles(){let t=(await this.git(["diff","--name-status",this.baseRef,"HEAD"])).trim().split(`
|
|
4
4
|
`).filter(Boolean),s=[];for(let r of t){let[a,...i]=r.split(" "),o=i.join(" "),l,c;switch(a[0]){case"A":l="added";break;case"M":l="modified";break;case"D":l="deleted";break;case"R":l="renamed",c=o;break;default:l="modified"}s.push({path:l==="renamed"&&i[1]||o,changeType:l,previousPath:c})}return s}async getMergeBase(e="main"){try{return(await this.git(["merge-base","HEAD",e])).trim()}catch{return(await this.git(["merge-base","HEAD","master"])).trim()}}async mapChangesToTests(e){let t=[],s=[],r=!1,a;for(let l of e)if(this.isConfigFile(l.path))return{selectedTests:[],mappings:[],runAllTests:!0,runAllReason:`Config file changed: ${l.path}`};let i=e.filter(l=>l.changeType!=="deleted"||this.config.includeDeletedFileTests).map(l=>l.path);if(i.length===0)return{selectedTests:[],mappings:[],runAllTests:!1};let o=await this.impactAnalyzer.getImpactedTests(i);if(!o.success){let l=o,c=l.error instanceof Error?l.error.message:String(l.error);return{selectedTests:[],mappings:[],runAllTests:!0,runAllReason:`Impact analysis failed: ${c}`}}if(o.value.length===0)return{selectedTests:[],mappings:[],runAllTests:!1};t.push(...o.value);for(let l of e){if(l.changeType==="deleted"&&!this.config.includeDeletedFileTests)continue;let c=o.value.filter(u=>u.includes(M(l.path,".ts").replace(/\.(tsx?|jsx?)$/,"")));c.length>0&&s.push({sourceFile:l.path,testFiles:c,confidence:.95})}return{selectedTests:t,mappings:s,runAllTests:r,runAllReason:a}}isConfigFile(e){return/^(vitest\.config|jest\.config|tsconfig|package\.json)/.test(e)}async findTestsHeuristically(e){let t=M(e,".ts").replace(/\.(tsx?|jsx?)$/,""),s=J(e),r=[`${s}/${t}.test.ts`,`${s}/${t}.spec.ts`,`${s}/__tests__/${t}.test.ts`,`tests/${s}/${t}.test.ts`,`tests/unit/${s.replace("src/","")}/${t}.test.ts`];return this.filterExistingFiles(r)}async filterExistingFiles(e){let t=await import("fs/promises"),s=[];for(let r of e)try{let a=W(this.cwd,r);await t.access(a),s.push(r)}catch(a){console.debug("[TestSelector] File access check failed:",a instanceof Error?a.message:a)}return s}git(e){return new Promise((t,s)=>{let r="",a="",i=Q("git",e,{cwd:this.cwd});i.stdout.on("data",o=>{r+=o.toString()}),i.stderr.on("data",o=>{a+=o.toString()}),i.on("close",o=>{o===0?t(r):s(new Error(`git ${e.join(" ")} failed: ${a}`))}),i.on("error",s)})}};function F(n){return new v(n)}async function q(n,e,t){let r=await F({impactAnalyzer:n,baseRef:e,cwd:t}).selectAffectedTests();return r.runAllTests?[]:r.selectedTests}$();var K={minRunsForFlakiness:5,flakinessThreshold:.1,maxRecentErrors:5,historyRetentionDays:30},A=class{records=new Map;config;constructor(e){this.config={...K,...e}}recordResult(e){let t=this.getTestId(e),s=this.getOrCreateRecord(t,e);s.totalRuns++,s.lastRun=new Date,e.passed?s.passCount++:(s.failCount++,e.error&&(s.recentErrors=[e.error,...s.recentErrors.slice(0,this.config.maxRecentErrors-1)])),e.retries>0&&e.passed&&(s.flakyCount++,s.lastFlaky=new Date),s.flakinessScore=this.calculateFlakiness(s)}recordResults(e){for(let t of e)this.recordResult(t)}getRecord(e){return this.records.get(e)}getFlakyTests(){return Array.from(this.records.values()).filter(e=>e.totalRuns>=this.config.minRunsForFlakiness&&e.flakinessScore>=this.config.flakinessThreshold)}isFlaky(e){let t=this.records.get(e);return t?t.totalRuns>=this.config.minRunsForFlakiness&&t.flakinessScore>=this.config.flakinessThreshold:!1}analyze(){let e=Array.from(this.records.values()),t=e.filter(l=>l.totalRuns>=this.config.minRunsForFlakiness&&l.flakinessScore>=this.config.flakinessThreshold),s=e.filter(l=>l.totalRuns>=this.config.minRunsForFlakiness&&l.flakyCount>0&&l.flakinessScore<this.config.flakinessThreshold),r=e.filter(l=>l.totalRuns<this.config.minRunsForFlakiness),a=e.filter(l=>l.totalRuns>=this.config.minRunsForFlakiness),i=a.length>0?t.length/a.length:0,o=this.calculateTrend(t);return{totalTests:e.length,flakyTests:t.sort((l,c)=>c.flakinessScore-l.flakinessScore),stabilizedTests:s,insufficientData:r,overallFlakiness:i,trend:o}}getQuarantineList(e=.3){return Array.from(this.records.values()).filter(t=>t.flakinessScore>=e).map(t=>t.testId)}pruneHistory(){let e=new Date;e.setDate(e.getDate()-this.config.historyRetentionDays);let t=0;for(let[s,r]of this.records)r.lastRun<e&&(this.records.delete(s),t++);return t}exportHistory(){return Array.from(this.records.values())}importHistory(e){for(let t of e){let s={...t,lastRun:new Date(t.lastRun),lastFlaky:t.lastFlaky?new Date(t.lastFlaky):void 0};this.records.set(t.testId,s)}}reset(){this.records.clear()}getTestId(e){return`${e.file}:${e.suite}:${e.name}`}getOrCreateRecord(e,t){let s=this.records.get(e);return s||(s={testId:e,file:t.file,name:t.name,totalRuns:0,passCount:0,failCount:0,flakyCount:0,flakinessScore:0,lastRun:new Date,recentErrors:[]},this.records.set(e,s)),s}calculateFlakiness(e){if(e.totalRuns<this.config.minRunsForFlakiness)return 0;let t=e.flakyCount/e.totalRuns,s=e.passCount/e.totalRuns,r=s>0&&s<1?Math.min(s,1-s)*2:0;return Math.min(1,t*3+r)}calculateTrend(e){if(e.length===0)return"stable";let s=Date.now()-10080*60*1e3,r=0,a=0;for(let i of e)i.lastFlaky&&(i.lastFlaky.getTime()>s?r++:a++);return r>a*1.5?"degrading":a>r*1.5?"improving":"stable"}};function C(n){return new A(n)}async function G(n,e){let t=C({...e,historyPath:n});try{let r=await(await import("fs/promises")).readFile(n,"utf-8"),a=y(r);t.importHistory(a)}catch(s){console.debug("[FlakyTracker] History load failed, starting fresh:",s instanceof Error?s.message:s)}return t}async function D(n,e){let t=await import("fs/promises"),s=n.exportHistory();await t.writeFile(e,JSON.stringify(s,null,2))}var X={enableAnnotations:!0,enableSummary:!0,enableOutputs:!0,maxAnnotations:10,includeFlakyWarnings:!0,includeCoverage:!0};function H(){let n=process.env;return n.GITHUB_ACTIONS==="true"?{isCI:!0,provider:"github-actions",branch:n.GITHUB_HEAD_REF||n.GITHUB_REF_NAME,commitSha:n.GITHUB_SHA,prNumber:n.GITHUB_EVENT_NAME==="pull_request"&&parseInt(n.GITHUB_REF?.split("/")[2]||"",10)||void 0,baseBranch:n.GITHUB_BASE_REF,buildUrl:`${n.GITHUB_SERVER_URL}/${n.GITHUB_REPOSITORY}/actions/runs/${n.GITHUB_RUN_ID}`}:n.GITLAB_CI==="true"?{isCI:!0,provider:"gitlab-ci",branch:n.CI_COMMIT_REF_NAME,commitSha:n.CI_COMMIT_SHA,prNumber:n.CI_MERGE_REQUEST_IID?parseInt(n.CI_MERGE_REQUEST_IID,10):void 0,baseBranch:n.CI_MERGE_REQUEST_TARGET_BRANCH_NAME,buildUrl:n.CI_JOB_URL}:n.JENKINS_URL?{isCI:!0,provider:"jenkins",branch:n.GIT_BRANCH||n.BRANCH_NAME,commitSha:n.GIT_COMMIT,prNumber:n.CHANGE_ID?parseInt(n.CHANGE_ID,10):void 0,baseBranch:n.CHANGE_TARGET,buildUrl:n.BUILD_URL}:n.CIRCLECI==="true"?{isCI:!0,provider:"circleci",branch:n.CIRCLE_BRANCH,commitSha:n.CIRCLE_SHA1,prNumber:n.CIRCLE_PULL_REQUEST?parseInt(n.CIRCLE_PULL_REQUEST.split("/").pop()||"",10):void 0,buildUrl:n.CIRCLE_BUILD_URL}:n.CI==="true"||n.CI==="1"?{isCI:!0,provider:"unknown"}:{isCI:!1}}var S=class{config;constructor(e){this.config={...X,...e}}generateOutput(e){let t=this.config.enableAnnotations?this.generateAnnotations(e):[],s=this.config.enableSummary?this.generateSummary(e):"",r=this.config.enableOutputs?this.generateOutputs(e):{};return{summary:s,annotations:t,outputs:r}}async writeOutput(e){let t=this.generateOutput(e),s=await import("fs/promises");for(let r of t.annotations)this.writeAnnotation(r);if(t.summary&&process.env.GITHUB_STEP_SUMMARY&&await s.appendFile(process.env.GITHUB_STEP_SUMMARY,t.summary),process.env.GITHUB_OUTPUT){let r=Object.entries(t.outputs).map(([a,i])=>`${a}=${i}`).join(`
|
|
5
5
|
`);await s.appendFile(process.env.GITHUB_OUTPUT,r+`
|
|
@@ -12,4 +12,4 @@ import{a as B,b as L}from"./chunk-QU7TNCUB.js";import{b as y,d as $}from"./chunk
|
|
|
12
12
|
`);for(let i of r.slice(0,20))t.push(`#### ${i.suite} > ${i.name}`),t.push(`- **File**: \`${i.file}\``),i.error&&(t.push("```"),t.push(i.error.slice(0,500)),t.push("```")),t.push("");r.length>20&&t.push(`_... and ${r.length-20} more failures_`),t.push(`</details>
|
|
13
13
|
`)}let a=e.flatMap(i=>i.flakyTests);if(a.length>0&&this.config.includeFlakyWarnings){t.push(`### \u26A0\uFE0F Flaky Tests
|
|
14
14
|
`);for(let i of a.slice(0,10))t.push(`- \`${i}\``);t.push("")}return t.join(`
|
|
15
|
-
`)}generateOutputs(e){let t=e.reduce((o,l)=>o+l.totalTests,0),s=e.reduce((o,l)=>o+l.passed,0),r=e.reduce((o,l)=>o+l.failed,0),a=e.every(o=>o.success),i=e.length>0?e.reduce((o,l)=>o+l.coverage,0)/e.length:0;return{test_result:a?"success":"failure",total_tests:String(t),passed_tests:String(s),failed_tests:String(r),coverage_percent:String((i*100).toFixed(1)),phases_completed:String(e.length),phases_passed:String(e.filter(o=>o.success).length),has_flaky_tests:String(e.some(o=>o.flakyTests.length>0))}}writeAnnotation(e){let t=[`file=${e.file}`,`line=${e.line}`,`title=${e.title}`].join(",");console.log(`::${e.level} ${t}::${e.message}`)}extractLineNumber(e){if(!e)return;let t=e.match(/:(\d+):\d+/);return t?parseInt(t[1],10):void 0}formatDuration(e){return e<1e3?`${e}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:`${(e/6e4).toFixed(1)}m`}generateCoverageBar(e){let t=Math.round(e*10),s=10-t;return"\u2588".repeat(t)+"\u2591".repeat(s)}};function x(n){return new S(n)}async function Z(n,e){await x(e).writeOutput(n)}var E=class n{constructor(e,t,s,r,a,i){this.config=e;this.selector=t,this.executor=s,this.scheduler=r,this.flakyTracker=a,this.reporter=i,this.ciEnvironment=H()}config;selector;executor;scheduler;flakyTracker;reporter;ciEnvironment;static async create(e){let t=e.flakyHistoryPath?await G(e.flakyHistoryPath,e.flakyTracker):C(e.flakyTracker),s=new f({...e.vitest,cwd:e.cwd,flakyTracker:t}),{ImpactAnalyzerService:r}=await import("./impact-analyzer-
|
|
15
|
+
`)}generateOutputs(e){let t=e.reduce((o,l)=>o+l.totalTests,0),s=e.reduce((o,l)=>o+l.passed,0),r=e.reduce((o,l)=>o+l.failed,0),a=e.every(o=>o.success),i=e.length>0?e.reduce((o,l)=>o+l.coverage,0)/e.length:0;return{test_result:a?"success":"failure",total_tests:String(t),passed_tests:String(s),failed_tests:String(r),coverage_percent:String((i*100).toFixed(1)),phases_completed:String(e.length),phases_passed:String(e.filter(o=>o.success).length),has_flaky_tests:String(e.some(o=>o.flakyTests.length>0))}}writeAnnotation(e){let t=[`file=${e.file}`,`line=${e.line}`,`title=${e.title}`].join(",");console.log(`::${e.level} ${t}::${e.message}`)}extractLineNumber(e){if(!e)return;let t=e.match(/:(\d+):\d+/);return t?parseInt(t[1],10):void 0}formatDuration(e){return e<1e3?`${e}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:`${(e/6e4).toFixed(1)}m`}generateCoverageBar(e){let t=Math.round(e*10),s=10-t;return"\u2588".repeat(t)+"\u2591".repeat(s)}};function x(n){return new S(n)}async function Z(n,e){await x(e).writeOutput(n)}var E=class n{constructor(e,t,s,r,a,i){this.config=e;this.selector=t,this.executor=s,this.scheduler=r,this.flakyTracker=a,this.reporter=i,this.ciEnvironment=H()}config;selector;executor;scheduler;flakyTracker;reporter;ciEnvironment;static async create(e){let t=e.flakyHistoryPath?await G(e.flakyHistoryPath,e.flakyTracker):C(e.flakyTracker),s=new f({...e.vitest,cwd:e.cwd,flakyTracker:t}),{ImpactAnalyzerService:r}=await import("./impact-analyzer-ZYIZG4GS.js"),a=new r(e.memory),i=F({cwd:e.cwd,baseRef:e.baseRef,impactAnalyzer:a}),o=_(s,{...e.scheduler,phases:e.phases}),l=x(e.reporter);return new n(e,i,s,o,t,l)}async run(){let e=Date.now(),t=[],s=this.config.runAllTests??!1,r=performance.now();if(!s){let p=await this.selector.selectAffectedTests();p.runAllTests?(s=!0,console.log(`[TestSchedulingPipeline] Running all tests: ${p.runAllReason}`)):p.selectedTests.length===0?(console.log("[TestSchedulingPipeline] No affected tests found, running all"),s=!0):(t=p.selectedTests,console.log(`[TestSchedulingPipeline] Selected ${t.length} affected tests`))}let a=performance.now()-r;if(this.config.useDAGAttention&&t.length>0)try{let{isDAGAttentionEnabled:p}=await import("./feature-flags-I3E33SWO.js");if(p()){let{createDAGAttentionScheduler:h}=await import("./dag-attention-scheduler-DZ4Y7G3P.js"),T=h(),d=t.map(P=>({id:P,name:P,estimatedDuration:1e3,dependencies:[],priority:1,tags:[]})),N=T.schedule(d),I=[];for(let P of N.phases)I.push(...P.tests.map(O=>O.id));I.length>0&&(t=I)}}catch(p){process.env.DEBUG&&console.debug("[Pipeline] DAG attention scheduling skipped:",p instanceof Error?p.message:p)}let i=performance.now(),o;s?o=await this.scheduler.run():o=await this.runWithSelectedTests(t);let l=performance.now()-i,c=performance.now(),u=this.flakyTracker.analyze();this.config.flakyHistoryPath&&await D(this.flakyTracker,this.config.flakyHistoryPath);let m=performance.now()-c,g=performance.now();this.ciEnvironment.isCI&&await this.reporter.writeOutput(o);let R=performance.now()-g,w=Date.now()-e;return{phaseResults:o,selectedTests:t,ranAllTests:s,flakyAnalysis:u,ciEnvironment:this.ciEnvironment,totalDurationMs:w,stepLatencies:{selectionMs:a,executionMs:l,analysisMs:m,reportingMs:R}}}async runPhase(e){return this.scheduler.runPhase(e)}getFlakyTracker(){return this.flakyTracker}getSelector(){return this.selector}getStats(){return this.scheduler.getStats()}async abort(){await this.scheduler.abort()}async runWithSelectedTests(e){let t=[],s=this.config.phases??[];for(let r of s){let a=e.filter(i=>r.testPatterns.some(o=>o.startsWith("!")?!1:this.patternToRegex(o).test(i)));if(a.length>0){let i=await this.executor.execute(r,a);t.push(i)}}return t}patternToRegex(e){let t=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*");return new RegExp(t)}};async function U(n){return E.create(n)}async function ee(n){return(await U(n)).run()}export{B as DAGAttentionScheduler,k as DEFAULT_TEST_PHASES,A as FlakyTestTracker,v as GitAwareTestSelector,S as GitHubActionsReporter,b as PhaseScheduler,E as TestSchedulingPipeline,f as VitestPhaseExecutor,V as checkQualityThresholds,L as createDAGAttentionScheduler,C as createFlakyTracker,x as createGitHubActionsReporter,_ as createPhaseScheduler,U as createTestPipeline,F as createTestSelector,z as createVitestExecutor,H as detectCIEnvironment,q as getAffectedTests,G as loadFlakyTracker,Z as reportToGitHubActions,ee as runTestPipeline,D as saveFlakyTracker};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{b as f,c as k}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{b as f,c as k}from"./chunk-FQJXLJ6G.js";import{b as r}from"./chunk-OQWTTKJU.js";import{b as l}from"./chunk-LE3V4QHG.js";import"./chunk-NNYRIYEZ.js";import"./chunk-CCZGT2HD.js";import"./chunk-O22BAOMU.js";import"./chunk-PHPT6QTF.js";import"./chunk-V7VCP42A.js";import"./chunk-YF5JCM45.js";import"./chunk-5RZ26J4J.js";import"./chunk-ZKNO5AR4.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import"./chunk-ZH2WOQP3.js";import"./chunk-33VVPBAK.js";import"./chunk-5KOR5ZMG.js";import"./chunk-LCSDE5DQ.js";import"./chunk-DMMFUB3Z.js";import"./chunk-YLZZZRB7.js";import"./chunk-UYTAAWAO.js";import"./chunk-7GLCWLZL.js";import"./chunk-ZDM6AWU6.js";import"./chunk-CKDW7YFV.js";import"./chunk-B5KYS65U.js";import"./chunk-M3FFEZFJ.js";import"./chunk-SVPX24HJ.js";import"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";import*as s from"path";import*as a from"fs";var u={enableOptimization:!0,enablePersistence:!0,storagePath:process.env.AQE_STORAGE_PATH??".agentic-qe",autoSaveIntervalMs:6e4,verbose:process.env.AQE_VERBOSE==="true"},i=!1,n=null,p=!1;async function B(t){if(i)return;let e={...u,...t};if(e.verbose&&console.log("[TokenBootstrap] Initializing token tracking..."),e.enablePersistence){let o=s.resolve(e.storagePath);a.existsSync(o)||a.mkdirSync(o,{recursive:!0})}if(e.enableOptimization)try{n=(await l(!0)).backend,await k(n,{enabled:!0,verbose:e.verbose}),e.verbose&&(console.log("[TokenBootstrap] TokenOptimizerService initialized"),console.log(`[TokenBootstrap] isEnabled() = ${f.isEnabled()}`))}catch(o){console.error("[TokenBootstrap] Failed to initialize TokenOptimizerService:",o)}if(e.enablePersistence){let o=s.join(e.storagePath,"token-metrics.json");r.configurePersistence({filePath:o,autoSaveIntervalMs:e.autoSaveIntervalMs});try{let c=await r.load();e.verbose&&console.log(`[TokenBootstrap] Loaded existing metrics: ${c}`)}catch{e.verbose&&console.log("[TokenBootstrap] No existing metrics to load")}r.startAutoSave(),e.verbose&&console.log(`[TokenBootstrap] Persistence configured: ${o}`)}p||(g(e.verbose),p=!0),i=!0,e.verbose&&console.log("[TokenBootstrap] Token tracking initialized successfully")}async function d(t=!1){if(i){if(t&&console.log("[TokenBootstrap] Shutting down token tracking..."),r.stopAutoSave(),r.hasUnsavedChanges())try{await r.save(),t&&console.log("[TokenBootstrap] Metrics saved successfully")}catch(e){console.error("[TokenBootstrap] Failed to save metrics:",e)}if(n){try{await n.dispose()}catch(e){console.debug("[TokenBootstrap] Memory backend disposal error:",e instanceof Error?e.message:e)}n=null}i=!1}}function h(){return i}function y(){return n}function g(t){let e=async o=>{t&&console.log(`[TokenBootstrap] Received ${o}, saving metrics...`),await d(t)};process.on("beforeExit",()=>e("beforeExit"))}export{B as bootstrapTokenTracking,y as getTokenMemoryBackend,h as isTokenTrackingInitialized,d as shutdownTokenTracking};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{a as S,b as f}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{a as S,b as f}from"./chunk-FQJXLJ6G.js";import{a as k,b as u}from"./chunk-OQWTTKJU.js";import"./chunk-NNYRIYEZ.js";import"./chunk-CCZGT2HD.js";import"./chunk-O22BAOMU.js";import"./chunk-PHPT6QTF.js";import"./chunk-YF5JCM45.js";import"./chunk-5RZ26J4J.js";import"./chunk-ZKNO5AR4.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import"./chunk-ZH2WOQP3.js";import"./chunk-33VVPBAK.js";import{a as y,c as h}from"./chunk-5KOR5ZMG.js";import"./chunk-LCSDE5DQ.js";import"./chunk-YLZZZRB7.js";import"./chunk-UYTAAWAO.js";import"./chunk-7GLCWLZL.js";import"./chunk-ZDM6AWU6.js";import"./chunk-CKDW7YFV.js";import"./chunk-B5KYS65U.js";import"./chunk-M3FFEZFJ.js";import"./chunk-SVPX24HJ.js";import"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";import{Command as v}from"commander";import e from"chalk";h();import*as p from"fs";function L(){return new v("token-usage").description("View and analyze token consumption metrics (ADR-042)").option("-p, --period <period>","Time period: 1h, 24h, 7d, 30d","24h").option("-a, --by-agent","Group usage by agent").option("-d, --by-domain","Group usage by domain").option("-r, --recommendations","Show optimization recommendations").option("-e, --export <file>","Export to CSV file").option("--dashboard","Show compact token budget dashboard summary").option("--cache-stats","Show session operation cache statistics (Imp-15)").option("--json","Output as JSON").option("-v, --verbose","Show detailed output").action(async n=>{await w(n)})}async function w(o){let n=R(o.period);try{o.cacheStats?await x(o):o.dashboard?console.log(k()):o.byAgent?await U(n,o):o.byDomain?await A(n,o):o.recommendations?await C(n,o):o.export?await E(n,o.export,o):await O(n,o)}catch(s){console.error(e.red(`Error: ${y(s)}`)),process.exit(1)}}async function O(o,n){let s=u.getSessionSummary(o);if(n.json){console.log(JSON.stringify($(s),null,2));return}console.log(e.bold.cyan(`
|
|
3
3
|
\u{1F4CA} Token Usage Summary
|
|
4
4
|
`)),console.log(e.gray(`Period: ${o}`)),console.log(e.gray(`Session: ${s.sessionId}
|
|
5
5
|
`)),console.log(e.bold("Total Usage:")),console.log(` Input tokens: ${l(s.totalUsage.inputTokens)}`),console.log(` Output tokens: ${l(s.totalUsage.outputTokens)}`),console.log(` Total tokens: ${l(s.totalUsage.totalTokens)}`),s.totalUsage.estimatedCostUsd!==void 0&&console.log(` Estimated cost: ${T(s.totalUsage.estimatedCostUsd)}`),console.log(e.bold(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-WT2IUWYG.js";import"./chunk-IVRBWQBU.js";export{i as DotProductAttention,h as FlashAttention,k as HyperbolicAttention,l as LinearAttention,m as MoEAttention,j as MultiHeadAttention,b as RuvectorLayer,n as SonaEngine,c as TensorCompress,a as default,d as differentiableSearch,f as getCompressionLevel,e as hierarchicalForward,g as init,o as pipeline};
|
package/dist/cli/chunks/{tree-sitter-wasm-parser-4H4UVHAQ.js → tree-sitter-wasm-parser-K7UHIIO2.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{d as L,e as $}from"./chunk-F77VZ4IY.js";import"./chunk-ARLHD5MG.js";$();import*as U from"node:fs";import G from"node:module";import*as F from"node:path";import{fileURLToPath as V}from"node:url";var b=L("TreeSitterWASM"),R={python:{wasmFile:"tree-sitter-python.wasm",nodeTypes:{functionDecl:["function_definition"],classDecl:["class_definition"],importDecl:["import_statement","import_from_statement"]}},java:{wasmFile:"tree-sitter-java.wasm",nodeTypes:{functionDecl:["method_declaration","constructor_declaration"],classDecl:["class_declaration","interface_declaration"],importDecl:["import_declaration"]}},csharp:{wasmFile:"tree-sitter-c_sharp.wasm",nodeTypes:{functionDecl:["method_declaration","constructor_declaration"],classDecl:["class_declaration","interface_declaration"],importDecl:["using_directive"]}},rust:{wasmFile:"tree-sitter-rust.wasm",nodeTypes:{functionDecl:["function_item"],classDecl:[],importDecl:["use_declaration"],implBlock:"impl_item",structDecl:"struct_item"}},swift:{wasmFile:"tree-sitter-swift.wasm",nodeTypes:{functionDecl:["function_declaration"],classDecl:["class_declaration"],importDecl:["import_declaration"],structDecl:"struct_declaration",protocolDecl:"protocol_declaration"}}},g=null,N=null,x=0,P=3,w=new Map;function A(s){let e=V(new URL(".",import.meta.url)),t=[F.resolve(e,"..","..","..","assets","grammars",s),F.resolve(e,"..","..","assets","grammars",s),F.resolve(process.cwd(),"assets","grammars",s),F.resolve(e,"..","assets","grammars",s)];for(let n of t)if(U.existsSync(n))return n;throw new Error(`Grammar file ${s} not found. Searched: ${t.join(", ")}`)}async function B(){if(x>=P)throw new Error(`web-tree-sitter failed to initialize after ${P} attempts`);if(!g)return N||(N=(async()=>{try{let s=await import("./web-tree-sitter-KDFT6ZUY.js"),e=s.default||s;await e.init(),g=e,x=0,b.info("web-tree-sitter WASM runtime initialized")}catch(s){x++,N=null;let e=s instanceof Error?s.message:String(s);throw b.warn(`web-tree-sitter WASM init failed (attempt ${x}/${P}): ${e}. `+(x<P?"Will retry on next parse.":"Falling back to regex permanently.")),s}})()),N}async function J(s){let e=w.get(s);if(e)return e;await B();let t=R[s];if(!t)throw new Error(`No WASM grammar config for ${s}`);try{let n=A(t.wasmFile),i=await g.Language.load(n);return w.set(s,i),b.info(`Loaded tree-sitter WASM grammar for ${s}`),i}catch(n){let i=n instanceof Error?n.message:String(n);throw b.warn(`Failed to load WASM grammar for ${s}: ${i}. Falling back to regex parser.`),n}}function u(s,e){let t=[];for(let n=0;n<s.childCount;n++){let i=s.child(n);e.includes(i.type)&&t.push(i)}return t}function y(s,e,t=10){let n=[];function i(r,o){if(!(o>t))for(let a=0;a<r.childCount;a++){let c=r.child(a);e.includes(c.type)&&n.push(c),i(c,o+1)}}return i(s,0),n}function h(s){let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);(n.type==="modifiers"||n.type==="modifier"||n.type==="visibility_modifier")&&e.push(n.text.trim())}return e}function I(s,e){return h(s).some(t=>t.includes(e))}var X=new Set(["if_statement","if_expression","if_let_statement","while_statement","while_expression","for_statement","for_in_statement","for_expression","enhanced_for_statement","match_expression","switch_statement","switch_expression","case_clause","match_arm","switch_entry","catch_clause","except_clause","catch_block","binary_expression","conditional_expression","ternary_expression"]),Y=new Set(["&&","||","and","or"]);function _(s){if(!s)return 1;let e=1;function t(n){if(X.has(n.type))if(n.type==="binary_expression"){let i=n.childForFieldName("operator");i&&Y.has(i.text)&&e++}else e++;for(let i=0;i<n.childCount;i++)t(n.child(i))}return t(s),e}function S(s,e){if(!s)return[];let t=[];for(let n=0;n<s.childCount;n++){let i=s.child(n);switch(e){case"java":if(i.type==="field_declaration"){let r=h(i),o=i.childForFieldName("type")?.text?.trim(),a=i.childForFieldName("declarator"),c=a?.childForFieldName("name")?.text??a?.text?.split(/[=;]/)[0]?.trim()??"";c&&t.push({name:c,type:o||void 0,isPublic:r.some(l=>l.includes("public")),isReadonly:r.some(l=>l.includes("final"))})}break;case"csharp":if(i.type==="field_declaration"||i.type==="property_declaration"){let r=h(i),o=i.childForFieldName("type")?.text?.trim(),a=i.childForFieldName("name")?.text??"";a&&t.push({name:a,type:o||void 0,isPublic:r.some(c=>c.includes("public")),isReadonly:r.some(c=>c.includes("readonly"))})}break;case"rust":if(i.type==="field_declaration"){let r=i.childForFieldName("name")?.text??"",o=i.childForFieldName("type")?.text?.trim(),a=I(i,"pub");r&&t.push({name:r,type:o||void 0,isPublic:a,isReadonly:!1})}break;case"swift":if(i.type==="property_declaration"){let r=T(i),o=i.childForFieldName("name")?.text??"",a=i.childForFieldName("type")?.text?.trim(),c=r.includes("public")||r.includes("open"),l=i.text.includes("let ");o&&t.push({name:o,type:a||void 0,isPublic:c,isReadonly:l})}break;case"python":if(i.type==="expression_statement"){let r=i.child(0);if(r?.type==="assignment"){let o=r.childForFieldName("left");if(o?.type==="attribute"||o?.type==="identifier"){let a=o.text.replace("self.","");t.push({name:a,type:void 0,isPublic:!a.startsWith("_"),isReadonly:!1})}}}break}}return t}function O(s){return s.map(e=>{let t=e.childForFieldName("name")?.text??"",n=e.childForFieldName("parameters"),i=e.childForFieldName("return_type"),r=e.childForFieldName("body"),o=e.text.trimStart().startsWith("async"),a=E(e);return{name:t,parameters:q(n),returnType:i?.text?.trim()||void 0,isAsync:o,isPublic:!t.startsWith("_"),complexity:_(r),decorators:a,genericParams:[],startLine:e.startPosition.row+1,endLine:e.endPosition.row+1}})}function q(s){if(!s)return[];let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);if(n.type==="identifier"){let i=n.text;if(i==="self"||i==="cls")continue;e.push({name:i,type:void 0,isOptional:!1,defaultValue:void 0})}else if(n.type==="typed_parameter"){let i=n.child(0)?.text??"";if(i==="self"||i==="cls")continue;let r=n.childForFieldName("type")?.text?.trim();e.push({name:i,type:r||void 0,isOptional:!1,defaultValue:void 0})}else if(n.type==="default_parameter"||n.type==="typed_default_parameter"){let i=n.childForFieldName("name")?.text??n.child(0)?.text??"";if(i==="self"||i==="cls")continue;let r=n.childForFieldName("type")?.text?.trim(),o=n.childForFieldName("value")?.text?.trim();e.push({name:i,type:r||void 0,isOptional:!0,defaultValue:o||void 0})}else if(n.type==="list_splat_pattern"||n.type==="dictionary_splat_pattern"){let i=n.text;e.push({name:i,type:void 0,isOptional:!0,defaultValue:void 0})}}return e}function E(s){let e=[],t=s.parent;if(!t)return e;if(t.type==="decorated_definition")for(let n=0;n<t.childCount;n++){let i=t.child(n);i.type==="decorator"&&e.push(i.text.trim())}return e}function z(s){return s.map(e=>{let t=e.childForFieldName("name")?.text??"",n=e.childForFieldName("body"),i=e.childForFieldName("superclasses"),r=[];if(i)for(let l=0;l<i.childCount;l++){let d=i.child(l);d.isNamed&&r.push(d.text)}let o=n?y(n,["function_definition"],2):[],a=O(o),c=E(e);return{name:t,methods:a,properties:S(n,"python"),isPublic:!t.startsWith("_"),implements:[],extends:r[0]||void 0,decorators:c,startLine:e.startPosition.row+1,endLine:e.endPosition.row+1}})}function Q(s){return s.map(e=>{if(e.type==="import_from_statement"){let n=e.childForFieldName("module_name")?.text??"",i=[];for(let r=0;r<e.childCount;r++){let o=e.child(r);e.fieldNameForChild(r)==="name"&&o.isNamed&&i.push(o.text)}return{module:n,namedImports:i,isTypeOnly:!1}}return{module:e.childForFieldName("name")?.text??"",namedImports:[],isTypeOnly:!1}})}function C(s){return s.map(e=>{let t=e.childForFieldName("name")?.text??"",n=e.childForFieldName("type"),i=e.childForFieldName("parameters"),r=e.childForFieldName("body"),a=h(e).some(d=>d.includes("public")),c=n?.text?.includes("CompletableFuture")??!1,l=k(e);return{name:t,parameters:H(i),returnType:n?.text==="void"?void 0:n?.text?.trim(),isAsync:c,isPublic:a,complexity:_(r),decorators:l,genericParams:[],startLine:e.startPosition.row+1,endLine:e.endPosition.row+1}})}function H(s){if(!s)return[];let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);if(n.type==="formal_parameter"||n.type==="spread_parameter"){let i=n.childForFieldName("name")?.text??"",r=n.childForFieldName("type")?.text?.trim();e.push({name:i,type:r||void 0,isOptional:!1,defaultValue:void 0})}}return e}function k(s){let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);if(n.type==="modifiers")for(let i=0;i<n.childCount;i++){let r=n.child(i);(r.type==="marker_annotation"||r.type==="annotation")&&e.push(r.text.trim())}}return e}function K(s){return s.map(e=>{let t=e.childForFieldName("name")?.text??"",n=e.childForFieldName("body"),r=h(e).some(p=>p.includes("public")),o=e.childForFieldName("superclass")?.text,a=e.childForFieldName("interfaces"),c=[];if(a)for(let p=0;p<a.childCount;p++){let f=a.child(p);f.isNamed&&c.push(f.text)}let l=n?u(n,["method_declaration","constructor_declaration"]):[],d=C(l),m=k(e);return{name:t,methods:d,properties:S(n,"java"),isPublic:r,implements:c,extends:o||void 0,decorators:m,startLine:e.startPosition.row+1,endLine:e.endPosition.row+1}})}function Z(s){return s.map(e=>{let t=e.text.replace(/^\s*import\s+(static\s+)?/,"").replace(/;\s*$/,"").trim(),n=t.split("."),i=n[n.length-1];return{module:t,namedImports:i==="*"?[]:[i],isTypeOnly:!1}})}function ee(s){return y(s,["method_declaration","constructor_declaration"]).map(t=>{let n=t.childForFieldName("name")?.text??"",i=t.childForFieldName("type"),r=t.childForFieldName("parameters"),o=h(t),a=o.some(d=>d.includes("public")),c=o.some(d=>d.includes("async"))||i?.text?.includes("Task")||!1,l=W(t);return{name:n,parameters:te(r),returnType:i?.text==="void"?void 0:i?.text?.trim(),isAsync:c,isPublic:a,complexity:_(t.childForFieldName("body")),decorators:l,genericParams:[],startLine:t.startPosition.row+1,endLine:t.endPosition.row+1}})}function te(s){if(!s)return[];let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);if(n.type==="parameter"){let i=n.childForFieldName("name")?.text??"",r=n.childForFieldName("type")?.text?.trim();e.push({name:i,type:r||void 0,isOptional:r?.endsWith("?")||!1,defaultValue:void 0})}}return e}function W(s){let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);n.type==="attribute_list"&&e.push(n.text.trim())}return e}function ne(s){return y(s,["class_declaration","interface_declaration"]).map(t=>{let n=t.childForFieldName("name")?.text??"",i=t.childForFieldName("body"),o=h(t).some(p=>p.includes("public")),a=t.childForFieldName("bases"),c=[];if(a)for(let p=0;p<a.childCount;p++){let f=a.child(p);f.isNamed&&c.push(f.text)}let l=i?u(i,["method_declaration","constructor_declaration"]):[],d=C(l),m=W(t);return{name:n,methods:d,properties:S(i,"csharp"),isPublic:o,implements:c.slice(1),extends:c[0]||void 0,decorators:m,startLine:t.startPosition.row+1,endLine:t.endPosition.row+1}})}function ie(s){return y(s,["using_directive"]).map(t=>({module:t.text.replace(/^\s*using\s+(static\s+)?/,"").replace(/;\s*$/,"").trim(),namedImports:[],isTypeOnly:!1}))}function se(s,e){let t=[],n=u(s,e.nodeTypes.functionDecl);if(t.push(...n.map(D)),e.nodeTypes.implBlock){let i=u(s,[e.nodeTypes.implBlock]);for(let r of i){let o=r.childForFieldName("body");if(o){let a=u(o,e.nodeTypes.functionDecl);t.push(...a.map(D))}}}return t}function D(s){let e=s.childForFieldName("name")?.text??"",t=s.childForFieldName("parameters"),n=s.childForFieldName("return_type"),i=s.childForFieldName("body"),r=I(s,"pub"),o=s.text.trimStart().startsWith("pub async")||s.text.trimStart().startsWith("async"),a=M(s);return{name:e,parameters:re(t),returnType:n?.text?.trim()||void 0,isAsync:o,isPublic:r,complexity:_(i),decorators:a,genericParams:[],startLine:s.startPosition.row+1,endLine:s.endPosition.row+1}}function re(s){if(!s)return[];let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);if(n.type==="parameter"){let i=n.childForFieldName("pattern"),r=n.childForFieldName("type"),o=i?.text??"",a=r?.text?.trim();e.push({name:o,type:a||void 0,isOptional:!1,defaultValue:void 0})}else if(n.type==="self_parameter")continue}return e}function M(s){let e=[],t=s.previousNamedSibling;for(;t&&t.type==="attribute_item";)e.unshift(t.text.trim()),t=t.previousNamedSibling;return e}function oe(s){let e=[],t=u(s,["struct_item","enum_item","trait_item"]);for(let n of t){let i=n.childForFieldName("name")?.text??"",r=I(n,"pub"),o=M(n),a=n.childForFieldName("body");e.push({name:i,methods:[],properties:S(a,"rust"),isPublic:r,implements:[],extends:void 0,decorators:o,startLine:n.startPosition.row+1,endLine:n.endPosition.row+1})}return e}function ae(s){return u(s,["use_declaration"]).map(t=>({module:t.childForFieldName("argument")?.text??t.text.replace(/^\s*use\s+/,"").replace(/;\s*$/,"").trim(),namedImports:[],isTypeOnly:!1}))}function j(s){return s.map(e=>{let t="",n=[],i,r=T(e),o=r.includes("public")||r.includes("open"),a=!1;for(let l=0;l<e.childCount;l++){let d=e.child(l);e.fieldNameForChild(l)==="name"&&(d.type==="simple_identifier"?t=d.text:t||(i=d.text)),d.type==="parameter"&&n.push(d),(d.type==="async"||d.text==="async")&&(a=!0)}if(!t){for(let l=0;l<e.childCount;l++)if(e.child(l).type==="simple_identifier"){t=e.child(l).text;break}}let c=null;for(let l=0;l<e.childCount;l++)if(e.child(l).type==="function_body"){c=e.child(l);break}return{name:t,parameters:ce(n),returnType:i,isAsync:a,isPublic:o,complexity:_(c),decorators:[],genericParams:[],startLine:e.startPosition.row+1,endLine:e.endPosition.row+1}})}function T(s){let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);if(n.type==="modifiers")for(let i=0;i<n.childCount;i++)e.push(n.child(i).text.trim())}return e}function ce(s){return s.map(e=>{let n=e.text.split(":"),i=n[0]?.trim().split(/\s+/)??[],r=i[i.length-1]||"",o=n.slice(1).join(":").trim()||void 0;return{name:r,type:o,isOptional:o?.endsWith("?")||!1,defaultValue:void 0}})}function le(s){return u(s,["class_declaration","struct_declaration","protocol_declaration"]).map(n=>{let i=n.childForFieldName("name"),r=i?.text??"",o=T(n),a=o.includes("public")||o.includes("open"),c=[];for(let p=0;p<n.childCount;p++){let f=n.child(p);f.type==="type_identifier"&&f!==i&&c.push(f.text),(f.type==="inheritance_specifier"||f.type==="user_type")&&c.push(f.text)}let l=n.childForFieldName("body"),d=l?y(l,["function_declaration"],2):[],m=j(d);return{name:r,methods:m,properties:S(l,"swift"),isPublic:a,implements:c.slice(1),extends:c[0]||void 0,decorators:[],startLine:n.startPosition.row+1,endLine:n.endPosition.row+1}})}function de(s){return u(s,["import_declaration"]).map(t=>{let n="";for(let i=0;i<t.childCount;i++){let r=t.child(i);(r.type==="identifier"||r.type==="simple_identifier")&&(n=r.text)}return{module:n,namedImports:[],isTypeOnly:!1}})}var v=class{language;supportedExtensions;constructor(e,t){this.language=e,this.supportedExtensions=t}async parseFile(e,t){let n=await J(this.language),i=new g;i.setLanguage(n);let r=i.parse(e),o=r.rootNode;try{return{...this.extractFromAST(o),language:this.language,filePath:t}}finally{r.delete(),i.delete()}}extractFromAST(e){let t=R[this.language];switch(this.language){case"python":{let n=u(e,t.nodeTypes.functionDecl),i=u(e,["decorated_definition"]).map(d=>{for(let m=0;m<d.childCount;m++)if(t.nodeTypes.functionDecl.includes(d.child(m).type))return d.child(m);return null}).filter(Boolean),r=[...n,...i],o=u(e,t.nodeTypes.classDecl),a=u(e,["decorated_definition"]).map(d=>{for(let m=0;m<d.childCount;m++)if(t.nodeTypes.classDecl.includes(d.child(m).type))return d.child(m);return null}).filter(Boolean),c=[...o,...a],l=u(e,t.nodeTypes.importDecl);return{functions:O(r),classes:z(c),imports:Q(l)}}case"java":{let n=y(e,t.nodeTypes.classDecl),i=u(e,t.nodeTypes.importDecl),o=[...u(e,t.nodeTypes.functionDecl)];for(let a of n){let c=a.childForFieldName("body");c&&o.push(...u(c,t.nodeTypes.functionDecl))}return{functions:C(o),classes:K(n),imports:Z(i)}}case"csharp":return{functions:ee(e),classes:ne(e),imports:ie(e)};case"rust":return{functions:se(e,t),classes:oe(e),imports:ae(e)};case"swift":{let n=y(e,t.nodeTypes.functionDecl);return{functions:j(n),classes:le(e),imports:de(e)}}default:return{functions:[],classes:[],imports:[]}}}},ue={python:[".py"],java:[".java"],csharp:[".cs"],rust:[".rs"],swift:[".swift"]};function ye(){let s=new Map;for(let[e,t]of Object.entries(ue))s.set(e,new v(e,t));return s}function he(){if(process.env.AQE_PARSER_REGEX_ONLY==="1"||process.env.AQE_PARSER_REGEX_ONLY==="true")return!1;try{let{createRequire:s}=G;return s(import.meta.url).resolve("web-tree-sitter"),A("tree-sitter-python.wasm"),!0}catch{return!1}}function xe(){g=null,N=null,x=0,w.clear()}export{v as TreeSitterWASMParser,xe as _resetWasmState,ye as createWasmParsers,he as isWasmAvailable};
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{d as L,e as $}from"./chunk-PMWIZ7TC.js";import"./chunk-IVRBWQBU.js";$();import*as U from"node:fs";import G from"node:module";import*as F from"node:path";import{fileURLToPath as V}from"node:url";var b=L("TreeSitterWASM"),R={python:{wasmFile:"tree-sitter-python.wasm",nodeTypes:{functionDecl:["function_definition"],classDecl:["class_definition"],importDecl:["import_statement","import_from_statement"]}},java:{wasmFile:"tree-sitter-java.wasm",nodeTypes:{functionDecl:["method_declaration","constructor_declaration"],classDecl:["class_declaration","interface_declaration"],importDecl:["import_declaration"]}},csharp:{wasmFile:"tree-sitter-c_sharp.wasm",nodeTypes:{functionDecl:["method_declaration","constructor_declaration"],classDecl:["class_declaration","interface_declaration"],importDecl:["using_directive"]}},rust:{wasmFile:"tree-sitter-rust.wasm",nodeTypes:{functionDecl:["function_item"],classDecl:[],importDecl:["use_declaration"],implBlock:"impl_item",structDecl:"struct_item"}},swift:{wasmFile:"tree-sitter-swift.wasm",nodeTypes:{functionDecl:["function_declaration"],classDecl:["class_declaration"],importDecl:["import_declaration"],structDecl:"struct_declaration",protocolDecl:"protocol_declaration"}}},g=null,N=null,x=0,P=3,w=new Map;function A(s){let e=V(new URL(".",import.meta.url)),t=[F.resolve(e,"..","..","..","assets","grammars",s),F.resolve(e,"..","..","assets","grammars",s),F.resolve(process.cwd(),"assets","grammars",s),F.resolve(e,"..","assets","grammars",s)];for(let n of t)if(U.existsSync(n))return n;throw new Error(`Grammar file ${s} not found. Searched: ${t.join(", ")}`)}async function B(){if(x>=P)throw new Error(`web-tree-sitter failed to initialize after ${P} attempts`);if(!g)return N||(N=(async()=>{try{let s=await import("./web-tree-sitter-BGIECWPA.js"),e=s.default||s;await e.init(),g=e,x=0,b.info("web-tree-sitter WASM runtime initialized")}catch(s){x++,N=null;let e=s instanceof Error?s.message:String(s);throw b.warn(`web-tree-sitter WASM init failed (attempt ${x}/${P}): ${e}. `+(x<P?"Will retry on next parse.":"Falling back to regex permanently.")),s}})()),N}async function J(s){let e=w.get(s);if(e)return e;await B();let t=R[s];if(!t)throw new Error(`No WASM grammar config for ${s}`);try{let n=A(t.wasmFile),i=await g.Language.load(n);return w.set(s,i),b.info(`Loaded tree-sitter WASM grammar for ${s}`),i}catch(n){let i=n instanceof Error?n.message:String(n);throw b.warn(`Failed to load WASM grammar for ${s}: ${i}. Falling back to regex parser.`),n}}function u(s,e){let t=[];for(let n=0;n<s.childCount;n++){let i=s.child(n);e.includes(i.type)&&t.push(i)}return t}function y(s,e,t=10){let n=[];function i(r,o){if(!(o>t))for(let a=0;a<r.childCount;a++){let c=r.child(a);e.includes(c.type)&&n.push(c),i(c,o+1)}}return i(s,0),n}function h(s){let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);(n.type==="modifiers"||n.type==="modifier"||n.type==="visibility_modifier")&&e.push(n.text.trim())}return e}function I(s,e){return h(s).some(t=>t.includes(e))}var X=new Set(["if_statement","if_expression","if_let_statement","while_statement","while_expression","for_statement","for_in_statement","for_expression","enhanced_for_statement","match_expression","switch_statement","switch_expression","case_clause","match_arm","switch_entry","catch_clause","except_clause","catch_block","binary_expression","conditional_expression","ternary_expression"]),Y=new Set(["&&","||","and","or"]);function _(s){if(!s)return 1;let e=1;function t(n){if(X.has(n.type))if(n.type==="binary_expression"){let i=n.childForFieldName("operator");i&&Y.has(i.text)&&e++}else e++;for(let i=0;i<n.childCount;i++)t(n.child(i))}return t(s),e}function S(s,e){if(!s)return[];let t=[];for(let n=0;n<s.childCount;n++){let i=s.child(n);switch(e){case"java":if(i.type==="field_declaration"){let r=h(i),o=i.childForFieldName("type")?.text?.trim(),a=i.childForFieldName("declarator"),c=a?.childForFieldName("name")?.text??a?.text?.split(/[=;]/)[0]?.trim()??"";c&&t.push({name:c,type:o||void 0,isPublic:r.some(l=>l.includes("public")),isReadonly:r.some(l=>l.includes("final"))})}break;case"csharp":if(i.type==="field_declaration"||i.type==="property_declaration"){let r=h(i),o=i.childForFieldName("type")?.text?.trim(),a=i.childForFieldName("name")?.text??"";a&&t.push({name:a,type:o||void 0,isPublic:r.some(c=>c.includes("public")),isReadonly:r.some(c=>c.includes("readonly"))})}break;case"rust":if(i.type==="field_declaration"){let r=i.childForFieldName("name")?.text??"",o=i.childForFieldName("type")?.text?.trim(),a=I(i,"pub");r&&t.push({name:r,type:o||void 0,isPublic:a,isReadonly:!1})}break;case"swift":if(i.type==="property_declaration"){let r=T(i),o=i.childForFieldName("name")?.text??"",a=i.childForFieldName("type")?.text?.trim(),c=r.includes("public")||r.includes("open"),l=i.text.includes("let ");o&&t.push({name:o,type:a||void 0,isPublic:c,isReadonly:l})}break;case"python":if(i.type==="expression_statement"){let r=i.child(0);if(r?.type==="assignment"){let o=r.childForFieldName("left");if(o?.type==="attribute"||o?.type==="identifier"){let a=o.text.replace("self.","");t.push({name:a,type:void 0,isPublic:!a.startsWith("_"),isReadonly:!1})}}}break}}return t}function O(s){return s.map(e=>{let t=e.childForFieldName("name")?.text??"",n=e.childForFieldName("parameters"),i=e.childForFieldName("return_type"),r=e.childForFieldName("body"),o=e.text.trimStart().startsWith("async"),a=E(e);return{name:t,parameters:q(n),returnType:i?.text?.trim()||void 0,isAsync:o,isPublic:!t.startsWith("_"),complexity:_(r),decorators:a,genericParams:[],startLine:e.startPosition.row+1,endLine:e.endPosition.row+1}})}function q(s){if(!s)return[];let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);if(n.type==="identifier"){let i=n.text;if(i==="self"||i==="cls")continue;e.push({name:i,type:void 0,isOptional:!1,defaultValue:void 0})}else if(n.type==="typed_parameter"){let i=n.child(0)?.text??"";if(i==="self"||i==="cls")continue;let r=n.childForFieldName("type")?.text?.trim();e.push({name:i,type:r||void 0,isOptional:!1,defaultValue:void 0})}else if(n.type==="default_parameter"||n.type==="typed_default_parameter"){let i=n.childForFieldName("name")?.text??n.child(0)?.text??"";if(i==="self"||i==="cls")continue;let r=n.childForFieldName("type")?.text?.trim(),o=n.childForFieldName("value")?.text?.trim();e.push({name:i,type:r||void 0,isOptional:!0,defaultValue:o||void 0})}else if(n.type==="list_splat_pattern"||n.type==="dictionary_splat_pattern"){let i=n.text;e.push({name:i,type:void 0,isOptional:!0,defaultValue:void 0})}}return e}function E(s){let e=[],t=s.parent;if(!t)return e;if(t.type==="decorated_definition")for(let n=0;n<t.childCount;n++){let i=t.child(n);i.type==="decorator"&&e.push(i.text.trim())}return e}function z(s){return s.map(e=>{let t=e.childForFieldName("name")?.text??"",n=e.childForFieldName("body"),i=e.childForFieldName("superclasses"),r=[];if(i)for(let l=0;l<i.childCount;l++){let d=i.child(l);d.isNamed&&r.push(d.text)}let o=n?y(n,["function_definition"],2):[],a=O(o),c=E(e);return{name:t,methods:a,properties:S(n,"python"),isPublic:!t.startsWith("_"),implements:[],extends:r[0]||void 0,decorators:c,startLine:e.startPosition.row+1,endLine:e.endPosition.row+1}})}function Q(s){return s.map(e=>{if(e.type==="import_from_statement"){let n=e.childForFieldName("module_name")?.text??"",i=[];for(let r=0;r<e.childCount;r++){let o=e.child(r);e.fieldNameForChild(r)==="name"&&o.isNamed&&i.push(o.text)}return{module:n,namedImports:i,isTypeOnly:!1}}return{module:e.childForFieldName("name")?.text??"",namedImports:[],isTypeOnly:!1}})}function C(s){return s.map(e=>{let t=e.childForFieldName("name")?.text??"",n=e.childForFieldName("type"),i=e.childForFieldName("parameters"),r=e.childForFieldName("body"),a=h(e).some(d=>d.includes("public")),c=n?.text?.includes("CompletableFuture")??!1,l=k(e);return{name:t,parameters:H(i),returnType:n?.text==="void"?void 0:n?.text?.trim(),isAsync:c,isPublic:a,complexity:_(r),decorators:l,genericParams:[],startLine:e.startPosition.row+1,endLine:e.endPosition.row+1}})}function H(s){if(!s)return[];let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);if(n.type==="formal_parameter"||n.type==="spread_parameter"){let i=n.childForFieldName("name")?.text??"",r=n.childForFieldName("type")?.text?.trim();e.push({name:i,type:r||void 0,isOptional:!1,defaultValue:void 0})}}return e}function k(s){let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);if(n.type==="modifiers")for(let i=0;i<n.childCount;i++){let r=n.child(i);(r.type==="marker_annotation"||r.type==="annotation")&&e.push(r.text.trim())}}return e}function K(s){return s.map(e=>{let t=e.childForFieldName("name")?.text??"",n=e.childForFieldName("body"),r=h(e).some(p=>p.includes("public")),o=e.childForFieldName("superclass")?.text,a=e.childForFieldName("interfaces"),c=[];if(a)for(let p=0;p<a.childCount;p++){let f=a.child(p);f.isNamed&&c.push(f.text)}let l=n?u(n,["method_declaration","constructor_declaration"]):[],d=C(l),m=k(e);return{name:t,methods:d,properties:S(n,"java"),isPublic:r,implements:c,extends:o||void 0,decorators:m,startLine:e.startPosition.row+1,endLine:e.endPosition.row+1}})}function Z(s){return s.map(e=>{let t=e.text.replace(/^\s*import\s+(static\s+)?/,"").replace(/;\s*$/,"").trim(),n=t.split("."),i=n[n.length-1];return{module:t,namedImports:i==="*"?[]:[i],isTypeOnly:!1}})}function ee(s){return y(s,["method_declaration","constructor_declaration"]).map(t=>{let n=t.childForFieldName("name")?.text??"",i=t.childForFieldName("type"),r=t.childForFieldName("parameters"),o=h(t),a=o.some(d=>d.includes("public")),c=o.some(d=>d.includes("async"))||i?.text?.includes("Task")||!1,l=W(t);return{name:n,parameters:te(r),returnType:i?.text==="void"?void 0:i?.text?.trim(),isAsync:c,isPublic:a,complexity:_(t.childForFieldName("body")),decorators:l,genericParams:[],startLine:t.startPosition.row+1,endLine:t.endPosition.row+1}})}function te(s){if(!s)return[];let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);if(n.type==="parameter"){let i=n.childForFieldName("name")?.text??"",r=n.childForFieldName("type")?.text?.trim();e.push({name:i,type:r||void 0,isOptional:r?.endsWith("?")||!1,defaultValue:void 0})}}return e}function W(s){let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);n.type==="attribute_list"&&e.push(n.text.trim())}return e}function ne(s){return y(s,["class_declaration","interface_declaration"]).map(t=>{let n=t.childForFieldName("name")?.text??"",i=t.childForFieldName("body"),o=h(t).some(p=>p.includes("public")),a=t.childForFieldName("bases"),c=[];if(a)for(let p=0;p<a.childCount;p++){let f=a.child(p);f.isNamed&&c.push(f.text)}let l=i?u(i,["method_declaration","constructor_declaration"]):[],d=C(l),m=W(t);return{name:n,methods:d,properties:S(i,"csharp"),isPublic:o,implements:c.slice(1),extends:c[0]||void 0,decorators:m,startLine:t.startPosition.row+1,endLine:t.endPosition.row+1}})}function ie(s){return y(s,["using_directive"]).map(t=>({module:t.text.replace(/^\s*using\s+(static\s+)?/,"").replace(/;\s*$/,"").trim(),namedImports:[],isTypeOnly:!1}))}function se(s,e){let t=[],n=u(s,e.nodeTypes.functionDecl);if(t.push(...n.map(D)),e.nodeTypes.implBlock){let i=u(s,[e.nodeTypes.implBlock]);for(let r of i){let o=r.childForFieldName("body");if(o){let a=u(o,e.nodeTypes.functionDecl);t.push(...a.map(D))}}}return t}function D(s){let e=s.childForFieldName("name")?.text??"",t=s.childForFieldName("parameters"),n=s.childForFieldName("return_type"),i=s.childForFieldName("body"),r=I(s,"pub"),o=s.text.trimStart().startsWith("pub async")||s.text.trimStart().startsWith("async"),a=M(s);return{name:e,parameters:re(t),returnType:n?.text?.trim()||void 0,isAsync:o,isPublic:r,complexity:_(i),decorators:a,genericParams:[],startLine:s.startPosition.row+1,endLine:s.endPosition.row+1}}function re(s){if(!s)return[];let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);if(n.type==="parameter"){let i=n.childForFieldName("pattern"),r=n.childForFieldName("type"),o=i?.text??"",a=r?.text?.trim();e.push({name:o,type:a||void 0,isOptional:!1,defaultValue:void 0})}else if(n.type==="self_parameter")continue}return e}function M(s){let e=[],t=s.previousNamedSibling;for(;t&&t.type==="attribute_item";)e.unshift(t.text.trim()),t=t.previousNamedSibling;return e}function oe(s){let e=[],t=u(s,["struct_item","enum_item","trait_item"]);for(let n of t){let i=n.childForFieldName("name")?.text??"",r=I(n,"pub"),o=M(n),a=n.childForFieldName("body");e.push({name:i,methods:[],properties:S(a,"rust"),isPublic:r,implements:[],extends:void 0,decorators:o,startLine:n.startPosition.row+1,endLine:n.endPosition.row+1})}return e}function ae(s){return u(s,["use_declaration"]).map(t=>({module:t.childForFieldName("argument")?.text??t.text.replace(/^\s*use\s+/,"").replace(/;\s*$/,"").trim(),namedImports:[],isTypeOnly:!1}))}function j(s){return s.map(e=>{let t="",n=[],i,r=T(e),o=r.includes("public")||r.includes("open"),a=!1;for(let l=0;l<e.childCount;l++){let d=e.child(l);e.fieldNameForChild(l)==="name"&&(d.type==="simple_identifier"?t=d.text:t||(i=d.text)),d.type==="parameter"&&n.push(d),(d.type==="async"||d.text==="async")&&(a=!0)}if(!t){for(let l=0;l<e.childCount;l++)if(e.child(l).type==="simple_identifier"){t=e.child(l).text;break}}let c=null;for(let l=0;l<e.childCount;l++)if(e.child(l).type==="function_body"){c=e.child(l);break}return{name:t,parameters:ce(n),returnType:i,isAsync:a,isPublic:o,complexity:_(c),decorators:[],genericParams:[],startLine:e.startPosition.row+1,endLine:e.endPosition.row+1}})}function T(s){let e=[];for(let t=0;t<s.childCount;t++){let n=s.child(t);if(n.type==="modifiers")for(let i=0;i<n.childCount;i++)e.push(n.child(i).text.trim())}return e}function ce(s){return s.map(e=>{let n=e.text.split(":"),i=n[0]?.trim().split(/\s+/)??[],r=i[i.length-1]||"",o=n.slice(1).join(":").trim()||void 0;return{name:r,type:o,isOptional:o?.endsWith("?")||!1,defaultValue:void 0}})}function le(s){return u(s,["class_declaration","struct_declaration","protocol_declaration"]).map(n=>{let i=n.childForFieldName("name"),r=i?.text??"",o=T(n),a=o.includes("public")||o.includes("open"),c=[];for(let p=0;p<n.childCount;p++){let f=n.child(p);f.type==="type_identifier"&&f!==i&&c.push(f.text),(f.type==="inheritance_specifier"||f.type==="user_type")&&c.push(f.text)}let l=n.childForFieldName("body"),d=l?y(l,["function_declaration"],2):[],m=j(d);return{name:r,methods:m,properties:S(l,"swift"),isPublic:a,implements:c.slice(1),extends:c[0]||void 0,decorators:[],startLine:n.startPosition.row+1,endLine:n.endPosition.row+1}})}function de(s){return u(s,["import_declaration"]).map(t=>{let n="";for(let i=0;i<t.childCount;i++){let r=t.child(i);(r.type==="identifier"||r.type==="simple_identifier")&&(n=r.text)}return{module:n,namedImports:[],isTypeOnly:!1}})}var v=class{language;supportedExtensions;constructor(e,t){this.language=e,this.supportedExtensions=t}async parseFile(e,t){let n=await J(this.language),i=new g;i.setLanguage(n);let r=i.parse(e),o=r.rootNode;try{return{...this.extractFromAST(o),language:this.language,filePath:t}}finally{r.delete(),i.delete()}}extractFromAST(e){let t=R[this.language];switch(this.language){case"python":{let n=u(e,t.nodeTypes.functionDecl),i=u(e,["decorated_definition"]).map(d=>{for(let m=0;m<d.childCount;m++)if(t.nodeTypes.functionDecl.includes(d.child(m).type))return d.child(m);return null}).filter(Boolean),r=[...n,...i],o=u(e,t.nodeTypes.classDecl),a=u(e,["decorated_definition"]).map(d=>{for(let m=0;m<d.childCount;m++)if(t.nodeTypes.classDecl.includes(d.child(m).type))return d.child(m);return null}).filter(Boolean),c=[...o,...a],l=u(e,t.nodeTypes.importDecl);return{functions:O(r),classes:z(c),imports:Q(l)}}case"java":{let n=y(e,t.nodeTypes.classDecl),i=u(e,t.nodeTypes.importDecl),o=[...u(e,t.nodeTypes.functionDecl)];for(let a of n){let c=a.childForFieldName("body");c&&o.push(...u(c,t.nodeTypes.functionDecl))}return{functions:C(o),classes:K(n),imports:Z(i)}}case"csharp":return{functions:ee(e),classes:ne(e),imports:ie(e)};case"rust":return{functions:se(e,t),classes:oe(e),imports:ae(e)};case"swift":{let n=y(e,t.nodeTypes.functionDecl);return{functions:j(n),classes:le(e),imports:de(e)}}default:return{functions:[],classes:[],imports:[]}}}},ue={python:[".py"],java:[".java"],csharp:[".cs"],rust:[".rs"],swift:[".swift"]};function ye(){let s=new Map;for(let[e,t]of Object.entries(ue))s.set(e,new v(e,t));return s}function he(){if(process.env.AQE_PARSER_REGEX_ONLY==="1"||process.env.AQE_PARSER_REGEX_ONLY==="true")return!1;try{let{createRequire:s}=G;return s(import.meta.url).resolve("web-tree-sitter"),A("tree-sitter-python.wasm"),!0}catch{return!1}}function xe(){g=null,N=null,x=0,w.clear()}export{v as TreeSitterWASMParser,xe as _resetWasmState,ye as createWasmParsers,he as isWasmAvailable};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{a,b,c,d,e,f,g}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g}from"./chunk-OVOXPXPC.js";import"./chunk-IVRBWQBU.js";export{e as BudgetExceededError,f as ComplexityAnalysisError,b as DEFAULT_BUDGET_CONFIG,c as DEFAULT_ROUTER_CONFIG,d as ModelRouterError,g as RoutingTimeoutError,a as TIER_METADATA};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{a,b,e as f,f as g,g as h,h as i,i as j,j as k,k as l,l as m,m as n,o}from"./chunk-5RZ26J4J.js";import"./chunk-ZKNO5AR4.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import"./chunk-ZH2WOQP3.js";import"./chunk-5KOR5ZMG.js";import"./chunk-YLZZZRB7.js";import"./chunk-UYTAAWAO.js";import{a as c,d,e}from"./chunk-7GLCWLZL.js";import"./chunk-ZDM6AWU6.js";import"./chunk-CKDW7YFV.js";import"./chunk-B5KYS65U.js";import"./chunk-M3FFEZFJ.js";import"./chunk-SVPX24HJ.js";import"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";o();export{a as ALLOWED_TABLE_NAMES,c as BinaryHeap,i as DEFAULT_UNIFIED_MEMORY_CONFIG,d as UnifiedHnswIndex,k as UnifiedMemoryManager,f as clearProjectRootCache,e as createHnswIndex,g as findProjectRoot,h as getDefaultDbPath,j as getResolvedDefaultConfig,l as getUnifiedMemory,m as initializeUnifiedMemory,n as resetUnifiedMemory,b as validateTableName};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f}from"./chunk-7GLCWLZL.js";import"./chunk-ZDM6AWU6.js";import"./chunk-CKDW7YFV.js";import"./chunk-B5KYS65U.js";import"./chunk-M3FFEZFJ.js";import"./chunk-SVPX24HJ.js";import"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";f();export{a as BinaryHeap,b as InMemoryHNSWIndex,c as RuvectorFlatIndex,d as UnifiedHnswIndex,e as createHnswIndex};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e}from"./chunk-NIWTQURH.js";import"./chunk-5RZ26J4J.js";import"./chunk-ZKNO5AR4.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import"./chunk-ZH2WOQP3.js";import"./chunk-5KOR5ZMG.js";import"./chunk-YLZZZRB7.js";import"./chunk-UYTAAWAO.js";import"./chunk-7GLCWLZL.js";import"./chunk-ZDM6AWU6.js";import"./chunk-CKDW7YFV.js";import"./chunk-B5KYS65U.js";import"./chunk-M3FFEZFJ.js";import"./chunk-SVPX24HJ.js";import"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";export{a as DEFAULT_UNIFIED_CONFIG,b as UnifiedPersistenceManager,c as getUnifiedPersistence,d as initializeUnifiedPersistence,e as resetUnifiedPersistence};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{S as m,b as c}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{S as m,b as c}from"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";m();import{Command as f}from"commander";import n from"chalk";import{createRequire as u}from"node:module";import{platform as p,arch as v}from"node:os";var y=[{packageName:"better-sqlite3",role:"SQLite storage (required \u2014 memory.db, patterns, audit)",fallback:"n/a \u2014 required",affectsFlags:[],required:!0},{packageName:"web-tree-sitter",role:"Tree-sitter WASM parser runtime (required \u2014 code intelligence)",fallback:"n/a \u2014 required",affectsFlags:[],required:!0},{packageName:"hnswlib-node",role:"Canonical HNSW vector index (default since ADR-090)",fallback:"ProgressiveHnswBackend (JS) \u2014 correct but slower on large codebases",affectsFlags:["useNativeHNSW"],required:!1},{packageName:"@ruvector/rvf-node",role:"Persistent HNSW pattern store + RVF brain export format",fallback:"SQLite-backed HNSW + JSONL brain export",affectsFlags:["useRVFPatternStore"],required:!1},{packageName:"@ruvector/solver-node",role:"Sublinear PageRank on the pattern citation graph",fallback:"TypeScript power iteration \u2014 O(n\xB7m) (practical cap \u2248 50K nodes)",affectsFlags:["useSublinearSolver"],required:!1},{packageName:"@ruvector/attention",role:"Flash Attention with SIMD acceleration",fallback:"Plain attention \u2014 2.5\u20137\xD7 slower on large sequences",affectsFlags:["useQEFlashAttention"],required:!1},{packageName:"@ruvector/gnn",role:"GraphMAE native acceleration",fallback:"TypeScript GraphMAE \u2014 correct but slower",affectsFlags:["useGraphMAEEmbeddings"],required:!1}];function b(){let r=u(import.meta.url);return o=>{try{return r(o),{ok:!0}}catch(a){return{ok:!1,error:a instanceof Error?a:new Error(String(a))}}}}function N(r,o){return r.map(a=>{let s=o(a.packageName);if(s.ok)return{...a,status:"loaded"};let t=E(s.error),e=a.required?"required-missing":"missing";return{...a,status:e,loadError:s.error.message}})}function E(r){return r.code==="MODULE_NOT_FOUND"}var R={RUVECTOR_USE_RVF_PATTERN_STORE:"useRVFPatternStore",RUVECTOR_USE_SUBLINEAR_SOLVER:"useSublinearSolver",RUVECTOR_USE_NATIVE_HNSW:"useNativeHNSW",RUVECTOR_USE_GNN_INDEX:"useQEGNNIndex",RUVECTOR_USE_FLASH_ATTENTION:"useQEFlashAttention",RUVECTOR_USE_GRAPH_MAE_EMBEDDINGS:"useGraphMAEEmbeddings"};function S(r){let o=[];for(let[a,s]of Object.entries(R)){let t=r[a];t!==void 0&&o.push({envVar:a,value:t,flagName:s})}return o}function k(r){let o=[],a=new Map(r.natives.map(e=>[e.packageName,e]));for(let e of r.natives)e.status==="required-missing"&&o.push({severity:"error",message:`Required dependency missing: ${e.packageName} \u2014 ${e.role}`,action:`npm install ${e.packageName}`});for(let e of r.natives)e.status==="missing"&&!e.required&&o.push({severity:"warn",message:`Optional native missing: ${e.packageName} \u2014 falls back to ${e.fallback}`,action:`npm install ${e.packageName}`});let s={...r.flags};for(let e of r.envOverrides){let i=r.natives.filter(d=>d.affectsFlags.includes(e.flagName)),l=i.some(d=>d.status==="loaded");if((e.value==="true"||e.value==="1")&&i.length>0&&!l){let d=i.map(g=>g.packageName).join(", ");o.push({severity:"warn",message:`${e.envVar}=${e.value} requests flag ${e.flagName}=true, but required native(s) not loaded: ${d}. The flag will silently fall back.`,action:i[0]?`npm install ${i[0].packageName}`:void 0})}}return r.natives.filter(e=>!e.required&&e.status==="missing").length===0&&r.natives.every(e=>e.status!=="required-missing")&&o.push({severity:"info",message:"All recommended native bindings are loaded \u2014 no action required."}),o}function q(r){let o=N(y,r.probe),a=S(r.env),s=k({natives:o,flags:r.flags,envOverrides:a}),t=o.filter(l=>!l.required&&l.status==="loaded").length,e=o.filter(l=>!l.required&&l.status==="missing").length,i=o.filter(l=>l.required).every(l=>l.status==="loaded");return{aqeVersion:r.aqeVersion,platform:{os:p(),arch:v(),node:process.version},natives:o,flags:r.flags,envOverrides:a,recommendations:s,summary:{requiredOk:i,optionalMissingCount:e,optionalLoadedCount:t}}}function h(r,o){return r.summary.requiredOk?o&&r.summary.optionalMissingCount>0?1:0:2}function O(r){let o=[],a=(e="")=>o.push(e);a(""),a(n.bold.blue(" aqe upgrade \u2014 native binding report")),a(n.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),a(""),a(` AQE: ${n.cyan(r.aqeVersion)}`),a(` Platform: ${n.cyan(`${r.platform.os} ${r.platform.arch}`)}`),a(` Node: ${n.cyan(r.platform.node)}`),a(""),a(n.blue(" Native bindings:"));for(let e of r.natives){let i=$(e.status);a(` ${i} ${n.bold(e.packageName.padEnd(28))} ${n.gray(e.role)}`),e.status!=="loaded"&&e.loadError&&a(` ${n.gray(e.loadError.split(`
|
|
3
3
|
`)[0])}`)}a(""),a(n.blue(" Flag state (after env overrides):"));let s=Object.entries(r.flags);for(let[e,i]of s){let l=i?n.green("on "):n.yellow("off");a(` ${l} ${e}`)}if(r.envOverrides.length>0){a(""),a(n.blue(" Env overrides in effect:"));for(let e of r.envOverrides)a(` ${n.cyan(e.envVar)}=${n.cyan(e.value)} ${n.gray(`\u2192 ${e.flagName}`)}`)}if(a(""),a(n.blue(" Recommendations:")),r.recommendations.length===0)a(n.gray(" (none)"));else for(let e of r.recommendations){let i=F(e.severity);a(` ${i} ${e.message}`),e.action&&a(` ${n.gray("\u2192")} ${n.cyan(e.action)}`)}a("");let t=r.summary.requiredOk?n.green("OK"):n.red("FAIL");return a(` Summary: required ${t} optional loaded ${n.cyan(r.summary.optionalLoadedCount)} / ${n.cyan(r.summary.optionalLoadedCount+r.summary.optionalMissingCount)}`),a(""),o.join(`
|
|
4
4
|
`)}function $(r){switch(r){case"loaded":return n.green("\u2713");case"missing":return n.yellow("\u2026");case"required-missing":return n.red("\u2717")}}function F(r){switch(r){case"info":return n.green("\u2713");case"warn":return n.yellow("!");case"error":return n.red("\u2717")}}function U(r){return new f("upgrade").description("Detect optional native bindings and recommend install / flag changes (read-only)").option("--json","Emit the report as JSON to stdout",!1).option("--strict","Exit non-zero if any recommended optional native is missing",!1).action(async a=>{let s=A(),t=c(),e=q({aqeVersion:s,probe:b(),env:process.env,flags:{useRVFPatternStore:t.useRVFPatternStore,useSublinearSolver:t.useSublinearSolver,useNativeHNSW:t.useNativeHNSW,useGraphMAEEmbeddings:t.useGraphMAEEmbeddings,useQEFlashAttention:t.useQEFlashAttention}});a.json?process.stdout.write(JSON.stringify(e,null,2)+`
|
|
5
5
|
`):process.stdout.write(O(e)),await r(h(e,a.strict===!0))})}function A(){try{return u(import.meta.url)("../../../package.json").version??"unknown"}catch{return"unknown"}}export{y as NATIVE_CATALOG,k as buildRecommendations,q as buildReport,b as createDefaultLoadProbe,U as createUpgradeCommand,N as detectNatives,h as exitCodeFor,S as readEnvOverrides,O as renderReportHuman};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{e as P}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{e as P}from"./chunk-I4TSLBEZ.js";import"./chunk-G4YZWVOV.js";import{a as V}from"./chunk-XLNWSI7Y.js";import"./chunk-AFSVRY7S.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import{b as v,d as F}from"./chunk-ZH2WOQP3.js";import"./chunk-5KOR5ZMG.js";import"./chunk-ZDM6AWU6.js";import"./chunk-IVRBWQBU.js";F();import{Command as M}from"commander";import{readFileSync as A,writeFileSync as S,existsSync as C,readdirSync as O,statSync as B}from"fs";import{join as b,resolve as j,basename as I}from"path";import e from"chalk";function R(i){let n=j(i);if(!C(n))throw new Error(`Input path not found: ${n}`);if(B(n).isDirectory()){let r=[],t=O(n).filter(o=>o.endsWith(".json")).map(o=>b(n,o));for(let o of t)try{let u=v(A(o,"utf-8"));if($(u))r.push(u);else if(Array.isArray(u))for(let d of u)$(d)&&r.push(d)}catch{console.warn(e.yellow(`Warning: Could not parse ${I(o)}`))}return r}else{let r=v(A(n,"utf-8"));if($(r))return[r];if(Array.isArray(r))return r.filter($);throw new Error("Invalid input format. Expected ParallelValidationRunResult or array of results.")}}function $(i){return typeof i=="object"&&i!==null&&"runId"in i&&"model"in i&&"outcomes"in i&&Array.isArray(i.outcomes)}function D(){return V({storeQEPattern:async()=>{},searchQEPatterns:async()=>({success:!0,value:[]}),addFact:async()=>({success:!0,value:void 0}),query:async()=>({success:!0,value:{results:[],confidence:0}}),getStats:()=>({totalPatterns:0,totalFacts:0,indexHealth:1,lastCompaction:new Date})})}function T(){let i=process.cwd(),n=[b(i,".claude/skills/trust-tier-manifest.json"),b(i,".claude/skills/skills-manifest.json")];for(let g of n)if(C(g))return g;return b(i,".claude/skills/trust-tier-manifest.json")}function L(i,n,g){let r=g.format||"markdown";if(r==="markdown"||r==="both"){let t=n.generateMarkdownReport(i);if(g.output){let o=r==="both"?g.output.replace(/\.\w+$/,".md"):g.output;S(o,t),console.log(e.green(`Markdown report written to: ${o}`))}else console.log(`
|
|
3
3
|
`+t)}if(r==="json"||r==="both"){let t=n.generateJsonReport(i);if(g.output){let o=r==="both"?g.output.replace(/\.\w+$/,".json"):g.output;S(o,t),console.log(e.green(`JSON report written to: ${o}`))}else console.log(`
|
|
4
4
|
`+t)}}function G(i,n,g){let r=new M("skill").description("Skill validation and reporting (ADR-056)");return r.command("report").description("Generate aggregated report from validation results").requiredOption("-i, --input <path>","Input file or directory containing validation results").option("-o, --output <path>","Output file path (default: stdout)").option("-f, --format <format>","Output format: markdown, json, or both","markdown").option("-b, --baseline <path>","Baseline directory for regression detection").option("--detect-regressions","Enable regression detection against historical data").option("--update-manifest","Update trust tier manifest with new pass rates").option("-t, --threshold <number>","Regression threshold (0-1)",parseFloat).option("-v, --verbose","Verbose output").action(async t=>{try{t.verbose&&(console.log(e.blue(`
|
|
5
5
|
Validation Result Aggregator`)),console.log(e.gray(`ADR-056 Phase 5
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{a as i,b as v,c as d,d as p}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{a as i,b as v,c as d,d as p}from"./chunk-I4TSLBEZ.js";import{a as h}from"./chunk-YJPNL6K4.js";import"./chunk-G4YZWVOV.js";import{a as k}from"./chunk-XLNWSI7Y.js";import"./chunk-YUV4EMRT.js";import"./chunk-AFSVRY7S.js";import"./chunk-MDXIESNH.js";import"./chunk-FI2JQJYJ.js";import"./chunk-FUKWABUF.js";import"./chunk-O22BAOMU.js";import"./chunk-7MLACLCT.js";import"./chunk-SH7IVDWV.js";import"./chunk-5RZ26J4J.js";import"./chunk-ZKNO5AR4.js";import"./chunk-6WKX2O66.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import"./chunk-ZH2WOQP3.js";import"./chunk-33VVPBAK.js";import"./chunk-5KOR5ZMG.js";import"./chunk-LCSDE5DQ.js";import"./chunk-YLZZZRB7.js";import"./chunk-UYTAAWAO.js";import"./chunk-7GLCWLZL.js";import"./chunk-ZDM6AWU6.js";import"./chunk-CKDW7YFV.js";import"./chunk-B5KYS65U.js";import"./chunk-M3FFEZFJ.js";import"./chunk-SVPX24HJ.js";import"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";import{Command as x}from"commander";import o from"chalk";function _(e,t,a){let c=new x("validate").description("Validation commands for skills and agents");return c.command("swarm").description("Validate skills in parallel using Claude Flow swarms (ADR-056)").option("-s, --skills <skills>",'Comma-separated list of skills to validate, or "all" for P0 skills',"all").option("-m, --models <models>","Comma-separated list of models to validate against",p.join(",")).option("-t, --topology <topology>","Swarm topology: hierarchical or mesh","hierarchical").option("--max-concurrent <number>","Maximum concurrent skill validations",String(i.maxConcurrentSkills)).option("--max-models <number>","Maximum concurrent models per skill",String(i.maxConcurrentModels)).option("--timeout <ms>","Timeout per validation in milliseconds",String(i.timeout)).option("--no-retry","Disable retries on failure").option("-v, --verbose","Show detailed output").option("--json","Output results as JSON").action(async l=>{if(await a())try{console.log(o.blue(`
|
|
3
3
|
Swarm Skill Validation
|
|
4
4
|
`));let r=l.skills==="all"?[...d]:l.skills.split(",").map(y=>y.trim()),u=l.models.split(",").map(y=>y.trim()),g=P(l.topology),n={topology:g,maxConcurrentSkills:parseInt(l.maxConcurrent,10)||i.maxConcurrentSkills,maxConcurrentModels:parseInt(l.maxModels,10)||i.maxConcurrentModels,timeout:parseInt(l.timeout,10)||i.timeout,continueOnFailure:!0,retry:l.retry!==!1?i.retry:void 0};l.verbose&&(console.log(o.gray("Configuration:")),console.log(o.gray(` Topology: ${n.topology}`)),console.log(o.gray(` Skills: ${r.length}`)),console.log(o.gray(` Models: ${u.length}`)),console.log(o.gray(` Max Concurrent Skills: ${n.maxConcurrentSkills}`)),console.log(o.gray(` Max Concurrent Models: ${n.maxConcurrentModels}`)),console.log(o.gray(` Timeout: ${n.timeout}ms`)),console.log(o.gray(` Retry: ${n.retry?"enabled":"disabled"}`)),console.log("")),console.log(o.cyan(` Skills: ${r.join(", ")}`)),console.log(o.cyan(` Models: ${u.join(", ")}`)),console.log(o.cyan(` Topology: ${g}`)),console.log("");let m=await R(e),f=k(m),C=v(n,f),w=Date.now();console.log(o.yellow(` Starting parallel validation...
|
|
5
5
|
`));let $=await C.validateSkillsParallel(r,u),s=C.getSummary($),b=Date.now()-w;l.json?T(s):V(s,l.verbose),console.log(o.blue(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{c as t}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{c as t}from"./chunk-IVRBWQBU.js";import{createRequire as o}from"module";var i,e,a,c,l,p,s,m,u,d,A,f,h,_,b,v,L,n=t(()=>{i=o(import.meta.url),e=i("vibium"),a=e,{RuvectorLayer:c,TensorCompress:l,differentiableSearch:p,hierarchicalForward:s,getCompressionLevel:m,init:u,FlashAttention:d,DotProductAttention:A,MultiHeadAttention:f,HyperbolicAttention:h,LinearAttention:_,MoEAttention:b,SonaEngine:v,pipeline:L}=e||{}});n();export{A as DotProductAttention,d as FlashAttention,h as HyperbolicAttention,_ as LinearAttention,b as MoEAttention,f as MultiHeadAttention,c as RuvectorLayer,v as SonaEngine,l as TensorCompress,a as default,p as differentiableSearch,m as getCompressionLevel,s as hierarchicalForward,u as init,L as pipeline};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{a}from"./chunk-IJNRJY2R.js";import"./chunk-ZJEPVWBV.js";import"./chunk-V7VCP42A.js";import"./chunk-5RZ26J4J.js";import"./chunk-ZKNO5AR4.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import"./chunk-ZH2WOQP3.js";import"./chunk-5KOR5ZMG.js";import"./chunk-LCSDE5DQ.js";import"./chunk-YLZZZRB7.js";import"./chunk-UYTAAWAO.js";import"./chunk-7GLCWLZL.js";import"./chunk-ZDM6AWU6.js";import"./chunk-CKDW7YFV.js";import"./chunk-B5KYS65U.js";import"./chunk-M3FFEZFJ.js";import"./chunk-SVPX24HJ.js";import"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";export{a as VisualSecurityTool};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import"./chunk-IVRBWQBU.js";import{createRequire as t}from"module";var o=t(import.meta.url),e=o("web-tree-sitter"),i=e,{RuvectorLayer:n,TensorCompress:a,differentiableSearch:c,hierarchicalForward:s,getCompressionLevel:l,init:p,FlashAttention:m,DotProductAttention:u,MultiHeadAttention:d,HyperbolicAttention:A,LinearAttention:f,MoEAttention:h,SonaEngine:_,pipeline:b}=e||{};export{u as DotProductAttention,m as FlashAttention,A as HyperbolicAttention,f as LinearAttention,h as MoEAttention,d as MultiHeadAttention,n as RuvectorLayer,_ as SonaEngine,a as TensorCompress,i as default,c as differentiableSearch,l as getCompressionLevel,s as hierarchicalForward,p as init,b as pipeline};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{b as u}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{b as u}from"./chunk-KCP5CS4C.js";import{a as f,c as h}from"./chunk-5KOR5ZMG.js";import"./chunk-IVRBWQBU.js";h();import{existsSync as i,mkdirSync as d,readFileSync as g,writeFileSync as a}from"fs";import{join as p,dirname as v}from"path";var c=class{projectRoot;overwrite;generator;constructor(e){this.projectRoot=e.projectRoot,this.overwrite=e.overwrite??!1,this.generator=u()}async install(){let e={success:!0,mcpConfigured:!1,rulesInstalled:!1,errors:[],configPath:"",rulesPath:""};try{let t=this.generator.generateMcpConfig("windsurf"),r=p(this.projectRoot,t.path);if(e.configPath=r,!i(r)||this.overwrite){let o=v(r);if(i(o)||d(o,{recursive:!0}),i(r)&&this.overwrite){let m=this.mergeExistingConfig(r,t.content);a(r,m)}else a(r,t.content);e.mcpConfigured=!0}let n=this.generator.generateBehavioralRules("windsurf"),s=p(this.projectRoot,n.path);if(e.rulesPath=s,!i(s)||this.overwrite){if(i(s)&&this.overwrite){let o=this.mergeExistingRules(s,n.content);a(s,o)}else a(s,n.content);e.rulesInstalled=!0}}catch(t){e.success=!1,e.errors.push(`Windsurf installation failed: ${f(t)}`)}return e}mergeExistingConfig(e,t){try{let r=JSON.parse(g(e,"utf-8")),n=JSON.parse(t);return r.mcpServers||(r.mcpServers={}),Object.assign(r.mcpServers,n.mcpServers),JSON.stringify(r,null,2)+`
|
|
3
3
|
`}catch{return t}}mergeExistingRules(e,t){try{let r=g(e,"utf-8");return r.includes("Agentic QE")||r.includes("fleet_init")?r:r.trimEnd()+`
|
|
4
4
|
|
|
5
5
|
---
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{a,b,c,d,e,f,g}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g}from"./chunk-6WKX2O66.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";export{c as PersistentWitnessChain,a as SPRTAccumulator,b as WitnessChain,f as createPersistentWitnessChain,e as createWitnessChain,d as createWitnessChainSQLitePersistence,g as isWitnessChainFeatureEnabled};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h}from"./chunk-JOSEPQIU.js";import"./chunk-5RZ26J4J.js";import"./chunk-ZKNO5AR4.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import"./chunk-ZH2WOQP3.js";import"./chunk-5KOR5ZMG.js";import"./chunk-YLZZZRB7.js";import"./chunk-UYTAAWAO.js";import"./chunk-7GLCWLZL.js";import"./chunk-ZDM6AWU6.js";import"./chunk-CKDW7YFV.js";import"./chunk-B5KYS65U.js";import"./chunk-M3FFEZFJ.js";import"./chunk-SVPX24HJ.js";import"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";export{a as GENESIS_PREV_HASH,f as WitnessChain,h as createWitnessChain,g as getWitnessChain,d as hashWith,e as serializeEntry,b as sha256,c as shake256};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import"./chunk-7NDBKLDK.js";import{b as $}from"./chunk-YG6ZRK5N.js";import{d as R}from"./chunk-T5YDBTD6.js";import{b as k,c as C,d as b}from"./chunk-TYR7ZETY.js";import{c as W}from"./chunk-ZH2WOQP3.js";import"./chunk-33VVPBAK.js";import"./chunk-5KOR5ZMG.js";import"./chunk-IVRBWQBU.js";import{Command as O}from"commander";import o from"chalk";function P(d,a){let m=d.indexOf("=");return m>0&&(a[d.substring(0,m)]=d.substring(m+1)),a}function x(d,a,m){let y=new O("workflow").description("Manage QE workflows and pipelines (ADR-041)");return y.command("run <file>").description("Execute a QE pipeline from YAML file").option("-w, --watch","Watch execution progress").option("-v, --verbose","Show detailed output").option("--params <json>","Additional parameters as JSON","{}").action(async(t,l)=>{if(!await m())return;let e=await import("fs"),c=(await import("path")).resolve(t);try{console.log(o.blue(`
|
|
3
3
|
Running workflow from: ${t}
|
|
4
4
|
`));let s=k(c);if(!s.success||!s.workflow){console.log(o.red("Failed to parse pipeline:"));for(let w of s.errors)console.log(o.red(` ${w}`));await a(1)}let r={...W(l.params,"params")};if(s.pipeline){for(let w of s.pipeline.stages)if(w.params)for(let[S,h]of Object.entries(w.params))r[S]=h}if(!d.workflowOrchestrator.getWorkflow(s.workflow.id)){let w=d.workflowOrchestrator.registerWorkflow(s.workflow);w.success||(console.log(o.red(`Failed to register workflow: ${w.error.message}`)),await a(1))}let n=await d.workflowOrchestrator.executeWorkflow(s.workflow.id,r);if(!n.success){console.log(o.red(`Failed to start workflow: ${n.error.message}`)),await a(1);return}let p=n.value;if(console.log(o.cyan(` Execution ID: ${p}`)),console.log(o.gray(` Workflow: ${s.workflow.name}`)),console.log(o.gray(` Stages: ${s.workflow.steps.length}`)),console.log(""),l.watch){console.log(o.blue(`Workflow Progress:
|
|
5
5
|
`));let w,S=Date.now();for(;;){let g=d.workflowOrchestrator.getWorkflowStatus(p);if(!g)break;if(!w||w.progress!==g.progress||w.status!==g.status||JSON.stringify(w.currentSteps)!==JSON.stringify(g.currentSteps)){process.stdout.write("\r\x1B[K");let v="\u2588".repeat(Math.floor(g.progress/5))+"\u2591".repeat(20-Math.floor(g.progress/5)),D=g.status==="completed"?o.green:g.status==="failed"?o.red:g.status==="running"?o.yellow:o.gray;console.log(` [${v}] ${g.progress}% - ${D(g.status)}`),g.currentSteps.length>0&&l.verbose&&console.log(o.gray(` Running: ${g.currentSteps.join(", ")}`)),w=g}if(g.status==="completed"||g.status==="failed"||g.status==="cancelled")break;await new Promise(v=>setTimeout(v,500))}let h=d.workflowOrchestrator.getWorkflowStatus(p);if(h){console.log("");let g=h.duration||Date.now()-S;h.status==="completed"?(console.log(o.green("Workflow completed successfully")),console.log(o.gray(` Duration: ${$(g)}`)),console.log(o.gray(` Completed: ${h.completedSteps.length} stages`)),h.skippedSteps.length>0&&console.log(o.yellow(` Skipped: ${h.skippedSteps.length} stages`))):h.status==="failed"?(console.log(o.red("Workflow failed")),console.log(o.red(` Error: ${h.error}`)),console.log(o.gray(` Failed stages: ${h.failedSteps.join(", ")}`))):console.log(o.yellow(`Workflow ${h.status}`))}}else console.log(o.green("Workflow execution started")),console.log(o.gray(` Use 'aqe workflow status ${p}' to check progress`));console.log(""),await a(0)}catch(s){console.error(o.red(`
|
|
@@ -35,10 +35,10 @@ Workflow cancelled: ${t}
|
|
|
35
35
|
`)):console.log(o.red(`
|
|
36
36
|
Failed to cancel workflow: ${l.error.message}
|
|
37
37
|
`)),await a(l.success?0:1)}catch(l){console.error(o.red(`
|
|
38
|
-
Failed to cancel workflow:`),l),await a(1)}}),y.command("browser-list").description("List available browser workflow templates").action(async()=>{try{let{BrowserWorkflowTool:t}=await import("./browser-workflow-
|
|
38
|
+
Failed to cancel workflow:`),l),await a(1)}}),y.command("browser-list").description("List available browser workflow templates").action(async()=>{try{let{BrowserWorkflowTool:t}=await import("./browser-workflow-FZ2BRH4H.js"),e=await new t().invoke({});if(e.success&&e.data){console.log(o.blue(`
|
|
39
39
|
Browser Workflow Templates:
|
|
40
40
|
`));for(let u of e.data.availableTemplates)console.log(` ${o.cyan(u)}`);console.log("")}else console.log(o.red(`Failed: ${e.error||"Unknown error"}`));await a(0)}catch(t){console.error(o.red(`
|
|
41
|
-
Failed:`),t),await a(1)}}),y.command("browser-load [template]").description("Load and validate a browser workflow template or inline YAML").option("--yaml <yaml>","Inline YAML workflow definition").option("-v, --var <key=value>","Variable override (repeatable)",P,{}).option("-F, --format <format>","Output format (text|json)","text").option("-o, --output <path>","Write output to file").action(async(t,l)=>{try{let{BrowserWorkflowTool:e}=await import("./browser-workflow-
|
|
41
|
+
Failed:`),t),await a(1)}}),y.command("browser-load [template]").description("Load and validate a browser workflow template or inline YAML").option("--yaml <yaml>","Inline YAML workflow definition").option("-v, --var <key=value>","Variable override (repeatable)",P,{}).option("-F, --format <format>","Output format (text|json)","text").option("-o, --output <path>","Write output to file").action(async(t,l)=>{try{let{BrowserWorkflowTool:e}=await import("./browser-workflow-FZ2BRH4H.js"),{writeOutput:u,toJSON:c}=await import("./ci-output-5NU5WEOG.js"),s=new e,f={variables:l.var||{}};if(l.yaml)f.workflowYaml=l.yaml;else if(t)if(t.endsWith(".yaml")||t.endsWith(".yml")){let i=await import("fs"),p=(await import("path")).resolve(t);i.existsSync(p)||(console.log(o.red(`
|
|
42
42
|
File not found: ${p}
|
|
43
43
|
`)),await a(1)),f.workflowYaml=i.readFileSync(p,"utf-8")}else f.templateName=t;else console.log(o.red(`
|
|
44
44
|
Provide a template name or --yaml. Use "workflow browser-list" to see templates.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{a,b,c,d}from"./chunk-VPF2RECU.js";import"./chunk-UEADBMAA.js";import"./chunk-5RZ26J4J.js";import"./chunk-ZKNO5AR4.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import"./chunk-ZH2WOQP3.js";import"./chunk-33VVPBAK.js";import"./chunk-5KOR5ZMG.js";import"./chunk-LCSDE5DQ.js";import"./chunk-YLZZZRB7.js";import"./chunk-UYTAAWAO.js";import"./chunk-7GLCWLZL.js";import"./chunk-ZDM6AWU6.js";import"./chunk-CKDW7YFV.js";import"./chunk-B5KYS65U.js";import"./chunk-M3FFEZFJ.js";import"./chunk-SVPX24HJ.js";import"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";export{b as DEFAULT_WORKFLOW_CONFIG,a as WorkflowEvents,c as WorkflowOrchestrator,d as createWorkflowOrchestrator};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v as L,w as M,x as N}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.28");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v as L,w as M,x as N}from"./chunk-AL7LMXTA.js";import"./chunk-5RZ26J4J.js";import"./chunk-ZKNO5AR4.js";import"./chunk-4R6DN7IO.js";import"./chunk-PMWIZ7TC.js";import{a as v,b as w,c as x,d as y,e as z,f as A,g as B,h as C,i as D,j as E,k as F,l as G,m as H,n as I,o as J,p as K}from"./chunk-PNLEMDLY.js";import"./chunk-ZH2WOQP3.js";import"./chunk-5KOR5ZMG.js";import"./chunk-YLZZZRB7.js";import"./chunk-UYTAAWAO.js";import"./chunk-7GLCWLZL.js";import"./chunk-ZDM6AWU6.js";import"./chunk-CKDW7YFV.js";import"./chunk-B5KYS65U.js";import"./chunk-M3FFEZFJ.js";import"./chunk-SVPX24HJ.js";import"./chunk-GECEU6U3.js";import"./chunk-IVRBWQBU.js";export{z as GNNLayerFactory,i as QEFlashAttention,x as QEGNNEmbeddingIndex,y as QEGNNIndexFactory,a as QESONA,e as QE_FLASH_ATTENTION_CONFIG,g as QE_PERFORMANCE_TARGETS,f as QE_SONA_CONFIG,A as TensorCompressionFactory,u as batchComputeAttention,K as batchDifferentiableSearch,M as checkRuvectorPackagesAvailable,c as createDomainQESONA,j as createQEFlashAttention,b as createQESONA,D as getDifferentiableSearch,F as getGetCompressionLevel,E as getHierarchicalForward,G as getInit,h as getOptimalBlockConfig,k as getQEFlashAttentionConfig,n as getRuvectorDotProductAttention,m as getRuvectorFlashAttention,p as getRuvectorHyperbolicAttention,B as getRuvectorLayer,q as getRuvectorLinearAttention,r as getRuvectorMoEAttention,o as getRuvectorMultiHeadAttention,L as getRuvectorPackageVersions,C as getTensorCompress,l as getWorkloadTypes,N as initAllRuvectorPackages,w as initGNN,d as isAttentionAvailable,v as isGNNAvailable,s as toFloat32Array,H as toFloat32ArrayGNN,J as toIEmbedding,t as toNumberArrayAttn,I as toNumberArrayGNN};
|
|
@@ -95,6 +95,8 @@ export function createFleetCommand(context, cleanupAndExit, ensureInitialized, r
|
|
|
95
95
|
hnswEnabled: true,
|
|
96
96
|
lazyLoading,
|
|
97
97
|
enabledDomains,
|
|
98
|
+
// CLI fleet command — short-lived; no need for the bridge.
|
|
99
|
+
enableExperienceBridge: false,
|
|
98
100
|
});
|
|
99
101
|
await context.kernel.initialize();
|
|
100
102
|
console.log(chalk.green(' * Kernel initialized'));
|
|
@@ -77,11 +77,23 @@ export async function initializeHooksSystem() {
|
|
|
77
77
|
embeddingDimension: 384,
|
|
78
78
|
useONNXEmbeddings: true, // Use real transformer embeddings (384-dim)
|
|
79
79
|
}, state.coherenceService ?? undefined);
|
|
80
|
-
// Initialize with timeout
|
|
80
|
+
// Initialize with cancellable timeout (issue #478).
|
|
81
|
+
//
|
|
82
|
+
// We can't use Promise.race() to bound initialize() because the loser
|
|
83
|
+
// promise keeps running — and on a slow init the leaked promise would
|
|
84
|
+
// continue appending to patterns.rvf indefinitely (downstream report:
|
|
85
|
+
// 43.8 GB in 29 minutes). Instead, drive cancellation through an
|
|
86
|
+
// AbortSignal that initialize() checks between every step, so the
|
|
87
|
+
// work actually stops when the deadline fires.
|
|
81
88
|
const initTimeout = 10000; // 10 seconds
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
|
|
89
|
+
const controller = new AbortController();
|
|
90
|
+
const timer = setTimeout(() => controller.abort(new Error('ReasoningBank init timeout')), initTimeout);
|
|
91
|
+
try {
|
|
92
|
+
await state.reasoningBank.initialize({ signal: controller.signal });
|
|
93
|
+
}
|
|
94
|
+
finally {
|
|
95
|
+
clearTimeout(timer);
|
|
96
|
+
}
|
|
85
97
|
// Wire RVF dual-writer for vector replication (optional, best-effort)
|
|
86
98
|
try {
|
|
87
99
|
const { getSharedRvfDualWriter } = await import('../../../integrations/ruvector/shared-rvf-dual-writer.js');
|
|
@@ -170,9 +182,30 @@ export async function createHybridBackendWithTimeout(dataDir) {
|
|
|
170
182
|
enableFallback: true,
|
|
171
183
|
defaultNamespace: 'qe-patterns',
|
|
172
184
|
});
|
|
185
|
+
// HybridMemoryBackend.initialize() does not accept an AbortSignal yet
|
|
186
|
+
// (separate refactor). Use Promise.race for the timeout, but if the
|
|
187
|
+
// timeout wins, dispose the backend once init resolves so we don't leak
|
|
188
|
+
// SQLite/WAL handles in the background (issue #478 family).
|
|
189
|
+
let timedOut = false;
|
|
173
190
|
const initPromise = backend.initialize();
|
|
174
|
-
const timeoutPromise = new Promise((_, reject) => setTimeout(() =>
|
|
175
|
-
|
|
191
|
+
const timeoutPromise = new Promise((_, reject) => setTimeout(() => {
|
|
192
|
+
timedOut = true;
|
|
193
|
+
reject(new Error('Backend init timeout'));
|
|
194
|
+
}, timeoutMs));
|
|
195
|
+
try {
|
|
196
|
+
await Promise.race([initPromise, timeoutPromise]);
|
|
197
|
+
}
|
|
198
|
+
catch (err) {
|
|
199
|
+
if (timedOut) {
|
|
200
|
+
// Tear down the backend after the leaked init completes so its
|
|
201
|
+
// SQLite connections, WAL handles, and pool entries are released.
|
|
202
|
+
// .catch() prevents "unhandled rejection" if dispose itself throws.
|
|
203
|
+
void initPromise
|
|
204
|
+
.then(() => backend.dispose())
|
|
205
|
+
.catch(() => undefined);
|
|
206
|
+
}
|
|
207
|
+
throw err;
|
|
208
|
+
}
|
|
176
209
|
return backend;
|
|
177
210
|
}
|
|
178
211
|
/**
|
|
@@ -311,6 +311,8 @@ export class InitHandler {
|
|
|
311
311
|
hnswEnabled: true,
|
|
312
312
|
lazyLoading: options.lazy || false,
|
|
313
313
|
enabledDomains,
|
|
314
|
+
// CLI init handler — one-shot; no need for the bridge.
|
|
315
|
+
enableExperienceBridge: false,
|
|
314
316
|
});
|
|
315
317
|
await context.kernel.initialize();
|
|
316
318
|
console.log(chalk.green(' * Kernel initialized'));
|
package/dist/cli/index.js
CHANGED
|
@@ -103,6 +103,9 @@ async function autoInitialize() {
|
|
|
103
103
|
hnswEnabled: true,
|
|
104
104
|
lazyLoading: true,
|
|
105
105
|
enabledDomains: [...ALL_DOMAINS],
|
|
106
|
+
// CLI commands are short-lived and don't benefit from the bridge's
|
|
107
|
+
// event-driven domain reactions. Skip the eager plugin-load cost.
|
|
108
|
+
enableExperienceBridge: false,
|
|
106
109
|
});
|
|
107
110
|
await context.kernel.initialize();
|
|
108
111
|
context.router = new CrossDomainEventRouter(context.kernel.eventBus);
|