@farm.js/core 0.1.77 → 0.1.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/after.cjs +1 -1
- package/dist/after.mjs +1 -1
- package/dist/{agent-mcp-handler-PJKZHYSA.mjs → agent-mcp-handler-EDJNU224.mjs} +1 -1
- package/dist/{agent-mcp-handler-73SGWVZT.cjs → agent-mcp-handler-LNBYLRTZ.cjs} +1 -1
- package/dist/{agent-mcp.d-B1h3RznZ.d.ts → agent-mcp.d-BErtnhV2.d.ts} +1 -1
- package/dist/{agent-mcp.d-WFQotg8M.d.mts → agent-mcp.d-CYHfcjur.d.mts} +1 -1
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/agent-runtime.mjs +2 -2
- package/dist/analyzer-KVTUYGTT.cjs +16 -0
- package/dist/{analyzer-64YS2OXQ.mjs → analyzer-M2BG6QYU.mjs} +3 -3
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.mjs +1 -1
- package/dist/api/client.native.cjs +1 -1
- package/dist/api/client.native.mjs +1 -1
- package/dist/api/node.cjs +1 -1
- package/dist/api/node.d.mts +4 -4
- package/dist/api/node.d.ts +4 -4
- package/dist/api/node.mjs +1 -1
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.cjs +1 -1
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api/runtime.mjs +1 -1
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +5 -5
- package/dist/api.d.ts +5 -5
- package/dist/api.mjs +5 -5
- package/dist/{app-manifest.d-EZEYG-tD.d.mts → app-manifest.d-6NCkLQ1y.d.mts} +1 -1
- package/dist/{app-manifest.d-Ktsqsuk9.d.ts → app-manifest.d-DuqLBcmi.d.ts} +1 -1
- package/dist/app-markdown.cjs +1 -1
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/app-markdown.mjs +1 -1
- package/dist/{app.d-CSh3y8w8.d.ts → app.d-Bz6vYBFF.d.ts} +4 -4
- package/dist/{app.d-DTkqYcIr.d.mts → app.d-Dk2HkvPh.d.mts} +4 -4
- package/dist/cache.cjs +1 -1
- package/dist/cache.mjs +1 -1
- package/dist/{chunk-IIVZTGGP.cjs → chunk-26CNCIFI.cjs} +2 -2
- package/dist/{chunk-PUEPDMWY.cjs → chunk-2G6JPLSL.cjs} +19 -19
- package/dist/{chunk-HFJLMALC.cjs → chunk-5DREJN4G.cjs} +4 -4
- package/dist/{chunk-LTDMJD2F.cjs → chunk-5KISFWD2.cjs} +4 -4
- package/dist/{chunk-5WFPZG7K.mjs → chunk-5REIO5DT.mjs} +4 -4
- package/dist/{chunk-SYPEMXW2.mjs → chunk-6MZSTPD2.mjs} +1 -1
- package/dist/{chunk-63EFR2WF.cjs → chunk-6XDDE7M6.cjs} +3 -3
- package/dist/{chunk-IXC6WDMT.mjs → chunk-7JTVN6IJ.mjs} +1 -1
- package/dist/{chunk-QODXWUGQ.mjs → chunk-7RQ5KAK6.mjs} +1 -1
- package/dist/{chunk-QVBXTSIZ.mjs → chunk-7V5M43ND.mjs} +1 -1
- package/dist/{chunk-ORWXJDUN.mjs → chunk-A37D6LOS.mjs} +1 -1
- package/dist/{chunk-7EOSFIPN.cjs → chunk-A4WWKG2B.cjs} +2 -2
- package/dist/{chunk-65XXHTVJ.mjs → chunk-A7EJATEW.mjs} +2 -2
- package/dist/{chunk-IHMSLS2O.mjs → chunk-AHGOHPRN.mjs} +13 -13
- package/dist/{chunk-JRBWBMP2.mjs → chunk-B3IRRANH.mjs} +1 -1
- package/dist/{chunk-GC2BSXQS.cjs → chunk-BZJYPIFZ.cjs} +7 -7
- package/dist/{chunk-WHNNDFCJ.mjs → chunk-CBP7AKZH.mjs} +1 -1
- package/dist/{chunk-QUEYL2WM.cjs → chunk-CKNZJFK5.cjs} +1 -1
- package/dist/{chunk-YRQ44JTF.cjs → chunk-DD2ANOEF.cjs} +254 -168
- package/dist/{chunk-MQW4LHJR.cjs → chunk-DPBQRDWW.cjs} +1 -1
- package/dist/{chunk-YTGNMKRA.mjs → chunk-E7V2GYBP.mjs} +1 -1
- package/dist/{chunk-NTHAZLVS.mjs → chunk-EBFTAVGD.mjs} +126 -40
- package/dist/{chunk-RFXEQYPH.cjs → chunk-EVVV2XZ2.cjs} +33 -20
- package/dist/{chunk-YROK6CJC.cjs → chunk-F7PKUP6P.cjs} +9 -9
- package/dist/{chunk-JD42G6BN.cjs → chunk-FOULIN4S.cjs} +2 -2
- package/dist/{chunk-OQZF6H6G.cjs → chunk-H5OVJHXY.cjs} +4 -4
- package/dist/{chunk-SIYELCIX.cjs → chunk-HVMQAVZK.cjs} +78 -78
- package/dist/{chunk-D2RLADWN.mjs → chunk-IGE5BAWK.mjs} +33 -20
- package/dist/{chunk-FTQUNBRN.cjs → chunk-IWGGRXD2.cjs} +2 -2
- package/dist/{chunk-SFSTZ7TB.cjs → chunk-K3ZELA6U.cjs} +2 -2
- package/dist/{chunk-DZ3AZ7UK.cjs → chunk-KZ5BOWJS.cjs} +9 -9
- package/dist/{chunk-ZBE5EHVJ.mjs → chunk-LIC6CMLB.mjs} +5 -5
- package/dist/{chunk-NQZWLIPT.cjs → chunk-LJKTJNOF.cjs} +3 -3
- package/dist/{chunk-UYACD4SH.cjs → chunk-LMXGCFAM.cjs} +1 -1
- package/dist/{chunk-7SAGHWWU.cjs → chunk-MBD34AS5.cjs} +2 -2
- package/dist/{chunk-WZVESREI.cjs → chunk-NB2ZEBIS.cjs} +186 -164
- package/dist/{chunk-DSRWQ4SJ.cjs → chunk-NNGBTJCX.cjs} +3 -3
- package/dist/{chunk-QDHR54S6.cjs → chunk-OBVBII5K.cjs} +5 -5
- package/dist/{chunk-PMKUTZGR.cjs → chunk-ODYKCC6W.cjs} +6 -6
- package/dist/{chunk-3AJQFVWW.mjs → chunk-OGVOKAQU.mjs} +1 -1
- package/dist/{chunk-BTHNOAOF.mjs → chunk-PNWRH6TR.mjs} +2 -2
- package/dist/{chunk-3GMD2E4Q.mjs → chunk-QES76U42.mjs} +1 -1
- package/dist/{chunk-FNVGK72M.mjs → chunk-R77D7TCZ.mjs} +6 -6
- package/dist/{chunk-7EXFAJST.mjs → chunk-RIMEFQYO.mjs} +42 -20
- package/dist/{chunk-2QPTZMGK.mjs → chunk-S6RUJRWI.mjs} +1 -1
- package/dist/chunk-TIZJYHB7.mjs +42 -0
- package/dist/chunk-UZM3PDKK.cjs +46 -0
- package/dist/{chunk-TQOYIPMQ.mjs → chunk-VCW6BR6U.mjs} +1 -1
- package/dist/{chunk-SL2BSPDJ.mjs → chunk-VO5XDZHK.mjs} +1 -1
- package/dist/{chunk-WXMR3OHY.mjs → chunk-VRI43FDN.mjs} +1 -1
- package/dist/{chunk-SMYDCZBW.mjs → chunk-VRJAMU34.mjs} +1 -1
- package/dist/{chunk-CF74ABRI.mjs → chunk-WJ4NUY2H.mjs} +2 -2
- package/dist/{chunk-FPGSIOWS.mjs → chunk-X2SEYK7I.mjs} +2 -2
- package/dist/{chunk-FCHEO3LG.cjs → chunk-XGS76V7L.cjs} +2 -2
- package/dist/{chunk-3QM74STY.cjs → chunk-Y2FEFQAY.cjs} +3 -3
- package/dist/{chunk-FVVGEGQ2.cjs → chunk-ZCYGYIC2.cjs} +2 -2
- package/dist/{chunk-OCKQ3YOH.mjs → chunk-ZEWIWAS2.mjs} +1 -1
- package/dist/{cli-runtime.d-DljFfr8T.d.ts → cli-runtime.d-BG9q2_vC.d.ts} +6 -6
- package/dist/{cli-runtime.d-HSkdfvoq.d.mts → cli-runtime.d-CGMGs1Zz.d.mts} +6 -6
- package/dist/client/lifecycle.cjs +1 -1
- package/dist/client/lifecycle.mjs +1 -1
- package/dist/{client-component.d-_otXB__v.d.ts → client-component.d-B84GPb_u.d.ts} +1 -1
- package/dist/{client-component.d-B-1dIlsw.d.mts → client-component.d-CdsG1E7p.d.mts} +1 -1
- package/dist/client-plugins.cjs +1 -1
- package/dist/{client-plugins.d-BmBzvfSP.d.mts → client-plugins.d-DX-iCJWE.d.mts} +1 -1
- package/dist/{client-plugins.d-MjxlvbCK.d.ts → client-plugins.d-FptsHgls.d.ts} +1 -1
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client-plugins.mjs +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.d.mts +7 -7
- package/dist/client.d.ts +7 -7
- package/dist/client.mjs +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/config.mjs +1 -1
- package/dist/cron.cjs +1 -1
- package/dist/cron.mjs +1 -1
- package/dist/deferred.cjs +1 -1
- package/dist/deferred.mjs +1 -1
- package/dist/deployment.cjs +1 -1
- package/dist/deployment.mjs +1 -1
- package/dist/desktop.cjs +1 -1
- package/dist/desktop.d.mts +3 -3
- package/dist/desktop.d.ts +3 -3
- package/dist/desktop.mjs +1 -1
- package/dist/{dev-guard-ZDIELV6Q.mjs → dev-guard-K3GJDPEQ.mjs} +1 -1
- package/dist/{dev-guard-ZLLKVO5T.cjs → dev-guard-VIEEA4LS.cjs} +1 -1
- package/dist/{devtools-7LHXG2VS.mjs → devtools-7P3OUNLV.mjs} +4 -4
- package/dist/{devtools-NNQN66EZ.cjs → devtools-TMATFNUY.cjs} +5 -5
- package/dist/{devtools-client-X5OQCXDF.cjs → devtools-client-BKBCCORT.cjs} +1 -1
- package/dist/{devtools-client-SU4XH46J.mjs → devtools-client-L4MUWD6K.mjs} +1 -1
- package/dist/{devtools-ui-CYBVFLPH.mjs → devtools-ui-BOG33MT5.mjs} +1 -1
- package/dist/{devtools-ui-SYRUXUA7.cjs → devtools-ui-C2EMF2SO.cjs} +1 -1
- package/dist/docs.cjs +6 -6
- package/dist/docs.d.mts +4 -4
- package/dist/docs.d.ts +4 -4
- package/dist/docs.mjs +5 -5
- package/dist/env-types.cjs +1 -1
- package/dist/env-types.mjs +1 -1
- package/dist/env.cjs +1 -1
- package/dist/env.mjs +1 -1
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.mjs +3 -3
- package/dist/environment.cjs +1 -1
- package/dist/environment.mjs +1 -1
- package/dist/font.cjs +1 -1
- package/dist/font.mjs +1 -1
- package/dist/{handler.d-C53zFDmp.d.ts → handler.d-Cy3XbY_W.d.ts} +1 -1
- package/dist/{handler.d-CaYopqaD.d.mts → handler.d-DSwLTpa5.d.mts} +1 -1
- package/dist/headers.cjs +1 -1
- package/dist/{headers.d-MBkD9ZLf.d.mts → headers.d-DiL9YTH3.d.mts} +1 -1
- package/dist/{headers.d-BvtpC90T.d.ts → headers.d-Qbjo38a0.d.ts} +1 -1
- package/dist/headers.mjs +1 -1
- package/dist/i18n/client.cjs +1 -1
- package/dist/i18n/client.mjs +1 -1
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.mjs +1 -1
- package/dist/i18n/server.cjs +1 -1
- package/dist/i18n/server.mjs +1 -1
- package/dist/image/server.cjs +1 -1
- package/dist/image/server.mjs +1 -1
- package/dist/image/sharp.cjs +1 -1
- package/dist/image/sharp.mjs +1 -1
- package/dist/image.cjs +1 -1
- package/dist/image.mjs +1 -1
- package/dist/index.cjs +37 -37
- package/dist/{index.d-Mikf-tdP.d.mts → index.d-CqQKX3s6.d.mts} +1 -1
- package/dist/{index.d-2hQpPZ-P.d.ts → index.d-OccJoC6I.d.ts} +1 -1
- package/dist/index.d.mts +22 -22
- package/dist/index.d.ts +22 -22
- package/dist/index.mjs +33 -33
- package/dist/instrumentation.cjs +1 -1
- package/dist/instrumentation.mjs +1 -1
- package/dist/integrations/orm.cjs +4 -4
- package/dist/integrations/orm.d.mts +2 -2
- package/dist/integrations/orm.d.ts +2 -2
- package/dist/integrations/orm.mjs +3 -3
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.cjs +1 -1
- package/dist/internal/app-markdown-runtime.d.mts +3 -3
- package/dist/internal/app-markdown-runtime.d.ts +3 -3
- package/dist/internal/app-markdown-runtime.mjs +1 -1
- package/dist/internal/build-runtime.cjs +28 -28
- package/dist/internal/build-runtime.d.mts +5 -5
- package/dist/internal/build-runtime.d.ts +5 -5
- package/dist/internal/build-runtime.mjs +27 -27
- package/dist/internal/cli-runtime.cjs +13 -13
- package/dist/internal/cli-runtime.d.mts +8 -8
- package/dist/internal/cli-runtime.d.ts +8 -8
- package/dist/internal/cli-runtime.mjs +12 -12
- package/dist/internal/client-error-overlay.cjs +5 -5
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +1 -1
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/client-runtime.mjs +1 -1
- package/dist/internal/compression-runtime.cjs +1 -1
- package/dist/internal/compression-runtime.d.mts +2 -2
- package/dist/internal/compression-runtime.d.ts +2 -2
- package/dist/internal/compression-runtime.mjs +1 -1
- package/dist/internal/config-runtime.cjs +6 -6
- package/dist/internal/config-runtime.d.mts +4 -4
- package/dist/internal/config-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.mjs +5 -5
- package/dist/internal/desktop-guard.cjs +1 -1
- package/dist/internal/desktop-guard.mjs +1 -1
- package/dist/internal/docs-precompiled-runtime.cjs +1 -1
- package/dist/internal/docs-precompiled-runtime.mjs +1 -1
- package/dist/internal/form-actions-client.cjs +1 -1
- package/dist/internal/form-actions-client.mjs +1 -1
- package/dist/internal/form-actions.cjs +1 -1
- package/dist/internal/form-actions.mjs +1 -1
- package/dist/internal/infra-analytics-runtime.cjs +7 -7
- package/dist/internal/infra-analytics-runtime.mjs +5 -5
- package/dist/internal/island-codec.cjs +1 -1
- package/dist/internal/island-codec.mjs +1 -1
- package/dist/internal/island-value-store.cjs +1 -1
- package/dist/internal/island-value-store.mjs +1 -1
- package/dist/internal/islands-boot.cjs +27 -6
- package/dist/internal/islands-boot.mjs +24 -3
- package/dist/internal/islands-runtime.cjs +1 -1
- package/dist/internal/islands-runtime.mjs +1 -1
- package/dist/internal/islands-server.cjs +1 -1
- package/dist/internal/islands-server.mjs +1 -1
- package/dist/internal/islx-client.cjs +1 -1
- package/dist/internal/islx-react.cjs +1 -1
- package/dist/internal/islx-server.cjs +1 -1
- package/dist/internal/isolated-boundary.cjs +1 -1
- package/dist/internal/isolated-boundary.mjs +1 -1
- package/dist/internal/metadata-image-runtime.cjs +1 -1
- package/dist/internal/metadata-image-runtime.mjs +1 -1
- package/dist/internal/native-server-fns.cjs +5 -5
- package/dist/internal/native-server-fns.mjs +4 -4
- package/dist/internal/product-telemetry-runtime.cjs +4 -4
- package/dist/internal/product-telemetry-runtime.mjs +3 -3
- package/dist/internal/production-node-env.cjs +1 -1
- package/dist/internal/production-node-env.mjs +1 -1
- package/dist/internal/production-runtime.cjs +7 -7
- package/dist/internal/production-runtime.d.mts +11 -11
- package/dist/internal/production-runtime.d.ts +11 -11
- package/dist/internal/production-runtime.mjs +6 -6
- package/dist/internal/react-cache.cjs +1 -1
- package/dist/internal/react-cache.mjs +1 -1
- package/dist/internal/request-cookies.cjs +1 -1
- package/dist/internal/request-cookies.mjs +1 -1
- package/dist/internal/server-fn-transform.cjs +1 -1
- package/dist/internal/server-fn-transform.mjs +1 -1
- package/dist/internal/server-tree.cjs +1 -1
- package/dist/internal/server-tree.mjs +1 -1
- package/dist/internal/start-manifest.cjs +1 -1
- package/dist/internal/start-manifest.d.mts +2 -2
- package/dist/internal/start-manifest.d.ts +2 -2
- package/dist/internal/start-manifest.mjs +1 -1
- package/dist/internal/vercel-edge-middleware.cjs +1 -1
- package/dist/internal/vercel-edge-middleware.mjs +1 -1
- package/dist/json-ld.cjs +1 -1
- package/dist/json-ld.mjs +1 -1
- package/dist/{layers-I7VE5Q2Y.mjs → layers-5ZD4764G.mjs} +1 -1
- package/dist/{layers-WP5K5F7W.cjs → layers-HMEGUEXM.cjs} +1 -1
- package/dist/libsql-http-2QD224YS.mjs +600 -0
- package/dist/libsql-http-M6LMNXCN.cjs +600 -0
- package/dist/{manager-YO2RHDYU.mjs → manager-OMTC5FOJ.mjs} +2 -2
- package/dist/{manager-R7FV4A56.cjs → manager-PX4QN4HK.cjs} +4 -4
- package/dist/markdown.cjs +1 -1
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.mjs +1 -1
- package/dist/middleware.cjs +5 -5
- package/dist/middleware.d.mts +2 -2
- package/dist/middleware.d.ts +2 -2
- package/dist/middleware.mjs +4 -4
- package/dist/mobile.cjs +1 -1
- package/dist/mobile.mjs +1 -1
- package/dist/{modules-KOKD4XS6.mjs → modules-3Q2ZCY4Q.mjs} +1 -1
- package/dist/{modules-QTP7WJPD.cjs → modules-KDHFBQ6L.cjs} +1 -1
- package/dist/{mount.d-DsP46XCy.d.mts → mount.d-AcJaUtHF.d.mts} +1 -1
- package/dist/{mount.d-GU-tNxbE.d.ts → mount.d-CPzqOm-a.d.ts} +1 -1
- package/dist/{native-server-fn-handler-LII4MDRR.mjs → native-server-fn-handler-WYYY4YBN.mjs} +1 -1
- package/dist/{native-server-fn-handler-IWNKQEXK.cjs → native-server-fn-handler-XRTZR7SZ.cjs} +1 -1
- package/dist/{native-specs-LDV6IZ4N.mjs → native-specs-A7YOL463.mjs} +1 -1
- package/dist/{native-specs-5OLED4MM.cjs → native-specs-JDPH26AO.cjs} +1 -1
- package/dist/{native-tree-G6ZWS7IR.mjs → native-tree-JDI3LJSH.mjs} +1 -1
- package/dist/{native-tree-D3PW64ZL.cjs → native-tree-MNUFN5G6.cjs} +1 -1
- package/dist/native.cjs +1 -1
- package/dist/native.mjs +1 -1
- package/dist/{navigation-delegate.d-CUtNOYLi.d.mts → navigation-delegate.d-C4i5Y39E.d.mts} +1 -1
- package/dist/{navigation-delegate.d-DsxNPrLT.d.ts → navigation-delegate.d-_Df9DnPY.d.ts} +1 -1
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/navigation.mjs +1 -1
- package/dist/{nitro-HKMVYIXY.cjs → nitro-NUCTYEKJ.cjs} +3 -3
- package/dist/{nitro-RHLKLYXH.mjs → nitro-VCJ6QQSI.mjs} +2 -2
- package/dist/{node-module-bundle-LIZ2KMVW.cjs → node-module-bundle-M6BISE2P.cjs} +1 -1
- package/dist/{node-module-bundle-VR6NV6AI.mjs → node-module-bundle-XPLBMXRD.mjs} +1 -1
- package/dist/observability.cjs +1 -1
- package/dist/observability.mjs +1 -1
- package/dist/og.cjs +1 -1
- package/dist/og.mjs +1 -1
- package/dist/platform.cjs +1 -1
- package/dist/platform.mjs +1 -1
- package/dist/{plugin-MW7IDV76.cjs → plugin-AGEFSU7K.cjs} +3 -3
- package/dist/{plugin-2KWR2X4B.mjs → plugin-TV6W7YNK.mjs} +2 -2
- package/dist/plugin.cjs +21 -21
- package/dist/plugin.d.mts +6 -6
- package/dist/plugin.d.ts +6 -6
- package/dist/plugin.mjs +20 -20
- package/dist/{port-CLL4BC4O.mjs → port-CEZTV776.mjs} +1 -1
- package/dist/{port-HASZTQGY.cjs → port-STMSGUVU.cjs} +1 -1
- package/dist/query/client.cjs +1 -1
- package/dist/query/client.mjs +1 -1
- package/dist/query/index.cjs +1 -1
- package/dist/query/index.mjs +1 -1
- package/dist/query/parsers.cjs +1 -1
- package/dist/query/parsers.mjs +1 -1
- package/dist/query/server.cjs +1 -1
- package/dist/query/server.mjs +1 -1
- package/dist/{render-plan.d-B7Xp-PPW.d.mts → render-plan.d-4V_NmaA6.d.mts} +1 -1
- package/dist/{render-plan.d-8K6S0h0L.d.ts → render-plan.d-CslZE7o7.d.ts} +1 -1
- package/dist/renderer/none/server.cjs +1 -1
- package/dist/renderer/none/server.mjs +1 -1
- package/dist/renderer/react/client.cjs +1 -1
- package/dist/renderer/react/client.mjs +1 -1
- package/dist/renderer/react/server.cjs +1 -1
- package/dist/renderer/react/server.mjs +1 -1
- package/dist/renderer/react/vite.cjs +1 -1
- package/dist/renderer/react/vite.mjs +1 -1
- package/dist/renderer-client.cjs +1 -1
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/renderer-client.mjs +1 -1
- package/dist/renderer.cjs +1 -1
- package/dist/renderer.mjs +1 -1
- package/dist/request.cjs +1 -1
- package/dist/{request.d-CuQxmOqX.d.ts → request.d-CbV3y7j3.d.ts} +1 -1
- package/dist/{request.d-nhqciCAz.d.mts → request.d-CmLTxEgS.d.mts} +1 -1
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/request.mjs +1 -1
- package/dist/{route-rendering.d-BSsdDYC1.d.ts → route-rendering.d-CETnXNez.d.ts} +1 -1
- package/dist/{route-rendering.d-CeF1FOnl.d.mts → route-rendering.d-CmoqfOmj.d.mts} +1 -1
- package/dist/router.cjs +1 -1
- package/dist/{router.d-C7yGlhDL.d.ts → router.d-Dga3N5YO.d.ts} +1 -1
- package/dist/{router.d-D462OX24.d.mts → router.d-ktz7pwYm.d.mts} +1 -1
- package/dist/router.mjs +1 -1
- package/dist/routes.cjs +1 -1
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/routes.mjs +1 -1
- package/dist/{rsc-pipeline-7PV6ARDS.cjs → rsc-pipeline-JLYD26AR.cjs} +9 -9
- package/dist/{rsc-pipeline-EZU4W4RL.mjs → rsc-pipeline-N7CWJW7T.mjs} +8 -8
- package/dist/{runtime-QOE3NRXF.cjs → runtime-F5NSS4DD.cjs} +11 -11
- package/dist/{runtime-RWLFEPS3.mjs → runtime-QXX2A4TS.mjs} +8 -8
- package/dist/{runtime.d-CORDJQMy.d.ts → runtime.d-BWLZUOfA.d.ts} +1 -1
- package/dist/{runtime.d-C-BHQMy5.d.mts → runtime.d-DuaXEM0p.d.mts} +1 -1
- package/dist/safe-fetch.cjs +1 -1
- package/dist/safe-fetch.mjs +1 -1
- package/dist/{schema-dev-notice-CA55V57L.mjs → schema-dev-notice-2GN5V7Y2.mjs} +1 -1
- package/dist/{schema-dev-notice-RWA2UTR6.cjs → schema-dev-notice-6VCOZGG2.cjs} +1 -1
- package/dist/schema.cjs +1 -1
- package/dist/schema.mjs +1 -1
- package/dist/{search-client-ZZLKVO5R.cjs → search-client-6NVC6HM2.cjs} +1 -1
- package/dist/{search-client-OXH6GBNO.mjs → search-client-W4PEFAQB.mjs} +1 -1
- package/dist/server-action-security.cjs +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/{server-components-status.d-BbADqqjq.d.ts → server-components-status.d-C5JpC7_Y.d.ts} +1 -1
- package/dist/{server-components-status.d-BJ6huueH.d.mts → server-components-status.d-CqxtJmqP.d.mts} +1 -1
- package/dist/server-fn-client.cjs +1 -1
- package/dist/server-fn-client.mjs +1 -1
- package/dist/server-fn.cjs +1 -1
- package/dist/server-fn.mjs +1 -1
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +4 -4
- package/dist/server-plugins.d.ts +4 -4
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query-client.cjs +1 -1
- package/dist/server-query-client.mjs +1 -1
- package/dist/server-query.cjs +1 -1
- package/dist/server-query.mjs +1 -1
- package/dist/server.cjs +91 -69
- package/dist/server.d.mts +12 -12
- package/dist/server.d.ts +12 -12
- package/dist/server.mjs +50 -28
- package/dist/{session-WPAT6H76.mjs → session-AK2OA5UZ.mjs} +3 -3
- package/dist/session-H4TWP73H.cjs +24 -0
- package/dist/{spa-router.d-DfjafHyX.d.mts → spa-router.d-BLE188EL.d.mts} +2 -2
- package/dist/{spa-router.d-DyGJLQc_.d.ts → spa-router.d-C3LzwTlY.d.ts} +2 -2
- package/dist/{ssg.d-D11lz_wr.d.ts → ssg.d-DisOfj0I.d.ts} +2 -2
- package/dist/{ssg.d-iiLTyLAO.d.mts → ssg.d-QrFyU6T4.d.mts} +2 -2
- package/dist/storage.cjs +3 -3
- package/dist/storage.d.mts +2 -2
- package/dist/storage.d.ts +2 -2
- package/dist/storage.mjs +2 -2
- package/dist/testing.cjs +4 -4
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.mjs +4 -4
- package/dist/theme/client.cjs +1 -1
- package/dist/theme/client.mjs +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.mjs +1 -1
- package/dist/theme/runtime.cjs +1 -1
- package/dist/theme/runtime.mjs +1 -1
- package/dist/theme/server.cjs +1 -1
- package/dist/theme/server.mjs +1 -1
- package/dist/{types.d-DC97bnjj.d.mts → types.d-DW2vyaUq.d.mts} +6 -1
- package/dist/{types.d-DC97bnjj.d.ts → types.d-DW2vyaUq.d.ts} +6 -1
- package/dist/{utils.d-D-GQeEfa.d.ts → utils.d-7YcgfTCK.d.ts} +1 -1
- package/dist/{utils.d-fW-95yEh.d.mts → utils.d-BlWZFgdL.d.mts} +1 -1
- package/dist/version.cjs +3 -3
- package/dist/version.mjs +2 -2
- package/dist/vite.cjs +21 -21
- package/dist/vite.d.mts +7 -7
- package/dist/vite.d.ts +7 -7
- package/dist/vite.mjs +20 -20
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +3 -5
- package/dist/analyzer-HTNXLX6N.cjs +0 -16
- package/dist/chunk-BTZ5O6VM.cjs +0 -14
- package/dist/chunk-Y6FXYEAI.mjs +0 -10
- package/dist/session-OU7M4CIF.cjs +0 -24
- package/dist/{chunk-WW62HKA2.cjs → chunk-4SLHSODZ.cjs} +2 -2
- package/dist/{chunk-RL47VZ6J.mjs → chunk-522K362I.mjs} +0 -0
- package/dist/{chunk-AF3PNVVF.cjs → chunk-AOTD2N5P.cjs} +0 -0
- package/dist/{chunk-PC5OZ4YR.cjs → chunk-CUZT7474.cjs} +0 -0
- package/dist/{chunk-BEXH6BGH.mjs → chunk-JKFN3YVG.mjs} +0 -0
- package/dist/{chunk-YTNE4KGC.cjs → chunk-MALGIHIC.cjs} +0 -0
- package/dist/{chunk-UOE6ZZZP.mjs → chunk-Q3DO7MVK.mjs} +0 -0
- package/dist/{chunk-GAAK3HDZ.mjs → chunk-XT2CHTDN.mjs} +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkMBD34AS5cjs = require('./chunk-MBD34AS5.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
@@ -9,7 +9,7 @@ var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkBZJYPIFZcjs = require('./chunk-BZJYPIFZ.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -48,7 +48,7 @@ var _chunkGC2BSXQScjs = require('./chunk-GC2BSXQS.cjs');
|
|
|
48
48
|
var _chunk6ZFGWB75cjs = require('./chunk-6ZFGWB75.cjs');
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
var
|
|
51
|
+
var _chunk5KISFWD2cjs = require('./chunk-5KISFWD2.cjs');
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
@@ -95,7 +95,7 @@ var _chunk52LTENREcjs = require('./chunk-52LTENRE.cjs');
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
98
|
+
var _chunkODYKCC6Wcjs = require('./chunk-ODYKCC6W.cjs');
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
var _chunk7KJJ4SBScjs = require('./chunk-7KJJ4SBS.cjs');
|
|
@@ -192,7 +192,7 @@ var _chunk2HW5LWAHcjs = require('./chunk-2HW5LWAH.cjs');
|
|
|
192
192
|
var _chunk2YJ4DHTDcjs = require('./chunk-2YJ4DHTD.cjs');
|
|
193
193
|
|
|
194
194
|
|
|
195
|
-
var
|
|
195
|
+
var _chunkCKNZJFK5cjs = require('./chunk-CKNZJFK5.cjs');
|
|
196
196
|
|
|
197
197
|
|
|
198
198
|
var _chunkWT6RAN2Icjs = require('./chunk-WT6RAN2I.cjs');
|
|
@@ -200,10 +200,10 @@ var _chunkWT6RAN2Icjs = require('./chunk-WT6RAN2I.cjs');
|
|
|
200
200
|
|
|
201
201
|
|
|
202
202
|
|
|
203
|
-
var
|
|
203
|
+
var _chunkAOTD2N5Pcjs = require('./chunk-AOTD2N5P.cjs');
|
|
204
204
|
|
|
205
205
|
|
|
206
|
-
var
|
|
206
|
+
var _chunkEVVV2XZ2cjs = require('./chunk-EVVV2XZ2.cjs');
|
|
207
207
|
|
|
208
208
|
|
|
209
209
|
|
|
@@ -221,7 +221,7 @@ var _chunkYDXLC4DWcjs = require('./chunk-YDXLC4DW.cjs');
|
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
|
|
224
|
-
var
|
|
224
|
+
var _chunkMALGIHICcjs = require('./chunk-MALGIHIC.cjs');
|
|
225
225
|
|
|
226
226
|
|
|
227
227
|
|
|
@@ -256,10 +256,10 @@ var _chunkBNCKXPCUcjs = require('./chunk-BNCKXPCU.cjs');
|
|
|
256
256
|
var _chunkJRGR5Z4Kcjs = require('./chunk-JRGR5Z4K.cjs');
|
|
257
257
|
|
|
258
258
|
|
|
259
|
-
var
|
|
259
|
+
var _chunk25JGHAGHcjs = require('./chunk-25JGHAGH.cjs');
|
|
260
260
|
|
|
261
261
|
|
|
262
|
-
var
|
|
262
|
+
var _chunkSNP33A33cjs = require('./chunk-SNP33A33.cjs');
|
|
263
263
|
|
|
264
264
|
|
|
265
265
|
var _chunkZMSVKVI3cjs = require('./chunk-ZMSVKVI3.cjs');
|
|
@@ -298,7 +298,7 @@ var _chunkSUCDVKUBcjs = require('./chunk-SUCDVKUB.cjs');
|
|
|
298
298
|
var _chunkEVIWKPJVcjs = require('./chunk-EVIWKPJV.cjs');
|
|
299
299
|
|
|
300
300
|
|
|
301
|
-
var
|
|
301
|
+
var _chunkLMXGCFAMcjs = require('./chunk-LMXGCFAM.cjs');
|
|
302
302
|
|
|
303
303
|
|
|
304
304
|
var _chunkWKVYF2B5cjs = require('./chunk-WKVYF2B5.cjs');
|
|
@@ -383,7 +383,7 @@ var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
|
383
383
|
var _chunkML4TOUZPcjs = require('./chunk-ML4TOUZP.cjs');
|
|
384
384
|
|
|
385
385
|
|
|
386
|
-
var
|
|
386
|
+
var _chunkUZM3PDKKcjs = require('./chunk-UZM3PDKK.cjs');
|
|
387
387
|
|
|
388
388
|
// src/static-metadata-image.ts
|
|
389
389
|
var _crypto = require('crypto');
|
|
@@ -499,7 +499,7 @@ var RouteManager = class _RouteManager {
|
|
|
499
499
|
this.redirects = /* @__PURE__ */ new Map();
|
|
500
500
|
this.programmaticPages = /* @__PURE__ */ new Map();
|
|
501
501
|
this.programmaticLayouts = /* @__PURE__ */ new Map();
|
|
502
|
-
this.programmaticClientRoutes =
|
|
502
|
+
this.programmaticClientRoutes = _chunkODYKCC6Wcjs.mergeProgrammaticClientRoutes.call(void 0, []);
|
|
503
503
|
this.discovery = Promise.resolve();
|
|
504
504
|
this.reportedIslandsErrors = /* @__PURE__ */ new Set();
|
|
505
505
|
// Each route module's hydration plan from the last plan, with the source files it read, so a dev
|
|
@@ -561,7 +561,7 @@ var RouteManager = class _RouteManager {
|
|
|
561
561
|
await this.discoverFileRoutes(source);
|
|
562
562
|
await this.discoverProgrammaticRoutes(source, programmaticClientRoutes);
|
|
563
563
|
}
|
|
564
|
-
this.programmaticClientRoutes =
|
|
564
|
+
this.programmaticClientRoutes = _chunkODYKCC6Wcjs.mergeProgrammaticClientRoutes.call(void 0, programmaticClientRoutes);
|
|
565
565
|
for (const slot of this.routeSlots.values()) {
|
|
566
566
|
if (slot.interception && !this.pageRouteShapes.has(_chunkML4TOUZPcjs.getRoutePatternShape.call(void 0, slot.pattern))) {
|
|
567
567
|
throw new (0, _chunkML4TOUZPcjs.AmbiguousRouteError)(
|
|
@@ -854,11 +854,11 @@ var RouteManager = class _RouteManager {
|
|
|
854
854
|
return this.clientManifestCache.manifest;
|
|
855
855
|
}
|
|
856
856
|
const cacheFile = this.packageClientBoundaryCacheFile;
|
|
857
|
-
const compute = () =>
|
|
857
|
+
const compute = () => _chunkODYKCC6Wcjs.withFarmSourceSnapshot.call(void 0,
|
|
858
858
|
() => this.computeClientManifest(normalizedProjectRoot),
|
|
859
859
|
this.sourceSnapshot
|
|
860
860
|
);
|
|
861
|
-
return cacheFile ?
|
|
861
|
+
return cacheFile ? _chunkODYKCC6Wcjs.runWithPackageClientBoundaryCacheFile.call(void 0, cacheFile, compute) : compute();
|
|
862
862
|
}
|
|
863
863
|
/**
|
|
864
864
|
* @internal The dev server reports every watched change (`noteSourceChange`), so a replan can
|
|
@@ -867,7 +867,7 @@ var RouteManager = class _RouteManager {
|
|
|
867
867
|
*/
|
|
868
868
|
trackSourceChanges() {
|
|
869
869
|
this.sourceChangeTracking = true;
|
|
870
|
-
_nullishCoalesce(this.sourceSnapshot, () => ( (this.sourceSnapshot = new (0,
|
|
870
|
+
_nullishCoalesce(this.sourceSnapshot, () => ( (this.sourceSnapshot = new (0, _chunkODYKCC6Wcjs.FarmSourceSnapshotStore)())));
|
|
871
871
|
}
|
|
872
872
|
/**
|
|
873
873
|
* @internal A production build edits no source while it runs, so what the plan reads, parses and
|
|
@@ -876,7 +876,7 @@ var RouteManager = class _RouteManager {
|
|
|
876
876
|
*/
|
|
877
877
|
keepBuildSourceSnapshot() {
|
|
878
878
|
if (this.sourceChangeTracking) return;
|
|
879
|
-
_nullishCoalesce(this.sourceSnapshot, () => ( (this.sourceSnapshot = new (0,
|
|
879
|
+
_nullishCoalesce(this.sourceSnapshot, () => ( (this.sourceSnapshot = new (0, _chunkODYKCC6Wcjs.FarmSourceSnapshotStore)(false))));
|
|
880
880
|
}
|
|
881
881
|
/**
|
|
882
882
|
* @internal Hands the snapshot keepBuildSourceSnapshot kept to the build, which clears it once
|
|
@@ -919,7 +919,7 @@ var RouteManager = class _RouteManager {
|
|
|
919
919
|
return false;
|
|
920
920
|
}
|
|
921
921
|
const previous = _optionalChain([this, 'access', _18 => _18.sourceSnapshot, 'optionalAccess', _19 => _19.peekSource, 'call', _20 => _20(path4.default.resolve(file))]);
|
|
922
|
-
return previous !== void 0 &&
|
|
922
|
+
return previous !== void 0 && _chunkODYKCC6Wcjs.isFarmClientModulePlanUnchanged.call(void 0, file, previous);
|
|
923
923
|
}
|
|
924
924
|
/**
|
|
925
925
|
* A route module's plan: the last one when it read none of `edited`, recomputed otherwise.
|
|
@@ -930,7 +930,7 @@ var RouteManager = class _RouteManager {
|
|
|
930
930
|
if (previous && edited && ![...edited].some((file) => previous.files.has(file))) {
|
|
931
931
|
return { ...previous.plan };
|
|
932
932
|
}
|
|
933
|
-
const { result, files } =
|
|
933
|
+
const { result, files } = _chunkODYKCC6Wcjs.traceFarmSourceReads.call(void 0, compute);
|
|
934
934
|
const sources = /* @__PURE__ */ new Set();
|
|
935
935
|
for (const file of files) {
|
|
936
936
|
const source = this.planSourcePath(file);
|
|
@@ -938,7 +938,7 @@ var RouteManager = class _RouteManager {
|
|
|
938
938
|
}
|
|
939
939
|
if (!this.sourceChangeTracking) {
|
|
940
940
|
for (const source of sources) {
|
|
941
|
-
if (!this.planStamps.has(source)) this.planStamps.set(source,
|
|
941
|
+
if (!this.planStamps.has(source)) this.planStamps.set(source, _chunkODYKCC6Wcjs.getFarmSourceStamp.call(void 0, source));
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
this.ownerPlans.set(key, { plan: result, files: sources, planKey });
|
|
@@ -958,7 +958,7 @@ var RouteManager = class _RouteManager {
|
|
|
958
958
|
const isUnchanged = (file) => {
|
|
959
959
|
let result = unchanged.get(file);
|
|
960
960
|
if (result === void 0) {
|
|
961
|
-
result = this.planStamps.get(file) ===
|
|
961
|
+
result = this.planStamps.get(file) === _chunkODYKCC6Wcjs.getFarmSourceStamp.call(void 0, file);
|
|
962
962
|
unchanged.set(file, result);
|
|
963
963
|
}
|
|
964
964
|
return result;
|
|
@@ -1005,7 +1005,7 @@ var RouteManager = class _RouteManager {
|
|
|
1005
1005
|
*/
|
|
1006
1006
|
inspectPackages(operation) {
|
|
1007
1007
|
const file = this.packageClientBoundaryCacheFile;
|
|
1008
|
-
return file ?
|
|
1008
|
+
return file ? _chunkODYKCC6Wcjs.runWithLatestPackageClientBoundaryCache.call(void 0, file, operation) : operation();
|
|
1009
1009
|
}
|
|
1010
1010
|
computeClientManifest(normalizedProjectRoot) {
|
|
1011
1011
|
const toUrlPath = (absolutePath) => {
|
|
@@ -1017,7 +1017,7 @@ var RouteManager = class _RouteManager {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
return absolutePath;
|
|
1019
1019
|
};
|
|
1020
|
-
const integrationProviders =
|
|
1020
|
+
const integrationProviders = _chunkAOTD2N5Pcjs.getIntegrationProviders.call(void 0, this.config.integrations).filter(
|
|
1021
1021
|
(provider) => provider.component || provider.type === "clerk"
|
|
1022
1022
|
);
|
|
1023
1023
|
const unsupportedIntegrationProvider = integrationProviders.find(
|
|
@@ -1028,14 +1028,14 @@ var RouteManager = class _RouteManager {
|
|
|
1028
1028
|
`[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
|
|
1029
1029
|
);
|
|
1030
1030
|
}
|
|
1031
|
-
const isolatedMode =
|
|
1031
|
+
const isolatedMode = _chunkODYKCC6Wcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
1032
1032
|
_optionalChain([this, 'access', _27 => _27.config, 'access', _28 => _28.experimental, 'optionalAccess', _29 => _29.isolatedClientHydration]),
|
|
1033
1033
|
{
|
|
1034
1034
|
serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([this, 'access', _30 => _30.config, 'access', _31 => _31.experimental, 'optionalAccess', _32 => _32.serverComponents])) === "rsc",
|
|
1035
1035
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
1036
1036
|
}
|
|
1037
1037
|
);
|
|
1038
|
-
const planOptions =
|
|
1038
|
+
const planOptions = _chunkODYKCC6Wcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
1039
1039
|
this.config.renderer,
|
|
1040
1040
|
Boolean(unsupportedIntegrationProvider)
|
|
1041
1041
|
);
|
|
@@ -1045,7 +1045,7 @@ var RouteManager = class _RouteManager {
|
|
|
1045
1045
|
if (this.sourceChangeTracking && this.editedSources && this.ownerPlans.size > 0) {
|
|
1046
1046
|
edited = /* @__PURE__ */ new Set();
|
|
1047
1047
|
for (const [file, previous] of _nullishCoalesce(changed, () => ( []))) {
|
|
1048
|
-
if (
|
|
1048
|
+
if (_chunkODYKCC6Wcjs.isFarmClientModulePlanUnchanged.call(void 0, file, previous)) continue;
|
|
1049
1049
|
const source = this.planSourcePath(file);
|
|
1050
1050
|
if (source) edited.add(source);
|
|
1051
1051
|
}
|
|
@@ -1060,13 +1060,13 @@ var RouteManager = class _RouteManager {
|
|
|
1060
1060
|
metadata: this.planRouteModule(
|
|
1061
1061
|
`layout:${entry.modulePath}`,
|
|
1062
1062
|
edited,
|
|
1063
|
-
() =>
|
|
1063
|
+
() => _chunkODYKCC6Wcjs.getClientModuleHydrationPlan.call(void 0,
|
|
1064
1064
|
entry.modulePath,
|
|
1065
1065
|
normalizedProjectRoot,
|
|
1066
1066
|
isolatedMode,
|
|
1067
1067
|
layoutPlanOptions
|
|
1068
1068
|
),
|
|
1069
|
-
|
|
1069
|
+
_chunkODYKCC6Wcjs.getClientModuleHydrationPlanKey.call(void 0,
|
|
1070
1070
|
entry.modulePath,
|
|
1071
1071
|
normalizedProjectRoot,
|
|
1072
1072
|
isolatedMode,
|
|
@@ -1074,7 +1074,7 @@ var RouteManager = class _RouteManager {
|
|
|
1074
1074
|
)
|
|
1075
1075
|
)
|
|
1076
1076
|
}));
|
|
1077
|
-
const markdownComponentsPlan =
|
|
1077
|
+
const markdownComponentsPlan = _chunkODYKCC6Wcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
1078
1078
|
_chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, this.config.mdx), normalizedProjectRoot),
|
|
1079
1079
|
normalizedProjectRoot,
|
|
1080
1080
|
isolatedMode,
|
|
@@ -1090,13 +1090,13 @@ var RouteManager = class _RouteManager {
|
|
|
1090
1090
|
metadata: _chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) ? markdownPagePlan() : this.planRouteModule(
|
|
1091
1091
|
`page:${entry.modulePath}`,
|
|
1092
1092
|
edited,
|
|
1093
|
-
() =>
|
|
1093
|
+
() => _chunkODYKCC6Wcjs.getClientModuleHydrationPlan.call(void 0,
|
|
1094
1094
|
entry.modulePath,
|
|
1095
1095
|
normalizedProjectRoot,
|
|
1096
1096
|
isolatedMode,
|
|
1097
1097
|
pagePlanOptions
|
|
1098
1098
|
),
|
|
1099
|
-
|
|
1099
|
+
_chunkODYKCC6Wcjs.getClientModuleHydrationPlanKey.call(void 0,
|
|
1100
1100
|
entry.modulePath,
|
|
1101
1101
|
normalizedProjectRoot,
|
|
1102
1102
|
isolatedMode,
|
|
@@ -1126,7 +1126,7 @@ var RouteManager = class _RouteManager {
|
|
|
1126
1126
|
`[Farm.js] ${entry.pattern} renders client components from ${metadata.staticPackageBoundaries.join(", ")} as static HTML: package client components cannot be isolated yet.`
|
|
1127
1127
|
);
|
|
1128
1128
|
}
|
|
1129
|
-
|
|
1129
|
+
_chunkODYKCC6Wcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
1130
1130
|
layoutEntries.map(({ entry, metadata }) => ({
|
|
1131
1131
|
pattern: entry.pattern,
|
|
1132
1132
|
depth: _chunk6ZFGWB75cjs.getRouteDirectoryDepth.call(void 0, entry.pattern),
|
|
@@ -1173,7 +1173,7 @@ var RouteManager = class _RouteManager {
|
|
|
1173
1173
|
modulePath: toUrlPath(boundary.modulePath)
|
|
1174
1174
|
}))
|
|
1175
1175
|
} : {},
|
|
1176
|
-
...
|
|
1176
|
+
..._chunkODYKCC6Wcjs.usesFarmServerTree.call(void 0, metadata) ? { serverTree: true } : {},
|
|
1177
1177
|
renderPlan: _chunk6ZFGWB75cjs.createFarmRouteRenderPlan.call(void 0, {
|
|
1178
1178
|
pageShouldHydrate: metadata.shouldHydrate,
|
|
1179
1179
|
layoutShouldHydrate,
|
|
@@ -1215,7 +1215,7 @@ var RouteManager = class _RouteManager {
|
|
|
1215
1215
|
...metadata.suppressedAsyncHydration && metadata.fallbackReason ? { suppressedAsyncHydrationReason: metadata.fallbackReason } : {}
|
|
1216
1216
|
}));
|
|
1217
1217
|
const slots = Array.from(this.routeSlots.values()).map((entry) => {
|
|
1218
|
-
const metadata =
|
|
1218
|
+
const metadata = _chunkODYKCC6Wcjs.getClientModuleMetadata.call(void 0, entry.modulePath, normalizedProjectRoot);
|
|
1219
1219
|
return {
|
|
1220
1220
|
name: entry.name,
|
|
1221
1221
|
ownerPattern: entry.ownerPattern,
|
|
@@ -1231,7 +1231,7 @@ var RouteManager = class _RouteManager {
|
|
|
1231
1231
|
};
|
|
1232
1232
|
});
|
|
1233
1233
|
const slotPlans = islandsMode ? Array.from(this.routeSlots.values()).map((entry) => ({
|
|
1234
|
-
metadata:
|
|
1234
|
+
metadata: _chunkODYKCC6Wcjs.getClientModuleHydrationPlan.call(void 0,
|
|
1235
1235
|
entry.modulePath,
|
|
1236
1236
|
normalizedProjectRoot,
|
|
1237
1237
|
isolatedMode,
|
|
@@ -1573,16 +1573,16 @@ var RouteManager = class _RouteManager {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
async discoverProgrammaticRoutes(source, clientRoutes) {
|
|
1575
1575
|
if (this.viteServer) _chunkYUCU6XB4cjs.trackProgrammaticRouteSources.call(void 0, );
|
|
1576
|
-
const manifests = await
|
|
1576
|
+
const manifests = await _chunkMALGIHICcjs.loadProgrammaticRouteManifests.call(void 0, {
|
|
1577
1577
|
root: source.root,
|
|
1578
1578
|
srcDir: source.srcDir,
|
|
1579
1579
|
loadModule: (filePath) => this.loadProgrammaticRoutesModule(filePath)
|
|
1580
1580
|
});
|
|
1581
|
-
const graph = this.viteServer ?
|
|
1581
|
+
const graph = this.viteServer ? _chunkODYKCC6Wcjs.createEvaluatedRouteGraph.call(void 0, this.viteServer) : void 0;
|
|
1582
1582
|
for (const { filePath, manifest } of manifests) {
|
|
1583
1583
|
if (graph) {
|
|
1584
1584
|
clientRoutes.push(
|
|
1585
|
-
|
|
1585
|
+
_chunkODYKCC6Wcjs.resolveProgrammaticClientRoutes.call(void 0, {
|
|
1586
1586
|
graph,
|
|
1587
1587
|
routesFile: toRealPath(filePath),
|
|
1588
1588
|
routes: manifest.routes,
|
|
@@ -1798,7 +1798,7 @@ var RouteManager = class _RouteManager {
|
|
|
1798
1798
|
}));
|
|
1799
1799
|
const i18n = this.getI18nConfig();
|
|
1800
1800
|
const docsAdapterRoutes = this.getDocsAdapterRoutes();
|
|
1801
|
-
const result = await
|
|
1801
|
+
const result = await _chunkBZJYPIFZcjs.collectSSGPages.call(void 0, routes, (filePath) => this.loadRouteModule(filePath), {
|
|
1802
1802
|
suggestStaticRendering: shouldSuggestStaticRenderingForI18n(i18n),
|
|
1803
1803
|
...docsAdapterRoutes ? { docsAdapterRoutes } : {}
|
|
1804
1804
|
});
|
|
@@ -1845,7 +1845,7 @@ var RouteManager = class _RouteManager {
|
|
|
1845
1845
|
async isRouteSSG(modulePath) {
|
|
1846
1846
|
try {
|
|
1847
1847
|
const mod = await this.loadRouteModule(modulePath);
|
|
1848
|
-
const rendering = await
|
|
1848
|
+
const rendering = await _chunkBZJYPIFZcjs.resolveRouteRenderingConfigFromFile.call(void 0, mod, modulePath);
|
|
1849
1849
|
return rendering.ssg;
|
|
1850
1850
|
} catch (e2) {
|
|
1851
1851
|
return false;
|
|
@@ -1857,7 +1857,7 @@ var RouteManager = class _RouteManager {
|
|
|
1857
1857
|
async hasRouteISR(modulePath) {
|
|
1858
1858
|
try {
|
|
1859
1859
|
const mod = await this.loadRouteModule(modulePath);
|
|
1860
|
-
const rendering = await
|
|
1860
|
+
const rendering = await _chunkBZJYPIFZcjs.resolveRouteRenderingConfigFromFile.call(void 0, mod, modulePath);
|
|
1861
1861
|
return rendering.ssg && typeof rendering.revalidate === "number" && rendering.revalidate > 0;
|
|
1862
1862
|
} catch (e3) {
|
|
1863
1863
|
return false;
|
|
@@ -1869,7 +1869,7 @@ var RouteManager = class _RouteManager {
|
|
|
1869
1869
|
async getRouteRevalidateInterval(modulePath) {
|
|
1870
1870
|
try {
|
|
1871
1871
|
const mod = await this.loadRouteModule(modulePath);
|
|
1872
|
-
const rendering = await
|
|
1872
|
+
const rendering = await _chunkBZJYPIFZcjs.resolveRouteRenderingConfigFromFile.call(void 0, mod, modulePath);
|
|
1873
1873
|
return rendering.revalidate;
|
|
1874
1874
|
} catch (e4) {
|
|
1875
1875
|
return void 0;
|
|
@@ -2029,7 +2029,7 @@ function createFarmDevClientManifest(manifest, options) {
|
|
|
2029
2029
|
var _module = require('module');
|
|
2030
2030
|
var _url = require('url');
|
|
2031
2031
|
var FONT_IMPORTS = /* @__PURE__ */ new Set(["@farm.js/core", "@farm.js/core/font"]);
|
|
2032
|
-
var FARM_CORE_DIRECTORY = `${path4.default.dirname(typeof __filename === "string" ? __filename : _url.fileURLToPath.call(void 0,
|
|
2032
|
+
var FARM_CORE_DIRECTORY = `${path4.default.dirname(typeof __filename === "string" ? __filename : _url.fileURLToPath.call(void 0, _chunkUZM3PDKKcjs.define_import_meta_default.url)).replace(/\\/g, "/")}/`;
|
|
2033
2033
|
var FONT_FUNCTIONS = /* @__PURE__ */ new Set(["localFont", "remoteFont"]);
|
|
2034
2034
|
var FONT_CSS_PREFIX = "\0farm:font-css:";
|
|
2035
2035
|
var FONT_RUNTIME_ID = "\0farm:font-runtime";
|
|
@@ -3080,7 +3080,7 @@ function generateFarmIntegrationProviderClientCode(providers, root, rendererComp
|
|
|
3080
3080
|
let hasClerkProvider = false;
|
|
3081
3081
|
renderedProviders.forEach((provider, index) => {
|
|
3082
3082
|
let componentExpression = "null";
|
|
3083
|
-
if (
|
|
3083
|
+
if (_chunkAOTD2N5Pcjs.isFarmIntegrationProviderComponentReference.call(void 0, provider.component)) {
|
|
3084
3084
|
const namespace = `FarmIntegrationProviderModule${index}`;
|
|
3085
3085
|
imports.push(
|
|
3086
3086
|
`import * as ${namespace} from ${JSON.stringify(resolveProviderModule(provider.component.module, root))};`
|
|
@@ -3137,7 +3137,7 @@ function generateFarmIntegrationProviderServerModules(providers, root, rendererC
|
|
|
3137
3137
|
const entries = [];
|
|
3138
3138
|
let needsMarkHelper = false;
|
|
3139
3139
|
providers.forEach((provider, index) => {
|
|
3140
|
-
if (!
|
|
3140
|
+
if (!_chunkAOTD2N5Pcjs.isFarmIntegrationProviderComponentReference.call(void 0, provider.component)) return;
|
|
3141
3141
|
const namespace = `FarmServerIntegrationProviderModule${index}`;
|
|
3142
3142
|
imports.push(
|
|
3143
3143
|
`import * as ${namespace} from ${JSON.stringify(resolveProviderModule(provider.component.module, root))};`
|
|
@@ -3205,7 +3205,7 @@ function inferFarmIslandStrategy(filePath, root) {
|
|
|
3205
3205
|
const result = _compiler.inferStrategy.call(void 0, file, code, {
|
|
3206
3206
|
parse: parseFarmIslandSource,
|
|
3207
3207
|
resolve: (specifier, importer) => {
|
|
3208
|
-
const resolved =
|
|
3208
|
+
const resolved = _chunkODYKCC6Wcjs.resolveImportedModule.call(void 0, importer, specifier, root);
|
|
3209
3209
|
return resolved.local ? resolved.path : null;
|
|
3210
3210
|
}
|
|
3211
3211
|
});
|
|
@@ -3225,7 +3225,7 @@ function inferFarmRouteRootStrategy(owners, root) {
|
|
|
3225
3225
|
if (cached && cached.stamps.every(([read2, stamp]) => modifiedAt(read2) === stamp)) {
|
|
3226
3226
|
return cached.result;
|
|
3227
3227
|
}
|
|
3228
|
-
const { result, files } =
|
|
3228
|
+
const { result, files } = _chunkODYKCC6Wcjs.traceFarmSourceReads.call(void 0, () => inferRouteRoot(owners, root));
|
|
3229
3229
|
const read = new Set([...files, ...result.files].filter((file) => !isInstalledPackageFile(file)));
|
|
3230
3230
|
routeRootInferences.set(key, {
|
|
3231
3231
|
stamps: [...read].map((file) => [file, modifiedAt(file)]),
|
|
@@ -3242,7 +3242,7 @@ function inferRouteRoot(owners, root) {
|
|
|
3242
3242
|
const files = [];
|
|
3243
3243
|
const modules = [];
|
|
3244
3244
|
for (const owner of owners) {
|
|
3245
|
-
const rendered =
|
|
3245
|
+
const rendered = _chunkODYKCC6Wcjs.collectFarmRenderedClientModules.call(void 0, owner, root);
|
|
3246
3246
|
if (!rendered) {
|
|
3247
3247
|
return {
|
|
3248
3248
|
strategy: null,
|
|
@@ -3258,7 +3258,7 @@ function inferRouteRoot(owners, root) {
|
|
|
3258
3258
|
source = fs2.default.readFileSync(module, "utf8");
|
|
3259
3259
|
} catch (e11) {
|
|
3260
3260
|
}
|
|
3261
|
-
if (
|
|
3261
|
+
if (_chunkODYKCC6Wcjs.getIslandStrategyExport.call(void 0, source) !== null) return { strategy: null, files, declared: true };
|
|
3262
3262
|
}
|
|
3263
3263
|
for (const module of modules) {
|
|
3264
3264
|
const result = inferFarmIslandStrategy(module, root);
|
|
@@ -3600,7 +3600,7 @@ function createDefaultErrorDiagnostics(error, root) {
|
|
|
3600
3600
|
function canBootFarmIslandsClient(config) {
|
|
3601
3601
|
const docs = config.docs;
|
|
3602
3602
|
const docsEnabled = docs === true || typeof docs === "object" && docs !== null && docs.enabled !== false;
|
|
3603
|
-
return _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _70 => _70.experimental, 'optionalAccess', _71 => _71.serverComponents])) === "islands" && !docsEnabled &&
|
|
3603
|
+
return _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _70 => _70.experimental, 'optionalAccess', _71 => _71.serverComponents])) === "islands" && !docsEnabled && _chunkMBD34AS5cjs.resolveFarmClientPlugins.call(void 0, config.plugins, config.root).length === 0 && !_chunkMBD34AS5cjs.resolveFarmAppClientEntry.call(void 0, config.root, config.srcDir || "src");
|
|
3604
3604
|
}
|
|
3605
3605
|
|
|
3606
3606
|
// src/islands-kept-layouts.ts
|
|
@@ -3648,7 +3648,7 @@ var DECLARATION_STATEMENTS = /* @__PURE__ */ new Set([
|
|
|
3648
3648
|
function parse(code, file) {
|
|
3649
3649
|
const extension = path4.default.extname(file).slice(1);
|
|
3650
3650
|
const lang = extension === "ts" || extension === "mts" || extension === "cts" ? "ts" : extension === "js" || extension === "mjs" || extension === "cjs" || extension === "jsx" ? "jsx" : "tsx";
|
|
3651
|
-
return
|
|
3651
|
+
return _chunkODYKCC6Wcjs.memoizeInFarmSourceSnapshot.call(void 0, `ast:${lang}`, code, () => {
|
|
3652
3652
|
try {
|
|
3653
3653
|
return _parseAst.parseAst.call(void 0, code, { lang });
|
|
3654
3654
|
} catch (e14) {
|
|
@@ -3783,14 +3783,14 @@ function isReference(node, parent, key) {
|
|
|
3783
3783
|
}
|
|
3784
3784
|
function readSource(file) {
|
|
3785
3785
|
try {
|
|
3786
|
-
|
|
3786
|
+
_chunkODYKCC6Wcjs.noteFarmSourceRead.call(void 0, file);
|
|
3787
3787
|
return fs2.default.readFileSync(file, "utf8");
|
|
3788
3788
|
} catch (e15) {
|
|
3789
3789
|
return null;
|
|
3790
3790
|
}
|
|
3791
3791
|
}
|
|
3792
3792
|
function explainFarmKeptLayoutRender(modulePath, root) {
|
|
3793
|
-
const entry =
|
|
3793
|
+
const entry = _chunkODYKCC6Wcjs.resolveModuleSourcePath.call(void 0, modulePath, root);
|
|
3794
3794
|
if (!entry) return `${modulePath} does not resolve`;
|
|
3795
3795
|
const visited = /* @__PURE__ */ new Set();
|
|
3796
3796
|
const check = (file) => {
|
|
@@ -3800,7 +3800,7 @@ function explainFarmKeptLayoutRender(modulePath, root) {
|
|
|
3800
3800
|
if (!SCRIPT_SOURCE.test(file)) return `${path4.default.relative(root, file)} is not a script`;
|
|
3801
3801
|
const code = readSource(file);
|
|
3802
3802
|
if (code === null) return `${path4.default.relative(root, file)} cannot be read`;
|
|
3803
|
-
const { reason, imports } =
|
|
3803
|
+
const { reason, imports } = _chunkODYKCC6Wcjs.memoizeInFarmSourceSnapshot.call(void 0,
|
|
3804
3804
|
"kept-layout-module",
|
|
3805
3805
|
code,
|
|
3806
3806
|
() => findFarmRequestDecidingConstruct(code, file)
|
|
@@ -3813,7 +3813,7 @@ function explainFarmKeptLayoutRender(modulePath, root) {
|
|
|
3813
3813
|
return `${path4.default.relative(root, file)} imports ${imported.names.join(", ")} from ${imported.source}`;
|
|
3814
3814
|
}
|
|
3815
3815
|
if (ASSET_SOURCE.test(imported.source.split("?")[0])) continue;
|
|
3816
|
-
const resolved =
|
|
3816
|
+
const resolved = _chunkODYKCC6Wcjs.resolveImportedModule.call(void 0, file, imported.source, root);
|
|
3817
3817
|
if (!resolved.path || !resolved.local) {
|
|
3818
3818
|
return `${path4.default.relative(root, file)} imports ${imported.source}`;
|
|
3819
3819
|
}
|
|
@@ -3828,15 +3828,15 @@ var answers = /* @__PURE__ */ new Map();
|
|
|
3828
3828
|
function canFarmSkipKeptLayoutRender(modulePath, root) {
|
|
3829
3829
|
const key = `${root}\0${modulePath}`;
|
|
3830
3830
|
const known = answers.get(key);
|
|
3831
|
-
if (known && known.stamps.every(([file, stamp]) =>
|
|
3831
|
+
if (known && known.stamps.every(([file, stamp]) => _chunkODYKCC6Wcjs.getFarmSourceStamp.call(void 0, file) === stamp)) {
|
|
3832
3832
|
return known.skip;
|
|
3833
3833
|
}
|
|
3834
|
-
const { result, files } =
|
|
3834
|
+
const { result, files } = _chunkODYKCC6Wcjs.traceFarmSourceReads.call(void 0,
|
|
3835
3835
|
() => explainFarmKeptLayoutRender(modulePath, root) === null
|
|
3836
3836
|
);
|
|
3837
3837
|
answers.set(key, {
|
|
3838
3838
|
skip: result,
|
|
3839
|
-
stamps: files.map((file) => [file,
|
|
3839
|
+
stamps: files.map((file) => [file, _chunkODYKCC6Wcjs.getFarmSourceStamp.call(void 0, file)])
|
|
3840
3840
|
});
|
|
3841
3841
|
return result;
|
|
3842
3842
|
}
|
|
@@ -3917,7 +3917,7 @@ var warnedSuppressedAsyncHydrationModules = /* @__PURE__ */ new Set();
|
|
|
3917
3917
|
function warnSuppressedAsyncHydrationOnce(modulePath, reason) {
|
|
3918
3918
|
if (warnedSuppressedAsyncHydrationModules.has(modulePath)) return;
|
|
3919
3919
|
warnedSuppressedAsyncHydrationModules.add(modulePath);
|
|
3920
|
-
_chunkGC5ROI3Acjs.logger.warn(
|
|
3920
|
+
_chunkGC5ROI3Acjs.logger.warn(_chunkODYKCC6Wcjs.describeSuppressedAsyncHydration.call(void 0, modulePath, reason));
|
|
3921
3921
|
}
|
|
3922
3922
|
var fullDocumentRoutes = /* @__PURE__ */ new Set();
|
|
3923
3923
|
var documentLayouts = /* @__PURE__ */ new WeakMap();
|
|
@@ -4567,7 +4567,7 @@ window.__FARM_ISLAND_STRATEGY__ = ${serializeInlineValue(islandStrategy)};
|
|
|
4567
4567
|
window.__FARM_PAGE_MODULE__ = "";
|
|
4568
4568
|
window.__FARM_LOADING_MODULE__ = null;
|
|
4569
4569
|
window.__FARM_MANIFEST__ = ${serializeInlineValue(clientManifest)};
|
|
4570
|
-
window.__FARM_INTEGRATION_API_MANIFEST__ = ${serializeInlineValue(
|
|
4570
|
+
window.__FARM_INTEGRATION_API_MANIFEST__ = ${serializeInlineValue(_chunkAOTD2N5Pcjs.getRegisteredIntegrationAPIManifest.call(void 0, ))};
|
|
4571
4571
|
window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "null"};
|
|
4572
4572
|
</script>`;
|
|
4573
4573
|
const head = [
|
|
@@ -4623,7 +4623,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
4623
4623
|
* Check if a path should be served from SSG cache
|
|
4624
4624
|
*/
|
|
4625
4625
|
async shouldServeSSG(pathname) {
|
|
4626
|
-
const ssgPage =
|
|
4626
|
+
const ssgPage = _chunkBZJYPIFZcjs.matchSSGPage.call(void 0, pathname, this.ssgManifest);
|
|
4627
4627
|
if (!ssgPage) return null;
|
|
4628
4628
|
const cached = await this.getCachedSSGPage(pathname);
|
|
4629
4629
|
if (cached && await this.dataCache.isStaleAsync(cached)) {
|
|
@@ -5122,7 +5122,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
5122
5122
|
throw error;
|
|
5123
5123
|
}
|
|
5124
5124
|
}
|
|
5125
|
-
const renderingConfig = await
|
|
5125
|
+
const renderingConfig = await _chunkBZJYPIFZcjs.resolveRouteRenderingConfigFromFile.call(void 0,
|
|
5126
5126
|
routeModule,
|
|
5127
5127
|
route.modulePath,
|
|
5128
5128
|
{ experimentalPPR: _optionalChain([this, 'access', _138 => _138.config, 'access', _139 => _139.experimental, 'optionalAccess', _140 => _140.ppr]) === true }
|
|
@@ -5221,7 +5221,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
5221
5221
|
const routeManifestEntry = routeManifest.routes.find(
|
|
5222
5222
|
(entry) => entry.pattern === route.pattern
|
|
5223
5223
|
);
|
|
5224
|
-
const moduleMetadata = routeManifestEntry ||
|
|
5224
|
+
const moduleMetadata = routeManifestEntry || _chunkODYKCC6Wcjs.getClientModuleMetadata.call(void 0, route.modulePath, this.config.root);
|
|
5225
5225
|
const isClientComponent = moduleMetadata.isClientComponent;
|
|
5226
5226
|
const renderedRouteSlots = await Promise.all(
|
|
5227
5227
|
routeSlots.map(async (slot) => {
|
|
@@ -5684,7 +5684,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
5684
5684
|
}
|
|
5685
5685
|
}
|
|
5686
5686
|
async wrapWithIntegrationProviders(element) {
|
|
5687
|
-
const providers =
|
|
5687
|
+
const providers = _chunkAOTD2N5Pcjs.getIntegrationProviders.call(void 0, this.config.integrations);
|
|
5688
5688
|
let wrapped = element;
|
|
5689
5689
|
for (let i = providers.length - 1; i >= 0; i--) {
|
|
5690
5690
|
const provider = providers[i];
|
|
@@ -5702,7 +5702,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
5702
5702
|
}
|
|
5703
5703
|
let ProviderComponent;
|
|
5704
5704
|
let providerSourceModule;
|
|
5705
|
-
if (
|
|
5705
|
+
if (_chunkAOTD2N5Pcjs.isFarmIntegrationProviderComponentReference.call(void 0, provider.component)) {
|
|
5706
5706
|
providerSourceModule = provider.component.module;
|
|
5707
5707
|
const providerModuleId = provider.component.module.startsWith(".") ? _chunkGC5ROI3Acjs.toViteModuleId.call(void 0,
|
|
5708
5708
|
path10.resolve(this.config.root, provider.component.module),
|
|
@@ -6057,7 +6057,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
6057
6057
|
if (this.routeManager.matchRoute(_chunkYRXPDKMMcjs.FARM_DEFAULT_MCP_PATH).route) return void 0;
|
|
6058
6058
|
_nullishCoalesce(this.defaultMCPServer, () => ( (this.defaultMCPServer = _chunkYRXPDKMMcjs.createFarmDefaultMCPServer.call(void 0,
|
|
6059
6059
|
readAppPackageIdentity(this.config.root),
|
|
6060
|
-
|
|
6060
|
+
_chunkLMXGCFAMcjs.FARM_VERSION
|
|
6061
6061
|
))));
|
|
6062
6062
|
return _chunkYRXPDKMMcjs.resolveFarmDefaultMCPServer.call(void 0, this.defaultMCPServer);
|
|
6063
6063
|
}
|
|
@@ -6065,7 +6065,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
6065
6065
|
const server = this.getDefaultMCPServer();
|
|
6066
6066
|
const request2 = _nullishCoalesce(_chunk2RSVYJT6cjs.getCurrentRequestOrNull.call(void 0, ), () => ( _chunk2RSVYJT6cjs.createWebRequestFromFarmRequest.call(void 0, req, { trustProxy: _optionalChain([this, 'access', _217 => _217.config, 'access', _218 => _218.server, 'optionalAccess', _219 => _219.trustProxy]) })));
|
|
6067
6067
|
try {
|
|
6068
|
-
const { handleFarmDefaultMCPRequest } = await import("./agent-mcp-handler-
|
|
6068
|
+
const { handleFarmDefaultMCPRequest } = await import("./agent-mcp-handler-LNBYLRTZ.cjs");
|
|
6069
6069
|
const origin = new URL(request2.url).origin;
|
|
6070
6070
|
const i18n = _optionalChain([this, 'access', _220 => _220.i18nRuntime, 'optionalAccess', _221 => _221.config]);
|
|
6071
6071
|
const metadataBase = await this.getRootMetadataBase();
|
|
@@ -6151,7 +6151,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
6151
6151
|
pages,
|
|
6152
6152
|
config,
|
|
6153
6153
|
rootMetadata,
|
|
6154
|
-
mcp: _optionalChain([this, 'access', _227 => _227.config, 'access', _228 => _228.agent, 'optionalAccess', _229 => _229.aiCatalog]) === false ? [] :
|
|
6154
|
+
mcp: _optionalChain([this, 'access', _227 => _227.config, 'access', _228 => _228.agent, 'optionalAccess', _229 => _229.aiCatalog]) === false ? [] : _chunk5KISFWD2cjs.listFarmMCPLlmsTxtLinks.call(void 0, origin, {
|
|
6155
6155
|
basePath: this.config.basePath,
|
|
6156
6156
|
apiServerBasePath: _chunk2OF5RPVUcjs.resolveFarmAPIServerBasePath.call(void 0,
|
|
6157
6157
|
_chunkPMJSG4JScjs.normalizeFarmAPIConfig.call(void 0,
|
|
@@ -6395,7 +6395,7 @@ window.__FARM_ISLAND_STRATEGY__ = ${JSON.stringify(req.__FARM_ISLAND_STRATEGY__
|
|
|
6395
6395
|
window.__FARM_PAGE_MODULE__ = ${JSON.stringify(relativePath)};
|
|
6396
6396
|
window.__FARM_LOADING_MODULE__ = ${JSON.stringify(req.__FARM_LOADING_MODULE_PATH__ || null)};
|
|
6397
6397
|
window.__FARM_MANIFEST__ = ${JSON.stringify(clientManifest)};
|
|
6398
|
-
window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(
|
|
6398
|
+
window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(_chunkAOTD2N5Pcjs.getRegisteredIntegrationAPIManifest.call(void 0, ))};
|
|
6399
6399
|
window.__FARM_I18N__ = ${_chunkSXXSQVKKcjs.getFarmI18nClientSnapshot.call(void 0, ) ? serializeInlineValue(_chunkSXXSQVKKcjs.getFarmI18nClientSnapshot.call(void 0, )) : "null"};
|
|
6400
6400
|
</script>`);
|
|
6401
6401
|
const deferredScript = farmScripts(createDeferredHydrationScript(deferredProps.records));
|
|
@@ -6620,7 +6620,7 @@ window.__FARM_LOADING_MODULE__ = ${JSON.stringify(
|
|
|
6620
6620
|
req.__FARM_LOADING_MODULE_PATH__ || null
|
|
6621
6621
|
)};
|
|
6622
6622
|
window.__FARM_MANIFEST__ = ${JSON.stringify(clientManifest)};
|
|
6623
|
-
window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(
|
|
6623
|
+
window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(_chunkAOTD2N5Pcjs.getRegisteredIntegrationAPIManifest.call(void 0, ))};
|
|
6624
6624
|
window.__FARM_I18N__ = ${_chunkSXXSQVKKcjs.getFarmI18nClientSnapshot.call(void 0, ) ? serializeInlineValue(_chunkSXXSQVKKcjs.getFarmI18nClientSnapshot.call(void 0, )) : "null"};
|
|
6625
6625
|
</script>${_chunkPBJ7MEOVcjs.renderFarmFormStateScript.call(void 0, )}`;
|
|
6626
6626
|
const islandsOnlyPage = this.islandValues() && req.__FARM_PAGE_SHOULD_HYDRATE__ !== true && req.__FARM_LAYOUT_SHOULD_HYDRATE__ !== true && req.__FARM_HAS_HYDRATABLE_ROUTE_SLOTS__ !== true;
|
|
@@ -7138,7 +7138,7 @@ window.__FARM_I18N__ = ${_chunkSXXSQVKKcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7138
7138
|
stack: _optionalChain([diagnostics, 'optionalAccess', _292 => _292.stack]),
|
|
7139
7139
|
sourceFrame: _optionalChain([diagnostics, 'optionalAccess', _293 => _293.sourceFrame]),
|
|
7140
7140
|
development: isDev,
|
|
7141
|
-
farmVersion:
|
|
7141
|
+
farmVersion: _chunkLMXGCFAMcjs.FARM_VERSION,
|
|
7142
7142
|
nodeVersion: process.version,
|
|
7143
7143
|
mode: isDev ? "development" : "production"
|
|
7144
7144
|
})
|
|
@@ -7176,7 +7176,7 @@ window.__FARM_I18N__ = ${_chunkSXXSQVKKcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7176
7176
|
const viteClientScript = farmScripts(`<script type="module" src="/@vite/client"></script>`);
|
|
7177
7177
|
const integrationManifestScript = farmScripts(`<script>
|
|
7178
7178
|
window.__FARM_DEPLOYMENT_ID__ = ${serializeInlineValue(this.getDeploymentId())};
|
|
7179
|
-
window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(
|
|
7179
|
+
window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(_chunkAOTD2N5Pcjs.getRegisteredIntegrationAPIManifest.call(void 0, ))};
|
|
7180
7180
|
${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};` : ""}
|
|
7181
7181
|
</script>`);
|
|
7182
7182
|
const alternateLinks = i18nSnapshot ? renderI18nAlternateLinks(
|
|
@@ -7322,7 +7322,7 @@ var FarmApp = class {
|
|
|
7322
7322
|
if (process.env.FARM_VERBOSE) {
|
|
7323
7323
|
_chunkGC5ROI3Acjs.logger.info("Initializing Farm.js application...");
|
|
7324
7324
|
}
|
|
7325
|
-
await
|
|
7325
|
+
await _chunkEVVV2XZ2cjs.initStorage.call(void 0, this.config.storage);
|
|
7326
7326
|
await _chunkBNCKXPCUcjs.configureFarmCache.call(void 0, this.config.cache);
|
|
7327
7327
|
await this.i18nRuntime.initialize();
|
|
7328
7328
|
await this.serverRenderer.initialize();
|
|
@@ -7368,7 +7368,7 @@ var FarmApp = class {
|
|
|
7368
7368
|
plugins: config.plugins || [],
|
|
7369
7369
|
migrations: config.migrations || { commands: [] },
|
|
7370
7370
|
cron: _chunkCYNQPKA4cjs.resolveCronConfig.call(void 0, config.cron),
|
|
7371
|
-
workflows:
|
|
7371
|
+
workflows: _chunkCKNZJFK5cjs.resolveWorkflowsConfig.call(void 0, config.workflows),
|
|
7372
7372
|
api: normalizeFarmAppAPIConfig(config.api),
|
|
7373
7373
|
middleware: config.middleware || {},
|
|
7374
7374
|
routeRules: _chunkIIHZ2BEEcjs.normalizeRouteRules.call(void 0, config.routeRules),
|
|
@@ -7437,7 +7437,7 @@ var FarmApp = class {
|
|
|
7437
7437
|
);
|
|
7438
7438
|
if (!hasAppDirectory) {
|
|
7439
7439
|
const routeFiles = _chunkQMR2TUVZcjs.getFarmSourceRoots.call(void 0, this.config).flatMap(
|
|
7440
|
-
(source) =>
|
|
7440
|
+
(source) => _chunkMALGIHICcjs.findProgrammaticRouteFiles.call(void 0, source.root, source.srcDir)
|
|
7441
7441
|
);
|
|
7442
7442
|
if (routeFiles.length > 0) {
|
|
7443
7443
|
return;
|
|
@@ -7660,7 +7660,7 @@ function toolFromObject(object) {
|
|
|
7660
7660
|
function findFarmWebMCPTools(code, filename = "module.tsx") {
|
|
7661
7661
|
if (!code.includes(WEBMCP_CLIENT)) return [];
|
|
7662
7662
|
const lang = _nullishCoalesce(LANGS[path4.default.extname(filename).slice(1)], () => ( "tsx"));
|
|
7663
|
-
_nullishCoalesce(parseAst3, () => ( (parseAst3 = _module.createRequire.call(void 0, typeof __filename === "string" ? __filename :
|
|
7663
|
+
_nullishCoalesce(parseAst3, () => ( (parseAst3 = _module.createRequire.call(void 0, typeof __filename === "string" ? __filename : _chunkUZM3PDKKcjs.define_import_meta_default.url)(
|
|
7664
7664
|
"rolldown/parseAst"
|
|
7665
7665
|
).parseAst)));
|
|
7666
7666
|
let program;
|
|
@@ -8170,7 +8170,7 @@ function propertyKeyName(property2) {
|
|
|
8170
8170
|
return void 0;
|
|
8171
8171
|
}
|
|
8172
8172
|
function redactFarmDocsClientConfig(code, filename) {
|
|
8173
|
-
_nullishCoalesce(parseAst4, () => ( (parseAst4 = _module.createRequire.call(void 0, typeof __filename === "string" ? __filename :
|
|
8173
|
+
_nullishCoalesce(parseAst4, () => ( (parseAst4 = _module.createRequire.call(void 0, typeof __filename === "string" ? __filename : _chunkUZM3PDKKcjs.define_import_meta_default.url)(
|
|
8174
8174
|
"rolldown/parseAst"
|
|
8175
8175
|
).parseAst)));
|
|
8176
8176
|
const extension = path4.default.extname(filename);
|