@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
@@ -21,12 +21,14 @@ var _chunk53EHWHT2cjs = require('./chunk-53EHWHT2.cjs');
21
21
 
22
22
 
23
23
 
24
- var _chunkHELQXYVIcjs = require('./chunk-HELQXYVI.cjs');
24
+ var _chunkI2DQGS56cjs = require('./chunk-I2DQGS56.cjs');
25
25
 
26
26
 
27
27
 
28
28
  var _chunkRI3EVPKDcjs = require('./chunk-RI3EVPKD.cjs');
29
- require('./chunk-V7KTQR4C.cjs');
29
+
30
+
31
+ var _chunkQXJADAQBcjs = require('./chunk-QXJADAQB.cjs');
30
32
  require('./chunk-QQ44FYRO.cjs');
31
33
 
32
34
 
@@ -63,7 +65,7 @@ require('./chunk-BTZ5O6VM.cjs');
63
65
  function createRendererRouter(options = {}) {
64
66
  const basePath = options.basePath === void 0 ? _chunkD22BUQKWcjs.getFarmBasePath.call(void 0, ) : _chunkD22BUQKWcjs.normalizeFarmBasePath.call(void 0, options.basePath);
65
67
  const matcher = _optionalChain([options, 'access', _ => _.routes, 'optionalAccess', _2 => _2.length]) ? _chunk53EHWHT2cjs.createFarmRouter.call(void 0, [...options.routes]) : null;
66
- const router = _chunkHELQXYVIcjs.getRouter.call(void 0, );
68
+ const router = _chunkI2DQGS56cjs.getRouter.call(void 0, );
67
69
  let snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
68
70
  const read = () => {
69
71
  snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
@@ -79,7 +81,7 @@ function createRendererRouter(options = {}) {
79
81
  listener();
80
82
  };
81
83
  const unsubscribeNavigation = router.subscribeNavigation(notify);
82
- const unsubscribeHistory = _chunkHELQXYVIcjs.subscribeHistoryChange.call(void 0, notify);
84
+ const unsubscribeHistory = _chunkI2DQGS56cjs.subscribeHistoryChange.call(void 0, notify);
83
85
  read();
84
86
  return () => {
85
87
  unsubscribeNavigation();
@@ -310,7 +312,7 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
310
312
  pathname,
311
313
  searchParams: url.searchParams,
312
314
  params: _optionalChain([matcher, 'optionalAccess', _20 => _20.match, 'call', _21 => _21(routePathname), 'optionalAccess', _22 => _22.params]) || {},
313
- pageState: _chunkHELQXYVIcjs.readPageState.call(void 0, ),
315
+ pageState: _chunkI2DQGS56cjs.readPageState.call(void 0, ),
314
316
  navigation
315
317
  };
316
318
  }
@@ -339,4 +341,5 @@ function isRendererFormData(value) {
339
341
 
340
342
 
341
343
 
342
- exports.createRendererAction = createRendererAction; exports.createRendererI18n = createRendererI18n; exports.createRendererQuery = createRendererQuery; exports.createRendererRouter = createRendererRouter; exports.createRendererTheme = createRendererTheme;
344
+
345
+ exports.createRendererAction = createRendererAction; exports.createRendererI18n = createRendererI18n; exports.createRendererQuery = createRendererQuery; exports.createRendererRouter = createRendererRouter; exports.createRendererTheme = createRendererTheme; exports.delegateNavigation = _chunkQXJADAQBcjs.delegateNavigation;
@@ -1,17 +1,17 @@
1
1
  import { FarmRouterRouteInput } from './router.mjs';
2
- import { a as FarmNavigationState, b as FarmNavigateOptions } from './spa-router-B48EjsS1.mjs';
2
+ import { a as FarmNavigationState, b as FarmNavigateOptions } from './spa-router-Dlv5ofg0.mjs';
3
3
  import { F as FarmClientCacheStatus } from './client-cache-di_Nasxa.mjs';
4
4
  import { ServerFn } from './server-fn.mjs';
5
5
  import { ServerQuery } from './server-query.mjs';
6
6
  import { S as ServerQueryFetchOptions } from './server-query-runtime-aP52iuL5.mjs';
7
7
  import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types-DQnyD3VD.mjs';
8
- import { a as FarmI18nClientSnapshot, d as FarmTranslator, c as FarmI18nLocale } from './types--Wh02r5_.mjs';
9
- import './client-plugins-BNBeyLMi.mjs';
10
- import './lifecycle-DK06VuKP.mjs';
8
+ import { a as FarmI18nClientSnapshot, d as FarmTranslator, c as FarmI18nLocale } from './types-C41ePjvP.mjs';
9
+ export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate-ji6elCKy.mjs';
10
+ import './client-plugins-D4RO59f0.mjs';
11
+ import './lifecycle-C2aLBOwu.mjs';
11
12
  import './route-2_yXC6gv.mjs';
12
13
  import './endpoint-BkMSCRf6.mjs';
13
14
  import './cache.mjs';
14
- import './cache-invalidation-BD0z_lfu.mjs';
15
15
  import './renderer.mjs';
16
16
  import './deployment.mjs';
17
17
  import 'http';
@@ -25,18 +25,19 @@ import '@farming-labs/docs';
25
25
  import './observability-B2363jB6.mjs';
26
26
  import '@opentelemetry/api';
27
27
  import 'vite';
28
- import './workflows-Df1C_7OG.mjs';
28
+ import './workflows-CRMzQZ3k.mjs';
29
29
  import './cron.mjs';
30
30
  import './env.mjs';
31
31
  import './server-action-security.mjs';
32
32
  import './server-fn-error-DrcH9cc1.mjs';
33
- import './layers-D9fbe-rz.mjs';
33
+ import './layers-CcS42OGR.mjs';
34
34
  import 'rolldown/utils';
35
35
  import 'rolldown';
36
36
  import './image-config-CeDgNyX4.mjs';
37
+ import './config-CnhyvvmT.mjs';
37
38
  import './font.mjs';
38
39
  import './island-CfGru1MO.mjs';
39
- import './render-plan-DqJ51ufr.mjs';
40
+ import './render-plan-BvCGXF6K.mjs';
40
41
 
41
42
  interface FarmClientStore<TSnapshot> {
42
43
  getSnapshot(): TSnapshot;
@@ -1,17 +1,17 @@
1
1
  import { FarmRouterRouteInput } from './router.js';
2
- import { a as FarmNavigationState, b as FarmNavigateOptions } from './spa-router-B06APnGK.js';
2
+ import { a as FarmNavigationState, b as FarmNavigateOptions } from './spa-router-qapSboKz.js';
3
3
  import { F as FarmClientCacheStatus } from './client-cache-Deoqq-nM.js';
4
4
  import { ServerFn } from './server-fn.js';
5
5
  import { ServerQuery } from './server-query.js';
6
6
  import { S as ServerQueryFetchOptions } from './server-query-runtime-DXRNhX_3.js';
7
7
  import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types-DQnyD3VD.js';
8
- import { a as FarmI18nClientSnapshot, d as FarmTranslator, c as FarmI18nLocale } from './types--Wh02r5_.js';
9
- import './client-plugins-DFDQUI9Q.js';
10
- import './lifecycle-DK06VuKP.js';
8
+ import { a as FarmI18nClientSnapshot, d as FarmTranslator, c as FarmI18nLocale } from './types-C41ePjvP.js';
9
+ export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate-8xg3Zvp4.js';
10
+ import './client-plugins-BPfltM5m.js';
11
+ import './lifecycle-C2aLBOwu.js';
11
12
  import './route-DFhZj6jN.js';
12
13
  import './endpoint-BgHn0lhl.js';
13
14
  import './cache.js';
14
- import './cache-invalidation-BD0z_lfu.js';
15
15
  import './renderer.js';
16
16
  import './deployment.js';
17
17
  import 'http';
@@ -25,18 +25,19 @@ import '@farming-labs/docs';
25
25
  import './observability-B2363jB6.js';
26
26
  import '@opentelemetry/api';
27
27
  import 'vite';
28
- import './workflows-Df1C_7OG.js';
28
+ import './workflows-CRMzQZ3k.js';
29
29
  import './cron.js';
30
30
  import './env.js';
31
31
  import './server-action-security.js';
32
32
  import './server-fn-error-DrcH9cc1.js';
33
- import './layers-D9fbe-rz.js';
33
+ import './layers-CcS42OGR.js';
34
34
  import 'rolldown/utils';
35
35
  import 'rolldown';
36
36
  import './image-config-CeDgNyX4.js';
37
+ import './config-CnhyvvmT.js';
37
38
  import './font.js';
38
39
  import './island-CfGru1MO.js';
39
- import './render-plan-B6cfssrr.js';
40
+ import './render-plan-BPbwRbuN.js';
40
41
 
41
42
  interface FarmClientStore<TSnapshot> {
42
43
  getSnapshot(): TSnapshot;
@@ -21,12 +21,14 @@ import {
21
21
  getRouter,
22
22
  readPageState,
23
23
  subscribeHistoryChange
24
- } from "./chunk-VCFBQFOV.mjs";
24
+ } from "./chunk-SN5VSO3Q.mjs";
25
25
  import {
26
26
  getFarmI18nClientState,
27
27
  subscribeFarmI18n
28
28
  } from "./chunk-PTLXHRJZ.mjs";
29
- import "./chunk-45EUIICW.mjs";
29
+ import {
30
+ delegateNavigation
31
+ } from "./chunk-G2KTRMWA.mjs";
30
32
  import "./chunk-NCIAP562.mjs";
31
33
  import {
32
34
  getFarmClientDataCache
@@ -338,5 +340,6 @@ export {
338
340
  createRendererI18n,
339
341
  createRendererQuery,
340
342
  createRendererRouter,
341
- createRendererTheme
343
+ createRendererTheme,
344
+ delegateNavigation
342
345
  };
@@ -1,4 +1,4 @@
1
- import './client-plugins-DFDQUI9Q.js';
1
+ import './client-plugins-BPfltM5m.js';
2
2
 
3
3
  /** @internal Run `fn` while rendering a response that carries `nonce`. */
4
4
  declare function _runWithFarmCspNonce<T>(nonce: string | undefined, fn: () => T): T;
@@ -1,4 +1,4 @@
1
- import './client-plugins-BNBeyLMi.mjs';
1
+ import './client-plugins-D4RO59f0.mjs';
2
2
 
3
3
  /** @internal Run `fn` while rendering a response that carries `nonce`. */
4
4
  declare function _runWithFarmCspNonce<T>(nonce: string | undefined, fn: () => T): T;
@@ -1,10 +1,9 @@
1
- export { g as getCurrentRequest } from './request-UuAxHn8h.mjs';
2
- import './client-plugins-BNBeyLMi.mjs';
3
- import './lifecycle-DK06VuKP.mjs';
1
+ export { g as getCurrentRequest } from './request-C_xTkJib.mjs';
2
+ import './client-plugins-D4RO59f0.mjs';
3
+ import './lifecycle-C2aLBOwu.mjs';
4
4
  import './route-2_yXC6gv.mjs';
5
5
  import './endpoint-BkMSCRf6.mjs';
6
6
  import './cache.mjs';
7
- import './cache-invalidation-BD0z_lfu.mjs';
8
7
  import './renderer.mjs';
9
8
  import './deployment.mjs';
10
9
  import 'http';
@@ -21,14 +20,15 @@ import '@farming-labs/docs';
21
20
  import './observability-B2363jB6.mjs';
22
21
  import '@opentelemetry/api';
23
22
  import 'vite';
24
- import './workflows-Df1C_7OG.mjs';
23
+ import './workflows-CRMzQZ3k.mjs';
25
24
  import './cron.mjs';
26
25
  import './env.mjs';
27
26
  import './server-action-security.mjs';
28
- import './layers-D9fbe-rz.mjs';
27
+ import './layers-CcS42OGR.mjs';
29
28
  import 'rolldown/utils';
30
29
  import 'rolldown';
31
30
  import './image-config-CeDgNyX4.mjs';
32
- import './types--Wh02r5_.mjs';
31
+ import './types-C41ePjvP.mjs';
32
+ import './config-CnhyvvmT.mjs';
33
33
  import './types-DQnyD3VD.mjs';
34
34
  import './font.mjs';
package/dist/request.d.ts CHANGED
@@ -1,10 +1,9 @@
1
- export { g as getCurrentRequest } from './request-jhvUMXRx.js';
2
- import './client-plugins-DFDQUI9Q.js';
3
- import './lifecycle-DK06VuKP.js';
1
+ export { g as getCurrentRequest } from './request-B8PGTZNR.js';
2
+ import './client-plugins-BPfltM5m.js';
3
+ import './lifecycle-C2aLBOwu.js';
4
4
  import './route-DFhZj6jN.js';
5
5
  import './endpoint-BgHn0lhl.js';
6
6
  import './cache.js';
7
- import './cache-invalidation-BD0z_lfu.js';
8
7
  import './renderer.js';
9
8
  import './deployment.js';
10
9
  import 'http';
@@ -21,14 +20,15 @@ import '@farming-labs/docs';
21
20
  import './observability-B2363jB6.js';
22
21
  import '@opentelemetry/api';
23
22
  import 'vite';
24
- import './workflows-Df1C_7OG.js';
23
+ import './workflows-CRMzQZ3k.js';
25
24
  import './cron.js';
26
25
  import './env.js';
27
26
  import './server-action-security.js';
28
- import './layers-D9fbe-rz.js';
27
+ import './layers-CcS42OGR.js';
29
28
  import 'rolldown/utils';
30
29
  import 'rolldown';
31
30
  import './image-config-CeDgNyX4.js';
32
- import './types--Wh02r5_.js';
31
+ import './types-C41ePjvP.js';
32
+ import './config-CnhyvvmT.js';
33
33
  import './types-DQnyD3VD.js';
34
34
  import './font.js';
@@ -1,4 +1,4 @@
1
- import { b as FarmI18nLocaleSource, R as ResolvedFarmI18nConfig } from './types--Wh02r5_.js';
1
+ import { b as FarmI18nLocaleSource, R as ResolvedFarmI18nConfig } from './types-C41ePjvP.js';
2
2
 
3
3
  interface FarmLocaleResolution {
4
4
  locale: string;
@@ -1,4 +1,4 @@
1
- import { b as FarmI18nLocaleSource, R as ResolvedFarmI18nConfig } from './types--Wh02r5_.mjs';
1
+ import { b as FarmI18nLocaleSource, R as ResolvedFarmI18nConfig } from './types-C41ePjvP.mjs';
2
2
 
3
3
  interface FarmLocaleResolution {
4
4
  locale: string;
@@ -1,4 +1,4 @@
1
- import { i as RouteModule } from './client-plugins-BNBeyLMi.mjs';
1
+ import { i as RouteModule } from './client-plugins-D4RO59f0.mjs';
2
2
 
3
3
  /**
4
4
  * The rendering-mode merge shared by every consumer of route directives.
@@ -1,4 +1,4 @@
1
- import { i as RouteModule } from './client-plugins-DFDQUI9Q.js';
1
+ import { i as RouteModule } from './client-plugins-BPfltM5m.js';
2
2
 
3
3
  /**
4
4
  * The rendering-mode merge shared by every consumer of route directives.
@@ -1,6 +1,6 @@
1
1
  import { RefObject } from 'react';
2
2
  import { FarmRouterRouteInput } from './router.mjs';
3
- import { F as FarmNavigationBlockerContext, a as FarmNavigationState } from './spa-router-B48EjsS1.mjs';
3
+ import { F as FarmNavigationBlockerContext, a as FarmNavigationState } from './spa-router-Dlv5ofg0.mjs';
4
4
 
5
5
  interface UseRouterOptions {
6
6
  basePath?: string;
@@ -1,6 +1,6 @@
1
1
  import { RefObject } from 'react';
2
2
  import { FarmRouterRouteInput } from './router.js';
3
- import { F as FarmNavigationBlockerContext, a as FarmNavigationState } from './spa-router-B06APnGK.js';
3
+ import { F as FarmNavigationBlockerContext, a as FarmNavigationState } from './spa-router-qapSboKz.js';
4
4
 
5
5
  interface UseRouterOptions {
6
6
  basePath?: string;
@@ -0,0 +1,121 @@
1
+ import { g as FarmI18nRouting } from './types-C41ePjvP.js';
2
+ import { l as FarmMobileScreen, j as FarmMobilePresentation, i as FarmMobilePrefetch, h as FarmMobilePageConfig, F as FarmMobileOS, R as ResolvedFarmMobileConfig, m as FarmMobileTab } from './config-CnhyvvmT.js';
3
+ import { P as PlatformRouteFiles } from './generate-route-types-DQP0cUzk.js';
4
+
5
+ type FarmMobileScreenSource = "page" | "config" | "file" | "analyzer" | "default";
6
+ interface FarmMobileScreenDecision {
7
+ screen: FarmMobileScreen;
8
+ source: FarmMobileScreenSource;
9
+ /** App-root-relative file that decided (`"page"`), or the screen's file. */
10
+ file?: string;
11
+ /** Native module id, derived from the route, such as `"app/notes/[id]"`. Not on web screens. */
12
+ module?: string;
13
+ /** The tier a config route or the analyzer asked for, while nothing can build it yet. */
14
+ requested?: Exclude<FarmMobileScreen, "web">;
15
+ presentation: FarmMobilePresentation;
16
+ prefetch: FarmMobilePrefetch;
17
+ }
18
+ /** A page's static `export const mobile` and the file it came from. */
19
+ interface FarmMobilePageExport {
20
+ file: string;
21
+ config: FarmMobilePageConfig;
22
+ }
23
+ interface FarmMobileScreensOptions {
24
+ root: string;
25
+ os: FarmMobileOS;
26
+ /** Page route patterns with route groups removed. */
27
+ routes: readonly string[];
28
+ mobile: Pick<ResolvedFarmMobileConfig, "routes" | "native">;
29
+ /** Absolute screen files per route. */
30
+ nativePages?: ReadonlyMap<string, PlatformRouteFiles>;
31
+ pageExports?: ReadonlyMap<string, FarmMobilePageExport>;
32
+ /** Routes the analyzer would port; used only with `native.auto: "on"`. */
33
+ analyzerPorts?: ReadonlySet<string>;
34
+ /** Why the analyzer cannot port a route, for config routes that ask for a port. */
35
+ analyzerBlockers?: ReadonlyMap<string, readonly string[]>;
36
+ }
37
+ interface FarmMobileScreens {
38
+ screens: Record<string, FarmMobileScreenDecision>;
39
+ /** Overridden settings, unused files, and ports nothing can build yet. */
40
+ warnings: string[];
41
+ }
42
+ /**
43
+ * The id a native screen registers under: the route under `app/`, route groups removed, such as
44
+ * `"app"` for `/` and `"app/notes/[id]"` for `/notes/[id]`. Never hand-written, so the shell,
45
+ * the native bundle, and the manifest cannot disagree.
46
+ */
47
+ declare function createFarmMobileModuleId(route: string): string;
48
+ declare function resolveFarmMobileScreens(options: FarmMobileScreensOptions): FarmMobileScreens;
49
+ type Node = {
50
+ type: string;
51
+ [key: string]: unknown;
52
+ };
53
+ type ParseProgram = (file: string, source: string) => {
54
+ body: Node[];
55
+ };
56
+ /**
57
+ * A page's `export const mobile = { ... }`, read from its source without running it. Returns
58
+ * undefined when the page has no such export. Only literal values are allowed.
59
+ */
60
+ declare function readFarmMobilePageExport(source: string, file: string, parse: ParseProgram, context?: {
61
+ os: FarmMobileOS;
62
+ }): FarmMobilePageConfig | undefined;
63
+
64
+ /**
65
+ * One navigator rule. The shell tests `pattern` against a link's decoded URL path, top to
66
+ * bottom, and uses the first match.
67
+ */
68
+ interface FarmMobileRouteRule {
69
+ /** The app route pattern the rule came from, such as `"/notes/[id]"`. */
70
+ route?: string;
71
+ pattern: string;
72
+ /** `"tab"` switches to tab `tab` instead of presenting a screen. */
73
+ presentation: FarmMobilePresentation | "tab";
74
+ tab?: number;
75
+ screen: FarmMobileScreen;
76
+ /** What decided `screen`: the page export, config, a screen file, the analyzer, or the default. */
77
+ source?: FarmMobileScreenSource;
78
+ /** Native module id derived from the route, such as `"app/notes/[id]"`. Not on web screens. */
79
+ module?: string;
80
+ /** Only when the page overrides the manifest's `prefetch`. */
81
+ prefetch?: FarmMobilePrefetch;
82
+ }
83
+ /** `.farm/output/mobile/farm-routes.json` (RFC 0004, 7.2). */
84
+ interface FarmMobileRouteManifest {
85
+ version: 1;
86
+ server: string;
87
+ /** Tab roots; `path` includes the base path. */
88
+ tabs: FarmMobileTab[];
89
+ /** Default for every rule; a rule's own `prefetch` wins. */
90
+ prefetch: FarmMobilePrefetch;
91
+ rules: FarmMobileRouteRule[];
92
+ }
93
+ interface FarmMobileRouteManifestOptions {
94
+ /** The app's page route patterns. */
95
+ routes: readonly string[];
96
+ /** Server origin; defaults to `mobile.server`. The CLI passes the dev server's in dev. */
97
+ server?: string;
98
+ basePath?: string;
99
+ i18n?: {
100
+ locales: readonly string[];
101
+ routing: FarmI18nRouting;
102
+ } | null;
103
+ /** Per-route screens; resolved from config alone (no page files) when omitted. */
104
+ screens?: Readonly<Record<string, FarmMobileScreenDecision>>;
105
+ /** The OS for the config-only fallback; defaults to `"android"`. */
106
+ os?: FarmMobileOS;
107
+ }
108
+ /**
109
+ * A regular expression, in the subset Kotlin, Swift, and JavaScript share, that matches the
110
+ * decoded URL paths the client router sends to `pattern`: the base path, an optional locale
111
+ * prefix, `[param]` as one segment, `[...rest]` as one or more, `[[...rest]]` as zero or more,
112
+ * route groups removed, and an optional trailing slash.
113
+ */
114
+ declare function createFarmMobileRoutePattern(pattern: string, options?: Pick<FarmMobileRouteManifestOptions, "basePath" | "i18n">): string;
115
+ /**
116
+ * The navigator manifest for a resolved `mobile` block: a rule for every page route, most
117
+ * specific first (the client router's order), then a catch-all push for other same-origin paths.
118
+ */
119
+ declare function createFarmMobileRouteManifest(mobile: ResolvedFarmMobileConfig, options: FarmMobileRouteManifestOptions): FarmMobileRouteManifest;
120
+
121
+ export { type FarmMobileRouteManifest as F, type FarmMobileRouteRule as a, type FarmMobileScreenSource as b, type FarmMobileScreenDecision as c, type FarmMobilePageExport as d, type FarmMobileRouteManifestOptions as e, type FarmMobileScreens as f, type FarmMobileScreensOptions as g, createFarmMobileModuleId as h, createFarmMobileRouteManifest as i, createFarmMobileRoutePattern as j, resolveFarmMobileScreens as k, readFarmMobilePageExport as r };
@@ -0,0 +1,121 @@
1
+ import { g as FarmI18nRouting } from './types-C41ePjvP.mjs';
2
+ import { l as FarmMobileScreen, j as FarmMobilePresentation, i as FarmMobilePrefetch, h as FarmMobilePageConfig, F as FarmMobileOS, R as ResolvedFarmMobileConfig, m as FarmMobileTab } from './config-CnhyvvmT.mjs';
3
+ import { P as PlatformRouteFiles } from './generate-route-types-TF5Wwtvz.mjs';
4
+
5
+ type FarmMobileScreenSource = "page" | "config" | "file" | "analyzer" | "default";
6
+ interface FarmMobileScreenDecision {
7
+ screen: FarmMobileScreen;
8
+ source: FarmMobileScreenSource;
9
+ /** App-root-relative file that decided (`"page"`), or the screen's file. */
10
+ file?: string;
11
+ /** Native module id, derived from the route, such as `"app/notes/[id]"`. Not on web screens. */
12
+ module?: string;
13
+ /** The tier a config route or the analyzer asked for, while nothing can build it yet. */
14
+ requested?: Exclude<FarmMobileScreen, "web">;
15
+ presentation: FarmMobilePresentation;
16
+ prefetch: FarmMobilePrefetch;
17
+ }
18
+ /** A page's static `export const mobile` and the file it came from. */
19
+ interface FarmMobilePageExport {
20
+ file: string;
21
+ config: FarmMobilePageConfig;
22
+ }
23
+ interface FarmMobileScreensOptions {
24
+ root: string;
25
+ os: FarmMobileOS;
26
+ /** Page route patterns with route groups removed. */
27
+ routes: readonly string[];
28
+ mobile: Pick<ResolvedFarmMobileConfig, "routes" | "native">;
29
+ /** Absolute screen files per route. */
30
+ nativePages?: ReadonlyMap<string, PlatformRouteFiles>;
31
+ pageExports?: ReadonlyMap<string, FarmMobilePageExport>;
32
+ /** Routes the analyzer would port; used only with `native.auto: "on"`. */
33
+ analyzerPorts?: ReadonlySet<string>;
34
+ /** Why the analyzer cannot port a route, for config routes that ask for a port. */
35
+ analyzerBlockers?: ReadonlyMap<string, readonly string[]>;
36
+ }
37
+ interface FarmMobileScreens {
38
+ screens: Record<string, FarmMobileScreenDecision>;
39
+ /** Overridden settings, unused files, and ports nothing can build yet. */
40
+ warnings: string[];
41
+ }
42
+ /**
43
+ * The id a native screen registers under: the route under `app/`, route groups removed, such as
44
+ * `"app"` for `/` and `"app/notes/[id]"` for `/notes/[id]`. Never hand-written, so the shell,
45
+ * the native bundle, and the manifest cannot disagree.
46
+ */
47
+ declare function createFarmMobileModuleId(route: string): string;
48
+ declare function resolveFarmMobileScreens(options: FarmMobileScreensOptions): FarmMobileScreens;
49
+ type Node = {
50
+ type: string;
51
+ [key: string]: unknown;
52
+ };
53
+ type ParseProgram = (file: string, source: string) => {
54
+ body: Node[];
55
+ };
56
+ /**
57
+ * A page's `export const mobile = { ... }`, read from its source without running it. Returns
58
+ * undefined when the page has no such export. Only literal values are allowed.
59
+ */
60
+ declare function readFarmMobilePageExport(source: string, file: string, parse: ParseProgram, context?: {
61
+ os: FarmMobileOS;
62
+ }): FarmMobilePageConfig | undefined;
63
+
64
+ /**
65
+ * One navigator rule. The shell tests `pattern` against a link's decoded URL path, top to
66
+ * bottom, and uses the first match.
67
+ */
68
+ interface FarmMobileRouteRule {
69
+ /** The app route pattern the rule came from, such as `"/notes/[id]"`. */
70
+ route?: string;
71
+ pattern: string;
72
+ /** `"tab"` switches to tab `tab` instead of presenting a screen. */
73
+ presentation: FarmMobilePresentation | "tab";
74
+ tab?: number;
75
+ screen: FarmMobileScreen;
76
+ /** What decided `screen`: the page export, config, a screen file, the analyzer, or the default. */
77
+ source?: FarmMobileScreenSource;
78
+ /** Native module id derived from the route, such as `"app/notes/[id]"`. Not on web screens. */
79
+ module?: string;
80
+ /** Only when the page overrides the manifest's `prefetch`. */
81
+ prefetch?: FarmMobilePrefetch;
82
+ }
83
+ /** `.farm/output/mobile/farm-routes.json` (RFC 0004, 7.2). */
84
+ interface FarmMobileRouteManifest {
85
+ version: 1;
86
+ server: string;
87
+ /** Tab roots; `path` includes the base path. */
88
+ tabs: FarmMobileTab[];
89
+ /** Default for every rule; a rule's own `prefetch` wins. */
90
+ prefetch: FarmMobilePrefetch;
91
+ rules: FarmMobileRouteRule[];
92
+ }
93
+ interface FarmMobileRouteManifestOptions {
94
+ /** The app's page route patterns. */
95
+ routes: readonly string[];
96
+ /** Server origin; defaults to `mobile.server`. The CLI passes the dev server's in dev. */
97
+ server?: string;
98
+ basePath?: string;
99
+ i18n?: {
100
+ locales: readonly string[];
101
+ routing: FarmI18nRouting;
102
+ } | null;
103
+ /** Per-route screens; resolved from config alone (no page files) when omitted. */
104
+ screens?: Readonly<Record<string, FarmMobileScreenDecision>>;
105
+ /** The OS for the config-only fallback; defaults to `"android"`. */
106
+ os?: FarmMobileOS;
107
+ }
108
+ /**
109
+ * A regular expression, in the subset Kotlin, Swift, and JavaScript share, that matches the
110
+ * decoded URL paths the client router sends to `pattern`: the base path, an optional locale
111
+ * prefix, `[param]` as one segment, `[...rest]` as one or more, `[[...rest]]` as zero or more,
112
+ * route groups removed, and an optional trailing slash.
113
+ */
114
+ declare function createFarmMobileRoutePattern(pattern: string, options?: Pick<FarmMobileRouteManifestOptions, "basePath" | "i18n">): string;
115
+ /**
116
+ * The navigator manifest for a resolved `mobile` block: a rule for every page route, most
117
+ * specific first (the client router's order), then a catch-all push for other same-origin paths.
118
+ */
119
+ declare function createFarmMobileRouteManifest(mobile: ResolvedFarmMobileConfig, options: FarmMobileRouteManifestOptions): FarmMobileRouteManifest;
120
+
121
+ export { type FarmMobileRouteManifest as F, type FarmMobileRouteRule as a, type FarmMobileScreenSource as b, type FarmMobileScreenDecision as c, type FarmMobilePageExport as d, type FarmMobileRouteManifestOptions as e, type FarmMobileScreens as f, type FarmMobileScreensOptions as g, createFarmMobileModuleId as h, createFarmMobileRouteManifest as i, createFarmMobileRoutePattern as j, resolveFarmMobileScreens as k, readFarmMobilePageExport as r };
package/dist/routes.d.mts CHANGED
@@ -1,14 +1,13 @@
1
- import { v as FarmAppContext, w as PageProps, x as PluginContextProps, f as FarmRouteRuntimeConfig, M as Metadata, i as RouteModule, L as LayoutProps, y as FarmRouteRuntime, z as FarmRouteRegions, A as FarmRouteMaxDuration, P as ParsedRoute } from './client-plugins-BNBeyLMi.mjs';
1
+ import { v as FarmAppContext, w as PageProps, x as PluginContextProps, f as FarmRouteRuntimeConfig, M as Metadata, i as RouteModule, L as LayoutProps, y as FarmRouteRuntime, z as FarmRouteRegions, A as FarmRouteMaxDuration, P as ParsedRoute } from './client-plugins-D4RO59f0.mjs';
2
2
  import { ComponentType } from 'react';
3
3
  import { RouteDataCacheKey } from './cache.mjs';
4
4
  import { ServerFn } from './server-fn.mjs';
5
5
  import { FarmServerRendererRuntime } from './renderer.mjs';
6
- import './lifecycle-DK06VuKP.mjs';
6
+ import './lifecycle-C2aLBOwu.mjs';
7
7
  import './route-2_yXC6gv.mjs';
8
8
  import './endpoint-BkMSCRf6.mjs';
9
9
  import 'http';
10
10
  import './server-query.mjs';
11
- import './cache-invalidation-BD0z_lfu.mjs';
12
11
  import './server-fn-error-DrcH9cc1.mjs';
13
12
  import './types-BnIqOn9w.mjs';
14
13
  import 'db0';
@@ -19,15 +18,16 @@ import '@farming-labs/docs';
19
18
  import './observability-B2363jB6.mjs';
20
19
  import '@opentelemetry/api';
21
20
  import 'vite';
22
- import './workflows-Df1C_7OG.mjs';
21
+ import './workflows-CRMzQZ3k.mjs';
23
22
  import './cron.mjs';
24
23
  import './env.mjs';
25
24
  import './server-action-security.mjs';
26
- import './layers-D9fbe-rz.mjs';
25
+ import './layers-CcS42OGR.mjs';
27
26
  import 'rolldown/utils';
28
27
  import 'rolldown';
29
28
  import './image-config-CeDgNyX4.mjs';
30
- import './types--Wh02r5_.mjs';
29
+ import './types-C41ePjvP.mjs';
30
+ import './config-CnhyvvmT.mjs';
31
31
  import './types-DQnyD3VD.mjs';
32
32
  import './font.mjs';
33
33
  import './deployment.mjs';
package/dist/routes.d.ts CHANGED
@@ -1,14 +1,13 @@
1
- import { v as FarmAppContext, w as PageProps, x as PluginContextProps, f as FarmRouteRuntimeConfig, M as Metadata, i as RouteModule, L as LayoutProps, y as FarmRouteRuntime, z as FarmRouteRegions, A as FarmRouteMaxDuration, P as ParsedRoute } from './client-plugins-DFDQUI9Q.js';
1
+ import { v as FarmAppContext, w as PageProps, x as PluginContextProps, f as FarmRouteRuntimeConfig, M as Metadata, i as RouteModule, L as LayoutProps, y as FarmRouteRuntime, z as FarmRouteRegions, A as FarmRouteMaxDuration, P as ParsedRoute } from './client-plugins-BPfltM5m.js';
2
2
  import { ComponentType } from 'react';
3
3
  import { RouteDataCacheKey } from './cache.js';
4
4
  import { ServerFn } from './server-fn.js';
5
5
  import { FarmServerRendererRuntime } from './renderer.js';
6
- import './lifecycle-DK06VuKP.js';
6
+ import './lifecycle-C2aLBOwu.js';
7
7
  import './route-DFhZj6jN.js';
8
8
  import './endpoint-BgHn0lhl.js';
9
9
  import 'http';
10
10
  import './server-query.js';
11
- import './cache-invalidation-BD0z_lfu.js';
12
11
  import './server-fn-error-DrcH9cc1.js';
13
12
  import './types-BnIqOn9w.js';
14
13
  import 'db0';
@@ -19,15 +18,16 @@ import '@farming-labs/docs';
19
18
  import './observability-B2363jB6.js';
20
19
  import '@opentelemetry/api';
21
20
  import 'vite';
22
- import './workflows-Df1C_7OG.js';
21
+ import './workflows-CRMzQZ3k.js';
23
22
  import './cron.js';
24
23
  import './env.js';
25
24
  import './server-action-security.js';
26
- import './layers-D9fbe-rz.js';
25
+ import './layers-CcS42OGR.js';
27
26
  import 'rolldown/utils';
28
27
  import 'rolldown';
29
28
  import './image-config-CeDgNyX4.js';
30
- import './types--Wh02r5_.js';
29
+ import './types-C41ePjvP.js';
30
+ import './config-CnhyvvmT.js';
31
31
  import './types-DQnyD3VD.js';
32
32
  import './font.js';
33
33
  import './deployment.js';