agentic-qe 3.9.21 → 3.9.22
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 +30 -0
- package/assets/skills/skills-manifest.json +1 -1
- package/dist/cli/bundle.js +5 -5
- package/dist/cli/chunks/adapter-4RFY4QQP.js +2 -0
- package/dist/cli/chunks/{agent-booster-wasm-55SQPP6T.js → agent-booster-wasm-GUS4CPIF.js} +2 -2
- package/dist/cli/chunks/{agent-handler-Q2UXL73Y.js → agent-handler-X3JM3LAL.js} +2 -2
- package/dist/cli/chunks/{agent-memory-branch-56GIYNGH.js → agent-memory-branch-DZVV32I2.js} +2 -2
- package/dist/cli/chunks/aqe-learning-engine-CJ5UDPJ6.js +2 -0
- package/dist/cli/chunks/{audit-2JQ3URVN.js → audit-LO2I2D4V.js} +2 -2
- package/dist/cli/chunks/base-EEBZKFSN.js +2 -0
- package/dist/cli/chunks/{hnswlib-node-UHEP6UZZ.js → better-sqlite3-MQACUCZV.js} +2 -2
- package/dist/cli/chunks/{brain-handler-TOOZFEK5.js → brain-handler-SW6BDUVF.js} +3 -3
- package/dist/cli/chunks/{branch-enumerator-2BLPN73D.js → branch-enumerator-COUIEIXT.js} +2 -2
- package/dist/cli/chunks/{browser-FSVNN36N.js → browser-I3KE2PKR.js} +2 -2
- package/dist/cli/chunks/browser-workflow-KDNXNC7W.js +2 -0
- package/dist/cli/chunks/{chunk-S5RNBBJ6.js → chunk-2ABN34GT.js} +2 -2
- package/dist/cli/chunks/{chunk-NGT3VL66.js → chunk-2OQVDOCP.js} +2 -2
- package/dist/cli/chunks/{chunk-SIW4N4NE.js → chunk-34V7MJEC.js} +4 -4
- package/dist/cli/chunks/{chunk-YS5WV3CJ.js → chunk-3M7EAXED.js} +1 -1
- package/dist/cli/chunks/{chunk-PGHTRQK6.js → chunk-3UPELJAD.js} +2 -2
- package/dist/cli/chunks/{chunk-QU3VFWZZ.js → chunk-46X57677.js} +8 -8
- package/dist/cli/chunks/{chunk-ND2TFQF5.js → chunk-4KIDHFF3.js} +1 -1
- package/dist/cli/chunks/{chunk-WL5IRCU4.js → chunk-5D6UQZG6.js} +2 -2
- package/dist/cli/chunks/{chunk-VQXHHEPD.js → chunk-5HUFNSCO.js} +2 -2
- package/dist/cli/chunks/{chunk-NV6AUEIH.js → chunk-5Q4HS3PB.js} +2 -2
- package/dist/cli/chunks/{chunk-RIVX6YLS.js → chunk-5QP4OPZM.js} +2 -2
- package/dist/cli/chunks/{chunk-GLQ6LLKC.js → chunk-5VE5R2B4.js} +1 -1
- package/dist/cli/chunks/{chunk-D24HN6BG.js → chunk-5WE7JRVM.js} +1 -1
- package/dist/cli/chunks/{chunk-G7ZYDJZ3.js → chunk-6EBWEMJJ.js} +2 -2
- package/dist/cli/chunks/{chunk-AMOCYHP3.js → chunk-6I6LXONA.js} +2 -2
- package/dist/cli/chunks/{chunk-TOE6DKE4.js → chunk-6KHLLAFS.js} +1 -1
- package/dist/cli/chunks/{chunk-VGAG5TG7.js → chunk-75EXWLL2.js} +1 -1
- package/dist/cli/chunks/{chunk-4ZUXTOUG.js → chunk-75EZBOLF.js} +1 -1
- package/dist/cli/chunks/{chunk-ZUTYZIWQ.js → chunk-76JSNSX5.js} +2 -2
- package/dist/cli/chunks/{chunk-V5AVC4D4.js → chunk-77CR3VJL.js} +2 -2
- package/dist/cli/chunks/{chunk-LYZUB3NP.js → chunk-7BKQTKKO.js} +1 -1
- package/dist/cli/chunks/{chunk-I3HLZASP.js → chunk-7TASYE2O.js} +2 -2
- package/dist/cli/chunks/{chunk-GDZ6XQRI.js → chunk-7TWDEXR4.js} +1 -1
- package/dist/cli/chunks/{chunk-TMKJXKY2.js → chunk-7V2KGOFN.js} +2 -2
- package/dist/cli/chunks/{chunk-KRXJ7LFP.js → chunk-AKBYBOUV.js} +1 -1
- package/dist/cli/chunks/{chunk-OK5JHHXK.js → chunk-ASJWT2HO.js} +1 -1
- package/dist/cli/chunks/{chunk-4O7YJIOS.js → chunk-BAIQZTBO.js} +2 -2
- package/dist/cli/chunks/{chunk-S3TU7B7D.js → chunk-BVFRL52U.js} +2 -2
- package/dist/cli/chunks/{chunk-3Y7OZ2PC.js → chunk-C2ROCY2Y.js} +2 -2
- package/dist/cli/chunks/{chunk-SMBQERK7.js → chunk-C32ZD3IM.js} +2 -2
- package/dist/cli/chunks/{chunk-IS6IES7Q.js → chunk-CWINAMA7.js} +1 -1
- package/dist/cli/chunks/{chunk-ACOEV3YB.js → chunk-CYHVGDGJ.js} +2 -2
- package/dist/cli/chunks/chunk-D4GHYV5T.js +2 -0
- package/dist/cli/chunks/{chunk-HC4VOQZJ.js → chunk-D4RS57YM.js} +2 -2
- package/dist/cli/chunks/{chunk-FBCLQTXO.js → chunk-DLOY6QOK.js} +2 -2
- package/dist/cli/chunks/{chunk-NJICCYCB.js → chunk-EAEF52EW.js} +2 -2
- package/dist/cli/chunks/{chunk-5EYQP3V3.js → chunk-EBFG55L3.js} +2 -2
- package/dist/cli/chunks/{chunk-QERANESS.js → chunk-EHIS2X2O.js} +2 -2
- package/dist/cli/chunks/{chunk-NKOGDRZE.js → chunk-EIOC2ZBV.js} +2 -2
- package/dist/cli/chunks/{chunk-4Z4C7BXV.js → chunk-ELYTUR3K.js} +1 -1
- package/dist/cli/chunks/{chunk-HRHKLRBB.js → chunk-EP65OKY3.js} +1 -1
- package/dist/cli/chunks/{chunk-34BTSZ5D.js → chunk-F5PYXTN6.js} +1 -1
- package/dist/cli/chunks/{chunk-2AEWOQWU.js → chunk-F6S2BURJ.js} +2 -2
- package/dist/cli/chunks/{chunk-RDUIN7LO.js → chunk-F76YPLIC.js} +1 -1
- package/dist/cli/chunks/{chunk-WY3H7VHF.js → chunk-FN33YLS4.js} +2 -2
- package/dist/cli/chunks/{chunk-PAXSPZ3F.js → chunk-G35AFB22.js} +2 -2
- package/dist/cli/chunks/{chunk-44BAZASI.js → chunk-GE4ABLTW.js} +1 -1
- package/dist/cli/chunks/{chunk-TCNJ5NGT.js → chunk-H2CDS62D.js} +2 -2
- package/dist/cli/chunks/{chunk-TFAS5UND.js → chunk-HHTTDWS2.js} +3 -3
- package/dist/cli/chunks/{chunk-GJGFPXWG.js → chunk-IPWO26NP.js} +2 -2
- package/dist/cli/chunks/{chunk-F4VJ4PPI.js → chunk-J47LS6JI.js} +18 -22
- package/dist/cli/chunks/{chunk-KYPN6G7T.js → chunk-J4DENED7.js} +2 -2
- package/dist/cli/chunks/{chunk-Y36AJ462.js → chunk-JNRUY2BU.js} +2 -2
- package/dist/cli/chunks/{chunk-J3GG3Q4X.js → chunk-JTTEDSP5.js} +2 -2
- package/dist/cli/chunks/{chunk-LHXIAPKR.js → chunk-KA22YYYW.js} +2 -2
- package/dist/cli/chunks/{chunk-YVPPR33H.js → chunk-KBWJRXYS.js} +2 -2
- package/dist/cli/chunks/{chunk-KID7PTBZ.js → chunk-KEXERBH2.js} +2 -2
- package/dist/cli/chunks/{chunk-EVWNZEYV.js → chunk-KXVCKQ2O.js} +1 -1
- package/dist/cli/chunks/{chunk-XEMVYJ2Z.js → chunk-L2D56OS2.js} +3 -3
- package/dist/cli/chunks/{chunk-5PZG4WUA.js → chunk-LCOVR5PF.js} +3 -3
- package/dist/cli/chunks/{chunk-T5Z5LL5Y.js → chunk-LFUJSR5V.js} +3 -3
- package/dist/cli/chunks/{chunk-65U55JIH.js → chunk-LSPQUQZQ.js} +3 -3
- package/dist/cli/chunks/{chunk-FZ2SYLSK.js → chunk-LVW2AMCE.js} +1 -1
- package/dist/cli/chunks/{chunk-HIEP3L7H.js → chunk-MGTHNWDX.js} +2 -2
- package/dist/cli/chunks/{chunk-DBW745QA.js → chunk-MHV7VXPW.js} +2 -2
- package/dist/cli/chunks/{chunk-CJKR47YY.js → chunk-N242BGZS.js} +1 -1
- package/dist/cli/chunks/{chunk-V6GJ3EMZ.js → chunk-N7LNGYUI.js} +1 -1
- package/dist/cli/chunks/{chunk-4XZPDEK5.js → chunk-NDBSIHGC.js} +1 -1
- package/dist/cli/chunks/{chunk-KENZAFI2.js → chunk-NKHHOJBJ.js} +2 -2
- package/dist/cli/chunks/{chunk-OXXCWRFU.js → chunk-O2RWRFY2.js} +1 -1
- package/dist/cli/chunks/{chunk-P4Q5TMDH.js → chunk-OLDHOXH5.js} +2 -2
- package/dist/cli/chunks/{chunk-ADC73GLJ.js → chunk-P3CE2OST.js} +2 -2
- package/dist/cli/chunks/{chunk-E55MYZGP.js → chunk-PC3NYFID.js} +2 -2
- package/dist/cli/chunks/{chunk-HJCJWPN5.js → chunk-PJQVLSZL.js} +2 -2
- package/dist/cli/chunks/{chunk-PEOTZFNZ.js → chunk-PUBADXN6.js} +2 -2
- package/dist/cli/chunks/{chunk-MJGMH7TW.js → chunk-Q4Q4ZPEO.js} +2 -2
- package/dist/cli/chunks/{chunk-KDOA7YHW.js → chunk-Q6NM3PHP.js} +2 -2
- package/dist/cli/chunks/{chunk-5FNEOJSD.js → chunk-QBQHA2PQ.js} +2 -2
- package/dist/cli/chunks/{chunk-AT25VXEO.js → chunk-QBY4LMKC.js} +1 -1
- package/dist/cli/chunks/{chunk-OEB3V633.js → chunk-QH5PMTYD.js} +2 -2
- package/dist/cli/chunks/{chunk-MYZ43VKA.js → chunk-QKDYDDO6.js} +2 -2
- package/dist/cli/chunks/{chunk-VQLHHNOH.js → chunk-QUASI6T7.js} +2 -2
- package/dist/cli/chunks/{chunk-GB6ATLR3.js → chunk-QXFPR4ND.js} +2 -2
- package/dist/cli/chunks/{chunk-6OYRNNP2.js → chunk-QYUA3QRO.js} +1 -1
- package/dist/cli/chunks/{chunk-NS2ZWXUK.js → chunk-RDFBNLOP.js} +3 -3
- package/dist/cli/chunks/{chunk-UOLIGPDW.js → chunk-RHJXNBT5.js} +2 -2
- package/dist/cli/chunks/{chunk-IM7X6BDZ.js → chunk-SBXMNI7G.js} +2 -2
- package/dist/cli/chunks/{chunk-GR4RXQXV.js → chunk-SEFMGIDM.js} +2 -2
- package/dist/cli/chunks/{chunk-RHAUASC6.js → chunk-SZXKDWNU.js} +2 -2
- package/dist/cli/chunks/{chunk-QREO5LNR.js → chunk-T62S7PHC.js} +1 -1
- package/dist/cli/chunks/{chunk-63PHZGO2.js → chunk-T6SZZ6GL.js} +2 -2
- package/dist/cli/chunks/{chunk-ETEV7IZI.js → chunk-TF33AXXK.js} +1 -1
- package/dist/cli/chunks/{chunk-AEQNCDYD.js → chunk-TFEEZPAV.js} +2 -2
- package/dist/cli/chunks/{chunk-QSLXOYPR.js → chunk-U33MB6BS.js} +4 -4
- package/dist/cli/chunks/{chunk-ICPQR533.js → chunk-UG4NLJ6S.js} +2 -2
- package/dist/cli/chunks/{chunk-KWPPF7O4.js → chunk-UJQ4APLZ.js} +2 -2
- package/dist/cli/chunks/{chunk-LP52AQE2.js → chunk-UZ5D7CNQ.js} +2 -2
- package/dist/cli/chunks/{chunk-S6FFUCVZ.js → chunk-V6FH47RF.js} +4 -4
- package/dist/cli/chunks/{chunk-E7J32PW2.js → chunk-VBNVPKPJ.js} +2 -2
- package/dist/cli/chunks/{chunk-7P4IZQVQ.js → chunk-VEQZARRH.js} +2 -2
- package/dist/cli/chunks/{chunk-ISNDQOXC.js → chunk-WXM3QRV3.js} +2 -2
- package/dist/cli/chunks/{chunk-SMAC5IX4.js → chunk-X3UEZQIH.js} +2 -2
- package/dist/cli/chunks/{chunk-56DGV2Q3.js → chunk-XNLRBJLS.js} +1 -1
- package/dist/cli/chunks/{chunk-HMMJ6ZI6.js → chunk-XRTQMK2J.js} +2 -2
- package/dist/cli/chunks/{chunk-QPSPIESU.js → chunk-XZLXDSDH.js} +2 -2
- package/dist/cli/chunks/{chunk-G276EI3G.js → chunk-YBPODHK5.js} +2 -2
- package/dist/cli/chunks/{chunk-ROC2SSV3.js → chunk-YCG6NXTH.js} +3 -3
- package/dist/cli/chunks/{chunk-C4CZXAOE.js → chunk-YJ3KKNS5.js} +2 -2
- package/dist/cli/chunks/{chunk-DQI5ZR34.js → chunk-YT45LRYT.js} +1 -1
- package/dist/cli/chunks/{chunk-E2XIPBJ7.js → chunk-ZHJL5MGV.js} +1 -1
- package/dist/cli/chunks/{chunk-WI5HBS3C.js → chunk-ZIRSR3CR.js} +2 -2
- package/dist/cli/chunks/{chunk-6MGACOLN.js → chunk-ZTVYRPXO.js} +1 -1
- package/dist/cli/chunks/{chunk-E5TGH4V3.js → chunk-ZYLONMC3.js} +2 -2
- package/dist/cli/chunks/{chunk-YVG4D6P3.js → chunk-ZYVFF2GF.js} +1 -1
- package/dist/cli/chunks/{chunk-YH7BAX7S.js → chunk-ZZD2O63H.js} +1 -1
- package/dist/cli/chunks/{ci-GU2HBK5E.js → ci-KE7FOGU7.js} +2 -2
- package/dist/cli/chunks/{ci-output-FGZTTY3R.js → ci-output-22E7MB4A.js} +2 -2
- package/dist/cli/chunks/{circuit-breaker-6UNLOLMW.js → circuit-breaker-AVTSU65L.js} +2 -2
- package/dist/cli/chunks/{claude-flow-setup-SCOCIDBC.js → claude-flow-setup-UWD5DRUE.js} +2 -2
- package/dist/cli/chunks/client-GNL46JU5.js +2 -0
- package/dist/cli/chunks/{cline-installer-G6PQERGI.js → cline-installer-H3MJDJKK.js} +2 -2
- package/dist/cli/chunks/{code-RNKTYBI4.js → code-3G4FPMSZ.js} +2 -2
- package/dist/cli/chunks/{code-index-extractor-A6KAUQOU.js → code-index-extractor-PBZIQOI5.js} +2 -2
- package/dist/cli/chunks/{codex-installer-ABWDMKEX.js → codex-installer-M4P7K7LO.js} +2 -2
- package/dist/cli/chunks/{completions-TB4E6O46.js → completions-WWUW6CX4.js} +2 -2
- package/dist/cli/chunks/{complexity-analyzer-XS37O7OR.js → complexity-analyzer-H2F37PAW.js} +2 -2
- package/dist/cli/chunks/{continuedev-installer-WDY6O2SR.js → continuedev-installer-NSUF5Y6W.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-SDJ3GYLU.js → copilot-installer-BHFKNSU4.js} +2 -2
- package/dist/cli/chunks/{cost-tracker-MWEXRK7F.js → cost-tracker-QTQ32PGG.js} +2 -2
- package/dist/cli/chunks/{coverage-Y3KDB56G.js → coverage-LCBTTMUE.js} +3 -3
- package/dist/cli/chunks/cross-domain-router-2JHRNGD7.js +2 -0
- package/dist/cli/chunks/{cursor-installer-4U7XENLX.js → cursor-installer-KBWXMRRA.js} +2 -2
- package/dist/cli/chunks/{daemon-D6R3BPBJ.js → daemon-UYTVWZOZ.js} +3 -3
- package/dist/cli/chunks/{dag-attention-scheduler-EMVUX6ES.js → dag-attention-scheduler-3WVICTLD.js} +2 -2
- package/dist/cli/chunks/{detect-QIJPCTZO.js → detect-R3CMY3ZB.js} +2 -2
- package/dist/cli/chunks/{dist-node-4ZYBZKOB.js → dist-node-OALHZZ67.js} +2 -2
- package/dist/cli/chunks/{domain-handler-X6CTXJQF.js → domain-handler-QWZEBRVB.js} +2 -2
- package/dist/cli/chunks/{domain-transfer-HK4ER37F.js → domain-transfer-BO2XBDRA.js} +2 -2
- package/dist/cli/chunks/dream-XDWOQVNR.js +2 -0
- package/dist/cli/chunks/{embed-and-insert-pattern-XKTD5DQ3.js → embed-and-insert-pattern-YJJ5MHIV.js} +2 -2
- package/dist/cli/chunks/{eval-WEEB3CHY.js → eval-BIDGZOD7.js} +2 -2
- package/dist/cli/chunks/experience-capture-middleware-SBZNJVIN.js +40 -0
- package/dist/cli/chunks/{fast-paths-M2ENEKQX.js → fast-paths-W6FORZ7G.js} +2 -2
- package/dist/cli/chunks/{feature-flags-3WIZC67K.js → feature-flags-25T4IUQL.js} +2 -2
- package/dist/cli/chunks/{feature-flags-CZQXGFGX.js → feature-flags-A4YTFMSI.js} +2 -2
- package/dist/cli/chunks/{file-discovery-ERTPM3C4.js → file-discovery-S4GNW5SS.js} +2 -2
- package/dist/cli/chunks/{fleet-WBEPTBQR.js → fleet-QTXBVBXM.js} +3 -3
- package/dist/cli/chunks/{gnn-wrapper-GVRS33BK.js → gnn-wrapper-S3HPS6UZ.js} +2 -2
- package/dist/cli/chunks/{heartbeat-handler-JQ6NSC6T.js → heartbeat-handler-Z536VVQ4.js} +4 -4
- package/dist/cli/chunks/{heartbeat-scheduler-7XHIE6IV.js → heartbeat-scheduler-ECHKRR2V.js} +2 -2
- package/dist/cli/chunks/hnsw-adapter-ELKAHTIH.js +2 -0
- package/dist/cli/chunks/hnsw-index-3VJYUSOM.js +2 -0
- package/dist/cli/chunks/{hnsw-legacy-bridge-TYO6GZ6Z.js → hnsw-legacy-bridge-NR2LB4MK.js} +2 -2
- package/dist/cli/chunks/{better-sqlite3-XGA7Z5YL.js → hnswlib-node-VHJGVLVU.js} +2 -2
- package/dist/cli/chunks/{hooks-2GU7LGNL.js → hooks-K6B7FOWK.js} +10 -10
- package/dist/cli/chunks/{hybrid-router-Z5V4E5SJ.js → hybrid-router-PWEAUPDI.js} +2 -2
- package/dist/cli/chunks/{hypergraph-engine-F435AM7S.js → hypergraph-engine-2GMPZADI.js} +2 -2
- package/dist/cli/chunks/{hypergraph-handler-DQMYDUQY.js → hypergraph-handler-7EZBLA7J.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-4BLPFGDS.js +2 -0
- package/dist/cli/chunks/{init-handler-Y4NPRT2W.js → init-handler-IC2REBTQ.js} +6 -6
- package/dist/cli/chunks/init-wizard-UR23AJFX.js +2 -0
- package/dist/cli/chunks/kernel-BTP323I5.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-EUTWNH4I.js → kilocode-installer-O7CW3AWL.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-I3ECJ37F.js → kiro-installer-PCUKTCMG.js} +2 -2
- package/dist/cli/chunks/knowledge-graph-JH3O5ZMS.js +2 -0
- package/dist/cli/chunks/{learning-5FW7N6DA.js → learning-X6GZCD2J.js} +3 -3
- package/dist/cli/chunks/{llm-router-ZRYFNNPU.js → llm-router-K7S7VYA3.js} +4 -4
- package/dist/cli/chunks/{load-7BF33NMJ.js → load-RHLRH7M5.js} +2 -2
- package/dist/cli/chunks/load-test-E6GTBB2W.js +2 -0
- package/dist/cli/chunks/{mcp-7K6P7FMG.js → mcp-RGHX7REI.js} +2 -2
- package/dist/cli/chunks/{memory-O2DCN3GS.js → memory-BDEEXPIV.js} +5 -5
- package/dist/cli/chunks/memory-backend-FAOO6R3B.js +2 -0
- package/dist/cli/chunks/{memory-handlers-WA63DMQ4.js → memory-handlers-PR5ZSN5E.js} +2 -2
- package/dist/cli/chunks/{multi-model-executor-SJXBFOK5.js → multi-model-executor-SGVRJWI5.js} +2 -2
- package/dist/cli/chunks/{opencode-installer-PE7ZV6SV.js → opencode-installer-3ZWQ7Q5S.js} +2 -2
- package/dist/cli/chunks/{orchestrator-N4GT5IGY.js → orchestrator-O5EZXLG6.js} +5 -5
- package/dist/cli/chunks/{pipeline-DUTGGNO6.js → pipeline-LW7SFRRB.js} +2 -2
- package/dist/cli/chunks/{platform-EGUD7X2R.js → platform-DIISFS5U.js} +2 -2
- package/dist/cli/chunks/{plugin-6ZS3HK43.js → plugin-B563LDGV.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-B5S4RUJS.js → prime-radiant-advanced-wasm-FJBQPN3U.js} +2 -2
- package/dist/cli/chunks/protocol-executor-AYBNZNRK.js +2 -0
- package/dist/cli/chunks/{protocol-handler-Z3QDY7O6.js → protocol-handler-PVZNJNNP.js} +2 -2
- package/dist/cli/chunks/{prove-TQHP2XVD.js → prove-MYKQTKZM.js} +2 -2
- package/dist/cli/chunks/{provider-manager-2JFXKYMZ.js → provider-manager-RDOMJIKC.js} +2 -2
- package/dist/cli/chunks/qe-reasoning-bank-LFMZCMKB.js +2 -0
- package/dist/cli/chunks/{quality-NXDHVPAS.js → quality-OOXFIM76.js} +2 -2
- package/dist/cli/chunks/queen-coordinator-JEGURMXS.js +2 -0
- package/dist/cli/chunks/{real-embeddings-P2LYDBVF.js → real-embeddings-JQVUQQKL.js} +2 -2
- package/dist/cli/chunks/{roocode-installer-YSRXO4W4.js → roocode-installer-G7ZV5Z3V.js} +2 -2
- package/dist/cli/chunks/router-LMESYCAS.js +2 -0
- package/dist/cli/chunks/routing-feedback-3GOMFT5Q.js +2 -0
- package/dist/cli/chunks/{routing-handler-HVDQQF34.js → routing-handler-W5XOGRVI.js} +2 -2
- package/dist/cli/chunks/{ruvector-commands-5NJ5FQ3E.js → ruvector-commands-YBR64EE3.js} +2 -2
- package/dist/cli/chunks/{rvf-dual-writer-GZ2HIIKX.js → rvf-dual-writer-XIDYK3CA.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-adapter-QKEYGJFL.js → rvf-migration-adapter-6FJ7XRBL.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-coordinator-5RBME46Y.js → rvf-migration-coordinator-7GD7BGUG.js} +2 -2
- package/dist/cli/chunks/rvf-native-adapter-MEKCU4HV.js +2 -0
- package/dist/cli/chunks/safe-db-PZBRYCSI.js +2 -0
- package/dist/cli/chunks/schedule-NXQZQIBV.js +2 -0
- package/dist/cli/chunks/scheduler-I3HGTMNU.js +2 -0
- package/dist/cli/chunks/{security-KB4TOOFJ.js → security-5RH45PGS.js} +3 -3
- package/dist/cli/chunks/shared-rvf-adapter-5QLSVTXS.js +2 -0
- package/dist/cli/chunks/{shared-rvf-dual-writer-UMDFMGVS.js → shared-rvf-dual-writer-A7T5EJ3W.js} +2 -2
- package/dist/cli/chunks/sqlite-persistence-3MEKZAPX.js +2 -0
- package/dist/cli/chunks/{status-handler-T53CO6SX.js → status-handler-LNNNK2AK.js} +2 -2
- package/dist/cli/chunks/{structural-health-AVS2GE7S.js → structural-health-7I7G6LFO.js} +2 -2
- package/dist/cli/chunks/{sync-Q3UHMELK.js → sync-QPWRLTD6.js} +2 -2
- package/dist/cli/chunks/{task-handler-UAJWNRMS.js → task-handler-BMKDHVBD.js} +2 -2
- package/dist/cli/chunks/{task-handlers-HYSHMTJN.js → task-handlers-ECOL3VV6.js} +3 -3
- package/dist/cli/chunks/{test-GMXM664Y.js → test-FY33BVTJ.js} +4 -4
- package/dist/cli/chunks/{test-scheduling-PYU4NLDU.js → test-scheduling-4NHGC3EB.js} +3 -3
- package/dist/cli/chunks/{token-bootstrap-5SIETJI6.js → token-bootstrap-MAOYJSZN.js} +2 -2
- package/dist/cli/chunks/{token-usage-3H4KEKTT.js → token-usage-TJPP4UFG.js} +2 -2
- package/dist/cli/chunks/{transformers-ZFPUASV4.js → transformers-QIGZ7SE7.js} +2 -2
- package/dist/cli/chunks/{tree-sitter-wasm-parser-X72YXRIP.js → tree-sitter-wasm-parser-CVKNF5NP.js} +2 -2
- package/dist/cli/chunks/{types-CB2HAVZ6.js → types-FCGVB2IX.js} +2 -2
- package/dist/cli/chunks/unified-memory-U4CPBW5V.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-BYBD2V33.js +2 -0
- package/dist/cli/chunks/unified-persistence-LAUTFWNC.js +2 -0
- package/dist/cli/chunks/{upgrade-BWAZTJKE.js → upgrade-HWJRLW6H.js} +2 -2
- package/dist/cli/chunks/{validate-3OVVTWN6.js → validate-Z45LLWQQ.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-WJVG4OUQ.js → validate-swarm-VAEKMIJB.js} +2 -2
- package/dist/cli/chunks/{vibium-IIU2F5HC.js → vibium-O7MMGI45.js} +2 -2
- package/dist/cli/chunks/visual-security-XVWGWA4J.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-RO4TKGTV.js → web-tree-sitter-G3TTBGKP.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-7N5CZTJS.js → windsurf-installer-II3ZTH55.js} +2 -2
- package/dist/cli/chunks/witness-chain-CTIZD4GL.js +2 -0
- package/dist/cli/chunks/{witness-chain-B4CHDDS5.js → witness-chain-KYMMCOIV.js} +2 -2
- package/dist/cli/chunks/{workflow-FKJKW36Z.js → workflow-P4GQ3NJK.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-NG3KLTLJ.js +2 -0
- package/dist/cli/chunks/{wrappers-HU3SB4FT.js → wrappers-7MWZ6R6U.js} +2 -2
- package/dist/cli/commands/hooks-handlers/hooks-dream-learning.js +6 -0
- package/dist/learning/experience-consolidation.d.ts +19 -3
- package/dist/learning/experience-consolidation.js +57 -27
- package/dist/mcp/bundle.js +10 -14
- package/package.json +1 -1
- package/dist/cli/chunks/adapter-WOEZOCHJ.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-5AHKLABJ.js +0 -2
- package/dist/cli/chunks/base-RNCRGTZJ.js +0 -2
- package/dist/cli/chunks/browser-workflow-MXHA63OC.js +0 -2
- package/dist/cli/chunks/chunk-OHR5ILR3.js +0 -2
- package/dist/cli/chunks/client-XU3ZUFMH.js +0 -2
- package/dist/cli/chunks/cross-domain-router-KKYQWQE7.js +0 -2
- package/dist/cli/chunks/dream-FBYASIID.js +0 -2
- package/dist/cli/chunks/hnsw-adapter-L7QOLNKP.js +0 -2
- package/dist/cli/chunks/hnsw-index-O2YO7WVU.js +0 -2
- package/dist/cli/chunks/impact-analyzer-37TDXM6V.js +0 -2
- package/dist/cli/chunks/init-wizard-ONNAHU4H.js +0 -2
- package/dist/cli/chunks/kernel-3S7RJ7PT.js +0 -2
- package/dist/cli/chunks/knowledge-graph-GNJMYFT2.js +0 -2
- package/dist/cli/chunks/load-test-ZHTSLJMB.js +0 -2
- package/dist/cli/chunks/memory-backend-LN6NWT4F.js +0 -2
- package/dist/cli/chunks/protocol-executor-ED36SYE4.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-AC5ZWDAZ.js +0 -2
- package/dist/cli/chunks/queen-coordinator-IZ4RQGKV.js +0 -2
- package/dist/cli/chunks/router-DZVPCD7E.js +0 -2
- package/dist/cli/chunks/routing-feedback-3LUE56G4.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-UTX4WYSI.js +0 -2
- package/dist/cli/chunks/safe-db-PEJN42TX.js +0 -2
- package/dist/cli/chunks/schedule-UULIQP2J.js +0 -2
- package/dist/cli/chunks/scheduler-T57XAXKF.js +0 -2
- package/dist/cli/chunks/shared-rvf-adapter-UZVFV2RJ.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-W7E26KF3.js +0 -2
- package/dist/cli/chunks/unified-memory-SAIRUPOI.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-NQALAER6.js +0 -2
- package/dist/cli/chunks/unified-persistence-XNGQFWFS.js +0 -2
- package/dist/cli/chunks/visual-security-CE37LMFR.js +0 -2
- package/dist/cli/chunks/witness-chain-L2KM336B.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-BE5PCEBO.js +0 -2
package/dist/cli/chunks/{tree-sitter-wasm-parser-X72YXRIP.js → tree-sitter-wasm-parser-CVKNF5NP.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-MYZ43VKA.js";import"./chunk-4ZUXTOUG.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-RO4TKGTV.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.22");process.exit(0)}
|
|
2
|
+
import{d as L,e as $}from"./chunk-QKDYDDO6.js";import"./chunk-75EZBOLF.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-G3TTBGKP.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.22");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g}from"./chunk-EP65OKY3.js";import"./chunk-75EZBOLF.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.22");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-QBQHA2PQ.js";import"./chunk-7TASYE2O.js";import"./chunk-D4GHYV5T.js";import"./chunk-QKDYDDO6.js";import"./chunk-PUBADXN6.js";import"./chunk-C32ZD3IM.js";import"./chunk-CYHVGDGJ.js";import"./chunk-C2ROCY2Y.js";import{a as c,d,e}from"./chunk-DLOY6QOK.js";import"./chunk-EBFG55L3.js";import"./chunk-T6SZZ6GL.js";import"./chunk-76JSNSX5.js";import"./chunk-J4DENED7.js";import"./chunk-EAEF52EW.js";import"./chunk-5Q4HS3PB.js";import"./chunk-75EZBOLF.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.22");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f}from"./chunk-DLOY6QOK.js";import"./chunk-EBFG55L3.js";import"./chunk-T6SZZ6GL.js";import"./chunk-76JSNSX5.js";import"./chunk-J4DENED7.js";import"./chunk-EAEF52EW.js";import"./chunk-5Q4HS3PB.js";import"./chunk-75EZBOLF.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.22");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e}from"./chunk-ZIRSR3CR.js";import"./chunk-QBQHA2PQ.js";import"./chunk-7TASYE2O.js";import"./chunk-D4GHYV5T.js";import"./chunk-QKDYDDO6.js";import"./chunk-PUBADXN6.js";import"./chunk-C32ZD3IM.js";import"./chunk-CYHVGDGJ.js";import"./chunk-C2ROCY2Y.js";import"./chunk-DLOY6QOK.js";import"./chunk-EBFG55L3.js";import"./chunk-T6SZZ6GL.js";import"./chunk-76JSNSX5.js";import"./chunk-J4DENED7.js";import"./chunk-EAEF52EW.js";import"./chunk-5Q4HS3PB.js";import"./chunk-75EZBOLF.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.22");process.exit(0)}
|
|
2
|
+
import{S as m,b as c}from"./chunk-5Q4HS3PB.js";import"./chunk-75EZBOLF.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.22");process.exit(0)}
|
|
2
|
+
import{e as P}from"./chunk-IPWO26NP.js";import"./chunk-5HUFNSCO.js";import{a as V}from"./chunk-QUASI6T7.js";import"./chunk-5WE7JRVM.js";import"./chunk-D4GHYV5T.js";import"./chunk-QKDYDDO6.js";import{b as v,d as F}from"./chunk-PUBADXN6.js";import"./chunk-C32ZD3IM.js";import"./chunk-EBFG55L3.js";import"./chunk-75EZBOLF.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.22");process.exit(0)}
|
|
2
|
+
import{a as i,b as v,c as d,d as p}from"./chunk-IPWO26NP.js";import{a as h}from"./chunk-BAIQZTBO.js";import"./chunk-5HUFNSCO.js";import{a as k}from"./chunk-QUASI6T7.js";import"./chunk-3M7EAXED.js";import"./chunk-5WE7JRVM.js";import"./chunk-OLDHOXH5.js";import"./chunk-AKBYBOUV.js";import"./chunk-N7LNGYUI.js";import"./chunk-ZYVFF2GF.js";import"./chunk-YJ3KKNS5.js";import"./chunk-SBXMNI7G.js";import"./chunk-QBQHA2PQ.js";import"./chunk-7TASYE2O.js";import"./chunk-G35AFB22.js";import"./chunk-D4GHYV5T.js";import"./chunk-QKDYDDO6.js";import"./chunk-PUBADXN6.js";import"./chunk-ASJWT2HO.js";import"./chunk-C32ZD3IM.js";import"./chunk-7TWDEXR4.js";import"./chunk-CYHVGDGJ.js";import"./chunk-C2ROCY2Y.js";import"./chunk-DLOY6QOK.js";import"./chunk-EBFG55L3.js";import"./chunk-T6SZZ6GL.js";import"./chunk-76JSNSX5.js";import"./chunk-J4DENED7.js";import"./chunk-EAEF52EW.js";import"./chunk-5Q4HS3PB.js";import"./chunk-75EZBOLF.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.22");process.exit(0)}
|
|
2
|
+
import{c as t}from"./chunk-75EZBOLF.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.22");process.exit(0)}
|
|
2
|
+
import{a}from"./chunk-WXM3QRV3.js";import"./chunk-SZXKDWNU.js";import"./chunk-KBWJRXYS.js";import"./chunk-QBQHA2PQ.js";import"./chunk-7TASYE2O.js";import"./chunk-D4GHYV5T.js";import"./chunk-QKDYDDO6.js";import"./chunk-PUBADXN6.js";import"./chunk-C32ZD3IM.js";import"./chunk-7TWDEXR4.js";import"./chunk-CYHVGDGJ.js";import"./chunk-C2ROCY2Y.js";import"./chunk-DLOY6QOK.js";import"./chunk-EBFG55L3.js";import"./chunk-T6SZZ6GL.js";import"./chunk-76JSNSX5.js";import"./chunk-J4DENED7.js";import"./chunk-EAEF52EW.js";import"./chunk-5Q4HS3PB.js";import"./chunk-75EZBOLF.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.22");process.exit(0)}
|
|
2
|
+
import"./chunk-75EZBOLF.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.22");process.exit(0)}
|
|
2
|
+
import{b as u}from"./chunk-KXVCKQ2O.js";import{a as f,c as h}from"./chunk-C32ZD3IM.js";import"./chunk-75EZBOLF.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
|
---
|
|
@@ -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.22");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h}from"./chunk-H2CDS62D.js";import"./chunk-QBQHA2PQ.js";import"./chunk-7TASYE2O.js";import"./chunk-D4GHYV5T.js";import"./chunk-QKDYDDO6.js";import"./chunk-PUBADXN6.js";import"./chunk-C32ZD3IM.js";import"./chunk-CYHVGDGJ.js";import"./chunk-C2ROCY2Y.js";import"./chunk-DLOY6QOK.js";import"./chunk-EBFG55L3.js";import"./chunk-T6SZZ6GL.js";import"./chunk-76JSNSX5.js";import"./chunk-J4DENED7.js";import"./chunk-EAEF52EW.js";import"./chunk-5Q4HS3PB.js";import"./chunk-75EZBOLF.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,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.22");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g}from"./chunk-G35AFB22.js";import"./chunk-D4GHYV5T.js";import"./chunk-QKDYDDO6.js";import"./chunk-5Q4HS3PB.js";import"./chunk-75EZBOLF.js";export{c as PersistentWitnessChain,a as SPRTAccumulator,b as WitnessChain,f as createPersistentWitnessChain,e as createWitnessChain,d as createWitnessChainSQLitePersistence,g as isWitnessChainFeatureEnabled};
|
|
@@ -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.22");process.exit(0)}
|
|
2
|
+
import"./chunk-SEFMGIDM.js";import{b as $}from"./chunk-QYUA3QRO.js";import{d as R}from"./chunk-XZLXDSDH.js";import{b as k,c as C,d as b}from"./chunk-PJQVLSZL.js";import{c as W}from"./chunk-PUBADXN6.js";import"./chunk-ASJWT2HO.js";import"./chunk-C32ZD3IM.js";import"./chunk-75EZBOLF.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-KDNXNC7W.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-KDNXNC7W.js"),{writeOutput:u,toJSON:c}=await import("./ci-output-22E7MB4A.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.22");process.exit(0)}
|
|
2
|
+
import{a,b,c,d}from"./chunk-FN33YLS4.js";import"./chunk-RHJXNBT5.js";import"./chunk-QBQHA2PQ.js";import"./chunk-7TASYE2O.js";import"./chunk-D4GHYV5T.js";import"./chunk-QKDYDDO6.js";import"./chunk-PUBADXN6.js";import"./chunk-ASJWT2HO.js";import"./chunk-C32ZD3IM.js";import"./chunk-7TWDEXR4.js";import"./chunk-CYHVGDGJ.js";import"./chunk-C2ROCY2Y.js";import"./chunk-DLOY6QOK.js";import"./chunk-EBFG55L3.js";import"./chunk-T6SZZ6GL.js";import"./chunk-76JSNSX5.js";import"./chunk-J4DENED7.js";import"./chunk-EAEF52EW.js";import"./chunk-5Q4HS3PB.js";import"./chunk-75EZBOLF.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.22");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-X3UEZQIH.js";import"./chunk-QBQHA2PQ.js";import"./chunk-7TASYE2O.js";import"./chunk-D4GHYV5T.js";import"./chunk-QKDYDDO6.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-MHV7VXPW.js";import"./chunk-PUBADXN6.js";import"./chunk-C32ZD3IM.js";import"./chunk-CYHVGDGJ.js";import"./chunk-C2ROCY2Y.js";import"./chunk-DLOY6QOK.js";import"./chunk-EBFG55L3.js";import"./chunk-T6SZZ6GL.js";import"./chunk-76JSNSX5.js";import"./chunk-J4DENED7.js";import"./chunk-EAEF52EW.js";import"./chunk-5Q4HS3PB.js";import"./chunk-75EZBOLF.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};
|
|
@@ -127,6 +127,12 @@ export async function persistCommandExperience(opts) {
|
|
|
127
127
|
if (!um.isInitialized()) {
|
|
128
128
|
await um.initialize();
|
|
129
129
|
}
|
|
130
|
+
// Ensure captured_experiences and consolidation columns exist. Without
|
|
131
|
+
// this, CLI-only projects (`aqe init` with no MCP server ever started)
|
|
132
|
+
// silently lose every hook-fired experience because the table is only
|
|
133
|
+
// created during MCP startup. Idempotent — guarded by an internal lock.
|
|
134
|
+
const { initializeExperienceCapture } = await import('../../../learning/experience-capture-middleware.js');
|
|
135
|
+
await initializeExperienceCapture();
|
|
130
136
|
const db = um.getDatabase();
|
|
131
137
|
try {
|
|
132
138
|
db.pragma('busy_timeout = 60000');
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
* - Phase 1: Clusters & merges similar experiences via HNSW
|
|
6
6
|
* - Phase 2: Reinforces quality based on reuse success
|
|
7
7
|
* - Phase 3: Archives truly valueless entries (soft-delete only)
|
|
8
|
+
* - Phase 4 (safety valve): Soft-archives oldest/lowest-quality rows when a
|
|
9
|
+
* domain exceeds `hardThreshold`. Previously did `DELETE FROM` which
|
|
10
|
+
* permanently destroyed ~16K rows in production (see release notes for
|
|
11
|
+
* v3.9.22). Now strictly non-destructive: rows stay queryable and counted
|
|
12
|
+
* by the statusline formula, only `consolidated_into` changes to
|
|
13
|
+
* 'archived'.
|
|
8
14
|
*
|
|
9
15
|
* Ensures the Exp counter is monotonically non-decreasing.
|
|
10
16
|
*/
|
|
@@ -14,9 +20,14 @@ export interface ConsolidationResult {
|
|
|
14
20
|
merged: number;
|
|
15
21
|
/** Experiences with quality recalculated */
|
|
16
22
|
qualityUpdated: number;
|
|
17
|
-
/** Experiences soft-archived */
|
|
23
|
+
/** Experiences soft-archived (Phase 3 valueless + Phase 4 safety valve) */
|
|
18
24
|
archived: number;
|
|
19
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Deprecated: previously the count of physically-deleted rows when a
|
|
27
|
+
* domain exceeded `hardThreshold`. Always 0 since v3.9.22 — the safety
|
|
28
|
+
* valve is now non-destructive (soft-archive only). Kept for callers that
|
|
29
|
+
* still read the field; new code should treat it as a permanent zero.
|
|
30
|
+
*/
|
|
20
31
|
hardDeleted: number;
|
|
21
32
|
/** Total active experiences remaining */
|
|
22
33
|
activeRemaining: number;
|
|
@@ -30,7 +41,12 @@ export interface ConsolidationConfig {
|
|
|
30
41
|
maxMergesPerRun: number;
|
|
31
42
|
/** Soft threshold: start consolidating when domain exceeds this */
|
|
32
43
|
softThreshold: number;
|
|
33
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Hard threshold: safety valve. When a domain still exceeds this after
|
|
46
|
+
* Phases 1-3, the oldest/lowest-quality un-applied rows are
|
|
47
|
+
* soft-archived (consolidated_into = 'archived'). NOT hard-deleted —
|
|
48
|
+
* archived rows still count toward the statusline Exp formula.
|
|
49
|
+
*/
|
|
34
50
|
hardThreshold: number;
|
|
35
51
|
/** Min age in days for archival eligibility */
|
|
36
52
|
archiveMinAgeDays: number;
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
* - Phase 1: Clusters & merges similar experiences via HNSW
|
|
6
6
|
* - Phase 2: Reinforces quality based on reuse success
|
|
7
7
|
* - Phase 3: Archives truly valueless entries (soft-delete only)
|
|
8
|
+
* - Phase 4 (safety valve): Soft-archives oldest/lowest-quality rows when a
|
|
9
|
+
* domain exceeds `hardThreshold`. Previously did `DELETE FROM` which
|
|
10
|
+
* permanently destroyed ~16K rows in production (see release notes for
|
|
11
|
+
* v3.9.22). Now strictly non-destructive: rows stay queryable and counted
|
|
12
|
+
* by the statusline formula, only `consolidated_into` changes to
|
|
13
|
+
* 'archived'.
|
|
8
14
|
*
|
|
9
15
|
* Ensures the Exp counter is monotonically non-decreasing.
|
|
10
16
|
*/
|
|
@@ -100,12 +106,17 @@ export class ExperienceConsolidator {
|
|
|
100
106
|
result.qualityUpdated = this.reinforceQuality(domain);
|
|
101
107
|
// Phase 3: Archive Valueless
|
|
102
108
|
result.archived = this.archiveValueless(domain);
|
|
103
|
-
// Safety valve:
|
|
109
|
+
// Safety valve: when the domain still exceeds hardThreshold after the
|
|
110
|
+
// soft phases, archive (not delete) the oldest low-quality excess.
|
|
111
|
+
// Result is attributed to `archived` — `hardDeleted` stays 0 since
|
|
112
|
+
// v3.9.22 (see ConsolidationResult docstring).
|
|
104
113
|
const afterCount = this.db.prepare("SELECT COUNT(*) as cnt FROM captured_experiences WHERE domain = ? AND consolidated_into IS NULL").get(domain).cnt;
|
|
114
|
+
let safetyValveArchived = 0;
|
|
105
115
|
if (afterCount > this.config.hardThreshold) {
|
|
106
|
-
|
|
116
|
+
safetyValveArchived = this.hardDeleteExcess(domain, afterCount);
|
|
117
|
+
result.archived += safetyValveArchived;
|
|
107
118
|
}
|
|
108
|
-
result.activeRemaining = afterCount -
|
|
119
|
+
result.activeRemaining = afterCount - safetyValveArchived;
|
|
109
120
|
return result;
|
|
110
121
|
}
|
|
111
122
|
/**
|
|
@@ -342,41 +353,60 @@ export class ExperienceConsolidator {
|
|
|
342
353
|
return result.changes;
|
|
343
354
|
}
|
|
344
355
|
// ============================================================================
|
|
345
|
-
// Safety Valve: Hard Delete
|
|
356
|
+
// Safety Valve: Soft Archive (formerly Hard Delete)
|
|
346
357
|
// ============================================================================
|
|
358
|
+
//
|
|
359
|
+
// Pre-v3.9.22 this method ran `DELETE FROM captured_experiences`, which
|
|
360
|
+
// permanently destroyed ~16K rows in production once `code-intelligence`
|
|
361
|
+
// exceeded the threshold. The replacement keeps the same trigger condition
|
|
362
|
+
// (domain still over `hardThreshold` after Phases 1-3) but soft-archives
|
|
363
|
+
// the excess instead. Archived rows remain in the table and continue to
|
|
364
|
+
// contribute to the statusline Exp formula
|
|
365
|
+
// (`consolidated_into IS NULL OR consolidated_into = 'archived'`), so the
|
|
366
|
+
// counter stays monotonic.
|
|
367
|
+
//
|
|
368
|
+
// Method name and signature are preserved so the existing caller
|
|
369
|
+
// (`consolidateDomain`) keeps working unchanged. The returned number now
|
|
370
|
+
// represents rows transitioned active → archived, not rows deleted.
|
|
371
|
+
// ConsolidationResult.hardDeleted is kept zero for that reason; the
|
|
372
|
+
// archive count is rolled into Phase 3's `archived` total.
|
|
347
373
|
hardDeleteExcess(domain, currentCount) {
|
|
348
374
|
const excess = currentCount - this.config.hardThreshold;
|
|
349
375
|
if (excess <= 0)
|
|
350
376
|
return 0;
|
|
351
|
-
//
|
|
352
|
-
|
|
353
|
-
|
|
377
|
+
// Soft-archive oldest low-quality un-applied active rows.
|
|
378
|
+
// Same selection criteria as the previous hard-delete path so the
|
|
379
|
+
// memory pressure relief behavior is unchanged — only the operation
|
|
380
|
+
// (UPDATE vs DELETE) changes.
|
|
381
|
+
const result = this.db.prepare(`
|
|
382
|
+
UPDATE captured_experiences
|
|
383
|
+
SET consolidated_into = 'archived'
|
|
354
384
|
WHERE id IN (
|
|
355
385
|
SELECT id FROM captured_experiences
|
|
356
|
-
WHERE domain = ? AND consolidated_into =
|
|
357
|
-
ORDER BY started_at ASC
|
|
386
|
+
WHERE domain = ? AND consolidated_into IS NULL AND application_count = 0
|
|
387
|
+
ORDER BY quality ASC, started_at ASC
|
|
358
388
|
LIMIT ?
|
|
359
389
|
)
|
|
360
390
|
`).run(domain, excess);
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
console.warn(`[ExperienceConsolidator] Safety valve:
|
|
391
|
+
const archived = result.changes;
|
|
392
|
+
if (archived > 0) {
|
|
393
|
+
try {
|
|
394
|
+
this.db.prepare(`
|
|
395
|
+
INSERT INTO experience_consolidation_log (id, domain, action, source_ids, details, created_at)
|
|
396
|
+
VALUES (?, ?, 'safety-valve-archive', '[]', ?, datetime('now'))
|
|
397
|
+
`).run(uuidv4(), domain, JSON.stringify({
|
|
398
|
+
count: archived,
|
|
399
|
+
currentCount,
|
|
400
|
+
hardThreshold: this.config.hardThreshold,
|
|
401
|
+
note: 'soft-archive replacement for legacy hard-delete safety valve',
|
|
402
|
+
}));
|
|
403
|
+
}
|
|
404
|
+
catch {
|
|
405
|
+
// Logging is best-effort; safety-valve effect is in the UPDATE above.
|
|
406
|
+
}
|
|
407
|
+
console.warn(`[ExperienceConsolidator] Safety valve: soft-archived ${archived} from ${domain} (was ${currentCount}, threshold ${this.config.hardThreshold})`);
|
|
378
408
|
}
|
|
379
|
-
return
|
|
409
|
+
return archived;
|
|
380
410
|
}
|
|
381
411
|
// ============================================================================
|
|
382
412
|
// Utilities
|