@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
@@ -43,19 +43,19 @@ import {
43
43
  resolveFarmIslxActionsMode,
44
44
  resolveFarmRouteRootStrategy,
45
45
  toBakedMarkdownSourcePath
46
- } from "./chunk-IPG6B25T.mjs";
46
+ } from "./chunk-DPUZVGXH.mjs";
47
47
  import {
48
48
  generateFarmClientPluginEntryCode,
49
49
  hasFarmServerRuntimePlugins,
50
50
  loadTailwindVitePlugin
51
- } from "./chunk-RPA45OQS.mjs";
51
+ } from "./chunk-MO4UTDQ6.mjs";
52
52
  import {
53
53
  FARM_NODE_RESPONSE_END_PENDING
54
- } from "./chunk-C2OLXVUC.mjs";
54
+ } from "./chunk-IVP5Q4BX.mjs";
55
55
  import {
56
56
  generateFarmTypeArtifacts,
57
57
  resolveRouteRenderingConfig
58
- } from "./chunk-TLSGRK7E.mjs";
58
+ } from "./chunk-IAIRQAHA.mjs";
59
59
  import {
60
60
  resolveFarmPlatform
61
61
  } from "./chunk-SMUW7UST.mjs";
@@ -67,10 +67,13 @@ import {
67
67
  getSharedLayoutPrefixLength,
68
68
  parseFarmLayoutChainHeader,
69
69
  renderFarmLocaleAlternateLinks
70
- } from "./chunk-OO4GVGM3.mjs";
70
+ } from "./chunk-CA2HBLXP.mjs";
71
71
  import {
72
72
  FARM_NATIVE_TREE_CONTENT_TYPE
73
73
  } from "./chunk-LLZSYFOM.mjs";
74
+ import {
75
+ _setFarmInfraAnalyticsWebMCPRoute
76
+ } from "./chunk-RNJX3MD6.mjs";
74
77
  import {
75
78
  FARM_API_CATALOG_PATH,
76
79
  createFarmAiCatalogResponse,
@@ -85,13 +88,13 @@ import {
85
88
  resolveFarmMCPRouteLabel,
86
89
  resolveFarmMarkdownRouteLabel,
87
90
  setFarmRouteLabel
88
- } from "./chunk-RZ6XUEQS.mjs";
91
+ } from "./chunk-VQ6IXALL.mjs";
89
92
  import {
90
93
  FARM_DEFAULT_MCP_PATH
91
94
  } from "./chunk-HR4N2K4V.mjs";
92
95
  import {
93
96
  isFarmPreviewDeploymentEnvironment
94
- } from "./chunk-GY63XD6K.mjs";
97
+ } from "./chunk-43N3X6OO.mjs";
95
98
  import {
96
99
  createFarmServerFnBoundaryModule,
97
100
  isFarmServerFnBoundaryId,
@@ -142,18 +145,20 @@ import {
142
145
  usePackageScanCacheFile,
143
146
  withFarmSourceSnapshotOf,
144
147
  wrapFarmIslandContainers
145
- } from "./chunk-HTNJ7A4D.mjs";
148
+ } from "./chunk-B5SJYXJK.mjs";
146
149
  import {
147
150
  generateFarmDocsAdapterClientRuntime,
148
151
  getFarmDocsAdapterConfigModule
149
- } from "./chunk-EJCVG25Z.mjs";
152
+ } from "./chunk-S3R4JDRO.mjs";
150
153
  import {
151
154
  resolveFarmDocsFontAssets,
152
155
  toFarmDocsPublicFontAssets
153
156
  } from "./chunk-NRNAHZ57.mjs";
154
157
  import {
155
- generateFarmDevIndicatorsClientRuntime
156
- } from "./chunk-TPA2PV5J.mjs";
158
+ generateFarmDevIndicatorsClientRuntime,
159
+ getFarmDocsAdapterUIModule,
160
+ hasFarmDocsRuntimeAdapter
161
+ } from "./chunk-5V6HSJFG.mjs";
157
162
  import {
158
163
  resolveRouteRuleCorsPreflightHeaders
159
164
  } from "./chunk-YVVY276M.mjs";
@@ -166,7 +171,7 @@ import {
166
171
  FARM_PREVIEW_ROBOTS_TAG,
167
172
  resolveFarmAgentCrawlers,
168
173
  resolveFarmAgentSitemap
169
- } from "./chunk-SLEHAGGV.mjs";
174
+ } from "./chunk-NQ3Y6E2T.mjs";
170
175
  import {
171
176
  resolveFarmLlmsTxtConfig
172
177
  } from "./chunk-XGL42MQ7.mjs";
@@ -187,11 +192,14 @@ import {
187
192
  resolveFarmComponentExtensions,
188
193
  resolveFarmRenderer,
189
194
  resolveFarmRendererAppSetup
190
- } from "./chunk-2HMSSPCZ.mjs";
195
+ } from "./chunk-RGTZAM6Y.mjs";
191
196
  import {
192
197
  getPublicFarmImageConfig,
193
198
  resolveFarmImageConfig
194
199
  } from "./chunk-AOIUYHPH.mjs";
200
+ import {
201
+ FARM_PREVIEW_REQUEST_HEADER
202
+ } from "./chunk-7VJXYB6S.mjs";
195
203
  import {
196
204
  createBundledEnv
197
205
  } from "./chunk-N33DLJBC.mjs";
@@ -218,7 +226,7 @@ import {
218
226
  getIntegrationDocumentNavigationMatchers,
219
227
  getIntegrationProviders,
220
228
  matchIntegrationRoute
221
- } from "./chunk-6JWXHPVR.mjs";
229
+ } from "./chunk-XRSNW4IU.mjs";
222
230
  import {
223
231
  resolveFarmRouteContext,
224
232
  withFarmRouteContext
@@ -241,7 +249,7 @@ import {
241
249
  } from "./chunk-IYEY3JWJ.mjs";
242
250
  import {
243
251
  APIRouteManager
244
- } from "./chunk-6WVRVGKC.mjs";
252
+ } from "./chunk-NAHDG6UX.mjs";
245
253
  import {
246
254
  getFarmI18nClientSnapshot
247
255
  } from "./chunk-O7JEFGUV.mjs";
@@ -253,7 +261,7 @@ import {
253
261
  FARM_INTERNAL_SERVER_ERROR_BODY,
254
262
  createFarmInternalServerErrorResponse,
255
263
  isFarmAPIPathname
256
- } from "./chunk-TYHWZOA2.mjs";
264
+ } from "./chunk-KWI3SQFX.mjs";
257
265
  import {
258
266
  registerFarmMCPServer
259
267
  } from "./chunk-F7MJWW6A.mjs";
@@ -304,7 +312,7 @@ import {
304
312
  } from "./chunk-EILUVBKS.mjs";
305
313
  import {
306
314
  FARM_VERSION
307
- } from "./chunk-D77OGI6X.mjs";
315
+ } from "./chunk-NKVBWPXR.mjs";
308
316
  import {
309
317
  DEFAULT_FARM_API_BASE_PATH
310
318
  } from "./chunk-W6QLRQ3V.mjs";
@@ -385,7 +393,6 @@ import { builtinModules as builtinModules2, isBuiltin as isBuiltin2 } from "modu
385
393
  // src/dev-preview-guard.ts
386
394
  import { promises as fsp } from "fs";
387
395
  import * as path2 from "path";
388
- var FARM_PREVIEW_REQUEST_HEADER = "x-farm-preview";
389
396
  function isFarmPreviewTunnelRequest(headers) {
390
397
  return headers[FARM_PREVIEW_REQUEST_HEADER] !== void 0;
391
398
  }
@@ -1280,7 +1287,7 @@ function loadFarmWorkflowsDevRuntime() {
1280
1287
  return import("./workflows.mjs");
1281
1288
  }
1282
1289
  function loadFarmDevtoolsSnapshotRuntime() {
1283
- return import("./devtools-XJHODO5H.mjs");
1290
+ return import("./devtools-OI52TCSD.mjs");
1284
1291
  }
1285
1292
  function loadFarmDevtoolsUIRuntime() {
1286
1293
  return import("./devtools-ui-BOG33MT5.mjs");
@@ -2554,6 +2561,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2554
2561
  extraRoutes: getExtraRouteTypes(),
2555
2562
  suppressLintOnLink: farmConfig.suppressLintOnLink,
2556
2563
  componentExtensions: farmConfig.renderer.componentExtensions,
2564
+ renderer: farmConfig.renderer,
2557
2565
  i18nConfig: farmConfig.i18n,
2558
2566
  ...selection
2559
2567
  });
@@ -2613,6 +2621,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2613
2621
  );
2614
2622
  };
2615
2623
  const isAppRuntimeFile = (file) => isFarmAppRuntimeFile(file, appDirSlugs, routeModuleExtensions);
2624
+ const isRendererRouteFile = (file) => routeModuleExtensions.has(path6.extname(file).toLowerCase()) && farmApp?.getRouteManager().isRendererRouteFile(file) === true;
2616
2625
  const isStaticMetadataImageFile = (file) => /\/(?:opengraph-image|twitter-image)(?:\.(?:png|jpg|jpeg|gif|webp)|\.alt\.txt)$/.test(
2617
2626
  file.replace(/\\/g, "/")
2618
2627
  );
@@ -2649,7 +2658,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2649
2658
  const configChanged = isFarmConfigFile(file, farmConfig.root) || layerConfigFiles.has(normalizedFile);
2650
2659
  const programmaticRouteChanged = isProgrammaticRouteFile(file) || isProgrammaticRouteSourceFile(file) && (ev === "unlink" || fileContainsProgrammaticPageRoute(file));
2651
2660
  const typeArtifacts = configChanged ? ALL_TYPE_ARTIFACTS : {
2652
- routes: ev !== "change" && isRouteModuleFile(file) || programmaticRouteChanged,
2661
+ routes: ev !== "change" && (isRouteModuleFile(file) || isRendererRouteFile(file)) || programmaticRouteChanged,
2653
2662
  api: isApiRouteFile(file) || programmaticRouteChanged,
2654
2663
  env: false,
2655
2664
  images: false,
@@ -2661,7 +2670,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2661
2670
  if (isI18nCatalogFile(file)) {
2662
2671
  farmApp?.getI18nRuntime().reload().then(() => server.ws.send({ type: "full-reload", path: "*" })).catch((error) => logger.warn(`i18n catalog reload failed: ${error.message}`));
2663
2672
  }
2664
- const isRouteRefreshEvent = (ev !== "change" || isStaticMetadataImageFile(file)) && (isAppRuntimeFile(file) || isProgrammaticRouteFile(file) || isProgrammaticRouteSourceFile(file) && (ev === "unlink" || fileContainsProgrammaticPageRoute(file)));
2673
+ const isRouteRefreshEvent = (ev !== "change" || isStaticMetadataImageFile(file)) && (isAppRuntimeFile(file) || isRendererRouteFile(file) || isProgrammaticRouteFile(file) || isProgrammaticRouteSourceFile(file) && (ev === "unlink" || fileContainsProgrammaticPageRoute(file)));
2665
2674
  if (isRouteRefreshEvent) {
2666
2675
  if (!queuedRouteFiles) {
2667
2676
  const files = /* @__PURE__ */ new Set();
@@ -2841,6 +2850,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2841
2850
  root: farmConfig.root,
2842
2851
  srcDir: farmConfig.srcDir,
2843
2852
  clientEntry: "/@farm/client.js",
2853
+ rendererServer: farmConfig.renderer.server,
2844
2854
  resolveLayoutFonts: resolveDocsLayoutFonts,
2845
2855
  fontStylesheetHref: "/@farm/fonts.css",
2846
2856
  globalStylesheetHref: resolveDevGlobalStylesheetHref(
@@ -2909,6 +2919,24 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2909
2919
  });
2910
2920
  }
2911
2921
  }
2922
+ const farmInfraAnalyticsPlugin = pm?.getPlugins().find((plugin2) => plugin2.name === "farm:infra-analytics");
2923
+ if (farmInfraAnalyticsPlugin) {
2924
+ _setFarmInfraAnalyticsWebMCPRoute(farmInfraAnalyticsPlugin, async (pathname) => {
2925
+ if (farmDocsDevRuntime) {
2926
+ const label = resolveFarmDocsRouteLabel(
2927
+ stripFarmBasePath(pathname, farmConfig.basePath),
2928
+ {
2929
+ path: farmConfig.docs?.entry || "/docs",
2930
+ roots: farmConfig.docs?.roots?.map((root) => root.entry),
2931
+ pages: await getFarmDocsPagePaths()
2932
+ }
2933
+ );
2934
+ if (label) return setFarmRouteLabel({ pathname }, label);
2935
+ }
2936
+ const match = farmApp.getRouteManager().matchRoute(pathname);
2937
+ return { pathname, pattern: match.route?.pattern || null };
2938
+ });
2939
+ }
2912
2940
  if (farmDocsDevRuntime && !farmDocsDevRuntime.hasFarmDocsRuntimeAdapter(farmConfig.docs)) {
2913
2941
  const docsContentDirs = farmDocsDevRuntime.getFarmDocsContentDirs(farmConfig.docs, {
2914
2942
  root: farmConfig.root,
@@ -3039,6 +3067,31 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3039
3067
  return;
3040
3068
  }
3041
3069
  }
3070
+ if (pm && requestMethod !== "GET" && requestMethod !== "HEAD" && pm._hasRuntimeEndpoint(requestPathname)) {
3071
+ let body;
3072
+ try {
3073
+ body = await readNodeRequestBody(req, currentServerConfig.bodySizeLimit);
3074
+ } catch (error) {
3075
+ res.statusCode = error.status ?? 400;
3076
+ res.end();
3077
+ return;
3078
+ }
3079
+ let response;
3080
+ try {
3081
+ const endpointRequest = createRequestFromNodeRequest(req, parsedRequestUrl);
3082
+ response = await pm.runRuntimeRequest(
3083
+ new Request(endpointRequest, { method: requestMethod, body: toRequestBody(body) }),
3084
+ // An endpoint answers before the handler would run.
3085
+ () => new Response(null, { status: 404 }),
3086
+ { kind: "request", route: { pathname: requestPathname } }
3087
+ );
3088
+ } catch {
3089
+ sendFarmDevRuntimeHookError(res, true);
3090
+ return;
3091
+ }
3092
+ await sendWebResponse(res, response);
3093
+ return;
3094
+ }
3042
3095
  if (!rendererDisabled && (requestMethod === "GET" || requestMethod === "HEAD") && requestPathname === FARM_VIDEO_PLAYER_PATH) {
3043
3096
  res.statusCode = 200;
3044
3097
  res.setHeader("Content-Type", "text/html; charset=utf-8");
@@ -4839,9 +4892,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4839
4892
  const integrations = resolvedConfig?.integrations || options.integrations;
4840
4893
  const root = resolvedConfig?.root || server?.config.root || process.cwd();
4841
4894
  const docs = resolvedConfig?.docs;
4842
- const adapterOwnsDocsRuntime = Boolean(
4843
- isReactRenderer(renderer) && docs?.adapter?.server && docs.adapter.react
4844
- );
4895
+ const adapterOwnsDocsRuntime = hasFarmDocsRuntimeAdapter(docs);
4845
4896
  const devtools = resolvedConfig?.devtools ?? resolveFarmDevtoolsConfig(false, "production");
4846
4897
  const [docsRuntime, docsSearchRuntime, devtoolsClientRuntime] = await Promise.all([
4847
4898
  docs?.enabled ? loadFarmDocsDevRuntime() : null,
@@ -4876,7 +4927,7 @@ ${generatedDevIndicatorsClientRuntime}`,
4876
4927
  root,
4877
4928
  resolvedConfig?.srcDir || options.srcDir || "src",
4878
4929
  resolvedConfig?.publicRuntimeConfig || options.publicRuntimeConfig,
4879
- isReactRenderer(renderer) ? docs?.adapter?.react : void 0,
4930
+ adapterOwnsDocsRuntime ? getFarmDocsAdapterUIModule(docs?.adapter) : void 0,
4880
4931
  renderer,
4881
4932
  isolatedHydrationMode === "enabled" || isReactRenderer(renderer) && (options.isolatedClientBoundaryModules ?? farmApp?.getRouteManager().getIsolatedClientBoundaryModules(root))?.size > 0,
4882
4933
  resolvedConfig?.trailingSlash ?? false,
@@ -4884,7 +4935,7 @@ ${generatedDevIndicatorsClientRuntime}`,
4884
4935
  generateClientCachePersistenceCode(
4885
4936
  resolveFarmClientCacheAdapterEntry(root, resolvedConfig?.cache)
4886
4937
  ),
4887
- isReactRenderer(renderer) ? getFarmDocsAdapterConfigModule(docs) : void 0,
4938
+ adapterOwnsDocsRuntime ? getFarmDocsAdapterConfigModule(docs) : void 0,
4888
4939
  resolveFarmServerComponentsMode(resolvedConfig?.experimental?.serverComponents) === "islands"
4889
4940
  );
4890
4941
  }
@@ -5404,7 +5455,8 @@ if (import.meta.hot) {
5404
5455
  }
5405
5456
  }
5406
5457
  }
5407
- if (normalizedFile.includes("/app/")) {
5458
+ const rendererRouteFile = farmApp?.getRouteManager().isRendererRouteModule(normalizedFile) === true;
5459
+ if (normalizedFile.includes("/app/") || rendererRouteFile) {
5408
5460
  if (normalizedFile.includes("middleware.")) {
5409
5461
  if (middlewareManager) {
5410
5462
  await middlewareManager.reload();
@@ -5426,7 +5478,7 @@ if (import.meta.hot) {
5426
5478
  if (manifestModule) {
5427
5479
  server2.moduleGraph.invalidateModule(manifestModule);
5428
5480
  }
5429
- if (normalizedFile.includes("page.") || normalizedFile.includes("layout.")) {
5481
+ if (normalizedFile.includes("page.") || normalizedFile.includes("layout.") || rendererRouteFile) {
5430
5482
  const shortPath = normalizedFile.split("/app/")[1] || normalizedFile;
5431
5483
  logUpdate("PAGE", `updated ${shortPath}`);
5432
5484
  for (const mod of modules) {
@@ -5964,7 +6016,7 @@ function parseRouteModuleSchema(schema, value, label, routePath) {
5964
6016
  throw new Error(`Invalid ${label} for route "${routePath}": ${message}`);
5965
6017
  }
5966
6018
  }
5967
- function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0, docsAdapterReact, renderer = REACT_RENDERER, isolatedHydrationEnabled = false, trailingSlash = false, basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
6019
+ function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0, docsAdapterUI, renderer = REACT_RENDERER, isolatedHydrationEnabled = false, trailingSlash = false, basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
5968
6020
  const providerClientCode = generateFarmIntegrationProviderClientCode(
5969
6021
  integrationProviders,
5970
6022
  root,
@@ -5993,8 +6045,10 @@ const React = { ...__farmRendererClient }`
5993
6045
  );
5994
6046
  const isolatedHydrationImport = isolatedHydrationEnabled ? `${islandValues ? "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph, createFarmServerTreeElement, createFarmServerTreeLayout } from '@farm.js/core/internal/islands-runtime'" : "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph } from '@farm.js/core/internal/isolated-boundary'\nimport { createFarmServerTreeElement } from '@farm.js/core/internal/server-tree'"}` : "";
5995
6047
  const docsAdapterImportBlock = generateFarmDocsAdapterClientRuntime(
5996
- docsAdapterReact,
5997
- docsConfigModule
6048
+ docsAdapterUI,
6049
+ docsConfigModule,
6050
+ // Config resolution keeps an adapter to its UI's renderer, so this is the UI's renderer too.
6051
+ isReactRenderer(renderer) ? void 0 : renderer.client
5998
6052
  );
5999
6053
  const isolatedHydrationRuntime = isolatedHydrationEnabled ? `const farmIsolatedHydrationRuntime = createFarmIsolatedHydrationRuntime({
6000
6054
  ReactRuntime: React,
@@ -7113,6 +7167,8 @@ async function tryHydrateImportedPage(
7113
7167
  window.__FARM_REACT_ROOT__ = reactRoot;
7114
7168
  return true;
7115
7169
  } catch (error) {
7170
+ // The page still works, but the server's DOM, focus, and typed input are gone, so say so.
7171
+ console.error('[Farm.js] Hydration error; rendering the page on the client instead:', error);
7116
7172
  appRoot = createRoot(container);
7117
7173
  if (routeState) renderFarmRoute(appRoot, routeState);
7118
7174
  else appRoot.render(wrappedElement);
@@ -7249,6 +7305,8 @@ ${islandValues ? FARM_REFRESH_FIELDS_SOURCE : ""}function replaceNavigationBound
7249
7305
  ) {
7250
7306
  sharedCount++;
7251
7307
  }
7308
+ // After the comparison: a noscript turned to text serializes escaped in the template's document.
7309
+ adoptFarmParsedNodes(fragment);
7252
7310
 
7253
7311
  const fragmentTreeRoot = nextPatterns.length > 0
7254
7312
  ? find(fragment, nextPatterns[0])
@@ -7472,9 +7530,12 @@ async function streamFarmDevNavigation(stream, root, generation) {
7472
7530
  observer.disconnect();
7473
7531
  return stream.cancel();
7474
7532
  }
7475
- const parsed = new DOMParser().parseFromString('<div id="root">' + flush, 'text/html');
7533
+ const parsed = new DOMParser()
7534
+ .parseFromString('<div id="root">' + flush, 'text/html')
7535
+ .getElementById('root');
7536
+ adoptFarmParsedNodes(parsed);
7476
7537
  const fragment = document.createDocumentFragment();
7477
- for (const node of Array.from(parsed.getElementById('root').childNodes)) fragment.appendChild(node);
7538
+ for (const node of Array.from(parsed.childNodes)) fragment.appendChild(node);
7478
7539
  activateFragmentScripts(fragment);
7479
7540
  root.appendChild(fragment);
7480
7541
  }
@@ -7627,6 +7688,7 @@ async function renderPage(pageData, info) {
7627
7688
  ${isolatedHydrationEnabled ? "disposeFarmIsolatedClientBoundaries(container);" : ""}
7628
7689
  if (appRoot) { try { appRoot.unmount(); } catch (error) {} appRoot = null; }
7629
7690
  if (reactRoot) { try { reactRoot.unmount(); } catch (error) {} reactRoot = null; }
7691
+ adoptFarmParsedNodes(fragment);
7630
7692
  container.replaceChildren(fragment);
7631
7693
  activateFragmentScripts(container);
7632
7694
  } else {
@@ -1,10 +1,16 @@
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; }// src/docs/adapter-client.ts
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
+
3
+ var _chunkL2GUEYHRcjs = require('./chunk-L2GUEYHR.cjs');
4
+
5
+ // src/docs/adapter-client.ts
2
6
  function getFarmDocsAdapterConfigModule(docs) {
3
- if (!_optionalChain([docs, 'optionalAccess', _ => _.enabled]) || !_optionalChain([docs, 'access', _2 => _2.adapter, 'optionalAccess', _3 => _3.react]) || !docs.configPath) return void 0;
7
+ if (!_optionalChain([docs, 'optionalAccess', _ => _.enabled]) || !_chunkL2GUEYHRcjs.getFarmDocsAdapterUIModule.call(void 0, docs.adapter) || !docs.configPath) {
8
+ return void 0;
9
+ }
4
10
  return docs.configPath.endsWith(".json") ? void 0 : docs.configPath.replace(/\\/g, "/");
5
11
  }
6
- function generateFarmDocsAdapterClientRuntime(reactModule, configModule) {
7
- if (!reactModule) {
12
+ function generateFarmDocsAdapterClientRuntime(uiModule, configModule, rendererClient) {
13
+ if (!uiModule) {
8
14
  return `
9
15
  async function hydrateFarmDocsAdapterRuntime() {
10
16
  return false;
@@ -18,17 +24,19 @@ async function hydrateFarmDocsAdapterRuntime() {
18
24
  // The docs server flags pages whose config holds what its JSON copy cannot (icons,
19
25
  // MDX components, callbacks); the adapter restores those from the module itself.
20
26
  // Fetch it alongside the adapter rather than after it: they don't depend on each other.
21
- const [FarmDocsAdapterReact, configModule] = await Promise.all([
22
- import(${JSON.stringify(reactModule)}),
23
- runtime.configModule ? ${configModule ? `import(${JSON.stringify(configModule)})` : "undefined"} : undefined,
27
+ const [FarmDocsAdapterUI, configModule${rendererClient ? ", renderer" : ""}] = await Promise.all([
28
+ import(${JSON.stringify(uiModule)}),
29
+ runtime.configModule ? ${configModule ? `import(${JSON.stringify(configModule)})` : "undefined"} : undefined,${rendererClient ? `
30
+ import(${JSON.stringify(rendererClient)}),` : ""}
24
31
  ]);
25
- if (typeof FarmDocsAdapterReact.hydrateFarmDocs !== "function") {
32
+ if (typeof FarmDocsAdapterUI.hydrateFarmDocs !== "function") {
26
33
  throw new Error("The configured Farm docs adapter does not export hydrateFarmDocs().");
27
34
  }
28
- FarmDocsAdapterReact.hydrateFarmDocs({
35
+ FarmDocsAdapterUI.hydrateFarmDocs({
29
36
  config: runtime.config || {},
30
37
  data: runtime.data,
31
- ...(configModule ? { configModule: configModule.default ?? configModule } : {}),
38
+ ...(configModule ? { configModule: configModule.default ?? configModule } : {}),${rendererClient ? `
39
+ renderer,` : ""}
32
40
  });
33
41
  return true;
34
42
  }
@@ -13,11 +13,13 @@ import {
13
13
  import {
14
14
  assertSupportedMiddlewareMatcher
15
15
  } from "./chunk-EDPENAVO.mjs";
16
+ import {
17
+ toPublicValidationIssues
18
+ } from "./chunk-U6XYBTUT.mjs";
16
19
  import {
17
20
  rejectCrossSiteNonJSONBody,
18
- toPublicValidationIssues,
19
21
  validateIntegrationRequestOrigin
20
- } from "./chunk-7VCLTNED.mjs";
22
+ } from "./chunk-PNMAD3OS.mjs";
21
23
  import {
22
24
  applyWebResponseHeaders,
23
25
  sendWebResponse
@@ -1,15 +1,15 @@
1
- import './utils.d-BEKLWa0Z.mjs';
2
- import { F as FarmPlugin } from './client-plugins.d-BflSNO-b.mjs';
1
+ import './utils.d-wGPLeVbq.mjs';
2
+ import { F as FarmPlugin } from './client-plugins.d-BwKwuO_0.mjs';
3
3
  import { R as ResolvedFarmLayer } from './layers.d-CH0bC4QL.mjs';
4
- import './renderer.mjs';
5
- import './ssg.d-BnCKPQL0.mjs';
4
+ import { FarmRenderer } from './renderer.mjs';
5
+ import './ssg.d-CCE9aob5.mjs';
6
6
  import './deployment.mjs';
7
- import './handler.d-DoH5Krkq.mjs';
7
+ import './handler.d-BKTWzzNA.mjs';
8
8
  import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.mjs';
9
9
  import { F as FarmStorageUserConfig } from './types.d-C5hlNbHa.mjs';
10
10
  import { d as FarmSchemaField, F as FarmSchema, R as ResolvedSchemaField, m as FarmSqlDialect, n as FarmSqlStatement, C as CollectedSchemaModel, f as FarmSchemaMigrationStep, k as FarmSchemaReference, l as FarmSchemaTablesDeclaration, j as FarmSchemaOwnerConfig } from './schema.d-BM-uVGpx.mjs';
11
11
  import './routes.mjs';
12
- import './server-components-status.d-9rH7ZoEq.mjs';
12
+ import './server-components-status.d-BpxiEMQE.mjs';
13
13
  import './storage.mjs';
14
14
 
15
15
  /**
@@ -67,6 +67,8 @@ interface GenerateFarmTypeArtifactsOptions {
67
67
  layers?: readonly ResolvedFarmLayer[];
68
68
  suppressLintOnLink?: boolean;
69
69
  componentExtensions?: readonly string[];
70
+ /** The renderer, whose `routes()` (when it has one) decides which files are routes. */
71
+ renderer?: Pick<FarmRenderer, "name" | "routes" | "componentExtensions">;
70
72
  routeTypesOutFile?: string;
71
73
  apiTypesOutFile?: string;
72
74
  envTypesOutFile?: string;
@@ -1,15 +1,15 @@
1
- import './utils.d-BdjHKDuT.js';
2
- import { F as FarmPlugin } from './client-plugins.d-qWp8hNwd.js';
1
+ import './utils.d-BUjpSNIO.js';
2
+ import { F as FarmPlugin } from './client-plugins.d-BVXjyIkY.js';
3
3
  import { R as ResolvedFarmLayer } from './layers.d-CH0bC4QL.js';
4
- import './renderer.js';
5
- import './ssg.d-MNedvvMB.js';
4
+ import { FarmRenderer } from './renderer.js';
5
+ import './ssg.d-Bifiq0EL.js';
6
6
  import './deployment.js';
7
- import './handler.d-C2oRihfa.js';
7
+ import './handler.d-Dzpyg3-N.js';
8
8
  import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.js';
9
9
  import { F as FarmStorageUserConfig } from './types.d-C5hlNbHa.js';
10
10
  import { d as FarmSchemaField, F as FarmSchema, R as ResolvedSchemaField, m as FarmSqlDialect, n as FarmSqlStatement, C as CollectedSchemaModel, f as FarmSchemaMigrationStep, k as FarmSchemaReference, l as FarmSchemaTablesDeclaration, j as FarmSchemaOwnerConfig } from './schema.d-BM-uVGpx.js';
11
11
  import './routes.js';
12
- import './server-components-status.d-rfKOcE0N.js';
12
+ import './server-components-status.d-C2UEKJn7.js';
13
13
  import './storage.js';
14
14
 
15
15
  /**
@@ -67,6 +67,8 @@ interface GenerateFarmTypeArtifactsOptions {
67
67
  layers?: readonly ResolvedFarmLayer[];
68
68
  suppressLintOnLink?: boolean;
69
69
  componentExtensions?: readonly string[];
70
+ /** The renderer, whose `routes()` (when it has one) decides which files are routes. */
71
+ renderer?: Pick<FarmRenderer, "name" | "routes" | "componentExtensions">;
70
72
  routeTypesOutFile?: string;
71
73
  apiTypesOutFile?: string;
72
74
  envTypesOutFile?: string;
@@ -1,5 +1,5 @@
1
1
  import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
2
- import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-BflSNO-b.mjs';
2
+ import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-BwKwuO_0.mjs';
3
3
 
4
4
  /**
5
5
  * The browser copy of a programmatic page or layout imports only the module that defines its
@@ -1,5 +1,5 @@
1
1
  import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
2
- import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-qWp8hNwd.js';
2
+ import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-BVXjyIkY.js';
3
3
 
4
4
  /**
5
5
  * The browser copy of a programmatic page or layout imports only the module that defines its
@@ -632,6 +632,9 @@ declare class PluginManager {
632
632
  private copyRuntimeRequestContext;
633
633
  private createRuntimeBaseEvent;
634
634
  private getRuntimeEndpoints;
635
+ private matchRuntimeEndpoint;
636
+ /** @internal Whether a plugin runtime endpoint answers this request path (with the base path). */
637
+ _hasRuntimeEndpoint(requestPathname: string): boolean;
635
638
  private runRuntimeEndpoint;
636
639
  private createRuntimeRequestContext;
637
640
  private runRuntimeErrorHooks;
@@ -1734,6 +1737,20 @@ interface FarmDocsAdapterDescriptor {
1734
1737
  id: string;
1735
1738
  protocol: number;
1736
1739
  server: string;
1740
+ /**
1741
+ * The module with the docs UI. The adapter's server renders its pages with it, loaded through
1742
+ * `loadUIModule()`, and the browser calls its `hydrateFarmDocs()` on the docs pages it serves.
1743
+ */
1744
+ ui?: string;
1745
+ /**
1746
+ * The Farm renderer `ui` is written for, by name: `"react"`, `"svelte"`, `"vue"`, or a custom
1747
+ * renderer's. Farm runs the adapter only in an app with that renderer. Defaults to `"react"`.
1748
+ */
1749
+ renderer?: string;
1750
+ /**
1751
+ * @deprecated Use `ui` (and `renderer: "react"`). Farm reads it when `ui` is absent, as every
1752
+ * release before `ui` did.
1753
+ */
1737
1754
  react?: string;
1738
1755
  vite?: string;
1739
1756
  /**
@@ -2023,6 +2040,8 @@ declare function manageFarmLinkHeaderPreloads(value: string, config: ResolvedFar
2023
2040
  declare function manageFarmDocumentPreloads(html: string, linkHeader: string, config: ResolvedFarmPreloadConfig, shell?: object): FarmManagedDocumentPreloads;
2024
2041
  /** Rate-limit identical route-and-budget warnings within a server process. */
2025
2042
  declare function reportFarmPreloadWarnings(warnings: FarmPreloadBudgetWarning[], context?: string): void;
2043
+ /** @internal Whether `html` can hold a preload link the budget counts. */
2044
+ declare function hasFarmHtmlPreloadToken(html: string): boolean;
2026
2045
 
2027
2046
  type FarmCspDirectiveValue = string | readonly string[] | boolean | null | undefined;
2028
2047
  type FarmCspDirectives = Readonly<Record<string, FarmCspDirectiveValue>>;
@@ -3837,4 +3856,4 @@ declare function dispatchIntegrationRequests(integrations: FarmIntegrationsUserC
3837
3856
  setCookies: string[];
3838
3857
  }>;
3839
3858
 
3840
- export { type FarmPluginDefinition as $, type FarmDesktopContext as A, type BundleResultPayload as B, type FarmDesktopUserConfig as C, type FarmDesktopWindowConfig as D, type FarmRequest as E, type FarmPlugin as F, type FarmResponse as G, type HeaderConfig as H, type FarmPluginContext as I, type ResolvedFarmConfig as J, loadConfig as K, type LayoutProps as L, type Metadata as M, resolveConfig as N, resolveDeployConfig as O, type ParsedRoute as P, type APIHandlerLifecyclePayload as Q, type ResolvedFarmDeployConfig as R, type SSGCollectionResult as S, type APIRouteDiscoveredPayload as T, type BundleLifecyclePayload as U, type ErrorLifecyclePayload as V, FARM_NODE_RESPONSE_END_PENDING as W, type FarmDevtoolsUserConfig as X, type FarmPluginBuildHooks as Y, type FarmPluginClientConfig as Z, type FarmPluginDatabase as _, type FarmIntegration as a, type LoadingProps as a$, type FarmPluginDevHooks as a0, type FarmPluginDiscoveredRoute as a1, type FarmPluginIntegrationContext as a2, type FarmPluginLifecycle as a3, type FarmPluginRenderHooks as a4, type FarmPluginRouteRuntimePayload as a5, type FarmPluginRouterHooks as a6, type FarmPluginRuntimeAfterEvent as a7, type FarmPluginRuntimeBaseEvent as a8, type FarmPluginRuntimeBeforeEvent as a9, type RouteMatchResultPayload as aA, type RoutesGeneratedPayload as aB, type ShutdownPayload as aC, definePlugin as aD, resolveFarmDevtoolsConfig as aE, type MiddlewareProps as aF, type FarmContextFactory as aG, type FarmDocsResolvedConfig as aH, type FarmMCPCatalogDetails as aI, type ResolvedFarmAppManifestConfig as aJ, type FarmConfig as aK, type AppRoutePattern as aL, type BuildOptions as aM, type ErrorBoundary as aN, type ErrorProps as aO, type FarmComponentType as aP, type FarmContextFactoryInput as aQ, type FarmIsolatedClientHydrationMode as aR, type FarmMCPUserConfig as aS, type FarmMigrationCommand as aT, type FarmMigrationsConfig as aU, type FarmMigrationsUserConfig as aV, type GenerateStaticParams as aW, type Layout as aX, type LayoutMetadataProps as aY, type LayoutModule as aZ, type Loading as a_, type FarmPluginRuntimeCloseEvent as aa, type FarmPluginRuntimeContextEvent as ab, type FarmPluginRuntimeEndpoint as ac, type FarmPluginRuntimeEndpointEvent as ad, type FarmPluginRuntimeErrorEvent as ae, type FarmPluginRuntimeHooks as af, type FarmPluginRuntimeKind as ag, type FarmPluginRuntimeRequestHandler as ah, type FarmPluginRuntimeRequestOptions as ai, type FarmPluginRuntimeRequestScope as aj, type FarmPluginRuntimeSession as ak, type FarmPluginRuntimeStartEvent as al, type FarmPluginSetupContext as am, type FarmPluginStateContext as an, type FarmRequestPluginContext as ao, type FarmRequestStore as ap, FarmRuntimeShutdownError as aq, type HMRUpdatePayload as ar, type MiddlewareDiscoveredPayload as as, type NitroBuildLifecyclePayload as at, PluginManager as au, type PluginRequestContext as av, type RenderLifecyclePayload as aw, type ResolvedFarmDevtoolsConfig as ax, type RouteDiscoveredPayload as ay, type RouteMatchPayload as az, type FarmRouteRuntimeConfig as b, type FarmAuthSessionConfig as b$, type MetadataJsonLd as b0, type MetadataProps as b1, type MetadataRobots as b2, type MetadataRobotsDirectives as b3, type NitroPreset as b4, type Page as b5, type PagePropsWithMiddleware as b6, type PageRouteParams as b7, type ResolvedFarmMigrationsConfig as b8, type ServerAction as b9, resolveFarmDesktopConfig as bA, setFarmDesktopDevSession as bB, validateFarmDesktopConfig as bC, createFarmSearchParams as bD, searchParamsToObject as bE, type OpenAPIConfig as bF, type ApplyMarkdownNegotiationHeadersOptions as bG, type CreateIntegrationOrmOptions as bH, type CreateMarkdownMirrorResponseOptions as bI, DEFAULT_FARM_API_BASE_PATH as bJ, DEFAULT_FARM_DEVTOOLS_SHORTCUT as bK, type DefinedIntegration as bL, FARM_DEVTOOLS_LAUNCH_PARAM as bM, FARM_DEVTOOLS_PATH as bN, FARM_INTEGRATION_API_BASE_PATH_KEY as bO, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as bP, FARM_INTEGRATION_SET_COOKIES_KEY as bQ, FARM_MARKDOWN_PAGE_CHECK_HEADER as bR, type FarmAPIConfig as bS, type FarmAPIConfigResolverContext as bT, type FarmAPIConfigValue as bU, type FarmAgentCrawlers as bV, type FarmAgentUserConfig as bW, type FarmAppManifestConfig as bX, type FarmAuthConfig as bY, type FarmAuthDatabaseConfig as bZ, type FarmAuthEmailAndPasswordConfig as b_, type StaticPathParams as ba, type StaticPathPrimitive as bb, type StaticRouteParams as bc, type ThemeColorDescriptor as bd, type Viewport as be, resolveFarmMCPConfig as bf, resolveFarmMCPPlugin as bg, type FarmMCPServerRegistration as bh, _findFarmMCPEndpointTool as bi, _publishFarmMCPCatalog as bj, registerFarmMCPServer as bk, type FarmAgentJsonLd as bl, type FarmMarkdownResolvedConfig as bm, type ResolvedFarmRouteRuntimeConfig as bn, type ApplicationMetadataRouteKind as bo, type ResolvedFarmAPIConfig as bp, type ResolvedFarmDevIndicatorsConfig as bq, type ResolvedFarmAuthConfig as br, type ResolvedFarmPerformanceConfig as bs, type ResolvedFarmSecurityConfig as bt, type FarmDesktopDevSession as bu, type FarmDesktopSetupOptions as bv, createFarmDesktopContext as bw, getFarmDesktopOutputDirs as bx, installFarmDesktopSetup as by, resolveFarmDesktopBlock as bz, type FarmMdxComponents as c, type FarmIntegrationSchema as c$, type FarmAuthUserConfig as c0, type FarmBuildActivityPosition as c1, type FarmCrawlerPolicy as c2, type FarmCspConfig as c3, type FarmCspDirectiveValue as c4, type FarmCspDirectives as c5, type FarmCspOptions as c6, type FarmDeployConfig as c7, type FarmDeployTarget as c8, type FarmDevIndicatorsConfig as c9, type FarmIntegrationLogEvent as cA, type FarmIntegrationLogPhase as cB, type FarmIntegrationLogger as cC, type FarmIntegrationMiddleware as cD, type FarmIntegrationOrmClient as cE, type FarmIntegrationOrmSchema as cF, type FarmIntegrationPluginOwner as cG, type FarmIntegrationProvider as cH, type FarmIntegrationProviderComponentReference as cI, type FarmIntegrationProviderProps as cJ, type FarmIntegrationRequestContextStore as cK, type FarmIntegrationRoute as cL, type FarmIntegrationRouteArgs as cM, type FarmIntegrationRouteDb as cN, type FarmIntegrationRouteFactory as cO, type FarmIntegrationRouteHook as cP, type FarmIntegrationRouteHookContext as cQ, type FarmIntegrationRouteInput as cR, type FarmIntegrationRouteInputSchemas as cS, type FarmIntegrationRouteInputSource as cT, type FarmIntegrationRouteMethod as cU, type FarmIntegrationRouteMiddleware as cV, type FarmIntegrationRouteParamValue as cW, type FarmIntegrationRouteParams as cX, type FarmIntegrationRouteStorageArgs as cY, type FarmIntegrationRoutesFactory as cZ, type FarmIntegrationRoutesFactoryContext as c_, type FarmDevtoolsConfig as ca, type FarmDocsConfigInput as cb, type FarmDocsNavigationConfig as cc, type FarmDocsResolvedRoot as cd, type FarmDocsRootInput as ce, type FarmDocsSidebarItem as cf, type FarmDocsSocialImageConfig as cg, type FarmDocsSocialImageFonts as ch, type FarmDocsUserConfig as ci, type FarmIntegrationCategory as cj, type FarmIntegrationConfigContext as ck, type FarmIntegrationConfigDefinition as cl, type FarmIntegrationConfigInput as cm, type FarmIntegrationContributedPlugin as cn, type FarmIntegrationData as co, type FarmIntegrationDocumentNavigation as cp, type FarmIntegrationEndpointValue as cq, type FarmIntegrationEndpoints as cr, type FarmIntegrationEndpointsFactory as cs, type FarmIntegrationEndpointsFactoryContext as ct, type FarmIntegrationHandlerContext as cu, type FarmIntegrationInputSchema as cv, type FarmIntegrationLifecycleContext as cw, type FarmIntegrationLifecycleHook as cx, type FarmIntegrationLifecycleLogLevel as cy, type FarmIntegrationLifecycleLogger as cz, type FarmMdxResolvedConfig as d, type I18nConfig as d$, type FarmIntegrationSchemaConstraint as d0, type FarmIntegrationSchemaField as d1, type FarmIntegrationSchemaFieldType as d2, type FarmIntegrationSchemaModel as d3, type FarmIntegrationSchemaModelExtension as d4, type FarmIntegrationSchemaModelOverride as d5, type FarmIntegrationSchemaReference as d6, type FarmIntegrationSession as d7, type FarmIntegrationSlot as d8, type FarmIntegrationStandardValidationResult as d9, type FarmMarkdownResolvedRoute as dA, type FarmMarkdownRouteInput as dB, type FarmMarkdownUserConfig as dC, type FarmPageFormAction as dD, type FarmPageFormField as dE, type FarmPageFormOption as dF, type FarmPageFormSubmit as dG, type FarmPerformanceConfig as dH, type FarmPluginFactory as dI, FarmPluginOptionsError as dJ, type FarmPluginOptionsIssue as dK, type FarmPluginOptionsSchema as dL, type FarmPreloadMode as dM, type FarmPreloadUserConfig as dN, type FarmRouteRenderingMode as dO, type FarmRouteRule as dP, type FarmRouteRuleCors as dQ, type FarmRouteRuleRedirect as dR, type FarmRouteRuleRenderMode as dS, type FarmRouteRules as dT, type FarmRouteRuntimeEntryKind as dU, type FarmRouteRuntimeManifest as dV, type FarmRouteRuntimeManifestEntry as dW, type FarmSecurityConfig as dX, type FarmServerComponentsConfig as dY, type FarmServerComponentsOptions as dZ, type FarmTypedIntegrationRoute as d_, type FarmIntegrationValidationErrorLike as da, type FarmIntegrationValidationIssue as db, type FarmIntegrationValidationPathSegment as dc, type FarmIntegrationValidationResult as dd, type FarmIntegrationsUserConfig as de, type FarmLayerConfig as df, type FarmMCPAuthorization as dg, type FarmMCPAuthorizeContext as dh, type FarmMCPConfig as di, type FarmMCPEndpoint as dj, type FarmMCPEndpointTool as dk, type FarmMCPExecuteContext as dl, type FarmMCPOAuthConfig as dm, type FarmMCPPrompt as dn, type FarmMCPPromptMessage as dp, type FarmMCPResource as dq, type FarmMCPResourceContent as dr, type FarmMCPResourceContext as ds, type FarmMCPResourceListing as dt, type FarmMCPServer as du, type FarmMCPServerFunction as dv, type FarmMCPStandaloneTool as dw, type FarmMCPTool as dx, type FarmMCPToolDefinition as dy, type FarmMarkdownMirrorTarget as dz, type RouteModule as e, isFarmMarkdownMirrorExposed as e$, type ImageConfig as e0, type InferFarmIntegrationOrmClient as e1, type InferFarmIntegrationOrmField as e2, type InferFarmIntegrationOrmFields as e3, type InferFarmIntegrationOrmSchema as e4, type InferPluginOptionsInput as e5, type InferPluginOptionsOutput as e6, type IntegrationOriginPolicy as e7, type IntegrationOriginRejection as e8, type IntegrationOriginResult as e9, extractFarmPageActions as eA, farmAcceptQuality as eB, farmIntegrationSchemaToOrmSchema as eC, farmRouteRuleMatches as eD, forwardIntegrationSetCookies as eE, generateFarmDevIndicatorsClientRuntime as eF, getDeployTargetForPreset as eG, getFarmAPIBaseURL as eH, getFarmIntegrationPluginOwner as eI, getFarmIntegrationPluginServerRuntime as eJ, getFarmMarkdownAlternatePath as eK, getFarmMarkdownMirrorPath as eL, getFarmRouteRuntimeConfig as eM, getIntegrationDocumentNavigationMatchers as eN, getIntegrationProviders as eO, getIntegrationSchemas as eP, getPresetForDeployTarget as eQ, getRegisteredIntegrationAPIManifest as eR, getRegisteredIntegrationRuntime as eS, getRegisteredIntegrationSchemas as eT, getRegisteredIntegrations as eU, hasFarmRouteRuntimeControls as eV, htmlToMarkdown as eW, integrationMiddlewareMayHandlePath as eX, integrationRoute as eY, isFarmIntegration as eZ, isFarmIntegrationProviderComponentReference as e_, type IntegrationOrmModelNames as ea, MetadataRoute as eb, type MetadataRouteContext as ec, type MiddlewareConfig as ed, type RedirectConfig as ee, type ResolveMarkdownMirrorTargetOptions as ef, type ResolvedFarmCspConfig as eg, type ResolvedFarmMCPConfig as eh, type ResolvedFarmPreloadConfig as ei, type RewriteConfig as ej, _getFarmMarkdownPageCheckToken as ek, _getFarmMarkdownPath as el, _isFarmMarkdownPageCheck as em, _readFarmRenderedHtml as en, _resolveFarmMarkdownIndexAlias as eo, applyMarkdownNegotiationHeaders as ep, compareFarmRouteRuleSpecificity as eq, createFarmRouteRuntimeKey as er, createIntegrationOrm as es, createIntegrationRoute as et, createMarkdownMirrorResponse as eu, defineIntegration as ev, defineIntegrationSchema as ew, describeIntegrationOriginRejection as ex, dispatchIntegrationRequest as ey, dispatchIntegrationRequests as ez, type FarmMarkdownRoutePathname as f, matchIntegrationRoute as f0, matchRegisteredIntegrationRoute as f1, matchesFarmMarkdownRoutePattern as f2, mergeFarmRouteRuntimeConfigs as f3, nitroRouteRulesBelowBasePath as f4, normalizeDeployTarget as f5, normalizeFarmAPIBasePath as f6, normalizeFarmAPIConfig as f7, normalizeFarmRouteRuntimeConfig as f8, normalizeRouteRules as f9, collectFarmLlmsTxtPages as fA, createFarmAgentRobots as fB, createFarmCspNonce as fC, createFarmDefaultLlmsTxt as fD, createFarmDefaultSitemap as fE, createFarmLlmsFullRenderer as fF, createFarmLlmsMarkdownReader as fG, createFarmMetadataRouteResponse as fH, isFarmPageNoIndex as fI, manageFarmDocumentPreloads as fJ, manageFarmHtmlPreloads as fK, manageFarmLinkHeaderPreloads as fL, readFarmLlmsMarkdownFrom as fM, renderFarmLlmsFullTxt as fN, reportFarmPreloadWarnings as fO, resolveFarmAgentCrawlers as fP, resolveFarmAgentOrigin as fQ, resolveFarmAgentSitemap as fR, resolveFarmLlmsTxtConfig as fS, resolveFarmSecurityConfig as fT, stampFarmCspNonce as fU, requestAcceptsMarkdown as fa, resolveDeployOutputPath as fb, resolveFarmAPIConfig as fc, resolveFarmAPIRequestURL as fd, resolveFarmDevIndicatorsConfig as fe, resolveFarmRouteRuleRuntimeConfig as ff, resolveFarmRouteRuntimeConfig as fg, resolveIntegrationAllowedOrigins as fh, resolveIntegrationOrmRuntimeClient as fi, resolveIntegrationPlugins as fj, resolveMarkdownConfig as fk, resolveMarkdownMirrorTarget as fl, resolveMigrationsConfig as fm, resolveRouteRuleCorsPreflightHeaders as fn, routeRulesToHeaders as fo, routeRulesToNitroRouteRules as fp, routeRulesToRedirects as fq, validateIntegrationRequestOrigin as fr, type FarmLlmsTxtLink as fs, type FarmRegisteredMCPServer as ft, type FarmAgentSitemapUserConfig as fu, type FarmLlmsTxtUserConfig as fv, type ResolvedFarmAgentCrawlers as fw, type ResolvedFarmAgentSitemap as fx, type ResolvedFarmLlmsTxtConfig as fy, applyFarmCspNonceToResponse as fz, FARM_MARKDOWN_CONTENT_TYPE as g, createFarmMarkdownErrorBody as h, farmRequestWantsMarkdown as i, type FarmMdxComponent as j, type FarmMdxUserConfig as k, resolveMdxConfig as l, type RouteSegment as m, type SSGPage as n, type FarmAppContext as o, type PageProps as p, type FarmSearchParams as q, resolveFarmMdxComponentsModulePath as r, type PluginContextProps as s, type FarmRouteRuntime as t, type FarmRouteRegions as u, type FarmRouteMaxDuration as v, type FarmServerComponentsMode as w, type FarmUserConfig as x, type ResolvedFarmDesktopConfig as y, type FarmDesktopConfigInput as z };
3859
+ export { type FarmPluginDefinition as $, type FarmDesktopContext as A, type BundleResultPayload as B, type FarmDesktopUserConfig as C, type FarmDesktopWindowConfig as D, type FarmRequest as E, type FarmPlugin as F, type FarmResponse as G, type HeaderConfig as H, type FarmPluginContext as I, type ResolvedFarmConfig as J, loadConfig as K, type LayoutProps as L, type Metadata as M, resolveConfig as N, resolveDeployConfig as O, type ParsedRoute as P, type APIHandlerLifecyclePayload as Q, type ResolvedFarmDeployConfig as R, type SSGCollectionResult as S, type APIRouteDiscoveredPayload as T, type BundleLifecyclePayload as U, type ErrorLifecyclePayload as V, FARM_NODE_RESPONSE_END_PENDING as W, type FarmDevtoolsUserConfig as X, type FarmPluginBuildHooks as Y, type FarmPluginClientConfig as Z, type FarmPluginDatabase as _, type FarmIntegration as a, type LoadingProps as a$, type FarmPluginDevHooks as a0, type FarmPluginDiscoveredRoute as a1, type FarmPluginIntegrationContext as a2, type FarmPluginLifecycle as a3, type FarmPluginRenderHooks as a4, type FarmPluginRouteRuntimePayload as a5, type FarmPluginRouterHooks as a6, type FarmPluginRuntimeAfterEvent as a7, type FarmPluginRuntimeBaseEvent as a8, type FarmPluginRuntimeBeforeEvent as a9, type RouteMatchResultPayload as aA, type RoutesGeneratedPayload as aB, type ShutdownPayload as aC, definePlugin as aD, resolveFarmDevtoolsConfig as aE, type MiddlewareProps as aF, type FarmContextFactory as aG, type FarmDocsResolvedConfig as aH, type FarmMCPCatalogDetails as aI, type ResolvedFarmAppManifestConfig as aJ, type FarmConfig as aK, type AppRoutePattern as aL, type BuildOptions as aM, type ErrorBoundary as aN, type ErrorProps as aO, type FarmComponentType as aP, type FarmContextFactoryInput as aQ, type FarmIsolatedClientHydrationMode as aR, type FarmMCPUserConfig as aS, type FarmMigrationCommand as aT, type FarmMigrationsConfig as aU, type FarmMigrationsUserConfig as aV, type GenerateStaticParams as aW, type Layout as aX, type LayoutMetadataProps as aY, type LayoutModule as aZ, type Loading as a_, type FarmPluginRuntimeCloseEvent as aa, type FarmPluginRuntimeContextEvent as ab, type FarmPluginRuntimeEndpoint as ac, type FarmPluginRuntimeEndpointEvent as ad, type FarmPluginRuntimeErrorEvent as ae, type FarmPluginRuntimeHooks as af, type FarmPluginRuntimeKind as ag, type FarmPluginRuntimeRequestHandler as ah, type FarmPluginRuntimeRequestOptions as ai, type FarmPluginRuntimeRequestScope as aj, type FarmPluginRuntimeSession as ak, type FarmPluginRuntimeStartEvent as al, type FarmPluginSetupContext as am, type FarmPluginStateContext as an, type FarmRequestPluginContext as ao, type FarmRequestStore as ap, FarmRuntimeShutdownError as aq, type HMRUpdatePayload as ar, type MiddlewareDiscoveredPayload as as, type NitroBuildLifecyclePayload as at, PluginManager as au, type PluginRequestContext as av, type RenderLifecyclePayload as aw, type ResolvedFarmDevtoolsConfig as ax, type RouteDiscoveredPayload as ay, type RouteMatchPayload as az, type FarmRouteRuntimeConfig as b, type FarmAuthSessionConfig as b$, type MetadataJsonLd as b0, type MetadataProps as b1, type MetadataRobots as b2, type MetadataRobotsDirectives as b3, type NitroPreset as b4, type Page as b5, type PagePropsWithMiddleware as b6, type PageRouteParams as b7, type ResolvedFarmMigrationsConfig as b8, type ServerAction as b9, resolveFarmDesktopConfig as bA, setFarmDesktopDevSession as bB, validateFarmDesktopConfig as bC, createFarmSearchParams as bD, searchParamsToObject as bE, type OpenAPIConfig as bF, type ApplyMarkdownNegotiationHeadersOptions as bG, type CreateIntegrationOrmOptions as bH, type CreateMarkdownMirrorResponseOptions as bI, DEFAULT_FARM_API_BASE_PATH as bJ, DEFAULT_FARM_DEVTOOLS_SHORTCUT as bK, type DefinedIntegration as bL, FARM_DEVTOOLS_LAUNCH_PARAM as bM, FARM_DEVTOOLS_PATH as bN, FARM_INTEGRATION_API_BASE_PATH_KEY as bO, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as bP, FARM_INTEGRATION_SET_COOKIES_KEY as bQ, FARM_MARKDOWN_PAGE_CHECK_HEADER as bR, type FarmAPIConfig as bS, type FarmAPIConfigResolverContext as bT, type FarmAPIConfigValue as bU, type FarmAgentCrawlers as bV, type FarmAgentUserConfig as bW, type FarmAppManifestConfig as bX, type FarmAuthConfig as bY, type FarmAuthDatabaseConfig as bZ, type FarmAuthEmailAndPasswordConfig as b_, type StaticPathParams as ba, type StaticPathPrimitive as bb, type StaticRouteParams as bc, type ThemeColorDescriptor as bd, type Viewport as be, resolveFarmMCPConfig as bf, resolveFarmMCPPlugin as bg, type FarmMCPServerRegistration as bh, _findFarmMCPEndpointTool as bi, _publishFarmMCPCatalog as bj, registerFarmMCPServer as bk, type FarmAgentJsonLd as bl, type FarmMarkdownResolvedConfig as bm, type ResolvedFarmRouteRuntimeConfig as bn, type ApplicationMetadataRouteKind as bo, type ResolvedFarmAPIConfig as bp, type ResolvedFarmDevIndicatorsConfig as bq, type ResolvedFarmAuthConfig as br, type ResolvedFarmPerformanceConfig as bs, type ResolvedFarmSecurityConfig as bt, type FarmDesktopDevSession as bu, type FarmDesktopSetupOptions as bv, createFarmDesktopContext as bw, getFarmDesktopOutputDirs as bx, installFarmDesktopSetup as by, resolveFarmDesktopBlock as bz, type FarmMdxComponents as c, type FarmIntegrationSchema as c$, type FarmAuthUserConfig as c0, type FarmBuildActivityPosition as c1, type FarmCrawlerPolicy as c2, type FarmCspConfig as c3, type FarmCspDirectiveValue as c4, type FarmCspDirectives as c5, type FarmCspOptions as c6, type FarmDeployConfig as c7, type FarmDeployTarget as c8, type FarmDevIndicatorsConfig as c9, type FarmIntegrationLogEvent as cA, type FarmIntegrationLogPhase as cB, type FarmIntegrationLogger as cC, type FarmIntegrationMiddleware as cD, type FarmIntegrationOrmClient as cE, type FarmIntegrationOrmSchema as cF, type FarmIntegrationPluginOwner as cG, type FarmIntegrationProvider as cH, type FarmIntegrationProviderComponentReference as cI, type FarmIntegrationProviderProps as cJ, type FarmIntegrationRequestContextStore as cK, type FarmIntegrationRoute as cL, type FarmIntegrationRouteArgs as cM, type FarmIntegrationRouteDb as cN, type FarmIntegrationRouteFactory as cO, type FarmIntegrationRouteHook as cP, type FarmIntegrationRouteHookContext as cQ, type FarmIntegrationRouteInput as cR, type FarmIntegrationRouteInputSchemas as cS, type FarmIntegrationRouteInputSource as cT, type FarmIntegrationRouteMethod as cU, type FarmIntegrationRouteMiddleware as cV, type FarmIntegrationRouteParamValue as cW, type FarmIntegrationRouteParams as cX, type FarmIntegrationRouteStorageArgs as cY, type FarmIntegrationRoutesFactory as cZ, type FarmIntegrationRoutesFactoryContext as c_, type FarmDevtoolsConfig as ca, type FarmDocsConfigInput as cb, type FarmDocsNavigationConfig as cc, type FarmDocsResolvedRoot as cd, type FarmDocsRootInput as ce, type FarmDocsSidebarItem as cf, type FarmDocsSocialImageConfig as cg, type FarmDocsSocialImageFonts as ch, type FarmDocsUserConfig as ci, type FarmIntegrationCategory as cj, type FarmIntegrationConfigContext as ck, type FarmIntegrationConfigDefinition as cl, type FarmIntegrationConfigInput as cm, type FarmIntegrationContributedPlugin as cn, type FarmIntegrationData as co, type FarmIntegrationDocumentNavigation as cp, type FarmIntegrationEndpointValue as cq, type FarmIntegrationEndpoints as cr, type FarmIntegrationEndpointsFactory as cs, type FarmIntegrationEndpointsFactoryContext as ct, type FarmIntegrationHandlerContext as cu, type FarmIntegrationInputSchema as cv, type FarmIntegrationLifecycleContext as cw, type FarmIntegrationLifecycleHook as cx, type FarmIntegrationLifecycleLogLevel as cy, type FarmIntegrationLifecycleLogger as cz, type FarmMdxResolvedConfig as d, type I18nConfig as d$, type FarmIntegrationSchemaConstraint as d0, type FarmIntegrationSchemaField as d1, type FarmIntegrationSchemaFieldType as d2, type FarmIntegrationSchemaModel as d3, type FarmIntegrationSchemaModelExtension as d4, type FarmIntegrationSchemaModelOverride as d5, type FarmIntegrationSchemaReference as d6, type FarmIntegrationSession as d7, type FarmIntegrationSlot as d8, type FarmIntegrationStandardValidationResult as d9, type FarmMarkdownResolvedRoute as dA, type FarmMarkdownRouteInput as dB, type FarmMarkdownUserConfig as dC, type FarmPageFormAction as dD, type FarmPageFormField as dE, type FarmPageFormOption as dF, type FarmPageFormSubmit as dG, type FarmPerformanceConfig as dH, type FarmPluginFactory as dI, FarmPluginOptionsError as dJ, type FarmPluginOptionsIssue as dK, type FarmPluginOptionsSchema as dL, type FarmPreloadMode as dM, type FarmPreloadUserConfig as dN, type FarmRouteRenderingMode as dO, type FarmRouteRule as dP, type FarmRouteRuleCors as dQ, type FarmRouteRuleRedirect as dR, type FarmRouteRuleRenderMode as dS, type FarmRouteRules as dT, type FarmRouteRuntimeEntryKind as dU, type FarmRouteRuntimeManifest as dV, type FarmRouteRuntimeManifestEntry as dW, type FarmSecurityConfig as dX, type FarmServerComponentsConfig as dY, type FarmServerComponentsOptions as dZ, type FarmTypedIntegrationRoute as d_, type FarmIntegrationValidationErrorLike as da, type FarmIntegrationValidationIssue as db, type FarmIntegrationValidationPathSegment as dc, type FarmIntegrationValidationResult as dd, type FarmIntegrationsUserConfig as de, type FarmLayerConfig as df, type FarmMCPAuthorization as dg, type FarmMCPAuthorizeContext as dh, type FarmMCPConfig as di, type FarmMCPEndpoint as dj, type FarmMCPEndpointTool as dk, type FarmMCPExecuteContext as dl, type FarmMCPOAuthConfig as dm, type FarmMCPPrompt as dn, type FarmMCPPromptMessage as dp, type FarmMCPResource as dq, type FarmMCPResourceContent as dr, type FarmMCPResourceContext as ds, type FarmMCPResourceListing as dt, type FarmMCPServer as du, type FarmMCPServerFunction as dv, type FarmMCPStandaloneTool as dw, type FarmMCPTool as dx, type FarmMCPToolDefinition as dy, type FarmMarkdownMirrorTarget as dz, type RouteModule as e, isFarmMarkdownMirrorExposed as e$, type ImageConfig as e0, type InferFarmIntegrationOrmClient as e1, type InferFarmIntegrationOrmField as e2, type InferFarmIntegrationOrmFields as e3, type InferFarmIntegrationOrmSchema as e4, type InferPluginOptionsInput as e5, type InferPluginOptionsOutput as e6, type IntegrationOriginPolicy as e7, type IntegrationOriginRejection as e8, type IntegrationOriginResult as e9, extractFarmPageActions as eA, farmAcceptQuality as eB, farmIntegrationSchemaToOrmSchema as eC, farmRouteRuleMatches as eD, forwardIntegrationSetCookies as eE, generateFarmDevIndicatorsClientRuntime as eF, getDeployTargetForPreset as eG, getFarmAPIBaseURL as eH, getFarmIntegrationPluginOwner as eI, getFarmIntegrationPluginServerRuntime as eJ, getFarmMarkdownAlternatePath as eK, getFarmMarkdownMirrorPath as eL, getFarmRouteRuntimeConfig as eM, getIntegrationDocumentNavigationMatchers as eN, getIntegrationProviders as eO, getIntegrationSchemas as eP, getPresetForDeployTarget as eQ, getRegisteredIntegrationAPIManifest as eR, getRegisteredIntegrationRuntime as eS, getRegisteredIntegrationSchemas as eT, getRegisteredIntegrations as eU, hasFarmRouteRuntimeControls as eV, htmlToMarkdown as eW, integrationMiddlewareMayHandlePath as eX, integrationRoute as eY, isFarmIntegration as eZ, isFarmIntegrationProviderComponentReference as e_, type IntegrationOrmModelNames as ea, MetadataRoute as eb, type MetadataRouteContext as ec, type MiddlewareConfig as ed, type RedirectConfig as ee, type ResolveMarkdownMirrorTargetOptions as ef, type ResolvedFarmCspConfig as eg, type ResolvedFarmMCPConfig as eh, type ResolvedFarmPreloadConfig as ei, type RewriteConfig as ej, _getFarmMarkdownPageCheckToken as ek, _getFarmMarkdownPath as el, _isFarmMarkdownPageCheck as em, _readFarmRenderedHtml as en, _resolveFarmMarkdownIndexAlias as eo, applyMarkdownNegotiationHeaders as ep, compareFarmRouteRuleSpecificity as eq, createFarmRouteRuntimeKey as er, createIntegrationOrm as es, createIntegrationRoute as et, createMarkdownMirrorResponse as eu, defineIntegration as ev, defineIntegrationSchema as ew, describeIntegrationOriginRejection as ex, dispatchIntegrationRequest as ey, dispatchIntegrationRequests as ez, type FarmMarkdownRoutePathname as f, matchIntegrationRoute as f0, matchRegisteredIntegrationRoute as f1, matchesFarmMarkdownRoutePattern as f2, mergeFarmRouteRuntimeConfigs as f3, nitroRouteRulesBelowBasePath as f4, normalizeDeployTarget as f5, normalizeFarmAPIBasePath as f6, normalizeFarmAPIConfig as f7, normalizeFarmRouteRuntimeConfig as f8, normalizeRouteRules as f9, collectFarmLlmsTxtPages as fA, createFarmAgentRobots as fB, createFarmCspNonce as fC, createFarmDefaultLlmsTxt as fD, createFarmDefaultSitemap as fE, createFarmLlmsFullRenderer as fF, createFarmLlmsMarkdownReader as fG, createFarmMetadataRouteResponse as fH, hasFarmHtmlPreloadToken as fI, isFarmPageNoIndex as fJ, manageFarmDocumentPreloads as fK, manageFarmHtmlPreloads as fL, manageFarmLinkHeaderPreloads as fM, readFarmLlmsMarkdownFrom as fN, renderFarmLlmsFullTxt as fO, reportFarmPreloadWarnings as fP, resolveFarmAgentCrawlers as fQ, resolveFarmAgentOrigin as fR, resolveFarmAgentSitemap as fS, resolveFarmLlmsTxtConfig as fT, resolveFarmSecurityConfig as fU, stampFarmCspNonce as fV, requestAcceptsMarkdown as fa, resolveDeployOutputPath as fb, resolveFarmAPIConfig as fc, resolveFarmAPIRequestURL as fd, resolveFarmDevIndicatorsConfig as fe, resolveFarmRouteRuleRuntimeConfig as ff, resolveFarmRouteRuntimeConfig as fg, resolveIntegrationAllowedOrigins as fh, resolveIntegrationOrmRuntimeClient as fi, resolveIntegrationPlugins as fj, resolveMarkdownConfig as fk, resolveMarkdownMirrorTarget as fl, resolveMigrationsConfig as fm, resolveRouteRuleCorsPreflightHeaders as fn, routeRulesToHeaders as fo, routeRulesToNitroRouteRules as fp, routeRulesToRedirects as fq, validateIntegrationRequestOrigin as fr, type FarmLlmsTxtLink as fs, type FarmRegisteredMCPServer as ft, type FarmAgentSitemapUserConfig as fu, type FarmLlmsTxtUserConfig as fv, type ResolvedFarmAgentCrawlers as fw, type ResolvedFarmAgentSitemap as fx, type ResolvedFarmLlmsTxtConfig as fy, applyFarmCspNonceToResponse as fz, FARM_MARKDOWN_CONTENT_TYPE as g, createFarmMarkdownErrorBody as h, farmRequestWantsMarkdown as i, type FarmMdxComponent as j, type FarmMdxUserConfig as k, resolveMdxConfig as l, type RouteSegment as m, type SSGPage as n, type FarmAppContext as o, type PageProps as p, type FarmSearchParams as q, resolveFarmMdxComponentsModulePath as r, type PluginContextProps as s, type FarmRouteRuntime as t, type FarmRouteRegions as u, type FarmRouteMaxDuration as v, type FarmServerComponentsMode as w, type FarmUserConfig as x, type ResolvedFarmDesktopConfig as y, type FarmDesktopConfigInput as z };