@farm.js/core 0.1.75 → 0.1.77

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.
Files changed (233) hide show
  1. package/dist/{agent-mcp.d-Djvao5eV.d.ts → agent-mcp.d-B1h3RznZ.d.ts} +1 -1
  2. package/dist/{agent-mcp.d-wA13pwmS.d.mts → agent-mcp.d-WFQotg8M.d.mts} +1 -1
  3. package/dist/agent-runtime.cjs +2 -2
  4. package/dist/agent-runtime.d.mts +7 -5
  5. package/dist/agent-runtime.d.ts +7 -5
  6. package/dist/agent-runtime.mjs +1 -1
  7. package/dist/{analyzer-LJHMFCDW.mjs → analyzer-64YS2OXQ.mjs} +2 -2
  8. package/dist/analyzer-HTNXLX6N.cjs +16 -0
  9. package/dist/api/node.d.mts +9 -7
  10. package/dist/api/node.d.ts +9 -7
  11. package/dist/api/route-manager.d.mts +9 -7
  12. package/dist/api/route-manager.d.ts +9 -7
  13. package/dist/api/runtime.d.mts +8 -6
  14. package/dist/api/runtime.d.ts +8 -6
  15. package/dist/api.d.mts +10 -8
  16. package/dist/api.d.ts +10 -8
  17. package/dist/{app-manifest.d-DIuqSi9k.d.mts → app-manifest.d-EZEYG-tD.d.mts} +1 -1
  18. package/dist/{app-manifest.d-BukcP_EV.d.ts → app-manifest.d-Ktsqsuk9.d.ts} +1 -1
  19. package/dist/app-markdown.d.mts +8 -6
  20. package/dist/app-markdown.d.ts +8 -6
  21. package/dist/{app.d-BQqmM6Gy.d.ts → app.d-CSh3y8w8.d.ts} +5 -4
  22. package/dist/{app.d-YVuFb10p.d.mts → app.d-DTkqYcIr.d.mts} +5 -4
  23. package/dist/{chunk-CL2ONP73.cjs → chunk-2PE5STAR.cjs} +36 -27
  24. package/dist/{chunk-HV2WZFUW.mjs → chunk-2QPTZMGK.mjs} +1 -1
  25. package/dist/{chunk-E7VF3LQ5.mjs → chunk-4STJ6LGR.mjs} +13 -1
  26. package/dist/{chunk-LQBV2Y37.mjs → chunk-65XXHTVJ.mjs} +38 -2
  27. package/dist/{chunk-XGDI4OUB.cjs → chunk-6ZFGWB75.cjs} +13 -1
  28. package/dist/{chunk-IDOUCM2X.mjs → chunk-7EXFAJST.mjs} +57 -44
  29. package/dist/{chunk-HVJ7IACB.cjs → chunk-7SAGHWWU.cjs} +2 -2
  30. package/dist/{chunk-GNY7BO7R.mjs → chunk-BTHNOAOF.mjs} +2 -2
  31. package/dist/{chunk-TJVUTGED.mjs → chunk-D2RLADWN.mjs} +285 -93
  32. package/dist/chunk-DS2KZ5BT.mjs +16 -0
  33. package/dist/{chunk-WHCNJVYU.cjs → chunk-DSRWQ4SJ.cjs} +3 -3
  34. package/dist/{chunk-ZPCZWEU3.cjs → chunk-FCHEO3LG.cjs} +2 -2
  35. package/dist/{chunk-75XSZIRE.mjs → chunk-FD6BMUA3.mjs} +35 -26
  36. package/dist/{chunk-4T2RB4JA.mjs → chunk-FNVGK72M.mjs} +5 -5
  37. package/dist/{chunk-TFEODQLG.mjs → chunk-FPGSIOWS.mjs} +2 -2
  38. package/dist/{chunk-4BS3HSY7.cjs → chunk-FTQUNBRN.cjs} +2 -2
  39. package/dist/{chunk-ZV76IQG7.cjs → chunk-FVVGEGQ2.cjs} +2 -2
  40. package/dist/{chunk-7564NP5Z.cjs → chunk-GC2BSXQS.cjs} +39 -3
  41. package/dist/{chunk-HT2SZKXG.mjs → chunk-H76C5AOU.mjs} +12 -0
  42. package/dist/{chunk-OFIFRB62.mjs → chunk-IHMSLS2O.mjs} +36 -20
  43. package/dist/{chunk-BUC3FDYC.cjs → chunk-IIVZTGGP.cjs} +2 -2
  44. package/dist/{chunk-6MATGOEF.mjs → chunk-IXC6WDMT.mjs} +1 -1
  45. package/dist/{chunk-KPYQ32BA.cjs → chunk-JD42G6BN.cjs} +2 -2
  46. package/dist/{chunk-WJ5CCQBM.cjs → chunk-LTDMJD2F.cjs} +4 -4
  47. package/dist/{chunk-XX6ZA2IO.cjs → chunk-MQW4LHJR.cjs} +1 -1
  48. package/dist/{chunk-BNTRXJL4.cjs → chunk-NQZWLIPT.cjs} +3 -3
  49. package/dist/{chunk-QGYHE6VJ.mjs → chunk-NTHAZLVS.mjs} +28 -27
  50. package/dist/{chunk-OCLCA3X3.mjs → chunk-OCKQ3YOH.mjs} +1 -1
  51. package/dist/{chunk-PBQGIA27.cjs → chunk-OQZF6H6G.cjs} +4 -4
  52. package/dist/{chunk-YSTKSZD2.mjs → chunk-ORWXJDUN.mjs} +1 -1
  53. package/dist/{chunk-JNZDTE75.cjs → chunk-PMKUTZGR.cjs} +8 -8
  54. package/dist/{chunk-4ZSZI6XL.cjs → chunk-PUEPDMWY.cjs} +16 -16
  55. package/dist/{chunk-MTBDJ326.cjs → chunk-QMR2TUVZ.cjs} +13 -1
  56. package/dist/{chunk-A5F55ZFA.mjs → chunk-QODXWUGQ.mjs} +2 -2
  57. package/dist/chunk-RFXEQYPH.cjs +723 -0
  58. package/dist/{chunk-IK33N2AN.cjs → chunk-SIYELCIX.cjs} +158 -142
  59. package/dist/{chunk-MFU7SXAB.mjs → chunk-SL2BSPDJ.mjs} +1 -1
  60. package/dist/{chunk-H7QY7ZE4.mjs → chunk-SMYDCZBW.mjs} +1 -1
  61. package/dist/{chunk-GLF44JKY.mjs → chunk-TQOYIPMQ.mjs} +1 -1
  62. package/dist/{chunk-IVBDRAOR.cjs → chunk-UYACD4SH.cjs} +1 -1
  63. package/dist/{chunk-B4CWYGCG.mjs → chunk-WHNNDFCJ.mjs} +1 -1
  64. package/dist/{chunk-4MU4QCX4.mjs → chunk-WXMR3OHY.mjs} +1 -1
  65. package/dist/{chunk-YL7BKHYE.cjs → chunk-WZVESREI.cjs} +291 -278
  66. package/dist/chunk-XRRHPBG2.cjs +16 -0
  67. package/dist/{chunk-NPGXX7HN.cjs → chunk-YROK6CJC.cjs} +7 -7
  68. package/dist/{chunk-OZARLCYQ.cjs → chunk-YRQ44JTF.cjs} +179 -178
  69. package/dist/{chunk-2NQ3S2SJ.mjs → chunk-YTGNMKRA.mjs} +1 -1
  70. package/dist/{chunk-YCNKS6SD.mjs → chunk-ZBE5EHVJ.mjs} +4 -4
  71. package/dist/cli-runtime.d-DljFfr8T.d.ts +537 -0
  72. package/dist/cli-runtime.d-HSkdfvoq.d.mts +537 -0
  73. package/dist/client/lifecycle.d.mts +1 -1
  74. package/dist/client/lifecycle.d.ts +1 -1
  75. package/dist/{client-component.d-BeqVuqy2.d.mts → client-component.d-B-1dIlsw.d.mts} +2 -137
  76. package/dist/{client-component.d-CZ1NpHAY.d.ts → client-component.d-_otXB__v.d.ts} +2 -137
  77. package/dist/{client-plugins.d-ChceYO9t.d.mts → client-plugins.d-BmBzvfSP.d.mts} +4 -4
  78. package/dist/{client-plugins.d-D9kWC0QB.d.ts → client-plugins.d-MjxlvbCK.d.ts} +4 -4
  79. package/dist/client-plugins.d.mts +7 -5
  80. package/dist/client-plugins.d.ts +7 -5
  81. package/dist/client.d.mts +12 -10
  82. package/dist/client.d.ts +12 -10
  83. package/dist/config.d.mts +7 -5
  84. package/dist/config.d.ts +7 -5
  85. package/dist/desktop.d.mts +8 -6
  86. package/dist/desktop.d.ts +8 -6
  87. package/dist/{devtools-B3W3DLPG.mjs → devtools-7LHXG2VS.mjs} +4 -3
  88. package/dist/{devtools-T5I2WHRX.cjs → devtools-NNQN66EZ.cjs} +5 -4
  89. package/dist/docs.cjs +6 -5
  90. package/dist/docs.d.mts +10 -65
  91. package/dist/docs.d.ts +10 -65
  92. package/dist/docs.mjs +5 -4
  93. package/dist/environment/vite.cjs +5 -4
  94. package/dist/environment/vite.mjs +4 -3
  95. package/dist/handler.d-C53zFDmp.d.ts +62 -0
  96. package/dist/handler.d-CaYopqaD.d.mts +62 -0
  97. package/dist/{headers.d-Aux4JVnm.d.ts → headers.d-BvtpC90T.d.ts} +1 -1
  98. package/dist/{headers.d-BawakaPv.d.mts → headers.d-MBkD9ZLf.d.mts} +1 -1
  99. package/dist/index.cjs +31 -24
  100. package/dist/index.d-2hQpPZ-P.d.ts +16 -0
  101. package/dist/index.d-Mikf-tdP.d.mts +16 -0
  102. package/dist/index.d.mts +39 -556
  103. package/dist/index.d.ts +39 -556
  104. package/dist/index.mjs +30 -23
  105. package/dist/integrations/orm.cjs +4 -3
  106. package/dist/integrations/orm.d.mts +6 -4
  107. package/dist/integrations/orm.d.ts +6 -4
  108. package/dist/integrations/orm.mjs +3 -2
  109. package/dist/integrations.cjs +2 -2
  110. package/dist/integrations.d.mts +7 -5
  111. package/dist/integrations.d.ts +7 -5
  112. package/dist/integrations.mjs +1 -1
  113. package/dist/internal/app-markdown-runtime.d.mts +8 -6
  114. package/dist/internal/app-markdown-runtime.d.ts +8 -6
  115. package/dist/internal/build-runtime.cjs +23 -22
  116. package/dist/internal/build-runtime.d.mts +10 -7
  117. package/dist/internal/build-runtime.d.ts +10 -7
  118. package/dist/internal/build-runtime.mjs +22 -21
  119. package/dist/internal/cli-runtime.cjs +17 -9
  120. package/dist/internal/cli-runtime.d.mts +46 -0
  121. package/dist/internal/cli-runtime.d.ts +46 -0
  122. package/dist/internal/cli-runtime.mjs +16 -8
  123. package/dist/internal/client-error-overlay.cjs +4 -4
  124. package/dist/internal/client-error-overlay.mjs +1 -1
  125. package/dist/internal/client-runtime.d.mts +11 -9
  126. package/dist/internal/client-runtime.d.ts +11 -9
  127. package/dist/internal/compression-runtime.cjs +2 -2
  128. package/dist/internal/compression-runtime.d.mts +11 -6
  129. package/dist/internal/compression-runtime.d.ts +11 -6
  130. package/dist/internal/compression-runtime.mjs +1 -1
  131. package/dist/internal/config-runtime.cjs +6 -5
  132. package/dist/internal/config-runtime.d.mts +9 -7
  133. package/dist/internal/config-runtime.d.ts +9 -7
  134. package/dist/internal/config-runtime.mjs +5 -4
  135. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  136. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  137. package/dist/internal/native-server-fns.cjs +4 -4
  138. package/dist/internal/native-server-fns.mjs +3 -3
  139. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  140. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  141. package/dist/internal/production-runtime.cjs +8 -7
  142. package/dist/internal/production-runtime.d.mts +16 -14
  143. package/dist/internal/production-runtime.d.ts +16 -14
  144. package/dist/internal/production-runtime.mjs +7 -6
  145. package/dist/internal/start-manifest.d.mts +7 -5
  146. package/dist/internal/start-manifest.d.ts +7 -5
  147. package/dist/{layers-XQ7VFMWO.mjs → layers-I7VE5Q2Y.mjs} +2 -1
  148. package/dist/layers-WP5K5F7W.cjs +21 -0
  149. package/dist/{lifecycle.d-OtGWAvJT.d.ts → lifecycle.d-VzcXyEyn.d.mts} +1 -1
  150. package/dist/{lifecycle.d-OtGWAvJT.d.mts → lifecycle.d-VzcXyEyn.d.ts} +1 -1
  151. package/dist/markdown.d.mts +7 -5
  152. package/dist/markdown.d.ts +7 -5
  153. package/dist/middleware.d.mts +7 -5
  154. package/dist/middleware.d.ts +7 -5
  155. package/dist/{mount.d-BomEt2kV.d.mts → mount.d-DsP46XCy.d.mts} +1 -1
  156. package/dist/{mount.d-Ca8eb9GB.d.ts → mount.d-GU-tNxbE.d.ts} +1 -1
  157. package/dist/{navigation-delegate.d-B1ujRkYo.d.mts → navigation-delegate.d-CUtNOYLi.d.mts} +1 -1
  158. package/dist/{navigation-delegate.d-DJCC2jXF.d.ts → navigation-delegate.d-DsxNPrLT.d.ts} +1 -1
  159. package/dist/navigation.d.mts +10 -8
  160. package/dist/navigation.d.ts +10 -8
  161. package/dist/{plugin-FD4S2QEJ.mjs → plugin-2KWR2X4B.mjs} +1 -1
  162. package/dist/{plugin-5BNPYCER.cjs → plugin-MW7IDV76.cjs} +2 -2
  163. package/dist/plugin.cjs +15 -14
  164. package/dist/plugin.d.mts +11 -8
  165. package/dist/plugin.d.ts +11 -8
  166. package/dist/plugin.mjs +14 -13
  167. package/dist/{render-plan.d-BxRbaxYA.d.ts → render-plan.d-8K6S0h0L.d.ts} +1 -1
  168. package/dist/{render-plan.d-CFod_Zf-.d.mts → render-plan.d-B7Xp-PPW.d.mts} +1 -1
  169. package/dist/renderer-client.d.mts +10 -8
  170. package/dist/renderer-client.d.ts +10 -8
  171. package/dist/{request.d-DRQgaXGG.d.ts → request.d-CuQxmOqX.d.ts} +1 -1
  172. package/dist/{request.d-DG4TeXMM.d.mts → request.d-nhqciCAz.d.mts} +1 -1
  173. package/dist/request.d.mts +8 -6
  174. package/dist/request.d.ts +8 -6
  175. package/dist/{route-rendering.d-Db07UNVG.d.ts → route-rendering.d-BSsdDYC1.d.ts} +1 -1
  176. package/dist/{route-rendering.d-BXtZKgqu.d.mts → route-rendering.d-CeF1FOnl.d.mts} +1 -1
  177. package/dist/{router.d-BC3hyjf0.d.ts → router.d-C7yGlhDL.d.ts} +1 -1
  178. package/dist/{router.d-B61kXqxJ.d.mts → router.d-D462OX24.d.mts} +1 -1
  179. package/dist/routes.d.mts +7 -5
  180. package/dist/routes.d.ts +7 -5
  181. package/dist/{rsc-pipeline-VENBFYXW.cjs → rsc-pipeline-7PV6ARDS.cjs} +8 -7
  182. package/dist/{rsc-pipeline-LJ7YCGY6.mjs → rsc-pipeline-EZU4W4RL.mjs} +7 -6
  183. package/dist/{runtime-UNDTYGQS.cjs → runtime-QOE3NRXF.cjs} +8 -7
  184. package/dist/{runtime-4DWUXZHS.mjs → runtime-RWLFEPS3.mjs} +5 -4
  185. package/dist/{runtime.d-Cl6EBGmC.d.mts → runtime.d-C-BHQMy5.d.mts} +1 -1
  186. package/dist/{runtime.d-SC95yDzr.d.ts → runtime.d-CORDJQMy.d.ts} +1 -1
  187. package/dist/{schema.d-Dny9pnrm.d.mts → schema.d-BM-uVGpx.d.mts} +1 -1
  188. package/dist/{schema.d-Dny9pnrm.d.ts → schema.d-BM-uVGpx.d.ts} +1 -1
  189. package/dist/schema.d.mts +1 -1
  190. package/dist/schema.d.ts +1 -1
  191. package/dist/{index.d-r1MLpgeE.d.ts → server-components-status.d-BJ6huueH.d.mts} +2 -15
  192. package/dist/{index.d-Ccq42CPU.d.mts → server-components-status.d-BbADqqjq.d.ts} +2 -15
  193. package/dist/server-plugins.cjs +2 -2
  194. package/dist/server-plugins.d.mts +9 -7
  195. package/dist/server-plugins.d.ts +9 -7
  196. package/dist/server-plugins.mjs +1 -1
  197. package/dist/server.cjs +46 -39
  198. package/dist/server.d.mts +17 -14
  199. package/dist/server.d.ts +17 -14
  200. package/dist/server.mjs +24 -17
  201. package/dist/session-OU7M4CIF.cjs +24 -0
  202. package/dist/{session-QZXZOPR2.mjs → session-WPAT6H76.mjs} +3 -2
  203. package/dist/{spa-router.d-DrlXgDqY.d.mts → spa-router.d-DfjafHyX.d.mts} +4 -4
  204. package/dist/{spa-router.d-DwM02Mwd.d.ts → spa-router.d-DyGJLQc_.d.ts} +4 -4
  205. package/dist/ssg.d-D11lz_wr.d.ts +138 -0
  206. package/dist/ssg.d-iiLTyLAO.d.mts +138 -0
  207. package/dist/storage.cjs +9 -2
  208. package/dist/storage.d.mts +266 -34
  209. package/dist/storage.d.ts +266 -34
  210. package/dist/storage.mjs +8 -1
  211. package/dist/testing.d.mts +7 -5
  212. package/dist/testing.d.ts +7 -5
  213. package/dist/types.d-DC97bnjj.d.mts +131 -0
  214. package/dist/types.d-DC97bnjj.d.ts +131 -0
  215. package/dist/{utils.d-C6KXz3uB.d.ts → utils.d-D-GQeEfa.d.ts} +1 -1
  216. package/dist/{utils.d-CHzxAshz.d.mts → utils.d-fW-95yEh.d.mts} +1 -1
  217. package/dist/version.cjs +2 -2
  218. package/dist/version.mjs +1 -1
  219. package/dist/vite.cjs +15 -14
  220. package/dist/vite.d.mts +12 -9
  221. package/dist/vite.d.ts +12 -9
  222. package/dist/vite.mjs +14 -13
  223. package/package.json +11 -4
  224. package/dist/analyzer-23GCBYFI.cjs +0 -16
  225. package/dist/chunk-JMYXO572.cjs +0 -531
  226. package/dist/layers-7P4RLKVX.cjs +0 -20
  227. package/dist/session-2Q72D4QV.cjs +0 -23
  228. package/dist/types.d-BnIqOn9w.d.mts +0 -73
  229. package/dist/types.d-BnIqOn9w.d.ts +0 -73
  230. /package/dist/{chunk-6DBBMQWT.cjs → chunk-AF3PNVVF.cjs} +0 -0
  231. /package/dist/{chunk-5O3SK3ZC.mjs → chunk-BEXH6BGH.mjs} +0 -0
  232. /package/dist/{chunk-PMU4U2W2.cjs → chunk-PC5OZ4YR.cjs} +0 -0
  233. /package/dist/{chunk-Z5ZZAGIH.mjs → chunk-RL47VZ6J.mjs} +0 -0
@@ -3,7 +3,7 @@
3
3
  var _chunkSHIWRBFIcjs = require('./chunk-SHIWRBFI.cjs');
4
4
 
5
5
 
6
- var _chunkJMYXO572cjs = require('./chunk-JMYXO572.cjs');
6
+ var _chunkRFXEQYPHcjs = require('./chunk-RFXEQYPH.cjs');
7
7
 
8
8
  // src/mobile/session.ts
9
9
  var FARM_MOBILE_SESSION_PLUGIN = "farm:mobile-session";
@@ -176,7 +176,7 @@ function createFarmMobileSessionPlugin(options) {
176
176
  const refreshTtl = (_nullishCoalesce(options.refreshTokenTtl, () => ( 30 * 24 * 60 * 60))) * 1e3;
177
177
  const nonceTtl = (_nullishCoalesce(options.nonceTtl, () => ( 60))) * 1e3;
178
178
  const now = _nullishCoalesce(options.now, () => ( Date.now));
179
- const store = () => _nullishCoalesce(_optionalChain([options, 'access', _6 => _6.storage, 'optionalCall', _7 => _7()]), () => ( _chunkJMYXO572cjs.getStorage.call(void 0, STORAGE_NAMESPACE)));
179
+ const store = () => _nullishCoalesce(_optionalChain([options, 'access', _6 => _6.storage, 'optionalCall', _7 => _7()]), () => ( _chunkRFXEQYPHcjs.getStorage.call(void 0, STORAGE_NAMESPACE)));
180
180
  let warnedNoReader = false;
181
181
  function sessionReader() {
182
182
  for (const integration of Object.values(_nullishCoalesce(options.integrations(), () => ( {})))) {
@@ -15,14 +15,14 @@ var _chunkWBTHHTBOcjs = require('./chunk-WBTHHTBO.cjs');
15
15
  var _chunkCCAUIBIScjs = require('./chunk-CCAUIBIS.cjs');
16
16
 
17
17
 
18
- var _chunkIVBDRAORcjs = require('./chunk-IVBDRAOR.cjs');
18
+ var _chunkUYACD4SHcjs = require('./chunk-UYACD4SH.cjs');
19
19
 
20
20
  // src/mobile/analyzer.ts
21
21
  var _crypto = require('crypto');
22
22
  var _fs = require('fs');
23
23
  var _promises = require('fs/promises');
24
24
  var _path = require('path'); var path = _interopRequireWildcard(_path);
25
- var ANALYZER_VERSION = `7:${_chunkIVBDRAORcjs.FARM_VERSION}`;
25
+ var ANALYZER_VERSION = `7:${_chunkUYACD4SHcjs.FARM_VERSION}`;
26
26
  var INTRINSIC_KINDS = {};
27
27
  for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
28
28
  INTRINSIC_KINDS[tag] = "View";
@@ -25,7 +25,8 @@ var _chunkAQIRXBBYcjs = require('./chunk-AQIRXBBY.cjs');
25
25
 
26
26
 
27
27
 
28
- var _chunkMTBDJ326cjs = require('./chunk-MTBDJ326.cjs');
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 = _chunkMTBDJ326cjs.getFarmSourceRoots.call(void 0, { root, srcDir, layers: options.layers });
796
- const appDirs = _chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, { root, srcDir, layers: options.layers });
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: []
@@ -937,6 +941,8 @@ 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
  }
@@ -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
  }
@@ -212,6 +212,17 @@ function peelDocumentPrefix(markup) {
212
212
  }
213
213
  return { inner, hoisted, layoutPatterns };
214
214
  }
215
+ function takeFarmNavigationOutlet(markup, tag) {
216
+ const open = `<${tag}>`;
217
+ const close = `</${tag}>`;
218
+ const start = markup.indexOf(open);
219
+ if (start === -1) return markup;
220
+ const end = markup.indexOf(close, start + open.length);
221
+ if (end === -1 || markup.includes(open, end + close.length)) {
222
+ return markup.split(open).join("").split(close).join("");
223
+ }
224
+ return peelDocumentPrefix(markup).hoisted + markup.slice(start + open.length, end);
225
+ }
215
226
  function markFarmDocumentLayouts(markup) {
216
227
  const { inner, layoutPatterns } = peelDocumentPrefix(markup);
217
228
  if (layoutPatterns.length === 0) return markup;
@@ -978,6 +989,7 @@ export {
978
989
  parseFarmLayoutChainHeader,
979
990
  getSharedLayoutPrefixLength,
980
991
  HOISTED_HEAD_ELEMENT,
992
+ takeFarmNavigationOutlet,
981
993
  markFarmDocumentLayouts,
982
994
  extractFarmFullDocument,
983
995
  classifyFarmDocumentPrefix,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveFarmAppClientEntry,
3
3
  resolveFarmClientPlugins
4
- } from "./chunk-MFU7SXAB.mjs";
4
+ } from "./chunk-SL2BSPDJ.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-LQBV2Y37.mjs";
12
+ } from "./chunk-65XXHTVJ.mjs";
13
13
  import {
14
14
  appendFarmHead,
15
15
  classifyFarmDocumentPrefix,
@@ -43,11 +43,12 @@ import {
43
43
  resolveFarmDocsLayoutIslandStrategy,
44
44
  routeBoundaryCoversDirectory,
45
45
  stripRouteGroups,
46
- takeFarmHoistedHead
47
- } from "./chunk-HT2SZKXG.mjs";
46
+ takeFarmHoistedHead,
47
+ takeFarmNavigationOutlet
48
+ } from "./chunk-H76C5AOU.mjs";
48
49
  import {
49
50
  listFarmMCPLlmsTxtLinks
50
- } from "./chunk-GNY7BO7R.mjs";
51
+ } from "./chunk-BTHNOAOF.mjs";
51
52
  import {
52
53
  FARM_DEFAULT_MCP_PATH,
53
54
  collectFarmDefaultMCPPages,
@@ -94,7 +95,7 @@ import {
94
95
  traceFarmSourceReads,
95
96
  usesFarmServerTree,
96
97
  withFarmSourceSnapshot
97
- } from "./chunk-A5F55ZFA.mjs";
98
+ } from "./chunk-QODXWUGQ.mjs";
98
99
  import {
99
100
  FARM_ISLAND_REPLAYABLE_SELECTOR
100
101
  } from "./chunk-S32PDOLO.mjs";
@@ -146,7 +147,7 @@ import {
146
147
  import {
147
148
  getFarmAppDirectories,
148
149
  getFarmSourceRoots
149
- } from "./chunk-E7VF3LQ5.mjs";
150
+ } from "./chunk-4STJ6LGR.mjs";
150
151
  import {
151
152
  assertFarmRendererStreamingRuntime,
152
153
  getFarmRendererCapabilities,
@@ -199,10 +200,10 @@ import {
199
200
  getIntegrationProviders,
200
201
  getRegisteredIntegrationAPIManifest,
201
202
  isFarmIntegrationProviderComponentReference
202
- } from "./chunk-5O3SK3ZC.mjs";
203
+ } from "./chunk-BEXH6BGH.mjs";
203
204
  import {
204
205
  initStorage
205
- } from "./chunk-TJVUTGED.mjs";
206
+ } from "./chunk-D2RLADWN.mjs";
206
207
  import {
207
208
  resolveFarmRouteContext,
208
209
  withFarmRouteContext
@@ -297,7 +298,7 @@ import {
297
298
  } from "./chunk-2DA7CLY7.mjs";
298
299
  import {
299
300
  FARM_VERSION
300
- } from "./chunk-H7QY7ZE4.mjs";
301
+ } from "./chunk-SMYDCZBW.mjs";
301
302
  import {
302
303
  _setFarmSearchPreserveRoutes
303
304
  } from "./chunk-VDQZV6BX.mjs";
@@ -4397,11 +4398,17 @@ var ServerRenderer = class {
4397
4398
  layoutShouldHydrate: input.layoutShouldHydrate,
4398
4399
  islandStrategy: input.islandStrategy
4399
4400
  });
4400
- const layoutStartIndex = Math.max(
4401
- 0,
4402
- Math.min(input.layoutStartIndex ?? 0, input.layouts.length)
4401
+ const sharedCount = Math.max(0, Math.min(input.layoutStartIndex ?? 0, input.layouts.length));
4402
+ const dynamicTreeIndex = input.layouts.findIndex(
4403
+ (layout, index) => index < sharedCount && layout.serverTree && layout.pattern.includes("[")
4403
4404
  );
4404
- for (let index = input.layouts.length - 1; index >= layoutStartIndex; index--) {
4405
+ const layoutStartIndex = dynamicTreeIndex === -1 ? sharedCount : dynamicTreeIndex;
4406
+ const fragmentTag = this.reactRenderer && layoutStartIndex > 0 ? "farm-fragment-" + createFarmFlushToken() : null;
4407
+ const renderFrom = this.reactRenderer ? 0 : sharedCount;
4408
+ for (let index = input.layouts.length - 1; index >= renderFrom; index--) {
4409
+ if (fragmentTag && index === layoutStartIndex - 1) {
4410
+ element = this.rendererRuntime.createElement(fragmentTag, null, element);
4411
+ }
4405
4412
  const layout = input.layouts[index];
4406
4413
  const LayoutComponent = layout.module.default;
4407
4414
  if (!LayoutComponent) continue;
@@ -4422,10 +4429,15 @@ var ServerRenderer = class {
4422
4429
  slotElement
4423
4430
  );
4424
4431
  }
4425
- element = this.rendererRuntime.createElement(LayoutComponent, {
4426
- children: element,
4432
+ const outlets = { children: element, ...slotProps };
4433
+ element = index >= layoutStartIndex && input.layoutShouldHydrate && layout.serverTree && islands && this.islandValues() ? await islands.renderFarmServerTreeLayout(
4434
+ LayoutComponent,
4435
+ { params: input.params },
4436
+ outlets,
4437
+ layout.pattern
4438
+ ) : this.rendererRuntime.createElement(LayoutComponent, {
4427
4439
  params: input.params,
4428
- ...slotProps
4440
+ ...outlets
4429
4441
  });
4430
4442
  element = this.createLayoutBoundary(layout.pattern, element);
4431
4443
  }
@@ -4435,9 +4447,13 @@ var ServerRenderer = class {
4435
4447
  if (input.layoutShouldHydrate) {
4436
4448
  element = this.wrapClientGraph(element);
4437
4449
  }
4438
- return this.renderElementToCompleteHTML(await this.wrapWithIntegrationProviders(element), {
4439
- rejectLateRedirects: true
4440
- });
4450
+ const html = await this.renderElementToCompleteHTML(
4451
+ await this.wrapWithIntegrationProviders(element),
4452
+ {
4453
+ rejectLateRedirects: true
4454
+ }
4455
+ );
4456
+ return fragmentTag ? takeFarmNavigationOutlet(html, fragmentTag) : html;
4441
4457
  }
4442
4458
  /**
4443
4459
  * A built-in docs runtime page (`docs.entry`, no adapter) under layouts that hydrate, or whose
@@ -8,7 +8,7 @@ var _chunkSHD265HWcjs = require('./chunk-SHD265HW.cjs');
8
8
  var _chunkGBMWLDCCcjs = require('./chunk-GBMWLDCC.cjs');
9
9
 
10
10
 
11
- var _chunkJMYXO572cjs = require('./chunk-JMYXO572.cjs');
11
+ var _chunkRFXEQYPHcjs = require('./chunk-RFXEQYPH.cjs');
12
12
 
13
13
  // src/integration-orm.ts
14
14
  async function createIntegrationOrm(options) {
@@ -31,7 +31,7 @@ async function resolveIntegrationOrmRuntimeClient(options) {
31
31
  if (options.client !== void 0) {
32
32
  return typeof options.client === "function" ? await options.client() : options.client;
33
33
  }
34
- return _chunkJMYXO572cjs.resolveStorageRuntimeClient.call(void 0, _nullishCoalesce(options.storage, () => ( _optionalChain([options, 'access', _ => _.config, 'optionalAccess', _2 => _2.storage]))));
34
+ return _chunkRFXEQYPHcjs.resolveStorageRuntimeClient.call(void 0, _nullishCoalesce(options.storage, () => ( _optionalChain([options, 'access', _ => _.config, 'optionalAccess', _2 => _2.storage]))));
35
35
  }
36
36
  async function farmIntegrationSchemaToOrmSchema(schema) {
37
37
  for (const [modelKey, modelSchema] of Object.entries(schema.models)) {
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-423SSBYQ.mjs";
16
16
  import {
17
17
  FARM_VERSION
18
- } from "./chunk-H7QY7ZE4.mjs";
18
+ } from "./chunk-SMYDCZBW.mjs";
19
19
 
20
20
  // src/mobile/analyzer.ts
21
21
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
- var _chunkIVBDRAORcjs = require('./chunk-IVBDRAOR.cjs');
3
+ var _chunkUYACD4SHcjs = require('./chunk-UYACD4SH.cjs');
4
4
 
5
5
  // src/deployment-environment.ts
6
6
  function isFarmProductionDeploymentEnvironment(env = process.env) {
@@ -90,7 +90,7 @@ function createFarmProductionSiteReporter(options) {
90
90
  schemaVersion: FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION,
91
91
  eventType: FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE,
92
92
  packageName: FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME,
93
- packageVersion: sanitizeDetail(_chunkIVBDRAORcjs.FARM_VERSION, "unknown"),
93
+ packageVersion: sanitizeDetail(_chunkUYACD4SHcjs.FARM_VERSION, "unknown"),
94
94
  renderer: sanitizeDetail(options.renderer, "custom"),
95
95
  deployTarget: sanitizeDetail(options.deployTarget, "custom")
96
96
  };
@@ -4,7 +4,7 @@
4
4
  var _chunkYRXPDKMMcjs = require('./chunk-YRXPDKMM.cjs');
5
5
 
6
6
 
7
- var _chunkKPYQ32BAcjs = require('./chunk-KPYQ32BA.cjs');
7
+ var _chunkJD42G6BNcjs = require('./chunk-JD42G6BN.cjs');
8
8
 
9
9
 
10
10
  var _chunkBTVDYS4Bcjs = require('./chunk-BTVDYS4B.cjs');
@@ -29,7 +29,7 @@ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
29
29
  var _chunk7Q7UB4TLcjs = require('./chunk-7Q7UB4TL.cjs');
30
30
 
31
31
 
32
- var _chunkIVBDRAORcjs = require('./chunk-IVBDRAOR.cjs');
32
+ var _chunkUYACD4SHcjs = require('./chunk-UYACD4SH.cjs');
33
33
 
34
34
 
35
35
  var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
@@ -288,7 +288,7 @@ function createFarmAppManifest(input, registered = []) {
288
288
  return {
289
289
  schemaVersion: 1,
290
290
  app: app ? {
291
- ...app.version ? { farm: _chunkIVBDRAORcjs.FARM_VERSION } : {},
291
+ ...app.version ? { farm: _chunkUYACD4SHcjs.FARM_VERSION } : {},
292
292
  ...app.renderer ? { renderer: input.renderer } : {},
293
293
  basePath: input.basePath,
294
294
  ...app.build ? { build: input.build } : {}
@@ -319,7 +319,7 @@ function resolveFarmSiteUrl() {
319
319
  asUrl(read("RAILWAY_PUBLIC_DOMAIN"))
320
320
  ];
321
321
  for (const candidate of candidates) {
322
- const origin = candidate ? _chunkKPYQ32BAcjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
322
+ const origin = candidate ? _chunkJD42G6BNcjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
323
323
  if (origin) return origin;
324
324
  }
325
325
  return null;
@@ -90,7 +90,7 @@ function formatFarmRscBlockingMessage(blockingKeys) {
90
90
  var warnedFallback = false;
91
91
  async function resolveFarmRscCheckConfig(config, root, mode) {
92
92
  if (!_optionalChain([config, 'optionalAccess', _8 => _8.extends])) return config;
93
- const { resolveFarmLayers } = await import("./layers-7P4RLKVX.cjs");
93
+ const { resolveFarmLayers } = await import("./layers-WP5K5F7W.cjs");
94
94
  return (await resolveFarmLayers(config, { root, mode })).config;
95
95
  }
96
96
  function farmAppUsesRscPipeline(config, root) {
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkZV76IQG7cjs = require('./chunk-ZV76IQG7.cjs');
4
+ var _chunkFVVGEGQ2cjs = require('./chunk-FVVGEGQ2.cjs');
5
5
 
6
6
 
7
7
  var _chunkPIUTGRDIcjs = require('./chunk-PIUTGRDI.cjs');
@@ -64,7 +64,7 @@ function findFarmNativeScreenFiles(appDirs) {
64
64
  }
65
65
  function collectFarmNativeServerFns(options) {
66
66
  const { root, srcDir } = options;
67
- const aliases = _chunkZV76IQG7cjs.readAliases.call(void 0, root, srcDir);
67
+ const aliases = _chunkFVVGEGQ2cjs.readAliases.call(void 0, root, srcDir);
68
68
  const seen = /* @__PURE__ */ new Set();
69
69
  const found = /* @__PURE__ */ new Map();
70
70
  const queue = [...options.entries];
@@ -98,7 +98,7 @@ function collectFarmNativeServerFns(options) {
98
98
  }
99
99
  }
100
100
  for (const candidate of _nullishCoalesce(candidates, () => ( []))) {
101
- const resolved = _chunkZV76IQG7cjs.resolveFile.call(void 0, candidate);
101
+ const resolved = _chunkFVVGEGQ2cjs.resolveFile.call(void 0, candidate);
102
102
  if (resolved && SCRIPT.test(resolved) && !resolved.includes(`${_path2.default.sep}node_modules${_path2.default.sep}`)) {
103
103
  queue.push(resolved);
104
104
  break;
@@ -28,11 +28,11 @@ import {
28
28
  } from "./chunk-KQH2COEJ.mjs";
29
29
  import {
30
30
  FARM_MOBILE_SESSION_PLUGIN
31
- } from "./chunk-B4CWYGCG.mjs";
31
+ } from "./chunk-WHNNDFCJ.mjs";
32
32
  import {
33
33
  collectFarmNativeServerFns,
34
34
  findFarmNativeScreenFiles
35
- } from "./chunk-HV2WZFUW.mjs";
35
+ } from "./chunk-2QPTZMGK.mjs";
36
36
  import {
37
37
  assertFarmDocsAdapterServesNoGuardedPages,
38
38
  compileFarmDocsAdapterEdgeManifest,
@@ -41,7 +41,7 @@ import {
41
41
  hasFarmDocsRuntimeAdapter,
42
42
  listFarmDocsAdapterPages,
43
43
  listFarmDocsPagePaths
44
- } from "./chunk-GLF44JKY.mjs";
44
+ } from "./chunk-TQOYIPMQ.mjs";
45
45
  import {
46
46
  FARM_DOCS_LAST_MODIFIED_MANIFEST,
47
47
  createFarmDocsHandler,
@@ -65,7 +65,7 @@ import {
65
65
  } from "./chunk-URQW27KO.mjs";
66
66
  import {
67
67
  FARM_PRERENDER_ENV
68
- } from "./chunk-2NQ3S2SJ.mjs";
68
+ } from "./chunk-YTGNMKRA.mjs";
69
69
  import {
70
70
  loadFarmDocsEngine
71
71
  } from "./chunk-LRPPXKCX.mjs";
@@ -74,7 +74,7 @@ import {
74
74
  getDeployTargetForPreset,
75
75
  hasCustomFarmRouteContext,
76
76
  resolveDeployOutputPath
77
- } from "./chunk-YCNKS6SD.mjs";
77
+ } from "./chunk-ZBE5EHVJ.mjs";
78
78
  import {
79
79
  resolveFarmInstrumentationFile
80
80
  } from "./chunk-57QAQU4F.mjs";
@@ -116,23 +116,23 @@ import {
116
116
  resolveFarmNotFoundComponentPath,
117
117
  resolveFarmRouteRootStrategy,
118
118
  toBakedMarkdownSourcePath
119
- } from "./chunk-OFIFRB62.mjs";
119
+ } from "./chunk-IHMSLS2O.mjs";
120
120
  import {
121
121
  TAILWIND_CSS_BROWSER_TARGET,
122
122
  generateFarmClientPluginEntryCode,
123
123
  hasFarmServerRuntimePlugins,
124
124
  includesTailwindVitePlugin,
125
125
  loadTailwindVitePlugin
126
- } from "./chunk-MFU7SXAB.mjs";
126
+ } from "./chunk-SL2BSPDJ.mjs";
127
127
  import {
128
128
  PluginManager
129
- } from "./chunk-Z5ZZAGIH.mjs";
129
+ } from "./chunk-RL47VZ6J.mjs";
130
130
  import {
131
131
  generateFarmTypeArtifacts,
132
132
  readRouteRenderingDirectiveFromFile,
133
133
  resolveRouteRenderingConfig,
134
134
  resolveRouteRenderingConfigFromFile
135
- } from "./chunk-LQBV2Y37.mjs";
135
+ } from "./chunk-65XXHTVJ.mjs";
136
136
  import {
137
137
  HOISTED_HEAD_ELEMENT,
138
138
  appMiddlewareMayHandlePath,
@@ -145,7 +145,7 @@ import {
145
145
  layoutsCanCoverSamePage,
146
146
  routeBoundaryCoversDirectory,
147
147
  stripRouteGroups
148
- } from "./chunk-HT2SZKXG.mjs";
148
+ } from "./chunk-H76C5AOU.mjs";
149
149
  import {
150
150
  FARM_NATIVE_TREE_CONTENT_TYPE
151
151
  } from "./chunk-LLZSYFOM.mjs";
@@ -159,7 +159,7 @@ import {
159
159
  listFarmBuiltInRoutePaths,
160
160
  resolveFarmApiCatalogInput,
161
161
  resolveFarmAppManifestInput
162
- } from "./chunk-GNY7BO7R.mjs";
162
+ } from "./chunk-BTHNOAOF.mjs";
163
163
  import {
164
164
  FARM_DEFAULT_MCP_PATH,
165
165
  createFarmDefaultMCPServer,
@@ -167,7 +167,7 @@ import {
167
167
  } from "./chunk-JA6RML7C.mjs";
168
168
  import {
169
169
  isFarmPreviewDeploymentEnvironment
170
- } from "./chunk-YSTKSZD2.mjs";
170
+ } from "./chunk-ORWXJDUN.mjs";
171
171
  import {
172
172
  FARM_NATIVE_SERVER_FN_PLUGIN
173
173
  } from "./chunk-L4RTTTVE.mjs";
@@ -188,7 +188,7 @@ import {
188
188
  withFarmSourceSnapshot,
189
189
  withFarmSourceSnapshotOf,
190
190
  withPackageClientBoundaryCache
191
- } from "./chunk-A5F55ZFA.mjs";
191
+ } from "./chunk-QODXWUGQ.mjs";
192
192
  import {
193
193
  generateFarmDocsAdapterClientRuntime,
194
194
  getFarmDocsAdapterConfigModule
@@ -210,7 +210,7 @@ import {
210
210
  } from "./chunk-4QENVMG7.mjs";
211
211
  import {
212
212
  getFarmAppDirectories
213
- } from "./chunk-E7VF3LQ5.mjs";
213
+ } from "./chunk-4STJ6LGR.mjs";
214
214
  import {
215
215
  REACT_RENDERER,
216
216
  getFarmRendererCapabilities,
@@ -257,13 +257,13 @@ import {
257
257
  import {
258
258
  getFarmIntegrationPluginServerRuntime,
259
259
  getIntegrationProviders
260
- } from "./chunk-5O3SK3ZC.mjs";
260
+ } from "./chunk-BEXH6BGH.mjs";
261
261
  import {
262
262
  FARM_INTEGRATION_API_BASE_PATH_KEY
263
263
  } from "./chunk-CZOXZ6WQ.mjs";
264
264
  import {
265
265
  _collectFarmStorageModules
266
- } from "./chunk-TJVUTGED.mjs";
266
+ } from "./chunk-D2RLADWN.mjs";
267
267
  import {
268
268
  appendMiddlewareDirectory,
269
269
  appendMiddlewareRoutePath,
@@ -299,7 +299,7 @@ import {
299
299
  } from "./chunk-2I6PUKWJ.mjs";
300
300
  import {
301
301
  FARM_VERSION
302
- } from "./chunk-H7QY7ZE4.mjs";
302
+ } from "./chunk-SMYDCZBW.mjs";
303
303
  import {
304
304
  FARM_VIDEO_PLAYER_PATH
305
305
  } from "./chunk-AG27TI6Q.mjs";
@@ -3054,7 +3054,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3054
3054
  if (!mobile) await removeFarmMobileClientManifest(path16.dirname(outputDir));
3055
3055
  const viteBuild = productionVite.build;
3056
3056
  const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.mjs");
3057
- const { PluginManager: PluginManager2 } = await import("./plugin-FD4S2QEJ.mjs");
3057
+ const { PluginManager: PluginManager2 } = await import("./plugin-2KWR2X4B.mjs");
3058
3058
  const fs5 = await import("fs/promises");
3059
3059
  const pluginManager = new PluginManager2({
3060
3060
  config,
@@ -6764,7 +6764,7 @@ void hydrate();
6764
6764
  async function buildSSRInMemory(productionVite, config, root, routeManager, apiRouteManager, serverRenderer, preset, collectedPageRoutes, collectedLayoutRoutes, collectedRouteSlots, isolatedClientBoundaryModules, hydrationPlanCache, rendererBuildLifetime, sourceSnapshot) {
6765
6765
  const viteBuild = productionVite.build;
6766
6766
  const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.mjs");
6767
- const { PluginManager: PluginManager2 } = await import("./plugin-FD4S2QEJ.mjs");
6767
+ const { PluginManager: PluginManager2 } = await import("./plugin-2KWR2X4B.mjs");
6768
6768
  const fs5 = await import("fs/promises");
6769
6769
  const pluginManager = new PluginManager2({
6770
6770
  config,
@@ -7489,9 +7489,9 @@ function useFarmNodePageResponse(ResponseClass) {
7489
7489
  // Web body the way reading response.body would.
7490
7490
  const farmLazyBufferedHtml = new WeakMap();
7491
7491
 
7492
- // Bind the stored shell to the response Farm built from it. A body replacement
7493
- // gets a new response and takes the ordinary scan path.
7494
- const farmPreloadShells = new WeakMap();
7492
+ // Only the response built from a stored shell can reuse its preload scan and
7493
+ // compressed bytes. Replacing the body creates a new response.
7494
+ const farmResponseShells = new WeakMap();
7495
7495
 
7496
7496
  function hasFarmContentType(headers) {
7497
7497
  if (!headers) return false;
@@ -7601,7 +7601,7 @@ async function applyFarmPreloadBudget(response, pathname, request) {
7601
7601
  const ownedHtml = hasNoHtmlPreloads ? undefined : getFarmOwnedBufferedHtml(response);
7602
7602
  const html = hasNoHtmlPreloads ? "" : (ownedHtml ?? await response.text());
7603
7603
  const managed = manageFarmDocumentPreloads(html, linkHeader, farmPreloadConfig,
7604
- ownedHtml === undefined ? undefined : farmPreloadShells.get(response));
7604
+ ownedHtml === undefined ? undefined : farmResponseShells.get(response));
7605
7605
  // A remembered document the budget left unchanged keeps its unread body.
7606
7606
  const reusesBody = hasNoHtmlPreloads || (ownedHtml !== undefined && managed.html === html);
7607
7607
  if (ownedHtml !== undefined && !reusesBody && !isLazyPage) {
@@ -11662,7 +11662,7 @@ ${hasServerRuntimeIntegrations ? `
11662
11662
  : {}),
11663
11663
  },
11664
11664
  }), middlewareHeaders), cachedPPRShell);
11665
- farmPreloadShells.set(response, cachedPPRShellEntry);
11665
+ farmResponseShells.set(response, cachedPPRShellEntry);
11666
11666
  return response;
11667
11667
  }
11668
11668
  emitFarmEvent({ type: "ppr.shell.miss", route: pathname, key: pprCacheKey });
@@ -13115,7 +13115,7 @@ async function handleFarmFetch(request, context) {${config.server.trustProxy ? `
13115
13115
  );
13116
13116
  // A Nitro cache rule stores the response and strips its Content-Encoding, so a
13117
13117
  // response it caches is sent as it is, with no Vary on an encoding it never saw.
13118
- return ${hasCompressionRuntime && !hasPluginRuntime ? "context?.routeRuleCache ? response : compressFarmResponse(request, response, getFarmOwnedBufferedHtml(response), farmLazyBufferedHtml.has(response))" : "response"};
13118
+ return ${hasCompressionRuntime && !hasPluginRuntime ? "context?.routeRuleCache ? response : compressFarmResponse(request, response, getFarmOwnedBufferedHtml(response), farmLazyBufferedHtml.has(response), farmResponseShells.get(response))" : "response"};
13119
13119
  }),
13120
13120
  {
13121
13121
  onResponseFinished: typeof context?.onResponseFinished === "function"
@@ -14852,6 +14852,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14852
14852
  root,
14853
14853
  srcDir,
14854
14854
  layers: config.layers,
14855
+ storage: config.storage,
14855
14856
  plugins: config.plugins,
14856
14857
  extraRoutes: [
14857
14858
  ...config.openapi?.enabled && config.openapi.route ? [config.openapi.route] : [],
@@ -15038,7 +15039,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15038
15039
  farmPlugin,
15039
15040
  farmServerOnlyEntriesPlugin
15040
15041
  } = await import("./vite.mjs");
15041
- const { PluginManager: PluginManager2 } = await import("./plugin-FD4S2QEJ.mjs");
15042
+ const { PluginManager: PluginManager2 } = await import("./plugin-2KWR2X4B.mjs");
15042
15043
  const pluginManager = new PluginManager2({
15043
15044
  config,
15044
15045
  isDev: false,
@@ -15066,7 +15067,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15066
15067
  }
15067
15068
  async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
15068
15069
  const { farmI18nClientBridgePlugin, farmIslandContainersPlugin, farmPlugin } = await import("./vite.mjs");
15069
- const { PluginManager: PluginManager2 } = await import("./plugin-FD4S2QEJ.mjs");
15070
+ const { PluginManager: PluginManager2 } = await import("./plugin-2KWR2X4B.mjs");
15070
15071
  const pluginManager = new PluginManager2({
15071
15072
  config,
15072
15073
  isDev: false,
@@ -90,7 +90,7 @@ function formatFarmRscBlockingMessage(blockingKeys) {
90
90
  var warnedFallback = false;
91
91
  async function resolveFarmRscCheckConfig(config, root, mode) {
92
92
  if (!config?.extends) return config;
93
- const { resolveFarmLayers } = await import("./layers-XQ7VFMWO.mjs");
93
+ const { resolveFarmLayers } = await import("./layers-I7VE5Q2Y.mjs");
94
94
  return (await resolveFarmLayers(config, { root, mode })).config;
95
95
  }
96
96
  function farmAppUsesRscPipeline(config, root) {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
- var _chunkBUC3FDYCcjs = require('./chunk-BUC3FDYC.cjs');
3
+ var _chunkIIVZTGGPcjs = require('./chunk-IIVZTGGP.cjs');
4
4
 
5
5
 
6
6
 
@@ -25,7 +25,7 @@ var _chunkGDM3ZD2Ocjs = require('./chunk-GDM3ZD2O.cjs');
25
25
  var _chunk2LHZD3OPcjs = require('./chunk-2LHZD3OP.cjs');
26
26
 
27
27
 
28
- var _chunk6DBBMQWTcjs = require('./chunk-6DBBMQWT.cjs');
28
+ var _chunkAF3PNVVFcjs = require('./chunk-AF3PNVVF.cjs');
29
29
 
30
30
 
31
31
  var _chunkGBMWLDCCcjs = require('./chunk-GBMWLDCC.cjs');
@@ -117,14 +117,14 @@ async function withTimeout(work, timeoutMs) {
117
117
  var formatSeconds = (ms) => ms < 1e3 ? `${ms}ms` : `${Number((ms / 1e3).toFixed(1))}s`;
118
118
  function collectSchemaOwners(config) {
119
119
  const owners = [];
120
- const integrationSchemas = _chunk6DBBMQWTcjs.getIntegrationSchemas.call(void 0, config.integrations);
120
+ const integrationSchemas = _chunkAF3PNVVFcjs.getIntegrationSchemas.call(void 0, config.integrations);
121
121
  let integrationClient;
122
122
  for (const [name, schema] of Object.entries(integrationSchemas)) {
123
123
  owners.push({
124
124
  name,
125
125
  kind: "integration",
126
126
  schema,
127
- resolveClient: (resolved) => _nullishCoalesce(integrationClient, () => ( (integrationClient = _chunkBUC3FDYCcjs.resolveIntegrationOrmRuntimeClient.call(void 0, { config: resolved }))))
127
+ resolveClient: (resolved) => _nullishCoalesce(integrationClient, () => ( (integrationClient = _chunkIIVZTGGPcjs.resolveIntegrationOrmRuntimeClient.call(void 0, { config: resolved }))))
128
128
  });
129
129
  }
130
130
  for (const declaration of _chunkGDM3ZD2Ocjs.findSchemaTableOwners.call(void 0, config)) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FARM_VERSION
3
- } from "./chunk-H7QY7ZE4.mjs";
3
+ } from "./chunk-SMYDCZBW.mjs";
4
4
 
5
5
  // src/deployment-environment.ts
6
6
  function isFarmProductionDeploymentEnvironment(env = process.env) {