agentic-qe 3.15.1 → 3.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/helpers/brain-checkpoint.cjs +46 -6
- package/.claude/hooks/aqe-hook.cjs +280 -51
- package/.claude/skills/skills-manifest.json +1 -1
- package/CHANGELOG.md +129 -0
- package/assets/skills/skills-manifest.json +1 -1
- package/dist/adapters/ag-ui/state-delta-cache.js +14 -5
- package/dist/adapters/trajectory-adapter.js +3 -1
- package/dist/cli/bundle.js +5 -5
- package/dist/cli/chunks/adapter-WQSFQES5.js +2 -0
- package/dist/cli/chunks/{agent-booster-wasm-XUHRLKWP.js → agent-booster-wasm-CYG3PKHH.js} +2 -2
- package/dist/cli/chunks/{agent-handler-CL7MJP5W.js → agent-handler-WTFYFZKL.js} +2 -2
- package/dist/cli/chunks/{agent-memory-branch-F7RV72FC.js → agent-memory-branch-G6WE3ZXU.js} +2 -2
- package/dist/cli/chunks/aqe-learning-engine-TDHBBADE.js +2 -0
- package/dist/cli/chunks/{arena-GRRNK7IN.js → arena-S72QW44C.js} +4 -4
- package/dist/cli/chunks/{arena-LHLVOQHW.js → arena-ZFXQEVUQ.js} +2 -2
- package/dist/cli/chunks/{audit-EOP2K34L.js → audit-KPYIEQJ3.js} +3 -3
- package/dist/cli/chunks/base-CZSB27VO.js +2 -0
- package/dist/cli/chunks/{better-sqlite3-YERQ5DOL.js → better-sqlite3-L2M3TI5D.js} +2 -2
- package/dist/cli/chunks/{brain-handler-FBXBM5XE.js → brain-handler-FHKLQTB4.js} +3 -3
- package/dist/cli/chunks/{branch-enumerator-NWO6LNHB.js → branch-enumerator-3BSHOPOK.js} +2 -2
- package/dist/cli/chunks/{browser-EDCG7TNF.js → browser-JUIJPL6Y.js} +2 -2
- package/dist/cli/chunks/browser-workflow-AEMIS6PA.js +2 -0
- package/dist/cli/chunks/{chunk-ARWSPV2C.js → chunk-2GJJGO5D.js} +2 -2
- package/dist/cli/chunks/{chunk-SUFXUM6W.js → chunk-2M75CW5Q.js} +2 -2
- package/dist/cli/chunks/{chunk-ZX4I7IND.js → chunk-2MEWIXW4.js} +2 -2
- package/dist/cli/chunks/{chunk-VEKRK3R6.js → chunk-2TBHPYOU.js} +2 -2
- package/dist/cli/chunks/{chunk-OH4SKOAM.js → chunk-34Y4CIHD.js} +2 -2
- package/dist/cli/chunks/{chunk-JY6HWYC4.js → chunk-35VDOH4Y.js} +1 -1
- package/dist/cli/chunks/{chunk-NK2BR4QZ.js → chunk-366IBPZB.js} +2 -2
- package/dist/cli/chunks/{chunk-PZBYZV5M.js → chunk-3MNKYCLH.js} +1 -1
- package/dist/cli/chunks/chunk-3UUMGWHW.js +316 -0
- package/dist/cli/chunks/{chunk-REGPCPEJ.js → chunk-3Y4GX5FL.js} +2 -2
- package/dist/cli/chunks/{chunk-PGARKOE6.js → chunk-3ZTBV6M3.js} +1 -1
- package/dist/cli/chunks/{chunk-GUHJWBPN.js → chunk-4IYHYHTG.js} +2 -2
- package/dist/cli/chunks/{chunk-J2WALRWR.js → chunk-4JVVVKAX.js} +6 -6
- package/dist/cli/chunks/chunk-4N7YXTV3.js +4 -0
- package/dist/cli/chunks/{chunk-YM3GAJMN.js → chunk-4TM5K6EZ.js} +2 -2
- package/dist/cli/chunks/{chunk-IUGY6Z4Q.js → chunk-5LEUEWJY.js} +2 -2
- package/dist/cli/chunks/{chunk-Q7ONRZBD.js → chunk-5QUOM357.js} +1 -1
- package/dist/cli/chunks/{chunk-5B5TA3X4.js → chunk-5WOBFN2T.js} +2 -2
- package/dist/cli/chunks/{chunk-JEXPSOT2.js → chunk-6AKJ73X3.js} +2 -2
- package/dist/cli/chunks/{chunk-K4NB3MYN.js → chunk-6EQDA4EC.js} +2 -2
- package/dist/cli/chunks/{chunk-HU4QGCIJ.js → chunk-6TYTBQPV.js} +2 -2
- package/dist/cli/chunks/{chunk-RXKOZ6VS.js → chunk-6V6XVGCL.js} +3 -3
- package/dist/cli/chunks/{chunk-4KHSWNFW.js → chunk-6W6GZHQA.js} +6 -6
- package/dist/cli/chunks/{chunk-WTFVYFRZ.js → chunk-7IJVCDDC.js} +1 -1
- package/dist/cli/chunks/{chunk-T5K6ZCA6.js → chunk-7PDC4SKR.js} +1 -1
- package/dist/cli/chunks/{chunk-NF6SLLE6.js → chunk-7SWHW5AC.js} +20 -20
- package/dist/cli/chunks/{chunk-UE33MZOC.js → chunk-7TW5UGDP.js} +2 -2
- package/dist/cli/chunks/{chunk-4AEFJEZH.js → chunk-7UUSV2SK.js} +1 -1
- package/dist/cli/chunks/{chunk-WONHFDWF.js → chunk-A3IQU2ND.js} +2 -2
- package/dist/cli/chunks/{chunk-ALLABEUK.js → chunk-A5H7TF7C.js} +2 -2
- package/dist/cli/chunks/{chunk-C3BW3Q27.js → chunk-A6PII4R4.js} +1 -1
- package/dist/cli/chunks/{chunk-ZE6WJDXM.js → chunk-AEL4XJGJ.js} +2 -2
- package/dist/cli/chunks/{chunk-5QEXDXHQ.js → chunk-AOZJ6UUZ.js} +2 -2
- package/dist/cli/chunks/chunk-APV5UWTU.js +15 -0
- package/dist/cli/chunks/{chunk-YWX7KLNG.js → chunk-AQTQ24SK.js} +3 -3
- package/dist/cli/chunks/{chunk-PBWR2SKH.js → chunk-AS54N3H7.js} +2 -2
- package/dist/cli/chunks/chunk-ASUXS4N4.js +2 -0
- package/dist/cli/chunks/{chunk-JSHASVQ2.js → chunk-B23ROYST.js} +3 -3
- package/dist/cli/chunks/{chunk-NTLWHLAY.js → chunk-BDKQSEEY.js} +1 -1
- package/dist/cli/chunks/{chunk-VLL7ASGH.js → chunk-BO43BGHX.js} +2 -2
- package/dist/cli/chunks/{chunk-KP6LNSDO.js → chunk-CF3BPD2R.js} +161 -159
- package/dist/cli/chunks/{chunk-KTBA2HJC.js → chunk-CFXROOIU.js} +2 -2
- package/dist/cli/chunks/{chunk-SRXXPZVT.js → chunk-CNQUU6CF.js} +2 -2
- package/dist/cli/chunks/{chunk-OKS25EGZ.js → chunk-D5V6C3XG.js} +3 -3
- package/dist/cli/chunks/{chunk-ADEYBXAS.js → chunk-D6PUDLJ4.js} +2 -2
- package/dist/cli/chunks/{chunk-D3LREV4P.js → chunk-DE3QNPTG.js} +1 -1
- package/dist/cli/chunks/{chunk-TJCMG3QE.js → chunk-DH5NWHH2.js} +2 -2
- package/dist/cli/chunks/{chunk-GDSYJHVB.js → chunk-DLA3EHKJ.js} +1 -1
- package/dist/cli/chunks/{chunk-VGYLV6VD.js → chunk-DWG4TN6A.js} +1 -1
- package/dist/cli/chunks/{chunk-4KSCJ462.js → chunk-EBIMVSPH.js} +4 -4
- package/dist/cli/chunks/{chunk-4XEZ562Q.js → chunk-ED5HUPUR.js} +2 -2
- package/dist/cli/chunks/{chunk-CHX65QXY.js → chunk-EQGT4VLC.js} +1 -1
- package/dist/cli/chunks/{chunk-WFDDWRWY.js → chunk-F5BREV2Q.js} +8 -8
- package/dist/cli/chunks/{chunk-7FGSX4UD.js → chunk-FPFGN2Z5.js} +2 -2
- package/dist/cli/chunks/{chunk-3TZRJ5QD.js → chunk-FTUNC4EI.js} +3 -3
- package/dist/cli/chunks/chunk-FXTZXZCU.js +54 -0
- package/dist/cli/chunks/{chunk-DREYYJ7A.js → chunk-GJB3LPCS.js} +2 -2
- package/dist/cli/chunks/{chunk-4P7CGSRL.js → chunk-GPZH6OPP.js} +4 -4
- package/dist/cli/chunks/{chunk-NWNZMXNO.js → chunk-HR7RL4PB.js} +2 -2
- package/dist/cli/chunks/{chunk-NGDRSF6Y.js → chunk-HSR53REE.js} +2 -2
- package/dist/cli/chunks/{chunk-UOHZRR5C.js → chunk-HU474NXP.js} +1 -1
- package/dist/cli/chunks/{chunk-LI7N45GM.js → chunk-HV3ZVUHO.js} +1 -1
- package/dist/cli/chunks/{chunk-WPG6SW7C.js → chunk-HVIFA73X.js} +2 -2
- package/dist/cli/chunks/{chunk-6U6JQS4Z.js → chunk-HW4V7BVV.js} +2 -2
- package/dist/cli/chunks/{chunk-X6W35QXO.js → chunk-I5VJ3FBC.js} +2 -2
- package/dist/cli/chunks/{chunk-YTMWPGVR.js → chunk-IARE5VGI.js} +1 -1
- package/dist/cli/chunks/chunk-INVDDFJC.js +2 -0
- package/dist/cli/chunks/{chunk-RDI3W4H6.js → chunk-JJBTM4JO.js} +2 -2
- package/dist/cli/chunks/chunk-JVQK6NGI.js +14 -0
- package/dist/cli/chunks/{chunk-CFZJEOCD.js → chunk-K65X6CQA.js} +1 -1
- package/dist/cli/chunks/{chunk-6DF6X3SZ.js → chunk-KCBCYF7M.js} +2 -2
- package/dist/cli/chunks/{chunk-QOOADAT7.js → chunk-KGS6H2HB.js} +2 -2
- package/dist/cli/chunks/{chunk-TCJ65NPY.js → chunk-L6OSEWOS.js} +1 -1
- package/dist/cli/chunks/{chunk-BW7S6LIJ.js → chunk-LEB6O2IN.js} +2 -2
- package/dist/cli/chunks/{chunk-WHBDSJUE.js → chunk-LPZAB3N2.js} +3 -3
- package/dist/cli/chunks/{chunk-JYF3QF4C.js → chunk-M3ACHBC7.js} +2 -2
- package/dist/cli/chunks/{chunk-WQZR6DS6.js → chunk-M3ONCPSU.js} +2 -2
- package/dist/cli/chunks/{chunk-7B3XVVYP.js → chunk-MUSYQF53.js} +2 -2
- package/dist/cli/chunks/{chunk-6AVVC7Y3.js → chunk-MZDUBFLP.js} +1 -1
- package/dist/cli/chunks/{chunk-53HWWWFZ.js → chunk-NT6FYFJA.js} +2 -2
- package/dist/cli/chunks/{chunk-6WW6A6JM.js → chunk-O66D4NEJ.js} +2 -2
- package/dist/cli/chunks/{chunk-3NOSMJS4.js → chunk-OGARNKLS.js} +2 -2
- package/dist/cli/chunks/{chunk-KHVWIUAF.js → chunk-OKNMZLGB.js} +2 -2
- package/dist/cli/chunks/{chunk-XCVD57GW.js → chunk-OMHISPPF.js} +1 -1
- package/dist/cli/chunks/{chunk-N5OSH5JO.js → chunk-OT6SOPAL.js} +2 -2
- package/dist/cli/chunks/{chunk-ZZV6GR46.js → chunk-OTTTHNIT.js} +1 -1
- package/dist/cli/chunks/{chunk-XZGRHJGC.js → chunk-P36IODAM.js} +2 -2
- package/dist/cli/chunks/{chunk-JHKMUY4W.js → chunk-P6EGRAQG.js} +2 -2
- package/dist/cli/chunks/{chunk-5JJWVFUV.js → chunk-PBUWNMZ2.js} +1 -1
- package/dist/cli/chunks/{chunk-LQI5GVH7.js → chunk-POTVF6BY.js} +1 -1
- package/dist/cli/chunks/{chunk-N4HQ6FE2.js → chunk-POVP6O6K.js} +1 -1
- package/dist/cli/chunks/{chunk-P24ZBDZY.js → chunk-PPA53NJB.js} +2 -2
- package/dist/cli/chunks/{chunk-OABFAREV.js → chunk-PUPEKA2J.js} +2 -2
- package/dist/cli/chunks/{chunk-27S47AYK.js → chunk-QDQLL2QB.js} +2 -2
- package/dist/cli/chunks/{chunk-MEOAKMKF.js → chunk-QSVNVDA5.js} +1 -1
- package/dist/cli/chunks/{chunk-66HKJJFH.js → chunk-QUXX2DP7.js} +2 -2
- package/dist/cli/chunks/{chunk-TLUMENRZ.js → chunk-QVNMTMDJ.js} +2 -2
- package/dist/cli/chunks/{chunk-LDDIYDIP.js → chunk-QZBFMXO5.js} +54 -54
- package/dist/cli/chunks/{chunk-4THIRDBL.js → chunk-RDTR43YN.js} +2 -2
- package/dist/cli/chunks/{chunk-6MGJMGAD.js → chunk-RGD2CG23.js} +2 -2
- package/dist/cli/chunks/{chunk-V5RP2SU3.js → chunk-RQUSJEON.js} +2 -2
- package/dist/cli/chunks/{chunk-WYE3ICSL.js → chunk-RRSZ27A7.js} +2 -2
- package/dist/cli/chunks/{chunk-GUKBN3BS.js → chunk-RWLOERKK.js} +2 -2
- package/dist/cli/chunks/{chunk-5TEDVUEB.js → chunk-RWQDRPN5.js} +2 -2
- package/dist/cli/chunks/{chunk-2IPBCXTT.js → chunk-S7D4GD7H.js} +2 -2
- package/dist/cli/chunks/{chunk-FTHXV7N7.js → chunk-SKHP5WUP.js} +2 -2
- package/dist/cli/chunks/{chunk-QVTV47TM.js → chunk-SP2JO53K.js} +2 -2
- package/dist/cli/chunks/{chunk-UTFNHITI.js → chunk-SRDECRTL.js} +2 -2
- package/dist/cli/chunks/{chunk-HVAYG54D.js → chunk-TBVPNN65.js} +2 -2
- package/dist/cli/chunks/{chunk-JQVECGYL.js → chunk-U5AVZ3T2.js} +1 -1
- package/dist/cli/chunks/{chunk-EQ3BJS37.js → chunk-UCSGZVJX.js} +1 -1
- package/dist/cli/chunks/{chunk-5C4UYXQL.js → chunk-UGNTLSBL.js} +2 -2
- package/dist/cli/chunks/{chunk-W5NHBYYS.js → chunk-UTALYUMW.js} +2 -2
- package/dist/cli/chunks/{chunk-35XRY6ZW.js → chunk-UZDTRCVU.js} +9 -9
- package/dist/cli/chunks/{chunk-AVOYMVD6.js → chunk-V5NYGDSX.js} +2 -2
- package/dist/cli/chunks/{chunk-FQYXPSWD.js → chunk-VGN46ZT4.js} +2 -2
- package/dist/cli/chunks/{chunk-QMHWJBD3.js → chunk-VHBZADYK.js} +2 -2
- package/dist/cli/chunks/{chunk-54JYUOSR.js → chunk-VOKIUF7I.js} +1 -1
- package/dist/cli/chunks/{chunk-PDLVO3ZR.js → chunk-VRT736E3.js} +2 -2
- package/dist/cli/chunks/{chunk-DV7I6CRH.js → chunk-VUBLJBHQ.js} +2 -2
- package/dist/cli/chunks/{chunk-FRGNM6SW.js → chunk-VX7CQUO7.js} +2 -2
- package/dist/cli/chunks/{chunk-YDM2DPUU.js → chunk-W7EHNX3Y.js} +2 -2
- package/dist/cli/chunks/{chunk-W5HQQTVH.js → chunk-WI7I6LMM.js} +1 -1
- package/dist/cli/chunks/{chunk-46DUU44C.js → chunk-WLOHTLHO.js} +2 -2
- package/dist/cli/chunks/{chunk-W6K77PQR.js → chunk-WQZBKLAG.js} +1 -1
- package/dist/cli/chunks/{chunk-UGUZFUQG.js → chunk-WSND64RL.js} +2 -2
- package/dist/cli/chunks/{chunk-PNK5KHSI.js → chunk-WSUYEVSY.js} +1 -1
- package/dist/cli/chunks/{chunk-FIIHSEXP.js → chunk-WTMLRMKW.js} +2 -2
- package/dist/cli/chunks/{chunk-OPBPFNBO.js → chunk-WW4RJ6BH.js} +2 -2
- package/dist/cli/chunks/{chunk-KBK4GBJQ.js → chunk-X335K4SU.js} +2 -2
- package/dist/cli/chunks/{chunk-NS4RIZ4F.js → chunk-X33LID2T.js} +1 -1
- package/dist/cli/chunks/{chunk-L5GEWKR3.js → chunk-XTGVGZ4J.js} +3 -3
- package/dist/cli/chunks/{chunk-CTLHNFPM.js → chunk-XV2TIODR.js} +1 -1
- package/dist/cli/chunks/{chunk-GAKVCN3C.js → chunk-XXW4KFBB.js} +1 -1
- package/dist/cli/chunks/{chunk-CTK7NMSJ.js → chunk-YCGU2LI7.js} +2 -2
- package/dist/cli/chunks/chunk-YGEC3PSD.js +2 -0
- package/dist/cli/chunks/{chunk-ARGMYSDY.js → chunk-YGKU2QRC.js} +1 -1
- package/dist/cli/chunks/{chunk-6Q7PWKWV.js → chunk-YHZGFWJE.js} +2 -2
- package/dist/cli/chunks/{chunk-V3ISBQ5Q.js → chunk-YJH7UFA2.js} +2 -2
- package/dist/cli/chunks/{chunk-A5LOELVV.js → chunk-YQ3ZW47V.js} +2 -2
- package/dist/cli/chunks/{chunk-25IWHVMW.js → chunk-YTRGMILO.js} +2 -2
- package/dist/cli/chunks/chunk-YW4GM36K.js +2 -0
- package/dist/cli/chunks/{chunk-JW2HNT3J.js → chunk-Z7JPWXW2.js} +2 -2
- package/dist/cli/chunks/{chunk-PZDI7WQ3.js → chunk-Z7UGEQ4G.js} +1 -1
- package/dist/cli/chunks/{chunk-TBCQWD5A.js → chunk-ZATQLTYL.js} +1 -1
- package/dist/cli/chunks/{chunk-DKWB4ERY.js → chunk-ZI6NJEBY.js} +1 -1
- package/dist/cli/chunks/{chunk-B3DWOR5R.js → chunk-ZJW4HRUA.js} +1 -1
- package/dist/cli/chunks/{chunk-X4PGLEPQ.js → chunk-ZL2GYU7H.js} +2 -2
- package/dist/cli/chunks/{ci-K7DG4GSO.js → ci-JPISJ25U.js} +3 -3
- package/dist/cli/chunks/{ci-output-EBSUG6HP.js → ci-output-DPHTFIGX.js} +2 -2
- package/dist/cli/chunks/{circuit-breaker-P6N6YIRZ.js → circuit-breaker-PQ65VU2M.js} +2 -2
- package/dist/cli/chunks/{claude-flow-setup-P6EZPQZT.js → claude-flow-setup-GKHVO7AD.js} +2 -2
- package/dist/cli/chunks/client-BS7I637W.js +2 -0
- package/dist/cli/chunks/{cline-installer-EVZZ3EFY.js → cline-installer-HWMQZJ64.js} +2 -2
- package/dist/cli/chunks/{code-3WLBG2XK.js → code-OTY7BF3D.js} +3 -3
- package/dist/cli/chunks/{code-index-extractor-ZP6D4WL2.js → code-index-extractor-FG3TMHHR.js} +2 -2
- package/dist/cli/chunks/{codex-installer-XAUI4SB7.js → codex-installer-63JARKKS.js} +2 -2
- package/dist/cli/chunks/{completions-RHFNDDG3.js → completions-4ZHONFML.js} +2 -2
- package/dist/cli/chunks/{complexity-analyzer-DCW7Q3OR.js → complexity-analyzer-FYHTJW5Y.js} +2 -2
- package/dist/cli/chunks/{continuedev-installer-53SQA5T6.js → continuedev-installer-ZAWDSUR3.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-SXXMFB6T.js → copilot-installer-5QK565JX.js} +2 -2
- package/dist/cli/chunks/core-handlers-UG7RMTK5.js +2 -0
- package/dist/cli/chunks/cost-tracker-AWWMPPBJ.js +2 -0
- package/dist/cli/chunks/{coverage-AWCS2SP7.js → coverage-SMFQEGKE.js} +3 -3
- package/dist/cli/chunks/cross-domain-router-NX7F6TOF.js +2 -0
- package/dist/cli/chunks/{cursor-installer-4TYF5V5J.js → cursor-installer-3BL7JACV.js} +2 -2
- package/dist/cli/chunks/{daemon-CTZXGN5V.js → daemon-OJ624POF.js} +4 -4
- package/dist/cli/chunks/{daemon-OOY4H6RJ.js → daemon-R6ULBHHF.js} +3 -3
- package/dist/cli/chunks/{dag-attention-scheduler-3WG24Q33.js → dag-attention-scheduler-J6I3LTMY.js} +2 -2
- package/dist/cli/chunks/{detect-O7MUZ6NX.js → detect-5Q5W33UR.js} +2 -2
- package/dist/cli/chunks/{dist-node-H4XI7BAF.js → dist-node-GJNW56NA.js} +2 -2
- package/dist/cli/chunks/{domain-handler-FU4WZ23B.js → domain-handler-IZQY2G44.js} +2 -2
- package/dist/cli/chunks/{domain-plugins-XK26KYNJ.js → domain-plugins-PIGO3KI2.js} +2 -2
- package/dist/cli/chunks/{domain-transfer-6B5NOVH6.js → domain-transfer-NU3B4FQG.js} +2 -2
- package/dist/cli/chunks/dream-GYEH57FW.js +2 -0
- package/dist/cli/chunks/{embed-and-insert-pattern-XNZXPZNL.js → embed-and-insert-pattern-5QDDRPWV.js} +2 -2
- package/dist/cli/chunks/{eval-J3Q5TTI7.js → eval-TB5HOAUY.js} +2 -2
- package/dist/cli/chunks/{experience-capture-middleware-COKIGMXW.js → experience-capture-middleware-SIYVLKDE.js} +3 -3
- package/dist/cli/chunks/{fast-paths-IHWPJI6I.js → fast-paths-T7QELS6D.js} +2 -2
- package/dist/cli/chunks/{feature-flags-WUXFWZLR.js → feature-flags-T3CNNYMJ.js} +2 -2
- package/dist/cli/chunks/{feature-flags-G7ONDNTT.js → feature-flags-TNZ7ZAJV.js} +2 -2
- package/dist/cli/chunks/{file-discovery-JN3YMBOJ.js → file-discovery-M45P2ZCY.js} +2 -2
- package/dist/cli/chunks/{fleet-OUHUZJE4.js → fleet-DSBZPHBZ.js} +3 -3
- package/dist/cli/chunks/{gnn-wrapper-PRH55ZT6.js → gnn-wrapper-EHODCF32.js} +2 -2
- package/dist/cli/chunks/{heartbeat-handler-6YF35AQS.js → heartbeat-handler-V5DBVF7V.js} +4 -4
- package/dist/cli/chunks/heartbeat-scheduler-4TJ3T7LR.js +2 -0
- package/dist/cli/chunks/hnsw-adapter-PHFK4EAP.js +2 -0
- package/dist/cli/chunks/hnsw-index-434XDDBH.js +2 -0
- package/dist/cli/chunks/{hnsw-legacy-bridge-7PAFSTJO.js → hnsw-legacy-bridge-IYKDYA2F.js} +2 -2
- package/dist/cli/chunks/{hnswlib-node-UETDZNNN.js → hnswlib-node-DKG4LW3X.js} +2 -2
- package/dist/cli/chunks/{hooks-QQNUKQAS.js → hooks-VKNMAILY.js} +10 -10
- package/dist/cli/chunks/hybrid-backend-DYVJQENQ.js +2 -0
- package/dist/cli/chunks/{hypergraph-engine-5GDGE3ET.js → hypergraph-engine-AXZVP7A7.js} +2 -2
- package/dist/cli/chunks/{hypergraph-handler-C3F2OJYA.js → hypergraph-handler-6EO6JN4Z.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-CBAST6M2.js +2 -0
- package/dist/cli/chunks/init-handler-N3NG3RHN.js +86 -0
- package/dist/cli/chunks/init-wizard-DWIJW7HY.js +2 -0
- package/dist/cli/chunks/kernel-AQGCS4X2.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-VLJENC76.js → kilocode-installer-JICGAHLM.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-UYPYM6LA.js → kiro-installer-VYBFP6ZH.js} +2 -2
- package/dist/cli/chunks/knowledge-graph-2ICXFUUV.js +2 -0
- package/dist/cli/chunks/{learning-SFIWIG6Z.js → learning-3BHEZEPK.js} +3 -3
- package/dist/cli/chunks/{llm-router-V633KAS5.js → llm-router-GPTEZCUN.js} +4 -4
- package/dist/cli/chunks/llm-router-service-C47RGTH6.js +2 -0
- package/dist/cli/chunks/{load-UWZV4JRA.js → load-W5BIRPU4.js} +2 -2
- package/dist/cli/chunks/load-test-LRDAW3N6.js +2 -0
- package/dist/cli/chunks/{mcp-XVFHUKCP.js → mcp-EBV4DZPG.js} +2 -2
- package/dist/cli/chunks/{memory-BQ5652VK.js → memory-7F6YYKNL.js} +5 -5
- package/dist/cli/chunks/memory-backend-UFBAYPQ6.js +2 -0
- package/dist/cli/chunks/memory-handlers-OGLJHAAJ.js +2 -0
- package/dist/cli/chunks/{multi-model-executor-X6AQ7VVR.js → multi-model-executor-3ZIA2YOL.js} +2 -2
- package/dist/cli/chunks/{opencode-installer-N3V2Z4EF.js → opencode-installer-2XRZUTLR.js} +2 -2
- package/dist/cli/chunks/{orchestrator-KNEKS4F7.js → orchestrator-VSZVJUJW.js} +87 -28
- package/dist/cli/chunks/pattern-null-store-27FCITT3.js +2 -0
- package/dist/cli/chunks/{pattern-usage-recorder-MZIM6XWU.js → pattern-usage-recorder-I2IGVHRL.js} +2 -2
- package/dist/cli/chunks/{pipeline-LNLBKSXR.js → pipeline-5G3O6WBY.js} +2 -2
- package/dist/cli/chunks/{platform-OMUDXHD3.js → platform-6GUFDIA3.js} +2 -2
- package/dist/cli/chunks/{plugin-HGY6KKZW.js → plugin-GYXE4CIC.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-LZBHLQYN.js → prime-radiant-advanced-wasm-THX6JLGZ.js} +2 -2
- package/dist/cli/chunks/{project-root-VPSCDBMD.js → project-root-QJRBKZQU.js} +2 -2
- package/dist/cli/chunks/protocol-executor-XWXXTMEW.js +2 -0
- package/dist/cli/chunks/{protocol-handler-LZXT3TXU.js → protocol-handler-B54LRU26.js} +2 -2
- package/dist/cli/chunks/{prove-I4VKQEYQ.js → prove-PCY2WQOD.js} +2 -2
- package/dist/cli/chunks/qe-reasoning-bank-3RMYXENE.js +2 -0
- package/dist/cli/chunks/{quality-VVAWK2DD.js → quality-LPVDZC7U.js} +2 -2
- package/dist/cli/chunks/{quality-gate-RGXLWYT6.js → quality-gate-L3KXL6WE.js} +3 -3
- package/dist/cli/chunks/queen-coordinator-AS6DZ7UJ.js +2 -0
- package/dist/cli/chunks/{real-embeddings-WM66PMQ6.js → real-embeddings-N3H523PJ.js} +2 -2
- package/dist/cli/chunks/{ref-validation-ZIWJNI6M.js → ref-validation-6BKDPHZ7.js} +2 -2
- package/dist/cli/chunks/{roocode-installer-QYSI3STC.js → roocode-installer-NSGGTWXE.js} +2 -2
- package/dist/cli/chunks/router-OVNLNGHO.js +2 -0
- package/dist/cli/chunks/routing-feedback-TBOWEB6H.js +2 -0
- package/dist/cli/chunks/{routing-handler-BID3EOLE.js → routing-handler-SRQNUBG3.js} +2 -2
- package/dist/cli/chunks/{ruvector-commands-DXIFMF4W.js → ruvector-commands-2IGULGDE.js} +2 -2
- package/dist/cli/chunks/rvf-dual-writer-YJYRCYGT.js +2 -0
- package/dist/cli/chunks/rvf-migration-adapter-VMRQ2SFO.js +2 -0
- package/dist/cli/chunks/{rvf-migration-coordinator-EV5E6SAO.js → rvf-migration-coordinator-ZD6WK5CK.js} +2 -2
- package/dist/cli/chunks/rvf-native-adapter-B75L3ALW.js +2 -0
- package/dist/cli/chunks/{rvf-store-integrity-IT6DCCJK.js → rvf-store-integrity-QULKUBBI.js} +2 -2
- package/dist/cli/chunks/safe-db-CRQHMCV6.js +2 -0
- package/dist/cli/chunks/schedule-L3DKJRXU.js +2 -0
- package/dist/cli/chunks/scheduler-VRHYUGY5.js +2 -0
- package/dist/cli/chunks/{security-AAFAEATQ.js → security-JW4EBARW.js} +3 -3
- package/dist/cli/chunks/{shared-rvf-adapter-QIHSYHAF.js → shared-rvf-adapter-VQ7NJTGY.js} +2 -2
- package/dist/cli/chunks/{shared-rvf-dual-writer-V7OZ6TBR.js → shared-rvf-dual-writer-SKTS52HK.js} +2 -2
- package/dist/cli/chunks/sqlite-persistence-JVAZETTL.js +2 -0
- package/dist/cli/chunks/{standalone-memory-ALZI6VPX.js → standalone-memory-3N4YJCSY.js} +2 -2
- package/dist/cli/chunks/{status-handler-DED5A3OW.js → status-handler-5BQ2IIDG.js} +2 -2
- package/dist/cli/chunks/{structural-health-CB7L3NWH.js → structural-health-WGYR2RJB.js} +2 -2
- package/dist/cli/chunks/{sync-QNPGETIO.js → sync-DLKSXTIR.js} +2 -2
- package/dist/cli/chunks/sync-R5OKUBTQ.js +2 -0
- package/dist/cli/chunks/{task-handler-CGHXYFIF.js → task-handler-Z5KNTSUX.js} +2 -2
- package/dist/cli/chunks/{task-handlers-A6BGQJIB.js → task-handlers-RZFMYFSC.js} +3 -3
- package/dist/cli/chunks/test-LHWKZJRN.js +34 -0
- package/dist/cli/chunks/test-scheduling-EN7WXUMS.js +15 -0
- package/dist/cli/chunks/token-bootstrap-4V3OO4EC.js +2 -0
- package/dist/cli/chunks/{token-usage-25BRFKJ5.js → token-usage-PFC2BYBS.js} +2 -2
- package/dist/cli/chunks/{transformers-TBVVSZMF.js → transformers-VZCC4SHC.js} +2 -2
- package/dist/cli/chunks/{tree-sitter-wasm-parser-N7KCOQT4.js → tree-sitter-wasm-parser-ZYDQXGKN.js} +2 -2
- package/dist/cli/chunks/{types-TFHWJGRK.js → types-I6AWHZZQ.js} +2 -2
- package/dist/cli/chunks/unified-memory-WOOCCIUM.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-PDDHFLUB.js +2 -0
- package/dist/cli/chunks/unified-persistence-6ETD3JSC.js +2 -0
- package/dist/cli/chunks/{upgrade-4VWQU7RD.js → upgrade-T7SG75PA.js} +2 -2
- package/dist/cli/chunks/{validate-FF7WVXMP.js → validate-YLYEHTY3.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-NRLH4EDC.js → validate-swarm-VTLTRUE3.js} +2 -2
- package/dist/cli/chunks/visual-security-O4OT2YPY.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-VVU3LULW.js → web-tree-sitter-JUM7ZY5M.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-Q2ZNWG2D.js → windsurf-installer-4KS2466T.js} +2 -2
- package/dist/cli/chunks/witness-chain-67JHPDCN.js +2 -0
- package/dist/cli/chunks/{witness-chain-FP3D4PQL.js → witness-chain-E4X6TOCT.js} +2 -2
- package/dist/cli/chunks/witness-chain-repair-MB53OZO6.js +2 -0
- package/dist/cli/chunks/{witness-chain-verifier-LACGL6BK.js → witness-chain-verifier-LBWJHO7Y.js} +2 -2
- package/dist/cli/chunks/{witness-key-manager-GQZIB5ZE.js → witness-key-manager-5IHVMXHJ.js} +2 -2
- package/dist/cli/chunks/{workflow-JPA5Y7L6.js → workflow-XUQXIRNE.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-ZVFSNRYZ.js +2 -0
- package/dist/cli/chunks/wrappers-YVF5SQUN.js +2 -0
- package/dist/cli/commands/test.js +42 -9
- package/dist/cli/handlers/init-flags.d.ts +45 -0
- package/dist/cli/handlers/init-flags.js +35 -0
- package/dist/cli/handlers/init-handler.d.ts +6 -0
- package/dist/cli/handlers/init-handler.js +24 -10
- package/dist/cli/utils/generated-test-writer.d.ts +35 -0
- package/dist/cli/utils/generated-test-writer.js +44 -0
- package/dist/context/compiler.js +4 -1
- package/dist/coordination/consensus/providers/ollama-provider.js +16 -27
- package/dist/coordination/consensus/providers/openrouter-provider.js +13 -24
- package/dist/coordination/handlers/test-execution-handlers.js +4 -2
- package/dist/coordination/protocols/defect-investigation.js +4 -1
- package/dist/coordination/task-executor.js +4 -2
- package/dist/domains/code-intelligence/services/metric-collector/test-counter.js +3 -3
- package/dist/domains/coverage-analysis/services/gap-detector.js +3 -1
- package/dist/domains/learning-optimization/services/learning-coordinator.js +4 -2
- package/dist/domains/test-execution/services/flaky-detector.js +8 -2
- package/dist/domains/test-execution/services/retry-handler.js +23 -20
- package/dist/domains/test-execution/services/test-executor.js +5 -2
- package/dist/domains/test-generation/services/test-generator.js +5 -2
- package/dist/governance/compliance-reporter.js +8 -7
- package/dist/governance/proof-envelope-integration.js +3 -1
- package/dist/init/claude-plugin-detection.d.ts +63 -0
- package/dist/init/claude-plugin-detection.js +118 -0
- package/dist/init/init-wizard-hooks.d.ts +6 -1
- package/dist/init/init-wizard-hooks.js +9 -1
- package/dist/init/init-wizard.d.ts +4 -0
- package/dist/init/init-wizard.js +3 -1
- package/dist/init/orchestrator.js +1 -0
- package/dist/init/phases/07-hooks.js +30 -4
- package/dist/init/phases/08-mcp.d.ts +7 -0
- package/dist/init/phases/08-mcp.js +22 -0
- package/dist/init/phases/10-workers.js +42 -6
- package/dist/init/phases/phase-interface.d.ts +5 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/embedding-generator.d.ts +4 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/embedding-generator.js +6 -2
- package/dist/integrations/browser/qe-dashboard/wasm-vector-store.js +2 -1
- package/dist/integrations/ruvector/coverage-router.d.ts +3 -1
- package/dist/integrations/ruvector/coverage-router.js +7 -6
- package/dist/integrations/ruvector/diff-risk-classifier.js +5 -4
- package/dist/integrations/ruvector/rvf-dual-writer.js +10 -1
- package/dist/integrations/vibium/runtime.js +2 -6
- package/dist/learning/dream/dream-engine.d.ts +5 -0
- package/dist/learning/dream/dream-engine.js +20 -3
- package/dist/learning/embedding-space.d.ts +18 -0
- package/dist/learning/embedding-space.js +33 -0
- package/dist/learning/rvf-pattern-store.js +19 -5
- package/dist/mcp/bundle.js +443 -441
- package/dist/mcp/handlers/domain-handler-configs.js +3 -1
- package/dist/mcp/handlers/handler-factory.js +7 -0
- package/dist/mcp/handlers/save-results-option.d.ts +97 -0
- package/dist/mcp/handlers/save-results-option.js +94 -0
- package/dist/mcp/protocol-server.js +23 -11
- package/dist/mcp/security/rate-limiter.d.ts +8 -1
- package/dist/mcp/security/rate-limiter.js +33 -4
- package/dist/mcp/services/session-resume.js +11 -0
- package/dist/mcp/services/session-store.d.ts +31 -2
- package/dist/mcp/services/session-store.js +84 -15
- package/dist/mcp/services/session-write-buffer.d.ts +55 -0
- package/dist/mcp/services/session-write-buffer.js +144 -0
- package/dist/mcp/types.d.ts +9 -0
- package/dist/memory/crdt/g-counter.js +10 -8
- package/dist/shared/embeddings/ollama-client.d.ts +1 -1
- package/dist/shared/embeddings/ollama-client.js +30 -31
- package/dist/shared/git/git-analyzer.d.ts +4 -1
- package/dist/shared/git/git-analyzer.js +9 -4
- package/dist/shared/llm/cost-tracker.js +8 -6
- package/dist/shared/llm/providers/azure-openai.js +5 -21
- package/dist/shared/llm/providers/bedrock.js +5 -21
- package/dist/shared/llm/providers/claude.js +5 -21
- package/dist/shared/llm/providers/cognitum.js +5 -17
- package/dist/shared/llm/providers/gemini.js +9 -23
- package/dist/shared/llm/providers/ollama.js +5 -21
- package/dist/shared/llm/providers/openai.js +5 -21
- package/dist/shared/llm/providers/openrouter.js +9 -23
- package/dist/shared/llm/providers/response-deadline.d.ts +3 -0
- package/dist/shared/llm/providers/response-deadline.js +100 -0
- package/dist/shared/llm/spend-ledger.js +3 -2
- package/dist/shared/metrics/code-metrics.d.ts +1 -0
- package/dist/shared/metrics/code-metrics.js +3 -44
- package/dist/shared/metrics/cognitive-complexity.d.ts +17 -0
- package/dist/shared/metrics/cognitive-complexity.js +108 -0
- package/dist/shared/npm-cli-invocation.d.ts +21 -0
- package/dist/shared/npm-cli-invocation.js +28 -0
- package/dist/shared/optional-module.js +24 -0
- package/dist/shared/test-runner-args.d.ts +42 -0
- package/dist/shared/test-runner-args.js +74 -0
- package/dist/shared/utils/safe-record.d.ts +18 -0
- package/dist/shared/utils/safe-record.js +28 -0
- package/dist/test-scheduling/executors/vitest-executor.js +23 -5
- package/dist/workers/quality-daemon/git-watcher.js +5 -0
- package/package.json +1 -1
- package/dist/adapters/ag-ui/json-patch-utils.d.ts +0 -136
- package/dist/adapters/ag-ui/json-patch-utils.js +0 -575
- package/dist/cli/chunks/adapter-Q6RPGMUE.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-JQPXIU7C.js +0 -2
- package/dist/cli/chunks/base-5SK64NXB.js +0 -2
- package/dist/cli/chunks/browser-workflow-WN7XNTCJ.js +0 -2
- package/dist/cli/chunks/chunk-2K3QFLX2.js +0 -2
- package/dist/cli/chunks/chunk-53C7TGC4.js +0 -4
- package/dist/cli/chunks/chunk-J4ULR4QR.js +0 -54
- package/dist/cli/chunks/chunk-R2ICZKQA.js +0 -2
- package/dist/cli/chunks/chunk-TR37Q7A6.js +0 -15
- package/dist/cli/chunks/chunk-XYZUBAR6.js +0 -316
- package/dist/cli/chunks/chunk-YDMPTCJ3.js +0 -14
- package/dist/cli/chunks/client-ZYH66YRI.js +0 -2
- package/dist/cli/chunks/core-handlers-XKSPHEHE.js +0 -2
- package/dist/cli/chunks/cost-tracker-CKLDQ5AZ.js +0 -2
- package/dist/cli/chunks/cross-domain-router-6VYNFQZA.js +0 -2
- package/dist/cli/chunks/dream-DRSSIHPP.js +0 -2
- package/dist/cli/chunks/heartbeat-scheduler-FMICCNWK.js +0 -2
- package/dist/cli/chunks/hnsw-adapter-4TGBNJEZ.js +0 -2
- package/dist/cli/chunks/hnsw-index-J4NSCPAZ.js +0 -2
- package/dist/cli/chunks/hybrid-backend-NKPA3QE7.js +0 -2
- package/dist/cli/chunks/impact-analyzer-MWX7XY7X.js +0 -2
- package/dist/cli/chunks/init-handler-C7ZBDAC5.js +0 -81
- package/dist/cli/chunks/init-wizard-EX5N5Q7X.js +0 -2
- package/dist/cli/chunks/kernel-EQLZDHDD.js +0 -2
- package/dist/cli/chunks/knowledge-graph-A3WSMQ6U.js +0 -2
- package/dist/cli/chunks/llm-router-service-A6XYWTL6.js +0 -2
- package/dist/cli/chunks/load-test-WF2PCXLI.js +0 -2
- package/dist/cli/chunks/memory-backend-BKGLI2RF.js +0 -2
- package/dist/cli/chunks/memory-handlers-PWI3G4P4.js +0 -2
- package/dist/cli/chunks/pattern-null-store-YTBLEH7D.js +0 -2
- package/dist/cli/chunks/protocol-executor-HFR2D54O.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-MYFBQUYV.js +0 -2
- package/dist/cli/chunks/queen-coordinator-CQQMOTIW.js +0 -2
- package/dist/cli/chunks/router-GKWLPA3N.js +0 -2
- package/dist/cli/chunks/routing-feedback-WA4D5JRF.js +0 -2
- package/dist/cli/chunks/rvf-dual-writer-H3ZXS5MA.js +0 -2
- package/dist/cli/chunks/rvf-migration-adapter-J7MTCOQA.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-HXBY4VYI.js +0 -2
- package/dist/cli/chunks/safe-db-INVJ5LHR.js +0 -2
- package/dist/cli/chunks/schedule-XRIPPL52.js +0 -2
- package/dist/cli/chunks/scheduler-HBN3KPRW.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-6KNLT5Q2.js +0 -2
- package/dist/cli/chunks/sync-S6Z2U46T.js +0 -2
- package/dist/cli/chunks/test-IISTF5W6.js +0 -33
- package/dist/cli/chunks/test-scheduling-FKYX4OLF.js +0 -15
- package/dist/cli/chunks/token-bootstrap-OKO3JEKT.js +0 -2
- package/dist/cli/chunks/unified-memory-WVELSL6T.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-7P5MVKXD.js +0 -2
- package/dist/cli/chunks/unified-persistence-YLFCEWYY.js +0 -2
- package/dist/cli/chunks/visual-security-T5OM742H.js +0 -2
- package/dist/cli/chunks/witness-chain-D6X4OZP5.js +0 -2
- package/dist/cli/chunks/witness-chain-repair-3LG4BF7C.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-OORDDKT3.js +0 -2
- package/dist/cli/chunks/wrappers-2B5NHICD.js +0 -2
|
@@ -1,575 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JSON Patch Utilities (RFC 6902)
|
|
3
|
-
*
|
|
4
|
-
* Provides utilities for computing and applying JSON Patch operations
|
|
5
|
-
* for AG-UI STATE_DELTA event synchronization.
|
|
6
|
-
*
|
|
7
|
-
* Reference: https://datatracker.ietf.org/doc/html/rfc6902
|
|
8
|
-
*
|
|
9
|
-
* @module adapters/ag-ui/json-patch-utils
|
|
10
|
-
*/
|
|
11
|
-
import { toErrorMessage } from '../../shared/error-utils.js';
|
|
12
|
-
// ============================================================================
|
|
13
|
-
// Path Utilities
|
|
14
|
-
// ============================================================================
|
|
15
|
-
/**
|
|
16
|
-
* Escape special characters in a JSON Pointer token (RFC 6901)
|
|
17
|
-
* ~ becomes ~0
|
|
18
|
-
* / becomes ~1
|
|
19
|
-
*/
|
|
20
|
-
export function escapePathToken(token) {
|
|
21
|
-
return token.replace(/~/g, '~0').replace(/\//g, '~1');
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Unescape special characters in a JSON Pointer token (RFC 6901)
|
|
25
|
-
* ~0 becomes ~
|
|
26
|
-
* ~1 becomes /
|
|
27
|
-
*/
|
|
28
|
-
export function unescapePathToken(token) {
|
|
29
|
-
return token.replace(/~1/g, '/').replace(/~0/g, '~');
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Parse a JSON Pointer path into tokens
|
|
33
|
-
*/
|
|
34
|
-
export function parsePath(path) {
|
|
35
|
-
if (path === '') {
|
|
36
|
-
return [];
|
|
37
|
-
}
|
|
38
|
-
if (!path.startsWith('/')) {
|
|
39
|
-
throw new Error(`Invalid JSON Pointer: path must start with '/' or be empty, got '${path}'`);
|
|
40
|
-
}
|
|
41
|
-
return path.slice(1).split('/').map(unescapePathToken);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Build a JSON Pointer path from tokens
|
|
45
|
-
*/
|
|
46
|
-
export function buildPath(tokens) {
|
|
47
|
-
if (tokens.length === 0) {
|
|
48
|
-
return '';
|
|
49
|
-
}
|
|
50
|
-
return '/' + tokens.map(escapePathToken).join('/');
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Get a value from an object using a JSON Pointer path
|
|
54
|
-
*/
|
|
55
|
-
export function getValueAtPath(document, path) {
|
|
56
|
-
if (path === '') {
|
|
57
|
-
return document;
|
|
58
|
-
}
|
|
59
|
-
const tokens = parsePath(path);
|
|
60
|
-
let current = document;
|
|
61
|
-
for (const token of tokens) {
|
|
62
|
-
if (current === null || current === undefined) {
|
|
63
|
-
return undefined;
|
|
64
|
-
}
|
|
65
|
-
if (Array.isArray(current)) {
|
|
66
|
-
const index = token === '-' ? current.length : parseInt(token, 10);
|
|
67
|
-
if (isNaN(index) || index < 0) {
|
|
68
|
-
return undefined;
|
|
69
|
-
}
|
|
70
|
-
current = current[index];
|
|
71
|
-
}
|
|
72
|
-
else if (typeof current === 'object') {
|
|
73
|
-
current = current[token];
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
return undefined;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return current;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Set a value at a JSON Pointer path (mutates the document)
|
|
83
|
-
*/
|
|
84
|
-
export function setValueAtPath(document, path, value) {
|
|
85
|
-
if (path === '') {
|
|
86
|
-
throw new Error('Cannot replace root document');
|
|
87
|
-
}
|
|
88
|
-
const tokens = parsePath(path);
|
|
89
|
-
const lastToken = tokens.pop();
|
|
90
|
-
let current = document;
|
|
91
|
-
for (const token of tokens) {
|
|
92
|
-
if (current === null || current === undefined) {
|
|
93
|
-
throw new Error(`Path does not exist: ${path}`);
|
|
94
|
-
}
|
|
95
|
-
if (Array.isArray(current)) {
|
|
96
|
-
const index = parseInt(token, 10);
|
|
97
|
-
if (isNaN(index) || index < 0 || index >= current.length) {
|
|
98
|
-
throw new Error(`Invalid array index: ${token}`);
|
|
99
|
-
}
|
|
100
|
-
current = current[index];
|
|
101
|
-
}
|
|
102
|
-
else if (typeof current === 'object') {
|
|
103
|
-
if (!(token in current)) {
|
|
104
|
-
throw new Error(`Path does not exist: ${path}`);
|
|
105
|
-
}
|
|
106
|
-
current = current[token];
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
throw new Error(`Cannot traverse non-object: ${path}`);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
if (Array.isArray(current)) {
|
|
113
|
-
const index = lastToken === '-' ? current.length : parseInt(lastToken, 10);
|
|
114
|
-
if (isNaN(index) || index < 0) {
|
|
115
|
-
throw new Error(`Invalid array index: ${lastToken}`);
|
|
116
|
-
}
|
|
117
|
-
current[index] = value;
|
|
118
|
-
}
|
|
119
|
-
else if (typeof current === 'object' && current !== null) {
|
|
120
|
-
current[lastToken] = value;
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
throw new Error(`Cannot set value at path: ${path}`);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Delete a value at a JSON Pointer path (mutates the document)
|
|
128
|
-
*/
|
|
129
|
-
export function deleteValueAtPath(document, path) {
|
|
130
|
-
if (path === '') {
|
|
131
|
-
throw new Error('Cannot remove root document');
|
|
132
|
-
}
|
|
133
|
-
const tokens = parsePath(path);
|
|
134
|
-
const lastToken = tokens.pop();
|
|
135
|
-
let current = document;
|
|
136
|
-
for (const token of tokens) {
|
|
137
|
-
if (current === null || current === undefined) {
|
|
138
|
-
throw new Error(`Path does not exist: ${path}`);
|
|
139
|
-
}
|
|
140
|
-
if (Array.isArray(current)) {
|
|
141
|
-
const index = parseInt(token, 10);
|
|
142
|
-
if (isNaN(index) || index < 0 || index >= current.length) {
|
|
143
|
-
throw new Error(`Invalid array index: ${token}`);
|
|
144
|
-
}
|
|
145
|
-
current = current[index];
|
|
146
|
-
}
|
|
147
|
-
else if (typeof current === 'object') {
|
|
148
|
-
current = current[token];
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
throw new Error(`Cannot traverse non-object: ${path}`);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
if (Array.isArray(current)) {
|
|
155
|
-
const index = parseInt(lastToken, 10);
|
|
156
|
-
if (isNaN(index) || index < 0 || index >= current.length) {
|
|
157
|
-
throw new Error(`Invalid array index: ${lastToken}`);
|
|
158
|
-
}
|
|
159
|
-
current.splice(index, 1);
|
|
160
|
-
}
|
|
161
|
-
else if (typeof current === 'object' && current !== null) {
|
|
162
|
-
if (!(lastToken in current)) {
|
|
163
|
-
throw new Error(`Path does not exist: ${path}`);
|
|
164
|
-
}
|
|
165
|
-
delete current[lastToken];
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
throw new Error(`Cannot delete value at path: ${path}`);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Check if a path exists in the document
|
|
173
|
-
*/
|
|
174
|
-
export function pathExists(document, path) {
|
|
175
|
-
if (path === '') {
|
|
176
|
-
return true;
|
|
177
|
-
}
|
|
178
|
-
const tokens = parsePath(path);
|
|
179
|
-
let current = document;
|
|
180
|
-
for (const token of tokens) {
|
|
181
|
-
if (current === null || current === undefined) {
|
|
182
|
-
return false;
|
|
183
|
-
}
|
|
184
|
-
if (Array.isArray(current)) {
|
|
185
|
-
const index = parseInt(token, 10);
|
|
186
|
-
if (isNaN(index) || index < 0 || index >= current.length) {
|
|
187
|
-
return false;
|
|
188
|
-
}
|
|
189
|
-
current = current[index];
|
|
190
|
-
}
|
|
191
|
-
else if (typeof current === 'object') {
|
|
192
|
-
if (!(token in current)) {
|
|
193
|
-
return false;
|
|
194
|
-
}
|
|
195
|
-
current = current[token];
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
return false;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
return true;
|
|
202
|
-
}
|
|
203
|
-
// ============================================================================
|
|
204
|
-
// Validation
|
|
205
|
-
// ============================================================================
|
|
206
|
-
/**
|
|
207
|
-
* Validate a single patch operation
|
|
208
|
-
*/
|
|
209
|
-
export function validateOperation(op) {
|
|
210
|
-
// Check operation type
|
|
211
|
-
const validOps = ['add', 'remove', 'replace', 'move', 'copy', 'test'];
|
|
212
|
-
if (!validOps.includes(op.op)) {
|
|
213
|
-
return { valid: false, error: `Invalid operation: ${op.op}` };
|
|
214
|
-
}
|
|
215
|
-
// Check path
|
|
216
|
-
if (typeof op.path !== 'string') {
|
|
217
|
-
return { valid: false, error: 'Path must be a string' };
|
|
218
|
-
}
|
|
219
|
-
if (op.path !== '' && !op.path.startsWith('/')) {
|
|
220
|
-
return { valid: false, error: 'Path must start with / or be empty' };
|
|
221
|
-
}
|
|
222
|
-
// Check value for operations that require it
|
|
223
|
-
if (['add', 'replace', 'test'].includes(op.op) && !('value' in op)) {
|
|
224
|
-
return { valid: false, error: `Operation '${op.op}' requires a value` };
|
|
225
|
-
}
|
|
226
|
-
// Check from for move/copy operations
|
|
227
|
-
if (['move', 'copy'].includes(op.op)) {
|
|
228
|
-
if (!('from' in op) || typeof op.from !== 'string') {
|
|
229
|
-
return { valid: false, error: `Operation '${op.op}' requires 'from' path` };
|
|
230
|
-
}
|
|
231
|
-
if (op.from !== '' && !op.from.startsWith('/')) {
|
|
232
|
-
return { valid: false, error: "'from' path must start with / or be empty" };
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
return { valid: true };
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Validate an array of patch operations
|
|
239
|
-
*/
|
|
240
|
-
export function validatePatch(patch) {
|
|
241
|
-
for (let i = 0; i < patch.length; i++) {
|
|
242
|
-
const result = validateOperation(patch[i]);
|
|
243
|
-
if (!result.valid) {
|
|
244
|
-
return { valid: false, error: `Operation ${i}: ${result.error}` };
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
return { valid: true };
|
|
248
|
-
}
|
|
249
|
-
// ============================================================================
|
|
250
|
-
// Patch Application
|
|
251
|
-
// ============================================================================
|
|
252
|
-
/**
|
|
253
|
-
* Apply a single patch operation to a document
|
|
254
|
-
* Returns a new document (immutable)
|
|
255
|
-
*/
|
|
256
|
-
export function applyOperation(document, op) {
|
|
257
|
-
// Deep clone to avoid mutation
|
|
258
|
-
const result = structuredClone(document);
|
|
259
|
-
switch (op.op) {
|
|
260
|
-
case 'add': {
|
|
261
|
-
if (op.path === '') {
|
|
262
|
-
// Replace entire document
|
|
263
|
-
if (typeof op.value !== 'object' || op.value === null) {
|
|
264
|
-
throw new Error('Cannot replace root with non-object');
|
|
265
|
-
}
|
|
266
|
-
return structuredClone(op.value);
|
|
267
|
-
}
|
|
268
|
-
addValue(result, op.path, op.value);
|
|
269
|
-
break;
|
|
270
|
-
}
|
|
271
|
-
case 'remove': {
|
|
272
|
-
deleteValueAtPath(result, op.path);
|
|
273
|
-
break;
|
|
274
|
-
}
|
|
275
|
-
case 'replace': {
|
|
276
|
-
if (!pathExists(result, op.path)) {
|
|
277
|
-
throw new Error(`Path does not exist for replace: ${op.path}`);
|
|
278
|
-
}
|
|
279
|
-
setValueAtPath(result, op.path, structuredClone(op.value));
|
|
280
|
-
break;
|
|
281
|
-
}
|
|
282
|
-
case 'move': {
|
|
283
|
-
const from = op.from;
|
|
284
|
-
const value = getValueAtPath(result, from);
|
|
285
|
-
if (value === undefined && !pathExists(result, from)) {
|
|
286
|
-
throw new Error(`Source path does not exist for move: ${from}`);
|
|
287
|
-
}
|
|
288
|
-
deleteValueAtPath(result, from);
|
|
289
|
-
addValue(result, op.path, structuredClone(value));
|
|
290
|
-
break;
|
|
291
|
-
}
|
|
292
|
-
case 'copy': {
|
|
293
|
-
const from = op.from;
|
|
294
|
-
const value = getValueAtPath(result, from);
|
|
295
|
-
if (value === undefined && !pathExists(result, from)) {
|
|
296
|
-
throw new Error(`Source path does not exist for copy: ${from}`);
|
|
297
|
-
}
|
|
298
|
-
addValue(result, op.path, structuredClone(value));
|
|
299
|
-
break;
|
|
300
|
-
}
|
|
301
|
-
case 'test': {
|
|
302
|
-
const currentValue = getValueAtPath(result, op.path);
|
|
303
|
-
if (!deepEqual(currentValue, op.value)) {
|
|
304
|
-
throw new Error(`Test failed at path ${op.path}: expected ${JSON.stringify(op.value)}, got ${JSON.stringify(currentValue)}`);
|
|
305
|
-
}
|
|
306
|
-
break;
|
|
307
|
-
}
|
|
308
|
-
default:
|
|
309
|
-
throw new Error(`Unknown operation: ${op.op}`);
|
|
310
|
-
}
|
|
311
|
-
return result;
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Add a value at a path (handles array insertion)
|
|
315
|
-
*/
|
|
316
|
-
function addValue(document, path, value) {
|
|
317
|
-
const tokens = parsePath(path);
|
|
318
|
-
const lastToken = tokens.pop();
|
|
319
|
-
let current = document;
|
|
320
|
-
// Navigate to parent
|
|
321
|
-
for (const token of tokens) {
|
|
322
|
-
if (current === null || current === undefined) {
|
|
323
|
-
throw new Error(`Path does not exist: ${path}`);
|
|
324
|
-
}
|
|
325
|
-
if (Array.isArray(current)) {
|
|
326
|
-
const index = parseInt(token, 10);
|
|
327
|
-
if (isNaN(index) || index < 0 || index >= current.length) {
|
|
328
|
-
throw new Error(`Invalid array index: ${token}`);
|
|
329
|
-
}
|
|
330
|
-
current = current[index];
|
|
331
|
-
}
|
|
332
|
-
else if (typeof current === 'object') {
|
|
333
|
-
if (!(token in current)) {
|
|
334
|
-
// Create intermediate object
|
|
335
|
-
current[token] = {};
|
|
336
|
-
}
|
|
337
|
-
current = current[token];
|
|
338
|
-
}
|
|
339
|
-
else {
|
|
340
|
-
throw new Error(`Cannot traverse non-object: ${path}`);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
// Add value
|
|
344
|
-
if (Array.isArray(current)) {
|
|
345
|
-
const index = lastToken === '-' ? current.length : parseInt(lastToken, 10);
|
|
346
|
-
if (isNaN(index) || index < 0 || index > current.length) {
|
|
347
|
-
throw new Error(`Invalid array index for add: ${lastToken}`);
|
|
348
|
-
}
|
|
349
|
-
current.splice(index, 0, structuredClone(value));
|
|
350
|
-
}
|
|
351
|
-
else if (typeof current === 'object' && current !== null) {
|
|
352
|
-
current[lastToken] = structuredClone(value);
|
|
353
|
-
}
|
|
354
|
-
else {
|
|
355
|
-
throw new Error(`Cannot add value at path: ${path}`);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* Apply a JSON Patch to a document
|
|
360
|
-
* Returns result with success status and either new document or error info
|
|
361
|
-
*/
|
|
362
|
-
export function applyPatch(document, patch) {
|
|
363
|
-
// Validate first
|
|
364
|
-
const validation = validatePatch(patch);
|
|
365
|
-
if (!validation.valid) {
|
|
366
|
-
return {
|
|
367
|
-
success: false,
|
|
368
|
-
document,
|
|
369
|
-
error: validation.error,
|
|
370
|
-
};
|
|
371
|
-
}
|
|
372
|
-
let result = structuredClone(document);
|
|
373
|
-
for (let i = 0; i < patch.length; i++) {
|
|
374
|
-
try {
|
|
375
|
-
result = applyOperation(result, patch[i]);
|
|
376
|
-
}
|
|
377
|
-
catch (error) {
|
|
378
|
-
return {
|
|
379
|
-
success: false,
|
|
380
|
-
document, // Return original document (rollback)
|
|
381
|
-
error: toErrorMessage(error),
|
|
382
|
-
failedOperationIndex: i,
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
return {
|
|
387
|
-
success: true,
|
|
388
|
-
document: result,
|
|
389
|
-
};
|
|
390
|
-
}
|
|
391
|
-
/**
|
|
392
|
-
* Apply a JSON Patch atomically with automatic rollback on failure
|
|
393
|
-
* Returns the new document if successful, throws on error
|
|
394
|
-
*/
|
|
395
|
-
export function applyPatchAtomic(document, patch) {
|
|
396
|
-
const result = applyPatch(document, patch);
|
|
397
|
-
if (!result.success) {
|
|
398
|
-
throw new Error(result.error ?? 'Patch application failed');
|
|
399
|
-
}
|
|
400
|
-
return result.document;
|
|
401
|
-
}
|
|
402
|
-
// ============================================================================
|
|
403
|
-
// Diff Computation
|
|
404
|
-
// ============================================================================
|
|
405
|
-
/**
|
|
406
|
-
* Deep equality comparison for JSON values
|
|
407
|
-
*/
|
|
408
|
-
export function deepEqual(a, b) {
|
|
409
|
-
if (a === b)
|
|
410
|
-
return true;
|
|
411
|
-
if (a === null || b === null)
|
|
412
|
-
return a === b;
|
|
413
|
-
if (typeof a !== typeof b)
|
|
414
|
-
return false;
|
|
415
|
-
if (typeof a !== 'object')
|
|
416
|
-
return a === b;
|
|
417
|
-
if (Array.isArray(a)) {
|
|
418
|
-
if (!Array.isArray(b))
|
|
419
|
-
return false;
|
|
420
|
-
if (a.length !== b.length)
|
|
421
|
-
return false;
|
|
422
|
-
return a.every((val, i) => deepEqual(val, b[i]));
|
|
423
|
-
}
|
|
424
|
-
const aObj = a;
|
|
425
|
-
const bObj = b;
|
|
426
|
-
const aKeys = Object.keys(aObj);
|
|
427
|
-
const bKeys = Object.keys(bObj);
|
|
428
|
-
if (aKeys.length !== bKeys.length)
|
|
429
|
-
return false;
|
|
430
|
-
return aKeys.every((key) => key in bObj && deepEqual(aObj[key], bObj[key]));
|
|
431
|
-
}
|
|
432
|
-
/**
|
|
433
|
-
* Compute the JSON Patch to transform oldState into newState
|
|
434
|
-
*/
|
|
435
|
-
export function computeDiff(oldState, newState, config = {}) {
|
|
436
|
-
const { maxDepth = Infinity } = config;
|
|
437
|
-
const operations = [];
|
|
438
|
-
computeDiffRecursive(oldState, newState, '', operations, 0, maxDepth);
|
|
439
|
-
return operations;
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* Recursive diff computation
|
|
443
|
-
*/
|
|
444
|
-
function computeDiffRecursive(oldVal, newVal, path, ops, depth, maxDepth) {
|
|
445
|
-
// If values are equal, no operation needed
|
|
446
|
-
if (deepEqual(oldVal, newVal)) {
|
|
447
|
-
return;
|
|
448
|
-
}
|
|
449
|
-
// If types differ or we're at max depth, replace
|
|
450
|
-
if (typeof oldVal !== typeof newVal ||
|
|
451
|
-
oldVal === null ||
|
|
452
|
-
newVal === null ||
|
|
453
|
-
depth >= maxDepth) {
|
|
454
|
-
if (oldVal === undefined) {
|
|
455
|
-
ops.push({ op: 'add', path, value: newVal });
|
|
456
|
-
}
|
|
457
|
-
else if (newVal === undefined) {
|
|
458
|
-
ops.push({ op: 'remove', path });
|
|
459
|
-
}
|
|
460
|
-
else {
|
|
461
|
-
ops.push({ op: 'replace', path, value: newVal });
|
|
462
|
-
}
|
|
463
|
-
return;
|
|
464
|
-
}
|
|
465
|
-
// Handle arrays
|
|
466
|
-
if (Array.isArray(oldVal) && Array.isArray(newVal)) {
|
|
467
|
-
computeArrayDiff(oldVal, newVal, path, ops, depth, maxDepth);
|
|
468
|
-
return;
|
|
469
|
-
}
|
|
470
|
-
// Handle objects
|
|
471
|
-
if (typeof oldVal === 'object' && typeof newVal === 'object') {
|
|
472
|
-
const oldObj = oldVal;
|
|
473
|
-
const newObj = newVal;
|
|
474
|
-
// Find removed keys
|
|
475
|
-
for (const key of Object.keys(oldObj)) {
|
|
476
|
-
if (!(key in newObj)) {
|
|
477
|
-
ops.push({ op: 'remove', path: buildPath([...parsePath(path), key]) });
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
// Find added and changed keys
|
|
481
|
-
for (const key of Object.keys(newObj)) {
|
|
482
|
-
const childPath = buildPath([...parsePath(path), key]);
|
|
483
|
-
if (!(key in oldObj)) {
|
|
484
|
-
ops.push({ op: 'add', path: childPath, value: newObj[key] });
|
|
485
|
-
}
|
|
486
|
-
else {
|
|
487
|
-
computeDiffRecursive(oldObj[key], newObj[key], childPath, ops, depth + 1, maxDepth);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
return;
|
|
491
|
-
}
|
|
492
|
-
// Primitive values that differ
|
|
493
|
-
ops.push({ op: 'replace', path, value: newVal });
|
|
494
|
-
}
|
|
495
|
-
/**
|
|
496
|
-
* Compute diff for arrays
|
|
497
|
-
* Uses simple index-based comparison for efficiency
|
|
498
|
-
*/
|
|
499
|
-
function computeArrayDiff(oldArr, newArr, path, ops, depth, maxDepth) {
|
|
500
|
-
const maxLen = Math.max(oldArr.length, newArr.length);
|
|
501
|
-
// Process from end to start to preserve indices during removal
|
|
502
|
-
const removals = [];
|
|
503
|
-
const modifications = [];
|
|
504
|
-
for (let i = 0; i < maxLen; i++) {
|
|
505
|
-
const childPath = `${path}/${i}`;
|
|
506
|
-
if (i >= newArr.length) {
|
|
507
|
-
// Element removed
|
|
508
|
-
removals.push({ op: 'remove', path: childPath });
|
|
509
|
-
}
|
|
510
|
-
else if (i >= oldArr.length) {
|
|
511
|
-
// Element added
|
|
512
|
-
modifications.push({ op: 'add', path: childPath, value: newArr[i] });
|
|
513
|
-
}
|
|
514
|
-
else if (!deepEqual(oldArr[i], newArr[i])) {
|
|
515
|
-
// Element changed
|
|
516
|
-
const oldItem = oldArr[i];
|
|
517
|
-
const newItem = newArr[i];
|
|
518
|
-
// For complex objects, recurse
|
|
519
|
-
if (typeof oldItem === 'object' &&
|
|
520
|
-
typeof newItem === 'object' &&
|
|
521
|
-
oldItem !== null &&
|
|
522
|
-
newItem !== null &&
|
|
523
|
-
!Array.isArray(oldItem) === !Array.isArray(newItem) &&
|
|
524
|
-
depth < maxDepth) {
|
|
525
|
-
computeDiffRecursive(oldItem, newItem, childPath, modifications, depth + 1, maxDepth);
|
|
526
|
-
}
|
|
527
|
-
else {
|
|
528
|
-
modifications.push({ op: 'replace', path: childPath, value: newItem });
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
// Add removals in reverse order to preserve indices
|
|
533
|
-
for (let i = removals.length - 1; i >= 0; i--) {
|
|
534
|
-
ops.push(removals[i]);
|
|
535
|
-
}
|
|
536
|
-
// Add modifications and additions
|
|
537
|
-
ops.push(...modifications);
|
|
538
|
-
}
|
|
539
|
-
/**
|
|
540
|
-
* Create a test operation to validate state before applying patches
|
|
541
|
-
*/
|
|
542
|
-
export function createTestOperation(path, value) {
|
|
543
|
-
return { op: 'test', path, value };
|
|
544
|
-
}
|
|
545
|
-
/**
|
|
546
|
-
* Create an add operation
|
|
547
|
-
*/
|
|
548
|
-
export function createAddOperation(path, value) {
|
|
549
|
-
return { op: 'add', path, value };
|
|
550
|
-
}
|
|
551
|
-
/**
|
|
552
|
-
* Create a remove operation
|
|
553
|
-
*/
|
|
554
|
-
export function createRemoveOperation(path) {
|
|
555
|
-
return { op: 'remove', path };
|
|
556
|
-
}
|
|
557
|
-
/**
|
|
558
|
-
* Create a replace operation
|
|
559
|
-
*/
|
|
560
|
-
export function createReplaceOperation(path, value) {
|
|
561
|
-
return { op: 'replace', path, value };
|
|
562
|
-
}
|
|
563
|
-
/**
|
|
564
|
-
* Create a move operation
|
|
565
|
-
*/
|
|
566
|
-
export function createMoveOperation(from, path) {
|
|
567
|
-
return { op: 'move', from, path };
|
|
568
|
-
}
|
|
569
|
-
/**
|
|
570
|
-
* Create a copy operation
|
|
571
|
-
*/
|
|
572
|
-
export function createCopyOperation(from, path) {
|
|
573
|
-
return { op: 'copy', from, path };
|
|
574
|
-
}
|
|
575
|
-
//# sourceMappingURL=json-patch-utils.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.1");process.exit(0)}
|
|
2
|
-
import{a,b,c}from"./chunk-L5GEWKR3.js";import"./chunk-4XEZ562Q.js";import"./chunk-PZBYZV5M.js";import"./chunk-5C4UYXQL.js";import"./chunk-ARWSPV2C.js";import"./chunk-PNK5KHSI.js";export{a as AgentBoosterAdapter,b as createAgentBoosterAdapter,c as createAgentBoosterAdapterSync};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.1");process.exit(0)}
|
|
2
|
-
import{a,b,c,d,e,f}from"./chunk-3TZRJ5QD.js";import"./chunk-SUFXUM6W.js";import"./chunk-OKS25EGZ.js";import"./chunk-CHX65QXY.js";import"./chunk-4KHSWNFW.js";import"./chunk-RDI3W4H6.js";import"./chunk-B3DWOR5R.js";import"./chunk-PGARKOE6.js";import"./chunk-XCVD57GW.js";import"./chunk-5QEXDXHQ.js";import"./chunk-N5OSH5JO.js";import"./chunk-EQ3BJS37.js";import"./chunk-HVAYG54D.js";import"./chunk-66HKJJFH.js";import"./chunk-W6K77PQR.js";import"./chunk-K4NB3MYN.js";import"./chunk-NF6SLLE6.js";import"./chunk-3NOSMJS4.js";import"./chunk-5C4UYXQL.js";import"./chunk-W5NHBYYS.js";import"./chunk-53HWWWFZ.js";import"./chunk-UE33MZOC.js";import"./chunk-ADEYBXAS.js";import"./chunk-WQZR6DS6.js";import"./chunk-WPG6SW7C.js";import"./chunk-4P7CGSRL.js";import"./chunk-SRXXPZVT.js";import"./chunk-LQI5GVH7.js";import"./chunk-PZDI7WQ3.js";import"./chunk-UGUZFUQG.js";import"./chunk-2K3QFLX2.js";import"./chunk-7FGSX4UD.js";import"./chunk-46DUU44C.js";import"./chunk-ARWSPV2C.js";import"./chunk-HU4QGCIJ.js";import"./chunk-OABFAREV.js";import"./chunk-25IWHVMW.js";import"./chunk-TCJ65NPY.js";import"./chunk-YM3GAJMN.js";import"./chunk-JW2HNT3J.js";import"./chunk-OH4SKOAM.js";import"./chunk-PNK5KHSI.js";export{b as AQELearningEngine,a as DEFAULT_ENGINE_CONFIG,c as DEFAULT_META_LEARNING_CONFIG,d as MetaLearningEngine,e as createAQELearningEngine,f as createDefaultLearningEngine};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.1");process.exit(0)}
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l}from"./chunk-PBWR2SKH.js";import"./chunk-6Q7PWKWV.js";import"./chunk-DREYYJ7A.js";import"./chunk-NF6SLLE6.js";import"./chunk-3NOSMJS4.js";import"./chunk-5C4UYXQL.js";import"./chunk-W5NHBYYS.js";import"./chunk-53HWWWFZ.js";import"./chunk-UE33MZOC.js";import"./chunk-ADEYBXAS.js";import"./chunk-WQZR6DS6.js";import"./chunk-WPG6SW7C.js";import"./chunk-SRXXPZVT.js";import"./chunk-LQI5GVH7.js";import"./chunk-UGUZFUQG.js";import"./chunk-2K3QFLX2.js";import"./chunk-7FGSX4UD.js";import"./chunk-46DUU44C.js";import"./chunk-ARWSPV2C.js";import"./chunk-HU4QGCIJ.js";import"./chunk-25IWHVMW.js";import"./chunk-JW2HNT3J.js";import"./chunk-OH4SKOAM.js";import"./chunk-PNK5KHSI.js";export{l as MCPToolBase,k as defaultToolLogger,j as getKernel,i as getLLMRouter,e as getMemoryBackend,g as getSharedLLMRouter,c as getSharedMemoryBackend,a as isMemoryOnlyMode,b as registerRvfResetFn,h as resetSharedLLMRouter,d as resetSharedMemoryBackend,f as setSharedLLMRouter};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.1");process.exit(0)}
|
|
2
|
-
import{a}from"./chunk-KHVWIUAF.js";import"./chunk-PBWR2SKH.js";import"./chunk-6Q7PWKWV.js";import"./chunk-DREYYJ7A.js";import"./chunk-NF6SLLE6.js";import"./chunk-3NOSMJS4.js";import"./chunk-5C4UYXQL.js";import"./chunk-W5NHBYYS.js";import"./chunk-53HWWWFZ.js";import"./chunk-UE33MZOC.js";import"./chunk-ADEYBXAS.js";import"./chunk-WQZR6DS6.js";import"./chunk-WPG6SW7C.js";import"./chunk-SRXXPZVT.js";import"./chunk-LQI5GVH7.js";import"./chunk-UGUZFUQG.js";import"./chunk-2K3QFLX2.js";import"./chunk-7FGSX4UD.js";import"./chunk-46DUU44C.js";import"./chunk-ARWSPV2C.js";import"./chunk-HU4QGCIJ.js";import"./chunk-25IWHVMW.js";import"./chunk-JW2HNT3J.js";import"./chunk-OH4SKOAM.js";import"./chunk-PNK5KHSI.js";export{a as BrowserWorkflowTool};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.1");process.exit(0)}
|
|
2
|
-
import{a as e,c as r,d as g,g as t}from"./chunk-7FGSX4UD.js";import{b as o}from"./chunk-PNK5KHSI.js";var L=o(()=>{"use strict";e();g();t();r()});export{L as a};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.1");process.exit(0)}
|
|
2
|
-
var a=class extends Error{constructor(r){super(r),this.name="TestRunnerExecutionError"}};function y(t,r,s,e,n,i){let d=(i?.testResults??[]).filter(u=>u.status==="failed"&&(t==="vitest"&&u.message||!u.assertionResults?.some(f=>f.status==="failed"))),o;if(s===null?o="terminated without an exit code":e.passed+e.failed+e.skipped===0?o="reported zero tests":d.length>0||(i?.numRuntimeErrorTestSuites??0)>0||(i?.numFailedTestSuites??0)>0&&e.failed===0?o="reported a suite execution error":(s!==0||i?.success===!1)&&e.failed===0&&(o="failed without a failed assertion"),!o)return;let l=[...d.map(u=>u.message).filter(Boolean),n.trim()].filter(Boolean).join(`
|
|
3
|
-
`).slice(0,4e3);return new a(`${t} ${o} for ${r} (exit code ${s??"unknown"}).`+(l?`
|
|
4
|
-
${l}`:""))}import{mkdtempSync as p,readFileSync as m,rmSync as g}from"node:fs";import{tmpdir as R}from"node:os";import{join as c}from"node:path";function h(t,r){if(!r)return;let s;try{s=m(r,"utf-8")}catch(e){if(e.code==="ENOENT")return;throw new Error("Could not read the current Vitest JSON report.")}try{let e=JSON.parse(s);if(!e||!Array.isArray(e.testResults))throw new Error("Invalid report")}catch{throw new Error("The current Vitest JSON report is malformed.")}return s}function b(){let t=p(c(R(),"aqe-vitest-report-")),r=c(t,"report.json"),s=!1;return{path:r,args:[`--outputFile=${r}`],read:e=>h(e,r),cleanup:()=>{if(!s){s=!0;try{g(t,{recursive:!0,force:!0})}catch{}}}}}function j(t){let r=t.some(n=>/(^|[\\/])vitest(\.cmd|\.js|\.mjs)?$/i.test(n)),s=t.some((n,i)=>n==="--reporter=json"||n==="--reporter"&&t[i+1]==="json"),e=t.some(n=>n.startsWith("--outputFile"));return r&&s&&!e}export{a,y as b,b as c,j as d};
|