@farm.js/core 0.1.40 → 0.1.42
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-DRlXq3lM.d.ts → agent-mcp-SSD6L3VZ.d.ts} +8 -2
- package/dist/{agent-mcp-XNF4JqHw.d.mts → agent-mcp-ssVy_tea.d.mts} +8 -2
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/api/client.cjs +3 -3
- package/dist/api/client.mjs +2 -2
- package/dist/api/route-manager.cjs +8 -8
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/route-manager.mjs +7 -7
- package/dist/api/runtime.cjs +6 -6
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api/runtime.mjs +5 -5
- package/dist/api.cjs +10 -10
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/api.mjs +9 -9
- package/dist/{app-CWjCklhF.d.mts → app-1h3lVT4a.d.mts} +5 -5
- package/dist/{app-CDJHPqZn.d.ts → app-KjFzdCqy.d.ts} +5 -5
- package/dist/app-manifest-D3RkVNuS.d.mts +120 -0
- package/dist/app-manifest-DaW8-tvX.d.ts +120 -0
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/cache.cjs +3 -3
- package/dist/cache.mjs +2 -2
- package/dist/{chunk-UM3ZV5EP.mjs → chunk-24SP5TGU.mjs} +1 -1
- package/dist/{chunk-B6IMBBOS.cjs → chunk-25LPIZSX.cjs} +3 -3
- package/dist/{chunk-WW374SGU.mjs → chunk-26RUNDIR.mjs} +1 -1
- package/dist/{chunk-B77AUCBV.cjs → chunk-2FUIT2G2.cjs} +3 -3
- package/dist/{chunk-IMQO6ZUU.mjs → chunk-2JZHQDUY.mjs} +2 -2
- package/dist/{chunk-BPGO2IEP.mjs → chunk-35WS7P2V.mjs} +24 -126
- package/dist/{chunk-XKIUHXHW.mjs → chunk-375K2ZVU.mjs} +46 -52
- package/dist/{chunk-MNUSIXGS.mjs → chunk-4KQDHTWX.mjs} +1 -1
- package/dist/{chunk-DATEWH3W.cjs → chunk-6IZWX6ES.cjs} +22 -8
- package/dist/{chunk-Y6LRPO2K.mjs → chunk-6LVRDOAW.mjs} +19 -5
- package/dist/{chunk-UMQAK3KP.cjs → chunk-6MVFHNYZ.cjs} +2 -2
- package/dist/{chunk-OLQ73ZO5.mjs → chunk-6PKXK4TY.mjs} +3 -3
- package/dist/{chunk-PYQ3ZG4Z.mjs → chunk-724JLMS4.mjs} +4 -4
- package/dist/{chunk-PNCM5MFD.mjs → chunk-7UEEHAW7.mjs} +1 -1
- package/dist/{chunk-EW4MEVLE.cjs → chunk-7YHSD3Z6.cjs} +82 -118
- package/dist/{chunk-DKU6NXRK.cjs → chunk-AHFRQMRX.cjs} +1 -1
- package/dist/{chunk-7VAJSSPG.mjs → chunk-B2GSRB3P.mjs} +1 -1
- package/dist/{chunk-JXB6DVCO.mjs → chunk-BPNRQ5BA.mjs} +1 -1
- package/dist/{chunk-FLZ4H25A.cjs → chunk-BXJ5HJTJ.cjs} +13 -12
- package/dist/{chunk-GNVEJUT5.cjs → chunk-C5KVWHIH.cjs} +21 -21
- package/dist/chunk-COABSY3U.mjs +196 -0
- package/dist/{chunk-Y2GNNXGV.cjs → chunk-D64OPY6A.cjs} +5 -5
- package/dist/{chunk-BYQVROIP.mjs → chunk-DMRPN25V.mjs} +69 -0
- package/dist/{chunk-I64GEPOB.cjs → chunk-FEYQCYT7.cjs} +3 -3
- package/dist/{chunk-AXB5P7BK.mjs → chunk-FIAPD365.mjs} +1 -1
- package/dist/{chunk-7FHZ3E6D.cjs → chunk-GB7LDGY5.cjs} +2 -2
- package/dist/{chunk-45UZKX2J.mjs → chunk-HJ64F4GS.mjs} +2 -2
- package/dist/{chunk-IRYK4Z5M.cjs → chunk-I5MG3TKE.cjs} +2 -2
- package/dist/{chunk-YR2P74F7.cjs → chunk-IFWSR7YZ.cjs} +2 -2
- package/dist/{chunk-5E65AL7P.mjs → chunk-IN6RCKLL.mjs} +5 -4
- package/dist/{chunk-CKFK3Z2V.mjs → chunk-IVQY6UTY.mjs} +1 -1
- package/dist/{chunk-3TB5QGUW.cjs → chunk-JAXDRRRC.cjs} +70 -1
- package/dist/{chunk-EORXKFLR.cjs → chunk-JEIG3EWE.cjs} +1 -1
- package/dist/{chunk-54QWHSNR.cjs → chunk-JG3MEQUH.cjs} +150 -156
- package/dist/{chunk-TFX4RTH2.mjs → chunk-JOW4HDJO.mjs} +1 -1
- package/dist/{chunk-H44XGLFU.cjs → chunk-L6A26QT5.cjs} +9 -9
- package/dist/{chunk-OZN4XL6L.cjs → chunk-LIZTLA5F.cjs} +7 -6
- package/dist/{chunk-62DY5GKS.mjs → chunk-LLUA2LSC.mjs} +2 -2
- package/dist/{chunk-LDPKAYVS.cjs → chunk-LYIZHJTK.cjs} +2 -2
- package/dist/{chunk-2DMWQWNJ.mjs → chunk-MEASUNVY.mjs} +1 -1
- package/dist/{chunk-T4II4MMW.mjs → chunk-MHHCLYXU.mjs} +1 -1
- package/dist/{chunk-SHFXCE5A.cjs → chunk-MHN4UR5U.cjs} +4 -4
- package/dist/{chunk-5JEC43MQ.cjs → chunk-MN4TQJ3W.cjs} +9 -9
- package/dist/{chunk-5XS5NCVM.cjs → chunk-MY5PZYAD.cjs} +4 -4
- package/dist/{chunk-2JG2LJDI.cjs → chunk-NBPNUQYO.cjs} +2 -2
- package/dist/{chunk-4XO5GSD6.cjs → chunk-NFG4PUPI.cjs} +2 -2
- package/dist/{chunk-Y4QVEU67.mjs → chunk-NU25TRIO.mjs} +5 -4
- package/dist/{chunk-5LL6TKII.mjs → chunk-O7USYJ4U.mjs} +1 -1
- package/dist/{chunk-VBN3UAPQ.mjs → chunk-P2UJF4SS.mjs} +1 -1
- package/dist/{chunk-T6DLMX5V.mjs → chunk-PIZXONIS.mjs} +73 -109
- package/dist/{chunk-KK22JPQM.cjs → chunk-QEILRWVV.cjs} +30 -132
- package/dist/{chunk-UXMIFB44.cjs → chunk-QIBP5EFA.cjs} +5 -5
- package/dist/{chunk-TAKG7ZCD.cjs → chunk-QKZMB7LY.cjs} +14 -14
- package/dist/{chunk-FCOLU5P6.mjs → chunk-QTEJGB5A.mjs} +39 -16
- package/dist/{chunk-QJM7A4CR.cjs → chunk-S7MTDRYA.cjs} +10 -10
- package/dist/{chunk-ACLPN56I.mjs → chunk-SGB4IW7K.mjs} +1 -1
- package/dist/{chunk-GKQL726H.cjs → chunk-TCJ4A4A2.cjs} +78 -82
- package/dist/{chunk-ZKVJYQPO.mjs → chunk-TUL355PH.mjs} +13 -17
- package/dist/{chunk-H56MQYEG.mjs → chunk-U2UC7UGP.mjs} +1 -1
- package/dist/{chunk-I63UCMXW.mjs → chunk-ULQOP5UI.mjs} +2 -2
- package/dist/{chunk-HBEBV7OZ.mjs → chunk-UQUEANTY.mjs} +1 -1
- package/dist/chunk-VHRS3MCW.cjs +196 -0
- package/dist/{chunk-WCWV25PG.mjs → chunk-VTBXE6QG.mjs} +2 -2
- package/dist/{chunk-E55H6UKH.cjs → chunk-WLHA5USH.cjs} +9 -9
- package/dist/{chunk-YJBWB6GF.mjs → chunk-WMBRZI5V.mjs} +1 -1
- package/dist/{chunk-AGR7F3LA.cjs → chunk-WROEFVNO.cjs} +3 -3
- package/dist/{chunk-CA62IQY3.cjs → chunk-WU7ZS3EM.cjs} +2 -2
- package/dist/{chunk-ZOABCQGT.mjs → chunk-X3NGFVRF.mjs} +37 -22
- package/dist/{chunk-XJAEZCT6.mjs → chunk-XUC6CFLE.mjs} +1 -1
- package/dist/{chunk-6ILGLCXF.cjs → chunk-YWCYV7QC.cjs} +8 -8
- package/dist/{chunk-T36UJS3X.mjs → chunk-YYQVGKO5.mjs} +2 -2
- package/dist/{chunk-EGCT3AHF.cjs → chunk-ZATTDMBW.cjs} +127 -104
- package/dist/{chunk-PGW7HZE2.cjs → chunk-ZS6HDNOM.cjs} +6 -6
- package/dist/{chunk-XVIEGKTT.cjs → chunk-ZTP3BJG6.cjs} +41 -26
- package/dist/{client-plugins-B_5QbNrp.d.mts → client-plugins-C9Py_50W.d.mts} +79 -7
- package/dist/{client-plugins-DgSfIWIF.d.ts → client-plugins-DIem0I0W.d.ts} +79 -7
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client.cjs +5 -5
- package/dist/client.d.mts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.mjs +4 -4
- package/dist/client.react-server.mjs +2 -0
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/{devtools-ANJ7JAPQ.cjs → devtools-2RY3EKHL.cjs} +6 -6
- package/dist/{devtools-VEQQDVHE.mjs → devtools-Q3LBNUJ7.mjs} +5 -5
- package/dist/docs.cjs +8 -8
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +7 -7
- package/dist/headers.cjs +4 -4
- package/dist/headers.mjs +3 -3
- package/dist/image/server.d.mts +1 -1
- package/dist/image/server.d.ts +1 -1
- package/dist/image/sharp.d.mts +1 -1
- package/dist/image/sharp.d.ts +1 -1
- package/dist/{image-config-Duob7wER.d.ts → image-config-BpH1q5R8.d.mts} +4 -1
- package/dist/{image-config-Duob7wER.d.mts → image-config-BpH1q5R8.d.ts} +4 -1
- package/dist/image.d.mts +1 -1
- package/dist/image.d.ts +1 -1
- package/dist/index.cjs +40 -38
- package/dist/index.d.mts +16 -135
- package/dist/index.d.ts +16 -135
- package/dist/index.mjs +39 -37
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +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 +23 -23
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +22 -22
- package/dist/internal/cli-runtime.cjs +13 -13
- package/dist/internal/cli-runtime.mjs +12 -12
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +2 -2
- package/dist/internal/compression-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.cjs +6 -6
- package/dist/internal/config-runtime.d.mts +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +5 -5
- package/dist/internal/docs-precompiled-runtime.cjs +3 -3
- package/dist/internal/docs-precompiled-runtime.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +5 -5
- package/dist/internal/infra-analytics-runtime.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +21 -13
- package/dist/internal/production-runtime.d.mts +29 -126
- package/dist/internal/production-runtime.d.ts +29 -126
- package/dist/internal/production-runtime.mjs +21 -13
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/middleware.cjs +7 -7
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/middleware.mjs +6 -6
- package/dist/navigation.cjs +4 -4
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/navigation.mjs +3 -3
- package/dist/{nitro-NFG2LBRC.mjs → nitro-KDACKNHU.mjs} +1 -1
- package/dist/{nitro-S2QABUFA.cjs → nitro-NPGU6VBT.cjs} +2 -2
- package/dist/plugin.cjs +21 -21
- package/dist/plugin.d.mts +4 -3
- package/dist/plugin.d.ts +4 -3
- package/dist/plugin.mjs +20 -20
- package/dist/{production-runtime-j_WCfuwB.d.mts → production-runtime-CHFKIgpW.d.mts} +1 -1
- package/dist/{production-runtime-DfknD3g_.d.ts → production-runtime-bjjWq-DA.d.ts} +1 -1
- package/dist/query/client.cjs +2 -2
- package/dist/query/client.mjs +3 -3
- package/dist/{render-plan-CFIhcYYS.d.ts → render-plan-B2UndB4x.d.ts} +1 -1
- package/dist/{render-plan-ChUtsymc.d.mts → render-plan-DOHg6wdO.d.mts} +1 -1
- package/dist/renderer-client.d.mts +4 -4
- package/dist/renderer-client.d.ts +4 -4
- package/dist/{request-F4HRwzSd.d.mts → request-DQcGfdgQ.d.mts} +1 -1
- package/dist/{request-RJvelT8L.d.ts → request-DVNXRQrI.d.ts} +1 -1
- package/dist/request.cjs +3 -3
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/request.mjs +2 -2
- package/dist/{route-rendering-D4coJ-kw.d.ts → route-rendering-B_6fj-GG.d.ts} +1 -1
- package/dist/{route-rendering-3a4fbNyC.d.mts → route-rendering-CEX4mFn-.d.mts} +1 -1
- package/dist/{router-WLEW3Te1.d.ts → router-CHEMHm1P.d.ts} +1 -1
- package/dist/{router-DqIssGRO.d.mts → router-CKHPBKXX.d.mts} +1 -1
- package/dist/routes.cjs +4 -4
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/routes.mjs +3 -3
- package/dist/{runtime-BrNdLOq9.d.ts → runtime-Br2ZDTAv.d.ts} +1 -1
- package/dist/{runtime-CmE_j-js.d.mts → runtime-jj8TKNsy.d.mts} +1 -1
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.cjs +5 -5
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server-plugins.mjs +4 -4
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +46 -46
- package/dist/server.d.mts +10 -9
- package/dist/server.d.ts +10 -9
- package/dist/server.mjs +25 -25
- package/dist/{spa-router-C41zjnFl.d.mts → spa-router-BEvS9Erj.d.mts} +2 -2
- package/dist/{spa-router-D_0VXqPC.d.ts → spa-router-DmCuH5B7.d.ts} +2 -2
- package/dist/ssg-57v6cZcW.d.mts +184 -0
- package/dist/ssg-gT093ETk.d.ts +184 -0
- package/dist/testing.cjs +11 -11
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.mjs +8 -8
- package/dist/theme/server.cjs +4 -4
- package/dist/theme/server.mjs +3 -3
- package/dist/{utils-YYcWsOJp.d.ts → utils-CCTKvR-P.d.ts} +1 -1
- package/dist/{utils-BKWSe3S7.d.mts → utils-raHHQVyL.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +38 -22
- package/dist/vite.d.mts +41 -4
- package/dist/vite.d.ts +41 -4
- package/dist/vite.mjs +38 -22
- package/dist/workflows.cjs +2 -2
- package/dist/workflows.mjs +1 -1
- package/package.json +2 -1
- package/dist/chunk-DAO7JGTS.mjs +0 -73
- package/dist/chunk-SYQ3MOWW.cjs +0 -73
- package/dist/programmatic-routes-client-DcoxEaLe.d.mts +0 -55
- package/dist/programmatic-routes-client-DcoxEaLe.d.ts +0 -55
- /package/dist/{chunk-MOSYH4CY.mjs → chunk-FWCGUVVL.mjs} +0 -0
- /package/dist/{chunk-4A3YUB4D.cjs → chunk-KF6VDJH7.cjs} +0 -0
|
@@ -31,14 +31,14 @@ var _chunkKEXK442Icjs = require('./chunk-KEXK442I.cjs');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkZATTDMBWcjs = require('./chunk-ZATTDMBW.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunk45QJHGZMcjs = require('./chunk-45QJHGZM.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkQEILRWVVcjs = require('./chunk-QEILRWVV.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -52,8 +52,7 @@ var _chunkKK22JPQMcjs = require('./chunk-KK22JPQM.cjs');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
var _chunkEW4MEVLEcjs = require('./chunk-EW4MEVLE.cjs');
|
|
55
|
+
var _chunk7YHSD3Z6cjs = require('./chunk-7YHSD3Z6.cjs');
|
|
57
56
|
|
|
58
57
|
|
|
59
58
|
var _chunkCXP5U3RWcjs = require('./chunk-CXP5U3RW.cjs');
|
|
@@ -94,7 +93,7 @@ var _chunkPSV6XKPOcjs = require('./chunk-PSV6XKPO.cjs');
|
|
|
94
93
|
|
|
95
94
|
|
|
96
95
|
|
|
97
|
-
var
|
|
96
|
+
var _chunkJAXDRRRCcjs = require('./chunk-JAXDRRRC.cjs');
|
|
98
97
|
|
|
99
98
|
|
|
100
99
|
var _chunkD5IHNDHIcjs = require('./chunk-D5IHNDHI.cjs');
|
|
@@ -137,7 +136,7 @@ var _chunk6QQDAAAZcjs = require('./chunk-6QQDAAAZ.cjs');
|
|
|
137
136
|
var _chunkRHGK2JENcjs = require('./chunk-RHGK2JEN.cjs');
|
|
138
137
|
|
|
139
138
|
|
|
140
|
-
var
|
|
139
|
+
var _chunkL6A26QT5cjs = require('./chunk-L6A26QT5.cjs');
|
|
141
140
|
|
|
142
141
|
|
|
143
142
|
|
|
@@ -153,7 +152,7 @@ var _chunk4PPEPOZZcjs = require('./chunk-4PPEPOZZ.cjs');
|
|
|
153
152
|
var _chunkMQ3H6LT5cjs = require('./chunk-MQ3H6LT5.cjs');
|
|
154
153
|
|
|
155
154
|
|
|
156
|
-
var
|
|
155
|
+
var _chunkS7MTDRYAcjs = require('./chunk-S7MTDRYA.cjs');
|
|
157
156
|
|
|
158
157
|
|
|
159
158
|
var _chunkXJXBIP67cjs = require('./chunk-XJXBIP67.cjs');
|
|
@@ -163,7 +162,7 @@ var _chunkXJXBIP67cjs = require('./chunk-XJXBIP67.cjs');
|
|
|
163
162
|
var _chunkLYLEZIG3cjs = require('./chunk-LYLEZIG3.cjs');
|
|
164
163
|
|
|
165
164
|
|
|
166
|
-
var
|
|
165
|
+
var _chunkQIBP5EFAcjs = require('./chunk-QIBP5EFA.cjs');
|
|
167
166
|
|
|
168
167
|
|
|
169
168
|
var _chunk75RZHGLScjs = require('./chunk-75RZHGLS.cjs');
|
|
@@ -212,7 +211,7 @@ var _chunkKNBBQHO2cjs = require('./chunk-KNBBQHO2.cjs');
|
|
|
212
211
|
var _chunk5NAVKJCZcjs = require('./chunk-5NAVKJCZ.cjs');
|
|
213
212
|
|
|
214
213
|
|
|
215
|
-
var
|
|
214
|
+
var _chunkAHFRQMRXcjs = require('./chunk-AHFRQMRX.cjs');
|
|
216
215
|
|
|
217
216
|
|
|
218
217
|
var _chunkS3A45T7Fcjs = require('./chunk-S3A45T7F.cjs');
|
|
@@ -231,13 +230,13 @@ var _chunkC5GUTBZKcjs = require('./chunk-C5GUTBZK.cjs');
|
|
|
231
230
|
var _chunkQBK2AA4Ucjs = require('./chunk-QBK2AA4U.cjs');
|
|
232
231
|
|
|
233
232
|
|
|
234
|
-
var
|
|
233
|
+
var _chunkNFG4PUPIcjs = require('./chunk-NFG4PUPI.cjs');
|
|
235
234
|
|
|
236
235
|
|
|
237
236
|
var _chunkOX6O6WVAcjs = require('./chunk-OX6O6WVA.cjs');
|
|
238
237
|
|
|
239
238
|
|
|
240
|
-
var
|
|
239
|
+
var _chunkZTP3BJG6cjs = require('./chunk-ZTP3BJG6.cjs');
|
|
241
240
|
|
|
242
241
|
|
|
243
242
|
|
|
@@ -774,8 +773,8 @@ function farmLlmsTxtGeneratedPaths(config) {
|
|
|
774
773
|
}
|
|
775
774
|
_chunkS3JO3N4Hcjs.__name.call(void 0, farmLlmsTxtGeneratedPaths, "farmLlmsTxtGeneratedPaths");
|
|
776
775
|
function farmAgentGeneratedPaths(config) {
|
|
777
|
-
const crawlers =
|
|
778
|
-
const sitemap =
|
|
776
|
+
const crawlers = _chunkJAXDRRRCcjs.resolveFarmAgentCrawlers.call(void 0, _optionalChain([config, 'access', _44 => _44.agent, 'optionalAccess', _45 => _45.crawlers]));
|
|
777
|
+
const sitemap = _chunkJAXDRRRCcjs.resolveFarmAgentSitemap.call(void 0, _optionalChain([config, 'access', _46 => _46.agent, 'optionalAccess', _47 => _47.sitemap]));
|
|
779
778
|
return [
|
|
780
779
|
...farmLlmsTxtGeneratedPaths(config),
|
|
781
780
|
...sitemap.enabled ? ["/sitemap.xml"] : [],
|
|
@@ -825,7 +824,7 @@ function loadFarmWorkflowsDevRuntime() {
|
|
|
825
824
|
}
|
|
826
825
|
_chunkS3JO3N4Hcjs.__name.call(void 0, loadFarmWorkflowsDevRuntime, "loadFarmWorkflowsDevRuntime");
|
|
827
826
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
828
|
-
return import("./devtools-
|
|
827
|
+
return import("./devtools-2RY3EKHL.cjs");
|
|
829
828
|
}
|
|
830
829
|
_chunkS3JO3N4Hcjs.__name.call(void 0, loadFarmDevtoolsSnapshotRuntime, "loadFarmDevtoolsSnapshotRuntime");
|
|
831
830
|
function loadFarmDevtoolsUIRuntime() {
|
|
@@ -912,7 +911,7 @@ function renderFarmI18nStaticHead(requestPath, snapshot) {
|
|
|
912
911
|
if (!snapshot) return "";
|
|
913
912
|
const runtime = `<script>window.__FARM_I18N__ = ${serializeFarmInlineValue(snapshot)};</script>`;
|
|
914
913
|
if (snapshot.routing === "none") return runtime;
|
|
915
|
-
return `${
|
|
914
|
+
return `${_chunk7YHSD3Z6cjs.renderFarmLocaleAlternateLinks.call(void 0, requestPath, snapshot)}${runtime}`;
|
|
916
915
|
}
|
|
917
916
|
_chunkS3JO3N4Hcjs.__name.call(void 0, renderFarmI18nStaticHead, "renderFarmI18nStaticHead");
|
|
918
917
|
function getPublicEnvDefine(config) {
|
|
@@ -939,7 +938,7 @@ function createRequestFromNodeRequest(req, url, signal) {
|
|
|
939
938
|
});
|
|
940
939
|
}
|
|
941
940
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createRequestFromNodeRequest, "createRequestFromNodeRequest");
|
|
942
|
-
function withFarmRequestTracing(handler, apiRuntime, resolveTraceUrl = (request) =>
|
|
941
|
+
function withFarmRequestTracing(handler, apiRuntime, resolveTraceUrl = (request) => _chunkZTP3BJG6cjs.resolveFarmRequestURL.call(void 0, request)) {
|
|
943
942
|
const middleware = _chunkMQ3H6LT5cjs._withAfterNodeMiddleware.call(void 0, handler);
|
|
944
943
|
return (req, res, next) => {
|
|
945
944
|
const traceUrl = resolveTraceUrl(req);
|
|
@@ -1422,7 +1421,7 @@ function hasViteAlias(alias, find) {
|
|
|
1422
1421
|
_chunkS3JO3N4Hcjs.__name.call(void 0, hasViteAlias, "hasViteAlias");
|
|
1423
1422
|
function farmPlugin(options = {}, initialPluginManager) {
|
|
1424
1423
|
const imageImports = farmImageImportsPlugin();
|
|
1425
|
-
const fontImports =
|
|
1424
|
+
const fontImports = _chunkZATTDMBWcjs.farmFontImportsPlugin.call(void 0, {
|
|
1426
1425
|
root: options.root,
|
|
1427
1426
|
basePath: options.basePath,
|
|
1428
1427
|
publicDir: options.publicDir
|
|
@@ -1459,7 +1458,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1459
1458
|
config(userConfig, configEnv) {
|
|
1460
1459
|
isBuild = configEnv.command === "build";
|
|
1461
1460
|
const layerAliases = _chunkWBKEZXWEcjs.getFarmLayerAliases.call(void 0, options.layers);
|
|
1462
|
-
const sourceAlias = hasViteAlias(_optionalChain([userConfig, 'access', _75 => _75.resolve, 'optionalAccess', _76 => _76.alias]), "@") ? {} :
|
|
1461
|
+
const sourceAlias = hasViteAlias(_optionalChain([userConfig, 'access', _75 => _75.resolve, 'optionalAccess', _76 => _76.alias]), "@") ? {} : _chunkZATTDMBWcjs.createFarmSourceAlias.call(void 0, options.root || process.cwd(), options.srcDir);
|
|
1463
1462
|
const layerRoots = (_nullishCoalesce(options.layers, () => ( []))).map((layer) => layer.root);
|
|
1464
1463
|
return {
|
|
1465
1464
|
// Honor Farm's publicDir so the dev server serves the same static
|
|
@@ -1512,7 +1511,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1512
1511
|
} catch (e12) {
|
|
1513
1512
|
}
|
|
1514
1513
|
}, "emitPluginError");
|
|
1515
|
-
farmApp = new (0,
|
|
1514
|
+
farmApp = new (0, _chunkZATTDMBWcjs.FarmApp)(
|
|
1516
1515
|
{
|
|
1517
1516
|
...options,
|
|
1518
1517
|
root: resolveDevelopmentRoot(options.root, server.config.root)
|
|
@@ -1525,7 +1524,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1525
1524
|
if (_optionalChain([farmConfig, 'access', _84 => _84.agent, 'optionalAccess', _85 => _85.noindexPreviews])) {
|
|
1526
1525
|
server.middlewares.use((_req, res, next) => {
|
|
1527
1526
|
if (_chunkCXP5U3RWcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env)) {
|
|
1528
|
-
res.setHeader("X-Robots-Tag",
|
|
1527
|
+
res.setHeader("X-Robots-Tag", _chunkJAXDRRRCcjs.FARM_PREVIEW_ROBOTS_TAG);
|
|
1529
1528
|
}
|
|
1530
1529
|
next();
|
|
1531
1530
|
});
|
|
@@ -1570,7 +1569,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1570
1569
|
);
|
|
1571
1570
|
const generateTypeArtifacts = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async (reason, selection = ALL_TYPE_ARTIFACTS, log = false) => {
|
|
1572
1571
|
try {
|
|
1573
|
-
const result = await
|
|
1572
|
+
const result = await _chunkQEILRWVVcjs.generateFarmTypeArtifacts.call(void 0, {
|
|
1574
1573
|
root: farmConfig.root,
|
|
1575
1574
|
srcDir: farmConfig.srcDir,
|
|
1576
1575
|
layers: farmConfig.layers,
|
|
@@ -1738,7 +1737,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1738
1737
|
});
|
|
1739
1738
|
}
|
|
1740
1739
|
const dispatchToDevServer = _chunkUXHS27O6cjs.createFarmDevServerDispatch.call(void 0, server);
|
|
1741
|
-
apiRouteManager = new (0,
|
|
1740
|
+
apiRouteManager = new (0, _chunkS7MTDRYAcjs.APIRouteManager)(appDirs, server, {
|
|
1742
1741
|
plugins: farmConfig.plugins,
|
|
1743
1742
|
i18n: farmApp.getI18nRuntime(),
|
|
1744
1743
|
bodySizeLimit: serverConfig.bodySizeLimit,
|
|
@@ -1784,7 +1783,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1784
1783
|
});
|
|
1785
1784
|
}
|
|
1786
1785
|
}
|
|
1787
|
-
middlewareManager = new (0,
|
|
1786
|
+
middlewareManager = new (0, _chunkL6A26QT5cjs.MiddlewareManager)(
|
|
1788
1787
|
appDirs,
|
|
1789
1788
|
server,
|
|
1790
1789
|
farmConfig.middleware,
|
|
@@ -1838,7 +1837,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1838
1837
|
return _chunkAMDMVWMIcjs.resolveFarmLayoutFonts.call(void 0, layoutModules);
|
|
1839
1838
|
}, "resolveDocsLayoutFonts");
|
|
1840
1839
|
releaseDocsMCPServers();
|
|
1841
|
-
const isFarmDocsPathGuarded = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (href) =>
|
|
1840
|
+
const isFarmDocsPathGuarded = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (href) => _chunk7YHSD3Z6cjs.farmPathGuardCoversPage.call(void 0,
|
|
1842
1841
|
{
|
|
1843
1842
|
config: farmConfig,
|
|
1844
1843
|
middlewareRoutes: middlewareManager.getMiddlewares().filter((entry) => entry.source !== "config")
|
|
@@ -1851,7 +1850,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1851
1850
|
clientEntry: "/@farm/client.js",
|
|
1852
1851
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
1853
1852
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
1854
|
-
globalStylesheetHref:
|
|
1853
|
+
globalStylesheetHref: _chunkZATTDMBWcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
1855
1854
|
farmConfig.root,
|
|
1856
1855
|
farmConfig.srcDir
|
|
1857
1856
|
),
|
|
@@ -1881,7 +1880,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1881
1880
|
fontAssets: _chunkHREOKQWTcjs.toFarmDocsPublicFontAssets.call(void 0, farmDocsFontAssetList),
|
|
1882
1881
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
1883
1882
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
1884
|
-
globalStylesheetHref:
|
|
1883
|
+
globalStylesheetHref: _chunkZATTDMBWcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
1885
1884
|
farmConfig.root,
|
|
1886
1885
|
farmConfig.srcDir
|
|
1887
1886
|
),
|
|
@@ -1895,7 +1894,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1895
1894
|
const matchedRoute = routeManager.matchRoute(pathname);
|
|
1896
1895
|
const layoutEntries = matchedRoute.layouts.map((layout) => ({
|
|
1897
1896
|
...layout,
|
|
1898
|
-
metadata:
|
|
1897
|
+
metadata: _chunkZATTDMBWcjs.getClientModuleMetadata.call(void 0, layout.modulePath, farmConfig.root)
|
|
1899
1898
|
}));
|
|
1900
1899
|
if (!layoutEntries.some((layout) => layout.metadata.shouldHydrate)) {
|
|
1901
1900
|
return response;
|
|
@@ -2036,7 +2035,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2036
2035
|
(request) => {
|
|
2037
2036
|
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _127 => _127.getConfig, 'call', _128 => _128()]), () => ( options));
|
|
2038
2037
|
const currentServerConfig = _chunk5NAVKJCZcjs.resolveFarmServerConfig.call(void 0, currentConfig.server);
|
|
2039
|
-
return
|
|
2038
|
+
return _chunkZTP3BJG6cjs.resolveFarmRequestURL.call(void 0, request, {
|
|
2040
2039
|
trustProxy: currentServerConfig.trustProxy
|
|
2041
2040
|
});
|
|
2042
2041
|
}
|
|
@@ -2047,7 +2046,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2047
2046
|
const requestMethod = req.method || "GET";
|
|
2048
2047
|
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _129 => _129.getConfig, 'call', _130 => _130()]), () => ( options));
|
|
2049
2048
|
const currentServerConfig = _chunk5NAVKJCZcjs.resolveFarmServerConfig.call(void 0, currentConfig.server);
|
|
2050
|
-
const parsedRequestUrl =
|
|
2049
|
+
const parsedRequestUrl = _chunkZTP3BJG6cjs.resolveFarmRequestURL.call(void 0, req, {
|
|
2051
2050
|
trustProxy: currentServerConfig.trustProxy
|
|
2052
2051
|
});
|
|
2053
2052
|
const fullUrl = parsedRequestUrl.toString();
|
|
@@ -2231,28 +2230,24 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2231
2230
|
);
|
|
2232
2231
|
return;
|
|
2233
2232
|
}
|
|
2234
|
-
if (_optionalChain([options, 'access', _147 => _147.agent, 'optionalAccess', _148 => _148.manifest]) !== false &&
|
|
2233
|
+
if (_optionalChain([options, 'access', _147 => _147.agent, 'optionalAccess', _148 => _148.manifest]) !== false && _chunk7YHSD3Z6cjs.isFarmAppManifestPath.call(void 0, _chunkI57LW5VZcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath))) {
|
|
2235
2234
|
await serveBuiltInRoute(async () => {
|
|
2236
|
-
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages =
|
|
2237
|
-
const
|
|
2238
|
-
const manifest = await _chunkEW4MEVLEcjs.createFarmAppManifestResponse.call(void 0,
|
|
2235
|
+
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages = _chunkZATTDMBWcjs.resolveFarmAppPackages.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd()))))));
|
|
2236
|
+
const manifest = await _chunk7YHSD3Z6cjs.createFarmAppManifestResponse.call(void 0,
|
|
2239
2237
|
new Request(parsedRequestUrl, {
|
|
2240
2238
|
method: requestMethod,
|
|
2241
|
-
headers: {
|
|
2242
|
-
"if-none-match": header("if-none-match"),
|
|
2243
|
-
[_chunkEW4MEVLEcjs.FARM_INFRA_SIGNATURE_HEADER]: header(_chunkEW4MEVLEcjs.FARM_INFRA_SIGNATURE_HEADER)
|
|
2244
|
-
}
|
|
2239
|
+
headers: { "if-none-match": String(_nullishCoalesce(req.headers["if-none-match"], () => ( ""))) }
|
|
2245
2240
|
}),
|
|
2246
2241
|
{
|
|
2247
|
-
...
|
|
2242
|
+
..._chunk7YHSD3Z6cjs.resolveFarmAppManifestInput.call(void 0, farmConfig, {
|
|
2248
2243
|
build: "development",
|
|
2249
2244
|
packages: farmAppPackages,
|
|
2250
2245
|
// Read again on each request; unchanged files come from a cache.
|
|
2251
|
-
webmcpTools: _optionalChain([farmConfig, 'access', _149 => _149.plugins, 'optionalAccess', _150 => _150.some, 'call', _151 => _151(({ name }) => name === "farm:webmcp")]) ?
|
|
2246
|
+
webmcpTools: _optionalChain([farmConfig, 'access', _149 => _149.plugins, 'optionalAccess', _150 => _150.some, 'call', _151 => _151(({ name }) => name === "farm:webmcp")]) ? _chunkZATTDMBWcjs.collectFarmWebMCPTools.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd())), farmConfig.srcDir) : []
|
|
2252
2247
|
}),
|
|
2253
2248
|
defaultMCP: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => farmApp.getServerRenderer().getDefaultMCPServer(), "defaultMCP"),
|
|
2254
2249
|
// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
2255
|
-
guardCoversPath: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (path5) =>
|
|
2250
|
+
guardCoversPath: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (path5) => _chunk7YHSD3Z6cjs.farmPathGuardCoversEndpoint.call(void 0,
|
|
2256
2251
|
{
|
|
2257
2252
|
config: farmConfig,
|
|
2258
2253
|
middlewareRoutes: middlewareManager.getMiddlewares().filter((entry) => entry.source !== "config")
|
|
@@ -2266,11 +2261,11 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2266
2261
|
});
|
|
2267
2262
|
return;
|
|
2268
2263
|
}
|
|
2269
|
-
if (_optionalChain([options, 'access', _152 => _152.agent, 'optionalAccess', _153 => _153.apiCatalog]) && _chunkI57LW5VZcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) ===
|
|
2264
|
+
if (_optionalChain([options, 'access', _152 => _152.agent, 'optionalAccess', _153 => _153.apiCatalog]) && _chunkI57LW5VZcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) === _chunk7YHSD3Z6cjs.FARM_API_CATALOG_PATH) {
|
|
2270
2265
|
await serveBuiltInRoute(
|
|
2271
|
-
() =>
|
|
2266
|
+
() => _chunk7YHSD3Z6cjs.createFarmApiCatalogResponse.call(void 0,
|
|
2272
2267
|
requestMethod,
|
|
2273
|
-
|
|
2268
|
+
_chunk7YHSD3Z6cjs.resolveFarmApiCatalogInput.call(void 0, { ...options, api: farmConfig.api }),
|
|
2274
2269
|
new Request(parsedRequestUrl, {
|
|
2275
2270
|
headers: { "user-agent": String(_nullishCoalesce(req.headers["user-agent"], () => ( ""))) }
|
|
2276
2271
|
})
|
|
@@ -2279,7 +2274,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2279
2274
|
return;
|
|
2280
2275
|
}
|
|
2281
2276
|
if (_optionalChain([options, 'access', _154 => _154.agent, 'optionalAccess', _155 => _155.aiCatalog]) !== false) {
|
|
2282
|
-
const aiCatalog =
|
|
2277
|
+
const aiCatalog = _chunk7YHSD3Z6cjs.createFarmAiCatalogResponse.call(void 0,
|
|
2283
2278
|
new Request(parsedRequestUrl, {
|
|
2284
2279
|
method: requestMethod,
|
|
2285
2280
|
headers: {
|
|
@@ -2469,7 +2464,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2469
2464
|
"beforeRequest",
|
|
2470
2465
|
(plugin) => {
|
|
2471
2466
|
const owner = _chunkRHGK2JENcjs.getFarmIntegrationPluginOwner.call(void 0, plugin);
|
|
2472
|
-
return plugin.name !==
|
|
2467
|
+
return plugin.name !== _chunkNFG4PUPIcjs.FARM_CONFIG_REWRITES_PLUGIN_NAME && (_optionalChain([owner, 'optionalAccess', _158 => _158.source]) !== "lifecycle" || owner.key !== matchedRoute.key);
|
|
2473
2468
|
},
|
|
2474
2469
|
req,
|
|
2475
2470
|
res
|
|
@@ -2561,11 +2556,11 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2561
2556
|
}
|
|
2562
2557
|
const matchedApiRoute = apiRouteManager.matchRoute(requestPathname);
|
|
2563
2558
|
const hasMatchedApiRoute = Boolean(matchedApiRoute);
|
|
2564
|
-
if (hasMatchedApiRoute ||
|
|
2559
|
+
if (hasMatchedApiRoute || _chunkQIBP5EFAcjs.isFarmAPIPathname.call(void 0, requestPathname, apiServerBasePath)) {
|
|
2565
2560
|
const startTime2 = Date.now();
|
|
2566
2561
|
const method2 = req.method || "GET";
|
|
2567
2562
|
const urlPath2 = req.url || "/";
|
|
2568
|
-
const pathname2 =
|
|
2563
|
+
const pathname2 = _chunkZTP3BJG6cjs.resolveFarmRequestURL.call(void 0, req, {
|
|
2569
2564
|
trustProxy: currentServerConfig.trustProxy
|
|
2570
2565
|
}).pathname;
|
|
2571
2566
|
try {
|
|
@@ -2573,7 +2568,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2573
2568
|
if (hasMatchedApiRoute) {
|
|
2574
2569
|
await pm.runHookParallelFiltered(
|
|
2575
2570
|
"beforeRequest",
|
|
2576
|
-
(plugin) => plugin.name !==
|
|
2571
|
+
(plugin) => plugin.name !== _chunkNFG4PUPIcjs.FARM_CONFIG_REWRITES_PLUGIN_NAME,
|
|
2577
2572
|
req,
|
|
2578
2573
|
res
|
|
2579
2574
|
);
|
|
@@ -2856,7 +2851,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2856
2851
|
);
|
|
2857
2852
|
const loadingModule = loadingBoundary ? await routeManager3.loadRouteModule(loadingBoundary.modulePath) : null;
|
|
2858
2853
|
const navigationManifest = routeManager3.generateClientManifest(server.config.root);
|
|
2859
|
-
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => (
|
|
2854
|
+
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => ( _chunkZATTDMBWcjs.getClientModuleMetadata.call(void 0, route.modulePath, server.config.root)));
|
|
2860
2855
|
const isClientComponent = moduleMetadata.isClientComponent;
|
|
2861
2856
|
const shouldHydrate = moduleMetadata.shouldHydrate;
|
|
2862
2857
|
let mergedMetadata = {};
|
|
@@ -2864,7 +2859,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2864
2859
|
layouts.map((layout) => routeManager3.loadLayoutModule(layout.modulePath))
|
|
2865
2860
|
);
|
|
2866
2861
|
const layoutHydrationMetadata = layouts.map(
|
|
2867
|
-
(layout) => _nullishCoalesce(navigationManifest.layouts.find((entry) => entry.pattern === layout.pattern), () => (
|
|
2862
|
+
(layout) => _nullishCoalesce(navigationManifest.layouts.find((entry) => entry.pattern === layout.pattern), () => ( _chunkZATTDMBWcjs.getClientModuleMetadata.call(void 0, layout.modulePath, server.config.root)))
|
|
2868
2863
|
);
|
|
2869
2864
|
const shouldHydrateLayout = layoutHydrationMetadata.some(
|
|
2870
2865
|
(metadata) => metadata.shouldHydrate
|
|
@@ -2928,7 +2923,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2928
2923
|
const slotModule = await routeManager3.loadRouteModule(slot.route.modulePath);
|
|
2929
2924
|
const slotMetadata = _nullishCoalesce(navigationManifest.slots.find(
|
|
2930
2925
|
(entry) => entry.name === slot.name && entry.ownerPattern === slot.ownerPattern && entry.pattern === slot.route.pattern
|
|
2931
|
-
), () => (
|
|
2926
|
+
), () => ( _chunkZATTDMBWcjs.getClientModuleMetadata.call(void 0, slot.route.modulePath, server.config.root)));
|
|
2932
2927
|
const slotContext = await _chunk6QQDAAAZcjs.resolveFarmRouteContext.call(void 0, farmApp.getConfig(), {
|
|
2933
2928
|
request: targetRequest,
|
|
2934
2929
|
params: slot.params,
|
|
@@ -2974,15 +2969,15 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2974
2969
|
);
|
|
2975
2970
|
const projectRoot = server.config.root;
|
|
2976
2971
|
const toUrlPath = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (absolutePath) => _chunk5QIKR7RRcjs.toViteModuleId.call(void 0, absolutePath, projectRoot), "toUrlPath");
|
|
2977
|
-
const renderPlan =
|
|
2972
|
+
const renderPlan = _chunkZATTDMBWcjs.createFarmRouteRenderPlan.call(void 0, {
|
|
2978
2973
|
pageShouldHydrate: shouldHydrate,
|
|
2979
2974
|
layoutShouldHydrate: shouldHydrateLayout,
|
|
2980
2975
|
islandStrategy: hydrationIslandStrategy,
|
|
2981
|
-
rendering:
|
|
2976
|
+
rendering: _chunkQEILRWVVcjs.resolveRouteRenderingConfig.call(void 0, routeModule)
|
|
2982
2977
|
});
|
|
2983
2978
|
const destinationLayoutPatterns = layouts.map((layout) => layout.pattern);
|
|
2984
|
-
const layoutStartIndex =
|
|
2985
|
-
|
|
2979
|
+
const layoutStartIndex = _chunkZATTDMBWcjs.getSharedLayoutPrefixLength.call(void 0,
|
|
2980
|
+
_chunkZATTDMBWcjs.parseFarmLayoutChainHeader.call(void 0, request.headers.get("x-farm-layout-chain")),
|
|
2986
2981
|
destinationLayoutPatterns
|
|
2987
2982
|
);
|
|
2988
2983
|
const renderer = farmApp.getServerRenderer();
|
|
@@ -3063,7 +3058,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3063
3058
|
{
|
|
3064
3059
|
status: 200,
|
|
3065
3060
|
headers: {
|
|
3066
|
-
"Cache-Control":
|
|
3061
|
+
"Cache-Control": _chunkZATTDMBWcjs.getFarmFragmentCacheControl.call(void 0, renderPlan),
|
|
3067
3062
|
"X-Farm-Navigation": "html-fragment",
|
|
3068
3063
|
Vary: "X-Farm-Layout-Chain",
|
|
3069
3064
|
[_chunkC5GUTBZKcjs.FARM_DEPLOYMENT_ID_HEADER]: farmConfig.deploymentId
|
|
@@ -3096,7 +3091,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3096
3091
|
const startTime = Date.now();
|
|
3097
3092
|
const method = req.method || "GET";
|
|
3098
3093
|
const urlPath = req.url || "/";
|
|
3099
|
-
const requestedPathname =
|
|
3094
|
+
const requestedPathname = _chunkZTP3BJG6cjs.resolveFarmRequestURL.call(void 0, req, {
|
|
3100
3095
|
trustProxy: currentServerConfig.trustProxy
|
|
3101
3096
|
}).pathname;
|
|
3102
3097
|
const routeManager2 = farmApp.getRouteManager();
|
|
@@ -3210,7 +3205,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3210
3205
|
const hasLocalPageRoute = Boolean(_optionalChain([routeManager2, 'access', _221 => _221.matchRoute, 'call', _222 => _222(currentPathname), 'optionalAccess', _223 => _223.route]));
|
|
3211
3206
|
await pm.runHookParallelFiltered(
|
|
3212
3207
|
"beforeRequest",
|
|
3213
|
-
(plugin) => !hasLocalPageRoute || plugin.name !==
|
|
3208
|
+
(plugin) => !hasLocalPageRoute || plugin.name !== _chunkNFG4PUPIcjs.FARM_CONFIG_REWRITES_PLUGIN_NAME,
|
|
3214
3209
|
req,
|
|
3215
3210
|
res
|
|
3216
3211
|
);
|
|
@@ -3332,7 +3327,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3332
3327
|
const generatedDevtoolsClientRuntime = devtoolsClientRuntime ? devtoolsClientRuntime.generateFarmDevtoolsClientRuntime(devtools) : "";
|
|
3333
3328
|
const generatedDevIndicatorsClientRuntime = farmApp ? _chunkJR4QCLJYcjs.generateFarmDevIndicatorsClientRuntime.call(void 0, farmApp.getConfig().devIndicators) : "";
|
|
3334
3329
|
const integrationProviders = _chunkPSV6XKPOcjs.isReactRenderer.call(void 0, renderer) ? _chunkRHGK2JENcjs.getIntegrationProviders.call(void 0, integrations) : [];
|
|
3335
|
-
const isolatedHydrationMode =
|
|
3330
|
+
const isolatedHydrationMode = _chunkZATTDMBWcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
3336
3331
|
_optionalChain([resolvedConfig, 'optionalAccess', _254 => _254.experimental, 'optionalAccess', _255 => _255.isolatedClientHydration]),
|
|
3337
3332
|
{
|
|
3338
3333
|
serverComponents: _optionalChain([resolvedConfig, 'optionalAccess', _256 => _256.experimental, 'optionalAccess', _257 => _257.serverComponents]) === true,
|
|
@@ -3357,8 +3352,8 @@ ${generatedDevIndicatorsClientRuntime}`,
|
|
|
3357
3352
|
isolatedHydrationMode === "enabled" || _chunkPSV6XKPOcjs.isReactRenderer.call(void 0, renderer) && _optionalChain([(_nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _265 => _265.getRouteManager, 'call', _266 => _266(), 'access', _267 => _267.getIsolatedClientBoundaryModules, 'call', _268 => _268(root)])))), 'optionalAccess', _269 => _269.size]) > 0,
|
|
3358
3353
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _270 => _270.trailingSlash]), () => ( false)),
|
|
3359
3354
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _271 => _271.basePath]), () => ( "/")),
|
|
3360
|
-
|
|
3361
|
-
|
|
3355
|
+
_chunkZATTDMBWcjs.generateClientCachePersistenceCode.call(void 0,
|
|
3356
|
+
_chunkZATTDMBWcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, _optionalChain([resolvedConfig, 'optionalAccess', _272 => _272.cache]))
|
|
3362
3357
|
),
|
|
3363
3358
|
_chunkPSV6XKPOcjs.isReactRenderer.call(void 0, renderer) ? _chunkCY2ZQ5C6cjs.getFarmDocsAdapterConfigModule.call(void 0, docs) : void 0
|
|
3364
3359
|
);
|
|
@@ -3380,7 +3375,7 @@ export const getManifest = () => ({
|
|
|
3380
3375
|
`;
|
|
3381
3376
|
}
|
|
3382
3377
|
const manifest = routeManager.generateClientManifest(server.config.root);
|
|
3383
|
-
const globalStylesheetHref =
|
|
3378
|
+
const globalStylesheetHref = _chunkZATTDMBWcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
3384
3379
|
server.config.root,
|
|
3385
3380
|
_optionalChain([farmApp, 'optionalAccess', _275 => _275.getConfig, 'call', _276 => _276(), 'access', _277 => _277.srcDir])
|
|
3386
3381
|
);
|
|
@@ -3408,11 +3403,11 @@ export const getManifest = () => ({
|
|
|
3408
3403
|
};
|
|
3409
3404
|
}
|
|
3410
3405
|
for (const layout of manifest.layouts) {
|
|
3411
|
-
const groupScope =
|
|
3406
|
+
const groupScope = _chunk7YHSD3Z6cjs.getRouteGroupScope.call(void 0, layout.pattern);
|
|
3412
3407
|
fullManifest.layouts[layout.pattern] = {
|
|
3413
3408
|
modulePath: layout.modulePath,
|
|
3414
3409
|
pattern: layout.pattern,
|
|
3415
|
-
...groupScope ? { urlPattern:
|
|
3410
|
+
...groupScope ? { urlPattern: _chunk7YHSD3Z6cjs.stripRouteGroups.call(void 0, layout.pattern), groupScope } : {},
|
|
3416
3411
|
shouldHydrate: layout.shouldHydrate,
|
|
3417
3412
|
islandStrategy: layout.islandStrategy,
|
|
3418
3413
|
preloads: [layout.modulePath],
|
|
@@ -3438,8 +3433,8 @@ export const manifest = getManifest();
|
|
|
3438
3433
|
async transform(code, id, transformOptions) {
|
|
3439
3434
|
if (!_optionalChain([transformOptions, 'optionalAccess', _278 => _278.ssr])) {
|
|
3440
3435
|
const docsConfigModule = _chunkCY2ZQ5C6cjs.getFarmDocsAdapterConfigModule.call(void 0, _optionalChain([farmApp, 'optionalAccess', _279 => _279.getConfig, 'call', _280 => _280(), 'optionalAccess', _281 => _281.docs]));
|
|
3441
|
-
if (
|
|
3442
|
-
const redacted =
|
|
3436
|
+
if (_chunkZATTDMBWcjs.isFarmDocsClientConfigModule.call(void 0, id, docsConfigModule)) {
|
|
3437
|
+
const redacted = _chunkZATTDMBWcjs.redactFarmDocsClientConfig.call(void 0, code, id.split("?")[0]);
|
|
3443
3438
|
if (redacted !== null) return { code: redacted, map: null };
|
|
3444
3439
|
}
|
|
3445
3440
|
}
|
|
@@ -3486,13 +3481,13 @@ export const manifest = getManifest();
|
|
|
3486
3481
|
transformed = true;
|
|
3487
3482
|
}
|
|
3488
3483
|
}
|
|
3489
|
-
if (
|
|
3484
|
+
if (_chunkZATTDMBWcjs.hasUseClientDirective.call(void 0, transformedCode)) {
|
|
3490
3485
|
const clientBoundarySource = transformedCode;
|
|
3491
3486
|
const moduleInfo = this.getModuleInfo(id);
|
|
3492
3487
|
if (moduleInfo) {
|
|
3493
3488
|
moduleInfo.isClientComponent = true;
|
|
3494
3489
|
}
|
|
3495
|
-
transformedCode =
|
|
3490
|
+
transformedCode = _chunkZATTDMBWcjs.stripUseClientDirective.call(void 0, transformedCode);
|
|
3496
3491
|
transformed = true;
|
|
3497
3492
|
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _294 => _294.getConfig, 'call', _295 => _295()]), () => ( options));
|
|
3498
3493
|
let isolatedModuleReference = null;
|
|
@@ -3500,12 +3495,12 @@ export const manifest = getManifest();
|
|
|
3500
3495
|
const cleanId = id.split("?", 1)[0];
|
|
3501
3496
|
const selectedIsolatedModules = _nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _298 => _298.getRouteManager, 'call', _299 => _299(), 'access', _300 => _300.getIsolatedClientBoundaryModules, 'call', _301 => _301(root)])));
|
|
3502
3497
|
const selectedForIsolatedHydration = _optionalChain([selectedIsolatedModules, 'optionalAccess', _302 => _302.has, 'call', _303 => _303(path4.resolve(cleanId))]) === true;
|
|
3503
|
-
if (_chunkPSV6XKPOcjs.isReactRenderer.call(void 0, _chunkPSV6XKPOcjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration &&
|
|
3498
|
+
if (_chunkPSV6XKPOcjs.isReactRenderer.call(void 0, _chunkPSV6XKPOcjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && _chunkZATTDMBWcjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource)) {
|
|
3504
3499
|
isolatedModuleReference = _chunk5QIKR7RRcjs.toViteModuleId.call(void 0, cleanId, root);
|
|
3505
3500
|
const transformedBoundary = transformIsolatedClientBoundaryModule({
|
|
3506
3501
|
code: transformedCode,
|
|
3507
3502
|
moduleReference: isolatedModuleReference,
|
|
3508
|
-
islandStrategy: _nullishCoalesce(
|
|
3503
|
+
islandStrategy: _nullishCoalesce(_chunkZATTDMBWcjs.getIslandStrategyExport.call(void 0, clientBoundarySource), () => ( "load")),
|
|
3509
3504
|
parse: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (source) => this.parse(source), "parse")
|
|
3510
3505
|
});
|
|
3511
3506
|
if (!transformedBoundary) {
|
|
@@ -3881,7 +3876,7 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
3881
3876
|
}
|
|
3882
3877
|
_chunkS3JO3N4Hcjs.__name.call(void 0, generateProgrammaticClientRouteModuleForId, "generateProgrammaticClientRouteModuleForId");
|
|
3883
3878
|
function resolveRealModuleFile(filePath, root) {
|
|
3884
|
-
const resolved = _nullishCoalesce(
|
|
3879
|
+
const resolved = _nullishCoalesce(_chunkZATTDMBWcjs.resolveModuleSourcePath.call(void 0, filePath, root), () => ( filePath));
|
|
3885
3880
|
try {
|
|
3886
3881
|
return _chunk5QIKR7RRcjs.toPosixPath.call(void 0, fs2.realpathSync(resolved));
|
|
3887
3882
|
} catch (e15) {
|
|
@@ -4226,12 +4221,12 @@ function parseRouteModuleSchema(schema, value, label, routePath) {
|
|
|
4226
4221
|
}
|
|
4227
4222
|
_chunkS3JO3N4Hcjs.__name.call(void 0, parseRouteModuleSchema, "parseRouteModuleSchema");
|
|
4228
4223
|
function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0, docsAdapterReact, renderer = _chunkPSV6XKPOcjs.REACT_RENDERER, isolatedHydrationEnabled = false, trailingSlash = false, basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule) {
|
|
4229
|
-
const providerClientCode =
|
|
4224
|
+
const providerClientCode = _chunkZATTDMBWcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
4230
4225
|
integrationProviders,
|
|
4231
4226
|
root,
|
|
4232
4227
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
4233
4228
|
);
|
|
4234
|
-
const clientPluginEntry =
|
|
4229
|
+
const clientPluginEntry = _chunkZATTDMBWcjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
4235
4230
|
plugins,
|
|
4236
4231
|
root,
|
|
4237
4232
|
srcDir,
|
|
@@ -5042,7 +5037,7 @@ async function loadLayoutComponents(layouts = []) {
|
|
|
5042
5037
|
return loadedLayouts;
|
|
5043
5038
|
}
|
|
5044
5039
|
|
|
5045
|
-
${
|
|
5040
|
+
${_chunkZATTDMBWcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
5046
5041
|
function wrapWithLoadedLayouts(element, loadedLayouts, params) {
|
|
5047
5042
|
let wrapped = element;
|
|
5048
5043
|
for (let index = loadedLayouts.length - 1; index >= 0; index--) {
|
|
@@ -5863,7 +5858,7 @@ function generateClientManifest(bundle) {
|
|
|
5863
5858
|
}
|
|
5864
5859
|
_chunkS3JO3N4Hcjs.__name.call(void 0, generateClientManifest, "generateClientManifest");
|
|
5865
5860
|
async function defineConfig(config = {}) {
|
|
5866
|
-
const tailwindVitePlugin = await
|
|
5861
|
+
const tailwindVitePlugin = await _chunkZATTDMBWcjs.loadTailwindVitePlugin.call(void 0, );
|
|
5867
5862
|
const appRoot = path4.resolve(config.root || process.cwd());
|
|
5868
5863
|
if (_optionalChain([config, 'access', _336 => _336.extends, 'optionalAccess', _337 => _337.length])) {
|
|
5869
5864
|
const { config: layeredConfig } = await import("./layers-VUWIOFEO.cjs").then(
|
|
@@ -5875,7 +5870,7 @@ async function defineConfig(config = {}) {
|
|
|
5875
5870
|
config = layeredConfig;
|
|
5876
5871
|
}
|
|
5877
5872
|
config.renderer = _chunkPSV6XKPOcjs.resolveFarmRenderer.call(void 0, config.renderer);
|
|
5878
|
-
config.images =
|
|
5873
|
+
config.images = _chunkZATTDMBWcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, { root: appRoot, dev: true });
|
|
5879
5874
|
const rendererVitePlugins = await _chunkPSV6XKPOcjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, appRoot, {
|
|
5880
5875
|
ssr: true
|
|
5881
5876
|
});
|
|
@@ -5973,7 +5968,7 @@ async function defineConfig(config = {}) {
|
|
|
5973
5968
|
const isExposed = hostConfig === true || hostConfig === "0.0.0.0";
|
|
5974
5969
|
console.log("");
|
|
5975
5970
|
console.log(
|
|
5976
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
5971
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkAHFRQMRXcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
5977
5972
|
);
|
|
5978
5973
|
console.log("");
|
|
5979
5974
|
console.log(
|
|
@@ -6005,7 +6000,7 @@ async function defineConfig(config = {}) {
|
|
|
6005
6000
|
};
|
|
6006
6001
|
return {
|
|
6007
6002
|
plugins: [
|
|
6008
|
-
|
|
6003
|
+
_chunkZATTDMBWcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
6009
6004
|
tailwindVitePlugin,
|
|
6010
6005
|
...rendererVitePlugins,
|
|
6011
6006
|
...reactRefreshPlugins,
|
|
@@ -6019,8 +6014,8 @@ async function defineConfig(config = {}) {
|
|
|
6019
6014
|
customLogger: farmLogger,
|
|
6020
6015
|
clearScreen: false,
|
|
6021
6016
|
optimizeDeps: {
|
|
6022
|
-
...
|
|
6023
|
-
|
|
6017
|
+
..._chunkZATTDMBWcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
6018
|
+
_chunkZATTDMBWcjs.createFarmClientOptimizeDepsEntries.call(void 0,
|
|
6024
6019
|
appRoot,
|
|
6025
6020
|
_chunkWBKEZXWEcjs.getFarmAppDirectories.call(void 0, { ...config, root: appRoot })
|
|
6026
6021
|
),
|
|
@@ -6063,7 +6058,7 @@ async function defineConfig(config = {}) {
|
|
|
6063
6058
|
// Stub out problematic server-only modules during dev mode
|
|
6064
6059
|
alias: {
|
|
6065
6060
|
..._chunkWBKEZXWEcjs.getFarmLayerAliases.call(void 0, config.layers),
|
|
6066
|
-
...
|
|
6061
|
+
..._chunkZATTDMBWcjs.createFarmSourceAlias.call(void 0, appRoot, config.srcDir),
|
|
6067
6062
|
// Nitro internals that should not be resolved in browser
|
|
6068
6063
|
"supports-color": "data:text/javascript,export default false; export const supportsColor = false; export const stdout = false; export const stderr = false;",
|
|
6069
6064
|
"@poppinss/dumper": "data:text/javascript,export default {};",
|
|
@@ -6093,4 +6088,5 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, defineConfig, "defineConfig");
|
|
|
6093
6088
|
|
|
6094
6089
|
|
|
6095
6090
|
|
|
6096
|
-
|
|
6091
|
+
|
|
6092
|
+
exports.farmImageImportsPlugin = farmImageImportsPlugin; exports.createFarmReactRefreshPlugins = createFarmReactRefreshPlugins; exports.farmI18nClientBridgePlugin = farmI18nClientBridgePlugin; exports.farmServerOnlyEntriesPlugin = farmServerOnlyEntriesPlugin; exports.withFarmRequestTracing = withFarmRequestTracing; exports.rewriteEarlySsrRelativeImports = rewriteEarlySsrRelativeImports; exports.transformIsolatedClientBoundaryModule = transformIsolatedClientBoundaryModule; exports.shouldEmitFarmClientRootHmr = shouldEmitFarmClientRootHmr; exports.farmPlugin = farmPlugin; exports.defineConfig = defineConfig;
|