agentic-qe 3.13.6 → 3.13.7
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 +32 -0
- package/dist/cli/bundle.js +5 -5
- package/dist/cli/chunks/adapter-UIYF2P3E.js +2 -0
- package/dist/cli/chunks/{agent-booster-wasm-TMON22NL.js → agent-booster-wasm-UOGKPGRU.js} +2 -2
- package/dist/cli/chunks/{agent-handler-JOX6O26U.js → agent-handler-Q5R4WGEK.js} +2 -2
- package/dist/cli/chunks/{agent-memory-branch-AMIJIDCM.js → agent-memory-branch-NHG52BFD.js} +2 -2
- package/dist/cli/chunks/aqe-learning-engine-CKTFFDJ4.js +2 -0
- package/dist/cli/chunks/{arena-N6SO2CCQ.js → arena-IV4MYEYB.js} +2 -2
- package/dist/cli/chunks/{arena-RKLFXDMO.js → arena-PMAHTPQB.js} +4 -4
- package/dist/cli/chunks/{audit-ZJE3DUH6.js → audit-PVN2O2AU.js} +3 -3
- package/dist/cli/chunks/base-I3FB7F6R.js +2 -0
- package/dist/cli/chunks/{better-sqlite3-5G6AR6LX.js → better-sqlite3-4KVBGOT6.js} +2 -2
- package/dist/cli/chunks/{brain-handler-QD4DZ574.js → brain-handler-GSJJVXQW.js} +3 -3
- package/dist/cli/chunks/{branch-enumerator-PG3OUYE6.js → branch-enumerator-OQU3U6FI.js} +2 -2
- package/dist/cli/chunks/{browser-Y2DJG7HQ.js → browser-CXOMLHII.js} +2 -2
- package/dist/cli/chunks/browser-workflow-NQ5SWXEP.js +2 -0
- package/dist/cli/chunks/{chunk-5VV5MOED.js → chunk-224MLOCT.js} +2 -2
- package/dist/cli/chunks/{chunk-R5FSKAS3.js → chunk-2LJNRAUF.js} +1 -1
- package/dist/cli/chunks/{chunk-2SVDR5KB.js → chunk-2QAJDG4E.js} +2 -2
- package/dist/cli/chunks/{chunk-4VWB64OH.js → chunk-3KVQOIOI.js} +1 -1
- package/dist/cli/chunks/{chunk-2ILX73JG.js → chunk-3MDGSITG.js} +1 -1
- package/dist/cli/chunks/{chunk-AU3APBY2.js → chunk-3SBO6CDL.js} +2 -2
- package/dist/cli/chunks/{chunk-7KRZ2Q6B.js → chunk-45QJQSLD.js} +3 -3
- package/dist/cli/chunks/{chunk-XRH2D6JV.js → chunk-46H7GRXK.js} +3 -3
- package/dist/cli/chunks/{chunk-PTBW2QXE.js → chunk-4LGZGIQL.js} +2 -2
- package/dist/cli/chunks/{chunk-463VBHHH.js → chunk-4PNXUJMO.js} +2 -2
- package/dist/cli/chunks/{chunk-JPJSOS4H.js → chunk-5EFWFB3L.js} +1 -1
- package/dist/cli/chunks/{chunk-POZ3S4UO.js → chunk-5FWWHLQ3.js} +2 -2
- package/dist/cli/chunks/{chunk-VK5I4JSN.js → chunk-5LGNTDKU.js} +2 -2
- package/dist/cli/chunks/{chunk-UHQA6EH6.js → chunk-5VE4GP67.js} +2 -2
- package/dist/cli/chunks/{chunk-X3CHYV7G.js → chunk-6COKVAQM.js} +2 -2
- package/dist/cli/chunks/{chunk-5CMZDVUR.js → chunk-6F5UFJIA.js} +2 -2
- package/dist/cli/chunks/{chunk-6FICUNAV.js → chunk-6VMQH2G3.js} +1 -1
- package/dist/cli/chunks/{chunk-NUCVMWDJ.js → chunk-6YUBBESI.js} +2 -2
- package/dist/cli/chunks/{chunk-HPRX5S74.js → chunk-75MQX436.js} +1 -1
- package/dist/cli/chunks/{chunk-N6QUDQ5H.js → chunk-7644FEFM.js} +2 -2
- package/dist/cli/chunks/{chunk-TWNXZOJY.js → chunk-77OIG5EX.js} +2 -2
- package/dist/cli/chunks/{chunk-K7ZFBGLE.js → chunk-7CYA7JBH.js} +2 -2
- package/dist/cli/chunks/{chunk-WA553ALQ.js → chunk-7F2KPWTO.js} +1 -1
- package/dist/cli/chunks/{chunk-523XPMTU.js → chunk-7XA2YLCK.js} +1 -1
- package/dist/cli/chunks/{chunk-QSO5RFJ4.js → chunk-7ZSEZOEQ.js} +4 -4
- package/dist/cli/chunks/{chunk-DS53MJCN.js → chunk-A3QP6NWO.js} +1 -1
- package/dist/cli/chunks/{chunk-6UPQD42K.js → chunk-A3XAWNOW.js} +2 -2
- package/dist/cli/chunks/{chunk-JGQZ7ECC.js → chunk-ABWZERCN.js} +1 -1
- package/dist/cli/chunks/chunk-AF7EKTC3.js +2 -0
- package/dist/cli/chunks/{chunk-DKGDBKBJ.js → chunk-ALN3LOMK.js} +1 -1
- package/dist/cli/chunks/{chunk-5VGQABM3.js → chunk-AUJZUMJ2.js} +4 -4
- package/dist/cli/chunks/{chunk-6ITWOYET.js → chunk-AXHKDE6N.js} +2 -2
- package/dist/cli/chunks/{chunk-DLBJ7IZT.js → chunk-BCF6GEFU.js} +10 -10
- package/dist/cli/chunks/{chunk-PX7MVV6F.js → chunk-BP63FIKW.js} +2 -2
- package/dist/cli/chunks/{chunk-P4CHYYJN.js → chunk-BUHD5KMR.js} +2 -2
- package/dist/cli/chunks/{chunk-3QJH5W55.js → chunk-BX32VXZP.js} +2 -2
- package/dist/cli/chunks/{chunk-JQXAWTS5.js → chunk-C4LN2HKE.js} +3 -3
- package/dist/cli/chunks/{chunk-DSIS6WQD.js → chunk-CMDMOKGH.js} +3 -3
- package/dist/cli/chunks/{chunk-7NYCYSGW.js → chunk-COM3MXBJ.js} +2 -2
- package/dist/cli/chunks/{chunk-EY44JDUL.js → chunk-CPDTUQGT.js} +3 -3
- package/dist/cli/chunks/{chunk-UNLH7NPY.js → chunk-CT5ZBNWB.js} +1 -1
- package/dist/cli/chunks/{chunk-VSP2IB5N.js → chunk-DM3S4WNW.js} +2 -2
- package/dist/cli/chunks/{chunk-LVLGRUUJ.js → chunk-DNAB56KC.js} +1 -1
- package/dist/cli/chunks/{chunk-LQYAJ7RR.js → chunk-DPEI46VM.js} +2 -2
- package/dist/cli/chunks/{chunk-U63JEFF5.js → chunk-DRTXG2DG.js} +2 -2
- package/dist/cli/chunks/{chunk-YL7CAOQG.js → chunk-DXLDSACI.js} +3 -3
- package/dist/cli/chunks/{chunk-GQCYO54W.js → chunk-EPYGDRMU.js} +2 -2
- package/dist/cli/chunks/{chunk-E7MD5LHC.js → chunk-EV7S4J35.js} +2 -2
- package/dist/cli/chunks/{chunk-2FTAMEOB.js → chunk-EXIV2D3R.js} +1 -1
- package/dist/cli/chunks/{chunk-CTILSLXF.js → chunk-EXXAQ3ZT.js} +2 -2
- package/dist/cli/chunks/{chunk-E3OKRZCH.js → chunk-F55LPGNQ.js} +2 -2
- package/dist/cli/chunks/{chunk-2BUDKFIE.js → chunk-FFJ4T5P7.js} +1 -1
- package/dist/cli/chunks/{chunk-6VUEUYFL.js → chunk-FT3I5BNS.js} +5 -5
- package/dist/cli/chunks/{chunk-2VUXU22M.js → chunk-FWU55NEY.js} +2 -2
- package/dist/cli/chunks/chunk-GAYYOIRM.js +2 -0
- package/dist/cli/chunks/{chunk-LYGHX4II.js → chunk-GC5TDDOT.js} +1 -1
- package/dist/cli/chunks/{chunk-NUDDFJYU.js → chunk-GDCPI6GS.js} +2 -2
- package/dist/cli/chunks/{chunk-ACHMNMEJ.js → chunk-GIRACYH4.js} +1 -1
- package/dist/cli/chunks/{chunk-JH6KUV74.js → chunk-GK6U2SQ2.js} +2 -2
- package/dist/cli/chunks/{chunk-XLDEWLP4.js → chunk-GYQEFUG7.js} +1 -1
- package/dist/cli/chunks/{chunk-YQUZGPUQ.js → chunk-H6SKPDAR.js} +1 -1
- package/dist/cli/chunks/{chunk-HWWMINXV.js → chunk-H7GTLWPW.js} +2 -2
- package/dist/cli/chunks/{chunk-V5MS6XNT.js → chunk-HA6OYSPC.js} +2 -2
- package/dist/cli/chunks/{chunk-CKYRZ3TA.js → chunk-HFZYYDV5.js} +2 -2
- package/dist/cli/chunks/{chunk-O34674VM.js → chunk-HG2QGS2M.js} +2 -2
- package/dist/cli/chunks/{chunk-X75OYPS6.js → chunk-HPSL2WBW.js} +1 -1
- package/dist/cli/chunks/{chunk-BI6UU3Z3.js → chunk-HT4NYS4F.js} +1 -1
- package/dist/cli/chunks/{chunk-QQA4N3YT.js → chunk-HYQZHUGU.js} +2 -2
- package/dist/cli/chunks/{chunk-DXM7IN2W.js → chunk-IE3FM6U3.js} +2 -2
- package/dist/cli/chunks/{chunk-EP4ORDFE.js → chunk-IVNRCF65.js} +2 -2
- package/dist/cli/chunks/{chunk-NNIAUDHF.js → chunk-J5TFIVO2.js} +1 -1
- package/dist/cli/chunks/{chunk-V4QQTPZF.js → chunk-J6EK6TC2.js} +2 -2
- package/dist/cli/chunks/{chunk-FV47SYXK.js → chunk-JDPYQDKI.js} +1 -1
- package/dist/cli/chunks/{chunk-GEH3S5DI.js → chunk-KS2HVX52.js} +2 -2
- package/dist/cli/chunks/{chunk-BDVZF46F.js → chunk-L4I2JS74.js} +2 -2
- package/dist/cli/chunks/{chunk-7TON6JSG.js → chunk-L74WFBDA.js} +2 -2
- package/dist/cli/chunks/{chunk-FGQH5LOG.js → chunk-LBMJYLGR.js} +2 -2
- package/dist/cli/chunks/{chunk-DR2M2SI2.js → chunk-LHYN6YTN.js} +2 -2
- package/dist/cli/chunks/{chunk-D777E2MT.js → chunk-LPUWOM7Y.js} +2 -2
- package/dist/cli/chunks/{chunk-DSTQ2OWI.js → chunk-LY7UPFTJ.js} +1 -1
- package/dist/cli/chunks/{chunk-MTEEFP6V.js → chunk-MBLO72OZ.js} +2 -2
- package/dist/cli/chunks/{chunk-YRRYKR7U.js → chunk-ME4KYCIL.js} +2 -2
- package/dist/cli/chunks/{chunk-R2GHZ2QG.js → chunk-MPGZE4PD.js} +2 -2
- package/dist/cli/chunks/{chunk-P6A35LKJ.js → chunk-MYCMFN33.js} +2 -2
- package/dist/cli/chunks/{chunk-RDSO3R2R.js → chunk-N2PG6TYS.js} +3 -3
- package/dist/cli/chunks/{chunk-XZPAKAFJ.js → chunk-NGBJH26X.js} +1 -1
- package/dist/cli/chunks/{chunk-PGDDPZ7W.js → chunk-NLK5WBOS.js} +1 -1
- package/dist/cli/chunks/{chunk-GV3C224P.js → chunk-NQPS7FM5.js} +2 -2
- package/dist/cli/chunks/{chunk-AOUULKKT.js → chunk-NY332ER7.js} +2 -2
- package/dist/cli/chunks/{chunk-KMCI3RGD.js → chunk-OCAJJUPV.js} +2 -2
- package/dist/cli/chunks/{chunk-KBHSID6C.js → chunk-ON57SN44.js} +2 -2
- package/dist/cli/chunks/{chunk-3TC4ZPGR.js → chunk-ORV3E477.js} +2 -2
- package/dist/cli/chunks/{chunk-EYHRYIBX.js → chunk-P354IPGG.js} +1 -1
- package/dist/cli/chunks/{chunk-PSAXLKDZ.js → chunk-PTQYCACC.js} +2 -2
- package/dist/cli/chunks/{chunk-XF2TKGSC.js → chunk-Q6BYBRNA.js} +1 -1
- package/dist/cli/chunks/{chunk-OIGWREK7.js → chunk-Q6LE7RY6.js} +1 -1
- package/dist/cli/chunks/{chunk-75QKZ6VX.js → chunk-QDTIOZHQ.js} +2 -2
- package/dist/cli/chunks/{chunk-YOVQBSTW.js → chunk-QFHUATTI.js} +2 -2
- package/dist/cli/chunks/{chunk-R5LDNZVB.js → chunk-QGZLVH3E.js} +2 -2
- package/dist/cli/chunks/{chunk-HBNMEYJS.js → chunk-QM2QPZOR.js} +10 -10
- package/dist/cli/chunks/{chunk-MOIKR7RU.js → chunk-QV7PAJHO.js} +2 -2
- package/dist/cli/chunks/{chunk-SZO6JIFM.js → chunk-QVQYDUMR.js} +2 -2
- package/dist/cli/chunks/{chunk-UN2MXDJT.js → chunk-QVXMF6DS.js} +2 -2
- package/dist/cli/chunks/{chunk-EYWR4Y3J.js → chunk-RBFX56HK.js} +1 -1
- package/dist/cli/chunks/{chunk-LLVXOXAK.js → chunk-RJ5G3IZY.js} +1 -1
- package/dist/cli/chunks/{chunk-BOM5NGCR.js → chunk-RQ4GKJ6H.js} +1 -1
- package/dist/cli/chunks/{chunk-6QZSF6RL.js → chunk-RSJVIUDH.js} +2 -2
- package/dist/cli/chunks/{chunk-EKWEJOV7.js → chunk-S2SNDC2D.js} +1 -1
- package/dist/cli/chunks/{chunk-Y2QZK46R.js → chunk-S3RAJZ2A.js} +2 -2
- package/dist/cli/chunks/{chunk-FH6H4KOZ.js → chunk-S6CNNFVF.js} +20 -20
- package/dist/cli/chunks/{chunk-3OUHOJBN.js → chunk-SI56H5MC.js} +1 -1
- package/dist/cli/chunks/{chunk-BGLSIA4U.js → chunk-TMTWC6M6.js} +2 -2
- package/dist/cli/chunks/{chunk-PW3JLQGH.js → chunk-U5SAFRHE.js} +2 -2
- package/dist/cli/chunks/{chunk-LGP26FTM.js → chunk-ULKMV4XT.js} +2 -2
- package/dist/cli/chunks/{chunk-4YFBAXRD.js → chunk-UMWO6V7E.js} +1 -1
- package/dist/cli/chunks/{chunk-NX6FOAS4.js → chunk-UOFNGPDM.js} +1 -1
- package/dist/cli/chunks/{chunk-KHDE4KT5.js → chunk-UZRZCM2M.js} +4 -4
- package/dist/cli/chunks/{chunk-THW6LF5I.js → chunk-VA4JFEA6.js} +2 -2
- package/dist/cli/chunks/{chunk-OS56PKRO.js → chunk-VHQZBUOP.js} +2 -2
- package/dist/cli/chunks/{chunk-JDADNBWS.js → chunk-VLWOF654.js} +1 -1
- package/dist/cli/chunks/{chunk-IHUAEQZN.js → chunk-VPQP342J.js} +1 -1
- package/dist/cli/chunks/{chunk-MSA6MD5C.js → chunk-VXTNM7PA.js} +1 -1
- package/dist/cli/chunks/{chunk-7225UNNY.js → chunk-W3T6WFQK.js} +2 -2
- package/dist/cli/chunks/{chunk-Z6SAS2NU.js → chunk-X5R4M2PW.js} +1 -1
- package/dist/cli/chunks/{chunk-GSZL3WST.js → chunk-XI2EEMNJ.js} +2 -2
- package/dist/cli/chunks/{chunk-F66FYZQF.js → chunk-XNQWCGR5.js} +2 -2
- package/dist/cli/chunks/{chunk-RBNSZFVL.js → chunk-XQWHBFR4.js} +3 -3
- package/dist/cli/chunks/{chunk-N7JRGAJF.js → chunk-XVCB7KRX.js} +2 -2
- package/dist/cli/chunks/{chunk-TGSL4OOT.js → chunk-XVZZETXQ.js} +2 -2
- package/dist/cli/chunks/{chunk-PA6SUNDD.js → chunk-XZMMFR2F.js} +1 -1
- package/dist/cli/chunks/{chunk-TMM5NKPI.js → chunk-XZP7AYHS.js} +1 -1
- package/dist/cli/chunks/{chunk-Q4RU4XG6.js → chunk-Y2NOIPIR.js} +2 -2
- package/dist/cli/chunks/{chunk-ADYY2GKC.js → chunk-YIAAXMQN.js} +2 -2
- package/dist/cli/chunks/{chunk-PLYGIUFO.js → chunk-YJUME3OF.js} +2 -2
- package/dist/cli/chunks/{chunk-ISOTSVI7.js → chunk-YSB6GH53.js} +1 -1
- package/dist/cli/chunks/{chunk-BAOKXLIV.js → chunk-Z7KEY7LW.js} +2 -2
- package/dist/cli/chunks/{chunk-EVJSK56E.js → chunk-ZIN7U72B.js} +3 -3
- package/dist/cli/chunks/{chunk-7GTB7LVJ.js → chunk-ZRETM57V.js} +3 -3
- package/dist/cli/chunks/{chunk-CBXJ4AQS.js → chunk-ZWOIE55K.js} +2 -2
- package/dist/cli/chunks/{ci-MWQVCZ2W.js → ci-CXCKYXKG.js} +2 -2
- package/dist/cli/chunks/{ci-output-ZCH4IZ7H.js → ci-output-OOHIVRSH.js} +2 -2
- package/dist/cli/chunks/{circuit-breaker-N3VSQM5X.js → circuit-breaker-32GSBTWS.js} +2 -2
- package/dist/cli/chunks/{claude-flow-setup-TSJFOGXN.js → claude-flow-setup-4S5KMQV7.js} +2 -2
- package/dist/cli/chunks/client-63SX5VIZ.js +2 -0
- package/dist/cli/chunks/{cline-installer-OHKWAB4I.js → cline-installer-WPHR3JAY.js} +2 -2
- package/dist/cli/chunks/{code-3UTIL3QR.js → code-UN2SHAOD.js} +2 -2
- package/dist/cli/chunks/{code-index-extractor-TVG2V2NY.js → code-index-extractor-ML7FPQRV.js} +2 -2
- package/dist/cli/chunks/{codex-installer-L6ZOTOO2.js → codex-installer-CNQM7D2K.js} +2 -2
- package/dist/cli/chunks/{completions-SFRB664X.js → completions-ULBMFDYW.js} +2 -2
- package/dist/cli/chunks/{complexity-analyzer-HDZKVO6D.js → complexity-analyzer-DNOF6MWS.js} +2 -2
- package/dist/cli/chunks/{continuedev-installer-HKLZR3UO.js → continuedev-installer-SALVVLBA.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-5P3LX3C5.js → copilot-installer-2QQT7KAX.js} +2 -2
- package/dist/cli/chunks/core-handlers-LMFAYPU2.js +2 -0
- package/dist/cli/chunks/{cost-tracker-MZR5RB6E.js → cost-tracker-KJHJMCPN.js} +2 -2
- package/dist/cli/chunks/{coverage-L6V6NFIM.js → coverage-A4XD3KK2.js} +3 -3
- package/dist/cli/chunks/cross-domain-router-SVZLA5ZT.js +2 -0
- package/dist/cli/chunks/{cursor-installer-FD6DT23Y.js → cursor-installer-HKSSBI5E.js} +2 -2
- package/dist/cli/chunks/{daemon-HTSRODRG.js → daemon-HMRQGUXY.js} +4 -4
- package/dist/cli/chunks/{daemon-I5ESGZGX.js → daemon-PHEIMUIL.js} +3 -3
- package/dist/cli/chunks/{dag-attention-scheduler-JPTHWB2Q.js → dag-attention-scheduler-WLUSL2PN.js} +2 -2
- package/dist/cli/chunks/{detect-RTUZDBEZ.js → detect-CVP3I7EK.js} +2 -2
- package/dist/cli/chunks/{dist-node-5HLWHNYA.js → dist-node-BGMG54IM.js} +2 -2
- package/dist/cli/chunks/{domain-handler-R7IPUX54.js → domain-handler-BBKVSCEY.js} +2 -2
- package/dist/cli/chunks/{domain-transfer-E3I2LMCB.js → domain-transfer-YGSL3GPA.js} +2 -2
- package/dist/cli/chunks/dream-SHNPRLRM.js +2 -0
- package/dist/cli/chunks/{embed-and-insert-pattern-BXUWG73R.js → embed-and-insert-pattern-QSHUNRQG.js} +2 -2
- package/dist/cli/chunks/{eval-3ZFM75YA.js → eval-K3EQBGVU.js} +2 -2
- package/dist/cli/chunks/{experience-capture-middleware-NJ3BT657.js → experience-capture-middleware-EVQXI6U2.js} +3 -3
- package/dist/cli/chunks/{fast-paths-Q3V5C5IM.js → fast-paths-RCUTEKJN.js} +2 -2
- package/dist/cli/chunks/{feature-flags-XZGJNPZ7.js → feature-flags-CG4UQ3QX.js} +2 -2
- package/dist/cli/chunks/{feature-flags-D3JGPHXY.js → feature-flags-WNH7NIHC.js} +2 -2
- package/dist/cli/chunks/{file-discovery-MZOYXIOS.js → file-discovery-HEK73IOG.js} +2 -2
- package/dist/cli/chunks/{fleet-FG3EBA75.js → fleet-DYJZVSGZ.js} +3 -3
- package/dist/cli/chunks/{gnn-wrapper-PKZLZHL2.js → gnn-wrapper-562P4VXW.js} +2 -2
- package/dist/cli/chunks/{heartbeat-handler-YZTRVH75.js → heartbeat-handler-XHIRKGM2.js} +4 -4
- package/dist/cli/chunks/heartbeat-scheduler-U72YZ3NB.js +2 -0
- package/dist/cli/chunks/hnsw-adapter-U2GLM5AE.js +2 -0
- package/dist/cli/chunks/hnsw-index-32LSC37N.js +2 -0
- package/dist/cli/chunks/{hnsw-legacy-bridge-WONHB63F.js → hnsw-legacy-bridge-H2PYZ2TT.js} +2 -2
- package/dist/cli/chunks/{hnswlib-node-Q4VPSJJM.js → hnswlib-node-3AJM5KVO.js} +2 -2
- package/dist/cli/chunks/{hooks-RWX5ZZCE.js → hooks-N7F7Z362.js} +10 -10
- package/dist/cli/chunks/hybrid-router-4IEDWMTZ.js +2 -0
- package/dist/cli/chunks/{hypergraph-engine-G6N24L5G.js → hypergraph-engine-MVY2ADYA.js} +2 -2
- package/dist/cli/chunks/{hypergraph-handler-4RGOLL6F.js → hypergraph-handler-IOS5X4ZI.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-22V4R3YH.js +2 -0
- package/dist/cli/chunks/{init-handler-L7DZAHXO.js → init-handler-UWEA63JI.js} +6 -6
- package/dist/cli/chunks/init-wizard-PPI7JDU6.js +2 -0
- package/dist/cli/chunks/kernel-PL2K5MLT.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-G7PUCUDZ.js → kilocode-installer-LUH2XG4P.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-H6234HEB.js → kiro-installer-F2ZG3FIZ.js} +2 -2
- package/dist/cli/chunks/knowledge-graph-AOE6FEQR.js +2 -0
- package/dist/cli/chunks/{learning-346CA4DH.js → learning-XBMJWGAV.js} +3 -3
- package/dist/cli/chunks/{llm-router-ATNRDTEM.js → llm-router-DRX7E7XI.js} +4 -4
- package/dist/cli/chunks/llm-router-service-3XZI7TE5.js +2 -0
- package/dist/cli/chunks/{load-3L2CK4ML.js → load-Y4QJSQQS.js} +2 -2
- package/dist/cli/chunks/load-test-6DIMN4MM.js +2 -0
- package/dist/cli/chunks/{mcp-JJ4ZDUJB.js → mcp-62XB5F5Q.js} +2 -2
- package/dist/cli/chunks/{memory-U3K2Y777.js → memory-ONR7ZN3X.js} +7 -7
- package/dist/cli/chunks/memory-backend-UAMIFHQQ.js +2 -0
- package/dist/cli/chunks/memory-handlers-4IAS3VY7.js +2 -0
- package/dist/cli/chunks/{multi-model-executor-DPCU4CSM.js → multi-model-executor-6IUW6I3H.js} +2 -2
- package/dist/cli/chunks/{opencode-installer-KNUCUSRG.js → opencode-installer-W47DIP2D.js} +2 -2
- package/dist/cli/chunks/{orchestrator-DJV2NUWD.js → orchestrator-FKO5AACT.js} +5 -5
- package/dist/cli/chunks/pattern-null-store-35S3ZRS6.js +2 -0
- package/dist/cli/chunks/{pattern-usage-recorder-TQ7KECBB.js → pattern-usage-recorder-VEPEFTCF.js} +2 -2
- package/dist/cli/chunks/{pipeline-JG57VFOB.js → pipeline-RIITAMZ2.js} +2 -2
- package/dist/cli/chunks/{platform-L7LOBG4E.js → platform-SA5TZEZD.js} +2 -2
- package/dist/cli/chunks/{plugin-ATBPEU2K.js → plugin-F4AN3WVB.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-XCX7CNVW.js → prime-radiant-advanced-wasm-Y35DFGMR.js} +2 -2
- package/dist/cli/chunks/protocol-executor-PHJMZT27.js +2 -0
- package/dist/cli/chunks/{protocol-handler-DOFLSB4N.js → protocol-handler-UCURNXLA.js} +2 -2
- package/dist/cli/chunks/{prove-CDBMRPBD.js → prove-WS57IMPA.js} +2 -2
- package/dist/cli/chunks/provider-manager-TKDL73H3.js +2 -0
- package/dist/cli/chunks/qe-reasoning-bank-DHEF6CTL.js +2 -0
- package/dist/cli/chunks/{quality-5CMQBYP3.js → quality-6UEGUSJX.js} +2 -2
- package/dist/cli/chunks/{quality-gate-LU66IWRT.js → quality-gate-Z4FU2NR2.js} +3 -3
- package/dist/cli/chunks/queen-coordinator-57MCIW2B.js +2 -0
- package/dist/cli/chunks/{real-embeddings-3B7AXYOP.js → real-embeddings-DFB2TSY3.js} +2 -2
- package/dist/cli/chunks/{roocode-installer-GF4YJW7E.js → roocode-installer-TVENBIIA.js} +2 -2
- package/dist/cli/chunks/router-V656FUDE.js +2 -0
- package/dist/cli/chunks/routing-feedback-77GLEBXR.js +2 -0
- package/dist/cli/chunks/{routing-handler-PWQMWFND.js → routing-handler-LZFOVMDI.js} +2 -2
- package/dist/cli/chunks/{ruvector-commands-SMD6KSBD.js → ruvector-commands-HYSHR2XO.js} +2 -2
- package/dist/cli/chunks/{rvf-dual-writer-M5TEJ56X.js → rvf-dual-writer-ZDCAEQDN.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-adapter-EHLWMZYI.js → rvf-migration-adapter-64U4XRDC.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-coordinator-GMVLX3FX.js → rvf-migration-coordinator-C3WP56PE.js} +2 -2
- package/dist/cli/chunks/rvf-native-adapter-34Q74G5N.js +2 -0
- package/dist/cli/chunks/{rvf-store-integrity-PDADEHAZ.js → rvf-store-integrity-HNVPA6JZ.js} +2 -2
- package/dist/cli/chunks/safe-db-Y754OIYY.js +2 -0
- package/dist/cli/chunks/schedule-GMKXLREO.js +2 -0
- package/dist/cli/chunks/scheduler-OIHBKLRQ.js +2 -0
- package/dist/cli/chunks/{security-PSMBTUSM.js → security-KIR5E67V.js} +3 -3
- package/dist/cli/chunks/{shared-rvf-adapter-DP2Z4YLV.js → shared-rvf-adapter-AEMVXITE.js} +2 -2
- package/dist/cli/chunks/{shared-rvf-dual-writer-UOU6ORBJ.js → shared-rvf-dual-writer-J55TEO2S.js} +2 -2
- package/dist/cli/chunks/sqlite-persistence-QLTL46UG.js +2 -0
- package/dist/cli/chunks/{status-handler-T565F47D.js → status-handler-65JO3QZE.js} +2 -2
- package/dist/cli/chunks/{structural-health-54WNSZ7Y.js → structural-health-Y5ZIQWSV.js} +2 -2
- package/dist/cli/chunks/{sync-5ZGYF7JF.js → sync-DCMEOJAW.js} +2 -2
- package/dist/cli/chunks/{sync-EXADT5IZ.js → sync-TSFE2JJR.js} +2 -2
- package/dist/cli/chunks/{task-handler-JXWQZDEX.js → task-handler-RWGEJWEH.js} +2 -2
- package/dist/cli/chunks/{task-handlers-UKHRILMM.js → task-handlers-BXS6YXRM.js} +3 -3
- package/dist/cli/chunks/{test-3SU56PMM.js → test-3W2FHMQX.js} +4 -4
- package/dist/cli/chunks/{test-scheduling-CZZ4KKWM.js → test-scheduling-XNH4DWBN.js} +3 -3
- package/dist/cli/chunks/{token-bootstrap-RSIAPUIV.js → token-bootstrap-MB3MJMZM.js} +2 -2
- package/dist/cli/chunks/{token-usage-7HW43ORO.js → token-usage-YO56DQAT.js} +2 -2
- package/dist/cli/chunks/{transformers-A5REG7OI.js → transformers-VQ6LTFGM.js} +2 -2
- package/dist/cli/chunks/{tree-sitter-wasm-parser-F43MC7E5.js → tree-sitter-wasm-parser-XSFCTQKS.js} +2 -2
- package/dist/cli/chunks/{types-DEOHTTJ3.js → types-72CNMUHH.js} +2 -2
- package/dist/cli/chunks/unified-memory-EG7MANFS.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-GBZ5WSQU.js +2 -0
- package/dist/cli/chunks/unified-persistence-NZRIIHU5.js +2 -0
- package/dist/cli/chunks/{upgrade-7NKNCL2I.js → upgrade-P6ZEWWUQ.js} +2 -2
- package/dist/cli/chunks/{validate-SN2UY7CT.js → validate-Q6HN2RTN.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-YITFMCXY.js → validate-swarm-JAOHXMJD.js} +2 -2
- package/dist/cli/chunks/{vibium-AZNIG6O7.js → vibium-2A7PDY4D.js} +2 -2
- package/dist/cli/chunks/visual-security-IEPJVARC.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-DY4YXPMR.js → web-tree-sitter-YE53Z4LF.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-HXD4BK7N.js → windsurf-installer-RPTAPUTS.js} +2 -2
- package/dist/cli/chunks/{witness-chain-UV7BOO6T.js → witness-chain-CTWDOKUD.js} +2 -2
- package/dist/cli/chunks/witness-chain-ZNAEFUIY.js +2 -0
- package/dist/cli/chunks/{witness-key-manager-BCNW3SZH.js → witness-key-manager-UC3ZLEZI.js} +2 -2
- package/dist/cli/chunks/{workflow-R3SSSWA5.js → workflow-ZETHCXEN.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-B4BRRXDJ.js +2 -0
- package/dist/cli/chunks/{wrappers-6JUXYAML.js → wrappers-JJCXXF7Y.js} +2 -2
- package/dist/cli/commands/memory.js +3 -0
- package/dist/kernel/hybrid-backend.d.ts +2 -1
- package/dist/kernel/hybrid-backend.js +4 -0
- package/dist/kernel/interfaces.d.ts +10 -0
- package/dist/kernel/memory-backend.d.ts +2 -1
- package/dist/kernel/memory-backend.js +8 -0
- package/dist/kernel/native-hnsw-backend.js +8 -6
- package/dist/kernel/unified-memory.d.ts +2 -0
- package/dist/kernel/unified-memory.js +43 -8
- package/dist/mcp/bundle.js +213 -213
- package/dist/mcp/handlers/memory-handlers.d.ts +2 -0
- package/dist/mcp/handlers/memory-handlers.js +13 -2
- package/dist/mcp/types.d.ts +10 -0
- package/package.json +4 -2
- package/dist/cli/chunks/adapter-7XXMDGFO.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-2KGMCBJG.js +0 -2
- package/dist/cli/chunks/base-4M3VL4XK.js +0 -2
- package/dist/cli/chunks/browser-workflow-DHIPXEGO.js +0 -2
- package/dist/cli/chunks/chunk-CVXEOTIK.js +0 -2
- package/dist/cli/chunks/chunk-GA7PUAMT.js +0 -2
- package/dist/cli/chunks/client-IEN43WBH.js +0 -2
- package/dist/cli/chunks/core-handlers-PBITKHVP.js +0 -2
- package/dist/cli/chunks/cross-domain-router-JGCWQ7BO.js +0 -2
- package/dist/cli/chunks/dream-52MPUF5Q.js +0 -2
- package/dist/cli/chunks/heartbeat-scheduler-LMAEJQYQ.js +0 -2
- package/dist/cli/chunks/hnsw-adapter-DGGDYJEL.js +0 -2
- package/dist/cli/chunks/hnsw-index-KA7WDTHX.js +0 -2
- package/dist/cli/chunks/hybrid-router-Q6JQTV55.js +0 -2
- package/dist/cli/chunks/impact-analyzer-7LFSGIQP.js +0 -2
- package/dist/cli/chunks/init-wizard-T4K44J6D.js +0 -2
- package/dist/cli/chunks/kernel-TGHK6X7F.js +0 -2
- package/dist/cli/chunks/knowledge-graph-MV3OSGCB.js +0 -2
- package/dist/cli/chunks/llm-router-service-OOCNAPJO.js +0 -2
- package/dist/cli/chunks/load-test-4OZPYWL4.js +0 -2
- package/dist/cli/chunks/memory-backend-LMRIHJQY.js +0 -2
- package/dist/cli/chunks/memory-handlers-J6CVQ5DS.js +0 -2
- package/dist/cli/chunks/pattern-null-store-AQWPHLRW.js +0 -2
- package/dist/cli/chunks/protocol-executor-FWUT6L6K.js +0 -2
- package/dist/cli/chunks/provider-manager-4PY7IR3V.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-M4XVWRPY.js +0 -2
- package/dist/cli/chunks/queen-coordinator-KSRI42QZ.js +0 -2
- package/dist/cli/chunks/router-F2TCXNSG.js +0 -2
- package/dist/cli/chunks/routing-feedback-VHOWXUY7.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-XG3LFOYW.js +0 -2
- package/dist/cli/chunks/safe-db-CTHJ3SXC.js +0 -2
- package/dist/cli/chunks/schedule-LLYADLGL.js +0 -2
- package/dist/cli/chunks/scheduler-72YIGDIX.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-N7OO3ZOE.js +0 -2
- package/dist/cli/chunks/unified-memory-Q55MJWAM.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-4BEKV2K5.js +0 -2
- package/dist/cli/chunks/unified-persistence-IIB5MR67.js +0 -2
- package/dist/cli/chunks/visual-security-F4FUP6KV.js +0 -2
- package/dist/cli/chunks/witness-chain-SQ5LCKUQ.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-Z4PZXWVY.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.13.
|
|
2
|
-
import{b as l,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.13.7");process.exit(0)}
|
|
2
|
+
import{b as l,c}from"./chunk-EV7S4J35.js";import{i}from"./chunk-Q6BYBRNA.js";c();var u=.15,d=.03,p=.25,s=class{constructor(t){this.db=t;l(t)}db;recordNull(t){this.db.prepare(`
|
|
3
3
|
INSERT INTO qe_pattern_nulls (id, pattern_id, context_fingerprint, failure_mode, trajectory_ref, evidence_class)
|
|
4
4
|
VALUES (?, ?, ?, ?, ?, ?)
|
|
5
5
|
ON CONFLICT(pattern_id, context_fingerprint) DO UPDATE SET
|
|
@@ -1,4 +1,4 @@
|
|
|
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.13.
|
|
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.13.7");process.exit(0)}
|
|
2
2
|
var i={domain:"test-generation",bestPractices:["Follow Arrange-Act-Assert (AAA) pattern for clear test structure","One logical assertion per test - test one behavior at a time","Use descriptive test names: should_returnValue_when_condition","Mock external dependencies to isolate unit under test","Test edge cases and boundary conditions, not just happy paths","Keep tests deterministic - avoid time-dependent assertions","Use test data builders or factories for complex objects","Prefer integration tests for workflows, unit tests for logic","Maintain test independence - no shared mutable state between tests","Write failing test first (TDD Red) before implementation"],antiPatterns:[{name:"God Test",description:"A single test that verifies too many behaviors",reason:"Hard to diagnose failures, brittle, slow to run",alternative:"Split into focused tests, each verifying one behavior",detection:"expect.*expect.*expect.*expect.*expect"},{name:"Mystery Guest",description:"Test relies on external data files or state not visible in test",reason:"Tests are hard to understand and maintain",alternative:"Make test data explicit within the test or use fixtures"},{name:"Eager Test",description:"Test that verifies more than needed for the current behavior",reason:"Creates unnecessary coupling, breaks easily",alternative:"Only assert what is necessary for this specific test case"},{name:"Flaky Assertion",description:"Assertions that depend on timing, order, or external state",reason:"Creates unreliable test suite, erodes trust",alternative:"Use deterministic assertions, mock time/random",detection:"setTimeout|Date\\.now|Math\\.random"},{name:"Test Code Duplication",description:"Same setup or assertion code repeated across tests",reason:"Maintenance burden, inconsistency risk",alternative:"Extract to beforeEach, helpers, or fixtures"}],frameworkGuidance:{jest:["Use describe blocks to group related tests","Prefer toEqual for deep equality, toBe for primitives","Use jest.mock() at module level for consistent mocking","Use jest.spyOn for partial mocking of objects","Enable --coverage to track test coverage"],vitest:["Use vi.mock() for module mocking","Prefer vi.fn() over jest.fn() syntax","Use vitest/ui for interactive test debugging","Enable browser mode for component tests","Use inline snapshots for small expected values"],mocha:["Use beforeEach/afterEach for setup/teardown","Combine with chai for assertions","Use sinon for spies, stubs, and mocks","Set appropriate timeouts for async tests"],pytest:["Use fixtures for reusable test setup","Use parametrize for data-driven tests","Use conftest.py for shared fixtures","Use pytest.raises for exception testing","Use pytest-cov for coverage reporting"],junit:["Use @BeforeEach and @AfterEach for setup/teardown","Use @DisplayName for readable test names","Use @ParameterizedTest for data-driven tests","Use Mockito for mocking dependencies"],testng:["Use @BeforeMethod and @AfterMethod appropriately","Use @DataProvider for parameterized tests","Configure test groups for selective execution"],playwright:["Use page.locator() for resilient element selection","Use expect(locator) for auto-waiting assertions","Use page.waitForLoadState for navigation","Use test.describe for grouping tests","Use fixtures for reusable browser contexts"],cypress:["Use cy.intercept() for API mocking","Avoid conditional testing - use deterministic state","Use data-cy attributes for stable selectors","Use cy.within() for scoped queries","Prefer cy.contains() for text-based selection"],selenium:["Use explicit waits over implicit waits","Use Page Object Model for maintainability","Handle stale element references with retry logic","Clean up browser state between tests"]},languageGuidance:{typescript:["Use type assertions in tests for better IDE support","Create typed test fixtures and builders","Use satisfies operator for test data validation","Mock types with ts-mockito or typed mocking libs"],javascript:["Use JSDoc comments for test documentation","Consider TypeScript for larger test suites","Use ESLint with testing plugins"],python:["Use type hints in test functions","Use dataclasses for test data","Follow PEP 8 naming: test_should_do_something"],java:["Use AssertJ for fluent assertions","Use Lombok for test data classes","Follow naming: shouldDoSomething_whenCondition"],go:["Use table-driven tests for multiple cases","Use testify for assertions and mocking","Place tests in _test.go files"],rust:["Use #[test] attribute for test functions","Use assert!, assert_eq!, assert_ne! macros","Place unit tests in same file with #[cfg(test)]"],csharp:["Use xUnit or NUnit for testing","Use FluentAssertions for readable assertions","Use Moq for mocking interfaces"],kotlin:["Use kotest for BDD-style testing","Use MockK for Kotlin-first mocking","Use data classes for test fixtures"]},examples:[{title:"Unit Test Template (TypeScript + Vitest)",description:"Standard AAA pattern for unit tests",content:`describe('UserService', () => {
|
|
3
3
|
describe('createUser', () => {
|
|
4
4
|
it('should create user with valid data', async () => {
|
|
@@ -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.13.
|
|
2
|
-
import{a as R}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.13.7");process.exit(0)}
|
|
2
|
+
import{a as R}from"./chunk-7ZSEZOEQ.js";import{m as T}from"./chunk-S6CNNFVF.js";import{b as S}from"./chunk-QVQYDUMR.js";import{a as b,c as P}from"./chunk-A3XAWNOW.js";import{i as h}from"./chunk-Q6BYBRNA.js";import{a as M}from"./chunk-IVNRCF65.js";T();P();import*as f from"path";import*as c from"fs";function C(){return process.env.AQE_MEMORY_BACKEND==="memory"}var s=null,d=null,g=null;function O(o){g=o}async function x(){return s||d||(d=(async()=>{if(C()){let r=new M;return await r.initialize(),s=r,r}let o=S(),e=f.join(o,".agentic-qe");c.existsSync(e)||c.mkdirSync(e,{recursive:!0});let t=new R({sqlite:{path:f.join(e,"memory.db"),walMode:!0,poolSize:3,busyTimeout:5e3},enableFallback:!0,defaultNamespace:"mcp-tools"});return await t.initialize(),s=t,t})(),d)}function E(){if(g)try{g()}catch{}s&&(s.dispose().catch(()=>{}),s=null),d=null}async function q(o){return o?.memory?o.memory:x()}var m=null,l=null;function L(){let o=(process.env.AQE_LLM_ROUTER_DISABLED??"").trim().toLowerCase();return o?o!=="false"&&o!=="0"&&o!=="no"&&o!=="off":!1}function I(o){m=o,l=null}async function w(){return L()?null:m||l||(l=(async()=>{let{createLLMRouterService:o}=await import("./llm-router-service-3XZI7TE5.js"),e=await o();return e?(m=e.router,m):null})(),l)}function H(){m=null,l=null}async function K(o){return o?.llmRouter?o.llmRouter:await w()??void 0}async function N(o){if(o?.kernel)return o.kernel;try{let{getFleetState:e}=await import("./core-handlers-LMFAYPU2.js");return e().kernel??void 0}catch{return}}var v={info:(o,e)=>console.log(`[MCP-TOOL] ${o}`,e||""),warn:(o,e)=>console.warn(`[MCP-TOOL] \u26A0\uFE0F ${o}`,e||""),error:(o,e)=>console.error(`[MCP-TOOL] \u274C ${o}`,e||"")},k=class{logger=v;currentDataSource="real";setLogger(e){this.logger=e}markAsDemoData(e,t){this.currentDataSource=e.demoMode?"demo":"fallback",this.logger.warn(`${this.config.name} returning ${this.currentDataSource} data`,{reason:t,requestId:e.requestId,demoMode:e.demoMode})}markAsRealData(){this.currentDataSource="real"}isDemoMode(e){return e.demoMode===!0}validate(e){let t=[];if(typeof e!="object"||e===null)return{valid:!1,errors:["Parameters must be an object"]};let r=e,{properties:i,required:n}=this.config.schema;if(n)for(let a of n)a in r||t.push(`Missing required field: ${a}`);for(let[a,u]of Object.entries(r)){let p=i[a];if(!p)continue;let y=this.validateType(a,u,p);y&&t.push(y)}return{valid:t.length===0,errors:t}}validateType(e,t,r){if(t==null)return null;let i=Array.isArray(t)?"array":typeof t;if(r.type==="array"&&!Array.isArray(t))return`${e} must be an array`;if(r.type!=="array"&&i!==r.type)return`${e} must be of type ${r.type}, got ${i}`;if(r.enum&&!r.enum.includes(t))return`${e} must be one of: ${r.enum.join(", ")}`;if(r.type==="number"){let n=t;if(r.minimum!==void 0&&n<r.minimum)return`${e} must be >= ${r.minimum}`;if(r.maximum!==void 0&&n>r.maximum)return`${e} must be <= ${r.maximum}`}if(r.type==="string"){let n=t;if(r.minLength!==void 0&&n.length<r.minLength)return`${e} must be at least ${r.minLength} characters`;if(r.maxLength!==void 0&&n.length>r.maxLength)return`${e} must be at most ${r.maxLength} characters`}return null}async invoke(e,t={}){let r=Date.now(),i=h();this.currentDataSource="real";let n=this.validate(e);if(!n.valid)return{success:!1,error:`Validation failed: ${n.errors.join("; ")}`,metadata:this.createMetadata(r,i)};let a={requestId:i,startTime:r,streaming:t.streaming,onStream:t.onStream,abortSignal:t.abortSignal,demoMode:t.demoMode,memory:t.memory,llmRouter:t.llmRouter,kernel:t.kernel};try{let u=await this.execute(e,a);return{...u,metadata:{...u.metadata,...this.createMetadata(r,i)}}}catch(u){return{success:!1,error:b(u),metadata:this.createMetadata(r,i)}}}createMetadata(e,t){return{executionTime:Date.now()-e,timestamp:new Date().toISOString(),requestId:t,domain:this.config.domain,toolName:this.config.name,dataSource:this.currentDataSource}}emitStream(e,t){e.streaming&&e.onStream&&e.onStream(t)}isAborted(e){return e.abortSignal?.aborted??!1}get name(){return this.config.name}get description(){return this.config.description}get domain(){return this.config.domain}getSchema(){return this.config.schema}get timeout(){return this.config.timeout??6e4}get supportsStreaming(){return this.config.streaming??!1}resetInstanceCache(){}};export{C as a,O as b,x as c,E as d,q as e,I as f,w as g,H as h,K as i,N as j,v as k,k as l};
|
|
@@ -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.13.
|
|
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.13.7");process.exit(0)}
|
|
2
2
|
var N="ffffffff-ffff-ffff-ffff-ffffffffffff";var _="00000000-0000-0000-0000-000000000000";var y=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function k(r){return typeof r=="string"&&y.test(r)}var u=k;function q(r){if(!u(r))throw TypeError("Invalid UUID");let n;return Uint8Array.of((n=parseInt(r.slice(0,8),16))>>>24,n>>>16&255,n>>>8&255,n&255,(n=parseInt(r.slice(9,13),16))>>>8,n&255,(n=parseInt(r.slice(14,18),16))>>>8,n&255,(n=parseInt(r.slice(19,23),16))>>>8,n&255,(n=parseInt(r.slice(24,36),16))/1099511627776&255,n/4294967296&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255)}var c=q;var x=[];for(let r=0;r<256;++r)x.push((r+256).toString(16).slice(1));function l(r,n=0){return(x[r[n+0]]+x[r[n+1]]+x[r[n+2]]+x[r[n+3]]+"-"+x[r[n+4]]+x[r[n+5]]+"-"+x[r[n+6]]+x[r[n+7]]+"-"+x[r[n+8]]+x[r[n+9]]+"-"+x[r[n+10]]+x[r[n+11]]+x[r[n+12]]+x[r[n+13]]+x[r[n+14]]+x[r[n+15]]).toLowerCase()}function C(r,n=0){let f=l(r,n);if(!u(f))throw TypeError("Stringified UUID is invalid");return f}var H=C;var v=new Uint8Array(16);function m(){return crypto.getRandomValues(v)}var g={};function X(r,n,f){let e,o=r?._v6??!1;if(r){let t=Object.keys(r);t.length===1&&t[0]==="_v6"&&(r=void 0)}if(r)e=E(r.random??r.rng?.()??m(),r.msecs,r.nsecs,r.clockseq,r.node,n,f);else{let t=Date.now(),i=m();j(g,t,i),e=E(i,g.msecs,g.nsecs,o?void 0:g.clockseq,o?void 0:g.node,n,f)}return n??l(e)}function j(r,n,f){return r.msecs??=-1/0,r.nsecs??=0,n===r.msecs?(r.nsecs++,r.nsecs>=1e4&&(r.node=void 0,r.nsecs=0)):n>r.msecs?r.nsecs=0:n<r.msecs&&(r.node=void 0),r.node||(r.node=f.slice(10,16),r.node[0]|=1,r.clockseq=(f[8]<<8|f[9])&16383),r.msecs=n,r}function E(r,n,f,e,o,t,i=0){if(r.length<16)throw new Error("Random bytes length must be >= 16");if(!t)t=new Uint8Array(16),i=0;else if(i<0||i+16>t.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);n??=Date.now(),f??=0,e??=(r[8]<<8|r[9])&16383,o??=r.slice(10,16),n+=122192928e5;let d=((n&268435455)*1e4+f)%4294967296;t[i++]=d>>>24&255,t[i++]=d>>>16&255,t[i++]=d>>>8&255,t[i++]=d&255;let a=n/4294967296*1e4&268435455;t[i++]=a>>>8&255,t[i++]=a&255,t[i++]=a>>>24&15|16,t[i++]=a>>>16&255,t[i++]=e>>>8|128,t[i++]=e&255;for(let p=0;p<6;++p)t[i++]=o[p];return t}var D=X;function U(r){let n=typeof r=="string"?c(r):r,f=G(n);return typeof r=="string"?l(f):f}function G(r){return Uint8Array.of((r[6]&15)<<4|r[7]>>4&15,(r[7]&15)<<4|(r[4]&240)>>4,(r[4]&15)<<4|(r[5]&240)>>4,(r[5]&15)<<4|(r[0]&240)>>4,(r[0]&15)<<4|(r[1]&240)>>4,(r[1]&15)<<4|(r[2]&240)>>4,96|r[2]&15,r[3],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15])}import{createHash as K}from"node:crypto";function M(r){return Array.isArray(r)?r=Buffer.from(r):typeof r=="string"&&(r=Buffer.from(r,"utf8")),K("md5").update(r).digest()}var T=M;function O(r){r=unescape(encodeURIComponent(r));let n=new Uint8Array(r.length);for(let f=0;f<r.length;++f)n[f]=r.charCodeAt(f);return n}var w="6ba7b810-9dad-11d1-80b4-00c04fd430c8",I="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function h(r,n,f,e,o,t){let i=typeof f=="string"?O(f):f,d=typeof e=="string"?c(e):e;if(typeof e=="string"&&(e=c(e)),e?.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let a=new Uint8Array(16+i.length);if(a.set(d),a.set(i,d.length),a=n(a),a[6]=a[6]&15|r,a[8]=a[8]&63|128,o){if(t??=0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let p=0;p<16;++p)o[t+p]=a[p];return o}return l(a)}function S(r,n,f,e){return h(48,T,r,n,f,e)}S.DNS=w;S.URL=I;var z=S;function F(r,n,f){return!n&&!r&&crypto.randomUUID?crypto.randomUUID():J(r,n,f)}function J(r,n,f){r=r||{};let e=r.random??r.rng?.()??m();if(e.length<16)throw new Error("Random bytes length must be >= 16");if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,n){if(f=f||0,f<0||f+16>n.length)throw new RangeError(`UUID byte range ${f}:${f+15} is out of buffer bounds`);for(let o=0;o<16;++o)n[f+o]=e[o];return n}return l(e)}var P=F;import{createHash as Q}from"node:crypto";function W(r){return Array.isArray(r)?r=Buffer.from(r):typeof r=="string"&&(r=Buffer.from(r,"utf8")),Q("sha1").update(r).digest()}var V=W;function R(r,n,f,e){return h(80,V,r,n,f,e)}R.DNS=w;R.URL=I;var Y=R;function Z(r,n,f){r??={},f??=0;let e=D({...r,_v6:!0},new Uint8Array(16));if(e=U(e),n){if(f<0||f+16>n.length)throw new RangeError(`UUID byte range ${f}:${f+15} is out of buffer bounds`);for(let o=0;o<16;o++)n[f+o]=e[o];return n}return l(e)}var s=Z;function $(r){let n=typeof r=="string"?c(r):r,f=b(n);return typeof r=="string"?l(f):f}function b(r){return Uint8Array.of((r[3]&15)<<4|r[4]>>4&15,(r[4]&15)<<4|(r[5]&240)>>4,(r[5]&15)<<4|r[6]&15,r[7],(r[1]&15)<<4|(r[2]&240)>>4,(r[2]&15)<<4|(r[3]&240)>>4,16|(r[0]&240)>>4,(r[0]&15)<<4|(r[1]&240)>>4,r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15])}var A={};function B(r,n,f){let e;if(r)e=L(r.random??r.rng?.()??m(),r.msecs,r.seq,n,f);else{let o=Date.now(),t=m();r0(A,o,t),e=L(t,A.msecs,A.seq,n,f)}return n??l(e)}function r0(r,n,f){return r.msecs??=-1/0,r.seq??=0,n>r.msecs?(r.seq=f[6]<<23|f[7]<<16|f[8]<<8|f[9],r.msecs=n):(r.seq=r.seq+1|0,r.seq===0&&r.msecs++),r}function L(r,n,f,e,o=0){if(r.length<16)throw new Error("Random bytes length must be >= 16");if(!e)e=new Uint8Array(16),o=0;else if(o<0||o+16>e.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);return n??=Date.now(),f??=r[6]*127<<24|r[7]<<16|r[8]<<8|r[9],e[o++]=n/1099511627776&255,e[o++]=n/4294967296&255,e[o++]=n/16777216&255,e[o++]=n/65536&255,e[o++]=n/256&255,e[o++]=n&255,e[o++]=112|f>>>28&15,e[o++]=f>>>20&255,e[o++]=128|f>>>14&63,e[o++]=f>>>6&255,e[o++]=f<<2&255|r[10]&3,e[o++]=r[11],e[o++]=r[12],e[o++]=r[13],e[o++]=r[14],e[o++]=r[15],e}var n0=B;function f0(r){if(!u(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var e0=f0;export{N as a,_ as b,u as c,c as d,H as e,D as f,U as g,z as h,P as i,Y as j,s as k,$ as l,n0 as m,e0 as n};
|
|
@@ -1,4 +1,4 @@
|
|
|
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.13.
|
|
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.13.7");process.exit(0)}
|
|
2
2
|
import*as h from"fs";import*as M from"path";var S=["coverage/coverage-final.json","coverage/coverage-summary.json",".coverage/coverage-final.json"];function x(s){for(let v of S){let i=M.join(s,v);if(h.existsSync(i))try{let n=JSON.parse(h.readFileSync(i,"utf-8"));if(n.total&&n.total.lines)return L(n,s);let o=new Map;for(let[r,C]of Object.entries(n)){let c=C,g=Object.keys(c.s),u=g.filter(a=>c.s[a]>0).length,b=Object.keys(c.b),p=0,m=0;for(let a of b)for(let y of c.b[a])p++,y>0&&m++;let e=Object.keys(c.f),t=e.filter(a=>c.f[a]>0).length,f=new Set,d=new Set;for(let a of g){let y=c.statementMap[a];for(let F=y.start.line;F<=y.end.line;F++)d.add(F),c.s[a]>0&&f.add(F)}let l=[...d].filter(a=>!f.has(a)).sort((a,y)=>a-y);o.set(r,{path:r,lines:{covered:f.size,total:d.size},branches:{covered:m,total:p},functions:{covered:t,total:e.length},statements:{covered:u,total:g.length},uncoveredLines:l,uncoveredBranches:l.slice(0,Math.floor(l.length/2))})}return o.size>0?o:null}catch{continue}}return null}function L(s,v){let i=new Map;for(let[n,o]of Object.entries(s)){if(n==="total")continue;let r=o;i.set(n,{path:n,lines:{covered:r.lines.covered,total:r.lines.total},branches:{covered:r.branches.covered,total:r.branches.total},functions:{covered:r.functions.covered,total:r.functions.total},statements:{covered:r.statements.covered,total:r.statements.total},uncoveredLines:[],uncoveredBranches:[]})}return i.size>0?i:null}function B(s,v){let n=v.split(`
|
|
3
3
|
`).length,r=[s.replace(".ts",".test.ts").replace("/src/","/tests/"),s.replace(".ts",".spec.ts").replace("/src/","/tests/"),s.replace(".ts",".test.ts"),s.replace("/src/","/test/").replace(".ts",".test.ts")].some(d=>h.existsSync(d)),C=(v.match(/\bexport\b/g)||[]).length,c=(v.match(/\b(function|=>)\b/g)||[]).length,g=(v.match(/\b(if|switch|case|\?\?|\|\|)\b/g)||[]).length,u;if(r){let d=Math.min(g*.005,.15),l=Math.min(n*1e-4,.1);u=.85-d-l}else u=.2+(C>5?.1:0);u=Math.max(.05,Math.min(.95,u));let b=Math.floor(n*u),p=Math.max(c,1),m=Math.max(g,1),e=Math.floor(b*.7),t=Math.floor(p*u*.9),f=Array.from({length:n-b},(d,l)=>l+b+1);return{path:s,lines:{covered:b,total:n},branches:{covered:Math.min(e,m),total:m},functions:{covered:Math.min(t,p),total:p},statements:{covered:b,total:n},uncoveredLines:f,uncoveredBranches:f.slice(0,Math.floor(f.length/2))}}function j(s,v){let i=v||process.cwd(),n=x(i),o=[],r=!1;if(n&&n.size>0){r=!0;for(let e of s){let t=M.resolve(e),f=n.get(t)||n.get(e)||n.get(M.relative(i,t));if(f)o.push({...f,path:e});else{let l=(h.existsSync(e)?h.readFileSync(e,"utf-8"):"").split(`
|
|
4
4
|
`).length;o.push({path:e,lines:{covered:0,total:l},branches:{covered:0,total:1},functions:{covered:0,total:1},statements:{covered:0,total:l},uncoveredLines:Array.from({length:l},(a,y)=>y+1),uncoveredBranches:[]})}}}else for(let e of s){let t=h.existsSync(e)?h.readFileSync(e,"utf-8"):"";o.push(B(e,t))}let C=o.reduce((e,t)=>e+t.lines.total,0),c=o.reduce((e,t)=>e+t.lines.covered,0),g=o.reduce((e,t)=>e+t.branches.total,0),u=o.reduce((e,t)=>e+t.branches.covered,0),b=o.reduce((e,t)=>e+t.functions.total,0),p=o.reduce((e,t)=>e+t.functions.covered,0),m=(e,t)=>t>0?Math.round(e/t*100):0;return{files:o,summary:{line:m(c,C),branch:m(u,g),function:m(p,b),statement:m(c,C),files:o.length},instrumented:r}}export{j as a};
|
|
@@ -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.13.
|
|
2
|
-
import{b as d,d 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.13.7");process.exit(0)}
|
|
2
|
+
import{b as d,d as c}from"./chunk-FWU55NEY.js";import{a as l,c as g}from"./chunk-A3XAWNOW.js";g();c();import{existsSync as y,readFileSync as p}from"node:fs";import{join as o,dirname as u}from"node:path";import{fileURLToPath as m}from"node:url";var i=class extends Error{constructor(t,n,r){super(t);this.code=n;this.cause=r;this.name="PatternLoaderError"}code;cause},s=class a{static instance=null;config;patterns;isLoading=!1;constructor(e={}){this.config={basePath:e.basePath??this.getDefaultBasePath(),throwOnMissing:e.throwOnMissing??!1,validatePatterns:e.validatePatterns??!0},this.patterns={index:null,booster:null,router:null,embedding:null,reasoning:null,loadedAt:null,errors:[]}}static getInstance(e){return a.instance||(a.instance=new a(e)),a.instance}static resetInstance(){a.instance=null}getDefaultBasePath(){try{let e=import.meta.url,t=m(e),n=u(t),r=o(n,"..","..","..");return o(r,"assets","patterns")}catch{return o(process.cwd(),"assets","patterns")}}async loadPatterns(){if(!this.isLoading){this.isLoading=!0,this.patterns.errors=[];try{this.patterns.index=this.loadJsonFile("index.json");let[e,t,n,r]=await Promise.all([Promise.resolve(this.loadJsonFile("adr-051-booster-patterns.json")),Promise.resolve(this.loadJsonFile("adr-051-router-patterns.json")),Promise.resolve(this.loadJsonFile("adr-051-embedding-patterns.json")),Promise.resolve(this.loadJsonFile("adr-051-reasoning-patterns.json"))]);this.patterns.booster=e,this.patterns.router=t,this.patterns.embedding=n,this.patterns.reasoning=r,this.patterns.loadedAt=new Date,this.config.validatePatterns&&this.validateLoadedPatterns()}finally{this.isLoading=!1}}}loadJsonFile(e){let t=o(this.config.basePath,e);try{if(!y(t)){let r=`Pattern file not found: ${t}`;if(this.patterns.errors.push(r),this.config.throwOnMissing)throw new i(r,"FILE_NOT_FOUND");return null}let n=p(t,"utf-8");return d(n)}catch(n){if(n instanceof i)throw n;let r=`Failed to load pattern file ${e}: ${l(n)}`;if(this.patterns.errors.push(r),this.config.throwOnMissing)throw new i(r,"PARSE_ERROR",n instanceof Error?n:void 0);return null}}validateLoadedPatterns(){this.patterns.booster&&(Array.isArray(this.patterns.booster.patterns)||this.patterns.errors.push("Booster patterns file missing patterns array")),this.patterns.router&&(Array.isArray(this.patterns.router.patterns)||this.patterns.errors.push("Router patterns file missing patterns array")),this.patterns.embedding&&(Array.isArray(this.patterns.embedding.patterns)||this.patterns.errors.push("Embedding patterns file missing patterns array")),this.patterns.reasoning&&(Array.isArray(this.patterns.reasoning.patterns)||this.patterns.errors.push("Reasoning patterns file missing patterns array"))}async ensureLoaded(){this.patterns.loadedAt||await this.loadPatterns()}async getIndex(){return await this.ensureLoaded(),this.patterns.index}async getBoosterPatterns(){return await this.ensureLoaded(),this.patterns.booster}async getRouterPatterns(){return await this.ensureLoaded(),this.patterns.router}async getEmbeddingPatterns(){return await this.ensureLoaded(),this.patterns.embedding}async getReasoningPatterns(){return await this.ensureLoaded(),this.patterns.reasoning}async getBoosterPatternByKey(e){let t=await this.getBoosterPatterns();return t?t.patterns.find(r=>r.key===e)??null:null}async getRouterPatternByKey(e){let t=await this.getRouterPatterns();return t?t.patterns.find(r=>r.key===e)??null:null}async getEmbeddingPatternByKey(e){let t=await this.getEmbeddingPatterns();return t?t.patterns.find(r=>r.key===e)??null:null}async getReasoningPatternByKey(e){let t=await this.getReasoningPatterns();return t?t.patterns.find(r=>r.key===e)??null:null}async getEligibleBoosterTransforms(){let e=await this.getBoosterPatternByKey("booster-transform-eligibility");return e?e.eligibility_criteria.simple_transforms:[]}async getTierHierarchy(){let e=await this.getRouterPatternByKey("router-5tier-complexity");return e?e.tier_hierarchy:null}async getQualityGateThresholds(){let e=await this.getReasoningPatternByKey("reasoning-pattern-quality-gates");return e?e.gate_thresholds:null}isLoaded(){return this.patterns.loadedAt!==null}getLoadedAt(){return this.patterns.loadedAt}getErrors(){return[...this.patterns.errors]}async getStatistics(){let e=await this.getIndex();return e?e.pattern_statistics:null}async reload(){this.patterns={index:null,booster:null,router:null,embedding:null,reasoning:null,loadedAt:null,errors:[]},await this.loadPatterns()}async getAllPatterns(){return await this.ensureLoaded(),{...this.patterns}}};function x(){return s.getInstance()}export{x as a};
|
|
@@ -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.13.
|
|
2
|
-
function b(n,t){return{ingest(e){n.ingest(e)},search(e,r){return n.search(e,r).map(i=>({id:i.id,score:i.score}))},delete(e){n.delete(e)},status(){let e=n.status();return{totalVectors:e.totalVectors,dimensions:t,totalSegments:e.totalSegments,fileSizeBytes:e.fileSizeBytes,epoch:e.epoch,witnessValid:e.witnessValid,witnessEntries:e.witnessEntries}},close(){n.close()},compact(){return n.compact()}}}function c(n,t){return(n.prepare("SELECT COUNT(*) as cnt FROM sqlite_master WHERE type='table' AND name=?").get(t)?.cnt??0)>0}var v=class{db;config;rvfStore=null;rvfAvailable=!1;constructor(t,e){this.db=t,this.config={...e,dimensions:e.dimensions??384}}async initialize(){if(this.config.mode==="sqlite-only"){this.rvfAvailable=!1;return}try{let t=await import("./rvf-native-adapter-
|
|
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.13.7");process.exit(0)}
|
|
2
|
+
function b(n,t){return{ingest(e){n.ingest(e)},search(e,r){return n.search(e,r).map(i=>({id:i.id,score:i.score}))},delete(e){n.delete(e)},status(){let e=n.status();return{totalVectors:e.totalVectors,dimensions:t,totalSegments:e.totalSegments,fileSizeBytes:e.fileSizeBytes,epoch:e.epoch,witnessValid:e.witnessValid,witnessEntries:e.witnessEntries}},close(){n.close()},compact(){return n.compact()}}}function c(n,t){return(n.prepare("SELECT COUNT(*) as cnt FROM sqlite_master WHERE type='table' AND name=?").get(t)?.cnt??0)>0}var v=class{db;config;rvfStore=null;rvfAvailable=!1;constructor(t,e){this.db=t,this.config={...e,dimensions:e.dimensions??384}}async initialize(){if(this.config.mode==="sqlite-only"){this.rvfAvailable=!1;return}try{let t=await import("./rvf-native-adapter-34Q74G5N.js");if(!t.isRvfNativeAvailable()){this.rvfAvailable=!1;return}let e;try{e=t.openRvfStore(this.config.rvfPath)}catch{try{e=t.createRvfStore(this.config.rvfPath,this.config.dimensions)}catch(r){let{quarantineUnusableStore:i}=await import("./rvf-store-integrity-HNVPA6JZ.js");if(!i(this.config.rvfPath,r instanceof Error?r.message:String(r)))throw r;e=t.createRvfStore(this.config.rvfPath,this.config.dimensions)}}this.rvfStore=b(e,this.config.dimensions),this.rvfAvailable=!0}catch(t){this.rvfAvailable=!1,console.warn(`[RVF] Dual-writer disabled for ${this.config.rvfPath}; falling back to SQLite: ${t instanceof Error?t.message:String(t)}`)}}setRvfStore(t){this.rvfStore=t,this.rvfAvailable=!0}writePattern(t,e){let r={sqliteSuccess:!1,rvfSuccess:!1};try{this.writeSqliteEmbedding(t,e),r.sqliteSuccess=!0}catch{r.sqliteSuccess=!1}if(this.shouldWriteRvf())try{this.rvfStore.ingest([{id:t,vector:e instanceof Float32Array?Array.from(e):e}]),r.rvfSuccess=!0}catch{r.rvfSuccess=!1,r.divergence="rvf-write-failed"}return r}deletePattern(t){let e={sqliteSuccess:!1,rvfSuccess:!1};try{this.deleteSqliteEmbedding(t),e.sqliteSuccess=!0}catch{e.sqliteSuccess=!1}if(this.shouldWriteRvf())try{this.rvfStore.delete([t]),e.rvfSuccess=!0}catch{e.rvfSuccess=!1,e.divergence="rvf-delete-failed"}return e}search(t,e){if(this.config.mode==="rvf-primary"&&this.rvfAvailable&&this.rvfStore)try{return this.rvfStore.search(t,e)}catch{}return this.searchSqlite(t,e)}getDivergenceReport(){let t={totalChecked:0,divergences:0,details:[]},e=this.getSqliteEmbeddingCount();if(t.totalChecked=e,!this.rvfAvailable||!this.rvfStore)return this.config.mode!=="sqlite-only"&&e>0&&(t.divergences=1,t.details.push({patternId:"*",issue:"count-mismatch"})),t;let i=this.rvfStore.status().totalVectors;return e!==i&&(t.divergences=1,t.details.push({patternId:"*",issue:"count-mismatch"})),t}isPromotionSafe(){return this.getDivergenceReport().divergences===0}status(){let t=this.getSqlitePatternCount(),e=this.getSqliteEmbeddingCount(),r=null;if(this.rvfAvailable&&this.rvfStore)try{r=this.rvfStore.status()}catch{r=null}return{sqlite:{patternCount:t,vectorCount:e},rvf:r,mode:this.config.mode}}close(){if(this.rvfStore){try{this.rvfStore.close()}catch{}this.rvfStore=null,this.rvfAvailable=!1}}compact(){if(!this.rvfStore||!this.rvfAvailable||!this.rvfStore.compact)return null;try{return this.rvfStore.compact()??null}catch{return null}}shouldWriteRvf(){return(this.config.mode==="dual-write"||this.config.mode==="rvf-primary")&&this.rvfAvailable&&this.rvfStore!==null}writeSqliteEmbedding(t,e){let r=Buffer.from(e instanceof Float32Array?e.buffer:new Float32Array(e).buffer),i=e.length;c(this.db,"qe_pattern_embeddings")&&this.db.prepare(`
|
|
3
3
|
INSERT INTO qe_pattern_embeddings (pattern_id, embedding, dimension, model, created_at)
|
|
4
4
|
VALUES (?, ?, ?, 'all-MiniLM-L6-v2', datetime('now'))
|
|
5
5
|
ON CONFLICT(pattern_id) DO UPDATE SET
|
|
@@ -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.13.
|
|
2
|
-
import{b as A,d as M}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.13.7");process.exit(0)}
|
|
2
|
+
import{b as A,d as M}from"./chunk-FWU55NEY.js";import{a as S,b as D}from"./chunk-ME4KYCIL.js";import{S as Q,l as E}from"./chunk-COM3MXBJ.js";import{g as C}from"./chunk-YSB6GH53.js";M();Q();var v=(1+Math.sqrt(5))/2,R=1/v;function k(t,e=0){if(t<0||!Number.isFinite(t))throw new Error(`Invalid dither sequence length: ${t}`);if(!Number.isFinite(e))throw new Error(`Invalid dither seed: ${e}`);let n=new Float32Array(t),r=(e*R%1+1)%1;for(let i=0;i<t;i++)n[i]=((r+(i+1)*v)%1+1)%1;return n}function I(t,e,n=0){if(!(t instanceof Float32Array))throw new Error("Input vector must be a Float32Array");if(t.length===0)return{quantized:new Int32Array(0),dequantized:new Float32Array(0),bitDepth:e,seed:n,stepSize:0,minValue:0,maxValue:0};if(e<1||e>32||!Number.isInteger(e))throw new Error(`Invalid bit depth: ${e}. Must be an integer in [1, 32].`);let r=t[0],i=t[0];for(let d=1;d<t.length;d++)t[d]<r&&(r=t[d]),t[d]>i&&(i=t[d]);let s=(1<<e)-1,a=i-r,o=a===0?1:a/s,m=k(t.length,n),l=new Int32Array(t.length),u=new Float32Array(t.length);for(let d=0;d<t.length;d++){if(a===0)l[d]=Math.round(s/2);else{let L=(t[d]-r)/o+(m[d]-.5);l[d]=Math.max(0,Math.min(s,Math.round(L)))}u[d]=l[d]*o+r}return{quantized:l,dequantized:u,bitDepth:e,seed:n,stepSize:o,minValue:r,maxValue:i}}var h=null,b=null,p=null,g=null,f=null,w=null,x=!1;try{let t=(D(),C(S));h=t.RuvectorLayer,b=t.TensorCompress,p=t.differentiableSearch,g=t.hierarchicalForward,f=t.getCompressionLevel,w=t.init,x=!0}catch{}function H(){return x}function c(){if(!x)throw new Error("@ruvector/gnn native module is not available on this platform. Install the appropriate optional dependency for your platform, or use a platform where pre-built binaries are available.")}var F=!1;function V(){if(!F){c();let t=w();return F=!0,t}return"@ruvector/gnn already initialized"}var y=class{indexes;config;nextId;gnnLayers;compressor;constructor(e={}){this.config={M:e.M||16,efConstruction:e.efConstruction||200,efSearch:e.efSearch||50,dimension:e.dimension||384,metric:e.metric||"cosine",quantization:e.quantization||"none"},this.indexes=new Map,this.nextId=new Map,this.gnnLayers=new Map,c(),this.compressor=new b,V()}initializeIndex(e){this.indexes.has(e)||(this.indexes.set(e,new Map),this.nextId.set(e,0))}addEmbedding(e,n){let r=e.namespace;this.indexes.has(r)||this.initializeIndex(r);let i=this.indexes.get(r),s=n??this.nextId.get(r);return n===void 0&&this.nextId.set(r,s+1),i.set(s,e),s}addEmbeddingsBatch(e){let n=[];for(let r of e){let i=this.addEmbedding(r.embedding,r.id);n.push(i)}return n}search(e,n={}){let r=n.namespace||e.namespace;if(!this.indexes.has(r))return[];let i=this.indexes.get(r),s=n.limit||10,a=[];for(let[u,d]of i.entries())a.push({id:u,vector:Array.from(d.vector)});if(a.length===0)return[];let o=new Float32Array(e.vector),m=a.map(u=>new Float32Array(u.vector)),l=p(o,m,Math.min(s,a.length),1);return l.indices.map((u,d)=>({id:a[u]?.id??u,distance:1-l.weights[d]}))}differentiableSearchWithWeights(e,n,r,i=1){let s=new Float32Array(e.vector),a=n.map(m=>new Float32Array(m.embedding.vector)),o=p(s,a,Math.min(r,n.length),i);return{indices:o.indices.map(m=>n[m]?.id??m),weights:o.weights}}hierarchicalForward(e,n,r){let i=r.map(l=>`${l.inputDim}-${l.hiddenDim}`).join(",");if(!this.gnnLayers.has(i)){let l=[];for(let u of r){let d=new h(u.inputDim,u.hiddenDim,u.heads,u.dropout);l.push(d)}this.gnnLayers.set(i,l[0])}let a=this.gnnLayers.get(i).toJson(),o=new Float32Array(e),m=n.map(l=>l.map(u=>new Float32Array(u)));return Array.from(g(o,m,[a]))}compressEmbedding(e,n){let r=f(n),s={none:"none",half:"half",pq8:"pq8",pq4:"pq4",binary:"binary"}[r]??"none",a=new Float32Array(e.vector),o=this.compressor.compress(a,n);return{dimension:Array.from(e.vector).length,level:s,data:o,accessFreq:n}}decompressEmbedding(e){let n=this.compressor.decompress(e.data),r={none:"none",half:"fp16",pq8:"int8",pq4:"int8",binary:"binary"};return{vector:n,dimension:e.dimension,namespace:"code",text:"",timestamp:Date.now(),quantization:r[e.level]??"none"}}getCompressionLevelForFrequency(e){return c(),f(e)}getIndexStats(e){return this.indexes.has(e)?{size:this.indexes.get(e).size,maxElements:1e4,dimension:this.config.dimension,metric:this.config.metric}:null}clearIndex(e){this.indexes.delete(e),this.nextId.delete(e)}clearAll(){this.indexes.clear(),this.nextId.clear()}resizeIndex(e){}setEfSearch(e){this.config.efSearch=e}getConfig(){return{...this.config}}isInitialized(e){return this.indexes.has(e)}getInitializedNamespaces(){return Array.from(this.indexes.keys())}getSize(e){return this.indexes.get(e)?.size??0}async saveIndex(e,n){let r=this.indexes.get(e);if(!r)throw new Error(`Namespace ${e} not initialized`);let i=Array.from(r.entries()).map(([a,o])=>({id:a,vector:Array.from(o.vector),metadata:o.metadata}));await(await import("fs/promises")).writeFile(n,JSON.stringify(i,null,2))}async loadIndex(e,n){let i=await(await import("fs/promises")).readFile(n,"utf-8"),s=A(i);this.initializeIndex(e);for(let a of s){let o={vector:a.vector,dimension:a.vector.length,namespace:e,text:"",timestamp:Date.now(),quantization:"none",metadata:a.metadata};this.addEmbedding(o,a.id)}}},q=class{static instances=new Map;static getInstance(e,n){return this.instances.has(e)||this.instances.set(e,new y(n)),this.instances.get(e)}static closeInstance(e){let n=this.instances.get(e);n&&(n.clearAll(),this.instances.delete(e))}static closeAll(){for(let e of this.instances.values())e.clearAll();this.instances.clear()}},z=class{static layers=new Map;static getLayer(e){let n=`${e.inputDim}-${e.hiddenDim}-${e.heads}-${e.dropout}`;if(!this.layers.has(n)){c();let r=new h(e.inputDim,e.hiddenDim,e.heads,e.dropout);this.layers.set(n,r)}return this.layers.get(n)}static layerFromJson(e){return c(),h.fromJson(e)}static clearCache(){this.layers.clear()}},N=class{static _compressor=null;static get compressor(){return this._compressor||(c(),this._compressor=new b),this._compressor}static compressWithLevel(e,n){let r={levelType:n,scale:1,subvectors:n==="pq8"?8:n==="pq4"?16:void 0,centroids:n==="pq8"?256:void 0,outlierThreshold:n==="pq4"?3:void 0,threshold:n==="binary"?0:void 0},i=e instanceof Float32Array?e:new Float32Array(e);return this.compressor.compressWithLevel(i,r)}static decompress(e){return this.compressor.decompress(e)}static getLevel(e){return c(),f(e)}static compressWithDither(e,n,r){let i=e instanceof Float32Array?e:new Float32Array(e),s;if(E()){let o={none:32,half:16,pq8:8,pq4:4,binary:1},m=r?.bitDepth??o[n]??8,l=r?.seed??0;s=I(i,m,l)}return{compressed:this.compressWithLevel(s?s.dequantized:e,n),ditherResult:s}}};function G(){return c(),h}function J(){return c(),b}function O(){return c(),p}function j(){return c(),g}function B(){return c(),f}function K(){return c(),w}function U(t){return t instanceof Float32Array?t:"vector"in t?t.vector instanceof Float32Array?t.vector:new Float32Array(t.vector):new Float32Array(t)}function X(t){return"vector"in t?Array.from(t.vector):Array.from(t)}function Y(t,e="code"){return{vector:t,dimension:t.length,namespace:e,text:"",timestamp:Date.now(),quantization:"none"}}function Z(t,e,n,r=1){let i=[],s=e.map(a=>a instanceof Float32Array?a:new Float32Array(a));for(let a of t){let o=a instanceof Float32Array?a:new Float32Array(a),m=p(o,s,n,r);i.push({indices:m.indices,weights:m.weights})}return i}export{H as a,V as b,y as c,q as d,z as e,N as f,G as g,J as h,O as i,j,B as k,K as l,U as m,X as n,Y as o,Z as p};
|