@farm.js/core 0.1.60 → 0.1.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-mcp.d-C-2S9bnP.d.mts → agent-mcp.d-BKZ3UNbt.d.mts} +1 -1
- package/dist/{agent-mcp.d-SIoCUP1I.d.ts → agent-mcp.d-C1zr_nGS.d.ts} +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-2AHWJJR7.cjs +15 -0
- package/dist/analyzer-YESYU3GK.mjs +15 -0
- package/dist/api/route-manager.cjs +4 -4
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/route-manager.mjs +3 -3
- package/dist/api/runtime.cjs +3 -3
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api/runtime.mjs +2 -2
- package/dist/api.cjs +5 -5
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/api.mjs +4 -4
- package/dist/{app-manifest.d-DrSAHskY.d.mts → app-manifest.d-BpvhfKRH.d.mts} +1 -1
- package/dist/{app-manifest.d-Tb3CJpL4.d.ts → app-manifest.d-ntch_bvA.d.ts} +1 -1
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/{app.d-CmWlYpZJ.d.ts → app.d-AE8_v3Db.d.ts} +4 -10
- package/dist/{app.d-D6QQM_kk.d.mts → app.d-CysWA_8v.d.mts} +4 -10
- package/dist/{chunk-FORSVMEJ.mjs → chunk-2CNKQC3G.mjs} +1 -1
- package/dist/{chunk-ZFUKPWFC.mjs → chunk-2JYBLE63.mjs} +416 -208
- package/dist/{chunk-QRX4JRBO.cjs → chunk-3CCAICF7.cjs} +5 -5
- package/dist/{chunk-ANHZ6SUL.mjs → chunk-3TXKFRSO.mjs} +1 -1
- package/dist/{chunk-BHJAYPYU.mjs → chunk-3UZVPO72.mjs} +1 -1
- package/dist/{chunk-6UUH4N4J.mjs → chunk-43V3ANPQ.mjs} +1 -1
- package/dist/chunk-4EBC7EMW.cjs +8 -0
- package/dist/{chunk-VZY7MAVS.cjs → chunk-4IHMHFQB.cjs} +27 -1
- package/dist/{chunk-FK25QSVC.cjs → chunk-4P5634G6.cjs} +2 -2
- package/dist/{chunk-4JTQPOKO.cjs → chunk-53ZCZ46B.cjs} +2 -2
- package/dist/{chunk-NQJDO7K7.cjs → chunk-545WJ5UG.cjs} +321 -37
- package/dist/{chunk-VU3MYZPO.mjs → chunk-5FE5YT2N.mjs} +26 -0
- package/dist/{chunk-A5BJKSZE.cjs → chunk-5IQ2ERQA.cjs} +2 -2
- package/dist/{chunk-SJRCWF4Z.mjs → chunk-5Y22WNTO.mjs} +2 -2
- package/dist/{chunk-U4BJKNIR.cjs → chunk-752XUZIM.cjs} +11 -6
- package/dist/{chunk-JBK7UJOI.cjs → chunk-AJB3DHN6.cjs} +2 -2
- package/dist/{chunk-YB44NKC2.cjs → chunk-AXVRUDMB.cjs} +2 -2
- package/dist/{chunk-LJVNMGE3.mjs → chunk-BM2LH2JM.mjs} +8 -3
- package/dist/{chunk-YI6FKTTN.cjs → chunk-BT4SEFLC.cjs} +261 -38
- package/dist/{chunk-LIFUPCXW.cjs → chunk-CFG4QERR.cjs} +13 -2
- package/dist/{chunk-3OWVWZ6R.cjs → chunk-CLFEQGET.cjs} +6 -6
- package/dist/{chunk-OZK2DS44.mjs → chunk-CROAFCMW.mjs} +1 -1
- package/dist/{chunk-2KTYMMWT.mjs → chunk-DPE53XWL.mjs} +1 -1
- package/dist/{chunk-3PX4AIXO.mjs → chunk-DQF3QLOH.mjs} +258 -35
- package/dist/{chunk-FSQMN2MQ.mjs → chunk-E46NXBNJ.mjs} +1 -1
- package/dist/{chunk-EGVC4LIG.mjs → chunk-E4RDMG3K.mjs} +1 -1
- package/dist/{chunk-X2CZTWQA.mjs → chunk-ECKQFEX2.mjs} +1 -1
- package/dist/{chunk-MTWXOEI4.cjs → chunk-EXXFSZOC.cjs} +246 -193
- package/dist/{chunk-UYSTTPYJ.cjs → chunk-GGNJAGGE.cjs} +643 -435
- package/dist/{chunk-XTG73QZA.cjs → chunk-GVOMPU3Y.cjs} +12 -8
- package/dist/{chunk-ZP32GNJQ.cjs → chunk-I32V5CZL.cjs} +14 -13
- package/dist/{chunk-37PYUEK5.mjs → chunk-IOF4KXMP.mjs} +7 -3
- package/dist/{chunk-ILMTRGBG.mjs → chunk-IQIKPKFP.mjs} +157 -45
- package/dist/{chunk-5JNUYGNF.cjs → chunk-IWRLV46X.cjs} +2 -2
- package/dist/{chunk-KPOMS5RO.cjs → chunk-J3GFOQOL.cjs} +3 -3
- package/dist/{chunk-NHD7BAKD.mjs → chunk-JCEFKP5M.mjs} +41 -25
- package/dist/{analyzer-LCSI3NSH.cjs → chunk-JEJQGZI7.cjs} +16 -13
- package/dist/{chunk-LB3DPQP6.cjs → chunk-JLDNXURZ.cjs} +23 -23
- package/dist/{chunk-VGG74PSU.cjs → chunk-L2JG337G.cjs} +2 -2
- package/dist/chunk-L4RTTTVE.mjs +8 -0
- package/dist/chunk-LEJDW34D.cjs +115 -0
- package/dist/{analyzer-22BEYV7S.mjs → chunk-LVWGURLD.mjs} +6 -3
- package/dist/{chunk-Z5A6CNV2.mjs → chunk-MK5E44WP.mjs} +1 -1
- package/dist/{chunk-T4EW7AAD.mjs → chunk-NKRZLQUK.mjs} +2 -2
- package/dist/{chunk-HPWB57PZ.mjs → chunk-NT3QDN2E.mjs} +1 -1
- package/dist/{chunk-T7I62A4C.mjs → chunk-OUWRNHTV.mjs} +81 -28
- package/dist/{chunk-GFT5AHAT.mjs → chunk-QDWMCFTH.mjs} +12 -1
- package/dist/{chunk-AER5I65K.mjs → chunk-QTD6EMN2.mjs} +1 -1
- package/dist/{chunk-UDJY2ZGY.cjs → chunk-RMUD75WT.cjs} +413 -301
- package/dist/chunk-RZNCMRD3.mjs +141 -0
- package/dist/{chunk-D7LTCK3U.mjs → chunk-SA7MLSP4.mjs} +11 -6
- package/dist/{chunk-2FRLSDBT.cjs → chunk-SM25ZC4S.cjs} +1 -1
- package/dist/{chunk-3YMLUNL2.cjs → chunk-SVXOCTQ2.cjs} +1 -1
- package/dist/{chunk-W2RZ73IU.cjs → chunk-SYXPWJ7N.cjs} +8 -8
- package/dist/{chunk-F6Y7ZAPQ.mjs → chunk-T46NNU4D.mjs} +6 -3
- package/dist/{chunk-IFHPDLIS.mjs → chunk-TGULJSHD.mjs} +5 -4
- package/dist/{chunk-JPIUGDK4.mjs → chunk-TZVUF5JJ.mjs} +1 -1
- package/dist/chunk-UWI3SJAK.cjs +141 -0
- package/dist/{chunk-JI5D7MXY.mjs → chunk-UYRI6U3P.mjs} +1 -1
- package/dist/{chunk-D2X5MUF5.cjs → chunk-V727H3RI.cjs} +47 -31
- package/dist/{chunk-ZMHAFH4R.mjs → chunk-VM7X5CKC.mjs} +2 -2
- package/dist/{chunk-VPTWKOCY.mjs → chunk-VWW4Q3BJ.mjs} +287 -6
- package/dist/{chunk-4P23B7DU.cjs → chunk-WKJQ2FJA.cjs} +3 -3
- package/dist/{chunk-HASX6DC7.cjs → chunk-WKPBIT5Q.cjs} +8 -8
- package/dist/{chunk-RAWWCDCT.cjs → chunk-WYAXRIYP.cjs} +3 -3
- package/dist/{chunk-3TL3AH25.cjs → chunk-X4K7TYN6.cjs} +12 -7
- package/dist/chunk-XCXHQBMM.mjs +115 -0
- package/dist/{chunk-DPJ66FSI.cjs → chunk-XX32BOMM.cjs} +7 -7
- package/dist/{chunk-2IAPKPEB.cjs → chunk-YN6BHOYY.cjs} +6 -6
- package/dist/{chunk-CBKRS3M4.cjs → chunk-Z7P2BTZ3.cjs} +7 -6
- package/dist/{chunk-SX7EECTS.mjs → chunk-ZBUAOGMY.mjs} +1 -1
- package/dist/{chunk-RPUJHJHE.mjs → chunk-ZFWYCVKS.mjs} +4 -3
- package/dist/{chunk-IFXSBJPN.cjs → chunk-ZVIEFTUA.cjs} +20 -17
- package/dist/{chunk-EXUONJYV.mjs → chunk-ZZI56IUY.mjs} +3 -3
- package/dist/{programmatic-routes-client.d-CLG2N1yH.d.ts → client-component.d-Bgt3x5Fu.d.ts} +18 -3
- package/dist/{programmatic-routes-client.d-CPbNqtIi.d.mts → client-component.d-BoqC2MLC.d.mts} +18 -3
- package/dist/{client-plugins.d-vXrbcfJ1.d.ts → client-plugins.d-BcqIy4au.d.ts} +1 -1
- package/dist/{client-plugins.d-CgQQ-EAv.d.mts → client-plugins.d-CWyYBxXf.d.mts} +1 -1
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client.d.mts +7 -7
- package/dist/client.d.ts +7 -7
- package/dist/{config.d-DqZkLwef.d.ts → config.d-qt-mE8O5.d.mts} +6 -2
- package/dist/{config.d-DqZkLwef.d.mts → config.d-qt-mE8O5.d.ts} +6 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/cron.cjs +12 -2
- package/dist/cron.d.mts +101 -3
- package/dist/cron.d.ts +101 -3
- package/dist/cron.mjs +11 -1
- package/dist/desktop.d.mts +3 -3
- package/dist/desktop.d.ts +3 -3
- package/dist/{devtools-KQZ6SRCJ.mjs → devtools-NUVXYG7I.mjs} +6 -6
- package/dist/{devtools-UF6JYHUN.cjs → devtools-SVRSGPNC.cjs} +8 -8
- package/dist/docs.cjs +9 -9
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +8 -8
- package/dist/image/server.cjs +3 -3
- package/dist/image/server.mjs +2 -2
- package/dist/image/sharp.cjs +10 -10
- package/dist/image/sharp.mjs +2 -2
- package/dist/index.cjs +42 -27
- package/dist/{index.d-Dmfb7Kb_.d.mts → index.d-BDaiu2i5.d.mts} +1 -1
- package/dist/{index.d-DlCELfhf.d.ts → index.d-nAncqTXz.d.ts} +1 -1
- package/dist/index.d.mts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.mjs +42 -27
- 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.d.mts +3 -3
- package/dist/internal/app-markdown-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.cjs +27 -22
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +26 -21
- package/dist/internal/cli-runtime.cjs +12 -11
- package/dist/internal/cli-runtime.mjs +11 -10
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/compression-runtime.d.mts +2 -2
- package/dist/internal/compression-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.cjs +8 -8
- package/dist/internal/config-runtime.d.mts +5 -5
- package/dist/internal/config-runtime.d.ts +5 -5
- package/dist/internal/config-runtime.mjs +7 -7
- package/dist/internal/form-actions.cjs +4 -4
- package/dist/internal/form-actions.mjs +3 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/metadata-image-runtime.cjs +3 -3
- package/dist/internal/metadata-image-runtime.mjs +2 -2
- package/dist/internal/native-server-fns.cjs +25 -0
- package/dist/internal/native-server-fns.d.mts +42 -0
- package/dist/internal/native-server-fns.d.ts +42 -0
- package/dist/internal/native-server-fns.mjs +25 -0
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-node-env.cjs +2 -2
- package/dist/internal/production-node-env.mjs +1 -1
- package/dist/internal/production-runtime.cjs +16 -10
- package/dist/internal/production-runtime.d.mts +39 -12
- package/dist/internal/production-runtime.d.ts +39 -12
- package/dist/internal/production-runtime.mjs +15 -9
- package/dist/internal/react-cache.cjs +51 -0
- package/dist/internal/react-cache.d.mts +3 -0
- package/dist/internal/react-cache.d.ts +3 -0
- package/dist/internal/react-cache.mjs +51 -0
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/middleware.cjs +3 -3
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/middleware.mjs +2 -2
- package/dist/mobile.d.mts +10 -4
- package/dist/mobile.d.ts +10 -4
- package/dist/{modules-VHD7BELU.mjs → modules-KOKD4XS6.mjs} +2 -2
- package/dist/modules-QTP7WJPD.cjs +13 -0
- package/dist/native-server-fn-handler-GLRHAYWV.mjs +28 -0
- package/dist/native-server-fn-handler-J5MYRXN6.cjs +28 -0
- package/dist/native-specs-5OLED4MM.cjs +15 -0
- package/dist/{native-specs-BD7HOTMJ.mjs → native-specs-LDV6IZ4N.mjs} +1 -1
- package/dist/{native-tree-VWNW2MQ2.mjs → native-tree-AS5L3ID3.mjs} +2 -2
- package/dist/{native-tree-6G5O53O3.cjs → native-tree-Z2WYUJEV.cjs} +3 -3
- package/dist/native.cjs +1 -1
- package/dist/native.d.mts +5 -5
- package/dist/native.d.ts +5 -5
- package/dist/native.mjs +1 -1
- package/dist/{navigation-delegate.d-JXx40JzR.d.ts → navigation-delegate.d-BbUHRXxG.d.ts} +1 -1
- package/dist/{navigation-delegate.d-CnOTWOyi.d.mts → navigation-delegate.d-CSCm8ZxL.d.mts} +1 -1
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/{nitro-FLN6DRGJ.mjs → nitro-DD4QCA66.mjs} +5 -5
- package/dist/{nitro-HXAZZQKY.cjs → nitro-VRDX2H4M.cjs} +8 -8
- package/dist/plugin.cjs +19 -18
- package/dist/plugin.d.mts +5 -5
- package/dist/plugin.d.ts +5 -5
- package/dist/plugin.mjs +18 -17
- package/dist/{port-WOOQ3V56.mjs → port-UFUZL6RI.mjs} +2 -2
- package/dist/{port-C6GBH4C6.cjs → port-VTLHPZOI.cjs} +10 -10
- package/dist/{production-runtime.d-CP5s6RuY.d.mts → production-runtime.d-CcQiDko5.d.mts} +1 -1
- package/dist/{production-runtime.d-N-cE3pmy.d.ts → production-runtime.d-DgT24A0f.d.ts} +1 -1
- package/dist/{render-plan.d-DZ-qjjdG.d.mts → render-plan.d-BH9WF-JZ.d.mts} +1 -1
- package/dist/{render-plan.d-B9lAP3uX.d.ts → render-plan.d-CyrX6MDs.d.ts} +1 -1
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/{request.d-BiicaNxb.d.ts → request.d-BB8M8bcD.d.ts} +1 -1
- package/dist/{request.d-DV0oeUit.d.mts → request.d-CUrPnCW7.d.mts} +1 -1
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/{route-rendering.d-BrIKA51A.d.mts → route-rendering.d-CYxlzaFm.d.mts} +1 -1
- package/dist/{route-rendering.d-Iss0C7GR.d.ts → route-rendering.d-DYqZMIf4.d.ts} +1 -1
- package/dist/{router.d-mNTbOGV_.d.mts → router.d-7o24CD8u.d.mts} +1 -1
- package/dist/{router.d-DjGn_al7.d.ts → router.d-DaKo507j.d.ts} +1 -1
- package/dist/{routes.d-BKSjHuH9.d.ts → routes.d-BknKQcTu.d.ts} +7 -1
- package/dist/{routes.d-qd8Qf4LG.d.mts → routes.d-D1IrO9KK.d.mts} +7 -1
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/{rsc-pipeline-SVLBTY7H.cjs → rsc-pipeline-OF2I7PCX.cjs} +8 -8
- package/dist/{rsc-pipeline-WBLBDQXA.mjs → rsc-pipeline-RFLHDAKD.mjs} +7 -7
- package/dist/{runtime-DGUOWSMF.cjs → runtime-LBTK62AD.cjs} +70 -47
- package/dist/{runtime-HFZTVNFF.mjs → runtime-M6UJCSLA.mjs} +38 -15
- package/dist/{runtime.d-Bm_4hP5T.d.ts → runtime.d-CN73a-IL.d.ts} +1 -1
- package/dist/{runtime.d-BNVbojF1.d.mts → runtime.d-CcNuzhX6.d.mts} +1 -1
- package/dist/server-action-security.cjs +3 -3
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +38 -37
- package/dist/server.d.mts +10 -10
- package/dist/server.d.ts +10 -10
- package/dist/server.mjs +23 -22
- package/dist/{spa-router.d-DHDoXxDE.d.mts → spa-router.d-CNi77LZm.d.mts} +2 -2
- package/dist/{spa-router.d-DAtnNoBe.d.ts → spa-router.d-Cvgf5QP4.d.ts} +2 -2
- package/dist/testing.cjs +6 -6
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.mjs +4 -4
- package/dist/{utils.d-DwZ-KLSB.d.ts → utils.d-C3H-14_Y.d.ts} +1 -1
- package/dist/{utils.d-uKZcKJk4.d.mts → utils.d-D8VfzZYn.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +21 -18
- package/dist/vite.d.mts +5 -5
- package/dist/vite.d.ts +5 -5
- package/dist/vite.mjs +20 -17
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +12 -2
- package/dist/modules-WT5D3AWY.cjs +0 -13
- package/dist/native-specs-IQQRJOOW.cjs +0 -15
|
@@ -11,27 +11,34 @@ import {
|
|
|
11
11
|
loadFarmProductionVite
|
|
12
12
|
} from "./chunk-PSUYE5HR.mjs";
|
|
13
13
|
import {
|
|
14
|
+
FARM_COMPILE_CACHE_DIR,
|
|
14
15
|
FARM_DESKTOP_ENV_MODULE_FILE,
|
|
15
16
|
FARM_DESKTOP_ENV_MODULE_SOURCE,
|
|
16
17
|
FARM_NODE_ENV_MODULE_FILE,
|
|
17
18
|
FARM_NODE_ENV_MODULE_SOURCE,
|
|
19
|
+
FARM_SERVER_MODULE_FILE,
|
|
18
20
|
createFarmBunServerEntry,
|
|
21
|
+
createFarmCompileCacheLauncher,
|
|
19
22
|
createFarmNodeServerEntry,
|
|
20
23
|
withProductionNodeEnv
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5FE5YT2N.mjs";
|
|
22
25
|
import {
|
|
23
26
|
generateNativeMCPPluginSource
|
|
24
27
|
} from "./chunk-KQH2COEJ.mjs";
|
|
25
28
|
import {
|
|
26
29
|
FARM_MOBILE_SESSION_PLUGIN
|
|
27
30
|
} from "./chunk-B4CWYGCG.mjs";
|
|
31
|
+
import {
|
|
32
|
+
collectFarmNativeServerFns,
|
|
33
|
+
findFarmNativeScreenFiles
|
|
34
|
+
} from "./chunk-RZNCMRD3.mjs";
|
|
28
35
|
import {
|
|
29
36
|
assertFarmDocsAdapterServesNoGuardedPages,
|
|
30
37
|
compileFarmDocsAdapterEdgeManifest,
|
|
31
38
|
createFarmDocsAPIHandler,
|
|
32
39
|
hasFarmDocsRuntimeAdapter,
|
|
33
40
|
listFarmDocsAdapterPages
|
|
34
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-T46NNU4D.mjs";
|
|
35
42
|
import {
|
|
36
43
|
FARM_DOCS_LAST_MODIFIED_MANIFEST,
|
|
37
44
|
createFarmDocsHandler,
|
|
@@ -43,7 +50,7 @@ import {
|
|
|
43
50
|
loadFarmDocsPage,
|
|
44
51
|
resolveFarmDocsContentDir,
|
|
45
52
|
toFarmDocsMarkdownPage
|
|
46
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-DPE53XWL.mjs";
|
|
47
54
|
import {
|
|
48
55
|
generateFarmDocsSearchClientRuntime,
|
|
49
56
|
isFarmDocsSearchEnabled,
|
|
@@ -51,7 +58,7 @@ import {
|
|
|
51
58
|
} from "./chunk-ALEUMLJN.mjs";
|
|
52
59
|
import {
|
|
53
60
|
FARM_PRERENDER_ENV
|
|
54
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-2CNKQC3G.mjs";
|
|
55
62
|
import {
|
|
56
63
|
loadFarmDocsEngine
|
|
57
64
|
} from "./chunk-VE3FWJBO.mjs";
|
|
@@ -60,7 +67,7 @@ import {
|
|
|
60
67
|
getDeployTargetForPreset,
|
|
61
68
|
hasCustomFarmRouteContext,
|
|
62
69
|
resolveDeployOutputPath
|
|
63
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-VWW4Q3BJ.mjs";
|
|
64
71
|
import {
|
|
65
72
|
resolveFarmInstrumentationFile
|
|
66
73
|
} from "./chunk-N35YPV4N.mjs";
|
|
@@ -104,7 +111,7 @@ import {
|
|
|
104
111
|
usePackageClientBoundaryCacheFile,
|
|
105
112
|
usesFarmServerTree,
|
|
106
113
|
withPackageClientBoundaryCache
|
|
107
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-2JYBLE63.mjs";
|
|
108
115
|
import {
|
|
109
116
|
loadTailwindVitePlugin
|
|
110
117
|
} from "./chunk-OM7WILES.mjs";
|
|
@@ -115,7 +122,7 @@ import {
|
|
|
115
122
|
generateFarmTypeArtifacts,
|
|
116
123
|
readRouteRenderingDirectiveFromFile,
|
|
117
124
|
resolveRouteRenderingConfigFromFile
|
|
118
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-BM2LH2JM.mjs";
|
|
119
126
|
import {
|
|
120
127
|
HOISTED_HEAD_ELEMENT,
|
|
121
128
|
appMiddlewareMayHandlePath,
|
|
@@ -145,12 +152,15 @@ import {
|
|
|
145
152
|
listFarmBuiltInRoutePaths,
|
|
146
153
|
resolveFarmApiCatalogInput,
|
|
147
154
|
resolveFarmAppManifestInput
|
|
148
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-VM7X5CKC.mjs";
|
|
149
156
|
import {
|
|
150
157
|
FARM_DEFAULT_MCP_PATH,
|
|
151
158
|
createFarmDefaultMCPServer,
|
|
152
159
|
farmConfigMountsMCP
|
|
153
160
|
} from "./chunk-UZZ6IEQP.mjs";
|
|
161
|
+
import {
|
|
162
|
+
FARM_NATIVE_SERVER_FN_PLUGIN
|
|
163
|
+
} from "./chunk-L4RTTTVE.mjs";
|
|
154
164
|
import {
|
|
155
165
|
farmEnvironmentFunctionsPlugin
|
|
156
166
|
} from "./chunk-ZQ5BDNKW.mjs";
|
|
@@ -200,23 +210,23 @@ import {
|
|
|
200
210
|
import {
|
|
201
211
|
applyFarmWorkflowVercelCrons,
|
|
202
212
|
prepareFarmWorkflowsForNitro
|
|
203
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-TZVUF5JJ.mjs";
|
|
204
214
|
import {
|
|
205
215
|
applyFarmCronVercelCrons,
|
|
206
216
|
createFarmCronCloudflareConfig,
|
|
207
217
|
mergeScheduledTasks,
|
|
208
218
|
prepareFarmCronForNitro
|
|
209
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-DQF3QLOH.mjs";
|
|
210
220
|
import {
|
|
211
221
|
resolveServerActionsConfig
|
|
212
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-E46NXBNJ.mjs";
|
|
213
223
|
import {
|
|
214
224
|
_collectFarmStorageModules
|
|
215
225
|
} from "./chunk-TJVUTGED.mjs";
|
|
216
226
|
import {
|
|
217
227
|
getFarmIntegrationPluginServerRuntime,
|
|
218
228
|
getIntegrationProviders
|
|
219
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-TGULJSHD.mjs";
|
|
220
230
|
import {
|
|
221
231
|
FARM_INTEGRATION_API_BASE_PATH_KEY
|
|
222
232
|
} from "./chunk-M53MIIXY.mjs";
|
|
@@ -227,7 +237,7 @@ import {
|
|
|
227
237
|
} from "./chunk-MMK4MZUN.mjs";
|
|
228
238
|
import {
|
|
229
239
|
APIRouteManager
|
|
230
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-3UZVPO72.mjs";
|
|
231
241
|
import {
|
|
232
242
|
readFarmI18nCatalogs
|
|
233
243
|
} from "./chunk-DU4VHHPJ.mjs";
|
|
@@ -254,7 +264,7 @@ import {
|
|
|
254
264
|
} from "./chunk-2I6PUKWJ.mjs";
|
|
255
265
|
import {
|
|
256
266
|
FARM_VERSION
|
|
257
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-NT3QDN2E.mjs";
|
|
258
268
|
import {
|
|
259
269
|
getFarmPresetRuntime
|
|
260
270
|
} from "./chunk-UAQD67HM.mjs";
|
|
@@ -2293,7 +2303,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2293
2303
|
resolveFarmMdxComponentsModulePath(resolveMdxConfig(config.mdx), root),
|
|
2294
2304
|
root,
|
|
2295
2305
|
isolatedMode,
|
|
2296
|
-
planOptions
|
|
2306
|
+
{ ...planOptions, packageReferences: pagePlanOptions.serverOwners }
|
|
2297
2307
|
);
|
|
2298
2308
|
const routePlans = pageRoutes.map((route) => ({
|
|
2299
2309
|
route,
|
|
@@ -6164,7 +6174,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
6164
6174
|
resolveFarmMdxComponentsModulePath(resolveMdxConfig(config.mdx), config.root),
|
|
6165
6175
|
config.root,
|
|
6166
6176
|
isolatedHydrationMode,
|
|
6167
|
-
hydrationPlanOptions
|
|
6177
|
+
{ ...hydrationPlanOptions, packageReferences: pageHydrationPlanOptions.serverOwners }
|
|
6168
6178
|
);
|
|
6169
6179
|
const pageHydrationPlans = new Map(
|
|
6170
6180
|
pageRoutes.map((route) => [
|
|
@@ -6604,6 +6614,13 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
|
|
|
6604
6614
|
const mobileSession = (config.plugins || []).some(
|
|
6605
6615
|
(plugin) => plugin?.name === FARM_MOBILE_SESSION_PLUGIN
|
|
6606
6616
|
);
|
|
6617
|
+
const nativeServerFns = (config.plugins || []).some(
|
|
6618
|
+
(plugin) => plugin?.name === FARM_NATIVE_SERVER_FN_PLUGIN
|
|
6619
|
+
) ? collectFarmNativeServerFns({
|
|
6620
|
+
root: config.root,
|
|
6621
|
+
srcDir: config.srcDir,
|
|
6622
|
+
entries: findFarmNativeScreenFiles(getFarmAppDirectories(config))
|
|
6623
|
+
}) : void 0;
|
|
6607
6624
|
const integrationImports = `
|
|
6608
6625
|
${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
|
|
6609
6626
|
${layerConfigImports}
|
|
@@ -6611,6 +6628,11 @@ ${integrationRuntimeImport}
|
|
|
6611
6628
|
${nativeAuth.importSource}
|
|
6612
6629
|
${nativeMCP.importSource}
|
|
6613
6630
|
${mobileSession ? `import { createFarmMobileSessionPlugin as __farmCreateMobileSessionPlugin } from "@farm.js/core/internal/production-runtime";` : ""}
|
|
6631
|
+
${nativeServerFns ? `import { createFarmNativeServerFnPlugin as __farmCreateNativeServerFnPlugin } from "@farm.js/core/internal/production-runtime";` : ""}
|
|
6632
|
+
${(nativeServerFns ?? []).map((module, index) => `import * as __farmNativeServerFns${index} from ${toVirtualEntryImportSpecifier(module.file)};`).join("\n")}
|
|
6633
|
+
${nativeServerFns ? `const __farmNativeServerFnRegistry = Object.assign(Object.create(null), {
|
|
6634
|
+
${nativeServerFns.flatMap((module, index) => module.exports.map((entry) => ` ${JSON.stringify(entry.id)}: __farmNativeServerFns${index}[${JSON.stringify(entry.name)}],`)).join("\n")}
|
|
6635
|
+
});` : ""}
|
|
6614
6636
|
`;
|
|
6615
6637
|
const imageRuntime = resolveFarmImageServerRuntime(config.images, preset);
|
|
6616
6638
|
const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
|
|
@@ -6896,6 +6918,7 @@ const configuredPlugins = [
|
|
|
6896
6918
|
basePath: ${JSON.stringify(config.basePath)},
|
|
6897
6919
|
integrations: () => serverRuntimeIntegrations,
|
|
6898
6920
|
}),` : ""}
|
|
6921
|
+
${nativeServerFns ? `__farmCreateNativeServerFnPlugin({ resolve: (id) => __farmNativeServerFnRegistry[id] }),` : ""}
|
|
6899
6922
|
${hasConfiguredRuntimePlugins ? `...farmRuntimeConfigs.flatMap((runtimeConfig) =>
|
|
6900
6923
|
Array.isArray(runtimeConfig.plugins) ? runtimeConfig.plugins : [],
|
|
6901
6924
|
),` : ""}
|
|
@@ -11146,16 +11169,20 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
11146
11169
|
if (farmWorkflows.workflows.length > 0) {
|
|
11147
11170
|
logger.info(`\u23F1\uFE0F Found ${farmWorkflows.workflows.length} Farm workflow task(s)`);
|
|
11148
11171
|
}
|
|
11149
|
-
if (farmCron.jobs.length > 0) {
|
|
11172
|
+
if (farmCron.jobs.length > 0 && farmCron.provider === "farmjs") {
|
|
11173
|
+
logger.info(
|
|
11174
|
+
`\u23F1\uFE0F ${farmCron.jobs.length} Farm cron job(s) for Infra; run farm cron sync after deployment`
|
|
11175
|
+
);
|
|
11176
|
+
} else if (farmCron.jobs.length > 0) {
|
|
11150
11177
|
logger.info(`\u23F1\uFE0F Configured ${farmCron.jobs.length} Farm cron route(s)`);
|
|
11151
11178
|
}
|
|
11152
|
-
if (preset === "cloudflare-pages" && farmCron.jobs.length > 0) {
|
|
11179
|
+
if (preset === "cloudflare-pages" && farmCron.jobs.length > 0 && farmCron.provider === "host") {
|
|
11153
11180
|
logger.warn(
|
|
11154
11181
|
"Cloudflare Pages does not install Cron Triggers. Use the cloudflare-module preset or an external scheduler with .farm/cron-manifest.json."
|
|
11155
11182
|
);
|
|
11156
11183
|
}
|
|
11157
11184
|
const scheduledTasks = mergeScheduledTasks(farmWorkflows.scheduledTasks, farmCron.scheduledTasks);
|
|
11158
|
-
const cloudflareCronConfig = createFarmCronCloudflareConfig(farmCron.jobs);
|
|
11185
|
+
const cloudflareCronConfig = farmCron.provider === "host" ? createFarmCronCloudflareConfig(farmCron.jobs) : void 0;
|
|
11159
11186
|
const [clientCssHref, clientJsSrc, clientBootSrc, docsModulePreloads, clientModulePreloads] = await Promise.all([
|
|
11160
11187
|
resolveHashedClientCssHref(clientOutputDir),
|
|
11161
11188
|
resolveHashedClientJsSrc(clientOutputDir),
|
|
@@ -11530,7 +11557,7 @@ function toFarmNodeResponse(request, response) {
|
|
|
11530
11557
|
}
|
|
11531
11558
|
} : {},
|
|
11532
11559
|
experimental: {
|
|
11533
|
-
tasks: farmWorkflows.workflows.length > 0 || farmCron.
|
|
11560
|
+
tasks: farmWorkflows.workflows.length > 0 || Object.keys(farmCron.tasks).length > 0
|
|
11534
11561
|
},
|
|
11535
11562
|
tasks: {
|
|
11536
11563
|
...farmWorkflows.tasks,
|
|
@@ -11800,6 +11827,9 @@ function toFarmNodeResponse(request, response) {
|
|
|
11800
11827
|
if (useRolldownBuilder) {
|
|
11801
11828
|
logger.info("\u26A1 Built the Node adapter with Rolldown");
|
|
11802
11829
|
}
|
|
11830
|
+
if (preset === "node-server" && !desktopServerEntry) {
|
|
11831
|
+
await installFarmCompileCacheLauncher(path10.join(outputDir, "server"), fs4);
|
|
11832
|
+
}
|
|
11803
11833
|
if (pluginManager) {
|
|
11804
11834
|
await pluginManager.runHookParallel("afterNitroBuild", {
|
|
11805
11835
|
root,
|
|
@@ -11809,7 +11839,15 @@ function toFarmNodeResponse(request, response) {
|
|
|
11809
11839
|
});
|
|
11810
11840
|
}
|
|
11811
11841
|
if (isVercel) {
|
|
11812
|
-
await postProcessVercelOutput(
|
|
11842
|
+
await postProcessVercelOutput(
|
|
11843
|
+
root,
|
|
11844
|
+
outputDir,
|
|
11845
|
+
fs4,
|
|
11846
|
+
config,
|
|
11847
|
+
farmWorkflows,
|
|
11848
|
+
routeRuntimeManifest,
|
|
11849
|
+
farmCron.provider === "host" ? farmCron.jobs : []
|
|
11850
|
+
);
|
|
11813
11851
|
}
|
|
11814
11852
|
logger.success(`\u2705 Nitro build completed with preset: ${preset}`);
|
|
11815
11853
|
}
|
|
@@ -11847,6 +11885,20 @@ async function writeSSRBundleFiles(files, targetDir, fs4) {
|
|
|
11847
11885
|
async function copyPrebuiltSSRBundle(ssrBundle, targetDir, minifyOptions, fs4) {
|
|
11848
11886
|
await writeSSRBundleFiles(await prepareSSRBundleFiles(ssrBundle, minifyOptions), targetDir, fs4);
|
|
11849
11887
|
}
|
|
11888
|
+
async function installFarmCompileCacheLauncher(serverDir, fs4) {
|
|
11889
|
+
const entryPath = path10.join(serverDir, "index.mjs");
|
|
11890
|
+
const serverPath = path10.join(serverDir, FARM_SERVER_MODULE_FILE);
|
|
11891
|
+
const entry = await fs4.readFile(entryPath, "utf8").catch((error) => {
|
|
11892
|
+
if (error.code === "ENOENT") return null;
|
|
11893
|
+
throw error;
|
|
11894
|
+
});
|
|
11895
|
+
if (entry === null) return false;
|
|
11896
|
+
if (entry.includes(`./${FARM_SERVER_MODULE_FILE}`)) return false;
|
|
11897
|
+
await fs4.rename(entryPath, serverPath);
|
|
11898
|
+
await fs4.writeFile(entryPath, createFarmCompileCacheLauncher(FARM_SERVER_MODULE_FILE));
|
|
11899
|
+
await fs4.rm(path10.join(serverDir, FARM_COMPILE_CACHE_DIR), { recursive: true, force: true });
|
|
11900
|
+
return true;
|
|
11901
|
+
}
|
|
11850
11902
|
async function registerPrebuiltSSRPackageImport(serverDir, ssrEntryFile, fs4) {
|
|
11851
11903
|
const packagePath = path10.join(serverDir, "package.json");
|
|
11852
11904
|
const packageJSON = await fs4.readFile(packagePath, "utf8").then((contents) => JSON.parse(contents)).catch((error) => {
|
|
@@ -11876,7 +11928,7 @@ async function moveVercelOutputPath(src, dest, fs4) {
|
|
|
11876
11928
|
await fs4.cp(src, dest, { recursive: true, force: true });
|
|
11877
11929
|
await fs4.rm(src, { recursive: true, force: true });
|
|
11878
11930
|
}
|
|
11879
|
-
async function postProcessVercelOutput(root, outputDir, fs4, config, farmWorkflows, routeRuntimeManifest) {
|
|
11931
|
+
async function postProcessVercelOutput(root, outputDir, fs4, config, farmWorkflows, routeRuntimeManifest, cronJobs) {
|
|
11880
11932
|
const serverDir = path10.join(outputDir, "server");
|
|
11881
11933
|
const functionsDir = path10.join(outputDir, "functions");
|
|
11882
11934
|
const nitroFuncDir = path10.join(functionsDir, "__nitro.func");
|
|
@@ -11915,10 +11967,7 @@ async function postProcessVercelOutput(root, outputDir, fs4, config, farmWorkflo
|
|
|
11915
11967
|
vercelConfig,
|
|
11916
11968
|
farmWorkflows.workflows
|
|
11917
11969
|
);
|
|
11918
|
-
const vercelConfigWithCrons = applyFarmCronVercelCrons(
|
|
11919
|
-
vercelConfigWithWorkflowCrons,
|
|
11920
|
-
config.cron.jobs
|
|
11921
|
-
);
|
|
11970
|
+
const vercelConfigWithCrons = applyFarmCronVercelCrons(vercelConfigWithWorkflowCrons, cronJobs);
|
|
11922
11971
|
await fs4.writeFile(configPath, JSON.stringify(vercelConfigWithCrons, null, 2));
|
|
11923
11972
|
logger.info("\u2705 Post-processed Vercel output for Build Output API v3");
|
|
11924
11973
|
}
|
|
@@ -12446,6 +12495,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
12446
12495
|
}
|
|
12447
12496
|
}
|
|
12448
12497
|
async function createProjectModuleServer(createViteServer, config, root, buildLifetime) {
|
|
12498
|
+
const { farmServerOnlyEntriesPlugin } = await import("./vite.mjs");
|
|
12449
12499
|
const rendererVitePlugins = await loadFarmRendererVitePlugins(config.renderer, root, {
|
|
12450
12500
|
ssr: true,
|
|
12451
12501
|
buildLifetime
|
|
@@ -12467,7 +12517,10 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
12467
12517
|
basePath: config.basePath,
|
|
12468
12518
|
publicDir: config.publicDir
|
|
12469
12519
|
}),
|
|
12470
|
-
farmEnvironmentFunctionsPlugin()
|
|
12520
|
+
farmEnvironmentFunctionsPlugin(),
|
|
12521
|
+
// Route modules load here at build time (rendering config, prerendering): `server-only`
|
|
12522
|
+
// resolves as it does in the server build.
|
|
12523
|
+
farmServerOnlyEntriesPlugin()
|
|
12471
12524
|
],
|
|
12472
12525
|
server: {
|
|
12473
12526
|
middlewareMode: true,
|
|
@@ -12586,7 +12639,7 @@ function resolveLegacyPageEntry(config, root, srcDir) {
|
|
|
12586
12639
|
}
|
|
12587
12640
|
async function buildNitro(config, routeManager, apiRouteManager, serverRenderer, preset, root, distDir, pluginManager) {
|
|
12588
12641
|
const [{ createNitroConfig }, { createNitro, build: nitroBuild }] = await Promise.all([
|
|
12589
|
-
import("./nitro-
|
|
12642
|
+
import("./nitro-DD4QCA66.mjs"),
|
|
12590
12643
|
import("nitro/builder")
|
|
12591
12644
|
]);
|
|
12592
12645
|
let nitroConfig = await createNitroConfig(
|
|
@@ -229,8 +229,18 @@ function withFarmRequestClientAddress(request, trustProxy, clientAddress) {
|
|
|
229
229
|
}
|
|
230
230
|
return requestWithShape;
|
|
231
231
|
}
|
|
232
|
-
|
|
232
|
+
var liveRequestClones = /* @__PURE__ */ new WeakMap();
|
|
233
|
+
function cloneFarmRequest(request) {
|
|
233
234
|
const cloned = request.clone();
|
|
235
|
+
if (request.body) {
|
|
236
|
+
const clones = liveRequestClones.get(request);
|
|
237
|
+
if (clones) clones.push(cloned);
|
|
238
|
+
else liveRequestClones.set(request, [cloned]);
|
|
239
|
+
}
|
|
240
|
+
return cloned;
|
|
241
|
+
}
|
|
242
|
+
function cloneFarmRequestWithContext(request) {
|
|
243
|
+
const cloned = cloneFarmRequest(request);
|
|
234
244
|
copyRequestContext(request, cloned);
|
|
235
245
|
return cloned;
|
|
236
246
|
}
|
|
@@ -414,6 +424,7 @@ export {
|
|
|
414
424
|
resolveFarmServerConfig,
|
|
415
425
|
parseBodySizeLimit,
|
|
416
426
|
withFarmRequestClientAddress,
|
|
427
|
+
cloneFarmRequest,
|
|
417
428
|
cloneFarmRequestWithContext,
|
|
418
429
|
bufferFarmRequestBody,
|
|
419
430
|
readFarmRequestBody,
|