@farm.js/core 0.1.80 → 0.1.81

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 (358) hide show
  1. package/dist/{agent-mcp.d-BPa5n0ld.d.ts → agent-mcp.d-Cxi3214_.d.ts} +1 -1
  2. package/dist/{agent-mcp.d-DOP95Jxm.d.mts → agent-mcp.d-DMqOqnOA.d.mts} +1 -1
  3. package/dist/agent-runtime.d.mts +2 -1
  4. package/dist/agent-runtime.d.ts +2 -1
  5. package/dist/analyzer-435DCIQ6.cjs +17 -0
  6. package/dist/{analyzer-F7CWE5VA.mjs → analyzer-IC66UJCU.mjs} +3 -2
  7. package/dist/api/client.cjs +1 -1
  8. package/dist/api/client.mjs +1 -1
  9. package/dist/api/client.native.cjs +1 -1
  10. package/dist/api/client.native.mjs +1 -1
  11. package/dist/api/node.cjs +1 -1
  12. package/dist/api/node.d.mts +4 -3
  13. package/dist/api/node.d.ts +4 -3
  14. package/dist/api/node.mjs +1 -1
  15. package/dist/api/route-manager.cjs +4 -4
  16. package/dist/api/route-manager.d.mts +4 -3
  17. package/dist/api/route-manager.d.ts +4 -3
  18. package/dist/api/route-manager.mjs +3 -3
  19. package/dist/api/runtime.cjs +1 -1
  20. package/dist/api/runtime.d.mts +3 -2
  21. package/dist/api/runtime.d.ts +3 -2
  22. package/dist/api/runtime.mjs +1 -1
  23. package/dist/api.cjs +5 -5
  24. package/dist/api.d.mts +5 -4
  25. package/dist/api.d.ts +5 -4
  26. package/dist/api.mjs +4 -4
  27. package/dist/{app-manifest.d-9UD6BznX.d.mts → app-manifest.d-Bbxp5kes.d.mts} +1 -1
  28. package/dist/{app-manifest.d-CO6Iu0Hx.d.ts → app-manifest.d-C8Cswd31.d.ts} +1 -1
  29. package/dist/app-markdown.cjs +3 -3
  30. package/dist/app-markdown.d.mts +5 -4
  31. package/dist/app-markdown.d.ts +5 -4
  32. package/dist/app-markdown.mjs +2 -2
  33. package/dist/{app.d-DXeRWZK7.d.mts → app.d-BJuSurgy.d.mts} +13 -4
  34. package/dist/{app.d-DwX1ePhs.d.ts → app.d-DGIoFt5D.d.ts} +13 -4
  35. package/dist/{chunk-Q4TRGTO7.cjs → chunk-26WP75W5.cjs} +32 -16
  36. package/dist/{chunk-GCRT6GJG.mjs → chunk-2HMSSPCZ.mjs} +26 -0
  37. package/dist/{chunk-7KDCVSTR.mjs → chunk-2PFGA6PB.mjs} +2 -2
  38. package/dist/chunk-2UYYXSUS.mjs +401 -0
  39. package/dist/{chunk-G4SZC2WH.cjs → chunk-2Y2HRZQY.cjs} +431 -332
  40. package/dist/{chunk-PL7MCYYD.mjs → chunk-3AV4DCXY.mjs} +58 -358
  41. package/dist/{chunk-3GNHJ3RN.cjs → chunk-3BTN3NP7.cjs} +2 -2
  42. package/dist/{chunk-ZVSQN7NC.cjs → chunk-46UV2E7I.cjs} +40 -43
  43. package/dist/{chunk-QMR2TUVZ.cjs → chunk-52Q4OB4A.cjs} +4 -4
  44. package/dist/chunk-5MMKNW7Q.cjs +54 -0
  45. package/dist/{chunk-XZBBKZGW.mjs → chunk-5N526T7Q.mjs} +64 -33
  46. package/dist/{chunk-XY5OZQF6.cjs → chunk-ADQ2LATR.cjs} +2 -2
  47. package/dist/{chunk-7DD5TNPS.cjs → chunk-AHVF5GI2.cjs} +2 -2
  48. package/dist/{chunk-MGKWYPE3.mjs → chunk-AYDVUCXD.mjs} +1 -0
  49. package/dist/chunk-B7L24VPX.cjs +401 -0
  50. package/dist/{chunk-5VDJEKGK.cjs → chunk-BBVLOEND.cjs} +1 -1
  51. package/dist/{chunk-XF7MJSUS.mjs → chunk-BCQIXH7L.mjs} +1 -1
  52. package/dist/{chunk-44G4XHEL.mjs → chunk-BJWJP5A4.mjs} +9 -9
  53. package/dist/{chunk-GBESKA76.cjs → chunk-BSX5OGSD.cjs} +1 -1
  54. package/dist/{chunk-CNDBLUKI.mjs → chunk-BVJUFVCU.mjs} +1 -1
  55. package/dist/chunk-C5QHZ626.cjs +85 -0
  56. package/dist/{chunk-X4TSMQWF.cjs → chunk-CL7BUGVB.cjs} +465 -360
  57. package/dist/{chunk-RLCOWWE5.cjs → chunk-CN2JOTRO.cjs} +7 -7
  58. package/dist/{chunk-AXA2BSX3.cjs → chunk-CPZZBCPO.cjs} +22 -21
  59. package/dist/chunk-D2VAANBS.mjs +48 -0
  60. package/dist/{chunk-JGEN2FIT.mjs → chunk-D77OGI6X.mjs} +1 -1
  61. package/dist/{chunk-4H4ZXUNB.cjs → chunk-DJ3PVHTW.cjs} +3 -3
  62. package/dist/{chunk-ZPEZXQTM.cjs → chunk-E3HBD2K3.cjs} +2 -2
  63. package/dist/{chunk-Q4YEAWUK.mjs → chunk-ECVSRE4Y.mjs} +3 -2
  64. package/dist/chunk-EZYKV24V.mjs +385 -0
  65. package/dist/{chunk-TVCFY3KK.cjs → chunk-FB4CWSC2.cjs} +12 -12
  66. package/dist/{chunk-IYFBLWXU.cjs → chunk-FULX5RYX.cjs} +61 -361
  67. package/dist/{chunk-5OAN7BG5.cjs → chunk-FYZD7DUS.cjs} +4 -4
  68. package/dist/{chunk-RQBGHHOQ.mjs → chunk-GY63XD6K.mjs} +1 -1
  69. package/dist/{chunk-HNUBRUFQ.cjs → chunk-HQEYZSF3.cjs} +4 -3
  70. package/dist/{chunk-MDEFTF63.mjs → chunk-HTNJ7A4D.mjs} +25 -28
  71. package/dist/chunk-I4WZRG73.mjs +54 -0
  72. package/dist/{chunk-MUZHULW2.mjs → chunk-ICOJ2BC6.mjs} +23 -7
  73. package/dist/{chunk-V73Y4UBL.mjs → chunk-IM3UINTZ.mjs} +1 -1
  74. package/dist/{chunk-MNIR7I7B.mjs → chunk-INKVDO42.mjs} +1 -1
  75. package/dist/{chunk-ZDYYZX73.mjs → chunk-IPG6B25T.mjs} +194 -89
  76. package/dist/{chunk-HEDGTXXB.cjs → chunk-JB4BHRFK.cjs} +17 -17
  77. package/dist/{chunk-XKUKWMGX.cjs → chunk-JCYDWJVO.cjs} +3 -3
  78. package/dist/{chunk-SVCUSOEF.mjs → chunk-KR5DF7WK.mjs} +1 -1
  79. package/dist/{chunk-COTFX4GT.mjs → chunk-LTOT5KVJ.mjs} +1 -1
  80. package/dist/{chunk-67MZTLTF.cjs → chunk-M6DAIE4T.cjs} +27 -1
  81. package/dist/{chunk-LVGB5PYK.cjs → chunk-MOGRRZMW.cjs} +17 -17
  82. package/dist/{chunk-MZ5QGWRW.mjs → chunk-N3VMHPIY.mjs} +2 -2
  83. package/dist/{chunk-GBW5DU7V.mjs → chunk-NOYKBGUK.mjs} +376 -277
  84. package/dist/{chunk-CCMP4JD2.cjs → chunk-NSLRK5DK.cjs} +1 -1
  85. package/dist/{chunk-WJ2O2MPP.cjs → chunk-OIWDEDUO.cjs} +394 -363
  86. package/dist/{chunk-K3XKEZR6.mjs → chunk-ONSZP5JK.mjs} +1 -1
  87. package/dist/{chunk-SDICLSQU.cjs → chunk-OUDNUFVR.cjs} +10 -10
  88. package/dist/{chunk-3XTRT3MB.mjs → chunk-PO5MZIWK.mjs} +1 -1
  89. package/dist/{chunk-EG5YBYHO.mjs → chunk-POL5RCVU.mjs} +1 -1
  90. package/dist/{chunk-ASYOWPSR.cjs → chunk-PWDBWXQI.cjs} +2 -1
  91. package/dist/{chunk-7YLDUB4R.cjs → chunk-QCKSYYXK.cjs} +7 -7
  92. package/dist/{chunk-57QAQU4F.mjs → chunk-QRNYSISP.mjs} +1 -1
  93. package/dist/{chunk-PRL7FXG4.cjs → chunk-RDNKQ5MK.cjs} +12 -13
  94. package/dist/{chunk-3JQBQG7K.mjs → chunk-RZ6XUEQS.mjs} +2 -2
  95. package/dist/{chunk-QHAISITM.mjs → chunk-S3IWDDQ3.mjs} +1 -1
  96. package/dist/{chunk-EGHPFXPZ.cjs → chunk-SAPG45RA.cjs} +23 -23
  97. package/dist/{chunk-YN3YMSKD.mjs → chunk-TLSGRK7E.mjs} +3 -3
  98. package/dist/chunk-UDMBUTJD.mjs +85 -0
  99. package/dist/{chunk-NJ4OASLP.mjs → chunk-UF4BNKKJ.mjs} +1 -1
  100. package/dist/{chunk-WHEQJN4G.cjs → chunk-UGD53SNO.cjs} +2 -2
  101. package/dist/{chunk-WBPVLCNE.mjs → chunk-VPGEYX5Y.mjs} +4 -4
  102. package/dist/chunk-VS7HLH4S.cjs +385 -0
  103. package/dist/{chunk-ANZLZNNX.cjs → chunk-W6C3LEXX.cjs} +3 -3
  104. package/dist/chunk-WMRGIQTA.cjs +48 -0
  105. package/dist/{chunk-52LTENRE.cjs → chunk-WOAXQ5MZ.cjs} +9 -9
  106. package/dist/{chunk-C6HGUTXB.mjs → chunk-XBSIGZ4J.mjs} +2 -3
  107. package/dist/{chunk-TS3ZHJN5.cjs → chunk-XOGCNKB7.cjs} +3 -3
  108. package/dist/{chunk-KEU55O2D.mjs → chunk-XOXCQGAF.mjs} +7 -6
  109. package/dist/{chunk-4MIDUSIX.mjs → chunk-YH7ENV3K.mjs} +14 -14
  110. package/dist/{chunk-2RRTOKRZ.mjs → chunk-YHM4PXJY.mjs} +1 -1
  111. package/dist/{chunk-A5D3UMLJ.mjs → chunk-YSU3WCW6.mjs} +1 -1
  112. package/dist/{chunk-4STJ6LGR.mjs → chunk-Z3RM3VA2.mjs} +1 -1
  113. package/dist/{chunk-DVHFIETW.cjs → chunk-ZIYJWJV2.cjs} +13 -13
  114. package/dist/{chunk-Z4SMFUZ7.cjs → chunk-ZKNXCRUQ.cjs} +7 -7
  115. package/dist/{cli-runtime.d-DPNTN-JV.d.mts → cli-runtime.d-D8O1v2_X.d.mts} +5 -5
  116. package/dist/{cli-runtime.d-8BhZy_wr.d.ts → cli-runtime.d-hf4L1MNP.d.ts} +5 -5
  117. package/dist/{client-component.d-CkDcob6D.d.ts → client-component.d-CX8UCQh-.d.ts} +1 -1
  118. package/dist/{client-component.d-CMCdyAr8.d.mts → client-component.d-DFwUHlOz.d.mts} +1 -1
  119. package/dist/{client-plugins.d-WcMwOZGZ.d.mts → client-plugins.d-BflSNO-b.d.mts} +2 -13
  120. package/dist/{client-plugins.d-BYIovYqX.d.ts → client-plugins.d-qWp8hNwd.d.ts} +2 -13
  121. package/dist/client-plugins.d.mts +2 -1
  122. package/dist/client-plugins.d.ts +2 -1
  123. package/dist/client.cjs +9 -8
  124. package/dist/client.d.mts +20 -151
  125. package/dist/client.d.ts +20 -151
  126. package/dist/client.mjs +8 -7
  127. package/dist/config.d.mts +2 -1
  128. package/dist/config.d.ts +2 -1
  129. package/dist/desktop.d.mts +3 -2
  130. package/dist/desktop.d.ts +3 -2
  131. package/dist/{devtools-JJOYTIMS.cjs → devtools-EI5N366Z.cjs} +9 -9
  132. package/dist/{devtools-F3FDFV26.mjs → devtools-XJHODO5H.mjs} +7 -7
  133. package/dist/docs.cjs +9 -9
  134. package/dist/docs.d.mts +4 -3
  135. package/dist/docs.d.ts +4 -3
  136. package/dist/docs.mjs +8 -8
  137. package/dist/environment/vite.cjs +7 -6
  138. package/dist/environment/vite.mjs +6 -5
  139. package/dist/{handler.d-BwdOyc9x.d.ts → handler.d-C2oRihfa.d.ts} +1 -1
  140. package/dist/{handler.d-s3IM6pbJ.d.mts → handler.d-DoH5Krkq.d.mts} +1 -1
  141. package/dist/{headers.d-BR-OXrqQ.d.mts → headers.d-BrX53wFQ.d.mts} +1 -1
  142. package/dist/{headers.d-CAW4wPey.d.ts → headers.d-Dj0mfYpb.d.ts} +1 -1
  143. package/dist/index.cjs +58 -56
  144. package/dist/{index.d-ah2c89Wu.d.ts → index.d-Dhc2scRl.d.ts} +1 -1
  145. package/dist/{index.d-BEVK61zS.d.mts → index.d-DzDHOttz.d.mts} +1 -1
  146. package/dist/index.d.mts +25 -23
  147. package/dist/index.d.ts +25 -23
  148. package/dist/index.mjs +62 -60
  149. package/dist/instrumentation.cjs +3 -3
  150. package/dist/instrumentation.mjs +2 -2
  151. package/dist/integrations/orm.d.mts +2 -1
  152. package/dist/integrations/orm.d.ts +2 -1
  153. package/dist/integrations.d.mts +2 -1
  154. package/dist/integrations.d.ts +2 -1
  155. package/dist/internal/app-markdown-runtime.cjs +2 -2
  156. package/dist/internal/app-markdown-runtime.d.mts +12 -5
  157. package/dist/internal/app-markdown-runtime.d.ts +12 -5
  158. package/dist/internal/app-markdown-runtime.mjs +1 -1
  159. package/dist/internal/build-runtime.cjs +41 -40
  160. package/dist/internal/build-runtime.d.mts +5 -4
  161. package/dist/internal/build-runtime.d.ts +5 -4
  162. package/dist/internal/build-runtime.mjs +40 -39
  163. package/dist/internal/cli-runtime.cjs +19 -19
  164. package/dist/internal/cli-runtime.d.mts +8 -7
  165. package/dist/internal/cli-runtime.d.ts +8 -7
  166. package/dist/internal/cli-runtime.mjs +20 -20
  167. package/dist/internal/client-error-overlay.cjs +4 -4
  168. package/dist/internal/client-error-overlay.mjs +1 -1
  169. package/dist/internal/client-runtime.cjs +76 -15
  170. package/dist/internal/client-runtime.d.mts +18 -7
  171. package/dist/internal/client-runtime.d.ts +18 -7
  172. package/dist/internal/client-runtime.mjs +67 -6
  173. package/dist/internal/compression-runtime.d.mts +2 -1
  174. package/dist/internal/compression-runtime.d.ts +2 -1
  175. package/dist/internal/config-runtime.cjs +9 -9
  176. package/dist/internal/config-runtime.d.mts +4 -3
  177. package/dist/internal/config-runtime.d.ts +4 -3
  178. package/dist/internal/config-runtime.mjs +8 -8
  179. package/dist/internal/docs-precompiled-runtime.cjs +1 -1
  180. package/dist/internal/docs-precompiled-runtime.mjs +1 -1
  181. package/dist/internal/form-actions.cjs +3 -3
  182. package/dist/internal/form-actions.mjs +2 -2
  183. package/dist/internal/infra-analytics-runtime.cjs +7 -7
  184. package/dist/internal/infra-analytics-runtime.mjs +5 -5
  185. package/dist/internal/island-codec.cjs +3 -3
  186. package/dist/internal/island-codec.mjs +2 -2
  187. package/dist/internal/island-value-store.d.mts +1 -1
  188. package/dist/internal/island-value-store.d.ts +1 -1
  189. package/dist/internal/islands-boot.cjs +9 -3
  190. package/dist/internal/islands-boot.mjs +9 -3
  191. package/dist/internal/islands-runtime.cjs +10 -56
  192. package/dist/internal/islands-runtime.mjs +6 -52
  193. package/dist/internal/islands-server.cjs +4 -4
  194. package/dist/internal/islands-server.mjs +3 -3
  195. package/dist/internal/islx-actions-client.cjs +36 -0
  196. package/dist/internal/islx-actions-client.d.mts +13 -0
  197. package/dist/internal/islx-actions-client.d.ts +13 -0
  198. package/dist/internal/islx-actions-client.mjs +36 -0
  199. package/dist/internal/islx-actions-server.cjs +8 -0
  200. package/dist/internal/islx-actions-server.d.mts +6 -0
  201. package/dist/internal/islx-actions-server.d.ts +6 -0
  202. package/dist/internal/islx-actions-server.mjs +8 -0
  203. package/dist/internal/islx-client.d.mts +0 -4
  204. package/dist/internal/islx-client.d.ts +0 -4
  205. package/dist/internal/isolated-boundary.cjs +3 -3
  206. package/dist/internal/isolated-boundary.d.mts +1 -1
  207. package/dist/internal/isolated-boundary.d.ts +1 -1
  208. package/dist/internal/isolated-boundary.mjs +2 -2
  209. package/dist/internal/metadata-image-runtime.cjs +4 -2
  210. package/dist/internal/metadata-image-runtime.d.mts +18 -2
  211. package/dist/internal/metadata-image-runtime.d.ts +18 -2
  212. package/dist/internal/metadata-image-runtime.mjs +5 -3
  213. package/dist/internal/native-server-fns.cjs +5 -4
  214. package/dist/internal/native-server-fns.mjs +4 -3
  215. package/dist/internal/navigation-neutral.cjs +36 -0
  216. package/dist/internal/navigation-neutral.d.mts +14 -0
  217. package/dist/internal/navigation-neutral.d.ts +14 -0
  218. package/dist/internal/navigation-neutral.mjs +36 -0
  219. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  220. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  221. package/dist/internal/production-runtime.cjs +24 -24
  222. package/dist/internal/production-runtime.d.mts +11 -10
  223. package/dist/internal/production-runtime.d.ts +11 -10
  224. package/dist/internal/production-runtime.mjs +29 -29
  225. package/dist/internal/server-tree.cjs +5 -4
  226. package/dist/internal/server-tree.d.mts +3 -4
  227. package/dist/internal/server-tree.d.ts +3 -4
  228. package/dist/internal/server-tree.mjs +4 -3
  229. package/dist/internal/spa-router.cjs +3 -3
  230. package/dist/internal/spa-router.d.mts +4 -3
  231. package/dist/internal/spa-router.d.ts +4 -3
  232. package/dist/internal/spa-router.mjs +2 -2
  233. package/dist/internal/start-manifest.d.mts +2 -1
  234. package/dist/internal/start-manifest.d.ts +2 -1
  235. package/dist/internal/vercel-edge-middleware.cjs +1 -1
  236. package/dist/internal/vercel-edge-middleware.mjs +1 -1
  237. package/dist/island-value-protocol.d-fEoc1m8e.d.mts +27 -0
  238. package/dist/island-value-protocol.d-fEoc1m8e.d.ts +27 -0
  239. package/dist/{layers-5ZD4764G.mjs → layers-744BBUY5.mjs} +2 -2
  240. package/dist/layers-XLOMMQP7.cjs +21 -0
  241. package/dist/markdown.d.mts +2 -1
  242. package/dist/markdown.d.ts +2 -1
  243. package/dist/middleware.cjs +5 -5
  244. package/dist/middleware.d.mts +2 -1
  245. package/dist/middleware.d.ts +2 -1
  246. package/dist/middleware.mjs +4 -4
  247. package/dist/{mount.d-Ylo-CmzK.d.mts → mount.d-DOaeUoWq.d.mts} +1 -1
  248. package/dist/{mount.d-DcoPFqv5.d.ts → mount.d-DwXjaOHY.d.ts} +1 -1
  249. package/dist/{native-server-fn-handler-TNVFEQW3.cjs → native-server-fn-handler-57TCQPSM.cjs} +4 -4
  250. package/dist/{native-server-fn-handler-OXFTI6V5.mjs → native-server-fn-handler-PYK65A46.mjs} +3 -3
  251. package/dist/{navigation-delegate.d-BA5h0fbE.d.mts → navigation-delegate.d-BElGUMgt.d.mts} +1 -1
  252. package/dist/{navigation-delegate.d-2MK4YSlL.d.ts → navigation-delegate.d-o3pPd9VI.d.ts} +1 -1
  253. package/dist/navigation-errors.d-DwHtoMyR.d.mts +13 -0
  254. package/dist/navigation-errors.d-DwHtoMyR.d.ts +13 -0
  255. package/dist/navigation.cjs +6 -6
  256. package/dist/navigation.d.mts +7 -6
  257. package/dist/navigation.d.ts +7 -6
  258. package/dist/navigation.mjs +5 -5
  259. package/dist/{nitro-6UOJXJZ6.cjs → nitro-XGIO6EQN.cjs} +2 -2
  260. package/dist/{nitro-C3MYDX7V.mjs → nitro-YLTGVGK4.mjs} +1 -1
  261. package/dist/node-module-bundle-TNSY5PAC.cjs +15 -0
  262. package/dist/{node-module-bundle-XPLBMXRD.mjs → node-module-bundle-ZWCQJCKA.mjs} +3 -1
  263. package/dist/plugin.cjs +32 -30
  264. package/dist/plugin.d.mts +6 -5
  265. package/dist/plugin.d.ts +6 -5
  266. package/dist/plugin.mjs +31 -29
  267. package/dist/query/client.cjs +10 -10
  268. package/dist/query/client.mjs +5 -5
  269. package/dist/{render-plan.d-2o-AG-ot.d.ts → render-plan.d-BD06tqFA.d.ts} +1 -1
  270. package/dist/{render-plan.d-ChYBMhLu.d.mts → render-plan.d-xWCRAJeR.d.mts} +1 -1
  271. package/dist/renderer/none/server.cjs +5 -1
  272. package/dist/renderer/none/server.d.mts +3 -1
  273. package/dist/renderer/none/server.d.ts +3 -1
  274. package/dist/renderer/none/server.mjs +4 -0
  275. package/dist/renderer/react/server.cjs +6 -6
  276. package/dist/renderer/react/server.mjs +3 -3
  277. package/dist/renderer-client.cjs +34 -15
  278. package/dist/renderer-client.d.mts +13 -97
  279. package/dist/renderer-client.d.ts +13 -97
  280. package/dist/renderer-client.mjs +23 -4
  281. package/dist/renderer.cjs +4 -2
  282. package/dist/renderer.d.mts +33 -5
  283. package/dist/renderer.d.ts +33 -5
  284. package/dist/renderer.mjs +3 -1
  285. package/dist/{request.d-CE0FIkiM.d.ts → request.d-DUMuWxSN.d.ts} +1 -1
  286. package/dist/{request.d-RCnCBuWq.d.mts → request.d-Dx82V8bz.d.mts} +1 -1
  287. package/dist/request.d.mts +3 -2
  288. package/dist/request.d.ts +3 -2
  289. package/dist/{route-rendering.d-BTPOM2nU.d.ts → route-rendering.d-BwBVpLtD.d.ts} +1 -1
  290. package/dist/{route-rendering.d-BZJnfKsp.d.mts → route-rendering.d-DJh6GauM.d.mts} +1 -1
  291. package/dist/{router.d-D8Vvwl4i.d.mts → router.d-BtkKDxUB.d.mts} +1 -1
  292. package/dist/{router.d-BU_WE6Ol.d.ts → router.d-CJBSG5jr.d.ts} +1 -1
  293. package/dist/routes.cjs +1 -1
  294. package/dist/routes.d.mts +2 -1
  295. package/dist/routes.d.ts +2 -1
  296. package/dist/routes.mjs +1 -1
  297. package/dist/{rsc-pipeline-JZWVSHOR.mjs → rsc-pipeline-GD6KLOIG.mjs} +13 -13
  298. package/dist/{rsc-pipeline-A3R4U26C.cjs → rsc-pipeline-H5AXQA7A.cjs} +14 -14
  299. package/dist/{runtime-SQFRHRGJ.mjs → runtime-OJ7FXFUI.mjs} +13 -13
  300. package/dist/{runtime-WZ3CHHGJ.cjs → runtime-YWQVBC3V.cjs} +15 -15
  301. package/dist/{runtime.d-DJ6IIKcF.d.ts → runtime.d-BQnD0cfC.d.ts} +1 -1
  302. package/dist/{runtime.d-BnmuOXVD.d.mts → runtime.d-C4SuZXf6.d.mts} +1 -1
  303. package/dist/server-action-security.cjs +1 -1
  304. package/dist/server-action-security.mjs +1 -1
  305. package/dist/{server-components-status.d-BzOg9M8g.d.mts → server-components-status.d-9rH7ZoEq.d.mts} +1 -1
  306. package/dist/{server-components-status.d-BeqSXcjM.d.ts → server-components-status.d-rfKOcE0N.d.ts} +1 -1
  307. package/dist/server-fn.cjs +3 -3
  308. package/dist/server-fn.mjs +2 -2
  309. package/dist/server-plugins.cjs +1 -1
  310. package/dist/server-plugins.d.mts +4 -3
  311. package/dist/server-plugins.d.ts +4 -3
  312. package/dist/server-plugins.mjs +1 -1
  313. package/dist/server-query.cjs +4 -4
  314. package/dist/server-query.mjs +3 -3
  315. package/dist/server.cjs +64 -59
  316. package/dist/server.d.mts +12 -11
  317. package/dist/server.d.ts +12 -11
  318. package/dist/server.mjs +45 -40
  319. package/dist/{spa-router.d-BOwuVkMl.d.ts → spa-router.d-DMKiBsHH.d.ts} +3 -3
  320. package/dist/{spa-router.d-CDpftSsk.d.mts → spa-router.d-V6XLSTCy.d.mts} +3 -3
  321. package/dist/{ssg.d-Bx_WFuwg.d.mts → ssg.d-BnCKPQL0.d.mts} +2 -2
  322. package/dist/{ssg.d-BTVqyq8T.d.ts → ssg.d-MNedvvMB.d.ts} +2 -2
  323. package/dist/store-core.d-Ad5biajo.d.ts +301 -0
  324. package/dist/store-core.d-BqJI1-ix.d.mts +301 -0
  325. package/dist/testing.cjs +3 -3
  326. package/dist/testing.d.mts +2 -1
  327. package/dist/testing.d.ts +2 -1
  328. package/dist/testing.mjs +3 -3
  329. package/dist/{utils.d-JkrpS-NJ.d.mts → utils.d-BEKLWa0Z.d.mts} +1 -1
  330. package/dist/{utils.d-_dvevm5s.d.ts → utils.d-BdjHKDuT.d.ts} +1 -1
  331. package/dist/version.cjs +2 -2
  332. package/dist/version.mjs +1 -1
  333. package/dist/vite.cjs +34 -30
  334. package/dist/vite.d.mts +18 -7
  335. package/dist/vite.d.ts +18 -7
  336. package/dist/vite.mjs +33 -29
  337. package/dist/workflows.cjs +2 -2
  338. package/dist/workflows.mjs +1 -1
  339. package/package.json +17 -2
  340. package/dist/analyzer-I7RBBQ65.cjs +0 -16
  341. package/dist/chunk-CQL5ZGFU.cjs +0 -50
  342. package/dist/chunk-HONTCUK6.mjs +0 -203
  343. package/dist/chunk-K6PGK7DC.cjs +0 -203
  344. package/dist/chunk-NBIVGHAT.mjs +0 -50
  345. package/dist/island-value-protocol.d-BRayRghM.d.mts +0 -12
  346. package/dist/island-value-protocol.d-BRayRghM.d.ts +0 -12
  347. package/dist/layers-HMEGUEXM.cjs +0 -21
  348. package/dist/node-module-bundle-M6BISE2P.cjs +0 -13
  349. package/dist/{chunk-EY7ED5UW.mjs → chunk-3RVLJTFZ.mjs} +3 -3
  350. package/dist/{chunk-KKVRWNDH.mjs → chunk-6WVRVGKC.mjs} +3 -3
  351. package/dist/{chunk-UJPE75GF.mjs → chunk-J2VUPCCR.mjs} +3 -3
  352. package/dist/{chunk-MQOHYV6L.cjs → chunk-LKIG5SM6.cjs} +2 -2
  353. package/dist/{chunk-UWOCYINY.cjs → chunk-OFVCWV2D.cjs} +2 -2
  354. package/dist/{chunk-3K2E55BJ.mjs → chunk-OO4GVGM3.mjs} +3 -3
  355. package/dist/{chunk-PBJ7MEOV.cjs → chunk-OZUINP2P.cjs} +2 -2
  356. package/dist/{chunk-7FQFK3OA.mjs → chunk-V7HNYR76.mjs} +3 -3
  357. package/dist/{chunk-2FK47RRZ.cjs → chunk-VGHDPEPQ.cjs} +2 -2
  358. package/dist/{chunk-CGIVCGH5.cjs → chunk-XOFJUSWC.cjs} +2 -2
package/dist/server.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RLEAVG6G.mjs";
4
4
  import {
5
5
  createFarmInfraAnalyticsPlugin
6
- } from "./chunk-V73Y4UBL.mjs";
6
+ } from "./chunk-IM3UINTZ.mjs";
7
7
  import {
8
8
  FarmEnvironmentError,
9
9
  createClientOnlyFn,
@@ -13,8 +13,8 @@ import {
13
13
  import {
14
14
  FARM_SERVER_QUERY_SYMBOL,
15
15
  createServerQuery
16
- } from "./chunk-CNDBLUKI.mjs";
17
- import "./chunk-UJPE75GF.mjs";
16
+ } from "./chunk-BVJUFVCU.mjs";
17
+ import "./chunk-J2VUPCCR.mjs";
18
18
  import {
19
19
  loadFarmDocsEngine
20
20
  } from "./chunk-LRPPXKCX.mjs";
@@ -24,12 +24,12 @@ import {
24
24
  resolveConfig,
25
25
  resolveFarmMCPConfig,
26
26
  resolveFarmMCPPlugin
27
- } from "./chunk-4MIDUSIX.mjs";
27
+ } from "./chunk-YH7ENV3K.mjs";
28
28
  import "./chunk-VISQDC6W.mjs";
29
29
  import {
30
30
  loadFarmInstrumentation,
31
31
  resolveFarmInstrumentationFile
32
- } from "./chunk-57QAQU4F.mjs";
32
+ } from "./chunk-QRNYSISP.mjs";
33
33
  import {
34
34
  createFarmInstrumentationLifecycle
35
35
  } from "./chunk-WNDAISB7.mjs";
@@ -38,9 +38,10 @@ import {
38
38
  defineConfig,
39
39
  farmI18nClientBridgePlugin,
40
40
  farmIslandContainersPlugin,
41
+ farmNavigationPlugin,
41
42
  farmPlugin,
42
43
  farmServerOnlyEntriesPlugin
43
- } from "./chunk-XZBBKZGW.mjs";
44
+ } from "./chunk-5N526T7Q.mjs";
44
45
  import {
45
46
  createFarmReactRefreshPlugins,
46
47
  farmDesktopDevGuardPlugin
@@ -60,7 +61,7 @@ import {
60
61
  inspectStaticMetadataImage,
61
62
  mergeFarmViteConfig,
62
63
  resolveFarmImageProviderForRuntime
63
- } from "./chunk-ZDYYZX73.mjs";
64
+ } from "./chunk-IPG6B25T.mjs";
64
65
  import {
65
66
  loadTailwindVitePlugin
66
67
  } from "./chunk-RPA45OQS.mjs";
@@ -68,37 +69,39 @@ import {
68
69
  FarmRuntimeShutdownError,
69
70
  PluginManager
70
71
  } from "./chunk-C2OLXVUC.mjs";
72
+ import "./chunk-TLSGRK7E.mjs";
73
+ import "./chunk-YSU3WCW6.mjs";
74
+ import "./chunk-YHHOTKUT.mjs";
75
+ import "./chunk-ONSZP5JK.mjs";
76
+ import "./chunk-HQ2VAJLW.mjs";
77
+ import "./chunk-UTUS6JUH.mjs";
71
78
  import {
72
79
  resolveFarmPlatform,
73
80
  validateFarmDesktopConfig
74
81
  } from "./chunk-SMUW7UST.mjs";
75
82
  import "./chunk-UB7RVEMX.mjs";
76
- import "./chunk-YN3YMSKD.mjs";
77
- import "./chunk-YHHOTKUT.mjs";
78
- import "./chunk-K3XKEZR6.mjs";
79
- import "./chunk-UTUS6JUH.mjs";
80
- import "./chunk-HQ2VAJLW.mjs";
81
- import "./chunk-3K2E55BJ.mjs";
83
+ import "./chunk-OO4GVGM3.mjs";
82
84
  import "./chunk-LLZSYFOM.mjs";
83
85
  import "./chunk-UUMKLGUU.mjs";
84
86
  import "./chunk-ZXDX7VYZ.mjs";
85
- import "./chunk-3JQBQG7K.mjs";
87
+ import "./chunk-V7HNYR76.mjs";
88
+ import "./chunk-RZ6XUEQS.mjs";
86
89
  import "./chunk-HR4N2K4V.mjs";
87
- import "./chunk-RQBGHHOQ.mjs";
88
- import "./chunk-HONTCUK6.mjs";
89
- import "./chunk-7KDCVSTR.mjs";
90
+ import "./chunk-GY63XD6K.mjs";
91
+ import "./chunk-EZYKV24V.mjs";
92
+ import "./chunk-2PFGA6PB.mjs";
90
93
  import "./chunk-L4RTTTVE.mjs";
91
94
  import "./chunk-GNZIAJGB.mjs";
92
- import "./chunk-7FQFK3OA.mjs";
93
95
  import "./chunk-XAXTTBUT.mjs";
94
- import "./chunk-MNIR7I7B.mjs";
96
+ import "./chunk-INKVDO42.mjs";
95
97
  import "./chunk-X3EFRVXY.mjs";
96
98
  import "./chunk-K6HIIWUB.mjs";
97
99
  import "./chunk-YFTGIHNC.mjs";
98
100
  import "./chunk-HZOMT5DY.mjs";
99
101
  import {
100
102
  farmEnvironmentFunctionsPlugin
101
- } from "./chunk-MDEFTF63.mjs";
103
+ } from "./chunk-HTNJ7A4D.mjs";
104
+ import "./chunk-D2VAANBS.mjs";
102
105
  import "./chunk-S32PDOLO.mjs";
103
106
  import {
104
107
  getTheme,
@@ -111,17 +114,12 @@ import "./chunk-YVVY276M.mjs";
111
114
  import "./chunk-XR2ZIBQK.mjs";
112
115
  import "./chunk-CU5SYTJG.mjs";
113
116
  import "./chunk-SLEHAGGV.mjs";
117
+ import "./chunk-22W4FNTG.mjs";
114
118
  import "./chunk-SQ5O7I3L.mjs";
115
119
  import "./chunk-XGL42MQ7.mjs";
116
- import "./chunk-22W4FNTG.mjs";
117
120
  import {
118
121
  resolveFarmServerComponentsMode
119
122
  } from "./chunk-4QENVMG7.mjs";
120
- import {
121
- isReactRenderer,
122
- loadFarmRendererVitePlugins,
123
- resolveFarmRenderer
124
- } from "./chunk-GCRT6GJG.mjs";
125
123
  import {
126
124
  createFarmConfigResolutionPlugin,
127
125
  findFarmConfigFile,
@@ -130,7 +128,12 @@ import {
130
128
  getFarmSourceRoots,
131
129
  loadFarmConfigFile,
132
130
  resolveFarmLayers
133
- } from "./chunk-4STJ6LGR.mjs";
131
+ } from "./chunk-Z3RM3VA2.mjs";
132
+ import {
133
+ isReactRenderer,
134
+ loadFarmRendererVitePlugins,
135
+ resolveFarmRenderer
136
+ } from "./chunk-2HMSSPCZ.mjs";
134
137
  import "./chunk-AOIUYHPH.mjs";
135
138
  import "./chunk-ATISIC6G.mjs";
136
139
  import {
@@ -149,13 +152,13 @@ import {
149
152
  import {
150
153
  setEnv
151
154
  } from "./chunk-N33DLJBC.mjs";
152
- import "./chunk-Q4YEAWUK.mjs";
153
- import "./chunk-MUZHULW2.mjs";
155
+ import "./chunk-ECVSRE4Y.mjs";
156
+ import "./chunk-ICOJ2BC6.mjs";
154
157
  import "./chunk-BRYPZIMB.mjs";
155
158
  import "./chunk-UIJOLBUL.mjs";
156
159
  import "./chunk-YU2MNIIY.mjs";
157
- import "./chunk-MGKWYPE3.mjs";
158
- import "./chunk-COTFX4GT.mjs";
160
+ import "./chunk-AYDVUCXD.mjs";
161
+ import "./chunk-LTOT5KVJ.mjs";
159
162
  import "./chunk-WXFY5JIY.mjs";
160
163
  import "./chunk-YP7YO3S3.mjs";
161
164
  import "./chunk-YWPNIYUP.mjs";
@@ -203,7 +206,7 @@ import {
203
206
  } from "./chunk-QBJ6N5MT.mjs";
204
207
  import "./chunk-DS2KZ5BT.mjs";
205
208
  import "./chunk-BMQAPZXD.mjs";
206
- import "./chunk-EY7ED5UW.mjs";
209
+ import "./chunk-3RVLJTFZ.mjs";
207
210
  import "./chunk-QD34VE4N.mjs";
208
211
  import "./chunk-CYRO3WP4.mjs";
209
212
  import "./chunk-6ZFRWRHO.mjs";
@@ -217,7 +220,7 @@ import {
217
220
  _withAfterNodeMiddleware,
218
221
  after
219
222
  } from "./chunk-IYEY3JWJ.mjs";
220
- import "./chunk-KKVRWNDH.mjs";
223
+ import "./chunk-6WVRVGKC.mjs";
221
224
  import "./chunk-NRWEY2CM.mjs";
222
225
  import "./chunk-URBP6DLH.mjs";
223
226
  import "./chunk-YX6AFPXC.mjs";
@@ -262,8 +265,8 @@ import {
262
265
  import {
263
266
  sendWebResponse
264
267
  } from "./chunk-O5QUJEWT.mjs";
265
- import "./chunk-7H2TXT2K.mjs";
266
268
  import "./chunk-VHIXGZYH.mjs";
269
+ import "./chunk-7H2TXT2K.mjs";
267
270
  import "./chunk-VJSXPN3W.mjs";
268
271
  import {
269
272
  fileExists,
@@ -289,18 +292,18 @@ import "./chunk-H3ASZDT7.mjs";
289
292
  import "./chunk-EILUVBKS.mjs";
290
293
  import {
291
294
  FARM_VERSION
292
- } from "./chunk-JGEN2FIT.mjs";
293
- import "./chunk-VDQZV6BX.mjs";
295
+ } from "./chunk-D77OGI6X.mjs";
294
296
  import "./chunk-QPNVDSFZ.mjs";
295
297
  import "./chunk-GYMGK467.mjs";
296
298
  import "./chunk-5Y4GYKKH.mjs";
297
299
  import "./chunk-YT3SLLZK.mjs";
298
300
  import "./chunk-GLVDXRG2.mjs";
299
301
  import "./chunk-W6QLRQ3V.mjs";
302
+ import "./chunk-VDQZV6BX.mjs";
300
303
  import "./chunk-PWHF2C6A.mjs";
301
304
  import "./chunk-SD6JGJOM.mjs";
302
305
  import "./chunk-AG27TI6Q.mjs";
303
- import "./chunk-NBIVGHAT.mjs";
306
+ import "./chunk-UDMBUTJD.mjs";
304
307
  import "./chunk-WCLLPR6H.mjs";
305
308
  import "./chunk-7BIW7VCW.mjs";
306
309
  import "./chunk-IWJONXPF.mjs";
@@ -332,11 +335,11 @@ import "./chunk-OHWM2VI4.mjs";
332
335
  import {
333
336
  getCurrentRequest
334
337
  } from "./chunk-FCAYYLAE.mjs";
335
- import "./chunk-VIXTAVEA.mjs";
336
338
  import "./chunk-JNYFXL7X.mjs";
337
339
  import "./chunk-4QBFYEDC.mjs";
338
340
  import "./chunk-SF3JB56B.mjs";
339
341
  import "./chunk-5KAEGBIL.mjs";
342
+ import "./chunk-VIXTAVEA.mjs";
340
343
  import "./chunk-TIZJYHB7.mjs";
341
344
 
342
345
  // src/server/dev-lifecycle.ts
@@ -661,7 +664,7 @@ async function createServer2(config = {}, options = {}) {
661
664
  checkWebDesktopBlock(userConfig?.desktop);
662
665
  const rscConfig = userConfig ?? config;
663
666
  if (resolveFarmServerComponentsMode(rscConfig.experimental?.serverComponents)) {
664
- const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-JZWVSHOR.mjs");
667
+ const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-GD6KLOIG.mjs");
665
668
  await options.ensureServerComponentsPackages?.(rscConfig, root);
666
669
  if (farmAppUsesRscPipeline(await resolveFarmRscCheckConfig(rscConfig, root, mode), root)) {
667
670
  return await createFarmRscDevServer(rscConfig, {
@@ -755,6 +758,7 @@ async function createServer2(config = {}, options = {}) {
755
758
  prebundleServerPackages: true,
756
759
  distDir: resolvedConfig.distDir || ".farm"
757
760
  }),
761
+ farmNavigationPlugin(finalConfig.renderer),
758
762
  farmIslandContainersPlugin(finalConfig),
759
763
  farmPlugin(finalConfig, pluginManager, deferredSetup),
760
764
  farmEnvironmentFunctionsPlugin(finalConfig),
@@ -774,7 +778,8 @@ async function createServer2(config = {}, options = {}) {
774
778
  optimizeDeps: {
775
779
  ...createFarmClientOptimizeDepsConfig(
776
780
  createFarmClientOptimizeDepsEntries(projectRoot, getFarmAppDirectories(finalConfig)),
777
- finalConfig.renderer
781
+ finalConfig.renderer,
782
+ projectRoot
778
783
  ),
779
784
  exclude: [
780
785
  "@farm.js/core/server",
@@ -1,8 +1,8 @@
1
- import { M as Metadata } from './client-plugins.d-BYIovYqX.js';
1
+ import { M as Metadata } from './client-plugins.d-qWp8hNwd.js';
2
2
  import { F as FarmClientPluginManager } from './lifecycle.d-OtGWAvJT.js';
3
3
  import { b as FarmI18nClientSnapshot } from './types.d-euATAbE4.js';
4
4
  import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
5
- import { F as FarmRouteRenderPlan } from './render-plan.d-2o-AG-ot.js';
5
+ import { F as FarmRouteRenderPlan } from './render-plan.d-BD06tqFA.js';
6
6
 
7
7
  type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
8
8
 
@@ -278,4 +278,4 @@ declare function pushState(state: unknown, href?: string): void;
278
278
  declare function replaceState(state: unknown, href?: string): void;
279
279
  declare function readPageState<TState = unknown>(): TState | null;
280
280
 
281
- export { type FarmNavigationBlockerContext as F, type RouterOptions as R, SPARouter as S, type FarmNavigationState as a, type FarmNavigateOptions as b, type FarmViewTransitionMode as c, isFarmExternalNavigationURL as d, type FarmNavigationBlocker as e, type FarmNavigationListener as f, getHashTargetElement as g, type FarmNavigationLocation as h, isFarmBlockedNavigationURL as i, getRouter as j, pushState as k, replaceState as l, type FarmNavigationRenderInfo as m, navigateTo as n, getInstalledFarmSPARouter as o, prefetch as p, readPageState as r };
281
+ export { type FarmNavigationBlockerContext as F, type RouterOptions as R, SPARouter as S, type FarmNavigationState as a, type FarmViewTransitionMode as b, type FarmNavigateOptions as c, isFarmExternalNavigationURL as d, type FarmNavigationBlocker as e, type FarmNavigationListener as f, getHashTargetElement as g, type FarmNavigationLocation as h, isFarmBlockedNavigationURL as i, getRouter as j, pushState as k, replaceState as l, type FarmNavigationRenderInfo as m, navigateTo as n, getInstalledFarmSPARouter as o, prefetch as p, readPageState as r };
@@ -1,8 +1,8 @@
1
- import { M as Metadata } from './client-plugins.d-WcMwOZGZ.mjs';
1
+ import { M as Metadata } from './client-plugins.d-BflSNO-b.mjs';
2
2
  import { F as FarmClientPluginManager } from './lifecycle.d-OtGWAvJT.mjs';
3
3
  import { b as FarmI18nClientSnapshot } from './types.d-euATAbE4.mjs';
4
4
  import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
5
- import { F as FarmRouteRenderPlan } from './render-plan.d-ChYBMhLu.mjs';
5
+ import { F as FarmRouteRenderPlan } from './render-plan.d-xWCRAJeR.mjs';
6
6
 
7
7
  type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
8
8
 
@@ -278,4 +278,4 @@ declare function pushState(state: unknown, href?: string): void;
278
278
  declare function replaceState(state: unknown, href?: string): void;
279
279
  declare function readPageState<TState = unknown>(): TState | null;
280
280
 
281
- export { type FarmNavigationBlockerContext as F, type RouterOptions as R, SPARouter as S, type FarmNavigationState as a, type FarmNavigateOptions as b, type FarmViewTransitionMode as c, isFarmExternalNavigationURL as d, type FarmNavigationBlocker as e, type FarmNavigationListener as f, getHashTargetElement as g, type FarmNavigationLocation as h, isFarmBlockedNavigationURL as i, getRouter as j, pushState as k, replaceState as l, type FarmNavigationRenderInfo as m, navigateTo as n, getInstalledFarmSPARouter as o, prefetch as p, readPageState as r };
281
+ export { type FarmNavigationBlockerContext as F, type RouterOptions as R, SPARouter as S, type FarmNavigationState as a, type FarmViewTransitionMode as b, type FarmNavigateOptions as c, isFarmExternalNavigationURL as d, type FarmNavigationBlocker as e, type FarmNavigationListener as f, getHashTargetElement as g, type FarmNavigationLocation as h, isFarmBlockedNavigationURL as i, getRouter as j, pushState as k, replaceState as l, type FarmNavigationRenderInfo as m, navigateTo as n, getInstalledFarmSPARouter as o, prefetch as p, readPageState as r };
@@ -1,5 +1,5 @@
1
- import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering.d-BZJnfKsp.mjs';
2
- import { e as RouteModule, S as SSGCollectionResult, n as SSGPage } from './client-plugins.d-WcMwOZGZ.mjs';
1
+ import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering.d-DJh6GauM.mjs';
2
+ import { e as RouteModule, S as SSGCollectionResult, n as SSGPage } from './client-plugins.d-BflSNO-b.mjs';
3
3
 
4
4
  /**
5
5
  * Farm.js SSG (Static Site Generation) Module
@@ -1,5 +1,5 @@
1
- import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering.d-BTPOM2nU.js';
2
- import { e as RouteModule, S as SSGCollectionResult, n as SSGPage } from './client-plugins.d-BYIovYqX.js';
1
+ import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering.d-BwBVpLtD.js';
2
+ import { e as RouteModule, S as SSGCollectionResult, n as SSGPage } from './client-plugins.d-qWp8hNwd.js';
3
3
 
4
4
  /**
5
5
  * Farm.js SSG (Static Site Generation) Module
@@ -0,0 +1,301 @@
1
+ import { FarmRouterPathParams, FarmRouterPathParam, FarmRouterBuildOptions, FarmRouterRouteInput } from './router.js';
2
+ import { b as FarmViewTransitionMode, a as FarmNavigationState, c as FarmNavigateOptions } from './spa-router.d-DMKiBsHH.js';
3
+ import { F as FarmClientCacheStatus } from './client-cache.d-Deoqq-nM.js';
4
+ import { ServerFn } from './server-fn.js';
5
+ import { ServerQuery } from './server-query.js';
6
+ import { S as ServerQueryFetchOptions } from './server-query-runtime.d-DXRNhX_3.js';
7
+ import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types.d-DQnyD3VD.js';
8
+ import { f as FarmI18nLocale, b as FarmI18nClientSnapshot, o as FarmTranslator } from './types.d-euATAbE4.js';
9
+ import './navigation-delegate.d-o3pPd9VI.js';
10
+
11
+ /**
12
+ * Prefetch strategy (TanStack Router–style):
13
+ * - "intent": prefetch on hover and touchstart (with prefetchDelay)
14
+ * - "viewport": prefetch when link enters viewport (IntersectionObserver)
15
+ * - "render": prefetch as soon as the link is mounted
16
+ * - "none" | false: no prefetch
17
+ */
18
+ type PrefetchBehavior = false | "intent" | "viewport" | "render" | "none";
19
+ /** @internal Legacy prefetch mode for backward compatibility */
20
+ type PrefetchLegacy = boolean | "hover" | "viewport" | "none";
21
+ /**
22
+ * Augment this interface via the generated farm.d.ts so Link href is typed
23
+ * without passing a generic. Defaults to string when not augmented.
24
+ */
25
+ interface LinkDefaultRoute {
26
+ }
27
+ type DefaultRoutePath = LinkDefaultRoute extends {
28
+ _: infer TRoute extends string;
29
+ } ? TRoute : string;
30
+ type DefaultRoutePattern = LinkDefaultRoute extends {
31
+ pattern: infer TRoute extends string;
32
+ } ? TRoute : DefaultRoutePath;
33
+ type DefaultRouteHref = DefaultRoutePath | DefaultRoutePattern;
34
+ type RouteHref<TRoute extends string> = TRoute | `${TRoute}?${string}` | `${TRoute}#${string}` | `${TRoute}?${string}#${string}`;
35
+ type RouteParamValue = Exclude<FarmRouterPathParam, null | undefined>;
36
+ type RouteOptionalParamValue = FarmRouterPathParam;
37
+ type RouteParams<TRoute extends string> = string extends TRoute ? FarmRouterPathParams : ExtractRouteParams<StripRouteSuffix<TRoute>>;
38
+ /** URI schemes recognized as typed external Link targets. Apps may augment this interface. */
39
+ interface LinkExternalUriSchemes {
40
+ about: true;
41
+ blob: true;
42
+ data: true;
43
+ file: true;
44
+ ftp: true;
45
+ ftps: true;
46
+ geo: true;
47
+ git: true;
48
+ http: true;
49
+ https: true;
50
+ im: true;
51
+ intent: true;
52
+ irc: true;
53
+ ircs: true;
54
+ magnet: true;
55
+ mailto: true;
56
+ market: true;
57
+ sms: true;
58
+ ssh: true;
59
+ tel: true;
60
+ urn: true;
61
+ vscode: true;
62
+ webcal: true;
63
+ ws: true;
64
+ wss: true;
65
+ }
66
+ type ExternalUriScheme = Extract<keyof LinkExternalUriSchemes, string>;
67
+ type UriSchemeLetter = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
68
+ type UriSchemeStart = UriSchemeLetter | Uppercase<UriSchemeLetter>;
69
+ type UriSchemeCharacter = UriSchemeStart | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "+" | "-" | ".";
70
+ type IsUriSchemeTail<TValue extends string> = TValue extends "" ? true : TValue extends `${infer First}${infer Rest}` ? First extends UriSchemeCharacter ? IsUriSchemeTail<Rest> : false : false;
71
+ type IsUriScheme<TValue extends string> = TValue extends `${infer First}${infer Rest}` ? First extends UriSchemeStart ? IsUriSchemeTail<Rest> : false : false;
72
+ type KnownExternalHref = `//${string}` | `${ExternalUriScheme}:${string}`;
73
+ /** External URLs; these are never type-checked as routes. */
74
+ type ExternalHref<THref extends string = string> = string extends THref ? KnownExternalHref : THref extends `//${string}` ? THref : THref extends `${infer Scheme}:${string}` ? IsUriScheme<Scheme> extends true ? THref : never : never;
75
+ type StripRouteSuffix<TRoute extends string> = TRoute extends `${infer Path}?${string}` ? StripRouteSuffix<Path> : TRoute extends `${infer Path}#${string}` ? StripRouteSuffix<Path> : TRoute;
76
+ type ExtractRouteParams<TRoute extends string> = Simplify<ExtractOptionalCatchAllParams<TRoute> & ExtractCatchAllParams<TRoute> & ExtractDynamicParams<TRoute>>;
77
+ type ExtractOptionalCatchAllParams<TRoute extends string> = TRoute extends `${string}[[...${infer Param}]]${infer Rest}` ? {
78
+ [Key in Param]?: RouteOptionalParamValue;
79
+ } & ExtractOptionalCatchAllParams<Rest> : {};
80
+ type ExtractCatchAllParams<TRoute extends string> = TRoute extends `${string}[...${infer Param}]${infer Rest}` ? Param extends `[...${string}` ? ExtractCatchAllParams<Rest> : {
81
+ [Key in Param]: RouteParamValue;
82
+ } & ExtractCatchAllParams<Rest> : {};
83
+ type ExtractDynamicParams<TRoute extends string> = TRoute extends `${string}[${infer Param}]${infer Rest}` ? Param extends `...${string}` | `[...${string}` ? ExtractDynamicParams<Rest> : {
84
+ [Key in Param]: RouteParamValue;
85
+ } & ExtractDynamicParams<Rest> : {};
86
+ type Simplify<T> = {
87
+ [Key in keyof T]: T[Key];
88
+ } & {};
89
+ type HasRouteParams<TRoute extends string> = keyof RouteParams<TRoute> extends never ? false : true;
90
+ type RoutesWithRequiredParams<TRoute extends string> = TRoute extends string ? HasRouteParams<TRoute> extends true ? TRoute : never : never;
91
+ type LinkRouteParamsProps<TRoute extends string> = string extends TRoute ? {
92
+ params?: FarmRouterPathParams;
93
+ } : HasRouteParams<TRoute> extends true ? {
94
+ params: RouteParams<TRoute>;
95
+ } : {
96
+ params?: FarmRouterPathParams;
97
+ };
98
+ type LinkRouteTargetProps<TRoute extends string> = [RoutesWithRequiredParams<TRoute>] extends [
99
+ never
100
+ ] ? {
101
+ /** Internal route path with all params already resolved. */
102
+ href: RouteHref<TRoute>;
103
+ params?: FarmRouterPathParams;
104
+ } : TRoute extends string ? {
105
+ /** Internal route path or route pattern. */
106
+ href: RouteHref<TRoute>;
107
+ } & LinkRouteParamsProps<TRoute> : never;
108
+ type LinkExternalTargetProps<THref extends string = string> = {
109
+ /** External URL; these are never type-checked as app routes. */
110
+ href: ExternalHref<THref>;
111
+ params?: never;
112
+ };
113
+ type LinkTargetProps<TRoute extends string, THref extends string> = LinkExternalTargetProps<THref> | LinkRouteTargetProps<TRoute>;
114
+ /** What a `Link` takes besides its anchor attributes, in every renderer. */
115
+ type FarmLinkOptions<TRoute extends string = DefaultRouteHref, THref extends string = string> = LinkTargetProps<TRoute, THref> & {
116
+ /**
117
+ * When to prefetch. TanStack-style: "intent" (hover+touch), "viewport", "render", or "none".
118
+ * Legacy: true (intent+viewport), "hover" (intent), "viewport", false/"none".
119
+ */
120
+ prefetch?: PrefetchBehavior | PrefetchLegacy;
121
+ /** Search params appended after route params are resolved. */
122
+ query?: FarmRouterBuildOptions["query"];
123
+ /** Hash appended after route params and search params are resolved. */
124
+ hash?: string;
125
+ /** Add a trailing slash to the generated internal href. */
126
+ trailingSlash?: boolean;
127
+ /** Delay in ms before intent-based prefetch (hover/touch). Default 50. */
128
+ prefetchDelay?: number;
129
+ /** Replace current history entry instead of pushing */
130
+ replace?: boolean;
131
+ /** Scroll to top after navigation (default: true) */
132
+ scroll?: boolean;
133
+ /** Wrap this SPA navigation in a browser View Transition when supported. */
134
+ viewTransition?: FarmViewTransitionMode;
135
+ /** Preserve the active locale by default, or navigate using this locale. */
136
+ locale?: FarmI18nLocale;
137
+ };
138
+ /** The keys of {@link FarmLinkOptions}, which a `Link` keeps off its anchor. */
139
+ declare const FARM_LINK_OPTION_KEYS: readonly ["href", "params", "query", "hash", "trailingSlash", "prefetch", "prefetchDelay", "replace", "scroll", "viewTransition", "locale"];
140
+ /**
141
+ * The attributes a `Link` puts on its anchor. The app's router reads them: a click on the anchor
142
+ * navigates with `data-replace`, `data-no-scroll` and `data-view-transition`, and it prefetches
143
+ * as `data-farm-prefetch` says, so an anchor with these attributes behaves as a `Link` without
144
+ * any event handler of its own. `href` is absent for a `javascript:` URL, which never runs.
145
+ */
146
+ interface FarmLinkAttributes {
147
+ href: string | undefined;
148
+ "data-farm-link": "";
149
+ "data-farm-locale": FarmI18nLocale | undefined;
150
+ "data-farm-prefetch": string | undefined;
151
+ "data-farm-prefetch-delay": string | undefined;
152
+ "data-replace": "" | undefined;
153
+ "data-no-scroll": "" | undefined;
154
+ "data-view-transition": "auto" | "true" | undefined;
155
+ }
156
+ /**
157
+ * Resolves `Link` options into the attributes of its anchor: the href with route params, query,
158
+ * hash, locale, trailing slash and base path applied, and the data attributes the app's router
159
+ * reads to navigate and prefetch. Spread them on an `<a>` in any renderer to get a `Link`.
160
+ *
161
+ * ```ts
162
+ * resolveLinkAttributes({ href: "/products/[id]", params: { id: "42" }, prefetch: "intent" });
163
+ * // { href: "/products/42", "data-farm-link": "", "data-farm-prefetch": "intent", ... }
164
+ * ```
165
+ */
166
+ declare function resolveLinkAttributes<TRoute extends string = DefaultRouteHref, THref extends string = string>(options: FarmLinkOptions<TRoute, THref>): FarmLinkAttributes;
167
+
168
+ /**
169
+ * The state contract every renderer binding reads: a snapshot, and a way to hear that it changed.
170
+ * Farm's router, action, query, theme, and i18n stores implement it, and so does `createStore`.
171
+ */
172
+ interface FarmClientStore<TSnapshot> {
173
+ /** Returns the current snapshot. It must return the same value until the state changes. */
174
+ getSnapshot(): TSnapshot;
175
+ /** Calls `listener` after the snapshot changes. Returns a function that unsubscribes. */
176
+ subscribe(listener: () => void): () => void;
177
+ }
178
+
179
+ interface FarmRendererRouterOptions {
180
+ basePath?: string;
181
+ routes?: readonly FarmRouterRouteInput[];
182
+ }
183
+ interface FarmRendererRouterSnapshot {
184
+ pathname: string;
185
+ searchParams: URLSearchParams;
186
+ params: Record<string, string>;
187
+ pageState: unknown;
188
+ navigation: FarmNavigationState;
189
+ }
190
+ interface FarmRendererRouter extends FarmClientStore<FarmRendererRouterSnapshot> {
191
+ push(href: string, options?: Omit<FarmNavigateOptions, "replace">): Promise<void>;
192
+ replace(href: string, options?: Omit<FarmNavigateOptions, "replace">): Promise<void>;
193
+ refresh(options?: Omit<FarmNavigateOptions, "replace" | "refresh">): Promise<void>;
194
+ prefetch(href: string): Promise<void>;
195
+ back(): void;
196
+ forward(): void;
197
+ pushState<TState>(state: TState, href?: string): void;
198
+ replaceState<TState>(state: TState, href?: string): void;
199
+ }
200
+ declare function createRendererRouter(options?: FarmRendererRouterOptions): FarmRendererRouter;
201
+ type FarmActionStatus = "idle" | "pending" | "success" | "error";
202
+ interface FarmActionSnapshot<TResult, TError extends Error = Error> {
203
+ pending: boolean;
204
+ status: FarmActionStatus;
205
+ data: TResult | null;
206
+ error: TError | null;
207
+ }
208
+ interface FarmActionOptions<TInput, TResult, TError extends Error = Error> {
209
+ initialResult?: TResult | null;
210
+ resetOnSubmit?: boolean;
211
+ optimistic?: (context: {
212
+ input: TInput | FormData | undefined;
213
+ formData?: FormData;
214
+ current: TResult | null;
215
+ }) => TResult | null | undefined;
216
+ rollbackOnError?: boolean;
217
+ onSuccess?: (result: TResult) => void;
218
+ onError?: (error: TError) => void;
219
+ onSettled?: (result: TResult | null, error: TError | null) => void;
220
+ }
221
+ type FarmActionSubmit<TInput, TResult> = [unknown] extends [TInput] ? (input?: TInput | FormData) => Promise<TResult> : (input: TInput | FormData) => Promise<TResult>;
222
+ type FarmAction<TInput, TResult, TError extends Error = Error> = FarmClientStore<FarmActionSnapshot<TResult, TError>> & {
223
+ submit: FarmActionSubmit<TInput, TResult>;
224
+ reset(): void;
225
+ };
226
+ type FarmRouteActionTarget<TServerFn extends ServerFn<any, any, any>> = {
227
+ readonly action: TServerFn;
228
+ };
229
+ declare function createRendererAction<TInput, TResult, TError extends Error = Error>(target: ServerFn<TInput, TResult, TError> | FarmRouteActionTarget<ServerFn<TInput, TResult, TError>>, options?: FarmActionOptions<TInput, TResult, TError>): FarmAction<TInput, TResult, TError>;
230
+ interface FarmRendererQueryOptions extends ServerQueryFetchOptions {
231
+ enabled?: boolean;
232
+ refetchOnWindowFocus?: boolean;
233
+ refetchOnReconnect?: boolean;
234
+ }
235
+ interface FarmRendererQuerySnapshot<TData> {
236
+ data: TData | undefined;
237
+ error: Error | null;
238
+ status: FarmClientCacheStatus;
239
+ pending: boolean;
240
+ fetching: boolean;
241
+ stale: boolean;
242
+ }
243
+ interface FarmRendererQuery<TData> extends FarmClientStore<FarmRendererQuerySnapshot<TData>> {
244
+ refetch(): Promise<TData>;
245
+ dispose(): void;
246
+ }
247
+ declare function createRendererQuery<TInput, TData>(query: ServerQuery<TInput, TData>, input: TInput, options?: FarmRendererQueryOptions): FarmRendererQuery<TData>;
248
+ interface FarmRendererTheme extends FarmClientStore<FarmThemeSnapshot> {
249
+ setTheme(theme: FarmThemePreference): void;
250
+ toggleTheme(): FarmThemeSnapshot["resolvedTheme"];
251
+ }
252
+ declare function createRendererTheme(): FarmRendererTheme;
253
+ interface FarmRendererI18n extends FarmClientStore<FarmI18nClientSnapshot | undefined> {
254
+ readonly t: FarmTranslator;
255
+ setLocale(locale: FarmI18nLocale): void;
256
+ }
257
+ declare function createRendererI18n(): FarmRendererI18n;
258
+
259
+ type StoreState = Record<string, any>;
260
+ type StoreValueUpdater<T> = T | ((previous: T) => T);
261
+ type StorePatch<T extends StoreState> = Partial<T> | ((state: T) => Partial<T>);
262
+ type StoreListener<T extends StoreState> = (state: T, previousState: T) => void;
263
+ type StoreKeyListener<T extends StoreState, K extends keyof T> = (value: T[K], previousValue: T[K]) => void;
264
+ type StoreKeysListener<T extends StoreState, K extends keyof T> = (value: Pick<T, K>, previousValue: Pick<T, K>) => void;
265
+ type FieldAccessor<T extends StoreState, K extends keyof T> = {
266
+ /** Reads the field's current value. */
267
+ (): T[K];
268
+ get(): T[K];
269
+ set(value: StoreValueUpdater<T[K]>): T[K];
270
+ subscribe(listener: StoreKeyListener<T, K>): () => void;
271
+ };
272
+ type StoreFields<T extends StoreState> = {
273
+ [K in keyof T]: FieldAccessor<T, K>;
274
+ };
275
+ /**
276
+ * A store's methods without a renderer. It is a `FarmClientStore`, so any renderer binds it the
277
+ * way it binds Farm's router or query stores.
278
+ */
279
+ interface StoreApi<T extends StoreState> extends FarmClientStore<T> {
280
+ get(): T;
281
+ get<K extends keyof T>(key: K): T[K];
282
+ /** The whole state. Its identity changes only when a value changes. */
283
+ getSnapshot(): T;
284
+ set<K extends keyof T>(key: K, value: StoreValueUpdater<T[K]>): T[K];
285
+ set(patch: StorePatch<T>): T;
286
+ replace(nextState: T | ((state: T) => T)): T;
287
+ reset(): T;
288
+ subscribe(listener: StoreListener<T>): () => void;
289
+ subscribe<K extends keyof T>(key: K, listener: StoreKeyListener<T, K>): () => void;
290
+ subscribe<K extends keyof T>(keys: readonly K[], listener: StoreKeysListener<T, K>): () => void;
291
+ }
292
+ type Store<T extends StoreState, TMethods extends Record<string, any> = {}> = StoreApi<T> & StoreFields<T> & TMethods;
293
+ /**
294
+ * Creates an in-memory store that works with every renderer. Read it with `get()` or a field
295
+ * accessor, and bind it with your renderer's binding (`useStore` in Solid and Vue,
296
+ * `createReadable` in Svelte) or with any code that reads a `FarmClientStore`. React apps can
297
+ * import `createStore` from `@farm.js/core/client` instead, which adds the `use()` hook.
298
+ */
299
+ declare function createStore<T extends StoreState, TMethods extends Record<string, any> = {}>(initialState: T, extend?: (store: Store<T>) => TMethods): Store<T, TMethods>;
300
+
301
+ export { type FarmRendererRouterSnapshot as A, type FarmRendererTheme as B, type FarmRouteActionTarget as C, type DefaultRouteHref as D, type ExternalHref as E, type FarmLinkOptions as F, type Store as G, type StoreFields as H, createRendererAction as I, createRendererI18n as J, createRendererQuery as K, type LinkDefaultRoute as L, createRendererRouter as M, createRendererTheme as N, createStore as O, type PrefetchBehavior as P, resolveLinkAttributes as Q, type RouteHref as R, type StoreKeyListener as S, type DefaultRoutePath as a, type DefaultRoutePattern as b, type LinkExternalUriSchemes as c, type RouteOptionalParamValue as d, type RouteParamValue as e, type RouteParams as f, type StoreKeysListener as g, type StoreListener as h, type StorePatch as i, type StoreState as j, type StoreValueUpdater as k, type StoreApi as l, FARM_LINK_OPTION_KEYS as m, type FarmAction as n, type FarmActionOptions as o, type FarmActionSnapshot as p, type FarmActionStatus as q, type FarmActionSubmit as r, type FarmClientStore as s, type FarmLinkAttributes as t, type FarmRendererI18n as u, type FarmRendererQuery as v, type FarmRendererQueryOptions as w, type FarmRendererQuerySnapshot as x, type FarmRendererRouter as y, type FarmRendererRouterOptions as z };