@farm.js/core 0.1.49 → 0.1.50

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 (310) hide show
  1. package/dist/{agent-mcp-Bb8hnnqd.d.ts → agent-mcp-9BMbRgg_.d.ts} +1 -1
  2. package/dist/{agent-mcp-ir3v4fHf.d.mts → agent-mcp-CIMH324y.d.mts} +1 -1
  3. package/dist/agent-runtime.cjs +3 -3
  4. package/dist/agent-runtime.d.mts +6 -6
  5. package/dist/agent-runtime.d.ts +6 -6
  6. package/dist/agent-runtime.mjs +2 -2
  7. package/dist/analyzer-CN7C74WX.cjs +1066 -0
  8. package/dist/analyzer-DDW34OMC.mjs +1066 -0
  9. package/dist/api/client.d.mts +0 -1
  10. package/dist/api/client.d.ts +0 -1
  11. package/dist/api/route-manager.cjs +5 -5
  12. package/dist/api/route-manager.d.mts +10 -10
  13. package/dist/api/route-manager.d.ts +10 -10
  14. package/dist/api/route-manager.mjs +4 -4
  15. package/dist/api/runtime.cjs +3 -3
  16. package/dist/api/runtime.d.mts +7 -7
  17. package/dist/api/runtime.d.ts +7 -7
  18. package/dist/api/runtime.mjs +2 -2
  19. package/dist/api.cjs +6 -6
  20. package/dist/api.d.mts +10 -10
  21. package/dist/api.d.ts +10 -10
  22. package/dist/api.mjs +5 -5
  23. package/dist/{app-y649szYm.d.ts → app-BWibTHVT.d.ts} +7 -7
  24. package/dist/{app-DLzz02du.d.mts → app-DVJ13FPA.d.mts} +7 -7
  25. package/dist/{app-manifest-Crn8Qd3U.d.mts → app-manifest-CQDJOKL2.d.mts} +1 -1
  26. package/dist/{app-manifest-DNeTKMRL.d.ts → app-manifest-D0kaXdwu.d.ts} +1 -1
  27. package/dist/app-markdown.d.mts +7 -7
  28. package/dist/app-markdown.d.ts +7 -7
  29. package/dist/cache.d.mts +4 -3
  30. package/dist/cache.d.ts +4 -3
  31. package/dist/{chunk-VJXLUTBM.mjs → chunk-2DEPNLXK.mjs} +7 -7
  32. package/dist/chunk-2G63BIRL.mjs +227 -0
  33. package/dist/chunk-2GLQSIZD.mjs +55 -0
  34. package/dist/{chunk-ACI52TCN.mjs → chunk-2VCC3GVC.mjs} +1 -1
  35. package/dist/chunk-3ATXWZPH.cjs +227 -0
  36. package/dist/{chunk-C5S457CK.cjs → chunk-474FO3UE.cjs} +68 -54
  37. package/dist/{chunk-QNQEK3OF.cjs → chunk-4T25YCZ5.cjs} +14 -14
  38. package/dist/{chunk-ATHPRVP2.mjs → chunk-5V4KZOZO.mjs} +1 -1
  39. package/dist/{chunk-FGJQS4EC.cjs → chunk-6QA2SXVH.cjs} +2 -2
  40. package/dist/{chunk-XLYXG73A.mjs → chunk-75WWOZ5C.mjs} +22 -0
  41. package/dist/{chunk-QFQDRJKJ.mjs → chunk-76R5GJER.mjs} +2 -2
  42. package/dist/{chunk-NG44F7AH.mjs → chunk-7ONZDKVY.mjs} +2 -2
  43. package/dist/{chunk-4IICUBQX.cjs → chunk-A5BJKSZE.cjs} +2 -2
  44. package/dist/{chunk-TTYXOAB7.mjs → chunk-ANHZ6SUL.mjs} +1 -1
  45. package/dist/{chunk-ZBS3GOQZ.cjs → chunk-AQLHD6HZ.cjs} +35 -61
  46. package/dist/{chunk-4HM5B5RR.cjs → chunk-B5S2JS6M.cjs} +117 -115
  47. package/dist/{chunk-AXRNEVCS.cjs → chunk-B6PREBN6.cjs} +8 -8
  48. package/dist/{chunk-JOHXK4BB.mjs → chunk-BW6SCVYX.mjs} +1 -1
  49. package/dist/{chunk-LZBM35DH.mjs → chunk-C73RIAEF.mjs} +4 -4
  50. package/dist/chunk-CGCJ2TJU.cjs +55 -0
  51. package/dist/{chunk-UYQOIPXE.mjs → chunk-CPXDDWGL.mjs} +1 -1
  52. package/dist/{chunk-JPAVNDZH.cjs → chunk-CY7H5KS4.cjs} +25 -25
  53. package/dist/{chunk-4S7M63WX.cjs → chunk-DGOLAZLV.cjs} +22 -1
  54. package/dist/{chunk-73XBJRZW.cjs → chunk-E2BMCNMJ.cjs} +2 -2
  55. package/dist/{chunk-FR4HJDI6.cjs → chunk-F5LERVY3.cjs} +21 -24
  56. package/dist/{chunk-A7DK663W.cjs → chunk-FACTMUPI.cjs} +27 -27
  57. package/dist/chunk-G2KTRMWA.mjs +40 -0
  58. package/dist/{chunk-C6U66WWF.mjs → chunk-GFT5AHAT.mjs} +13 -0
  59. package/dist/{chunk-NPPT4RWF.cjs → chunk-GOOK2J2W.cjs} +7 -7
  60. package/dist/{chunk-NW2BKDVT.mjs → chunk-HHFMECFO.mjs} +1 -1
  61. package/dist/{chunk-J27BZO67.mjs → chunk-HWCHIBJZ.mjs} +21 -24
  62. package/dist/{chunk-HTLCLOXQ.cjs → chunk-HYN3LLG7.cjs} +3 -3
  63. package/dist/{chunk-HELQXYVI.cjs → chunk-I2DQGS56.cjs} +11 -9
  64. package/dist/{chunk-SSNN55Q6.cjs → chunk-IQXGHGZF.cjs} +5 -5
  65. package/dist/{chunk-ZSIGEHSE.cjs → chunk-IUBDMDZZ.cjs} +21 -180
  66. package/dist/{chunk-Z3BXMMFF.mjs → chunk-IWJKJDNW.mjs} +38 -24
  67. package/dist/{chunk-DGVVVYKD.mjs → chunk-JJOWY3XD.mjs} +2 -2
  68. package/dist/{chunk-6XFGJBYX.cjs → chunk-JYNNIGQO.cjs} +16 -7
  69. package/dist/{chunk-XO6WL6NL.mjs → chunk-KGP76FSV.mjs} +1 -1
  70. package/dist/{chunk-GXSMF7UR.mjs → chunk-KO2NWUKN.mjs} +1 -1
  71. package/dist/{chunk-AIHD6VME.cjs → chunk-KZH6YLND.cjs} +154 -126
  72. package/dist/{chunk-5566GNEG.cjs → chunk-LIFUPCXW.cjs} +13 -0
  73. package/dist/{chunk-I2SWKWO7.mjs → chunk-LJDIFIJ2.mjs} +1 -1
  74. package/dist/{chunk-KZT2VHRQ.cjs → chunk-LYWAGXXW.cjs} +11 -11
  75. package/dist/{chunk-RYDDUCNJ.mjs → chunk-M7LKA632.mjs} +1 -1
  76. package/dist/{chunk-6LH33DLL.cjs → chunk-NJVFPJ2Y.cjs} +2 -2
  77. package/dist/{chunk-JWP56HCP.mjs → chunk-OD6WM3I7.mjs} +2 -2
  78. package/dist/{chunk-MJ6IC4K2.mjs → chunk-OTOOJIUB.mjs} +1 -1
  79. package/dist/{chunk-R2SEZEBC.cjs → chunk-OYNNA4DD.cjs} +4 -4
  80. package/dist/{chunk-GBPDSUFE.mjs → chunk-OZK2DS44.mjs} +1 -1
  81. package/dist/chunk-QXJADAQB.cjs +40 -0
  82. package/dist/{chunk-J5VCA45K.cjs → chunk-RHOR2J6V.cjs} +1 -1
  83. package/dist/{chunk-YQGZLCT4.cjs → chunk-RWT2BTJT.cjs} +6 -6
  84. package/dist/{chunk-3HBFI373.cjs → chunk-S5AQ7CAC.cjs} +14 -14
  85. package/dist/{chunk-HNAUK3SC.mjs → chunk-SHJJM6OG.mjs} +40 -199
  86. package/dist/{chunk-LL7TDMOM.mjs → chunk-SMUW7UST.mjs} +33 -59
  87. package/dist/{chunk-VCFBQFOV.mjs → chunk-SN5VSO3Q.mjs} +9 -7
  88. package/dist/{chunk-DM3TFCC2.cjs → chunk-SUV6YO4Q.cjs} +5 -5
  89. package/dist/{chunk-JUMPFVMK.mjs → chunk-TUOO6IK3.mjs} +9 -0
  90. package/dist/chunk-UB7RVEMX.mjs +73 -0
  91. package/dist/{chunk-CDTIXBKN.mjs → chunk-UN6N623E.mjs} +2 -2
  92. package/dist/{chunk-BEXYFR2R.cjs → chunk-UY6HS5PF.cjs} +2 -2
  93. package/dist/{chunk-HAH4FBTA.mjs → chunk-VAHBCI6X.mjs} +1 -1
  94. package/dist/{chunk-N25RPPO5.cjs → chunk-WAPQWAE6.cjs} +10 -10
  95. package/dist/{chunk-Z4LTSH7D.mjs → chunk-WVBUXNBX.mjs} +71 -43
  96. package/dist/{chunk-ALD2WMLA.mjs → chunk-WXHDVXJE.mjs} +2 -2
  97. package/dist/{chunk-EVCQX243.cjs → chunk-X2EL3BLH.cjs} +2 -2
  98. package/dist/{chunk-EA5PMJDU.mjs → chunk-X3HOVNHI.mjs} +1 -1
  99. package/dist/{chunk-XXB37YET.cjs → chunk-XLRLSTJ6.cjs} +7 -7
  100. package/dist/{chunk-DRFADSKY.mjs → chunk-XXXRRVY6.mjs} +4 -4
  101. package/dist/{chunk-EXHEPWFJ.cjs → chunk-YAXOEAND.cjs} +10 -10
  102. package/dist/{chunk-PEHL3IZL.cjs → chunk-YB44NKC2.cjs} +2 -2
  103. package/dist/chunk-YKHRCY4T.cjs +73 -0
  104. package/dist/{chunk-IVHPRF4W.mjs → chunk-ZLOQQ2UF.mjs} +32 -30
  105. package/dist/client/lifecycle.d.mts +1 -1
  106. package/dist/client/lifecycle.d.ts +1 -1
  107. package/dist/{client-plugins-DFDQUI9Q.d.ts → client-plugins-BPfltM5m.d.ts} +15 -8
  108. package/dist/{client-plugins-BNBeyLMi.d.mts → client-plugins-D4RO59f0.d.mts} +15 -8
  109. package/dist/client-plugins.d.mts +6 -6
  110. package/dist/client-plugins.d.ts +6 -6
  111. package/dist/client.cjs +11 -8
  112. package/dist/client.d.mts +11 -10
  113. package/dist/client.d.ts +11 -10
  114. package/dist/client.mjs +12 -9
  115. package/dist/client.react-server.mjs +1 -1
  116. package/dist/config-CnhyvvmT.d.mts +188 -0
  117. package/dist/config-CnhyvvmT.d.ts +188 -0
  118. package/dist/config.d.mts +6 -6
  119. package/dist/config.d.ts +6 -6
  120. package/dist/desktop.d.mts +7 -7
  121. package/dist/desktop.d.ts +7 -7
  122. package/dist/{dev-guard-YO6KPIOQ.mjs → dev-guard-4PFQNXQX.mjs} +2 -1
  123. package/dist/{dev-guard-PLHL6OTJ.cjs → dev-guard-YLO5DE3H.cjs} +4 -3
  124. package/dist/{devtools-A37WWJZL.cjs → devtools-N5XTOECL.cjs} +8 -8
  125. package/dist/{devtools-BLKHPY3C.mjs → devtools-STG7HPRV.mjs} +7 -7
  126. package/dist/docs.cjs +10 -10
  127. package/dist/docs.d.mts +7 -7
  128. package/dist/docs.d.ts +7 -7
  129. package/dist/docs.mjs +9 -9
  130. package/dist/environment/vite.d.mts +1 -1
  131. package/dist/environment/vite.d.ts +1 -1
  132. package/dist/generate-route-types-DQP0cUzk.d.ts +33 -0
  133. package/dist/generate-route-types-TF5Wwtvz.d.mts +33 -0
  134. package/dist/i18n/client.d.mts +2 -2
  135. package/dist/i18n/client.d.ts +2 -2
  136. package/dist/i18n/index.d.mts +3 -3
  137. package/dist/i18n/index.d.ts +3 -3
  138. package/dist/i18n/server.d.mts +5 -5
  139. package/dist/i18n/server.d.ts +5 -5
  140. package/dist/image/server.cjs +3 -3
  141. package/dist/image/server.mjs +2 -2
  142. package/dist/image/sharp.cjs +10 -10
  143. package/dist/image/sharp.mjs +2 -2
  144. package/dist/{index-CeJ9_s9p.d.mts → index-C-N3Pwg-.d.ts} +2 -2
  145. package/dist/{index-MocnSP3a.d.ts → index-D3l4tREW.d.ts} +2 -2
  146. package/dist/{index-Cl3akY5U.d.mts → index-DPUAPho_.d.mts} +2 -2
  147. package/dist/{index-DBdiTkNc.d.ts → index-k8o8eUOd.d.mts} +2 -2
  148. package/dist/index.cjs +72 -65
  149. package/dist/index.d.mts +29 -45
  150. package/dist/index.d.ts +29 -45
  151. package/dist/index.mjs +77 -70
  152. package/dist/integrations.cjs +3 -3
  153. package/dist/integrations.d.mts +6 -6
  154. package/dist/integrations.d.ts +6 -6
  155. package/dist/integrations.mjs +2 -2
  156. package/dist/internal/app-markdown-runtime.d.mts +7 -7
  157. package/dist/internal/app-markdown-runtime.d.ts +7 -7
  158. package/dist/internal/build-runtime.cjs +35 -32
  159. package/dist/internal/build-runtime.d.mts +9 -9
  160. package/dist/internal/build-runtime.d.ts +9 -9
  161. package/dist/internal/build-runtime.mjs +34 -31
  162. package/dist/internal/cli-runtime.cjs +16 -15
  163. package/dist/internal/cli-runtime.mjs +16 -15
  164. package/dist/internal/client-error-overlay.cjs +4 -4
  165. package/dist/internal/client-error-overlay.mjs +1 -1
  166. package/dist/internal/client-runtime.cjs +19 -2
  167. package/dist/internal/client-runtime.d.mts +45 -3
  168. package/dist/internal/client-runtime.d.ts +45 -3
  169. package/dist/internal/client-runtime.mjs +19 -2
  170. package/dist/internal/compression-runtime.d.mts +6 -6
  171. package/dist/internal/compression-runtime.d.ts +6 -6
  172. package/dist/internal/config-runtime.cjs +17 -10
  173. package/dist/internal/config-runtime.d.mts +259 -18
  174. package/dist/internal/config-runtime.d.ts +259 -18
  175. package/dist/internal/config-runtime.mjs +15 -8
  176. package/dist/internal/form-actions.cjs +4 -4
  177. package/dist/internal/form-actions.mjs +3 -3
  178. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  179. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  180. package/dist/internal/metadata-image-runtime.cjs +3 -3
  181. package/dist/internal/metadata-image-runtime.mjs +2 -2
  182. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  183. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  184. package/dist/internal/production-runtime.cjs +12 -12
  185. package/dist/internal/production-runtime.d.mts +19 -19
  186. package/dist/internal/production-runtime.d.ts +19 -19
  187. package/dist/internal/production-runtime.mjs +14 -14
  188. package/dist/{layers-D9fbe-rz.d.ts → layers-CcS42OGR.d.mts} +1 -1
  189. package/dist/{layers-D9fbe-rz.d.mts → layers-CcS42OGR.d.ts} +1 -1
  190. package/dist/{lifecycle-DK06VuKP.d.ts → lifecycle-C2aLBOwu.d.mts} +1 -1
  191. package/dist/{lifecycle-DK06VuKP.d.mts → lifecycle-C2aLBOwu.d.ts} +1 -1
  192. package/dist/markdown.d.mts +6 -6
  193. package/dist/markdown.d.ts +6 -6
  194. package/dist/middleware.cjs +7 -7
  195. package/dist/middleware.d.mts +8 -8
  196. package/dist/middleware.d.ts +8 -8
  197. package/dist/middleware.mjs +6 -6
  198. package/dist/mobile.cjs +9 -0
  199. package/dist/mobile.d.mts +67 -0
  200. package/dist/mobile.d.ts +67 -0
  201. package/dist/mobile.mjs +9 -0
  202. package/dist/navigation-delegate-8xg3Zvp4.d.ts +29 -0
  203. package/dist/navigation-delegate-ji6elCKy.d.mts +29 -0
  204. package/dist/navigation.cjs +5 -5
  205. package/dist/navigation.d.mts +9 -9
  206. package/dist/navigation.d.ts +9 -9
  207. package/dist/navigation.mjs +4 -4
  208. package/dist/{nitro-UT2J5A5D.mjs → nitro-2Q5NVY7L.mjs} +2 -2
  209. package/dist/{nitro-BIXIKJZS.cjs → nitro-YPSZBYDK.cjs} +3 -3
  210. package/dist/platform.cjs +2 -1
  211. package/dist/platform.d.mts +4 -3
  212. package/dist/platform.d.ts +4 -3
  213. package/dist/platform.mjs +2 -1
  214. package/dist/{plugin-4KYXV7BB.mjs → plugin-53SY5YBS.mjs} +1 -1
  215. package/dist/{plugin-WBANOZQM.cjs → plugin-HZIBL3DW.cjs} +2 -2
  216. package/dist/plugin.cjs +30 -28
  217. package/dist/plugin.d.mts +13 -8
  218. package/dist/plugin.d.ts +13 -8
  219. package/dist/plugin.mjs +29 -27
  220. package/dist/{production-runtime-DcD-GRAv.d.mts → production-runtime-DXnQQkQf.d.mts} +3 -3
  221. package/dist/{production-runtime-B3qFFtKF.d.ts → production-runtime-TdKaYRj0.d.ts} +3 -3
  222. package/dist/production-vite-BQFAlG7n.d.mts +13 -0
  223. package/dist/production-vite-BQFAlG7n.d.ts +13 -0
  224. package/dist/{programmatic-routes-client-fD9f4XqU.d.ts → programmatic-routes-client-BwiTndEC.d.ts} +2 -2
  225. package/dist/{programmatic-routes-client-DzbYGiZQ.d.mts → programmatic-routes-client-Dh1SDLSM.d.mts} +2 -2
  226. package/dist/query/client.cjs +6 -6
  227. package/dist/query/client.mjs +2 -2
  228. package/dist/{render-plan-B6cfssrr.d.ts → render-plan-BPbwRbuN.d.ts} +1 -1
  229. package/dist/{render-plan-DqJ51ufr.d.mts → render-plan-BvCGXF6K.d.mts} +1 -1
  230. package/dist/renderer-client.cjs +9 -6
  231. package/dist/renderer-client.d.mts +9 -8
  232. package/dist/renderer-client.d.ts +9 -8
  233. package/dist/renderer-client.mjs +6 -3
  234. package/dist/{request-jhvUMXRx.d.ts → request-B8PGTZNR.d.ts} +1 -1
  235. package/dist/{request-UuAxHn8h.d.mts → request-C_xTkJib.d.mts} +1 -1
  236. package/dist/request.d.mts +7 -7
  237. package/dist/request.d.ts +7 -7
  238. package/dist/{resolver-DC57A4vz.d.ts → resolver-CJ-D9nP-.d.ts} +1 -1
  239. package/dist/{resolver-C2G-3Tm6.d.mts → resolver-TDyZKgKI.d.mts} +1 -1
  240. package/dist/{route-rendering-Cou00t1X.d.mts → route-rendering-DlddURL1.d.mts} +1 -1
  241. package/dist/{route-rendering-Sn50cYZf.d.ts → route-rendering-RNtcj607.d.ts} +1 -1
  242. package/dist/{router-0X9DCTcm.d.mts → router-B97eB0Mq.d.mts} +1 -1
  243. package/dist/{router-xwLvi48p.d.ts → router-qUVaoEN8.d.ts} +1 -1
  244. package/dist/routes-8PT9cl60.d.ts +121 -0
  245. package/dist/routes-kEUsXHx3.d.mts +121 -0
  246. package/dist/routes.d.mts +6 -6
  247. package/dist/routes.d.ts +6 -6
  248. package/dist/{rsc-pipeline-VKHMABDJ.cjs → rsc-pipeline-L4XOZ2TE.cjs} +13 -11
  249. package/dist/{rsc-pipeline-F6ZPH5MU.mjs → rsc-pipeline-T3775JUA.mjs} +12 -10
  250. package/dist/runtime-BIBGJO7V.cjs +1005 -0
  251. package/dist/{runtime-B9HmxiZc.d.ts → runtime-C4CmlOOh.d.ts} +2 -2
  252. package/dist/{runtime-tkSXZiqO.d.ts → runtime-C8GUnNeP.d.ts} +1 -1
  253. package/dist/{runtime-CMrsyChI.d.mts → runtime-CaDswfWi.d.mts} +1 -1
  254. package/dist/{runtime-CCxTmGuf.d.mts → runtime-CihDZ2Rn.d.mts} +2 -2
  255. package/dist/runtime-HRSFC4ZC.mjs +1005 -0
  256. package/dist/{schema-dev-notice-O3I5HLXK.mjs → schema-dev-notice-LZ5NXGLN.mjs} +2 -2
  257. package/dist/{schema-dev-notice-Z73J3NJ6.cjs → schema-dev-notice-XV7GZ3QJ.cjs} +4 -4
  258. package/dist/server-action-security.cjs +3 -3
  259. package/dist/server-action-security.mjs +2 -2
  260. package/dist/server-fn-client.d.mts +0 -1
  261. package/dist/server-fn-client.d.ts +0 -1
  262. package/dist/server-fn.cjs +4 -4
  263. package/dist/server-fn.d.mts +0 -1
  264. package/dist/server-fn.d.ts +0 -1
  265. package/dist/server-fn.mjs +3 -3
  266. package/dist/server-plugins.cjs +1 -1
  267. package/dist/server-plugins.d.mts +7 -7
  268. package/dist/server-plugins.d.ts +7 -7
  269. package/dist/server-plugins.mjs +1 -1
  270. package/dist/server-query-client.d.mts +0 -1
  271. package/dist/server-query-client.d.ts +0 -1
  272. package/dist/server-query.cjs +5 -5
  273. package/dist/server-query.d.mts +0 -1
  274. package/dist/server-query.d.ts +0 -1
  275. package/dist/server-query.mjs +4 -4
  276. package/dist/server.cjs +88 -65
  277. package/dist/server.d.mts +22 -17
  278. package/dist/server.d.ts +22 -17
  279. package/dist/server.mjs +63 -40
  280. package/dist/{spa-router-B48EjsS1.d.mts → spa-router-Dlv5ofg0.d.mts} +4 -4
  281. package/dist/{spa-router-B06APnGK.d.ts → spa-router-qapSboKz.d.ts} +4 -4
  282. package/dist/testing.cjs +7 -7
  283. package/dist/testing.d.mts +6 -6
  284. package/dist/testing.d.ts +6 -6
  285. package/dist/testing.mjs +5 -5
  286. package/dist/{types--Wh02r5_.d.mts → types-C41ePjvP.d.mts} +1 -1
  287. package/dist/{types--Wh02r5_.d.ts → types-C41ePjvP.d.ts} +1 -1
  288. package/dist/{utils-C5fyK2tE.d.ts → utils-A-cYF81u.d.ts} +1 -1
  289. package/dist/{utils-hyAwmcN6.d.mts → utils-DyvlSxFk.d.mts} +1 -1
  290. package/dist/version.cjs +2 -2
  291. package/dist/version.mjs +1 -1
  292. package/dist/vite.cjs +30 -28
  293. package/dist/vite.d.mts +9 -9
  294. package/dist/vite.d.ts +9 -9
  295. package/dist/vite.mjs +29 -27
  296. package/dist/{workflows-Df1C_7OG.d.mts → workflows-CRMzQZ3k.d.mts} +2 -1
  297. package/dist/{workflows-Df1C_7OG.d.ts → workflows-CRMzQZ3k.d.ts} +2 -1
  298. package/dist/workflows.cjs +3 -3
  299. package/dist/workflows.d.mts +1 -1
  300. package/dist/workflows.d.ts +1 -1
  301. package/dist/workflows.mjs +2 -2
  302. package/package.json +10 -2
  303. package/dist/cache-invalidation-BD0z_lfu.d.mts +0 -4
  304. package/dist/cache-invalidation-BD0z_lfu.d.ts +0 -4
  305. package/dist/chunk-45EUIICW.mjs +0 -15
  306. package/dist/chunk-V7KTQR4C.cjs +0 -15
  307. package/dist/{chunk-BR5FSKZ5.cjs → chunk-EQWWOQTK.cjs} +0 -0
  308. package/dist/{chunk-5OJVKXFV.cjs → chunk-N7JQXQAV.cjs} +2 -2
  309. package/dist/{chunk-VR4SEDEM.mjs → chunk-VOZ5DI7D.mjs} +0 -0
  310. package/dist/{chunk-72KABRWN.mjs → chunk-WSDKXV4E.mjs} +4 -4
@@ -0,0 +1,73 @@
1
+ // src/platform-blocks.ts
2
+ import { readFileSync } from "fs";
3
+ import * as path from "path";
4
+ function isPlainObject(value) {
5
+ return !!value && typeof value === "object" && !Array.isArray(value);
6
+ }
7
+ function createPlatformBlockChecker(prefix) {
8
+ const fail = (message) => {
9
+ throw new TypeError(`${prefix}: ${message}`);
10
+ };
11
+ return {
12
+ fail,
13
+ checkKeys(value, allowed, where) {
14
+ for (const key of Object.keys(value)) {
15
+ if (!allowed.has(key)) {
16
+ fail(`unknown option ${where}${key}. Supported: ${[...allowed].join(", ")}.`);
17
+ }
18
+ }
19
+ },
20
+ optionalString(value, key) {
21
+ if (value === void 0) return void 0;
22
+ if (typeof value !== "string" || !value.trim()) fail(`${key} must be a non-empty string.`);
23
+ return value.trim();
24
+ }
25
+ };
26
+ }
27
+ function readAppPackageJson(root) {
28
+ try {
29
+ const parsed = JSON.parse(readFileSync(path.join(root, "package.json"), "utf8"));
30
+ return isPlainObject(parsed) ? parsed : {};
31
+ } catch {
32
+ return {};
33
+ }
34
+ }
35
+ function resolveAppPackageName(root, pkg) {
36
+ return typeof pkg.productName === "string" && pkg.productName.trim() || typeof pkg.name === "string" && pkg.name.replace(/^@[^/]+\//, "").trim() || path.basename(root);
37
+ }
38
+ function resolvePlatformProfile(profile = "production") {
39
+ if (typeof profile !== "string" || !/^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(profile)) {
40
+ throw new TypeError(`--profile must be a name such as "beta", got "${String(profile)}".`);
41
+ }
42
+ return profile;
43
+ }
44
+ async function resolvePlatformBlock(input, context, validate, cache) {
45
+ if (typeof input !== "function") return validate(input, context);
46
+ const fn = input;
47
+ const call = () => Promise.resolve().then(() => fn(context)).then((value) => validate(value, context));
48
+ if (!cache) return call();
49
+ const key = [
50
+ context.os,
51
+ context.mode,
52
+ context.command,
53
+ context.profile,
54
+ context.root,
55
+ String(fn)
56
+ ].join("\0");
57
+ let resolved = cache.get(key);
58
+ if (!resolved) {
59
+ resolved = call();
60
+ cache.set(key, resolved);
61
+ resolved.catch(() => cache.delete(key));
62
+ }
63
+ return resolved;
64
+ }
65
+
66
+ export {
67
+ isPlainObject,
68
+ createPlatformBlockChecker,
69
+ readAppPackageJson,
70
+ resolveAppPackageName,
71
+ resolvePlatformProfile,
72
+ resolvePlatformBlock
73
+ };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useRouter
3
- } from "./chunk-HAH4FBTA.mjs";
3
+ } from "./chunk-VAHBCI6X.mjs";
4
4
  import {
5
5
  getRouter
6
- } from "./chunk-VCFBQFOV.mjs";
6
+ } from "./chunk-SN5VSO3Q.mjs";
7
7
  import {
8
8
  applyFarmBasePath
9
9
  } from "./chunk-SF3JB56B.mjs";
@@ -24,7 +24,7 @@ var _chunkY3WG64CPcjs = require('./chunk-Y3WG64CP.cjs');
24
24
  var _chunkSNP33A33cjs = require('./chunk-SNP33A33.cjs');
25
25
 
26
26
 
27
- var _chunk6XFGJBYXcjs = require('./chunk-6XFGJBYX.cjs');
27
+ var _chunkJYNNIGQOcjs = require('./chunk-JYNNIGQO.cjs');
28
28
 
29
29
 
30
30
  var _chunkXN2MB4QZcjs = require('./chunk-XN2MB4QZ.cjs');
@@ -294,7 +294,7 @@ var MiddlewareManager = class {
294
294
  try {
295
295
  let module;
296
296
  if (this.viteServer) {
297
- module = await _chunk6XFGJBYXcjs.loadFarmDevModule.call(void 0, this.viteServer, filePath);
297
+ module = await _chunkJYNNIGQOcjs.loadFarmDevModule.call(void 0, this.viteServer, filePath);
298
298
  } else {
299
299
  module = await import(
300
300
  /* @vite-ignore */
@@ -7,7 +7,7 @@ import {
7
7
  notifyHistoryChange,
8
8
  readPageState,
9
9
  subscribeHistoryChange
10
- } from "./chunk-VCFBQFOV.mjs";
10
+ } from "./chunk-SN5VSO3Q.mjs";
11
11
  import {
12
12
  getFarmI18nClientState
13
13
  } from "./chunk-PTLXHRJZ.mjs";
@@ -26,7 +26,7 @@ var _chunkZ5MZDFX4cjs = require('./chunk-Z5MZDFX4.cjs');
26
26
 
27
27
 
28
28
 
29
- var _chunk5566GNEGcjs = require('./chunk-5566GNEG.cjs');
29
+ var _chunkLIFUPCXWcjs = require('./chunk-LIFUPCXW.cjs');
30
30
 
31
31
 
32
32
 
@@ -788,9 +788,9 @@ function createIntegrationPlugin(integrationKey, integration) {
788
788
  if (!bodyLoaded) {
789
789
  bodyLoaded = true;
790
790
  if (req.method && req.method !== "GET" && req.method !== "HEAD") {
791
- requestBody = await _chunk5566GNEGcjs.readNodeRequestBody.call(void 0,
791
+ requestBody = await _chunkLIFUPCXWcjs.readNodeRequestBody.call(void 0,
792
792
  req,
793
- _chunk5566GNEGcjs.resolveFarmServerConfig.call(void 0, context.config.server).bodySizeLimit
793
+ _chunkLIFUPCXWcjs.resolveFarmServerConfig.call(void 0, context.config.server).bodySizeLimit
794
794
  );
795
795
  }
796
796
  }
@@ -798,13 +798,13 @@ function createIntegrationPlugin(integrationKey, integration) {
798
798
  };
799
799
  const createHandlerRequest = async () => {
800
800
  try {
801
- return _chunk5566GNEGcjs.withFarmRequestClientAddress.call(void 0,
801
+ return _chunkLIFUPCXWcjs.withFarmRequestClientAddress.call(void 0,
802
802
  createWebRequest(req, fullUrl, await getRequestBody()),
803
- _chunk5566GNEGcjs.resolveFarmServerConfig.call(void 0, context.config.server).trustProxy,
803
+ _chunkLIFUPCXWcjs.resolveFarmServerConfig.call(void 0, context.config.server).trustProxy,
804
804
  _optionalChain([req, 'access', _13 => _13.socket, 'optionalAccess', _14 => _14.remoteAddress])
805
805
  );
806
806
  } catch (error) {
807
- const response = _chunk5566GNEGcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
807
+ const response = _chunkLIFUPCXWcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
808
808
  if (!response) throw error;
809
809
  await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0, res, response);
810
810
  return null;
@@ -1485,15 +1485,15 @@ function createFormInput(formData) {
1485
1485
  return input;
1486
1486
  }
1487
1487
  async function dispatchIntegrationRequest(runtime, request, options = {}) {
1488
- const serverConfig = _chunk5566GNEGcjs.resolveFarmServerConfig.call(void 0, runtime.config.server);
1488
+ const serverConfig = _chunkLIFUPCXWcjs.resolveFarmServerConfig.call(void 0, runtime.config.server);
1489
1489
  try {
1490
- request = await _chunk5566GNEGcjs.bufferFarmRequestBody.call(void 0, request, serverConfig.bodySizeLimit);
1490
+ request = await _chunkLIFUPCXWcjs.bufferFarmRequestBody.call(void 0, request, serverConfig.bodySizeLimit);
1491
1491
  } catch (error) {
1492
- const response = _chunk5566GNEGcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
1492
+ const response = _chunkLIFUPCXWcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
1493
1493
  if (response) return response;
1494
1494
  throw error;
1495
1495
  }
1496
- request = _chunk5566GNEGcjs.withFarmRequestClientAddress.call(void 0, request, serverConfig.trustProxy, options.clientAddress);
1496
+ request = _chunkLIFUPCXWcjs.withFarmRequestClientAddress.call(void 0, request, serverConfig.trustProxy, options.clientAddress);
1497
1497
  const integration = runtime.integration;
1498
1498
  const url = new URL(request.url);
1499
1499
  const pathname = url.pathname;
@@ -1,6 +1,3 @@
1
- import {
2
- loadFarmProductionVite
3
- } from "./chunk-PSUYE5HR.mjs";
4
1
  import {
5
2
  FARM_DESKTOP_ENV_MODULE_FILE,
6
3
  FARM_DESKTOP_ENV_MODULE_SOURCE,
@@ -10,6 +7,9 @@ import {
10
7
  createFarmNodeServerEntry,
11
8
  withProductionNodeEnv
12
9
  } from "./chunk-VU3MYZPO.mjs";
10
+ import {
11
+ loadFarmProductionVite
12
+ } from "./chunk-PSUYE5HR.mjs";
13
13
  import {
14
14
  generateNativeMCPPluginSource
15
15
  } from "./chunk-KQH2COEJ.mjs";
@@ -18,7 +18,7 @@ import {
18
18
  compileFarmDocsAdapterEdgeManifest,
19
19
  createFarmDocsAPIHandler,
20
20
  hasFarmDocsRuntimeAdapter
21
- } from "./chunk-QFQDRJKJ.mjs";
21
+ } from "./chunk-76R5GJER.mjs";
22
22
  import {
23
23
  FARM_DOCS_LAST_MODIFIED_MANIFEST,
24
24
  createFarmDocsHandler,
@@ -29,7 +29,7 @@ import {
29
29
  loadFarmDocsPage,
30
30
  resolveFarmDocsContentDir,
31
31
  toFarmDocsMarkdownPage
32
- } from "./chunk-GXSMF7UR.mjs";
32
+ } from "./chunk-KO2NWUKN.mjs";
33
33
  import {
34
34
  generateFarmDocsSearchClientRuntime,
35
35
  isFarmDocsSearchEnabled,
@@ -37,7 +37,7 @@ import {
37
37
  } from "./chunk-WB6XES4V.mjs";
38
38
  import {
39
39
  FARM_PRERENDER_ENV
40
- } from "./chunk-RYDDUCNJ.mjs";
40
+ } from "./chunk-M7LKA632.mjs";
41
41
  import {
42
42
  resolveFarmInstrumentationFile
43
43
  } from "./chunk-N35YPV4N.mjs";
@@ -52,7 +52,7 @@ import {
52
52
  getDeployTargetForPreset,
53
53
  hasCustomFarmRouteContext,
54
54
  resolveDeployOutputPath
55
- } from "./chunk-VJXLUTBM.mjs";
55
+ } from "./chunk-2DEPNLXK.mjs";
56
56
  import {
57
57
  DEFAULT_NOT_FOUND_STYLES,
58
58
  FARM_LAYOUT_ELEMENT_CLIENT_SOURCE,
@@ -84,7 +84,7 @@ import {
84
84
  resolveFarmIsolatedClientHydrationMode,
85
85
  resolveFarmNotFoundComponentPath,
86
86
  usesFarmServerTree
87
- } from "./chunk-Z3BXMMFF.mjs";
87
+ } from "./chunk-IWJKJDNW.mjs";
88
88
  import {
89
89
  loadTailwindVitePlugin
90
90
  } from "./chunk-XLLVWLWO.mjs";
@@ -95,7 +95,7 @@ import {
95
95
  generateFarmTypeArtifacts,
96
96
  readRouteRenderingDirectiveFromFile,
97
97
  resolveRouteRenderingConfigFromFile
98
- } from "./chunk-HNAUK3SC.mjs";
98
+ } from "./chunk-SHJJM6OG.mjs";
99
99
  import {
100
100
  HOISTED_HEAD_ELEMENT,
101
101
  appMiddlewareMayHandlePath,
@@ -112,6 +112,9 @@ import {
112
112
  import {
113
113
  farmPluginMayAffectRuntimePath
114
114
  } from "./chunk-UUMKLGUU.mjs";
115
+ import {
116
+ isFarmPreviewDeploymentEnvironment
117
+ } from "./chunk-CSLUBKGG.mjs";
115
118
  import {
116
119
  FARM_API_CATALOG_PATH,
117
120
  FARM_APP_MANIFEST_LEGACY_PATH,
@@ -119,18 +122,18 @@ import {
119
122
  listFarmBuiltInRoutePaths,
120
123
  resolveFarmApiCatalogInput,
121
124
  resolveFarmAppManifestInput
122
- } from "./chunk-DGVVVYKD.mjs";
125
+ } from "./chunk-JJOWY3XD.mjs";
123
126
  import {
124
127
  FARM_DEFAULT_MCP_PATH,
125
128
  createFarmDefaultMCPServer,
126
129
  farmConfigMountsMCP
127
130
  } from "./chunk-KRRZJ77U.mjs";
128
- import {
129
- isFarmPreviewDeploymentEnvironment
130
- } from "./chunk-CSLUBKGG.mjs";
131
131
  import {
132
132
  farmEnvironmentFunctionsPlugin
133
133
  } from "./chunk-C5JXCUKR.mjs";
134
+ import {
135
+ isFarmMarkdownPageFile
136
+ } from "./chunk-GW4YUIHW.mjs";
134
137
  import {
135
138
  generateFarmDocsAdapterClientRuntime,
136
139
  getFarmDocsAdapterConfigModule
@@ -164,10 +167,14 @@ import {
164
167
  import {
165
168
  getFarmAppDirectories
166
169
  } from "./chunk-52Y3C3HG.mjs";
170
+ import {
171
+ resolveFarmMdxComponentsModulePath,
172
+ resolveMdxConfig
173
+ } from "./chunk-UIJOLBUL.mjs";
167
174
  import {
168
175
  applyFarmWorkflowVercelCrons,
169
176
  prepareFarmWorkflowsForNitro
170
- } from "./chunk-ATHPRVP2.mjs";
177
+ } from "./chunk-5V4KZOZO.mjs";
171
178
  import {
172
179
  applyFarmCronVercelCrons,
173
180
  createFarmCronCloudflareConfig,
@@ -176,14 +183,7 @@ import {
176
183
  } from "./chunk-UCQ52TJY.mjs";
177
184
  import {
178
185
  resolveServerActionsConfig
179
- } from "./chunk-JOHXK4BB.mjs";
180
- import {
181
- isFarmMarkdownPageFile
182
- } from "./chunk-GW4YUIHW.mjs";
183
- import {
184
- resolveFarmMdxComponentsModulePath,
185
- resolveMdxConfig
186
- } from "./chunk-UIJOLBUL.mjs";
186
+ } from "./chunk-BW6SCVYX.mjs";
187
187
  import {
188
188
  getFarmMarkdownAlternatePath
189
189
  } from "./chunk-N77JBPLC.mjs";
@@ -193,7 +193,7 @@ import {
193
193
  import {
194
194
  getFarmIntegrationPluginServerRuntime,
195
195
  getIntegrationProviders
196
- } from "./chunk-NW2BKDVT.mjs";
196
+ } from "./chunk-HHFMECFO.mjs";
197
197
  import {
198
198
  FARM_INTEGRATION_API_BASE_PATH_KEY
199
199
  } from "./chunk-F6TLUMH7.mjs";
@@ -204,7 +204,7 @@ import {
204
204
  } from "./chunk-4HBKBHVP.mjs";
205
205
  import {
206
206
  APIRouteManager
207
- } from "./chunk-ALD2WMLA.mjs";
207
+ } from "./chunk-WXHDVXJE.mjs";
208
208
  import {
209
209
  readFarmI18nCatalogs
210
210
  } from "./chunk-DU4VHHPJ.mjs";
@@ -231,7 +231,7 @@ import {
231
231
  } from "./chunk-LM2YOGDK.mjs";
232
232
  import {
233
233
  FARM_VERSION
234
- } from "./chunk-ACI52TCN.mjs";
234
+ } from "./chunk-2VCC3GVC.mjs";
235
235
  import {
236
236
  getFarmPresetRuntime
237
237
  } from "./chunk-UAQD67HM.mjs";
@@ -954,7 +954,7 @@ export default async function farmNetlifyHandler(request, context) {
954
954
  // src/build/strip-platform-config.ts
955
955
  import { realpathSync } from "fs";
956
956
  import path8 from "path";
957
- var PLATFORM_CONFIG_KEYS = /* @__PURE__ */ new Set(["desktop"]);
957
+ var PLATFORM_CONFIG_KEYS = /* @__PURE__ */ new Set(["desktop", "mobile"]);
958
958
  var CONFIG_FACTORIES = /* @__PURE__ */ new Set(["defineConfig", "defineFarmConfig"]);
959
959
  function isConfigObject(node) {
960
960
  return node?.type === "ObjectExpression";
@@ -989,23 +989,33 @@ function collectConfigObjects(node, found) {
989
989
  }
990
990
  }
991
991
  function stripPlatformConfigSource(code, parse) {
992
- if (!code.includes("desktop")) return null;
992
+ if (!code.includes("desktop") && !code.includes("mobile")) return null;
993
993
  const objects = [];
994
994
  collectConfigObjects(parse(code), objects);
995
995
  const removals = [];
996
996
  for (const object of objects) {
997
997
  const properties = object.properties;
998
- properties.forEach((property, index) => {
998
+ const removed = properties.map((property) => {
999
999
  const name = propertyName(property);
1000
- if (!name || !PLATFORM_CONFIG_KEYS.has(name)) return;
1001
- if (index < properties.length - 1)
1002
- removals.push([property.start, properties[index + 1].start]);
1003
- else if (index > 0) removals.push([properties[index - 1].end, property.end]);
1004
- else {
1005
- const trailingComma = /^\s*,/.exec(code.slice(property.end));
1006
- removals.push([property.start, property.end + (trailingComma?.[0].length ?? 0)]);
1007
- }
1000
+ return !!name && PLATFORM_CONFIG_KEYS.has(name);
1008
1001
  });
1002
+ for (let first = 0; first < properties.length; first++) {
1003
+ if (!removed[first]) continue;
1004
+ let last = first;
1005
+ while (last + 1 < properties.length && removed[last + 1]) last++;
1006
+ if (last < properties.length - 1) {
1007
+ removals.push([properties[first].start, properties[last + 1].start]);
1008
+ } else if (first > 0) {
1009
+ removals.push([properties[first - 1].end, properties[last].end]);
1010
+ } else {
1011
+ const trailingComma = /^\s*,/.exec(code.slice(properties[last].end));
1012
+ removals.push([
1013
+ properties[first].start,
1014
+ properties[last].end + (trailingComma?.[0].length ?? 0)
1015
+ ]);
1016
+ }
1017
+ first = last;
1018
+ }
1009
1019
  }
1010
1020
  if (removals.length === 0) return null;
1011
1021
  removals.sort((left, right) => right[0] - left[0]);
@@ -2044,7 +2054,7 @@ function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, optio
2044
2054
  async function buildClient(productionVite, config, root, srcDir, outputDir, pageRoutes, layoutRoutes = [], routeSlots = [], isolatedClientBoundaryModules = /* @__PURE__ */ new Set(), hydrationPlanCache = /* @__PURE__ */ new Map(), rendererBuildLifetime, programmaticClientRoutes) {
2045
2055
  const viteBuild = productionVite.build;
2046
2056
  const { farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.mjs");
2047
- const { PluginManager: PluginManager2 } = await import("./plugin-4KYXV7BB.mjs");
2057
+ const { PluginManager: PluginManager2 } = await import("./plugin-53SY5YBS.mjs");
2048
2058
  const fs4 = await import("fs/promises");
2049
2059
  const pluginManager = new PluginManager2({
2050
2060
  config,
@@ -3458,7 +3468,7 @@ function isFarmDocsPath() {
3458
3468
  // Farm.js Client Runtime (no client components)
3459
3469
  ${cssImport}
3460
3470
  ${layoutImports}
3461
- import { createClientCancellation, createClientPluginManager, getFarmIslandValueHeaders, getHashTargetElement, installChunkErrorRecovery, isFarmBlockedNavigationURL, isFarmExternalNavigationURL, reconcileFarmDocumentHead, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from "@farm.js/core/internal/client-runtime";
3471
+ import { createClientCancellation, createClientPluginManager, getFarmIslandValueHeaders, getHashTargetElement, installChunkErrorRecovery, isFarmBlockedNavigationURL, isFarmExternalNavigationURL, reconcileFarmDocumentHead, runFarmNavigationDelegates, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from "@farm.js/core/internal/client-runtime";
3462
3472
  import { createFarmDeploymentMismatchError, createFarmDeploymentRequestHeaders, isFarmDeploymentMismatchResponse } from "@farm.js/core/deployment";
3463
3473
  ${clientPluginEntry.imports}
3464
3474
  ${clientCachePersistence.imports}
@@ -3523,6 +3533,15 @@ ${generateUniversalRouterStateProperties()}
3523
3533
  if (action === "pop") this.revertBlockedPopState(from);
3524
3534
  return;
3525
3535
  }
3536
+ // A refresh re-renders the page on screen; only a move to another page is offered.
3537
+ if (
3538
+ action !== "pop" &&
3539
+ !(options.refresh && to === from) &&
3540
+ (await runFarmNavigationDelegates({ url: url.href, from, to, action }))
3541
+ ) {
3542
+ this.cancelActiveNavigation();
3543
+ return;
3544
+ }
3526
3545
  if (action === "pop") {
3527
3546
  this.currentHistoryIndex = readHistoryIndex(options.popState);
3528
3547
  this.currentHistoryState = options.popState;
@@ -3823,7 +3842,7 @@ ${layoutImports}
3823
3842
  ${rendererClientImports}
3824
3843
  ${isolatedHydrationImport}
3825
3844
  ${providerClientCode.imports}
3826
- import { createClientCancellation, createClientPluginManager, getFarmIslandValueHeaders, getHashTargetElement, installChunkErrorRecovery, isFarmBlockedNavigationURL, isFarmExternalNavigationURL, reconcileFarmDocumentHead, scheduleFarmIslandHydration, searchParamsToObject, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from "@farm.js/core/internal/client-runtime";
3845
+ import { createClientCancellation, createClientPluginManager, getFarmIslandValueHeaders, getHashTargetElement, installChunkErrorRecovery, isFarmBlockedNavigationURL, isFarmExternalNavigationURL, reconcileFarmDocumentHead, runFarmNavigationDelegates, scheduleFarmIslandHydration, searchParamsToObject, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from "@farm.js/core/internal/client-runtime";
3827
3846
  import { createFarmDeploymentMismatchError, createFarmDeploymentRequestHeaders, isFarmDeploymentMismatchResponse } from "@farm.js/core/deployment";
3828
3847
  import { createFarmRouter, isFarmRouteActive, matchFarmRoute } from "@farm.js/core/router";
3829
3848
  ${clientPluginEntry.imports}
@@ -4592,6 +4611,15 @@ ${islandValues ? ` // Islands mode: navigations name the layouts on screen, and
4592
4611
  if (action === "pop") this.revertBlockedPopState(from);
4593
4612
  return;
4594
4613
  }
4614
+ // A refresh re-renders the page on screen; only a move to another page is offered.
4615
+ if (
4616
+ action !== "pop" &&
4617
+ !(options.refresh && to === from) &&
4618
+ (await runFarmNavigationDelegates({ url: url.href, from, to, action }))
4619
+ ) {
4620
+ this.cancelActiveNavigation();
4621
+ return;
4622
+ }
4595
4623
  if (action === "pop") {
4596
4624
  this.currentHistoryIndex = readHistoryIndex(options.popState);
4597
4625
  this.currentHistoryState = options.popState;
@@ -5046,7 +5074,7 @@ void hydrate();
5046
5074
  async function buildSSRInMemory(productionVite, config, root, routeManager, apiRouteManager, serverRenderer, preset, collectedPageRoutes, collectedLayoutRoutes, collectedRouteSlots, isolatedClientBoundaryModules, hydrationPlanCache, rendererBuildLifetime) {
5047
5075
  const viteBuild = productionVite.build;
5048
5076
  const { farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.mjs");
5049
- const { PluginManager: PluginManager2 } = await import("./plugin-4KYXV7BB.mjs");
5077
+ const { PluginManager: PluginManager2 } = await import("./plugin-53SY5YBS.mjs");
5050
5078
  const fs4 = await import("fs/promises");
5051
5079
  const pluginManager = new PluginManager2({
5052
5080
  config,
@@ -11967,7 +11995,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
11967
11995
  }
11968
11996
  async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
11969
11997
  const { farmI18nClientBridgePlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.mjs");
11970
- const { PluginManager: PluginManager2 } = await import("./plugin-4KYXV7BB.mjs");
11998
+ const { PluginManager: PluginManager2 } = await import("./plugin-53SY5YBS.mjs");
11971
11999
  const pluginManager = new PluginManager2({
11972
12000
  config,
11973
12001
  isDev: false,
@@ -11994,7 +12022,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
11994
12022
  }
11995
12023
  async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
11996
12024
  const { farmI18nClientBridgePlugin, farmPlugin } = await import("./vite.mjs");
11997
- const { PluginManager: PluginManager2 } = await import("./plugin-4KYXV7BB.mjs");
12025
+ const { PluginManager: PluginManager2 } = await import("./plugin-53SY5YBS.mjs");
11998
12026
  const pluginManager = new PluginManager2({
11999
12027
  config,
12000
12028
  isDev: false,
@@ -12035,7 +12063,7 @@ function resolveLegacyPageEntry(config, root, srcDir) {
12035
12063
  }
12036
12064
  async function buildNitro(config, routeManager, apiRouteManager, serverRenderer, preset, root, distDir, pluginManager) {
12037
12065
  const [{ createNitroConfig }, { createNitro, build: nitroBuild }] = await Promise.all([
12038
- import("./nitro-UT2J5A5D.mjs"),
12066
+ import("./nitro-2Q5NVY7L.mjs"),
12039
12067
  import("nitro/builder")
12040
12068
  ]);
12041
12069
  let nitroConfig = await createNitroConfig(
@@ -17,7 +17,7 @@ import {
17
17
  matchAPIRouteAtBasePath,
18
18
  mergePluginAPIRoutes,
19
19
  resolveAPIRouteEndpoint
20
- } from "./chunk-I2SWKWO7.mjs";
20
+ } from "./chunk-LJDIFIJ2.mjs";
21
21
  import {
22
22
  registerAPIRouteShape
23
23
  } from "./chunk-GWXZS7K5.mjs";
@@ -33,7 +33,7 @@ import {
33
33
  } from "./chunk-VHIXGZYH.mjs";
34
34
  import {
35
35
  loadFarmDevModule
36
- } from "./chunk-JUMPFVMK.mjs";
36
+ } from "./chunk-TUOO6IK3.mjs";
37
37
  import {
38
38
  logger
39
39
  } from "./chunk-2SVJGOAX.mjs";
@@ -21,7 +21,7 @@ var _chunk6JHZPB52cjs = require('./chunk-6JHZPB52.cjs');
21
21
  var _chunkWJFFPXCVcjs = require('./chunk-WJFFPXCV.cjs');
22
22
 
23
23
 
24
- var _chunk5566GNEGcjs = require('./chunk-5566GNEG.cjs');
24
+ var _chunkLIFUPCXWcjs = require('./chunk-LIFUPCXW.cjs');
25
25
 
26
26
  // src/docs/handler.ts
27
27
 
@@ -1834,7 +1834,7 @@ function createFarmDocsHandler(docs, options) {
1834
1834
  ETag: etag,
1835
1835
  "X-Content-Type-Options": "nosniff"
1836
1836
  });
1837
- if (_chunk5566GNEGcjs.matchesFarmIfNoneMatch.call(void 0, request.headers.get("if-none-match"), etag)) {
1837
+ if (_chunkLIFUPCXWcjs.matchesFarmIfNoneMatch.call(void 0, request.headers.get("if-none-match"), etag)) {
1838
1838
  return new Response(null, { status: 304, headers });
1839
1839
  }
1840
1840
  if (request.method === "HEAD") return new Response(null, { status: 200, headers });
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-VHIXGZYH.mjs";
25
25
  import {
26
26
  loadFarmDevModule
27
- } from "./chunk-JUMPFVMK.mjs";
27
+ } from "./chunk-TUOO6IK3.mjs";
28
28
  import {
29
29
  logger
30
30
  } from "./chunk-2SVJGOAX.mjs";
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3HBFI373cjs = require('./chunk-3HBFI373.cjs');
3
+ var _chunkS5AQ7CACcjs = require('./chunk-S5AQ7CAC.cjs');
4
4
 
5
5
 
6
- var _chunkHELQXYVIcjs = require('./chunk-HELQXYVI.cjs');
6
+ var _chunkI2DQGS56cjs = require('./chunk-I2DQGS56.cjs');
7
7
 
8
8
 
9
9
  var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
10
10
 
11
11
  // src/navigation.ts
12
12
  function useRouter2() {
13
- const router = _chunk3HBFI373cjs.useRouter.call(void 0, );
13
+ const router = _chunkS5AQ7CACcjs.useRouter.call(void 0, );
14
14
  return {
15
15
  push: router.push,
16
16
  replace: router.replace,
@@ -18,19 +18,19 @@ function useRouter2() {
18
18
  forward: router.forward,
19
19
  refresh() {
20
20
  if (typeof window === "undefined") return Promise.resolve();
21
- return _chunkHELQXYVIcjs.getRouter.call(void 0, ).refresh();
21
+ return _chunkI2DQGS56cjs.getRouter.call(void 0, ).refresh();
22
22
  },
23
23
  prefetch(href) {
24
24
  if (typeof window === "undefined") return Promise.resolve();
25
- return _chunkHELQXYVIcjs.getRouter.call(void 0, ).prefetch(_chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href));
25
+ return _chunkI2DQGS56cjs.getRouter.call(void 0, ).prefetch(_chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href));
26
26
  }
27
27
  };
28
28
  }
29
29
  function usePathname() {
30
- return _chunk3HBFI373cjs.useRouter.call(void 0, ).pathname;
30
+ return _chunkS5AQ7CACcjs.useRouter.call(void 0, ).pathname;
31
31
  }
32
32
  function useSearchParams() {
33
- return _chunk3HBFI373cjs.useRouter.call(void 0, ).searchParams;
33
+ return _chunkS5AQ7CACcjs.useRouter.call(void 0, ).searchParams;
34
34
  }
35
35
 
36
36
 
@@ -17,18 +17,18 @@ import {
17
17
  } from "./chunk-2DA7CLY7.mjs";
18
18
  import {
19
19
  withFarmRequestClientAddress
20
- } from "./chunk-C6U66WWF.mjs";
20
+ } from "./chunk-GFT5AHAT.mjs";
21
21
  import {
22
22
  createFarmAPIMiddlewarePathnames
23
23
  } from "./chunk-LM2YOGDK.mjs";
24
- import {
25
- _withFarmResponseHeaders
26
- } from "./chunk-LM55GS4R.mjs";
27
24
  import {
28
25
  getFarmRedirectError,
29
26
  isFarmNotFoundError,
30
27
  isFarmRedirectError
31
28
  } from "./chunk-JNYFXL7X.mjs";
29
+ import {
30
+ _withFarmResponseHeaders
31
+ } from "./chunk-LM55GS4R.mjs";
32
32
  import {
33
33
  stripFarmLocaleFromPathname
34
34
  } from "./chunk-7S7AAK2D.mjs";