@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
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveFarmAppClientEntry,
|
|
3
3
|
resolveFarmClientPlugins
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
resolveFarmPlatform
|
|
7
|
-
} from "./chunk-SMUW7UST.mjs";
|
|
4
|
+
} from "./chunk-RPA45OQS.mjs";
|
|
8
5
|
import {
|
|
9
6
|
collectSSGPages,
|
|
10
7
|
matchSSGPage,
|
|
11
8
|
resolveRouteRenderingConfigFromFile
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TLSGRK7E.mjs";
|
|
10
|
+
import {
|
|
11
|
+
findFarmAppPackageDir
|
|
12
|
+
} from "./chunk-YSU3WCW6.mjs";
|
|
13
|
+
import {
|
|
14
|
+
resolveFarmPlatform
|
|
15
|
+
} from "./chunk-SMUW7UST.mjs";
|
|
13
16
|
import {
|
|
14
17
|
appendFarmHead,
|
|
15
18
|
classifyFarmDocumentPrefix,
|
|
@@ -45,10 +48,15 @@ import {
|
|
|
45
48
|
stripRouteGroups,
|
|
46
49
|
takeFarmHoistedHead,
|
|
47
50
|
takeFarmNavigationOutlet
|
|
48
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-OO4GVGM3.mjs";
|
|
52
|
+
import {
|
|
53
|
+
getFarmFormState,
|
|
54
|
+
handleFarmFormActionRequest,
|
|
55
|
+
renderFarmFormStateScript
|
|
56
|
+
} from "./chunk-V7HNYR76.mjs";
|
|
49
57
|
import {
|
|
50
58
|
listFarmMCPLlmsTxtLinks
|
|
51
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-RZ6XUEQS.mjs";
|
|
52
60
|
import {
|
|
53
61
|
FARM_DEFAULT_MCP_PATH,
|
|
54
62
|
collectFarmDefaultMCPPages,
|
|
@@ -56,19 +64,15 @@ import {
|
|
|
56
64
|
farmConfigMountsMCP,
|
|
57
65
|
isFarmDefaultMCPPathname,
|
|
58
66
|
resolveFarmDefaultMCPServer
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import {
|
|
61
|
-
createFarmMetadataImageResponse
|
|
62
|
-
} from "./chunk-HONTCUK6.mjs";
|
|
67
|
+
} from "./chunk-HR4N2K4V.mjs";
|
|
63
68
|
import {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
} from "./chunk-7FQFK3OA.mjs";
|
|
69
|
+
createFarmMetadataImageResponse,
|
|
70
|
+
resolveFarmMetadataImageValue
|
|
71
|
+
} from "./chunk-EZYKV24V.mjs";
|
|
68
72
|
import {
|
|
69
73
|
installFarmIslandValues,
|
|
70
74
|
uninstallFarmIslandValues
|
|
71
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-2PFGA6PB.mjs";
|
|
72
76
|
import {
|
|
73
77
|
FarmSourceSnapshotStore,
|
|
74
78
|
collectFarmRenderedClientModules,
|
|
@@ -95,7 +99,7 @@ import {
|
|
|
95
99
|
traceFarmSourceReads,
|
|
96
100
|
usesFarmServerTree,
|
|
97
101
|
withFarmSourceSnapshot
|
|
98
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-HTNJ7A4D.mjs";
|
|
99
103
|
import {
|
|
100
104
|
FARM_ISLAND_REPLAYABLE_SELECTOR
|
|
101
105
|
} from "./chunk-S32PDOLO.mjs";
|
|
@@ -122,7 +126,15 @@ import {
|
|
|
122
126
|
resolveFarmAgentCrawlers,
|
|
123
127
|
resolveFarmAgentSitemap,
|
|
124
128
|
resolveFarmPerformanceConfig
|
|
125
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-SLEHAGGV.mjs";
|
|
130
|
+
import {
|
|
131
|
+
createFarmCspNonce,
|
|
132
|
+
createFarmCspNonceRewriter,
|
|
133
|
+
filterFarmCspNonces,
|
|
134
|
+
getFarmSecurityHeader,
|
|
135
|
+
resolveFarmSecurityConfig,
|
|
136
|
+
stampFarmCspNonce
|
|
137
|
+
} from "./chunk-22W4FNTG.mjs";
|
|
126
138
|
import {
|
|
127
139
|
collectFarmLlmsTxtPages,
|
|
128
140
|
createFarmDefaultLlmsTxt,
|
|
@@ -132,23 +144,16 @@ import {
|
|
|
132
144
|
renderFarmLlmsFullTxt,
|
|
133
145
|
resolveFarmAgentOrigin,
|
|
134
146
|
resolveFarmLlmsTxtConfig
|
|
135
|
-
} from "./chunk-
|
|
136
|
-
import {
|
|
137
|
-
createFarmCspNonce,
|
|
138
|
-
createFarmCspNonceRewriter,
|
|
139
|
-
filterFarmCspNonces,
|
|
140
|
-
getFarmSecurityHeader,
|
|
141
|
-
resolveFarmSecurityConfig,
|
|
142
|
-
stampFarmCspNonce
|
|
143
|
-
} from "./chunk-22W4FNTG.mjs";
|
|
147
|
+
} from "./chunk-XGL42MQ7.mjs";
|
|
144
148
|
import {
|
|
145
149
|
resolveFarmServerComponentsMode
|
|
146
150
|
} from "./chunk-4QENVMG7.mjs";
|
|
147
151
|
import {
|
|
148
152
|
getFarmAppDirectories,
|
|
149
153
|
getFarmSourceRoots
|
|
150
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-Z3RM3VA2.mjs";
|
|
151
155
|
import {
|
|
156
|
+
assertFarmRendererServerModule,
|
|
152
157
|
assertFarmRendererStreamingRuntime,
|
|
153
158
|
getFarmRendererCapabilities,
|
|
154
159
|
getFarmRendererComponentExtensions,
|
|
@@ -160,23 +165,23 @@ import {
|
|
|
160
165
|
resolveFarmRenderer,
|
|
161
166
|
resolveFarmRendererAppSetup,
|
|
162
167
|
resolveFarmRendererModule
|
|
163
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-2HMSSPCZ.mjs";
|
|
164
169
|
import {
|
|
165
170
|
resolveFarmImageConfig
|
|
166
171
|
} from "./chunk-AOIUYHPH.mjs";
|
|
167
172
|
import {
|
|
168
173
|
resolveCronConfig
|
|
169
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-ATISIC6G.mjs";
|
|
170
175
|
import {
|
|
171
176
|
resolveServerActionsConfig
|
|
172
177
|
} from "./chunk-NLATR3T3.mjs";
|
|
173
178
|
import {
|
|
174
179
|
createFarmMarkdownRouteModuleFromFile,
|
|
175
180
|
loadFarmMdxComponents
|
|
176
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-ECVSRE4Y.mjs";
|
|
177
182
|
import {
|
|
178
183
|
isFarmMarkdownPageFile
|
|
179
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-ICOJ2BC6.mjs";
|
|
180
185
|
import {
|
|
181
186
|
resolveFarmMdxComponentsModulePath,
|
|
182
187
|
resolveMdxConfig
|
|
@@ -189,10 +194,13 @@ import {
|
|
|
189
194
|
farmRequestWantsMarkdown,
|
|
190
195
|
getFarmMarkdownAlternatePath,
|
|
191
196
|
resolveMarkdownConfig
|
|
192
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-YU2MNIIY.mjs";
|
|
198
|
+
import {
|
|
199
|
+
isPackageSpecifier
|
|
200
|
+
} from "./chunk-AYDVUCXD.mjs";
|
|
193
201
|
import {
|
|
194
202
|
resolveWorkflowsConfig
|
|
195
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-LTOT5KVJ.mjs";
|
|
196
204
|
import {
|
|
197
205
|
resolveFarmThemeConfig
|
|
198
206
|
} from "./chunk-YWPNIYUP.mjs";
|
|
@@ -200,10 +208,10 @@ import {
|
|
|
200
208
|
getIntegrationProviders,
|
|
201
209
|
getRegisteredIntegrationAPIManifest,
|
|
202
210
|
isFarmIntegrationProviderComponentReference
|
|
203
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-6JWXHPVR.mjs";
|
|
204
212
|
import {
|
|
205
213
|
initStorage
|
|
206
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-QBJ6N5MT.mjs";
|
|
207
215
|
import {
|
|
208
216
|
resolveFarmRouteContext,
|
|
209
217
|
withFarmRouteContext
|
|
@@ -211,7 +219,7 @@ import {
|
|
|
211
219
|
import {
|
|
212
220
|
createRouteSlotContainerId,
|
|
213
221
|
parseRouteSlotFile
|
|
214
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-CYRO3WP4.mjs";
|
|
215
223
|
import {
|
|
216
224
|
_clearCurrentMiddlewareContext,
|
|
217
225
|
_clearCurrentMiddlewareData,
|
|
@@ -221,7 +229,7 @@ import {
|
|
|
221
229
|
import {
|
|
222
230
|
findProgrammaticRouteFiles,
|
|
223
231
|
loadProgrammaticRouteManifests
|
|
224
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-URBP6DLH.mjs";
|
|
225
233
|
import {
|
|
226
234
|
_runWithFarmI18nRequest,
|
|
227
235
|
_setDefaultFarmI18nRuntime,
|
|
@@ -250,16 +258,16 @@ import {
|
|
|
250
258
|
configureFarmCache,
|
|
251
259
|
getFarmDataCache,
|
|
252
260
|
normalizeRevalidatePath
|
|
253
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-FS55CNTC.mjs";
|
|
254
262
|
import {
|
|
255
263
|
sendWebResponse
|
|
256
264
|
} from "./chunk-O5QUJEWT.mjs";
|
|
257
|
-
import {
|
|
258
|
-
loadFarmDevModule
|
|
259
|
-
} from "./chunk-7H2TXT2K.mjs";
|
|
260
265
|
import {
|
|
261
266
|
toFileModuleUrl
|
|
262
267
|
} from "./chunk-VHIXGZYH.mjs";
|
|
268
|
+
import {
|
|
269
|
+
loadFarmDevModule
|
|
270
|
+
} from "./chunk-7H2TXT2K.mjs";
|
|
263
271
|
import {
|
|
264
272
|
resolveFarmI18nConfig
|
|
265
273
|
} from "./chunk-VJSXPN3W.mjs";
|
|
@@ -276,7 +284,7 @@ import {
|
|
|
276
284
|
splitRoutePath,
|
|
277
285
|
toRootRelativeUrlPath,
|
|
278
286
|
toViteModuleId
|
|
279
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-U6GMCDRS.mjs";
|
|
280
288
|
import {
|
|
281
289
|
resolveFarmAPIServerBasePath
|
|
282
290
|
} from "./chunk-2I6PUKWJ.mjs";
|
|
@@ -295,16 +303,16 @@ import {
|
|
|
295
303
|
import {
|
|
296
304
|
configureFarmObservability,
|
|
297
305
|
emitFarmEvent
|
|
298
|
-
} from "./chunk-
|
|
306
|
+
} from "./chunk-EILUVBKS.mjs";
|
|
299
307
|
import {
|
|
300
308
|
FARM_VERSION
|
|
301
|
-
} from "./chunk-
|
|
302
|
-
import {
|
|
303
|
-
_setFarmSearchPreserveRoutes
|
|
304
|
-
} from "./chunk-VDQZV6BX.mjs";
|
|
309
|
+
} from "./chunk-D77OGI6X.mjs";
|
|
305
310
|
import {
|
|
306
311
|
normalizeFarmAPIConfig
|
|
307
312
|
} from "./chunk-W6QLRQ3V.mjs";
|
|
313
|
+
import {
|
|
314
|
+
_setFarmSearchPreserveRoutes
|
|
315
|
+
} from "./chunk-VDQZV6BX.mjs";
|
|
308
316
|
import {
|
|
309
317
|
getFarmPageDataRedirect
|
|
310
318
|
} from "./chunk-SD6JGJOM.mjs";
|
|
@@ -354,10 +362,6 @@ import {
|
|
|
354
362
|
getCurrentRequestOrNull,
|
|
355
363
|
resolveFarmRequestURL
|
|
356
364
|
} from "./chunk-FCAYYLAE.mjs";
|
|
357
|
-
import {
|
|
358
|
-
_peekCurrentRequest,
|
|
359
|
-
_resolveCurrentCspNonce
|
|
360
|
-
} from "./chunk-VIXTAVEA.mjs";
|
|
361
365
|
import {
|
|
362
366
|
getFarmRedirectError,
|
|
363
367
|
isFarmNotFoundError,
|
|
@@ -381,6 +385,10 @@ import {
|
|
|
381
385
|
compareRouteSpecificity,
|
|
382
386
|
getRoutePatternShape
|
|
383
387
|
} from "./chunk-5KAEGBIL.mjs";
|
|
388
|
+
import {
|
|
389
|
+
_peekCurrentRequest,
|
|
390
|
+
_resolveCurrentCspNonce
|
|
391
|
+
} from "./chunk-VIXTAVEA.mjs";
|
|
384
392
|
|
|
385
393
|
// src/static-metadata-image.ts
|
|
386
394
|
import { createHash } from "crypto";
|
|
@@ -1329,7 +1337,8 @@ var RouteManager = class _RouteManager {
|
|
|
1329
1337
|
root: this.config.root,
|
|
1330
1338
|
loadModule: viteServer ? (componentModulePath) => loadFarmDevModule(viteServer, componentModulePath) : void 0
|
|
1331
1339
|
}),
|
|
1332
|
-
config: mdxConfig
|
|
1340
|
+
config: mdxConfig,
|
|
1341
|
+
renderer: isReactRenderer(this.config.renderer) ? void 0 : this.rendererRuntime
|
|
1333
1342
|
});
|
|
1334
1343
|
}
|
|
1335
1344
|
if (this.viteServer) {
|
|
@@ -3162,6 +3171,21 @@ function resolveProviderModule(moduleId, root) {
|
|
|
3162
3171
|
return toViteModuleId(path5.resolve(root, moduleId), root);
|
|
3163
3172
|
}
|
|
3164
3173
|
|
|
3174
|
+
// src/server-actions-mode.ts
|
|
3175
|
+
function resolveFarmIslxActionsMode(config) {
|
|
3176
|
+
if (resolveFarmServerComponentsMode(config.experimental?.serverComponents) === "islands") {
|
|
3177
|
+
return "islands";
|
|
3178
|
+
}
|
|
3179
|
+
if (config.experimental?.serverActions !== true) return null;
|
|
3180
|
+
const renderer = config.renderer;
|
|
3181
|
+
if (renderer === void 0 || renderer === false) return null;
|
|
3182
|
+
if (isFarmRendererDisabled(renderer) || isReactRenderer(renderer)) return null;
|
|
3183
|
+
return "renderer";
|
|
3184
|
+
}
|
|
3185
|
+
function farmBrowserServerFnsEnabled(config) {
|
|
3186
|
+
return config.experimental?.serverActions === true && resolveFarmIslxActionsMode(config) !== null;
|
|
3187
|
+
}
|
|
3188
|
+
|
|
3165
3189
|
// src/island-inference.ts
|
|
3166
3190
|
import fs3 from "fs";
|
|
3167
3191
|
import path6 from "path";
|
|
@@ -3839,6 +3863,53 @@ function canFarmSkipKeptLayoutRender(modulePath, root) {
|
|
|
3839
3863
|
}
|
|
3840
3864
|
|
|
3841
3865
|
// src/server/renderer.ts
|
|
3866
|
+
function pipeFarmRendererWebStream(runtime) {
|
|
3867
|
+
return (element, callbacks) => {
|
|
3868
|
+
let source;
|
|
3869
|
+
let destination;
|
|
3870
|
+
let aborted = false;
|
|
3871
|
+
let shellSettled = false;
|
|
3872
|
+
const settleShell = (error) => {
|
|
3873
|
+
if (shellSettled) return false;
|
|
3874
|
+
shellSettled = true;
|
|
3875
|
+
if (error === void 0) callbacks.onShellReady();
|
|
3876
|
+
else callbacks.onShellError(error);
|
|
3877
|
+
return true;
|
|
3878
|
+
};
|
|
3879
|
+
Promise.resolve().then(
|
|
3880
|
+
() => runtime.renderToReadableStream(element, {
|
|
3881
|
+
...callbacks.nonce ? { nonce: callbacks.nonce } : {},
|
|
3882
|
+
onError: callbacks.onError
|
|
3883
|
+
})
|
|
3884
|
+
).then(
|
|
3885
|
+
(stream) => {
|
|
3886
|
+
source = Readable.fromWeb(stream);
|
|
3887
|
+
if (aborted) {
|
|
3888
|
+
source.destroy();
|
|
3889
|
+
return;
|
|
3890
|
+
}
|
|
3891
|
+
source.once("readable", () => settleShell());
|
|
3892
|
+
source.once("error", (error) => {
|
|
3893
|
+
if (settleShell(error)) return;
|
|
3894
|
+
callbacks.onError(error);
|
|
3895
|
+
destination?.end();
|
|
3896
|
+
});
|
|
3897
|
+
},
|
|
3898
|
+
(error) => settleShell(error)
|
|
3899
|
+
);
|
|
3900
|
+
return {
|
|
3901
|
+
pipe(target) {
|
|
3902
|
+
destination = target;
|
|
3903
|
+
source?.pipe(target);
|
|
3904
|
+
},
|
|
3905
|
+
abort() {
|
|
3906
|
+
aborted = true;
|
|
3907
|
+
source?.destroy();
|
|
3908
|
+
destination?.end();
|
|
3909
|
+
}
|
|
3910
|
+
};
|
|
3911
|
+
};
|
|
3912
|
+
}
|
|
3842
3913
|
var islands;
|
|
3843
3914
|
function withFarmIslandsRenders(runtime, islandsRuntime) {
|
|
3844
3915
|
const wrap = (element) => islandsRuntime.withFarmIslandsRender(
|
|
@@ -4134,14 +4205,7 @@ var ServerRenderer = class {
|
|
|
4134
4205
|
)
|
|
4135
4206
|
).href);
|
|
4136
4207
|
const runtime = loaded;
|
|
4137
|
-
|
|
4138
|
-
for (const key of required) {
|
|
4139
|
-
if (typeof runtime[key] !== "function") {
|
|
4140
|
-
throw new Error(
|
|
4141
|
-
`Renderer \`${this.config.renderer.name}\` server module must export ${key}().`
|
|
4142
|
-
);
|
|
4143
|
-
}
|
|
4144
|
-
}
|
|
4208
|
+
assertFarmRendererServerModule(runtime, this.config.renderer);
|
|
4145
4209
|
assertFarmRendererStreamingRuntime(
|
|
4146
4210
|
this.config.renderer.name,
|
|
4147
4211
|
this.config.renderer,
|
|
@@ -4364,6 +4428,19 @@ var ServerRenderer = class {
|
|
|
4364
4428
|
islandValues() {
|
|
4365
4429
|
return resolveFarmServerComponentsMode(this.config.experimental?.serverComponents) === "islands";
|
|
4366
4430
|
}
|
|
4431
|
+
/**
|
|
4432
|
+
* The page's element. Only React renders an async component, so for any other renderer Farm
|
|
4433
|
+
* awaits an async page itself and hands the renderer what it returned, as the production
|
|
4434
|
+
* server does. A `page.md` page is one: it compiles its Markdown on first render.
|
|
4435
|
+
*/
|
|
4436
|
+
async createPageElement(PageComponent, pageProps) {
|
|
4437
|
+
const runtime = this.rendererRuntime;
|
|
4438
|
+
if (isReactRenderer(this.config.renderer) || typeof PageComponent !== "function" || PageComponent.constructor?.name !== "AsyncFunction") {
|
|
4439
|
+
return runtime.createElement(PageComponent, pageProps);
|
|
4440
|
+
}
|
|
4441
|
+
const result = await PageComponent(pageProps);
|
|
4442
|
+
return runtime.isValidElement(result) ? result : runtime.createElement(runtime.Fragment, null, result);
|
|
4443
|
+
}
|
|
4367
4444
|
/**
|
|
4368
4445
|
* Render the route tree used by client navigation without producing a second
|
|
4369
4446
|
* document response. Layout markers let the browser preserve the longest
|
|
@@ -4375,7 +4452,7 @@ var ServerRenderer = class {
|
|
|
4375
4452
|
setFarmBasePath(this.config.basePath);
|
|
4376
4453
|
this.publishSearchPreserveRoutes();
|
|
4377
4454
|
setFarmTrailingSlashPreference(this.config.trailingSlash);
|
|
4378
|
-
let element = this.
|
|
4455
|
+
let element = await this.createPageElement(input.PageComponent, input.pageProps);
|
|
4379
4456
|
if (input.LoadingComponent) {
|
|
4380
4457
|
element = this.rendererRuntime.createElement(
|
|
4381
4458
|
this.rendererRuntime.Suspense,
|
|
@@ -4750,7 +4827,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
4750
4827
|
searchParams: createFarmSearchParams({}),
|
|
4751
4828
|
path: page.urlPath
|
|
4752
4829
|
};
|
|
4753
|
-
let pageElement = this.
|
|
4830
|
+
let pageElement = await this.createPageElement(PageComponent, pageProps);
|
|
4754
4831
|
const pageMetadata = routeManifest.routes.find(
|
|
4755
4832
|
(entry) => entry.pattern === route?.pattern
|
|
4756
4833
|
) ?? {
|
|
@@ -5031,7 +5108,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
5031
5108
|
params
|
|
5032
5109
|
});
|
|
5033
5110
|
let actionRequest;
|
|
5034
|
-
if (req.method === "POST" &&
|
|
5111
|
+
if (req.method === "POST" && resolveFarmIslxActionsMode(this.config) !== null) {
|
|
5035
5112
|
await Promise.all([
|
|
5036
5113
|
this.routeManager.loadRouteModule(route.modulePath),
|
|
5037
5114
|
...layouts.map((layout) => this.routeManager.loadLayoutModule(layout.modulePath))
|
|
@@ -5207,13 +5284,6 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
5207
5284
|
LoadingFallbackComponent = loadingModule.default;
|
|
5208
5285
|
}
|
|
5209
5286
|
}
|
|
5210
|
-
let ErrorFallbackComponent = null;
|
|
5211
|
-
if (errorBoundaryEntry) {
|
|
5212
|
-
const errorModule = await this.routeManager.loadRouteModule(errorBoundaryEntry.modulePath);
|
|
5213
|
-
if (errorModule.default) {
|
|
5214
|
-
ErrorFallbackComponent = errorModule.default;
|
|
5215
|
-
}
|
|
5216
|
-
}
|
|
5217
5287
|
const routeManifest = this.routeManager.generateClientManifest(this.config.root);
|
|
5218
5288
|
const routeManifestEntry = routeManifest.routes.find(
|
|
5219
5289
|
(entry) => entry.pattern === route.pattern
|
|
@@ -5395,7 +5465,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
5395
5465
|
await _runWithMiddlewareData(middlewareDataForContext, async () => {
|
|
5396
5466
|
await _runWithMiddlewareContext(middlewareContext, async () => {
|
|
5397
5467
|
await _runWithCurrentRequest(currentRequest, async () => {
|
|
5398
|
-
let pageElement = this.
|
|
5468
|
+
let pageElement = await this.createPageElement(PageComponent, pageProps);
|
|
5399
5469
|
if (LoadingFallbackComponent && !islandsNavigationRequest) {
|
|
5400
5470
|
const loadingFallback = this.rendererRuntime.createElement(LoadingFallbackComponent, {
|
|
5401
5471
|
...createRouteStateProps({
|
|
@@ -5500,24 +5570,6 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
5500
5570
|
if (shouldHydrateLayout) {
|
|
5501
5571
|
wrappedElement = this.wrapClientGraph(wrappedElement);
|
|
5502
5572
|
}
|
|
5503
|
-
if (ErrorFallbackComponent && this.rendererRuntime.ErrorBoundary) {
|
|
5504
|
-
wrappedElement = this.rendererRuntime.createElement(
|
|
5505
|
-
this.rendererRuntime.ErrorBoundary,
|
|
5506
|
-
{
|
|
5507
|
-
Fallback: ErrorFallbackComponent,
|
|
5508
|
-
fallbackProps: {
|
|
5509
|
-
...createRouteStateProps({
|
|
5510
|
-
params,
|
|
5511
|
-
searchParamsObject,
|
|
5512
|
-
path: pathname,
|
|
5513
|
-
middlewareMap,
|
|
5514
|
-
pluginExposedContext
|
|
5515
|
-
})
|
|
5516
|
-
}
|
|
5517
|
-
},
|
|
5518
|
-
wrappedElement
|
|
5519
|
-
);
|
|
5520
|
-
}
|
|
5521
5573
|
if ((isClientComponent || shouldHydrate) && !shouldHydrateLayout && this.reactRenderer) {
|
|
5522
5574
|
wrappedElement = this.reactRenderer.markLayoutPosition(wrappedElement);
|
|
5523
5575
|
}
|
|
@@ -6062,7 +6114,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
6062
6114
|
const server = this.getDefaultMCPServer();
|
|
6063
6115
|
const request2 = getCurrentRequestOrNull() ?? createWebRequestFromFarmRequest(req, { trustProxy: this.config.server?.trustProxy });
|
|
6064
6116
|
try {
|
|
6065
|
-
const { handleFarmDefaultMCPRequest } = await import("./agent-mcp-handler-
|
|
6117
|
+
const { handleFarmDefaultMCPRequest } = await import("./agent-mcp-handler-GDY5CPPW.mjs");
|
|
6066
6118
|
const origin = new URL(request2.url).origin;
|
|
6067
6119
|
const i18n = this.i18nRuntime?.config;
|
|
6068
6120
|
const metadataBase = await this.getRootMetadataBase();
|
|
@@ -6235,7 +6287,13 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
6235
6287
|
searchParams: createFarmSearchParams(options.searchParamsObject),
|
|
6236
6288
|
path: options.pagePath
|
|
6237
6289
|
};
|
|
6238
|
-
const handlerResult =
|
|
6290
|
+
const handlerResult = await resolveFarmMetadataImageValue(imageModule, imageProps, {
|
|
6291
|
+
renderer: this.getMetadataImageRenderer(),
|
|
6292
|
+
component: isRendererCompiledComponent(
|
|
6293
|
+
options.image.modulePath,
|
|
6294
|
+
this.config.renderer?.componentExtensions ?? []
|
|
6295
|
+
)
|
|
6296
|
+
});
|
|
6239
6297
|
await this.writeMetadataImageResponse(req, res, handlerResult, imageModule);
|
|
6240
6298
|
}
|
|
6241
6299
|
async writeMetadataImageResponse(req, res, value, imageModule) {
|
|
@@ -6243,10 +6301,14 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
6243
6301
|
const response = await createFarmMetadataImageResponse(value, imageModule, {
|
|
6244
6302
|
method: req.method,
|
|
6245
6303
|
ifNoneMatch: Array.isArray(ifNoneMatch) ? ifNoneMatch[0] : ifNoneMatch,
|
|
6246
|
-
renderer:
|
|
6304
|
+
renderer: this.getMetadataImageRenderer()
|
|
6247
6305
|
});
|
|
6248
6306
|
await sendWebResponse(res, response);
|
|
6249
6307
|
}
|
|
6308
|
+
/** The renderer that draws a metadata image: none for React, whose elements Satori reads directly. */
|
|
6309
|
+
getMetadataImageRenderer() {
|
|
6310
|
+
return isReactRenderer(this.config.renderer) ? void 0 : this.rendererRuntime;
|
|
6311
|
+
}
|
|
6250
6312
|
async writeStaticMetadataImageResponse(req, res, image) {
|
|
6251
6313
|
const method = (req.method || "GET").toUpperCase();
|
|
6252
6314
|
if (method !== "GET" && method !== "HEAD") {
|
|
@@ -6544,7 +6606,8 @@ window.__FARM_I18N__ = ${getFarmI18nClientSnapshot() ? serializeInlineValue(getF
|
|
|
6544
6606
|
}
|
|
6545
6607
|
}
|
|
6546
6608
|
async renderWithSSR(element, req, res, clearMiddlewareData, options = {}) {
|
|
6547
|
-
const
|
|
6609
|
+
const runtime = this.rendererRuntime;
|
|
6610
|
+
const renderToPipeableStream = runtime.renderToPipeableStream ?? (getFarmRendererStreamingCapabilitiesForRuntime(this.config.renderer, "node").web && runtime.renderToReadableStream ? pipeFarmRendererWebStream(runtime) : void 0);
|
|
6548
6611
|
const fullDocumentRouteKey = options.observabilityRoute || req.__FARM_ROUTE__ || req.url || "/";
|
|
6549
6612
|
const streamDocument = fullDocumentRoutes.has(fullDocumentRouteKey) || await this.rootLayoutRendersDocument(req);
|
|
6550
6613
|
if (!renderToPipeableStream || _isFarmMarkdownPageCheck(req.headers?.[FARM_MARKDOWN_PAGE_CHECK_HEADER]) || streamDocument && (options.captureStaticShell || !isReactRenderer(this.config.renderer))) {
|
|
@@ -8068,6 +8131,35 @@ async function readFarmNavigationStream(body, flushToken) {
|
|
|
8068
8131
|
cancel: function() { reader.cancel().catch(function() {}); },
|
|
8069
8132
|
};
|
|
8070
8133
|
}`;
|
|
8134
|
+
var FARM_EARLY_NAVIGATION_SOURCE = `// The request the boot script sent for a link clicked before the router ran (islands-boot.ts).
|
|
8135
|
+
// The next navigation request takes its response when it is the same request, and aborts it
|
|
8136
|
+
// otherwise. The held island values may differ: a response for fewer of them carries more values,
|
|
8137
|
+
// which fits any page. As with a prefetched page, a response sent over 30 seconds ago is not used.
|
|
8138
|
+
function takeFarmEarlyNavigation(url, headers, signal) {
|
|
8139
|
+
const early = window.__FARM_EARLY_NAVIGATION__;
|
|
8140
|
+
if (!early) return null;
|
|
8141
|
+
window.__FARM_EARLY_NAVIGATION__ = undefined;
|
|
8142
|
+
const target = new URL(url, window.location.href);
|
|
8143
|
+
const requested = new URL(early.url, window.location.href);
|
|
8144
|
+
target.hash = "";
|
|
8145
|
+
requested.hash = "";
|
|
8146
|
+
let same = target.href === requested.href && Date.now() - early.at <= 30000 && !(signal && signal.aborted);
|
|
8147
|
+
const names = new Set(Object.keys(early.headers));
|
|
8148
|
+
headers.forEach(function(value, name) { names.add(name); });
|
|
8149
|
+
names.forEach(function(name) {
|
|
8150
|
+
const sent = Object.prototype.hasOwnProperty.call(early.headers, name) ? early.headers[name] : null;
|
|
8151
|
+
// A whole page answers a request for a streamed one, as a response without flush markers is
|
|
8152
|
+
// all shell. The boot asks for it whole from under a layout that hydrates as one root.
|
|
8153
|
+
if (name === "f-values" || (name === "f-stream" && sent === null)) return;
|
|
8154
|
+
if (sent !== headers.get(name)) same = false;
|
|
8155
|
+
});
|
|
8156
|
+
if (!same) {
|
|
8157
|
+
early.controller.abort();
|
|
8158
|
+
return null;
|
|
8159
|
+
}
|
|
8160
|
+
if (signal) signal.addEventListener("abort", function() { early.controller.abort(); }, { once: true });
|
|
8161
|
+
return early.response;
|
|
8162
|
+
}`;
|
|
8071
8163
|
|
|
8072
8164
|
// src/client/refresh-fields.ts
|
|
8073
8165
|
var FARM_REFRESH_FIELDS_SOURCE = `// The server-rendered fields of a tree: islands keep their own.
|
|
@@ -8301,14 +8393,43 @@ var FARM_CLIENT_OPTIMIZE_DEPS_INCLUDE = [
|
|
|
8301
8393
|
"@farm.js/core/query/client",
|
|
8302
8394
|
"@farm.js/core/server-fn/client",
|
|
8303
8395
|
"@farm.js/core/server-query/client",
|
|
8396
|
+
// Farm's browser entry imports these and no app file does, so Vite's scan cannot see them. In an
|
|
8397
|
+
// app that installs Farm from the registry, Vite found them on the first page request, bundled
|
|
8398
|
+
// again, and reloaded the page while it loaded.
|
|
8399
|
+
"@farm.js/core/internal/client-runtime",
|
|
8400
|
+
"@farm.js/core/internal/spa-router",
|
|
8401
|
+
"@farm.js/core/router",
|
|
8402
|
+
// The typed API client. The development server excludes the server-only `@farm.js/core/api`,
|
|
8403
|
+
// and Vite's scan skips every subpath of an excluded package, so an app's import of the client
|
|
8404
|
+
// was also found only on the first request.
|
|
8405
|
+
"@farm.js/core/api/client",
|
|
8304
8406
|
// Islands mode's browser runtime: Farm imports islx, which the app reaches only through Farm.
|
|
8305
8407
|
"@farm.js/core > @farm.js/islx/client",
|
|
8306
8408
|
"@farm.js/core > @farm.js/islx/react",
|
|
8307
|
-
"@farm.js/core > @farm.js/islx/react/client"
|
|
8409
|
+
"@farm.js/core > @farm.js/islx/react/client",
|
|
8410
|
+
// What a browser module's import of a server function compiles to on other renderers (see
|
|
8411
|
+
// `resolveFarmIslxActionsMode`). Found only when that module is first requested, it made Vite
|
|
8412
|
+
// bundle again and reload the page while it loaded.
|
|
8413
|
+
"@farm.js/core/internal/islx-actions-client"
|
|
8308
8414
|
];
|
|
8309
|
-
function
|
|
8415
|
+
function isInstalledPackage(root, specifier) {
|
|
8416
|
+
const parts = specifier.split("/");
|
|
8417
|
+
const name = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0];
|
|
8418
|
+
const directory = findFarmAppPackageDir(root, name);
|
|
8419
|
+
return directory !== void 0 && directory.split(path18.sep).includes("node_modules");
|
|
8420
|
+
}
|
|
8421
|
+
function getFarmClientOptimizeDepsInclude(renderer, root) {
|
|
8310
8422
|
return Array.from(
|
|
8311
|
-
/* @__PURE__ */ new Set([
|
|
8423
|
+
/* @__PURE__ */ new Set([
|
|
8424
|
+
...FARM_CLIENT_OPTIMIZE_DEPS_INCLUDE,
|
|
8425
|
+
...renderer?.optimizeDeps || [],
|
|
8426
|
+
// Farm's browser entry imports a renderer's client module, and no app file does, so Vite's
|
|
8427
|
+
// scan never sees it and finds it only on the first page request, then bundles again. The
|
|
8428
|
+
// React entry imports `react-dom/client` instead, which is already listed. A linked
|
|
8429
|
+
// renderer stays source: pre-bundling it would copy the packages it shares with the app's
|
|
8430
|
+
// components into the bundle, so a hook would read a different copy than the renderer set.
|
|
8431
|
+
...renderer && root && !isReactRenderer(renderer) && isPackageSpecifier(renderer.client) && isInstalledPackage(root, renderer.client) ? [renderer.client] : []
|
|
8432
|
+
])
|
|
8312
8433
|
);
|
|
8313
8434
|
}
|
|
8314
8435
|
function createFarmClientOptimizeDepsEntries(projectRoot, appDirectories) {
|
|
@@ -8319,8 +8440,9 @@ function createFarmClientOptimizeDepsEntries(projectRoot, appDirectories) {
|
|
|
8319
8440
|
return `${prefix}/${FARM_CLIENT_ENTRY_PATTERN}`;
|
|
8320
8441
|
});
|
|
8321
8442
|
}
|
|
8322
|
-
function createFarmClientOptimizeDepsConfig(entries, renderer) {
|
|
8443
|
+
function createFarmClientOptimizeDepsConfig(entries, renderer, root) {
|
|
8323
8444
|
if (isFarmRendererDisabled(renderer)) return { noDiscovery: true, include: [] };
|
|
8445
|
+
const jsxImportSource = renderer ? renderer.jsxImportSource : void 0;
|
|
8324
8446
|
return {
|
|
8325
8447
|
// Keep normal application dependency discovery for CJS-only packages, but
|
|
8326
8448
|
// seed every Farm browser runtime so React is present in the first crawl.
|
|
@@ -8328,11 +8450,20 @@ function createFarmClientOptimizeDepsConfig(entries, renderer) {
|
|
|
8328
8450
|
// Waiting for the crawl avoids serving a partial optimizer generation and
|
|
8329
8451
|
// then changing browser hashes while hydration is already in progress.
|
|
8330
8452
|
holdUntilCrawlEnd: true,
|
|
8331
|
-
include: getFarmClientOptimizeDepsInclude(renderer || void 0),
|
|
8453
|
+
include: getFarmClientOptimizeDepsInclude(renderer || void 0, root),
|
|
8332
8454
|
// Farm's HTML boots through a virtual module and imports route UI lazily.
|
|
8333
8455
|
// Explicit entries let Vite finish that crawl before a navigation can
|
|
8334
8456
|
// rotate the optimizer hash underneath a hydrated React runtime.
|
|
8335
|
-
...entries?.length ? { entries: [...entries] } : {}
|
|
8457
|
+
...entries?.length ? { entries: [...entries] } : {},
|
|
8458
|
+
// Vite's dependency scan compiles JSX on its own: with the app tsconfig's `jsxImportSource`
|
|
8459
|
+
// when there is one, otherwise as React, whatever the renderer's plugin set for its own
|
|
8460
|
+
// transforms. React is the default already, and naming it here would override a tsconfig
|
|
8461
|
+
// source such as Emotion's. A renderer plugin's own scan setting is merged over this one.
|
|
8462
|
+
...jsxImportSource && jsxImportSource !== "react" ? {
|
|
8463
|
+
rolldownOptions: {
|
|
8464
|
+
transform: { jsx: { runtime: "automatic", importSource: jsxImportSource } }
|
|
8465
|
+
}
|
|
8466
|
+
} : {}
|
|
8336
8467
|
};
|
|
8337
8468
|
}
|
|
8338
8469
|
function createFarmSourceAlias(projectRoot, srcDir = "src") {
|
|
@@ -8533,8 +8664,11 @@ export {
|
|
|
8533
8664
|
farmDevServerStylesheetsPlugin,
|
|
8534
8665
|
resolveFarmNotFoundComponentPath,
|
|
8535
8666
|
DEFAULT_NOT_FOUND_STYLES,
|
|
8667
|
+
isRendererCompiledComponent,
|
|
8536
8668
|
generateFarmIntegrationProviderClientCode,
|
|
8537
8669
|
generateFarmIntegrationProviderServerModules,
|
|
8670
|
+
resolveFarmIslxActionsMode,
|
|
8671
|
+
farmBrowserServerFnsEnabled,
|
|
8538
8672
|
inferFarmIslandStrategy,
|
|
8539
8673
|
invalidateFarmRouteRootInferences,
|
|
8540
8674
|
resolveFarmRouteRootStrategy,
|
|
@@ -8555,6 +8689,7 @@ export {
|
|
|
8555
8689
|
FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE,
|
|
8556
8690
|
FARM_NAVIGATION_SCRIPT_SOURCE,
|
|
8557
8691
|
FARM_NAVIGATION_STREAM_READER_SOURCE,
|
|
8692
|
+
FARM_EARLY_NAVIGATION_SOURCE,
|
|
8558
8693
|
FARM_REFRESH_FIELDS_SOURCE,
|
|
8559
8694
|
exactIdPattern,
|
|
8560
8695
|
fileNamePattern,
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
} from "./chunk-ZIAWO6BC.mjs";
|
|
11
11
|
import {
|
|
12
12
|
applyFarmCacheInvalidationTargets
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FS55CNTC.mjs";
|
|
14
|
+
import {
|
|
15
|
+
getFarmRedirectError
|
|
16
|
+
} from "./chunk-JNYFXL7X.mjs";
|
|
14
17
|
import {
|
|
15
18
|
_resolveCurrentRequestForApp,
|
|
16
19
|
_toAppRequestView
|
|
17
20
|
} from "./chunk-VIXTAVEA.mjs";
|
|
18
|
-
import {
|
|
19
|
-
getFarmRedirectError
|
|
20
|
-
} from "./chunk-JNYFXL7X.mjs";
|
|
21
21
|
|
|
22
22
|
// src/server-fn.ts
|
|
23
23
|
var FARM_SERVER_FN_SYMBOL = /* @__PURE__ */ Symbol.for("farm.server-fn");
|