@farm.js/core 0.1.76 → 0.1.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (444) hide show
  1. package/dist/after.cjs +1 -1
  2. package/dist/after.mjs +1 -1
  3. package/dist/{agent-mcp-handler-PJKZHYSA.mjs → agent-mcp-handler-EDJNU224.mjs} +1 -1
  4. package/dist/{agent-mcp-handler-73SGWVZT.cjs → agent-mcp-handler-LNBYLRTZ.cjs} +1 -1
  5. package/dist/{agent-mcp.d-Cftp2kFv.d.ts → agent-mcp.d-BErtnhV2.d.ts} +1 -1
  6. package/dist/{agent-mcp.d-D0FMmqi0.d.mts → agent-mcp.d-CYHfcjur.d.mts} +1 -1
  7. package/dist/agent-runtime.cjs +3 -3
  8. package/dist/agent-runtime.d.mts +2 -2
  9. package/dist/agent-runtime.d.ts +2 -2
  10. package/dist/agent-runtime.mjs +2 -2
  11. package/dist/analyzer-KVTUYGTT.cjs +16 -0
  12. package/dist/{analyzer-NLQKPN74.mjs → analyzer-M2BG6QYU.mjs} +3 -3
  13. package/dist/api/client.cjs +1 -1
  14. package/dist/api/client.mjs +1 -1
  15. package/dist/api/client.native.cjs +1 -1
  16. package/dist/api/client.native.mjs +1 -1
  17. package/dist/api/node.cjs +1 -1
  18. package/dist/api/node.d.mts +4 -4
  19. package/dist/api/node.d.ts +4 -4
  20. package/dist/api/node.mjs +1 -1
  21. package/dist/api/route-manager.cjs +5 -5
  22. package/dist/api/route-manager.d.mts +4 -4
  23. package/dist/api/route-manager.d.ts +4 -4
  24. package/dist/api/route-manager.mjs +4 -4
  25. package/dist/api/runtime.cjs +1 -1
  26. package/dist/api/runtime.d.mts +3 -3
  27. package/dist/api/runtime.d.ts +3 -3
  28. package/dist/api/runtime.mjs +1 -1
  29. package/dist/api.cjs +6 -6
  30. package/dist/api.d.mts +5 -5
  31. package/dist/api.d.ts +5 -5
  32. package/dist/api.mjs +5 -5
  33. package/dist/{app-manifest.d-cpOw_sV5.d.mts → app-manifest.d-6NCkLQ1y.d.mts} +1 -1
  34. package/dist/{app-manifest.d-7PmA_9hm.d.ts → app-manifest.d-DuqLBcmi.d.ts} +1 -1
  35. package/dist/app-markdown.cjs +1 -1
  36. package/dist/app-markdown.d.mts +3 -3
  37. package/dist/app-markdown.d.ts +3 -3
  38. package/dist/app-markdown.mjs +1 -1
  39. package/dist/{app.d-wOkxXre8.d.ts → app.d-Bz6vYBFF.d.ts} +4 -4
  40. package/dist/{app.d-DUZvwnFF.d.mts → app.d-Dk2HkvPh.d.mts} +4 -4
  41. package/dist/cache.cjs +1 -1
  42. package/dist/cache.mjs +1 -1
  43. package/dist/{chunk-DVW6SKHA.cjs → chunk-26CNCIFI.cjs} +2 -2
  44. package/dist/{chunk-CCQZDOQR.cjs → chunk-2G6JPLSL.cjs} +19 -19
  45. package/dist/{chunk-CL2ONP73.cjs → chunk-2PE5STAR.cjs} +36 -27
  46. package/dist/{chunk-E7VF3LQ5.mjs → chunk-4STJ6LGR.mjs} +13 -1
  47. package/dist/{chunk-HFJLMALC.cjs → chunk-5DREJN4G.cjs} +4 -4
  48. package/dist/{chunk-WILPJVQE.cjs → chunk-5KISFWD2.cjs} +4 -4
  49. package/dist/{chunk-5WFPZG7K.mjs → chunk-5REIO5DT.mjs} +4 -4
  50. package/dist/{chunk-SYPEMXW2.mjs → chunk-6MZSTPD2.mjs} +1 -1
  51. package/dist/{chunk-63EFR2WF.cjs → chunk-6XDDE7M6.cjs} +3 -3
  52. package/dist/{chunk-A2VFKOQL.mjs → chunk-7JTVN6IJ.mjs} +1 -1
  53. package/dist/{chunk-2GZZVIXY.mjs → chunk-7RQ5KAK6.mjs} +2 -2
  54. package/dist/{chunk-QVBXTSIZ.mjs → chunk-7V5M43ND.mjs} +1 -1
  55. package/dist/{chunk-SGQXJVFX.mjs → chunk-A37D6LOS.mjs} +1 -1
  56. package/dist/{chunk-7EOSFIPN.cjs → chunk-A4WWKG2B.cjs} +2 -2
  57. package/dist/{chunk-LQBV2Y37.mjs → chunk-A7EJATEW.mjs} +40 -4
  58. package/dist/{chunk-CKBBKRBO.mjs → chunk-AHGOHPRN.mjs} +14 -14
  59. package/dist/{chunk-JRBWBMP2.mjs → chunk-B3IRRANH.mjs} +1 -1
  60. package/dist/{chunk-7564NP5Z.cjs → chunk-BZJYPIFZ.cjs} +46 -10
  61. package/dist/{chunk-3OYFMOBY.mjs → chunk-CBP7AKZH.mjs} +1 -1
  62. package/dist/{chunk-QUEYL2WM.cjs → chunk-CKNZJFK5.cjs} +1 -1
  63. package/dist/{chunk-2WKGQCAV.cjs → chunk-DD2ANOEF.cjs} +265 -178
  64. package/dist/{chunk-XX6ZA2IO.cjs → chunk-DPBQRDWW.cjs} +1 -1
  65. package/dist/chunk-DS2KZ5BT.mjs +16 -0
  66. package/dist/{chunk-VDJ3CLBR.mjs → chunk-E7V2GYBP.mjs} +1 -1
  67. package/dist/{chunk-YHE7HH2I.mjs → chunk-EBFTAVGD.mjs} +134 -47
  68. package/dist/{chunk-UBXNTZCY.cjs → chunk-EVVV2XZ2.cjs} +115 -108
  69. package/dist/{chunk-PSNYVBWC.cjs → chunk-F7PKUP6P.cjs} +12 -12
  70. package/dist/{chunk-75XSZIRE.mjs → chunk-FD6BMUA3.mjs} +35 -26
  71. package/dist/{chunk-TMVVBK5S.cjs → chunk-FOULIN4S.cjs} +2 -2
  72. package/dist/{chunk-WJDMH3E7.cjs → chunk-H5OVJHXY.cjs} +4 -4
  73. package/dist/{chunk-DTNWLRRF.cjs → chunk-HVMQAVZK.cjs} +85 -85
  74. package/dist/{chunk-Q4X3MX4J.mjs → chunk-IGE5BAWK.mjs} +112 -105
  75. package/dist/{chunk-2JEXQAIR.cjs → chunk-IWGGRXD2.cjs} +2 -2
  76. package/dist/{chunk-SFSTZ7TB.cjs → chunk-K3ZELA6U.cjs} +2 -2
  77. package/dist/{chunk-DZ3AZ7UK.cjs → chunk-KZ5BOWJS.cjs} +9 -9
  78. package/dist/{chunk-GP5BWTO7.mjs → chunk-LIC6CMLB.mjs} +6 -6
  79. package/dist/{chunk-BYJPBJ4E.cjs → chunk-LJKTJNOF.cjs} +3 -3
  80. package/dist/{chunk-XLOORES5.cjs → chunk-LMXGCFAM.cjs} +1 -1
  81. package/dist/{chunk-QTDIOZV6.cjs → chunk-MBD34AS5.cjs} +2 -2
  82. package/dist/{chunk-BBRSPKFI.cjs → chunk-NB2ZEBIS.cjs} +196 -173
  83. package/dist/{chunk-PXXG5BID.cjs → chunk-NNGBTJCX.cjs} +3 -3
  84. package/dist/{chunk-QDHR54S6.cjs → chunk-OBVBII5K.cjs} +5 -5
  85. package/dist/{chunk-QP4GYVRR.cjs → chunk-ODYKCC6W.cjs} +8 -8
  86. package/dist/{chunk-3AJQFVWW.mjs → chunk-OGVOKAQU.mjs} +1 -1
  87. package/dist/{chunk-5EEQNZLU.mjs → chunk-PNWRH6TR.mjs} +2 -2
  88. package/dist/{chunk-3GMD2E4Q.mjs → chunk-QES76U42.mjs} +1 -1
  89. package/dist/{chunk-MTBDJ326.cjs → chunk-QMR2TUVZ.cjs} +13 -1
  90. package/dist/{chunk-JL6XHQZF.mjs → chunk-R77D7TCZ.mjs} +6 -6
  91. package/dist/{chunk-O225GNEU.mjs → chunk-RIMEFQYO.mjs} +44 -21
  92. package/dist/{chunk-MOS2N377.mjs → chunk-S6RUJRWI.mjs} +1 -1
  93. package/dist/chunk-TIZJYHB7.mjs +42 -0
  94. package/dist/chunk-UZM3PDKK.cjs +46 -0
  95. package/dist/{chunk-YQXJY7E7.mjs → chunk-VCW6BR6U.mjs} +1 -1
  96. package/dist/{chunk-E77ZKNPN.mjs → chunk-VO5XDZHK.mjs} +1 -1
  97. package/dist/{chunk-YONTMPZ6.mjs → chunk-VRI43FDN.mjs} +1 -1
  98. package/dist/{chunk-X3HUT4JU.mjs → chunk-VRJAMU34.mjs} +1 -1
  99. package/dist/{chunk-CF74ABRI.mjs → chunk-WJ4NUY2H.mjs} +2 -2
  100. package/dist/{chunk-Q7JMHO5U.mjs → chunk-X2SEYK7I.mjs} +2 -2
  101. package/dist/{chunk-WMJQNVKX.cjs → chunk-XGS76V7L.cjs} +2 -2
  102. package/dist/chunk-XRRHPBG2.cjs +16 -0
  103. package/dist/{chunk-3QM74STY.cjs → chunk-Y2FEFQAY.cjs} +3 -3
  104. package/dist/{chunk-HKGU2X4I.cjs → chunk-ZCYGYIC2.cjs} +2 -2
  105. package/dist/{chunk-OCLCA3X3.mjs → chunk-ZEWIWAS2.mjs} +1 -1
  106. package/dist/{cli-runtime.d-D84CwyPI.d.ts → cli-runtime.d-BG9q2_vC.d.ts} +8 -6
  107. package/dist/{cli-runtime.d-OQY2pgwK.d.mts → cli-runtime.d-CGMGs1Zz.d.mts} +8 -6
  108. package/dist/client/lifecycle.cjs +1 -1
  109. package/dist/client/lifecycle.mjs +1 -1
  110. package/dist/{client-component.d-Bf8jZqW7.d.ts → client-component.d-B84GPb_u.d.ts} +1 -1
  111. package/dist/{client-component.d-Bh6CfC5z.d.mts → client-component.d-CdsG1E7p.d.mts} +1 -1
  112. package/dist/client-plugins.cjs +1 -1
  113. package/dist/{client-plugins.d-r3K2oQ6w.d.mts → client-plugins.d-DX-iCJWE.d.mts} +1 -1
  114. package/dist/{client-plugins.d-DuujrC8d.d.ts → client-plugins.d-FptsHgls.d.ts} +1 -1
  115. package/dist/client-plugins.d.mts +2 -2
  116. package/dist/client-plugins.d.ts +2 -2
  117. package/dist/client-plugins.mjs +1 -1
  118. package/dist/client.cjs +1 -1
  119. package/dist/client.d.mts +7 -7
  120. package/dist/client.d.ts +7 -7
  121. package/dist/client.mjs +1 -1
  122. package/dist/config.cjs +1 -1
  123. package/dist/config.d.mts +2 -2
  124. package/dist/config.d.ts +2 -2
  125. package/dist/config.mjs +1 -1
  126. package/dist/cron.cjs +1 -1
  127. package/dist/cron.mjs +1 -1
  128. package/dist/deferred.cjs +1 -1
  129. package/dist/deferred.mjs +1 -1
  130. package/dist/deployment.cjs +1 -1
  131. package/dist/deployment.mjs +1 -1
  132. package/dist/desktop.cjs +1 -1
  133. package/dist/desktop.d.mts +3 -3
  134. package/dist/desktop.d.ts +3 -3
  135. package/dist/desktop.mjs +1 -1
  136. package/dist/{dev-guard-ZDIELV6Q.mjs → dev-guard-K3GJDPEQ.mjs} +1 -1
  137. package/dist/{dev-guard-ZLLKVO5T.cjs → dev-guard-VIEEA4LS.cjs} +1 -1
  138. package/dist/{devtools-MBZPUH3U.mjs → devtools-7P3OUNLV.mjs} +6 -5
  139. package/dist/{devtools-3WZIZ7KK.cjs → devtools-TMATFNUY.cjs} +7 -6
  140. package/dist/{devtools-client-X5OQCXDF.cjs → devtools-client-BKBCCORT.cjs} +1 -1
  141. package/dist/{devtools-client-SU4XH46J.mjs → devtools-client-L4MUWD6K.mjs} +1 -1
  142. package/dist/{devtools-ui-CYBVFLPH.mjs → devtools-ui-BOG33MT5.mjs} +1 -1
  143. package/dist/{devtools-ui-SYRUXUA7.cjs → devtools-ui-C2EMF2SO.cjs} +1 -1
  144. package/dist/docs.cjs +8 -7
  145. package/dist/docs.d.mts +4 -4
  146. package/dist/docs.d.ts +4 -4
  147. package/dist/docs.mjs +7 -6
  148. package/dist/env-types.cjs +1 -1
  149. package/dist/env-types.mjs +1 -1
  150. package/dist/env.cjs +1 -1
  151. package/dist/env.mjs +1 -1
  152. package/dist/environment/vite.cjs +6 -5
  153. package/dist/environment/vite.mjs +5 -4
  154. package/dist/environment.cjs +1 -1
  155. package/dist/environment.mjs +1 -1
  156. package/dist/font.cjs +1 -1
  157. package/dist/font.mjs +1 -1
  158. package/dist/{handler.d-Bd5lRSvb.d.ts → handler.d-Cy3XbY_W.d.ts} +1 -1
  159. package/dist/{handler.d-SRH-AKzf.d.mts → handler.d-DSwLTpa5.d.mts} +1 -1
  160. package/dist/headers.cjs +1 -1
  161. package/dist/{headers.d-CHHvyaIG.d.mts → headers.d-DiL9YTH3.d.mts} +1 -1
  162. package/dist/{headers.d-D-OvGikv.d.ts → headers.d-Qbjo38a0.d.ts} +1 -1
  163. package/dist/headers.mjs +1 -1
  164. package/dist/i18n/client.cjs +1 -1
  165. package/dist/i18n/client.mjs +1 -1
  166. package/dist/i18n/index.cjs +1 -1
  167. package/dist/i18n/index.mjs +1 -1
  168. package/dist/i18n/server.cjs +1 -1
  169. package/dist/i18n/server.mjs +1 -1
  170. package/dist/image/server.cjs +1 -1
  171. package/dist/image/server.mjs +1 -1
  172. package/dist/image/sharp.cjs +1 -1
  173. package/dist/image/sharp.mjs +1 -1
  174. package/dist/image.cjs +1 -1
  175. package/dist/image.mjs +1 -1
  176. package/dist/index.cjs +44 -39
  177. package/dist/{index.d-BOPsgMlI.d.mts → index.d-CqQKX3s6.d.mts} +1 -1
  178. package/dist/{index.d-BiUtYJUG.d.ts → index.d-OccJoC6I.d.ts} +1 -1
  179. package/dist/index.d.mts +23 -23
  180. package/dist/index.d.ts +23 -23
  181. package/dist/index.mjs +40 -35
  182. package/dist/instrumentation.cjs +1 -1
  183. package/dist/instrumentation.mjs +1 -1
  184. package/dist/integrations/orm.cjs +5 -4
  185. package/dist/integrations/orm.d.mts +2 -2
  186. package/dist/integrations/orm.d.ts +2 -2
  187. package/dist/integrations/orm.mjs +4 -3
  188. package/dist/integrations.cjs +3 -3
  189. package/dist/integrations.d.mts +2 -2
  190. package/dist/integrations.d.ts +2 -2
  191. package/dist/integrations.mjs +2 -2
  192. package/dist/internal/app-markdown-runtime.cjs +1 -1
  193. package/dist/internal/app-markdown-runtime.d.mts +3 -3
  194. package/dist/internal/app-markdown-runtime.d.ts +3 -3
  195. package/dist/internal/app-markdown-runtime.mjs +1 -1
  196. package/dist/internal/build-runtime.cjs +30 -29
  197. package/dist/internal/build-runtime.d.mts +5 -5
  198. package/dist/internal/build-runtime.d.ts +5 -5
  199. package/dist/internal/build-runtime.mjs +29 -28
  200. package/dist/internal/cli-runtime.cjs +17 -14
  201. package/dist/internal/cli-runtime.d.mts +9 -8
  202. package/dist/internal/cli-runtime.d.ts +9 -8
  203. package/dist/internal/cli-runtime.mjs +17 -14
  204. package/dist/internal/client-error-overlay.cjs +5 -5
  205. package/dist/internal/client-error-overlay.mjs +2 -2
  206. package/dist/internal/client-runtime.cjs +1 -1
  207. package/dist/internal/client-runtime.d.mts +5 -5
  208. package/dist/internal/client-runtime.d.ts +5 -5
  209. package/dist/internal/client-runtime.mjs +1 -1
  210. package/dist/internal/compression-runtime.cjs +3 -3
  211. package/dist/internal/compression-runtime.d.mts +6 -3
  212. package/dist/internal/compression-runtime.d.ts +6 -3
  213. package/dist/internal/compression-runtime.mjs +2 -2
  214. package/dist/internal/config-runtime.cjs +8 -7
  215. package/dist/internal/config-runtime.d.mts +4 -4
  216. package/dist/internal/config-runtime.d.ts +4 -4
  217. package/dist/internal/config-runtime.mjs +7 -6
  218. package/dist/internal/desktop-guard.cjs +1 -1
  219. package/dist/internal/desktop-guard.mjs +1 -1
  220. package/dist/internal/docs-precompiled-runtime.cjs +1 -1
  221. package/dist/internal/docs-precompiled-runtime.mjs +1 -1
  222. package/dist/internal/form-actions-client.cjs +1 -1
  223. package/dist/internal/form-actions-client.mjs +1 -1
  224. package/dist/internal/form-actions.cjs +1 -1
  225. package/dist/internal/form-actions.mjs +1 -1
  226. package/dist/internal/infra-analytics-runtime.cjs +7 -7
  227. package/dist/internal/infra-analytics-runtime.mjs +5 -5
  228. package/dist/internal/island-codec.cjs +1 -1
  229. package/dist/internal/island-codec.mjs +1 -1
  230. package/dist/internal/island-value-store.cjs +1 -1
  231. package/dist/internal/island-value-store.mjs +1 -1
  232. package/dist/internal/islands-boot.cjs +27 -6
  233. package/dist/internal/islands-boot.mjs +24 -3
  234. package/dist/internal/islands-runtime.cjs +1 -1
  235. package/dist/internal/islands-runtime.mjs +1 -1
  236. package/dist/internal/islands-server.cjs +1 -1
  237. package/dist/internal/islands-server.mjs +1 -1
  238. package/dist/internal/islx-client.cjs +1 -1
  239. package/dist/internal/islx-react.cjs +1 -1
  240. package/dist/internal/islx-server.cjs +1 -1
  241. package/dist/internal/isolated-boundary.cjs +1 -1
  242. package/dist/internal/isolated-boundary.mjs +1 -1
  243. package/dist/internal/metadata-image-runtime.cjs +1 -1
  244. package/dist/internal/metadata-image-runtime.mjs +1 -1
  245. package/dist/internal/native-server-fns.cjs +5 -5
  246. package/dist/internal/native-server-fns.mjs +4 -4
  247. package/dist/internal/product-telemetry-runtime.cjs +4 -4
  248. package/dist/internal/product-telemetry-runtime.mjs +3 -3
  249. package/dist/internal/production-node-env.cjs +1 -1
  250. package/dist/internal/production-node-env.mjs +1 -1
  251. package/dist/internal/production-runtime.cjs +8 -7
  252. package/dist/internal/production-runtime.d.mts +11 -11
  253. package/dist/internal/production-runtime.d.ts +11 -11
  254. package/dist/internal/production-runtime.mjs +7 -6
  255. package/dist/internal/react-cache.cjs +1 -1
  256. package/dist/internal/react-cache.mjs +1 -1
  257. package/dist/internal/request-cookies.cjs +1 -1
  258. package/dist/internal/request-cookies.mjs +1 -1
  259. package/dist/internal/server-fn-transform.cjs +1 -1
  260. package/dist/internal/server-fn-transform.mjs +1 -1
  261. package/dist/internal/server-tree.cjs +1 -1
  262. package/dist/internal/server-tree.mjs +1 -1
  263. package/dist/internal/start-manifest.cjs +1 -1
  264. package/dist/internal/start-manifest.d.mts +2 -2
  265. package/dist/internal/start-manifest.d.ts +2 -2
  266. package/dist/internal/start-manifest.mjs +1 -1
  267. package/dist/internal/vercel-edge-middleware.cjs +1 -1
  268. package/dist/internal/vercel-edge-middleware.mjs +1 -1
  269. package/dist/json-ld.cjs +1 -1
  270. package/dist/json-ld.mjs +1 -1
  271. package/dist/{layers-XQ7VFMWO.mjs → layers-5ZD4764G.mjs} +3 -2
  272. package/dist/layers-HMEGUEXM.cjs +21 -0
  273. package/dist/libsql-http-2QD224YS.mjs +600 -0
  274. package/dist/libsql-http-M6LMNXCN.cjs +600 -0
  275. package/dist/{manager-YO2RHDYU.mjs → manager-OMTC5FOJ.mjs} +2 -2
  276. package/dist/{manager-R7FV4A56.cjs → manager-PX4QN4HK.cjs} +4 -4
  277. package/dist/markdown.cjs +1 -1
  278. package/dist/markdown.d.mts +2 -2
  279. package/dist/markdown.d.ts +2 -2
  280. package/dist/markdown.mjs +1 -1
  281. package/dist/middleware.cjs +5 -5
  282. package/dist/middleware.d.mts +2 -2
  283. package/dist/middleware.d.ts +2 -2
  284. package/dist/middleware.mjs +4 -4
  285. package/dist/mobile.cjs +1 -1
  286. package/dist/mobile.mjs +1 -1
  287. package/dist/{modules-KOKD4XS6.mjs → modules-3Q2ZCY4Q.mjs} +1 -1
  288. package/dist/{modules-QTP7WJPD.cjs → modules-KDHFBQ6L.cjs} +1 -1
  289. package/dist/{mount.d-vq1HTq5u.d.mts → mount.d-AcJaUtHF.d.mts} +1 -1
  290. package/dist/{mount.d-C2yq0Zzz.d.ts → mount.d-CPzqOm-a.d.ts} +1 -1
  291. package/dist/{native-server-fn-handler-LII4MDRR.mjs → native-server-fn-handler-WYYY4YBN.mjs} +1 -1
  292. package/dist/{native-server-fn-handler-IWNKQEXK.cjs → native-server-fn-handler-XRTZR7SZ.cjs} +1 -1
  293. package/dist/{native-specs-LDV6IZ4N.mjs → native-specs-A7YOL463.mjs} +1 -1
  294. package/dist/{native-specs-5OLED4MM.cjs → native-specs-JDPH26AO.cjs} +1 -1
  295. package/dist/{native-tree-G6ZWS7IR.mjs → native-tree-JDI3LJSH.mjs} +1 -1
  296. package/dist/{native-tree-D3PW64ZL.cjs → native-tree-MNUFN5G6.cjs} +1 -1
  297. package/dist/native.cjs +1 -1
  298. package/dist/native.mjs +1 -1
  299. package/dist/{navigation-delegate.d-DS2Sqm7E.d.mts → navigation-delegate.d-C4i5Y39E.d.mts} +1 -1
  300. package/dist/{navigation-delegate.d-D7xIin3i.d.ts → navigation-delegate.d-_Df9DnPY.d.ts} +1 -1
  301. package/dist/navigation.cjs +1 -1
  302. package/dist/navigation.d.mts +5 -5
  303. package/dist/navigation.d.ts +5 -5
  304. package/dist/navigation.mjs +1 -1
  305. package/dist/{nitro-HKMVYIXY.cjs → nitro-NUCTYEKJ.cjs} +3 -3
  306. package/dist/{nitro-RHLKLYXH.mjs → nitro-VCJ6QQSI.mjs} +2 -2
  307. package/dist/{node-module-bundle-LIZ2KMVW.cjs → node-module-bundle-M6BISE2P.cjs} +1 -1
  308. package/dist/{node-module-bundle-VR6NV6AI.mjs → node-module-bundle-XPLBMXRD.mjs} +1 -1
  309. package/dist/observability.cjs +1 -1
  310. package/dist/observability.mjs +1 -1
  311. package/dist/og.cjs +1 -1
  312. package/dist/og.mjs +1 -1
  313. package/dist/platform.cjs +1 -1
  314. package/dist/platform.mjs +1 -1
  315. package/dist/{plugin-YXPIS3XX.cjs → plugin-AGEFSU7K.cjs} +3 -3
  316. package/dist/{plugin-6CHZBFJD.mjs → plugin-TV6W7YNK.mjs} +2 -2
  317. package/dist/plugin.cjs +23 -22
  318. package/dist/plugin.d.mts +6 -6
  319. package/dist/plugin.d.ts +6 -6
  320. package/dist/plugin.mjs +22 -21
  321. package/dist/{port-CLL4BC4O.mjs → port-CEZTV776.mjs} +1 -1
  322. package/dist/{port-HASZTQGY.cjs → port-STMSGUVU.cjs} +1 -1
  323. package/dist/query/client.cjs +1 -1
  324. package/dist/query/client.mjs +1 -1
  325. package/dist/query/index.cjs +1 -1
  326. package/dist/query/index.mjs +1 -1
  327. package/dist/query/parsers.cjs +1 -1
  328. package/dist/query/parsers.mjs +1 -1
  329. package/dist/query/server.cjs +1 -1
  330. package/dist/query/server.mjs +1 -1
  331. package/dist/{render-plan.d-X6KqerAM.d.mts → render-plan.d-4V_NmaA6.d.mts} +1 -1
  332. package/dist/{render-plan.d-BCq0nfdw.d.ts → render-plan.d-CslZE7o7.d.ts} +1 -1
  333. package/dist/renderer/none/server.cjs +1 -1
  334. package/dist/renderer/none/server.mjs +1 -1
  335. package/dist/renderer/react/client.cjs +1 -1
  336. package/dist/renderer/react/client.mjs +1 -1
  337. package/dist/renderer/react/server.cjs +1 -1
  338. package/dist/renderer/react/server.mjs +1 -1
  339. package/dist/renderer/react/vite.cjs +1 -1
  340. package/dist/renderer/react/vite.mjs +1 -1
  341. package/dist/renderer-client.cjs +1 -1
  342. package/dist/renderer-client.d.mts +5 -5
  343. package/dist/renderer-client.d.ts +5 -5
  344. package/dist/renderer-client.mjs +1 -1
  345. package/dist/renderer.cjs +1 -1
  346. package/dist/renderer.mjs +1 -1
  347. package/dist/request.cjs +1 -1
  348. package/dist/{request.d-CPdq2_kC.d.ts → request.d-CbV3y7j3.d.ts} +1 -1
  349. package/dist/{request.d-Be9rWboC.d.mts → request.d-CmLTxEgS.d.mts} +1 -1
  350. package/dist/request.d.mts +3 -3
  351. package/dist/request.d.ts +3 -3
  352. package/dist/request.mjs +1 -1
  353. package/dist/{route-rendering.d-CKB5GhQr.d.ts → route-rendering.d-CETnXNez.d.ts} +1 -1
  354. package/dist/{route-rendering.d-CIPli7Ve.d.mts → route-rendering.d-CmoqfOmj.d.mts} +1 -1
  355. package/dist/router.cjs +1 -1
  356. package/dist/{router.d-CvrbOXzF.d.ts → router.d-Dga3N5YO.d.ts} +1 -1
  357. package/dist/{router.d-VxTgLGxN.d.mts → router.d-ktz7pwYm.d.mts} +1 -1
  358. package/dist/router.mjs +1 -1
  359. package/dist/routes.cjs +1 -1
  360. package/dist/routes.d.mts +2 -2
  361. package/dist/routes.d.ts +2 -2
  362. package/dist/routes.mjs +1 -1
  363. package/dist/{rsc-pipeline-TPHK74VE.cjs → rsc-pipeline-JLYD26AR.cjs} +11 -10
  364. package/dist/{rsc-pipeline-FPE4OL57.mjs → rsc-pipeline-N7CWJW7T.mjs} +10 -9
  365. package/dist/{runtime-UBG657UC.cjs → runtime-F5NSS4DD.cjs} +14 -13
  366. package/dist/{runtime-45BD33OJ.mjs → runtime-QXX2A4TS.mjs} +10 -9
  367. package/dist/{runtime.d-Ps54JWpo.d.ts → runtime.d-BWLZUOfA.d.ts} +1 -1
  368. package/dist/{runtime.d-Cn1jiDNI.d.mts → runtime.d-DuaXEM0p.d.mts} +1 -1
  369. package/dist/safe-fetch.cjs +1 -1
  370. package/dist/safe-fetch.mjs +1 -1
  371. package/dist/{schema-dev-notice-CA55V57L.mjs → schema-dev-notice-2GN5V7Y2.mjs} +1 -1
  372. package/dist/{schema-dev-notice-RWA2UTR6.cjs → schema-dev-notice-6VCOZGG2.cjs} +1 -1
  373. package/dist/schema.cjs +1 -1
  374. package/dist/schema.mjs +1 -1
  375. package/dist/{search-client-ZZLKVO5R.cjs → search-client-6NVC6HM2.cjs} +1 -1
  376. package/dist/{search-client-OXH6GBNO.mjs → search-client-W4PEFAQB.mjs} +1 -1
  377. package/dist/server-action-security.cjs +1 -1
  378. package/dist/server-action-security.mjs +1 -1
  379. package/dist/{server-components-status.d-Dhtbs5lC.d.ts → server-components-status.d-C5JpC7_Y.d.ts} +1 -1
  380. package/dist/{server-components-status.d-DnmipSb3.d.mts → server-components-status.d-CqxtJmqP.d.mts} +1 -1
  381. package/dist/server-fn-client.cjs +1 -1
  382. package/dist/server-fn-client.mjs +1 -1
  383. package/dist/server-fn.cjs +1 -1
  384. package/dist/server-fn.mjs +1 -1
  385. package/dist/server-plugins.cjs +3 -3
  386. package/dist/server-plugins.d.mts +4 -4
  387. package/dist/server-plugins.d.ts +4 -4
  388. package/dist/server-plugins.mjs +2 -2
  389. package/dist/server-query-client.cjs +1 -1
  390. package/dist/server-query-client.mjs +1 -1
  391. package/dist/server-query.cjs +1 -1
  392. package/dist/server-query.mjs +1 -1
  393. package/dist/server.cjs +99 -72
  394. package/dist/server.d.mts +13 -13
  395. package/dist/server.d.ts +13 -13
  396. package/dist/server.mjs +57 -30
  397. package/dist/{session-ASQTJNBK.mjs → session-AK2OA5UZ.mjs} +4 -3
  398. package/dist/session-H4TWP73H.cjs +24 -0
  399. package/dist/{spa-router.d-DXm5J9rM.d.mts → spa-router.d-BLE188EL.d.mts} +2 -2
  400. package/dist/{spa-router.d-cppVufl2.d.ts → spa-router.d-C3LzwTlY.d.ts} +2 -2
  401. package/dist/{ssg.d-CI5OFl8H.d.ts → ssg.d-DisOfj0I.d.ts} +2 -2
  402. package/dist/{ssg.d-Duzy1wQc.d.mts → ssg.d-QrFyU6T4.d.mts} +2 -2
  403. package/dist/storage.cjs +8 -3
  404. package/dist/storage.d.mts +260 -38
  405. package/dist/storage.d.ts +260 -38
  406. package/dist/storage.mjs +7 -2
  407. package/dist/testing.cjs +4 -4
  408. package/dist/testing.d.mts +2 -2
  409. package/dist/testing.d.ts +2 -2
  410. package/dist/testing.mjs +4 -4
  411. package/dist/theme/client.cjs +1 -1
  412. package/dist/theme/client.mjs +1 -1
  413. package/dist/theme/index.cjs +1 -1
  414. package/dist/theme/index.mjs +1 -1
  415. package/dist/theme/runtime.cjs +1 -1
  416. package/dist/theme/runtime.mjs +1 -1
  417. package/dist/theme/server.cjs +1 -1
  418. package/dist/theme/server.mjs +1 -1
  419. package/dist/{types.d-D5cY6XjK.d.mts → types.d-DW2vyaUq.d.mts} +26 -4
  420. package/dist/{types.d-D5cY6XjK.d.ts → types.d-DW2vyaUq.d.ts} +26 -4
  421. package/dist/{utils.d-D3dfy8zh.d.ts → utils.d-7YcgfTCK.d.ts} +1 -1
  422. package/dist/{utils.d-CNI-I8ZV.d.mts → utils.d-BlWZFgdL.d.mts} +1 -1
  423. package/dist/version.cjs +3 -3
  424. package/dist/version.mjs +2 -2
  425. package/dist/vite.cjs +23 -22
  426. package/dist/vite.d.mts +7 -7
  427. package/dist/vite.d.ts +7 -7
  428. package/dist/vite.mjs +22 -21
  429. package/dist/workflows.cjs +3 -3
  430. package/dist/workflows.mjs +2 -2
  431. package/package.json +4 -6
  432. package/dist/analyzer-KFJGYJS7.cjs +0 -16
  433. package/dist/chunk-BTZ5O6VM.cjs +0 -14
  434. package/dist/chunk-Y6FXYEAI.mjs +0 -10
  435. package/dist/layers-7P4RLKVX.cjs +0 -20
  436. package/dist/session-ACVUJ5XV.cjs +0 -23
  437. package/dist/{chunk-WW62HKA2.cjs → chunk-4SLHSODZ.cjs} +2 -2
  438. package/dist/{chunk-LSHUCNIF.mjs → chunk-522K362I.mjs} +0 -0
  439. package/dist/{chunk-OWO7KDZ3.cjs → chunk-AOTD2N5P.cjs} +0 -0
  440. package/dist/{chunk-22T75EML.cjs → chunk-CUZT7474.cjs} +0 -0
  441. package/dist/{chunk-6MNDFNZW.mjs → chunk-JKFN3YVG.mjs} +0 -0
  442. package/dist/{chunk-YTNE4KGC.cjs → chunk-MALGIHIC.cjs} +0 -0
  443. package/dist/{chunk-UOE6ZZZP.mjs → chunk-Q3DO7MVK.mjs} +0 -0
  444. package/dist/{chunk-GAAK3HDZ.mjs → chunk-XT2CHTDN.mjs} +3 -3
@@ -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-HMEGUEXM.cjs");
94
94
  return (await resolveFarmLayers(config, { root, mode })).config;
95
95
  }
96
96
  function farmAppUsesRscPipeline(config, root) {
@@ -0,0 +1,16 @@
1
+ // src/storage/mount-schema.ts
2
+ function isMountSchema(value) {
3
+ return !!value && typeof value === "object" && "_tag" in value && value._tag === "schema" && "models" in value && !!value.models && typeof value.models === "object" && !Array.isArray(value.models);
4
+ }
5
+ function isManagedMount(value) {
6
+ return !!value && typeof value === "object" && "managed" in value && !!value.managed;
7
+ }
8
+ function hasManagedMountSchema(value) {
9
+ return isManagedMount(value) && "schema" in value && isMountSchema(value.schema);
10
+ }
11
+
12
+ export {
13
+ isMountSchema,
14
+ isManagedMount,
15
+ hasManagedMountSchema
16
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getFarmRouteLabel
3
- } from "./chunk-5EEQNZLU.mjs";
3
+ } from "./chunk-PNWRH6TR.mjs";
4
4
  import {
5
5
  _classifyFarmMCPSession,
6
6
  _farmMCPClientSession,
@@ -28,11 +28,11 @@ import {
28
28
  } from "./chunk-KQH2COEJ.mjs";
29
29
  import {
30
30
  FARM_MOBILE_SESSION_PLUGIN
31
- } from "./chunk-3OYFMOBY.mjs";
31
+ } from "./chunk-CBP7AKZH.mjs";
32
32
  import {
33
33
  collectFarmNativeServerFns,
34
34
  findFarmNativeScreenFiles
35
- } from "./chunk-MOS2N377.mjs";
35
+ } from "./chunk-S6RUJRWI.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-YQXJY7E7.mjs";
44
+ } from "./chunk-VCW6BR6U.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-VDJ3CLBR.mjs";
68
+ } from "./chunk-E7V2GYBP.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-GP5BWTO7.mjs";
77
+ } from "./chunk-LIC6CMLB.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-CKBBKRBO.mjs";
119
+ } from "./chunk-AHGOHPRN.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-E77ZKNPN.mjs";
126
+ } from "./chunk-VO5XDZHK.mjs";
127
127
  import {
128
128
  PluginManager
129
- } from "./chunk-LSHUCNIF.mjs";
129
+ } from "./chunk-522K362I.mjs";
130
130
  import {
131
131
  generateFarmTypeArtifacts,
132
132
  readRouteRenderingDirectiveFromFile,
133
133
  resolveRouteRenderingConfig,
134
134
  resolveRouteRenderingConfigFromFile
135
- } from "./chunk-LQBV2Y37.mjs";
135
+ } from "./chunk-A7EJATEW.mjs";
136
136
  import {
137
137
  HOISTED_HEAD_ELEMENT,
138
138
  appMiddlewareMayHandlePath,
@@ -159,7 +159,7 @@ import {
159
159
  listFarmBuiltInRoutePaths,
160
160
  resolveFarmApiCatalogInput,
161
161
  resolveFarmAppManifestInput
162
- } from "./chunk-5EEQNZLU.mjs";
162
+ } from "./chunk-PNWRH6TR.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-SGQXJVFX.mjs";
170
+ } from "./chunk-A37D6LOS.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-2GZZVIXY.mjs";
191
+ } from "./chunk-7RQ5KAK6.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,
@@ -253,17 +253,17 @@ import {
253
253
  import {
254
254
  applyFarmWorkflowVercelCrons,
255
255
  prepareFarmWorkflowsForNitro
256
- } from "./chunk-3AJQFVWW.mjs";
256
+ } from "./chunk-OGVOKAQU.mjs";
257
257
  import {
258
258
  getFarmIntegrationPluginServerRuntime,
259
259
  getIntegrationProviders
260
- } from "./chunk-6MNDFNZW.mjs";
260
+ } from "./chunk-JKFN3YVG.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-Q4X3MX4J.mjs";
266
+ } from "./chunk-IGE5BAWK.mjs";
267
267
  import {
268
268
  appendMiddlewareDirectory,
269
269
  appendMiddlewareRoutePath,
@@ -271,7 +271,7 @@ import {
271
271
  } from "./chunk-PKXGFQZS.mjs";
272
272
  import {
273
273
  APIRouteManager
274
- } from "./chunk-5WFPZG7K.mjs";
274
+ } from "./chunk-5REIO5DT.mjs";
275
275
  import {
276
276
  readFarmI18nCatalogs
277
277
  } from "./chunk-VO55MMBX.mjs";
@@ -299,7 +299,7 @@ import {
299
299
  } from "./chunk-2I6PUKWJ.mjs";
300
300
  import {
301
301
  FARM_VERSION
302
- } from "./chunk-X3HUT4JU.mjs";
302
+ } from "./chunk-VRJAMU34.mjs";
303
303
  import {
304
304
  FARM_VIDEO_PLAYER_PATH
305
305
  } from "./chunk-AG27TI6Q.mjs";
@@ -794,7 +794,23 @@ function collectFarmClientModulePreloads(bundle, options) {
794
794
  ...staticImports(chunk, loaded, [])
795
795
  ].map(index);
796
796
  }
797
- return { files, entry: entryFiles.map(index), modules };
797
+ const routerFiles = [];
798
+ const routerLoaded = new Set(entryLoaded);
799
+ for (const routerModule of options.routerModules ?? []) {
800
+ const chunk = chunks.find(
801
+ (candidate) => candidate.isDynamicEntry && candidate.facadeModuleId && path4.resolve(candidate.facadeModuleId.split("?")[0]) === path4.resolve(routerModule)
802
+ );
803
+ if (!chunk || routerLoaded.has(chunk.fileName)) continue;
804
+ routerLoaded.add(chunk.fileName);
805
+ routerFiles.push(chunk.fileName);
806
+ staticImports(chunk, routerLoaded, routerFiles);
807
+ }
808
+ return {
809
+ files,
810
+ entry: entryFiles.map(index),
811
+ router: routerFiles.map(index),
812
+ modules
813
+ };
798
814
  }
799
815
  function createFarmClientModulePreloadPlugin(options) {
800
816
  return {
@@ -3054,7 +3070,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3054
3070
  if (!mobile) await removeFarmMobileClientManifest(path16.dirname(outputDir));
3055
3071
  const viteBuild = productionVite.build;
3056
3072
  const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.mjs");
3057
- const { PluginManager: PluginManager2 } = await import("./plugin-6CHZBFJD.mjs");
3073
+ const { PluginManager: PluginManager2 } = await import("./plugin-TV6W7YNK.mjs");
3058
3074
  const fs5 = await import("fs/promises");
3059
3075
  const pluginManager = new PluginManager2({
3060
3076
  config,
@@ -3469,7 +3485,11 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3469
3485
  }) : createFarmClientModulePreloadPlugin({
3470
3486
  root,
3471
3487
  buildDir: path16.dirname(outputDir),
3472
- entryName: "farm-client"
3488
+ entryName: "farm-client",
3489
+ routerModules: [
3490
+ path16.join(clientEntryDir, "farm-client-router.tsx"),
3491
+ path16.join(clientEntryDir, `${FARM_CLIENT_ROUTE_TABLE_MODULE}.tsx`)
3492
+ ]
3473
3493
  }),
3474
3494
  ...adapterOwnsDocsRuntime && platform === "web" ? [
3475
3495
  createFarmDocsModulePreloadPlugin({
@@ -4712,6 +4732,10 @@ function farmRouterIntent(event) {
4712
4732
  void loadFarmRouter().catch(function() {});
4713
4733
  }
4714
4734
  for (const type of farmRouterIntentEvents) document.addEventListener(type, farmRouterIntent, true);
4735
+ // In islands mode the boot script loads this entry on a hover or focus over a link, and that
4736
+ // event fired before these listeners existed: a link still under the pointer or focused is it.
4737
+ const farmIntendedLink = document.querySelector("a[href]:hover, a[href]:focus");
4738
+ if (farmIntendedLink) farmRouterIntent({ target: farmIntendedLink });
4715
4739
  `;
4716
4740
  function bindingPattern(name) {
4717
4741
  return new RegExp(`(?<![\\w$])(?<![^.]\\.)${name.replace(/\$/g, "\\$")}(?![\\w$])`);
@@ -5962,6 +5986,31 @@ async function hydrate() {
5962
5986
  }
5963
5987
  },
5964
5988
  });
5989
+ ${islandValues ? `// A layout root that waits for a click renders again on a navigation, and a link under the
5990
+ // pointer is a navigation on its way: hydrate the root now, as a focus would, so the click
5991
+ // updates it instead of rendering it from the start.
5992
+ if (hasHydratableLayout(pathname) && (matched.route.islandStrategy || "load") !== "load") {
5993
+ const hydrateForLink = function(target) {
5994
+ const anchor = target instanceof Element ? target.closest("a[href]") : null;
5995
+ const href = anchor && anchor.getAttribute("href");
5996
+ if (!href || href.startsWith("#") || hasAbsoluteNavigationHref(href)) return false;
5997
+ if (!container.contains(anchor)) return false;
5998
+ document.dispatchEvent(
5999
+ new CustomEvent("farm:island-interaction", { detail: { target: anchor, kind: null } }),
6000
+ );
6001
+ return true;
6002
+ };
6003
+ const onLinkIntent = function(event) {
6004
+ if (hydrateForLink(event.target)) document.removeEventListener("mouseover", onLinkIntent, true);
6005
+ };
6006
+ // The hover that loaded this entry fired before it ran.
6007
+ if (!hydrateForLink(container.querySelector("a[href]:hover"))) {
6008
+ document.addEventListener("mouseover", onLinkIntent, true);
6009
+ void pageHydration.finally(function() {
6010
+ document.removeEventListener("mouseover", onLinkIntent, true);
6011
+ });
6012
+ }
6013
+ }` : ""}
5965
6014
  ${isolatedHydrationEnabled ? `// Not cancelled with the page: a navigation disposes the islands it removes, and one in a
5966
6015
  // layout it keeps still waits for its trigger, as on a page of islands only.
5967
6016
  const isolatedHydration =
@@ -6764,7 +6813,7 @@ void hydrate();
6764
6813
  async function buildSSRInMemory(productionVite, config, root, routeManager, apiRouteManager, serverRenderer, preset, collectedPageRoutes, collectedLayoutRoutes, collectedRouteSlots, isolatedClientBoundaryModules, hydrationPlanCache, rendererBuildLifetime, sourceSnapshot) {
6765
6814
  const viteBuild = productionVite.build;
6766
6815
  const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.mjs");
6767
- const { PluginManager: PluginManager2 } = await import("./plugin-6CHZBFJD.mjs");
6816
+ const { PluginManager: PluginManager2 } = await import("./plugin-TV6W7YNK.mjs");
6768
6817
  const fs5 = await import("fs/promises");
6769
6818
  const pluginManager = new PluginManager2({
6770
6819
  config,
@@ -6867,7 +6916,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6867
6916
  const appDirs = getFarmAppDirectories(config);
6868
6917
  let openAPIReference = null;
6869
6918
  if (config.openapi.enabled && config.openapi.route) {
6870
- const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-YO2RHDYU.mjs");
6919
+ const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-OMTC5FOJ.mjs");
6871
6920
  const openAPIManager = new OpenAPIManager(appDirs, config.openapi, {
6872
6921
  mode: "production",
6873
6922
  apiBaseURL: config.api.baseURL,
@@ -7489,9 +7538,9 @@ function useFarmNodePageResponse(ResponseClass) {
7489
7538
  // Web body the way reading response.body would.
7490
7539
  const farmLazyBufferedHtml = new WeakMap();
7491
7540
 
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();
7541
+ // Only the response built from a stored shell can reuse its preload scan and
7542
+ // compressed bytes. Replacing the body creates a new response.
7543
+ const farmResponseShells = new WeakMap();
7495
7544
 
7496
7545
  function hasFarmContentType(headers) {
7497
7546
  if (!headers) return false;
@@ -7601,7 +7650,7 @@ async function applyFarmPreloadBudget(response, pathname, request) {
7601
7650
  const ownedHtml = hasNoHtmlPreloads ? undefined : getFarmOwnedBufferedHtml(response);
7602
7651
  const html = hasNoHtmlPreloads ? "" : (ownedHtml ?? await response.text());
7603
7652
  const managed = manageFarmDocumentPreloads(html, linkHeader, farmPreloadConfig,
7604
- ownedHtml === undefined ? undefined : farmPreloadShells.get(response));
7653
+ ownedHtml === undefined ? undefined : farmResponseShells.get(response));
7605
7654
  // A remembered document the budget left unchanged keeps its unread body.
7606
7655
  const reusesBody = hasNoHtmlPreloads || (ownedHtml !== undefined && managed.html === html);
7607
7656
  if (ownedHtml !== undefined && !reusesBody && !isLazyPage) {
@@ -8982,10 +9031,12 @@ function farmDocumentBootsClient(markup, hydratesAtLoad, routeSlots) {
8982
9031
  return true;
8983
9032
  }
8984
9033
 
8985
- // The boot entry runs the client entry from the URL on its script. A root that waits (the element
8986
- // a hydrating layout or client page hydrates) is named with its strategy, for the boot to watch.
8987
- function renderFarmClientBootScript(root, rootStrategy) {
9034
+ // The boot entry runs the client entry from the URL on its script, with the files listed for what
9035
+ // started it. A root that waits (the element a hydrating layout or client page hydrates) is named
9036
+ // with its strategy, for the boot to watch.
9037
+ function renderFarmClientBootScript(root, rootStrategy, markup, pageModule) {
8988
9038
  return stampFarmCspNonce('<script type="module" src="${farmClientBoot ? FARM_CLIENT_BOOT_SRC_PLACEHOLDER : ""}" data-farm-runtime="/__farm_client_js_src__"' +
9039
+ renderFarmClientBootPreloads(markup, pageModule, root, rootStrategy) +
8989
9040
  (root ? ' data-farm-root="' + root + '" data-farm-root-strategy="' + rootStrategy + '"' : '') +
8990
9041
  '></script>');
8991
9042
  }
@@ -9786,22 +9837,17 @@ function renderFarmClientModulePreload(index) {
9786
9837
  '" fetchpriority="low">';
9787
9838
  }
9788
9839
 
9789
- // The modulepreload links for a document: the entry's static imports, then the
9790
- // modules its hydrating page and its markup load.
9791
- function renderFarmClientModulePreloads(markup, pageModule) {
9792
- // A nonce policy blocks parser-inserted links without the nonce, and the
9793
- // response filter manages nonces on script elements only, so CSP nonce mode
9794
- // keeps the documents it had.
9795
- if (!farmClientModulePreloads || (farmSecurityConfig.csp && farmSecurityConfig.csp.nonce)) return "";
9840
+ // The manifest indexes of the modules a document's hydrating page and its markup
9841
+ // load, leaving out those already listed.
9842
+ function collectFarmClientDocumentModules(markup, pageModule, listed) {
9796
9843
  const modules = farmClientModulePreloads.modules;
9797
- const listed = new Set();
9798
- let tags = farmClientEntryPreloadTags;
9844
+ const indexes = [];
9799
9845
  const add = (moduleId) => {
9800
9846
  if (!moduleId || !Object.prototype.hasOwnProperty.call(modules, moduleId)) return;
9801
9847
  for (const index of modules[moduleId]) {
9802
9848
  if (listed.has(index)) continue;
9803
9849
  listed.add(index);
9804
- tags += renderFarmClientModulePreload(index);
9850
+ indexes.push(index);
9805
9851
  }
9806
9852
  };
9807
9853
  add(pageModule);
@@ -9811,7 +9857,45 @@ function renderFarmClientModulePreloads(markup, pageModule) {
9811
9857
  add(match[1] || match[3]);
9812
9858
  }
9813
9859
  }
9814
- return tags;
9860
+ return indexes;
9861
+ }
9862
+
9863
+ // The modulepreload links for a document: the entry's static imports, then the
9864
+ // modules its hydrating page and its markup load.
9865
+ function renderFarmClientModulePreloads(markup, pageModule) {
9866
+ // A nonce policy blocks parser-inserted links without the nonce, and the
9867
+ // response filter manages nonces on script elements only, so CSP nonce mode
9868
+ // keeps the documents it had.
9869
+ if (!farmClientModulePreloads || (farmSecurityConfig.csp && farmSecurityConfig.csp.nonce)) return "";
9870
+ return farmClientEntryPreloadTags +
9871
+ collectFarmClientDocumentModules(markup, pageModule, new Set())
9872
+ .map(renderFarmClientModulePreload)
9873
+ .join("");
9874
+ }
9875
+
9876
+ // What a boot document's runtime fetches as it starts, for the boot to request with it rather
9877
+ // than each a round trip after the file that imports it: the entry's static imports, the router
9878
+ // and route table a link's intent loads, and the modules the root hydrates with. A root that
9879
+ // waits for its time hydrates once the runtime runs, so its modules come with the entry's; one
9880
+ // that waits for a click hydrates on an interaction in it, and the boot fetches them then. The
9881
+ // boot adds the links itself with the script's nonce, so CSP nonce mode keeps them.
9882
+ function renderFarmClientBootPreloads(markup, pageModule, root, rootStrategy) {
9883
+ if (!farmClientModulePreloads) return "";
9884
+ const files = farmClientModulePreloads.files;
9885
+ const attribute = function(name, indexes) {
9886
+ if (indexes.length === 0) return "";
9887
+ return " " + name + '="' + escapeFarmHtmlAttribute(
9888
+ indexes.map(function(index) { return files[index]; }).join(" ")
9889
+ ) + '"';
9890
+ };
9891
+ const entry = farmClientModulePreloads.entry;
9892
+ const rootModules = root
9893
+ ? collectFarmClientDocumentModules(markup, pageModule, new Set(entry))
9894
+ : [];
9895
+ const waitsForClick = rootStrategy === "interaction";
9896
+ return attribute("data-farm-preload", waitsForClick ? entry : entry.concat(rootModules)) +
9897
+ attribute("data-farm-preload-router", farmClientModulePreloads.router || []) +
9898
+ (waitsForClick ? attribute("data-farm-preload-root", rootModules) : "");
9815
9899
  }
9816
9900
 
9817
9901
  // The origin hreflang alternates resolve against when the route sets no
@@ -11662,7 +11746,7 @@ ${hasServerRuntimeIntegrations ? `
11662
11746
  : {}),
11663
11747
  },
11664
11748
  }), middlewareHeaders), cachedPPRShell);
11665
- farmPreloadShells.set(response, cachedPPRShellEntry);
11749
+ farmResponseShells.set(response, cachedPPRShellEntry);
11666
11750
  return response;
11667
11751
  }
11668
11752
  emitFarmEvent({ type: "ppr.shell.miss", route: pathname, key: pprCacheKey });
@@ -12456,7 +12540,9 @@ ${hasServerRuntimeIntegrations ? `
12456
12540
  const farmEntryScript = farmBootsClient
12457
12541
  ? renderFarmClientBootScript(
12458
12542
  farmHydratesRoot ? (shouldHydrateLayout ? "root" : "__farm_page__") : "",
12459
- route.rootStrategy
12543
+ route.rootStrategy,
12544
+ html,
12545
+ route.clientModule
12460
12546
  )
12461
12547
  : renderFarmClientEntryScript();
12462
12548
 
@@ -13115,7 +13201,7 @@ async function handleFarmFetch(request, context) {${config.server.trustProxy ? `
13115
13201
  );
13116
13202
  // A Nitro cache rule stores the response and strips its Content-Encoding, so a
13117
13203
  // 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"};
13204
+ return ${hasCompressionRuntime && !hasPluginRuntime ? "context?.routeRuleCache ? response : compressFarmResponse(request, response, getFarmOwnedBufferedHtml(response), farmLazyBufferedHtml.has(response), farmResponseShells.get(response))" : "response"};
13119
13205
  }),
13120
13206
  {
13121
13207
  onResponseFinished: typeof context?.onResponseFinished === "function"
@@ -14852,6 +14938,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14852
14938
  root,
14853
14939
  srcDir,
14854
14940
  layers: config.layers,
14941
+ storage: config.storage,
14855
14942
  plugins: config.plugins,
14856
14943
  extraRoutes: [
14857
14944
  ...config.openapi?.enabled && config.openapi.route ? [config.openapi.route] : [],
@@ -15038,7 +15125,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15038
15125
  farmPlugin,
15039
15126
  farmServerOnlyEntriesPlugin
15040
15127
  } = await import("./vite.mjs");
15041
- const { PluginManager: PluginManager2 } = await import("./plugin-6CHZBFJD.mjs");
15128
+ const { PluginManager: PluginManager2 } = await import("./plugin-TV6W7YNK.mjs");
15042
15129
  const pluginManager = new PluginManager2({
15043
15130
  config,
15044
15131
  isDev: false,
@@ -15066,7 +15153,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15066
15153
  }
15067
15154
  async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
15068
15155
  const { farmI18nClientBridgePlugin, farmIslandContainersPlugin, farmPlugin } = await import("./vite.mjs");
15069
- const { PluginManager: PluginManager2 } = await import("./plugin-6CHZBFJD.mjs");
15156
+ const { PluginManager: PluginManager2 } = await import("./plugin-TV6W7YNK.mjs");
15070
15157
  const pluginManager = new PluginManager2({
15071
15158
  config,
15072
15159
  isDev: false,
@@ -15108,7 +15195,7 @@ function resolveLegacyPageEntry(config, root, srcDir) {
15108
15195
  }
15109
15196
  async function buildNitro(config, routeManager, apiRouteManager, serverRenderer, preset, root, distDir, pluginManager) {
15110
15197
  const [{ createNitroConfig }, { createNitro, build: nitroBuild }] = await Promise.all([
15111
- import("./nitro-RHLKLYXH.mjs"),
15198
+ import("./nitro-VCJ6QQSI.mjs"),
15112
15199
  import("nitro/builder")
15113
15200
  ]);
15114
15201
  let nitroConfig = await createNitroConfig(