@mastra/server 1.51.0-alpha.10 → 1.51.0-alpha.12
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 +14 -0
- package/dist/{api-schema-manifest-FODSAH5X.cjs → api-schema-manifest-G2SC5CFQ.cjs} +6 -6
- package/dist/{api-schema-manifest-FODSAH5X.cjs.map → api-schema-manifest-G2SC5CFQ.cjs.map} +1 -1
- package/dist/{api-schema-manifest-QZBZI222.js → api-schema-manifest-UXI5JTRL.js} +4 -4
- package/dist/{api-schema-manifest-QZBZI222.js.map → api-schema-manifest-UXI5JTRL.js.map} +1 -1
- package/dist/{chunk-ELVO5SFM.cjs → chunk-26WG2OUY.cjs} +8 -8
- package/dist/{chunk-ELVO5SFM.cjs.map → chunk-26WG2OUY.cjs.map} +1 -1
- package/dist/{chunk-OMNQYWK3.js → chunk-2E3UBZ6Z.js} +2 -2
- package/dist/chunk-2E3UBZ6Z.js.map +1 -0
- package/dist/{chunk-QAKI6K3C.cjs → chunk-2NGKAQQE.cjs} +5 -5
- package/dist/{chunk-QAKI6K3C.cjs.map → chunk-2NGKAQQE.cjs.map} +1 -1
- package/dist/{chunk-SCCERKQS.cjs → chunk-2ONW75MN.cjs} +5 -5
- package/dist/{chunk-SCCERKQS.cjs.map → chunk-2ONW75MN.cjs.map} +1 -1
- package/dist/{chunk-SLWYNPH6.js → chunk-2TKEZ5UE.js} +3 -3
- package/dist/{chunk-SLWYNPH6.js.map → chunk-2TKEZ5UE.js.map} +1 -1
- package/dist/{chunk-WBPOFUFH.js → chunk-2WRJFEJK.js} +3 -3
- package/dist/{chunk-WBPOFUFH.js.map → chunk-2WRJFEJK.js.map} +1 -1
- package/dist/{chunk-7NBIALK4.js → chunk-3R4HNV6B.js} +3 -3
- package/dist/{chunk-7NBIALK4.js.map → chunk-3R4HNV6B.js.map} +1 -1
- package/dist/{chunk-AX3JNQ27.cjs → chunk-3RQNJCTP.cjs} +19 -19
- package/dist/{chunk-AX3JNQ27.cjs.map → chunk-3RQNJCTP.cjs.map} +1 -1
- package/dist/{chunk-SIBCVLYV.js → chunk-3YBCWOF6.js} +3 -3
- package/dist/{chunk-SIBCVLYV.js.map → chunk-3YBCWOF6.js.map} +1 -1
- package/dist/{chunk-XNL6KN4F.cjs → chunk-44HRN3OK.cjs} +10 -10
- package/dist/{chunk-XNL6KN4F.cjs.map → chunk-44HRN3OK.cjs.map} +1 -1
- package/dist/{chunk-BMGJWPCE.js → chunk-536ERKFJ.js} +3 -3
- package/dist/{chunk-BMGJWPCE.js.map → chunk-536ERKFJ.js.map} +1 -1
- package/dist/{chunk-LXP7DQAP.cjs → chunk-5QB32PNO.cjs} +37 -37
- package/dist/{chunk-LXP7DQAP.cjs.map → chunk-5QB32PNO.cjs.map} +1 -1
- package/dist/{chunk-U5AYX5QW.js → chunk-6RHPKT2B.js} +4 -4
- package/dist/{chunk-U5AYX5QW.js.map → chunk-6RHPKT2B.js.map} +1 -1
- package/dist/{chunk-HN3T6XQ4.js → chunk-6ZXLYXPA.js} +4 -4
- package/dist/{chunk-HN3T6XQ4.js.map → chunk-6ZXLYXPA.js.map} +1 -1
- package/dist/{chunk-TLBW3NWJ.cjs → chunk-7BZUW6TQ.cjs} +8 -8
- package/dist/{chunk-TLBW3NWJ.cjs.map → chunk-7BZUW6TQ.cjs.map} +1 -1
- package/dist/{chunk-J6TRVKBB.cjs → chunk-7RAQVA42.cjs} +11 -11
- package/dist/{chunk-J6TRVKBB.cjs.map → chunk-7RAQVA42.cjs.map} +1 -1
- package/dist/{chunk-HI4E75YH.js → chunk-7Z7JQRMK.js} +3 -3
- package/dist/{chunk-HI4E75YH.js.map → chunk-7Z7JQRMK.js.map} +1 -1
- package/dist/{chunk-YH4H2AJO.cjs → chunk-AD4P2UCI.cjs} +8 -8
- package/dist/{chunk-YH4H2AJO.cjs.map → chunk-AD4P2UCI.cjs.map} +1 -1
- package/dist/{chunk-WJAV35G4.js → chunk-AKJHICI7.js} +4 -4
- package/dist/{chunk-WJAV35G4.js.map → chunk-AKJHICI7.js.map} +1 -1
- package/dist/{chunk-SXOMGGNC.cjs → chunk-AYHL7EEE.cjs} +8 -8
- package/dist/{chunk-SXOMGGNC.cjs.map → chunk-AYHL7EEE.cjs.map} +1 -1
- package/dist/{chunk-CTYOUJ2J.cjs → chunk-BHOFB3CF.cjs} +11 -11
- package/dist/{chunk-CTYOUJ2J.cjs.map → chunk-BHOFB3CF.cjs.map} +1 -1
- package/dist/{chunk-I5K3Z37P.cjs → chunk-BJESJLXW.cjs} +287 -293
- package/dist/chunk-BJESJLXW.cjs.map +1 -0
- package/dist/{chunk-6QIJVEVN.js → chunk-BT4DGQFS.js} +3 -3
- package/dist/{chunk-6QIJVEVN.js.map → chunk-BT4DGQFS.js.map} +1 -1
- package/dist/{chunk-2H2SGSP4.js → chunk-BWTM7QBG.js} +3 -3
- package/dist/{chunk-2H2SGSP4.js.map → chunk-BWTM7QBG.js.map} +1 -1
- package/dist/{chunk-OSTYHNSM.js → chunk-BXMGLJWL.js} +3 -3
- package/dist/{chunk-OSTYHNSM.js.map → chunk-BXMGLJWL.js.map} +1 -1
- package/dist/{chunk-SLHJWJR3.js → chunk-C364W23O.js} +4 -4
- package/dist/{chunk-SLHJWJR3.js.map → chunk-C364W23O.js.map} +1 -1
- package/dist/{chunk-GGPRZBVJ.cjs → chunk-CAHPP34Z.cjs} +11 -11
- package/dist/{chunk-GGPRZBVJ.cjs.map → chunk-CAHPP34Z.cjs.map} +1 -1
- package/dist/{chunk-SB4CG73V.js → chunk-CCVV75AI.js} +3 -3
- package/dist/{chunk-SB4CG73V.js.map → chunk-CCVV75AI.js.map} +1 -1
- package/dist/{chunk-3F5MV2ED.js → chunk-CDVWZOPU.js} +3 -3
- package/dist/{chunk-3F5MV2ED.js.map → chunk-CDVWZOPU.js.map} +1 -1
- package/dist/{chunk-GULBOJRY.cjs → chunk-CP5LPQIZ.cjs} +6 -6
- package/dist/{chunk-GULBOJRY.cjs.map → chunk-CP5LPQIZ.cjs.map} +1 -1
- package/dist/{chunk-Y7AOZ3OR.js → chunk-DMFYLU2A.js} +3 -3
- package/dist/{chunk-Y7AOZ3OR.js.map → chunk-DMFYLU2A.js.map} +1 -1
- package/dist/{chunk-M7OJEIOD.js → chunk-F7KRU6ZU.js} +3 -3
- package/dist/{chunk-M7OJEIOD.js.map → chunk-F7KRU6ZU.js.map} +1 -1
- package/dist/{chunk-4VDJYNCU.cjs → chunk-FEUXFWF5.cjs} +4 -4
- package/dist/{chunk-4VDJYNCU.cjs.map → chunk-FEUXFWF5.cjs.map} +1 -1
- package/dist/{chunk-NMIBDLQD.js → chunk-FPFSXIHI.js} +4 -4
- package/dist/{chunk-NMIBDLQD.js.map → chunk-FPFSXIHI.js.map} +1 -1
- package/dist/{chunk-RSCLEVN3.cjs → chunk-FTXUZBZI.cjs} +28 -28
- package/dist/{chunk-RSCLEVN3.cjs.map → chunk-FTXUZBZI.cjs.map} +1 -1
- package/dist/{chunk-Z5OBB3DJ.js → chunk-FYQHPT2E.js} +3 -3
- package/dist/{chunk-Z5OBB3DJ.js.map → chunk-FYQHPT2E.js.map} +1 -1
- package/dist/{chunk-LYOM6EQP.cjs → chunk-GCGJKH4A.cjs} +8 -8
- package/dist/{chunk-LYOM6EQP.cjs.map → chunk-GCGJKH4A.cjs.map} +1 -1
- package/dist/{chunk-A4IVNGHZ.cjs → chunk-GG7J3ITE.cjs} +6 -6
- package/dist/{chunk-A4IVNGHZ.cjs.map → chunk-GG7J3ITE.cjs.map} +1 -1
- package/dist/{chunk-TEIKCIX2.js → chunk-GME4WQE6.js} +5 -5
- package/dist/{chunk-TEIKCIX2.js.map → chunk-GME4WQE6.js.map} +1 -1
- package/dist/{chunk-P6EQTV2Y.js → chunk-H3CPBOE4.js} +3 -3
- package/dist/{chunk-P6EQTV2Y.js.map → chunk-H3CPBOE4.js.map} +1 -1
- package/dist/{chunk-UWJ25WPB.js → chunk-H4LV3HUC.js} +287 -293
- package/dist/chunk-H4LV3HUC.js.map +1 -0
- package/dist/{chunk-UO4HGWYR.js → chunk-HIGUQ2H3.js} +3 -3
- package/dist/{chunk-UO4HGWYR.js.map → chunk-HIGUQ2H3.js.map} +1 -1
- package/dist/{chunk-52LEKN7E.cjs → chunk-HNOAHMN4.cjs} +6 -6
- package/dist/{chunk-52LEKN7E.cjs.map → chunk-HNOAHMN4.cjs.map} +1 -1
- package/dist/{chunk-ZG6ZAG5V.cjs → chunk-JCJIGPVP.cjs} +41 -41
- package/dist/{chunk-ZG6ZAG5V.cjs.map → chunk-JCJIGPVP.cjs.map} +1 -1
- package/dist/{chunk-GO6Y47XC.cjs → chunk-JNFYIWNB.cjs} +101 -101
- package/dist/{chunk-GO6Y47XC.cjs.map → chunk-JNFYIWNB.cjs.map} +1 -1
- package/dist/{chunk-QJHZIGQG.js → chunk-K3XMNUQT.js} +3 -3
- package/dist/{chunk-QJHZIGQG.js.map → chunk-K3XMNUQT.js.map} +1 -1
- package/dist/{chunk-JQWULXKN.js → chunk-KGZYP6YS.js} +5 -5
- package/dist/{chunk-JQWULXKN.js.map → chunk-KGZYP6YS.js.map} +1 -1
- package/dist/{chunk-K6WZK5RX.cjs → chunk-KLD4KYXH.cjs} +21 -21
- package/dist/{chunk-K6WZK5RX.cjs.map → chunk-KLD4KYXH.cjs.map} +1 -1
- package/dist/{chunk-A2NBGGMX.cjs → chunk-LQSQWD2F.cjs} +8 -8
- package/dist/{chunk-A2NBGGMX.cjs.map → chunk-LQSQWD2F.cjs.map} +1 -1
- package/dist/{chunk-MCRQRKRI.js → chunk-MASP4GYH.js} +3 -3
- package/dist/{chunk-MCRQRKRI.js.map → chunk-MASP4GYH.js.map} +1 -1
- package/dist/{chunk-27F2AJU2.cjs → chunk-MCWL6335.cjs} +6 -6
- package/dist/{chunk-27F2AJU2.cjs.map → chunk-MCWL6335.cjs.map} +1 -1
- package/dist/{chunk-TPB44HAO.cjs → chunk-MELQ2AU3.cjs} +10 -10
- package/dist/{chunk-TPB44HAO.cjs.map → chunk-MELQ2AU3.cjs.map} +1 -1
- package/dist/{chunk-K7KLUGGM.cjs → chunk-MRD47GBP.cjs} +74 -74
- package/dist/{chunk-K7KLUGGM.cjs.map → chunk-MRD47GBP.cjs.map} +1 -1
- package/dist/{chunk-6LFFIOT4.cjs → chunk-MSTNHQU2.cjs} +9 -9
- package/dist/{chunk-6LFFIOT4.cjs.map → chunk-MSTNHQU2.cjs.map} +1 -1
- package/dist/{chunk-DJGKM4TB.cjs → chunk-NE5VRVVK.cjs} +4 -4
- package/dist/{chunk-DJGKM4TB.cjs.map → chunk-NE5VRVVK.cjs.map} +1 -1
- package/dist/{chunk-SH7XKBWN.js → chunk-NQLS4Z3W.js} +5 -5
- package/dist/{chunk-SH7XKBWN.js.map → chunk-NQLS4Z3W.js.map} +1 -1
- package/dist/{chunk-2S4SNS5D.cjs → chunk-O7HH6SBJ.cjs} +10 -10
- package/dist/{chunk-2S4SNS5D.cjs.map → chunk-O7HH6SBJ.cjs.map} +1 -1
- package/dist/{chunk-KOMWGC24.cjs → chunk-OGYVHIJQ.cjs} +7 -7
- package/dist/{chunk-KOMWGC24.cjs.map → chunk-OGYVHIJQ.cjs.map} +1 -1
- package/dist/{chunk-G7RPSZUK.cjs → chunk-OI3USMND.cjs} +71 -71
- package/dist/{chunk-G7RPSZUK.cjs.map → chunk-OI3USMND.cjs.map} +1 -1
- package/dist/{chunk-QJEXUABN.js → chunk-ORQHCHAU.js} +4 -4
- package/dist/{chunk-QJEXUABN.js.map → chunk-ORQHCHAU.js.map} +1 -1
- package/dist/{chunk-T7JR2CZV.cjs → chunk-OUHXNZBK.cjs} +16 -16
- package/dist/{chunk-T7JR2CZV.cjs.map → chunk-OUHXNZBK.cjs.map} +1 -1
- package/dist/{chunk-5VEVLTZC.js → chunk-PJPR5YFS.js} +5 -5
- package/dist/{chunk-5VEVLTZC.js.map → chunk-PJPR5YFS.js.map} +1 -1
- package/dist/{chunk-TS2WBQFI.cjs → chunk-PRDZRNPQ.cjs} +13 -13
- package/dist/{chunk-TS2WBQFI.cjs.map → chunk-PRDZRNPQ.cjs.map} +1 -1
- package/dist/{chunk-6NNCDLZC.cjs → chunk-PVPXK52S.cjs} +29 -29
- package/dist/{chunk-6NNCDLZC.cjs.map → chunk-PVPXK52S.cjs.map} +1 -1
- package/dist/{chunk-IWIWEX2Y.js → chunk-PWW7XZFS.js} +5 -5
- package/dist/{chunk-IWIWEX2Y.js.map → chunk-PWW7XZFS.js.map} +1 -1
- package/dist/{chunk-CH5VUESZ.js → chunk-Q6D6YN36.js} +4 -4
- package/dist/{chunk-CH5VUESZ.js.map → chunk-Q6D6YN36.js.map} +1 -1
- package/dist/{chunk-LTKBD2RQ.js → chunk-RK2FLBQ5.js} +3 -3
- package/dist/{chunk-LTKBD2RQ.js.map → chunk-RK2FLBQ5.js.map} +1 -1
- package/dist/{chunk-W4XN6DDQ.cjs → chunk-RNDEJYFW.cjs} +10 -10
- package/dist/{chunk-W4XN6DDQ.cjs.map → chunk-RNDEJYFW.cjs.map} +1 -1
- package/dist/{chunk-Y6BBB5S7.cjs → chunk-RQDW42XU.cjs} +8 -8
- package/dist/{chunk-Y6BBB5S7.cjs.map → chunk-RQDW42XU.cjs.map} +1 -1
- package/dist/{chunk-SEV4GJWB.js → chunk-SMQOFEYY.js} +4 -4
- package/dist/{chunk-SEV4GJWB.js.map → chunk-SMQOFEYY.js.map} +1 -1
- package/dist/{chunk-ODOKTVLS.js → chunk-SS7P2THJ.js} +41 -41
- package/dist/{chunk-ODOKTVLS.js.map → chunk-SS7P2THJ.js.map} +1 -1
- package/dist/{chunk-BH354CYO.js → chunk-TDSDLPLC.js} +3 -3
- package/dist/{chunk-BH354CYO.js.map → chunk-TDSDLPLC.js.map} +1 -1
- package/dist/{chunk-ONEOOPSN.js → chunk-TPM6PMWU.js} +3 -3
- package/dist/{chunk-ONEOOPSN.js.map → chunk-TPM6PMWU.js.map} +1 -1
- package/dist/{chunk-SX2AJUSP.cjs → chunk-TR2X57M3.cjs} +2 -2
- package/dist/chunk-TR2X57M3.cjs.map +1 -0
- package/dist/{chunk-RKUFUE6P.js → chunk-U3AC2DM6.js} +3 -3
- package/dist/{chunk-RKUFUE6P.js.map → chunk-U3AC2DM6.js.map} +1 -1
- package/dist/{chunk-IEEP4JWJ.cjs → chunk-UUMG5HMP.cjs} +12 -12
- package/dist/{chunk-IEEP4JWJ.cjs.map → chunk-UUMG5HMP.cjs.map} +1 -1
- package/dist/{chunk-Z2QGIB47.js → chunk-UVGAYAEV.js} +4 -4
- package/dist/{chunk-Z2QGIB47.js.map → chunk-UVGAYAEV.js.map} +1 -1
- package/dist/{chunk-WW37XHKJ.js → chunk-VHW5GZRA.js} +4 -4
- package/dist/{chunk-WW37XHKJ.js.map → chunk-VHW5GZRA.js.map} +1 -1
- package/dist/{chunk-44G63V6E.js → chunk-VL23G2YJ.js} +5 -5
- package/dist/{chunk-44G63V6E.js.map → chunk-VL23G2YJ.js.map} +1 -1
- package/dist/{chunk-XFHXVKUV.js → chunk-VMJ6UWBH.js} +3 -3
- package/dist/{chunk-XFHXVKUV.js.map → chunk-VMJ6UWBH.js.map} +1 -1
- package/dist/{chunk-EJFYAD2W.cjs → chunk-VXZGDPW2.cjs} +8 -8
- package/dist/{chunk-EJFYAD2W.cjs.map → chunk-VXZGDPW2.cjs.map} +1 -1
- package/dist/{chunk-APMXFPSU.cjs → chunk-W2ATM2RI.cjs} +13 -13
- package/dist/{chunk-APMXFPSU.cjs.map → chunk-W2ATM2RI.cjs.map} +1 -1
- package/dist/{chunk-JGEOOOSP.js → chunk-WRAFGZ43.js} +3 -3
- package/dist/{chunk-JGEOOOSP.js.map → chunk-WRAFGZ43.js.map} +1 -1
- package/dist/{chunk-E26UU34B.cjs → chunk-X6ZXQ3MZ.cjs} +28 -28
- package/dist/{chunk-E26UU34B.cjs.map → chunk-X6ZXQ3MZ.cjs.map} +1 -1
- package/dist/{chunk-OU7J7PA7.cjs → chunk-XEHXAE6M.cjs} +4 -4
- package/dist/{chunk-OU7J7PA7.cjs.map → chunk-XEHXAE6M.cjs.map} +1 -1
- package/dist/{chunk-5535L5CG.js → chunk-XYWMMHEC.js} +3 -3
- package/dist/{chunk-5535L5CG.js.map → chunk-XYWMMHEC.js.map} +1 -1
- package/dist/{chunk-IKIMKEA3.cjs → chunk-Y5DUPEQF.cjs} +8 -8
- package/dist/{chunk-IKIMKEA3.cjs.map → chunk-Y5DUPEQF.cjs.map} +1 -1
- package/dist/{chunk-QDVO3DAW.js → chunk-YN4RDOPA.js} +3 -3
- package/dist/{chunk-QDVO3DAW.js.map → chunk-YN4RDOPA.js.map} +1 -1
- package/dist/{chunk-XUKT5XLE.cjs → chunk-YS3A5BZH.cjs} +37 -37
- package/dist/{chunk-XUKT5XLE.cjs.map → chunk-YS3A5BZH.cjs.map} +1 -1
- package/dist/chunk-ZIFVFLJK.cjs +744 -0
- package/dist/{chunk-BAVSXFC6.cjs.map → chunk-ZIFVFLJK.cjs.map} +1 -1
- package/dist/{chunk-SU4ZAHUZ.js → chunk-ZMETLXPM.js} +3 -3
- package/dist/{chunk-SU4ZAHUZ.js.map → chunk-ZMETLXPM.js.map} +1 -1
- package/dist/{chunk-QOGEYWQA.cjs → chunk-ZMMHUTQG.cjs} +24 -24
- package/dist/{chunk-QOGEYWQA.cjs.map → chunk-ZMMHUTQG.cjs.map} +1 -1
- package/dist/{chunk-ZNGJHQKB.js → chunk-ZQLMTK5J.js} +3 -3
- package/dist/{chunk-ZNGJHQKB.js.map → chunk-ZQLMTK5J.js.map} +1 -1
- package/dist/{chunk-IRIBLEBI.cjs → chunk-ZSMQDHMV.cjs} +10 -10
- package/dist/{chunk-IRIBLEBI.cjs.map → chunk-ZSMQDHMV.cjs.map} +1 -1
- package/dist/{dist-3IOY4UDH.js → dist-2YFKAQMY.js} +3 -3
- package/dist/{dist-3IOY4UDH.js.map → dist-2YFKAQMY.js.map} +1 -1
- package/dist/{dist-I2O6YPDX.cjs → dist-6VCC76Q3.cjs} +30 -30
- package/dist/{dist-I2O6YPDX.cjs.map → dist-6VCC76Q3.cjs.map} +1 -1
- package/dist/dist-CB67HEFG.js +3 -0
- package/dist/{dist-SOVT5P5X.js.map → dist-CB67HEFG.js.map} +1 -1
- package/dist/{dist-YPPUCXOD.cjs → dist-CIZY7VDE.cjs} +20 -20
- package/dist/{dist-YPPUCXOD.cjs.map → dist-CIZY7VDE.cjs.map} +1 -1
- package/dist/{dist-Z62354D3.js → dist-IPZQFQMB.js} +3 -3
- package/dist/{dist-Z62354D3.js.map → dist-IPZQFQMB.js.map} +1 -1
- package/dist/{dist-IB5HRZQW.js → dist-J4UWKVDM.js} +3 -3
- package/dist/{dist-IB5HRZQW.js.map → dist-J4UWKVDM.js.map} +1 -1
- package/dist/{dist-5PUBSY65.js → dist-JWLVQJFQ.js} +3 -3
- package/dist/{dist-5PUBSY65.js.map → dist-JWLVQJFQ.js.map} +1 -1
- package/dist/{dist-I5TS34XK.cjs → dist-M3P3YMJP.cjs} +28 -28
- package/dist/{dist-I5TS34XK.cjs.map → dist-M3P3YMJP.cjs.map} +1 -1
- package/dist/{dist-5RUREC34.js → dist-MR5IMYFM.js} +9 -9
- package/dist/{dist-5RUREC34.js.map → dist-MR5IMYFM.js.map} +1 -1
- package/dist/dist-NYM3IQLY.cjs +16 -0
- package/dist/{dist-BJSMOQXN.cjs.map → dist-NYM3IQLY.cjs.map} +1 -1
- package/dist/{dist-RW46FX3B.cjs → dist-QOH7MNRH.cjs} +13 -13
- package/dist/{dist-RW46FX3B.cjs.map → dist-QOH7MNRH.cjs.map} +1 -1
- package/dist/{dist-7ROGUSJI.cjs → dist-WBYMZPKB.cjs} +26 -26
- package/dist/{dist-7ROGUSJI.cjs.map → dist-WBYMZPKB.cjs.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/{observational-memory-OJN26RQ4-QC5U3UMA.js → observational-memory-SF36C4XR-2DQQF4XZ.js} +3 -3
- package/dist/{observational-memory-OJN26RQ4-QC5U3UMA.js.map → observational-memory-SF36C4XR-2DQQF4XZ.js.map} +1 -1
- package/dist/{observational-memory-OJN26RQ4-DTEVO3PP.cjs → observational-memory-SF36C4XR-VIMLDSHT.cjs} +29 -29
- package/dist/{observational-memory-OJN26RQ4-DTEVO3PP.cjs.map → observational-memory-SF36C4XR-VIMLDSHT.cjs.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.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/server-adapter/index.cjs +21 -21
- package/dist/server/server-adapter/index.js +4 -4
- package/dist/working-memory-state-OMSMSYAW-4THWAGFK.cjs +24 -0
- package/dist/{working-memory-state-OMSMSYAW-GCNI4HPX.cjs.map → working-memory-state-OMSMSYAW-4THWAGFK.cjs.map} +1 -1
- package/dist/working-memory-state-OMSMSYAW-NEULPFZX.js +3 -0
- package/dist/{working-memory-state-OMSMSYAW-6OXJFZFI.js.map → working-memory-state-OMSMSYAW-NEULPFZX.js.map} +1 -1
- package/package.json +3 -3
- package/dist/chunk-BAVSXFC6.cjs +0 -744
- package/dist/chunk-I5K3Z37P.cjs.map +0 -1
- package/dist/chunk-OMNQYWK3.js.map +0 -1
- package/dist/chunk-SX2AJUSP.cjs.map +0 -1
- package/dist/chunk-UWJ25WPB.js.map +0 -1
- package/dist/dist-BJSMOQXN.cjs +0 -16
- package/dist/dist-SOVT5P5X.js +0 -3
- package/dist/working-memory-state-OMSMSYAW-6OXJFZFI.js +0 -3
- package/dist/working-memory-state-OMSMSYAW-GCNI4HPX.cjs +0 -24
|
@@ -1455,7 +1455,7 @@ var require_dist = __commonJS({
|
|
|
1455
1455
|
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]);
|
|
1456
1456
|
async function e() {
|
|
1457
1457
|
return (function(t2) {
|
|
1458
|
-
const { exports: { mem: e2, xxh32: n, xxh64: r, init32: i, update32: a, digest32: o, init64: s, update64:
|
|
1458
|
+
const { exports: { mem: e2, xxh32: n, xxh64: r, init32: i, update32: a, digest32: o, init64: s, update64: u3, digest64: c } } = t2;
|
|
1459
1459
|
let h = new Uint8Array(e2.buffer);
|
|
1460
1460
|
function g(t3, n2) {
|
|
1461
1461
|
if (e2.buffer.byteLength < t3 + n2) {
|
|
@@ -1475,17 +1475,17 @@ async function e() {
|
|
|
1475
1475
|
return t3 >>> 0;
|
|
1476
1476
|
}
|
|
1477
1477
|
const b = 2n ** 64n - 1n;
|
|
1478
|
-
function
|
|
1478
|
+
function d(t3) {
|
|
1479
1479
|
return t3 & b;
|
|
1480
1480
|
}
|
|
1481
1481
|
const w = new TextEncoder(), l = 0, p = 0n;
|
|
1482
|
-
function
|
|
1482
|
+
function x(t3, e3 = l) {
|
|
1483
1483
|
return g(3 * t3.length, 0), y(n(0, w.encodeInto(t3, h).written, e3));
|
|
1484
1484
|
}
|
|
1485
1485
|
function L2(t3, e3 = p) {
|
|
1486
|
-
return g(3 * t3.length, 0),
|
|
1486
|
+
return g(3 * t3.length, 0), d(r(0, w.encodeInto(t3, h).written, e3));
|
|
1487
1487
|
}
|
|
1488
|
-
return { h32:
|
|
1488
|
+
return { h32: x, h32ToString: (t3, e3 = l) => x(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), d(r(0, t3.byteLength, e3))), create64: (t3 = p) => f(88, t3, s, u3, c, d) };
|
|
1489
1489
|
})((await WebAssembly.instantiate(t)).instance);
|
|
1490
1490
|
}
|
|
1491
1491
|
|
|
@@ -1745,34 +1745,34 @@ var Mutex = class {
|
|
|
1745
1745
|
};
|
|
1746
1746
|
var S = channel("lru-cache:metrics");
|
|
1747
1747
|
var W = tracingChannel("lru-cache");
|
|
1748
|
-
var
|
|
1749
|
-
var
|
|
1748
|
+
var C = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
1749
|
+
var D = () => S.hasSubscribers || W.hasSubscribers;
|
|
1750
1750
|
var U = /* @__PURE__ */ new Set();
|
|
1751
|
-
var
|
|
1752
|
-
var
|
|
1753
|
-
typeof
|
|
1751
|
+
var L = typeof process == "object" && process ? process : {};
|
|
1752
|
+
var P = (u3, e2, t2, i) => {
|
|
1753
|
+
typeof L.emitWarning == "function" ? L.emitWarning(u3, e2, t2, i) : console.error(`[${t2}] ${e2}: ${u3}`);
|
|
1754
1754
|
};
|
|
1755
|
-
var H = (
|
|
1756
|
-
var
|
|
1757
|
-
var j = (
|
|
1755
|
+
var H = (u3) => !U.has(u3);
|
|
1756
|
+
var F = (u3) => !!u3 && u3 === Math.floor(u3) && u3 > 0 && isFinite(u3);
|
|
1757
|
+
var j = (u3) => F(u3) ? u3 <= Math.pow(2, 8) ? Uint8Array : u3 <= Math.pow(2, 16) ? Uint16Array : u3 <= Math.pow(2, 32) ? Uint32Array : u3 <= Number.MAX_SAFE_INTEGER ? O : null : null;
|
|
1758
1758
|
var O = class extends Array {
|
|
1759
1759
|
constructor(e2) {
|
|
1760
1760
|
super(e2), this.fill(0);
|
|
1761
1761
|
}
|
|
1762
1762
|
};
|
|
1763
|
-
var
|
|
1763
|
+
var R = class u {
|
|
1764
1764
|
heap;
|
|
1765
1765
|
length;
|
|
1766
1766
|
static #o = false;
|
|
1767
1767
|
static create(e2) {
|
|
1768
1768
|
let t2 = j(e2);
|
|
1769
1769
|
if (!t2) return [];
|
|
1770
|
-
|
|
1771
|
-
let i = new
|
|
1772
|
-
return
|
|
1770
|
+
u.#o = true;
|
|
1771
|
+
let i = new u(e2, t2);
|
|
1772
|
+
return u.#o = false, i;
|
|
1773
1773
|
}
|
|
1774
1774
|
constructor(e2, t2) {
|
|
1775
|
-
if (!
|
|
1775
|
+
if (!u.#o) throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
1776
1776
|
this.heap = new t2(e2), this.length = 0;
|
|
1777
1777
|
}
|
|
1778
1778
|
push(e2) {
|
|
@@ -1782,14 +1782,14 @@ var x = class d {
|
|
|
1782
1782
|
return this.heap[--this.length];
|
|
1783
1783
|
}
|
|
1784
1784
|
};
|
|
1785
|
-
var
|
|
1785
|
+
var M = class u2 {
|
|
1786
1786
|
#o;
|
|
1787
|
-
#
|
|
1788
|
-
#S;
|
|
1789
|
-
#O;
|
|
1787
|
+
#u;
|
|
1790
1788
|
#w;
|
|
1789
|
+
#x;
|
|
1790
|
+
#S;
|
|
1791
1791
|
#M;
|
|
1792
|
-
#
|
|
1792
|
+
#U;
|
|
1793
1793
|
#m;
|
|
1794
1794
|
get perf() {
|
|
1795
1795
|
return this.#m;
|
|
@@ -1809,15 +1809,14 @@ var I = class d2 {
|
|
|
1809
1809
|
allowStaleOnFetchAbort;
|
|
1810
1810
|
allowStaleOnFetchRejection;
|
|
1811
1811
|
ignoreFetchAbort;
|
|
1812
|
-
backgroundFetchSize;
|
|
1813
1812
|
#n;
|
|
1814
1813
|
#b;
|
|
1815
1814
|
#s;
|
|
1816
1815
|
#i;
|
|
1817
1816
|
#t;
|
|
1818
|
-
#l;
|
|
1819
|
-
#u;
|
|
1820
1817
|
#a;
|
|
1818
|
+
#c;
|
|
1819
|
+
#l;
|
|
1821
1820
|
#h;
|
|
1822
1821
|
#y;
|
|
1823
1822
|
#r;
|
|
@@ -1826,12 +1825,12 @@ var I = class d2 {
|
|
|
1826
1825
|
#d;
|
|
1827
1826
|
#g;
|
|
1828
1827
|
#T;
|
|
1829
|
-
#
|
|
1828
|
+
#W;
|
|
1830
1829
|
#f;
|
|
1831
|
-
#
|
|
1830
|
+
#j;
|
|
1832
1831
|
static unsafeExposeInternals(e2) {
|
|
1833
|
-
return { starts: e2.#F, ttls: e2.#d, autopurgeTimers: e2.#g, sizes: e2.#_, keyMap: e2.#s, keyList: e2.#i, valList: e2.#t, next: e2.#
|
|
1834
|
-
return e2.#
|
|
1832
|
+
return { starts: e2.#F, ttls: e2.#d, autopurgeTimers: e2.#g, sizes: e2.#_, keyMap: e2.#s, keyList: e2.#i, valList: e2.#t, next: e2.#a, prev: e2.#c, get head() {
|
|
1833
|
+
return e2.#l;
|
|
1835
1834
|
}, get tail() {
|
|
1836
1835
|
return e2.#h;
|
|
1837
1836
|
}, 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) };
|
|
@@ -1840,7 +1839,7 @@ var I = class d2 {
|
|
|
1840
1839
|
return this.#o;
|
|
1841
1840
|
}
|
|
1842
1841
|
get maxSize() {
|
|
1843
|
-
return this.#
|
|
1842
|
+
return this.#u;
|
|
1844
1843
|
}
|
|
1845
1844
|
get calculatedSize() {
|
|
1846
1845
|
return this.#b;
|
|
@@ -1852,139 +1851,134 @@ var I = class d2 {
|
|
|
1852
1851
|
return this.#M;
|
|
1853
1852
|
}
|
|
1854
1853
|
get memoMethod() {
|
|
1855
|
-
return this.#
|
|
1854
|
+
return this.#U;
|
|
1856
1855
|
}
|
|
1857
1856
|
get dispose() {
|
|
1858
|
-
return this.#
|
|
1857
|
+
return this.#w;
|
|
1859
1858
|
}
|
|
1860
1859
|
get onInsert() {
|
|
1861
|
-
return this.#
|
|
1860
|
+
return this.#x;
|
|
1862
1861
|
}
|
|
1863
1862
|
get disposeAfter() {
|
|
1864
|
-
return this.#
|
|
1863
|
+
return this.#S;
|
|
1865
1864
|
}
|
|
1866
1865
|
constructor(e2) {
|
|
1867
|
-
let { max: t2 = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas:
|
|
1868
|
-
if (
|
|
1869
|
-
if (this.#m =
|
|
1866
|
+
let { max: t2 = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: r, allowStale: h, dispose: l, onInsert: c, disposeAfter: f, noDisposeOnSet: g, noUpdateTTL: p, maxSize: T = 0, maxEntrySize: w = 0, sizeCalculation: y, fetchMethod: a, memoMethod: m, noDeleteOnFetchRejection: _, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: d, allowStaleOnFetchAbort: A, ignoreFetchAbort: z2, perf: x } = e2;
|
|
1867
|
+
if (x !== void 0 && typeof x?.now != "function") throw new TypeError("perf option must have a now() method if specified");
|
|
1868
|
+
if (this.#m = x ?? C, t2 !== 0 && !F(t2)) throw new TypeError("max option must be a nonnegative integer");
|
|
1870
1869
|
let v = t2 ? j(t2) : Array;
|
|
1871
1870
|
if (!v) throw new Error("invalid max value: " + t2);
|
|
1872
|
-
if (this.#o = t2, this.#
|
|
1873
|
-
if (!this.#
|
|
1871
|
+
if (this.#o = t2, this.#u = T, this.maxEntrySize = w || this.#u, this.sizeCalculation = y, this.sizeCalculation) {
|
|
1872
|
+
if (!this.#u && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
1874
1873
|
if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
|
|
1875
1874
|
}
|
|
1876
|
-
if (
|
|
1877
|
-
if (this.#
|
|
1878
|
-
if (this.#M = a, this.#
|
|
1879
|
-
if (this.#
|
|
1880
|
-
if (!
|
|
1875
|
+
if (m !== void 0 && typeof m != "function") throw new TypeError("memoMethod must be a function if defined");
|
|
1876
|
+
if (this.#U = m, a !== void 0 && typeof a != "function") throw new TypeError("fetchMethod must be a function if specified");
|
|
1877
|
+
if (this.#M = a, this.#W = !!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.#a = new v(t2), this.#c = new v(t2), this.#l = 0, this.#h = 0, this.#y = R.create(t2), this.#n = 0, this.#b = 0, typeof l == "function" && (this.#w = l), typeof c == "function" && (this.#x = c), typeof f == "function" ? (this.#S = f, this.#r = []) : (this.#S = void 0, this.#r = void 0), this.#T = !!this.#w, this.#j = !!this.#x, this.#f = !!this.#S, this.noDisposeOnSet = !!g, this.noUpdateTTL = !!p, this.noDeleteOnFetchRejection = !!_, this.allowStaleOnFetchRejection = !!d, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!z2, this.maxEntrySize !== 0) {
|
|
1878
|
+
if (this.#u !== 0 && !F(this.#u)) throw new TypeError("maxSize must be a positive integer if specified");
|
|
1879
|
+
if (!F(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
1881
1880
|
this.#X();
|
|
1882
1881
|
}
|
|
1883
|
-
if (this.allowStale = !!h, this.noDeleteOnStaleGet = !!b, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!
|
|
1884
|
-
if (!
|
|
1885
|
-
this.#
|
|
1882
|
+
if (this.allowStale = !!h, this.noDeleteOnStaleGet = !!b, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!r, this.ttlResolution = F(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n, this.ttl = i || 0, this.ttl) {
|
|
1883
|
+
if (!F(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
|
|
1884
|
+
this.#H();
|
|
1886
1885
|
}
|
|
1887
|
-
if (this.#o === 0 && this.ttl === 0 && this.#
|
|
1888
|
-
if (!this.ttlAutopurge && !this.#o && !this.#
|
|
1889
|
-
let
|
|
1890
|
-
H(
|
|
1886
|
+
if (this.#o === 0 && this.ttl === 0 && this.#u === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
1887
|
+
if (!this.ttlAutopurge && !this.#o && !this.#u) {
|
|
1888
|
+
let E = "LRU_CACHE_UNBOUNDED";
|
|
1889
|
+
H(E) && (U.add(E), P("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", E, u2));
|
|
1891
1890
|
}
|
|
1892
1891
|
}
|
|
1893
1892
|
getRemainingTTL(e2) {
|
|
1894
1893
|
return this.#s.has(e2) ? 1 / 0 : 0;
|
|
1895
1894
|
}
|
|
1896
|
-
#
|
|
1895
|
+
#H() {
|
|
1897
1896
|
let e2 = new O(this.#o), t2 = new O(this.#o);
|
|
1898
1897
|
this.#d = e2, this.#F = t2;
|
|
1899
1898
|
let i = this.ttlAutopurge ? Array.from({ length: this.#o }) : void 0;
|
|
1900
|
-
this.#g = i, this.#
|
|
1901
|
-
t2[
|
|
1902
|
-
}, this.#
|
|
1903
|
-
t2[
|
|
1904
|
-
};
|
|
1905
|
-
let s = this.ttlAutopurge ? (
|
|
1906
|
-
if (i?.[
|
|
1907
|
-
let
|
|
1908
|
-
this.#p(
|
|
1909
|
-
},
|
|
1910
|
-
|
|
1899
|
+
this.#g = i, this.#N = (r, h, l = this.#m.now()) => {
|
|
1900
|
+
t2[r] = h !== 0 ? l : 0, e2[r] = h, s(r, h);
|
|
1901
|
+
}, this.#D = (r) => {
|
|
1902
|
+
t2[r] = e2[r] !== 0 ? this.#m.now() : 0, s(r, e2[r]);
|
|
1903
|
+
};
|
|
1904
|
+
let s = this.ttlAutopurge ? (r, h) => {
|
|
1905
|
+
if (i?.[r] && (clearTimeout(i[r]), i[r] = void 0), h && h !== 0 && i) {
|
|
1906
|
+
let l = setTimeout(() => {
|
|
1907
|
+
this.#p(r) && this.#v(this.#i[r], "expire");
|
|
1908
|
+
}, h + 1);
|
|
1909
|
+
l.unref && l.unref(), i[r] = l;
|
|
1911
1910
|
}
|
|
1912
1911
|
} : () => {
|
|
1913
1912
|
};
|
|
1914
|
-
this.#
|
|
1915
|
-
if (e2[
|
|
1916
|
-
let
|
|
1917
|
-
if (!
|
|
1918
|
-
|
|
1919
|
-
let
|
|
1920
|
-
|
|
1913
|
+
this.#E = (r, h) => {
|
|
1914
|
+
if (e2[h]) {
|
|
1915
|
+
let l = e2[h], c = t2[h];
|
|
1916
|
+
if (!l || !c) return;
|
|
1917
|
+
r.ttl = l, r.start = c, r.now = n || o();
|
|
1918
|
+
let f = r.now - c;
|
|
1919
|
+
r.remainingTTL = l - f;
|
|
1921
1920
|
}
|
|
1922
1921
|
};
|
|
1923
1922
|
let n = 0, o = () => {
|
|
1924
|
-
let
|
|
1923
|
+
let r = this.#m.now();
|
|
1925
1924
|
if (this.ttlResolution > 0) {
|
|
1926
|
-
n =
|
|
1927
|
-
let
|
|
1928
|
-
|
|
1925
|
+
n = r;
|
|
1926
|
+
let h = setTimeout(() => n = 0, this.ttlResolution);
|
|
1927
|
+
h.unref && h.unref();
|
|
1929
1928
|
}
|
|
1930
|
-
return
|
|
1931
|
-
};
|
|
1932
|
-
this.getRemainingTTL = (h) => {
|
|
1933
|
-
let r = this.#s.get(h);
|
|
1934
|
-
return r === void 0 ? 0 : l(r);
|
|
1929
|
+
return r;
|
|
1935
1930
|
};
|
|
1936
|
-
|
|
1937
|
-
let
|
|
1938
|
-
if (
|
|
1939
|
-
let
|
|
1940
|
-
return
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1931
|
+
this.getRemainingTTL = (r) => {
|
|
1932
|
+
let h = this.#s.get(r);
|
|
1933
|
+
if (h === void 0) return 0;
|
|
1934
|
+
let l = e2[h], c = t2[h];
|
|
1935
|
+
if (!l || !c) return 1 / 0;
|
|
1936
|
+
let f = (n || o()) - c;
|
|
1937
|
+
return l - f;
|
|
1938
|
+
}, this.#p = (r) => {
|
|
1939
|
+
let h = t2[r], l = e2[r];
|
|
1940
|
+
return !!l && !!h && (n || o()) - h > l;
|
|
1945
1941
|
};
|
|
1946
1942
|
}
|
|
1947
|
-
#
|
|
1943
|
+
#D = () => {
|
|
1948
1944
|
};
|
|
1949
|
-
#
|
|
1945
|
+
#E = () => {
|
|
1950
1946
|
};
|
|
1951
|
-
#
|
|
1947
|
+
#N = () => {
|
|
1952
1948
|
};
|
|
1953
1949
|
#p = () => false;
|
|
1954
1950
|
#X() {
|
|
1955
1951
|
let e2 = new O(this.#o);
|
|
1956
|
-
this.#b = 0, this.#_ = e2, this.#
|
|
1952
|
+
this.#b = 0, this.#_ = e2, this.#R = (t2) => {
|
|
1957
1953
|
this.#b -= e2[t2], e2[t2] = 0;
|
|
1958
|
-
}, this.#
|
|
1959
|
-
if (
|
|
1960
|
-
|
|
1961
|
-
if (n)
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
} else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
1965
|
-
}
|
|
1954
|
+
}, this.#k = (t2, i, s, n) => {
|
|
1955
|
+
if (this.#e(i)) return 0;
|
|
1956
|
+
if (!F(s)) if (n) {
|
|
1957
|
+
if (typeof n != "function") throw new TypeError("sizeCalculation must be a function");
|
|
1958
|
+
if (s = n(i, t2), !F(s)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
1959
|
+
} else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
1966
1960
|
return s;
|
|
1967
|
-
}, this.#
|
|
1968
|
-
if (e2[t2] = i, this.#
|
|
1969
|
-
let n = this.#
|
|
1961
|
+
}, this.#I = (t2, i, s) => {
|
|
1962
|
+
if (e2[t2] = i, this.#u) {
|
|
1963
|
+
let n = this.#u - e2[t2];
|
|
1970
1964
|
for (; this.#b > n; ) this.#G(true);
|
|
1971
1965
|
}
|
|
1972
1966
|
this.#b += e2[t2], s && (s.entrySize = i, s.totalCalculatedSize = this.#b);
|
|
1973
1967
|
};
|
|
1974
1968
|
}
|
|
1975
|
-
#
|
|
1969
|
+
#R = (e2) => {
|
|
1976
1970
|
};
|
|
1977
|
-
#
|
|
1971
|
+
#I = (e2, t2, i) => {
|
|
1978
1972
|
};
|
|
1979
|
-
#
|
|
1973
|
+
#k = (e2, t2, i, s) => {
|
|
1980
1974
|
if (i || s) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
1981
1975
|
return 0;
|
|
1982
1976
|
};
|
|
1983
1977
|
*#A({ allowStale: e2 = this.allowStale } = {}) {
|
|
1984
|
-
if (this.#n) for (let t2 = this.#h; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#
|
|
1978
|
+
if (this.#n) for (let t2 = this.#h; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#l); ) t2 = this.#c[t2];
|
|
1985
1979
|
}
|
|
1986
1980
|
*#z({ allowStale: e2 = this.allowStale } = {}) {
|
|
1987
|
-
if (this.#n) for (let t2 = this.#
|
|
1981
|
+
if (this.#n) for (let t2 = this.#l; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#h); ) t2 = this.#a[t2];
|
|
1988
1982
|
}
|
|
1989
1983
|
#V(e2) {
|
|
1990
1984
|
return e2 !== void 0 && this.#s.get(this.#i[e2]) === e2;
|
|
@@ -2037,7 +2031,7 @@ var I = class d2 {
|
|
|
2037
2031
|
}
|
|
2038
2032
|
purgeStale() {
|
|
2039
2033
|
let e2 = false;
|
|
2040
|
-
for (let t2 of this.#z({ allowStale: true })) this.#p(t2) && (this.#
|
|
2034
|
+
for (let t2 of this.#z({ allowStale: true })) this.#p(t2) && (this.#v(this.#i[t2], "expire"), e2 = true);
|
|
2041
2035
|
return e2;
|
|
2042
2036
|
}
|
|
2043
2037
|
info(e2) {
|
|
@@ -2047,9 +2041,9 @@ var I = class d2 {
|
|
|
2047
2041
|
if (s === void 0) return;
|
|
2048
2042
|
let n = { value: s };
|
|
2049
2043
|
if (this.#d && this.#F) {
|
|
2050
|
-
let o = this.#d[t2],
|
|
2051
|
-
if (o &&
|
|
2052
|
-
let h = o - (this.#m.now() -
|
|
2044
|
+
let o = this.#d[t2], r = this.#F[t2];
|
|
2045
|
+
if (o && r) {
|
|
2046
|
+
let h = o - (this.#m.now() - r);
|
|
2053
2047
|
n.ttl = h, n.start = Date.now();
|
|
2054
2048
|
}
|
|
2055
2049
|
}
|
|
@@ -2063,8 +2057,8 @@ var I = class d2 {
|
|
|
2063
2057
|
let o = { value: n };
|
|
2064
2058
|
if (this.#d && this.#F) {
|
|
2065
2059
|
o.ttl = this.#d[t2];
|
|
2066
|
-
let
|
|
2067
|
-
o.start = Math.floor(Date.now() -
|
|
2060
|
+
let r = this.#m.now() - this.#F[t2];
|
|
2061
|
+
o.start = Math.floor(Date.now() - r);
|
|
2068
2062
|
}
|
|
2069
2063
|
this.#_ && (o.size = this.#_[t2]), e2.unshift([i, o]);
|
|
2070
2064
|
}
|
|
@@ -2077,49 +2071,51 @@ var I = class d2 {
|
|
|
2077
2071
|
let s = Date.now() - i.start;
|
|
2078
2072
|
i.start = this.#m.now() - s;
|
|
2079
2073
|
}
|
|
2080
|
-
this.#
|
|
2074
|
+
this.#O(t2, i.value, i);
|
|
2081
2075
|
}
|
|
2082
2076
|
}
|
|
2083
2077
|
set(e2, t2, i = {}) {
|
|
2084
2078
|
let { status: s = S.hasSubscribers ? {} : void 0 } = i;
|
|
2085
|
-
i.status = s, s && (s.op = "set", s.key = e2, t2 !== void 0 && (s.value = t2)
|
|
2086
|
-
let n = this.#
|
|
2079
|
+
i.status = s, s && (s.op = "set", s.key = e2, t2 !== void 0 && (s.value = t2));
|
|
2080
|
+
let n = this.#O(e2, t2, i);
|
|
2087
2081
|
return s && S.hasSubscribers && S.publish(s), n;
|
|
2088
2082
|
}
|
|
2089
|
-
#
|
|
2090
|
-
let { ttl:
|
|
2091
|
-
if (t2 === void 0) return
|
|
2092
|
-
let { noUpdateTTL:
|
|
2093
|
-
|
|
2094
|
-
let
|
|
2095
|
-
if (this.maxEntrySize &&
|
|
2096
|
-
let
|
|
2097
|
-
if (
|
|
2083
|
+
#O(e2, t2, i = {}) {
|
|
2084
|
+
let { ttl: s = this.ttl, start: n, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: r = this.sizeCalculation, status: h } = i;
|
|
2085
|
+
if (t2 === void 0) return h && (h.set = "deleted"), this.delete(e2), this;
|
|
2086
|
+
let { noUpdateTTL: l = this.noUpdateTTL } = i;
|
|
2087
|
+
h && !this.#e(t2) && (h.value = t2);
|
|
2088
|
+
let c = this.#k(e2, t2, i.size || 0, r, h);
|
|
2089
|
+
if (this.maxEntrySize && c > this.maxEntrySize) return this.#v(e2, "set"), h && (h.set = "miss", h.maxEntrySizeExceeded = true), this;
|
|
2090
|
+
let f = this.#n === 0 ? void 0 : this.#s.get(e2);
|
|
2091
|
+
if (f === void 0) f = this.#n === 0 ? this.#h : this.#y.length !== 0 ? this.#y.pop() : this.#n === this.#o ? this.#G(false) : this.#n, this.#i[f] = e2, this.#t[f] = t2, this.#s.set(e2, f), this.#a[this.#h] = f, this.#c[f] = this.#h, this.#h = f, this.#n++, this.#I(f, c, h), h && (h.set = "add"), l = false, this.#j && this.#x?.(t2, e2, "add");
|
|
2098
2092
|
else {
|
|
2099
|
-
this.#L(
|
|
2100
|
-
let g = this.#t[
|
|
2093
|
+
this.#L(f);
|
|
2094
|
+
let g = this.#t[f];
|
|
2101
2095
|
if (t2 !== g) {
|
|
2102
|
-
if (
|
|
2103
|
-
g
|
|
2104
|
-
let { __staleWhileFetching:
|
|
2105
|
-
|
|
2106
|
-
} else this.#T && this.#
|
|
2107
|
-
if (this.#
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2096
|
+
if (this.#W && this.#e(g)) {
|
|
2097
|
+
g.__abortController.abort(new Error("replaced"));
|
|
2098
|
+
let { __staleWhileFetching: p } = g;
|
|
2099
|
+
p !== void 0 && !o && (this.#T && this.#w?.(p, e2, "set"), this.#f && this.#r?.push([p, e2, "set"]));
|
|
2100
|
+
} else o || (this.#T && this.#w?.(g, e2, "set"), this.#f && this.#r?.push([g, e2, "set"]));
|
|
2101
|
+
if (this.#R(f), this.#I(f, c, h), this.#t[f] = t2, h) {
|
|
2102
|
+
h.set = "replace";
|
|
2103
|
+
let p = g && this.#e(g) ? g.__staleWhileFetching : g;
|
|
2104
|
+
p !== void 0 && (h.oldValue = p);
|
|
2105
|
+
}
|
|
2106
|
+
} else h && (h.set = "update");
|
|
2107
|
+
this.#j && this.onInsert?.(t2, e2, t2 === g ? "update" : "replace");
|
|
2108
|
+
}
|
|
2109
|
+
if (s !== 0 && !this.#d && this.#H(), this.#d && (l || this.#N(f, s, n), h && this.#E(h, f)), !o && this.#f && this.#r) {
|
|
2110
|
+
let g = this.#r, p;
|
|
2111
|
+
for (; p = g?.shift(); ) this.#S?.(...p);
|
|
2116
2112
|
}
|
|
2117
2113
|
return this;
|
|
2118
2114
|
}
|
|
2119
2115
|
pop() {
|
|
2120
2116
|
try {
|
|
2121
2117
|
for (; this.#n; ) {
|
|
2122
|
-
let e2 = this.#t[this.#
|
|
2118
|
+
let e2 = this.#t[this.#l];
|
|
2123
2119
|
if (this.#G(true), this.#e(e2)) {
|
|
2124
2120
|
if (e2.__staleWhileFetching) return e2.__staleWhileFetching;
|
|
2125
2121
|
} else if (e2 !== void 0) return e2;
|
|
@@ -2127,19 +2123,17 @@ var I = class d2 {
|
|
|
2127
2123
|
} finally {
|
|
2128
2124
|
if (this.#f && this.#r) {
|
|
2129
2125
|
let e2 = this.#r, t2;
|
|
2130
|
-
for (; t2 = e2?.shift(); ) this.#
|
|
2126
|
+
for (; t2 = e2?.shift(); ) this.#S?.(...t2);
|
|
2131
2127
|
}
|
|
2132
2128
|
}
|
|
2133
2129
|
}
|
|
2134
2130
|
#G(e2) {
|
|
2135
|
-
let t2 = this.#
|
|
2136
|
-
|
|
2137
|
-
let o = n ? s.__staleWhileFetching : s;
|
|
2138
|
-
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;
|
|
2131
|
+
let t2 = this.#l, i = this.#i[t2], s = this.#t[t2];
|
|
2132
|
+
return this.#W && this.#e(s) ? s.__abortController.abort(new Error("evicted")) : (this.#T || this.#f) && (this.#T && this.#w?.(s, i, "evict"), this.#f && this.#r?.push([s, i, "evict"])), this.#R(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.#l = this.#h = 0, this.#y.length = 0) : this.#l = this.#a[t2], this.#s.delete(i), this.#n--, t2;
|
|
2139
2133
|
}
|
|
2140
2134
|
has(e2, t2 = {}) {
|
|
2141
2135
|
let { status: i = S.hasSubscribers ? {} : void 0 } = t2;
|
|
2142
|
-
t2.status = i, i && (i.op = "has", i.key = e2
|
|
2136
|
+
t2.status = i, i && (i.op = "has", i.key = e2);
|
|
2143
2137
|
let s = this.#Y(e2, t2);
|
|
2144
2138
|
return S.hasSubscribers && S.publish(i), s;
|
|
2145
2139
|
}
|
|
@@ -2148,14 +2142,14 @@ var I = class d2 {
|
|
|
2148
2142
|
if (n !== void 0) {
|
|
2149
2143
|
let o = this.#t[n];
|
|
2150
2144
|
if (this.#e(o) && o.__staleWhileFetching === void 0) return false;
|
|
2151
|
-
if (this.#p(n)) s && (s.has = "stale", this.#
|
|
2152
|
-
else return i && this.#
|
|
2145
|
+
if (this.#p(n)) s && (s.has = "stale", this.#E(s, n));
|
|
2146
|
+
else return i && this.#D(n), s && (s.has = "hit", this.#E(s, n)), true;
|
|
2153
2147
|
} else s && (s.has = "miss");
|
|
2154
2148
|
return false;
|
|
2155
2149
|
}
|
|
2156
2150
|
peek(e2, t2 = {}) {
|
|
2157
|
-
let { status: i =
|
|
2158
|
-
i && (i.op = "peek", i.key = e2
|
|
2151
|
+
let { status: i = D() ? {} : void 0 } = t2;
|
|
2152
|
+
i && (i.op = "peek", i.key = e2), t2.status = i;
|
|
2159
2153
|
let s = this.#J(e2, t2);
|
|
2160
2154
|
return S.hasSubscribers && S.publish(i), s;
|
|
2161
2155
|
}
|
|
@@ -2165,67 +2159,67 @@ var I = class d2 {
|
|
|
2165
2159
|
i && (i.peek = n === void 0 ? "miss" : "stale");
|
|
2166
2160
|
return;
|
|
2167
2161
|
}
|
|
2168
|
-
let o = this.#t[n],
|
|
2169
|
-
return i && (
|
|
2162
|
+
let o = this.#t[n], r = this.#e(o) ? o.__staleWhileFetching : o;
|
|
2163
|
+
return i && (r !== void 0 ? (i.peek = "hit", i.value = r) : i.peek = "miss"), r;
|
|
2170
2164
|
}
|
|
2171
2165
|
#P(e2, t2, i, s) {
|
|
2172
2166
|
let n = t2 === void 0 ? void 0 : this.#t[t2];
|
|
2173
2167
|
if (this.#e(n)) return n;
|
|
2174
|
-
let o = new AbortController(), { signal:
|
|
2175
|
-
|
|
2176
|
-
let h = { signal: o.signal, options: i, context: s },
|
|
2177
|
-
let { aborted: a } = o.signal,
|
|
2178
|
-
if (i.status && (a && !y ? (i.status.fetchAborted = true, i.status.fetchError = o.signal.reason,
|
|
2179
|
-
let b =
|
|
2180
|
-
return (
|
|
2181
|
-
}, c = (
|
|
2182
|
-
let { aborted: a } = o.signal,
|
|
2183
|
-
if (this.#t[t2] ===
|
|
2184
|
-
if (
|
|
2185
|
-
},
|
|
2168
|
+
let o = new AbortController(), { signal: r } = i;
|
|
2169
|
+
r?.addEventListener("abort", () => o.abort(r.reason), { signal: o.signal });
|
|
2170
|
+
let h = { signal: o.signal, options: i, context: s }, l = (w, y = false) => {
|
|
2171
|
+
let { aborted: a } = o.signal, m = i.ignoreFetchAbort && w !== void 0, _ = i.ignoreFetchAbort || !!(i.allowStaleOnFetchAbort && w !== void 0);
|
|
2172
|
+
if (i.status && (a && !y ? (i.status.fetchAborted = true, i.status.fetchError = o.signal.reason, m && (i.status.fetchAbortIgnored = true)) : i.status.fetchResolved = true), a && !m && !y) return f(o.signal.reason, _);
|
|
2173
|
+
let b = p, d = this.#t[t2];
|
|
2174
|
+
return (d === p || d === void 0 && m && y) && (w === void 0 ? b.__staleWhileFetching !== void 0 ? this.#t[t2] = b.__staleWhileFetching : this.#v(e2, "fetch") : (i.status && (i.status.fetchUpdated = true), this.#O(e2, w, h.options))), w;
|
|
2175
|
+
}, c = (w) => (i.status && (i.status.fetchRejected = true, i.status.fetchError = w), f(w, false)), f = (w, y) => {
|
|
2176
|
+
let { aborted: a } = o.signal, m = a && i.allowStaleOnFetchAbort, _ = m || i.allowStaleOnFetchRejection, b = _ || i.noDeleteOnFetchRejection, d = p;
|
|
2177
|
+
if (this.#t[t2] === p && (!b || !y && d.__staleWhileFetching === void 0 ? this.#v(e2, "fetch") : m || (this.#t[t2] = d.__staleWhileFetching)), _) return i.status && d.__staleWhileFetching !== void 0 && (i.status.returnedStale = true), d.__staleWhileFetching;
|
|
2178
|
+
if (d.__returned === d) throw w;
|
|
2179
|
+
}, g = (w, y) => {
|
|
2186
2180
|
let a = this.#M?.(e2, n, h);
|
|
2187
|
-
o.signal.addEventListener("abort", () => {
|
|
2188
|
-
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (
|
|
2189
|
-
})
|
|
2181
|
+
a && a instanceof Promise && a.then((m) => w(m === void 0 ? void 0 : m), y), o.signal.addEventListener("abort", () => {
|
|
2182
|
+
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (w(void 0), i.allowStaleOnFetchAbort && (w = (m) => l(m, true)));
|
|
2183
|
+
});
|
|
2190
2184
|
};
|
|
2191
2185
|
i.status && (i.status.fetchDispatched = true);
|
|
2192
|
-
let
|
|
2193
|
-
return t2 === void 0 ? (this.#
|
|
2186
|
+
let p = new Promise(g).then(l, c), T = Object.assign(p, { __abortController: o, __staleWhileFetching: n, __returned: void 0 });
|
|
2187
|
+
return t2 === void 0 ? (this.#O(e2, T, { ...h.options, status: void 0 }), t2 = this.#s.get(e2)) : this.#t[t2] = T, T;
|
|
2194
2188
|
}
|
|
2195
2189
|
#e(e2) {
|
|
2196
|
-
if (!this.#
|
|
2190
|
+
if (!this.#W) return false;
|
|
2197
2191
|
let t2 = e2;
|
|
2198
2192
|
return !!t2 && t2 instanceof Promise && t2.hasOwnProperty("__staleWhileFetching") && t2.__abortController instanceof AbortController;
|
|
2199
2193
|
}
|
|
2200
2194
|
fetch(e2, t2 = {}) {
|
|
2201
|
-
let i = W.hasSubscribers, { status: s =
|
|
2195
|
+
let i = W.hasSubscribers, { status: s = D() ? {} : void 0 } = t2;
|
|
2202
2196
|
t2.status = s, s && t2.context && (s.context = t2.context);
|
|
2203
2197
|
let n = this.#B(e2, t2);
|
|
2204
2198
|
return s && i && (s.trace = true, W.tracePromise(() => n, s).catch(() => {
|
|
2205
2199
|
})), n;
|
|
2206
2200
|
}
|
|
2207
2201
|
async #B(e2, t2 = {}) {
|
|
2208
|
-
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet:
|
|
2209
|
-
if (a && (a.op = "fetch", a.key = e2, y && (a.forceRefresh = true)
|
|
2210
|
-
let
|
|
2202
|
+
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: r = this.noDisposeOnSet, size: h = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: c = this.noUpdateTTL, noDeleteOnFetchRejection: f = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: g = this.allowStaleOnFetchRejection, ignoreFetchAbort: p = this.ignoreFetchAbort, allowStaleOnFetchAbort: T = this.allowStaleOnFetchAbort, context: w, forceRefresh: y = false, status: a, signal: m } = t2;
|
|
2203
|
+
if (a && (a.op = "fetch", a.key = e2, y && (a.forceRefresh = true)), !this.#W) return a && (a.fetch = "get"), this.#C(e2, { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, status: a });
|
|
2204
|
+
let _ = { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, ttl: o, noDisposeOnSet: r, size: h, sizeCalculation: l, noUpdateTTL: c, noDeleteOnFetchRejection: f, allowStaleOnFetchRejection: g, allowStaleOnFetchAbort: T, ignoreFetchAbort: p, status: a, signal: m }, b = this.#s.get(e2);
|
|
2211
2205
|
if (b === void 0) {
|
|
2212
2206
|
a && (a.fetch = "miss");
|
|
2213
|
-
let
|
|
2214
|
-
return
|
|
2207
|
+
let d = this.#P(e2, b, _, w);
|
|
2208
|
+
return d.__returned = d;
|
|
2215
2209
|
} else {
|
|
2216
|
-
let
|
|
2217
|
-
if (this.#e(
|
|
2218
|
-
let
|
|
2219
|
-
return a && (a.fetch = "inflight",
|
|
2210
|
+
let d = this.#t[b];
|
|
2211
|
+
if (this.#e(d)) {
|
|
2212
|
+
let E = i && d.__staleWhileFetching !== void 0;
|
|
2213
|
+
return a && (a.fetch = "inflight", E && (a.returnedStale = true)), E ? d.__staleWhileFetching : d.__returned = d;
|
|
2220
2214
|
}
|
|
2221
2215
|
let A = this.#p(b);
|
|
2222
|
-
if (!y && !A) return a && (a.fetch = "hit"), this.#L(b), s && this.#
|
|
2223
|
-
let z2 = this.#P(e2, b,
|
|
2224
|
-
return a && (a.fetch = A ? "stale" : "refresh",
|
|
2216
|
+
if (!y && !A) return a && (a.fetch = "hit"), this.#L(b), s && this.#D(b), a && this.#E(a, b), d;
|
|
2217
|
+
let z2 = this.#P(e2, b, _, w), v = z2.__staleWhileFetching !== void 0 && i;
|
|
2218
|
+
return a && (a.fetch = A ? "stale" : "refresh", v && A && (a.returnedStale = true)), v ? z2.__staleWhileFetching : z2.__returned = z2;
|
|
2225
2219
|
}
|
|
2226
2220
|
}
|
|
2227
2221
|
forceFetch(e2, t2 = {}) {
|
|
2228
|
-
let i = W.hasSubscribers, { status: s =
|
|
2222
|
+
let i = W.hasSubscribers, { status: s = D() ? {} : void 0 } = t2;
|
|
2229
2223
|
t2.status = s, s && t2.context && (s.context = t2.context);
|
|
2230
2224
|
let n = this.#K(e2, t2);
|
|
2231
2225
|
return s && i && (s.trace = true, W.tracePromise(() => n, s).catch(() => {
|
|
@@ -2238,67 +2232,67 @@ var I = class d2 {
|
|
|
2238
2232
|
}
|
|
2239
2233
|
memo(e2, t2 = {}) {
|
|
2240
2234
|
let { status: i = S.hasSubscribers ? {} : void 0 } = t2;
|
|
2241
|
-
t2.status = i, i && (i.op = "memo", i.key = e2, t2.context && (i.context = t2.context)
|
|
2235
|
+
t2.status = i, i && (i.op = "memo", i.key = e2, t2.context && (i.context = t2.context));
|
|
2242
2236
|
let s = this.#Q(e2, t2);
|
|
2243
2237
|
return i && (i.value = s), S.hasSubscribers && S.publish(i), s;
|
|
2244
2238
|
}
|
|
2245
2239
|
#Q(e2, t2 = {}) {
|
|
2246
|
-
let i = this.#
|
|
2240
|
+
let i = this.#U;
|
|
2247
2241
|
if (!i) throw new Error("no memoMethod provided to constructor");
|
|
2248
|
-
let { context: s, status: n, forceRefresh: o, ...
|
|
2242
|
+
let { context: s, status: n, forceRefresh: o, ...r } = t2;
|
|
2249
2243
|
n && o && (n.forceRefresh = true);
|
|
2250
|
-
let h = this.#C(e2,
|
|
2251
|
-
if (n && (n.memo =
|
|
2252
|
-
let c = i(e2, h, { options:
|
|
2253
|
-
return n && (n.value = c), this.#
|
|
2244
|
+
let h = this.#C(e2, r), l = o || h === void 0;
|
|
2245
|
+
if (n && (n.memo = l ? "miss" : "hit", l || (n.value = h)), !l) return h;
|
|
2246
|
+
let c = i(e2, h, { options: r, context: s });
|
|
2247
|
+
return n && (n.value = c), this.#O(e2, c, r), c;
|
|
2254
2248
|
}
|
|
2255
2249
|
get(e2, t2 = {}) {
|
|
2256
2250
|
let { status: i = S.hasSubscribers ? {} : void 0 } = t2;
|
|
2257
|
-
t2.status = i, i && (i.op = "get", i.key = e2
|
|
2251
|
+
t2.status = i, i && (i.op = "get", i.key = e2);
|
|
2258
2252
|
let s = this.#C(e2, t2);
|
|
2259
2253
|
return i && (s !== void 0 && (i.value = s), S.hasSubscribers && S.publish(i)), s;
|
|
2260
2254
|
}
|
|
2261
2255
|
#C(e2, t2 = {}) {
|
|
2262
|
-
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = t2,
|
|
2263
|
-
if (
|
|
2256
|
+
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = t2, r = this.#s.get(e2);
|
|
2257
|
+
if (r === void 0) {
|
|
2264
2258
|
o && (o.get = "miss");
|
|
2265
2259
|
return;
|
|
2266
2260
|
}
|
|
2267
|
-
let h = this.#t[
|
|
2268
|
-
return o && this.#
|
|
2261
|
+
let h = this.#t[r], l = this.#e(h);
|
|
2262
|
+
return o && this.#E(o, r), this.#p(r) ? l ? (o && (o.get = "stale-fetching"), i && h.__staleWhileFetching !== void 0 ? (o && (o.returnedStale = true), h.__staleWhileFetching) : void 0) : (n || this.#v(e2, "expire"), o && (o.get = "stale"), i ? (o && (o.returnedStale = true), h) : void 0) : (o && (o.get = l ? "fetching" : "hit"), this.#L(r), s && this.#D(r), l ? h.__staleWhileFetching : h);
|
|
2269
2263
|
}
|
|
2270
2264
|
#$(e2, t2) {
|
|
2271
|
-
this.#
|
|
2265
|
+
this.#c[t2] = e2, this.#a[e2] = t2;
|
|
2272
2266
|
}
|
|
2273
2267
|
#L(e2) {
|
|
2274
|
-
e2 !== this.#h && (e2 === this.#
|
|
2268
|
+
e2 !== this.#h && (e2 === this.#l ? this.#l = this.#a[e2] : this.#$(this.#c[e2], this.#a[e2]), this.#$(this.#h, e2), this.#h = e2);
|
|
2275
2269
|
}
|
|
2276
2270
|
delete(e2) {
|
|
2277
|
-
return this.#
|
|
2271
|
+
return this.#v(e2, "delete");
|
|
2278
2272
|
}
|
|
2279
|
-
#
|
|
2280
|
-
S.hasSubscribers && S.publish({ op: "delete", delete: t2, key: e2
|
|
2273
|
+
#v(e2, t2) {
|
|
2274
|
+
S.hasSubscribers && S.publish({ op: "delete", delete: t2, key: e2 });
|
|
2281
2275
|
let i = false;
|
|
2282
2276
|
if (this.#n !== 0) {
|
|
2283
2277
|
let s = this.#s.get(e2);
|
|
2284
|
-
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);
|
|
2278
|
+
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);
|
|
2285
2279
|
else {
|
|
2286
|
-
this.#
|
|
2280
|
+
this.#R(s);
|
|
2287
2281
|
let n = this.#t[s];
|
|
2288
|
-
if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#
|
|
2289
|
-
else if (s === this.#
|
|
2282
|
+
if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#w?.(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.#c[s];
|
|
2283
|
+
else if (s === this.#l) this.#l = this.#a[s];
|
|
2290
2284
|
else {
|
|
2291
|
-
let o = this.#
|
|
2292
|
-
this.#
|
|
2293
|
-
let
|
|
2294
|
-
this.#
|
|
2285
|
+
let o = this.#c[s];
|
|
2286
|
+
this.#a[o] = this.#a[s];
|
|
2287
|
+
let r = this.#a[s];
|
|
2288
|
+
this.#c[r] = this.#c[s];
|
|
2295
2289
|
}
|
|
2296
2290
|
this.#n--, this.#y.push(s);
|
|
2297
2291
|
}
|
|
2298
2292
|
}
|
|
2299
2293
|
if (this.#f && this.#r?.length) {
|
|
2300
2294
|
let s = this.#r, n;
|
|
2301
|
-
for (; n = s?.shift(); ) this.#
|
|
2295
|
+
for (; n = s?.shift(); ) this.#S?.(...n);
|
|
2302
2296
|
}
|
|
2303
2297
|
return i;
|
|
2304
2298
|
}
|
|
@@ -2311,7 +2305,7 @@ var I = class d2 {
|
|
|
2311
2305
|
if (this.#e(i)) i.__abortController.abort(new Error("deleted"));
|
|
2312
2306
|
else {
|
|
2313
2307
|
let s = this.#i[t2];
|
|
2314
|
-
this.#T && this.#
|
|
2308
|
+
this.#T && this.#w?.(i, s, e2), this.#f && this.#r?.push([i, s, e2]);
|
|
2315
2309
|
}
|
|
2316
2310
|
}
|
|
2317
2311
|
if (this.#s.clear(), this.#t.fill(void 0), this.#i.fill(void 0), this.#d && this.#F) {
|
|
@@ -2319,14 +2313,14 @@ var I = class d2 {
|
|
|
2319
2313
|
for (let t2 of this.#g ?? []) t2 !== void 0 && clearTimeout(t2);
|
|
2320
2314
|
this.#g?.fill(void 0);
|
|
2321
2315
|
}
|
|
2322
|
-
if (this.#_ && this.#_.fill(0), this.#
|
|
2316
|
+
if (this.#_ && this.#_.fill(0), this.#l = 0, this.#h = 0, this.#y.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
|
|
2323
2317
|
let t2 = this.#r, i;
|
|
2324
|
-
for (; i = t2?.shift(); ) this.#
|
|
2318
|
+
for (; i = t2?.shift(); ) this.#S?.(...i);
|
|
2325
2319
|
}
|
|
2326
2320
|
}
|
|
2327
2321
|
};
|
|
2328
2322
|
|
|
2329
|
-
// ../memory/dist/chunk-
|
|
2323
|
+
// ../memory/dist/chunk-KJT62NHY.js
|
|
2330
2324
|
var import_image_size = __toESM(require_dist(), 1);
|
|
2331
2325
|
var MINUTE = 6e4;
|
|
2332
2326
|
var HOUR = 60 * MINUTE;
|
|
@@ -7793,7 +7787,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
7793
7787
|
...refs,
|
|
7794
7788
|
currentPath: [...refs.currentPath, "allOf", "1"]
|
|
7795
7789
|
})
|
|
7796
|
-
].filter((
|
|
7790
|
+
].filter((x) => !!x);
|
|
7797
7791
|
let unevaluatedProperties = refs.target === "jsonSchema2019-09" ? { unevaluatedProperties: false } : void 0;
|
|
7798
7792
|
const mergedAllOf = [];
|
|
7799
7793
|
allOf.forEach((schema) => {
|
|
@@ -8022,7 +8016,7 @@ function escapeNonAlphaNumeric(source) {
|
|
|
8022
8016
|
return result;
|
|
8023
8017
|
}
|
|
8024
8018
|
function addFormat(schema, value, message, refs) {
|
|
8025
|
-
if (schema.format || schema.anyOf?.some((
|
|
8019
|
+
if (schema.format || schema.anyOf?.some((x) => x.format)) {
|
|
8026
8020
|
if (!schema.anyOf) {
|
|
8027
8021
|
schema.anyOf = [];
|
|
8028
8022
|
}
|
|
@@ -8050,7 +8044,7 @@ function addFormat(schema, value, message, refs) {
|
|
|
8050
8044
|
}
|
|
8051
8045
|
}
|
|
8052
8046
|
function addPattern(schema, regex, message, refs) {
|
|
8053
|
-
if (schema.pattern || schema.allOf?.some((
|
|
8047
|
+
if (schema.pattern || schema.allOf?.some((x) => x.pattern)) {
|
|
8054
8048
|
if (!schema.allOf) {
|
|
8055
8049
|
schema.allOf = [];
|
|
8056
8050
|
}
|
|
@@ -8258,17 +8252,17 @@ function parseUnionDef(def, refs) {
|
|
|
8258
8252
|
if (refs.target === "openApi3")
|
|
8259
8253
|
return asAnyOf(def, refs);
|
|
8260
8254
|
const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
|
|
8261
|
-
if (options.every((
|
|
8262
|
-
const types = options.reduce((types2,
|
|
8263
|
-
const type = primitiveMappings[
|
|
8255
|
+
if (options.every((x) => x._def.typeName in primitiveMappings && (!x._def.checks || !x._def.checks.length))) {
|
|
8256
|
+
const types = options.reduce((types2, x) => {
|
|
8257
|
+
const type = primitiveMappings[x._def.typeName];
|
|
8264
8258
|
return type && !types2.includes(type) ? [...types2, type] : types2;
|
|
8265
8259
|
}, []);
|
|
8266
8260
|
return {
|
|
8267
8261
|
type: types.length > 1 ? types : types[0]
|
|
8268
8262
|
};
|
|
8269
|
-
} else if (options.every((
|
|
8270
|
-
const types = options.reduce((acc,
|
|
8271
|
-
const type = typeof
|
|
8263
|
+
} else if (options.every((x) => x._def.typeName === "ZodLiteral" && !x.description)) {
|
|
8264
|
+
const types = options.reduce((acc, x) => {
|
|
8265
|
+
const type = typeof x._def.value;
|
|
8272
8266
|
switch (type) {
|
|
8273
8267
|
case "string":
|
|
8274
8268
|
case "number":
|
|
@@ -8277,7 +8271,7 @@ function parseUnionDef(def, refs) {
|
|
|
8277
8271
|
case "bigint":
|
|
8278
8272
|
return [...acc, "integer"];
|
|
8279
8273
|
case "object":
|
|
8280
|
-
if (
|
|
8274
|
+
if (x._def.value === null)
|
|
8281
8275
|
return [...acc, "null"];
|
|
8282
8276
|
case "symbol":
|
|
8283
8277
|
case "undefined":
|
|
@@ -8287,30 +8281,30 @@ function parseUnionDef(def, refs) {
|
|
|
8287
8281
|
}
|
|
8288
8282
|
}, []);
|
|
8289
8283
|
if (types.length === options.length) {
|
|
8290
|
-
const uniqueTypes = types.filter((
|
|
8284
|
+
const uniqueTypes = types.filter((x, i, a) => a.indexOf(x) === i);
|
|
8291
8285
|
return {
|
|
8292
8286
|
type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
|
|
8293
|
-
enum: options.reduce((acc,
|
|
8294
|
-
return acc.includes(
|
|
8287
|
+
enum: options.reduce((acc, x) => {
|
|
8288
|
+
return acc.includes(x._def.value) ? acc : [...acc, x._def.value];
|
|
8295
8289
|
}, [])
|
|
8296
8290
|
};
|
|
8297
8291
|
}
|
|
8298
|
-
} else if (options.every((
|
|
8292
|
+
} else if (options.every((x) => x._def.typeName === "ZodEnum")) {
|
|
8299
8293
|
return {
|
|
8300
8294
|
type: "string",
|
|
8301
|
-
enum: options.reduce((acc,
|
|
8295
|
+
enum: options.reduce((acc, x) => [
|
|
8302
8296
|
...acc,
|
|
8303
|
-
...
|
|
8297
|
+
...x._def.values.filter((x2) => !acc.includes(x2))
|
|
8304
8298
|
], [])
|
|
8305
8299
|
};
|
|
8306
8300
|
}
|
|
8307
8301
|
return asAnyOf(def, refs);
|
|
8308
8302
|
}
|
|
8309
8303
|
var asAnyOf = (def, refs) => {
|
|
8310
|
-
const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map((
|
|
8304
|
+
const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map((x, i) => parseDef(x._def, {
|
|
8311
8305
|
...refs,
|
|
8312
8306
|
currentPath: [...refs.currentPath, "anyOf", `${i}`]
|
|
8313
|
-
})).filter((
|
|
8307
|
+
})).filter((x) => !!x && (!refs.strictUnions || typeof x === "object" && Object.keys(x).length > 0));
|
|
8314
8308
|
return anyOf.length ? { anyOf } : void 0;
|
|
8315
8309
|
};
|
|
8316
8310
|
function parseNullableDef(def, refs) {
|
|
@@ -8490,7 +8484,7 @@ var parsePipelineDef = (def, refs) => {
|
|
|
8490
8484
|
currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"]
|
|
8491
8485
|
});
|
|
8492
8486
|
return {
|
|
8493
|
-
allOf: [a, b].filter((
|
|
8487
|
+
allOf: [a, b].filter((x) => x !== void 0)
|
|
8494
8488
|
};
|
|
8495
8489
|
};
|
|
8496
8490
|
function parsePromiseDef(def, refs) {
|
|
@@ -8519,10 +8513,10 @@ function parseTupleDef(def, refs) {
|
|
|
8519
8513
|
return {
|
|
8520
8514
|
type: "array",
|
|
8521
8515
|
minItems: def.items.length,
|
|
8522
|
-
items: def.items.map((
|
|
8516
|
+
items: def.items.map((x, i) => parseDef(x._def, {
|
|
8523
8517
|
...refs,
|
|
8524
8518
|
currentPath: [...refs.currentPath, "items", `${i}`]
|
|
8525
|
-
})).reduce((acc,
|
|
8519
|
+
})).reduce((acc, x) => x === void 0 ? acc : [...acc, x], []),
|
|
8526
8520
|
additionalItems: parseDef(def.rest._def, {
|
|
8527
8521
|
...refs,
|
|
8528
8522
|
currentPath: [...refs.currentPath, "additionalItems"]
|
|
@@ -8533,10 +8527,10 @@ function parseTupleDef(def, refs) {
|
|
|
8533
8527
|
type: "array",
|
|
8534
8528
|
minItems: def.items.length,
|
|
8535
8529
|
maxItems: def.items.length,
|
|
8536
|
-
items: def.items.map((
|
|
8530
|
+
items: def.items.map((x, i) => parseDef(x._def, {
|
|
8537
8531
|
...refs,
|
|
8538
8532
|
currentPath: [...refs.currentPath, "items", `${i}`]
|
|
8539
|
-
})).reduce((acc,
|
|
8533
|
+
})).reduce((acc, x) => x === void 0 ? acc : [...acc, x], [])
|
|
8540
8534
|
};
|
|
8541
8535
|
}
|
|
8542
8536
|
}
|
|
@@ -12509,7 +12503,7 @@ function parseIntersectionDef2(def, refs) {
|
|
|
12509
12503
|
...refs,
|
|
12510
12504
|
currentPath: [...refs.currentPath, "allOf", "1"]
|
|
12511
12505
|
})
|
|
12512
|
-
].filter((
|
|
12506
|
+
].filter((x) => !!x);
|
|
12513
12507
|
const mergedAllOf = [];
|
|
12514
12508
|
allOf.forEach((schema) => {
|
|
12515
12509
|
if (isJsonSchema7AllOfType2(schema)) {
|
|
@@ -12744,7 +12738,7 @@ function escapeNonAlphaNumeric2(source) {
|
|
|
12744
12738
|
}
|
|
12745
12739
|
function addFormat2(schema, value, message, refs) {
|
|
12746
12740
|
var _a223;
|
|
12747
|
-
if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((
|
|
12741
|
+
if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((x) => x.format))) {
|
|
12748
12742
|
if (!schema.anyOf) {
|
|
12749
12743
|
schema.anyOf = [];
|
|
12750
12744
|
}
|
|
@@ -12764,7 +12758,7 @@ function addFormat2(schema, value, message, refs) {
|
|
|
12764
12758
|
}
|
|
12765
12759
|
function addPattern2(schema, regex, message, refs) {
|
|
12766
12760
|
var _a223;
|
|
12767
|
-
if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((
|
|
12761
|
+
if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((x) => x.pattern))) {
|
|
12768
12762
|
if (!schema.allOf) {
|
|
12769
12763
|
schema.allOf = [];
|
|
12770
12764
|
}
|
|
@@ -12943,19 +12937,19 @@ var primitiveMappings2 = {
|
|
|
12943
12937
|
function parseUnionDef2(def, refs) {
|
|
12944
12938
|
const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
|
|
12945
12939
|
if (options.every(
|
|
12946
|
-
(
|
|
12940
|
+
(x) => x._def.typeName in primitiveMappings2 && (!x._def.checks || !x._def.checks.length)
|
|
12947
12941
|
)) {
|
|
12948
|
-
const types = options.reduce((types2,
|
|
12949
|
-
const type = primitiveMappings2[
|
|
12942
|
+
const types = options.reduce((types2, x) => {
|
|
12943
|
+
const type = primitiveMappings2[x._def.typeName];
|
|
12950
12944
|
return type && !types2.includes(type) ? [...types2, type] : types2;
|
|
12951
12945
|
}, []);
|
|
12952
12946
|
return {
|
|
12953
12947
|
type: types.length > 1 ? types : types[0]
|
|
12954
12948
|
};
|
|
12955
|
-
} else if (options.every((
|
|
12949
|
+
} else if (options.every((x) => x._def.typeName === "ZodLiteral" && !x.description)) {
|
|
12956
12950
|
const types = options.reduce(
|
|
12957
|
-
(acc,
|
|
12958
|
-
const type = typeof
|
|
12951
|
+
(acc, x) => {
|
|
12952
|
+
const type = typeof x._def.value;
|
|
12959
12953
|
switch (type) {
|
|
12960
12954
|
case "string":
|
|
12961
12955
|
case "number":
|
|
@@ -12964,7 +12958,7 @@ function parseUnionDef2(def, refs) {
|
|
|
12964
12958
|
case "bigint":
|
|
12965
12959
|
return [...acc, "integer"];
|
|
12966
12960
|
case "object":
|
|
12967
|
-
if (
|
|
12961
|
+
if (x._def.value === null) return [...acc, "null"];
|
|
12968
12962
|
case "symbol":
|
|
12969
12963
|
case "undefined":
|
|
12970
12964
|
case "function":
|
|
@@ -12975,24 +12969,24 @@ function parseUnionDef2(def, refs) {
|
|
|
12975
12969
|
[]
|
|
12976
12970
|
);
|
|
12977
12971
|
if (types.length === options.length) {
|
|
12978
|
-
const uniqueTypes = types.filter((
|
|
12972
|
+
const uniqueTypes = types.filter((x, i, a) => a.indexOf(x) === i);
|
|
12979
12973
|
return {
|
|
12980
12974
|
type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
|
|
12981
12975
|
enum: options.reduce(
|
|
12982
|
-
(acc,
|
|
12983
|
-
return acc.includes(
|
|
12976
|
+
(acc, x) => {
|
|
12977
|
+
return acc.includes(x._def.value) ? acc : [...acc, x._def.value];
|
|
12984
12978
|
},
|
|
12985
12979
|
[]
|
|
12986
12980
|
)
|
|
12987
12981
|
};
|
|
12988
12982
|
}
|
|
12989
|
-
} else if (options.every((
|
|
12983
|
+
} else if (options.every((x) => x._def.typeName === "ZodEnum")) {
|
|
12990
12984
|
return {
|
|
12991
12985
|
type: "string",
|
|
12992
12986
|
enum: options.reduce(
|
|
12993
|
-
(acc,
|
|
12987
|
+
(acc, x) => [
|
|
12994
12988
|
...acc,
|
|
12995
|
-
...
|
|
12989
|
+
...x._def.values.filter((x2) => !acc.includes(x2))
|
|
12996
12990
|
],
|
|
12997
12991
|
[]
|
|
12998
12992
|
)
|
|
@@ -13002,12 +12996,12 @@ function parseUnionDef2(def, refs) {
|
|
|
13002
12996
|
}
|
|
13003
12997
|
var asAnyOf2 = (def, refs) => {
|
|
13004
12998
|
const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map(
|
|
13005
|
-
(
|
|
12999
|
+
(x, i) => parseDef2(x._def, {
|
|
13006
13000
|
...refs,
|
|
13007
13001
|
currentPath: [...refs.currentPath, "anyOf", `${i}`]
|
|
13008
13002
|
})
|
|
13009
13003
|
).filter(
|
|
13010
|
-
(
|
|
13004
|
+
(x) => !!x && (!refs.strictUnions || typeof x === "object" && Object.keys(x).length > 0)
|
|
13011
13005
|
);
|
|
13012
13006
|
return anyOf.length ? { anyOf } : void 0;
|
|
13013
13007
|
};
|
|
@@ -13143,7 +13137,7 @@ var parsePipelineDef2 = (def, refs) => {
|
|
|
13143
13137
|
currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"]
|
|
13144
13138
|
});
|
|
13145
13139
|
return {
|
|
13146
|
-
allOf: [a, b].filter((
|
|
13140
|
+
allOf: [a, b].filter((x) => x !== void 0)
|
|
13147
13141
|
};
|
|
13148
13142
|
};
|
|
13149
13143
|
function parsePromiseDef2(def, refs) {
|
|
@@ -13173,12 +13167,12 @@ function parseTupleDef2(def, refs) {
|
|
|
13173
13167
|
type: "array",
|
|
13174
13168
|
minItems: def.items.length,
|
|
13175
13169
|
items: def.items.map(
|
|
13176
|
-
(
|
|
13170
|
+
(x, i) => parseDef2(x._def, {
|
|
13177
13171
|
...refs,
|
|
13178
13172
|
currentPath: [...refs.currentPath, "items", `${i}`]
|
|
13179
13173
|
})
|
|
13180
13174
|
).reduce(
|
|
13181
|
-
(acc,
|
|
13175
|
+
(acc, x) => x === void 0 ? acc : [...acc, x],
|
|
13182
13176
|
[]
|
|
13183
13177
|
),
|
|
13184
13178
|
additionalItems: parseDef2(def.rest._def, {
|
|
@@ -13192,12 +13186,12 @@ function parseTupleDef2(def, refs) {
|
|
|
13192
13186
|
minItems: def.items.length,
|
|
13193
13187
|
maxItems: def.items.length,
|
|
13194
13188
|
items: def.items.map(
|
|
13195
|
-
(
|
|
13189
|
+
(x, i) => parseDef2(x._def, {
|
|
13196
13190
|
...refs,
|
|
13197
13191
|
currentPath: [...refs.currentPath, "items", `${i}`]
|
|
13198
13192
|
})
|
|
13199
13193
|
).reduce(
|
|
13200
|
-
(acc,
|
|
13194
|
+
(acc, x) => x === void 0 ? acc : [...acc, x],
|
|
13201
13195
|
[]
|
|
13202
13196
|
)
|
|
13203
13197
|
};
|
|
@@ -17742,7 +17736,7 @@ function parseIntersectionDef3(def, refs) {
|
|
|
17742
17736
|
...refs,
|
|
17743
17737
|
currentPath: [...refs.currentPath, "allOf", "1"]
|
|
17744
17738
|
})
|
|
17745
|
-
].filter((
|
|
17739
|
+
].filter((x) => !!x);
|
|
17746
17740
|
const mergedAllOf = [];
|
|
17747
17741
|
allOf.forEach((schema) => {
|
|
17748
17742
|
if (isJsonSchema7AllOfType3(schema)) {
|
|
@@ -17977,7 +17971,7 @@ function escapeNonAlphaNumeric3(source) {
|
|
|
17977
17971
|
}
|
|
17978
17972
|
function addFormat3(schema, value, message, refs) {
|
|
17979
17973
|
var _a223;
|
|
17980
|
-
if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((
|
|
17974
|
+
if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((x) => x.format))) {
|
|
17981
17975
|
if (!schema.anyOf) {
|
|
17982
17976
|
schema.anyOf = [];
|
|
17983
17977
|
}
|
|
@@ -17997,7 +17991,7 @@ function addFormat3(schema, value, message, refs) {
|
|
|
17997
17991
|
}
|
|
17998
17992
|
function addPattern3(schema, regex, message, refs) {
|
|
17999
17993
|
var _a223;
|
|
18000
|
-
if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((
|
|
17994
|
+
if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((x) => x.pattern))) {
|
|
18001
17995
|
if (!schema.allOf) {
|
|
18002
17996
|
schema.allOf = [];
|
|
18003
17997
|
}
|
|
@@ -18176,19 +18170,19 @@ var primitiveMappings3 = {
|
|
|
18176
18170
|
function parseUnionDef3(def, refs) {
|
|
18177
18171
|
const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
|
|
18178
18172
|
if (options.every(
|
|
18179
|
-
(
|
|
18173
|
+
(x) => x._def.typeName in primitiveMappings3 && (!x._def.checks || !x._def.checks.length)
|
|
18180
18174
|
)) {
|
|
18181
|
-
const types = options.reduce((types2,
|
|
18182
|
-
const type = primitiveMappings3[
|
|
18175
|
+
const types = options.reduce((types2, x) => {
|
|
18176
|
+
const type = primitiveMappings3[x._def.typeName];
|
|
18183
18177
|
return type && !types2.includes(type) ? [...types2, type] : types2;
|
|
18184
18178
|
}, []);
|
|
18185
18179
|
return {
|
|
18186
18180
|
type: types.length > 1 ? types : types[0]
|
|
18187
18181
|
};
|
|
18188
|
-
} else if (options.every((
|
|
18182
|
+
} else if (options.every((x) => x._def.typeName === "ZodLiteral" && !x.description)) {
|
|
18189
18183
|
const types = options.reduce(
|
|
18190
|
-
(acc,
|
|
18191
|
-
const type = typeof
|
|
18184
|
+
(acc, x) => {
|
|
18185
|
+
const type = typeof x._def.value;
|
|
18192
18186
|
switch (type) {
|
|
18193
18187
|
case "string":
|
|
18194
18188
|
case "number":
|
|
@@ -18197,7 +18191,7 @@ function parseUnionDef3(def, refs) {
|
|
|
18197
18191
|
case "bigint":
|
|
18198
18192
|
return [...acc, "integer"];
|
|
18199
18193
|
case "object":
|
|
18200
|
-
if (
|
|
18194
|
+
if (x._def.value === null) return [...acc, "null"];
|
|
18201
18195
|
case "symbol":
|
|
18202
18196
|
case "undefined":
|
|
18203
18197
|
case "function":
|
|
@@ -18208,24 +18202,24 @@ function parseUnionDef3(def, refs) {
|
|
|
18208
18202
|
[]
|
|
18209
18203
|
);
|
|
18210
18204
|
if (types.length === options.length) {
|
|
18211
|
-
const uniqueTypes = types.filter((
|
|
18205
|
+
const uniqueTypes = types.filter((x, i, a) => a.indexOf(x) === i);
|
|
18212
18206
|
return {
|
|
18213
18207
|
type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
|
|
18214
18208
|
enum: options.reduce(
|
|
18215
|
-
(acc,
|
|
18216
|
-
return acc.includes(
|
|
18209
|
+
(acc, x) => {
|
|
18210
|
+
return acc.includes(x._def.value) ? acc : [...acc, x._def.value];
|
|
18217
18211
|
},
|
|
18218
18212
|
[]
|
|
18219
18213
|
)
|
|
18220
18214
|
};
|
|
18221
18215
|
}
|
|
18222
|
-
} else if (options.every((
|
|
18216
|
+
} else if (options.every((x) => x._def.typeName === "ZodEnum")) {
|
|
18223
18217
|
return {
|
|
18224
18218
|
type: "string",
|
|
18225
18219
|
enum: options.reduce(
|
|
18226
|
-
(acc,
|
|
18220
|
+
(acc, x) => [
|
|
18227
18221
|
...acc,
|
|
18228
|
-
...
|
|
18222
|
+
...x._def.values.filter((x2) => !acc.includes(x2))
|
|
18229
18223
|
],
|
|
18230
18224
|
[]
|
|
18231
18225
|
)
|
|
@@ -18235,12 +18229,12 @@ function parseUnionDef3(def, refs) {
|
|
|
18235
18229
|
}
|
|
18236
18230
|
var asAnyOf3 = (def, refs) => {
|
|
18237
18231
|
const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map(
|
|
18238
|
-
(
|
|
18232
|
+
(x, i) => parseDef3(x._def, {
|
|
18239
18233
|
...refs,
|
|
18240
18234
|
currentPath: [...refs.currentPath, "anyOf", `${i}`]
|
|
18241
18235
|
})
|
|
18242
18236
|
).filter(
|
|
18243
|
-
(
|
|
18237
|
+
(x) => !!x && (!refs.strictUnions || typeof x === "object" && Object.keys(x).length > 0)
|
|
18244
18238
|
);
|
|
18245
18239
|
return anyOf.length ? { anyOf } : void 0;
|
|
18246
18240
|
};
|
|
@@ -18376,7 +18370,7 @@ var parsePipelineDef3 = (def, refs) => {
|
|
|
18376
18370
|
currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"]
|
|
18377
18371
|
});
|
|
18378
18372
|
return {
|
|
18379
|
-
allOf: [a, b].filter((
|
|
18373
|
+
allOf: [a, b].filter((x) => x !== void 0)
|
|
18380
18374
|
};
|
|
18381
18375
|
};
|
|
18382
18376
|
function parsePromiseDef3(def, refs) {
|
|
@@ -18406,12 +18400,12 @@ function parseTupleDef3(def, refs) {
|
|
|
18406
18400
|
type: "array",
|
|
18407
18401
|
minItems: def.items.length,
|
|
18408
18402
|
items: def.items.map(
|
|
18409
|
-
(
|
|
18403
|
+
(x, i) => parseDef3(x._def, {
|
|
18410
18404
|
...refs,
|
|
18411
18405
|
currentPath: [...refs.currentPath, "items", `${i}`]
|
|
18412
18406
|
})
|
|
18413
18407
|
).reduce(
|
|
18414
|
-
(acc,
|
|
18408
|
+
(acc, x) => x === void 0 ? acc : [...acc, x],
|
|
18415
18409
|
[]
|
|
18416
18410
|
),
|
|
18417
18411
|
additionalItems: parseDef3(def.rest._def, {
|
|
@@ -18425,12 +18419,12 @@ function parseTupleDef3(def, refs) {
|
|
|
18425
18419
|
minItems: def.items.length,
|
|
18426
18420
|
maxItems: def.items.length,
|
|
18427
18421
|
items: def.items.map(
|
|
18428
|
-
(
|
|
18422
|
+
(x, i) => parseDef3(x._def, {
|
|
18429
18423
|
...refs,
|
|
18430
18424
|
currentPath: [...refs.currentPath, "items", `${i}`]
|
|
18431
18425
|
})
|
|
18432
18426
|
).reduce(
|
|
18433
|
-
(acc,
|
|
18427
|
+
(acc, x) => x === void 0 ? acc : [...acc, x],
|
|
18434
18428
|
[]
|
|
18435
18429
|
)
|
|
18436
18430
|
};
|
|
@@ -27204,7 +27198,7 @@ ${workingMemory}`;
|
|
|
27204
27198
|
// Embedding is computationally expensive, so cache content -> embeddings/chunks.
|
|
27205
27199
|
// Bounded by an LRU so a long-running instance can't retain every embedded
|
|
27206
27200
|
// message/query (and its vectors + chunk text) for the life of the process.
|
|
27207
|
-
embeddingCache = new
|
|
27201
|
+
embeddingCache = new M({ max: DEFAULT_EMBEDDING_CACHE_MAX_SIZE });
|
|
27208
27202
|
firstEmbed;
|
|
27209
27203
|
async embedMessageContent(content) {
|
|
27210
27204
|
const key = (await this.hasher).h64(content);
|
|
@@ -27641,7 +27635,7 @@ ${workingMemory}`;
|
|
|
27641
27635
|
"Observational memory requires @mastra/core support for request-response-id-rotation. Please bump @mastra/core to a newer version."
|
|
27642
27636
|
);
|
|
27643
27637
|
}
|
|
27644
|
-
const { ObservationalMemory: OMClass } = await import('./observational-memory-
|
|
27638
|
+
const { ObservationalMemory: OMClass } = await import('./observational-memory-SF36C4XR-2DQQF4XZ.js');
|
|
27645
27639
|
const onIndexObservations = this.hasRetrievalSearch(omConfig.retrieval) ? async (observation) => {
|
|
27646
27640
|
await this.indexObservation(observation);
|
|
27647
27641
|
} : void 0;
|
|
@@ -28689,7 +28683,7 @@ Notes:
|
|
|
28689
28683
|
if (!effectiveConfig) return null;
|
|
28690
28684
|
const engine = await this.omEngine;
|
|
28691
28685
|
if (!engine) return null;
|
|
28692
|
-
const { ObservationalMemoryProcessor: ObservationalMemoryProcessor2 } = await import('./observational-memory-
|
|
28686
|
+
const { ObservationalMemoryProcessor: ObservationalMemoryProcessor2 } = await import('./observational-memory-SF36C4XR-2DQQF4XZ.js');
|
|
28693
28687
|
return new ObservationalMemoryProcessor2(engine, this, {
|
|
28694
28688
|
temporalMarkers: effectiveConfig.temporalMarkers
|
|
28695
28689
|
});
|
|
@@ -28705,7 +28699,7 @@ Notes:
|
|
|
28705
28699
|
this.assertWorkingMemoryStateSignalsCompatibility(mergedConfig);
|
|
28706
28700
|
if (!mergedConfig.workingMemory?.enabled) return null;
|
|
28707
28701
|
if (!mergedConfig.workingMemory?.useStateSignals) return null;
|
|
28708
|
-
const { WORKING_MEMORY_STATE_PROCESSOR_ID: WORKING_MEMORY_STATE_PROCESSOR_ID2, WorkingMemoryStateProcessor: WorkingMemoryStateProcessor2 } = await import('./working-memory-state-OMSMSYAW-
|
|
28702
|
+
const { WORKING_MEMORY_STATE_PROCESSOR_ID: WORKING_MEMORY_STATE_PROCESSOR_ID2, WorkingMemoryStateProcessor: WorkingMemoryStateProcessor2 } = await import('./working-memory-state-OMSMSYAW-NEULPFZX.js');
|
|
28709
28703
|
const alreadyConfigured = configuredProcessors.some(
|
|
28710
28704
|
(p) => !("workflow" in p) && p.id === WORKING_MEMORY_STATE_PROCESSOR_ID2
|
|
28711
28705
|
);
|
|
@@ -33626,5 +33620,5 @@ function getObservationsAsOf(activeObservations, asOf) {
|
|
|
33626
33620
|
}
|
|
33627
33621
|
|
|
33628
33622
|
export { Extractor, Memory, ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, WorkingMemoryExtractor, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, summarizeConversation, wrapInObservationGroup };
|
|
33629
|
-
//# sourceMappingURL=chunk-
|
|
33630
|
-
//# sourceMappingURL=chunk-
|
|
33623
|
+
//# sourceMappingURL=chunk-H4LV3HUC.js.map
|
|
33624
|
+
//# sourceMappingURL=chunk-H4LV3HUC.js.map
|