@farm.js/core 0.1.51-beta.3 → 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 (320) hide show
  1. package/dist/{agent-mcp-handler-7JSKGSOW.mjs → agent-mcp-handler-7QMX2LUY.mjs} +7 -7
  2. package/dist/agent-mcp-handler-OV4WRFBL.cjs +18 -0
  3. package/dist/{agent-mcp.d-BJKChOrO.d.mts → agent-mcp.d-C-2S9bnP.d.mts} +1 -1
  4. package/dist/{agent-mcp.d-BAR9njbJ.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-OTPEWH5W.mjs → analyzer-22BEYV7S.mjs} +116 -13
  10. package/dist/{analyzer-TSQXZCZN.cjs → analyzer-LCSI3NSH.cjs} +123 -20
  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-DEQNnNhV.d.mts → app-manifest.d-DrSAHskY.d.mts} +1 -1
  34. package/dist/{app-manifest.d-BLFbaqx8.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-CNPaUYaa.d.ts → app.d-CmWlYpZJ.d.ts} +9 -4
  40. package/dist/{app.d-CT7xDkj2.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-OAMUSC7H.cjs → chunk-2FRLSDBT.cjs} +1 -1
  43. package/dist/{chunk-LM2YOGDK.mjs → chunk-2I6PUKWJ.mjs} +1 -1
  44. package/dist/{chunk-ZD2VKAUI.mjs → chunk-2KTYMMWT.mjs} +1 -1
  45. package/dist/{chunk-B5BBTPJQ.cjs → chunk-2OF5RPVU.cjs} +14 -14
  46. package/dist/{chunk-UQF3OJVE.mjs → chunk-37PYUEK5.mjs} +173 -29
  47. package/dist/{chunk-VSLM6BHX.cjs → chunk-3OJNNCDL.cjs} +9 -9
  48. package/dist/{chunk-X3JNB2TB.mjs → chunk-3PX4AIXO.mjs} +36 -5
  49. package/dist/{chunk-UQHIWZZ6.cjs → chunk-3TL3AH25.cjs} +12 -6
  50. package/dist/chunk-3YMLUNL2.cjs +251 -0
  51. package/dist/chunk-4JTQPOKO.cjs +137 -0
  52. package/dist/{chunk-7MD37P5V.cjs → chunk-4P23B7DU.cjs} +5 -5
  53. package/dist/{chunk-3BLEXUGE.mjs → chunk-55U5QIXQ.mjs} +1 -1
  54. package/dist/{chunk-TWHXBMLJ.cjs → chunk-5JNUYGNF.cjs} +4 -4
  55. package/dist/{chunk-53SACYBY.cjs → chunk-6BJJYOFL.cjs} +7 -7
  56. package/dist/chunk-6UUH4N4J.mjs +251 -0
  57. package/dist/{chunk-2NHOYYUT.mjs → chunk-7H45IJWO.mjs} +2 -2
  58. package/dist/{chunk-NN3MOPSI.mjs → chunk-A2MN5PQJ.mjs} +7 -7
  59. package/dist/{chunk-KY32FWK7.mjs → chunk-BHJAYPYU.mjs} +2 -2
  60. package/dist/{chunk-VAHBCI6X.mjs → chunk-BQWBHWEW.mjs} +26 -1
  61. package/dist/{chunk-KJMWAUKE.mjs → chunk-C7GJDVN4.mjs} +1 -1
  62. package/dist/{chunk-OYNNA4DD.cjs → chunk-CBKRS3M4.cjs} +9 -9
  63. package/dist/{chunk-I2DQGS56.cjs → chunk-CBOEJ5Z4.cjs} +39 -41
  64. package/dist/{chunk-UJL4JOXV.cjs → chunk-CI4UNQHO.cjs} +2 -2
  65. package/dist/{chunk-S5AQ7CAC.cjs → chunk-CNNBFGL5.cjs} +39 -14
  66. package/dist/chunk-D2X5MUF5.cjs +1457 -0
  67. package/dist/{chunk-LEIXUFJN.cjs → chunk-D4MRNBVF.cjs} +10 -9
  68. package/dist/{chunk-2KVDHNQS.mjs → chunk-D7LTCK3U.mjs} +2 -2
  69. package/dist/{chunk-4SEHMBL4.cjs → chunk-DPJ66FSI.cjs} +22 -22
  70. package/dist/{chunk-FFE2EMF7.cjs → chunk-DZPR2W6U.cjs} +5 -5
  71. package/dist/{chunk-3Z63X45F.mjs → chunk-E72UD6ME.mjs} +1 -1
  72. package/dist/{chunk-XXXRRVY6.mjs → chunk-EGVC4LIG.mjs} +5 -5
  73. package/dist/{chunk-72NBDVWQ.mjs → chunk-EXUONJYV.mjs} +3 -3
  74. package/dist/{chunk-VS7EHLLW.mjs → chunk-EZ34EHQP.mjs} +1 -1
  75. package/dist/{chunk-5FXPJIOT.mjs → chunk-F6Y7ZAPQ.mjs} +2 -2
  76. package/dist/{chunk-LMFJCXDD.mjs → chunk-FN5UEC7I.mjs} +1 -1
  77. package/dist/{chunk-3SMXQNFD.mjs → chunk-FORSVMEJ.mjs} +2 -2
  78. package/dist/{chunk-R4PHCZ3G.mjs → chunk-HPWB57PZ.mjs} +1 -1
  79. package/dist/{chunk-Y2G5SJFB.mjs → chunk-IFHPDLIS.mjs} +1 -1
  80. package/dist/{chunk-3XQ57EFI.cjs → chunk-IFXSBJPN.cjs} +16 -16
  81. package/dist/{chunk-3WSIYBMG.mjs → chunk-ILMTRGBG.mjs} +279 -48
  82. package/dist/{chunk-HLWOWZFX.cjs → chunk-JBK7UJOI.cjs} +14 -11
  83. package/dist/chunk-JI5D7MXY.mjs +137 -0
  84. package/dist/{chunk-QXJADAQB.cjs → chunk-JIBEFLQ7.cjs} +6 -2
  85. package/dist/{chunk-LZ4SB57H.mjs → chunk-JPIUGDK4.mjs} +1 -1
  86. package/dist/{chunk-Y3N5BFRJ.mjs → chunk-JSDV2NUN.mjs} +1 -1
  87. package/dist/{chunk-IRSS4HS4.mjs → chunk-K3RU5MOR.mjs} +1 -1
  88. package/dist/chunk-KPOMS5RO.cjs +237 -0
  89. package/dist/{chunk-YAJTD3ZG.mjs → chunk-KVW2M6PI.mjs} +1 -1
  90. package/dist/{chunk-5IONBVJY.cjs → chunk-LB3DPQP6.cjs} +22 -22
  91. package/dist/{chunk-CZ35L6PL.mjs → chunk-LJVNMGE3.mjs} +10 -4
  92. package/dist/{chunk-X2AMN2WV.cjs → chunk-LQNW3ABP.cjs} +10 -10
  93. package/dist/{chunk-6ONBZGVH.cjs → chunk-LRB5OVRT.cjs} +3 -3
  94. package/dist/{chunk-D7UQC4O6.cjs → chunk-LT4VAF5Z.cjs} +2 -2
  95. package/dist/{chunk-F6TLUMH7.mjs → chunk-M53MIIXY.mjs} +1 -1
  96. package/dist/{chunk-H33PJEXN.cjs → chunk-MEQN6DDA.cjs} +5 -5
  97. package/dist/{chunk-XLRLSTJ6.cjs → chunk-MGKW5XZE.cjs} +7 -7
  98. package/dist/{chunk-B3GZAQSC.cjs → chunk-MHLNWRCJ.cjs} +3 -3
  99. package/dist/{chunk-5ENW27SL.mjs → chunk-MMK4MZUN.mjs} +1 -1
  100. package/dist/{chunk-WGUHDWT5.cjs → chunk-MTWXOEI4.cjs} +527 -366
  101. package/dist/chunk-NHD7BAKD.mjs +1457 -0
  102. package/dist/{chunk-KLNFJDFM.cjs → chunk-NQJDO7K7.cjs} +31 -31
  103. package/dist/{chunk-TSFMFPRU.cjs → chunk-O27PLNQZ.cjs} +10 -10
  104. package/dist/{chunk-PIHKO25G.mjs → chunk-OM7WILES.mjs} +1 -1
  105. package/dist/{chunk-YUEYBL35.mjs → chunk-PCXIJKPM.mjs} +8 -8
  106. package/dist/{chunk-IWFV5ZED.cjs → chunk-PMJSG4JS.cjs} +1 -1
  107. package/dist/{chunk-B3GM5I6N.cjs → chunk-PRFNLQSP.cjs} +4 -4
  108. package/dist/{chunk-46KXZBOG.cjs → chunk-QAS7KE7J.cjs} +7 -7
  109. package/dist/chunk-QGOZLGVP.mjs +0 -0
  110. package/dist/{chunk-VQJYGZNX.cjs → chunk-QMNWKQL4.cjs} +1 -1
  111. package/dist/{chunk-XB24LZWI.cjs → chunk-QRX4JRBO.cjs} +3 -3
  112. package/dist/{chunk-LNM57D3H.cjs → chunk-R53QDV6T.cjs} +4 -4
  113. package/dist/{chunk-SUV6YO4Q.cjs → chunk-RAWWCDCT.cjs} +5 -5
  114. package/dist/{chunk-LJDIFIJ2.mjs → chunk-RPUJHJHE.mjs} +4 -4
  115. package/dist/{chunk-G2KTRMWA.mjs → chunk-RSEAX5MW.mjs} +4 -0
  116. package/dist/chunk-SJRCWF4Z.mjs +237 -0
  117. package/dist/{chunk-4353ZRE5.mjs → chunk-SX7EECTS.mjs} +8 -5
  118. package/dist/{chunk-LDNSSHEG.mjs → chunk-T4TBK5NY.mjs} +2 -2
  119. package/dist/{chunk-NOTSHVRN.mjs → chunk-T7I62A4C.mjs} +293 -132
  120. package/dist/{chunk-E36C43IX.cjs → chunk-U4BJKNIR.cjs} +6 -6
  121. package/dist/{chunk-4CGOMZP3.cjs → chunk-UDJY2ZGY.cjs} +487 -256
  122. package/dist/{chunk-SHS6KXOZ.mjs → chunk-UR25Z5Z6.mjs} +1 -1
  123. package/dist/{chunk-TQMI6BYO.cjs → chunk-UYSTTPYJ.cjs} +1262 -936
  124. package/dist/{chunk-E5DXF5GE.mjs → chunk-UZZ6IEQP.mjs} +3 -3
  125. package/dist/{chunk-EKJYE4Y7.cjs → chunk-VGG74PSU.cjs} +25 -25
  126. package/dist/{chunk-GAO7MS5O.mjs → chunk-VPTWKOCY.mjs} +19 -19
  127. package/dist/{chunk-UN6N623E.mjs → chunk-VQJHT2ND.mjs} +2 -2
  128. package/dist/{chunk-SJ23LJ3N.cjs → chunk-VVTJTMGQ.cjs} +3 -3
  129. package/dist/{chunk-KHXAJ2KA.cjs → chunk-W2RZ73IU.cjs} +12 -12
  130. package/dist/{chunk-JWI5PUO2.mjs → chunk-W2ZXMMHA.mjs} +2 -1
  131. package/dist/{chunk-BLD5GVCG.mjs → chunk-W6QLRQ3V.mjs} +1 -1
  132. package/dist/{chunk-AV26KHTG.mjs → chunk-X2CZTWQA.mjs} +2 -2
  133. package/dist/chunk-XPIPMWY3.cjs +1 -0
  134. package/dist/{chunk-JXEPLIXD.cjs → chunk-XTG73QZA.cjs} +183 -39
  135. package/dist/{chunk-XPMC4E2G.cjs → chunk-XVSBALOY.cjs} +3 -3
  136. package/dist/{chunk-XYL4HSVC.cjs → chunk-YI6FKTTN.cjs} +38 -7
  137. package/dist/{chunk-LPDKG6RA.mjs → chunk-YSXTNSXS.mjs} +1 -1
  138. package/dist/{chunk-EHB77D5U.cjs → chunk-ZDAEHG2O.cjs} +3 -3
  139. package/dist/{chunk-3TLKUBXG.mjs → chunk-ZFUKPWFC.mjs} +912 -586
  140. package/dist/{chunk-4TKAIO2F.mjs → chunk-ZMHAFH4R.mjs} +8 -8
  141. package/dist/{chunk-ZOWNWHK6.cjs → chunk-ZNH6NR3H.cjs} +2 -2
  142. package/dist/{chunk-PFV2KPDZ.cjs → chunk-ZOYKJBP5.cjs} +3 -3
  143. package/dist/{chunk-CECUDGXQ.cjs → chunk-ZP32GNJQ.cjs} +13 -13
  144. package/dist/{chunk-MRNDAJEV.mjs → chunk-ZZ2QKCKW.mjs} +1 -1
  145. package/dist/{client-plugins.d-DllmH8eM.d.mts → client-plugins.d-CgQQ-EAv.d.mts} +10 -2
  146. package/dist/{client-plugins.d-n3iWY1EJ.d.ts → client-plugins.d-vXrbcfJ1.d.ts} +10 -2
  147. package/dist/client-plugins.d.mts +2 -2
  148. package/dist/client-plugins.d.ts +2 -2
  149. package/dist/client.cjs +9 -9
  150. package/dist/client.d.mts +9 -9
  151. package/dist/client.d.ts +9 -9
  152. package/dist/client.mjs +9 -9
  153. package/dist/{config.d-DqKaCr1r.d.ts → config.d-DqZkLwef.d.mts} +139 -1
  154. package/dist/{config.d-DqKaCr1r.d.mts → config.d-DqZkLwef.d.ts} +139 -1
  155. package/dist/config.d.mts +2 -2
  156. package/dist/config.d.ts +2 -2
  157. package/dist/cron.cjs +3 -3
  158. package/dist/cron.d.mts +10 -0
  159. package/dist/cron.d.ts +10 -0
  160. package/dist/cron.mjs +2 -2
  161. package/dist/desktop.d.mts +3 -3
  162. package/dist/desktop.d.ts +3 -3
  163. package/dist/{devtools-UESYARTF.mjs → devtools-KQZ6SRCJ.mjs} +16 -16
  164. package/dist/{devtools-TO6TAO32.cjs → devtools-UF6JYHUN.cjs} +18 -18
  165. package/dist/docs.cjs +19 -19
  166. package/dist/docs.d.mts +3 -3
  167. package/dist/docs.d.ts +3 -3
  168. package/dist/docs.mjs +18 -18
  169. package/dist/index.cjs +96 -96
  170. package/dist/{index.d-BXsAXm1U.d.ts → index.d-DlCELfhf.d.ts} +1 -1
  171. package/dist/{index.d-BL7KKiwa.d.mts → index.d-Dmfb7Kb_.d.mts} +1 -1
  172. package/dist/index.d.mts +18 -18
  173. package/dist/index.d.ts +18 -18
  174. package/dist/index.mjs +139 -139
  175. package/dist/integrations.cjs +5 -5
  176. package/dist/integrations.d.mts +2 -2
  177. package/dist/integrations.d.ts +2 -2
  178. package/dist/integrations.mjs +4 -4
  179. package/dist/internal/app-markdown-runtime.cjs +6 -6
  180. package/dist/internal/app-markdown-runtime.d.mts +3 -3
  181. package/dist/internal/app-markdown-runtime.d.ts +3 -3
  182. package/dist/internal/app-markdown-runtime.mjs +5 -5
  183. package/dist/internal/build-runtime.cjs +50 -50
  184. package/dist/internal/build-runtime.d.mts +4 -4
  185. package/dist/internal/build-runtime.d.ts +4 -4
  186. package/dist/internal/build-runtime.mjs +49 -49
  187. package/dist/internal/cli-runtime.cjs +28 -28
  188. package/dist/internal/cli-runtime.mjs +28 -28
  189. package/dist/internal/client-error-overlay.cjs +4 -4
  190. package/dist/internal/client-error-overlay.mjs +1 -1
  191. package/dist/internal/client-runtime.cjs +20 -15
  192. package/dist/internal/client-runtime.d.mts +5 -5
  193. package/dist/internal/client-runtime.d.ts +5 -5
  194. package/dist/internal/client-runtime.mjs +8 -3
  195. package/dist/internal/compression-runtime.d.mts +2 -2
  196. package/dist/internal/compression-runtime.d.ts +2 -2
  197. package/dist/internal/config-runtime.cjs +18 -18
  198. package/dist/internal/config-runtime.d.mts +94 -6
  199. package/dist/internal/config-runtime.d.ts +94 -6
  200. package/dist/internal/config-runtime.mjs +17 -17
  201. package/dist/internal/infra-analytics-runtime.cjs +11 -11
  202. package/dist/internal/infra-analytics-runtime.mjs +9 -9
  203. package/dist/internal/islands-boot.cjs +211 -0
  204. package/dist/internal/islands-boot.d.mts +8 -0
  205. package/dist/internal/islands-boot.d.ts +8 -0
  206. package/dist/internal/islands-boot.mjs +211 -0
  207. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  208. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  209. package/dist/internal/production-runtime.cjs +37 -101
  210. package/dist/internal/production-runtime.d.mts +17 -11
  211. package/dist/internal/production-runtime.d.ts +17 -11
  212. package/dist/internal/production-runtime.mjs +47 -111
  213. package/dist/markdown.cjs +5 -5
  214. package/dist/markdown.d.mts +2 -2
  215. package/dist/markdown.d.ts +2 -2
  216. package/dist/markdown.mjs +4 -4
  217. package/dist/middleware.cjs +10 -10
  218. package/dist/middleware.d.mts +4 -4
  219. package/dist/middleware.d.ts +4 -4
  220. package/dist/middleware.mjs +9 -9
  221. package/dist/mobile.d.mts +27 -5
  222. package/dist/mobile.d.ts +27 -5
  223. package/dist/modules-VHD7BELU.mjs +13 -0
  224. package/dist/modules-WT5D3AWY.cjs +13 -0
  225. package/dist/native-specs-BD7HOTMJ.mjs +15 -0
  226. package/dist/native-specs-IQQRJOOW.cjs +15 -0
  227. package/dist/native-tree-6G5O53O3.cjs +27 -0
  228. package/dist/{native-tree-EBPDFTRW.mjs → native-tree-VWNW2MQ2.mjs} +10 -8
  229. package/dist/native.cjs +87 -0
  230. package/dist/native.d.mts +72 -0
  231. package/dist/native.d.ts +72 -0
  232. package/dist/native.mjs +87 -0
  233. package/dist/{navigation-delegate.d-C76gXTmO.d.mts → navigation-delegate.d-CnOTWOyi.d.mts} +1 -1
  234. package/dist/{navigation-delegate.d-DIyDslxt.d.ts → navigation-delegate.d-JXx40JzR.d.ts} +1 -1
  235. package/dist/navigation.cjs +5 -5
  236. package/dist/navigation.d.mts +5 -5
  237. package/dist/navigation.d.ts +5 -5
  238. package/dist/navigation.mjs +4 -4
  239. package/dist/{nitro-R444AF3O.mjs → nitro-FLN6DRGJ.mjs} +7 -7
  240. package/dist/{nitro-CK7M4RMY.cjs → nitro-HXAZZQKY.cjs} +12 -12
  241. package/dist/plugin.cjs +42 -42
  242. package/dist/plugin.d.mts +4 -4
  243. package/dist/plugin.d.ts +4 -4
  244. package/dist/plugin.mjs +41 -41
  245. package/dist/port-C6GBH4C6.cjs +419 -0
  246. package/dist/port-WOOQ3V56.mjs +419 -0
  247. package/dist/{production-runtime.d-CDHztggO.d.mts → production-runtime.d-CP5s6RuY.d.mts} +1 -1
  248. package/dist/{production-runtime.d-tyaGdbk6.d.ts → production-runtime.d-N-cE3pmy.d.ts} +1 -1
  249. package/dist/{programmatic-routes-client.d-XfmIrCK1.d.ts → programmatic-routes-client.d-CLG2N1yH.d.ts} +2 -2
  250. package/dist/{programmatic-routes-client.d-aAWiDd64.d.mts → programmatic-routes-client.d-CPbNqtIi.d.mts} +2 -2
  251. package/dist/query/client.cjs +6 -6
  252. package/dist/query/client.mjs +2 -2
  253. package/dist/{render-plan.d-Dr5WRjoV.d.ts → render-plan.d-B9lAP3uX.d.ts} +1 -1
  254. package/dist/{render-plan.d-Diwybxo8.d.mts → render-plan.d-DZ-qjjdG.d.mts} +1 -1
  255. package/dist/renderer/react/server.cjs +2 -2
  256. package/dist/renderer/react/server.mjs +3 -3
  257. package/dist/renderer-client.cjs +6 -6
  258. package/dist/renderer-client.d.mts +5 -5
  259. package/dist/renderer-client.d.ts +5 -5
  260. package/dist/renderer-client.mjs +2 -2
  261. package/dist/{request.d-D01fRn--.d.ts → request.d-BiicaNxb.d.ts} +1 -1
  262. package/dist/{request.d-Dd3AFR79.d.mts → request.d-DV0oeUit.d.mts} +1 -1
  263. package/dist/request.d.mts +3 -3
  264. package/dist/request.d.ts +3 -3
  265. package/dist/{route-rendering.d-BQ53lJ_D.d.mts → route-rendering.d-BrIKA51A.d.mts} +1 -1
  266. package/dist/{route-rendering.d-Bhx4QoJt.d.ts → route-rendering.d-Iss0C7GR.d.ts} +1 -1
  267. package/dist/{router.d-DQ3k7EYn.d.ts → router.d-DjGn_al7.d.ts} +1 -1
  268. package/dist/{router.d-Bi23a6Xc.d.mts → router.d-mNTbOGV_.d.mts} +1 -1
  269. package/dist/{routes.d-C7jMJFvP.d.ts → routes.d-BKSjHuH9.d.ts} +25 -2
  270. package/dist/{routes.d-BgTd7vI4.d.mts → routes.d-qd8Qf4LG.d.mts} +25 -2
  271. package/dist/routes.d.mts +2 -2
  272. package/dist/routes.d.ts +2 -2
  273. package/dist/{rsc-pipeline-OCZIT5OF.cjs → rsc-pipeline-SVLBTY7H.cjs} +21 -21
  274. package/dist/{rsc-pipeline-K3ER3Q4N.mjs → rsc-pipeline-WBLBDQXA.mjs} +20 -20
  275. package/dist/{runtime-DKNSIH7V.cjs → runtime-DGUOWSMF.cjs} +293 -41
  276. package/dist/{runtime-MKYDEUZT.mjs → runtime-HFZTVNFF.mjs} +283 -31
  277. package/dist/{runtime.d-B2Js6qZ2.d.mts → runtime.d-BNVbojF1.d.mts} +1 -1
  278. package/dist/{runtime.d-BL-CGwoi.d.ts → runtime.d-Bm_4hP5T.d.ts} +1 -1
  279. package/dist/{schema-dev-notice-F6QYSOAI.mjs → schema-dev-notice-JMXEQWIQ.mjs} +3 -3
  280. package/dist/{schema-dev-notice-UU7DMZEU.cjs → schema-dev-notice-PLBFDTOF.cjs} +6 -6
  281. package/dist/server-fn-client.d.mts +1 -1
  282. package/dist/server-fn-client.d.ts +1 -1
  283. package/dist/server-plugins.cjs +1 -1
  284. package/dist/server-plugins.d.mts +3 -3
  285. package/dist/server-plugins.d.ts +3 -3
  286. package/dist/server-plugins.mjs +1 -1
  287. package/dist/server.cjs +81 -81
  288. package/dist/server.d.mts +11 -11
  289. package/dist/server.d.ts +11 -11
  290. package/dist/server.mjs +64 -64
  291. package/dist/session-2Q72D4QV.cjs +23 -0
  292. package/dist/{session-IGEDQ5PY.mjs → session-QZXZOPR2.mjs} +2 -2
  293. package/dist/shell-render.d-CG6bPiiA.d.mts +41 -0
  294. package/dist/shell-render.d-CG6bPiiA.d.ts +41 -0
  295. package/dist/{spa-router.d-DqZ6Lfs0.d.ts → spa-router.d-DAtnNoBe.d.ts} +11 -2
  296. package/dist/{spa-router.d-B2rIFGs0.d.mts → spa-router.d-DHDoXxDE.d.mts} +11 -2
  297. package/dist/testing.cjs +7 -7
  298. package/dist/testing.d.mts +2 -2
  299. package/dist/testing.d.ts +2 -2
  300. package/dist/testing.mjs +6 -6
  301. package/dist/{utils.d-Bv2MPeLR.d.ts → utils.d-DwZ-KLSB.d.ts} +7 -1
  302. package/dist/{utils.d-fqXe8lNc.d.mts → utils.d-uKZcKJk4.d.mts} +7 -1
  303. package/dist/version.cjs +2 -2
  304. package/dist/version.mjs +1 -1
  305. package/dist/vite.cjs +42 -42
  306. package/dist/vite.d.mts +10 -5
  307. package/dist/vite.d.ts +10 -5
  308. package/dist/vite.mjs +41 -41
  309. package/dist/workflows.cjs +3 -3
  310. package/dist/workflows.mjs +2 -2
  311. package/package.json +17 -3
  312. package/dist/agent-mcp-handler-YE4AGWHN.cjs +0 -18
  313. package/dist/chunk-MIGFX2FN.mjs +0 -758
  314. package/dist/chunk-P6MHI5O2.cjs +0 -758
  315. package/dist/native-tree-MMZS7S6W.cjs +0 -25
  316. package/dist/session-AAU7RNRO.cjs +0 -23
  317. package/dist/{chunk-7FVVQEVL.cjs → chunk-4BS3HSY7.cjs} +2 -2
  318. package/dist/{chunk-N7JQXQAV.cjs → chunk-5OJVKXFV.cjs} +2 -2
  319. package/dist/{chunk-WSDKXV4E.mjs → chunk-72KABRWN.mjs} +4 -4
  320. package/dist/{chunk-C3BOESDW.mjs → chunk-B4CWYGCG.mjs} +3 -3
@@ -0,0 +1,251 @@
1
+ // src/mobile/native-specs.ts
2
+ import { existsSync, realpathSync } from "fs";
3
+ import { createRequire } from "module";
4
+ import * as path from "path";
5
+ var UnsupportedType = class extends Error {
6
+ };
7
+ var parsers = /* @__PURE__ */ new Map();
8
+ function loadCodegen(root) {
9
+ const cached = parsers.get(root);
10
+ if (cached) return cached;
11
+ let codegenDir;
12
+ let load;
13
+ try {
14
+ let reactNative;
15
+ for (let dir = root; ; dir = path.dirname(dir)) {
16
+ const candidate = path.join(dir, "node_modules", "react-native", "package.json");
17
+ if (existsSync(candidate)) {
18
+ reactNative = realpathSync(candidate);
19
+ break;
20
+ }
21
+ if (path.dirname(dir) === dir) throw new Error(`react-native is not installed in ${root}.`);
22
+ }
23
+ load = createRequire(reactNative);
24
+ codegenDir = path.dirname(load.resolve("@react-native/codegen/package.json"));
25
+ } catch (error) {
26
+ throw Object.assign(
27
+ new Error(
28
+ "Reading a native module spec needs React Native's Codegen (@react-native/codegen, installed with react-native). Add react-native to the app's dependencies and install them."
29
+ ),
30
+ { cause: error }
31
+ );
32
+ }
33
+ const typescript = load(path.join(codegenDir, "lib/parsers/typescript/parser.js"));
34
+ const flow = load(path.join(codegenDir, "lib/parsers/flow/parser.js"));
35
+ const loaded = { typescript: new typescript.TypeScriptParser(), flow: new flow.FlowParser() };
36
+ parsers.set(root, loaded);
37
+ return loaded;
38
+ }
39
+ function hasFarmNativeCodegen(root) {
40
+ try {
41
+ loadCodegen(root);
42
+ return true;
43
+ } catch {
44
+ return false;
45
+ }
46
+ }
47
+ function describe(annotation) {
48
+ switch (annotation.type) {
49
+ case "FunctionTypeAnnotation":
50
+ return "a callback";
51
+ case "MixedTypeAnnotation":
52
+ return "a mixed value";
53
+ case "ReservedTypeAnnotation":
54
+ return String(annotation.name ?? "a reserved type");
55
+ case "EventEmitterTypeAnnotation":
56
+ return "an event emitter";
57
+ default:
58
+ return annotation.type.replace(/TypeAnnotation$/, "");
59
+ }
60
+ }
61
+ function toType(annotation, module, options = {}) {
62
+ switch (annotation.type) {
63
+ case "NullableTypeAnnotation":
64
+ return {
65
+ ...toType(annotation.typeAnnotation, module, options),
66
+ nullable: true
67
+ };
68
+ case "StringTypeAnnotation":
69
+ return { type: "string" };
70
+ case "NumberTypeAnnotation":
71
+ case "DoubleTypeAnnotation":
72
+ case "FloatTypeAnnotation":
73
+ return { type: "number" };
74
+ case "Int32TypeAnnotation":
75
+ return { type: "number", integer: true };
76
+ case "BooleanTypeAnnotation":
77
+ return { type: "boolean" };
78
+ case "StringLiteralTypeAnnotation":
79
+ case "NumberLiteralTypeAnnotation":
80
+ return { type: "literal", values: [annotation.value] };
81
+ case "UnionTypeAnnotation":
82
+ case "StringLiteralUnionTypeAnnotation": {
83
+ const types = annotation.types ?? [];
84
+ const values = types.map((member) => member.value);
85
+ if (types.length > 0 && types.every(
86
+ (member) => member.type === "StringLiteralTypeAnnotation" || member.type === "NumberLiteralTypeAnnotation"
87
+ ) && (values.every((value) => typeof value === "string") || values.every((value) => typeof value === "number"))) {
88
+ return { type: "literal", values };
89
+ }
90
+ throw new UnsupportedType("a union that is not all string or all number literals");
91
+ }
92
+ case "EnumDeclaration": {
93
+ const members = module.enumMap?.[String(annotation.name)]?.members ?? [];
94
+ const values = members.map((member) => member.value?.value);
95
+ if (values.length > 0 && (values.every((value) => typeof value === "string") || values.every((value) => typeof value === "number"))) {
96
+ return { type: "literal", values };
97
+ }
98
+ throw new UnsupportedType(`the enum ${String(annotation.name)}`);
99
+ }
100
+ case "ObjectTypeAnnotation": {
101
+ const properties = annotation.properties ?? [];
102
+ return {
103
+ type: "object",
104
+ properties: properties.map((property) => ({
105
+ name: property.name,
106
+ optional: property.optional === true,
107
+ type: toType(property.typeAnnotation, module, options)
108
+ }))
109
+ };
110
+ }
111
+ case "TypeAliasTypeAnnotation": {
112
+ const alias = module.aliasMap?.[String(annotation.name)];
113
+ if (!alias) throw new UnsupportedType(`the unknown type ${String(annotation.name)}`);
114
+ return toType(alias, module, options);
115
+ }
116
+ case "GenericObjectTypeAnnotation":
117
+ return { type: "map" };
118
+ case "ArrayTypeAnnotation": {
119
+ const element = annotation.elementType;
120
+ if (!element || element.type === "AnyTypeAnnotation") return { type: "array" };
121
+ return { type: "array", element: toType(element, module, options) };
122
+ }
123
+ case "VoidTypeAnnotation":
124
+ if (options.returns) return { type: "void" };
125
+ break;
126
+ }
127
+ if (options.returns) return { type: "unknown" };
128
+ throw new UnsupportedType(describe(annotation));
129
+ }
130
+ function readFarmNativeWebSpec(options) {
131
+ const codegen = loadCodegen(options.root);
132
+ const parser = /\.tsx?$/.test(options.file) ? codegen.typescript : codegen.flow;
133
+ let schema;
134
+ try {
135
+ schema = parser.parseFile(options.file);
136
+ } catch (error) {
137
+ const shown = path.relative(options.root, options.file).split(path.sep).join("/");
138
+ throw Object.assign(
139
+ new Error(`React Native's Codegen rejected ${shown}: ${error.message}`),
140
+ { cause: error }
141
+ );
142
+ }
143
+ const module = Object.values(schema.modules).find((entry) => entry.type === "NativeModule");
144
+ const result = { methods: [], unsupported: [] };
145
+ for (const method of module?.spec?.methods ?? []) {
146
+ let fn = method.typeAnnotation;
147
+ if (fn.type === "NullableTypeAnnotation") fn = fn.typeAnnotation;
148
+ if (fn.type !== "FunctionTypeAnnotation") continue;
149
+ const returned = fn.returnTypeAnnotation;
150
+ if (returned?.type !== "PromiseTypeAnnotation") continue;
151
+ const params = fn.params ?? [];
152
+ try {
153
+ result.methods.push({
154
+ name: method.name,
155
+ params: params.map((param) => {
156
+ try {
157
+ return {
158
+ name: param.name,
159
+ optional: param.optional === true,
160
+ type: toType(param.typeAnnotation, module)
161
+ };
162
+ } catch (error) {
163
+ if (!(error instanceof UnsupportedType)) throw error;
164
+ throw new UnsupportedType(
165
+ `its parameter ${param.name} is ${error.message}, which a web screen cannot send`
166
+ );
167
+ }
168
+ }),
169
+ returns: toType(
170
+ returned.elementType ?? { type: "VoidTypeAnnotation" },
171
+ module,
172
+ { returns: true }
173
+ )
174
+ });
175
+ } catch (error) {
176
+ if (!(error instanceof UnsupportedType)) throw error;
177
+ result.unsupported.push({ method: method.name, reason: error.message });
178
+ }
179
+ }
180
+ return result;
181
+ }
182
+ var IDENTIFIER = /^[A-Za-z_$][\w$]*$/;
183
+ function renderFarmNativeType(type) {
184
+ let rendered;
185
+ switch (type.type) {
186
+ case "string":
187
+ case "number":
188
+ case "boolean":
189
+ case "void":
190
+ case "unknown":
191
+ rendered = type.type;
192
+ break;
193
+ case "literal":
194
+ rendered = type.values.map((value) => JSON.stringify(value)).join(" | ");
195
+ break;
196
+ case "map":
197
+ rendered = "Record<string, unknown>";
198
+ break;
199
+ case "array": {
200
+ const element = type.element ? renderFarmNativeType(type.element) : "unknown";
201
+ rendered = `Array<${element}>`;
202
+ break;
203
+ }
204
+ case "object":
205
+ rendered = type.properties.length ? `{ ${type.properties.map(
206
+ (property) => `${IDENTIFIER.test(property.name) ? property.name : JSON.stringify(property.name)}${property.optional ? "?" : ""}: ${renderFarmNativeType(property.type)}`
207
+ ).join("; ")} }` : "{}";
208
+ break;
209
+ }
210
+ return type.nullable ? `${rendered} | null` : rendered;
211
+ }
212
+ function renderFarmNativeMethod(method) {
213
+ const lastRequired = method.params.reduce(
214
+ (last, param, index) => param.optional ? last : index,
215
+ -1
216
+ );
217
+ const params = method.params.map((param, index) => {
218
+ const type = renderFarmNativeType(param.type);
219
+ if (!param.optional) return `${param.name}: ${type}`;
220
+ return index > lastRequired ? `${param.name}?: ${type}` : `${param.name}: ${type} | undefined`;
221
+ }).join(", ");
222
+ return `${method.name}(${params}): Promise<${renderFarmNativeType(method.returns)}>;`;
223
+ }
224
+ function createFarmNativeModuleTypeDeclarations(specs, options) {
225
+ if (specs.length === 0 || !hasFarmNativeCodegen(options.root)) return void 0;
226
+ const modules = specs.map((spec) => {
227
+ const { methods } = readFarmNativeWebSpec({ root: options.root, file: spec.file });
228
+ const body = methods.filter((method) => method.name !== "available").map((method) => ` ${renderFarmNativeMethod(method)}`).join("\n");
229
+ return ` ${spec.name}: {${body ? `
230
+ ${body}
231
+ ` : ""}};`;
232
+ });
233
+ return `/**
234
+ * Auto-generated from the Codegen specs in src/native: native.<module> from @farm.js/core/native.
235
+ * Web screens reach a module's Promise methods only when mobile.modules.<name>.web is true, and
236
+ * only inside the Android shell; check native.<module>.available() first.
237
+ */
238
+ declare module "@farm.js/core/native" {
239
+ interface FarmNativeModules {
240
+ ${modules.join("\n")}
241
+ }
242
+ }`;
243
+ }
244
+
245
+ export {
246
+ hasFarmNativeCodegen,
247
+ readFarmNativeWebSpec,
248
+ renderFarmNativeType,
249
+ renderFarmNativeMethod,
250
+ createFarmNativeModuleTypeDeclarations
251
+ };
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  getFarmAPIBaseURL,
28
28
  resolveFarmAPIRequestURL
29
- } from "./chunk-BLD5GVCG.mjs";
29
+ } from "./chunk-W6QLRQ3V.mjs";
30
30
  import {
31
31
  FARM_CACHE_INVALIDATION_HEADER,
32
32
  applyFarmCacheInvalidations,
@@ -2045,7 +2045,7 @@ function buildCacheKey(method, path, input, baseURL, defaultHeaders) {
2045
2045
  return `${method}:${url.origin}${url.pathname}:${stableStringify(keyInput ?? {})}`;
2046
2046
  }
2047
2047
  function isSameOriginAPIBaseURL(baseURL) {
2048
- if (typeof window === "undefined") return baseURL.startsWith("/");
2048
+ if (typeof window === "undefined" || !window.location) return baseURL.startsWith("/");
2049
2049
  return resolveFarmAPIRequestURL("/api", baseURL).origin === window.location.origin;
2050
2050
  }
2051
2051
  function stableStringify(value) {
@@ -1,14 +1,14 @@
1
+ import {
2
+ appendMiddlewareDirectory,
3
+ appendMiddlewareRoutePath,
4
+ compareMiddlewareRouteLocations
5
+ } from "./chunk-MMK4MZUN.mjs";
1
6
  import {
2
7
  normalizeMiddlewareModule,
3
8
  parseMiddlewareCookieHeader,
4
9
  serializeMiddlewareCookie,
5
10
  serializeMiddlewareCookieDeletion
6
11
  } from "./chunk-KPAJWD3N.mjs";
7
- import {
8
- appendMiddlewareDirectory,
9
- appendMiddlewareRoutePath,
10
- compareMiddlewareRouteLocations
11
- } from "./chunk-5ENW27SL.mjs";
12
12
  import {
13
13
  compileMiddlewareConfig,
14
14
  compileMiddlewareRoute,
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-TUOO6IK3.mjs";
28
28
  import {
29
29
  logger
30
- } from "./chunk-Y3N5BFRJ.mjs";
30
+ } from "./chunk-JSDV2NUN.mjs";
31
31
  import {
32
32
  emitFarmEvent
33
33
  } from "./chunk-2DA7CLY7.mjs";
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-CO6UYM2D.mjs";
37
37
  import {
38
38
  createFarmAPIMiddlewarePathnames
39
- } from "./chunk-LM2YOGDK.mjs";
39
+ } from "./chunk-2I6PUKWJ.mjs";
40
40
  import {
41
41
  getFarmRedirectError,
42
42
  isFarmNotFoundError,
@@ -17,7 +17,7 @@ import {
17
17
  matchAPIRouteAtBasePath,
18
18
  mergePluginAPIRoutes,
19
19
  resolveAPIRouteEndpoint
20
- } from "./chunk-LJDIFIJ2.mjs";
20
+ } from "./chunk-RPUJHJHE.mjs";
21
21
  import {
22
22
  registerAPIRouteShape
23
23
  } from "./chunk-GWXZS7K5.mjs";
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-TUOO6IK3.mjs";
37
37
  import {
38
38
  logger
39
- } from "./chunk-Y3N5BFRJ.mjs";
39
+ } from "./chunk-JSDV2NUN.mjs";
40
40
  import {
41
41
  AmbiguousRouteError,
42
42
  NonTerminalCatchAllRouteError
@@ -7,10 +7,14 @@ import {
7
7
  notifyHistoryChange,
8
8
  readPageState,
9
9
  subscribeHistoryChange
10
- } from "./chunk-SN5VSO3Q.mjs";
10
+ } from "./chunk-25T5VXOE.mjs";
11
11
  import {
12
12
  getFarmI18nClientState
13
13
  } from "./chunk-PTLXHRJZ.mjs";
14
+ import {
15
+ hasFarmNavigationDelegates,
16
+ runFarmNavigationDelegates
17
+ } from "./chunk-RSEAX5MW.mjs";
14
18
  import {
15
19
  _peekCurrentRequest
16
20
  } from "./chunk-VIXTAVEA.mjs";
@@ -56,6 +60,13 @@ function navigateViaRouter(href, basePath, replace, options = {}) {
56
60
  });
57
61
  return;
58
62
  }
63
+ if (hasFarmNavigationDelegates()) {
64
+ void writeHistoryUnlessDelegated(url, replace);
65
+ return;
66
+ }
67
+ writeHistory(url, replace);
68
+ }
69
+ function writeHistory(url, replace) {
59
70
  if (replace) {
60
71
  window.history.replaceState(null, "", url);
61
72
  } else {
@@ -63,6 +74,20 @@ function navigateViaRouter(href, basePath, replace, options = {}) {
63
74
  }
64
75
  notifyHistoryChange("url-search");
65
76
  }
77
+ async function writeHistoryUnlessDelegated(url, replace) {
78
+ const target = new URL(url, window.location.href);
79
+ const from = window.location.pathname + window.location.search;
80
+ const to = target.pathname + target.search;
81
+ if (target.origin === window.location.origin && to !== from && await runFarmNavigationDelegates({
82
+ url: target.href,
83
+ from,
84
+ to,
85
+ action: replace ? "replace" : "push"
86
+ })) {
87
+ return;
88
+ }
89
+ writeHistory(url, replace);
90
+ }
66
91
  function useRouter(options = {}) {
67
92
  const basePath = options.basePath === void 0 ? getFarmBasePath() : normalizeFarmBasePath(options.basePath);
68
93
  const routes = options.routes;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveFarmAPICanonicalPathname,
3
3
  resolveFarmAPIServerRoutePath
4
- } from "./chunk-LM2YOGDK.mjs";
4
+ } from "./chunk-2I6PUKWJ.mjs";
5
5
  import {
6
6
  matchAPIRoute
7
7
  } from "./chunk-GUZC226X.mjs";
@@ -15,12 +15,12 @@ var _chunk4DCWVSL2cjs = require('./chunk-4DCWVSL2.cjs');
15
15
  var _chunkITV4QQL2cjs = require('./chunk-ITV4QQL2.cjs');
16
16
 
17
17
 
18
+ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
18
19
 
19
20
 
20
- var _chunkLIFUPCXWcjs = require('./chunk-LIFUPCXW.cjs');
21
21
 
22
22
 
23
- var _chunkB5BBTPJQcjs = require('./chunk-B5BBTPJQ.cjs');
23
+ var _chunkLIFUPCXWcjs = require('./chunk-LIFUPCXW.cjs');
24
24
 
25
25
 
26
26
 
@@ -28,7 +28,7 @@ var _chunkCA7DNRHOcjs = require('./chunk-CA7DNRHO.cjs');
28
28
 
29
29
 
30
30
 
31
- var _chunkIWFV5ZEDcjs = require('./chunk-IWFV5ZED.cjs');
31
+ var _chunkPMJSG4JScjs = require('./chunk-PMJSG4JS.cjs');
32
32
 
33
33
 
34
34
 
@@ -160,23 +160,23 @@ function getAllowedAPIRouteMethods(route) {
160
160
  }
161
161
  return methods;
162
162
  }
163
- function matchAPIRouteAtBasePath(routes, pathname, serverBasePath = _chunkIWFV5ZEDcjs.DEFAULT_FARM_API_BASE_PATH) {
163
+ function matchAPIRouteAtBasePath(routes, pathname, serverBasePath = _chunkPMJSG4JScjs.DEFAULT_FARM_API_BASE_PATH) {
164
164
  const directMatch = _chunkCA7DNRHOcjs.matchAPIRoute.call(void 0, routes, pathname);
165
165
  if (directMatch) return directMatch;
166
- const canonicalPathname = _chunkB5BBTPJQcjs.resolveFarmAPICanonicalPathname.call(void 0, pathname, serverBasePath);
166
+ const canonicalPathname = _chunk2OF5RPVUcjs.resolveFarmAPICanonicalPathname.call(void 0, pathname, serverBasePath);
167
167
  return canonicalPathname === pathname ? null : _chunkCA7DNRHOcjs.matchAPIRoute.call(void 0, routes, canonicalPathname);
168
168
  }
169
- function createStaticAPIRouteMatcherAtBasePath(routes, serverBasePath = _chunkIWFV5ZEDcjs.DEFAULT_FARM_API_BASE_PATH) {
169
+ function createStaticAPIRouteMatcherAtBasePath(routes, serverBasePath = _chunkPMJSG4JScjs.DEFAULT_FARM_API_BASE_PATH) {
170
170
  const match = _chunkCA7DNRHOcjs.createStaticAPIRouteMatcher.call(void 0, routes);
171
171
  return (pathname) => {
172
172
  const directMatch = match(pathname);
173
173
  if (directMatch) return directMatch;
174
- const canonicalPathname = _chunkB5BBTPJQcjs.resolveFarmAPICanonicalPathname.call(void 0, pathname, serverBasePath);
174
+ const canonicalPathname = _chunk2OF5RPVUcjs.resolveFarmAPICanonicalPathname.call(void 0, pathname, serverBasePath);
175
175
  return canonicalPathname === pathname ? null : match(canonicalPathname);
176
176
  };
177
177
  }
178
- function isFarmAPIPathname(pathname, serverBasePath = _chunkIWFV5ZEDcjs.DEFAULT_FARM_API_BASE_PATH) {
179
- const basePath = _chunkIWFV5ZEDcjs.normalizeFarmAPIBasePath.call(void 0, serverBasePath);
178
+ function isFarmAPIPathname(pathname, serverBasePath = _chunkPMJSG4JScjs.DEFAULT_FARM_API_BASE_PATH) {
179
+ const basePath = _chunkPMJSG4JScjs.normalizeFarmAPIBasePath.call(void 0, serverBasePath);
180
180
  return basePath !== "/" && (pathname === basePath || pathname.startsWith(`${basePath}/`));
181
181
  }
182
182
  async function invokeAPIRouteEndpoint(endpoint, request, params = {}, bodySizeLimit = _chunkLIFUPCXWcjs.DEFAULT_FARM_SERVER_BODY_SIZE_LIMIT) {