@farm.js/core 0.1.78 → 0.1.81
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/dist/{agent-mcp-handler-EDJNU224.mjs → agent-mcp-handler-GDY5CPPW.mjs} +5 -5
- package/dist/{agent-mcp-handler-LNBYLRTZ.cjs → agent-mcp-handler-IUL6OPC3.cjs} +6 -6
- package/dist/{agent-mcp.d-BErtnhV2.d.ts → agent-mcp.d-Cxi3214_.d.ts} +1 -1
- package/dist/{agent-mcp.d-CYHfcjur.d.mts → agent-mcp.d-DMqOqnOA.d.mts} +1 -1
- package/dist/agent-runtime.cjs +2 -2
- package/dist/agent-runtime.d.mts +5 -4
- package/dist/agent-runtime.d.ts +5 -4
- package/dist/agent-runtime.mjs +1 -1
- package/dist/analyzer-435DCIQ6.cjs +17 -0
- package/dist/{analyzer-M2BG6QYU.mjs → analyzer-IC66UJCU.mjs} +3 -2
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.mjs +1 -1
- package/dist/api/client.native.cjs +1 -1
- package/dist/api/client.native.mjs +1 -1
- package/dist/api/node.cjs +7 -7
- package/dist/api/node.d.mts +7 -6
- package/dist/api/node.d.ts +7 -6
- package/dist/api/node.mjs +6 -6
- package/dist/api/route-manager.cjs +10 -10
- package/dist/api/route-manager.d.mts +7 -6
- package/dist/api/route-manager.d.ts +7 -6
- package/dist/api/route-manager.mjs +9 -9
- package/dist/api/runtime.cjs +6 -6
- package/dist/api/runtime.d.mts +6 -5
- package/dist/api/runtime.d.ts +6 -5
- package/dist/api/runtime.mjs +5 -5
- package/dist/api.cjs +12 -12
- package/dist/api.d.mts +8 -7
- package/dist/api.d.ts +8 -7
- package/dist/api.mjs +11 -11
- package/dist/{app-manifest.d-6NCkLQ1y.d.mts → app-manifest.d-Bbxp5kes.d.mts} +1 -1
- package/dist/{app-manifest.d-DuqLBcmi.d.ts → app-manifest.d-C8Cswd31.d.ts} +1 -1
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +8 -7
- package/dist/app-markdown.d.ts +8 -7
- package/dist/app-markdown.mjs +4 -4
- package/dist/{app.d-Dk2HkvPh.d.mts → app.d-BJuSurgy.d.mts} +13 -4
- package/dist/{app.d-Bz6vYBFF.d.ts → app.d-DGIoFt5D.d.ts} +13 -4
- package/dist/cache.cjs +3 -3
- package/dist/cache.mjs +2 -2
- package/dist/{chunk-PG7J7XYT.cjs → chunk-26WP75W5.cjs} +38 -22
- package/dist/{chunk-QYOAGT3E.cjs → chunk-2BEGVSDF.cjs} +6 -5
- package/dist/{chunk-GCRT6GJG.mjs → chunk-2HMSSPCZ.mjs} +26 -0
- package/dist/{chunk-2YJ4DHTD.cjs → chunk-2NOHVIJ3.cjs} +2 -2
- package/dist/{chunk-GDM3ZD2O.cjs → chunk-2OFP3IVA.cjs} +5 -1
- package/dist/{chunk-7KDCVSTR.mjs → chunk-2PFGA6PB.mjs} +2 -2
- package/dist/chunk-2UYYXSUS.mjs +401 -0
- package/dist/{chunk-DD2ANOEF.cjs → chunk-2Y2HRZQY.cjs} +843 -627
- package/dist/{chunk-PL7MCYYD.mjs → chunk-3AV4DCXY.mjs} +58 -358
- package/dist/{chunk-3GNHJ3RN.cjs → chunk-3BTN3NP7.cjs} +2 -2
- package/dist/{chunk-XT2CHTDN.mjs → chunk-3RVLJTFZ.mjs} +6 -6
- package/dist/{chunk-VJ6L7TII.cjs → chunk-3SPECQXI.cjs} +31 -20
- package/dist/{chunk-ODYKCC6W.cjs → chunk-46UV2E7I.cjs} +156 -104
- package/dist/{chunk-F4ID7BGO.cjs → chunk-4OFWG4IK.cjs} +7 -7
- package/dist/{chunk-VRI43FDN.mjs → chunk-4WXNTAOM.mjs} +1 -1
- package/dist/{chunk-QMR2TUVZ.cjs → chunk-52Q4OB4A.cjs} +4 -4
- package/dist/chunk-5MMKNW7Q.cjs +54 -0
- package/dist/{chunk-RIMEFQYO.mjs → chunk-5N526T7Q.mjs} +116 -86
- package/dist/{chunk-CYNQPKA4.cjs → chunk-5ZHC6QGD.cjs} +2 -2
- package/dist/{chunk-ALEUMLJN.mjs → chunk-67JTJCAS.mjs} +3 -2
- package/dist/{chunk-CBP7AKZH.mjs → chunk-6GJZJAED.mjs} +1 -1
- package/dist/{chunk-5REIO5DT.mjs → chunk-6WVRVGKC.mjs} +6 -6
- package/dist/{chunk-GC5ROI3A.cjs → chunk-7U4XF76R.cjs} +1 -1
- package/dist/{chunk-FOULIN4S.cjs → chunk-ADQ2LATR.cjs} +2 -2
- package/dist/{chunk-K3ZELA6U.cjs → chunk-AHVF5GI2.cjs} +10 -10
- package/dist/{chunk-CSAIIMY3.mjs → chunk-ATISIC6G.mjs} +1 -1
- package/dist/{chunk-MGKWYPE3.mjs → chunk-AYDVUCXD.mjs} +1 -0
- package/dist/chunk-B7L24VPX.cjs +401 -0
- package/dist/{chunk-DPBQRDWW.cjs → chunk-BBVLOEND.cjs} +4 -4
- package/dist/{chunk-DASQJ5UD.mjs → chunk-BCQIXH7L.mjs} +1 -1
- package/dist/{chunk-BNCKXPCU.cjs → chunk-BIAGSYIZ.cjs} +30 -30
- package/dist/{chunk-R77D7TCZ.mjs → chunk-BJWJP5A4.mjs} +20 -13
- package/dist/{chunk-X2SEYK7I.mjs → chunk-BPWTSPK6.mjs} +3 -3
- package/dist/{chunk-CKNZJFK5.cjs → chunk-BSX5OGSD.cjs} +4 -4
- package/dist/{chunk-ERT6HQAI.mjs → chunk-BVJUFVCU.mjs} +2 -2
- package/dist/chunk-C5QHZ626.cjs +85 -0
- package/dist/{chunk-HVMQAVZK.cjs → chunk-CL7BUGVB.cjs} +656 -521
- package/dist/{chunk-TZ2YPXLB.cjs → chunk-CN2JOTRO.cjs} +7 -7
- package/dist/{chunk-ZCYGYIC2.cjs → chunk-CPZZBCPO.cjs} +22 -21
- package/dist/{chunk-RK4MGL6Q.mjs → chunk-CYRO3WP4.mjs} +4 -3
- package/dist/chunk-D2VAANBS.mjs +48 -0
- package/dist/{chunk-VRJAMU34.mjs → chunk-D77OGI6X.mjs} +1 -1
- package/dist/{chunk-6XDDE7M6.cjs → chunk-DJ3PVHTW.cjs} +3 -3
- package/dist/{chunk-XGS76V7L.cjs → chunk-E3HBD2K3.cjs} +22 -22
- package/dist/{chunk-F35C3TJZ.mjs → chunk-E4E4Y5FD.mjs} +1 -1
- package/dist/{chunk-KUXEII7V.mjs → chunk-ECVSRE4Y.mjs} +3 -2
- package/dist/{chunk-2DA7CLY7.mjs → chunk-EILUVBKS.mjs} +14 -0
- package/dist/chunk-EZYKV24V.mjs +385 -0
- package/dist/{chunk-TVCFY3KK.cjs → chunk-FB4CWSC2.cjs} +12 -12
- package/dist/{chunk-ZO6TOLHL.mjs → chunk-FS55CNTC.mjs} +1 -1
- package/dist/{chunk-IYFBLWXU.cjs → chunk-FULX5RYX.cjs} +61 -361
- package/dist/{chunk-5KISFWD2.cjs → chunk-FYZD7DUS.cjs} +12 -12
- package/dist/{chunk-H5OVJHXY.cjs → chunk-GAWSWJJ2.cjs} +27 -27
- package/dist/{chunk-A37D6LOS.mjs → chunk-GY63XD6K.mjs} +1 -1
- package/dist/{chunk-OVUU2RCQ.mjs → chunk-HD5FLXP2.mjs} +1 -1
- package/dist/{chunk-5QZT2EQN.cjs → chunk-HQEYZSF3.cjs} +4 -3
- package/dist/{chunk-JA6RML7C.mjs → chunk-HR4N2K4V.mjs} +2 -2
- package/dist/{chunk-6D3CJFNU.cjs → chunk-HR5GU4UU.cjs} +7 -7
- package/dist/{chunk-7RQ5KAK6.mjs → chunk-HTNJ7A4D.mjs} +88 -36
- package/dist/chunk-I4WZRG73.mjs +54 -0
- package/dist/{chunk-BGUTIQII.mjs → chunk-ICOJ2BC6.mjs} +24 -8
- package/dist/{chunk-SX535SU5.cjs → chunk-IJPRCQHW.cjs} +10 -10
- package/dist/{chunk-E7V2GYBP.mjs → chunk-IM3UINTZ.mjs} +67 -9
- package/dist/{chunk-MNIR7I7B.mjs → chunk-INKVDO42.mjs} +1 -1
- package/dist/{chunk-AHGOHPRN.mjs → chunk-IPG6B25T.mjs} +235 -100
- package/dist/{chunk-PE2LEWXA.mjs → chunk-J2VUPCCR.mjs} +4 -4
- package/dist/{chunk-Q2EKSSEG.cjs → chunk-JB4BHRFK.cjs} +17 -17
- package/dist/{chunk-YN7G22MP.cjs → chunk-JCYDWJVO.cjs} +3 -3
- package/dist/{chunk-LPXJEZJK.mjs → chunk-KCJBIWBM.mjs} +2 -2
- package/dist/{chunk-NSNQLBHR.cjs → chunk-KMGHXIDA.cjs} +2 -2
- package/dist/{chunk-SVCUSOEF.mjs → chunk-KR5DF7WK.mjs} +1 -1
- package/dist/{chunk-5DREJN4G.cjs → chunk-LKIG5SM6.cjs} +17 -17
- package/dist/{chunk-OGVOKAQU.mjs → chunk-LTOT5KVJ.mjs} +2 -2
- package/dist/{chunk-Z2FFLTF5.mjs → chunk-LTXKRIST.mjs} +2 -2
- package/dist/{chunk-67MZTLTF.cjs → chunk-M6DAIE4T.cjs} +27 -1
- package/dist/{chunk-IWGGRXD2.cjs → chunk-MHKPXX3J.cjs} +2 -2
- package/dist/{chunk-F7PKUP6P.cjs → chunk-MOGRRZMW.cjs} +38 -38
- package/dist/{chunk-DZZHTMWM.cjs → chunk-N3H7UPBM.cjs} +3 -2
- package/dist/{chunk-WGNGM6MJ.mjs → chunk-N3VMHPIY.mjs} +2 -2
- package/dist/{chunk-EBFTAVGD.mjs → chunk-NOYKBGUK.mjs} +672 -456
- package/dist/{chunk-LMXGCFAM.cjs → chunk-NSLRK5DK.cjs} +1 -1
- package/dist/{chunk-EVVV2XZ2.cjs → chunk-NW3DL2PM.cjs} +53 -7
- package/dist/{chunk-6ZFGWB75.cjs → chunk-OFVCWV2D.cjs} +5 -5
- package/dist/{chunk-NB2ZEBIS.cjs → chunk-OIWDEDUO.cjs} +540 -510
- package/dist/{chunk-WRWJ7IWT.cjs → chunk-OLKYHTLN.cjs} +5 -5
- package/dist/{chunk-QES76U42.mjs → chunk-ONSZP5JK.mjs} +4 -4
- package/dist/{chunk-H76C5AOU.mjs → chunk-OO4GVGM3.mjs} +4 -4
- package/dist/{chunk-BZJYPIFZ.cjs → chunk-OUDNUFVR.cjs} +12 -12
- package/dist/{chunk-EVIWKPJV.cjs → chunk-PLJMEUAN.cjs} +15 -1
- package/dist/{chunk-GFXKO4UW.mjs → chunk-PO5MZIWK.mjs} +49 -49
- package/dist/{chunk-VCW6BR6U.mjs → chunk-POL5RCVU.mjs} +2 -2
- package/dist/{chunk-EMTN5ABC.mjs → chunk-POVHO46S.mjs} +1 -1
- package/dist/{chunk-ASYOWPSR.cjs → chunk-PWDBWXQI.cjs} +2 -1
- package/dist/{chunk-X3Y6JWJG.cjs → chunk-PWMJBCAN.cjs} +3 -3
- package/dist/{chunk-IGE5BAWK.mjs → chunk-QBJ6N5MT.mjs} +53 -7
- package/dist/{chunk-62DZHPDK.cjs → chunk-QCKSYYXK.cjs} +10 -10
- package/dist/{chunk-PKXGFQZS.mjs → chunk-QD34VE4N.mjs} +1 -1
- package/dist/{chunk-57QAQU4F.mjs → chunk-QRNYSISP.mjs} +1 -1
- package/dist/{chunk-PRL7FXG4.cjs → chunk-RDNKQ5MK.cjs} +12 -13
- package/dist/{chunk-VJI2LWTL.cjs → chunk-RFNQTQ44.cjs} +2 -2
- package/dist/{chunk-IG2JE6WJ.mjs → chunk-RLEAVG6G.mjs} +1 -1
- package/dist/{chunk-VO5XDZHK.mjs → chunk-RPA45OQS.mjs} +2 -2
- package/dist/{chunk-PNWRH6TR.mjs → chunk-RZ6XUEQS.mjs} +4 -4
- package/dist/{chunk-S6RUJRWI.mjs → chunk-S3IWDDQ3.mjs} +1 -1
- package/dist/{chunk-EGHPFXPZ.cjs → chunk-SAPG45RA.cjs} +23 -23
- package/dist/{chunk-FE6KYDHC.cjs → chunk-SHDCKRP4.cjs} +3 -3
- package/dist/{chunk-DUSTJ6A5.mjs → chunk-SLEHAGGV.mjs} +2 -2
- package/dist/{chunk-26CNCIFI.cjs → chunk-T3SMMLSB.cjs} +2 -2
- package/dist/{chunk-K6DXKHFE.mjs → chunk-TE7AX6HB.mjs} +1 -1
- package/dist/{chunk-A7EJATEW.mjs → chunk-TLSGRK7E.mjs} +4 -4
- package/dist/{chunk-KHS3T3E5.mjs → chunk-TYHWZOA2.mjs} +1 -1
- package/dist/{chunk-Z3QXQN4U.mjs → chunk-U6GMCDRS.mjs} +1 -1
- package/dist/{chunk-URQW27KO.mjs → chunk-UBLKPREL.mjs} +1 -1
- package/dist/chunk-UDMBUTJD.mjs +85 -0
- package/dist/{chunk-WJ4NUY2H.mjs → chunk-UF4BNKKJ.mjs} +4 -4
- package/dist/{chunk-L7Y65BQU.cjs → chunk-UGD53SNO.cjs} +50 -50
- package/dist/{chunk-DD22NQFX.cjs → chunk-UGLTOLTJ.cjs} +2 -2
- package/dist/{chunk-G7B6NU4X.cjs → chunk-VFMHE5D3.cjs} +3 -3
- package/dist/{chunk-4SLHSODZ.cjs → chunk-VGHDPEPQ.cjs} +15 -15
- package/dist/{chunk-IXO6O2EL.cjs → chunk-VGVRGGP4.cjs} +2 -2
- package/dist/{chunk-47R7CX4A.mjs → chunk-VPGEYX5Y.mjs} +4 -4
- package/dist/chunk-VS7HLH4S.cjs +385 -0
- package/dist/{chunk-YRXPDKMM.cjs → chunk-W53Z4WDI.cjs} +8 -8
- package/dist/{chunk-NNGBTJCX.cjs → chunk-W6C3LEXX.cjs} +83 -25
- package/dist/{chunk-4VLXQ55O.cjs → chunk-WIZRYFB2.cjs} +3 -3
- package/dist/chunk-WMRGIQTA.cjs +48 -0
- package/dist/{chunk-52LTENRE.cjs → chunk-WOAXQ5MZ.cjs} +9 -9
- package/dist/{chunk-C6HGUTXB.mjs → chunk-XBSIGZ4J.mjs} +2 -3
- package/dist/{chunk-S7QEQCVV.mjs → chunk-XGL42MQ7.mjs} +1 -1
- package/dist/{chunk-JHZ6HULQ.cjs → chunk-XOFJUSWC.cjs} +4 -4
- package/dist/{chunk-LJKTJNOF.cjs → chunk-XOGCNKB7.cjs} +3 -3
- package/dist/{chunk-7JTVN6IJ.mjs → chunk-XOXCQGAF.mjs} +7 -6
- package/dist/{chunk-LIC6CMLB.mjs → chunk-YH7ENV3K.mjs} +18 -18
- package/dist/{chunk-ZJGFAW5U.mjs → chunk-YHHOTKUT.mjs} +5 -1
- package/dist/{chunk-B3IRRANH.mjs → chunk-YHM4PXJY.mjs} +1 -1
- package/dist/{chunk-PDACTAVX.mjs → chunk-YOVSWY2E.mjs} +1 -1
- package/dist/{chunk-ZEWIWAS2.mjs → chunk-YSU3WCW6.mjs} +2 -2
- package/dist/{chunk-R5X7FDOG.mjs → chunk-YU2MNIIY.mjs} +1 -1
- package/dist/{chunk-42EUEYW6.cjs → chunk-YUQUGVSV.cjs} +8 -8
- package/dist/{chunk-4STJ6LGR.mjs → chunk-Z3RM3VA2.mjs} +1 -1
- package/dist/{chunk-MBD34AS5.cjs → chunk-Z5BANEQD.cjs} +6 -6
- package/dist/{chunk-4PWGLPL6.mjs → chunk-ZIEO3DQ3.mjs} +26 -15
- package/dist/{chunk-2G6JPLSL.cjs → chunk-ZIYJWJV2.cjs} +27 -20
- package/dist/{chunk-KZ5BOWJS.cjs → chunk-ZKNXCRUQ.cjs} +28 -28
- package/dist/{cli-runtime.d-CGMGs1Zz.d.mts → cli-runtime.d-D8O1v2_X.d.mts} +7 -6
- package/dist/{cli-runtime.d-BG9q2_vC.d.ts → cli-runtime.d-hf4L1MNP.d.ts} +7 -6
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-component.d-B84GPb_u.d.ts → client-component.d-CX8UCQh-.d.ts} +1 -1
- package/dist/{client-component.d-CdsG1E7p.d.mts → client-component.d-DFwUHlOz.d.mts} +1 -1
- package/dist/{client-plugins.d-DX-iCJWE.d.mts → client-plugins.d-BflSNO-b.d.mts} +5 -16
- package/dist/{client-plugins.d-FptsHgls.d.ts → client-plugins.d-qWp8hNwd.d.ts} +5 -16
- package/dist/client-plugins.d.mts +5 -4
- package/dist/client-plugins.d.ts +5 -4
- package/dist/client.cjs +9 -8
- package/dist/client.d.mts +23 -154
- package/dist/client.d.ts +23 -154
- package/dist/client.mjs +8 -7
- package/dist/config.d.mts +5 -4
- package/dist/config.d.ts +5 -4
- package/dist/cron.cjs +3 -3
- package/dist/cron.mjs +2 -2
- package/dist/desktop.d.mts +6 -5
- package/dist/desktop.d.ts +6 -5
- package/dist/{devtools-TMATFNUY.cjs → devtools-EI5N366Z.cjs} +17 -17
- package/dist/{devtools-7P3OUNLV.mjs → devtools-XJHODO5H.mjs} +14 -14
- package/dist/docs.cjs +18 -18
- package/dist/docs.d.mts +7 -6
- package/dist/docs.d.ts +7 -6
- package/dist/docs.mjs +17 -17
- package/dist/environment/vite.cjs +8 -7
- package/dist/environment/vite.d.mts +9 -0
- package/dist/environment/vite.d.ts +9 -0
- package/dist/environment/vite.mjs +7 -6
- package/dist/{handler.d-Cy3XbY_W.d.ts → handler.d-C2oRihfa.d.ts} +1 -1
- package/dist/{handler.d-DSwLTpa5.d.mts → handler.d-DoH5Krkq.d.mts} +1 -1
- package/dist/{headers.d-DiL9YTH3.d.mts → headers.d-BrX53wFQ.d.mts} +1 -1
- package/dist/{headers.d-Qbjo38a0.d.ts → headers.d-Dj0mfYpb.d.ts} +1 -1
- package/dist/index.cjs +90 -82
- package/dist/{index.d-OccJoC6I.d.ts → index.d-Dhc2scRl.d.ts} +1 -1
- package/dist/{index.d-CqQKX3s6.d.mts → index.d-DzDHOttz.d.mts} +1 -1
- package/dist/index.d.mts +29 -27
- package/dist/index.d.ts +29 -27
- package/dist/index.mjs +92 -84
- package/dist/instrumentation.cjs +3 -3
- package/dist/instrumentation.mjs +2 -2
- package/dist/integrations/orm.cjs +3 -3
- package/dist/integrations/orm.d.mts +5 -4
- package/dist/integrations/orm.d.ts +5 -4
- package/dist/integrations/orm.mjs +2 -2
- package/dist/integrations.cjs +2 -2
- package/dist/integrations.d.mts +5 -4
- package/dist/integrations.d.ts +5 -4
- package/dist/integrations.mjs +1 -1
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +15 -8
- package/dist/internal/app-markdown-runtime.d.ts +15 -8
- package/dist/internal/app-markdown-runtime.mjs +3 -3
- package/dist/internal/build-runtime.cjs +63 -62
- package/dist/internal/build-runtime.d.mts +8 -7
- package/dist/internal/build-runtime.d.ts +8 -7
- package/dist/internal/build-runtime.mjs +62 -61
- package/dist/internal/cli-runtime.cjs +37 -34
- package/dist/internal/cli-runtime.d.mts +12 -11
- package/dist/internal/cli-runtime.d.ts +12 -11
- package/dist/internal/cli-runtime.mjs +39 -36
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +112 -14
- package/dist/internal/client-runtime.d.mts +29 -22
- package/dist/internal/client-runtime.d.ts +29 -22
- package/dist/internal/client-runtime.mjs +104 -6
- package/dist/internal/compression-runtime.d.mts +5 -4
- package/dist/internal/compression-runtime.d.ts +5 -4
- package/dist/internal/config-runtime.cjs +16 -16
- package/dist/internal/config-runtime.d.mts +7 -6
- package/dist/internal/config-runtime.d.ts +7 -6
- package/dist/internal/config-runtime.mjs +15 -15
- package/dist/internal/docs-precompiled-runtime.cjs +1 -1
- package/dist/internal/docs-precompiled-runtime.mjs +1 -1
- package/dist/internal/form-actions.cjs +3 -3
- package/dist/internal/form-actions.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +11 -11
- package/dist/internal/infra-analytics-runtime.mjs +9 -9
- package/dist/internal/island-codec.cjs +3 -3
- package/dist/internal/island-codec.mjs +2 -2
- package/dist/internal/island-value-store.d.mts +1 -1
- package/dist/internal/island-value-store.d.ts +1 -1
- package/dist/internal/islands-boot.cjs +39 -5
- package/dist/internal/islands-boot.d.mts +19 -1
- package/dist/internal/islands-boot.d.ts +19 -1
- package/dist/internal/islands-boot.mjs +38 -4
- package/dist/internal/islands-runtime.cjs +10 -56
- package/dist/internal/islands-runtime.mjs +6 -52
- package/dist/internal/islands-server.cjs +4 -4
- package/dist/internal/islands-server.mjs +3 -3
- package/dist/internal/islx-actions-client.cjs +36 -0
- package/dist/internal/islx-actions-client.d.mts +13 -0
- package/dist/internal/islx-actions-client.d.ts +13 -0
- package/dist/internal/islx-actions-client.mjs +36 -0
- package/dist/internal/islx-actions-server.cjs +8 -0
- package/dist/internal/islx-actions-server.d.mts +6 -0
- package/dist/internal/islx-actions-server.d.ts +6 -0
- package/dist/internal/islx-actions-server.mjs +8 -0
- package/dist/internal/islx-client.d.mts +0 -4
- package/dist/internal/islx-client.d.ts +0 -4
- package/dist/internal/isolated-boundary.cjs +3 -3
- package/dist/internal/isolated-boundary.d.mts +1 -1
- package/dist/internal/isolated-boundary.d.ts +1 -1
- package/dist/internal/isolated-boundary.mjs +2 -2
- package/dist/internal/metadata-image-runtime.cjs +4 -2
- package/dist/internal/metadata-image-runtime.d.mts +18 -2
- package/dist/internal/metadata-image-runtime.d.ts +18 -2
- package/dist/internal/metadata-image-runtime.mjs +5 -3
- package/dist/internal/native-server-fns.cjs +5 -4
- package/dist/internal/native-server-fns.mjs +4 -3
- package/dist/internal/navigation-neutral.cjs +36 -0
- package/dist/internal/navigation-neutral.d.mts +14 -0
- package/dist/internal/navigation-neutral.d.ts +14 -0
- package/dist/internal/navigation-neutral.mjs +36 -0
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +36 -36
- package/dist/internal/production-runtime.d.mts +15 -13
- package/dist/internal/production-runtime.d.ts +15 -13
- package/dist/internal/production-runtime.mjs +46 -46
- package/dist/internal/server-tree.cjs +5 -4
- package/dist/internal/server-tree.d.mts +3 -4
- package/dist/internal/server-tree.d.ts +3 -4
- package/dist/internal/server-tree.mjs +4 -3
- package/dist/internal/spa-router.cjs +44 -0
- package/dist/internal/spa-router.d.mts +42 -0
- package/dist/internal/spa-router.d.ts +42 -0
- package/dist/internal/spa-router.mjs +44 -0
- package/dist/internal/start-manifest.d.mts +5 -4
- package/dist/internal/start-manifest.d.ts +5 -4
- package/dist/internal/vercel-edge-middleware.cjs +4 -4
- package/dist/internal/vercel-edge-middleware.mjs +3 -3
- package/dist/island-value-protocol.d-fEoc1m8e.d.mts +27 -0
- package/dist/island-value-protocol.d-fEoc1m8e.d.ts +27 -0
- package/dist/{layers-5ZD4764G.mjs → layers-744BBUY5.mjs} +2 -2
- package/dist/layers-XLOMMQP7.cjs +21 -0
- package/dist/{lifecycle.d-VzcXyEyn.d.ts → lifecycle.d-OtGWAvJT.d.mts} +1 -1
- package/dist/{lifecycle.d-VzcXyEyn.d.mts → lifecycle.d-OtGWAvJT.d.ts} +1 -1
- package/dist/markdown.cjs +3 -3
- package/dist/markdown.d.mts +5 -4
- package/dist/markdown.d.ts +5 -4
- package/dist/markdown.mjs +2 -2
- package/dist/middleware.cjs +10 -10
- package/dist/middleware.d.mts +5 -4
- package/dist/middleware.d.ts +5 -4
- package/dist/middleware.mjs +9 -9
- package/dist/{mount.d-AcJaUtHF.d.mts → mount.d-DOaeUoWq.d.mts} +1 -1
- package/dist/{mount.d-CPzqOm-a.d.ts → mount.d-DwXjaOHY.d.ts} +1 -1
- package/dist/{native-server-fn-handler-XRTZR7SZ.cjs → native-server-fn-handler-57TCQPSM.cjs} +6 -6
- package/dist/{native-server-fn-handler-WYYY4YBN.mjs → native-server-fn-handler-PYK65A46.mjs} +5 -5
- package/dist/{native-tree-MNUFN5G6.cjs → native-tree-5TENEQ7Y.cjs} +4 -4
- package/dist/{native-tree-JDI3LJSH.mjs → native-tree-LNO7K6JR.mjs} +3 -3
- package/dist/{navigation-delegate.d-C4i5Y39E.d.mts → navigation-delegate.d-BElGUMgt.d.mts} +1 -1
- package/dist/{navigation-delegate.d-_Df9DnPY.d.ts → navigation-delegate.d-o3pPd9VI.d.ts} +1 -1
- package/dist/navigation-errors.d-DwHtoMyR.d.mts +13 -0
- package/dist/navigation-errors.d-DwHtoMyR.d.ts +13 -0
- package/dist/navigation.cjs +6 -6
- package/dist/navigation.d.mts +10 -9
- package/dist/navigation.d.ts +10 -9
- package/dist/navigation.mjs +5 -5
- package/dist/{nitro-NUCTYEKJ.cjs → nitro-XGIO6EQN.cjs} +7 -7
- package/dist/{nitro-VCJ6QQSI.mjs → nitro-YLTGVGK4.mjs} +3 -3
- package/dist/node-module-bundle-TNSY5PAC.cjs +15 -0
- package/dist/{node-module-bundle-XPLBMXRD.mjs → node-module-bundle-ZWCQJCKA.mjs} +3 -1
- package/dist/observability.cjs +8 -2
- package/dist/{observability.d-DdJRiaIX.d.mts → observability.d-mXSbp4jc.d.mts} +17 -1
- package/dist/{observability.d-DdJRiaIX.d.ts → observability.d-mXSbp4jc.d.ts} +17 -1
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/observability.mjs +7 -1
- package/dist/{plugin-TV6W7YNK.mjs → plugin-33I3V42N.mjs} +1 -1
- package/dist/{plugin-AGEFSU7K.cjs → plugin-LN3JBZRR.cjs} +2 -2
- package/dist/plugin.cjs +50 -48
- package/dist/plugin.d.mts +9 -8
- package/dist/plugin.d.ts +9 -8
- package/dist/plugin.mjs +49 -47
- package/dist/query/client.cjs +10 -10
- package/dist/query/client.mjs +5 -5
- package/dist/{render-plan.d-CslZE7o7.d.ts → render-plan.d-BD06tqFA.d.ts} +1 -1
- package/dist/{render-plan.d-4V_NmaA6.d.mts → render-plan.d-xWCRAJeR.d.mts} +1 -1
- package/dist/renderer/none/server.cjs +5 -1
- package/dist/renderer/none/server.d.mts +3 -1
- package/dist/renderer/none/server.d.ts +3 -1
- package/dist/renderer/none/server.mjs +4 -0
- package/dist/renderer/react/server.cjs +6 -6
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +34 -15
- package/dist/renderer-client.d.mts +16 -100
- package/dist/renderer-client.d.ts +16 -100
- package/dist/renderer-client.mjs +23 -4
- package/dist/renderer.cjs +4 -2
- package/dist/renderer.d.mts +49 -6
- package/dist/renderer.d.ts +49 -6
- package/dist/renderer.mjs +3 -1
- package/dist/{request.d-CbV3y7j3.d.ts → request.d-DUMuWxSN.d.ts} +1 -1
- package/dist/{request.d-CmLTxEgS.d.mts → request.d-Dx82V8bz.d.mts} +1 -1
- package/dist/request.d.mts +6 -5
- package/dist/request.d.ts +6 -5
- package/dist/{route-rendering.d-CETnXNez.d.ts → route-rendering.d-BwBVpLtD.d.ts} +1 -1
- package/dist/{route-rendering.d-CmoqfOmj.d.mts → route-rendering.d-DJh6GauM.d.mts} +1 -1
- package/dist/{router.d-ktz7pwYm.d.mts → router.d-BtkKDxUB.d.mts} +1 -1
- package/dist/{router.d-Dga3N5YO.d.ts → router.d-CJBSG5jr.d.ts} +1 -1
- package/dist/routes.cjs +5 -5
- package/dist/routes.d.mts +5 -4
- package/dist/routes.d.ts +5 -4
- package/dist/routes.mjs +4 -4
- package/dist/{rsc-pipeline-N7CWJW7T.mjs → rsc-pipeline-GD6KLOIG.mjs} +20 -20
- package/dist/{rsc-pipeline-JLYD26AR.cjs → rsc-pipeline-H5AXQA7A.cjs} +21 -21
- package/dist/{runtime-QXX2A4TS.mjs → runtime-OJ7FXFUI.mjs} +22 -22
- package/dist/{runtime-F5NSS4DD.cjs → runtime-YWQVBC3V.cjs} +32 -32
- package/dist/{runtime.d-BWLZUOfA.d.ts → runtime.d-BQnD0cfC.d.ts} +1 -1
- package/dist/{runtime.d-DuaXEM0p.d.mts → runtime.d-C4SuZXf6.d.mts} +1 -1
- package/dist/{schema-dev-notice-2GN5V7Y2.mjs → schema-dev-notice-EUPAUJVN.mjs} +2 -2
- package/dist/{schema-dev-notice-6VCOZGG2.cjs → schema-dev-notice-ZSCL47CT.cjs} +5 -5
- package/dist/search-client-A7YJT7JZ.cjs +15 -0
- package/dist/{search-client-W4PEFAQB.mjs → search-client-GIXIEU75.mjs} +1 -1
- package/dist/server-action-security.cjs +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/{server-components-status.d-CqxtJmqP.d.mts → server-components-status.d-9rH7ZoEq.d.mts} +1 -1
- package/dist/{server-components-status.d-C5JpC7_Y.d.ts → server-components-status.d-rfKOcE0N.d.ts} +1 -1
- package/dist/server-fn.cjs +5 -5
- package/dist/server-fn.mjs +4 -4
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +7 -6
- package/dist/server-plugins.d.ts +7 -6
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query.cjs +6 -6
- package/dist/server-query.mjs +5 -5
- package/dist/server.cjs +95 -90
- package/dist/server.d.mts +16 -15
- package/dist/server.d.ts +16 -15
- package/dist/server.mjs +61 -56
- package/dist/{session-AK2OA5UZ.mjs → session-4IB34X35.mjs} +2 -2
- package/dist/session-MOYQJ7E6.cjs +24 -0
- package/dist/{spa-router.d-C3LzwTlY.d.ts → spa-router.d-DMKiBsHH.d.ts} +20 -4
- package/dist/{spa-router.d-BLE188EL.d.mts → spa-router.d-V6XLSTCy.d.mts} +20 -4
- package/dist/{ssg.d-QrFyU6T4.d.mts → ssg.d-BnCKPQL0.d.mts} +2 -2
- package/dist/{ssg.d-DisOfj0I.d.ts → ssg.d-MNedvvMB.d.ts} +2 -2
- package/dist/storage.cjs +2 -2
- package/dist/storage.d.mts +112 -96
- package/dist/storage.d.ts +112 -96
- package/dist/storage.mjs +1 -1
- package/dist/store-core.d-Ad5biajo.d.ts +301 -0
- package/dist/store-core.d-BqJI1-ix.d.mts +301 -0
- package/dist/testing.cjs +13 -13
- package/dist/testing.d.mts +5 -4
- package/dist/testing.d.ts +5 -4
- package/dist/testing.mjs +10 -10
- package/dist/{types.d-DW2vyaUq.d.mts → types.d-C5hlNbHa.d.mts} +8 -1
- package/dist/{types.d-DW2vyaUq.d.ts → types.d-C5hlNbHa.d.ts} +8 -1
- package/dist/{utils.d-BlWZFgdL.d.mts → utils.d-BEKLWa0Z.d.mts} +1 -1
- package/dist/{utils.d-7YcgfTCK.d.ts → utils.d-BdjHKDuT.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +55 -49
- package/dist/vite.d.mts +26 -10
- package/dist/vite.d.ts +26 -10
- package/dist/vite.mjs +54 -48
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +23 -2
- package/types/images.d.ts +9 -0
- package/dist/analyzer-KVTUYGTT.cjs +0 -16
- package/dist/chunk-CQL5ZGFU.cjs +0 -50
- package/dist/chunk-HONTCUK6.mjs +0 -203
- package/dist/chunk-K6PGK7DC.cjs +0 -203
- package/dist/chunk-NBIVGHAT.mjs +0 -50
- package/dist/island-value-protocol.d-BRayRghM.d.mts +0 -12
- package/dist/island-value-protocol.d-BRayRghM.d.ts +0 -12
- package/dist/layers-HMEGUEXM.cjs +0 -21
- package/dist/node-module-bundle-M6BISE2P.cjs +0 -13
- package/dist/search-client-6NVC6HM2.cjs +0 -15
- package/dist/session-H4TWP73H.cjs +0 -24
- package/dist/{chunk-JKFN3YVG.mjs → chunk-6JWXHPVR.mjs} +0 -0
- package/dist/{chunk-522K362I.mjs → chunk-C2OLXVUC.mjs} +0 -0
- package/dist/{chunk-MALGIHIC.cjs → chunk-HS4JPIGR.cjs} +0 -0
- package/dist/{chunk-PBJ7MEOV.cjs → chunk-OZUINP2P.cjs} +2 -2
- package/dist/{chunk-CUZT7474.cjs → chunk-TCMRLW3K.cjs} +0 -0
- package/dist/{chunk-Q3DO7MVK.mjs → chunk-URBP6DLH.mjs} +0 -0
- package/dist/{chunk-7FQFK3OA.mjs → chunk-V7HNYR76.mjs} +3 -3
- /package/dist/{chunk-AOTD2N5P.cjs → chunk-WGWWRV2M.cjs} +0 -0
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkKORZ6PREcjs = require('./chunk-KORZ6PRE.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunk4DCWVSL2cjs = require('./chunk-4DCWVSL2.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunk7Q7UB4TLcjs = require('./chunk-7Q7UB4TL.cjs');
|
|
12
|
+
|
|
13
|
+
// src/metadata-image.ts
|
|
14
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element");
|
|
15
|
+
var REACT_TRANSITIONAL_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
16
|
+
var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
17
|
+
var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
|
|
18
|
+
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
19
|
+
function isResponse(value) {
|
|
20
|
+
return typeof Response !== "undefined" && (value instanceof Response || Boolean(
|
|
21
|
+
value && typeof value === "object" && typeof value.arrayBuffer === "function" && value.headers
|
|
22
|
+
));
|
|
23
|
+
}
|
|
24
|
+
function isThenable(value) {
|
|
25
|
+
return Boolean(
|
|
26
|
+
value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function"
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function isReactElement(value) {
|
|
30
|
+
if (!value || typeof value !== "object") return false;
|
|
31
|
+
const marker = value.$$typeof;
|
|
32
|
+
return marker === REACT_ELEMENT_TYPE || marker === REACT_TRANSITIONAL_ELEMENT_TYPE;
|
|
33
|
+
}
|
|
34
|
+
function isMetadataImageElement(value, renderer) {
|
|
35
|
+
if (!value || typeof value !== "object") return false;
|
|
36
|
+
if (value instanceof ArrayBuffer || ArrayBuffer.isView(value)) return false;
|
|
37
|
+
return isReactElement(value) || _optionalChain([renderer, 'optionalAccess', _2 => _2.isValidElement, 'call', _3 => _3(value)]) === true;
|
|
38
|
+
}
|
|
39
|
+
function rendersWithAppRenderer(value, renderer) {
|
|
40
|
+
if (!_optionalChain([renderer, 'optionalAccess', _4 => _4.isValidElement, 'call', _5 => _5(value)])) return false;
|
|
41
|
+
return !isReactElement(value) || !renderer.isValidElement({});
|
|
42
|
+
}
|
|
43
|
+
async function prepareMetadataImageNode(node) {
|
|
44
|
+
if (isThenable(node)) {
|
|
45
|
+
return prepareMetadataImageNode(await node);
|
|
46
|
+
}
|
|
47
|
+
if (Array.isArray(node)) {
|
|
48
|
+
return Promise.all(node.map((child) => prepareMetadataImageNode(child)));
|
|
49
|
+
}
|
|
50
|
+
if (!isReactElement(node)) {
|
|
51
|
+
return node;
|
|
52
|
+
}
|
|
53
|
+
const element = node;
|
|
54
|
+
const type = element.type;
|
|
55
|
+
const props = element.props || {};
|
|
56
|
+
if (typeof type === "function") {
|
|
57
|
+
if (_optionalChain([type, 'access', _6 => _6.prototype, 'optionalAccess', _7 => _7.isReactComponent])) {
|
|
58
|
+
throw new Error(
|
|
59
|
+
"Metadata image components must be stateless function components; React class components are not supported."
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
return prepareMetadataImageNode(await type(props));
|
|
63
|
+
}
|
|
64
|
+
const { createElement } = await import("react");
|
|
65
|
+
if (type && typeof type === "object") {
|
|
66
|
+
if (type.$$typeof === REACT_MEMO_TYPE) {
|
|
67
|
+
return prepareMetadataImageNode(createElement(type.type, props));
|
|
68
|
+
}
|
|
69
|
+
if (type.$$typeof === REACT_FORWARD_REF_TYPE) {
|
|
70
|
+
return prepareMetadataImageNode(await type.render(props, null));
|
|
71
|
+
}
|
|
72
|
+
if (type.$$typeof === REACT_LAZY_TYPE) {
|
|
73
|
+
let resolvedType;
|
|
74
|
+
try {
|
|
75
|
+
resolvedType = type._init(type._payload);
|
|
76
|
+
} catch (suspension) {
|
|
77
|
+
if (suspension && typeof suspension.then === "function") {
|
|
78
|
+
await suspension;
|
|
79
|
+
resolvedType = type._init(type._payload);
|
|
80
|
+
} else {
|
|
81
|
+
throw suspension;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return prepareMetadataImageNode(createElement(resolvedType, props));
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
const preparedChildren = await prepareMetadataImageNode(props.children);
|
|
88
|
+
const preparedProps = { ...props };
|
|
89
|
+
if (typeof preparedProps.className === "string") {
|
|
90
|
+
preparedProps.tw = [preparedProps.tw, preparedProps.className].filter(Boolean).join(" ");
|
|
91
|
+
delete preparedProps.className;
|
|
92
|
+
}
|
|
93
|
+
delete preparedProps.children;
|
|
94
|
+
return createElement(type, {
|
|
95
|
+
...preparedProps,
|
|
96
|
+
key: element.key,
|
|
97
|
+
children: preparedChildren
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
var VOID_ELEMENTS = /* @__PURE__ */ new Set([
|
|
101
|
+
"area",
|
|
102
|
+
"base",
|
|
103
|
+
"br",
|
|
104
|
+
"col",
|
|
105
|
+
"embed",
|
|
106
|
+
"hr",
|
|
107
|
+
"img",
|
|
108
|
+
"input",
|
|
109
|
+
"link",
|
|
110
|
+
"meta",
|
|
111
|
+
"source",
|
|
112
|
+
"track",
|
|
113
|
+
"wbr"
|
|
114
|
+
]);
|
|
115
|
+
var RAW_TEXT_ELEMENTS = /* @__PURE__ */ new Set(["script", "style", "template"]);
|
|
116
|
+
var MARKUP_ATTRIBUTE = /\s*([^\s"'<>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/y;
|
|
117
|
+
var MARKUP_ENTITY = /&(#[0-9]+|#x[0-9a-f]+|amp|lt|gt|quot|apos|nbsp);/gi;
|
|
118
|
+
var NAMED_ENTITIES = {
|
|
119
|
+
amp: "&",
|
|
120
|
+
lt: "<",
|
|
121
|
+
gt: ">",
|
|
122
|
+
quot: '"',
|
|
123
|
+
apos: "'",
|
|
124
|
+
nbsp: "\xA0"
|
|
125
|
+
};
|
|
126
|
+
var NUMERIC_VALUE = /^-?(?:\d+|\d*\.\d+)$/;
|
|
127
|
+
function decodeMarkupEntities(value) {
|
|
128
|
+
return value.replace(MARKUP_ENTITY, (entity, name) => {
|
|
129
|
+
if (name[0] !== "#") return _nullishCoalesce(NAMED_ENTITIES[name.toLowerCase()], () => ( entity));
|
|
130
|
+
const code = name[1] === "x" || name[1] === "X" ? Number.parseInt(name.slice(2), 16) : Number.parseInt(name.slice(1), 10);
|
|
131
|
+
return Number.isFinite(code) && code <= 1114111 ? String.fromCodePoint(code) : entity;
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
function splitStyleDeclarations(css) {
|
|
135
|
+
const declarations = [];
|
|
136
|
+
let depth = 0;
|
|
137
|
+
let quote = "";
|
|
138
|
+
let start = 0;
|
|
139
|
+
for (let index = 0; index < css.length; index++) {
|
|
140
|
+
const char = css[index];
|
|
141
|
+
if (quote) {
|
|
142
|
+
if (char === "\\") index++;
|
|
143
|
+
else if (char === quote) quote = "";
|
|
144
|
+
} else if (char === '"' || char === "'") quote = char;
|
|
145
|
+
else if (char === "(") depth++;
|
|
146
|
+
else if (char === ")") depth = Math.max(0, depth - 1);
|
|
147
|
+
else if (char === ";" && depth === 0) {
|
|
148
|
+
declarations.push(css.slice(start, index));
|
|
149
|
+
start = index + 1;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
declarations.push(css.slice(start));
|
|
153
|
+
return declarations;
|
|
154
|
+
}
|
|
155
|
+
function parseInlineStyle(css) {
|
|
156
|
+
const style = {};
|
|
157
|
+
for (const declaration of splitStyleDeclarations(css)) {
|
|
158
|
+
const colon = declaration.indexOf(":");
|
|
159
|
+
if (colon === -1) continue;
|
|
160
|
+
const property = declaration.slice(0, colon).trim();
|
|
161
|
+
const value = declaration.slice(colon + 1).replace(/!important\s*$/i, "").trim();
|
|
162
|
+
if (!property || !value) continue;
|
|
163
|
+
const name = property.startsWith("--") ? property : property.toLowerCase().replace(/^-ms-/, "ms-").replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
164
|
+
style[name] = NUMERIC_VALUE.test(value) ? Number(value) : value;
|
|
165
|
+
}
|
|
166
|
+
return style;
|
|
167
|
+
}
|
|
168
|
+
function toMarkupProps(attributes) {
|
|
169
|
+
const props = {};
|
|
170
|
+
for (const [name, value] of Object.entries(attributes)) {
|
|
171
|
+
if (name === "style") props.style = parseInlineStyle(value);
|
|
172
|
+
else if (name === "class") props.tw = [attributes.tw, value].filter(Boolean).join(" ");
|
|
173
|
+
else if ((name === "width" || name === "height") && NUMERIC_VALUE.test(value)) {
|
|
174
|
+
props[name] = Number(value);
|
|
175
|
+
} else if (name !== "tw" || !("class" in attributes)) props[name] = value;
|
|
176
|
+
}
|
|
177
|
+
return props;
|
|
178
|
+
}
|
|
179
|
+
function readMetadataImageMarkup(markup) {
|
|
180
|
+
const root = { type: "", props: {}, children: [] };
|
|
181
|
+
const open = [root];
|
|
182
|
+
const appendText = (text) => {
|
|
183
|
+
if (!text) return;
|
|
184
|
+
const { children } = open[open.length - 1];
|
|
185
|
+
const last = children.length - 1;
|
|
186
|
+
if (typeof children[last] === "string") children[last] += decodeMarkupEntities(text);
|
|
187
|
+
else children.push(decodeMarkupEntities(text));
|
|
188
|
+
};
|
|
189
|
+
let index = 0;
|
|
190
|
+
while (index < markup.length) {
|
|
191
|
+
const tagStart = markup.indexOf("<", index);
|
|
192
|
+
if (tagStart === -1) {
|
|
193
|
+
appendText(markup.slice(index));
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
appendText(markup.slice(index, tagStart));
|
|
197
|
+
if (markup.startsWith("<!--", tagStart)) {
|
|
198
|
+
const end = markup.indexOf("-->", tagStart + 4);
|
|
199
|
+
index = end === -1 ? markup.length : end + 3;
|
|
200
|
+
continue;
|
|
201
|
+
}
|
|
202
|
+
if (markup[tagStart + 1] === "!" || markup[tagStart + 1] === "?") {
|
|
203
|
+
const end = markup.indexOf(">", tagStart);
|
|
204
|
+
index = end === -1 ? markup.length : end + 1;
|
|
205
|
+
continue;
|
|
206
|
+
}
|
|
207
|
+
if (markup[tagStart + 1] === "/") {
|
|
208
|
+
const end = markup.indexOf(">", tagStart);
|
|
209
|
+
const name2 = markup.slice(tagStart + 2, end === -1 ? void 0 : end).trim().toLowerCase();
|
|
210
|
+
for (let depth = open.length - 1; depth > 0; depth--) {
|
|
211
|
+
if (open[depth].type.toLowerCase() !== name2) continue;
|
|
212
|
+
open.length = depth;
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
index = end === -1 ? markup.length : end + 1;
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
const name = _optionalChain([/^[a-zA-Z][^\s/>]*/, 'access', _8 => _8.exec, 'call', _9 => _9(markup.slice(tagStart + 1)), 'optionalAccess', _10 => _10[0]]);
|
|
219
|
+
if (!name) {
|
|
220
|
+
appendText("<");
|
|
221
|
+
index = tagStart + 1;
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
const attributes = {};
|
|
225
|
+
let cursor = tagStart + 1 + name.length;
|
|
226
|
+
MARKUP_ATTRIBUTE.lastIndex = cursor;
|
|
227
|
+
for (let match = MARKUP_ATTRIBUTE.exec(markup); match; match = MARKUP_ATTRIBUTE.exec(markup)) {
|
|
228
|
+
attributes[match[1]] = decodeMarkupEntities(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(match[2], () => ( match[3])), () => ( match[4])), () => ( "")));
|
|
229
|
+
cursor = MARKUP_ATTRIBUTE.lastIndex;
|
|
230
|
+
}
|
|
231
|
+
const tagEnd = markup.indexOf(">", cursor);
|
|
232
|
+
const selfClosing = markup.slice(cursor, tagEnd).trim() === "/";
|
|
233
|
+
index = tagEnd === -1 ? markup.length : tagEnd + 1;
|
|
234
|
+
const lowered = name.toLowerCase();
|
|
235
|
+
if (RAW_TEXT_ELEMENTS.has(lowered)) {
|
|
236
|
+
const close = markup.toLowerCase().indexOf(`</${lowered}`, index);
|
|
237
|
+
const closeEnd = close === -1 ? -1 : markup.indexOf(">", close);
|
|
238
|
+
index = closeEnd === -1 ? markup.length : closeEnd + 1;
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
const element = {
|
|
242
|
+
type: name,
|
|
243
|
+
props: toMarkupProps(attributes),
|
|
244
|
+
children: []
|
|
245
|
+
};
|
|
246
|
+
open[open.length - 1].children.push(element);
|
|
247
|
+
if (!selfClosing && !VOID_ELEMENTS.has(lowered)) open.push(element);
|
|
248
|
+
}
|
|
249
|
+
const toNode = (element) => {
|
|
250
|
+
const hasElements = element.children.some((child) => typeof child !== "string");
|
|
251
|
+
const children = element.children.filter((child) => !hasElements || typeof child !== "string" || child.trim() !== "").map(
|
|
252
|
+
(child) => typeof child === "string" ? child : toNode(child)
|
|
253
|
+
);
|
|
254
|
+
const props = { ...element.props };
|
|
255
|
+
if (children.length === 1) props.children = children[0];
|
|
256
|
+
else if (children.length > 1) props.children = children;
|
|
257
|
+
return { type: element.type, props };
|
|
258
|
+
};
|
|
259
|
+
const rootElements = root.children.filter(
|
|
260
|
+
(child) => typeof child !== "string"
|
|
261
|
+
);
|
|
262
|
+
const rootText = root.children.some((child) => typeof child === "string" && child.trim() !== "");
|
|
263
|
+
if (rootElements.length !== 1 || rootText) {
|
|
264
|
+
throw new Error(
|
|
265
|
+
`A metadata image must render one root element, but the app renderer rendered ${rootElements.length} elements${rootText ? " and text" : ""} at the top level. Wrap the image in a single element.`
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
return toNode(rootElements[0]);
|
|
269
|
+
}
|
|
270
|
+
async function normalizeFonts(fonts) {
|
|
271
|
+
if (!_optionalChain([fonts, 'optionalAccess', _11 => _11.length])) return void 0;
|
|
272
|
+
return Promise.all(
|
|
273
|
+
fonts.map(async (font) => {
|
|
274
|
+
const data = await font.data;
|
|
275
|
+
const arrayBuffer = ArrayBuffer.isView(data) ? toArrayBuffer(data) : data;
|
|
276
|
+
return { ...font, data: arrayBuffer };
|
|
277
|
+
})
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
function resolveCacheControl(revalidate) {
|
|
281
|
+
if (revalidate === false) {
|
|
282
|
+
return "public, max-age=31536000, immutable";
|
|
283
|
+
}
|
|
284
|
+
if (typeof revalidate === "number" && Number.isFinite(revalidate) && revalidate > 0) {
|
|
285
|
+
return `public, s-maxage=${Math.floor(revalidate)}, stale-while-revalidate=300`;
|
|
286
|
+
}
|
|
287
|
+
return "public, max-age=0, must-revalidate";
|
|
288
|
+
}
|
|
289
|
+
function toArrayBuffer(value) {
|
|
290
|
+
if (value instanceof ArrayBuffer) return value;
|
|
291
|
+
const bytes = new Uint8Array(value.byteLength);
|
|
292
|
+
bytes.set(new Uint8Array(value.buffer, value.byteOffset, value.byteLength));
|
|
293
|
+
return bytes.buffer;
|
|
294
|
+
}
|
|
295
|
+
async function createEntityTag(body) {
|
|
296
|
+
const digest = await globalThis.crypto.subtle.digest("SHA-256", body);
|
|
297
|
+
const hash = Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, "0")).join("").slice(0, 32);
|
|
298
|
+
return `"${hash}"`;
|
|
299
|
+
}
|
|
300
|
+
async function finalizeMetadataImageResponse(body, headers, options) {
|
|
301
|
+
const responseHeaders = new Headers(headers);
|
|
302
|
+
const etag = await createEntityTag(body);
|
|
303
|
+
responseHeaders.set("ETag", etag);
|
|
304
|
+
responseHeaders.set("Content-Length", String(body.byteLength));
|
|
305
|
+
responseHeaders.set("X-Content-Type-Options", "nosniff");
|
|
306
|
+
if (_chunk7Q7UB4TLcjs.matchesFarmIfNoneMatch.call(void 0, options.ifNoneMatch, etag)) {
|
|
307
|
+
return new Response(null, { status: 304, headers: responseHeaders });
|
|
308
|
+
}
|
|
309
|
+
return new Response(_optionalChain([options, 'access', _12 => _12.method, 'optionalAccess', _13 => _13.toUpperCase, 'call', _14 => _14()]) === "HEAD" ? null : body, {
|
|
310
|
+
status: 200,
|
|
311
|
+
headers: responseHeaders
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
async function loadVercelOg() {
|
|
315
|
+
try {
|
|
316
|
+
return await import("@vercel/og");
|
|
317
|
+
} catch (error) {
|
|
318
|
+
if (!_chunkKORZ6PREcjs.isMissingPackageError.call(void 0, error, "@vercel/og")) throw error;
|
|
319
|
+
throw _chunkKORZ6PREcjs.withOptionalPeerCause.call(void 0,
|
|
320
|
+
new Error(
|
|
321
|
+
`Rendering a metadata image from JSX needs @vercel/og, which is not installed. ${_chunkKORZ6PREcjs.VERCEL_OG_INSTALL_HINT}`
|
|
322
|
+
),
|
|
323
|
+
error
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
async function createFarmMetadataImageResponse(value, imageModule, options = {}) {
|
|
328
|
+
const method = (options.method || "GET").toUpperCase();
|
|
329
|
+
if (method !== "GET" && method !== "HEAD") {
|
|
330
|
+
return new Response(null, { status: 405, headers: { Allow: "GET, HEAD" } });
|
|
331
|
+
}
|
|
332
|
+
if (isResponse(value)) {
|
|
333
|
+
return method === "HEAD" ? _chunk4DCWVSL2cjs.omitFarmResponseBody.call(void 0, value) : value;
|
|
334
|
+
}
|
|
335
|
+
const cacheControl = resolveCacheControl(imageModule.revalidate);
|
|
336
|
+
const explicitContentType = _optionalChain([imageModule, 'access', _15 => _15.contentType, 'optionalAccess', _16 => _16.split, 'call', _17 => _17(";", 1), 'access', _18 => _18[0], 'optionalAccess', _19 => _19.trim, 'call', _20 => _20(), 'access', _21 => _21.toLowerCase, 'call', _22 => _22()]);
|
|
337
|
+
const { renderer } = options;
|
|
338
|
+
const isElement = isMetadataImageElement(value, renderer);
|
|
339
|
+
if (isElement && explicitContentType !== "image/svg+xml") {
|
|
340
|
+
const { ImageResponse } = await loadVercelOg();
|
|
341
|
+
const element = rendersWithAppRenderer(value, renderer) ? readMetadataImageMarkup(await renderer.renderToString(value)) : await prepareMetadataImageNode(value);
|
|
342
|
+
const response = new ImageResponse(element, {
|
|
343
|
+
width: _optionalChain([imageModule, 'access', _23 => _23.size, 'optionalAccess', _24 => _24.width]) || 1200,
|
|
344
|
+
height: _optionalChain([imageModule, 'access', _25 => _25.size, 'optionalAccess', _26 => _26.height]) || 630,
|
|
345
|
+
fonts: await normalizeFonts(imageModule.fonts),
|
|
346
|
+
emoji: imageModule.emoji,
|
|
347
|
+
debug: imageModule.debug,
|
|
348
|
+
headers: { "cache-control": cacheControl }
|
|
349
|
+
});
|
|
350
|
+
const headers = new Headers(response.headers);
|
|
351
|
+
headers.set("Cache-Control", cacheControl);
|
|
352
|
+
return finalizeMetadataImageResponse(await response.arrayBuffer(), headers, options);
|
|
353
|
+
}
|
|
354
|
+
let body;
|
|
355
|
+
if (typeof value === "string") {
|
|
356
|
+
body = toArrayBuffer(new TextEncoder().encode(value));
|
|
357
|
+
} else if (value instanceof ArrayBuffer || ArrayBuffer.isView(value)) {
|
|
358
|
+
body = toArrayBuffer(value);
|
|
359
|
+
} else if (isElement) {
|
|
360
|
+
const markup = rendersWithAppRenderer(value, renderer) ? await renderer.renderToString(value) : (await import("react-dom/server")).renderToStaticMarkup(value);
|
|
361
|
+
body = toArrayBuffer(new TextEncoder().encode(markup));
|
|
362
|
+
} else {
|
|
363
|
+
throw new Error(
|
|
364
|
+
"Metadata image must return a Response, string, bytes, or an element: JSX, or one the app renderer created."
|
|
365
|
+
);
|
|
366
|
+
}
|
|
367
|
+
return finalizeMetadataImageResponse(
|
|
368
|
+
body,
|
|
369
|
+
{
|
|
370
|
+
"Content-Type": imageModule.contentType || "image/svg+xml; charset=utf-8",
|
|
371
|
+
"Cache-Control": cacheControl
|
|
372
|
+
},
|
|
373
|
+
options
|
|
374
|
+
);
|
|
375
|
+
}
|
|
376
|
+
async function resolveFarmMetadataImageValue(imageModule, props, options = {}) {
|
|
377
|
+
const image = imageModule.default;
|
|
378
|
+
if (options.component && options.renderer) return options.renderer.createElement(image, props);
|
|
379
|
+
return typeof image === "function" ? await image(props) : image;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
exports.createFarmMetadataImageResponse = createFarmMetadataImageResponse; exports.resolveFarmMetadataImageValue = resolveFarmMetadataImageValue;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkOLKYHTLNcjs = require('./chunk-OLKYHTLN.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk2NOHVIJ3cjs = require('./chunk-2NOHVIJ3.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -109,11 +109,11 @@ function collectFarmDefaultMCPPages(sources, options) {
|
|
|
109
109
|
for (const source of sources) {
|
|
110
110
|
const module = isRecord(source.module) ? source.module : void 0;
|
|
111
111
|
if (_optionalChain([module, 'optionalAccess', _ => _.__farmRouteGuard])) continue;
|
|
112
|
-
if (!
|
|
112
|
+
if (!_chunk2NOHVIJ3cjs.isFarmMarkdownMirrorExposed.call(void 0, options.markdown, source.pattern)) continue;
|
|
113
113
|
readable.push({ pattern: source.pattern, metadata: _optionalChain([module, 'optionalAccess', _2 => _2.metadata]) });
|
|
114
114
|
}
|
|
115
|
-
const base =
|
|
116
|
-
return
|
|
115
|
+
const base = _chunkOLKYHTLNcjs.resolveFarmAgentOrigin.call(void 0, options.metadataBase, options.origin);
|
|
116
|
+
return _chunkOLKYHTLNcjs.collectFarmLlmsTxtPages.call(void 0, readable, {
|
|
117
117
|
origin: options.origin,
|
|
118
118
|
basePath: options.basePath,
|
|
119
119
|
markdown: options.markdown
|
|
@@ -122,13 +122,13 @@ function collectFarmDefaultMCPPages(sources, options) {
|
|
|
122
122
|
title: page.title,
|
|
123
123
|
// As the sitemap lists it: '/base' without trailingSlash ('/base/' redirects there).
|
|
124
124
|
url: `${base}${_chunkDVJM55D2cjs.normalizeFarmTrailingSlashPathname.call(void 0,
|
|
125
|
-
|
|
125
|
+
_chunkOLKYHTLNcjs.getFarmAgentPagePublicPath.call(void 0, page.path, options),
|
|
126
126
|
options.trailingSlash === true
|
|
127
127
|
)}`,
|
|
128
128
|
...page.description ? { description: page.description } : {},
|
|
129
129
|
// A mirror keeps its .md URL whatever trailingSlash says, as llms.txt links it.
|
|
130
|
-
markdownUrl: `${options.origin}${
|
|
131
|
-
|
|
130
|
+
markdownUrl: `${options.origin}${_chunkOLKYHTLNcjs.getFarmAgentPagePublicPath.call(void 0,
|
|
131
|
+
_chunk2NOHVIJ3cjs.getFarmMarkdownMirrorPath.call(void 0, page.path),
|
|
132
132
|
options
|
|
133
133
|
)}`
|
|
134
134
|
}));
|