@mastra/server 1.51.0-alpha.11 → 1.51.0-alpha.13
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/CHANGELOG.md +29 -0
- package/dist/{api-schema-manifest-G2SC5CFQ.cjs → api-schema-manifest-4TI7FSNK.cjs} +6 -6
- package/dist/{api-schema-manifest-G2SC5CFQ.cjs.map → api-schema-manifest-4TI7FSNK.cjs.map} +1 -1
- package/dist/{api-schema-manifest-UXI5JTRL.js → api-schema-manifest-AJIZCNSL.js} +4 -4
- package/dist/{api-schema-manifest-UXI5JTRL.js.map → api-schema-manifest-AJIZCNSL.js.map} +1 -1
- package/dist/{chunk-MCWL6335.cjs → chunk-27F2AJU2.cjs} +6 -6
- package/dist/{chunk-MCWL6335.cjs.map → chunk-27F2AJU2.cjs.map} +1 -1
- package/dist/{chunk-BWTM7QBG.js → chunk-2H2SGSP4.js} +3 -3
- package/dist/{chunk-BWTM7QBG.js.map → chunk-2H2SGSP4.js.map} +1 -1
- package/dist/{chunk-O7HH6SBJ.cjs → chunk-2S4SNS5D.cjs} +10 -10
- package/dist/{chunk-O7HH6SBJ.cjs.map → chunk-2S4SNS5D.cjs.map} +1 -1
- package/dist/{chunk-CDVWZOPU.js → chunk-3F5MV2ED.js} +3 -3
- package/dist/{chunk-CDVWZOPU.js.map → chunk-3F5MV2ED.js.map} +1 -1
- package/dist/{chunk-VL23G2YJ.js → chunk-44G63V6E.js} +5 -5
- package/dist/{chunk-VL23G2YJ.js.map → chunk-44G63V6E.js.map} +1 -1
- package/dist/{chunk-FEUXFWF5.cjs → chunk-4VDJYNCU.cjs} +4 -4
- package/dist/{chunk-FEUXFWF5.cjs.map → chunk-4VDJYNCU.cjs.map} +1 -1
- package/dist/{chunk-HNOAHMN4.cjs → chunk-52LEKN7E.cjs} +6 -6
- package/dist/{chunk-HNOAHMN4.cjs.map → chunk-52LEKN7E.cjs.map} +1 -1
- package/dist/{chunk-XYWMMHEC.js → chunk-5535L5CG.js} +3 -3
- package/dist/{chunk-XYWMMHEC.js.map → chunk-5535L5CG.js.map} +1 -1
- package/dist/{chunk-PJPR5YFS.js → chunk-5VEVLTZC.js} +5 -5
- package/dist/{chunk-PJPR5YFS.js.map → chunk-5VEVLTZC.js.map} +1 -1
- package/dist/{chunk-MSTNHQU2.cjs → chunk-6LFFIOT4.cjs} +9 -9
- package/dist/{chunk-MSTNHQU2.cjs.map → chunk-6LFFIOT4.cjs.map} +1 -1
- package/dist/{chunk-PVPXK52S.cjs → chunk-6NNCDLZC.cjs} +29 -29
- package/dist/{chunk-PVPXK52S.cjs.map → chunk-6NNCDLZC.cjs.map} +1 -1
- package/dist/{chunk-BT4DGQFS.js → chunk-6QIJVEVN.js} +3 -3
- package/dist/{chunk-BT4DGQFS.js.map → chunk-6QIJVEVN.js.map} +1 -1
- package/dist/{chunk-3R4HNV6B.js → chunk-7NBIALK4.js} +3 -3
- package/dist/{chunk-3R4HNV6B.js.map → chunk-7NBIALK4.js.map} +1 -1
- package/dist/{chunk-DMFYLU2A.js → chunk-7PXSB34V.js} +39 -7
- package/dist/chunk-7PXSB34V.js.map +1 -0
- package/dist/{chunk-LQSQWD2F.cjs → chunk-A2NBGGMX.cjs} +8 -8
- package/dist/{chunk-LQSQWD2F.cjs.map → chunk-A2NBGGMX.cjs.map} +1 -1
- package/dist/{chunk-W2ATM2RI.cjs → chunk-APMXFPSU.cjs} +13 -13
- package/dist/{chunk-W2ATM2RI.cjs.map → chunk-APMXFPSU.cjs.map} +1 -1
- package/dist/{chunk-3RQNJCTP.cjs → chunk-AX3JNQ27.cjs} +19 -19
- package/dist/{chunk-3RQNJCTP.cjs.map → chunk-AX3JNQ27.cjs.map} +1 -1
- package/dist/{chunk-TDSDLPLC.js → chunk-BH354CYO.js} +3 -3
- package/dist/{chunk-TDSDLPLC.js.map → chunk-BH354CYO.js.map} +1 -1
- package/dist/{chunk-536ERKFJ.js → chunk-BMGJWPCE.js} +3 -3
- package/dist/{chunk-536ERKFJ.js.map → chunk-BMGJWPCE.js.map} +1 -1
- package/dist/{chunk-Q6D6YN36.js → chunk-CH5VUESZ.js} +4 -4
- package/dist/{chunk-Q6D6YN36.js.map → chunk-CH5VUESZ.js.map} +1 -1
- package/dist/{chunk-BHOFB3CF.cjs → chunk-CTYOUJ2J.cjs} +11 -11
- package/dist/{chunk-BHOFB3CF.cjs.map → chunk-CTYOUJ2J.cjs.map} +1 -1
- package/dist/{chunk-NE5VRVVK.cjs → chunk-DJGKM4TB.cjs} +4 -4
- package/dist/{chunk-NE5VRVVK.cjs.map → chunk-DJGKM4TB.cjs.map} +1 -1
- package/dist/{chunk-RRQZAJDZ.js → chunk-E43WB5QM.js} +5 -2
- package/dist/chunk-E43WB5QM.js.map +1 -0
- package/dist/{chunk-VXZGDPW2.cjs → chunk-EJFYAD2W.cjs} +8 -8
- package/dist/{chunk-VXZGDPW2.cjs.map → chunk-EJFYAD2W.cjs.map} +1 -1
- package/dist/{chunk-26WG2OUY.cjs → chunk-ELVO5SFM.cjs} +8 -8
- package/dist/{chunk-26WG2OUY.cjs.map → chunk-ELVO5SFM.cjs.map} +1 -1
- package/dist/{chunk-OI3USMND.cjs → chunk-G7RPSZUK.cjs} +71 -71
- package/dist/{chunk-OI3USMND.cjs.map → chunk-G7RPSZUK.cjs.map} +1 -1
- package/dist/{chunk-CAHPP34Z.cjs → chunk-GGPRZBVJ.cjs} +11 -11
- package/dist/{chunk-CAHPP34Z.cjs.map → chunk-GGPRZBVJ.cjs.map} +1 -1
- package/dist/{chunk-JNFYIWNB.cjs → chunk-GO6Y47XC.cjs} +101 -101
- package/dist/{chunk-JNFYIWNB.cjs.map → chunk-GO6Y47XC.cjs.map} +1 -1
- package/dist/{chunk-CP5LPQIZ.cjs → chunk-GULBOJRY.cjs} +6 -6
- package/dist/{chunk-CP5LPQIZ.cjs.map → chunk-GULBOJRY.cjs.map} +1 -1
- package/dist/{chunk-UY5FTPBZ.cjs → chunk-H32FN255.cjs} +5 -2
- package/dist/chunk-H32FN255.cjs.map +1 -0
- package/dist/{chunk-7Z7JQRMK.js → chunk-HI4E75YH.js} +3 -3
- package/dist/{chunk-7Z7JQRMK.js.map → chunk-HI4E75YH.js.map} +1 -1
- package/dist/{chunk-BJESJLXW.cjs → chunk-I5K3Z37P.cjs} +293 -287
- package/dist/chunk-I5K3Z37P.cjs.map +1 -0
- package/dist/{chunk-UUMG5HMP.cjs → chunk-IEEP4JWJ.cjs} +12 -12
- package/dist/{chunk-UUMG5HMP.cjs.map → chunk-IEEP4JWJ.cjs.map} +1 -1
- package/dist/{chunk-Y5DUPEQF.cjs → chunk-IKIMKEA3.cjs} +8 -8
- package/dist/{chunk-Y5DUPEQF.cjs.map → chunk-IKIMKEA3.cjs.map} +1 -1
- package/dist/{chunk-ZSMQDHMV.cjs → chunk-IRIBLEBI.cjs} +10 -10
- package/dist/{chunk-ZSMQDHMV.cjs.map → chunk-IRIBLEBI.cjs.map} +1 -1
- package/dist/{chunk-PWW7XZFS.js → chunk-IWIWEX2Y.js} +5 -5
- package/dist/{chunk-PWW7XZFS.js.map → chunk-IWIWEX2Y.js.map} +1 -1
- package/dist/{chunk-7RAQVA42.cjs → chunk-J6TRVKBB.cjs} +11 -11
- package/dist/{chunk-7RAQVA42.cjs.map → chunk-J6TRVKBB.cjs.map} +1 -1
- package/dist/{chunk-WRAFGZ43.js → chunk-JGEOOOSP.js} +3 -3
- package/dist/{chunk-WRAFGZ43.js.map → chunk-JGEOOOSP.js.map} +1 -1
- package/dist/{chunk-KGZYP6YS.js → chunk-JQWULXKN.js} +5 -5
- package/dist/{chunk-KGZYP6YS.js.map → chunk-JQWULXKN.js.map} +1 -1
- package/dist/{chunk-KLD4KYXH.cjs → chunk-K6WZK5RX.cjs} +21 -21
- package/dist/{chunk-KLD4KYXH.cjs.map → chunk-K6WZK5RX.cjs.map} +1 -1
- package/dist/{chunk-MRD47GBP.cjs → chunk-K7KLUGGM.cjs} +74 -74
- package/dist/{chunk-MRD47GBP.cjs.map → chunk-K7KLUGGM.cjs.map} +1 -1
- package/dist/{chunk-6ZXLYXPA.js → chunk-KN6HJVZK.js} +4 -4
- package/dist/{chunk-6ZXLYXPA.js.map → chunk-KN6HJVZK.js.map} +1 -1
- package/dist/{chunk-OGYVHIJQ.cjs → chunk-KOMWGC24.cjs} +7 -7
- package/dist/{chunk-OGYVHIJQ.cjs.map → chunk-KOMWGC24.cjs.map} +1 -1
- package/dist/{chunk-RK2FLBQ5.js → chunk-LTKBD2RQ.js} +3 -3
- package/dist/{chunk-RK2FLBQ5.js.map → chunk-LTKBD2RQ.js.map} +1 -1
- package/dist/{chunk-5QB32PNO.cjs → chunk-LXP7DQAP.cjs} +37 -37
- package/dist/{chunk-5QB32PNO.cjs.map → chunk-LXP7DQAP.cjs.map} +1 -1
- package/dist/{chunk-GCGJKH4A.cjs → chunk-LYOM6EQP.cjs} +8 -8
- package/dist/{chunk-GCGJKH4A.cjs.map → chunk-LYOM6EQP.cjs.map} +1 -1
- package/dist/{chunk-F7KRU6ZU.js → chunk-M7OJEIOD.js} +3 -3
- package/dist/{chunk-F7KRU6ZU.js.map → chunk-M7OJEIOD.js.map} +1 -1
- package/dist/{chunk-MASP4GYH.js → chunk-MCRQRKRI.js} +3 -3
- package/dist/{chunk-MASP4GYH.js.map → chunk-MCRQRKRI.js.map} +1 -1
- package/dist/{chunk-SS7P2THJ.js → chunk-MG2QPYJD.js} +41 -41
- package/dist/{chunk-SS7P2THJ.js.map → chunk-MG2QPYJD.js.map} +1 -1
- package/dist/{chunk-FPFSXIHI.js → chunk-NMIBDLQD.js} +4 -4
- package/dist/{chunk-FPFSXIHI.js.map → chunk-NMIBDLQD.js.map} +1 -1
- package/dist/{chunk-2E3UBZ6Z.js → chunk-OMNQYWK3.js} +2 -2
- package/dist/chunk-OMNQYWK3.js.map +1 -0
- package/dist/{chunk-TPM6PMWU.js → chunk-ONEOOPSN.js} +3 -3
- package/dist/{chunk-TPM6PMWU.js.map → chunk-ONEOOPSN.js.map} +1 -1
- package/dist/{chunk-BXMGLJWL.js → chunk-OSTYHNSM.js} +3 -3
- package/dist/{chunk-BXMGLJWL.js.map → chunk-OSTYHNSM.js.map} +1 -1
- package/dist/{chunk-XEHXAE6M.cjs → chunk-OU7J7PA7.cjs} +4 -4
- package/dist/{chunk-XEHXAE6M.cjs.map → chunk-OU7J7PA7.cjs.map} +1 -1
- package/dist/{chunk-H3CPBOE4.js → chunk-P6EQTV2Y.js} +3 -3
- package/dist/{chunk-H3CPBOE4.js.map → chunk-P6EQTV2Y.js.map} +1 -1
- package/dist/{chunk-2NGKAQQE.cjs → chunk-QAKI6K3C.cjs} +5 -5
- package/dist/{chunk-2NGKAQQE.cjs.map → chunk-QAKI6K3C.cjs.map} +1 -1
- package/dist/{chunk-YN4RDOPA.js → chunk-QDVO3DAW.js} +3 -3
- package/dist/{chunk-YN4RDOPA.js.map → chunk-QDVO3DAW.js.map} +1 -1
- package/dist/{chunk-ORQHCHAU.js → chunk-QJEXUABN.js} +4 -4
- package/dist/{chunk-ORQHCHAU.js.map → chunk-QJEXUABN.js.map} +1 -1
- package/dist/{chunk-K3XMNUQT.js → chunk-QJHZIGQG.js} +3 -3
- package/dist/{chunk-K3XMNUQT.js.map → chunk-QJHZIGQG.js.map} +1 -1
- package/dist/{chunk-ZMMHUTQG.cjs → chunk-QOGEYWQA.cjs} +24 -24
- package/dist/{chunk-ZMMHUTQG.cjs.map → chunk-QOGEYWQA.cjs.map} +1 -1
- package/dist/{chunk-GG7J3ITE.cjs → chunk-RKGCJXZO.cjs} +6 -6
- package/dist/{chunk-GG7J3ITE.cjs.map → chunk-RKGCJXZO.cjs.map} +1 -1
- package/dist/{chunk-U3AC2DM6.js → chunk-RKUFUE6P.js} +3 -3
- package/dist/{chunk-U3AC2DM6.js.map → chunk-RKUFUE6P.js.map} +1 -1
- package/dist/{chunk-FTXUZBZI.cjs → chunk-RSCLEVN3.cjs} +28 -28
- package/dist/{chunk-FTXUZBZI.cjs.map → chunk-RSCLEVN3.cjs.map} +1 -1
- package/dist/{chunk-CCVV75AI.js → chunk-SB4CG73V.js} +3 -3
- package/dist/{chunk-CCVV75AI.js.map → chunk-SB4CG73V.js.map} +1 -1
- package/dist/{chunk-2ONW75MN.cjs → chunk-SCCERKQS.cjs} +5 -5
- package/dist/{chunk-2ONW75MN.cjs.map → chunk-SCCERKQS.cjs.map} +1 -1
- package/dist/{chunk-SMQOFEYY.js → chunk-SEV4GJWB.js} +4 -4
- package/dist/{chunk-SMQOFEYY.js.map → chunk-SEV4GJWB.js.map} +1 -1
- package/dist/{chunk-NQLS4Z3W.js → chunk-SH7XKBWN.js} +5 -5
- package/dist/{chunk-NQLS4Z3W.js.map → chunk-SH7XKBWN.js.map} +1 -1
- package/dist/{chunk-3YBCWOF6.js → chunk-SIBCVLYV.js} +3 -3
- package/dist/{chunk-3YBCWOF6.js.map → chunk-SIBCVLYV.js.map} +1 -1
- package/dist/{chunk-C364W23O.js → chunk-SLHJWJR3.js} +4 -4
- package/dist/{chunk-C364W23O.js.map → chunk-SLHJWJR3.js.map} +1 -1
- package/dist/{chunk-2TKEZ5UE.js → chunk-SLWYNPH6.js} +3 -3
- package/dist/{chunk-2TKEZ5UE.js.map → chunk-SLWYNPH6.js.map} +1 -1
- package/dist/{chunk-ZMETLXPM.js → chunk-SU4ZAHUZ.js} +3 -3
- package/dist/{chunk-ZMETLXPM.js.map → chunk-SU4ZAHUZ.js.map} +1 -1
- package/dist/{chunk-TR2X57M3.cjs → chunk-SX2AJUSP.cjs} +2 -2
- package/dist/chunk-SX2AJUSP.cjs.map +1 -0
- package/dist/{chunk-AYHL7EEE.cjs → chunk-SXOMGGNC.cjs} +8 -8
- package/dist/{chunk-AYHL7EEE.cjs.map → chunk-SXOMGGNC.cjs.map} +1 -1
- package/dist/{chunk-OUHXNZBK.cjs → chunk-T7JR2CZV.cjs} +16 -16
- package/dist/{chunk-OUHXNZBK.cjs.map → chunk-T7JR2CZV.cjs.map} +1 -1
- package/dist/{chunk-GME4WQE6.js → chunk-TEIKCIX2.js} +5 -5
- package/dist/{chunk-GME4WQE6.js.map → chunk-TEIKCIX2.js.map} +1 -1
- package/dist/{chunk-7BZUW6TQ.cjs → chunk-TLBW3NWJ.cjs} +8 -8
- package/dist/{chunk-7BZUW6TQ.cjs.map → chunk-TLBW3NWJ.cjs.map} +1 -1
- package/dist/{chunk-MELQ2AU3.cjs → chunk-TPB44HAO.cjs} +10 -10
- package/dist/{chunk-MELQ2AU3.cjs.map → chunk-TPB44HAO.cjs.map} +1 -1
- package/dist/{chunk-PRDZRNPQ.cjs → chunk-TS2WBQFI.cjs} +13 -13
- package/dist/{chunk-PRDZRNPQ.cjs.map → chunk-TS2WBQFI.cjs.map} +1 -1
- package/dist/{chunk-6RHPKT2B.js → chunk-U5AYX5QW.js} +4 -4
- package/dist/{chunk-6RHPKT2B.js.map → chunk-U5AYX5QW.js.map} +1 -1
- package/dist/{chunk-HIGUQ2H3.js → chunk-UO4HGWYR.js} +3 -3
- package/dist/{chunk-HIGUQ2H3.js.map → chunk-UO4HGWYR.js.map} +1 -1
- package/dist/{chunk-H4LV3HUC.js → chunk-UWJ25WPB.js} +293 -287
- package/dist/chunk-UWJ25WPB.js.map +1 -0
- package/dist/{chunk-RNDEJYFW.cjs → chunk-W4XN6DDQ.cjs} +10 -10
- package/dist/{chunk-RNDEJYFW.cjs.map → chunk-W4XN6DDQ.cjs.map} +1 -1
- package/dist/{chunk-2WRJFEJK.js → chunk-WBPOFUFH.js} +3 -3
- package/dist/{chunk-2WRJFEJK.js.map → chunk-WBPOFUFH.js.map} +1 -1
- package/dist/chunk-WDLTCIDV.cjs +744 -0
- package/dist/{chunk-ZIFVFLJK.cjs.map → chunk-WDLTCIDV.cjs.map} +1 -1
- package/dist/{chunk-AKJHICI7.js → chunk-WJAV35G4.js} +4 -4
- package/dist/{chunk-AKJHICI7.js.map → chunk-WJAV35G4.js.map} +1 -1
- package/dist/{chunk-VHW5GZRA.js → chunk-WW37XHKJ.js} +4 -4
- package/dist/{chunk-VHW5GZRA.js.map → chunk-WW37XHKJ.js.map} +1 -1
- package/dist/{chunk-VMJ6UWBH.js → chunk-XFHXVKUV.js} +3 -3
- package/dist/{chunk-VMJ6UWBH.js.map → chunk-XFHXVKUV.js.map} +1 -1
- package/dist/{chunk-44HRN3OK.cjs → chunk-XNL6KN4F.cjs} +10 -10
- package/dist/{chunk-44HRN3OK.cjs.map → chunk-XNL6KN4F.cjs.map} +1 -1
- package/dist/{chunk-YS3A5BZH.cjs → chunk-XUKT5XLE.cjs} +37 -37
- package/dist/{chunk-YS3A5BZH.cjs.map → chunk-XUKT5XLE.cjs.map} +1 -1
- package/dist/{chunk-RQDW42XU.cjs → chunk-Y6BBB5S7.cjs} +8 -8
- package/dist/{chunk-RQDW42XU.cjs.map → chunk-Y6BBB5S7.cjs.map} +1 -1
- package/dist/{chunk-AD4P2UCI.cjs → chunk-YH4H2AJO.cjs} +8 -8
- package/dist/{chunk-AD4P2UCI.cjs.map → chunk-YH4H2AJO.cjs.map} +1 -1
- package/dist/{chunk-UVGAYAEV.js → chunk-Z2QGIB47.js} +4 -4
- package/dist/{chunk-UVGAYAEV.js.map → chunk-Z2QGIB47.js.map} +1 -1
- package/dist/{chunk-FYQHPT2E.js → chunk-Z5OBB3DJ.js} +3 -3
- package/dist/{chunk-FYQHPT2E.js.map → chunk-Z5OBB3DJ.js.map} +1 -1
- package/dist/{chunk-JCJIGPVP.cjs → chunk-ZG6ZAG5V.cjs} +41 -41
- package/dist/{chunk-JCJIGPVP.cjs.map → chunk-ZG6ZAG5V.cjs.map} +1 -1
- package/dist/{chunk-X6ZXQ3MZ.cjs → chunk-ZIBI62YT.cjs} +127 -95
- package/dist/chunk-ZIBI62YT.cjs.map +1 -0
- package/dist/{chunk-ZQLMTK5J.js → chunk-ZNGJHQKB.js} +3 -3
- package/dist/{chunk-ZQLMTK5J.js.map → chunk-ZNGJHQKB.js.map} +1 -1
- package/dist/{dist-2YFKAQMY.js → dist-3IOY4UDH.js} +3 -3
- package/dist/{dist-2YFKAQMY.js.map → dist-3IOY4UDH.js.map} +1 -1
- package/dist/{dist-JWLVQJFQ.js → dist-5PUBSY65.js} +3 -3
- package/dist/{dist-JWLVQJFQ.js.map → dist-5PUBSY65.js.map} +1 -1
- package/dist/{dist-MR5IMYFM.js → dist-5RUREC34.js} +9 -9
- package/dist/{dist-MR5IMYFM.js.map → dist-5RUREC34.js.map} +1 -1
- package/dist/{dist-WBYMZPKB.cjs → dist-7ROGUSJI.cjs} +26 -26
- package/dist/{dist-WBYMZPKB.cjs.map → dist-7ROGUSJI.cjs.map} +1 -1
- package/dist/dist-BJSMOQXN.cjs +16 -0
- package/dist/{dist-NYM3IQLY.cjs.map → dist-BJSMOQXN.cjs.map} +1 -1
- package/dist/{dist-6VCC76Q3.cjs → dist-I2O6YPDX.cjs} +30 -30
- package/dist/{dist-6VCC76Q3.cjs.map → dist-I2O6YPDX.cjs.map} +1 -1
- package/dist/{dist-M3P3YMJP.cjs → dist-I5TS34XK.cjs} +28 -28
- package/dist/{dist-M3P3YMJP.cjs.map → dist-I5TS34XK.cjs.map} +1 -1
- package/dist/{dist-J4UWKVDM.js → dist-IB5HRZQW.js} +3 -3
- package/dist/{dist-J4UWKVDM.js.map → dist-IB5HRZQW.js.map} +1 -1
- package/dist/{dist-QOH7MNRH.cjs → dist-RW46FX3B.cjs} +13 -13
- package/dist/{dist-QOH7MNRH.cjs.map → dist-RW46FX3B.cjs.map} +1 -1
- package/dist/dist-SOVT5P5X.js +3 -0
- package/dist/{dist-CB67HEFG.js.map → dist-SOVT5P5X.js.map} +1 -1
- package/dist/{dist-CIZY7VDE.cjs → dist-YPPUCXOD.cjs} +20 -20
- package/dist/{dist-CIZY7VDE.cjs.map → dist-YPPUCXOD.cjs.map} +1 -1
- package/dist/{dist-IPZQFQMB.js → dist-Z62354D3.js} +3 -3
- package/dist/{dist-IPZQFQMB.js.map → dist-Z62354D3.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/{observational-memory-SF36C4XR-VIMLDSHT.cjs → observational-memory-OJN26RQ4-DTEVO3PP.cjs} +29 -29
- package/dist/{observational-memory-SF36C4XR-VIMLDSHT.cjs.map → observational-memory-OJN26RQ4-DTEVO3PP.cjs.map} +1 -1
- package/dist/{observational-memory-SF36C4XR-2DQQF4XZ.js → observational-memory-OJN26RQ4-QC5U3UMA.js} +3 -3
- package/dist/{observational-memory-SF36C4XR-2DQQF4XZ.js.map → observational-memory-OJN26RQ4-QC5U3UMA.js.map} +1 -1
- package/dist/server/handlers/a2a.cjs +14 -14
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +17 -17
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agent-controller.cjs +35 -35
- package/dist/server/handlers/agent-controller.js +1 -1
- package/dist/server/handlers/agent-versions.cjs +8 -8
- package/dist/server/handlers/agent-versions.js +1 -1
- package/dist/server/handlers/agents.cjs +48 -48
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/auth.cjs +13 -13
- package/dist/server/handlers/auth.js +1 -1
- package/dist/server/handlers/background-tasks.cjs +4 -4
- package/dist/server/handlers/background-tasks.js +1 -1
- package/dist/server/handlers/builder-registry.cjs +6 -6
- package/dist/server/handlers/builder-registry.js +1 -1
- package/dist/server/handlers/channels.cjs +5 -5
- package/dist/server/handlers/channels.js +1 -1
- package/dist/server/handlers/conversations.cjs +5 -5
- package/dist/server/handlers/conversations.js +1 -1
- package/dist/server/handlers/datasets.cjs +26 -26
- package/dist/server/handlers/datasets.d.ts +16 -0
- package/dist/server/handlers/datasets.d.ts.map +1 -1
- package/dist/server/handlers/datasets.js +1 -1
- package/dist/server/handlers/editor-builder.cjs +6 -6
- package/dist/server/handlers/editor-builder.js +1 -1
- package/dist/server/handlers/favorites-enrichment.cjs +4 -4
- package/dist/server/handlers/favorites-enrichment.js +1 -1
- package/dist/server/handlers/logs.cjs +4 -4
- package/dist/server/handlers/logs.js +1 -1
- package/dist/server/handlers/mcp-client-versions.cjs +8 -8
- package/dist/server/handlers/mcp-client-versions.js +1 -1
- package/dist/server/handlers/mcp.cjs +11 -11
- package/dist/server/handlers/mcp.js +1 -1
- package/dist/server/handlers/memory.cjs +27 -27
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/observability-new-endpoints.cjs +29 -29
- package/dist/server/handlers/observability-new-endpoints.js +1 -1
- package/dist/server/handlers/observability-shared.cjs +9 -9
- package/dist/server/handlers/observability-shared.js +1 -1
- package/dist/server/handlers/observability.cjs +40 -40
- package/dist/server/handlers/observability.js +2 -2
- package/dist/server/handlers/processor-providers.cjs +3 -3
- package/dist/server/handlers/processor-providers.js +1 -1
- package/dist/server/handlers/processors.cjs +4 -4
- package/dist/server/handlers/processors.js +1 -1
- package/dist/server/handlers/prompt-block-versions.cjs +8 -8
- package/dist/server/handlers/prompt-block-versions.js +1 -1
- package/dist/server/handlers/responses.cjs +4 -4
- package/dist/server/handlers/responses.js +1 -1
- package/dist/server/handlers/schedules.cjs +10 -10
- package/dist/server/handlers/schedules.js +1 -1
- package/dist/server/handlers/scorer-versions.cjs +8 -8
- package/dist/server/handlers/scorer-versions.js +1 -1
- package/dist/server/handlers/scores.cjs +7 -7
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/stored-agent-favorites.cjs +3 -3
- package/dist/server/handlers/stored-agent-favorites.js +1 -1
- package/dist/server/handlers/stored-agents.cjs +10 -10
- package/dist/server/handlers/stored-agents.js +1 -1
- package/dist/server/handlers/stored-mcp-clients.cjs +6 -6
- package/dist/server/handlers/stored-mcp-clients.js +1 -1
- package/dist/server/handlers/stored-prompt-blocks.cjs +6 -6
- package/dist/server/handlers/stored-prompt-blocks.js +1 -1
- package/dist/server/handlers/stored-scorers.cjs +6 -6
- package/dist/server/handlers/stored-scorers.js +1 -1
- package/dist/server/handlers/stored-skill-favorites.cjs +3 -3
- package/dist/server/handlers/stored-skill-favorites.js +1 -1
- package/dist/server/handlers/stored-skills.cjs +7 -7
- package/dist/server/handlers/stored-skills.js +1 -1
- package/dist/server/handlers/stored-workspaces.cjs +6 -6
- package/dist/server/handlers/stored-workspaces.js +1 -1
- package/dist/server/handlers/system.cjs +3 -3
- package/dist/server/handlers/system.js +1 -1
- package/dist/server/handlers/tool-providers.cjs +14 -14
- package/dist/server/handlers/tool-providers.js +1 -1
- package/dist/server/handlers/tools.cjs +6 -6
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/vector.cjs +16 -16
- package/dist/server/handlers/vector.js +1 -1
- package/dist/server/handlers/workflows.cjs +27 -27
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers/workspace.cjs +26 -26
- package/dist/server/handlers/workspace.js +1 -1
- package/dist/server/handlers.cjs +28 -28
- package/dist/server/handlers.js +14 -14
- package/dist/server/schemas/datasets.d.ts +5 -0
- package/dist/server/schemas/datasets.d.ts.map +1 -1
- package/dist/server/schemas/index.cjs +43 -43
- package/dist/server/schemas/index.js +1 -1
- package/dist/server/server-adapter/index.cjs +21 -21
- package/dist/server/server-adapter/index.js +4 -4
- package/dist/server/server-adapter/routes/datasets.d.ts +16 -0
- package/dist/server/server-adapter/routes/datasets.d.ts.map +1 -1
- package/dist/working-memory-state-OMSMSYAW-6OXJFZFI.js +3 -0
- package/dist/{working-memory-state-OMSMSYAW-NEULPFZX.js.map → working-memory-state-OMSMSYAW-6OXJFZFI.js.map} +1 -1
- package/dist/working-memory-state-OMSMSYAW-GCNI4HPX.cjs +24 -0
- package/dist/{working-memory-state-OMSMSYAW-4THWAGFK.cjs.map → working-memory-state-OMSMSYAW-GCNI4HPX.cjs.map} +1 -1
- package/package.json +6 -6
- package/dist/chunk-2E3UBZ6Z.js.map +0 -1
- package/dist/chunk-BJESJLXW.cjs.map +0 -1
- package/dist/chunk-DMFYLU2A.js.map +0 -1
- package/dist/chunk-H4LV3HUC.js.map +0 -1
- package/dist/chunk-RRQZAJDZ.js.map +0 -1
- package/dist/chunk-TR2X57M3.cjs.map +0 -1
- package/dist/chunk-UY5FTPBZ.cjs.map +0 -1
- package/dist/chunk-X6ZXQ3MZ.cjs.map +0 -1
- package/dist/chunk-ZIFVFLJK.cjs +0 -744
- package/dist/dist-CB67HEFG.js +0 -3
- package/dist/dist-NYM3IQLY.cjs +0 -16
- package/dist/working-memory-state-OMSMSYAW-4THWAGFK.cjs +0 -24
- package/dist/working-memory-state-OMSMSYAW-NEULPFZX.js +0 -3
|
@@ -1476,7 +1476,7 @@ var require_dist = chunkO7I5CWRX_cjs.__commonJS({
|
|
|
1476
1476
|
var t = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 48, 8, 96, 3, 127, 127, 127, 1, 127, 96, 3, 127, 127, 127, 0, 96, 2, 127, 127, 0, 96, 1, 127, 1, 127, 96, 3, 127, 127, 126, 1, 126, 96, 3, 126, 127, 127, 1, 126, 96, 2, 127, 126, 0, 96, 1, 127, 1, 126, 3, 11, 10, 0, 0, 2, 1, 3, 4, 5, 6, 1, 7, 5, 3, 1, 0, 1, 7, 85, 9, 3, 109, 101, 109, 2, 0, 5, 120, 120, 104, 51, 50, 0, 0, 6, 105, 110, 105, 116, 51, 50, 0, 2, 8, 117, 112, 100, 97, 116, 101, 51, 50, 0, 3, 8, 100, 105, 103, 101, 115, 116, 51, 50, 0, 4, 5, 120, 120, 104, 54, 52, 0, 5, 6, 105, 110, 105, 116, 54, 52, 0, 7, 8, 117, 112, 100, 97, 116, 101, 54, 52, 0, 8, 8, 100, 105, 103, 101, 115, 116, 54, 52, 0, 9, 10, 251, 22, 10, 242, 1, 1, 4, 127, 32, 0, 32, 1, 106, 33, 3, 32, 1, 65, 16, 79, 4, 127, 32, 3, 65, 16, 107, 33, 6, 32, 2, 65, 168, 136, 141, 161, 2, 106, 33, 3, 32, 2, 65, 137, 235, 208, 208, 7, 107, 33, 4, 32, 2, 65, 207, 140, 162, 142, 6, 106, 33, 5, 3, 64, 32, 3, 32, 0, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 3, 32, 4, 32, 0, 65, 4, 106, 34, 0, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 4, 32, 2, 32, 0, 65, 4, 106, 34, 0, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 2, 32, 5, 32, 0, 65, 4, 106, 34, 0, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 5, 32, 6, 32, 0, 65, 4, 106, 34, 0, 79, 13, 0, 11, 32, 2, 65, 12, 119, 32, 5, 65, 18, 119, 106, 32, 4, 65, 7, 119, 106, 32, 3, 65, 1, 119, 106, 5, 32, 2, 65, 177, 207, 217, 178, 1, 106, 11, 32, 1, 106, 32, 0, 32, 1, 65, 15, 113, 16, 1, 11, 146, 1, 0, 32, 1, 32, 2, 106, 33, 2, 3, 64, 32, 1, 65, 4, 106, 32, 2, 75, 69, 4, 64, 32, 0, 32, 1, 40, 2, 0, 65, 189, 220, 202, 149, 124, 108, 106, 65, 17, 119, 65, 175, 214, 211, 190, 2, 108, 33, 0, 32, 1, 65, 4, 106, 33, 1, 12, 1, 11, 11, 3, 64, 32, 1, 32, 2, 79, 69, 4, 64, 32, 0, 32, 1, 45, 0, 0, 65, 177, 207, 217, 178, 1, 108, 106, 65, 11, 119, 65, 177, 243, 221, 241, 121, 108, 33, 0, 32, 1, 65, 1, 106, 33, 1, 12, 1, 11, 11, 32, 0, 32, 0, 65, 15, 118, 115, 65, 247, 148, 175, 175, 120, 108, 34, 0, 65, 13, 118, 32, 0, 115, 65, 189, 220, 202, 149, 124, 108, 34, 0, 65, 16, 118, 32, 0, 115, 11, 63, 0, 32, 0, 65, 8, 106, 32, 1, 65, 168, 136, 141, 161, 2, 106, 54, 2, 0, 32, 0, 65, 12, 106, 32, 1, 65, 137, 235, 208, 208, 7, 107, 54, 2, 0, 32, 0, 65, 16, 106, 32, 1, 54, 2, 0, 32, 0, 65, 20, 106, 32, 1, 65, 207, 140, 162, 142, 6, 106, 54, 2, 0, 11, 195, 4, 1, 6, 127, 32, 1, 32, 2, 106, 33, 6, 32, 0, 65, 24, 106, 33, 4, 32, 0, 65, 40, 106, 40, 2, 0, 33, 3, 32, 0, 32, 0, 40, 2, 0, 32, 2, 106, 54, 2, 0, 32, 0, 65, 4, 106, 34, 5, 32, 5, 40, 2, 0, 32, 2, 65, 16, 79, 32, 0, 40, 2, 0, 65, 16, 79, 114, 114, 54, 2, 0, 32, 2, 32, 3, 106, 65, 16, 73, 4, 64, 32, 3, 32, 4, 106, 32, 1, 32, 2, 252, 10, 0, 0, 32, 0, 65, 40, 106, 32, 2, 32, 3, 106, 54, 2, 0, 15, 11, 32, 3, 4, 64, 32, 3, 32, 4, 106, 32, 1, 65, 16, 32, 3, 107, 34, 2, 252, 10, 0, 0, 32, 0, 65, 8, 106, 34, 3, 32, 3, 40, 2, 0, 32, 4, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 54, 2, 0, 32, 0, 65, 12, 106, 34, 3, 32, 3, 40, 2, 0, 32, 4, 65, 4, 106, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 54, 2, 0, 32, 0, 65, 16, 106, 34, 3, 32, 3, 40, 2, 0, 32, 4, 65, 8, 106, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 54, 2, 0, 32, 0, 65, 20, 106, 34, 3, 32, 3, 40, 2, 0, 32, 4, 65, 12, 106, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 54, 2, 0, 32, 0, 65, 40, 106, 65, 0, 54, 2, 0, 32, 1, 32, 2, 106, 33, 1, 11, 32, 1, 32, 6, 65, 16, 107, 77, 4, 64, 32, 6, 65, 16, 107, 33, 8, 32, 0, 65, 8, 106, 40, 2, 0, 33, 2, 32, 0, 65, 12, 106, 40, 2, 0, 33, 3, 32, 0, 65, 16, 106, 40, 2, 0, 33, 5, 32, 0, 65, 20, 106, 40, 2, 0, 33, 7, 3, 64, 32, 2, 32, 1, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 2, 32, 3, 32, 1, 65, 4, 106, 34, 1, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 3, 32, 5, 32, 1, 65, 4, 106, 34, 1, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 5, 32, 7, 32, 1, 65, 4, 106, 34, 1, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 7, 32, 8, 32, 1, 65, 4, 106, 34, 1, 79, 13, 0, 11, 32, 0, 65, 8, 106, 32, 2, 54, 2, 0, 32, 0, 65, 12, 106, 32, 3, 54, 2, 0, 32, 0, 65, 16, 106, 32, 5, 54, 2, 0, 32, 0, 65, 20, 106, 32, 7, 54, 2, 0, 11, 32, 1, 32, 6, 73, 4, 64, 32, 4, 32, 1, 32, 6, 32, 1, 107, 34, 1, 252, 10, 0, 0, 32, 0, 65, 40, 106, 32, 1, 54, 2, 0, 11, 11, 97, 1, 1, 127, 32, 0, 65, 16, 106, 40, 2, 0, 33, 1, 32, 0, 65, 4, 106, 40, 2, 0, 4, 127, 32, 1, 65, 12, 119, 32, 0, 65, 20, 106, 40, 2, 0, 65, 18, 119, 106, 32, 0, 65, 12, 106, 40, 2, 0, 65, 7, 119, 106, 32, 0, 65, 8, 106, 40, 2, 0, 65, 1, 119, 106, 5, 32, 1, 65, 177, 207, 217, 178, 1, 106, 11, 32, 0, 40, 2, 0, 106, 32, 0, 65, 24, 106, 32, 0, 65, 40, 106, 40, 2, 0, 16, 1, 11, 255, 3, 2, 3, 126, 1, 127, 32, 0, 32, 1, 106, 33, 6, 32, 1, 65, 32, 79, 4, 126, 32, 6, 65, 32, 107, 33, 6, 32, 2, 66, 214, 235, 130, 238, 234, 253, 137, 245, 224, 0, 124, 33, 3, 32, 2, 66, 177, 169, 172, 193, 173, 184, 212, 166, 61, 125, 33, 4, 32, 2, 66, 249, 234, 208, 208, 231, 201, 161, 228, 225, 0, 124, 33, 5, 3, 64, 32, 3, 32, 0, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 3, 32, 4, 32, 0, 65, 8, 106, 34, 0, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 4, 32, 2, 32, 0, 65, 8, 106, 34, 0, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 2, 32, 5, 32, 0, 65, 8, 106, 34, 0, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 5, 32, 6, 32, 0, 65, 8, 106, 34, 0, 79, 13, 0, 11, 32, 2, 66, 12, 137, 32, 5, 66, 18, 137, 124, 32, 4, 66, 7, 137, 124, 32, 3, 66, 1, 137, 124, 32, 3, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 4, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 2, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 5, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 5, 32, 2, 66, 197, 207, 217, 178, 241, 229, 186, 234, 39, 124, 11, 32, 1, 173, 124, 32, 0, 32, 1, 65, 31, 113, 16, 6, 11, 134, 2, 0, 32, 1, 32, 2, 106, 33, 2, 3, 64, 32, 2, 32, 1, 65, 8, 106, 79, 4, 64, 32, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 32, 0, 133, 66, 27, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 33, 0, 32, 1, 65, 8, 106, 33, 1, 12, 1, 11, 11, 32, 1, 65, 4, 106, 32, 2, 77, 4, 64, 32, 0, 32, 1, 53, 2, 0, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 23, 137, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 249, 243, 221, 241, 153, 246, 153, 171, 22, 124, 33, 0, 32, 1, 65, 4, 106, 33, 1, 11, 3, 64, 32, 1, 32, 2, 73, 4, 64, 32, 0, 32, 1, 49, 0, 0, 66, 197, 207, 217, 178, 241, 229, 186, 234, 39, 126, 133, 66, 11, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 0, 32, 1, 65, 1, 106, 33, 1, 12, 1, 11, 11, 32, 0, 32, 0, 66, 33, 136, 133, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 34, 0, 32, 0, 66, 29, 136, 133, 66, 249, 243, 221, 241, 153, 246, 153, 171, 22, 126, 34, 0, 32, 0, 66, 32, 136, 133, 11, 77, 0, 32, 0, 65, 8, 106, 32, 1, 66, 214, 235, 130, 238, 234, 253, 137, 245, 224, 0, 124, 55, 3, 0, 32, 0, 65, 16, 106, 32, 1, 66, 177, 169, 172, 193, 173, 184, 212, 166, 61, 125, 55, 3, 0, 32, 0, 65, 24, 106, 32, 1, 55, 3, 0, 32, 0, 65, 32, 106, 32, 1, 66, 249, 234, 208, 208, 231, 201, 161, 228, 225, 0, 124, 55, 3, 0, 11, 244, 4, 2, 3, 127, 4, 126, 32, 1, 32, 2, 106, 33, 5, 32, 0, 65, 40, 106, 33, 4, 32, 0, 65, 200, 0, 106, 40, 2, 0, 33, 3, 32, 0, 32, 0, 41, 3, 0, 32, 2, 173, 124, 55, 3, 0, 32, 2, 32, 3, 106, 65, 32, 73, 4, 64, 32, 3, 32, 4, 106, 32, 1, 32, 2, 252, 10, 0, 0, 32, 0, 65, 200, 0, 106, 32, 2, 32, 3, 106, 54, 2, 0, 15, 11, 32, 3, 4, 64, 32, 3, 32, 4, 106, 32, 1, 65, 32, 32, 3, 107, 34, 2, 252, 10, 0, 0, 32, 0, 65, 8, 106, 34, 3, 32, 3, 41, 3, 0, 32, 4, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 55, 3, 0, 32, 0, 65, 16, 106, 34, 3, 32, 3, 41, 3, 0, 32, 4, 65, 8, 106, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 55, 3, 0, 32, 0, 65, 24, 106, 34, 3, 32, 3, 41, 3, 0, 32, 4, 65, 16, 106, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 55, 3, 0, 32, 0, 65, 32, 106, 34, 3, 32, 3, 41, 3, 0, 32, 4, 65, 24, 106, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 55, 3, 0, 32, 0, 65, 200, 0, 106, 65, 0, 54, 2, 0, 32, 1, 32, 2, 106, 33, 1, 11, 32, 1, 65, 32, 106, 32, 5, 77, 4, 64, 32, 5, 65, 32, 107, 33, 2, 32, 0, 65, 8, 106, 41, 3, 0, 33, 6, 32, 0, 65, 16, 106, 41, 3, 0, 33, 7, 32, 0, 65, 24, 106, 41, 3, 0, 33, 8, 32, 0, 65, 32, 106, 41, 3, 0, 33, 9, 3, 64, 32, 6, 32, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 6, 32, 7, 32, 1, 65, 8, 106, 34, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 7, 32, 8, 32, 1, 65, 8, 106, 34, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 8, 32, 9, 32, 1, 65, 8, 106, 34, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 9, 32, 2, 32, 1, 65, 8, 106, 34, 1, 79, 13, 0, 11, 32, 0, 65, 8, 106, 32, 6, 55, 3, 0, 32, 0, 65, 16, 106, 32, 7, 55, 3, 0, 32, 0, 65, 24, 106, 32, 8, 55, 3, 0, 32, 0, 65, 32, 106, 32, 9, 55, 3, 0, 11, 32, 1, 32, 5, 73, 4, 64, 32, 4, 32, 1, 32, 5, 32, 1, 107, 34, 1, 252, 10, 0, 0, 32, 0, 65, 200, 0, 106, 32, 1, 54, 2, 0, 11, 11, 188, 2, 1, 5, 126, 32, 0, 65, 24, 106, 41, 3, 0, 33, 1, 32, 0, 41, 3, 0, 34, 2, 66, 32, 90, 4, 126, 32, 0, 65, 8, 106, 41, 3, 0, 34, 3, 66, 1, 137, 32, 0, 65, 16, 106, 41, 3, 0, 34, 4, 66, 7, 137, 124, 32, 1, 66, 12, 137, 32, 0, 65, 32, 106, 41, 3, 0, 34, 5, 66, 18, 137, 124, 124, 32, 3, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 4, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 1, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 5, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 5, 32, 1, 66, 197, 207, 217, 178, 241, 229, 186, 234, 39, 124, 11, 32, 2, 124, 32, 0, 65, 40, 106, 32, 2, 66, 31, 131, 167, 16, 6, 11]);
|
|
1477
1477
|
async function e() {
|
|
1478
1478
|
return (function(t2) {
|
|
1479
|
-
const { exports: { mem: e2, xxh32: n, xxh64: r, init32: i, update32: a, digest32: o, init64: s, update64:
|
|
1479
|
+
const { exports: { mem: e2, xxh32: n, xxh64: r, init32: i, update32: a, digest32: o, init64: s, update64: u, digest64: c } } = t2;
|
|
1480
1480
|
let h = new Uint8Array(e2.buffer);
|
|
1481
1481
|
function g(t3, n2) {
|
|
1482
1482
|
if (e2.buffer.byteLength < t3 + n2) {
|
|
@@ -1496,17 +1496,17 @@ async function e() {
|
|
|
1496
1496
|
return t3 >>> 0;
|
|
1497
1497
|
}
|
|
1498
1498
|
const b = 2n ** 64n - 1n;
|
|
1499
|
-
function
|
|
1499
|
+
function d3(t3) {
|
|
1500
1500
|
return t3 & b;
|
|
1501
1501
|
}
|
|
1502
1502
|
const w = new TextEncoder(), l = 0, p = 0n;
|
|
1503
|
-
function
|
|
1503
|
+
function x2(t3, e3 = l) {
|
|
1504
1504
|
return g(3 * t3.length, 0), y(n(0, w.encodeInto(t3, h).written, e3));
|
|
1505
1505
|
}
|
|
1506
1506
|
function L2(t3, e3 = p) {
|
|
1507
|
-
return g(3 * t3.length, 0),
|
|
1507
|
+
return g(3 * t3.length, 0), d3(r(0, w.encodeInto(t3, h).written, e3));
|
|
1508
1508
|
}
|
|
1509
|
-
return { h32:
|
|
1509
|
+
return { h32: x2, h32ToString: (t3, e3 = l) => x2(t3, e3).toString(16).padStart(8, "0"), h32Raw: (t3, e3 = l) => (g(t3.byteLength, 0), h.set(t3), y(n(0, t3.byteLength, e3))), create32: (t3 = l) => f(48, t3, i, a, o, y), h64: L2, h64ToString: (t3, e3 = p) => L2(t3, e3).toString(16).padStart(16, "0"), h64Raw: (t3, e3 = p) => (g(t3.byteLength, 0), h.set(t3), d3(r(0, t3.byteLength, e3))), create64: (t3 = p) => f(88, t3, s, u, c, d3) };
|
|
1510
1510
|
})((await WebAssembly.instantiate(t)).instance);
|
|
1511
1511
|
}
|
|
1512
1512
|
|
|
@@ -1766,34 +1766,34 @@ var Mutex = class {
|
|
|
1766
1766
|
};
|
|
1767
1767
|
var S = diagnostics_channel.channel("lru-cache:metrics");
|
|
1768
1768
|
var W = diagnostics_channel.tracingChannel("lru-cache");
|
|
1769
|
-
var
|
|
1770
|
-
var
|
|
1769
|
+
var L = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
1770
|
+
var R = () => S.hasSubscribers || W.hasSubscribers;
|
|
1771
1771
|
var U = /* @__PURE__ */ new Set();
|
|
1772
|
-
var
|
|
1773
|
-
var
|
|
1774
|
-
typeof
|
|
1772
|
+
var M = typeof process == "object" && process ? process : {};
|
|
1773
|
+
var k = (d3, e2, t2, i) => {
|
|
1774
|
+
typeof M.emitWarning == "function" ? M.emitWarning(d3, e2, t2, i) : console.error(`[${t2}] ${e2}: ${d3}`);
|
|
1775
1775
|
};
|
|
1776
|
-
var H = (
|
|
1777
|
-
var
|
|
1778
|
-
var j = (
|
|
1776
|
+
var H = (d3) => !U.has(d3);
|
|
1777
|
+
var T = (d3) => !!d3 && d3 === Math.floor(d3) && d3 > 0 && isFinite(d3);
|
|
1778
|
+
var j = (d3) => T(d3) ? d3 <= Math.pow(2, 8) ? Uint8Array : d3 <= Math.pow(2, 16) ? Uint16Array : d3 <= Math.pow(2, 32) ? Uint32Array : d3 <= Number.MAX_SAFE_INTEGER ? O : null : null;
|
|
1779
1779
|
var O = class extends Array {
|
|
1780
1780
|
constructor(e2) {
|
|
1781
1781
|
super(e2), this.fill(0);
|
|
1782
1782
|
}
|
|
1783
1783
|
};
|
|
1784
|
-
var
|
|
1784
|
+
var x = class d {
|
|
1785
1785
|
heap;
|
|
1786
1786
|
length;
|
|
1787
1787
|
static #o = false;
|
|
1788
1788
|
static create(e2) {
|
|
1789
1789
|
let t2 = j(e2);
|
|
1790
1790
|
if (!t2) return [];
|
|
1791
|
-
|
|
1792
|
-
let i = new
|
|
1793
|
-
return
|
|
1791
|
+
d.#o = true;
|
|
1792
|
+
let i = new d(e2, t2);
|
|
1793
|
+
return d.#o = false, i;
|
|
1794
1794
|
}
|
|
1795
1795
|
constructor(e2, t2) {
|
|
1796
|
-
if (!
|
|
1796
|
+
if (!d.#o) throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
1797
1797
|
this.heap = new t2(e2), this.length = 0;
|
|
1798
1798
|
}
|
|
1799
1799
|
push(e2) {
|
|
@@ -1803,14 +1803,14 @@ var R = class u {
|
|
|
1803
1803
|
return this.heap[--this.length];
|
|
1804
1804
|
}
|
|
1805
1805
|
};
|
|
1806
|
-
var
|
|
1806
|
+
var I = class d2 {
|
|
1807
1807
|
#o;
|
|
1808
|
-
#
|
|
1809
|
-
#w;
|
|
1810
|
-
#x;
|
|
1808
|
+
#c;
|
|
1811
1809
|
#S;
|
|
1810
|
+
#O;
|
|
1811
|
+
#w;
|
|
1812
1812
|
#M;
|
|
1813
|
-
#
|
|
1813
|
+
#I;
|
|
1814
1814
|
#m;
|
|
1815
1815
|
get perf() {
|
|
1816
1816
|
return this.#m;
|
|
@@ -1830,14 +1830,15 @@ var M = class u2 {
|
|
|
1830
1830
|
allowStaleOnFetchAbort;
|
|
1831
1831
|
allowStaleOnFetchRejection;
|
|
1832
1832
|
ignoreFetchAbort;
|
|
1833
|
+
backgroundFetchSize;
|
|
1833
1834
|
#n;
|
|
1834
1835
|
#b;
|
|
1835
1836
|
#s;
|
|
1836
1837
|
#i;
|
|
1837
1838
|
#t;
|
|
1838
|
-
#a;
|
|
1839
|
-
#c;
|
|
1840
1839
|
#l;
|
|
1840
|
+
#u;
|
|
1841
|
+
#a;
|
|
1841
1842
|
#h;
|
|
1842
1843
|
#y;
|
|
1843
1844
|
#r;
|
|
@@ -1846,12 +1847,12 @@ var M = class u2 {
|
|
|
1846
1847
|
#d;
|
|
1847
1848
|
#g;
|
|
1848
1849
|
#T;
|
|
1849
|
-
#
|
|
1850
|
+
#U;
|
|
1850
1851
|
#f;
|
|
1851
|
-
#
|
|
1852
|
+
#D;
|
|
1852
1853
|
static unsafeExposeInternals(e2) {
|
|
1853
|
-
return { starts: e2.#F, ttls: e2.#d, autopurgeTimers: e2.#g, sizes: e2.#_, keyMap: e2.#s, keyList: e2.#i, valList: e2.#t, next: e2.#
|
|
1854
|
-
return e2.#
|
|
1854
|
+
return { starts: e2.#F, ttls: e2.#d, autopurgeTimers: e2.#g, sizes: e2.#_, keyMap: e2.#s, keyList: e2.#i, valList: e2.#t, next: e2.#l, prev: e2.#u, get head() {
|
|
1855
|
+
return e2.#a;
|
|
1855
1856
|
}, get tail() {
|
|
1856
1857
|
return e2.#h;
|
|
1857
1858
|
}, free: e2.#y, isBackgroundFetch: (t2) => e2.#e(t2), backgroundFetch: (t2, i, s, n) => e2.#P(t2, i, s, n), moveToTail: (t2) => e2.#L(t2), indexes: (t2) => e2.#A(t2), rindexes: (t2) => e2.#z(t2), isStale: (t2) => e2.#p(t2) };
|
|
@@ -1860,7 +1861,7 @@ var M = class u2 {
|
|
|
1860
1861
|
return this.#o;
|
|
1861
1862
|
}
|
|
1862
1863
|
get maxSize() {
|
|
1863
|
-
return this.#
|
|
1864
|
+
return this.#c;
|
|
1864
1865
|
}
|
|
1865
1866
|
get calculatedSize() {
|
|
1866
1867
|
return this.#b;
|
|
@@ -1872,134 +1873,139 @@ var M = class u2 {
|
|
|
1872
1873
|
return this.#M;
|
|
1873
1874
|
}
|
|
1874
1875
|
get memoMethod() {
|
|
1875
|
-
return this.#
|
|
1876
|
+
return this.#I;
|
|
1876
1877
|
}
|
|
1877
1878
|
get dispose() {
|
|
1878
|
-
return this.#
|
|
1879
|
+
return this.#S;
|
|
1879
1880
|
}
|
|
1880
1881
|
get onInsert() {
|
|
1881
|
-
return this.#
|
|
1882
|
+
return this.#O;
|
|
1882
1883
|
}
|
|
1883
1884
|
get disposeAfter() {
|
|
1884
|
-
return this.#
|
|
1885
|
+
return this.#w;
|
|
1885
1886
|
}
|
|
1886
1887
|
constructor(e2) {
|
|
1887
|
-
let { max: t2 = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas:
|
|
1888
|
-
if (
|
|
1889
|
-
if (this.#m =
|
|
1888
|
+
let { max: t2 = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: l, allowStale: h, dispose: r, onInsert: c, disposeAfter: m, noDisposeOnSet: _, noUpdateTTL: u, maxSize: g = 0, maxEntrySize: f = 0, sizeCalculation: y, fetchMethod: a, memoMethod: w, noDeleteOnFetchRejection: F, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: p, allowStaleOnFetchAbort: A, ignoreFetchAbort: z2, backgroundFetchSize: C = 1, perf: E } = e2;
|
|
1889
|
+
if (this.backgroundFetchSize = C, E !== void 0 && typeof E?.now != "function") throw new TypeError("perf option must have a now() method if specified");
|
|
1890
|
+
if (this.#m = E ?? L, t2 !== 0 && !T(t2)) throw new TypeError("max option must be a nonnegative integer");
|
|
1890
1891
|
let v = t2 ? j(t2) : Array;
|
|
1891
1892
|
if (!v) throw new Error("invalid max value: " + t2);
|
|
1892
|
-
if (this.#o = t2, this.#
|
|
1893
|
-
if (!this.#
|
|
1893
|
+
if (this.#o = t2, this.#c = g, this.maxEntrySize = f || this.#c, this.sizeCalculation = y, this.sizeCalculation) {
|
|
1894
|
+
if (!this.#c && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
1894
1895
|
if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
|
|
1895
1896
|
}
|
|
1896
|
-
if (
|
|
1897
|
-
if (this.#
|
|
1898
|
-
if (this.#M = a, this.#
|
|
1899
|
-
if (this.#
|
|
1900
|
-
if (!
|
|
1897
|
+
if (w !== void 0 && typeof w != "function") throw new TypeError("memoMethod must be a function if defined");
|
|
1898
|
+
if (this.#I = w, a !== void 0 && typeof a != "function") throw new TypeError("fetchMethod must be a function if specified");
|
|
1899
|
+
if (this.#M = a, this.#U = !!a, this.#s = /* @__PURE__ */ new Map(), this.#i = Array.from({ length: t2 }).fill(void 0), this.#t = Array.from({ length: t2 }).fill(void 0), this.#l = new v(t2), this.#u = new v(t2), this.#a = 0, this.#h = 0, this.#y = x.create(t2), this.#n = 0, this.#b = 0, typeof r == "function" && (this.#S = r), typeof c == "function" && (this.#O = c), typeof m == "function" ? (this.#w = m, this.#r = []) : (this.#w = void 0, this.#r = void 0), this.#T = !!this.#S, this.#D = !!this.#O, this.#f = !!this.#w, this.noDisposeOnSet = !!_, this.noUpdateTTL = !!u, this.noDeleteOnFetchRejection = !!F, this.allowStaleOnFetchRejection = !!p, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!z2, this.maxEntrySize !== 0) {
|
|
1900
|
+
if (this.#c !== 0 && !T(this.#c)) throw new TypeError("maxSize must be a positive integer if specified");
|
|
1901
|
+
if (!T(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
1901
1902
|
this.#X();
|
|
1902
1903
|
}
|
|
1903
|
-
if (this.allowStale = !!h, this.noDeleteOnStaleGet = !!b, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!
|
|
1904
|
-
if (!
|
|
1905
|
-
this.#
|
|
1904
|
+
if (this.allowStale = !!h, this.noDeleteOnStaleGet = !!b, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!l, this.ttlResolution = T(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n, this.ttl = i || 0, this.ttl) {
|
|
1905
|
+
if (!T(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
|
|
1906
|
+
this.#k();
|
|
1906
1907
|
}
|
|
1907
|
-
if (this.#o === 0 && this.ttl === 0 && this.#
|
|
1908
|
-
if (!this.ttlAutopurge && !this.#o && !this.#
|
|
1909
|
-
let
|
|
1910
|
-
H(
|
|
1908
|
+
if (this.#o === 0 && this.ttl === 0 && this.#c === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
1909
|
+
if (!this.ttlAutopurge && !this.#o && !this.#c) {
|
|
1910
|
+
let D = "LRU_CACHE_UNBOUNDED";
|
|
1911
|
+
H(D) && (U.add(D), k("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", D, d2));
|
|
1911
1912
|
}
|
|
1912
1913
|
}
|
|
1913
1914
|
getRemainingTTL(e2) {
|
|
1914
1915
|
return this.#s.has(e2) ? 1 / 0 : 0;
|
|
1915
1916
|
}
|
|
1916
|
-
#
|
|
1917
|
+
#k() {
|
|
1917
1918
|
let e2 = new O(this.#o), t2 = new O(this.#o);
|
|
1918
1919
|
this.#d = e2, this.#F = t2;
|
|
1919
1920
|
let i = this.ttlAutopurge ? Array.from({ length: this.#o }) : void 0;
|
|
1920
|
-
this.#g = i, this.#
|
|
1921
|
-
t2[
|
|
1922
|
-
}, this.#
|
|
1923
|
-
t2[
|
|
1924
|
-
};
|
|
1925
|
-
let s = this.ttlAutopurge ? (
|
|
1926
|
-
if (i?.[
|
|
1927
|
-
let
|
|
1928
|
-
this.#p(
|
|
1929
|
-
},
|
|
1930
|
-
|
|
1921
|
+
this.#g = i, this.#H = (h, r, c = this.#m.now()) => {
|
|
1922
|
+
t2[h] = r !== 0 ? c : 0, e2[h] = r, s(h, r);
|
|
1923
|
+
}, this.#R = (h) => {
|
|
1924
|
+
t2[h] = e2[h] !== 0 ? this.#m.now() : 0, s(h, e2[h]);
|
|
1925
|
+
};
|
|
1926
|
+
let s = this.ttlAutopurge ? (h, r) => {
|
|
1927
|
+
if (i?.[h] && (clearTimeout(i[h]), i[h] = void 0), r && r !== 0 && i) {
|
|
1928
|
+
let c = setTimeout(() => {
|
|
1929
|
+
this.#p(h) ? (this.#E(this.#i[h], "expire"), i[h] = void 0) : s(h, l(h));
|
|
1930
|
+
}, r + 1);
|
|
1931
|
+
c.unref && c.unref(), i[h] = c;
|
|
1931
1932
|
}
|
|
1932
1933
|
} : () => {
|
|
1933
1934
|
};
|
|
1934
|
-
this.#
|
|
1935
|
-
if (e2[
|
|
1936
|
-
let
|
|
1937
|
-
if (!
|
|
1938
|
-
|
|
1939
|
-
let
|
|
1940
|
-
|
|
1935
|
+
this.#v = (h, r) => {
|
|
1936
|
+
if (e2[r]) {
|
|
1937
|
+
let c = e2[r], m = t2[r];
|
|
1938
|
+
if (!c || !m) return;
|
|
1939
|
+
h.ttl = c, h.start = m, h.now = n || o();
|
|
1940
|
+
let _ = h.now - m;
|
|
1941
|
+
h.remainingTTL = c - _;
|
|
1941
1942
|
}
|
|
1942
1943
|
};
|
|
1943
1944
|
let n = 0, o = () => {
|
|
1944
|
-
let
|
|
1945
|
+
let h = this.#m.now();
|
|
1945
1946
|
if (this.ttlResolution > 0) {
|
|
1946
|
-
n =
|
|
1947
|
-
let
|
|
1948
|
-
|
|
1947
|
+
n = h;
|
|
1948
|
+
let r = setTimeout(() => n = 0, this.ttlResolution);
|
|
1949
|
+
r.unref && r.unref();
|
|
1949
1950
|
}
|
|
1950
|
-
return
|
|
1951
|
+
return h;
|
|
1952
|
+
};
|
|
1953
|
+
this.getRemainingTTL = (h) => {
|
|
1954
|
+
let r = this.#s.get(h);
|
|
1955
|
+
return r === void 0 ? 0 : l(r);
|
|
1951
1956
|
};
|
|
1952
|
-
|
|
1953
|
-
let h =
|
|
1954
|
-
if (
|
|
1955
|
-
let
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
return !!l && !!h && (n || o()) - h > l;
|
|
1957
|
+
let l = (h) => {
|
|
1958
|
+
let r = e2[h], c = t2[h];
|
|
1959
|
+
if (!r || !c) return 1 / 0;
|
|
1960
|
+
let m = (n || o()) - c;
|
|
1961
|
+
return r - m;
|
|
1962
|
+
};
|
|
1963
|
+
this.#p = (h) => {
|
|
1964
|
+
let r = t2[h], c = e2[h];
|
|
1965
|
+
return !!c && !!r && (n || o()) - r > c;
|
|
1962
1966
|
};
|
|
1963
1967
|
}
|
|
1964
|
-
#
|
|
1968
|
+
#R = () => {
|
|
1965
1969
|
};
|
|
1966
|
-
#
|
|
1970
|
+
#v = () => {
|
|
1967
1971
|
};
|
|
1968
|
-
#
|
|
1972
|
+
#H = () => {
|
|
1969
1973
|
};
|
|
1970
1974
|
#p = () => false;
|
|
1971
1975
|
#X() {
|
|
1972
1976
|
let e2 = new O(this.#o);
|
|
1973
|
-
this.#b = 0, this.#_ = e2, this.#
|
|
1977
|
+
this.#b = 0, this.#_ = e2, this.#x = (t2) => {
|
|
1974
1978
|
this.#b -= e2[t2], e2[t2] = 0;
|
|
1975
|
-
}, this.#
|
|
1976
|
-
if (
|
|
1977
|
-
|
|
1978
|
-
if (
|
|
1979
|
-
|
|
1980
|
-
|
|
1979
|
+
}, this.#N = (t2, i, s, n) => {
|
|
1980
|
+
if (!T(s)) {
|
|
1981
|
+
if (this.#e(i)) return this.backgroundFetchSize;
|
|
1982
|
+
if (n) {
|
|
1983
|
+
if (typeof n != "function") throw new TypeError("sizeCalculation must be a function");
|
|
1984
|
+
if (s = n(i, t2), !T(s)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
1985
|
+
} else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
1986
|
+
}
|
|
1981
1987
|
return s;
|
|
1982
|
-
}, this.#
|
|
1983
|
-
if (e2[t2] = i, this.#
|
|
1984
|
-
let n = this.#
|
|
1988
|
+
}, this.#j = (t2, i, s) => {
|
|
1989
|
+
if (e2[t2] = i, this.#c) {
|
|
1990
|
+
let n = this.#c - e2[t2];
|
|
1985
1991
|
for (; this.#b > n; ) this.#G(true);
|
|
1986
1992
|
}
|
|
1987
1993
|
this.#b += e2[t2], s && (s.entrySize = i, s.totalCalculatedSize = this.#b);
|
|
1988
1994
|
};
|
|
1989
1995
|
}
|
|
1990
|
-
#
|
|
1996
|
+
#x = (e2) => {
|
|
1991
1997
|
};
|
|
1992
|
-
#
|
|
1998
|
+
#j = (e2, t2, i) => {
|
|
1993
1999
|
};
|
|
1994
|
-
#
|
|
2000
|
+
#N = (e2, t2, i, s) => {
|
|
1995
2001
|
if (i || s) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
1996
2002
|
return 0;
|
|
1997
2003
|
};
|
|
1998
2004
|
*#A({ allowStale: e2 = this.allowStale } = {}) {
|
|
1999
|
-
if (this.#n) for (let t2 = this.#h; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#
|
|
2005
|
+
if (this.#n) for (let t2 = this.#h; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#a); ) t2 = this.#u[t2];
|
|
2000
2006
|
}
|
|
2001
2007
|
*#z({ allowStale: e2 = this.allowStale } = {}) {
|
|
2002
|
-
if (this.#n) for (let t2 = this.#
|
|
2008
|
+
if (this.#n) for (let t2 = this.#a; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#h); ) t2 = this.#l[t2];
|
|
2003
2009
|
}
|
|
2004
2010
|
#V(e2) {
|
|
2005
2011
|
return e2 !== void 0 && this.#s.get(this.#i[e2]) === e2;
|
|
@@ -2052,7 +2058,7 @@ var M = class u2 {
|
|
|
2052
2058
|
}
|
|
2053
2059
|
purgeStale() {
|
|
2054
2060
|
let e2 = false;
|
|
2055
|
-
for (let t2 of this.#z({ allowStale: true })) this.#p(t2) && (this.#
|
|
2061
|
+
for (let t2 of this.#z({ allowStale: true })) this.#p(t2) && (this.#E(this.#i[t2], "expire"), e2 = true);
|
|
2056
2062
|
return e2;
|
|
2057
2063
|
}
|
|
2058
2064
|
info(e2) {
|
|
@@ -2062,9 +2068,9 @@ var M = class u2 {
|
|
|
2062
2068
|
if (s === void 0) return;
|
|
2063
2069
|
let n = { value: s };
|
|
2064
2070
|
if (this.#d && this.#F) {
|
|
2065
|
-
let o = this.#d[t2],
|
|
2066
|
-
if (o &&
|
|
2067
|
-
let h = o - (this.#m.now() -
|
|
2071
|
+
let o = this.#d[t2], l = this.#F[t2];
|
|
2072
|
+
if (o && l) {
|
|
2073
|
+
let h = o - (this.#m.now() - l);
|
|
2068
2074
|
n.ttl = h, n.start = Date.now();
|
|
2069
2075
|
}
|
|
2070
2076
|
}
|
|
@@ -2078,8 +2084,8 @@ var M = class u2 {
|
|
|
2078
2084
|
let o = { value: n };
|
|
2079
2085
|
if (this.#d && this.#F) {
|
|
2080
2086
|
o.ttl = this.#d[t2];
|
|
2081
|
-
let
|
|
2082
|
-
o.start = Math.floor(Date.now() -
|
|
2087
|
+
let l = this.#m.now() - this.#F[t2];
|
|
2088
|
+
o.start = Math.floor(Date.now() - l);
|
|
2083
2089
|
}
|
|
2084
2090
|
this.#_ && (o.size = this.#_[t2]), e2.unshift([i, o]);
|
|
2085
2091
|
}
|
|
@@ -2092,51 +2098,49 @@ var M = class u2 {
|
|
|
2092
2098
|
let s = Date.now() - i.start;
|
|
2093
2099
|
i.start = this.#m.now() - s;
|
|
2094
2100
|
}
|
|
2095
|
-
this.#
|
|
2101
|
+
this.#W(t2, i.value, i);
|
|
2096
2102
|
}
|
|
2097
2103
|
}
|
|
2098
2104
|
set(e2, t2, i = {}) {
|
|
2099
2105
|
let { status: s = S.hasSubscribers ? {} : void 0 } = i;
|
|
2100
|
-
i.status = s, s && (s.op = "set", s.key = e2, t2 !== void 0 && (s.value = t2));
|
|
2101
|
-
let n = this.#
|
|
2106
|
+
i.status = s, s && (s.op = "set", s.key = e2, t2 !== void 0 && (s.value = t2), s.cache = this);
|
|
2107
|
+
let n = this.#W(e2, t2, i);
|
|
2102
2108
|
return s && S.hasSubscribers && S.publish(s), n;
|
|
2103
2109
|
}
|
|
2104
|
-
#
|
|
2105
|
-
let { ttl:
|
|
2106
|
-
if (t2 === void 0) return
|
|
2107
|
-
let { noUpdateTTL:
|
|
2108
|
-
|
|
2109
|
-
let
|
|
2110
|
-
if (this.maxEntrySize &&
|
|
2111
|
-
let
|
|
2112
|
-
if (
|
|
2110
|
+
#W(e2, t2, i, s) {
|
|
2111
|
+
let { ttl: n = this.ttl, start: o, noDisposeOnSet: l = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: r } = i, c = this.#e(t2);
|
|
2112
|
+
if (t2 === void 0) return r && (r.set = "deleted"), this.delete(e2), this;
|
|
2113
|
+
let { noUpdateTTL: m = this.noUpdateTTL } = i;
|
|
2114
|
+
r && !c && (r.value = t2);
|
|
2115
|
+
let _ = this.#N(e2, t2, i.size || 0, h, r);
|
|
2116
|
+
if (this.maxEntrySize && _ > this.maxEntrySize) return this.#E(e2, "set"), r && (r.set = "miss", r.maxEntrySizeExceeded = true), this;
|
|
2117
|
+
let u = this.#n === 0 ? void 0 : this.#s.get(e2);
|
|
2118
|
+
if (u === void 0) u = this.#n === 0 ? this.#h : this.#y.length !== 0 ? this.#y.pop() : this.#n === this.#o ? this.#G(false) : this.#n, this.#i[u] = e2, this.#t[u] = t2, this.#s.set(e2, u), this.#l[this.#h] = u, this.#u[u] = this.#h, this.#h = u, this.#n++, this.#j(u, _, r), r && (r.set = "add"), m = false, this.#D && !c && this.#O?.(t2, e2, "add");
|
|
2113
2119
|
else {
|
|
2114
|
-
this.#L(
|
|
2115
|
-
let g = this.#t[
|
|
2120
|
+
this.#L(u);
|
|
2121
|
+
let g = this.#t[u];
|
|
2116
2122
|
if (t2 !== g) {
|
|
2117
|
-
if (
|
|
2118
|
-
g.__abortController.abort(new Error("replaced"));
|
|
2119
|
-
let { __staleWhileFetching:
|
|
2120
|
-
|
|
2121
|
-
} else
|
|
2122
|
-
if (this.#
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
let g = this.#r, p;
|
|
2132
|
-
for (; p = g?.shift(); ) this.#S?.(...p);
|
|
2123
|
+
if (!l) if (this.#e(g)) {
|
|
2124
|
+
g !== s && g.__abortController.abort(new Error("replaced"));
|
|
2125
|
+
let { __staleWhileFetching: f } = g;
|
|
2126
|
+
f !== void 0 && f !== t2 && (this.#T && this.#S?.(f, e2, "set"), this.#f && this.#r?.push([f, e2, "set"]));
|
|
2127
|
+
} else this.#T && this.#S?.(g, e2, "set"), this.#f && this.#r?.push([g, e2, "set"]);
|
|
2128
|
+
if (this.#x(u), this.#j(u, _, r), this.#t[u] = t2, !c) {
|
|
2129
|
+
let f = g && this.#e(g) ? g.__staleWhileFetching : g, y = f === void 0 ? "add" : t2 !== f ? "replace" : "update";
|
|
2130
|
+
r && (r.set = y, f !== void 0 && (r.oldValue = f)), this.#D && this.onInsert?.(t2, e2, y);
|
|
2131
|
+
}
|
|
2132
|
+
} else c || (r && (r.set = "update"), this.#D && this.onInsert?.(t2, e2, "update"));
|
|
2133
|
+
}
|
|
2134
|
+
if (n !== 0 && !this.#d && this.#k(), this.#d && (m || this.#H(u, n, o), r && this.#v(r, u)), !l && this.#f && this.#r) {
|
|
2135
|
+
let g = this.#r, f;
|
|
2136
|
+
for (; f = g?.shift(); ) this.#w?.(...f);
|
|
2133
2137
|
}
|
|
2134
2138
|
return this;
|
|
2135
2139
|
}
|
|
2136
2140
|
pop() {
|
|
2137
2141
|
try {
|
|
2138
2142
|
for (; this.#n; ) {
|
|
2139
|
-
let e2 = this.#t[this.#
|
|
2143
|
+
let e2 = this.#t[this.#a];
|
|
2140
2144
|
if (this.#G(true), this.#e(e2)) {
|
|
2141
2145
|
if (e2.__staleWhileFetching) return e2.__staleWhileFetching;
|
|
2142
2146
|
} else if (e2 !== void 0) return e2;
|
|
@@ -2144,17 +2148,19 @@ var M = class u2 {
|
|
|
2144
2148
|
} finally {
|
|
2145
2149
|
if (this.#f && this.#r) {
|
|
2146
2150
|
let e2 = this.#r, t2;
|
|
2147
|
-
for (; t2 = e2?.shift(); ) this.#
|
|
2151
|
+
for (; t2 = e2?.shift(); ) this.#w?.(...t2);
|
|
2148
2152
|
}
|
|
2149
2153
|
}
|
|
2150
2154
|
}
|
|
2151
2155
|
#G(e2) {
|
|
2152
|
-
let t2 = this.#
|
|
2153
|
-
|
|
2156
|
+
let t2 = this.#a, i = this.#i[t2], s = this.#t[t2], n = this.#e(s);
|
|
2157
|
+
n && s.__abortController.abort(new Error("evicted"));
|
|
2158
|
+
let o = n ? s.__staleWhileFetching : s;
|
|
2159
|
+
return (this.#T || this.#f) && o !== void 0 && (this.#T && this.#S?.(o, i, "evict"), this.#f && this.#r?.push([o, i, "evict"])), this.#x(t2), this.#g?.[t2] && (clearTimeout(this.#g[t2]), this.#g[t2] = void 0), e2 && (this.#i[t2] = void 0, this.#t[t2] = void 0, this.#y.push(t2)), this.#n === 1 ? (this.#a = this.#h = 0, this.#y.length = 0) : this.#a = this.#l[t2], this.#s.delete(i), this.#n--, t2;
|
|
2154
2160
|
}
|
|
2155
2161
|
has(e2, t2 = {}) {
|
|
2156
2162
|
let { status: i = S.hasSubscribers ? {} : void 0 } = t2;
|
|
2157
|
-
t2.status = i, i && (i.op = "has", i.key = e2);
|
|
2163
|
+
t2.status = i, i && (i.op = "has", i.key = e2, i.cache = this);
|
|
2158
2164
|
let s = this.#Y(e2, t2);
|
|
2159
2165
|
return S.hasSubscribers && S.publish(i), s;
|
|
2160
2166
|
}
|
|
@@ -2163,14 +2169,14 @@ var M = class u2 {
|
|
|
2163
2169
|
if (n !== void 0) {
|
|
2164
2170
|
let o = this.#t[n];
|
|
2165
2171
|
if (this.#e(o) && o.__staleWhileFetching === void 0) return false;
|
|
2166
|
-
if (this.#p(n)) s && (s.has = "stale", this.#
|
|
2167
|
-
else return i && this.#
|
|
2172
|
+
if (this.#p(n)) s && (s.has = "stale", this.#v(s, n));
|
|
2173
|
+
else return i && this.#R(n), s && (s.has = "hit", this.#v(s, n)), true;
|
|
2168
2174
|
} else s && (s.has = "miss");
|
|
2169
2175
|
return false;
|
|
2170
2176
|
}
|
|
2171
2177
|
peek(e2, t2 = {}) {
|
|
2172
|
-
let { status: i =
|
|
2173
|
-
i && (i.op = "peek", i.key = e2), t2.status = i;
|
|
2178
|
+
let { status: i = R() ? {} : void 0 } = t2;
|
|
2179
|
+
i && (i.op = "peek", i.key = e2, i.cache = this), t2.status = i;
|
|
2174
2180
|
let s = this.#J(e2, t2);
|
|
2175
2181
|
return S.hasSubscribers && S.publish(i), s;
|
|
2176
2182
|
}
|
|
@@ -2180,67 +2186,67 @@ var M = class u2 {
|
|
|
2180
2186
|
i && (i.peek = n === void 0 ? "miss" : "stale");
|
|
2181
2187
|
return;
|
|
2182
2188
|
}
|
|
2183
|
-
let o = this.#t[n],
|
|
2184
|
-
return i && (
|
|
2189
|
+
let o = this.#t[n], l = this.#e(o) ? o.__staleWhileFetching : o;
|
|
2190
|
+
return i && (l !== void 0 ? (i.peek = "hit", i.value = l) : i.peek = "miss"), l;
|
|
2185
2191
|
}
|
|
2186
2192
|
#P(e2, t2, i, s) {
|
|
2187
2193
|
let n = t2 === void 0 ? void 0 : this.#t[t2];
|
|
2188
2194
|
if (this.#e(n)) return n;
|
|
2189
|
-
let o = new AbortController(), { signal:
|
|
2190
|
-
|
|
2191
|
-
let h = { signal: o.signal, options: i, context: s },
|
|
2192
|
-
let { aborted: a } = o.signal,
|
|
2193
|
-
if (i.status && (a && !y ? (i.status.fetchAborted = true, i.status.fetchError = o.signal.reason,
|
|
2194
|
-
let b =
|
|
2195
|
-
return (
|
|
2196
|
-
}, c = (
|
|
2197
|
-
let { aborted: a } = o.signal,
|
|
2198
|
-
if (this.#t[t2] ===
|
|
2199
|
-
if (
|
|
2200
|
-
},
|
|
2195
|
+
let o = new AbortController(), { signal: l } = i;
|
|
2196
|
+
l?.addEventListener("abort", () => o.abort(l.reason), { signal: o.signal });
|
|
2197
|
+
let h = { signal: o.signal, options: i, context: s }, r = (f, y = false) => {
|
|
2198
|
+
let { aborted: a } = o.signal, w = i.ignoreFetchAbort && f !== void 0, F = i.ignoreFetchAbort || !!(i.allowStaleOnFetchAbort && f !== void 0);
|
|
2199
|
+
if (i.status && (a && !y ? (i.status.fetchAborted = true, i.status.fetchError = o.signal.reason, w && (i.status.fetchAbortIgnored = true)) : i.status.fetchResolved = true), a && !w && !y) return m(o.signal.reason, F);
|
|
2200
|
+
let b = u, p = this.#t[t2];
|
|
2201
|
+
return (p === u || p === void 0 && w && y) && (f === void 0 ? b.__staleWhileFetching !== void 0 ? this.#t[t2] = b.__staleWhileFetching : this.#E(e2, "fetch") : (i.status && (i.status.fetchUpdated = true), this.#W(e2, f, h.options, b))), f;
|
|
2202
|
+
}, c = (f) => (i.status && (i.status.fetchRejected = true, i.status.fetchError = f), m(f, false)), m = (f, y) => {
|
|
2203
|
+
let { aborted: a } = o.signal, w = a && i.allowStaleOnFetchAbort, F = w || i.allowStaleOnFetchRejection, b = F || i.noDeleteOnFetchRejection, p = u;
|
|
2204
|
+
if (this.#t[t2] === u && (!b || !y && p.__staleWhileFetching === void 0 ? this.#E(e2, "fetch") : w || (this.#t[t2] = p.__staleWhileFetching)), F) return i.status && p.__staleWhileFetching !== void 0 && (i.status.returnedStale = true), p.__staleWhileFetching;
|
|
2205
|
+
if (p.__returned === p) throw f;
|
|
2206
|
+
}, _ = (f, y) => {
|
|
2201
2207
|
let a = this.#M?.(e2, n, h);
|
|
2202
|
-
|
|
2203
|
-
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (
|
|
2204
|
-
});
|
|
2208
|
+
o.signal.addEventListener("abort", () => {
|
|
2209
|
+
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (f(void 0), i.allowStaleOnFetchAbort && (f = (w) => r(w, true)));
|
|
2210
|
+
}), a && a instanceof Promise ? a.then((w) => f(w === void 0 ? void 0 : w), y) : a !== void 0 && f(a);
|
|
2205
2211
|
};
|
|
2206
2212
|
i.status && (i.status.fetchDispatched = true);
|
|
2207
|
-
let
|
|
2208
|
-
return t2 === void 0 ? (this.#
|
|
2213
|
+
let u = new Promise(_).then(r, c), g = Object.assign(u, { __abortController: o, __staleWhileFetching: n, __returned: void 0 });
|
|
2214
|
+
return t2 === void 0 ? (this.#W(e2, g, { ...h.options, status: void 0 }), t2 = this.#s.get(e2)) : this.#t[t2] = g, g;
|
|
2209
2215
|
}
|
|
2210
2216
|
#e(e2) {
|
|
2211
|
-
if (!this.#
|
|
2217
|
+
if (!this.#U) return false;
|
|
2212
2218
|
let t2 = e2;
|
|
2213
2219
|
return !!t2 && t2 instanceof Promise && t2.hasOwnProperty("__staleWhileFetching") && t2.__abortController instanceof AbortController;
|
|
2214
2220
|
}
|
|
2215
2221
|
fetch(e2, t2 = {}) {
|
|
2216
|
-
let i = W.hasSubscribers, { status: s =
|
|
2222
|
+
let i = W.hasSubscribers, { status: s = R() ? {} : void 0 } = t2;
|
|
2217
2223
|
t2.status = s, s && t2.context && (s.context = t2.context);
|
|
2218
2224
|
let n = this.#B(e2, t2);
|
|
2219
2225
|
return s && i && (s.trace = true, W.tracePromise(() => n, s).catch(() => {
|
|
2220
2226
|
})), n;
|
|
2221
2227
|
}
|
|
2222
2228
|
async #B(e2, t2 = {}) {
|
|
2223
|
-
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet:
|
|
2224
|
-
if (a && (a.op = "fetch", a.key = e2, y && (a.forceRefresh = true)), !this.#
|
|
2225
|
-
let
|
|
2229
|
+
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: l = this.noDisposeOnSet, size: h = 0, sizeCalculation: r = this.sizeCalculation, noUpdateTTL: c = this.noUpdateTTL, noDeleteOnFetchRejection: m = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: _ = this.allowStaleOnFetchRejection, ignoreFetchAbort: u = this.ignoreFetchAbort, allowStaleOnFetchAbort: g = this.allowStaleOnFetchAbort, context: f, forceRefresh: y = false, status: a, signal: w } = t2;
|
|
2230
|
+
if (a && (a.op = "fetch", a.key = e2, y && (a.forceRefresh = true), a.cache = this), !this.#U) return a && (a.fetch = "get"), this.#C(e2, { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, status: a });
|
|
2231
|
+
let F = { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, ttl: o, noDisposeOnSet: l, size: h, sizeCalculation: r, noUpdateTTL: c, noDeleteOnFetchRejection: m, allowStaleOnFetchRejection: _, allowStaleOnFetchAbort: g, ignoreFetchAbort: u, status: a, signal: w }, b = this.#s.get(e2);
|
|
2226
2232
|
if (b === void 0) {
|
|
2227
2233
|
a && (a.fetch = "miss");
|
|
2228
|
-
let
|
|
2229
|
-
return
|
|
2234
|
+
let p = this.#P(e2, b, F, f);
|
|
2235
|
+
return p.__returned = p;
|
|
2230
2236
|
} else {
|
|
2231
|
-
let
|
|
2232
|
-
if (this.#e(
|
|
2233
|
-
let
|
|
2234
|
-
return a && (a.fetch = "inflight",
|
|
2237
|
+
let p = this.#t[b];
|
|
2238
|
+
if (this.#e(p)) {
|
|
2239
|
+
let v = i && p.__staleWhileFetching !== void 0;
|
|
2240
|
+
return a && (a.fetch = "inflight", v && (a.returnedStale = true)), v ? p.__staleWhileFetching : p.__returned = p;
|
|
2235
2241
|
}
|
|
2236
2242
|
let A = this.#p(b);
|
|
2237
|
-
if (!y && !A) return a && (a.fetch = "hit"), this.#L(b), s && this.#
|
|
2238
|
-
let z2 = this.#P(e2, b,
|
|
2239
|
-
return a && (a.fetch = A ? "stale" : "refresh",
|
|
2243
|
+
if (!y && !A) return a && (a.fetch = "hit"), this.#L(b), s && this.#R(b), a && this.#v(a, b), p;
|
|
2244
|
+
let z2 = this.#P(e2, b, F, f), E = z2.__staleWhileFetching !== void 0 && i;
|
|
2245
|
+
return a && (a.fetch = A ? "stale" : "refresh", E && A && (a.returnedStale = true)), E ? z2.__staleWhileFetching : z2.__returned = z2;
|
|
2240
2246
|
}
|
|
2241
2247
|
}
|
|
2242
2248
|
forceFetch(e2, t2 = {}) {
|
|
2243
|
-
let i = W.hasSubscribers, { status: s =
|
|
2249
|
+
let i = W.hasSubscribers, { status: s = R() ? {} : void 0 } = t2;
|
|
2244
2250
|
t2.status = s, s && t2.context && (s.context = t2.context);
|
|
2245
2251
|
let n = this.#K(e2, t2);
|
|
2246
2252
|
return s && i && (s.trace = true, W.tracePromise(() => n, s).catch(() => {
|
|
@@ -2253,67 +2259,67 @@ var M = class u2 {
|
|
|
2253
2259
|
}
|
|
2254
2260
|
memo(e2, t2 = {}) {
|
|
2255
2261
|
let { status: i = S.hasSubscribers ? {} : void 0 } = t2;
|
|
2256
|
-
t2.status = i, i && (i.op = "memo", i.key = e2, t2.context && (i.context = t2.context));
|
|
2262
|
+
t2.status = i, i && (i.op = "memo", i.key = e2, t2.context && (i.context = t2.context), i.cache = this);
|
|
2257
2263
|
let s = this.#Q(e2, t2);
|
|
2258
2264
|
return i && (i.value = s), S.hasSubscribers && S.publish(i), s;
|
|
2259
2265
|
}
|
|
2260
2266
|
#Q(e2, t2 = {}) {
|
|
2261
|
-
let i = this.#
|
|
2267
|
+
let i = this.#I;
|
|
2262
2268
|
if (!i) throw new Error("no memoMethod provided to constructor");
|
|
2263
|
-
let { context: s, status: n, forceRefresh: o, ...
|
|
2269
|
+
let { context: s, status: n, forceRefresh: o, ...l } = t2;
|
|
2264
2270
|
n && o && (n.forceRefresh = true);
|
|
2265
|
-
let h = this.#C(e2,
|
|
2266
|
-
if (n && (n.memo =
|
|
2267
|
-
let c = i(e2, h, { options:
|
|
2268
|
-
return n && (n.value = c), this.#
|
|
2271
|
+
let h = this.#C(e2, l), r = o || h === void 0;
|
|
2272
|
+
if (n && (n.memo = r ? "miss" : "hit", r || (n.value = h)), !r) return h;
|
|
2273
|
+
let c = i(e2, h, { options: l, context: s });
|
|
2274
|
+
return n && (n.value = c), this.#W(e2, c, l), c;
|
|
2269
2275
|
}
|
|
2270
2276
|
get(e2, t2 = {}) {
|
|
2271
2277
|
let { status: i = S.hasSubscribers ? {} : void 0 } = t2;
|
|
2272
|
-
t2.status = i, i && (i.op = "get", i.key = e2);
|
|
2278
|
+
t2.status = i, i && (i.op = "get", i.key = e2, i.cache = this);
|
|
2273
2279
|
let s = this.#C(e2, t2);
|
|
2274
2280
|
return i && (s !== void 0 && (i.value = s), S.hasSubscribers && S.publish(i)), s;
|
|
2275
2281
|
}
|
|
2276
2282
|
#C(e2, t2 = {}) {
|
|
2277
|
-
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = t2,
|
|
2278
|
-
if (
|
|
2283
|
+
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = t2, l = this.#s.get(e2);
|
|
2284
|
+
if (l === void 0) {
|
|
2279
2285
|
o && (o.get = "miss");
|
|
2280
2286
|
return;
|
|
2281
2287
|
}
|
|
2282
|
-
let h = this.#t[
|
|
2283
|
-
return o && this.#
|
|
2288
|
+
let h = this.#t[l], r = this.#e(h);
|
|
2289
|
+
return o && this.#v(o, l), this.#p(l) ? r ? (o && (o.get = "stale-fetching"), i && h.__staleWhileFetching !== void 0 ? (o && (o.returnedStale = true), h.__staleWhileFetching) : void 0) : (n || this.#E(e2, "expire"), o && (o.get = "stale"), i ? (o && (o.returnedStale = true), h) : void 0) : (o && (o.get = r ? "fetching" : "hit"), this.#L(l), s && this.#R(l), r ? h.__staleWhileFetching : h);
|
|
2284
2290
|
}
|
|
2285
2291
|
#$(e2, t2) {
|
|
2286
|
-
this.#
|
|
2292
|
+
this.#u[t2] = e2, this.#l[e2] = t2;
|
|
2287
2293
|
}
|
|
2288
2294
|
#L(e2) {
|
|
2289
|
-
e2 !== this.#h && (e2 === this.#
|
|
2295
|
+
e2 !== this.#h && (e2 === this.#a ? this.#a = this.#l[e2] : this.#$(this.#u[e2], this.#l[e2]), this.#$(this.#h, e2), this.#h = e2);
|
|
2290
2296
|
}
|
|
2291
2297
|
delete(e2) {
|
|
2292
|
-
return this.#
|
|
2298
|
+
return this.#E(e2, "delete");
|
|
2293
2299
|
}
|
|
2294
|
-
#
|
|
2295
|
-
S.hasSubscribers && S.publish({ op: "delete", delete: t2, key: e2 });
|
|
2300
|
+
#E(e2, t2) {
|
|
2301
|
+
S.hasSubscribers && S.publish({ op: "delete", delete: t2, key: e2, cache: this });
|
|
2296
2302
|
let i = false;
|
|
2297
2303
|
if (this.#n !== 0) {
|
|
2298
2304
|
let s = this.#s.get(e2);
|
|
2299
|
-
if (s !== void 0) if (this.#g?.[s] && (clearTimeout(this.#g
|
|
2305
|
+
if (s !== void 0) if (this.#g?.[s] && (clearTimeout(this.#g[s]), this.#g[s] = void 0), i = true, this.#n === 1) this.#q(t2);
|
|
2300
2306
|
else {
|
|
2301
|
-
this.#
|
|
2307
|
+
this.#x(s);
|
|
2302
2308
|
let n = this.#t[s];
|
|
2303
|
-
if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#
|
|
2304
|
-
else if (s === this.#
|
|
2309
|
+
if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#S?.(n, e2, t2), this.#f && this.#r?.push([n, e2, t2])), this.#s.delete(e2), this.#i[s] = void 0, this.#t[s] = void 0, s === this.#h) this.#h = this.#u[s];
|
|
2310
|
+
else if (s === this.#a) this.#a = this.#l[s];
|
|
2305
2311
|
else {
|
|
2306
|
-
let o = this.#
|
|
2307
|
-
this.#
|
|
2308
|
-
let
|
|
2309
|
-
this.#
|
|
2312
|
+
let o = this.#u[s];
|
|
2313
|
+
this.#l[o] = this.#l[s];
|
|
2314
|
+
let l = this.#l[s];
|
|
2315
|
+
this.#u[l] = this.#u[s];
|
|
2310
2316
|
}
|
|
2311
2317
|
this.#n--, this.#y.push(s);
|
|
2312
2318
|
}
|
|
2313
2319
|
}
|
|
2314
2320
|
if (this.#f && this.#r?.length) {
|
|
2315
2321
|
let s = this.#r, n;
|
|
2316
|
-
for (; n = s?.shift(); ) this.#
|
|
2322
|
+
for (; n = s?.shift(); ) this.#w?.(...n);
|
|
2317
2323
|
}
|
|
2318
2324
|
return i;
|
|
2319
2325
|
}
|
|
@@ -2326,7 +2332,7 @@ var M = class u2 {
|
|
|
2326
2332
|
if (this.#e(i)) i.__abortController.abort(new Error("deleted"));
|
|
2327
2333
|
else {
|
|
2328
2334
|
let s = this.#i[t2];
|
|
2329
|
-
this.#T && this.#
|
|
2335
|
+
this.#T && this.#S?.(i, s, e2), this.#f && this.#r?.push([i, s, e2]);
|
|
2330
2336
|
}
|
|
2331
2337
|
}
|
|
2332
2338
|
if (this.#s.clear(), this.#t.fill(void 0), this.#i.fill(void 0), this.#d && this.#F) {
|
|
@@ -2334,14 +2340,14 @@ var M = class u2 {
|
|
|
2334
2340
|
for (let t2 of this.#g ?? []) t2 !== void 0 && clearTimeout(t2);
|
|
2335
2341
|
this.#g?.fill(void 0);
|
|
2336
2342
|
}
|
|
2337
|
-
if (this.#_ && this.#_.fill(0), this.#
|
|
2343
|
+
if (this.#_ && this.#_.fill(0), this.#a = 0, this.#h = 0, this.#y.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
|
|
2338
2344
|
let t2 = this.#r, i;
|
|
2339
|
-
for (; i = t2?.shift(); ) this.#
|
|
2345
|
+
for (; i = t2?.shift(); ) this.#w?.(...i);
|
|
2340
2346
|
}
|
|
2341
2347
|
}
|
|
2342
2348
|
};
|
|
2343
2349
|
|
|
2344
|
-
// ../memory/dist/chunk-
|
|
2350
|
+
// ../memory/dist/chunk-6ACCFKAN.js
|
|
2345
2351
|
var import_image_size = chunkO7I5CWRX_cjs.__toESM(require_dist(), 1);
|
|
2346
2352
|
var MINUTE = 6e4;
|
|
2347
2353
|
var HOUR = 60 * MINUTE;
|
|
@@ -7808,7 +7814,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
7808
7814
|
...refs,
|
|
7809
7815
|
currentPath: [...refs.currentPath, "allOf", "1"]
|
|
7810
7816
|
})
|
|
7811
|
-
].filter((
|
|
7817
|
+
].filter((x2) => !!x2);
|
|
7812
7818
|
let unevaluatedProperties = refs.target === "jsonSchema2019-09" ? { unevaluatedProperties: false } : void 0;
|
|
7813
7819
|
const mergedAllOf = [];
|
|
7814
7820
|
allOf.forEach((schema) => {
|
|
@@ -8037,7 +8043,7 @@ function escapeNonAlphaNumeric(source) {
|
|
|
8037
8043
|
return result;
|
|
8038
8044
|
}
|
|
8039
8045
|
function addFormat(schema, value, message, refs) {
|
|
8040
|
-
if (schema.format || schema.anyOf?.some((
|
|
8046
|
+
if (schema.format || schema.anyOf?.some((x2) => x2.format)) {
|
|
8041
8047
|
if (!schema.anyOf) {
|
|
8042
8048
|
schema.anyOf = [];
|
|
8043
8049
|
}
|
|
@@ -8065,7 +8071,7 @@ function addFormat(schema, value, message, refs) {
|
|
|
8065
8071
|
}
|
|
8066
8072
|
}
|
|
8067
8073
|
function addPattern(schema, regex, message, refs) {
|
|
8068
|
-
if (schema.pattern || schema.allOf?.some((
|
|
8074
|
+
if (schema.pattern || schema.allOf?.some((x2) => x2.pattern)) {
|
|
8069
8075
|
if (!schema.allOf) {
|
|
8070
8076
|
schema.allOf = [];
|
|
8071
8077
|
}
|
|
@@ -8273,17 +8279,17 @@ function parseUnionDef(def, refs) {
|
|
|
8273
8279
|
if (refs.target === "openApi3")
|
|
8274
8280
|
return asAnyOf(def, refs);
|
|
8275
8281
|
const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
|
|
8276
|
-
if (options.every((
|
|
8277
|
-
const types = options.reduce((types2,
|
|
8278
|
-
const type = primitiveMappings[
|
|
8282
|
+
if (options.every((x2) => x2._def.typeName in primitiveMappings && (!x2._def.checks || !x2._def.checks.length))) {
|
|
8283
|
+
const types = options.reduce((types2, x2) => {
|
|
8284
|
+
const type = primitiveMappings[x2._def.typeName];
|
|
8279
8285
|
return type && !types2.includes(type) ? [...types2, type] : types2;
|
|
8280
8286
|
}, []);
|
|
8281
8287
|
return {
|
|
8282
8288
|
type: types.length > 1 ? types : types[0]
|
|
8283
8289
|
};
|
|
8284
|
-
} else if (options.every((
|
|
8285
|
-
const types = options.reduce((acc,
|
|
8286
|
-
const type = typeof
|
|
8290
|
+
} else if (options.every((x2) => x2._def.typeName === "ZodLiteral" && !x2.description)) {
|
|
8291
|
+
const types = options.reduce((acc, x2) => {
|
|
8292
|
+
const type = typeof x2._def.value;
|
|
8287
8293
|
switch (type) {
|
|
8288
8294
|
case "string":
|
|
8289
8295
|
case "number":
|
|
@@ -8292,7 +8298,7 @@ function parseUnionDef(def, refs) {
|
|
|
8292
8298
|
case "bigint":
|
|
8293
8299
|
return [...acc, "integer"];
|
|
8294
8300
|
case "object":
|
|
8295
|
-
if (
|
|
8301
|
+
if (x2._def.value === null)
|
|
8296
8302
|
return [...acc, "null"];
|
|
8297
8303
|
case "symbol":
|
|
8298
8304
|
case "undefined":
|
|
@@ -8302,30 +8308,30 @@ function parseUnionDef(def, refs) {
|
|
|
8302
8308
|
}
|
|
8303
8309
|
}, []);
|
|
8304
8310
|
if (types.length === options.length) {
|
|
8305
|
-
const uniqueTypes = types.filter((
|
|
8311
|
+
const uniqueTypes = types.filter((x2, i, a) => a.indexOf(x2) === i);
|
|
8306
8312
|
return {
|
|
8307
8313
|
type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
|
|
8308
|
-
enum: options.reduce((acc,
|
|
8309
|
-
return acc.includes(
|
|
8314
|
+
enum: options.reduce((acc, x2) => {
|
|
8315
|
+
return acc.includes(x2._def.value) ? acc : [...acc, x2._def.value];
|
|
8310
8316
|
}, [])
|
|
8311
8317
|
};
|
|
8312
8318
|
}
|
|
8313
|
-
} else if (options.every((
|
|
8319
|
+
} else if (options.every((x2) => x2._def.typeName === "ZodEnum")) {
|
|
8314
8320
|
return {
|
|
8315
8321
|
type: "string",
|
|
8316
|
-
enum: options.reduce((acc,
|
|
8322
|
+
enum: options.reduce((acc, x2) => [
|
|
8317
8323
|
...acc,
|
|
8318
|
-
...
|
|
8324
|
+
...x2._def.values.filter((x22) => !acc.includes(x22))
|
|
8319
8325
|
], [])
|
|
8320
8326
|
};
|
|
8321
8327
|
}
|
|
8322
8328
|
return asAnyOf(def, refs);
|
|
8323
8329
|
}
|
|
8324
8330
|
var asAnyOf = (def, refs) => {
|
|
8325
|
-
const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map((
|
|
8331
|
+
const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map((x2, i) => parseDef(x2._def, {
|
|
8326
8332
|
...refs,
|
|
8327
8333
|
currentPath: [...refs.currentPath, "anyOf", `${i}`]
|
|
8328
|
-
})).filter((
|
|
8334
|
+
})).filter((x2) => !!x2 && (!refs.strictUnions || typeof x2 === "object" && Object.keys(x2).length > 0));
|
|
8329
8335
|
return anyOf.length ? { anyOf } : void 0;
|
|
8330
8336
|
};
|
|
8331
8337
|
function parseNullableDef(def, refs) {
|
|
@@ -8505,7 +8511,7 @@ var parsePipelineDef = (def, refs) => {
|
|
|
8505
8511
|
currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"]
|
|
8506
8512
|
});
|
|
8507
8513
|
return {
|
|
8508
|
-
allOf: [a, b].filter((
|
|
8514
|
+
allOf: [a, b].filter((x2) => x2 !== void 0)
|
|
8509
8515
|
};
|
|
8510
8516
|
};
|
|
8511
8517
|
function parsePromiseDef(def, refs) {
|
|
@@ -8534,10 +8540,10 @@ function parseTupleDef(def, refs) {
|
|
|
8534
8540
|
return {
|
|
8535
8541
|
type: "array",
|
|
8536
8542
|
minItems: def.items.length,
|
|
8537
|
-
items: def.items.map((
|
|
8543
|
+
items: def.items.map((x2, i) => parseDef(x2._def, {
|
|
8538
8544
|
...refs,
|
|
8539
8545
|
currentPath: [...refs.currentPath, "items", `${i}`]
|
|
8540
|
-
})).reduce((acc,
|
|
8546
|
+
})).reduce((acc, x2) => x2 === void 0 ? acc : [...acc, x2], []),
|
|
8541
8547
|
additionalItems: parseDef(def.rest._def, {
|
|
8542
8548
|
...refs,
|
|
8543
8549
|
currentPath: [...refs.currentPath, "additionalItems"]
|
|
@@ -8548,10 +8554,10 @@ function parseTupleDef(def, refs) {
|
|
|
8548
8554
|
type: "array",
|
|
8549
8555
|
minItems: def.items.length,
|
|
8550
8556
|
maxItems: def.items.length,
|
|
8551
|
-
items: def.items.map((
|
|
8557
|
+
items: def.items.map((x2, i) => parseDef(x2._def, {
|
|
8552
8558
|
...refs,
|
|
8553
8559
|
currentPath: [...refs.currentPath, "items", `${i}`]
|
|
8554
|
-
})).reduce((acc,
|
|
8560
|
+
})).reduce((acc, x2) => x2 === void 0 ? acc : [...acc, x2], [])
|
|
8555
8561
|
};
|
|
8556
8562
|
}
|
|
8557
8563
|
}
|
|
@@ -12524,7 +12530,7 @@ function parseIntersectionDef2(def, refs) {
|
|
|
12524
12530
|
...refs,
|
|
12525
12531
|
currentPath: [...refs.currentPath, "allOf", "1"]
|
|
12526
12532
|
})
|
|
12527
|
-
].filter((
|
|
12533
|
+
].filter((x2) => !!x2);
|
|
12528
12534
|
const mergedAllOf = [];
|
|
12529
12535
|
allOf.forEach((schema) => {
|
|
12530
12536
|
if (isJsonSchema7AllOfType2(schema)) {
|
|
@@ -12759,7 +12765,7 @@ function escapeNonAlphaNumeric2(source) {
|
|
|
12759
12765
|
}
|
|
12760
12766
|
function addFormat2(schema, value, message, refs) {
|
|
12761
12767
|
var _a223;
|
|
12762
|
-
if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((
|
|
12768
|
+
if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((x2) => x2.format))) {
|
|
12763
12769
|
if (!schema.anyOf) {
|
|
12764
12770
|
schema.anyOf = [];
|
|
12765
12771
|
}
|
|
@@ -12779,7 +12785,7 @@ function addFormat2(schema, value, message, refs) {
|
|
|
12779
12785
|
}
|
|
12780
12786
|
function addPattern2(schema, regex, message, refs) {
|
|
12781
12787
|
var _a223;
|
|
12782
|
-
if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((
|
|
12788
|
+
if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((x2) => x2.pattern))) {
|
|
12783
12789
|
if (!schema.allOf) {
|
|
12784
12790
|
schema.allOf = [];
|
|
12785
12791
|
}
|
|
@@ -12958,19 +12964,19 @@ var primitiveMappings2 = {
|
|
|
12958
12964
|
function parseUnionDef2(def, refs) {
|
|
12959
12965
|
const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
|
|
12960
12966
|
if (options.every(
|
|
12961
|
-
(
|
|
12967
|
+
(x2) => x2._def.typeName in primitiveMappings2 && (!x2._def.checks || !x2._def.checks.length)
|
|
12962
12968
|
)) {
|
|
12963
|
-
const types = options.reduce((types2,
|
|
12964
|
-
const type = primitiveMappings2[
|
|
12969
|
+
const types = options.reduce((types2, x2) => {
|
|
12970
|
+
const type = primitiveMappings2[x2._def.typeName];
|
|
12965
12971
|
return type && !types2.includes(type) ? [...types2, type] : types2;
|
|
12966
12972
|
}, []);
|
|
12967
12973
|
return {
|
|
12968
12974
|
type: types.length > 1 ? types : types[0]
|
|
12969
12975
|
};
|
|
12970
|
-
} else if (options.every((
|
|
12976
|
+
} else if (options.every((x2) => x2._def.typeName === "ZodLiteral" && !x2.description)) {
|
|
12971
12977
|
const types = options.reduce(
|
|
12972
|
-
(acc,
|
|
12973
|
-
const type = typeof
|
|
12978
|
+
(acc, x2) => {
|
|
12979
|
+
const type = typeof x2._def.value;
|
|
12974
12980
|
switch (type) {
|
|
12975
12981
|
case "string":
|
|
12976
12982
|
case "number":
|
|
@@ -12979,7 +12985,7 @@ function parseUnionDef2(def, refs) {
|
|
|
12979
12985
|
case "bigint":
|
|
12980
12986
|
return [...acc, "integer"];
|
|
12981
12987
|
case "object":
|
|
12982
|
-
if (
|
|
12988
|
+
if (x2._def.value === null) return [...acc, "null"];
|
|
12983
12989
|
case "symbol":
|
|
12984
12990
|
case "undefined":
|
|
12985
12991
|
case "function":
|
|
@@ -12990,24 +12996,24 @@ function parseUnionDef2(def, refs) {
|
|
|
12990
12996
|
[]
|
|
12991
12997
|
);
|
|
12992
12998
|
if (types.length === options.length) {
|
|
12993
|
-
const uniqueTypes = types.filter((
|
|
12999
|
+
const uniqueTypes = types.filter((x2, i, a) => a.indexOf(x2) === i);
|
|
12994
13000
|
return {
|
|
12995
13001
|
type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
|
|
12996
13002
|
enum: options.reduce(
|
|
12997
|
-
(acc,
|
|
12998
|
-
return acc.includes(
|
|
13003
|
+
(acc, x2) => {
|
|
13004
|
+
return acc.includes(x2._def.value) ? acc : [...acc, x2._def.value];
|
|
12999
13005
|
},
|
|
13000
13006
|
[]
|
|
13001
13007
|
)
|
|
13002
13008
|
};
|
|
13003
13009
|
}
|
|
13004
|
-
} else if (options.every((
|
|
13010
|
+
} else if (options.every((x2) => x2._def.typeName === "ZodEnum")) {
|
|
13005
13011
|
return {
|
|
13006
13012
|
type: "string",
|
|
13007
13013
|
enum: options.reduce(
|
|
13008
|
-
(acc,
|
|
13014
|
+
(acc, x2) => [
|
|
13009
13015
|
...acc,
|
|
13010
|
-
...
|
|
13016
|
+
...x2._def.values.filter((x22) => !acc.includes(x22))
|
|
13011
13017
|
],
|
|
13012
13018
|
[]
|
|
13013
13019
|
)
|
|
@@ -13017,12 +13023,12 @@ function parseUnionDef2(def, refs) {
|
|
|
13017
13023
|
}
|
|
13018
13024
|
var asAnyOf2 = (def, refs) => {
|
|
13019
13025
|
const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map(
|
|
13020
|
-
(
|
|
13026
|
+
(x2, i) => parseDef2(x2._def, {
|
|
13021
13027
|
...refs,
|
|
13022
13028
|
currentPath: [...refs.currentPath, "anyOf", `${i}`]
|
|
13023
13029
|
})
|
|
13024
13030
|
).filter(
|
|
13025
|
-
(
|
|
13031
|
+
(x2) => !!x2 && (!refs.strictUnions || typeof x2 === "object" && Object.keys(x2).length > 0)
|
|
13026
13032
|
);
|
|
13027
13033
|
return anyOf.length ? { anyOf } : void 0;
|
|
13028
13034
|
};
|
|
@@ -13158,7 +13164,7 @@ var parsePipelineDef2 = (def, refs) => {
|
|
|
13158
13164
|
currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"]
|
|
13159
13165
|
});
|
|
13160
13166
|
return {
|
|
13161
|
-
allOf: [a, b].filter((
|
|
13167
|
+
allOf: [a, b].filter((x2) => x2 !== void 0)
|
|
13162
13168
|
};
|
|
13163
13169
|
};
|
|
13164
13170
|
function parsePromiseDef2(def, refs) {
|
|
@@ -13188,12 +13194,12 @@ function parseTupleDef2(def, refs) {
|
|
|
13188
13194
|
type: "array",
|
|
13189
13195
|
minItems: def.items.length,
|
|
13190
13196
|
items: def.items.map(
|
|
13191
|
-
(
|
|
13197
|
+
(x2, i) => parseDef2(x2._def, {
|
|
13192
13198
|
...refs,
|
|
13193
13199
|
currentPath: [...refs.currentPath, "items", `${i}`]
|
|
13194
13200
|
})
|
|
13195
13201
|
).reduce(
|
|
13196
|
-
(acc,
|
|
13202
|
+
(acc, x2) => x2 === void 0 ? acc : [...acc, x2],
|
|
13197
13203
|
[]
|
|
13198
13204
|
),
|
|
13199
13205
|
additionalItems: parseDef2(def.rest._def, {
|
|
@@ -13207,12 +13213,12 @@ function parseTupleDef2(def, refs) {
|
|
|
13207
13213
|
minItems: def.items.length,
|
|
13208
13214
|
maxItems: def.items.length,
|
|
13209
13215
|
items: def.items.map(
|
|
13210
|
-
(
|
|
13216
|
+
(x2, i) => parseDef2(x2._def, {
|
|
13211
13217
|
...refs,
|
|
13212
13218
|
currentPath: [...refs.currentPath, "items", `${i}`]
|
|
13213
13219
|
})
|
|
13214
13220
|
).reduce(
|
|
13215
|
-
(acc,
|
|
13221
|
+
(acc, x2) => x2 === void 0 ? acc : [...acc, x2],
|
|
13216
13222
|
[]
|
|
13217
13223
|
)
|
|
13218
13224
|
};
|
|
@@ -17757,7 +17763,7 @@ function parseIntersectionDef3(def, refs) {
|
|
|
17757
17763
|
...refs,
|
|
17758
17764
|
currentPath: [...refs.currentPath, "allOf", "1"]
|
|
17759
17765
|
})
|
|
17760
|
-
].filter((
|
|
17766
|
+
].filter((x2) => !!x2);
|
|
17761
17767
|
const mergedAllOf = [];
|
|
17762
17768
|
allOf.forEach((schema) => {
|
|
17763
17769
|
if (isJsonSchema7AllOfType3(schema)) {
|
|
@@ -17992,7 +17998,7 @@ function escapeNonAlphaNumeric3(source) {
|
|
|
17992
17998
|
}
|
|
17993
17999
|
function addFormat3(schema, value, message, refs) {
|
|
17994
18000
|
var _a223;
|
|
17995
|
-
if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((
|
|
18001
|
+
if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((x2) => x2.format))) {
|
|
17996
18002
|
if (!schema.anyOf) {
|
|
17997
18003
|
schema.anyOf = [];
|
|
17998
18004
|
}
|
|
@@ -18012,7 +18018,7 @@ function addFormat3(schema, value, message, refs) {
|
|
|
18012
18018
|
}
|
|
18013
18019
|
function addPattern3(schema, regex, message, refs) {
|
|
18014
18020
|
var _a223;
|
|
18015
|
-
if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((
|
|
18021
|
+
if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((x2) => x2.pattern))) {
|
|
18016
18022
|
if (!schema.allOf) {
|
|
18017
18023
|
schema.allOf = [];
|
|
18018
18024
|
}
|
|
@@ -18191,19 +18197,19 @@ var primitiveMappings3 = {
|
|
|
18191
18197
|
function parseUnionDef3(def, refs) {
|
|
18192
18198
|
const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
|
|
18193
18199
|
if (options.every(
|
|
18194
|
-
(
|
|
18200
|
+
(x2) => x2._def.typeName in primitiveMappings3 && (!x2._def.checks || !x2._def.checks.length)
|
|
18195
18201
|
)) {
|
|
18196
|
-
const types = options.reduce((types2,
|
|
18197
|
-
const type = primitiveMappings3[
|
|
18202
|
+
const types = options.reduce((types2, x2) => {
|
|
18203
|
+
const type = primitiveMappings3[x2._def.typeName];
|
|
18198
18204
|
return type && !types2.includes(type) ? [...types2, type] : types2;
|
|
18199
18205
|
}, []);
|
|
18200
18206
|
return {
|
|
18201
18207
|
type: types.length > 1 ? types : types[0]
|
|
18202
18208
|
};
|
|
18203
|
-
} else if (options.every((
|
|
18209
|
+
} else if (options.every((x2) => x2._def.typeName === "ZodLiteral" && !x2.description)) {
|
|
18204
18210
|
const types = options.reduce(
|
|
18205
|
-
(acc,
|
|
18206
|
-
const type = typeof
|
|
18211
|
+
(acc, x2) => {
|
|
18212
|
+
const type = typeof x2._def.value;
|
|
18207
18213
|
switch (type) {
|
|
18208
18214
|
case "string":
|
|
18209
18215
|
case "number":
|
|
@@ -18212,7 +18218,7 @@ function parseUnionDef3(def, refs) {
|
|
|
18212
18218
|
case "bigint":
|
|
18213
18219
|
return [...acc, "integer"];
|
|
18214
18220
|
case "object":
|
|
18215
|
-
if (
|
|
18221
|
+
if (x2._def.value === null) return [...acc, "null"];
|
|
18216
18222
|
case "symbol":
|
|
18217
18223
|
case "undefined":
|
|
18218
18224
|
case "function":
|
|
@@ -18223,24 +18229,24 @@ function parseUnionDef3(def, refs) {
|
|
|
18223
18229
|
[]
|
|
18224
18230
|
);
|
|
18225
18231
|
if (types.length === options.length) {
|
|
18226
|
-
const uniqueTypes = types.filter((
|
|
18232
|
+
const uniqueTypes = types.filter((x2, i, a) => a.indexOf(x2) === i);
|
|
18227
18233
|
return {
|
|
18228
18234
|
type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
|
|
18229
18235
|
enum: options.reduce(
|
|
18230
|
-
(acc,
|
|
18231
|
-
return acc.includes(
|
|
18236
|
+
(acc, x2) => {
|
|
18237
|
+
return acc.includes(x2._def.value) ? acc : [...acc, x2._def.value];
|
|
18232
18238
|
},
|
|
18233
18239
|
[]
|
|
18234
18240
|
)
|
|
18235
18241
|
};
|
|
18236
18242
|
}
|
|
18237
|
-
} else if (options.every((
|
|
18243
|
+
} else if (options.every((x2) => x2._def.typeName === "ZodEnum")) {
|
|
18238
18244
|
return {
|
|
18239
18245
|
type: "string",
|
|
18240
18246
|
enum: options.reduce(
|
|
18241
|
-
(acc,
|
|
18247
|
+
(acc, x2) => [
|
|
18242
18248
|
...acc,
|
|
18243
|
-
...
|
|
18249
|
+
...x2._def.values.filter((x22) => !acc.includes(x22))
|
|
18244
18250
|
],
|
|
18245
18251
|
[]
|
|
18246
18252
|
)
|
|
@@ -18250,12 +18256,12 @@ function parseUnionDef3(def, refs) {
|
|
|
18250
18256
|
}
|
|
18251
18257
|
var asAnyOf3 = (def, refs) => {
|
|
18252
18258
|
const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map(
|
|
18253
|
-
(
|
|
18259
|
+
(x2, i) => parseDef3(x2._def, {
|
|
18254
18260
|
...refs,
|
|
18255
18261
|
currentPath: [...refs.currentPath, "anyOf", `${i}`]
|
|
18256
18262
|
})
|
|
18257
18263
|
).filter(
|
|
18258
|
-
(
|
|
18264
|
+
(x2) => !!x2 && (!refs.strictUnions || typeof x2 === "object" && Object.keys(x2).length > 0)
|
|
18259
18265
|
);
|
|
18260
18266
|
return anyOf.length ? { anyOf } : void 0;
|
|
18261
18267
|
};
|
|
@@ -18391,7 +18397,7 @@ var parsePipelineDef3 = (def, refs) => {
|
|
|
18391
18397
|
currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"]
|
|
18392
18398
|
});
|
|
18393
18399
|
return {
|
|
18394
|
-
allOf: [a, b].filter((
|
|
18400
|
+
allOf: [a, b].filter((x2) => x2 !== void 0)
|
|
18395
18401
|
};
|
|
18396
18402
|
};
|
|
18397
18403
|
function parsePromiseDef3(def, refs) {
|
|
@@ -18421,12 +18427,12 @@ function parseTupleDef3(def, refs) {
|
|
|
18421
18427
|
type: "array",
|
|
18422
18428
|
minItems: def.items.length,
|
|
18423
18429
|
items: def.items.map(
|
|
18424
|
-
(
|
|
18430
|
+
(x2, i) => parseDef3(x2._def, {
|
|
18425
18431
|
...refs,
|
|
18426
18432
|
currentPath: [...refs.currentPath, "items", `${i}`]
|
|
18427
18433
|
})
|
|
18428
18434
|
).reduce(
|
|
18429
|
-
(acc,
|
|
18435
|
+
(acc, x2) => x2 === void 0 ? acc : [...acc, x2],
|
|
18430
18436
|
[]
|
|
18431
18437
|
),
|
|
18432
18438
|
additionalItems: parseDef3(def.rest._def, {
|
|
@@ -18440,12 +18446,12 @@ function parseTupleDef3(def, refs) {
|
|
|
18440
18446
|
minItems: def.items.length,
|
|
18441
18447
|
maxItems: def.items.length,
|
|
18442
18448
|
items: def.items.map(
|
|
18443
|
-
(
|
|
18449
|
+
(x2, i) => parseDef3(x2._def, {
|
|
18444
18450
|
...refs,
|
|
18445
18451
|
currentPath: [...refs.currentPath, "items", `${i}`]
|
|
18446
18452
|
})
|
|
18447
18453
|
).reduce(
|
|
18448
|
-
(acc,
|
|
18454
|
+
(acc, x2) => x2 === void 0 ? acc : [...acc, x2],
|
|
18449
18455
|
[]
|
|
18450
18456
|
)
|
|
18451
18457
|
};
|
|
@@ -27219,7 +27225,7 @@ ${workingMemory}`;
|
|
|
27219
27225
|
// Embedding is computationally expensive, so cache content -> embeddings/chunks.
|
|
27220
27226
|
// Bounded by an LRU so a long-running instance can't retain every embedded
|
|
27221
27227
|
// message/query (and its vectors + chunk text) for the life of the process.
|
|
27222
|
-
embeddingCache = new
|
|
27228
|
+
embeddingCache = new I({ max: DEFAULT_EMBEDDING_CACHE_MAX_SIZE });
|
|
27223
27229
|
firstEmbed;
|
|
27224
27230
|
async embedMessageContent(content) {
|
|
27225
27231
|
const key = (await this.hasher).h64(content);
|
|
@@ -27656,7 +27662,7 @@ ${workingMemory}`;
|
|
|
27656
27662
|
"Observational memory requires @mastra/core support for request-response-id-rotation. Please bump @mastra/core to a newer version."
|
|
27657
27663
|
);
|
|
27658
27664
|
}
|
|
27659
|
-
const { ObservationalMemory: OMClass } = await import('./observational-memory-
|
|
27665
|
+
const { ObservationalMemory: OMClass } = await import('./observational-memory-OJN26RQ4-DTEVO3PP.cjs');
|
|
27660
27666
|
const onIndexObservations = this.hasRetrievalSearch(omConfig.retrieval) ? async (observation) => {
|
|
27661
27667
|
await this.indexObservation(observation);
|
|
27662
27668
|
} : void 0;
|
|
@@ -28704,7 +28710,7 @@ Notes:
|
|
|
28704
28710
|
if (!effectiveConfig) return null;
|
|
28705
28711
|
const engine = await this.omEngine;
|
|
28706
28712
|
if (!engine) return null;
|
|
28707
|
-
const { ObservationalMemoryProcessor: ObservationalMemoryProcessor2 } = await import('./observational-memory-
|
|
28713
|
+
const { ObservationalMemoryProcessor: ObservationalMemoryProcessor2 } = await import('./observational-memory-OJN26RQ4-DTEVO3PP.cjs');
|
|
28708
28714
|
return new ObservationalMemoryProcessor2(engine, this, {
|
|
28709
28715
|
temporalMarkers: effectiveConfig.temporalMarkers
|
|
28710
28716
|
});
|
|
@@ -28720,7 +28726,7 @@ Notes:
|
|
|
28720
28726
|
this.assertWorkingMemoryStateSignalsCompatibility(mergedConfig);
|
|
28721
28727
|
if (!mergedConfig.workingMemory?.enabled) return null;
|
|
28722
28728
|
if (!mergedConfig.workingMemory?.useStateSignals) return null;
|
|
28723
|
-
const { WORKING_MEMORY_STATE_PROCESSOR_ID: WORKING_MEMORY_STATE_PROCESSOR_ID2, WorkingMemoryStateProcessor: WorkingMemoryStateProcessor2 } = await import('./working-memory-state-OMSMSYAW-
|
|
28729
|
+
const { WORKING_MEMORY_STATE_PROCESSOR_ID: WORKING_MEMORY_STATE_PROCESSOR_ID2, WorkingMemoryStateProcessor: WorkingMemoryStateProcessor2 } = await import('./working-memory-state-OMSMSYAW-GCNI4HPX.cjs');
|
|
28724
28730
|
const alreadyConfigured = configuredProcessors.some(
|
|
28725
28731
|
(p) => !("workflow" in p) && p.id === WORKING_MEMORY_STATE_PROCESSOR_ID2
|
|
28726
28732
|
);
|
|
@@ -33667,5 +33673,5 @@ exports.stripEphemeralAnchorIds = stripEphemeralAnchorIds;
|
|
|
33667
33673
|
exports.stripObservationGroups = stripObservationGroups;
|
|
33668
33674
|
exports.summarizeConversation = summarizeConversation;
|
|
33669
33675
|
exports.wrapInObservationGroup = wrapInObservationGroup;
|
|
33670
|
-
//# sourceMappingURL=chunk-
|
|
33671
|
-
//# sourceMappingURL=chunk-
|
|
33676
|
+
//# sourceMappingURL=chunk-I5K3Z37P.cjs.map
|
|
33677
|
+
//# sourceMappingURL=chunk-I5K3Z37P.cjs.map
|