@farm.js/core 0.1.51-beta.2 → 0.1.60

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 (321) hide show
  1. package/dist/{agent-mcp-handler-WWCC4GLG.mjs → agent-mcp-handler-7QMX2LUY.mjs} +7 -7
  2. package/dist/agent-mcp-handler-OV4WRFBL.cjs +18 -0
  3. package/dist/{agent-mcp.d-Z5DuwrqW.d.mts → agent-mcp.d-C-2S9bnP.d.mts} +1 -1
  4. package/dist/{agent-mcp.d-CR5Ov83o.d.ts → agent-mcp.d-SIoCUP1I.d.ts} +1 -1
  5. package/dist/agent-runtime.cjs +5 -5
  6. package/dist/agent-runtime.d.mts +2 -2
  7. package/dist/agent-runtime.d.ts +2 -2
  8. package/dist/agent-runtime.mjs +4 -4
  9. package/dist/{analyzer-Z6TNEAET.mjs → analyzer-22BEYV7S.mjs} +126 -12
  10. package/dist/{analyzer-T76CN3S7.cjs → analyzer-LCSI3NSH.cjs} +132 -18
  11. package/dist/api/client.cjs +5 -4
  12. package/dist/api/client.d.mts +1 -1
  13. package/dist/api/client.d.ts +1 -1
  14. package/dist/api/client.mjs +3 -2
  15. package/dist/api/client.native.cjs +45 -0
  16. package/dist/api/client.native.d.mts +23 -0
  17. package/dist/api/client.native.d.ts +23 -0
  18. package/dist/api/client.native.mjs +45 -0
  19. package/dist/api/route-manager.cjs +7 -7
  20. package/dist/api/route-manager.d.mts +4 -4
  21. package/dist/api/route-manager.d.ts +4 -4
  22. package/dist/api/route-manager.mjs +6 -6
  23. package/dist/api/runtime.cjs +5 -5
  24. package/dist/api/runtime.d.mts +3 -3
  25. package/dist/api/runtime.d.ts +3 -3
  26. package/dist/api/runtime.mjs +4 -4
  27. package/dist/{api-client.d-CeA6tNA6.d.mts → api-client.d-BNLXNCXJ.d.mts} +1 -1
  28. package/dist/{api-client.d-BWcqZciH.d.ts → api-client.d-ddQBNGtu.d.ts} +1 -1
  29. package/dist/api.cjs +11 -11
  30. package/dist/api.d.mts +5 -5
  31. package/dist/api.d.ts +5 -5
  32. package/dist/api.mjs +10 -10
  33. package/dist/{app-manifest.d-CAHkOBFa.d.mts → app-manifest.d-DrSAHskY.d.mts} +1 -1
  34. package/dist/{app-manifest.d-DiWr_Jfx.d.ts → app-manifest.d-Tb3CJpL4.d.ts} +1 -1
  35. package/dist/app-markdown.cjs +7 -7
  36. package/dist/app-markdown.d.mts +3 -3
  37. package/dist/app-markdown.d.ts +3 -3
  38. package/dist/app-markdown.mjs +6 -6
  39. package/dist/{app.d-DmapqkbV.d.ts → app.d-CmWlYpZJ.d.ts} +9 -4
  40. package/dist/{app.d-BfgJCsTQ.d.mts → app.d-D6QQM_kk.d.mts} +9 -4
  41. package/dist/{chunk-SN5VSO3Q.mjs → chunk-25T5VXOE.mjs} +7 -9
  42. package/dist/{chunk-GUJTVM36.cjs → chunk-2FRLSDBT.cjs} +1 -1
  43. package/dist/{chunk-LM2YOGDK.mjs → chunk-2I6PUKWJ.mjs} +1 -1
  44. package/dist/{chunk-EIMK7D2D.mjs → chunk-2KTYMMWT.mjs} +34 -4
  45. package/dist/{chunk-B5BBTPJQ.cjs → chunk-2OF5RPVU.cjs} +14 -14
  46. package/dist/chunk-37PYUEK5.mjs +533 -0
  47. package/dist/chunk-3HLQTOVU.cjs +6 -0
  48. package/dist/{chunk-VSLM6BHX.cjs → chunk-3OJNNCDL.cjs} +9 -9
  49. package/dist/{chunk-X3JNB2TB.mjs → chunk-3PX4AIXO.mjs} +36 -5
  50. package/dist/{chunk-UQHIWZZ6.cjs → chunk-3TL3AH25.cjs} +12 -6
  51. package/dist/chunk-3YMLUNL2.cjs +251 -0
  52. package/dist/chunk-4JTQPOKO.cjs +137 -0
  53. package/dist/{chunk-QXPSWMUD.cjs → chunk-4P23B7DU.cjs} +5 -5
  54. package/dist/{chunk-YVJV7Q2X.mjs → chunk-55U5QIXQ.mjs} +1 -1
  55. package/dist/{chunk-5N7QAGEA.cjs → chunk-5JNUYGNF.cjs} +37 -7
  56. package/dist/{chunk-NJLTQR5P.cjs → chunk-6BJJYOFL.cjs} +7 -7
  57. package/dist/chunk-6UUH4N4J.mjs +251 -0
  58. package/dist/{chunk-2NHOYYUT.mjs → chunk-7H45IJWO.mjs} +2 -2
  59. package/dist/{chunk-NN3MOPSI.mjs → chunk-A2MN5PQJ.mjs} +7 -7
  60. package/dist/{chunk-KY32FWK7.mjs → chunk-BHJAYPYU.mjs} +2 -2
  61. package/dist/{chunk-VAHBCI6X.mjs → chunk-BQWBHWEW.mjs} +26 -1
  62. package/dist/{chunk-KJMWAUKE.mjs → chunk-C7GJDVN4.mjs} +1 -1
  63. package/dist/{chunk-OYNNA4DD.cjs → chunk-CBKRS3M4.cjs} +9 -9
  64. package/dist/{chunk-I2DQGS56.cjs → chunk-CBOEJ5Z4.cjs} +39 -41
  65. package/dist/{chunk-BOVGCUDZ.cjs → chunk-CI4UNQHO.cjs} +2 -2
  66. package/dist/{chunk-S5AQ7CAC.cjs → chunk-CNNBFGL5.cjs} +39 -14
  67. package/dist/chunk-D2X5MUF5.cjs +1457 -0
  68. package/dist/{chunk-LEIXUFJN.cjs → chunk-D4MRNBVF.cjs} +10 -9
  69. package/dist/{chunk-2KVDHNQS.mjs → chunk-D7LTCK3U.mjs} +2 -2
  70. package/dist/{chunk-J3LBO2O4.cjs → chunk-DPJ66FSI.cjs} +22 -22
  71. package/dist/{chunk-NYQSC4DX.cjs → chunk-DZPR2W6U.cjs} +5 -5
  72. package/dist/{chunk-GW4YUIHW.mjs → chunk-E72UD6ME.mjs} +1 -1
  73. package/dist/chunk-EFZGB7JC.cjs +114 -0
  74. package/dist/{chunk-XXXRRVY6.mjs → chunk-EGVC4LIG.mjs} +5 -5
  75. package/dist/{chunk-72NBDVWQ.mjs → chunk-EXUONJYV.mjs} +3 -3
  76. package/dist/{chunk-VS7EHLLW.mjs → chunk-EZ34EHQP.mjs} +1 -1
  77. package/dist/{chunk-FM2UEKS2.mjs → chunk-F6Y7ZAPQ.mjs} +2 -2
  78. package/dist/{chunk-LMFJCXDD.mjs → chunk-FN5UEC7I.mjs} +1 -1
  79. package/dist/{chunk-E6LTONL4.mjs → chunk-FORSVMEJ.mjs} +2 -2
  80. package/dist/{chunk-6CYQQQGR.mjs → chunk-HPWB57PZ.mjs} +1 -1
  81. package/dist/{chunk-Y2G5SJFB.mjs → chunk-IFHPDLIS.mjs} +1 -1
  82. package/dist/{chunk-GNJIYJMS.cjs → chunk-IFXSBJPN.cjs} +16 -16
  83. package/dist/{chunk-74Z5KX4A.mjs → chunk-ILMTRGBG.mjs} +309 -56
  84. package/dist/{chunk-NXBHYO7S.cjs → chunk-JBK7UJOI.cjs} +14 -11
  85. package/dist/chunk-JI5D7MXY.mjs +137 -0
  86. package/dist/{chunk-QXJADAQB.cjs → chunk-JIBEFLQ7.cjs} +6 -2
  87. package/dist/{chunk-LZ4SB57H.mjs → chunk-JPIUGDK4.mjs} +1 -1
  88. package/dist/{chunk-Y3N5BFRJ.mjs → chunk-JSDV2NUN.mjs} +1 -1
  89. package/dist/{chunk-IRSS4HS4.mjs → chunk-K3RU5MOR.mjs} +1 -1
  90. package/dist/chunk-KPOMS5RO.cjs +237 -0
  91. package/dist/{chunk-LAZK6UV7.mjs → chunk-KVW2M6PI.mjs} +1 -1
  92. package/dist/{chunk-5IONBVJY.cjs → chunk-LB3DPQP6.cjs} +22 -22
  93. package/dist/{chunk-CZ35L6PL.mjs → chunk-LJVNMGE3.mjs} +10 -4
  94. package/dist/chunk-LLZSYFOM.mjs +6 -0
  95. package/dist/{chunk-X2AMN2WV.cjs → chunk-LQNW3ABP.cjs} +10 -10
  96. package/dist/{chunk-6ONBZGVH.cjs → chunk-LRB5OVRT.cjs} +3 -3
  97. package/dist/{chunk-WJFFPXCV.cjs → chunk-LT4VAF5Z.cjs} +12 -10
  98. package/dist/{chunk-F6TLUMH7.mjs → chunk-M53MIIXY.mjs} +1 -1
  99. package/dist/{chunk-HIFIG6HL.cjs → chunk-MEQN6DDA.cjs} +5 -5
  100. package/dist/{chunk-XLRLSTJ6.cjs → chunk-MGKW5XZE.cjs} +7 -7
  101. package/dist/{chunk-B3GZAQSC.cjs → chunk-MHLNWRCJ.cjs} +3 -3
  102. package/dist/{chunk-5ENW27SL.mjs → chunk-MMK4MZUN.mjs} +1 -1
  103. package/dist/{chunk-DTU4PX7V.cjs → chunk-MTWXOEI4.cjs} +927 -629
  104. package/dist/chunk-NHD7BAKD.mjs +1457 -0
  105. package/dist/{chunk-NPQLMP7M.cjs → chunk-NQJDO7K7.cjs} +32 -31
  106. package/dist/{chunk-76GHW3WI.cjs → chunk-O27PLNQZ.cjs} +10 -10
  107. package/dist/{chunk-PIHKO25G.mjs → chunk-OM7WILES.mjs} +1 -1
  108. package/dist/{chunk-7UPCJDB5.mjs → chunk-PCXIJKPM.mjs} +8 -8
  109. package/dist/{chunk-IWFV5ZED.cjs → chunk-PMJSG4JS.cjs} +1 -1
  110. package/dist/{chunk-JATTVAHA.cjs → chunk-PRFNLQSP.cjs} +4 -4
  111. package/dist/{chunk-SBABQKPT.cjs → chunk-QAS7KE7J.cjs} +7 -7
  112. package/dist/chunk-QGOZLGVP.mjs +0 -0
  113. package/dist/{chunk-VQJYGZNX.cjs → chunk-QMNWKQL4.cjs} +1 -1
  114. package/dist/{chunk-XB24LZWI.cjs → chunk-QRX4JRBO.cjs} +3 -3
  115. package/dist/{chunk-LNM57D3H.cjs → chunk-R53QDV6T.cjs} +4 -4
  116. package/dist/{chunk-SUV6YO4Q.cjs → chunk-RAWWCDCT.cjs} +5 -5
  117. package/dist/{chunk-LJDIFIJ2.mjs → chunk-RPUJHJHE.mjs} +4 -4
  118. package/dist/{chunk-G2KTRMWA.mjs → chunk-RSEAX5MW.mjs} +4 -0
  119. package/dist/chunk-SJRCWF4Z.mjs +237 -0
  120. package/dist/{chunk-IBSAYAWB.mjs → chunk-SX7EECTS.mjs} +8 -5
  121. package/dist/{chunk-KBRZAYI7.mjs → chunk-T4TBK5NY.mjs} +2 -2
  122. package/dist/{chunk-4SSRBCBR.mjs → chunk-T7I62A4C.mjs} +619 -321
  123. package/dist/{chunk-E36C43IX.cjs → chunk-U4BJKNIR.cjs} +6 -6
  124. package/dist/{chunk-YU42A5MA.cjs → chunk-UDJY2ZGY.cjs} +533 -280
  125. package/dist/{chunk-SHS6KXOZ.mjs → chunk-UR25Z5Z6.mjs} +1 -1
  126. package/dist/{chunk-WZW6LEHM.cjs → chunk-UYSTTPYJ.cjs} +1590 -1019
  127. package/dist/{chunk-KRRZJ77U.mjs → chunk-UZZ6IEQP.mjs} +3 -3
  128. package/dist/{chunk-EKJYE4Y7.cjs → chunk-VGG74PSU.cjs} +25 -25
  129. package/dist/{chunk-CTM4SPB3.mjs → chunk-VPTWKOCY.mjs} +20 -19
  130. package/dist/{chunk-UN6N623E.mjs → chunk-VQJHT2ND.mjs} +2 -2
  131. package/dist/{chunk-SJ23LJ3N.cjs → chunk-VVTJTMGQ.cjs} +3 -3
  132. package/dist/{chunk-KHXAJ2KA.cjs → chunk-W2RZ73IU.cjs} +12 -12
  133. package/dist/{chunk-JWI5PUO2.mjs → chunk-W2ZXMMHA.mjs} +2 -1
  134. package/dist/{chunk-BLD5GVCG.mjs → chunk-W6QLRQ3V.mjs} +1 -1
  135. package/dist/{chunk-AV26KHTG.mjs → chunk-X2CZTWQA.mjs} +2 -2
  136. package/dist/chunk-XPIPMWY3.cjs +1 -0
  137. package/dist/chunk-XTG73QZA.cjs +533 -0
  138. package/dist/{chunk-XPMC4E2G.cjs → chunk-XVSBALOY.cjs} +3 -3
  139. package/dist/{chunk-XYL4HSVC.cjs → chunk-YI6FKTTN.cjs} +38 -7
  140. package/dist/{chunk-N77JBPLC.mjs → chunk-YSXTNSXS.mjs} +10 -8
  141. package/dist/{chunk-EHB77D5U.cjs → chunk-ZDAEHG2O.cjs} +3 -3
  142. package/dist/{chunk-PMKUU273.mjs → chunk-ZFUKPWFC.mjs} +1226 -655
  143. package/dist/{chunk-E73PGHSR.mjs → chunk-ZMHAFH4R.mjs} +8 -8
  144. package/dist/{chunk-ZOWNWHK6.cjs → chunk-ZNH6NR3H.cjs} +2 -2
  145. package/dist/chunk-ZNXTU4YH.mjs +114 -0
  146. package/dist/{chunk-PFV2KPDZ.cjs → chunk-ZOYKJBP5.cjs} +3 -3
  147. package/dist/{chunk-CECUDGXQ.cjs → chunk-ZP32GNJQ.cjs} +13 -13
  148. package/dist/{chunk-72D2NX77.mjs → chunk-ZZ2QKCKW.mjs} +1 -1
  149. package/dist/{client-plugins.d-Bx3FXpqm.d.mts → client-plugins.d-CgQQ-EAv.d.mts} +25 -4
  150. package/dist/{client-plugins.d-TiLbS5j4.d.ts → client-plugins.d-vXrbcfJ1.d.ts} +25 -4
  151. package/dist/client-plugins.d.mts +2 -2
  152. package/dist/client-plugins.d.ts +2 -2
  153. package/dist/client.cjs +9 -9
  154. package/dist/client.d.mts +9 -9
  155. package/dist/client.d.ts +9 -9
  156. package/dist/client.mjs +9 -9
  157. package/dist/{config.d-iRPI16ku.d.mts → config.d-DqZkLwef.d.mts} +146 -1
  158. package/dist/{config.d-iRPI16ku.d.ts → config.d-DqZkLwef.d.ts} +146 -1
  159. package/dist/config.d.mts +2 -2
  160. package/dist/config.d.ts +2 -2
  161. package/dist/cron.cjs +3 -3
  162. package/dist/cron.d.mts +10 -0
  163. package/dist/cron.d.ts +10 -0
  164. package/dist/cron.mjs +2 -2
  165. package/dist/desktop.d.mts +3 -3
  166. package/dist/desktop.d.ts +3 -3
  167. package/dist/{devtools-UQLDAOEI.mjs → devtools-KQZ6SRCJ.mjs} +16 -16
  168. package/dist/{devtools-6XWCZIGO.cjs → devtools-UF6JYHUN.cjs} +18 -18
  169. package/dist/docs.cjs +19 -19
  170. package/dist/docs.d.mts +3 -3
  171. package/dist/docs.d.ts +3 -3
  172. package/dist/docs.mjs +18 -18
  173. package/dist/index.cjs +99 -95
  174. package/dist/{index.d-yueUNipJ.d.ts → index.d-DlCELfhf.d.ts} +1 -1
  175. package/dist/{index.d-YxJ2AiDF.d.mts → index.d-Dmfb7Kb_.d.mts} +1 -1
  176. package/dist/index.d.mts +18 -18
  177. package/dist/index.d.ts +18 -18
  178. package/dist/index.mjs +139 -135
  179. package/dist/integrations.cjs +5 -5
  180. package/dist/integrations.d.mts +2 -2
  181. package/dist/integrations.d.ts +2 -2
  182. package/dist/integrations.mjs +4 -4
  183. package/dist/internal/app-markdown-runtime.cjs +6 -6
  184. package/dist/internal/app-markdown-runtime.d.mts +3 -3
  185. package/dist/internal/app-markdown-runtime.d.ts +3 -3
  186. package/dist/internal/app-markdown-runtime.mjs +5 -5
  187. package/dist/internal/build-runtime.cjs +52 -50
  188. package/dist/internal/build-runtime.d.mts +4 -4
  189. package/dist/internal/build-runtime.d.ts +4 -4
  190. package/dist/internal/build-runtime.mjs +51 -49
  191. package/dist/internal/cli-runtime.cjs +28 -28
  192. package/dist/internal/cli-runtime.mjs +28 -28
  193. package/dist/internal/client-error-overlay.cjs +4 -4
  194. package/dist/internal/client-error-overlay.mjs +1 -1
  195. package/dist/internal/client-runtime.cjs +20 -15
  196. package/dist/internal/client-runtime.d.mts +5 -5
  197. package/dist/internal/client-runtime.d.ts +5 -5
  198. package/dist/internal/client-runtime.mjs +8 -3
  199. package/dist/internal/compression-runtime.d.mts +2 -2
  200. package/dist/internal/compression-runtime.d.ts +2 -2
  201. package/dist/internal/config-runtime.cjs +18 -18
  202. package/dist/internal/config-runtime.d.mts +119 -7
  203. package/dist/internal/config-runtime.d.ts +119 -7
  204. package/dist/internal/config-runtime.mjs +17 -17
  205. package/dist/internal/infra-analytics-runtime.cjs +11 -11
  206. package/dist/internal/infra-analytics-runtime.mjs +9 -9
  207. package/dist/internal/islands-boot.cjs +211 -0
  208. package/dist/internal/islands-boot.d.mts +8 -0
  209. package/dist/internal/islands-boot.d.ts +8 -0
  210. package/dist/internal/islands-boot.mjs +211 -0
  211. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  212. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  213. package/dist/internal/production-runtime.cjs +42 -28
  214. package/dist/internal/production-runtime.d.mts +50 -12
  215. package/dist/internal/production-runtime.d.ts +50 -12
  216. package/dist/internal/production-runtime.mjs +52 -38
  217. package/dist/markdown.cjs +7 -5
  218. package/dist/markdown.d.mts +2 -2
  219. package/dist/markdown.d.ts +2 -2
  220. package/dist/markdown.mjs +6 -4
  221. package/dist/middleware.cjs +10 -10
  222. package/dist/middleware.d.mts +4 -4
  223. package/dist/middleware.d.ts +4 -4
  224. package/dist/middleware.mjs +9 -9
  225. package/dist/mobile.d.mts +43 -5
  226. package/dist/mobile.d.ts +43 -5
  227. package/dist/modules-VHD7BELU.mjs +13 -0
  228. package/dist/modules-WT5D3AWY.cjs +13 -0
  229. package/dist/native-specs-BD7HOTMJ.mjs +15 -0
  230. package/dist/native-specs-IQQRJOOW.cjs +15 -0
  231. package/dist/native-tree-6G5O53O3.cjs +27 -0
  232. package/dist/native-tree-VWNW2MQ2.mjs +27 -0
  233. package/dist/native.cjs +87 -0
  234. package/dist/native.d.mts +72 -0
  235. package/dist/native.d.ts +72 -0
  236. package/dist/native.mjs +87 -0
  237. package/dist/{navigation-delegate.d-HnDXhlyP.d.mts → navigation-delegate.d-CnOTWOyi.d.mts} +1 -1
  238. package/dist/{navigation-delegate.d-BY1e_Xrh.d.ts → navigation-delegate.d-JXx40JzR.d.ts} +1 -1
  239. package/dist/navigation.cjs +5 -5
  240. package/dist/navigation.d.mts +5 -5
  241. package/dist/navigation.d.ts +5 -5
  242. package/dist/navigation.mjs +4 -4
  243. package/dist/{nitro-R444AF3O.mjs → nitro-FLN6DRGJ.mjs} +7 -7
  244. package/dist/{nitro-CK7M4RMY.cjs → nitro-HXAZZQKY.cjs} +12 -12
  245. package/dist/plugin.cjs +43 -42
  246. package/dist/plugin.d.mts +5 -4
  247. package/dist/plugin.d.ts +5 -4
  248. package/dist/plugin.mjs +42 -41
  249. package/dist/port-C6GBH4C6.cjs +419 -0
  250. package/dist/port-WOOQ3V56.mjs +419 -0
  251. package/dist/{production-runtime.d-BpJUDzP8.d.mts → production-runtime.d-CP5s6RuY.d.mts} +1 -1
  252. package/dist/{production-runtime.d-lMjvE9cf.d.ts → production-runtime.d-N-cE3pmy.d.ts} +1 -1
  253. package/dist/{programmatic-routes-client.d-BlFp5hv4.d.ts → programmatic-routes-client.d-CLG2N1yH.d.ts} +2 -2
  254. package/dist/{programmatic-routes-client.d-6CGQ3TCk.d.mts → programmatic-routes-client.d-CPbNqtIi.d.mts} +2 -2
  255. package/dist/query/client.cjs +6 -6
  256. package/dist/query/client.mjs +2 -2
  257. package/dist/{render-plan.d-DhP0mTHF.d.ts → render-plan.d-B9lAP3uX.d.ts} +1 -1
  258. package/dist/{render-plan.d-BH9edqKs.d.mts → render-plan.d-DZ-qjjdG.d.mts} +1 -1
  259. package/dist/renderer/react/server.cjs +2 -2
  260. package/dist/renderer/react/server.mjs +3 -3
  261. package/dist/renderer-client.cjs +6 -6
  262. package/dist/renderer-client.d.mts +5 -5
  263. package/dist/renderer-client.d.ts +5 -5
  264. package/dist/renderer-client.mjs +2 -2
  265. package/dist/{request.d-BVZrsR1v.d.ts → request.d-BiicaNxb.d.ts} +1 -1
  266. package/dist/{request.d-DJFRdKi8.d.mts → request.d-DV0oeUit.d.mts} +1 -1
  267. package/dist/request.d.mts +3 -3
  268. package/dist/request.d.ts +3 -3
  269. package/dist/{route-rendering.d-Bpmw7PED.d.mts → route-rendering.d-BrIKA51A.d.mts} +1 -1
  270. package/dist/{route-rendering.d-B00JtK_-.d.ts → route-rendering.d-Iss0C7GR.d.ts} +1 -1
  271. package/dist/{router.d-Bd1x9XxQ.d.ts → router.d-DjGn_al7.d.ts} +1 -1
  272. package/dist/{router.d-e0jQ3jQ-.d.mts → router.d-mNTbOGV_.d.mts} +1 -1
  273. package/dist/{routes.d-D96Dq9lz.d.ts → routes.d-BKSjHuH9.d.ts} +27 -4
  274. package/dist/{routes.d-Cmv8TgVq.d.mts → routes.d-qd8Qf4LG.d.mts} +27 -4
  275. package/dist/routes.d.mts +2 -2
  276. package/dist/routes.d.ts +2 -2
  277. package/dist/{rsc-pipeline-DX4OC5FN.cjs → rsc-pipeline-SVLBTY7H.cjs} +21 -21
  278. package/dist/{rsc-pipeline-ZQ4CTVEG.mjs → rsc-pipeline-WBLBDQXA.mjs} +20 -20
  279. package/dist/{runtime-NQ3EDSA7.cjs → runtime-DGUOWSMF.cjs} +307 -48
  280. package/dist/{runtime-NPDRDV6R.mjs → runtime-HFZTVNFF.mjs} +298 -39
  281. package/dist/{runtime.d-CgB3IJDq.d.mts → runtime.d-BNVbojF1.d.mts} +1 -1
  282. package/dist/{runtime.d-D-td-RR3.d.ts → runtime.d-Bm_4hP5T.d.ts} +1 -1
  283. package/dist/{schema-dev-notice-F6QYSOAI.mjs → schema-dev-notice-JMXEQWIQ.mjs} +3 -3
  284. package/dist/{schema-dev-notice-UU7DMZEU.cjs → schema-dev-notice-PLBFDTOF.cjs} +6 -6
  285. package/dist/server-fn-client.d.mts +1 -1
  286. package/dist/server-fn-client.d.ts +1 -1
  287. package/dist/server-plugins.cjs +1 -1
  288. package/dist/server-plugins.d.mts +3 -3
  289. package/dist/server-plugins.d.ts +3 -3
  290. package/dist/server-plugins.mjs +1 -1
  291. package/dist/server.cjs +82 -81
  292. package/dist/server.d.mts +12 -11
  293. package/dist/server.d.ts +12 -11
  294. package/dist/server.mjs +65 -64
  295. package/dist/session-2Q72D4QV.cjs +23 -0
  296. package/dist/{session-IGEDQ5PY.mjs → session-QZXZOPR2.mjs} +2 -2
  297. package/dist/shell-render.d-CG6bPiiA.d.mts +41 -0
  298. package/dist/shell-render.d-CG6bPiiA.d.ts +41 -0
  299. package/dist/{spa-router.d-CO01mVOM.d.ts → spa-router.d-DAtnNoBe.d.ts} +11 -2
  300. package/dist/{spa-router.d-BWDhS0FK.d.mts → spa-router.d-DHDoXxDE.d.mts} +11 -2
  301. package/dist/testing.cjs +7 -7
  302. package/dist/testing.d.mts +2 -2
  303. package/dist/testing.d.ts +2 -2
  304. package/dist/testing.mjs +6 -6
  305. package/dist/{utils.d-B77__yh8.d.ts → utils.d-DwZ-KLSB.d.ts} +7 -1
  306. package/dist/{utils.d-DRDazhCA.d.mts → utils.d-uKZcKJk4.d.mts} +7 -1
  307. package/dist/version.cjs +2 -2
  308. package/dist/version.mjs +1 -1
  309. package/dist/vite.cjs +43 -42
  310. package/dist/vite.d.mts +17 -6
  311. package/dist/vite.d.ts +17 -6
  312. package/dist/vite.mjs +42 -41
  313. package/dist/workflows.cjs +3 -3
  314. package/dist/workflows.mjs +2 -2
  315. package/package.json +17 -3
  316. package/dist/agent-mcp-handler-RT3COCEL.cjs +0 -18
  317. package/dist/session-AAU7RNRO.cjs +0 -23
  318. package/dist/{chunk-7FVVQEVL.cjs → chunk-4BS3HSY7.cjs} +2 -2
  319. package/dist/{chunk-N7JQXQAV.cjs → chunk-5OJVKXFV.cjs} +2 -2
  320. package/dist/{chunk-WSDKXV4E.mjs → chunk-72KABRWN.mjs} +4 -4
  321. package/dist/{chunk-C3BOESDW.mjs → chunk-B4CWYGCG.mjs} +3 -3
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunkKPOMS5ROcjs = require('./chunk-KPOMS5RO.cjs');
6
+ require('./chunk-3YMLUNL2.cjs');
7
+ require('./chunk-YKHRCY4T.cjs');
8
+ require('./chunk-BTZ5O6VM.cjs');
9
+
10
+
11
+
12
+
13
+ exports.readFarmMobileWebModules = _chunkKPOMS5ROcjs.readFarmMobileWebModules; exports.resolveFarmMobileModules = _chunkKPOMS5ROcjs.resolveFarmMobileModules; exports.scanFarmMobileAppModules = _chunkKPOMS5ROcjs.scanFarmMobileAppModules;
@@ -0,0 +1,15 @@
1
+ import {
2
+ createFarmNativeModuleTypeDeclarations,
3
+ hasFarmNativeCodegen,
4
+ readFarmNativeWebSpec,
5
+ renderFarmNativeMethod,
6
+ renderFarmNativeType
7
+ } from "./chunk-6UUH4N4J.mjs";
8
+ import "./chunk-Y6FXYEAI.mjs";
9
+ export {
10
+ createFarmNativeModuleTypeDeclarations,
11
+ hasFarmNativeCodegen,
12
+ readFarmNativeWebSpec,
13
+ renderFarmNativeMethod,
14
+ renderFarmNativeType
15
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+ var _chunk3YMLUNL2cjs = require('./chunk-3YMLUNL2.cjs');
8
+ require('./chunk-BTZ5O6VM.cjs');
9
+
10
+
11
+
12
+
13
+
14
+
15
+ exports.createFarmNativeModuleTypeDeclarations = _chunk3YMLUNL2cjs.createFarmNativeModuleTypeDeclarations; exports.hasFarmNativeCodegen = _chunk3YMLUNL2cjs.hasFarmNativeCodegen; exports.readFarmNativeWebSpec = _chunk3YMLUNL2cjs.readFarmNativeWebSpec; exports.renderFarmNativeMethod = _chunk3YMLUNL2cjs.renderFarmNativeMethod; exports.renderFarmNativeType = _chunk3YMLUNL2cjs.renderFarmNativeType;
@@ -0,0 +1,27 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunkXTG73QZAcjs = require('./chunk-XTG73QZA.cjs');
7
+ require('./chunk-D2X5MUF5.cjs');
8
+
9
+
10
+ var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
11
+ require('./chunk-LT4VAF5Z.cjs');
12
+ require('./chunk-LRB5OVRT.cjs');
13
+ require('./chunk-EVIWKPJV.cjs');
14
+ require('./chunk-2OF5RPVU.cjs');
15
+ require('./chunk-CA7DNRHO.cjs');
16
+ require('./chunk-PMJSG4JS.cjs');
17
+ require('./chunk-A25FXJ7D.cjs');
18
+ require('./chunk-D22BUQKW.cjs');
19
+ require('./chunk-YTVSWXEZ.cjs');
20
+ require('./chunk-BTZ5O6VM.cjs');
21
+
22
+
23
+
24
+
25
+
26
+
27
+ exports.FARM_NATIVE_TREE_CONTENT_TYPE = _chunk3HLQTOVUcjs.FARM_NATIVE_TREE_CONTENT_TYPE; exports.createFarmNativeTree = _chunkXTG73QZAcjs.createFarmNativeTree; exports.createFarmNativeTreeResponse = _chunkXTG73QZAcjs.createFarmNativeTreeResponse; exports.farmRequestWantsNativeTree = _chunkXTG73QZAcjs.farmRequestWantsNativeTree; exports.readFarmPageStylesheets = _chunkXTG73QZAcjs.readFarmPageStylesheets;
@@ -0,0 +1,27 @@
1
+ import {
2
+ createFarmNativeTree,
3
+ createFarmNativeTreeResponse,
4
+ farmRequestWantsNativeTree,
5
+ readFarmPageStylesheets
6
+ } from "./chunk-37PYUEK5.mjs";
7
+ import "./chunk-NHD7BAKD.mjs";
8
+ import {
9
+ FARM_NATIVE_TREE_CONTENT_TYPE
10
+ } from "./chunk-LLZSYFOM.mjs";
11
+ import "./chunk-YSXTNSXS.mjs";
12
+ import "./chunk-C7GJDVN4.mjs";
13
+ import "./chunk-2DA7CLY7.mjs";
14
+ import "./chunk-2I6PUKWJ.mjs";
15
+ import "./chunk-GUZC226X.mjs";
16
+ import "./chunk-W6QLRQ3V.mjs";
17
+ import "./chunk-LM55GS4R.mjs";
18
+ import "./chunk-SF3JB56B.mjs";
19
+ import "./chunk-AYP2YFVN.mjs";
20
+ import "./chunk-Y6FXYEAI.mjs";
21
+ export {
22
+ FARM_NATIVE_TREE_CONTENT_TYPE,
23
+ createFarmNativeTree,
24
+ createFarmNativeTreeResponse,
25
+ farmRequestWantsNativeTree,
26
+ readFarmPageStylesheets
27
+ };
@@ -0,0 +1,87 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('./chunk-BTZ5O6VM.cjs');
2
+
3
+ // src/native.ts
4
+ var UNAVAILABLE = "native_unavailable";
5
+ var NativeUnavailableError = class extends Error {
6
+ constructor(module, method, options) {
7
+ super(
8
+ `native.${module}.${method}() is not available here. Web screens reach a native module only inside the Android shell, when mobile.modules.${module}.web is true in farm.config.ts. Check native.${module}.available() first, and show the web alternative when it is false.`
9
+ );
10
+ this.name = "NativeUnavailableError";
11
+ this.code = UNAVAILABLE;
12
+ this.module = module;
13
+ this.method = method;
14
+ this.cause = _optionalChain([options, 'optionalAccess', _ => _.cause]);
15
+ }
16
+ };
17
+ var NativeCallError = class extends Error {
18
+ constructor(module, method, code, message, options) {
19
+ super(`native.${module}.${method}() failed (${code}): ${message}`);
20
+ this.name = "NativeCallError";
21
+ this.cause = _optionalChain([options, 'optionalAccess', _2 => _2.cause]);
22
+ this.code = code;
23
+ this.module = module;
24
+ this.method = method;
25
+ }
26
+ };
27
+ function bridge() {
28
+ const candidate = globalThis.__farmBridge;
29
+ return candidate && typeof candidate.call === "function" && typeof candidate.has === "function" ? candidate : void 0;
30
+ }
31
+ function isAvailable(module) {
32
+ return _optionalChain([bridge, 'call', _3 => _3(), 'optionalAccess', _4 => _4.has, 'call', _5 => _5(module)]) === true;
33
+ }
34
+ async function invoke(module, method, input) {
35
+ const shell = bridge();
36
+ if (!shell || !shell.has(module)) throw new NativeUnavailableError(module, method);
37
+ const args = [...input];
38
+ while (args.length > 0 && args[args.length - 1] === void 0) args.pop();
39
+ try {
40
+ return await shell.call(module, method, args);
41
+ } catch (error) {
42
+ const code = _optionalChain([error, 'optionalAccess', _6 => _6.code]);
43
+ if (code === UNAVAILABLE) throw new NativeUnavailableError(module, method, { cause: error });
44
+ throw new NativeCallError(
45
+ module,
46
+ method,
47
+ typeof code === "string" && code ? code : "native_error",
48
+ String(_nullishCoalesce(_optionalChain([error, 'optionalAccess', _7 => _7.message]), () => ( error))),
49
+ { cause: error }
50
+ );
51
+ }
52
+ }
53
+ var RESERVED = /* @__PURE__ */ new Set(["then", "toJSON", "constructor", "$$typeof"]);
54
+ function createModule(module) {
55
+ const methods = /* @__PURE__ */ new Map();
56
+ return new Proxy(/* @__PURE__ */ Object.create(null), {
57
+ get(_target, method) {
58
+ if (typeof method !== "string" || RESERVED.has(method)) return void 0;
59
+ let fn = methods.get(method);
60
+ if (!fn) {
61
+ fn = method === "available" ? () => isAvailable(module) : (...args) => invoke(module, method, args);
62
+ methods.set(method, fn);
63
+ }
64
+ return fn;
65
+ }
66
+ });
67
+ }
68
+ function createNative() {
69
+ const modules = /* @__PURE__ */ new Map();
70
+ return new Proxy(/* @__PURE__ */ Object.create(null), {
71
+ get(_target, module) {
72
+ if (typeof module !== "string" || RESERVED.has(module)) return void 0;
73
+ let entry = modules.get(module);
74
+ if (!entry) {
75
+ entry = createModule(module);
76
+ modules.set(module, entry);
77
+ }
78
+ return entry;
79
+ }
80
+ });
81
+ }
82
+ var native = /* @__PURE__ */ createNative();
83
+
84
+
85
+
86
+
87
+ exports.NativeCallError = NativeCallError; exports.NativeUnavailableError = NativeUnavailableError; exports.native = native;
@@ -0,0 +1,72 @@
1
+ /**
2
+ * `@farm.js/core/native`: web screens call the app's own native modules (RFC 0004, 7.5).
3
+ *
4
+ * ```ts
5
+ * import { native } from "@farm.js/core/native";
6
+ *
7
+ * if (native.Device.available()) console.log(await native.Device.model());
8
+ * ```
9
+ *
10
+ * A call goes through the mobile shell's bridge to the module's Kotlin class, which checks the
11
+ * arguments against the module's Codegen spec before the module runs. Only modules with
12
+ * `mobile.modules.<name>.web: true` are reachable, and only their methods that return a Promise.
13
+ * In a browser, during server rendering, or in a shell without the module, every call rejects with
14
+ * `NativeUnavailableError`. Nothing here imports React Native.
15
+ */
16
+ /**
17
+ * The app's native modules, keyed by the name each spec registers. `src/farm.d.ts` fills this in
18
+ * from the Codegen specs in `src/native/` (`NativeDevice.ts` registers `"Device"`).
19
+ */
20
+ interface FarmNativeModules {
21
+ }
22
+ /** One module as web screens see it: its Promise methods, and `available()`. */
23
+ type FarmNativeModule<Methods> = Methods & {
24
+ /**
25
+ * True inside the mobile shell when this build registered the module for web screens. Check it
26
+ * before calling, and show the web alternative when it is false.
27
+ */
28
+ available(): boolean;
29
+ };
30
+ type FarmNative = {
31
+ readonly [Name in keyof FarmNativeModules]: FarmNativeModule<FarmNativeModules[Name]>;
32
+ };
33
+ /**
34
+ * A call that cannot reach the module: outside the mobile shell, during server rendering, in a
35
+ * shell built without the module for web screens, or on an OS whose shell does not host modules
36
+ * yet (iOS). `native.<module>.available()` is false in each of these cases.
37
+ */
38
+ declare class NativeUnavailableError extends Error {
39
+ name: string;
40
+ readonly code = "native_unavailable";
41
+ readonly module: string;
42
+ readonly method: string;
43
+ /** The shell's own rejection, when the bridge answered. */
44
+ readonly cause: unknown;
45
+ constructor(module: string, method: string, options?: {
46
+ cause?: unknown;
47
+ });
48
+ }
49
+ /**
50
+ * A call the shell or the module rejected. `code` is the module's own rejection code, or one of
51
+ * the shell's: `invalid_args` (the arguments do not match the spec, and the module never ran),
52
+ * `unknown_method` (no Promise method of that name in the spec), or `native_error` (the module
53
+ * threw).
54
+ */
55
+ declare class NativeCallError extends Error {
56
+ name: string;
57
+ readonly code: string;
58
+ readonly module: string;
59
+ readonly method: string;
60
+ /** The bridge's rejection. */
61
+ readonly cause: unknown;
62
+ constructor(module: string, method: string, code: string, message: string, options?: {
63
+ cause?: unknown;
64
+ });
65
+ }
66
+ /**
67
+ * The app's native modules for web screens: `native.Device.model()` calls the `Device` module's
68
+ * `model` method in the shell, and `native.Device.available()` says whether it can.
69
+ */
70
+ declare const native: FarmNative;
71
+
72
+ export { type FarmNative, type FarmNativeModule, type FarmNativeModules, NativeCallError, NativeUnavailableError, native };
@@ -0,0 +1,72 @@
1
+ /**
2
+ * `@farm.js/core/native`: web screens call the app's own native modules (RFC 0004, 7.5).
3
+ *
4
+ * ```ts
5
+ * import { native } from "@farm.js/core/native";
6
+ *
7
+ * if (native.Device.available()) console.log(await native.Device.model());
8
+ * ```
9
+ *
10
+ * A call goes through the mobile shell's bridge to the module's Kotlin class, which checks the
11
+ * arguments against the module's Codegen spec before the module runs. Only modules with
12
+ * `mobile.modules.<name>.web: true` are reachable, and only their methods that return a Promise.
13
+ * In a browser, during server rendering, or in a shell without the module, every call rejects with
14
+ * `NativeUnavailableError`. Nothing here imports React Native.
15
+ */
16
+ /**
17
+ * The app's native modules, keyed by the name each spec registers. `src/farm.d.ts` fills this in
18
+ * from the Codegen specs in `src/native/` (`NativeDevice.ts` registers `"Device"`).
19
+ */
20
+ interface FarmNativeModules {
21
+ }
22
+ /** One module as web screens see it: its Promise methods, and `available()`. */
23
+ type FarmNativeModule<Methods> = Methods & {
24
+ /**
25
+ * True inside the mobile shell when this build registered the module for web screens. Check it
26
+ * before calling, and show the web alternative when it is false.
27
+ */
28
+ available(): boolean;
29
+ };
30
+ type FarmNative = {
31
+ readonly [Name in keyof FarmNativeModules]: FarmNativeModule<FarmNativeModules[Name]>;
32
+ };
33
+ /**
34
+ * A call that cannot reach the module: outside the mobile shell, during server rendering, in a
35
+ * shell built without the module for web screens, or on an OS whose shell does not host modules
36
+ * yet (iOS). `native.<module>.available()` is false in each of these cases.
37
+ */
38
+ declare class NativeUnavailableError extends Error {
39
+ name: string;
40
+ readonly code = "native_unavailable";
41
+ readonly module: string;
42
+ readonly method: string;
43
+ /** The shell's own rejection, when the bridge answered. */
44
+ readonly cause: unknown;
45
+ constructor(module: string, method: string, options?: {
46
+ cause?: unknown;
47
+ });
48
+ }
49
+ /**
50
+ * A call the shell or the module rejected. `code` is the module's own rejection code, or one of
51
+ * the shell's: `invalid_args` (the arguments do not match the spec, and the module never ran),
52
+ * `unknown_method` (no Promise method of that name in the spec), or `native_error` (the module
53
+ * threw).
54
+ */
55
+ declare class NativeCallError extends Error {
56
+ name: string;
57
+ readonly code: string;
58
+ readonly module: string;
59
+ readonly method: string;
60
+ /** The bridge's rejection. */
61
+ readonly cause: unknown;
62
+ constructor(module: string, method: string, code: string, message: string, options?: {
63
+ cause?: unknown;
64
+ });
65
+ }
66
+ /**
67
+ * The app's native modules for web screens: `native.Device.model()` calls the `Device` module's
68
+ * `model` method in the shell, and `native.Device.available()` says whether it can.
69
+ */
70
+ declare const native: FarmNative;
71
+
72
+ export { type FarmNative, type FarmNativeModule, type FarmNativeModules, NativeCallError, NativeUnavailableError, native };
@@ -0,0 +1,87 @@
1
+ import "./chunk-Y6FXYEAI.mjs";
2
+
3
+ // src/native.ts
4
+ var UNAVAILABLE = "native_unavailable";
5
+ var NativeUnavailableError = class extends Error {
6
+ constructor(module, method, options) {
7
+ super(
8
+ `native.${module}.${method}() is not available here. Web screens reach a native module only inside the Android shell, when mobile.modules.${module}.web is true in farm.config.ts. Check native.${module}.available() first, and show the web alternative when it is false.`
9
+ );
10
+ this.name = "NativeUnavailableError";
11
+ this.code = UNAVAILABLE;
12
+ this.module = module;
13
+ this.method = method;
14
+ this.cause = options?.cause;
15
+ }
16
+ };
17
+ var NativeCallError = class extends Error {
18
+ constructor(module, method, code, message, options) {
19
+ super(`native.${module}.${method}() failed (${code}): ${message}`);
20
+ this.name = "NativeCallError";
21
+ this.cause = options?.cause;
22
+ this.code = code;
23
+ this.module = module;
24
+ this.method = method;
25
+ }
26
+ };
27
+ function bridge() {
28
+ const candidate = globalThis.__farmBridge;
29
+ return candidate && typeof candidate.call === "function" && typeof candidate.has === "function" ? candidate : void 0;
30
+ }
31
+ function isAvailable(module) {
32
+ return bridge()?.has(module) === true;
33
+ }
34
+ async function invoke(module, method, input) {
35
+ const shell = bridge();
36
+ if (!shell || !shell.has(module)) throw new NativeUnavailableError(module, method);
37
+ const args = [...input];
38
+ while (args.length > 0 && args[args.length - 1] === void 0) args.pop();
39
+ try {
40
+ return await shell.call(module, method, args);
41
+ } catch (error) {
42
+ const code = error?.code;
43
+ if (code === UNAVAILABLE) throw new NativeUnavailableError(module, method, { cause: error });
44
+ throw new NativeCallError(
45
+ module,
46
+ method,
47
+ typeof code === "string" && code ? code : "native_error",
48
+ String(error?.message ?? error),
49
+ { cause: error }
50
+ );
51
+ }
52
+ }
53
+ var RESERVED = /* @__PURE__ */ new Set(["then", "toJSON", "constructor", "$$typeof"]);
54
+ function createModule(module) {
55
+ const methods = /* @__PURE__ */ new Map();
56
+ return new Proxy(/* @__PURE__ */ Object.create(null), {
57
+ get(_target, method) {
58
+ if (typeof method !== "string" || RESERVED.has(method)) return void 0;
59
+ let fn = methods.get(method);
60
+ if (!fn) {
61
+ fn = method === "available" ? () => isAvailable(module) : (...args) => invoke(module, method, args);
62
+ methods.set(method, fn);
63
+ }
64
+ return fn;
65
+ }
66
+ });
67
+ }
68
+ function createNative() {
69
+ const modules = /* @__PURE__ */ new Map();
70
+ return new Proxy(/* @__PURE__ */ Object.create(null), {
71
+ get(_target, module) {
72
+ if (typeof module !== "string" || RESERVED.has(module)) return void 0;
73
+ let entry = modules.get(module);
74
+ if (!entry) {
75
+ entry = createModule(module);
76
+ modules.set(module, entry);
77
+ }
78
+ return entry;
79
+ }
80
+ });
81
+ }
82
+ var native = /* @__PURE__ */ createNative();
83
+ export {
84
+ NativeCallError,
85
+ NativeUnavailableError,
86
+ native
87
+ };
@@ -1,4 +1,4 @@
1
- import { F as FarmNavigationBlockerContext } from './spa-router.d-BWDhS0FK.mjs';
1
+ import { F as FarmNavigationBlockerContext } from './spa-router.d-DHDoXxDE.mjs';
2
2
 
3
3
  /** A navigation offered to a delegate, after every blocker let it through. */
4
4
  interface FarmNavigationDelegateContext extends FarmNavigationBlockerContext {
@@ -1,4 +1,4 @@
1
- import { F as FarmNavigationBlockerContext } from './spa-router.d-CO01mVOM.js';
1
+ import { F as FarmNavigationBlockerContext } from './spa-router.d-DAtnNoBe.js';
2
2
 
3
3
  /** A navigation offered to a delegate, after every blocker let it through. */
4
4
  interface FarmNavigationDelegateContext extends FarmNavigationBlockerContext {
@@ -2,12 +2,12 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkXLRLSTJ6cjs = require('./chunk-XLRLSTJ6.cjs');
6
- require('./chunk-S5AQ7CAC.cjs');
5
+ var _chunkMGKW5XZEcjs = require('./chunk-MGKW5XZE.cjs');
6
+ require('./chunk-CNNBFGL5.cjs');
7
7
  require('./chunk-53EHWHT2.cjs');
8
- require('./chunk-I2DQGS56.cjs');
8
+ require('./chunk-CBOEJ5Z4.cjs');
9
9
  require('./chunk-RI3EVPKD.cjs');
10
- require('./chunk-QXJADAQB.cjs');
10
+ require('./chunk-JIBEFLQ7.cjs');
11
11
  require('./chunk-QQ44FYRO.cjs');
12
12
  require('./chunk-PENBZAHJ.cjs');
13
13
  require('./chunk-D4XGKF67.cjs');
@@ -40,4 +40,4 @@ require('./chunk-BTZ5O6VM.cjs');
40
40
 
41
41
 
42
42
 
43
- exports.getFarmRedirectError = _chunk7JUIK547cjs.getFarmRedirectError; exports.isFarmNotFoundError = _chunk7JUIK547cjs.isFarmNotFoundError; exports.isFarmRedirectError = _chunk7JUIK547cjs.isFarmRedirectError; exports.notFound = _chunk7JUIK547cjs.notFound; exports.permanentRedirect = _chunk7JUIK547cjs.permanentRedirect; exports.redirect = _chunk7JUIK547cjs.redirect; exports.usePathname = _chunkXLRLSTJ6cjs.usePathname; exports.useRouter = _chunkXLRLSTJ6cjs.useRouter; exports.useSearchParams = _chunkXLRLSTJ6cjs.useSearchParams;
43
+ exports.getFarmRedirectError = _chunk7JUIK547cjs.getFarmRedirectError; exports.isFarmNotFoundError = _chunk7JUIK547cjs.isFarmNotFoundError; exports.isFarmRedirectError = _chunk7JUIK547cjs.isFarmRedirectError; exports.notFound = _chunk7JUIK547cjs.notFound; exports.permanentRedirect = _chunk7JUIK547cjs.permanentRedirect; exports.redirect = _chunk7JUIK547cjs.redirect; exports.usePathname = _chunkMGKW5XZEcjs.usePathname; exports.useRouter = _chunkMGKW5XZEcjs.useRouter; exports.useSearchParams = _chunkMGKW5XZEcjs.useSearchParams;
@@ -1,12 +1,12 @@
1
- import { F as FarmRouterNavigateOptions } from './router.d-e0jQ3jQ-.mjs';
2
- export { D as FarmRedirectSignal, E as FarmRedirectStatus, G as getFarmRedirectError, H as isFarmNotFoundError, I as isFarmRedirectError, J as notFound, K as permanentRedirect, N as redirect } from './client-plugins.d-Bx3FXpqm.mjs';
1
+ import { F as FarmRouterNavigateOptions } from './router.d-mNTbOGV_.mjs';
2
+ export { D as FarmRedirectSignal, E as FarmRedirectStatus, G as getFarmRedirectError, H as isFarmNotFoundError, I as isFarmRedirectError, J as notFound, K as permanentRedirect, N as redirect } from './client-plugins.d-CgQQ-EAv.mjs';
3
3
  import 'react';
4
4
  import './router.mjs';
5
- import './spa-router.d-BWDhS0FK.mjs';
5
+ import './spa-router.d-DHDoXxDE.mjs';
6
6
  import './lifecycle.d-C2aLBOwu.mjs';
7
7
  import './types.d-C41ePjvP.mjs';
8
8
  import './island.d-CfGru1MO.mjs';
9
- import './render-plan.d-BH9edqKs.mjs';
9
+ import './render-plan.d-DZ-qjjdG.mjs';
10
10
  import './route.d-BaVH3V0w.mjs';
11
11
  import './endpoint.d-BkMSCRf6.mjs';
12
12
  import './cache.mjs';
@@ -33,7 +33,7 @@ import './layers.d-CcS42OGR.mjs';
33
33
  import 'rolldown/utils';
34
34
  import 'rolldown';
35
35
  import './image-config.d-CeDgNyX4.mjs';
36
- import './config.d-iRPI16ku.mjs';
36
+ import './config.d-DqZkLwef.mjs';
37
37
  import './types.d-DQnyD3VD.mjs';
38
38
  import './font.mjs';
39
39
 
@@ -1,12 +1,12 @@
1
- import { F as FarmRouterNavigateOptions } from './router.d-Bd1x9XxQ.js';
2
- export { D as FarmRedirectSignal, E as FarmRedirectStatus, G as getFarmRedirectError, H as isFarmNotFoundError, I as isFarmRedirectError, J as notFound, K as permanentRedirect, N as redirect } from './client-plugins.d-TiLbS5j4.js';
1
+ import { F as FarmRouterNavigateOptions } from './router.d-DjGn_al7.js';
2
+ export { D as FarmRedirectSignal, E as FarmRedirectStatus, G as getFarmRedirectError, H as isFarmNotFoundError, I as isFarmRedirectError, J as notFound, K as permanentRedirect, N as redirect } from './client-plugins.d-vXrbcfJ1.js';
3
3
  import 'react';
4
4
  import './router.js';
5
- import './spa-router.d-CO01mVOM.js';
5
+ import './spa-router.d-DAtnNoBe.js';
6
6
  import './lifecycle.d-C2aLBOwu.js';
7
7
  import './types.d-C41ePjvP.js';
8
8
  import './island.d-CfGru1MO.js';
9
- import './render-plan.d-DhP0mTHF.js';
9
+ import './render-plan.d-B9lAP3uX.js';
10
10
  import './route.d-DBTEqifW.js';
11
11
  import './endpoint.d-BgHn0lhl.js';
12
12
  import './cache.js';
@@ -33,7 +33,7 @@ import './layers.d-CcS42OGR.js';
33
33
  import 'rolldown/utils';
34
34
  import 'rolldown';
35
35
  import './image-config.d-CeDgNyX4.js';
36
- import './config.d-iRPI16ku.js';
36
+ import './config.d-DqZkLwef.js';
37
37
  import './types.d-DQnyD3VD.js';
38
38
  import './font.js';
39
39
 
@@ -2,12 +2,12 @@ import {
2
2
  usePathname,
3
3
  useRouter,
4
4
  useSearchParams
5
- } from "./chunk-UN6N623E.mjs";
6
- import "./chunk-VAHBCI6X.mjs";
5
+ } from "./chunk-VQJHT2ND.mjs";
6
+ import "./chunk-BQWBHWEW.mjs";
7
7
  import "./chunk-BPAXGCKX.mjs";
8
- import "./chunk-SN5VSO3Q.mjs";
8
+ import "./chunk-25T5VXOE.mjs";
9
9
  import "./chunk-PTLXHRJZ.mjs";
10
- import "./chunk-G2KTRMWA.mjs";
10
+ import "./chunk-RSEAX5MW.mjs";
11
11
  import "./chunk-NCIAP562.mjs";
12
12
  import "./chunk-H227LYHT.mjs";
13
13
  import "./chunk-MFQGU5CC.mjs";
@@ -6,23 +6,23 @@ import {
6
6
  } from "./chunk-N33DLJBC.mjs";
7
7
  import {
8
8
  prepareFarmWorkflowsForNitro
9
- } from "./chunk-LZ4SB57H.mjs";
9
+ } from "./chunk-JPIUGDK4.mjs";
10
10
  import {
11
11
  createFarmCronCloudflareConfig,
12
12
  mergeScheduledTasks,
13
13
  prepareFarmCronForNitro
14
- } from "./chunk-X3JNB2TB.mjs";
14
+ } from "./chunk-3PX4AIXO.mjs";
15
15
  import "./chunk-WXFY5JIY.mjs";
16
16
  import "./chunk-YP7YO3S3.mjs";
17
17
  import "./chunk-EVMXPJCB.mjs";
18
- import "./chunk-Y3N5BFRJ.mjs";
18
+ import "./chunk-JSDV2NUN.mjs";
19
19
  import "./chunk-H3ASZDT7.mjs";
20
- import "./chunk-GFT5AHAT.mjs";
21
- import "./chunk-D2LCAV6L.mjs";
22
20
  import {
23
21
  resolveFarmAPIServerBasePath
24
- } from "./chunk-LM2YOGDK.mjs";
25
- import "./chunk-BLD5GVCG.mjs";
22
+ } from "./chunk-2I6PUKWJ.mjs";
23
+ import "./chunk-GFT5AHAT.mjs";
24
+ import "./chunk-D2LCAV6L.mjs";
25
+ import "./chunk-W6QLRQ3V.mjs";
26
26
  import "./chunk-ONG4RDW3.mjs";
27
27
  import "./chunk-JNYFXL7X.mjs";
28
28
  import "./chunk-OHWM2VI4.mjs";
@@ -6,23 +6,23 @@ var _chunkV56632LAcjs = require('./chunk-V56632LA.cjs');
6
6
  var _chunk3EIPOTZVcjs = require('./chunk-3EIPOTZV.cjs');
7
7
 
8
8
 
9
- var _chunkXB24LZWIcjs = require('./chunk-XB24LZWI.cjs');
9
+ var _chunkQRX4JRBOcjs = require('./chunk-QRX4JRBO.cjs');
10
10
 
11
11
 
12
12
 
13
13
 
14
- var _chunkXYL4HSVCcjs = require('./chunk-XYL4HSVC.cjs');
14
+ var _chunkYI6FKTTNcjs = require('./chunk-YI6FKTTN.cjs');
15
15
  require('./chunk-2KMIJDY6.cjs');
16
16
  require('./chunk-SHIWRBFI.cjs');
17
17
  require('./chunk-OYZXVBZP.cjs');
18
- require('./chunk-VQJYGZNX.cjs');
18
+ require('./chunk-QMNWKQL4.cjs');
19
19
  require('./chunk-SUCDVKUB.cjs');
20
- require('./chunk-LIFUPCXW.cjs');
21
- require('./chunk-JYT7AN37.cjs');
22
20
 
23
21
 
24
- var _chunkB5BBTPJQcjs = require('./chunk-B5BBTPJQ.cjs');
25
- require('./chunk-IWFV5ZED.cjs');
22
+ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
23
+ require('./chunk-LIFUPCXW.cjs');
24
+ require('./chunk-JYT7AN37.cjs');
25
+ require('./chunk-PMJSG4JS.cjs');
26
26
  require('./chunk-6XQSPIN6.cjs');
27
27
  require('./chunk-7JUIK547.cjs');
28
28
  require('./chunk-6CTFVBAT.cjs');
@@ -35,7 +35,7 @@ require('./chunk-BTZ5O6VM.cjs');
35
35
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
36
36
  async function createNitroConfig(config, routeManager, apiRouteManager, serverRenderer, preset = "node-server") {
37
37
  const root = config.root || process.cwd();
38
- const apiBasePath = _chunkB5BBTPJQcjs.resolveFarmAPIServerBasePath.call(void 0, config.api);
38
+ const apiBasePath = _chunk2OF5RPVUcjs.resolveFarmAPIServerBasePath.call(void 0, config.api);
39
39
  const srcDir = config.srcDir || "src";
40
40
  const distDir = ".farm";
41
41
  const nitroBuildDir = _path2.default.join(root, distDir, ".nitro");
@@ -45,16 +45,16 @@ async function createNitroConfig(config, routeManager, apiRouteManager, serverRe
45
45
  await mkdir(serverDir, { recursive: true });
46
46
  await mkdir(_path2.default.join(serverDir, "api"), { recursive: true });
47
47
  await mkdir(_path2.default.join(serverDir, "routes"), { recursive: true });
48
- const farmWorkflows = await _chunkXB24LZWIcjs.prepareFarmWorkflowsForNitro.call(void 0, {
48
+ const farmWorkflows = await _chunkQRX4JRBOcjs.prepareFarmWorkflowsForNitro.call(void 0, {
49
49
  ...config,
50
50
  distDir
51
51
  });
52
- const farmCron = await _chunkXYL4HSVCcjs.prepareFarmCronForNitro.call(void 0, {
52
+ const farmCron = await _chunkYI6FKTTNcjs.prepareFarmCronForNitro.call(void 0, {
53
53
  ...config,
54
54
  distDir
55
55
  });
56
- const scheduledTasks = _chunkXYL4HSVCcjs.mergeScheduledTasks.call(void 0, farmWorkflows.scheduledTasks, farmCron.scheduledTasks);
57
- const cloudflareCronConfig = _chunkXYL4HSVCcjs.createFarmCronCloudflareConfig.call(void 0, farmCron.jobs);
56
+ const scheduledTasks = _chunkYI6FKTTNcjs.mergeScheduledTasks.call(void 0, farmWorkflows.scheduledTasks, farmCron.scheduledTasks);
57
+ const cloudflareCronConfig = _chunkYI6FKTTNcjs.createFarmCronCloudflareConfig.call(void 0, farmCron.jobs);
58
58
  const registryFile = _path2.default.join(serverDir, "farm-registry.ts");
59
59
  const routePaths = {};
60
60
  for (const [pattern, entry] of routeManager.getRoutes()) {