@farm.js/core 0.1.77 → 0.1.78
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/after.cjs +1 -1
- package/dist/after.mjs +1 -1
- package/dist/{agent-mcp-handler-PJKZHYSA.mjs → agent-mcp-handler-EDJNU224.mjs} +1 -1
- package/dist/{agent-mcp-handler-73SGWVZT.cjs → agent-mcp-handler-LNBYLRTZ.cjs} +1 -1
- package/dist/{agent-mcp.d-B1h3RznZ.d.ts → agent-mcp.d-BErtnhV2.d.ts} +1 -1
- package/dist/{agent-mcp.d-WFQotg8M.d.mts → agent-mcp.d-CYHfcjur.d.mts} +1 -1
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/agent-runtime.mjs +2 -2
- package/dist/analyzer-KVTUYGTT.cjs +16 -0
- package/dist/{analyzer-64YS2OXQ.mjs → analyzer-M2BG6QYU.mjs} +3 -3
- 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 +1 -1
- package/dist/api/node.d.mts +4 -4
- package/dist/api/node.d.ts +4 -4
- package/dist/api/node.mjs +1 -1
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.cjs +1 -1
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api/runtime.mjs +1 -1
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +5 -5
- package/dist/api.d.ts +5 -5
- package/dist/api.mjs +5 -5
- package/dist/{app-manifest.d-EZEYG-tD.d.mts → app-manifest.d-6NCkLQ1y.d.mts} +1 -1
- package/dist/{app-manifest.d-Ktsqsuk9.d.ts → app-manifest.d-DuqLBcmi.d.ts} +1 -1
- package/dist/app-markdown.cjs +1 -1
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/app-markdown.mjs +1 -1
- package/dist/{app.d-CSh3y8w8.d.ts → app.d-Bz6vYBFF.d.ts} +4 -4
- package/dist/{app.d-DTkqYcIr.d.mts → app.d-Dk2HkvPh.d.mts} +4 -4
- package/dist/cache.cjs +1 -1
- package/dist/cache.mjs +1 -1
- package/dist/{chunk-IIVZTGGP.cjs → chunk-26CNCIFI.cjs} +2 -2
- package/dist/{chunk-PUEPDMWY.cjs → chunk-2G6JPLSL.cjs} +19 -19
- package/dist/{chunk-HFJLMALC.cjs → chunk-5DREJN4G.cjs} +4 -4
- package/dist/{chunk-LTDMJD2F.cjs → chunk-5KISFWD2.cjs} +4 -4
- package/dist/{chunk-5WFPZG7K.mjs → chunk-5REIO5DT.mjs} +4 -4
- package/dist/{chunk-SYPEMXW2.mjs → chunk-6MZSTPD2.mjs} +1 -1
- package/dist/{chunk-63EFR2WF.cjs → chunk-6XDDE7M6.cjs} +3 -3
- package/dist/{chunk-IXC6WDMT.mjs → chunk-7JTVN6IJ.mjs} +1 -1
- package/dist/{chunk-QODXWUGQ.mjs → chunk-7RQ5KAK6.mjs} +1 -1
- package/dist/{chunk-QVBXTSIZ.mjs → chunk-7V5M43ND.mjs} +1 -1
- package/dist/{chunk-ORWXJDUN.mjs → chunk-A37D6LOS.mjs} +1 -1
- package/dist/{chunk-7EOSFIPN.cjs → chunk-A4WWKG2B.cjs} +2 -2
- package/dist/{chunk-65XXHTVJ.mjs → chunk-A7EJATEW.mjs} +2 -2
- package/dist/{chunk-IHMSLS2O.mjs → chunk-AHGOHPRN.mjs} +13 -13
- package/dist/{chunk-JRBWBMP2.mjs → chunk-B3IRRANH.mjs} +1 -1
- package/dist/{chunk-GC2BSXQS.cjs → chunk-BZJYPIFZ.cjs} +7 -7
- package/dist/{chunk-WHNNDFCJ.mjs → chunk-CBP7AKZH.mjs} +1 -1
- package/dist/{chunk-QUEYL2WM.cjs → chunk-CKNZJFK5.cjs} +1 -1
- package/dist/{chunk-YRQ44JTF.cjs → chunk-DD2ANOEF.cjs} +254 -168
- package/dist/{chunk-MQW4LHJR.cjs → chunk-DPBQRDWW.cjs} +1 -1
- package/dist/{chunk-YTGNMKRA.mjs → chunk-E7V2GYBP.mjs} +1 -1
- package/dist/{chunk-NTHAZLVS.mjs → chunk-EBFTAVGD.mjs} +126 -40
- package/dist/{chunk-RFXEQYPH.cjs → chunk-EVVV2XZ2.cjs} +33 -20
- package/dist/{chunk-YROK6CJC.cjs → chunk-F7PKUP6P.cjs} +9 -9
- package/dist/{chunk-JD42G6BN.cjs → chunk-FOULIN4S.cjs} +2 -2
- package/dist/{chunk-OQZF6H6G.cjs → chunk-H5OVJHXY.cjs} +4 -4
- package/dist/{chunk-SIYELCIX.cjs → chunk-HVMQAVZK.cjs} +78 -78
- package/dist/{chunk-D2RLADWN.mjs → chunk-IGE5BAWK.mjs} +33 -20
- package/dist/{chunk-FTQUNBRN.cjs → chunk-IWGGRXD2.cjs} +2 -2
- package/dist/{chunk-SFSTZ7TB.cjs → chunk-K3ZELA6U.cjs} +2 -2
- package/dist/{chunk-DZ3AZ7UK.cjs → chunk-KZ5BOWJS.cjs} +9 -9
- package/dist/{chunk-ZBE5EHVJ.mjs → chunk-LIC6CMLB.mjs} +5 -5
- package/dist/{chunk-NQZWLIPT.cjs → chunk-LJKTJNOF.cjs} +3 -3
- package/dist/{chunk-UYACD4SH.cjs → chunk-LMXGCFAM.cjs} +1 -1
- package/dist/{chunk-7SAGHWWU.cjs → chunk-MBD34AS5.cjs} +2 -2
- package/dist/{chunk-WZVESREI.cjs → chunk-NB2ZEBIS.cjs} +186 -164
- package/dist/{chunk-DSRWQ4SJ.cjs → chunk-NNGBTJCX.cjs} +3 -3
- package/dist/{chunk-QDHR54S6.cjs → chunk-OBVBII5K.cjs} +5 -5
- package/dist/{chunk-PMKUTZGR.cjs → chunk-ODYKCC6W.cjs} +6 -6
- package/dist/{chunk-3AJQFVWW.mjs → chunk-OGVOKAQU.mjs} +1 -1
- package/dist/{chunk-BTHNOAOF.mjs → chunk-PNWRH6TR.mjs} +2 -2
- package/dist/{chunk-3GMD2E4Q.mjs → chunk-QES76U42.mjs} +1 -1
- package/dist/{chunk-FNVGK72M.mjs → chunk-R77D7TCZ.mjs} +6 -6
- package/dist/{chunk-7EXFAJST.mjs → chunk-RIMEFQYO.mjs} +42 -20
- package/dist/{chunk-2QPTZMGK.mjs → chunk-S6RUJRWI.mjs} +1 -1
- package/dist/chunk-TIZJYHB7.mjs +42 -0
- package/dist/chunk-UZM3PDKK.cjs +46 -0
- package/dist/{chunk-TQOYIPMQ.mjs → chunk-VCW6BR6U.mjs} +1 -1
- package/dist/{chunk-SL2BSPDJ.mjs → chunk-VO5XDZHK.mjs} +1 -1
- package/dist/{chunk-WXMR3OHY.mjs → chunk-VRI43FDN.mjs} +1 -1
- package/dist/{chunk-SMYDCZBW.mjs → chunk-VRJAMU34.mjs} +1 -1
- package/dist/{chunk-CF74ABRI.mjs → chunk-WJ4NUY2H.mjs} +2 -2
- package/dist/{chunk-FPGSIOWS.mjs → chunk-X2SEYK7I.mjs} +2 -2
- package/dist/{chunk-FCHEO3LG.cjs → chunk-XGS76V7L.cjs} +2 -2
- package/dist/{chunk-3QM74STY.cjs → chunk-Y2FEFQAY.cjs} +3 -3
- package/dist/{chunk-FVVGEGQ2.cjs → chunk-ZCYGYIC2.cjs} +2 -2
- package/dist/{chunk-OCKQ3YOH.mjs → chunk-ZEWIWAS2.mjs} +1 -1
- package/dist/{cli-runtime.d-DljFfr8T.d.ts → cli-runtime.d-BG9q2_vC.d.ts} +6 -6
- package/dist/{cli-runtime.d-HSkdfvoq.d.mts → cli-runtime.d-CGMGs1Zz.d.mts} +6 -6
- package/dist/client/lifecycle.cjs +1 -1
- package/dist/client/lifecycle.mjs +1 -1
- package/dist/{client-component.d-_otXB__v.d.ts → client-component.d-B84GPb_u.d.ts} +1 -1
- package/dist/{client-component.d-B-1dIlsw.d.mts → client-component.d-CdsG1E7p.d.mts} +1 -1
- package/dist/client-plugins.cjs +1 -1
- package/dist/{client-plugins.d-BmBzvfSP.d.mts → client-plugins.d-DX-iCJWE.d.mts} +1 -1
- package/dist/{client-plugins.d-MjxlvbCK.d.ts → client-plugins.d-FptsHgls.d.ts} +1 -1
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client-plugins.mjs +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.d.mts +7 -7
- package/dist/client.d.ts +7 -7
- package/dist/client.mjs +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/config.mjs +1 -1
- package/dist/cron.cjs +1 -1
- package/dist/cron.mjs +1 -1
- package/dist/deferred.cjs +1 -1
- package/dist/deferred.mjs +1 -1
- package/dist/deployment.cjs +1 -1
- package/dist/deployment.mjs +1 -1
- package/dist/desktop.cjs +1 -1
- package/dist/desktop.d.mts +3 -3
- package/dist/desktop.d.ts +3 -3
- package/dist/desktop.mjs +1 -1
- package/dist/{dev-guard-ZDIELV6Q.mjs → dev-guard-K3GJDPEQ.mjs} +1 -1
- package/dist/{dev-guard-ZLLKVO5T.cjs → dev-guard-VIEEA4LS.cjs} +1 -1
- package/dist/{devtools-7LHXG2VS.mjs → devtools-7P3OUNLV.mjs} +4 -4
- package/dist/{devtools-NNQN66EZ.cjs → devtools-TMATFNUY.cjs} +5 -5
- package/dist/{devtools-client-X5OQCXDF.cjs → devtools-client-BKBCCORT.cjs} +1 -1
- package/dist/{devtools-client-SU4XH46J.mjs → devtools-client-L4MUWD6K.mjs} +1 -1
- package/dist/{devtools-ui-CYBVFLPH.mjs → devtools-ui-BOG33MT5.mjs} +1 -1
- package/dist/{devtools-ui-SYRUXUA7.cjs → devtools-ui-C2EMF2SO.cjs} +1 -1
- package/dist/docs.cjs +6 -6
- package/dist/docs.d.mts +4 -4
- package/dist/docs.d.ts +4 -4
- package/dist/docs.mjs +5 -5
- package/dist/env-types.cjs +1 -1
- package/dist/env-types.mjs +1 -1
- package/dist/env.cjs +1 -1
- package/dist/env.mjs +1 -1
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.mjs +3 -3
- package/dist/environment.cjs +1 -1
- package/dist/environment.mjs +1 -1
- package/dist/font.cjs +1 -1
- package/dist/font.mjs +1 -1
- package/dist/{handler.d-C53zFDmp.d.ts → handler.d-Cy3XbY_W.d.ts} +1 -1
- package/dist/{handler.d-CaYopqaD.d.mts → handler.d-DSwLTpa5.d.mts} +1 -1
- package/dist/headers.cjs +1 -1
- package/dist/{headers.d-MBkD9ZLf.d.mts → headers.d-DiL9YTH3.d.mts} +1 -1
- package/dist/{headers.d-BvtpC90T.d.ts → headers.d-Qbjo38a0.d.ts} +1 -1
- package/dist/headers.mjs +1 -1
- package/dist/i18n/client.cjs +1 -1
- package/dist/i18n/client.mjs +1 -1
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.mjs +1 -1
- package/dist/i18n/server.cjs +1 -1
- package/dist/i18n/server.mjs +1 -1
- package/dist/image/server.cjs +1 -1
- package/dist/image/server.mjs +1 -1
- package/dist/image/sharp.cjs +1 -1
- package/dist/image/sharp.mjs +1 -1
- package/dist/image.cjs +1 -1
- package/dist/image.mjs +1 -1
- package/dist/index.cjs +37 -37
- package/dist/{index.d-Mikf-tdP.d.mts → index.d-CqQKX3s6.d.mts} +1 -1
- package/dist/{index.d-2hQpPZ-P.d.ts → index.d-OccJoC6I.d.ts} +1 -1
- package/dist/index.d.mts +22 -22
- package/dist/index.d.ts +22 -22
- package/dist/index.mjs +33 -33
- package/dist/instrumentation.cjs +1 -1
- package/dist/instrumentation.mjs +1 -1
- package/dist/integrations/orm.cjs +4 -4
- package/dist/integrations/orm.d.mts +2 -2
- package/dist/integrations/orm.d.ts +2 -2
- package/dist/integrations/orm.mjs +3 -3
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.cjs +1 -1
- package/dist/internal/app-markdown-runtime.d.mts +3 -3
- package/dist/internal/app-markdown-runtime.d.ts +3 -3
- package/dist/internal/app-markdown-runtime.mjs +1 -1
- package/dist/internal/build-runtime.cjs +28 -28
- package/dist/internal/build-runtime.d.mts +5 -5
- package/dist/internal/build-runtime.d.ts +5 -5
- package/dist/internal/build-runtime.mjs +27 -27
- package/dist/internal/cli-runtime.cjs +13 -13
- package/dist/internal/cli-runtime.d.mts +8 -8
- package/dist/internal/cli-runtime.d.ts +8 -8
- package/dist/internal/cli-runtime.mjs +12 -12
- package/dist/internal/client-error-overlay.cjs +5 -5
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +1 -1
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/client-runtime.mjs +1 -1
- package/dist/internal/compression-runtime.cjs +1 -1
- package/dist/internal/compression-runtime.d.mts +2 -2
- package/dist/internal/compression-runtime.d.ts +2 -2
- package/dist/internal/compression-runtime.mjs +1 -1
- package/dist/internal/config-runtime.cjs +6 -6
- package/dist/internal/config-runtime.d.mts +4 -4
- package/dist/internal/config-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.mjs +5 -5
- package/dist/internal/desktop-guard.cjs +1 -1
- package/dist/internal/desktop-guard.mjs +1 -1
- package/dist/internal/docs-precompiled-runtime.cjs +1 -1
- package/dist/internal/docs-precompiled-runtime.mjs +1 -1
- package/dist/internal/form-actions-client.cjs +1 -1
- package/dist/internal/form-actions-client.mjs +1 -1
- package/dist/internal/form-actions.cjs +1 -1
- package/dist/internal/form-actions.mjs +1 -1
- package/dist/internal/infra-analytics-runtime.cjs +7 -7
- package/dist/internal/infra-analytics-runtime.mjs +5 -5
- package/dist/internal/island-codec.cjs +1 -1
- package/dist/internal/island-codec.mjs +1 -1
- package/dist/internal/island-value-store.cjs +1 -1
- package/dist/internal/island-value-store.mjs +1 -1
- package/dist/internal/islands-boot.cjs +27 -6
- package/dist/internal/islands-boot.mjs +24 -3
- package/dist/internal/islands-runtime.cjs +1 -1
- package/dist/internal/islands-runtime.mjs +1 -1
- package/dist/internal/islands-server.cjs +1 -1
- package/dist/internal/islands-server.mjs +1 -1
- package/dist/internal/islx-client.cjs +1 -1
- package/dist/internal/islx-react.cjs +1 -1
- package/dist/internal/islx-server.cjs +1 -1
- package/dist/internal/isolated-boundary.cjs +1 -1
- package/dist/internal/isolated-boundary.mjs +1 -1
- package/dist/internal/metadata-image-runtime.cjs +1 -1
- package/dist/internal/metadata-image-runtime.mjs +1 -1
- package/dist/internal/native-server-fns.cjs +5 -5
- package/dist/internal/native-server-fns.mjs +4 -4
- package/dist/internal/product-telemetry-runtime.cjs +4 -4
- package/dist/internal/product-telemetry-runtime.mjs +3 -3
- package/dist/internal/production-node-env.cjs +1 -1
- package/dist/internal/production-node-env.mjs +1 -1
- package/dist/internal/production-runtime.cjs +7 -7
- package/dist/internal/production-runtime.d.mts +11 -11
- package/dist/internal/production-runtime.d.ts +11 -11
- package/dist/internal/production-runtime.mjs +6 -6
- package/dist/internal/react-cache.cjs +1 -1
- package/dist/internal/react-cache.mjs +1 -1
- package/dist/internal/request-cookies.cjs +1 -1
- package/dist/internal/request-cookies.mjs +1 -1
- package/dist/internal/server-fn-transform.cjs +1 -1
- package/dist/internal/server-fn-transform.mjs +1 -1
- package/dist/internal/server-tree.cjs +1 -1
- package/dist/internal/server-tree.mjs +1 -1
- package/dist/internal/start-manifest.cjs +1 -1
- package/dist/internal/start-manifest.d.mts +2 -2
- package/dist/internal/start-manifest.d.ts +2 -2
- package/dist/internal/start-manifest.mjs +1 -1
- package/dist/internal/vercel-edge-middleware.cjs +1 -1
- package/dist/internal/vercel-edge-middleware.mjs +1 -1
- package/dist/json-ld.cjs +1 -1
- package/dist/json-ld.mjs +1 -1
- package/dist/{layers-I7VE5Q2Y.mjs → layers-5ZD4764G.mjs} +1 -1
- package/dist/{layers-WP5K5F7W.cjs → layers-HMEGUEXM.cjs} +1 -1
- package/dist/libsql-http-2QD224YS.mjs +600 -0
- package/dist/libsql-http-M6LMNXCN.cjs +600 -0
- package/dist/{manager-YO2RHDYU.mjs → manager-OMTC5FOJ.mjs} +2 -2
- package/dist/{manager-R7FV4A56.cjs → manager-PX4QN4HK.cjs} +4 -4
- package/dist/markdown.cjs +1 -1
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.mjs +1 -1
- package/dist/middleware.cjs +5 -5
- package/dist/middleware.d.mts +2 -2
- package/dist/middleware.d.ts +2 -2
- package/dist/middleware.mjs +4 -4
- package/dist/mobile.cjs +1 -1
- package/dist/mobile.mjs +1 -1
- package/dist/{modules-KOKD4XS6.mjs → modules-3Q2ZCY4Q.mjs} +1 -1
- package/dist/{modules-QTP7WJPD.cjs → modules-KDHFBQ6L.cjs} +1 -1
- package/dist/{mount.d-DsP46XCy.d.mts → mount.d-AcJaUtHF.d.mts} +1 -1
- package/dist/{mount.d-GU-tNxbE.d.ts → mount.d-CPzqOm-a.d.ts} +1 -1
- package/dist/{native-server-fn-handler-LII4MDRR.mjs → native-server-fn-handler-WYYY4YBN.mjs} +1 -1
- package/dist/{native-server-fn-handler-IWNKQEXK.cjs → native-server-fn-handler-XRTZR7SZ.cjs} +1 -1
- package/dist/{native-specs-LDV6IZ4N.mjs → native-specs-A7YOL463.mjs} +1 -1
- package/dist/{native-specs-5OLED4MM.cjs → native-specs-JDPH26AO.cjs} +1 -1
- package/dist/{native-tree-G6ZWS7IR.mjs → native-tree-JDI3LJSH.mjs} +1 -1
- package/dist/{native-tree-D3PW64ZL.cjs → native-tree-MNUFN5G6.cjs} +1 -1
- package/dist/native.cjs +1 -1
- package/dist/native.mjs +1 -1
- package/dist/{navigation-delegate.d-CUtNOYLi.d.mts → navigation-delegate.d-C4i5Y39E.d.mts} +1 -1
- package/dist/{navigation-delegate.d-DsxNPrLT.d.ts → navigation-delegate.d-_Df9DnPY.d.ts} +1 -1
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/navigation.mjs +1 -1
- package/dist/{nitro-HKMVYIXY.cjs → nitro-NUCTYEKJ.cjs} +3 -3
- package/dist/{nitro-RHLKLYXH.mjs → nitro-VCJ6QQSI.mjs} +2 -2
- package/dist/{node-module-bundle-LIZ2KMVW.cjs → node-module-bundle-M6BISE2P.cjs} +1 -1
- package/dist/{node-module-bundle-VR6NV6AI.mjs → node-module-bundle-XPLBMXRD.mjs} +1 -1
- package/dist/observability.cjs +1 -1
- package/dist/observability.mjs +1 -1
- package/dist/og.cjs +1 -1
- package/dist/og.mjs +1 -1
- package/dist/platform.cjs +1 -1
- package/dist/platform.mjs +1 -1
- package/dist/{plugin-MW7IDV76.cjs → plugin-AGEFSU7K.cjs} +3 -3
- package/dist/{plugin-2KWR2X4B.mjs → plugin-TV6W7YNK.mjs} +2 -2
- package/dist/plugin.cjs +21 -21
- package/dist/plugin.d.mts +6 -6
- package/dist/plugin.d.ts +6 -6
- package/dist/plugin.mjs +20 -20
- package/dist/{port-CLL4BC4O.mjs → port-CEZTV776.mjs} +1 -1
- package/dist/{port-HASZTQGY.cjs → port-STMSGUVU.cjs} +1 -1
- package/dist/query/client.cjs +1 -1
- package/dist/query/client.mjs +1 -1
- package/dist/query/index.cjs +1 -1
- package/dist/query/index.mjs +1 -1
- package/dist/query/parsers.cjs +1 -1
- package/dist/query/parsers.mjs +1 -1
- package/dist/query/server.cjs +1 -1
- package/dist/query/server.mjs +1 -1
- package/dist/{render-plan.d-B7Xp-PPW.d.mts → render-plan.d-4V_NmaA6.d.mts} +1 -1
- package/dist/{render-plan.d-8K6S0h0L.d.ts → render-plan.d-CslZE7o7.d.ts} +1 -1
- package/dist/renderer/none/server.cjs +1 -1
- package/dist/renderer/none/server.mjs +1 -1
- package/dist/renderer/react/client.cjs +1 -1
- package/dist/renderer/react/client.mjs +1 -1
- package/dist/renderer/react/server.cjs +1 -1
- package/dist/renderer/react/server.mjs +1 -1
- package/dist/renderer/react/vite.cjs +1 -1
- package/dist/renderer/react/vite.mjs +1 -1
- package/dist/renderer-client.cjs +1 -1
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/renderer-client.mjs +1 -1
- package/dist/renderer.cjs +1 -1
- package/dist/renderer.mjs +1 -1
- package/dist/request.cjs +1 -1
- package/dist/{request.d-CuQxmOqX.d.ts → request.d-CbV3y7j3.d.ts} +1 -1
- package/dist/{request.d-nhqciCAz.d.mts → request.d-CmLTxEgS.d.mts} +1 -1
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/request.mjs +1 -1
- package/dist/{route-rendering.d-BSsdDYC1.d.ts → route-rendering.d-CETnXNez.d.ts} +1 -1
- package/dist/{route-rendering.d-CeF1FOnl.d.mts → route-rendering.d-CmoqfOmj.d.mts} +1 -1
- package/dist/router.cjs +1 -1
- package/dist/{router.d-C7yGlhDL.d.ts → router.d-Dga3N5YO.d.ts} +1 -1
- package/dist/{router.d-D462OX24.d.mts → router.d-ktz7pwYm.d.mts} +1 -1
- package/dist/router.mjs +1 -1
- package/dist/routes.cjs +1 -1
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/routes.mjs +1 -1
- package/dist/{rsc-pipeline-7PV6ARDS.cjs → rsc-pipeline-JLYD26AR.cjs} +9 -9
- package/dist/{rsc-pipeline-EZU4W4RL.mjs → rsc-pipeline-N7CWJW7T.mjs} +8 -8
- package/dist/{runtime-QOE3NRXF.cjs → runtime-F5NSS4DD.cjs} +11 -11
- package/dist/{runtime-RWLFEPS3.mjs → runtime-QXX2A4TS.mjs} +8 -8
- package/dist/{runtime.d-CORDJQMy.d.ts → runtime.d-BWLZUOfA.d.ts} +1 -1
- package/dist/{runtime.d-C-BHQMy5.d.mts → runtime.d-DuaXEM0p.d.mts} +1 -1
- package/dist/safe-fetch.cjs +1 -1
- package/dist/safe-fetch.mjs +1 -1
- package/dist/{schema-dev-notice-CA55V57L.mjs → schema-dev-notice-2GN5V7Y2.mjs} +1 -1
- package/dist/{schema-dev-notice-RWA2UTR6.cjs → schema-dev-notice-6VCOZGG2.cjs} +1 -1
- package/dist/schema.cjs +1 -1
- package/dist/schema.mjs +1 -1
- package/dist/{search-client-ZZLKVO5R.cjs → search-client-6NVC6HM2.cjs} +1 -1
- package/dist/{search-client-OXH6GBNO.mjs → search-client-W4PEFAQB.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-BbADqqjq.d.ts → server-components-status.d-C5JpC7_Y.d.ts} +1 -1
- package/dist/{server-components-status.d-BJ6huueH.d.mts → server-components-status.d-CqxtJmqP.d.mts} +1 -1
- package/dist/server-fn-client.cjs +1 -1
- package/dist/server-fn-client.mjs +1 -1
- package/dist/server-fn.cjs +1 -1
- package/dist/server-fn.mjs +1 -1
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +4 -4
- package/dist/server-plugins.d.ts +4 -4
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query-client.cjs +1 -1
- package/dist/server-query-client.mjs +1 -1
- package/dist/server-query.cjs +1 -1
- package/dist/server-query.mjs +1 -1
- package/dist/server.cjs +91 -69
- package/dist/server.d.mts +12 -12
- package/dist/server.d.ts +12 -12
- package/dist/server.mjs +50 -28
- package/dist/{session-WPAT6H76.mjs → session-AK2OA5UZ.mjs} +3 -3
- package/dist/session-H4TWP73H.cjs +24 -0
- package/dist/{spa-router.d-DfjafHyX.d.mts → spa-router.d-BLE188EL.d.mts} +2 -2
- package/dist/{spa-router.d-DyGJLQc_.d.ts → spa-router.d-C3LzwTlY.d.ts} +2 -2
- package/dist/{ssg.d-D11lz_wr.d.ts → ssg.d-DisOfj0I.d.ts} +2 -2
- package/dist/{ssg.d-iiLTyLAO.d.mts → ssg.d-QrFyU6T4.d.mts} +2 -2
- package/dist/storage.cjs +3 -3
- package/dist/storage.d.mts +2 -2
- package/dist/storage.d.ts +2 -2
- package/dist/storage.mjs +2 -2
- package/dist/testing.cjs +4 -4
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.mjs +4 -4
- package/dist/theme/client.cjs +1 -1
- package/dist/theme/client.mjs +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.mjs +1 -1
- package/dist/theme/runtime.cjs +1 -1
- package/dist/theme/runtime.mjs +1 -1
- package/dist/theme/server.cjs +1 -1
- package/dist/theme/server.mjs +1 -1
- package/dist/{types.d-DC97bnjj.d.mts → types.d-DW2vyaUq.d.mts} +6 -1
- package/dist/{types.d-DC97bnjj.d.ts → types.d-DW2vyaUq.d.ts} +6 -1
- package/dist/{utils.d-D-GQeEfa.d.ts → utils.d-7YcgfTCK.d.ts} +1 -1
- package/dist/{utils.d-fW-95yEh.d.mts → utils.d-BlWZFgdL.d.mts} +1 -1
- package/dist/version.cjs +3 -3
- package/dist/version.mjs +2 -2
- package/dist/vite.cjs +21 -21
- package/dist/vite.d.mts +7 -7
- package/dist/vite.d.ts +7 -7
- package/dist/vite.mjs +20 -20
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +3 -5
- package/dist/analyzer-HTNXLX6N.cjs +0 -16
- package/dist/chunk-BTZ5O6VM.cjs +0 -14
- package/dist/chunk-Y6FXYEAI.mjs +0 -10
- package/dist/session-OU7M4CIF.cjs +0 -24
- package/dist/{chunk-WW62HKA2.cjs → chunk-4SLHSODZ.cjs} +2 -2
- package/dist/{chunk-RL47VZ6J.mjs → chunk-522K362I.mjs} +0 -0
- package/dist/{chunk-AF3PNVVF.cjs → chunk-AOTD2N5P.cjs} +0 -0
- package/dist/{chunk-PC5OZ4YR.cjs → chunk-CUZT7474.cjs} +0 -0
- package/dist/{chunk-BEXH6BGH.mjs → chunk-JKFN3YVG.mjs} +0 -0
- package/dist/{chunk-YTNE4KGC.cjs → chunk-MALGIHIC.cjs} +0 -0
- package/dist/{chunk-UOE6ZZZP.mjs → chunk-Q3DO7MVK.mjs} +0 -0
- package/dist/{chunk-GAAK3HDZ.mjs → chunk-XT2CHTDN.mjs} +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkY2FEFQAYcjs = require('./chunk-Y2FEFQAY.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -40,22 +40,22 @@ var _chunkRDADQG5Scjs = require('./chunk-RDADQG5S.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkHVMQAVZKcjs = require('./chunk-HVMQAVZK.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkMBD34AS5cjs = require('./chunk-MBD34AS5.cjs');
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
var
|
|
51
|
+
var _chunkCUZT7474cjs = require('./chunk-CUZT7474.cjs');
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunkBZJYPIFZcjs = require('./chunk-BZJYPIFZ.cjs');
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
@@ -82,13 +82,13 @@ var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
|
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
var
|
|
85
|
+
var _chunk5KISFWD2cjs = require('./chunk-5KISFWD2.cjs');
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
var _chunkYRXPDKMMcjs = require('./chunk-YRXPDKMM.cjs');
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
var
|
|
91
|
+
var _chunkFOULIN4Scjs = require('./chunk-FOULIN4S.cjs');
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
|
|
@@ -139,7 +139,7 @@ var _chunk7EPYN7GWcjs = require('./chunk-7EPYN7GW.cjs');
|
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
|
|
142
|
-
var
|
|
142
|
+
var _chunkODYKCC6Wcjs = require('./chunk-ODYKCC6W.cjs');
|
|
143
143
|
|
|
144
144
|
|
|
145
145
|
|
|
@@ -215,14 +215,14 @@ var _chunk2YJ4DHTDcjs = require('./chunk-2YJ4DHTD.cjs');
|
|
|
215
215
|
|
|
216
216
|
|
|
217
217
|
|
|
218
|
-
var
|
|
218
|
+
var _chunkAOTD2N5Pcjs = require('./chunk-AOTD2N5P.cjs');
|
|
219
219
|
|
|
220
220
|
|
|
221
221
|
|
|
222
222
|
var _chunkX333W5KVcjs = require('./chunk-X333W5KV.cjs');
|
|
223
223
|
|
|
224
224
|
|
|
225
|
-
var
|
|
225
|
+
var _chunk4SLHSODZcjs = require('./chunk-4SLHSODZ.cjs');
|
|
226
226
|
|
|
227
227
|
|
|
228
228
|
|
|
@@ -238,7 +238,7 @@ var _chunkKBGZ5FD6cjs = require('./chunk-KBGZ5FD6.cjs');
|
|
|
238
238
|
var _chunkP2355C6Ecjs = require('./chunk-P2355C6E.cjs');
|
|
239
239
|
|
|
240
240
|
|
|
241
|
-
var
|
|
241
|
+
var _chunk5DREJN4Gcjs = require('./chunk-5DREJN4G.cjs');
|
|
242
242
|
|
|
243
243
|
|
|
244
244
|
var _chunkSXXSQVKKcjs = require('./chunk-SXXSQVKK.cjs');
|
|
@@ -301,7 +301,7 @@ var _chunkSUCDVKUBcjs = require('./chunk-SUCDVKUB.cjs');
|
|
|
301
301
|
var _chunkEVIWKPJVcjs = require('./chunk-EVIWKPJV.cjs');
|
|
302
302
|
|
|
303
303
|
|
|
304
|
-
var
|
|
304
|
+
var _chunkLMXGCFAMcjs = require('./chunk-LMXGCFAM.cjs');
|
|
305
305
|
|
|
306
306
|
|
|
307
307
|
var _chunkPMJSG4JScjs = require('./chunk-PMJSG4JS.cjs');
|
|
@@ -349,7 +349,7 @@ var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
|
349
349
|
|
|
350
350
|
|
|
351
351
|
|
|
352
|
-
var
|
|
352
|
+
var _chunkUZM3PDKKcjs = require('./chunk-UZM3PDKK.cjs');
|
|
353
353
|
|
|
354
354
|
// src/form-actions-transform.ts
|
|
355
355
|
var _crypto = require('crypto');
|
|
@@ -700,7 +700,7 @@ function findClientServerFnViolation(code, id) {
|
|
|
700
700
|
return null;
|
|
701
701
|
}
|
|
702
702
|
function createServerFnBoundaryDiagnostic(violation, id, location) {
|
|
703
|
-
return
|
|
703
|
+
return _chunkODYKCC6Wcjs.createFarmDiagnostic.call(void 0,
|
|
704
704
|
"CLIENT_SERVER_FUNCTION",
|
|
705
705
|
id,
|
|
706
706
|
`${violation.factory} handlers run only on the server, but this module is bundled into the client, so the handler and its Node-only imports would run in the browser.`,
|
|
@@ -959,21 +959,21 @@ function readPropertyKey(property) {
|
|
|
959
959
|
function createClientBoundaryDiagnostic(file, finding, location) {
|
|
960
960
|
switch (finding.kind) {
|
|
961
961
|
case "server-env":
|
|
962
|
-
return
|
|
962
|
+
return _chunkODYKCC6Wcjs.createFarmDiagnostic.call(void 0,
|
|
963
963
|
"CLIENT_SERVER_ENV",
|
|
964
964
|
file,
|
|
965
965
|
`process.env.${finding.name} is read at module scope in a module compiled for the browser, where it is undefined.`,
|
|
966
966
|
location
|
|
967
967
|
);
|
|
968
968
|
case "public-env":
|
|
969
|
-
return
|
|
969
|
+
return _chunkODYKCC6Wcjs.createFarmDiagnostic.call(void 0,
|
|
970
970
|
"CLIENT_PROCESS_ENV_PUBLIC",
|
|
971
971
|
file,
|
|
972
972
|
`process.env.${finding.name} is declared public, but process.env is not populated in the browser, so this module-scope read is undefined there.`,
|
|
973
973
|
location
|
|
974
974
|
);
|
|
975
975
|
case "builtin":
|
|
976
|
-
return
|
|
976
|
+
return _chunkODYKCC6Wcjs.createFarmDiagnostic.call(void 0,
|
|
977
977
|
"CLIENT_NODE_BUILTIN",
|
|
978
978
|
file,
|
|
979
979
|
`"${finding.name}" is imported into a module compiled for the browser, which gets a stub whose exports without a Web API equivalent are undefined.`,
|
|
@@ -1265,22 +1265,22 @@ function loadFarmDocsDevRuntime() {
|
|
|
1265
1265
|
return import("./docs.cjs");
|
|
1266
1266
|
}
|
|
1267
1267
|
function loadFarmDocsSearchDevRuntime() {
|
|
1268
|
-
return import("./search-client-
|
|
1268
|
+
return import("./search-client-6NVC6HM2.cjs");
|
|
1269
1269
|
}
|
|
1270
1270
|
function loadFarmOpenAPIDevRuntime() {
|
|
1271
|
-
return import("./manager-
|
|
1271
|
+
return import("./manager-PX4QN4HK.cjs");
|
|
1272
1272
|
}
|
|
1273
1273
|
function loadFarmWorkflowsDevRuntime() {
|
|
1274
1274
|
return import("./workflows.cjs");
|
|
1275
1275
|
}
|
|
1276
1276
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
1277
|
-
return import("./devtools-
|
|
1277
|
+
return import("./devtools-TMATFNUY.cjs");
|
|
1278
1278
|
}
|
|
1279
1279
|
function loadFarmDevtoolsUIRuntime() {
|
|
1280
|
-
return import("./devtools-ui-
|
|
1280
|
+
return import("./devtools-ui-C2EMF2SO.cjs");
|
|
1281
1281
|
}
|
|
1282
1282
|
function loadFarmDevtoolsClientRuntime() {
|
|
1283
|
-
return import("./devtools-client-
|
|
1283
|
+
return import("./devtools-client-BKBCCORT.cjs");
|
|
1284
1284
|
}
|
|
1285
1285
|
function farmI18nClientBridgePlugin() {
|
|
1286
1286
|
return {
|
|
@@ -1305,16 +1305,16 @@ var FARM_SERVER_ONLY_PACKAGE_ID = "\0farm:server-only";
|
|
|
1305
1305
|
var FARM_PLATFORM_ENTRY = "@farm.js/core/platform";
|
|
1306
1306
|
var FARM_PLATFORM_CLIENT_ID = "\0farm:platform-client";
|
|
1307
1307
|
var FARM_SERVER_ONLY_ENTRIES_RESOLVE_FILTER = [
|
|
1308
|
-
|
|
1309
|
-
new RegExp(`^${
|
|
1308
|
+
_chunkHVMQAVZKcjs.exactIdPattern.call(void 0, [FARM_PLATFORM_ENTRY, SERVER_ONLY_PACKAGE, ...FARM_SERVER_ONLY_ENTRIES]),
|
|
1309
|
+
new RegExp(`^${_chunkODYKCC6Wcjs.FARM_RESOLVE_FROM_PREFIX}`),
|
|
1310
1310
|
// What isBuiltin() accepts: `node:` ids and the builtin names, subpaths such as fs/promises
|
|
1311
1311
|
// included.
|
|
1312
1312
|
/^node:/,
|
|
1313
|
-
|
|
1313
|
+
_chunkHVMQAVZKcjs.exactIdPattern.call(void 0, _module.builtinModules)
|
|
1314
1314
|
];
|
|
1315
1315
|
var FARM_SERVER_ONLY_ENTRIES_LOAD_FILTER = [
|
|
1316
|
-
|
|
1317
|
-
new RegExp(`^${
|
|
1316
|
+
_chunkHVMQAVZKcjs.exactIdPattern.call(void 0, [FARM_SERVER_ONLY_PACKAGE_ID, FARM_PLATFORM_CLIENT_ID]),
|
|
1317
|
+
new RegExp(`^${_chunkODYKCC6Wcjs.FARM_BROWSER_BUILTIN_PREFIX}`)
|
|
1318
1318
|
];
|
|
1319
1319
|
function createFarmPlatformClientModule(platform) {
|
|
1320
1320
|
return `export function platform() { return ${JSON.stringify(platform)}; }
|
|
@@ -1350,18 +1350,18 @@ function farmIslandContainersPlugin(config) {
|
|
|
1350
1350
|
if (id.startsWith("\0") || id.includes("/node_modules/") || !/\.[jt]sx(?:$|\?)/.test(id)) {
|
|
1351
1351
|
return null;
|
|
1352
1352
|
}
|
|
1353
|
-
if (
|
|
1353
|
+
if (_chunkODYKCC6Wcjs.hasUseClientDirective.call(void 0, code)) return null;
|
|
1354
1354
|
const file = id.split("?", 1)[0];
|
|
1355
|
-
const bindings =
|
|
1355
|
+
const bindings = _chunkODYKCC6Wcjs.getFarmClientRenderingBindings.call(void 0, code, file, root);
|
|
1356
1356
|
if (bindings.length === 0) return null;
|
|
1357
|
-
const grown =
|
|
1357
|
+
const grown = _chunkODYKCC6Wcjs.wrapFarmIslandContainers.call(void 0, {
|
|
1358
1358
|
code,
|
|
1359
1359
|
file,
|
|
1360
1360
|
bindings,
|
|
1361
|
-
reference:
|
|
1361
|
+
reference: _chunkODYKCC6Wcjs.farmIslandContainerReferencePath.call(void 0, root)
|
|
1362
1362
|
});
|
|
1363
1363
|
if (grown === null) return null;
|
|
1364
|
-
|
|
1364
|
+
_chunkODYKCC6Wcjs.ensureFarmIslandContainerReference.call(void 0, root);
|
|
1365
1365
|
return { code: grown, map: null };
|
|
1366
1366
|
}
|
|
1367
1367
|
};
|
|
@@ -1375,15 +1375,15 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1375
1375
|
config(config) {
|
|
1376
1376
|
const appRoot = path6.resolve(_nullishCoalesce(config.root, () => ( process.cwd())));
|
|
1377
1377
|
if (options.distDir) {
|
|
1378
|
-
|
|
1378
|
+
_chunkODYKCC6Wcjs.usePackageScanCacheFile.call(void 0,
|
|
1379
1379
|
path6.resolve(appRoot, options.distDir, "cache", "package-scans.json")
|
|
1380
1380
|
);
|
|
1381
1381
|
}
|
|
1382
|
-
const bundledPackages =
|
|
1382
|
+
const bundledPackages = _chunkODYKCC6Wcjs.collectFarmServerBundledPackageInfo.call(void 0, appRoot);
|
|
1383
1383
|
const prebundle = options.prebundleServerPackages ? createFarmServerPrebundleConfig(bundledPackages) : {};
|
|
1384
|
-
|
|
1384
|
+
_chunkODYKCC6Wcjs.persistPackageScanCache.call(void 0, );
|
|
1385
1385
|
return {
|
|
1386
|
-
optimizeDeps: { rolldownOptions: { plugins: [
|
|
1386
|
+
optimizeDeps: { rolldownOptions: { plugins: [_chunkODYKCC6Wcjs.farmBrowserBuiltinsOptimizerPlugin.call(void 0, )] } },
|
|
1387
1387
|
ssr: {
|
|
1388
1388
|
noExternal: [
|
|
1389
1389
|
// Resolve `server-only` here rather than in Node, which would load its throwing build.
|
|
@@ -1407,8 +1407,8 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1407
1407
|
return FARM_SERVER_ONLY_PACKAGE_ID;
|
|
1408
1408
|
}
|
|
1409
1409
|
this.error(
|
|
1410
|
-
|
|
1411
|
-
|
|
1410
|
+
_chunkODYKCC6Wcjs.formatFarmDiagnostic.call(void 0,
|
|
1411
|
+
_chunkODYKCC6Wcjs.createFarmDiagnostic.call(void 0,
|
|
1412
1412
|
"CLIENT_SERVER_ONLY_IMPORT",
|
|
1413
1413
|
_nullishCoalesce(importer, () => ( "<unknown module>")),
|
|
1414
1414
|
`${importer ? "This module" : "A module"} imports "server-only", so it must not reach the browser, but client code imports it.`
|
|
@@ -1418,9 +1418,9 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1418
1418
|
);
|
|
1419
1419
|
}
|
|
1420
1420
|
if (!_optionalChain([options2, 'optionalAccess', _74 => _74.ssr]) && _module.isBuiltin.call(void 0, id)) {
|
|
1421
|
-
return
|
|
1421
|
+
return _chunkODYKCC6Wcjs.resolveFarmBrowserBuiltin.call(void 0, this, id, importer, options2);
|
|
1422
1422
|
}
|
|
1423
|
-
const resolveFrom = importer ?
|
|
1423
|
+
const resolveFrom = importer ? _chunkODYKCC6Wcjs.parseFarmResolveFrom.call(void 0, id, importer.split("?", 1)[0]) : null;
|
|
1424
1424
|
if (resolveFrom) {
|
|
1425
1425
|
const directory = path6.dirname(resolveFrom.importer);
|
|
1426
1426
|
return this.resolve(resolveFrom.specifier, resolveFrom.importer, {
|
|
@@ -1437,8 +1437,8 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1437
1437
|
const importedBy = importer ? ` (imported by ${importer})` : "";
|
|
1438
1438
|
if (!_optionalChain([options2, 'optionalAccess', _75 => _75.ssr])) {
|
|
1439
1439
|
this.error(
|
|
1440
|
-
|
|
1441
|
-
|
|
1440
|
+
_chunkODYKCC6Wcjs.formatFarmDiagnostic.call(void 0,
|
|
1441
|
+
_chunkODYKCC6Wcjs.createFarmDiagnostic.call(void 0,
|
|
1442
1442
|
"CLIENT_SERVER_ONLY_ENTRY",
|
|
1443
1443
|
_nullishCoalesce(importer, () => ( id)),
|
|
1444
1444
|
`${id} is server-only and cannot be imported into client code.`
|
|
@@ -1463,7 +1463,7 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1463
1463
|
if (id === FARM_PLATFORM_CLIENT_ID) {
|
|
1464
1464
|
return createFarmPlatformClientModule(_nullishCoalesce(options.platform, () => ( _chunkAQLHD6HZcjs.resolveFarmPlatform.call(void 0, ))));
|
|
1465
1465
|
}
|
|
1466
|
-
return _nullishCoalesce(
|
|
1466
|
+
return _nullishCoalesce(_chunkODYKCC6Wcjs.loadFarmBrowserBuiltin.call(void 0, id), () => ( null));
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
1469
|
};
|
|
@@ -1569,7 +1569,7 @@ function sendFarmDevRuntimeHookError(res, json) {
|
|
|
1569
1569
|
res.end(json ? _chunk4VLXQ55Ocjs.FARM_INTERNAL_SERVER_ERROR_BODY : "Internal Server Error");
|
|
1570
1570
|
}
|
|
1571
1571
|
function opensFarmDevRuntimeSession(pm) {
|
|
1572
|
-
return pm.hasRuntimeRequestHooks() ||
|
|
1572
|
+
return pm.hasRuntimeRequestHooks() || _chunkMBD34AS5cjs.hasFarmServerRuntimePlugins.call(void 0, pm.getPlugins());
|
|
1573
1573
|
}
|
|
1574
1574
|
var FARM_CONFIG_ROUTE_PLUGIN_NAMES = /* @__PURE__ */ new Set([
|
|
1575
1575
|
_chunkH7OFZJCVcjs.FARM_CONFIG_HEADERS_PLUGIN_NAME,
|
|
@@ -1682,7 +1682,7 @@ function interceptFarmDevPageResponse(options) {
|
|
|
1682
1682
|
res.end = originalEnd;
|
|
1683
1683
|
res.writeHead = originalWriteHead;
|
|
1684
1684
|
if (originalFlushHeaders) res.flushHeaders = originalFlushHeaders;
|
|
1685
|
-
delete res[
|
|
1685
|
+
delete res[_chunkCUZT7474cjs.FARM_NODE_RESPONSE_END_PENDING];
|
|
1686
1686
|
};
|
|
1687
1687
|
let runtimeHookFailed = false;
|
|
1688
1688
|
const endRuntimeRequest = (response) => pm.endRuntimeRequest(runtimeSession, response).catch((error) => {
|
|
@@ -1806,7 +1806,7 @@ function interceptFarmDevPageResponse(options) {
|
|
|
1806
1806
|
});
|
|
1807
1807
|
res.end = ((...args) => {
|
|
1808
1808
|
interceptedEnd = true;
|
|
1809
|
-
res[
|
|
1809
|
+
res[_chunkCUZT7474cjs.FARM_NODE_RESPONSE_END_PENDING] = true;
|
|
1810
1810
|
if (afterResponseCalled) return res;
|
|
1811
1811
|
afterResponseCalled = true;
|
|
1812
1812
|
options.logResponse(method, urlPath, res.statusCode || 200, Date.now() - startTime, "PAGE");
|
|
@@ -1889,7 +1889,7 @@ function interceptFarmDevPageResponse(options) {
|
|
|
1889
1889
|
res.end = originalEnd;
|
|
1890
1890
|
res.writeHead = originalWriteHead;
|
|
1891
1891
|
if (originalFlushHeaders) res.flushHeaders = originalFlushHeaders;
|
|
1892
|
-
delete res[
|
|
1892
|
+
delete res[_chunkCUZT7474cjs.FARM_NODE_RESPONSE_END_PENDING];
|
|
1893
1893
|
originalEnd(...originalEndArgs);
|
|
1894
1894
|
}).catch((error) => {
|
|
1895
1895
|
reportFailure(error);
|
|
@@ -1906,14 +1906,14 @@ function interceptFarmDevPageResponse(options) {
|
|
|
1906
1906
|
res.end = originalEnd;
|
|
1907
1907
|
res.writeHead = originalWriteHead;
|
|
1908
1908
|
if (originalFlushHeaders) res.flushHeaders = originalFlushHeaders;
|
|
1909
|
-
delete res[
|
|
1909
|
+
delete res[_chunkCUZT7474cjs.FARM_NODE_RESPONSE_END_PENDING];
|
|
1910
1910
|
originalEnd(body, callback);
|
|
1911
1911
|
} else {
|
|
1912
1912
|
res.write = originalWrite;
|
|
1913
1913
|
res.end = originalEnd;
|
|
1914
1914
|
res.writeHead = originalWriteHead;
|
|
1915
1915
|
if (originalFlushHeaders) res.flushHeaders = originalFlushHeaders;
|
|
1916
|
-
delete res[
|
|
1916
|
+
delete res[_chunkCUZT7474cjs.FARM_NODE_RESPONSE_END_PENDING];
|
|
1917
1917
|
originalEnd(...originalEndArgs);
|
|
1918
1918
|
}
|
|
1919
1919
|
});
|
|
@@ -2077,7 +2077,7 @@ function transformIsolatedClientBoundaryModule(options) {
|
|
|
2077
2077
|
return null;
|
|
2078
2078
|
}
|
|
2079
2079
|
const body = Array.isArray(ast.body) ? ast.body : [];
|
|
2080
|
-
const everyExportIsComponent = options.code.includes(
|
|
2080
|
+
const everyExportIsComponent = options.code.includes(_chunkODYKCC6Wcjs.FARM_CLIENT_REFERENCE_PRAGMA) || options.moduleReference.includes(_chunkODYKCC6Wcjs.FARM_CLIENT_REFERENCE_DIRECTORY);
|
|
2081
2081
|
const replacements = [];
|
|
2082
2082
|
const wrapperStatements = [];
|
|
2083
2083
|
const originalEntries = [];
|
|
@@ -2228,16 +2228,16 @@ async function warnClientBoundaryOnce(context, id, code, config) {
|
|
|
2228
2228
|
for (const finding of analyzeClientBoundary(program, publicKeys)) {
|
|
2229
2229
|
if (finding.kind === "builtin" && !finding.name.startsWith("node:")) {
|
|
2230
2230
|
const resolved = await context.resolve(finding.name, id).catch(() => null);
|
|
2231
|
-
if (!_optionalChain([resolved, 'optionalAccess', _102 => _102.id, 'access', _103 => _103.startsWith, 'call', _104 => _104(
|
|
2231
|
+
if (!_optionalChain([resolved, 'optionalAccess', _102 => _102.id, 'access', _103 => _103.startsWith, 'call', _104 => _104(_chunkODYKCC6Wcjs.FARM_BROWSER_BUILTIN_PREFIX)])) continue;
|
|
2232
2232
|
}
|
|
2233
2233
|
findings.push(finding);
|
|
2234
2234
|
}
|
|
2235
2235
|
if (findings.length === 0) return;
|
|
2236
2236
|
warnedClientBoundaryIds.add(id);
|
|
2237
|
-
const locate =
|
|
2237
|
+
const locate = _chunkODYKCC6Wcjs.createFarmSourceLocator.call(void 0, code, () => context.getCombinedSourcemap());
|
|
2238
2238
|
_chunkGC5ROI3Acjs.logger.warn(
|
|
2239
2239
|
findings.map(
|
|
2240
|
-
(finding) =>
|
|
2240
|
+
(finding) => _chunkODYKCC6Wcjs.formatFarmDiagnostic.call(void 0,
|
|
2241
2241
|
createClientBoundaryDiagnostic(id, finding, locate(finding.start)),
|
|
2242
2242
|
config.root
|
|
2243
2243
|
)
|
|
@@ -2252,7 +2252,7 @@ function toFarmRuntimeModuleId(specifier) {
|
|
|
2252
2252
|
return FARM_RUNTIME_MODULE_PREFIX + specifier;
|
|
2253
2253
|
}
|
|
2254
2254
|
function getFarmCoreFile() {
|
|
2255
|
-
return typeof __filename === "string" ? __filename : _url.fileURLToPath.call(void 0,
|
|
2255
|
+
return typeof __filename === "string" ? __filename : _url.fileURLToPath.call(void 0, _chunkUZM3PDKKcjs.define_import_meta_default.url);
|
|
2256
2256
|
}
|
|
2257
2257
|
var FARM_SOURCE_ALIAS_PROBES = [
|
|
2258
2258
|
"@/x",
|
|
@@ -2278,7 +2278,7 @@ function hasFarmSourceAliasOverride(alias) {
|
|
|
2278
2278
|
function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
2279
2279
|
const rendererDisabled = _chunk67MZTLTFcjs.isFarmRendererDisabled.call(void 0, options.renderer);
|
|
2280
2280
|
const imageImports = farmImageImportsPlugin();
|
|
2281
|
-
const fontImports =
|
|
2281
|
+
const fontImports = _chunkHVMQAVZKcjs.farmFontImportsPlugin.call(void 0, {
|
|
2282
2282
|
root: options.root,
|
|
2283
2283
|
basePath: options.basePath,
|
|
2284
2284
|
publicDir: options.publicDir
|
|
@@ -2358,11 +2358,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2358
2358
|
isBuild = configEnv.command === "build";
|
|
2359
2359
|
const farmAliases = {
|
|
2360
2360
|
..._chunkQMR2TUVZcjs.getFarmLayerAliases.call(void 0, options.layers),
|
|
2361
|
-
...hasFarmSourceAliasOverride(_optionalChain([userConfig, 'access', _125 => _125.resolve, 'optionalAccess', _126 => _126.alias])) ? {} :
|
|
2361
|
+
...hasFarmSourceAliasOverride(_optionalChain([userConfig, 'access', _125 => _125.resolve, 'optionalAccess', _126 => _126.alias])) ? {} : _chunkHVMQAVZKcjs.createFarmSourceAlias.call(void 0, options.root || process.cwd(), options.srcDir)
|
|
2362
2362
|
};
|
|
2363
2363
|
if (Object.keys(farmAliases).length > 0) {
|
|
2364
2364
|
_nullishCoalesce(userConfig.resolve, () => ( (userConfig.resolve = {})));
|
|
2365
|
-
userConfig.resolve.alias =
|
|
2365
|
+
userConfig.resolve.alias = _chunkHVMQAVZKcjs.mergeFarmViteAlias.call(void 0, farmAliases, userConfig.resolve.alias);
|
|
2366
2366
|
}
|
|
2367
2367
|
const layerRoots = (_nullishCoalesce(options.layers, () => ( []))).map((layer) => layer.root);
|
|
2368
2368
|
farmOwnsDevCors = !isBuild && _optionalChain([userConfig, 'access', _127 => _127.server, 'optionalAccess', _128 => _128.cors]) === void 0;
|
|
@@ -2402,7 +2402,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2402
2402
|
serverFnTransformActive = config.plugins.some(
|
|
2403
2403
|
(plugin2) => plugin2.name === SERVER_FN_TRANSFORM_PLUGIN
|
|
2404
2404
|
);
|
|
2405
|
-
reactRefreshActive =
|
|
2405
|
+
reactRefreshActive = _chunkY2FEFQAYcjs.isFarmReactRefreshActive.call(void 0, config);
|
|
2406
2406
|
if (_optionalChain([options, 'access', _134 => _134.experimental, 'optionalAccess', _135 => _135.serverActions]) === true && !serverFnTransformActive && !islandsServerFns()) {
|
|
2407
2407
|
_chunkGC5ROI3Acjs.logger.warn(
|
|
2408
2408
|
"experimental.serverActions has no effect without @farm.js/plugin/rsc in the Vite plugins. Server functions stay server-only, and importing one from client code is a build error."
|
|
@@ -2436,7 +2436,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2436
2436
|
} catch (e21) {
|
|
2437
2437
|
}
|
|
2438
2438
|
};
|
|
2439
|
-
farmApp = new (0,
|
|
2439
|
+
farmApp = new (0, _chunkHVMQAVZKcjs.FarmApp)(
|
|
2440
2440
|
{
|
|
2441
2441
|
...options,
|
|
2442
2442
|
root: resolveDevelopmentRoot(options.root, server.config.root)
|
|
@@ -2444,7 +2444,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2444
2444
|
server
|
|
2445
2445
|
);
|
|
2446
2446
|
farmApp.getRouteManager().usePackageClientBoundaryCacheFile(
|
|
2447
|
-
|
|
2447
|
+
_chunkODYKCC6Wcjs.resolvePackageClientBoundaryCacheFile.call(void 0,
|
|
2448
2448
|
farmApp.getConfig().root,
|
|
2449
2449
|
options.distDir || ".farm"
|
|
2450
2450
|
)
|
|
@@ -2455,7 +2455,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2455
2455
|
let farmAppPackages;
|
|
2456
2456
|
if (_optionalChain([farmConfig, 'access', _150 => _150.agent, 'optionalAccess', _151 => _151.noindexPreviews])) {
|
|
2457
2457
|
farmMiddlewares.use((_req, res, next) => {
|
|
2458
|
-
if (
|
|
2458
|
+
if (_chunkFOULIN4Scjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env)) {
|
|
2459
2459
|
res.setHeader("X-Robots-Tag", _chunkF4ID7BGOcjs.FARM_PREVIEW_ROBOTS_TAG);
|
|
2460
2460
|
}
|
|
2461
2461
|
next();
|
|
@@ -2463,7 +2463,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
const apiServerBasePath = _chunk2OF5RPVUcjs.resolveFarmAPIServerBasePath.call(void 0, farmConfig.api);
|
|
2465
2465
|
const devBuiltInRoutePaths = new Set(
|
|
2466
|
-
|
|
2466
|
+
_chunk5KISFWD2cjs.listFarmBuiltInRoutePaths.call(void 0, {
|
|
2467
2467
|
agent: {
|
|
2468
2468
|
apiCatalog: true,
|
|
2469
2469
|
mcp: true,
|
|
@@ -2513,7 +2513,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2513
2513
|
);
|
|
2514
2514
|
const generateTypeArtifacts = async (reason, selection = ALL_TYPE_ARTIFACTS, log = false) => {
|
|
2515
2515
|
try {
|
|
2516
|
-
const result = await
|
|
2516
|
+
const result = await _chunkBZJYPIFZcjs.generateFarmTypeArtifacts.call(void 0, {
|
|
2517
2517
|
root: farmConfig.root,
|
|
2518
2518
|
srcDir: farmConfig.srcDir,
|
|
2519
2519
|
layers: farmConfig.layers,
|
|
@@ -2701,7 +2701,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2701
2701
|
}
|
|
2702
2702
|
})]);
|
|
2703
2703
|
}
|
|
2704
|
-
apiRouteManager = new (0,
|
|
2704
|
+
apiRouteManager = new (0, _chunk5DREJN4Gcjs.APIRouteManager)(appDirs, server, {
|
|
2705
2705
|
plugins: farmConfig.plugins,
|
|
2706
2706
|
i18n: farmApp.getI18nRuntime(),
|
|
2707
2707
|
bodySizeLimit: serverConfig.bodySizeLimit,
|
|
@@ -2747,7 +2747,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2747
2747
|
});
|
|
2748
2748
|
}
|
|
2749
2749
|
}
|
|
2750
|
-
middlewareManager = new (0,
|
|
2750
|
+
middlewareManager = new (0, _chunk4SLHSODZcjs.MiddlewareManager)(
|
|
2751
2751
|
appDirs,
|
|
2752
2752
|
server,
|
|
2753
2753
|
farmConfig.middleware,
|
|
@@ -2816,7 +2816,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2816
2816
|
clientEntry: "/@farm/client.js",
|
|
2817
2817
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2818
2818
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2819
|
-
globalStylesheetHref:
|
|
2819
|
+
globalStylesheetHref: _chunkHVMQAVZKcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2820
2820
|
farmConfig.root,
|
|
2821
2821
|
farmConfig.srcDir
|
|
2822
2822
|
),
|
|
@@ -2847,7 +2847,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2847
2847
|
fontAssets: _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, farmDocsFontAssetList),
|
|
2848
2848
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2849
2849
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2850
|
-
globalStylesheetHref:
|
|
2850
|
+
globalStylesheetHref: _chunkHVMQAVZKcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2851
2851
|
farmConfig.root,
|
|
2852
2852
|
farmConfig.srcDir
|
|
2853
2853
|
),
|
|
@@ -3015,7 +3015,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3015
3015
|
if (!rendererDisabled && (requestMethod === "GET" || requestMethod === "HEAD") && requestPathname === _chunkY3DO7BIJcjs.FARM_VIDEO_PLAYER_PATH) {
|
|
3016
3016
|
res.statusCode = 200;
|
|
3017
3017
|
res.setHeader("Content-Type", "text/html; charset=utf-8");
|
|
3018
|
-
res.end(requestMethod === "HEAD" ? void 0 :
|
|
3018
|
+
res.end(requestMethod === "HEAD" ? void 0 : _chunkHVMQAVZKcjs.FARM_VIDEO_PLAYER_HTML);
|
|
3019
3019
|
return;
|
|
3020
3020
|
}
|
|
3021
3021
|
const farmDocsFontPath = farmDocsFontAssets.get(requestPathname);
|
|
@@ -3295,9 +3295,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3295
3295
|
if (pm && opensFarmDevRuntimeSession(pm)) {
|
|
3296
3296
|
try {
|
|
3297
3297
|
const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath);
|
|
3298
|
-
const route =
|
|
3298
|
+
const route = _chunk5KISFWD2cjs.setFarmRouteLabel.call(void 0,
|
|
3299
3299
|
{ pathname: requestPathname },
|
|
3300
|
-
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname :
|
|
3300
|
+
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname : _chunk5KISFWD2cjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath)
|
|
3301
3301
|
);
|
|
3302
3302
|
runtimeSession2 = await pm.beginRuntimeRequest(
|
|
3303
3303
|
createRequestFromNodeRequest(req, new URL(fullUrl)),
|
|
@@ -3386,7 +3386,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3386
3386
|
);
|
|
3387
3387
|
return;
|
|
3388
3388
|
}
|
|
3389
|
-
if (_optionalChain([options, 'access', _223 => _223.agent, 'optionalAccess', _224 => _224.manifest]) !== false &&
|
|
3389
|
+
if (_optionalChain([options, 'access', _223 => _223.agent, 'optionalAccess', _224 => _224.manifest]) !== false && _chunk5KISFWD2cjs.isFarmAppManifestPath.call(void 0, _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath))) {
|
|
3390
3390
|
const manifestGuardCoversPath = (path7) => _chunk6ZFGWB75cjs.farmPathGuardCoversEndpoint.call(void 0,
|
|
3391
3391
|
{
|
|
3392
3392
|
config: farmConfig,
|
|
@@ -3396,18 +3396,18 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3396
3396
|
apiServerBasePath
|
|
3397
3397
|
);
|
|
3398
3398
|
await serveBuiltInRoute(async () => {
|
|
3399
|
-
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages =
|
|
3400
|
-
const manifest = await
|
|
3399
|
+
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages = _chunkHVMQAVZKcjs.resolveFarmAppPackages.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd()))))));
|
|
3400
|
+
const manifest = await _chunk5KISFWD2cjs.createFarmAppManifestResponse.call(void 0,
|
|
3401
3401
|
new Request(parsedRequestUrl, {
|
|
3402
3402
|
method: requestMethod,
|
|
3403
3403
|
headers: { "if-none-match": String(_nullishCoalesce(req.headers["if-none-match"], () => ( ""))) }
|
|
3404
3404
|
}),
|
|
3405
3405
|
{
|
|
3406
|
-
...
|
|
3406
|
+
..._chunk5KISFWD2cjs.resolveFarmAppManifestInput.call(void 0, farmConfig, {
|
|
3407
3407
|
build: "development",
|
|
3408
3408
|
packages: farmAppPackages,
|
|
3409
3409
|
// Read again on each request; unchanged files come from a cache.
|
|
3410
|
-
webmcpTools: _optionalChain([farmConfig, 'access', _225 => _225.plugins, 'optionalAccess', _226 => _226.some, 'call', _227 => _227(({ name }) => name === "farm:webmcp")]) ?
|
|
3410
|
+
webmcpTools: _optionalChain([farmConfig, 'access', _225 => _225.plugins, 'optionalAccess', _226 => _226.some, 'call', _227 => _227(({ name }) => name === "farm:webmcp")]) ? _chunkHVMQAVZKcjs.collectFarmWebMCPTools.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd())), farmConfig.srcDir) : []
|
|
3411
3411
|
}),
|
|
3412
3412
|
defaultMCP: () => farmApp.getServerRenderer().getDefaultMCPServer(),
|
|
3413
3413
|
// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -3425,11 +3425,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3425
3425
|
});
|
|
3426
3426
|
return;
|
|
3427
3427
|
}
|
|
3428
|
-
if (_optionalChain([options, 'access', _228 => _228.agent, 'optionalAccess', _229 => _229.apiCatalog]) && _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) ===
|
|
3428
|
+
if (_optionalChain([options, 'access', _228 => _228.agent, 'optionalAccess', _229 => _229.apiCatalog]) && _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) === _chunk5KISFWD2cjs.FARM_API_CATALOG_PATH) {
|
|
3429
3429
|
await serveBuiltInRoute(
|
|
3430
|
-
() =>
|
|
3430
|
+
() => _chunk5KISFWD2cjs.createFarmApiCatalogResponse.call(void 0,
|
|
3431
3431
|
requestMethod,
|
|
3432
|
-
|
|
3432
|
+
_chunk5KISFWD2cjs.resolveFarmApiCatalogInput.call(void 0, { ...options, api: farmConfig.api }),
|
|
3433
3433
|
new Request(parsedRequestUrl, {
|
|
3434
3434
|
headers: { "user-agent": String(_nullishCoalesce(req.headers["user-agent"], () => ( ""))) }
|
|
3435
3435
|
})
|
|
@@ -3438,7 +3438,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3438
3438
|
return;
|
|
3439
3439
|
}
|
|
3440
3440
|
if (_optionalChain([options, 'access', _230 => _230.agent, 'optionalAccess', _231 => _231.aiCatalog]) !== false) {
|
|
3441
|
-
const aiCatalog =
|
|
3441
|
+
const aiCatalog = _chunk5KISFWD2cjs.createFarmAiCatalogResponse.call(void 0,
|
|
3442
3442
|
new Request(parsedRequestUrl, {
|
|
3443
3443
|
method: requestMethod,
|
|
3444
3444
|
headers: {
|
|
@@ -3520,7 +3520,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3520
3520
|
{
|
|
3521
3521
|
kind: "docs",
|
|
3522
3522
|
computed: docsResponse,
|
|
3523
|
-
label:
|
|
3523
|
+
label: _chunk5KISFWD2cjs.resolveFarmDocsEngineRouteLabel.call(void 0,
|
|
3524
3524
|
_chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath),
|
|
3525
3525
|
{
|
|
3526
3526
|
path: _optionalChain([farmConfig, 'access', _242 => _242.docs, 'optionalAccess', _243 => _243.entry]) || "/docs",
|
|
@@ -3534,7 +3534,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3534
3534
|
}
|
|
3535
3535
|
}
|
|
3536
3536
|
if (options.mobileClient && !viteModuleRequest && (requestMethod === "GET" || requestMethod === "HEAD" || requestMethod === "POST") && _optionalChain([req, 'access', _248 => _248.headers, 'access', _249 => _249.accept, 'optionalAccess', _250 => _250.includes, 'call', _251 => _251(_chunk3HLQTOVUcjs.FARM_NATIVE_TREE_CONTENT_TYPE)])) {
|
|
3537
|
-
const { createFarmNativeTreeResponse } = await import("./native-tree-
|
|
3537
|
+
const { createFarmNativeTreeResponse } = await import("./native-tree-MNUFN5G6.cjs");
|
|
3538
3538
|
const treeBodyInit = requestMethod === "POST" ? { body: _chunk7Q7UB4TLcjs.createFarmNodeRequestBodyStream.call(void 0, req), duplex: "half" } : {};
|
|
3539
3539
|
const treeResponse = await createFarmNativeTreeResponse({
|
|
3540
3540
|
request: new Request(fullUrl, {
|
|
@@ -3557,7 +3557,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3557
3557
|
}
|
|
3558
3558
|
const markdownRouteLabel = () => (
|
|
3559
3559
|
// On the route path, as production labels it: /fr/index.md is /index.md.
|
|
3560
|
-
|
|
3560
|
+
_chunk5KISFWD2cjs.resolveFarmMarkdownRouteLabel.call(void 0,
|
|
3561
3561
|
toRoutePathname(requestPathname),
|
|
3562
3562
|
(page) => _optionalChain([farmApp, 'access', _258 => _258.getRouteManager, 'call', _259 => _259(), 'access', _260 => _260.matchRoute, 'call', _261 => _261(page), 'access', _262 => _262.route, 'optionalAccess', _263 => _263.pattern])
|
|
3563
3563
|
)
|
|
@@ -3578,7 +3578,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3578
3578
|
return {
|
|
3579
3579
|
source: await fs2.promises.readFile(sourcePath, "utf8"),
|
|
3580
3580
|
// Project-relative, as production sends it: never the machine's path.
|
|
3581
|
-
filePath:
|
|
3581
|
+
filePath: _chunkHVMQAVZKcjs.toBakedMarkdownSourcePath.call(void 0, farmApp.getConfig().root, sourcePath)
|
|
3582
3582
|
};
|
|
3583
3583
|
},
|
|
3584
3584
|
// The anonymous check goes through this server, so its guards and
|
|
@@ -3713,7 +3713,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3713
3713
|
}
|
|
3714
3714
|
const configuredIntegrations = currentConfig.integrations;
|
|
3715
3715
|
const tryConfiguredIntegrationRoute = async () => {
|
|
3716
|
-
const matchedRoute =
|
|
3716
|
+
const matchedRoute = _chunkAOTD2N5Pcjs.matchIntegrationRoute.call(void 0, configuredIntegrations, {
|
|
3717
3717
|
pathname: requestPathname,
|
|
3718
3718
|
method: requestMethod
|
|
3719
3719
|
});
|
|
@@ -3727,7 +3727,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3727
3727
|
await pm.runHookParallelFiltered(
|
|
3728
3728
|
"beforeRequest",
|
|
3729
3729
|
(plugin2) => {
|
|
3730
|
-
const owner =
|
|
3730
|
+
const owner = _chunkAOTD2N5Pcjs.getFarmIntegrationPluginOwner.call(void 0, plugin2);
|
|
3731
3731
|
return !isFarmConfigRoutePlugin(plugin2) && (_optionalChain([owner, 'optionalAccess', _266 => _266.source]) !== "lifecycle" || owner.key !== matchedRoute.key);
|
|
3732
3732
|
},
|
|
3733
3733
|
req,
|
|
@@ -3757,7 +3757,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3757
3757
|
});
|
|
3758
3758
|
const dispatchIntegration = async (request, runtime) => {
|
|
3759
3759
|
try {
|
|
3760
|
-
const result = await
|
|
3760
|
+
const result = await _chunkAOTD2N5Pcjs.dispatchIntegrationRequest.call(void 0,
|
|
3761
3761
|
{
|
|
3762
3762
|
integration: matchedRoute.integration,
|
|
3763
3763
|
config: currentConfig,
|
|
@@ -3824,7 +3824,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3824
3824
|
const hasLocalDevRoute = () => {
|
|
3825
3825
|
const routeManager3 = farmApp.getRouteManager();
|
|
3826
3826
|
return Boolean(
|
|
3827
|
-
|
|
3827
|
+
_chunkAOTD2N5Pcjs.matchIntegrationRoute.call(void 0, configuredIntegrations, {
|
|
3828
3828
|
pathname: requestPathname,
|
|
3829
3829
|
method: requestMethod
|
|
3830
3830
|
}) || routeManager3.matchRedirect(requestPathname) || apiRouteManager.matchRoute(requestPathname) || farmDocsAPIHandler && _optionalChain([farmDocsDevRuntime, 'optionalAccess', _271 => _271.isFarmDocsAPIRequest, 'call', _272 => _272(requestPathname)]) || routeManager3.matchRoute(requestPathname).route || routeManager3.matchMetadataRoute(requestPathname) || routeManager3.matchMetadataImage(requestPathname)
|
|
@@ -3921,9 +3921,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3921
3921
|
);
|
|
3922
3922
|
const docsRuntimeOptions = () => ({
|
|
3923
3923
|
kind: "docs",
|
|
3924
|
-
route:
|
|
3924
|
+
route: _chunk5KISFWD2cjs.setFarmRouteLabel.call(void 0,
|
|
3925
3925
|
{ pathname: pathname2, pattern: urlPath2 },
|
|
3926
|
-
|
|
3926
|
+
_chunk5KISFWD2cjs.resolveFarmDocsRouteLabel.call(void 0, pathname2, {
|
|
3927
3927
|
path: _optionalChain([farmConfig, 'access', _275 => _275.docs, 'optionalAccess', _276 => _276.entry]) || "/docs",
|
|
3928
3928
|
roots: _optionalChain([farmConfig, 'access', _277 => _277.docs, 'optionalAccess', _278 => _278.roots, 'optionalAccess', _279 => _279.map, 'call', _280 => _280((root) => root.entry)])
|
|
3929
3929
|
})
|
|
@@ -4277,7 +4277,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4277
4277
|
);
|
|
4278
4278
|
const loadingModule = loadingBoundary ? await routeManager3.loadRouteModule(loadingBoundary.modulePath) : null;
|
|
4279
4279
|
const navigationManifest = routeManager3.generateClientManifest(server.config.root);
|
|
4280
|
-
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => (
|
|
4280
|
+
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => ( _chunkODYKCC6Wcjs.getClientModuleMetadata.call(void 0, route.modulePath, server.config.root)));
|
|
4281
4281
|
const isClientComponent = moduleMetadata.isClientComponent;
|
|
4282
4282
|
const shouldHydrate = moduleMetadata.shouldHydrate;
|
|
4283
4283
|
let mergedMetadata = {};
|
|
@@ -4288,7 +4288,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4288
4288
|
(layout) => _nullishCoalesce(navigationManifest.layouts.find(
|
|
4289
4289
|
(entry) => entry.pattern === layout.pattern
|
|
4290
4290
|
), () => ( {
|
|
4291
|
-
...
|
|
4291
|
+
..._chunkODYKCC6Wcjs.getClientModuleMetadata.call(void 0, layout.modulePath, server.config.root),
|
|
4292
4292
|
serverTree: false
|
|
4293
4293
|
}))
|
|
4294
4294
|
);
|
|
@@ -4303,7 +4303,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4303
4303
|
];
|
|
4304
4304
|
const hydrationIslandStrategy = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0,
|
|
4305
4305
|
_optionalChain([(_nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _303 => _303.getConfig, 'call', _304 => _304()]), () => ( options))), 'access', _305 => _305.experimental, 'optionalAccess', _306 => _306.serverComponents])
|
|
4306
|
-
) === "islands" ?
|
|
4306
|
+
) === "islands" ? _chunkHVMQAVZKcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
4307
4307
|
route,
|
|
4308
4308
|
{ shouldHydrate, islandStrategy: _nullishCoalesce(moduleMetadata.islandStrategy, () => ( null)) },
|
|
4309
4309
|
layouts.map((layout, index) => ({
|
|
@@ -4369,7 +4369,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4369
4369
|
const slotModule = await routeManager3.loadRouteModule(slot.route.modulePath);
|
|
4370
4370
|
const slotMetadata = _nullishCoalesce(navigationManifest.slots.find(
|
|
4371
4371
|
(entry) => entry.name === slot.name && entry.ownerPattern === slot.ownerPattern && entry.pattern === slot.route.pattern
|
|
4372
|
-
), () => (
|
|
4372
|
+
), () => ( _chunkODYKCC6Wcjs.getClientModuleMetadata.call(void 0, slot.route.modulePath, server.config.root)));
|
|
4373
4373
|
const slotContext = await _chunkX333W5KVcjs.resolveFarmRouteContext.call(void 0, farmApp.getConfig(), {
|
|
4374
4374
|
request: targetRequest,
|
|
4375
4375
|
params: slot.params,
|
|
@@ -4419,7 +4419,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4419
4419
|
pageShouldHydrate: shouldHydrate,
|
|
4420
4420
|
layoutShouldHydrate: shouldHydrateLayout,
|
|
4421
4421
|
islandStrategy: hydrationIslandStrategy,
|
|
4422
|
-
rendering:
|
|
4422
|
+
rendering: _chunkBZJYPIFZcjs.resolveRouteRenderingConfig.call(void 0, routeModule)
|
|
4423
4423
|
});
|
|
4424
4424
|
const destinationLayoutPatterns = layouts.map((layout) => layout.pattern);
|
|
4425
4425
|
const layoutStartIndex = _chunk6ZFGWB75cjs.getSharedLayoutPrefixLength.call(void 0,
|
|
@@ -4554,7 +4554,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4554
4554
|
const hasRuntimeAfterHook = _nullishCoalesce(_optionalChain([pm, 'optionalAccess', _324 => _324.hasRuntimeHook, 'call', _325 => _325("after")]), () => ( false));
|
|
4555
4555
|
const pageBuiltInRouteLabel = (pathname2) => {
|
|
4556
4556
|
const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, pathname2, farmConfig.basePath);
|
|
4557
|
-
const mcpLabel =
|
|
4557
|
+
const mcpLabel = _chunk5KISFWD2cjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath);
|
|
4558
4558
|
if (mcpLabel) return mcpLabel;
|
|
4559
4559
|
if (farmAgentGeneratedPaths(farmConfig).includes(routePathname)) return routePathname;
|
|
4560
4560
|
return routePathname === _chunkYRXPDKMMcjs.FARM_DEFAULT_MCP_PATH && farmApp.getServerRenderer().getDefaultMCPServer() ? _chunkYRXPDKMMcjs.FARM_DEFAULT_MCP_PATH : null;
|
|
@@ -4563,7 +4563,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4563
4563
|
const match = routeManager2.matchRoute(pathname2);
|
|
4564
4564
|
return {
|
|
4565
4565
|
kind: "page",
|
|
4566
|
-
route:
|
|
4566
|
+
route: _chunk5KISFWD2cjs.setFarmRouteLabel.call(void 0,
|
|
4567
4567
|
{
|
|
4568
4568
|
pathname: pathname2,
|
|
4569
4569
|
pattern: _optionalChain([match, 'optionalAccess', _326 => _326.route, 'optionalAccess', _327 => _327.pattern]) || null,
|
|
@@ -4828,8 +4828,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4828
4828
|
) : EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME;
|
|
4829
4829
|
const generatedDevtoolsClientRuntime = devtoolsClientRuntime ? devtoolsClientRuntime.generateFarmDevtoolsClientRuntime(devtools) : "";
|
|
4830
4830
|
const generatedDevIndicatorsClientRuntime = farmApp ? _chunkUVV3I5QAcjs.generateFarmDevIndicatorsClientRuntime.call(void 0, farmApp.getConfig().devIndicators) : "";
|
|
4831
|
-
const integrationProviders = _chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) ?
|
|
4832
|
-
const isolatedHydrationMode =
|
|
4831
|
+
const integrationProviders = _chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) ? _chunkAOTD2N5Pcjs.getIntegrationProviders.call(void 0, integrations) : [];
|
|
4832
|
+
const isolatedHydrationMode = _chunkODYKCC6Wcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
4833
4833
|
_optionalChain([resolvedConfig, 'optionalAccess', _372 => _372.experimental, 'optionalAccess', _373 => _373.isolatedClientHydration]),
|
|
4834
4834
|
{
|
|
4835
4835
|
serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _374 => _374.experimental, 'optionalAccess', _375 => _375.serverComponents])) === "rsc",
|
|
@@ -4839,7 +4839,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4839
4839
|
return generateClientCode(
|
|
4840
4840
|
integrationProviders,
|
|
4841
4841
|
[
|
|
4842
|
-
...
|
|
4842
|
+
..._chunkAOTD2N5Pcjs.getIntegrationDocumentNavigationMatchers.call(void 0, integrations),
|
|
4843
4843
|
..._nullishCoalesce(_optionalChain([docsRuntime, 'optionalAccess', _376 => _376.getFarmDocsDocumentNavigationMatchers, 'call', _377 => _377(docs)]), () => ( []))
|
|
4844
4844
|
],
|
|
4845
4845
|
generatedDocsSearchRuntime,
|
|
@@ -4854,8 +4854,8 @@ ${generatedDevIndicatorsClientRuntime}`,
|
|
|
4854
4854
|
isolatedHydrationMode === "enabled" || _chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) && _optionalChain([(_nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _383 => _383.getRouteManager, 'call', _384 => _384(), 'access', _385 => _385.getIsolatedClientBoundaryModules, 'call', _386 => _386(root)])))), 'optionalAccess', _387 => _387.size]) > 0,
|
|
4855
4855
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _388 => _388.trailingSlash]), () => ( false)),
|
|
4856
4856
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _389 => _389.basePath]), () => ( "/")),
|
|
4857
|
-
|
|
4858
|
-
|
|
4857
|
+
_chunkHVMQAVZKcjs.generateClientCachePersistenceCode.call(void 0,
|
|
4858
|
+
_chunkHVMQAVZKcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, _optionalChain([resolvedConfig, 'optionalAccess', _390 => _390.cache]))
|
|
4859
4859
|
),
|
|
4860
4860
|
_chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, docs) : void 0,
|
|
4861
4861
|
_chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _391 => _391.experimental, 'optionalAccess', _392 => _392.serverComponents])) === "islands"
|
|
@@ -4877,11 +4877,11 @@ export const getManifest = () => ({
|
|
|
4877
4877
|
});
|
|
4878
4878
|
`;
|
|
4879
4879
|
}
|
|
4880
|
-
const globalStylesheetHref =
|
|
4880
|
+
const globalStylesheetHref = _chunkHVMQAVZKcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
4881
4881
|
server.config.root,
|
|
4882
4882
|
_optionalChain([farmApp, 'optionalAccess', _395 => _395.getConfig, 'call', _396 => _396(), 'access', _397 => _397.srcDir])
|
|
4883
4883
|
);
|
|
4884
|
-
const fullManifest =
|
|
4884
|
+
const fullManifest = _chunkHVMQAVZKcjs.createFarmDevClientManifest.call(void 0,
|
|
4885
4885
|
routeManager.generateClientManifest(server.config.root),
|
|
4886
4886
|
{
|
|
4887
4887
|
sharedAssets: globalStylesheetHref ? [{ tag: "link", attrs: { rel: "stylesheet", href: globalStylesheetHref } }] : []
|
|
@@ -4903,45 +4903,45 @@ export { manifest };
|
|
|
4903
4903
|
const runtimeModule = !isBuild && _optionalChain([transformOptions, 'optionalAccess', _399 => _399.ssr]) === true && isOutsideAppRoot(id) ? toFarmRuntimeModuleId : void 0;
|
|
4904
4904
|
const actionConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _400 => _400.getConfig, 'call', _401 => _401()]), () => ( options));
|
|
4905
4905
|
let rewrotePackageImports = false;
|
|
4906
|
-
if (_chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([actionConfig, 'access', _402 => _402.experimental, 'optionalAccess', _403 => _403.serverComponents])) === "islands" && (!id.includes("/node_modules/") || _optionalChain([transformOptions, 'optionalAccess', _404 => _404.ssr]) === true && farmReactServerFiles.has(id.split("?", 1)[0])) && !id.startsWith("\0") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id) && !
|
|
4906
|
+
if (_chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([actionConfig, 'access', _402 => _402.experimental, 'optionalAccess', _403 => _403.serverComponents])) === "islands" && (!id.includes("/node_modules/") || _optionalChain([transformOptions, 'optionalAccess', _404 => _404.ssr]) === true && farmReactServerFiles.has(id.split("?", 1)[0])) && !id.startsWith("\0") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id) && !_chunkODYKCC6Wcjs.hasUseClientDirective.call(void 0, code)) {
|
|
4907
4907
|
const file = id.split("?", 1)[0];
|
|
4908
4908
|
const projectRoot = actionConfig.root || _optionalChain([server, 'optionalAccess', _405 => _405.config, 'access', _406 => _406.root]) || process.cwd();
|
|
4909
4909
|
const buildSnapshot = isBuild ? options.sourceSnapshot : void 0;
|
|
4910
4910
|
const rewrite = () => {
|
|
4911
4911
|
if (_optionalChain([transformOptions, 'optionalAccess', _407 => _407.ssr]) === true) {
|
|
4912
4912
|
if (farmReactServerFiles.has(file)) {
|
|
4913
|
-
for (const child of
|
|
4913
|
+
for (const child of _chunkODYKCC6Wcjs.farmRelativeImportFiles.call(void 0, code, file))
|
|
4914
4914
|
farmReactServerFiles.add(child);
|
|
4915
4915
|
}
|
|
4916
|
-
const serverModule = farmReactServerFiles.has(file) || !
|
|
4916
|
+
const serverModule = farmReactServerFiles.has(file) || !_chunkODYKCC6Wcjs.getFarmClientReachableModules.call(void 0,
|
|
4917
4917
|
path6.resolve(projectRoot, actionConfig.srcDir || "src"),
|
|
4918
4918
|
projectRoot
|
|
4919
4919
|
).has(path6.resolve(file));
|
|
4920
|
-
const reactServer = !serverModule ? null :
|
|
4920
|
+
const reactServer = !serverModule ? null : _chunkODYKCC6Wcjs.rewriteFarmReactServerImports.call(void 0, {
|
|
4921
4921
|
code,
|
|
4922
4922
|
file,
|
|
4923
|
-
reference: (specifier, exportName) =>
|
|
4923
|
+
reference: (specifier, exportName) => _chunkODYKCC6Wcjs.ensureFarmPackageClientReference.call(void 0, projectRoot, specifier, exportName, file),
|
|
4924
4924
|
onServerFile: (serverFile) => farmReactServerFiles.add(serverFile)
|
|
4925
4925
|
});
|
|
4926
4926
|
if (reactServer !== null) {
|
|
4927
4927
|
code = reactServer;
|
|
4928
4928
|
rewrotePackageImports = true;
|
|
4929
4929
|
}
|
|
4930
|
-
const internal = farmReactServerFiles.has(file) ?
|
|
4930
|
+
const internal = farmReactServerFiles.has(file) ? _chunkODYKCC6Wcjs.rewriteFarmReactServerClientModuleImports.call(void 0, {
|
|
4931
4931
|
code,
|
|
4932
4932
|
file,
|
|
4933
|
-
reference: (clientFile) =>
|
|
4933
|
+
reference: (clientFile) => _chunkODYKCC6Wcjs.ensureFarmInternalClientReference.call(void 0, projectRoot, clientFile)
|
|
4934
4934
|
}) : null;
|
|
4935
4935
|
if (internal !== null) {
|
|
4936
4936
|
code = internal;
|
|
4937
4937
|
rewrotePackageImports = true;
|
|
4938
4938
|
}
|
|
4939
4939
|
}
|
|
4940
|
-
const rewritePackageImports = (source2) =>
|
|
4940
|
+
const rewritePackageImports = (source2) => _chunkODYKCC6Wcjs.rewriteFarmPackageClientImports.call(void 0, {
|
|
4941
4941
|
code: source2,
|
|
4942
4942
|
file,
|
|
4943
4943
|
root: projectRoot,
|
|
4944
|
-
isClientPackage: (specifier) =>
|
|
4944
|
+
isClientPackage: (specifier) => _chunkODYKCC6Wcjs.isFarmPackageClientBoundary.call(void 0, file, specifier, projectRoot)
|
|
4945
4945
|
});
|
|
4946
4946
|
const routeManager = _optionalChain([farmApp, 'optionalAccess', _408 => _408.getRouteManager, 'call', _409 => _409()]);
|
|
4947
4947
|
const source = code;
|
|
@@ -4962,7 +4962,7 @@ export { manifest };
|
|
|
4962
4962
|
}
|
|
4963
4963
|
}
|
|
4964
4964
|
};
|
|
4965
|
-
if (buildSnapshot)
|
|
4965
|
+
if (buildSnapshot) _chunkODYKCC6Wcjs.withFarmSourceSnapshotOf.call(void 0, buildSnapshot, rewrite);
|
|
4966
4966
|
else rewrite();
|
|
4967
4967
|
}
|
|
4968
4968
|
if (islandsServerFns() && !_chunkPIUTGRDIcjs.isFarmServerFnBoundaryId.call(void 0, id) && !id.includes("/node_modules/") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id)) {
|
|
@@ -4989,8 +4989,8 @@ export { manifest };
|
|
|
4989
4989
|
}
|
|
4990
4990
|
if (!_optionalChain([transformOptions, 'optionalAccess', _418 => _418.ssr])) {
|
|
4991
4991
|
const docsConfigModule = _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, _optionalChain([farmApp, 'optionalAccess', _419 => _419.getConfig, 'call', _420 => _420(), 'optionalAccess', _421 => _421.docs]));
|
|
4992
|
-
if (
|
|
4993
|
-
const redacted =
|
|
4992
|
+
if (_chunkHVMQAVZKcjs.isFarmDocsClientConfigModule.call(void 0, id, docsConfigModule)) {
|
|
4993
|
+
const redacted = _chunkHVMQAVZKcjs.redactFarmDocsClientConfig.call(void 0, code, id.split("?")[0]);
|
|
4994
4994
|
if (redacted !== null) return { code: redacted, map: null };
|
|
4995
4995
|
}
|
|
4996
4996
|
}
|
|
@@ -4999,9 +4999,9 @@ export { manifest };
|
|
|
4999
4999
|
if ((_optionalChain([currentConfig, 'access', _425 => _425.experimental, 'optionalAccess', _426 => _426.serverActions]) !== true || !serverFnTransformActive) && !islandsServerFns()) {
|
|
5000
5000
|
const violation = findClientServerFnViolation(code, id);
|
|
5001
5001
|
if (violation) {
|
|
5002
|
-
const locate =
|
|
5002
|
+
const locate = _chunkODYKCC6Wcjs.createFarmSourceLocator.call(void 0, code, () => this.getCombinedSourcemap());
|
|
5003
5003
|
this.error(
|
|
5004
|
-
|
|
5004
|
+
_chunkODYKCC6Wcjs.formatFarmDiagnostic.call(void 0,
|
|
5005
5005
|
createServerFnBoundaryDiagnostic(violation, id, locate(violation.start)),
|
|
5006
5006
|
currentConfig.root
|
|
5007
5007
|
)
|
|
@@ -5043,13 +5043,13 @@ export { manifest };
|
|
|
5043
5043
|
transformed = true;
|
|
5044
5044
|
}
|
|
5045
5045
|
}
|
|
5046
|
-
if (
|
|
5046
|
+
if (_chunkODYKCC6Wcjs.hasUseClientDirective.call(void 0, transformedCode)) {
|
|
5047
5047
|
const clientBoundarySource = transformedCode;
|
|
5048
5048
|
const moduleInfo = this.getModuleInfo(id);
|
|
5049
5049
|
if (moduleInfo) {
|
|
5050
5050
|
moduleInfo.isClientComponent = true;
|
|
5051
5051
|
}
|
|
5052
|
-
transformedCode =
|
|
5052
|
+
transformedCode = _chunkODYKCC6Wcjs.stripUseClientDirective.call(void 0, transformedCode);
|
|
5053
5053
|
transformed = true;
|
|
5054
5054
|
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _434 => _434.getConfig, 'call', _435 => _435()]), () => ( options));
|
|
5055
5055
|
let isolatedModuleReference = null;
|
|
@@ -5057,12 +5057,12 @@ export { manifest };
|
|
|
5057
5057
|
const cleanId = id.split("?", 1)[0];
|
|
5058
5058
|
const selectedIsolatedModules = _nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _438 => _438.getRouteManager, 'call', _439 => _439(), 'access', _440 => _440.getIsolatedClientBoundaryModules, 'call', _441 => _441(root)])));
|
|
5059
5059
|
const selectedForIsolatedHydration = _optionalChain([selectedIsolatedModules, 'optionalAccess', _442 => _442.has, 'call', _443 => _443(path6.resolve(cleanId))]) === true;
|
|
5060
|
-
if (_chunk67MZTLTFcjs.isReactRenderer.call(void 0, _chunk67MZTLTFcjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (
|
|
5061
|
-
cleanId.replace(/\\/g, "/").includes(
|
|
5060
|
+
if (_chunk67MZTLTFcjs.isReactRenderer.call(void 0, _chunk67MZTLTFcjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (_chunkODYKCC6Wcjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource) || // A generated client reference, whose marker comment compiled TSX no longer has.
|
|
5061
|
+
cleanId.replace(/\\/g, "/").includes(_chunkODYKCC6Wcjs.FARM_CLIENT_REFERENCE_DIRECTORY))) {
|
|
5062
5062
|
isolatedModuleReference = _chunkGC5ROI3Acjs.toViteModuleId.call(void 0, cleanId, root);
|
|
5063
5063
|
const islandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([currentConfig, 'access', _444 => _444.experimental, 'optionalAccess', _445 => _445.serverComponents])) === "islands";
|
|
5064
|
-
const explicitStrategy =
|
|
5065
|
-
const inference = islandsMode && explicitStrategy === null ?
|
|
5064
|
+
const explicitStrategy = _chunkODYKCC6Wcjs.getIslandStrategyExport.call(void 0, clientBoundarySource);
|
|
5065
|
+
const inference = islandsMode && explicitStrategy === null ? _chunkHVMQAVZKcjs.inferFarmIslandStrategy.call(void 0, cleanId, root) : null;
|
|
5066
5066
|
if (inference) {
|
|
5067
5067
|
for (const file of inference.files) {
|
|
5068
5068
|
if (file !== path6.resolve(cleanId)) this.addWatchFile(file);
|
|
@@ -5249,10 +5249,10 @@ if (import.meta.hot) {
|
|
|
5249
5249
|
if (!watched.includes("/node_modules/") && !isFarmGeneratedOutput(watched)) {
|
|
5250
5250
|
_optionalChain([farmApp, 'optionalAccess', _453 => _453.getRouteManager, 'call', _454 => _454(), 'access', _455 => _455.noteSourceChange, 'call', _456 => _456(id, change.event)]);
|
|
5251
5251
|
}
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5252
|
+
_chunkODYKCC6Wcjs.invalidateFarmClientReachableModules.call(void 0, );
|
|
5253
|
+
_chunkODYKCC6Wcjs.invalidateFarmClientOnlyScan.call(void 0, );
|
|
5254
|
+
_chunkHVMQAVZKcjs.invalidateFarmRouteRootInferences.call(void 0, );
|
|
5255
|
+
_chunkODYKCC6Wcjs.dropLatestPackageClientBoundaryCache.call(void 0, );
|
|
5256
5256
|
},
|
|
5257
5257
|
async handleHotUpdate(ctx) {
|
|
5258
5258
|
if (pendingClientSetup && !farmSetupContext.getStore()) await pendingClientSetup;
|
|
@@ -5285,10 +5285,10 @@ if (import.meta.hot) {
|
|
|
5285
5285
|
}
|
|
5286
5286
|
server2.ws.send({ type: "full-reload", path: "*" });
|
|
5287
5287
|
};
|
|
5288
|
-
if (normalizedFile.includes(
|
|
5288
|
+
if (normalizedFile.includes(_chunkODYKCC6Wcjs.FARM_CLIENT_REFERENCE_DIRECTORY) && normalizedFile.startsWith(
|
|
5289
5289
|
path6.posix.join(
|
|
5290
5290
|
_chunkGC5ROI3Acjs.toPosixPath.call(void 0, _optionalChain([currentFarmConfig, 'optionalAccess', _459 => _459.root]) || options.root || server2.config.root),
|
|
5291
|
-
|
|
5291
|
+
_chunkODYKCC6Wcjs.FARM_CLIENT_REFERENCE_DIRECTORY
|
|
5292
5292
|
)
|
|
5293
5293
|
))
|
|
5294
5294
|
return modules;
|
|
@@ -5330,7 +5330,8 @@ if (import.meta.hot) {
|
|
|
5330
5330
|
let clientPlanCurrent = false;
|
|
5331
5331
|
if (isHydrationPlanSource && (isolatedHydrationMode === "enabled" || isolatedHydrationMode === "analyze" || tracksAsyncOwnerIslands)) {
|
|
5332
5332
|
const routeManager = planRouteManager;
|
|
5333
|
-
|
|
5333
|
+
await _optionalChain([ctx, 'access', _469 => _469.read, 'optionalCall', _470 => _470()]);
|
|
5334
|
+
if (_optionalChain([routeManager, 'optionalAccess', _471 => _471.isEditPlanNeutral, 'call', _472 => _472(file)])) {
|
|
5334
5335
|
clientPlanCurrent = true;
|
|
5335
5336
|
} else if (routeManager) {
|
|
5336
5337
|
routeManager.noteSourceChange(file, "update");
|
|
@@ -5391,7 +5392,7 @@ if (import.meta.hot) {
|
|
|
5391
5392
|
}
|
|
5392
5393
|
return [];
|
|
5393
5394
|
}
|
|
5394
|
-
if (!clientPlanCurrent) _optionalChain([farmApp, 'optionalAccess',
|
|
5395
|
+
if (!clientPlanCurrent) _optionalChain([farmApp, 'optionalAccess', _473 => _473.getRouteManager, 'call', _474 => _474(), 'access', _475 => _475.invalidateClientManifest, 'call', _476 => _476()]);
|
|
5395
5396
|
const manifestModule = server2.moduleGraph.getModuleById("/@farm/manifest");
|
|
5396
5397
|
if (manifestModule) {
|
|
5397
5398
|
server2.moduleGraph.invalidateModule(manifestModule);
|
|
@@ -5406,7 +5407,7 @@ if (import.meta.hot) {
|
|
|
5406
5407
|
return [];
|
|
5407
5408
|
}
|
|
5408
5409
|
}
|
|
5409
|
-
if (/\.[cm]?[jt]sx?$/.test(normalizedFile) && !_optionalChain([server2, 'access',
|
|
5410
|
+
if (/\.[cm]?[jt]sx?$/.test(normalizedFile) && !_optionalChain([server2, 'access', _477 => _477.environments, 'access', _478 => _478.client, 'optionalAccess', _479 => _479.moduleGraph, 'access', _480 => _480.getModulesByFile, 'call', _481 => _481(normalizedFile), 'optionalAccess', _482 => _482.size]) && _chunk25JGHAGHcjs.invalidateFarmDevDependents.call(void 0, server2, file, getFarmRenderedServerModules()).length > 0) {
|
|
5410
5411
|
logUpdate("PAGE", `updated ${path6.basename(file)}`);
|
|
5411
5412
|
reloadAfterEdit();
|
|
5412
5413
|
return [];
|
|
@@ -5504,7 +5505,7 @@ function createPageDataMiddlewareResponse(res) {
|
|
|
5504
5505
|
return (...args) => {
|
|
5505
5506
|
if (captures(target.statusCode, target.getHeader("location"))) {
|
|
5506
5507
|
const callback = args.find((arg) => typeof arg === "function");
|
|
5507
|
-
_optionalChain([callback, 'optionalCall',
|
|
5508
|
+
_optionalChain([callback, 'optionalCall', _483 => _483()]);
|
|
5508
5509
|
return property === "write" ? true : response;
|
|
5509
5510
|
}
|
|
5510
5511
|
return target[property](...args);
|
|
@@ -5568,12 +5569,12 @@ function isFarmClientVirtualId(id) {
|
|
|
5568
5569
|
}
|
|
5569
5570
|
function isClientEnvironment(context, loadOptions) {
|
|
5570
5571
|
const environment = context.environment;
|
|
5571
|
-
if (_optionalChain([environment, 'optionalAccess',
|
|
5572
|
-
if (_optionalChain([environment, 'optionalAccess',
|
|
5573
|
-
return _optionalChain([loadOptions, 'optionalAccess',
|
|
5572
|
+
if (_optionalChain([environment, 'optionalAccess', _484 => _484.config, 'optionalAccess', _485 => _485.consumer])) return environment.config.consumer === "client";
|
|
5573
|
+
if (_optionalChain([environment, 'optionalAccess', _486 => _486.name])) return environment.name === "client";
|
|
5574
|
+
return _optionalChain([loadOptions, 'optionalAccess', _487 => _487.ssr]) !== true;
|
|
5574
5575
|
}
|
|
5575
5576
|
function invalidateProgrammaticClientRouteModules(server) {
|
|
5576
|
-
const graph = _optionalChain([server, 'access',
|
|
5577
|
+
const graph = _optionalChain([server, 'access', _488 => _488.environments, 'optionalAccess', _489 => _489.client, 'optionalAccess', _490 => _490.moduleGraph]);
|
|
5577
5578
|
if (!graph) return;
|
|
5578
5579
|
for (const [id, module] of graph.idToModuleMap) {
|
|
5579
5580
|
if (_chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, id)) graph.invalidateModule(module);
|
|
@@ -5583,19 +5584,19 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
5583
5584
|
const parsed = _chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, moduleId);
|
|
5584
5585
|
const routesFile = resolveRealModuleFile(parsed.filePath, root);
|
|
5585
5586
|
watchFile(routesFile);
|
|
5586
|
-
return
|
|
5587
|
+
return _chunkODYKCC6Wcjs.generateProgrammaticClientRouteModule.call(void 0, {
|
|
5587
5588
|
kind: parsed.kind,
|
|
5588
5589
|
routePath: parsed.routePath,
|
|
5589
5590
|
routesFile,
|
|
5590
|
-
route: parsed.kind === "api" ? void 0 : _optionalChain([clientRoutes, 'optionalAccess',
|
|
5591
|
-
|
|
5591
|
+
route: parsed.kind === "api" ? void 0 : _optionalChain([clientRoutes, 'optionalAccess', _491 => _491.routes, 'access', _492 => _492.get, 'call', _493 => _493(
|
|
5592
|
+
_chunkODYKCC6Wcjs.programmaticClientRouteKey.call(void 0, routesFile, parsed.kind, parsed.routePath)
|
|
5592
5593
|
)]),
|
|
5593
5594
|
rendererServer: renderer.server,
|
|
5594
5595
|
toImportSpecifier: (file) => toProgrammaticRouteImportSpecifier(file, root)
|
|
5595
5596
|
});
|
|
5596
5597
|
}
|
|
5597
5598
|
function resolveRealModuleFile(filePath, root) {
|
|
5598
|
-
const resolved = _nullishCoalesce(
|
|
5599
|
+
const resolved = _nullishCoalesce(_chunkODYKCC6Wcjs.resolveModuleSourcePath.call(void 0, filePath, root), () => ( filePath));
|
|
5599
5600
|
try {
|
|
5600
5601
|
return _chunkGC5ROI3Acjs.toPosixPath.call(void 0, fs2.realpathSync(resolved));
|
|
5601
5602
|
} catch (e28) {
|
|
@@ -5909,12 +5910,12 @@ async function parseRouteModuleProps(routeModule, input) {
|
|
|
5909
5910
|
}
|
|
5910
5911
|
const schemas = routeModule.__farmRouteSchemas;
|
|
5911
5912
|
const params = parseRouteModuleSchema(
|
|
5912
|
-
_optionalChain([schemas, 'optionalAccess',
|
|
5913
|
+
_optionalChain([schemas, 'optionalAccess', _494 => _494.params]),
|
|
5913
5914
|
input.props.params,
|
|
5914
5915
|
"params",
|
|
5915
5916
|
input.routePath
|
|
5916
5917
|
);
|
|
5917
|
-
const search = parseRouteModuleSchema(_optionalChain([schemas, 'optionalAccess',
|
|
5918
|
+
const search = parseRouteModuleSchema(_optionalChain([schemas, 'optionalAccess', _495 => _495.search]), input.search, "search", input.routePath);
|
|
5918
5919
|
return {
|
|
5919
5920
|
...input.props,
|
|
5920
5921
|
params,
|
|
@@ -5934,12 +5935,12 @@ function parseRouteModuleSchema(schema, value, label, routePath) {
|
|
|
5934
5935
|
}
|
|
5935
5936
|
}
|
|
5936
5937
|
function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0, docsAdapterReact, renderer = _chunk67MZTLTFcjs.REACT_RENDERER, isolatedHydrationEnabled = false, trailingSlash = false, basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
|
|
5937
|
-
const providerClientCode =
|
|
5938
|
+
const providerClientCode = _chunkHVMQAVZKcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
5938
5939
|
integrationProviders,
|
|
5939
5940
|
root,
|
|
5940
5941
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
5941
5942
|
);
|
|
5942
|
-
const clientPluginEntry =
|
|
5943
|
+
const clientPluginEntry = _chunkMBD34AS5cjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
5943
5944
|
plugins,
|
|
5944
5945
|
root,
|
|
5945
5946
|
srcDir,
|
|
@@ -5989,7 +5990,7 @@ async function createFarmServerTreePageElement(source, pathname) {
|
|
|
5989
5990
|
return null;
|
|
5990
5991
|
}
|
|
5991
5992
|
}
|
|
5992
|
-
${islandValues ? `${
|
|
5993
|
+
${islandValues ? `${_chunkHVMQAVZKcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
|
|
5993
5994
|
let farmLastRouteState = null;
|
|
5994
5995
|
|
|
5995
5996
|
// A hot update to a layout tree's client module renders the route again.
|
|
@@ -6829,7 +6830,7 @@ async function loadLayoutComponents(layouts = [], params = {}, source) {
|
|
|
6829
6830
|
return loadedLayouts;
|
|
6830
6831
|
}
|
|
6831
6832
|
|
|
6832
|
-
${
|
|
6833
|
+
${_chunkHVMQAVZKcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
6833
6834
|
function wrapWithLoadedLayouts(element, loadedLayouts, params) {
|
|
6834
6835
|
let wrapped = element;
|
|
6835
6836
|
for (let index = loadedLayouts.length - 1; index >= 0; index--) {
|
|
@@ -7127,7 +7128,7 @@ function readActiveLayoutPatterns() {
|
|
|
7127
7128
|
);
|
|
7128
7129
|
}
|
|
7129
7130
|
|
|
7130
|
-
${
|
|
7131
|
+
${_chunkHVMQAVZKcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
|
|
7131
7132
|
|
|
7132
7133
|
function activateFragmentScripts(root) {
|
|
7133
7134
|
for (const script of Array.from(root.querySelectorAll?.('script') || [])) {
|
|
@@ -7186,7 +7187,7 @@ function getLayoutShell(root, patterns, index, find) {
|
|
|
7186
7187
|
return shell.innerHTML;
|
|
7187
7188
|
}
|
|
7188
7189
|
|
|
7189
|
-
${islandValues ?
|
|
7190
|
+
${islandValues ? _chunkHVMQAVZKcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceNavigationBoundary(
|
|
7190
7191
|
container,
|
|
7191
7192
|
fragment,
|
|
7192
7193
|
currentPatterns,
|
|
@@ -7259,7 +7260,7 @@ ${islandValues ? `
|
|
|
7259
7260
|
return nextTarget;
|
|
7260
7261
|
}
|
|
7261
7262
|
|
|
7262
|
-
${islandValues ? `${
|
|
7263
|
+
${islandValues ? `${_chunkHVMQAVZKcjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
|
|
7263
7264
|
|
|
7264
7265
|
// Islands mode navigates as the production client does: it fetches the page itself, names the
|
|
7265
7266
|
// layouts it shows by key (F-Layouts), and asks for flush markers (F-Stream), so the shell arrives
|
|
@@ -7848,6 +7849,27 @@ function farmIslandsOnlyDocument() {
|
|
|
7848
7849
|
}
|
|
7849
7850
|
},
|
|
7850
7851
|
});
|
|
7852
|
+
${islandValues ? `// A layout root that waits for a click renders again on a navigation, and a link under the
|
|
7853
|
+
// pointer is a navigation on its way: hydrate the root now, as the production entry does.
|
|
7854
|
+
if (layoutShouldHydrate && islandStrategy !== 'load') {
|
|
7855
|
+
const hydrateForLink = (target) => {
|
|
7856
|
+
const anchor = target instanceof Element ? target.closest('a[href]') : null;
|
|
7857
|
+
const href = anchor && anchor.getAttribute('href');
|
|
7858
|
+
if (!href || href.startsWith('#') || hasAbsoluteNavigationHref(href)) return false;
|
|
7859
|
+
if (!pageContainer.contains(anchor)) return false;
|
|
7860
|
+
document.dispatchEvent(
|
|
7861
|
+
new CustomEvent('farm:island-interaction', { detail: { target: anchor, kind: null } }),
|
|
7862
|
+
);
|
|
7863
|
+
return true;
|
|
7864
|
+
};
|
|
7865
|
+
const onLinkIntent = (event) => {
|
|
7866
|
+
if (hydrateForLink(event.target)) document.removeEventListener('mouseover', onLinkIntent, true);
|
|
7867
|
+
};
|
|
7868
|
+
if (!hydrateForLink(pageContainer.querySelector('a[href]:hover'))) {
|
|
7869
|
+
document.addEventListener('mouseover', onLinkIntent, true);
|
|
7870
|
+
void pageHydration.finally(() => document.removeEventListener('mouseover', onLinkIntent, true));
|
|
7871
|
+
}
|
|
7872
|
+
}` : ""}
|
|
7851
7873
|
${isolatedHydrationEnabled ? `const isolatedHydration =
|
|
7852
7874
|
hasIsolatedClientBoundaries &&
|
|
7853
7875
|
!layoutShouldHydrate
|
|
@@ -7956,10 +7978,10 @@ function generateClientManifest(bundle) {
|
|
|
7956
7978
|
return manifest;
|
|
7957
7979
|
}
|
|
7958
7980
|
async function defineConfig(config = {}) {
|
|
7959
|
-
const tailwindVitePlugin = await
|
|
7981
|
+
const tailwindVitePlugin = await _chunkMBD34AS5cjs.loadTailwindVitePlugin.call(void 0, );
|
|
7960
7982
|
const appRoot = path6.resolve(config.root || process.cwd());
|
|
7961
|
-
if (_optionalChain([config, 'access',
|
|
7962
|
-
const { config: layeredConfig } = await import("./layers-
|
|
7983
|
+
if (_optionalChain([config, 'access', _496 => _496.extends, 'optionalAccess', _497 => _497.length])) {
|
|
7984
|
+
const { config: layeredConfig } = await import("./layers-HMEGUEXM.cjs").then(
|
|
7963
7985
|
({ resolveFarmLayers }) => resolveFarmLayers(config, {
|
|
7964
7986
|
root: appRoot,
|
|
7965
7987
|
mode: process.env.NODE_ENV === "production" ? "production" : "development"
|
|
@@ -7968,11 +7990,11 @@ async function defineConfig(config = {}) {
|
|
|
7968
7990
|
config = layeredConfig;
|
|
7969
7991
|
}
|
|
7970
7992
|
config.renderer = _chunk67MZTLTFcjs.resolveFarmRenderer.call(void 0, config.renderer);
|
|
7971
|
-
config.images =
|
|
7993
|
+
config.images = _chunkHVMQAVZKcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, { root: appRoot, dev: true });
|
|
7972
7994
|
const rendererVitePlugins = await _chunk67MZTLTFcjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, appRoot, {
|
|
7973
7995
|
ssr: true
|
|
7974
7996
|
});
|
|
7975
|
-
const reactRefreshPlugins = _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) ? await
|
|
7997
|
+
const reactRefreshPlugins = _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) ? await _chunkY2FEFQAYcjs.createFarmReactRefreshPlugins.call(void 0, ) : [];
|
|
7976
7998
|
const nodeBuiltinStubs = {
|
|
7977
7999
|
"node:string_decoder": "data:text/javascript,export class StringDecoder { write(buf) { return ''; } end() { return ''; } }; export default StringDecoder;",
|
|
7978
8000
|
"node:buffer": "data:text/javascript,export const Buffer = { from: () => ({}), alloc: () => ({}), isBuffer: () => false }; export default { Buffer };",
|
|
@@ -8060,20 +8082,20 @@ async function defineConfig(config = {}) {
|
|
|
8060
8082
|
if (!serverStarted) {
|
|
8061
8083
|
serverStarted = true;
|
|
8062
8084
|
const elapsed = Date.now() - startTime;
|
|
8063
|
-
const address = _optionalChain([server, 'access',
|
|
8085
|
+
const address = _optionalChain([server, 'access', _498 => _498.httpServer, 'optionalAccess', _499 => _499.address, 'call', _500 => _500()]);
|
|
8064
8086
|
const resolvedPort = typeof address === "object" && address ? address.port : server.config.server.port || port || 3e3;
|
|
8065
8087
|
const hostConfig = server.config.server.host;
|
|
8066
8088
|
const isExposed = hostConfig === true || hostConfig === "0.0.0.0";
|
|
8067
8089
|
console.log("");
|
|
8068
8090
|
console.log(
|
|
8069
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
8091
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkLMXGCFAMcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
8070
8092
|
);
|
|
8071
8093
|
console.log("");
|
|
8072
8094
|
console.log(
|
|
8073
8095
|
` ${pc.dim("\u279C")} ${pc.bold("Local:")} ${pc.cyan(`http://localhost:${resolvedPort}/`)}`
|
|
8074
8096
|
);
|
|
8075
8097
|
if (isExposed) {
|
|
8076
|
-
const os =
|
|
8098
|
+
const os = _chunkUZM3PDKKcjs.__require.call(void 0, "os");
|
|
8077
8099
|
const interfaces = os.networkInterfaces();
|
|
8078
8100
|
for (const name of Object.keys(interfaces)) {
|
|
8079
8101
|
for (const iface of interfaces[name] || []) {
|
|
@@ -8099,8 +8121,8 @@ async function defineConfig(config = {}) {
|
|
|
8099
8121
|
return {
|
|
8100
8122
|
plugins: [
|
|
8101
8123
|
// `farm dev --desktop`: only the desktop window gets an answer, as in the packaged app.
|
|
8102
|
-
|
|
8103
|
-
|
|
8124
|
+
_chunkY2FEFQAYcjs.farmDesktopDevGuardPlugin.call(void 0, config.basePath),
|
|
8125
|
+
_chunkHVMQAVZKcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
8104
8126
|
tailwindVitePlugin,
|
|
8105
8127
|
...rendererVitePlugins,
|
|
8106
8128
|
...reactRefreshPlugins,
|
|
@@ -8109,14 +8131,14 @@ async function defineConfig(config = {}) {
|
|
|
8109
8131
|
farmServerOnlyEntriesPlugin({ distDir: config.distDir || ".farm" }),
|
|
8110
8132
|
farmIslandContainersPlugin(config),
|
|
8111
8133
|
farmPlugin(config),
|
|
8112
|
-
|
|
8134
|
+
_chunkODYKCC6Wcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
|
|
8113
8135
|
farmBrandingPlugin
|
|
8114
8136
|
],
|
|
8115
8137
|
customLogger: farmLogger,
|
|
8116
8138
|
clearScreen: false,
|
|
8117
8139
|
optimizeDeps: {
|
|
8118
|
-
...
|
|
8119
|
-
|
|
8140
|
+
..._chunkHVMQAVZKcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
8141
|
+
_chunkHVMQAVZKcjs.createFarmClientOptimizeDepsEntries.call(void 0,
|
|
8120
8142
|
appRoot,
|
|
8121
8143
|
_chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, { ...config, root: appRoot })
|
|
8122
8144
|
),
|
|
@@ -8159,7 +8181,7 @@ async function defineConfig(config = {}) {
|
|
|
8159
8181
|
// Stub out problematic server-only modules during dev mode
|
|
8160
8182
|
alias: {
|
|
8161
8183
|
..._chunkQMR2TUVZcjs.getFarmLayerAliases.call(void 0, config.layers),
|
|
8162
|
-
...
|
|
8184
|
+
..._chunkHVMQAVZKcjs.createFarmSourceAlias.call(void 0, appRoot, config.srcDir),
|
|
8163
8185
|
// Nitro internals that should not be resolved in browser
|
|
8164
8186
|
"supports-color": "data:text/javascript,export default false; export const supportsColor = false; export const stdout = false; export const stderr = false;",
|
|
8165
8187
|
"@poppinss/dumper": "data:text/javascript,export default {};",
|