@farm.js/core 0.1.77 → 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 (437) 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-B1h3RznZ.d.ts → agent-mcp.d-BErtnhV2.d.ts} +1 -1
  6. package/dist/{agent-mcp.d-WFQotg8M.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-64YS2OXQ.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-EZEYG-tD.d.mts → app-manifest.d-6NCkLQ1y.d.mts} +1 -1
  34. package/dist/{app-manifest.d-Ktsqsuk9.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-CSh3y8w8.d.ts → app.d-Bz6vYBFF.d.ts} +4 -4
  40. package/dist/{app.d-DTkqYcIr.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-IIVZTGGP.cjs → chunk-26CNCIFI.cjs} +2 -2
  44. package/dist/{chunk-PUEPDMWY.cjs → chunk-2G6JPLSL.cjs} +19 -19
  45. package/dist/{chunk-HFJLMALC.cjs → chunk-5DREJN4G.cjs} +4 -4
  46. package/dist/{chunk-LTDMJD2F.cjs → chunk-5KISFWD2.cjs} +4 -4
  47. package/dist/{chunk-5WFPZG7K.mjs → chunk-5REIO5DT.mjs} +4 -4
  48. package/dist/{chunk-SYPEMXW2.mjs → chunk-6MZSTPD2.mjs} +1 -1
  49. package/dist/{chunk-63EFR2WF.cjs → chunk-6XDDE7M6.cjs} +3 -3
  50. package/dist/{chunk-IXC6WDMT.mjs → chunk-7JTVN6IJ.mjs} +1 -1
  51. package/dist/{chunk-QODXWUGQ.mjs → chunk-7RQ5KAK6.mjs} +1 -1
  52. package/dist/{chunk-QVBXTSIZ.mjs → chunk-7V5M43ND.mjs} +1 -1
  53. package/dist/{chunk-ORWXJDUN.mjs → chunk-A37D6LOS.mjs} +1 -1
  54. package/dist/{chunk-7EOSFIPN.cjs → chunk-A4WWKG2B.cjs} +2 -2
  55. package/dist/{chunk-65XXHTVJ.mjs → chunk-A7EJATEW.mjs} +2 -2
  56. package/dist/{chunk-IHMSLS2O.mjs → chunk-AHGOHPRN.mjs} +13 -13
  57. package/dist/{chunk-JRBWBMP2.mjs → chunk-B3IRRANH.mjs} +1 -1
  58. package/dist/{chunk-GC2BSXQS.cjs → chunk-BZJYPIFZ.cjs} +7 -7
  59. package/dist/{chunk-WHNNDFCJ.mjs → chunk-CBP7AKZH.mjs} +1 -1
  60. package/dist/{chunk-QUEYL2WM.cjs → chunk-CKNZJFK5.cjs} +1 -1
  61. package/dist/{chunk-YRQ44JTF.cjs → chunk-DD2ANOEF.cjs} +254 -168
  62. package/dist/{chunk-MQW4LHJR.cjs → chunk-DPBQRDWW.cjs} +1 -1
  63. package/dist/{chunk-YTGNMKRA.mjs → chunk-E7V2GYBP.mjs} +1 -1
  64. package/dist/{chunk-NTHAZLVS.mjs → chunk-EBFTAVGD.mjs} +126 -40
  65. package/dist/{chunk-RFXEQYPH.cjs → chunk-EVVV2XZ2.cjs} +33 -20
  66. package/dist/{chunk-YROK6CJC.cjs → chunk-F7PKUP6P.cjs} +9 -9
  67. package/dist/{chunk-JD42G6BN.cjs → chunk-FOULIN4S.cjs} +2 -2
  68. package/dist/{chunk-OQZF6H6G.cjs → chunk-H5OVJHXY.cjs} +4 -4
  69. package/dist/{chunk-SIYELCIX.cjs → chunk-HVMQAVZK.cjs} +78 -78
  70. package/dist/{chunk-D2RLADWN.mjs → chunk-IGE5BAWK.mjs} +33 -20
  71. package/dist/{chunk-FTQUNBRN.cjs → chunk-IWGGRXD2.cjs} +2 -2
  72. package/dist/{chunk-SFSTZ7TB.cjs → chunk-K3ZELA6U.cjs} +2 -2
  73. package/dist/{chunk-DZ3AZ7UK.cjs → chunk-KZ5BOWJS.cjs} +9 -9
  74. package/dist/{chunk-ZBE5EHVJ.mjs → chunk-LIC6CMLB.mjs} +5 -5
  75. package/dist/{chunk-NQZWLIPT.cjs → chunk-LJKTJNOF.cjs} +3 -3
  76. package/dist/{chunk-UYACD4SH.cjs → chunk-LMXGCFAM.cjs} +1 -1
  77. package/dist/{chunk-7SAGHWWU.cjs → chunk-MBD34AS5.cjs} +2 -2
  78. package/dist/{chunk-WZVESREI.cjs → chunk-NB2ZEBIS.cjs} +186 -164
  79. package/dist/{chunk-DSRWQ4SJ.cjs → chunk-NNGBTJCX.cjs} +3 -3
  80. package/dist/{chunk-QDHR54S6.cjs → chunk-OBVBII5K.cjs} +5 -5
  81. package/dist/{chunk-PMKUTZGR.cjs → chunk-ODYKCC6W.cjs} +6 -6
  82. package/dist/{chunk-3AJQFVWW.mjs → chunk-OGVOKAQU.mjs} +1 -1
  83. package/dist/{chunk-BTHNOAOF.mjs → chunk-PNWRH6TR.mjs} +2 -2
  84. package/dist/{chunk-3GMD2E4Q.mjs → chunk-QES76U42.mjs} +1 -1
  85. package/dist/{chunk-FNVGK72M.mjs → chunk-R77D7TCZ.mjs} +6 -6
  86. package/dist/{chunk-7EXFAJST.mjs → chunk-RIMEFQYO.mjs} +42 -20
  87. package/dist/{chunk-2QPTZMGK.mjs → chunk-S6RUJRWI.mjs} +1 -1
  88. package/dist/chunk-TIZJYHB7.mjs +42 -0
  89. package/dist/chunk-UZM3PDKK.cjs +46 -0
  90. package/dist/{chunk-TQOYIPMQ.mjs → chunk-VCW6BR6U.mjs} +1 -1
  91. package/dist/{chunk-SL2BSPDJ.mjs → chunk-VO5XDZHK.mjs} +1 -1
  92. package/dist/{chunk-WXMR3OHY.mjs → chunk-VRI43FDN.mjs} +1 -1
  93. package/dist/{chunk-SMYDCZBW.mjs → chunk-VRJAMU34.mjs} +1 -1
  94. package/dist/{chunk-CF74ABRI.mjs → chunk-WJ4NUY2H.mjs} +2 -2
  95. package/dist/{chunk-FPGSIOWS.mjs → chunk-X2SEYK7I.mjs} +2 -2
  96. package/dist/{chunk-FCHEO3LG.cjs → chunk-XGS76V7L.cjs} +2 -2
  97. package/dist/{chunk-3QM74STY.cjs → chunk-Y2FEFQAY.cjs} +3 -3
  98. package/dist/{chunk-FVVGEGQ2.cjs → chunk-ZCYGYIC2.cjs} +2 -2
  99. package/dist/{chunk-OCKQ3YOH.mjs → chunk-ZEWIWAS2.mjs} +1 -1
  100. package/dist/{cli-runtime.d-DljFfr8T.d.ts → cli-runtime.d-BG9q2_vC.d.ts} +6 -6
  101. package/dist/{cli-runtime.d-HSkdfvoq.d.mts → cli-runtime.d-CGMGs1Zz.d.mts} +6 -6
  102. package/dist/client/lifecycle.cjs +1 -1
  103. package/dist/client/lifecycle.mjs +1 -1
  104. package/dist/{client-component.d-_otXB__v.d.ts → client-component.d-B84GPb_u.d.ts} +1 -1
  105. package/dist/{client-component.d-B-1dIlsw.d.mts → client-component.d-CdsG1E7p.d.mts} +1 -1
  106. package/dist/client-plugins.cjs +1 -1
  107. package/dist/{client-plugins.d-BmBzvfSP.d.mts → client-plugins.d-DX-iCJWE.d.mts} +1 -1
  108. package/dist/{client-plugins.d-MjxlvbCK.d.ts → client-plugins.d-FptsHgls.d.ts} +1 -1
  109. package/dist/client-plugins.d.mts +2 -2
  110. package/dist/client-plugins.d.ts +2 -2
  111. package/dist/client-plugins.mjs +1 -1
  112. package/dist/client.cjs +1 -1
  113. package/dist/client.d.mts +7 -7
  114. package/dist/client.d.ts +7 -7
  115. package/dist/client.mjs +1 -1
  116. package/dist/config.cjs +1 -1
  117. package/dist/config.d.mts +2 -2
  118. package/dist/config.d.ts +2 -2
  119. package/dist/config.mjs +1 -1
  120. package/dist/cron.cjs +1 -1
  121. package/dist/cron.mjs +1 -1
  122. package/dist/deferred.cjs +1 -1
  123. package/dist/deferred.mjs +1 -1
  124. package/dist/deployment.cjs +1 -1
  125. package/dist/deployment.mjs +1 -1
  126. package/dist/desktop.cjs +1 -1
  127. package/dist/desktop.d.mts +3 -3
  128. package/dist/desktop.d.ts +3 -3
  129. package/dist/desktop.mjs +1 -1
  130. package/dist/{dev-guard-ZDIELV6Q.mjs → dev-guard-K3GJDPEQ.mjs} +1 -1
  131. package/dist/{dev-guard-ZLLKVO5T.cjs → dev-guard-VIEEA4LS.cjs} +1 -1
  132. package/dist/{devtools-7LHXG2VS.mjs → devtools-7P3OUNLV.mjs} +4 -4
  133. package/dist/{devtools-NNQN66EZ.cjs → devtools-TMATFNUY.cjs} +5 -5
  134. package/dist/{devtools-client-X5OQCXDF.cjs → devtools-client-BKBCCORT.cjs} +1 -1
  135. package/dist/{devtools-client-SU4XH46J.mjs → devtools-client-L4MUWD6K.mjs} +1 -1
  136. package/dist/{devtools-ui-CYBVFLPH.mjs → devtools-ui-BOG33MT5.mjs} +1 -1
  137. package/dist/{devtools-ui-SYRUXUA7.cjs → devtools-ui-C2EMF2SO.cjs} +1 -1
  138. package/dist/docs.cjs +6 -6
  139. package/dist/docs.d.mts +4 -4
  140. package/dist/docs.d.ts +4 -4
  141. package/dist/docs.mjs +5 -5
  142. package/dist/env-types.cjs +1 -1
  143. package/dist/env-types.mjs +1 -1
  144. package/dist/env.cjs +1 -1
  145. package/dist/env.mjs +1 -1
  146. package/dist/environment/vite.cjs +4 -4
  147. package/dist/environment/vite.mjs +3 -3
  148. package/dist/environment.cjs +1 -1
  149. package/dist/environment.mjs +1 -1
  150. package/dist/font.cjs +1 -1
  151. package/dist/font.mjs +1 -1
  152. package/dist/{handler.d-C53zFDmp.d.ts → handler.d-Cy3XbY_W.d.ts} +1 -1
  153. package/dist/{handler.d-CaYopqaD.d.mts → handler.d-DSwLTpa5.d.mts} +1 -1
  154. package/dist/headers.cjs +1 -1
  155. package/dist/{headers.d-MBkD9ZLf.d.mts → headers.d-DiL9YTH3.d.mts} +1 -1
  156. package/dist/{headers.d-BvtpC90T.d.ts → headers.d-Qbjo38a0.d.ts} +1 -1
  157. package/dist/headers.mjs +1 -1
  158. package/dist/i18n/client.cjs +1 -1
  159. package/dist/i18n/client.mjs +1 -1
  160. package/dist/i18n/index.cjs +1 -1
  161. package/dist/i18n/index.mjs +1 -1
  162. package/dist/i18n/server.cjs +1 -1
  163. package/dist/i18n/server.mjs +1 -1
  164. package/dist/image/server.cjs +1 -1
  165. package/dist/image/server.mjs +1 -1
  166. package/dist/image/sharp.cjs +1 -1
  167. package/dist/image/sharp.mjs +1 -1
  168. package/dist/image.cjs +1 -1
  169. package/dist/image.mjs +1 -1
  170. package/dist/index.cjs +37 -37
  171. package/dist/{index.d-Mikf-tdP.d.mts → index.d-CqQKX3s6.d.mts} +1 -1
  172. package/dist/{index.d-2hQpPZ-P.d.ts → index.d-OccJoC6I.d.ts} +1 -1
  173. package/dist/index.d.mts +22 -22
  174. package/dist/index.d.ts +22 -22
  175. package/dist/index.mjs +33 -33
  176. package/dist/instrumentation.cjs +1 -1
  177. package/dist/instrumentation.mjs +1 -1
  178. package/dist/integrations/orm.cjs +4 -4
  179. package/dist/integrations/orm.d.mts +2 -2
  180. package/dist/integrations/orm.d.ts +2 -2
  181. package/dist/integrations/orm.mjs +3 -3
  182. package/dist/integrations.cjs +3 -3
  183. package/dist/integrations.d.mts +2 -2
  184. package/dist/integrations.d.ts +2 -2
  185. package/dist/integrations.mjs +2 -2
  186. package/dist/internal/app-markdown-runtime.cjs +1 -1
  187. package/dist/internal/app-markdown-runtime.d.mts +3 -3
  188. package/dist/internal/app-markdown-runtime.d.ts +3 -3
  189. package/dist/internal/app-markdown-runtime.mjs +1 -1
  190. package/dist/internal/build-runtime.cjs +28 -28
  191. package/dist/internal/build-runtime.d.mts +5 -5
  192. package/dist/internal/build-runtime.d.ts +5 -5
  193. package/dist/internal/build-runtime.mjs +27 -27
  194. package/dist/internal/cli-runtime.cjs +13 -13
  195. package/dist/internal/cli-runtime.d.mts +8 -8
  196. package/dist/internal/cli-runtime.d.ts +8 -8
  197. package/dist/internal/cli-runtime.mjs +12 -12
  198. package/dist/internal/client-error-overlay.cjs +5 -5
  199. package/dist/internal/client-error-overlay.mjs +2 -2
  200. package/dist/internal/client-runtime.cjs +1 -1
  201. package/dist/internal/client-runtime.d.mts +5 -5
  202. package/dist/internal/client-runtime.d.ts +5 -5
  203. package/dist/internal/client-runtime.mjs +1 -1
  204. package/dist/internal/compression-runtime.cjs +1 -1
  205. package/dist/internal/compression-runtime.d.mts +2 -2
  206. package/dist/internal/compression-runtime.d.ts +2 -2
  207. package/dist/internal/compression-runtime.mjs +1 -1
  208. package/dist/internal/config-runtime.cjs +6 -6
  209. package/dist/internal/config-runtime.d.mts +4 -4
  210. package/dist/internal/config-runtime.d.ts +4 -4
  211. package/dist/internal/config-runtime.mjs +5 -5
  212. package/dist/internal/desktop-guard.cjs +1 -1
  213. package/dist/internal/desktop-guard.mjs +1 -1
  214. package/dist/internal/docs-precompiled-runtime.cjs +1 -1
  215. package/dist/internal/docs-precompiled-runtime.mjs +1 -1
  216. package/dist/internal/form-actions-client.cjs +1 -1
  217. package/dist/internal/form-actions-client.mjs +1 -1
  218. package/dist/internal/form-actions.cjs +1 -1
  219. package/dist/internal/form-actions.mjs +1 -1
  220. package/dist/internal/infra-analytics-runtime.cjs +7 -7
  221. package/dist/internal/infra-analytics-runtime.mjs +5 -5
  222. package/dist/internal/island-codec.cjs +1 -1
  223. package/dist/internal/island-codec.mjs +1 -1
  224. package/dist/internal/island-value-store.cjs +1 -1
  225. package/dist/internal/island-value-store.mjs +1 -1
  226. package/dist/internal/islands-boot.cjs +27 -6
  227. package/dist/internal/islands-boot.mjs +24 -3
  228. package/dist/internal/islands-runtime.cjs +1 -1
  229. package/dist/internal/islands-runtime.mjs +1 -1
  230. package/dist/internal/islands-server.cjs +1 -1
  231. package/dist/internal/islands-server.mjs +1 -1
  232. package/dist/internal/islx-client.cjs +1 -1
  233. package/dist/internal/islx-react.cjs +1 -1
  234. package/dist/internal/islx-server.cjs +1 -1
  235. package/dist/internal/isolated-boundary.cjs +1 -1
  236. package/dist/internal/isolated-boundary.mjs +1 -1
  237. package/dist/internal/metadata-image-runtime.cjs +1 -1
  238. package/dist/internal/metadata-image-runtime.mjs +1 -1
  239. package/dist/internal/native-server-fns.cjs +5 -5
  240. package/dist/internal/native-server-fns.mjs +4 -4
  241. package/dist/internal/product-telemetry-runtime.cjs +4 -4
  242. package/dist/internal/product-telemetry-runtime.mjs +3 -3
  243. package/dist/internal/production-node-env.cjs +1 -1
  244. package/dist/internal/production-node-env.mjs +1 -1
  245. package/dist/internal/production-runtime.cjs +7 -7
  246. package/dist/internal/production-runtime.d.mts +11 -11
  247. package/dist/internal/production-runtime.d.ts +11 -11
  248. package/dist/internal/production-runtime.mjs +6 -6
  249. package/dist/internal/react-cache.cjs +1 -1
  250. package/dist/internal/react-cache.mjs +1 -1
  251. package/dist/internal/request-cookies.cjs +1 -1
  252. package/dist/internal/request-cookies.mjs +1 -1
  253. package/dist/internal/server-fn-transform.cjs +1 -1
  254. package/dist/internal/server-fn-transform.mjs +1 -1
  255. package/dist/internal/server-tree.cjs +1 -1
  256. package/dist/internal/server-tree.mjs +1 -1
  257. package/dist/internal/start-manifest.cjs +1 -1
  258. package/dist/internal/start-manifest.d.mts +2 -2
  259. package/dist/internal/start-manifest.d.ts +2 -2
  260. package/dist/internal/start-manifest.mjs +1 -1
  261. package/dist/internal/vercel-edge-middleware.cjs +1 -1
  262. package/dist/internal/vercel-edge-middleware.mjs +1 -1
  263. package/dist/json-ld.cjs +1 -1
  264. package/dist/json-ld.mjs +1 -1
  265. package/dist/{layers-I7VE5Q2Y.mjs → layers-5ZD4764G.mjs} +1 -1
  266. package/dist/{layers-WP5K5F7W.cjs → layers-HMEGUEXM.cjs} +1 -1
  267. package/dist/libsql-http-2QD224YS.mjs +600 -0
  268. package/dist/libsql-http-M6LMNXCN.cjs +600 -0
  269. package/dist/{manager-YO2RHDYU.mjs → manager-OMTC5FOJ.mjs} +2 -2
  270. package/dist/{manager-R7FV4A56.cjs → manager-PX4QN4HK.cjs} +4 -4
  271. package/dist/markdown.cjs +1 -1
  272. package/dist/markdown.d.mts +2 -2
  273. package/dist/markdown.d.ts +2 -2
  274. package/dist/markdown.mjs +1 -1
  275. package/dist/middleware.cjs +5 -5
  276. package/dist/middleware.d.mts +2 -2
  277. package/dist/middleware.d.ts +2 -2
  278. package/dist/middleware.mjs +4 -4
  279. package/dist/mobile.cjs +1 -1
  280. package/dist/mobile.mjs +1 -1
  281. package/dist/{modules-KOKD4XS6.mjs → modules-3Q2ZCY4Q.mjs} +1 -1
  282. package/dist/{modules-QTP7WJPD.cjs → modules-KDHFBQ6L.cjs} +1 -1
  283. package/dist/{mount.d-DsP46XCy.d.mts → mount.d-AcJaUtHF.d.mts} +1 -1
  284. package/dist/{mount.d-GU-tNxbE.d.ts → mount.d-CPzqOm-a.d.ts} +1 -1
  285. package/dist/{native-server-fn-handler-LII4MDRR.mjs → native-server-fn-handler-WYYY4YBN.mjs} +1 -1
  286. package/dist/{native-server-fn-handler-IWNKQEXK.cjs → native-server-fn-handler-XRTZR7SZ.cjs} +1 -1
  287. package/dist/{native-specs-LDV6IZ4N.mjs → native-specs-A7YOL463.mjs} +1 -1
  288. package/dist/{native-specs-5OLED4MM.cjs → native-specs-JDPH26AO.cjs} +1 -1
  289. package/dist/{native-tree-G6ZWS7IR.mjs → native-tree-JDI3LJSH.mjs} +1 -1
  290. package/dist/{native-tree-D3PW64ZL.cjs → native-tree-MNUFN5G6.cjs} +1 -1
  291. package/dist/native.cjs +1 -1
  292. package/dist/native.mjs +1 -1
  293. package/dist/{navigation-delegate.d-CUtNOYLi.d.mts → navigation-delegate.d-C4i5Y39E.d.mts} +1 -1
  294. package/dist/{navigation-delegate.d-DsxNPrLT.d.ts → navigation-delegate.d-_Df9DnPY.d.ts} +1 -1
  295. package/dist/navigation.cjs +1 -1
  296. package/dist/navigation.d.mts +5 -5
  297. package/dist/navigation.d.ts +5 -5
  298. package/dist/navigation.mjs +1 -1
  299. package/dist/{nitro-HKMVYIXY.cjs → nitro-NUCTYEKJ.cjs} +3 -3
  300. package/dist/{nitro-RHLKLYXH.mjs → nitro-VCJ6QQSI.mjs} +2 -2
  301. package/dist/{node-module-bundle-LIZ2KMVW.cjs → node-module-bundle-M6BISE2P.cjs} +1 -1
  302. package/dist/{node-module-bundle-VR6NV6AI.mjs → node-module-bundle-XPLBMXRD.mjs} +1 -1
  303. package/dist/observability.cjs +1 -1
  304. package/dist/observability.mjs +1 -1
  305. package/dist/og.cjs +1 -1
  306. package/dist/og.mjs +1 -1
  307. package/dist/platform.cjs +1 -1
  308. package/dist/platform.mjs +1 -1
  309. package/dist/{plugin-MW7IDV76.cjs → plugin-AGEFSU7K.cjs} +3 -3
  310. package/dist/{plugin-2KWR2X4B.mjs → plugin-TV6W7YNK.mjs} +2 -2
  311. package/dist/plugin.cjs +21 -21
  312. package/dist/plugin.d.mts +6 -6
  313. package/dist/plugin.d.ts +6 -6
  314. package/dist/plugin.mjs +20 -20
  315. package/dist/{port-CLL4BC4O.mjs → port-CEZTV776.mjs} +1 -1
  316. package/dist/{port-HASZTQGY.cjs → port-STMSGUVU.cjs} +1 -1
  317. package/dist/query/client.cjs +1 -1
  318. package/dist/query/client.mjs +1 -1
  319. package/dist/query/index.cjs +1 -1
  320. package/dist/query/index.mjs +1 -1
  321. package/dist/query/parsers.cjs +1 -1
  322. package/dist/query/parsers.mjs +1 -1
  323. package/dist/query/server.cjs +1 -1
  324. package/dist/query/server.mjs +1 -1
  325. package/dist/{render-plan.d-B7Xp-PPW.d.mts → render-plan.d-4V_NmaA6.d.mts} +1 -1
  326. package/dist/{render-plan.d-8K6S0h0L.d.ts → render-plan.d-CslZE7o7.d.ts} +1 -1
  327. package/dist/renderer/none/server.cjs +1 -1
  328. package/dist/renderer/none/server.mjs +1 -1
  329. package/dist/renderer/react/client.cjs +1 -1
  330. package/dist/renderer/react/client.mjs +1 -1
  331. package/dist/renderer/react/server.cjs +1 -1
  332. package/dist/renderer/react/server.mjs +1 -1
  333. package/dist/renderer/react/vite.cjs +1 -1
  334. package/dist/renderer/react/vite.mjs +1 -1
  335. package/dist/renderer-client.cjs +1 -1
  336. package/dist/renderer-client.d.mts +5 -5
  337. package/dist/renderer-client.d.ts +5 -5
  338. package/dist/renderer-client.mjs +1 -1
  339. package/dist/renderer.cjs +1 -1
  340. package/dist/renderer.mjs +1 -1
  341. package/dist/request.cjs +1 -1
  342. package/dist/{request.d-CuQxmOqX.d.ts → request.d-CbV3y7j3.d.ts} +1 -1
  343. package/dist/{request.d-nhqciCAz.d.mts → request.d-CmLTxEgS.d.mts} +1 -1
  344. package/dist/request.d.mts +3 -3
  345. package/dist/request.d.ts +3 -3
  346. package/dist/request.mjs +1 -1
  347. package/dist/{route-rendering.d-BSsdDYC1.d.ts → route-rendering.d-CETnXNez.d.ts} +1 -1
  348. package/dist/{route-rendering.d-CeF1FOnl.d.mts → route-rendering.d-CmoqfOmj.d.mts} +1 -1
  349. package/dist/router.cjs +1 -1
  350. package/dist/{router.d-C7yGlhDL.d.ts → router.d-Dga3N5YO.d.ts} +1 -1
  351. package/dist/{router.d-D462OX24.d.mts → router.d-ktz7pwYm.d.mts} +1 -1
  352. package/dist/router.mjs +1 -1
  353. package/dist/routes.cjs +1 -1
  354. package/dist/routes.d.mts +2 -2
  355. package/dist/routes.d.ts +2 -2
  356. package/dist/routes.mjs +1 -1
  357. package/dist/{rsc-pipeline-7PV6ARDS.cjs → rsc-pipeline-JLYD26AR.cjs} +9 -9
  358. package/dist/{rsc-pipeline-EZU4W4RL.mjs → rsc-pipeline-N7CWJW7T.mjs} +8 -8
  359. package/dist/{runtime-QOE3NRXF.cjs → runtime-F5NSS4DD.cjs} +11 -11
  360. package/dist/{runtime-RWLFEPS3.mjs → runtime-QXX2A4TS.mjs} +8 -8
  361. package/dist/{runtime.d-CORDJQMy.d.ts → runtime.d-BWLZUOfA.d.ts} +1 -1
  362. package/dist/{runtime.d-C-BHQMy5.d.mts → runtime.d-DuaXEM0p.d.mts} +1 -1
  363. package/dist/safe-fetch.cjs +1 -1
  364. package/dist/safe-fetch.mjs +1 -1
  365. package/dist/{schema-dev-notice-CA55V57L.mjs → schema-dev-notice-2GN5V7Y2.mjs} +1 -1
  366. package/dist/{schema-dev-notice-RWA2UTR6.cjs → schema-dev-notice-6VCOZGG2.cjs} +1 -1
  367. package/dist/schema.cjs +1 -1
  368. package/dist/schema.mjs +1 -1
  369. package/dist/{search-client-ZZLKVO5R.cjs → search-client-6NVC6HM2.cjs} +1 -1
  370. package/dist/{search-client-OXH6GBNO.mjs → search-client-W4PEFAQB.mjs} +1 -1
  371. package/dist/server-action-security.cjs +1 -1
  372. package/dist/server-action-security.mjs +1 -1
  373. package/dist/{server-components-status.d-BbADqqjq.d.ts → server-components-status.d-C5JpC7_Y.d.ts} +1 -1
  374. package/dist/{server-components-status.d-BJ6huueH.d.mts → server-components-status.d-CqxtJmqP.d.mts} +1 -1
  375. package/dist/server-fn-client.cjs +1 -1
  376. package/dist/server-fn-client.mjs +1 -1
  377. package/dist/server-fn.cjs +1 -1
  378. package/dist/server-fn.mjs +1 -1
  379. package/dist/server-plugins.cjs +1 -1
  380. package/dist/server-plugins.d.mts +4 -4
  381. package/dist/server-plugins.d.ts +4 -4
  382. package/dist/server-plugins.mjs +1 -1
  383. package/dist/server-query-client.cjs +1 -1
  384. package/dist/server-query-client.mjs +1 -1
  385. package/dist/server-query.cjs +1 -1
  386. package/dist/server-query.mjs +1 -1
  387. package/dist/server.cjs +91 -69
  388. package/dist/server.d.mts +12 -12
  389. package/dist/server.d.ts +12 -12
  390. package/dist/server.mjs +50 -28
  391. package/dist/{session-WPAT6H76.mjs → session-AK2OA5UZ.mjs} +3 -3
  392. package/dist/session-H4TWP73H.cjs +24 -0
  393. package/dist/{spa-router.d-DfjafHyX.d.mts → spa-router.d-BLE188EL.d.mts} +2 -2
  394. package/dist/{spa-router.d-DyGJLQc_.d.ts → spa-router.d-C3LzwTlY.d.ts} +2 -2
  395. package/dist/{ssg.d-D11lz_wr.d.ts → ssg.d-DisOfj0I.d.ts} +2 -2
  396. package/dist/{ssg.d-iiLTyLAO.d.mts → ssg.d-QrFyU6T4.d.mts} +2 -2
  397. package/dist/storage.cjs +3 -3
  398. package/dist/storage.d.mts +2 -2
  399. package/dist/storage.d.ts +2 -2
  400. package/dist/storage.mjs +2 -2
  401. package/dist/testing.cjs +4 -4
  402. package/dist/testing.d.mts +2 -2
  403. package/dist/testing.d.ts +2 -2
  404. package/dist/testing.mjs +4 -4
  405. package/dist/theme/client.cjs +1 -1
  406. package/dist/theme/client.mjs +1 -1
  407. package/dist/theme/index.cjs +1 -1
  408. package/dist/theme/index.mjs +1 -1
  409. package/dist/theme/runtime.cjs +1 -1
  410. package/dist/theme/runtime.mjs +1 -1
  411. package/dist/theme/server.cjs +1 -1
  412. package/dist/theme/server.mjs +1 -1
  413. package/dist/{types.d-DC97bnjj.d.mts → types.d-DW2vyaUq.d.mts} +6 -1
  414. package/dist/{types.d-DC97bnjj.d.ts → types.d-DW2vyaUq.d.ts} +6 -1
  415. package/dist/{utils.d-D-GQeEfa.d.ts → utils.d-7YcgfTCK.d.ts} +1 -1
  416. package/dist/{utils.d-fW-95yEh.d.mts → utils.d-BlWZFgdL.d.mts} +1 -1
  417. package/dist/version.cjs +3 -3
  418. package/dist/version.mjs +2 -2
  419. package/dist/vite.cjs +21 -21
  420. package/dist/vite.d.mts +7 -7
  421. package/dist/vite.d.ts +7 -7
  422. package/dist/vite.mjs +20 -20
  423. package/dist/workflows.cjs +3 -3
  424. package/dist/workflows.mjs +2 -2
  425. package/package.json +3 -5
  426. package/dist/analyzer-HTNXLX6N.cjs +0 -16
  427. package/dist/chunk-BTZ5O6VM.cjs +0 -14
  428. package/dist/chunk-Y6FXYEAI.mjs +0 -10
  429. package/dist/session-OU7M4CIF.cjs +0 -24
  430. package/dist/{chunk-WW62HKA2.cjs → chunk-4SLHSODZ.cjs} +2 -2
  431. package/dist/{chunk-RL47VZ6J.mjs → chunk-522K362I.mjs} +0 -0
  432. package/dist/{chunk-AF3PNVVF.cjs → chunk-AOTD2N5P.cjs} +0 -0
  433. package/dist/{chunk-PC5OZ4YR.cjs → chunk-CUZT7474.cjs} +0 -0
  434. package/dist/{chunk-BEXH6BGH.mjs → chunk-JKFN3YVG.mjs} +0 -0
  435. package/dist/{chunk-YTNE4KGC.cjs → chunk-MALGIHIC.cjs} +0 -0
  436. package/dist/{chunk-UOE6ZZZP.mjs → chunk-Q3DO7MVK.mjs} +0 -0
  437. 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-WP5K5F7W.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) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getFarmRouteLabel
3
- } from "./chunk-BTHNOAOF.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-WHNNDFCJ.mjs";
31
+ } from "./chunk-CBP7AKZH.mjs";
32
32
  import {
33
33
  collectFarmNativeServerFns,
34
34
  findFarmNativeScreenFiles
35
- } from "./chunk-2QPTZMGK.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-TQOYIPMQ.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-YTGNMKRA.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-ZBE5EHVJ.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-IHMSLS2O.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-SL2BSPDJ.mjs";
126
+ } from "./chunk-VO5XDZHK.mjs";
127
127
  import {
128
128
  PluginManager
129
- } from "./chunk-RL47VZ6J.mjs";
129
+ } from "./chunk-522K362I.mjs";
130
130
  import {
131
131
  generateFarmTypeArtifacts,
132
132
  readRouteRenderingDirectiveFromFile,
133
133
  resolveRouteRenderingConfig,
134
134
  resolveRouteRenderingConfigFromFile
135
- } from "./chunk-65XXHTVJ.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-BTHNOAOF.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-ORWXJDUN.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-QODXWUGQ.mjs";
191
+ } from "./chunk-7RQ5KAK6.mjs";
192
192
  import {
193
193
  generateFarmDocsAdapterClientRuntime,
194
194
  getFarmDocsAdapterConfigModule
@@ -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-BEXH6BGH.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-D2RLADWN.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-SMYDCZBW.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-2KWR2X4B.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-2KWR2X4B.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,
@@ -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
@@ -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
 
@@ -15039,7 +15125,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15039
15125
  farmPlugin,
15040
15126
  farmServerOnlyEntriesPlugin
15041
15127
  } = await import("./vite.mjs");
15042
- const { PluginManager: PluginManager2 } = await import("./plugin-2KWR2X4B.mjs");
15128
+ const { PluginManager: PluginManager2 } = await import("./plugin-TV6W7YNK.mjs");
15043
15129
  const pluginManager = new PluginManager2({
15044
15130
  config,
15045
15131
  isDev: false,
@@ -15067,7 +15153,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15067
15153
  }
15068
15154
  async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
15069
15155
  const { farmI18nClientBridgePlugin, farmIslandContainersPlugin, farmPlugin } = await import("./vite.mjs");
15070
- const { PluginManager: PluginManager2 } = await import("./plugin-2KWR2X4B.mjs");
15156
+ const { PluginManager: PluginManager2 } = await import("./plugin-TV6W7YNK.mjs");
15071
15157
  const pluginManager = new PluginManager2({
15072
15158
  config,
15073
15159
  isDev: false,
@@ -15109,7 +15195,7 @@ function resolveLegacyPageEntry(config, root, srcDir) {
15109
15195
  }
15110
15196
  async function buildNitro(config, routeManager, apiRouteManager, serverRenderer, preset, root, distDir, pluginManager) {
15111
15197
  const [{ createNitroConfig }, { createNitro, build: nitroBuild }] = await Promise.all([
15112
- import("./nitro-RHLKLYXH.mjs"),
15198
+ import("./nitro-VCJ6QQSI.mjs"),
15113
15199
  import("nitro/builder")
15114
15200
  ]);
15115
15201
  let nitroConfig = await createNitroConfig(
@@ -18,7 +18,7 @@ function secureUrl(value) {
18
18
  throw new Error("Use HTTPS or a loopback URL for Farm managed SQLite.");
19
19
  return url;
20
20
  }
21
- async function requestSqliteResource(name, operation) {
21
+ async function requestSqliteResource(name, operation, declarations) {
22
22
  const key = process.env.FARMJS_API_KEY;
23
23
  if (!key) throw new Error("Set FARMJS_API_KEY on the server to access managed SQLite.");
24
24
  const base = secureUrl(process.env.FARMJS_API_URL || "https://app.farmjs.dev");
@@ -33,7 +33,7 @@ async function requestSqliteResource(name, operation) {
33
33
  const response = await fetch(new URL("/api/storage/sqlite/" + operation, base), {
34
34
  method: operation === "token" ? "POST" : "PUT",
35
35
  headers,
36
- body: JSON.stringify({ name }),
36
+ body: JSON.stringify(operation === "provision" ? { name, declarations } : { name }),
37
37
  redirect: "error",
38
38
  signal: AbortSignal.timeout(15e3)
39
39
  });
@@ -344,7 +344,7 @@ async function resolveDriver(config, mount) {
344
344
  if (!mount) throw new TypeError("Register managed SQLite in storage.mounts.");
345
345
  return managedSqliteDriver(
346
346
  managedSqliteName(mount, hosted.managed),
347
- () => loadModule("@libsql/client/http"),
347
+ () => import("./libsql-http-M6LMNXCN.cjs"),
348
348
  hosted.schema
349
349
  );
350
350
  }
@@ -466,13 +466,17 @@ function farmStorage(options = {}) {
466
466
  );
467
467
  if (options.managed !== void 0 && options.managed !== true)
468
468
  throw new TypeError("Set `managed` to true or omit it when using farmStorage().");
469
- const managed = options.namespace === void 0 ? true : { name: options.namespace };
470
- if (managed !== true) managedSqliteName("", managed);
471
469
  assertMountSchema(options.schema);
470
+ return createManagedMount(options.namespace, options.schema, "farm");
471
+ }
472
+ function createManagedMount(namespace, schema, declaredDriver) {
473
+ const managed = namespace === void 0 ? true : { name: namespace };
474
+ if (managed !== true) managedSqliteName("", managed);
472
475
  return {
473
476
  driver: "farm-managed-sqlite",
474
477
  managed,
475
- ...options.schema && { schema: options.schema }
478
+ ...declaredDriver && { declaredDriver },
479
+ ...schema && { schema }
476
480
  };
477
481
  }
478
482
  function resolveManagedStorageMount(config) {
@@ -489,22 +493,33 @@ function resolveManagedStorageMount(config) {
489
493
  }
490
494
  const { driver, managed, ...options } = config;
491
495
  if ((managed === false || managed === void 0) && driver !== "farm-managed-sqlite") return;
492
- if (typeof driver !== "string" || !(driver === "farm-managed-sqlite" || driver === "local" || driver === "vercel-kv" || Object.prototype.hasOwnProperty.call(DATABASE_CONNECTORS, driver) || driver !== "db0" && Object.prototype.hasOwnProperty.call(_unstorage.builtinDrivers, driver)))
496
+ if (driver !== "farm-managed-sqlite" && !isHostedDriver(driver))
493
497
  throw new TypeError("Select a built-in storage driver to use `managed: true`.");
498
+ const declaredDriver = driver === "farm-managed-sqlite" ? options.declaredDriver : driver;
499
+ if (driver === "farm-managed-sqlite") {
500
+ delete options.declaredDriver;
501
+ if (declaredDriver !== void 0 && declaredDriver !== "farm" && !isHostedDriver(declaredDriver))
502
+ throw new TypeError("Use a known storage driver in the managed mount descriptor.");
503
+ }
494
504
  if (Object.keys(options).some((key) => key !== "namespace" && key !== "schema"))
495
505
  throw new TypeError(
496
506
  "Remove provider connection settings and driver options when using `managed: true`."
497
507
  );
498
508
  assertMountSchema(options.schema);
499
- if (managed === true)
500
- return farmStorage({
501
- namespace: options.namespace,
502
- schema: options.schema
503
- });
504
- if ((driver === "sqlite" || driver === "farm-managed-sqlite") && !("namespace" in options)) {
505
- return farmStorage({ namespace: managedSqliteName("", managed), schema: options.schema });
506
- }
507
- throw new TypeError("Set `managed` to true and use `namespace` to select a hosted resource.");
509
+ let namespace;
510
+ if (managed === true) namespace = options.namespace;
511
+ else if ((driver === "sqlite" || driver === "farm-managed-sqlite") && !("namespace" in options))
512
+ namespace = managedSqliteName("", managed);
513
+ else
514
+ throw new TypeError("Set `managed` to true and use `namespace` to select a hosted resource.");
515
+ return createManagedMount(
516
+ namespace,
517
+ options.schema,
518
+ typeof declaredDriver === "string" ? declaredDriver : void 0
519
+ );
520
+ }
521
+ function isHostedDriver(driver) {
522
+ return typeof driver === "string" && (driver === "local" || driver === "vercel-kv" || Object.prototype.hasOwnProperty.call(DATABASE_CONNECTORS, driver) || driver !== "db0" && Object.prototype.hasOwnProperty.call(_unstorage.builtinDrivers, driver));
508
523
  }
509
524
  function providerStorage(driver) {
510
525
  function storage(options) {
@@ -539,10 +554,8 @@ function collectDriverModules(config, modules) {
539
554
  if (isStorageInstance(config)) return;
540
555
  const source = config;
541
556
  const driver = source.driver;
542
- if (typeof driver === "string") {
543
- if (resolveManagedStorageMount(config)) {
544
- modules.add("@libsql/client/http");
545
- } else if (isDatabaseDriverName(driver)) {
557
+ if (typeof driver === "string" && !resolveManagedStorageMount(config)) {
558
+ if (isDatabaseDriverName(driver)) {
546
559
  modules.add("db0");
547
560
  modules.add(DATABASE_CONNECTORS[driver].module);
548
561
  modules.add("unstorage/drivers/db0");
@@ -70,13 +70,13 @@ var _chunk2YJ4DHTDcjs = require('./chunk-2YJ4DHTD.cjs');
70
70
  var _chunkASYOWPSRcjs = require('./chunk-ASYOWPSR.cjs');
71
71
 
72
72
 
73
- var _chunkQUEYL2WMcjs = require('./chunk-QUEYL2WM.cjs');
73
+ var _chunkCKNZJFK5cjs = require('./chunk-CKNZJFK5.cjs');
74
74
 
75
75
 
76
76
  var _chunkWT6RAN2Icjs = require('./chunk-WT6RAN2I.cjs');
77
77
 
78
78
 
79
- var _chunkAF3PNVVFcjs = require('./chunk-AF3PNVVF.cjs');
79
+ var _chunkAOTD2N5Pcjs = require('./chunk-AOTD2N5P.cjs');
80
80
 
81
81
 
82
82
  var _chunk5DX3O6TTcjs = require('./chunk-5DX3O6TT.cjs');
@@ -106,7 +106,7 @@ var _chunk7JUIK547cjs = require('./chunk-7JUIK547.cjs');
106
106
  var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
107
107
 
108
108
 
109
- var _chunkBTZ5O6VMcjs = require('./chunk-BTZ5O6VM.cjs');
109
+ var _chunkUZM3PDKKcjs = require('./chunk-UZM3PDKK.cjs');
110
110
 
111
111
  // src/mcp-config.ts
112
112
  var _module = require('module');
@@ -154,7 +154,7 @@ var parseAst;
154
154
  async function loadParseAst() {
155
155
  if (!parseAst) {
156
156
  const { createRequire: createRequire3 } = await import("module");
157
- parseAst = createRequire3(typeof __filename === "string" ? __filename : _chunkBTZ5O6VMcjs.define_import_meta_default.url)(
157
+ parseAst = createRequire3(typeof __filename === "string" ? __filename : _chunkUZM3PDKKcjs.define_import_meta_default.url)(
158
158
  "rolldown/parseAst"
159
159
  ).parseAst;
160
160
  }
@@ -1123,12 +1123,12 @@ async function resolveConfig(userConfig, mode) {
1123
1123
  userConfig.deploymentId || process.env.FARM_DEPLOYMENT_ID || process.env.VERCEL_GIT_COMMIT_SHA || process.env.CF_PAGES_COMMIT_SHA || (mode === "production" ? await generateBuildId() : "development")
1124
1124
  );
1125
1125
  const basePath = _chunkD22BUQKWcjs.normalizeFarmConfigBasePath.call(void 0, userConfig.basePath);
1126
- const mobileSessionPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./session-OU7M4CIF.cjs")).createFarmMobileSessionPlugin({
1126
+ const mobileSessionPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./session-H4TWP73H.cjs")).createFarmMobileSessionPlugin({
1127
1127
  basePath,
1128
1128
  integrations: () => integrations
1129
1129
  }) : null;
1130
1130
  let nativeServerFnAppDirs = [];
1131
- const nativeServerFnPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./native-server-fn-handler-IWNKQEXK.cjs")).createFarmNativeServerFnPlugin({
1131
+ const nativeServerFnPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./native-server-fn-handler-XRTZR7SZ.cjs")).createFarmNativeServerFnPlugin({
1132
1132
  resolve: (await import("./internal/native-server-fns.cjs")).createFarmDevNativeServerFnResolver(
1133
1133
  { root, srcDir, appDirs: () => nativeServerFnAppDirs }
1134
1134
  )
@@ -1160,7 +1160,7 @@ async function resolveConfig(userConfig, mode) {
1160
1160
  mdx,
1161
1161
  migrations: resolveMigrationsConfig(userConfig.migrations),
1162
1162
  cron,
1163
- workflows: _chunkQUEYL2WMcjs.resolveWorkflowsConfig.call(void 0, userConfig.workflows),
1163
+ workflows: _chunkCKNZJFK5cjs.resolveWorkflowsConfig.call(void 0, userConfig.workflows),
1164
1164
  api,
1165
1165
  observability: _nullishCoalesce(userConfig.observability, () => ( false)),
1166
1166
  telemetry: userConfig.telemetry !== false,
@@ -1190,7 +1190,7 @@ async function resolveConfig(userConfig, mode) {
1190
1190
  plugins: [
1191
1191
  ...mobileSessionPlugin ? [mobileSessionPlugin] : [],
1192
1192
  ...nativeServerFnPlugin ? [nativeServerFnPlugin] : [],
1193
- ..._chunkAF3PNVVFcjs.resolveIntegrationPlugins.call(void 0, integrations),
1193
+ ..._chunkAOTD2N5Pcjs.resolveIntegrationPlugins.call(void 0, integrations),
1194
1194
  ...nativeMCPPlugin ? [nativeMCPPlugin] : [],
1195
1195
  ...userConfig.plugins || []
1196
1196
  ],
@@ -1236,7 +1236,7 @@ async function resolveConfig(userConfig, mode) {
1236
1236
  };
1237
1237
  _chunkLSHX2H5Gcjs.assertPluginDependencies.call(void 0, resolved.plugins, resolved.integrations);
1238
1238
  if (nativeServerFnPlugin) {
1239
- nativeServerFnAppDirs = (await import("./layers-WP5K5F7W.cjs")).getFarmAppDirectories(resolved);
1239
+ nativeServerFnAppDirs = (await import("./layers-HMEGUEXM.cjs")).getFarmAppDirectories(resolved);
1240
1240
  }
1241
1241
  return resolved;
1242
1242
  }
@@ -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 _chunkUYACD4SHcjs = require('./chunk-UYACD4SH.cjs');
3
+ var _chunkLMXGCFAMcjs = require('./chunk-LMXGCFAM.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(_chunkUYACD4SHcjs.FARM_VERSION, "unknown"),
93
+ packageVersion: sanitizeDetail(_chunkLMXGCFAMcjs.FARM_VERSION, "unknown"),
94
94
  renderer: sanitizeDetail(options.renderer, "custom"),
95
95
  deployTarget: sanitizeDetail(options.deployTarget, "custom")
96
96
  };
@@ -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 _chunkIIVZTGGPcjs = require('./chunk-IIVZTGGP.cjs');
3
+ var _chunk26CNCIFIcjs = require('./chunk-26CNCIFI.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 _chunkAF3PNVVFcjs = require('./chunk-AF3PNVVF.cjs');
28
+ var _chunkAOTD2N5Pcjs = require('./chunk-AOTD2N5P.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 = _chunkAF3PNVVFcjs.getIntegrationSchemas.call(void 0, config.integrations);
120
+ const integrationSchemas = _chunkAOTD2N5Pcjs.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 = _chunkIIVZTGGPcjs.resolveIntegrationOrmRuntimeClient.call(void 0, { config: resolved }))))
127
+ resolveClient: (resolved) => _nullishCoalesce(integrationClient, () => ( (integrationClient = _chunk26CNCIFIcjs.resolveIntegrationOrmRuntimeClient.call(void 0, { config: resolved }))))
128
128
  });
129
129
  }
130
130
  for (const declaration of _chunkGDM3ZD2Ocjs.findSchemaTableOwners.call(void 0, config)) {