@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRouteTypeDeclarations,
|
|
3
3
|
generateRouteTypes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QES76U42.mjs";
|
|
5
5
|
import {
|
|
6
6
|
APITypeGenerator
|
|
7
7
|
} from "./chunk-HQ2VAJLW.mjs";
|
|
@@ -23,9 +23,10 @@ import {
|
|
|
23
23
|
writeFileIfChanged
|
|
24
24
|
} from "./chunk-YFTGIHNC.mjs";
|
|
25
25
|
import {
|
|
26
|
+
findFarmConfigFile,
|
|
26
27
|
getFarmAppDirectories,
|
|
27
28
|
getFarmSourceRoots
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-4STJ6LGR.mjs";
|
|
29
30
|
import {
|
|
30
31
|
isFarmMarkdownPageFile
|
|
31
32
|
} from "./chunk-BGUTIQII.mjs";
|
|
@@ -35,6 +36,9 @@ import {
|
|
|
35
36
|
import {
|
|
36
37
|
readSchemaTables
|
|
37
38
|
} from "./chunk-K63OWRY2.mjs";
|
|
39
|
+
import {
|
|
40
|
+
isManagedMount
|
|
41
|
+
} from "./chunk-DS2KZ5BT.mjs";
|
|
38
42
|
import {
|
|
39
43
|
readFarmI18nCatalogs
|
|
40
44
|
} from "./chunk-VO55MMBX.mjs";
|
|
@@ -604,7 +608,7 @@ function argumentType(kind) {
|
|
|
604
608
|
|
|
605
609
|
// src/type-artifacts.ts
|
|
606
610
|
import { existsSync as existsSync2, mkdirSync as mkdirSync3, readFileSync as readFileSync2, unlinkSync } from "fs";
|
|
607
|
-
import { dirname as dirname3, isAbsolute as isAbsolute2, join as join3, resolve as resolve3 } from "path";
|
|
611
|
+
import { dirname as dirname3, isAbsolute as isAbsolute2, join as join3, relative as relative2, resolve as resolve3 } from "path";
|
|
608
612
|
|
|
609
613
|
// src/content-types.ts
|
|
610
614
|
import * as fs from "fs";
|
|
@@ -937,11 +941,13 @@ async function generateFarmTypeArtifacts(options) {
|
|
|
937
941
|
}
|
|
938
942
|
}
|
|
939
943
|
if (shouldRefreshUnifiedTypes) {
|
|
944
|
+
const storageTypes = createStorageMountDeclarations(options, unifiedTypesPath);
|
|
945
|
+
if (storageTypes) unifiedSections.push(storageTypes);
|
|
940
946
|
const syncModelTypes = createSyncModelTypeDeclarations(options.plugins);
|
|
941
947
|
if (syncModelTypes) unifiedSections.push(syncModelTypes);
|
|
942
948
|
}
|
|
943
949
|
if (shouldRefreshUnifiedTypes && existsSync2(join3(root, srcDir, "native"))) {
|
|
944
|
-
const [{ scanFarmMobileAppModules }, { createFarmNativeModuleTypeDeclarations }] = await Promise.all([import("./modules-
|
|
950
|
+
const [{ scanFarmMobileAppModules }, { createFarmNativeModuleTypeDeclarations }] = await Promise.all([import("./modules-3Q2ZCY4Q.mjs"), import("./native-specs-A7YOL463.mjs")]);
|
|
945
951
|
const appModules = scanFarmMobileAppModules({ root, srcDir });
|
|
946
952
|
const nativeTypes = appModules && createFarmNativeModuleTypeDeclarations(appModules.specs, { root });
|
|
947
953
|
if (nativeTypes) unifiedSections.push(nativeTypes);
|
|
@@ -983,6 +989,36 @@ ${unifiedSections.map(normalizeUnifiedTypeSection).join("\n\n")}
|
|
|
983
989
|
}
|
|
984
990
|
return result;
|
|
985
991
|
}
|
|
992
|
+
function createStorageMountDeclarations(options, outPath) {
|
|
993
|
+
const storage = options.storage;
|
|
994
|
+
if (!storage || !("mounts" in storage) || !Object.values(storage.mounts ?? {}).some(isManagedMount))
|
|
995
|
+
return;
|
|
996
|
+
const project = findFarmConfigFile(
|
|
997
|
+
options.root,
|
|
998
|
+
options.configPath && resolve3(options.root, options.configPath)
|
|
999
|
+
);
|
|
1000
|
+
const configs = [...(options.layers ?? []).map((layer) => layer.configFile), project].filter(
|
|
1001
|
+
(file) => Boolean(file)
|
|
1002
|
+
);
|
|
1003
|
+
if (!configs.length) return;
|
|
1004
|
+
const lines = ["type FarmMountsOf<C> = C extends { storage: { mounts: infer M } } ? M : {};"];
|
|
1005
|
+
let mounts = "{}";
|
|
1006
|
+
for (const [index, file] of configs.entries()) {
|
|
1007
|
+
const path3 = relative2(dirname3(outPath), file).replace(/\\/g, "/").replace(/\.([cm]?)tsx?$/, ".$1js");
|
|
1008
|
+
const specifier = JSON.stringify(path3.startsWith(".") ? path3 : "./" + path3);
|
|
1009
|
+
const next = `FarmStorageMounts${index}`;
|
|
1010
|
+
lines.push(`type ${next} = FarmMountsOf<typeof import(${specifier}).default>;`);
|
|
1011
|
+
mounts = index === 0 ? next : `Omit<${mounts}, keyof ${next}> & ${next}`;
|
|
1012
|
+
}
|
|
1013
|
+
lines.push(`declare global {
|
|
1014
|
+
namespace FarmJS {
|
|
1015
|
+
interface StorageRegistry {
|
|
1016
|
+
mounts: ${mounts};
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
}`);
|
|
1020
|
+
return lines.join("\n");
|
|
1021
|
+
}
|
|
986
1022
|
function normalizeUnifiedTypeSection(section) {
|
|
987
1023
|
return section.trimEnd().replace(/\n+export \{\};$/, "");
|
|
988
1024
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveFarmAppClientEntry,
|
|
3
3
|
resolveFarmClientPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VO5XDZHK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveFarmPlatform
|
|
7
7
|
} from "./chunk-SMUW7UST.mjs";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
collectSSGPages,
|
|
10
10
|
matchSSGPage,
|
|
11
11
|
resolveRouteRenderingConfigFromFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-A7EJATEW.mjs";
|
|
13
13
|
import {
|
|
14
14
|
appendFarmHead,
|
|
15
15
|
classifyFarmDocumentPrefix,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
} from "./chunk-H76C5AOU.mjs";
|
|
49
49
|
import {
|
|
50
50
|
listFarmMCPLlmsTxtLinks
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-PNWRH6TR.mjs";
|
|
52
52
|
import {
|
|
53
53
|
FARM_DEFAULT_MCP_PATH,
|
|
54
54
|
collectFarmDefaultMCPPages,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
traceFarmSourceReads,
|
|
96
96
|
usesFarmServerTree,
|
|
97
97
|
withFarmSourceSnapshot
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-7RQ5KAK6.mjs";
|
|
99
99
|
import {
|
|
100
100
|
FARM_ISLAND_REPLAYABLE_SELECTOR
|
|
101
101
|
} from "./chunk-S32PDOLO.mjs";
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
import {
|
|
148
148
|
getFarmAppDirectories,
|
|
149
149
|
getFarmSourceRoots
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-4STJ6LGR.mjs";
|
|
151
151
|
import {
|
|
152
152
|
assertFarmRendererStreamingRuntime,
|
|
153
153
|
getFarmRendererCapabilities,
|
|
@@ -192,7 +192,7 @@ import {
|
|
|
192
192
|
} from "./chunk-R5X7FDOG.mjs";
|
|
193
193
|
import {
|
|
194
194
|
resolveWorkflowsConfig
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-OGVOKAQU.mjs";
|
|
196
196
|
import {
|
|
197
197
|
resolveFarmThemeConfig
|
|
198
198
|
} from "./chunk-YWPNIYUP.mjs";
|
|
@@ -200,10 +200,10 @@ import {
|
|
|
200
200
|
getIntegrationProviders,
|
|
201
201
|
getRegisteredIntegrationAPIManifest,
|
|
202
202
|
isFarmIntegrationProviderComponentReference
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-JKFN3YVG.mjs";
|
|
204
204
|
import {
|
|
205
205
|
initStorage
|
|
206
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-IGE5BAWK.mjs";
|
|
207
207
|
import {
|
|
208
208
|
resolveFarmRouteContext,
|
|
209
209
|
withFarmRouteContext
|
|
@@ -221,7 +221,7 @@ import {
|
|
|
221
221
|
import {
|
|
222
222
|
findProgrammaticRouteFiles,
|
|
223
223
|
loadProgrammaticRouteManifests
|
|
224
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-Q3DO7MVK.mjs";
|
|
225
225
|
import {
|
|
226
226
|
_runWithFarmI18nRequest,
|
|
227
227
|
_setDefaultFarmI18nRuntime,
|
|
@@ -254,12 +254,12 @@ import {
|
|
|
254
254
|
import {
|
|
255
255
|
sendWebResponse
|
|
256
256
|
} from "./chunk-O5QUJEWT.mjs";
|
|
257
|
-
import {
|
|
258
|
-
toFileModuleUrl
|
|
259
|
-
} from "./chunk-VHIXGZYH.mjs";
|
|
260
257
|
import {
|
|
261
258
|
loadFarmDevModule
|
|
262
259
|
} from "./chunk-7H2TXT2K.mjs";
|
|
260
|
+
import {
|
|
261
|
+
toFileModuleUrl
|
|
262
|
+
} from "./chunk-VHIXGZYH.mjs";
|
|
263
263
|
import {
|
|
264
264
|
resolveFarmI18nConfig
|
|
265
265
|
} from "./chunk-VJSXPN3W.mjs";
|
|
@@ -298,7 +298,7 @@ import {
|
|
|
298
298
|
} from "./chunk-2DA7CLY7.mjs";
|
|
299
299
|
import {
|
|
300
300
|
FARM_VERSION
|
|
301
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-VRJAMU34.mjs";
|
|
302
302
|
import {
|
|
303
303
|
_setFarmSearchPreserveRoutes
|
|
304
304
|
} from "./chunk-VDQZV6BX.mjs";
|
|
@@ -6062,7 +6062,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
6062
6062
|
const server = this.getDefaultMCPServer();
|
|
6063
6063
|
const request2 = getCurrentRequestOrNull() ?? createWebRequestFromFarmRequest(req, { trustProxy: this.config.server?.trustProxy });
|
|
6064
6064
|
try {
|
|
6065
|
-
const { handleFarmDefaultMCPRequest } = await import("./agent-mcp-handler-
|
|
6065
|
+
const { handleFarmDefaultMCPRequest } = await import("./agent-mcp-handler-EDJNU224.mjs");
|
|
6066
6066
|
const origin = new URL(request2.url).origin;
|
|
6067
6067
|
const i18n = this.i18nRuntime?.config;
|
|
6068
6068
|
const metadataBase = await this.getRootMetadataBase();
|
|
@@ -1,10 +1,10 @@
|
|
|
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(); } } 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; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkK3ZELA6Ucjs = require('./chunk-K3ZELA6U.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkA4WWKG2Bcjs = require('./chunk-A4WWKG2B.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -25,7 +25,8 @@ var _chunkAQIRXBBYcjs = require('./chunk-AQIRXBBY.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
|
|
29
|
+
var _chunkQMR2TUVZcjs = require('./chunk-QMR2TUVZ.cjs');
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
var _chunkPG7J7XYTcjs = require('./chunk-PG7J7XYT.cjs');
|
|
@@ -37,6 +38,9 @@ var _chunkGBMWLDCCcjs = require('./chunk-GBMWLDCC.cjs');
|
|
|
37
38
|
var _chunkJ6TZRYCOcjs = require('./chunk-J6TZRYCO.cjs');
|
|
38
39
|
|
|
39
40
|
|
|
41
|
+
var _chunkXRRHPBG2cjs = require('./chunk-XRRHPBG2.cjs');
|
|
42
|
+
|
|
43
|
+
|
|
40
44
|
var _chunkCYOTNHDFcjs = require('./chunk-CYOTNHDF.cjs');
|
|
41
45
|
|
|
42
46
|
|
|
@@ -792,8 +796,8 @@ async function generateFarmTypeArtifacts(options) {
|
|
|
792
796
|
const shouldGenerateEnv = options.env !== false;
|
|
793
797
|
const shouldGenerateImages = options.images !== false;
|
|
794
798
|
const shouldGenerateI18n = options.i18n !== false && _optionalChain([options, 'access', _51 => _51.i18nConfig, 'optionalAccess', _52 => _52.enabled]);
|
|
795
|
-
const sourceRoots =
|
|
796
|
-
const appDirs =
|
|
799
|
+
const sourceRoots = _chunkQMR2TUVZcjs.getFarmSourceRoots.call(void 0, { root, srcDir, layers: options.layers });
|
|
800
|
+
const appDirs = _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, { root, srcDir, layers: options.layers });
|
|
797
801
|
const result = {
|
|
798
802
|
apiRoutes: [],
|
|
799
803
|
stalePaths: []
|
|
@@ -810,7 +814,7 @@ async function generateFarmTypeArtifacts(options) {
|
|
|
810
814
|
componentExtensions: options.componentExtensions,
|
|
811
815
|
sourceRoots
|
|
812
816
|
};
|
|
813
|
-
unifiedSections.push(await
|
|
817
|
+
unifiedSections.push(await _chunkK3ZELA6Ucjs.createRouteTypeDeclarations.call(void 0, routeOptions, unifiedTypesPath));
|
|
814
818
|
result.routeTypesPath = unifiedTypesPath;
|
|
815
819
|
} else if (shouldGenerateRoutes) {
|
|
816
820
|
const routeOptions = {
|
|
@@ -824,15 +828,15 @@ async function generateFarmTypeArtifacts(options) {
|
|
|
824
828
|
};
|
|
825
829
|
if (options.check) {
|
|
826
830
|
const routeTypesPath = resolveGeneratedPath(root, srcDir, options.routeTypesOutFile);
|
|
827
|
-
const content = await
|
|
831
|
+
const content = await _chunkK3ZELA6Ucjs.createRouteTypeDeclarations.call(void 0, routeOptions, routeTypesPath);
|
|
828
832
|
checkGeneratedFile(routeTypesPath, content, result.stalePaths);
|
|
829
833
|
result.routeTypesPath = routeTypesPath;
|
|
830
834
|
} else {
|
|
831
|
-
result.routeTypesPath = await
|
|
835
|
+
result.routeTypesPath = await _chunkK3ZELA6Ucjs.generateRouteTypes.call(void 0, routeOptions);
|
|
832
836
|
}
|
|
833
837
|
}
|
|
834
838
|
if (shouldGenerateApi) {
|
|
835
|
-
const generator = new (0,
|
|
839
|
+
const generator = new (0, _chunkA4WWKG2Bcjs.APITypeGenerator)(appDirs);
|
|
836
840
|
const apiRoutes = generator.scanAPIRoutes();
|
|
837
841
|
const apiTypesPath = options.apiTypesOutFile ? _path.resolve.call(void 0, root, options.apiTypesOutFile) : _path.join.call(void 0, root, srcDir, "lib", "api.generated.ts");
|
|
838
842
|
const pluginRoutes = _chunkIXO6O2ELcjs.resolvePluginRoutes.call(void 0,
|
|
@@ -937,11 +941,13 @@ async function generateFarmTypeArtifacts(options) {
|
|
|
937
941
|
}
|
|
938
942
|
}
|
|
939
943
|
if (shouldRefreshUnifiedTypes) {
|
|
944
|
+
const storageTypes = createStorageMountDeclarations(options, unifiedTypesPath);
|
|
945
|
+
if (storageTypes) unifiedSections.push(storageTypes);
|
|
940
946
|
const syncModelTypes = createSyncModelTypeDeclarations(options.plugins);
|
|
941
947
|
if (syncModelTypes) unifiedSections.push(syncModelTypes);
|
|
942
948
|
}
|
|
943
949
|
if (shouldRefreshUnifiedTypes && _fs.existsSync.call(void 0, _path.join.call(void 0, root, srcDir, "native"))) {
|
|
944
|
-
const [{ scanFarmMobileAppModules }, { createFarmNativeModuleTypeDeclarations }] = await Promise.all([import("./modules-
|
|
950
|
+
const [{ scanFarmMobileAppModules }, { createFarmNativeModuleTypeDeclarations }] = await Promise.all([import("./modules-KDHFBQ6L.cjs"), import("./native-specs-JDPH26AO.cjs")]);
|
|
945
951
|
const appModules = scanFarmMobileAppModules({ root, srcDir });
|
|
946
952
|
const nativeTypes = appModules && createFarmNativeModuleTypeDeclarations(appModules.specs, { root });
|
|
947
953
|
if (nativeTypes) unifiedSections.push(nativeTypes);
|
|
@@ -983,6 +989,36 @@ ${unifiedSections.map(normalizeUnifiedTypeSection).join("\n\n")}
|
|
|
983
989
|
}
|
|
984
990
|
return result;
|
|
985
991
|
}
|
|
992
|
+
function createStorageMountDeclarations(options, outPath) {
|
|
993
|
+
const storage = options.storage;
|
|
994
|
+
if (!storage || !("mounts" in storage) || !Object.values(_nullishCoalesce(storage.mounts, () => ( {}))).some(_chunkXRRHPBG2cjs.isManagedMount))
|
|
995
|
+
return;
|
|
996
|
+
const project = _chunkQMR2TUVZcjs.findFarmConfigFile.call(void 0,
|
|
997
|
+
options.root,
|
|
998
|
+
options.configPath && _path.resolve.call(void 0, options.root, options.configPath)
|
|
999
|
+
);
|
|
1000
|
+
const configs = [...(_nullishCoalesce(options.layers, () => ( []))).map((layer) => layer.configFile), project].filter(
|
|
1001
|
+
(file) => Boolean(file)
|
|
1002
|
+
);
|
|
1003
|
+
if (!configs.length) return;
|
|
1004
|
+
const lines = ["type FarmMountsOf<C> = C extends { storage: { mounts: infer M } } ? M : {};"];
|
|
1005
|
+
let mounts = "{}";
|
|
1006
|
+
for (const [index, file] of configs.entries()) {
|
|
1007
|
+
const path3 = _path.relative.call(void 0, _path.dirname.call(void 0, outPath), file).replace(/\\/g, "/").replace(/\.([cm]?)tsx?$/, ".$1js");
|
|
1008
|
+
const specifier = JSON.stringify(path3.startsWith(".") ? path3 : "./" + path3);
|
|
1009
|
+
const next = `FarmStorageMounts${index}`;
|
|
1010
|
+
lines.push(`type ${next} = FarmMountsOf<typeof import(${specifier}).default>;`);
|
|
1011
|
+
mounts = index === 0 ? next : `Omit<${mounts}, keyof ${next}> & ${next}`;
|
|
1012
|
+
}
|
|
1013
|
+
lines.push(`declare global {
|
|
1014
|
+
namespace FarmJS {
|
|
1015
|
+
interface StorageRegistry {
|
|
1016
|
+
mounts: ${mounts};
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
}`);
|
|
1020
|
+
return lines.join("\n");
|
|
1021
|
+
}
|
|
986
1022
|
function normalizeUnifiedTypeSection(section) {
|
|
987
1023
|
return section.trimEnd().replace(/\n+export \{\};$/, "");
|
|
988
1024
|
}
|
|
@@ -345,7 +345,7 @@ async function loadWorkflowModule(filePath, root) {
|
|
|
345
345
|
outDir,
|
|
346
346
|
`workflow-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`
|
|
347
347
|
);
|
|
348
|
-
const { bundleNodeModule } = await import("./node-module-bundle-
|
|
348
|
+
const { bundleNodeModule } = await import("./node-module-bundle-M6BISE2P.cjs");
|
|
349
349
|
await bundleNodeModule({
|
|
350
350
|
root,
|
|
351
351
|
entry: filePath,
|