@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
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkOLKYHTLNcjs = require('./chunk-OLKYHTLN.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk2NOHVIJ3cjs = require('./chunk-2NOHVIJ3.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkDVJM55D2cjs = require('./chunk-DVJM55D2.cjs');
|
|
@@ -166,22 +166,22 @@ function resolveRoutePatterns(value, key) {
|
|
|
166
166
|
}
|
|
167
167
|
function createFarmDefaultSitemap(sources, options) {
|
|
168
168
|
const { include, exclude } = options.config;
|
|
169
|
-
const base =
|
|
169
|
+
const base = _chunkOLKYHTLNcjs.resolveFarmAgentOrigin.call(void 0, options.metadataBase, options.origin);
|
|
170
170
|
const entries = /* @__PURE__ */ new Map();
|
|
171
171
|
for (const source of sources) {
|
|
172
172
|
const path = source.pattern;
|
|
173
173
|
if (path.includes("[") || path.includes("(") || entries.has(path)) continue;
|
|
174
|
-
if (include.length && !include.some((pattern) =>
|
|
174
|
+
if (include.length && !include.some((pattern) => _chunk2NOHVIJ3cjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) {
|
|
175
175
|
continue;
|
|
176
176
|
}
|
|
177
|
-
if (exclude.some((pattern) =>
|
|
177
|
+
if (exclude.some((pattern) => _chunk2NOHVIJ3cjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) continue;
|
|
178
178
|
const module = isRecord(source.module) ? source.module : void 0;
|
|
179
|
-
if (
|
|
179
|
+
if (_chunkOLKYHTLNcjs.isFarmMetadataNoIndex.call(void 0, _optionalChain([module, 'optionalAccess', _2 => _2.metadata]))) continue;
|
|
180
180
|
if (_optionalChain([module, 'optionalAccess', _3 => _3.__farmRouteGuard])) continue;
|
|
181
181
|
entries.set(path, {
|
|
182
182
|
url: new URL(
|
|
183
183
|
_chunkDVJM55D2cjs.normalizeFarmTrailingSlashPathname.call(void 0,
|
|
184
|
-
|
|
184
|
+
_chunkOLKYHTLNcjs.getFarmAgentPagePublicPath.call(void 0, path, options),
|
|
185
185
|
options.trailingSlash === true
|
|
186
186
|
),
|
|
187
187
|
base
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkPWDBWXQIcjs = require('./chunk-PWDBWXQI.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkXRRHPBG2cjs = require('./chunk-XRRHPBG2.cjs');
|
|
@@ -160,8 +160,8 @@ function createFarmConfigResolutionPlugin(options) {
|
|
|
160
160
|
kind: extraOptions.kind,
|
|
161
161
|
skipSelf: true
|
|
162
162
|
});
|
|
163
|
-
if (!_optionalChain([resolved, 'optionalAccess', _ => _.id]) || !
|
|
164
|
-
return await _asyncNullishCoalesce(await
|
|
163
|
+
if (!_optionalChain([resolved, 'optionalAccess', _ => _.id]) || !_chunkPWDBWXQIcjs.isDeclarationFile.call(void 0, resolved.id)) return _optionalChain([resolved, 'optionalAccess', _2 => _2.id]);
|
|
164
|
+
return await _asyncNullishCoalesce(await _chunkPWDBWXQIcjs.resolvePackageWithoutTsconfig.call(void 0, specifier, importer, extraOptions.kind), async () => ( void 0));
|
|
165
165
|
};
|
|
166
166
|
if (source === FARM_CORE_PACKAGE && extraOptions.kind === "import-statement") {
|
|
167
167
|
let configEntryCheck = configEntryChecks.get(importer);
|
|
@@ -194,7 +194,7 @@ async function loadFarmConfigFile(configPath, options) {
|
|
|
194
194
|
configCacheDir,
|
|
195
195
|
`farm-config-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`
|
|
196
196
|
);
|
|
197
|
-
await
|
|
197
|
+
await _chunkPWDBWXQIcjs.bundleNodeModule.call(void 0, {
|
|
198
198
|
root: _path2.default.resolve(options.root),
|
|
199
199
|
entry: _path2.default.resolve(configPath),
|
|
200
200
|
outfile: modulePath,
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkEX6ZSN5Pcjs = require('./chunk-EX6ZSN5P.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkCKPTIEDXcjs = require('./chunk-CKPTIEDX.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunkUZCMMJJTcjs = require('./chunk-UZCMMJJT.cjs');
|
|
12
|
+
|
|
13
|
+
// src/islands-action-client.ts
|
|
14
|
+
function createFarmServerFnTransportError(value) {
|
|
15
|
+
const failure = value;
|
|
16
|
+
const error = new Error(
|
|
17
|
+
failure && typeof failure.message === "string" ? failure.message : "Server function failed"
|
|
18
|
+
);
|
|
19
|
+
if (failure && failure.name === "ServerFnFailure" && typeof failure.code === "string" && Number.isInteger(failure.status) && failure.status >= 400 && failure.status <= 599 && Object.prototype.hasOwnProperty.call(failure, "data")) {
|
|
20
|
+
error.name = "ServerFnFailure";
|
|
21
|
+
error.code = failure.code;
|
|
22
|
+
error.status = failure.status;
|
|
23
|
+
error.data = failure.data;
|
|
24
|
+
Object.defineProperty(error, /* @__PURE__ */ Symbol.for("farm.server-fn.failure"), {
|
|
25
|
+
value: true,
|
|
26
|
+
enumerable: false
|
|
27
|
+
});
|
|
28
|
+
return error;
|
|
29
|
+
}
|
|
30
|
+
error.name = "ServerActionError";
|
|
31
|
+
return error;
|
|
32
|
+
}
|
|
33
|
+
var farmIslandsActionInterceptor = async (call, next) => {
|
|
34
|
+
const invocation = _chunkEX6ZSN5Pcjs.beginFarmServerQueryAction.call(void 0, call.id, call.args);
|
|
35
|
+
let result;
|
|
36
|
+
try {
|
|
37
|
+
result = await next();
|
|
38
|
+
} catch (error2) {
|
|
39
|
+
if (error2 instanceof Error && error2.message.startsWith("Server action failed")) {
|
|
40
|
+
throw createFarmServerFnTransportError(void 0);
|
|
41
|
+
}
|
|
42
|
+
throw error2;
|
|
43
|
+
}
|
|
44
|
+
if (!_chunkCKPTIEDXcjs.isFarmIslandsActionResult.call(void 0, result)) return result;
|
|
45
|
+
const { invalidations, error } = result.__farmAction;
|
|
46
|
+
if (_chunkEX6ZSN5Pcjs.shouldApplyFarmServerQueryActionResult.call(void 0, invocation))
|
|
47
|
+
_chunkUZCMMJJTcjs.applyFarmCacheInvalidations.call(void 0, invalidations);
|
|
48
|
+
if (error) throw createFarmServerFnTransportError(error);
|
|
49
|
+
return _chunkEX6ZSN5Pcjs.completeFarmServerQueryAction.call(void 0, invocation, result.value);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
exports.farmIslandsActionInterceptor = farmIslandsActionInterceptor;
|
|
@@ -7,11 +7,12 @@ import {
|
|
|
7
7
|
_listFarmRegisteredMCPServerTools,
|
|
8
8
|
_observeFarmRegisteredMCPResponse,
|
|
9
9
|
_readFarmRegisteredMCPCalls
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZIEO3DQ3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
createFarmImageHandler
|
|
13
13
|
} from "./chunk-UD6KTSJS.mjs";
|
|
14
14
|
import {
|
|
15
|
+
FARM_EARLY_NAVIGATION_SOURCE,
|
|
15
16
|
FARM_LAYOUT_ELEMENT_CLIENT_SOURCE,
|
|
16
17
|
FARM_NAVIGATION_SCRIPT_SOURCE,
|
|
17
18
|
FARM_NAVIGATION_STREAM_READER_SOURCE,
|
|
@@ -26,6 +27,7 @@ import {
|
|
|
26
27
|
createFarmSourceAlias,
|
|
27
28
|
createFarmThemeCssPlugin,
|
|
28
29
|
exactIdPattern,
|
|
30
|
+
farmBrowserServerFnsEnabled,
|
|
29
31
|
farmFontImportsPlugin,
|
|
30
32
|
generateClientCachePersistenceCode,
|
|
31
33
|
generateFarmIntegrationProviderClientCode,
|
|
@@ -38,24 +40,25 @@ import {
|
|
|
38
40
|
resolveFarmAppPackages,
|
|
39
41
|
resolveFarmClientCacheAdapterEntry,
|
|
40
42
|
resolveFarmImageProviderForRuntime,
|
|
43
|
+
resolveFarmIslxActionsMode,
|
|
41
44
|
resolveFarmRouteRootStrategy,
|
|
42
45
|
toBakedMarkdownSourcePath
|
|
43
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-IPG6B25T.mjs";
|
|
44
47
|
import {
|
|
45
48
|
generateFarmClientPluginEntryCode,
|
|
46
49
|
hasFarmServerRuntimePlugins,
|
|
47
50
|
loadTailwindVitePlugin
|
|
48
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-RPA45OQS.mjs";
|
|
49
52
|
import {
|
|
50
53
|
FARM_NODE_RESPONSE_END_PENDING
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import {
|
|
53
|
-
resolveFarmPlatform
|
|
54
|
-
} from "./chunk-SMUW7UST.mjs";
|
|
54
|
+
} from "./chunk-C2OLXVUC.mjs";
|
|
55
55
|
import {
|
|
56
56
|
generateFarmTypeArtifacts,
|
|
57
57
|
resolveRouteRenderingConfig
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-TLSGRK7E.mjs";
|
|
59
|
+
import {
|
|
60
|
+
resolveFarmPlatform
|
|
61
|
+
} from "./chunk-SMUW7UST.mjs";
|
|
59
62
|
import {
|
|
60
63
|
createFarmRouteRenderPlan,
|
|
61
64
|
farmPathGuardCoversEndpoint,
|
|
@@ -64,7 +67,7 @@ import {
|
|
|
64
67
|
getSharedLayoutPrefixLength,
|
|
65
68
|
parseFarmLayoutChainHeader,
|
|
66
69
|
renderFarmLocaleAlternateLinks
|
|
67
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-OO4GVGM3.mjs";
|
|
68
71
|
import {
|
|
69
72
|
FARM_NATIVE_TREE_CONTENT_TYPE
|
|
70
73
|
} from "./chunk-LLZSYFOM.mjs";
|
|
@@ -82,13 +85,13 @@ import {
|
|
|
82
85
|
resolveFarmMCPRouteLabel,
|
|
83
86
|
resolveFarmMarkdownRouteLabel,
|
|
84
87
|
setFarmRouteLabel
|
|
85
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-RZ6XUEQS.mjs";
|
|
86
89
|
import {
|
|
87
90
|
FARM_DEFAULT_MCP_PATH
|
|
88
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-HR4N2K4V.mjs";
|
|
89
92
|
import {
|
|
90
93
|
isFarmPreviewDeploymentEnvironment
|
|
91
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-GY63XD6K.mjs";
|
|
92
95
|
import {
|
|
93
96
|
createFarmServerFnBoundaryModule,
|
|
94
97
|
isFarmServerFnBoundaryId,
|
|
@@ -139,7 +142,7 @@ import {
|
|
|
139
142
|
usePackageScanCacheFile,
|
|
140
143
|
withFarmSourceSnapshotOf,
|
|
141
144
|
wrapFarmIslandContainers
|
|
142
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-HTNJ7A4D.mjs";
|
|
143
146
|
import {
|
|
144
147
|
generateFarmDocsAdapterClientRuntime,
|
|
145
148
|
getFarmDocsAdapterConfigModule
|
|
@@ -163,10 +166,10 @@ import {
|
|
|
163
166
|
FARM_PREVIEW_ROBOTS_TAG,
|
|
164
167
|
resolveFarmAgentCrawlers,
|
|
165
168
|
resolveFarmAgentSitemap
|
|
166
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-SLEHAGGV.mjs";
|
|
167
170
|
import {
|
|
168
171
|
resolveFarmLlmsTxtConfig
|
|
169
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-XGL42MQ7.mjs";
|
|
170
173
|
import {
|
|
171
174
|
resolveFarmServerComponentsMode
|
|
172
175
|
} from "./chunk-4QENVMG7.mjs";
|
|
@@ -174,7 +177,7 @@ import {
|
|
|
174
177
|
getFarmAppDirectories,
|
|
175
178
|
getFarmLayerAliases,
|
|
176
179
|
getFarmSourceRoots
|
|
177
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-Z3RM3VA2.mjs";
|
|
178
181
|
import {
|
|
179
182
|
REACT_RENDERER,
|
|
180
183
|
getFarmRendererCapabilities,
|
|
@@ -184,7 +187,7 @@ import {
|
|
|
184
187
|
resolveFarmComponentExtensions,
|
|
185
188
|
resolveFarmRenderer,
|
|
186
189
|
resolveFarmRendererAppSetup
|
|
187
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-2HMSSPCZ.mjs";
|
|
188
191
|
import {
|
|
189
192
|
getPublicFarmImageConfig,
|
|
190
193
|
resolveFarmImageConfig
|
|
@@ -196,7 +199,7 @@ import {
|
|
|
196
199
|
createFarmMarkdownSourceResponse,
|
|
197
200
|
isFarmMarkdownPageFile,
|
|
198
201
|
normalizeFarmMarkdownRoutePath
|
|
199
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-ICOJ2BC6.mjs";
|
|
200
203
|
import {
|
|
201
204
|
resolveFarmMdxComponentsModulePath,
|
|
202
205
|
resolveMdxConfig
|
|
@@ -208,21 +211,21 @@ import {
|
|
|
208
211
|
farmRequestWantsMarkdown,
|
|
209
212
|
getFarmMarkdownAlternatePath,
|
|
210
213
|
resolveMarkdownMirrorTarget
|
|
211
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-YU2MNIIY.mjs";
|
|
212
215
|
import {
|
|
213
216
|
dispatchIntegrationRequest,
|
|
214
217
|
getFarmIntegrationPluginOwner,
|
|
215
218
|
getIntegrationDocumentNavigationMatchers,
|
|
216
219
|
getIntegrationProviders,
|
|
217
220
|
matchIntegrationRoute
|
|
218
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-6JWXHPVR.mjs";
|
|
219
222
|
import {
|
|
220
223
|
resolveFarmRouteContext,
|
|
221
224
|
withFarmRouteContext
|
|
222
225
|
} from "./chunk-BMQAPZXD.mjs";
|
|
223
226
|
import {
|
|
224
227
|
MiddlewareManager
|
|
225
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-3RVLJTFZ.mjs";
|
|
226
229
|
import {
|
|
227
230
|
_runWithMiddlewareContext,
|
|
228
231
|
_runWithMiddlewareData
|
|
@@ -238,7 +241,7 @@ import {
|
|
|
238
241
|
} from "./chunk-IYEY3JWJ.mjs";
|
|
239
242
|
import {
|
|
240
243
|
APIRouteManager
|
|
241
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-6WVRVGKC.mjs";
|
|
242
245
|
import {
|
|
243
246
|
getFarmI18nClientSnapshot
|
|
244
247
|
} from "./chunk-O7JEFGUV.mjs";
|
|
@@ -250,7 +253,7 @@ import {
|
|
|
250
253
|
FARM_INTERNAL_SERVER_ERROR_BODY,
|
|
251
254
|
createFarmInternalServerErrorResponse,
|
|
252
255
|
isFarmAPIPathname
|
|
253
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-TYHWZOA2.mjs";
|
|
254
257
|
import {
|
|
255
258
|
registerFarmMCPServer
|
|
256
259
|
} from "./chunk-F7MJWW6A.mjs";
|
|
@@ -280,7 +283,7 @@ import {
|
|
|
280
283
|
logger,
|
|
281
284
|
toPosixPath,
|
|
282
285
|
toViteModuleId
|
|
283
|
-
} from "./chunk-
|
|
286
|
+
} from "./chunk-U6GMCDRS.mjs";
|
|
284
287
|
import {
|
|
285
288
|
resolveFarmAPIServerBasePath
|
|
286
289
|
} from "./chunk-2I6PUKWJ.mjs";
|
|
@@ -298,10 +301,10 @@ import {
|
|
|
298
301
|
import {
|
|
299
302
|
emitFarmEvent,
|
|
300
303
|
runWithFarmRequestSpan
|
|
301
|
-
} from "./chunk-
|
|
304
|
+
} from "./chunk-EILUVBKS.mjs";
|
|
302
305
|
import {
|
|
303
306
|
FARM_VERSION
|
|
304
|
-
} from "./chunk-
|
|
307
|
+
} from "./chunk-D77OGI6X.mjs";
|
|
305
308
|
import {
|
|
306
309
|
DEFAULT_FARM_API_BASE_PATH
|
|
307
310
|
} from "./chunk-W6QLRQ3V.mjs";
|
|
@@ -362,7 +365,10 @@ function transformFarmFormActionModule(options) {
|
|
|
362
365
|
root: options.root,
|
|
363
366
|
environment: options.ssr ? "server" : "client",
|
|
364
367
|
parse: options.parse,
|
|
365
|
-
runtime: {
|
|
368
|
+
runtime: options.runtime === "renderer" ? {
|
|
369
|
+
server: runtimeModule("@farm.js/core/internal/islx-actions-server"),
|
|
370
|
+
client: runtimeModule("@farm.js/core/internal/islx-actions-client")
|
|
371
|
+
} : {
|
|
366
372
|
server: runtimeModule("@farm.js/core/internal/islx-server"),
|
|
367
373
|
client: runtimeModule("@farm.js/core/internal/islx-client")
|
|
368
374
|
}
|
|
@@ -986,7 +992,8 @@ import { readFile } from "fs/promises";
|
|
|
986
992
|
import path4 from "path";
|
|
987
993
|
import { imageSize } from "image-size";
|
|
988
994
|
var FARM_IMAGE_ID_PREFIX = "\0farm:image:";
|
|
989
|
-
var STATIC_IMAGE_RE = /\.(?:avif|gif|jpe?g|png|webp)$/i;
|
|
995
|
+
var STATIC_IMAGE_RE = /\.(?:avif|gif|jpe?g|png|svg|webp)$/i;
|
|
996
|
+
var SVG_RE = /\.svg$/i;
|
|
990
997
|
var SCRIPT_IMPORTER_RE = /\.(?:[cm]?[jt]sx?|mdx?)$/i;
|
|
991
998
|
function farmImageImportsPlugin() {
|
|
992
999
|
return {
|
|
@@ -1021,7 +1028,7 @@ async function createStaticImageModule(filePath, sourceDeclaration) {
|
|
|
1021
1028
|
if (!dimensions.width || !dimensions.height) {
|
|
1022
1029
|
throw new Error(`Could not determine image dimensions for ${filePath}`);
|
|
1023
1030
|
}
|
|
1024
|
-
const blurDataURL = await createBlurDataURL(bytes);
|
|
1031
|
+
const blurDataURL = SVG_RE.test(filePath) ? void 0 : await createBlurDataURL(bytes);
|
|
1025
1032
|
return [
|
|
1026
1033
|
sourceDeclaration,
|
|
1027
1034
|
`const image = ${JSON.stringify({
|
|
@@ -1264,7 +1271,7 @@ function loadFarmDocsDevRuntime() {
|
|
|
1264
1271
|
return import("./docs.mjs");
|
|
1265
1272
|
}
|
|
1266
1273
|
function loadFarmDocsSearchDevRuntime() {
|
|
1267
|
-
return import("./search-client-
|
|
1274
|
+
return import("./search-client-GIXIEU75.mjs");
|
|
1268
1275
|
}
|
|
1269
1276
|
function loadFarmOpenAPIDevRuntime() {
|
|
1270
1277
|
return import("./manager-OMTC5FOJ.mjs");
|
|
@@ -1273,7 +1280,7 @@ function loadFarmWorkflowsDevRuntime() {
|
|
|
1273
1280
|
return import("./workflows.mjs");
|
|
1274
1281
|
}
|
|
1275
1282
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
1276
|
-
return import("./devtools-
|
|
1283
|
+
return import("./devtools-XJHODO5H.mjs");
|
|
1277
1284
|
}
|
|
1278
1285
|
function loadFarmDevtoolsUIRuntime() {
|
|
1279
1286
|
return import("./devtools-ui-BOG33MT5.mjs");
|
|
@@ -1297,6 +1304,25 @@ function farmI18nClientBridgePlugin() {
|
|
|
1297
1304
|
}
|
|
1298
1305
|
};
|
|
1299
1306
|
}
|
|
1307
|
+
function farmNavigationPlugin(renderer) {
|
|
1308
|
+
const otherRenderer = !isFarmRendererDisabled(renderer) && !isReactRenderer(renderer || void 0) && (renderer || void 0)?.name !== "preact";
|
|
1309
|
+
return {
|
|
1310
|
+
name: "farm:navigation",
|
|
1311
|
+
config() {
|
|
1312
|
+
if (!otherRenderer) return;
|
|
1313
|
+
return {
|
|
1314
|
+
resolve: {
|
|
1315
|
+
alias: [
|
|
1316
|
+
{
|
|
1317
|
+
find: /^@farm\.js\/core\/navigation$/,
|
|
1318
|
+
replacement: "@farm.js/core/internal/navigation-neutral"
|
|
1319
|
+
}
|
|
1320
|
+
]
|
|
1321
|
+
}
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
};
|
|
1325
|
+
}
|
|
1300
1326
|
var FARM_SERVER_ONLY_ENTRIES = /* @__PURE__ */ new Set(["@farm.js/core/og"]);
|
|
1301
1327
|
var SERVER_ONLY_PACKAGE = "server-only";
|
|
1302
1328
|
var farmReactServerFiles = /* @__PURE__ */ new Set();
|
|
@@ -2243,6 +2269,15 @@ async function warnClientBoundaryOnce(context, id, code, config) {
|
|
|
2243
2269
|
).join("\n")
|
|
2244
2270
|
);
|
|
2245
2271
|
}
|
|
2272
|
+
function isFarmAppRuntimeFile(file, appDirs, routeModuleExtensions) {
|
|
2273
|
+
const normalized = file.replace(/\\/g, "/");
|
|
2274
|
+
if (!appDirs.some((appDir) => normalized.startsWith(`${appDir}/`))) return false;
|
|
2275
|
+
const routeModule = /\/(?:page|default|layout|loading|error)(\.[^./]+)$/.exec(normalized);
|
|
2276
|
+
if (routeModule) return routeModuleExtensions.has(routeModule[1].toLowerCase());
|
|
2277
|
+
return /\/(?:middleware|route)\.(?:ts|tsx|js|jsx|md|mdx)$|\/(?:sitemap|robots|manifest)\.(?:ts|js)$|\/(?:opengraph-image|twitter-image)(?:\.(?:ts|tsx|js|jsx|png|jpg|jpeg|gif|webp)|\.alt\.txt)$/.test(
|
|
2278
|
+
normalized
|
|
2279
|
+
);
|
|
2280
|
+
}
|
|
2246
2281
|
function shouldEmitFarmClientRootHmr(renderer) {
|
|
2247
2282
|
return getFarmRendererCapabilities(resolveFarmRenderer(renderer)).reconcilesRerenders;
|
|
2248
2283
|
}
|
|
@@ -2311,10 +2346,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2311
2346
|
if (mdxComponents) files.add(mdxComponents);
|
|
2312
2347
|
return files;
|
|
2313
2348
|
};
|
|
2314
|
-
const
|
|
2315
|
-
|
|
2316
|
-
return config.experimental?.serverActions === true && resolveFarmServerComponentsMode(config.experimental?.serverComponents) === "islands";
|
|
2317
|
-
};
|
|
2349
|
+
const islxActionsMode = () => resolveFarmIslxActionsMode(farmApp?.getConfig() ?? options);
|
|
2350
|
+
const islandsServerFns = () => farmBrowserServerFnsEnabled(farmApp?.getConfig() ?? options);
|
|
2318
2351
|
let reactRefreshActive = false;
|
|
2319
2352
|
let server;
|
|
2320
2353
|
let deferredGates;
|
|
@@ -2579,12 +2612,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2579
2612
|
(srcDir) => isPotentialProgrammaticRouteSourceFile(normalized, srcDir)
|
|
2580
2613
|
);
|
|
2581
2614
|
};
|
|
2582
|
-
const isAppRuntimeFile = (file) =>
|
|
2583
|
-
const normalized = file.replace(/\\/g, "/");
|
|
2584
|
-
return appDirSlugs.some((appDir) => normalized.startsWith(`${appDir}/`)) && /\/(?:page|default|layout|loading|error|middleware|route)\.(?:ts|tsx|js|jsx|md|mdx)$|\/(?:sitemap|robots|manifest)\.(?:ts|js)$|\/(?:opengraph-image|twitter-image)(?:\.(?:ts|tsx|js|jsx|png|jpg|jpeg|gif|webp)|\.alt\.txt)$/.test(
|
|
2585
|
-
normalized
|
|
2586
|
-
);
|
|
2587
|
-
};
|
|
2615
|
+
const isAppRuntimeFile = (file) => isFarmAppRuntimeFile(file, appDirSlugs, routeModuleExtensions);
|
|
2588
2616
|
const isStaticMetadataImageFile = (file) => /\/(?:opengraph-image|twitter-image)(?:\.(?:png|jpg|jpeg|gif|webp)|\.alt\.txt)$/.test(
|
|
2589
2617
|
file.replace(/\\/g, "/")
|
|
2590
2618
|
);
|
|
@@ -3533,7 +3561,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3533
3561
|
}
|
|
3534
3562
|
}
|
|
3535
3563
|
if (options.mobileClient && !viteModuleRequest && (requestMethod === "GET" || requestMethod === "HEAD" || requestMethod === "POST") && req.headers.accept?.includes(FARM_NATIVE_TREE_CONTENT_TYPE)) {
|
|
3536
|
-
const { createFarmNativeTreeResponse } = await import("./native-tree-
|
|
3564
|
+
const { createFarmNativeTreeResponse } = await import("./native-tree-LNO7K6JR.mjs");
|
|
3537
3565
|
const treeBodyInit = requestMethod === "POST" ? { body: createFarmNodeRequestBodyStream(req), duplex: "half" } : {};
|
|
3538
3566
|
const treeResponse = await createFarmNativeTreeResponse({
|
|
3539
3567
|
request: new Request(fullUrl, {
|
|
@@ -4827,7 +4855,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4827
4855
|
) : EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME;
|
|
4828
4856
|
const generatedDevtoolsClientRuntime = devtoolsClientRuntime ? devtoolsClientRuntime.generateFarmDevtoolsClientRuntime(devtools) : "";
|
|
4829
4857
|
const generatedDevIndicatorsClientRuntime = farmApp ? generateFarmDevIndicatorsClientRuntime(farmApp.getConfig().devIndicators) : "";
|
|
4830
|
-
const integrationProviders =
|
|
4858
|
+
const integrationProviders = getIntegrationProviders(integrations);
|
|
4831
4859
|
const isolatedHydrationMode = resolveFarmIsolatedClientHydrationMode(
|
|
4832
4860
|
resolvedConfig?.experimental?.isolatedClientHydration,
|
|
4833
4861
|
{
|
|
@@ -4973,7 +5001,8 @@ export { manifest };
|
|
|
4973
5001
|
code = serverFns.code;
|
|
4974
5002
|
}
|
|
4975
5003
|
}
|
|
4976
|
-
|
|
5004
|
+
const actionsMode = islxActionsMode();
|
|
5005
|
+
if (actionsMode !== null && code.includes("use server") && !id.includes("/node_modules/") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id)) {
|
|
4977
5006
|
const file = id.split("?", 1)[0];
|
|
4978
5007
|
const actionModule = transformFarmFormActionModule({
|
|
4979
5008
|
code,
|
|
@@ -4982,7 +5011,8 @@ export { manifest };
|
|
|
4982
5011
|
ssr: transformOptions?.ssr === true,
|
|
4983
5012
|
// Parsed by file type: page components are TSX.
|
|
4984
5013
|
parse: (source) => parseSync(file, source).program,
|
|
4985
|
-
runtimeModule
|
|
5014
|
+
runtimeModule,
|
|
5015
|
+
runtime: actionsMode
|
|
4986
5016
|
});
|
|
4987
5017
|
if (actionModule) return { code: actionModule, map: null };
|
|
4988
5018
|
}
|
|
@@ -5590,7 +5620,8 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
5590
5620
|
route: parsed.kind === "api" ? void 0 : clientRoutes?.routes.get(
|
|
5591
5621
|
programmaticClientRouteKey(routesFile, parsed.kind, parsed.routePath)
|
|
5592
5622
|
),
|
|
5593
|
-
|
|
5623
|
+
// React's client module exports no createElement; the main client entry imports React too.
|
|
5624
|
+
rendererClient: isReactRenderer(renderer) ? "react" : renderer.client,
|
|
5594
5625
|
toImportSpecifier: (file) => toProgrammaticRouteImportSpecifier(file, root)
|
|
5595
5626
|
});
|
|
5596
5627
|
}
|
|
@@ -5948,9 +5979,18 @@ function generateClientCode(integrationProviders = [], documentNavigationMatcher
|
|
|
5948
5979
|
const appSetupPath = resolveFarmRendererAppSetup(root, renderer);
|
|
5949
5980
|
const rendererClientImports = isReactRenderer(renderer) ? `import React from 'react'
|
|
5950
5981
|
import { hydrateRoot, createRoot } from 'react-dom/client'
|
|
5951
|
-
import { restorePagePosition } from '@farm.js/core/internal/client-runtime'` :
|
|
5982
|
+
import { restorePagePosition } from '@farm.js/core/internal/client-runtime'` : (
|
|
5983
|
+
// Named exports only: a renderer's client module needs no default export. `React` is a
|
|
5984
|
+
// copy of the namespace, as in the production entry, where Rolldown warns about each
|
|
5985
|
+
// optional export (`Children`, `markFunctionComponent`) feature-checked on the namespace.
|
|
5986
|
+
appSetupPath ? `import * as __farmRendererClient from ${JSON.stringify(renderer.client)}
|
|
5987
|
+
import { hydrateRoot, createRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)}
|
|
5952
5988
|
import __farmAppSetup from ${JSON.stringify(toViteModuleId(appSetupPath, root))}
|
|
5953
|
-
|
|
5989
|
+
const React = { ...__farmRendererClient }
|
|
5990
|
+
__farmConfigureApp(__farmAppSetup)` : `import * as __farmRendererClient from ${JSON.stringify(renderer.client)}
|
|
5991
|
+
import { hydrateRoot, createRoot } from ${JSON.stringify(renderer.client)}
|
|
5992
|
+
const React = { ...__farmRendererClient }`
|
|
5993
|
+
);
|
|
5954
5994
|
const isolatedHydrationImport = isolatedHydrationEnabled ? `${islandValues ? "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph, createFarmServerTreeElement, createFarmServerTreeLayout } from '@farm.js/core/internal/islands-runtime'" : "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph } from '@farm.js/core/internal/isolated-boundary'\nimport { createFarmServerTreeElement } from '@farm.js/core/internal/server-tree'"}` : "";
|
|
5955
5995
|
const docsAdapterImportBlock = generateFarmDocsAdapterClientRuntime(
|
|
5956
5996
|
docsAdapterReact,
|
|
@@ -6006,17 +6046,18 @@ function rerenderFarmTreeLayouts() {}`;
|
|
|
6006
6046
|
return `
|
|
6007
6047
|
${rendererClientImports}
|
|
6008
6048
|
${isolatedHydrationImport}
|
|
6009
|
-
import { installChunkErrorRecovery, SPARouter } from '@farm.js/core/client'
|
|
6010
6049
|
import { createClientPluginManager } from '@farm.js/core/plugin/client'
|
|
6050
|
+
// Not @farm.js/core/client: that module's graph imports react, which other renderers' apps lack.
|
|
6051
|
+
import { SPARouter } from '@farm.js/core/internal/spa-router'
|
|
6011
6052
|
import { isFarmRouteActive } from '@farm.js/core/router'
|
|
6012
|
-
import { installFarmLinkPrefetch, isFarmBlockedNavigationURL, readFarmLinkNavigateOptions, rememberFarmLinkLocale, replayFarmQueuedInteraction, scheduleFarmIslandHydration, createFarmSearchParams, searchParamsToObject, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from '@farm.js/core/internal/client-runtime'
|
|
6053
|
+
import { installChunkErrorRecovery, installFarmLinkPrefetch, isFarmBlockedNavigationURL, readFarmLinkNavigateOptions, rememberFarmLinkLocale, replayFarmQueuedInteraction, scheduleFarmIslandHydration, createFarmSearchParams, searchParamsToObject, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from '@farm.js/core/internal/client-runtime'
|
|
6013
6054
|
import { reviveDeferredData } from '@farm.js/core/deferred'
|
|
6014
6055
|
import {
|
|
6015
6056
|
createFarmDeploymentMismatchError,
|
|
6016
6057
|
createFarmDeploymentRequestHeaders,
|
|
6017
6058
|
isFarmDeploymentMismatchResponse,
|
|
6018
6059
|
} from '@farm.js/core/deployment'
|
|
6019
|
-
${islandValues ? "import { getFarmIslandValueHeaders } from '@farm.js/core/internal/client-runtime'" : ""}
|
|
6060
|
+
${islandValues ? "import { getFarmIslandValueHeaders, keepFarmIslandValues } from '@farm.js/core/internal/client-runtime'" : ""}
|
|
6020
6061
|
${providerClientCode.imports}
|
|
6021
6062
|
${clientPluginEntry.imports}
|
|
6022
6063
|
|
|
@@ -7261,6 +7302,8 @@ ${islandValues ? `
|
|
|
7261
7302
|
|
|
7262
7303
|
${islandValues ? `${FARM_NAVIGATION_STREAM_READER_SOURCE}
|
|
7263
7304
|
|
|
7305
|
+
${FARM_EARLY_NAVIGATION_SOURCE}
|
|
7306
|
+
|
|
7264
7307
|
// Islands mode navigates as the production client does: it fetches the page itself, names the
|
|
7265
7308
|
// layouts it shows by key (F-Layouts), and asks for flush markers (F-Stream), so the shell arrives
|
|
7266
7309
|
// before slow Suspense content. Other pages (a client page, a layout that hydrates, route slots)
|
|
@@ -7332,19 +7375,21 @@ async function fetchFarmNavigationDocument(path, context) {
|
|
|
7332
7375
|
keepLayouts && !context.refresh && !activeLayoutShouldHydrate
|
|
7333
7376
|
? readLayoutIdentities(container)
|
|
7334
7377
|
: [];
|
|
7335
|
-
const
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
// which the server answers without loading.tsx.
|
|
7345
|
-
...(identities.length || context.prefetch ? { 'F-Layouts': JSON.stringify(identities) } : {}),
|
|
7346
|
-
}),
|
|
7378
|
+
const headers = createFarmDeploymentRequestHeaders(deploymentId, {
|
|
7379
|
+
Accept: 'text/html',
|
|
7380
|
+
// A refresh arrives whole, like a transition: the islands it keeps are all in it.
|
|
7381
|
+
...(context.prefetch || context.refresh ? {} : { 'F-Stream': 'flush' }),
|
|
7382
|
+
// The swap keeps the values only the page holds (keepFarmIslandValues).
|
|
7383
|
+
...getFarmIslandValueHeaders(container),
|
|
7384
|
+
// A prefetch names its layouts even when it keeps none: that marks it as a navigation,
|
|
7385
|
+
// which the server answers without loading.tsx.
|
|
7386
|
+
...(identities.length || context.prefetch ? { 'F-Layouts': JSON.stringify(identities) } : {}),
|
|
7347
7387
|
});
|
|
7388
|
+
const target = url.pathname + url.search;
|
|
7389
|
+
const response = await (
|
|
7390
|
+
(!context.prefetch && takeFarmEarlyNavigation(target, headers, context.signal)) ||
|
|
7391
|
+
fetch(target, { signal: context.signal, redirect: 'manual', headers })
|
|
7392
|
+
);
|
|
7348
7393
|
if (isFarmDeploymentMismatchResponse(response, deploymentId)) {
|
|
7349
7394
|
const error = createFarmDeploymentMismatchError(response, deploymentId || 'unknown');
|
|
7350
7395
|
window.dispatchEvent(new CustomEvent('farm:deployment-mismatch', { detail: error }));
|
|
@@ -7575,6 +7620,7 @@ async function renderPage(pageData, info) {
|
|
|
7575
7620
|
);
|
|
7576
7621
|
} else {
|
|
7577
7622
|
${isolatedHydrationEnabled ? "let isolatedHydrationScope = container;" : ""}
|
|
7623
|
+
${islandValues ? "const keepValues = keepFarmIslandValues(container);" : ""}
|
|
7578
7624
|
// A route whose layouts hydrate renders them for its own root (inline client components,
|
|
7579
7625
|
// islands mode's layout trees), so the HTML of shared layouts is replaced too.
|
|
7580
7626
|
if (activeLayoutShouldHydrate || layoutShouldHydrate) {
|
|
@@ -7589,6 +7635,7 @@ async function renderPage(pageData, info) {
|
|
|
7589
7635
|
delete window.__FARM_REACT_ROOT__;
|
|
7590
7636
|
${isolatedHydrationEnabled ? islandValues ? "isolatedHydrationScope = (pageData.farmDocument ? replaceNavigationBoundary(container, fragment, readLayoutIdentities(container), readLayoutIdentities(fragment), info?.refresh === true, findLayoutBoundaryByIdentity) : replaceNavigationBoundary(container, fragment, activeLayoutPatterns, layoutPatterns, info?.refresh === true)) || container;" : "isolatedHydrationScope = replaceNavigationBoundary(container, fragment, activeLayoutPatterns, layoutPatterns, info?.refresh === true) || container;" : islandValues ? "if (pageData.farmDocument) replaceNavigationBoundary(container, fragment, readLayoutIdentities(container), readLayoutIdentities(fragment), false, findLayoutBoundaryByIdentity); else replaceNavigationBoundary(container, fragment, activeLayoutPatterns, layoutPatterns);" : "replaceNavigationBoundary(container, fragment, activeLayoutPatterns, layoutPatterns);"}
|
|
7591
7637
|
}
|
|
7638
|
+
${islandValues ? "keepValues();" : ""}
|
|
7592
7639
|
|
|
7593
7640
|
const hydrationController = new AbortController();
|
|
7594
7641
|
if (
|
|
@@ -7848,27 +7895,6 @@ function farmIslandsOnlyDocument() {
|
|
|
7848
7895
|
}
|
|
7849
7896
|
},
|
|
7850
7897
|
});
|
|
7851
|
-
${islandValues ? `// A layout root that waits for a click renders again on a navigation, and a link under the
|
|
7852
|
-
// pointer is a navigation on its way: hydrate the root now, as the production entry does.
|
|
7853
|
-
if (layoutShouldHydrate && islandStrategy !== 'load') {
|
|
7854
|
-
const hydrateForLink = (target) => {
|
|
7855
|
-
const anchor = target instanceof Element ? target.closest('a[href]') : null;
|
|
7856
|
-
const href = anchor && anchor.getAttribute('href');
|
|
7857
|
-
if (!href || href.startsWith('#') || hasAbsoluteNavigationHref(href)) return false;
|
|
7858
|
-
if (!pageContainer.contains(anchor)) return false;
|
|
7859
|
-
document.dispatchEvent(
|
|
7860
|
-
new CustomEvent('farm:island-interaction', { detail: { target: anchor, kind: null } }),
|
|
7861
|
-
);
|
|
7862
|
-
return true;
|
|
7863
|
-
};
|
|
7864
|
-
const onLinkIntent = (event) => {
|
|
7865
|
-
if (hydrateForLink(event.target)) document.removeEventListener('mouseover', onLinkIntent, true);
|
|
7866
|
-
};
|
|
7867
|
-
if (!hydrateForLink(pageContainer.querySelector('a[href]:hover'))) {
|
|
7868
|
-
document.addEventListener('mouseover', onLinkIntent, true);
|
|
7869
|
-
void pageHydration.finally(() => document.removeEventListener('mouseover', onLinkIntent, true));
|
|
7870
|
-
}
|
|
7871
|
-
}` : ""}
|
|
7872
7898
|
${isolatedHydrationEnabled ? `const isolatedHydration =
|
|
7873
7899
|
hasIsolatedClientBoundaries &&
|
|
7874
7900
|
!layoutShouldHydrate
|
|
@@ -7980,7 +8006,7 @@ async function defineConfig(config = {}) {
|
|
|
7980
8006
|
const tailwindVitePlugin = await loadTailwindVitePlugin();
|
|
7981
8007
|
const appRoot = path6.resolve(config.root || process.cwd());
|
|
7982
8008
|
if (config.extends?.length) {
|
|
7983
|
-
const { config: layeredConfig } = await import("./layers-
|
|
8009
|
+
const { config: layeredConfig } = await import("./layers-744BBUY5.mjs").then(
|
|
7984
8010
|
({ resolveFarmLayers }) => resolveFarmLayers(config, {
|
|
7985
8011
|
root: appRoot,
|
|
7986
8012
|
mode: process.env.NODE_ENV === "production" ? "production" : "development"
|
|
@@ -8128,6 +8154,7 @@ async function defineConfig(config = {}) {
|
|
|
8128
8154
|
viteBrowserExternalPlugin,
|
|
8129
8155
|
farmI18nClientBridgePlugin(),
|
|
8130
8156
|
farmServerOnlyEntriesPlugin({ distDir: config.distDir || ".farm" }),
|
|
8157
|
+
farmNavigationPlugin(config.renderer),
|
|
8131
8158
|
farmIslandContainersPlugin(config),
|
|
8132
8159
|
farmPlugin(config),
|
|
8133
8160
|
farmEnvironmentFunctionsPlugin(config),
|
|
@@ -8141,7 +8168,8 @@ async function defineConfig(config = {}) {
|
|
|
8141
8168
|
appRoot,
|
|
8142
8169
|
getFarmAppDirectories({ ...config, root: appRoot })
|
|
8143
8170
|
),
|
|
8144
|
-
config.renderer
|
|
8171
|
+
config.renderer,
|
|
8172
|
+
appRoot
|
|
8145
8173
|
),
|
|
8146
8174
|
// Pre-bundle every framework client-runtime entry with the renderer. Without
|
|
8147
8175
|
// this, Vite can discover a linked Farm entry after the page has loaded,
|
|
@@ -8204,11 +8232,13 @@ export {
|
|
|
8204
8232
|
isViteDevClientRequest,
|
|
8205
8233
|
farmImageImportsPlugin,
|
|
8206
8234
|
farmI18nClientBridgePlugin,
|
|
8235
|
+
farmNavigationPlugin,
|
|
8207
8236
|
farmIslandContainersPlugin,
|
|
8208
8237
|
farmServerOnlyEntriesPlugin,
|
|
8209
8238
|
withFarmRequestTracing,
|
|
8210
8239
|
rewriteEarlySsrRelativeImports,
|
|
8211
8240
|
transformIsolatedClientBoundaryModule,
|
|
8241
|
+
isFarmAppRuntimeFile,
|
|
8212
8242
|
shouldEmitFarmClientRootHmr,
|
|
8213
8243
|
farmPlugin,
|
|
8214
8244
|
defineConfig
|