@farm.js/core 0.1.76 → 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-Cftp2kFv.d.ts → agent-mcp.d-BErtnhV2.d.ts} +1 -1
- package/dist/{agent-mcp.d-D0FMmqi0.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-NLQKPN74.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-cpOw_sV5.d.mts → app-manifest.d-6NCkLQ1y.d.mts} +1 -1
- package/dist/{app-manifest.d-7PmA_9hm.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-wOkxXre8.d.ts → app.d-Bz6vYBFF.d.ts} +4 -4
- package/dist/{app.d-DUZvwnFF.d.mts → app.d-Dk2HkvPh.d.mts} +4 -4
- package/dist/cache.cjs +1 -1
- package/dist/cache.mjs +1 -1
- package/dist/{chunk-DVW6SKHA.cjs → chunk-26CNCIFI.cjs} +2 -2
- package/dist/{chunk-CCQZDOQR.cjs → chunk-2G6JPLSL.cjs} +19 -19
- package/dist/{chunk-CL2ONP73.cjs → chunk-2PE5STAR.cjs} +36 -27
- package/dist/{chunk-E7VF3LQ5.mjs → chunk-4STJ6LGR.mjs} +13 -1
- package/dist/{chunk-HFJLMALC.cjs → chunk-5DREJN4G.cjs} +4 -4
- package/dist/{chunk-WILPJVQE.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-A2VFKOQL.mjs → chunk-7JTVN6IJ.mjs} +1 -1
- package/dist/{chunk-2GZZVIXY.mjs → chunk-7RQ5KAK6.mjs} +2 -2
- package/dist/{chunk-QVBXTSIZ.mjs → chunk-7V5M43ND.mjs} +1 -1
- package/dist/{chunk-SGQXJVFX.mjs → chunk-A37D6LOS.mjs} +1 -1
- package/dist/{chunk-7EOSFIPN.cjs → chunk-A4WWKG2B.cjs} +2 -2
- package/dist/{chunk-LQBV2Y37.mjs → chunk-A7EJATEW.mjs} +40 -4
- package/dist/{chunk-CKBBKRBO.mjs → chunk-AHGOHPRN.mjs} +14 -14
- package/dist/{chunk-JRBWBMP2.mjs → chunk-B3IRRANH.mjs} +1 -1
- package/dist/{chunk-7564NP5Z.cjs → chunk-BZJYPIFZ.cjs} +46 -10
- package/dist/{chunk-3OYFMOBY.mjs → chunk-CBP7AKZH.mjs} +1 -1
- package/dist/{chunk-QUEYL2WM.cjs → chunk-CKNZJFK5.cjs} +1 -1
- package/dist/{chunk-2WKGQCAV.cjs → chunk-DD2ANOEF.cjs} +265 -178
- package/dist/{chunk-XX6ZA2IO.cjs → chunk-DPBQRDWW.cjs} +1 -1
- package/dist/chunk-DS2KZ5BT.mjs +16 -0
- package/dist/{chunk-VDJ3CLBR.mjs → chunk-E7V2GYBP.mjs} +1 -1
- package/dist/{chunk-YHE7HH2I.mjs → chunk-EBFTAVGD.mjs} +134 -47
- package/dist/{chunk-UBXNTZCY.cjs → chunk-EVVV2XZ2.cjs} +115 -108
- package/dist/{chunk-PSNYVBWC.cjs → chunk-F7PKUP6P.cjs} +12 -12
- package/dist/{chunk-75XSZIRE.mjs → chunk-FD6BMUA3.mjs} +35 -26
- package/dist/{chunk-TMVVBK5S.cjs → chunk-FOULIN4S.cjs} +2 -2
- package/dist/{chunk-WJDMH3E7.cjs → chunk-H5OVJHXY.cjs} +4 -4
- package/dist/{chunk-DTNWLRRF.cjs → chunk-HVMQAVZK.cjs} +85 -85
- package/dist/{chunk-Q4X3MX4J.mjs → chunk-IGE5BAWK.mjs} +112 -105
- package/dist/{chunk-2JEXQAIR.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-GP5BWTO7.mjs → chunk-LIC6CMLB.mjs} +6 -6
- package/dist/{chunk-BYJPBJ4E.cjs → chunk-LJKTJNOF.cjs} +3 -3
- package/dist/{chunk-XLOORES5.cjs → chunk-LMXGCFAM.cjs} +1 -1
- package/dist/{chunk-QTDIOZV6.cjs → chunk-MBD34AS5.cjs} +2 -2
- package/dist/{chunk-BBRSPKFI.cjs → chunk-NB2ZEBIS.cjs} +196 -173
- package/dist/{chunk-PXXG5BID.cjs → chunk-NNGBTJCX.cjs} +3 -3
- package/dist/{chunk-QDHR54S6.cjs → chunk-OBVBII5K.cjs} +5 -5
- package/dist/{chunk-QP4GYVRR.cjs → chunk-ODYKCC6W.cjs} +8 -8
- package/dist/{chunk-3AJQFVWW.mjs → chunk-OGVOKAQU.mjs} +1 -1
- package/dist/{chunk-5EEQNZLU.mjs → chunk-PNWRH6TR.mjs} +2 -2
- package/dist/{chunk-3GMD2E4Q.mjs → chunk-QES76U42.mjs} +1 -1
- package/dist/{chunk-MTBDJ326.cjs → chunk-QMR2TUVZ.cjs} +13 -1
- package/dist/{chunk-JL6XHQZF.mjs → chunk-R77D7TCZ.mjs} +6 -6
- package/dist/{chunk-O225GNEU.mjs → chunk-RIMEFQYO.mjs} +44 -21
- package/dist/{chunk-MOS2N377.mjs → chunk-S6RUJRWI.mjs} +1 -1
- package/dist/chunk-TIZJYHB7.mjs +42 -0
- package/dist/chunk-UZM3PDKK.cjs +46 -0
- package/dist/{chunk-YQXJY7E7.mjs → chunk-VCW6BR6U.mjs} +1 -1
- package/dist/{chunk-E77ZKNPN.mjs → chunk-VO5XDZHK.mjs} +1 -1
- package/dist/{chunk-YONTMPZ6.mjs → chunk-VRI43FDN.mjs} +1 -1
- package/dist/{chunk-X3HUT4JU.mjs → chunk-VRJAMU34.mjs} +1 -1
- package/dist/{chunk-CF74ABRI.mjs → chunk-WJ4NUY2H.mjs} +2 -2
- package/dist/{chunk-Q7JMHO5U.mjs → chunk-X2SEYK7I.mjs} +2 -2
- package/dist/{chunk-WMJQNVKX.cjs → chunk-XGS76V7L.cjs} +2 -2
- package/dist/chunk-XRRHPBG2.cjs +16 -0
- package/dist/{chunk-3QM74STY.cjs → chunk-Y2FEFQAY.cjs} +3 -3
- package/dist/{chunk-HKGU2X4I.cjs → chunk-ZCYGYIC2.cjs} +2 -2
- package/dist/{chunk-OCLCA3X3.mjs → chunk-ZEWIWAS2.mjs} +1 -1
- package/dist/{cli-runtime.d-D84CwyPI.d.ts → cli-runtime.d-BG9q2_vC.d.ts} +8 -6
- package/dist/{cli-runtime.d-OQY2pgwK.d.mts → cli-runtime.d-CGMGs1Zz.d.mts} +8 -6
- package/dist/client/lifecycle.cjs +1 -1
- package/dist/client/lifecycle.mjs +1 -1
- package/dist/{client-component.d-Bf8jZqW7.d.ts → client-component.d-B84GPb_u.d.ts} +1 -1
- package/dist/{client-component.d-Bh6CfC5z.d.mts → client-component.d-CdsG1E7p.d.mts} +1 -1
- package/dist/client-plugins.cjs +1 -1
- package/dist/{client-plugins.d-r3K2oQ6w.d.mts → client-plugins.d-DX-iCJWE.d.mts} +1 -1
- package/dist/{client-plugins.d-DuujrC8d.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-MBZPUH3U.mjs → devtools-7P3OUNLV.mjs} +6 -5
- package/dist/{devtools-3WZIZ7KK.cjs → devtools-TMATFNUY.cjs} +7 -6
- 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 +8 -7
- package/dist/docs.d.mts +4 -4
- package/dist/docs.d.ts +4 -4
- package/dist/docs.mjs +7 -6
- 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 +6 -5
- package/dist/environment/vite.mjs +5 -4
- 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-Bd5lRSvb.d.ts → handler.d-Cy3XbY_W.d.ts} +1 -1
- package/dist/{handler.d-SRH-AKzf.d.mts → handler.d-DSwLTpa5.d.mts} +1 -1
- package/dist/headers.cjs +1 -1
- package/dist/{headers.d-CHHvyaIG.d.mts → headers.d-DiL9YTH3.d.mts} +1 -1
- package/dist/{headers.d-D-OvGikv.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 +44 -39
- package/dist/{index.d-BOPsgMlI.d.mts → index.d-CqQKX3s6.d.mts} +1 -1
- package/dist/{index.d-BiUtYJUG.d.ts → index.d-OccJoC6I.d.ts} +1 -1
- package/dist/index.d.mts +23 -23
- package/dist/index.d.ts +23 -23
- package/dist/index.mjs +40 -35
- package/dist/instrumentation.cjs +1 -1
- package/dist/instrumentation.mjs +1 -1
- package/dist/integrations/orm.cjs +5 -4
- package/dist/integrations/orm.d.mts +2 -2
- package/dist/integrations/orm.d.ts +2 -2
- package/dist/integrations/orm.mjs +4 -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 +30 -29
- package/dist/internal/build-runtime.d.mts +5 -5
- package/dist/internal/build-runtime.d.ts +5 -5
- package/dist/internal/build-runtime.mjs +29 -28
- package/dist/internal/cli-runtime.cjs +17 -14
- package/dist/internal/cli-runtime.d.mts +9 -8
- package/dist/internal/cli-runtime.d.ts +9 -8
- package/dist/internal/cli-runtime.mjs +17 -14
- 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 +3 -3
- package/dist/internal/compression-runtime.d.mts +6 -3
- package/dist/internal/compression-runtime.d.ts +6 -3
- package/dist/internal/compression-runtime.mjs +2 -2
- package/dist/internal/config-runtime.cjs +8 -7
- package/dist/internal/config-runtime.d.mts +4 -4
- package/dist/internal/config-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.mjs +7 -6
- 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 +8 -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 +7 -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-XQ7VFMWO.mjs → layers-5ZD4764G.mjs} +3 -2
- package/dist/layers-HMEGUEXM.cjs +21 -0
- 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-vq1HTq5u.d.mts → mount.d-AcJaUtHF.d.mts} +1 -1
- package/dist/{mount.d-C2yq0Zzz.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-DS2Sqm7E.d.mts → navigation-delegate.d-C4i5Y39E.d.mts} +1 -1
- package/dist/{navigation-delegate.d-D7xIin3i.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-YXPIS3XX.cjs → plugin-AGEFSU7K.cjs} +3 -3
- package/dist/{plugin-6CHZBFJD.mjs → plugin-TV6W7YNK.mjs} +2 -2
- package/dist/plugin.cjs +23 -22
- package/dist/plugin.d.mts +6 -6
- package/dist/plugin.d.ts +6 -6
- package/dist/plugin.mjs +22 -21
- 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-X6KqerAM.d.mts → render-plan.d-4V_NmaA6.d.mts} +1 -1
- package/dist/{render-plan.d-BCq0nfdw.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-CPdq2_kC.d.ts → request.d-CbV3y7j3.d.ts} +1 -1
- package/dist/{request.d-Be9rWboC.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-CKB5GhQr.d.ts → route-rendering.d-CETnXNez.d.ts} +1 -1
- package/dist/{route-rendering.d-CIPli7Ve.d.mts → route-rendering.d-CmoqfOmj.d.mts} +1 -1
- package/dist/router.cjs +1 -1
- package/dist/{router.d-CvrbOXzF.d.ts → router.d-Dga3N5YO.d.ts} +1 -1
- package/dist/{router.d-VxTgLGxN.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-TPHK74VE.cjs → rsc-pipeline-JLYD26AR.cjs} +11 -10
- package/dist/{rsc-pipeline-FPE4OL57.mjs → rsc-pipeline-N7CWJW7T.mjs} +10 -9
- package/dist/{runtime-UBG657UC.cjs → runtime-F5NSS4DD.cjs} +14 -13
- package/dist/{runtime-45BD33OJ.mjs → runtime-QXX2A4TS.mjs} +10 -9
- package/dist/{runtime.d-Ps54JWpo.d.ts → runtime.d-BWLZUOfA.d.ts} +1 -1
- package/dist/{runtime.d-Cn1jiDNI.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-Dhtbs5lC.d.ts → server-components-status.d-C5JpC7_Y.d.ts} +1 -1
- package/dist/{server-components-status.d-DnmipSb3.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 +3 -3
- package/dist/server-plugins.d.mts +4 -4
- package/dist/server-plugins.d.ts +4 -4
- package/dist/server-plugins.mjs +2 -2
- 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 +99 -72
- package/dist/server.d.mts +13 -13
- package/dist/server.d.ts +13 -13
- package/dist/server.mjs +57 -30
- package/dist/{session-ASQTJNBK.mjs → session-AK2OA5UZ.mjs} +4 -3
- package/dist/session-H4TWP73H.cjs +24 -0
- package/dist/{spa-router.d-DXm5J9rM.d.mts → spa-router.d-BLE188EL.d.mts} +2 -2
- package/dist/{spa-router.d-cppVufl2.d.ts → spa-router.d-C3LzwTlY.d.ts} +2 -2
- package/dist/{ssg.d-CI5OFl8H.d.ts → ssg.d-DisOfj0I.d.ts} +2 -2
- package/dist/{ssg.d-Duzy1wQc.d.mts → ssg.d-QrFyU6T4.d.mts} +2 -2
- package/dist/storage.cjs +8 -3
- package/dist/storage.d.mts +260 -38
- package/dist/storage.d.ts +260 -38
- package/dist/storage.mjs +7 -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-D5cY6XjK.d.mts → types.d-DW2vyaUq.d.mts} +26 -4
- package/dist/{types.d-D5cY6XjK.d.ts → types.d-DW2vyaUq.d.ts} +26 -4
- package/dist/{utils.d-D3dfy8zh.d.ts → utils.d-7YcgfTCK.d.ts} +1 -1
- package/dist/{utils.d-CNI-I8ZV.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 +23 -22
- package/dist/vite.d.mts +7 -7
- package/dist/vite.d.ts +7 -7
- package/dist/vite.mjs +22 -21
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +4 -6
- package/dist/analyzer-KFJGYJS7.cjs +0 -16
- package/dist/chunk-BTZ5O6VM.cjs +0 -14
- package/dist/chunk-Y6FXYEAI.mjs +0 -10
- package/dist/layers-7P4RLKVX.cjs +0 -20
- package/dist/session-ACVUJ5XV.cjs +0 -23
- package/dist/{chunk-WW62HKA2.cjs → chunk-4SLHSODZ.cjs} +2 -2
- package/dist/{chunk-LSHUCNIF.mjs → chunk-522K362I.mjs} +0 -0
- package/dist/{chunk-OWO7KDZ3.cjs → chunk-AOTD2N5P.cjs} +0 -0
- package/dist/{chunk-22T75EML.cjs → chunk-CUZT7474.cjs} +0 -0
- package/dist/{chunk-6MNDFNZW.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
|
|
|
@@ -174,7 +174,7 @@ var _chunkRE5E2G5Scjs = require('./chunk-RE5E2G5S.cjs');
|
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
|
|
177
|
-
var
|
|
177
|
+
var _chunkQMR2TUVZcjs = require('./chunk-QMR2TUVZ.cjs');
|
|
178
178
|
|
|
179
179
|
|
|
180
180
|
|
|
@@ -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
|
|
@@ -2357,12 +2357,12 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2357
2357
|
config(userConfig, configEnv) {
|
|
2358
2358
|
isBuild = configEnv.command === "build";
|
|
2359
2359
|
const farmAliases = {
|
|
2360
|
-
...
|
|
2361
|
-
...hasFarmSourceAliasOverride(_optionalChain([userConfig, 'access', _125 => _125.resolve, 'optionalAccess', _126 => _126.alias])) ? {} :
|
|
2360
|
+
..._chunkQMR2TUVZcjs.getFarmLayerAliases.call(void 0, options.layers),
|
|
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."
|
|
@@ -2412,7 +2412,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2412
2412
|
async configureServer(viteServer) {
|
|
2413
2413
|
viteServer.middlewares.use(
|
|
2414
2414
|
createFarmDevPreviewGuard(viteServer, {
|
|
2415
|
-
getSourceRoots: () =>
|
|
2415
|
+
getSourceRoots: () => _chunkQMR2TUVZcjs.getFarmSourceRoots.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _136 => _136.getConfig, 'call', _137 => _137()]), () => ( options)))
|
|
2416
2416
|
})
|
|
2417
2417
|
);
|
|
2418
2418
|
if (typeof fontImports.configureServer === "function") {
|
|
@@ -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,
|
|
@@ -2493,7 +2493,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
});
|
|
2495
2495
|
}
|
|
2496
|
-
const sourceRoots =
|
|
2496
|
+
const sourceRoots = _chunkQMR2TUVZcjs.getFarmSourceRoots.call(void 0, farmConfig);
|
|
2497
2497
|
server.watcher.add(sourceRoots.map((source) => path6.join(source.root, source.srcDir)));
|
|
2498
2498
|
if (farmConfig.i18n.enabled) {
|
|
2499
2499
|
server.watcher.add(
|
|
@@ -2513,10 +2513,11 @@ 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,
|
|
2520
|
+
storage: farmConfig.storage,
|
|
2520
2521
|
plugins: farmConfig.plugins,
|
|
2521
2522
|
extraRoutes: getExtraRouteTypes(),
|
|
2522
2523
|
suppressLintOnLink: farmConfig.suppressLintOnLink,
|
|
@@ -2661,7 +2662,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2661
2662
|
}
|
|
2662
2663
|
});
|
|
2663
2664
|
});
|
|
2664
|
-
const appDirs =
|
|
2665
|
+
const appDirs = _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, farmConfig);
|
|
2665
2666
|
const routeManager = farmApp.getRouteManager();
|
|
2666
2667
|
const discoveredRoutes = [];
|
|
2667
2668
|
for (const [pattern, entry] of routeManager.getRoutes()) {
|
|
@@ -2700,7 +2701,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2700
2701
|
}
|
|
2701
2702
|
})]);
|
|
2702
2703
|
}
|
|
2703
|
-
apiRouteManager = new (0,
|
|
2704
|
+
apiRouteManager = new (0, _chunk5DREJN4Gcjs.APIRouteManager)(appDirs, server, {
|
|
2704
2705
|
plugins: farmConfig.plugins,
|
|
2705
2706
|
i18n: farmApp.getI18nRuntime(),
|
|
2706
2707
|
bodySizeLimit: serverConfig.bodySizeLimit,
|
|
@@ -2746,7 +2747,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2746
2747
|
});
|
|
2747
2748
|
}
|
|
2748
2749
|
}
|
|
2749
|
-
middlewareManager = new (0,
|
|
2750
|
+
middlewareManager = new (0, _chunk4SLHSODZcjs.MiddlewareManager)(
|
|
2750
2751
|
appDirs,
|
|
2751
2752
|
server,
|
|
2752
2753
|
farmConfig.middleware,
|
|
@@ -2815,7 +2816,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2815
2816
|
clientEntry: "/@farm/client.js",
|
|
2816
2817
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2817
2818
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2818
|
-
globalStylesheetHref:
|
|
2819
|
+
globalStylesheetHref: _chunkHVMQAVZKcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2819
2820
|
farmConfig.root,
|
|
2820
2821
|
farmConfig.srcDir
|
|
2821
2822
|
),
|
|
@@ -2846,7 +2847,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2846
2847
|
fontAssets: _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, farmDocsFontAssetList),
|
|
2847
2848
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2848
2849
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2849
|
-
globalStylesheetHref:
|
|
2850
|
+
globalStylesheetHref: _chunkHVMQAVZKcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2850
2851
|
farmConfig.root,
|
|
2851
2852
|
farmConfig.srcDir
|
|
2852
2853
|
),
|
|
@@ -3014,7 +3015,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3014
3015
|
if (!rendererDisabled && (requestMethod === "GET" || requestMethod === "HEAD") && requestPathname === _chunkY3DO7BIJcjs.FARM_VIDEO_PLAYER_PATH) {
|
|
3015
3016
|
res.statusCode = 200;
|
|
3016
3017
|
res.setHeader("Content-Type", "text/html; charset=utf-8");
|
|
3017
|
-
res.end(requestMethod === "HEAD" ? void 0 :
|
|
3018
|
+
res.end(requestMethod === "HEAD" ? void 0 : _chunkHVMQAVZKcjs.FARM_VIDEO_PLAYER_HTML);
|
|
3018
3019
|
return;
|
|
3019
3020
|
}
|
|
3020
3021
|
const farmDocsFontPath = farmDocsFontAssets.get(requestPathname);
|
|
@@ -3294,9 +3295,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3294
3295
|
if (pm && opensFarmDevRuntimeSession(pm)) {
|
|
3295
3296
|
try {
|
|
3296
3297
|
const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath);
|
|
3297
|
-
const route =
|
|
3298
|
+
const route = _chunk5KISFWD2cjs.setFarmRouteLabel.call(void 0,
|
|
3298
3299
|
{ pathname: requestPathname },
|
|
3299
|
-
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname :
|
|
3300
|
+
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname : _chunk5KISFWD2cjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath)
|
|
3300
3301
|
);
|
|
3301
3302
|
runtimeSession2 = await pm.beginRuntimeRequest(
|
|
3302
3303
|
createRequestFromNodeRequest(req, new URL(fullUrl)),
|
|
@@ -3385,7 +3386,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3385
3386
|
);
|
|
3386
3387
|
return;
|
|
3387
3388
|
}
|
|
3388
|
-
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))) {
|
|
3389
3390
|
const manifestGuardCoversPath = (path7) => _chunk6ZFGWB75cjs.farmPathGuardCoversEndpoint.call(void 0,
|
|
3390
3391
|
{
|
|
3391
3392
|
config: farmConfig,
|
|
@@ -3395,18 +3396,18 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3395
3396
|
apiServerBasePath
|
|
3396
3397
|
);
|
|
3397
3398
|
await serveBuiltInRoute(async () => {
|
|
3398
|
-
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages =
|
|
3399
|
-
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,
|
|
3400
3401
|
new Request(parsedRequestUrl, {
|
|
3401
3402
|
method: requestMethod,
|
|
3402
3403
|
headers: { "if-none-match": String(_nullishCoalesce(req.headers["if-none-match"], () => ( ""))) }
|
|
3403
3404
|
}),
|
|
3404
3405
|
{
|
|
3405
|
-
...
|
|
3406
|
+
..._chunk5KISFWD2cjs.resolveFarmAppManifestInput.call(void 0, farmConfig, {
|
|
3406
3407
|
build: "development",
|
|
3407
3408
|
packages: farmAppPackages,
|
|
3408
3409
|
// Read again on each request; unchanged files come from a cache.
|
|
3409
|
-
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) : []
|
|
3410
3411
|
}),
|
|
3411
3412
|
defaultMCP: () => farmApp.getServerRenderer().getDefaultMCPServer(),
|
|
3412
3413
|
// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -3424,11 +3425,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3424
3425
|
});
|
|
3425
3426
|
return;
|
|
3426
3427
|
}
|
|
3427
|
-
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) {
|
|
3428
3429
|
await serveBuiltInRoute(
|
|
3429
|
-
() =>
|
|
3430
|
+
() => _chunk5KISFWD2cjs.createFarmApiCatalogResponse.call(void 0,
|
|
3430
3431
|
requestMethod,
|
|
3431
|
-
|
|
3432
|
+
_chunk5KISFWD2cjs.resolveFarmApiCatalogInput.call(void 0, { ...options, api: farmConfig.api }),
|
|
3432
3433
|
new Request(parsedRequestUrl, {
|
|
3433
3434
|
headers: { "user-agent": String(_nullishCoalesce(req.headers["user-agent"], () => ( ""))) }
|
|
3434
3435
|
})
|
|
@@ -3437,7 +3438,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3437
3438
|
return;
|
|
3438
3439
|
}
|
|
3439
3440
|
if (_optionalChain([options, 'access', _230 => _230.agent, 'optionalAccess', _231 => _231.aiCatalog]) !== false) {
|
|
3440
|
-
const aiCatalog =
|
|
3441
|
+
const aiCatalog = _chunk5KISFWD2cjs.createFarmAiCatalogResponse.call(void 0,
|
|
3441
3442
|
new Request(parsedRequestUrl, {
|
|
3442
3443
|
method: requestMethod,
|
|
3443
3444
|
headers: {
|
|
@@ -3519,7 +3520,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3519
3520
|
{
|
|
3520
3521
|
kind: "docs",
|
|
3521
3522
|
computed: docsResponse,
|
|
3522
|
-
label:
|
|
3523
|
+
label: _chunk5KISFWD2cjs.resolveFarmDocsEngineRouteLabel.call(void 0,
|
|
3523
3524
|
_chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath),
|
|
3524
3525
|
{
|
|
3525
3526
|
path: _optionalChain([farmConfig, 'access', _242 => _242.docs, 'optionalAccess', _243 => _243.entry]) || "/docs",
|
|
@@ -3533,7 +3534,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3533
3534
|
}
|
|
3534
3535
|
}
|
|
3535
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)])) {
|
|
3536
|
-
const { createFarmNativeTreeResponse } = await import("./native-tree-
|
|
3537
|
+
const { createFarmNativeTreeResponse } = await import("./native-tree-MNUFN5G6.cjs");
|
|
3537
3538
|
const treeBodyInit = requestMethod === "POST" ? { body: _chunk7Q7UB4TLcjs.createFarmNodeRequestBodyStream.call(void 0, req), duplex: "half" } : {};
|
|
3538
3539
|
const treeResponse = await createFarmNativeTreeResponse({
|
|
3539
3540
|
request: new Request(fullUrl, {
|
|
@@ -3556,7 +3557,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3556
3557
|
}
|
|
3557
3558
|
const markdownRouteLabel = () => (
|
|
3558
3559
|
// On the route path, as production labels it: /fr/index.md is /index.md.
|
|
3559
|
-
|
|
3560
|
+
_chunk5KISFWD2cjs.resolveFarmMarkdownRouteLabel.call(void 0,
|
|
3560
3561
|
toRoutePathname(requestPathname),
|
|
3561
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])
|
|
3562
3563
|
)
|
|
@@ -3577,7 +3578,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3577
3578
|
return {
|
|
3578
3579
|
source: await fs2.promises.readFile(sourcePath, "utf8"),
|
|
3579
3580
|
// Project-relative, as production sends it: never the machine's path.
|
|
3580
|
-
filePath:
|
|
3581
|
+
filePath: _chunkHVMQAVZKcjs.toBakedMarkdownSourcePath.call(void 0, farmApp.getConfig().root, sourcePath)
|
|
3581
3582
|
};
|
|
3582
3583
|
},
|
|
3583
3584
|
// The anonymous check goes through this server, so its guards and
|
|
@@ -3712,7 +3713,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3712
3713
|
}
|
|
3713
3714
|
const configuredIntegrations = currentConfig.integrations;
|
|
3714
3715
|
const tryConfiguredIntegrationRoute = async () => {
|
|
3715
|
-
const matchedRoute =
|
|
3716
|
+
const matchedRoute = _chunkAOTD2N5Pcjs.matchIntegrationRoute.call(void 0, configuredIntegrations, {
|
|
3716
3717
|
pathname: requestPathname,
|
|
3717
3718
|
method: requestMethod
|
|
3718
3719
|
});
|
|
@@ -3726,7 +3727,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3726
3727
|
await pm.runHookParallelFiltered(
|
|
3727
3728
|
"beforeRequest",
|
|
3728
3729
|
(plugin2) => {
|
|
3729
|
-
const owner =
|
|
3730
|
+
const owner = _chunkAOTD2N5Pcjs.getFarmIntegrationPluginOwner.call(void 0, plugin2);
|
|
3730
3731
|
return !isFarmConfigRoutePlugin(plugin2) && (_optionalChain([owner, 'optionalAccess', _266 => _266.source]) !== "lifecycle" || owner.key !== matchedRoute.key);
|
|
3731
3732
|
},
|
|
3732
3733
|
req,
|
|
@@ -3756,7 +3757,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3756
3757
|
});
|
|
3757
3758
|
const dispatchIntegration = async (request, runtime) => {
|
|
3758
3759
|
try {
|
|
3759
|
-
const result = await
|
|
3760
|
+
const result = await _chunkAOTD2N5Pcjs.dispatchIntegrationRequest.call(void 0,
|
|
3760
3761
|
{
|
|
3761
3762
|
integration: matchedRoute.integration,
|
|
3762
3763
|
config: currentConfig,
|
|
@@ -3823,7 +3824,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3823
3824
|
const hasLocalDevRoute = () => {
|
|
3824
3825
|
const routeManager3 = farmApp.getRouteManager();
|
|
3825
3826
|
return Boolean(
|
|
3826
|
-
|
|
3827
|
+
_chunkAOTD2N5Pcjs.matchIntegrationRoute.call(void 0, configuredIntegrations, {
|
|
3827
3828
|
pathname: requestPathname,
|
|
3828
3829
|
method: requestMethod
|
|
3829
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)
|
|
@@ -3920,9 +3921,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3920
3921
|
);
|
|
3921
3922
|
const docsRuntimeOptions = () => ({
|
|
3922
3923
|
kind: "docs",
|
|
3923
|
-
route:
|
|
3924
|
+
route: _chunk5KISFWD2cjs.setFarmRouteLabel.call(void 0,
|
|
3924
3925
|
{ pathname: pathname2, pattern: urlPath2 },
|
|
3925
|
-
|
|
3926
|
+
_chunk5KISFWD2cjs.resolveFarmDocsRouteLabel.call(void 0, pathname2, {
|
|
3926
3927
|
path: _optionalChain([farmConfig, 'access', _275 => _275.docs, 'optionalAccess', _276 => _276.entry]) || "/docs",
|
|
3927
3928
|
roots: _optionalChain([farmConfig, 'access', _277 => _277.docs, 'optionalAccess', _278 => _278.roots, 'optionalAccess', _279 => _279.map, 'call', _280 => _280((root) => root.entry)])
|
|
3928
3929
|
})
|
|
@@ -4276,7 +4277,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4276
4277
|
);
|
|
4277
4278
|
const loadingModule = loadingBoundary ? await routeManager3.loadRouteModule(loadingBoundary.modulePath) : null;
|
|
4278
4279
|
const navigationManifest = routeManager3.generateClientManifest(server.config.root);
|
|
4279
|
-
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)));
|
|
4280
4281
|
const isClientComponent = moduleMetadata.isClientComponent;
|
|
4281
4282
|
const shouldHydrate = moduleMetadata.shouldHydrate;
|
|
4282
4283
|
let mergedMetadata = {};
|
|
@@ -4287,7 +4288,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4287
4288
|
(layout) => _nullishCoalesce(navigationManifest.layouts.find(
|
|
4288
4289
|
(entry) => entry.pattern === layout.pattern
|
|
4289
4290
|
), () => ( {
|
|
4290
|
-
...
|
|
4291
|
+
..._chunkODYKCC6Wcjs.getClientModuleMetadata.call(void 0, layout.modulePath, server.config.root),
|
|
4291
4292
|
serverTree: false
|
|
4292
4293
|
}))
|
|
4293
4294
|
);
|
|
@@ -4302,7 +4303,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4302
4303
|
];
|
|
4303
4304
|
const hydrationIslandStrategy = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0,
|
|
4304
4305
|
_optionalChain([(_nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _303 => _303.getConfig, 'call', _304 => _304()]), () => ( options))), 'access', _305 => _305.experimental, 'optionalAccess', _306 => _306.serverComponents])
|
|
4305
|
-
) === "islands" ?
|
|
4306
|
+
) === "islands" ? _chunkHVMQAVZKcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
4306
4307
|
route,
|
|
4307
4308
|
{ shouldHydrate, islandStrategy: _nullishCoalesce(moduleMetadata.islandStrategy, () => ( null)) },
|
|
4308
4309
|
layouts.map((layout, index) => ({
|
|
@@ -4368,7 +4369,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4368
4369
|
const slotModule = await routeManager3.loadRouteModule(slot.route.modulePath);
|
|
4369
4370
|
const slotMetadata = _nullishCoalesce(navigationManifest.slots.find(
|
|
4370
4371
|
(entry) => entry.name === slot.name && entry.ownerPattern === slot.ownerPattern && entry.pattern === slot.route.pattern
|
|
4371
|
-
), () => (
|
|
4372
|
+
), () => ( _chunkODYKCC6Wcjs.getClientModuleMetadata.call(void 0, slot.route.modulePath, server.config.root)));
|
|
4372
4373
|
const slotContext = await _chunkX333W5KVcjs.resolveFarmRouteContext.call(void 0, farmApp.getConfig(), {
|
|
4373
4374
|
request: targetRequest,
|
|
4374
4375
|
params: slot.params,
|
|
@@ -4418,7 +4419,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4418
4419
|
pageShouldHydrate: shouldHydrate,
|
|
4419
4420
|
layoutShouldHydrate: shouldHydrateLayout,
|
|
4420
4421
|
islandStrategy: hydrationIslandStrategy,
|
|
4421
|
-
rendering:
|
|
4422
|
+
rendering: _chunkBZJYPIFZcjs.resolveRouteRenderingConfig.call(void 0, routeModule)
|
|
4422
4423
|
});
|
|
4423
4424
|
const destinationLayoutPatterns = layouts.map((layout) => layout.pattern);
|
|
4424
4425
|
const layoutStartIndex = _chunk6ZFGWB75cjs.getSharedLayoutPrefixLength.call(void 0,
|
|
@@ -4553,7 +4554,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4553
4554
|
const hasRuntimeAfterHook = _nullishCoalesce(_optionalChain([pm, 'optionalAccess', _324 => _324.hasRuntimeHook, 'call', _325 => _325("after")]), () => ( false));
|
|
4554
4555
|
const pageBuiltInRouteLabel = (pathname2) => {
|
|
4555
4556
|
const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, pathname2, farmConfig.basePath);
|
|
4556
|
-
const mcpLabel =
|
|
4557
|
+
const mcpLabel = _chunk5KISFWD2cjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath);
|
|
4557
4558
|
if (mcpLabel) return mcpLabel;
|
|
4558
4559
|
if (farmAgentGeneratedPaths(farmConfig).includes(routePathname)) return routePathname;
|
|
4559
4560
|
return routePathname === _chunkYRXPDKMMcjs.FARM_DEFAULT_MCP_PATH && farmApp.getServerRenderer().getDefaultMCPServer() ? _chunkYRXPDKMMcjs.FARM_DEFAULT_MCP_PATH : null;
|
|
@@ -4562,7 +4563,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4562
4563
|
const match = routeManager2.matchRoute(pathname2);
|
|
4563
4564
|
return {
|
|
4564
4565
|
kind: "page",
|
|
4565
|
-
route:
|
|
4566
|
+
route: _chunk5KISFWD2cjs.setFarmRouteLabel.call(void 0,
|
|
4566
4567
|
{
|
|
4567
4568
|
pathname: pathname2,
|
|
4568
4569
|
pattern: _optionalChain([match, 'optionalAccess', _326 => _326.route, 'optionalAccess', _327 => _327.pattern]) || null,
|
|
@@ -4827,8 +4828,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4827
4828
|
) : EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME;
|
|
4828
4829
|
const generatedDevtoolsClientRuntime = devtoolsClientRuntime ? devtoolsClientRuntime.generateFarmDevtoolsClientRuntime(devtools) : "";
|
|
4829
4830
|
const generatedDevIndicatorsClientRuntime = farmApp ? _chunkUVV3I5QAcjs.generateFarmDevIndicatorsClientRuntime.call(void 0, farmApp.getConfig().devIndicators) : "";
|
|
4830
|
-
const integrationProviders = _chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) ?
|
|
4831
|
-
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,
|
|
4832
4833
|
_optionalChain([resolvedConfig, 'optionalAccess', _372 => _372.experimental, 'optionalAccess', _373 => _373.isolatedClientHydration]),
|
|
4833
4834
|
{
|
|
4834
4835
|
serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _374 => _374.experimental, 'optionalAccess', _375 => _375.serverComponents])) === "rsc",
|
|
@@ -4838,7 +4839,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4838
4839
|
return generateClientCode(
|
|
4839
4840
|
integrationProviders,
|
|
4840
4841
|
[
|
|
4841
|
-
...
|
|
4842
|
+
..._chunkAOTD2N5Pcjs.getIntegrationDocumentNavigationMatchers.call(void 0, integrations),
|
|
4842
4843
|
..._nullishCoalesce(_optionalChain([docsRuntime, 'optionalAccess', _376 => _376.getFarmDocsDocumentNavigationMatchers, 'call', _377 => _377(docs)]), () => ( []))
|
|
4843
4844
|
],
|
|
4844
4845
|
generatedDocsSearchRuntime,
|
|
@@ -4853,8 +4854,8 @@ ${generatedDevIndicatorsClientRuntime}`,
|
|
|
4853
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,
|
|
4854
4855
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _388 => _388.trailingSlash]), () => ( false)),
|
|
4855
4856
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _389 => _389.basePath]), () => ( "/")),
|
|
4856
|
-
|
|
4857
|
-
|
|
4857
|
+
_chunkHVMQAVZKcjs.generateClientCachePersistenceCode.call(void 0,
|
|
4858
|
+
_chunkHVMQAVZKcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, _optionalChain([resolvedConfig, 'optionalAccess', _390 => _390.cache]))
|
|
4858
4859
|
),
|
|
4859
4860
|
_chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, docs) : void 0,
|
|
4860
4861
|
_chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _391 => _391.experimental, 'optionalAccess', _392 => _392.serverComponents])) === "islands"
|
|
@@ -4876,11 +4877,11 @@ export const getManifest = () => ({
|
|
|
4876
4877
|
});
|
|
4877
4878
|
`;
|
|
4878
4879
|
}
|
|
4879
|
-
const globalStylesheetHref =
|
|
4880
|
+
const globalStylesheetHref = _chunkHVMQAVZKcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
4880
4881
|
server.config.root,
|
|
4881
4882
|
_optionalChain([farmApp, 'optionalAccess', _395 => _395.getConfig, 'call', _396 => _396(), 'access', _397 => _397.srcDir])
|
|
4882
4883
|
);
|
|
4883
|
-
const fullManifest =
|
|
4884
|
+
const fullManifest = _chunkHVMQAVZKcjs.createFarmDevClientManifest.call(void 0,
|
|
4884
4885
|
routeManager.generateClientManifest(server.config.root),
|
|
4885
4886
|
{
|
|
4886
4887
|
sharedAssets: globalStylesheetHref ? [{ tag: "link", attrs: { rel: "stylesheet", href: globalStylesheetHref } }] : []
|
|
@@ -4902,45 +4903,45 @@ export { manifest };
|
|
|
4902
4903
|
const runtimeModule = !isBuild && _optionalChain([transformOptions, 'optionalAccess', _399 => _399.ssr]) === true && isOutsideAppRoot(id) ? toFarmRuntimeModuleId : void 0;
|
|
4903
4904
|
const actionConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _400 => _400.getConfig, 'call', _401 => _401()]), () => ( options));
|
|
4904
4905
|
let rewrotePackageImports = false;
|
|
4905
|
-
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)) {
|
|
4906
4907
|
const file = id.split("?", 1)[0];
|
|
4907
4908
|
const projectRoot = actionConfig.root || _optionalChain([server, 'optionalAccess', _405 => _405.config, 'access', _406 => _406.root]) || process.cwd();
|
|
4908
4909
|
const buildSnapshot = isBuild ? options.sourceSnapshot : void 0;
|
|
4909
4910
|
const rewrite = () => {
|
|
4910
4911
|
if (_optionalChain([transformOptions, 'optionalAccess', _407 => _407.ssr]) === true) {
|
|
4911
4912
|
if (farmReactServerFiles.has(file)) {
|
|
4912
|
-
for (const child of
|
|
4913
|
+
for (const child of _chunkODYKCC6Wcjs.farmRelativeImportFiles.call(void 0, code, file))
|
|
4913
4914
|
farmReactServerFiles.add(child);
|
|
4914
4915
|
}
|
|
4915
|
-
const serverModule = farmReactServerFiles.has(file) || !
|
|
4916
|
+
const serverModule = farmReactServerFiles.has(file) || !_chunkODYKCC6Wcjs.getFarmClientReachableModules.call(void 0,
|
|
4916
4917
|
path6.resolve(projectRoot, actionConfig.srcDir || "src"),
|
|
4917
4918
|
projectRoot
|
|
4918
4919
|
).has(path6.resolve(file));
|
|
4919
|
-
const reactServer = !serverModule ? null :
|
|
4920
|
+
const reactServer = !serverModule ? null : _chunkODYKCC6Wcjs.rewriteFarmReactServerImports.call(void 0, {
|
|
4920
4921
|
code,
|
|
4921
4922
|
file,
|
|
4922
|
-
reference: (specifier, exportName) =>
|
|
4923
|
+
reference: (specifier, exportName) => _chunkODYKCC6Wcjs.ensureFarmPackageClientReference.call(void 0, projectRoot, specifier, exportName, file),
|
|
4923
4924
|
onServerFile: (serverFile) => farmReactServerFiles.add(serverFile)
|
|
4924
4925
|
});
|
|
4925
4926
|
if (reactServer !== null) {
|
|
4926
4927
|
code = reactServer;
|
|
4927
4928
|
rewrotePackageImports = true;
|
|
4928
4929
|
}
|
|
4929
|
-
const internal = farmReactServerFiles.has(file) ?
|
|
4930
|
+
const internal = farmReactServerFiles.has(file) ? _chunkODYKCC6Wcjs.rewriteFarmReactServerClientModuleImports.call(void 0, {
|
|
4930
4931
|
code,
|
|
4931
4932
|
file,
|
|
4932
|
-
reference: (clientFile) =>
|
|
4933
|
+
reference: (clientFile) => _chunkODYKCC6Wcjs.ensureFarmInternalClientReference.call(void 0, projectRoot, clientFile)
|
|
4933
4934
|
}) : null;
|
|
4934
4935
|
if (internal !== null) {
|
|
4935
4936
|
code = internal;
|
|
4936
4937
|
rewrotePackageImports = true;
|
|
4937
4938
|
}
|
|
4938
4939
|
}
|
|
4939
|
-
const rewritePackageImports = (source2) =>
|
|
4940
|
+
const rewritePackageImports = (source2) => _chunkODYKCC6Wcjs.rewriteFarmPackageClientImports.call(void 0, {
|
|
4940
4941
|
code: source2,
|
|
4941
4942
|
file,
|
|
4942
4943
|
root: projectRoot,
|
|
4943
|
-
isClientPackage: (specifier) =>
|
|
4944
|
+
isClientPackage: (specifier) => _chunkODYKCC6Wcjs.isFarmPackageClientBoundary.call(void 0, file, specifier, projectRoot)
|
|
4944
4945
|
});
|
|
4945
4946
|
const routeManager = _optionalChain([farmApp, 'optionalAccess', _408 => _408.getRouteManager, 'call', _409 => _409()]);
|
|
4946
4947
|
const source = code;
|
|
@@ -4961,7 +4962,7 @@ export { manifest };
|
|
|
4961
4962
|
}
|
|
4962
4963
|
}
|
|
4963
4964
|
};
|
|
4964
|
-
if (buildSnapshot)
|
|
4965
|
+
if (buildSnapshot) _chunkODYKCC6Wcjs.withFarmSourceSnapshotOf.call(void 0, buildSnapshot, rewrite);
|
|
4965
4966
|
else rewrite();
|
|
4966
4967
|
}
|
|
4967
4968
|
if (islandsServerFns() && !_chunkPIUTGRDIcjs.isFarmServerFnBoundaryId.call(void 0, id) && !id.includes("/node_modules/") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id)) {
|
|
@@ -4988,8 +4989,8 @@ export { manifest };
|
|
|
4988
4989
|
}
|
|
4989
4990
|
if (!_optionalChain([transformOptions, 'optionalAccess', _418 => _418.ssr])) {
|
|
4990
4991
|
const docsConfigModule = _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, _optionalChain([farmApp, 'optionalAccess', _419 => _419.getConfig, 'call', _420 => _420(), 'optionalAccess', _421 => _421.docs]));
|
|
4991
|
-
if (
|
|
4992
|
-
const redacted =
|
|
4992
|
+
if (_chunkHVMQAVZKcjs.isFarmDocsClientConfigModule.call(void 0, id, docsConfigModule)) {
|
|
4993
|
+
const redacted = _chunkHVMQAVZKcjs.redactFarmDocsClientConfig.call(void 0, code, id.split("?")[0]);
|
|
4993
4994
|
if (redacted !== null) return { code: redacted, map: null };
|
|
4994
4995
|
}
|
|
4995
4996
|
}
|
|
@@ -4998,9 +4999,9 @@ export { manifest };
|
|
|
4998
4999
|
if ((_optionalChain([currentConfig, 'access', _425 => _425.experimental, 'optionalAccess', _426 => _426.serverActions]) !== true || !serverFnTransformActive) && !islandsServerFns()) {
|
|
4999
5000
|
const violation = findClientServerFnViolation(code, id);
|
|
5000
5001
|
if (violation) {
|
|
5001
|
-
const locate =
|
|
5002
|
+
const locate = _chunkODYKCC6Wcjs.createFarmSourceLocator.call(void 0, code, () => this.getCombinedSourcemap());
|
|
5002
5003
|
this.error(
|
|
5003
|
-
|
|
5004
|
+
_chunkODYKCC6Wcjs.formatFarmDiagnostic.call(void 0,
|
|
5004
5005
|
createServerFnBoundaryDiagnostic(violation, id, locate(violation.start)),
|
|
5005
5006
|
currentConfig.root
|
|
5006
5007
|
)
|
|
@@ -5042,13 +5043,13 @@ export { manifest };
|
|
|
5042
5043
|
transformed = true;
|
|
5043
5044
|
}
|
|
5044
5045
|
}
|
|
5045
|
-
if (
|
|
5046
|
+
if (_chunkODYKCC6Wcjs.hasUseClientDirective.call(void 0, transformedCode)) {
|
|
5046
5047
|
const clientBoundarySource = transformedCode;
|
|
5047
5048
|
const moduleInfo = this.getModuleInfo(id);
|
|
5048
5049
|
if (moduleInfo) {
|
|
5049
5050
|
moduleInfo.isClientComponent = true;
|
|
5050
5051
|
}
|
|
5051
|
-
transformedCode =
|
|
5052
|
+
transformedCode = _chunkODYKCC6Wcjs.stripUseClientDirective.call(void 0, transformedCode);
|
|
5052
5053
|
transformed = true;
|
|
5053
5054
|
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _434 => _434.getConfig, 'call', _435 => _435()]), () => ( options));
|
|
5054
5055
|
let isolatedModuleReference = null;
|
|
@@ -5056,12 +5057,12 @@ export { manifest };
|
|
|
5056
5057
|
const cleanId = id.split("?", 1)[0];
|
|
5057
5058
|
const selectedIsolatedModules = _nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _438 => _438.getRouteManager, 'call', _439 => _439(), 'access', _440 => _440.getIsolatedClientBoundaryModules, 'call', _441 => _441(root)])));
|
|
5058
5059
|
const selectedForIsolatedHydration = _optionalChain([selectedIsolatedModules, 'optionalAccess', _442 => _442.has, 'call', _443 => _443(path6.resolve(cleanId))]) === true;
|
|
5059
|
-
if (_chunk67MZTLTFcjs.isReactRenderer.call(void 0, _chunk67MZTLTFcjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (
|
|
5060
|
-
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))) {
|
|
5061
5062
|
isolatedModuleReference = _chunkGC5ROI3Acjs.toViteModuleId.call(void 0, cleanId, root);
|
|
5062
5063
|
const islandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([currentConfig, 'access', _444 => _444.experimental, 'optionalAccess', _445 => _445.serverComponents])) === "islands";
|
|
5063
|
-
const explicitStrategy =
|
|
5064
|
-
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;
|
|
5065
5066
|
if (inference) {
|
|
5066
5067
|
for (const file of inference.files) {
|
|
5067
5068
|
if (file !== path6.resolve(cleanId)) this.addWatchFile(file);
|
|
@@ -5248,10 +5249,10 @@ if (import.meta.hot) {
|
|
|
5248
5249
|
if (!watched.includes("/node_modules/") && !isFarmGeneratedOutput(watched)) {
|
|
5249
5250
|
_optionalChain([farmApp, 'optionalAccess', _453 => _453.getRouteManager, 'call', _454 => _454(), 'access', _455 => _455.noteSourceChange, 'call', _456 => _456(id, change.event)]);
|
|
5250
5251
|
}
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5252
|
+
_chunkODYKCC6Wcjs.invalidateFarmClientReachableModules.call(void 0, );
|
|
5253
|
+
_chunkODYKCC6Wcjs.invalidateFarmClientOnlyScan.call(void 0, );
|
|
5254
|
+
_chunkHVMQAVZKcjs.invalidateFarmRouteRootInferences.call(void 0, );
|
|
5255
|
+
_chunkODYKCC6Wcjs.dropLatestPackageClientBoundaryCache.call(void 0, );
|
|
5255
5256
|
},
|
|
5256
5257
|
async handleHotUpdate(ctx) {
|
|
5257
5258
|
if (pendingClientSetup && !farmSetupContext.getStore()) await pendingClientSetup;
|
|
@@ -5284,14 +5285,14 @@ if (import.meta.hot) {
|
|
|
5284
5285
|
}
|
|
5285
5286
|
server2.ws.send({ type: "full-reload", path: "*" });
|
|
5286
5287
|
};
|
|
5287
|
-
if (normalizedFile.includes(
|
|
5288
|
+
if (normalizedFile.includes(_chunkODYKCC6Wcjs.FARM_CLIENT_REFERENCE_DIRECTORY) && normalizedFile.startsWith(
|
|
5288
5289
|
path6.posix.join(
|
|
5289
5290
|
_chunkGC5ROI3Acjs.toPosixPath.call(void 0, _optionalChain([currentFarmConfig, 'optionalAccess', _459 => _459.root]) || options.root || server2.config.root),
|
|
5290
|
-
|
|
5291
|
+
_chunkODYKCC6Wcjs.FARM_CLIENT_REFERENCE_DIRECTORY
|
|
5291
5292
|
)
|
|
5292
5293
|
))
|
|
5293
5294
|
return modules;
|
|
5294
|
-
if (currentFarmConfig && /\/route\.(?:ts|tsx|js|jsx)$/.test(normalizedFile) &&
|
|
5295
|
+
if (currentFarmConfig && /\/route\.(?:ts|tsx|js|jsx)$/.test(normalizedFile) && _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, currentFarmConfig).some(
|
|
5295
5296
|
(appDir) => normalizedFile.startsWith(`${_chunkGC5ROI3Acjs.toPosixPath.call(void 0, appDir)}/api/`)
|
|
5296
5297
|
)) {
|
|
5297
5298
|
for (const mod of modules) server2.moduleGraph.invalidateModule(mod);
|
|
@@ -5299,7 +5300,7 @@ if (import.meta.hot) {
|
|
|
5299
5300
|
reloadAfterEdit();
|
|
5300
5301
|
return [];
|
|
5301
5302
|
}
|
|
5302
|
-
const currentSrcRoot = currentFarmConfig ?
|
|
5303
|
+
const currentSrcRoot = currentFarmConfig ? _chunkQMR2TUVZcjs.getFarmSourceRoots.call(void 0, currentFarmConfig).map((source) => path6.join(source.root, source.srcDir).replace(/\\/g, "/")).find((sourceRoot) => normalizedFile.startsWith(`${sourceRoot}/`)) || null : null;
|
|
5303
5304
|
if (currentSrcRoot && normalizedFile.startsWith(`${currentSrcRoot}/`) && _chunkYUCU6XB4cjs.isProgrammaticRoutesFileName.call(void 0, normalizedFile)) {
|
|
5304
5305
|
logUpdate("PAGE", `updated ${path6.basename(file)}`);
|
|
5305
5306
|
for (const mod of modules) {
|
|
@@ -5329,7 +5330,8 @@ if (import.meta.hot) {
|
|
|
5329
5330
|
let clientPlanCurrent = false;
|
|
5330
5331
|
if (isHydrationPlanSource && (isolatedHydrationMode === "enabled" || isolatedHydrationMode === "analyze" || tracksAsyncOwnerIslands)) {
|
|
5331
5332
|
const routeManager = planRouteManager;
|
|
5332
|
-
|
|
5333
|
+
await _optionalChain([ctx, 'access', _469 => _469.read, 'optionalCall', _470 => _470()]);
|
|
5334
|
+
if (_optionalChain([routeManager, 'optionalAccess', _471 => _471.isEditPlanNeutral, 'call', _472 => _472(file)])) {
|
|
5333
5335
|
clientPlanCurrent = true;
|
|
5334
5336
|
} else if (routeManager) {
|
|
5335
5337
|
routeManager.noteSourceChange(file, "update");
|
|
@@ -5390,7 +5392,7 @@ if (import.meta.hot) {
|
|
|
5390
5392
|
}
|
|
5391
5393
|
return [];
|
|
5392
5394
|
}
|
|
5393
|
-
if (!clientPlanCurrent) _optionalChain([farmApp, 'optionalAccess',
|
|
5395
|
+
if (!clientPlanCurrent) _optionalChain([farmApp, 'optionalAccess', _473 => _473.getRouteManager, 'call', _474 => _474(), 'access', _475 => _475.invalidateClientManifest, 'call', _476 => _476()]);
|
|
5394
5396
|
const manifestModule = server2.moduleGraph.getModuleById("/@farm/manifest");
|
|
5395
5397
|
if (manifestModule) {
|
|
5396
5398
|
server2.moduleGraph.invalidateModule(manifestModule);
|
|
@@ -5405,7 +5407,7 @@ if (import.meta.hot) {
|
|
|
5405
5407
|
return [];
|
|
5406
5408
|
}
|
|
5407
5409
|
}
|
|
5408
|
-
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) {
|
|
5409
5411
|
logUpdate("PAGE", `updated ${path6.basename(file)}`);
|
|
5410
5412
|
reloadAfterEdit();
|
|
5411
5413
|
return [];
|
|
@@ -5503,7 +5505,7 @@ function createPageDataMiddlewareResponse(res) {
|
|
|
5503
5505
|
return (...args) => {
|
|
5504
5506
|
if (captures(target.statusCode, target.getHeader("location"))) {
|
|
5505
5507
|
const callback = args.find((arg) => typeof arg === "function");
|
|
5506
|
-
_optionalChain([callback, 'optionalCall',
|
|
5508
|
+
_optionalChain([callback, 'optionalCall', _483 => _483()]);
|
|
5507
5509
|
return property === "write" ? true : response;
|
|
5508
5510
|
}
|
|
5509
5511
|
return target[property](...args);
|
|
@@ -5567,12 +5569,12 @@ function isFarmClientVirtualId(id) {
|
|
|
5567
5569
|
}
|
|
5568
5570
|
function isClientEnvironment(context, loadOptions) {
|
|
5569
5571
|
const environment = context.environment;
|
|
5570
|
-
if (_optionalChain([environment, 'optionalAccess',
|
|
5571
|
-
if (_optionalChain([environment, 'optionalAccess',
|
|
5572
|
-
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;
|
|
5573
5575
|
}
|
|
5574
5576
|
function invalidateProgrammaticClientRouteModules(server) {
|
|
5575
|
-
const graph = _optionalChain([server, 'access',
|
|
5577
|
+
const graph = _optionalChain([server, 'access', _488 => _488.environments, 'optionalAccess', _489 => _489.client, 'optionalAccess', _490 => _490.moduleGraph]);
|
|
5576
5578
|
if (!graph) return;
|
|
5577
5579
|
for (const [id, module] of graph.idToModuleMap) {
|
|
5578
5580
|
if (_chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, id)) graph.invalidateModule(module);
|
|
@@ -5582,19 +5584,19 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
5582
5584
|
const parsed = _chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, moduleId);
|
|
5583
5585
|
const routesFile = resolveRealModuleFile(parsed.filePath, root);
|
|
5584
5586
|
watchFile(routesFile);
|
|
5585
|
-
return
|
|
5587
|
+
return _chunkODYKCC6Wcjs.generateProgrammaticClientRouteModule.call(void 0, {
|
|
5586
5588
|
kind: parsed.kind,
|
|
5587
5589
|
routePath: parsed.routePath,
|
|
5588
5590
|
routesFile,
|
|
5589
|
-
route: parsed.kind === "api" ? void 0 : _optionalChain([clientRoutes, 'optionalAccess',
|
|
5590
|
-
|
|
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)
|
|
5591
5593
|
)]),
|
|
5592
5594
|
rendererServer: renderer.server,
|
|
5593
5595
|
toImportSpecifier: (file) => toProgrammaticRouteImportSpecifier(file, root)
|
|
5594
5596
|
});
|
|
5595
5597
|
}
|
|
5596
5598
|
function resolveRealModuleFile(filePath, root) {
|
|
5597
|
-
const resolved = _nullishCoalesce(
|
|
5599
|
+
const resolved = _nullishCoalesce(_chunkODYKCC6Wcjs.resolveModuleSourcePath.call(void 0, filePath, root), () => ( filePath));
|
|
5598
5600
|
try {
|
|
5599
5601
|
return _chunkGC5ROI3Acjs.toPosixPath.call(void 0, fs2.realpathSync(resolved));
|
|
5600
5602
|
} catch (e28) {
|
|
@@ -5908,12 +5910,12 @@ async function parseRouteModuleProps(routeModule, input) {
|
|
|
5908
5910
|
}
|
|
5909
5911
|
const schemas = routeModule.__farmRouteSchemas;
|
|
5910
5912
|
const params = parseRouteModuleSchema(
|
|
5911
|
-
_optionalChain([schemas, 'optionalAccess',
|
|
5913
|
+
_optionalChain([schemas, 'optionalAccess', _494 => _494.params]),
|
|
5912
5914
|
input.props.params,
|
|
5913
5915
|
"params",
|
|
5914
5916
|
input.routePath
|
|
5915
5917
|
);
|
|
5916
|
-
const search = parseRouteModuleSchema(_optionalChain([schemas, 'optionalAccess',
|
|
5918
|
+
const search = parseRouteModuleSchema(_optionalChain([schemas, 'optionalAccess', _495 => _495.search]), input.search, "search", input.routePath);
|
|
5917
5919
|
return {
|
|
5918
5920
|
...input.props,
|
|
5919
5921
|
params,
|
|
@@ -5933,12 +5935,12 @@ function parseRouteModuleSchema(schema, value, label, routePath) {
|
|
|
5933
5935
|
}
|
|
5934
5936
|
}
|
|
5935
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) {
|
|
5936
|
-
const providerClientCode =
|
|
5938
|
+
const providerClientCode = _chunkHVMQAVZKcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
5937
5939
|
integrationProviders,
|
|
5938
5940
|
root,
|
|
5939
5941
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
5940
5942
|
);
|
|
5941
|
-
const clientPluginEntry =
|
|
5943
|
+
const clientPluginEntry = _chunkMBD34AS5cjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
5942
5944
|
plugins,
|
|
5943
5945
|
root,
|
|
5944
5946
|
srcDir,
|
|
@@ -5988,7 +5990,7 @@ async function createFarmServerTreePageElement(source, pathname) {
|
|
|
5988
5990
|
return null;
|
|
5989
5991
|
}
|
|
5990
5992
|
}
|
|
5991
|
-
${islandValues ? `${
|
|
5993
|
+
${islandValues ? `${_chunkHVMQAVZKcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
|
|
5992
5994
|
let farmLastRouteState = null;
|
|
5993
5995
|
|
|
5994
5996
|
// A hot update to a layout tree's client module renders the route again.
|
|
@@ -6828,7 +6830,7 @@ async function loadLayoutComponents(layouts = [], params = {}, source) {
|
|
|
6828
6830
|
return loadedLayouts;
|
|
6829
6831
|
}
|
|
6830
6832
|
|
|
6831
|
-
${
|
|
6833
|
+
${_chunkHVMQAVZKcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
6832
6834
|
function wrapWithLoadedLayouts(element, loadedLayouts, params) {
|
|
6833
6835
|
let wrapped = element;
|
|
6834
6836
|
for (let index = loadedLayouts.length - 1; index >= 0; index--) {
|
|
@@ -7126,7 +7128,7 @@ function readActiveLayoutPatterns() {
|
|
|
7126
7128
|
);
|
|
7127
7129
|
}
|
|
7128
7130
|
|
|
7129
|
-
${
|
|
7131
|
+
${_chunkHVMQAVZKcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
|
|
7130
7132
|
|
|
7131
7133
|
function activateFragmentScripts(root) {
|
|
7132
7134
|
for (const script of Array.from(root.querySelectorAll?.('script') || [])) {
|
|
@@ -7185,7 +7187,7 @@ function getLayoutShell(root, patterns, index, find) {
|
|
|
7185
7187
|
return shell.innerHTML;
|
|
7186
7188
|
}
|
|
7187
7189
|
|
|
7188
|
-
${islandValues ?
|
|
7190
|
+
${islandValues ? _chunkHVMQAVZKcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceNavigationBoundary(
|
|
7189
7191
|
container,
|
|
7190
7192
|
fragment,
|
|
7191
7193
|
currentPatterns,
|
|
@@ -7258,7 +7260,7 @@ ${islandValues ? `
|
|
|
7258
7260
|
return nextTarget;
|
|
7259
7261
|
}
|
|
7260
7262
|
|
|
7261
|
-
${islandValues ? `${
|
|
7263
|
+
${islandValues ? `${_chunkHVMQAVZKcjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
|
|
7262
7264
|
|
|
7263
7265
|
// Islands mode navigates as the production client does: it fetches the page itself, names the
|
|
7264
7266
|
// layouts it shows by key (F-Layouts), and asks for flush markers (F-Stream), so the shell arrives
|
|
@@ -7847,6 +7849,27 @@ function farmIslandsOnlyDocument() {
|
|
|
7847
7849
|
}
|
|
7848
7850
|
},
|
|
7849
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
|
+
}` : ""}
|
|
7850
7873
|
${isolatedHydrationEnabled ? `const isolatedHydration =
|
|
7851
7874
|
hasIsolatedClientBoundaries &&
|
|
7852
7875
|
!layoutShouldHydrate
|
|
@@ -7955,10 +7978,10 @@ function generateClientManifest(bundle) {
|
|
|
7955
7978
|
return manifest;
|
|
7956
7979
|
}
|
|
7957
7980
|
async function defineConfig(config = {}) {
|
|
7958
|
-
const tailwindVitePlugin = await
|
|
7981
|
+
const tailwindVitePlugin = await _chunkMBD34AS5cjs.loadTailwindVitePlugin.call(void 0, );
|
|
7959
7982
|
const appRoot = path6.resolve(config.root || process.cwd());
|
|
7960
|
-
if (_optionalChain([config, 'access',
|
|
7961
|
-
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(
|
|
7962
7985
|
({ resolveFarmLayers }) => resolveFarmLayers(config, {
|
|
7963
7986
|
root: appRoot,
|
|
7964
7987
|
mode: process.env.NODE_ENV === "production" ? "production" : "development"
|
|
@@ -7967,11 +7990,11 @@ async function defineConfig(config = {}) {
|
|
|
7967
7990
|
config = layeredConfig;
|
|
7968
7991
|
}
|
|
7969
7992
|
config.renderer = _chunk67MZTLTFcjs.resolveFarmRenderer.call(void 0, config.renderer);
|
|
7970
|
-
config.images =
|
|
7993
|
+
config.images = _chunkHVMQAVZKcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, { root: appRoot, dev: true });
|
|
7971
7994
|
const rendererVitePlugins = await _chunk67MZTLTFcjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, appRoot, {
|
|
7972
7995
|
ssr: true
|
|
7973
7996
|
});
|
|
7974
|
-
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, ) : [];
|
|
7975
7998
|
const nodeBuiltinStubs = {
|
|
7976
7999
|
"node:string_decoder": "data:text/javascript,export class StringDecoder { write(buf) { return ''; } end() { return ''; } }; export default StringDecoder;",
|
|
7977
8000
|
"node:buffer": "data:text/javascript,export const Buffer = { from: () => ({}), alloc: () => ({}), isBuffer: () => false }; export default { Buffer };",
|
|
@@ -8059,20 +8082,20 @@ async function defineConfig(config = {}) {
|
|
|
8059
8082
|
if (!serverStarted) {
|
|
8060
8083
|
serverStarted = true;
|
|
8061
8084
|
const elapsed = Date.now() - startTime;
|
|
8062
|
-
const address = _optionalChain([server, 'access',
|
|
8085
|
+
const address = _optionalChain([server, 'access', _498 => _498.httpServer, 'optionalAccess', _499 => _499.address, 'call', _500 => _500()]);
|
|
8063
8086
|
const resolvedPort = typeof address === "object" && address ? address.port : server.config.server.port || port || 3e3;
|
|
8064
8087
|
const hostConfig = server.config.server.host;
|
|
8065
8088
|
const isExposed = hostConfig === true || hostConfig === "0.0.0.0";
|
|
8066
8089
|
console.log("");
|
|
8067
8090
|
console.log(
|
|
8068
|
-
` ${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`)}`
|
|
8069
8092
|
);
|
|
8070
8093
|
console.log("");
|
|
8071
8094
|
console.log(
|
|
8072
8095
|
` ${pc.dim("\u279C")} ${pc.bold("Local:")} ${pc.cyan(`http://localhost:${resolvedPort}/`)}`
|
|
8073
8096
|
);
|
|
8074
8097
|
if (isExposed) {
|
|
8075
|
-
const os =
|
|
8098
|
+
const os = _chunkUZM3PDKKcjs.__require.call(void 0, "os");
|
|
8076
8099
|
const interfaces = os.networkInterfaces();
|
|
8077
8100
|
for (const name of Object.keys(interfaces)) {
|
|
8078
8101
|
for (const iface of interfaces[name] || []) {
|
|
@@ -8098,8 +8121,8 @@ async function defineConfig(config = {}) {
|
|
|
8098
8121
|
return {
|
|
8099
8122
|
plugins: [
|
|
8100
8123
|
// `farm dev --desktop`: only the desktop window gets an answer, as in the packaged app.
|
|
8101
|
-
|
|
8102
|
-
|
|
8124
|
+
_chunkY2FEFQAYcjs.farmDesktopDevGuardPlugin.call(void 0, config.basePath),
|
|
8125
|
+
_chunkHVMQAVZKcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
8103
8126
|
tailwindVitePlugin,
|
|
8104
8127
|
...rendererVitePlugins,
|
|
8105
8128
|
...reactRefreshPlugins,
|
|
@@ -8108,16 +8131,16 @@ async function defineConfig(config = {}) {
|
|
|
8108
8131
|
farmServerOnlyEntriesPlugin({ distDir: config.distDir || ".farm" }),
|
|
8109
8132
|
farmIslandContainersPlugin(config),
|
|
8110
8133
|
farmPlugin(config),
|
|
8111
|
-
|
|
8134
|
+
_chunkODYKCC6Wcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
|
|
8112
8135
|
farmBrandingPlugin
|
|
8113
8136
|
],
|
|
8114
8137
|
customLogger: farmLogger,
|
|
8115
8138
|
clearScreen: false,
|
|
8116
8139
|
optimizeDeps: {
|
|
8117
|
-
...
|
|
8118
|
-
|
|
8140
|
+
..._chunkHVMQAVZKcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
8141
|
+
_chunkHVMQAVZKcjs.createFarmClientOptimizeDepsEntries.call(void 0,
|
|
8119
8142
|
appRoot,
|
|
8120
|
-
|
|
8143
|
+
_chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, { ...config, root: appRoot })
|
|
8121
8144
|
),
|
|
8122
8145
|
config.renderer
|
|
8123
8146
|
),
|
|
@@ -8157,8 +8180,8 @@ async function defineConfig(config = {}) {
|
|
|
8157
8180
|
dedupe: [...config.renderer.dedupe || []],
|
|
8158
8181
|
// Stub out problematic server-only modules during dev mode
|
|
8159
8182
|
alias: {
|
|
8160
|
-
...
|
|
8161
|
-
...
|
|
8183
|
+
..._chunkQMR2TUVZcjs.getFarmLayerAliases.call(void 0, config.layers),
|
|
8184
|
+
..._chunkHVMQAVZKcjs.createFarmSourceAlias.call(void 0, appRoot, config.srcDir),
|
|
8162
8185
|
// Nitro internals that should not be resolved in browser
|
|
8163
8186
|
"supports-color": "data:text/javascript,export default false; export const supportsColor = false; export const stdout = false; export const stderr = false;",
|
|
8164
8187
|
"@poppinss/dumper": "data:text/javascript,export default {};",
|