@farm.js/core 0.1.81 → 0.1.83

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 (290) hide show
  1. package/dist/{agent-mcp.d-Cxi3214_.d.ts → agent-mcp.d-7uKdOttc.d.ts} +1 -1
  2. package/dist/{agent-mcp.d-DMqOqnOA.d.mts → agent-mcp.d-LChlR2au.d.mts} +1 -1
  3. package/dist/agent-runtime.cjs +4 -3
  4. package/dist/agent-runtime.d.mts +2 -1
  5. package/dist/agent-runtime.d.ts +2 -1
  6. package/dist/agent-runtime.mjs +3 -2
  7. package/dist/analyzer-WGH6J2HN.cjs +17 -0
  8. package/dist/{analyzer-IC66UJCU.mjs → analyzer-Y6IY26HI.mjs} +2 -2
  9. package/dist/api/node.cjs +5 -4
  10. package/dist/api/node.d.mts +4 -3
  11. package/dist/api/node.d.ts +4 -3
  12. package/dist/api/node.mjs +4 -3
  13. package/dist/api/route-manager.cjs +5 -4
  14. package/dist/api/route-manager.d.mts +4 -3
  15. package/dist/api/route-manager.d.ts +4 -3
  16. package/dist/api/route-manager.mjs +4 -3
  17. package/dist/api/runtime.cjs +4 -3
  18. package/dist/api/runtime.d.mts +3 -2
  19. package/dist/api/runtime.d.ts +3 -2
  20. package/dist/api/runtime.mjs +3 -2
  21. package/dist/api.cjs +7 -6
  22. package/dist/api.d.mts +5 -4
  23. package/dist/api.d.ts +5 -4
  24. package/dist/api.mjs +6 -5
  25. package/dist/{app-manifest.d-C8Cswd31.d.ts → app-manifest.d-CRp21oAz.d.ts} +1 -1
  26. package/dist/{app-manifest.d-Bbxp5kes.d.mts → app-manifest.d-QMdmqqCr.d.mts} +1 -1
  27. package/dist/app-markdown.d.mts +3 -2
  28. package/dist/app-markdown.d.ts +3 -2
  29. package/dist/{app.d-DGIoFt5D.d.ts → app.d-CVPu_hoD.d.ts} +51 -4
  30. package/dist/{app.d-BJuSurgy.d.mts → app.d-eSm7jgoc.d.mts} +51 -4
  31. package/dist/{chunk-NSLRK5DK.cjs → chunk-3CZ4MJHW.cjs} +1 -1
  32. package/dist/{chunk-CPZZBCPO.cjs → chunk-3DAJXBSL.cjs} +2 -2
  33. package/dist/chunk-3DE6RK7K.cjs +36 -0
  34. package/dist/{chunk-XMHERKSE.mjs → chunk-42IBGQTN.mjs} +5 -12
  35. package/dist/{chunk-GY63XD6K.mjs → chunk-43N3X6OO.mjs} +1 -1
  36. package/dist/{chunk-MOGRRZMW.cjs → chunk-55UJGUBP.cjs} +35 -30
  37. package/dist/{chunk-BPWTSPK6.mjs → chunk-5AL2GXAU.mjs} +1 -1
  38. package/dist/{chunk-GAWSWJJ2.cjs → chunk-5GFTMTX3.cjs} +2 -2
  39. package/dist/{chunk-LKIG5SM6.cjs → chunk-5P65LXGU.cjs} +9 -9
  40. package/dist/{chunk-TPA2PV5J.mjs → chunk-5V6HSJFG.mjs} +24 -1
  41. package/dist/chunk-5X5GJU5A.cjs +426 -0
  42. package/dist/{chunk-UF4BNKKJ.mjs → chunk-6QYPP5KC.mjs} +2 -2
  43. package/dist/{chunk-ATISIC6G.mjs → chunk-7VJXYB6S.mjs} +7 -1
  44. package/dist/{chunk-OIWDEDUO.cjs → chunk-7X2CYE66.cjs} +419 -357
  45. package/dist/{chunk-XOGCNKB7.cjs → chunk-A5BHJHDF.cjs} +3 -3
  46. package/dist/{chunk-WGWWRV2M.cjs → chunk-B3HQTGXS.cjs} +6 -4
  47. package/dist/{chunk-HTNJ7A4D.mjs → chunk-B5SJYXJK.mjs} +177 -67
  48. package/dist/chunk-BUQR7KKO.mjs +17 -0
  49. package/dist/{chunk-OO4GVGM3.mjs → chunk-CA2HBLXP.mjs} +11 -1
  50. package/dist/{chunk-724WT3NI.mjs → chunk-CRE642TW.mjs} +1 -1
  51. package/dist/{chunk-Z5BANEQD.cjs → chunk-DMSXZNQR.cjs} +2 -2
  52. package/dist/{chunk-IPG6B25T.mjs → chunk-DPUZVGXH.mjs} +203 -54
  53. package/dist/{chunk-ZIYJWJV2.cjs → chunk-DZTWUEBB.cjs} +8 -8
  54. package/dist/{chunk-4OFWG4IK.cjs → chunk-EACD6ND7.cjs} +8 -2
  55. package/dist/{chunk-46UV2E7I.cjs → chunk-EFI6QWBQ.cjs} +200 -90
  56. package/dist/chunk-ELNRKD4V.mjs +426 -0
  57. package/dist/{chunk-XOXCQGAF.mjs → chunk-FFWSER54.mjs} +1 -1
  58. package/dist/chunk-FZ7OUN5M.cjs +30 -0
  59. package/dist/{chunk-5MMKNW7Q.cjs → chunk-H7REG7OX.cjs} +15 -8
  60. package/dist/{chunk-5ZHC6QGD.cjs → chunk-HQKCSJEH.cjs} +8 -2
  61. package/dist/{chunk-OUDNUFVR.cjs → chunk-HRH7OKBQ.cjs} +6 -4
  62. package/dist/{chunk-RHI67C2V.cjs → chunk-HUGPJFOC.cjs} +1 -35
  63. package/dist/{chunk-ADQ2LATR.cjs → chunk-IABI62FH.cjs} +2 -2
  64. package/dist/{chunk-TLSGRK7E.mjs → chunk-IAIRQAHA.mjs} +3 -1
  65. package/dist/{chunk-C2OLXVUC.mjs → chunk-IVP5Q4BX.mjs} +10 -3
  66. package/dist/{chunk-EX6ZSN5P.cjs → chunk-IZYFP7IN.cjs} +17 -24
  67. package/dist/chunk-J6RFB324.cjs +17 -0
  68. package/dist/{chunk-CL7BUGVB.cjs → chunk-JHRJ5V2F.cjs} +509 -360
  69. package/dist/{chunk-WIZRYFB2.cjs → chunk-JYQ6DGPW.cjs} +8 -6
  70. package/dist/{chunk-POL5RCVU.mjs → chunk-K3GHY7GY.mjs} +14 -9
  71. package/dist/{chunk-TYHWZOA2.mjs → chunk-KWI3SQFX.mjs} +4 -2
  72. package/dist/{chunk-UVV3I5QA.cjs → chunk-L2GUEYHR.cjs} +29 -6
  73. package/dist/{chunk-POVHO46S.mjs → chunk-L3RDECA5.mjs} +1 -1
  74. package/dist/{chunk-E3HBD2K3.cjs → chunk-LN6FAYNB.cjs} +36 -31
  75. package/dist/chunk-M6AJZ4XR.mjs +30 -0
  76. package/dist/{chunk-RPA45OQS.mjs → chunk-MO4UTDQ6.mjs} +1 -1
  77. package/dist/{chunk-6WVRVGKC.mjs → chunk-NAHDG6UX.mjs} +1 -1
  78. package/dist/{chunk-NOYKBGUK.mjs → chunk-NDWI6FDH.mjs} +558 -212
  79. package/dist/{chunk-OFVCWV2D.cjs → chunk-NEKO3HM2.cjs} +11 -1
  80. package/dist/{chunk-M6DAIE4T.cjs → chunk-NGTZHWBG.cjs} +78 -9
  81. package/dist/{chunk-D77OGI6X.mjs → chunk-NKVBWPXR.mjs} +1 -1
  82. package/dist/{chunk-SLEHAGGV.mjs → chunk-NQ3Y6E2T.mjs} +7 -1
  83. package/dist/{chunk-W6C3LEXX.cjs → chunk-OM6JIIJU.cjs} +155 -20
  84. package/dist/{chunk-S3IWDDQ3.mjs → chunk-ORBBAA7B.mjs} +1 -1
  85. package/dist/{chunk-7VCLTNED.mjs → chunk-PNMAD3OS.mjs} +1 -35
  86. package/dist/{chunk-BJWJP5A4.mjs → chunk-R3VLM2MW.mjs} +3 -3
  87. package/dist/{chunk-I4WZRG73.mjs → chunk-RB5IGN3N.mjs} +13 -6
  88. package/dist/{chunk-2HMSSPCZ.mjs → chunk-RGTZAM6Y.mjs} +71 -2
  89. package/dist/{chunk-IM3UINTZ.mjs → chunk-RNJX3MD6.mjs} +151 -16
  90. package/dist/{chunk-EJCVG25Z.mjs → chunk-S3R4JDRO.mjs} +17 -9
  91. package/dist/{chunk-2Y2HRZQY.cjs → chunk-SLIXHUMS.cjs} +931 -585
  92. package/dist/{chunk-WFVSAT7Y.cjs → chunk-T7HGXF7D.cjs} +3 -3
  93. package/dist/{chunk-ZKNXCRUQ.cjs → chunk-U54REWMJ.cjs} +23 -23
  94. package/dist/{chunk-YH7ENV3K.mjs → chunk-U56Z3755.mjs} +13 -8
  95. package/dist/chunk-U6XYBTUT.mjs +36 -0
  96. package/dist/{chunk-TCMRLW3K.cjs → chunk-VACYUMXW.cjs} +10 -3
  97. package/dist/{chunk-RZ6XUEQS.mjs → chunk-VQ6IXALL.mjs} +2 -2
  98. package/dist/{chunk-UGLTOLTJ.cjs → chunk-W76C7TCW.cjs} +2 -2
  99. package/dist/{chunk-FYZD7DUS.cjs → chunk-WCSBYQOT.cjs} +4 -4
  100. package/dist/{chunk-5N526T7Q.mjs → chunk-WZV2G2A6.mjs} +95 -33
  101. package/dist/{chunk-SM2SYWAR.cjs → chunk-XJDB564A.cjs} +18 -10
  102. package/dist/{chunk-6JWXHPVR.mjs → chunk-XRSNW4IU.mjs} +4 -2
  103. package/dist/{cli-runtime.d-D8O1v2_X.d.mts → cli-runtime.d-C7aMfoTq.d.mts} +8 -6
  104. package/dist/{cli-runtime.d-hf4L1MNP.d.ts → cli-runtime.d-DaElKjaL.d.ts} +8 -6
  105. package/dist/{client-component.d-DFwUHlOz.d.mts → client-component.d-DLMCzmUx.d.mts} +1 -1
  106. package/dist/{client-component.d-CX8UCQh-.d.ts → client-component.d-DLknFP8l.d.ts} +1 -1
  107. package/dist/{client-plugins.d-qWp8hNwd.d.ts → client-plugins.d-BVXjyIkY.d.ts} +20 -1
  108. package/dist/{client-plugins.d-BflSNO-b.d.mts → client-plugins.d-BwKwuO_0.d.mts} +20 -1
  109. package/dist/client-plugins.d.mts +2 -1
  110. package/dist/client-plugins.d.ts +2 -1
  111. package/dist/client.cjs +4 -3
  112. package/dist/client.d.mts +10 -9
  113. package/dist/client.d.ts +10 -9
  114. package/dist/client.mjs +3 -2
  115. package/dist/config.d.mts +2 -1
  116. package/dist/config.d.ts +2 -1
  117. package/dist/cron.cjs +2 -2
  118. package/dist/cron.mjs +1 -1
  119. package/dist/desktop.d.mts +3 -2
  120. package/dist/desktop.d.ts +3 -2
  121. package/dist/{devtools-XJHODO5H.mjs → devtools-OI52TCSD.mjs} +8 -7
  122. package/dist/{devtools-EI5N366Z.cjs → devtools-ZM2AR36W.cjs} +11 -10
  123. package/dist/docs.cjs +13 -11
  124. package/dist/docs.d.mts +15 -6
  125. package/dist/docs.d.ts +15 -6
  126. package/dist/docs.mjs +12 -10
  127. package/dist/environment/vite.cjs +4 -4
  128. package/dist/environment/vite.d.mts +1 -0
  129. package/dist/environment/vite.d.ts +1 -0
  130. package/dist/environment/vite.mjs +3 -3
  131. package/dist/{generate-route-types.d-CaGMIaNI.d.mts → generate-route-types.d-BFOMM8Ef.d.mts} +3 -0
  132. package/dist/{generate-route-types.d-B76M5R11.d.ts → generate-route-types.d-C2m8myHb.d.ts} +3 -0
  133. package/dist/{handler.d-DoH5Krkq.d.mts → handler.d-BKTWzzNA.d.mts} +1 -1
  134. package/dist/{handler.d-C2oRihfa.d.ts → handler.d-Dzpyg3-N.d.ts} +1 -1
  135. package/dist/{headers.d-BrX53wFQ.d.mts → headers.d-5opjyhXw.d.mts} +1 -1
  136. package/dist/{headers.d-Dj0mfYpb.d.ts → headers.d-PZyXcDAH.d.ts} +1 -1
  137. package/dist/index.cjs +38 -35
  138. package/dist/{index.d-DzDHOttz.d.mts → index.d-C0Mie66f.d.mts} +1 -1
  139. package/dist/{index.d-Dhc2scRl.d.ts → index.d-DV2q-0mE.d.ts} +1 -1
  140. package/dist/index.d.mts +26 -25
  141. package/dist/index.d.ts +26 -25
  142. package/dist/index.mjs +38 -35
  143. package/dist/integrations/orm.d.mts +2 -1
  144. package/dist/integrations/orm.d.ts +2 -1
  145. package/dist/integrations.cjs +4 -3
  146. package/dist/integrations.d.mts +2 -1
  147. package/dist/integrations.d.ts +2 -1
  148. package/dist/integrations.mjs +3 -2
  149. package/dist/internal/app-markdown-runtime.d.mts +3 -2
  150. package/dist/internal/app-markdown-runtime.d.ts +3 -2
  151. package/dist/internal/build-runtime.cjs +31 -30
  152. package/dist/internal/build-runtime.d.mts +5 -4
  153. package/dist/internal/build-runtime.d.ts +5 -4
  154. package/dist/internal/build-runtime.mjs +30 -29
  155. package/dist/internal/cli-runtime.cjs +12 -11
  156. package/dist/internal/cli-runtime.d.mts +8 -7
  157. package/dist/internal/cli-runtime.d.ts +8 -7
  158. package/dist/internal/cli-runtime.mjs +11 -10
  159. package/dist/internal/client-error-overlay.cjs +4 -4
  160. package/dist/internal/client-error-overlay.mjs +1 -1
  161. package/dist/internal/client-runtime.d.mts +5 -5
  162. package/dist/internal/client-runtime.d.ts +5 -5
  163. package/dist/internal/compression-runtime.d.mts +2 -1
  164. package/dist/internal/compression-runtime.d.ts +2 -1
  165. package/dist/internal/config-runtime.cjs +10 -9
  166. package/dist/internal/config-runtime.d.mts +6 -5
  167. package/dist/internal/config-runtime.d.ts +6 -5
  168. package/dist/internal/config-runtime.mjs +9 -8
  169. package/dist/internal/infra-analytics-runtime.cjs +8 -6
  170. package/dist/internal/infra-analytics-runtime.d.mts +8 -2
  171. package/dist/internal/infra-analytics-runtime.d.ts +8 -2
  172. package/dist/internal/infra-analytics-runtime.mjs +8 -6
  173. package/dist/internal/islands-action-client.cjs +18 -0
  174. package/dist/internal/islands-action-client.d.mts +18 -0
  175. package/dist/internal/islands-action-client.d.ts +18 -0
  176. package/dist/internal/islands-action-client.mjs +18 -0
  177. package/dist/internal/islands-boot.cjs +54 -20
  178. package/dist/internal/islands-boot.d.mts +5 -3
  179. package/dist/internal/islands-boot.d.ts +5 -3
  180. package/dist/internal/islands-boot.mjs +49 -15
  181. package/dist/internal/islands-runtime.cjs +3 -8
  182. package/dist/internal/islands-runtime.mjs +4 -9
  183. package/dist/internal/islx-actions-client.cjs +4 -3
  184. package/dist/internal/islx-actions-client.mjs +3 -2
  185. package/dist/internal/islx-actions-server.d.mts +0 -2
  186. package/dist/internal/islx-actions-server.d.ts +0 -2
  187. package/dist/internal/islx-client.cjs +13 -1
  188. package/dist/internal/islx-client.d.mts +11 -0
  189. package/dist/internal/islx-client.d.ts +11 -0
  190. package/dist/internal/islx-client.mjs +14 -0
  191. package/dist/internal/metadata-image-runtime.d.mts +1 -0
  192. package/dist/internal/metadata-image-runtime.d.ts +1 -0
  193. package/dist/internal/native-server-fns.cjs +4 -4
  194. package/dist/internal/native-server-fns.mjs +3 -3
  195. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  196. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  197. package/dist/internal/production-runtime.cjs +12 -7
  198. package/dist/internal/production-runtime.d.mts +14 -12
  199. package/dist/internal/production-runtime.d.ts +14 -12
  200. package/dist/internal/production-runtime.mjs +11 -6
  201. package/dist/internal/spa-router.d.mts +3 -3
  202. package/dist/internal/spa-router.d.ts +3 -3
  203. package/dist/internal/start-manifest.d.mts +2 -1
  204. package/dist/internal/start-manifest.d.ts +2 -1
  205. package/dist/markdown.d.mts +2 -1
  206. package/dist/markdown.d.ts +2 -1
  207. package/dist/middleware.d.mts +2 -1
  208. package/dist/middleware.d.ts +2 -1
  209. package/dist/mobile.d.mts +6 -3
  210. package/dist/mobile.d.ts +6 -3
  211. package/dist/{mount.d-DOaeUoWq.d.mts → mount.d-CZ_qL1iS.d.mts} +1 -1
  212. package/dist/{mount.d-DwXjaOHY.d.ts → mount.d-gWul1GA1.d.ts} +1 -1
  213. package/dist/{navigation-delegate.d-BElGUMgt.d.mts → navigation-delegate.d-BBTzhJLj.d.mts} +1 -1
  214. package/dist/{navigation-delegate.d-o3pPd9VI.d.ts → navigation-delegate.d-BZsYEAet.d.ts} +1 -1
  215. package/dist/navigation.d.mts +5 -5
  216. package/dist/navigation.d.ts +5 -5
  217. package/dist/{nitro-YLTGVGK4.mjs → nitro-FK3SZM4H.mjs} +1 -1
  218. package/dist/{nitro-XGIO6EQN.cjs → nitro-YDFMH5PY.cjs} +4 -4
  219. package/dist/{plugin-LN3JBZRR.cjs → plugin-3PT7I26P.cjs} +2 -2
  220. package/dist/{plugin-33I3V42N.mjs → plugin-QOTAPTVV.mjs} +1 -1
  221. package/dist/plugin.cjs +25 -23
  222. package/dist/plugin.d.mts +6 -6
  223. package/dist/plugin.d.ts +6 -6
  224. package/dist/plugin.mjs +24 -22
  225. package/dist/{render-plan.d-BD06tqFA.d.ts → render-plan.d-AaJsYPX-.d.ts} +1 -1
  226. package/dist/{render-plan.d-xWCRAJeR.d.mts → render-plan.d-bnWxS12w.d.mts} +1 -1
  227. package/dist/renderer-client.cjs +54 -10
  228. package/dist/renderer-client.d.mts +8 -7
  229. package/dist/renderer-client.d.ts +8 -7
  230. package/dist/renderer-client.mjs +50 -6
  231. package/dist/renderer.cjs +6 -2
  232. package/dist/renderer.d.mts +97 -4
  233. package/dist/renderer.d.ts +97 -4
  234. package/dist/renderer.mjs +5 -1
  235. package/dist/{request.d-Dx82V8bz.d.mts → request.d-C2HOn3Hi.d.mts} +1 -1
  236. package/dist/{request.d-DUMuWxSN.d.ts → request.d-CAeitOG1.d.ts} +1 -1
  237. package/dist/request.d.mts +3 -2
  238. package/dist/request.d.ts +3 -2
  239. package/dist/{route-rendering.d-BwBVpLtD.d.ts → route-rendering.d-A1dIkUK5.d.ts} +1 -1
  240. package/dist/{route-rendering.d-DJh6GauM.d.mts → route-rendering.d-CYA-ulnX.d.mts} +1 -1
  241. package/dist/{router.d-BtkKDxUB.d.mts → router.d-8lxnzlkr.d.mts} +1 -1
  242. package/dist/{router.d-CJBSG5jr.d.ts → router.d-A_Yt6jYz.d.ts} +1 -1
  243. package/dist/{routes.d-CCccJRrp.d.mts → routes.d-BWvpUoYu.d.mts} +1 -1
  244. package/dist/{routes.d-b7khoRoU.d.ts → routes.d-D7RWvfqL.d.ts} +1 -1
  245. package/dist/routes.d.mts +2 -1
  246. package/dist/routes.d.ts +2 -1
  247. package/dist/{rsc-pipeline-H5AXQA7A.cjs → rsc-pipeline-MFJZGDPE.cjs} +11 -10
  248. package/dist/{rsc-pipeline-GD6KLOIG.mjs → rsc-pipeline-TRZVFCBX.mjs} +10 -9
  249. package/dist/{runtime-YWQVBC3V.cjs → runtime-MJUG2HGR.cjs} +15 -13
  250. package/dist/{runtime-OJ7FXFUI.mjs → runtime-O4Y3Z6V3.mjs} +11 -9
  251. package/dist/{runtime.d-BQnD0cfC.d.ts → runtime.d-BPyvWrgQ.d.ts} +1 -1
  252. package/dist/{runtime.d-C4SuZXf6.d.mts → runtime.d-C_rZ9_DD.d.mts} +1 -1
  253. package/dist/{server-components-status.d-9rH7ZoEq.d.mts → server-components-status.d-BpxiEMQE.d.mts} +1 -1
  254. package/dist/{server-components-status.d-rfKOcE0N.d.ts → server-components-status.d-C2UEKJn7.d.ts} +1 -1
  255. package/dist/server-plugins.d.mts +4 -3
  256. package/dist/server-plugins.d.ts +4 -3
  257. package/dist/server-query-call.d-rVM_lsYk.d.mts +15 -0
  258. package/dist/server-query-call.d-rVM_lsYk.d.ts +15 -0
  259. package/dist/server-query-client.cjs +5 -3
  260. package/dist/server-query-client.d.mts +3 -2
  261. package/dist/server-query-client.d.ts +3 -2
  262. package/dist/server-query-client.mjs +5 -3
  263. package/dist/{server-query-runtime.d-DXRNhX_3.d.ts → server-query-runtime.d-BlHd90D0.d.ts} +2 -8
  264. package/dist/{server-query-runtime.d-aP52iuL5.d.mts → server-query-runtime.d-CCLGkQtE.d.mts} +2 -8
  265. package/dist/server.cjs +58 -52
  266. package/dist/server.d.mts +12 -12
  267. package/dist/server.d.ts +12 -12
  268. package/dist/server.mjs +34 -28
  269. package/dist/{spa-router.d-V6XLSTCy.d.mts → spa-router.d-BD-6WX1R.d.mts} +2 -2
  270. package/dist/{spa-router.d-DMKiBsHH.d.ts → spa-router.d-Cw5i_15e.d.ts} +2 -2
  271. package/dist/{ssg.d-MNedvvMB.d.ts → ssg.d-Bifiq0EL.d.ts} +2 -2
  272. package/dist/{ssg.d-BnCKPQL0.d.mts → ssg.d-CCE9aob5.d.mts} +2 -2
  273. package/dist/{store-core.d-Ad5biajo.d.ts → store-core.d-5tVn5vi1.d.ts} +12 -4
  274. package/dist/{store-core.d-BqJI1-ix.d.mts → store-core.d-BN2MxSG9.d.mts} +12 -4
  275. package/dist/testing.cjs +5 -4
  276. package/dist/testing.d.mts +2 -1
  277. package/dist/testing.d.ts +2 -1
  278. package/dist/testing.mjs +4 -3
  279. package/dist/{utils.d-BdjHKDuT.d.ts → utils.d-BUjpSNIO.d.ts} +1 -1
  280. package/dist/{utils.d-BEKLWa0Z.d.mts → utils.d-wGPLeVbq.d.mts} +1 -1
  281. package/dist/version.cjs +2 -2
  282. package/dist/version.mjs +1 -1
  283. package/dist/vite.cjs +25 -23
  284. package/dist/vite.d.mts +6 -6
  285. package/dist/vite.d.ts +6 -6
  286. package/dist/vite.mjs +24 -22
  287. package/package.json +7 -2
  288. package/dist/analyzer-435DCIQ6.cjs +0 -17
  289. package/dist/chunk-AHVF5GI2.cjs +0 -229
  290. package/dist/chunk-ONSZP5JK.mjs +0 -229
@@ -4,7 +4,7 @@ var _chunkN4AQNEXRcjs = require('./chunk-N4AQNEXR.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkEX6ZSN5Pcjs = require('./chunk-EX6ZSN5P.cjs');
7
+ var _chunkIZYFP7INcjs = require('./chunk-IZYFP7IN.cjs');
8
8
 
9
9
 
10
10
  var _chunkI2BYNELAcjs = require('./chunk-I2BYNELA.cjs');
@@ -13,7 +13,7 @@ var _chunkI2BYNELAcjs = require('./chunk-I2BYNELA.cjs');
13
13
  var _react = require('react');
14
14
  function useServerQuery(query, input, options = {}) {
15
15
  const cache = _chunkI2BYNELAcjs.getFarmClientDataCache.call(void 0, );
16
- const key = _chunkEX6ZSN5Pcjs.createServerQueryCallKey.call(void 0, query, input);
16
+ const key = _chunkIZYFP7INcjs.createServerQueryCallKey.call(void 0, query, input);
17
17
  const inputRef = _react.useRef.call(void 0, input);
18
18
  const optionsRef = _react.useRef.call(void 0, options);
19
19
  const mountedKeyRef = _react.useRef.call(void 0, void 0);
@@ -35,7 +35,7 @@ function useServerQuery(query, input, options = {}) {
35
35
  const run = _react.useCallback.call(void 0,
36
36
  (force = false) => {
37
37
  pendingInvalidationRef.current = false;
38
- return _chunkEX6ZSN5Pcjs.fetchServerQuery.call(void 0, query, inputRef.current, {
38
+ return _chunkIZYFP7INcjs.fetchServerQuery.call(void 0, query, inputRef.current, {
39
39
  ...optionsRef.current,
40
40
  force
41
41
  });
@@ -9,7 +9,7 @@ var _chunkKBGZ5FD6cjs = require('./chunk-KBGZ5FD6.cjs');
9
9
  var _chunkP2355C6Ecjs = require('./chunk-P2355C6E.cjs');
10
10
 
11
11
 
12
- var _chunkLKIG5SM6cjs = require('./chunk-LKIG5SM6.cjs');
12
+ var _chunk5P65LXGUcjs = require('./chunk-5P65LXGU.cjs');
13
13
 
14
14
 
15
15
  var _chunkHS4JPIGRcjs = require('./chunk-HS4JPIGR.cjs');
@@ -26,7 +26,7 @@ var _chunkSBDWCDS6cjs = require('./chunk-SBDWCDS6.cjs');
26
26
 
27
27
 
28
28
 
29
- var _chunkWIZRYFB2cjs = require('./chunk-WIZRYFB2.cjs');
29
+ var _chunkJYQ6DGPWcjs = require('./chunk-JYQ6DGPW.cjs');
30
30
 
31
31
 
32
32
  var _chunkYUCU6XB4cjs = require('./chunk-YUCU6XB4.cjs');
@@ -148,7 +148,7 @@ function farmApiPlugin(options = {}) {
148
148
  const existing = apiRoutesCache.get(routePath);
149
149
  const existingFile = _optionalChain([endpointSources, 'access', _4 => _4.get, 'call', _5 => _5(routePath), 'optionalAccess', _6 => _6.get, 'call', _7 => _7(normalizedMethod)]);
150
150
  if (existingFile) {
151
- throw new (0, _chunkLKIG5SM6cjs.APIRouteConflictError)(routePath, normalizedMethod, existingFile, filePath);
151
+ throw new (0, _chunk5P65LXGUcjs.APIRouteConflictError)(routePath, normalizedMethod, existingFile, filePath);
152
152
  }
153
153
  if (existing) {
154
154
  if (!existing.methods.includes(normalizedMethod)) {
@@ -224,7 +224,7 @@ function farmApiPlugin(options = {}) {
224
224
  const createRouter = async () => {
225
225
  const plugins = options.plugins ? await (_nullishCoalesce(routePlugins, () => ( (routePlugins = Promise.resolve(options.plugins({ root: projectRoot })))))) : [];
226
226
  pluginMergedRoutes = plugins.length ? new Map(
227
- _chunkWIZRYFB2cjs.mergePluginAPIRoutes.call(void 0, [...apiRoutesCache.values()], plugins, void 0, {
227
+ _chunkJYQ6DGPWcjs.mergePluginAPIRoutes.call(void 0, [...apiRoutesCache.values()], plugins, void 0, {
228
228
  bodySizeLimit,
229
229
  // A plugin calling an app endpoint (an MCP tool, say) goes back through this server,
230
230
  // so the middleware that guards the endpoint's path runs for it.
@@ -244,7 +244,7 @@ function farmApiPlugin(options = {}) {
244
244
  const url = new URL(request.url);
245
245
  const method = request.method.toUpperCase();
246
246
  const pathname = url.pathname;
247
- const match = _chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath);
247
+ const match = _chunkJYQ6DGPWcjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath);
248
248
  if (!match) {
249
249
  return new Response(JSON.stringify({ error: "Not Found" }), {
250
250
  status: 404,
@@ -252,21 +252,21 @@ function farmApiPlugin(options = {}) {
252
252
  });
253
253
  }
254
254
  const { route, params } = match;
255
- const endpoint = _chunkWIZRYFB2cjs.resolveAPIRouteEndpoint.call(void 0, route, method);
255
+ const endpoint = _chunkJYQ6DGPWcjs.resolveAPIRouteEndpoint.call(void 0, route, method);
256
256
  if (!endpoint) {
257
257
  return new Response(JSON.stringify({ error: "Method Not Allowed" }), {
258
258
  status: 405,
259
259
  headers: {
260
- Allow: _chunkWIZRYFB2cjs.getAllowedAPIRouteMethods.call(void 0, route).join(", "),
260
+ Allow: _chunkJYQ6DGPWcjs.getAllowedAPIRouteMethods.call(void 0, route).join(", "),
261
261
  "Content-Type": "application/json"
262
262
  }
263
263
  });
264
264
  }
265
265
  try {
266
- return await _chunkWIZRYFB2cjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params, bodySizeLimit);
266
+ return await _chunkJYQ6DGPWcjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params, bodySizeLimit);
267
267
  } catch (error) {
268
268
  console.error(`[API Error] ${pathname}:`, error);
269
- return _chunkWIZRYFB2cjs.createFarmInternalServerErrorResponse.call(void 0, );
269
+ return _chunkJYQ6DGPWcjs.createFarmInternalServerErrorResponse.call(void 0, );
270
270
  }
271
271
  };
272
272
  log(`API router created with ${totalEndpoints} endpoints`);
@@ -310,7 +310,7 @@ function farmApiPlugin(options = {}) {
310
310
  const routeModule = await _chunk25JGHAGHcjs.loadFarmDevModule.call(void 0, server, filePath);
311
311
  const endpoints = {};
312
312
  const availableMethods = [];
313
- for (const method of _chunkWIZRYFB2cjs.API_ROUTE_METHODS) {
313
+ for (const method of _chunkJYQ6DGPWcjs.API_ROUTE_METHODS) {
314
314
  if (routeModule[method]) {
315
315
  availableMethods.push(method);
316
316
  endpoints[method] = routeModule[method];
@@ -323,7 +323,7 @@ function farmApiPlugin(options = {}) {
323
323
  log(`API route discovered: ${availableMethods.join(", ")} ${routePath}`);
324
324
  }
325
325
  } catch (e) {
326
- if (e instanceof _chunkLKIG5SM6cjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
326
+ if (e instanceof _chunk5P65LXGUcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
327
327
  log(`API route load failed at ${filePath}: ${e.message}`);
328
328
  }
329
329
  }
@@ -350,7 +350,7 @@ function farmApiPlugin(options = {}) {
350
350
  }
351
351
  }
352
352
  } catch (e) {
353
- if (e instanceof _chunkLKIG5SM6cjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
353
+ if (e instanceof _chunk5P65LXGUcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
354
354
  log(`Root routes.ts load failed: ${e.message}`);
355
355
  }
356
356
  break;
@@ -381,7 +381,7 @@ function farmApiPlugin(options = {}) {
381
381
  }
382
382
  }
383
383
  } catch (e) {
384
- if (e instanceof _chunkLKIG5SM6cjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
384
+ if (e instanceof _chunk5P65LXGUcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
385
385
  log(`Programmatic routes file load failed at ${routeFile}: ${e.message}`);
386
386
  }
387
387
  }
@@ -433,7 +433,7 @@ function farmApiPlugin(options = {}) {
433
433
  const runWithDevI18n = async (req, res, handle) => {
434
434
  const i18n = await devI18n;
435
435
  const pathname = (req.url || "/").split("?")[0];
436
- if (!_chunkWIZRYFB2cjs.isFarmAPIPathname.call(void 0, pathname, basePath) && !_chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath)) {
436
+ if (!_chunkJYQ6DGPWcjs.isFarmAPIPathname.call(void 0, pathname, basePath) && !_chunkJYQ6DGPWcjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath)) {
437
437
  return handle();
438
438
  }
439
439
  const headers = new Headers();
@@ -472,15 +472,15 @@ function farmApiPlugin(options = {}) {
472
472
  if (discoveryPromise) await waitForDiscovery();
473
473
  const farmMiddleware = server.__farmMiddleware__;
474
474
  let middlewareRan = false;
475
- if (!_chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath)) {
476
- if (!farmMiddleware || !apiRouterHandler || !_chunkWIZRYFB2cjs.isFarmAPIPathname.call(void 0, pathname, basePath)) {
475
+ if (!_chunkJYQ6DGPWcjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath)) {
476
+ if (!farmMiddleware || !apiRouterHandler || !_chunkJYQ6DGPWcjs.isFarmAPIPathname.call(void 0, pathname, basePath)) {
477
477
  return next();
478
478
  }
479
479
  await _optionalChain([farmMiddleware, 'access', _10 => _10.waitForDiscovery, 'optionalCall', _11 => _11()]);
480
480
  if (await farmMiddleware.execute(req, res, pathname, /* @__PURE__ */ new Map())) return;
481
481
  middlewareRan = true;
482
482
  const rewrittenPathname = (req.url || url).split("?")[0];
483
- if (rewrittenPathname === pathname || !_chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), rewrittenPathname, basePath)) {
483
+ if (rewrittenPathname === pathname || !_chunkJYQ6DGPWcjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), rewrittenPathname, basePath)) {
484
484
  return next();
485
485
  }
486
486
  }
@@ -501,7 +501,7 @@ function farmApiPlugin(options = {}) {
501
501
  }
502
502
  const currentUrl = req.url || url;
503
503
  const currentPathname = currentUrl.split("?")[0];
504
- if (currentPathname !== pathname && !_chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), currentPathname, basePath)) {
504
+ if (currentPathname !== pathname && !_chunkJYQ6DGPWcjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), currentPathname, basePath)) {
505
505
  return next();
506
506
  }
507
507
  const fullUrl = _chunk2RSVYJT6cjs.resolveFarmRequestURL.call(void 0, req);
@@ -538,7 +538,7 @@ function farmApiPlugin(options = {}) {
538
538
  console.error("[FARM] API error:", error);
539
539
  res.statusCode = 500;
540
540
  res.setHeader("Content-Type", "application/json");
541
- res.end(_chunkWIZRYFB2cjs.FARM_INTERNAL_SERVER_ERROR_BODY);
541
+ res.end(_chunkJYQ6DGPWcjs.FARM_INTERNAL_SERVER_ERROR_BODY);
542
542
  }
543
543
  });
544
544
  server.middlewares.use((req, res, next) => {
@@ -562,7 +562,7 @@ function farmApiPlugin(options = {}) {
562
562
  }
563
563
  res.statusCode = 500;
564
564
  res.setHeader("Content-Type", "application/json");
565
- res.end(_chunkWIZRYFB2cjs.FARM_INTERNAL_SERVER_ERROR_BODY);
565
+ res.end(_chunkJYQ6DGPWcjs.FARM_INTERNAL_SERVER_ERROR_BODY);
566
566
  });
567
567
  });
568
568
  };
@@ -606,7 +606,7 @@ function farmApiPlugin(options = {}) {
606
606
  log(`API router recreated`);
607
607
  } catch (e) {
608
608
  restoreRouteState(previousState);
609
- if (e instanceof _chunkLKIG5SM6cjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
609
+ if (e instanceof _chunk5P65LXGUcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
610
610
  log(`Root routes.ts HMR failed: ${e.message}`);
611
611
  }
612
612
  return [];
@@ -634,7 +634,7 @@ function farmApiPlugin(options = {}) {
634
634
  const routeModule = await _chunk25JGHAGHcjs.loadFarmDevModule.call(void 0, server, file);
635
635
  removeEndpointsFromFile(file);
636
636
  const availableMethods = [];
637
- for (const method of _chunkWIZRYFB2cjs.API_ROUTE_METHODS) {
637
+ for (const method of _chunkJYQ6DGPWcjs.API_ROUTE_METHODS) {
638
638
  if (!routeModule[method]) continue;
639
639
  availableMethods.push(method);
640
640
  addEndpoint(routePath, file, method, routeModule[method]);
@@ -644,7 +644,7 @@ function farmApiPlugin(options = {}) {
644
644
  log(`API router recreated`);
645
645
  } catch (e) {
646
646
  restoreRouteState(previousState);
647
- if (e instanceof _chunkLKIG5SM6cjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
647
+ if (e instanceof _chunk5P65LXGUcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
648
648
  log(`API route HMR failed: ${e.message}`);
649
649
  }
650
650
  return [];
@@ -1,8 +1,10 @@
1
1
  import {
2
+ assertFarmDocsAdapterRenderer,
3
+ getFarmDocsAdapterUIModule,
2
4
  resolveFarmAuthConfig,
3
5
  resolveFarmAuthIntegration,
4
6
  resolveFarmDevIndicatorsConfig
5
- } from "./chunk-TPA2PV5J.mjs";
7
+ } from "./chunk-5V6HSJFG.mjs";
6
8
  import {
7
9
  normalizeRouteRules,
8
10
  routeRulesToHeaders,
@@ -19,7 +21,7 @@ import {
19
21
  resolveFarmAgentSitemap,
20
22
  resolveFarmNoindexPreviews,
21
23
  resolveFarmPerformanceConfig
22
- } from "./chunk-SLEHAGGV.mjs";
24
+ } from "./chunk-NQ3Y6E2T.mjs";
23
25
  import {
24
26
  farmCspBlocksFrameworkInlineScripts,
25
27
  getFarmSecurityHeader,
@@ -43,7 +45,7 @@ import {
43
45
  isFarmRendererDisabled,
44
46
  isReactRenderer,
45
47
  resolveFarmRenderer
46
- } from "./chunk-2HMSSPCZ.mjs";
48
+ } from "./chunk-RGTZAM6Y.mjs";
47
49
  import {
48
50
  resolveFarmImageConfig
49
51
  } from "./chunk-AOIUYHPH.mjs";
@@ -51,7 +53,7 @@ import {
51
53
  FARM_CRON_NAME_SEGMENT_PATTERN,
52
54
  normalizeCronExpression,
53
55
  resolveCronConfig
54
- } from "./chunk-ATISIC6G.mjs";
56
+ } from "./chunk-7VJXYB6S.mjs";
55
57
  import {
56
58
  resolveServerActionsConfig
57
59
  } from "./chunk-NLATR3T3.mjs";
@@ -76,7 +78,7 @@ import {
76
78
  } from "./chunk-YWPNIYUP.mjs";
77
79
  import {
78
80
  resolveIntegrationPlugins
79
- } from "./chunk-6JWXHPVR.mjs";
81
+ } from "./chunk-XRSNW4IU.mjs";
80
82
  import {
81
83
  compileMiddlewareConfig
82
84
  } from "./chunk-EDPENAVO.mjs";
@@ -477,7 +479,7 @@ function docsWantsFrameworkDetection(docs) {
477
479
  function isSupportedAdapterDescriptor(value) {
478
480
  if (!value || typeof value !== "object") return false;
479
481
  const descriptor = value;
480
- return descriptor.protocol === SUPPORTED_ADAPTER_PROTOCOL && typeof descriptor.server === "string" && descriptor.server.length > 0 && typeof descriptor.react === "string" && descriptor.react.length > 0;
482
+ return descriptor.protocol === SUPPORTED_ADAPTER_PROTOCOL && typeof descriptor.server === "string" && descriptor.server.length > 0 && typeof getFarmDocsAdapterUIModule(descriptor) === "string";
481
483
  }
482
484
  async function applyFarmDocsFrameworkAutoDetection(userConfig, options) {
483
485
  if (!docsWantsFrameworkDetection(userConfig.docs)) return userConfig;
@@ -912,7 +914,8 @@ async function resolveDocsConfig(userDocs, options = {}) {
912
914
  configOverrides
913
915
  }
914
916
  );
915
- if (roots.length > 0 && !(docsOptions.adapter && docsOptions.adapter.server && docsOptions.adapter.react)) {
917
+ const adapter = docsOptions.adapter || void 0;
918
+ if (roots.length > 0 && !(adapter?.server && getFarmDocsAdapterUIModule(adapter))) {
916
919
  throw new Error(
917
920
  `Docs roots require a docs adapter such as @farming-labs/farmjs; Farm's built-in docs renderer serves a single docs root. Install the adapter, or remove the roots from ${configFileName} and docs.roots.`
918
921
  );
@@ -1091,6 +1094,8 @@ async function resolveConfig(userConfig, mode) {
1091
1094
  const srcDir = userConfig.srcDir || "src";
1092
1095
  setFarmProjectSourceDir(root, srcDir);
1093
1096
  const docs = await resolveDocsConfig(userConfig.docs, { root, srcDir });
1097
+ const renderer = resolveFarmRenderer(userConfig.renderer);
1098
+ assertFarmDocsAdapterRenderer(docs, renderer.name);
1094
1099
  const md = resolveMarkdownConfig(userConfig.md);
1095
1100
  const mdx = resolveMdxConfig(userConfig.mdx);
1096
1101
  const env = resolveEnv(userConfig.env, process.env);
@@ -1149,7 +1154,7 @@ async function resolveConfig(userConfig, mode) {
1149
1154
  layers: layerResolution.layers,
1150
1155
  outDir: userConfig.outDir || "dist",
1151
1156
  basePath,
1152
- renderer: resolveFarmRenderer(userConfig.renderer),
1157
+ renderer,
1153
1158
  preset: deploy.preset || "node-server",
1154
1159
  deploy,
1155
1160
  docs,
@@ -0,0 +1,36 @@
1
+ // src/api/route-schema.ts
2
+ async function parseRouteSchema(schema, value) {
3
+ if (schema.parseAsync) return schema.parseAsync(value);
4
+ if (schema["~standard"]) {
5
+ const result = await schema["~standard"].validate(value);
6
+ if (result.issues)
7
+ throw Object.assign(new Error("Validation failed"), { issues: result.issues });
8
+ return result.value;
9
+ }
10
+ if (schema.parse) return schema.parse(value);
11
+ throw new TypeError("Route validators must implement Standard Schema or parse().");
12
+ }
13
+ var PUBLIC_MESSAGE_CODES = /* @__PURE__ */ new Set(["custom", "invalid_type"]);
14
+ function toPublicValidationIssues(error) {
15
+ const issues = error?.issues;
16
+ const list = Array.isArray(issues) ? issues : Array.isArray(error?.errors) ? error.errors : [];
17
+ return list.map((issue) => {
18
+ const { path, code, message } = issue ?? {};
19
+ return {
20
+ path: Array.isArray(path) ? path.map(toPublicPathSegment) : [],
21
+ ...typeof code === "string" ? { code } : {},
22
+ message: PUBLIC_MESSAGE_CODES.has(code) && typeof message === "string" && message ? message : "Invalid value"
23
+ };
24
+ });
25
+ }
26
+ function toPublicPathSegment(segment) {
27
+ const key = segment && typeof segment === "object" && "key" in segment ? segment.key : segment;
28
+ if (typeof key === "number") return key;
29
+ if (typeof key === "symbol") return key.description || key.toString();
30
+ return String(key);
31
+ }
32
+
33
+ export {
34
+ parseRouteSchema,
35
+ toPublicValidationIssues
36
+ };
@@ -322,10 +322,9 @@ var PluginManager = class {
322
322
  this.runtimeEndpoints = endpoints;
323
323
  return endpoints;
324
324
  }
325
- async runRuntimeEndpoint(request, options, waitUntil, onMatch) {
325
+ matchRuntimeEndpoint(requestPathname) {
326
326
  const endpoints = this.getRuntimeEndpoints();
327
327
  if (endpoints.length === 0) return void 0;
328
- const requestPathname = new URL(request.url).pathname;
329
328
  const basePath = _chunkD22BUQKWcjs.normalizeFarmBasePath.call(void 0, this.context.config.basePath);
330
329
  if (basePath && requestPathname !== basePath && !requestPathname.startsWith(`${basePath}/`)) {
331
330
  return void 0;
@@ -333,7 +332,15 @@ var PluginManager = class {
333
332
  const pathname = _chunk47JV57DAcjs.normalizeRuntimeEndpointRequestPath.call(void 0,
334
333
  _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, basePath)
335
334
  );
336
- const match = endpoints.find((entry) => entry.path === pathname);
335
+ return endpoints.find((entry) => entry.path === pathname);
336
+ }
337
+ /** @internal Whether a plugin runtime endpoint answers this request path (with the base path). */
338
+ _hasRuntimeEndpoint(requestPathname) {
339
+ return this.matchRuntimeEndpoint(requestPathname) !== void 0;
340
+ }
341
+ async runRuntimeEndpoint(request, options, waitUntil, onMatch) {
342
+ const requestPathname = new URL(request.url).pathname;
343
+ const match = this.matchRuntimeEndpoint(requestPathname);
337
344
  if (!match) return void 0;
338
345
  const endpointOptions = {
339
346
  ...options,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-HR4N2K4V.mjs";
5
5
  import {
6
6
  normalizeFarmProductionSiteOrigin
7
- } from "./chunk-GY63XD6K.mjs";
7
+ } from "./chunk-43N3X6OO.mjs";
8
8
  import {
9
9
  resolveFarmAppManifestConfig
10
10
  } from "./chunk-SQ5O7I3L.mjs";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-YT2ZMLXK.mjs";
30
30
  import {
31
31
  FARM_VERSION
32
- } from "./chunk-D77OGI6X.mjs";
32
+ } from "./chunk-NKVBWPXR.mjs";
33
33
  import {
34
34
  applyFarmBasePath
35
35
  } from "./chunk-SF3JB56B.mjs";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }
2
2
 
3
- var _chunkWIZRYFB2cjs = require('./chunk-WIZRYFB2.cjs');
3
+ var _chunkJYQ6DGPWcjs = require('./chunk-JYQ6DGPW.cjs');
4
4
 
5
5
  // src/api/mount.ts
6
6
  function mountFetchHandler(app, options = {}) {
@@ -9,7 +9,7 @@ function mountFetchHandler(app, options = {}) {
9
9
  options.stripMountPath ? await stripMountPath(request, await _optionalChain([context, 'optionalAccess', _ => _.params])) : request
10
10
  );
11
11
  return Object.fromEntries(
12
- _chunkWIZRYFB2cjs.API_ROUTE_METHODS.map((method) => [method, handle])
12
+ _chunkJYQ6DGPWcjs.API_ROUTE_METHODS.map((method) => [method, handle])
13
13
  );
14
14
  }
15
15
  async function stripMountPath(request, params) {
@@ -4,7 +4,7 @@
4
4
  var _chunkW53Z4WDIcjs = require('./chunk-W53Z4WDI.cjs');
5
5
 
6
6
 
7
- var _chunkADQ2LATRcjs = require('./chunk-ADQ2LATR.cjs');
7
+ var _chunkIABI62FHcjs = require('./chunk-IABI62FH.cjs');
8
8
 
9
9
 
10
10
  var _chunkBTVDYS4Bcjs = require('./chunk-BTVDYS4B.cjs');
@@ -29,7 +29,7 @@ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
29
29
  var _chunk7Q7UB4TLcjs = require('./chunk-7Q7UB4TL.cjs');
30
30
 
31
31
 
32
- var _chunkNSLRK5DKcjs = require('./chunk-NSLRK5DK.cjs');
32
+ var _chunk3CZ4MJHWcjs = require('./chunk-3CZ4MJHW.cjs');
33
33
 
34
34
 
35
35
  var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
@@ -288,7 +288,7 @@ function createFarmAppManifest(input, registered = []) {
288
288
  return {
289
289
  schemaVersion: 1,
290
290
  app: app ? {
291
- ...app.version ? { farm: _chunkNSLRK5DKcjs.FARM_VERSION } : {},
291
+ ...app.version ? { farm: _chunk3CZ4MJHWcjs.FARM_VERSION } : {},
292
292
  ...app.renderer ? { renderer: input.renderer } : {},
293
293
  basePath: input.basePath,
294
294
  ...app.build ? { build: input.build } : {}
@@ -319,7 +319,7 @@ function resolveFarmSiteUrl() {
319
319
  asUrl(read("RAILWAY_PUBLIC_DOMAIN"))
320
320
  ];
321
321
  for (const candidate of candidates) {
322
- const origin = candidate ? _chunkADQ2LATRcjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
322
+ const origin = candidate ? _chunkIABI62FHcjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
323
323
  if (origin) return origin;
324
324
  }
325
325
  return null;