@farm.js/core 0.1.81 → 0.1.82

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 (240) hide show
  1. package/dist/{agent-mcp.d-Cxi3214_.d.ts → agent-mcp.d-C2Su3x4D.d.ts} +1 -1
  2. package/dist/{agent-mcp.d-DMqOqnOA.d.mts → agent-mcp.d-Yak-LqRd.d.mts} +1 -1
  3. package/dist/agent-runtime.cjs +4 -3
  4. package/dist/agent-runtime.d.mts +1 -1
  5. package/dist/agent-runtime.d.ts +1 -1
  6. package/dist/agent-runtime.mjs +3 -2
  7. package/dist/analyzer-LV23T6QN.cjs +17 -0
  8. package/dist/{analyzer-IC66UJCU.mjs → analyzer-RPU2KG4J.mjs} +2 -2
  9. package/dist/api/node.cjs +5 -4
  10. package/dist/api/node.d.mts +3 -3
  11. package/dist/api/node.d.ts +3 -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 +3 -3
  15. package/dist/api/route-manager.d.ts +3 -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 +2 -2
  19. package/dist/api/runtime.d.ts +2 -2
  20. package/dist/api/runtime.mjs +3 -2
  21. package/dist/api.cjs +7 -6
  22. package/dist/api.d.mts +4 -4
  23. package/dist/api.d.ts +4 -4
  24. package/dist/api.mjs +6 -5
  25. package/dist/{app-manifest.d-Bbxp5kes.d.mts → app-manifest.d-BcyOFMrg.d.mts} +1 -1
  26. package/dist/{app-manifest.d-C8Cswd31.d.ts → app-manifest.d-DZyXaICz.d.ts} +1 -1
  27. package/dist/app-markdown.d.mts +2 -2
  28. package/dist/app-markdown.d.ts +2 -2
  29. package/dist/{app.d-BJuSurgy.d.mts → app.d-C0ePpuaG.d.mts} +21 -4
  30. package/dist/{app.d-DGIoFt5D.d.ts → app.d-CIoXsAbN.d.ts} +21 -4
  31. package/dist/chunk-3DE6RK7K.cjs +36 -0
  32. package/dist/{chunk-NOYKBGUK.mjs → chunk-47I2MYIR.mjs} +130 -46
  33. package/dist/{chunk-GY63XD6K.mjs → chunk-4X7LSGM6.mjs} +1 -1
  34. package/dist/{chunk-BPWTSPK6.mjs → chunk-5AL2GXAU.mjs} +1 -1
  35. package/dist/{chunk-GAWSWJJ2.cjs → chunk-5GFTMTX3.cjs} +2 -2
  36. package/dist/{chunk-CPZZBCPO.cjs → chunk-5MUFW5UU.cjs} +2 -2
  37. package/dist/{chunk-LKIG5SM6.cjs → chunk-5P65LXGU.cjs} +9 -9
  38. package/dist/{chunk-XOXCQGAF.mjs → chunk-63ZE6B6M.mjs} +1 -1
  39. package/dist/{chunk-XOGCNKB7.cjs → chunk-6BPFIYGY.cjs} +3 -3
  40. package/dist/{chunk-UF4BNKKJ.mjs → chunk-6QYPP5KC.mjs} +2 -2
  41. package/dist/{chunk-ATISIC6G.mjs → chunk-7VJXYB6S.mjs} +7 -1
  42. package/dist/{chunk-2Y2HRZQY.cjs → chunk-AIPZDBP6.cjs} +312 -228
  43. package/dist/{chunk-CL7BUGVB.cjs → chunk-ARORZ3MH.cjs} +286 -240
  44. package/dist/{chunk-ONSZP5JK.mjs → chunk-AUFEM3FB.mjs} +1 -1
  45. package/dist/{chunk-FYZD7DUS.cjs → chunk-B2PGVHBG.cjs} +4 -4
  46. package/dist/{chunk-WGWWRV2M.cjs → chunk-B3HQTGXS.cjs} +6 -4
  47. package/dist/{chunk-M6DAIE4T.cjs → chunk-BCTHOQPP.cjs} +10 -8
  48. package/dist/{chunk-S3IWDDQ3.mjs → chunk-C3VCYOU4.mjs} +1 -1
  49. package/dist/{chunk-OO4GVGM3.mjs → chunk-CA2HBLXP.mjs} +11 -1
  50. package/dist/{chunk-W6C3LEXX.cjs → chunk-CD5Z7RR5.cjs} +155 -20
  51. package/dist/{chunk-YH7ENV3K.mjs → chunk-CJDBTTLB.mjs} +4 -4
  52. package/dist/{chunk-5N526T7Q.mjs → chunk-DAXU2NBE.mjs} +74 -18
  53. package/dist/{chunk-Z5BANEQD.cjs → chunk-DMSXZNQR.cjs} +2 -2
  54. package/dist/{chunk-46UV2E7I.cjs → chunk-DRO3NXA3.cjs} +9 -9
  55. package/dist/{chunk-4OFWG4IK.cjs → chunk-EACD6ND7.cjs} +8 -2
  56. package/dist/{chunk-HTNJ7A4D.mjs → chunk-EL2Z6YFZ.mjs} +2 -2
  57. package/dist/{chunk-IM3UINTZ.mjs → chunk-GXLNARPO.mjs} +151 -16
  58. package/dist/{chunk-E3HBD2K3.cjs → chunk-HHQEKLZL.cjs} +2 -2
  59. package/dist/{chunk-5ZHC6QGD.cjs → chunk-HQKCSJEH.cjs} +8 -2
  60. package/dist/{chunk-RHI67C2V.cjs → chunk-HUGPJFOC.cjs} +1 -35
  61. package/dist/{chunk-BJWJP5A4.mjs → chunk-I4DR3HCH.mjs} +3 -3
  62. package/dist/{chunk-C2OLXVUC.mjs → chunk-IVP5Q4BX.mjs} +10 -3
  63. package/dist/{chunk-NSLRK5DK.cjs → chunk-JK26IMT7.cjs} +1 -1
  64. package/dist/{chunk-WIZRYFB2.cjs → chunk-JYQ6DGPW.cjs} +8 -6
  65. package/dist/{chunk-TYHWZOA2.mjs → chunk-KWI3SQFX.mjs} +4 -2
  66. package/dist/{chunk-POVHO46S.mjs → chunk-L3RDECA5.mjs} +1 -1
  67. package/dist/{chunk-MOGRRZMW.cjs → chunk-LM2ZDNDD.cjs} +16 -16
  68. package/dist/{chunk-RPA45OQS.mjs → chunk-MO4UTDQ6.mjs} +1 -1
  69. package/dist/{chunk-ZIYJWJV2.cjs → chunk-N2EFMN2K.cjs} +8 -8
  70. package/dist/{chunk-6WVRVGKC.mjs → chunk-NAHDG6UX.mjs} +1 -1
  71. package/dist/{chunk-OFVCWV2D.cjs → chunk-NEKO3HM2.cjs} +11 -1
  72. package/dist/{chunk-SLEHAGGV.mjs → chunk-NQ3Y6E2T.mjs} +7 -1
  73. package/dist/{chunk-IPG6B25T.mjs → chunk-NRCKBDYP.mjs} +78 -32
  74. package/dist/{chunk-POL5RCVU.mjs → chunk-OMB7UGVW.mjs} +1 -1
  75. package/dist/{chunk-D77OGI6X.mjs → chunk-OP5VI4TP.mjs} +1 -1
  76. package/dist/{chunk-7VCLTNED.mjs → chunk-PNMAD3OS.mjs} +1 -35
  77. package/dist/{chunk-OIWDEDUO.cjs → chunk-Q2VOT3K2.cjs} +392 -336
  78. package/dist/{chunk-RZ6XUEQS.mjs → chunk-QSMUMK7Y.mjs} +2 -2
  79. package/dist/{chunk-2HMSSPCZ.mjs → chunk-RMLR5RMH.mjs} +4 -2
  80. package/dist/{chunk-ADQ2LATR.cjs → chunk-RMPUEH5T.cjs} +2 -2
  81. package/dist/{chunk-AHVF5GI2.cjs → chunk-S7WZUK3B.cjs} +2 -2
  82. package/dist/{chunk-ZKNXCRUQ.cjs → chunk-U54REWMJ.cjs} +23 -23
  83. package/dist/chunk-U6XYBTUT.mjs +36 -0
  84. package/dist/{chunk-TCMRLW3K.cjs → chunk-VACYUMXW.cjs} +10 -3
  85. package/dist/{chunk-OUDNUFVR.cjs → chunk-VMBIKDKW.cjs} +4 -4
  86. package/dist/{chunk-UGLTOLTJ.cjs → chunk-W76C7TCW.cjs} +2 -2
  87. package/dist/{chunk-6JWXHPVR.mjs → chunk-XRSNW4IU.mjs} +4 -2
  88. package/dist/{chunk-TLSGRK7E.mjs → chunk-ZIZRIZLP.mjs} +1 -1
  89. package/dist/{cli-runtime.d-D8O1v2_X.d.mts → cli-runtime.d-Hnvvadz7.d.mts} +5 -5
  90. package/dist/{cli-runtime.d-hf4L1MNP.d.ts → cli-runtime.d-I0MphTbc.d.ts} +5 -5
  91. package/dist/{client-component.d-CX8UCQh-.d.ts → client-component.d-5QEvtJsg.d.ts} +1 -1
  92. package/dist/{client-component.d-DFwUHlOz.d.mts → client-component.d-DapRqtSC.d.mts} +1 -1
  93. package/dist/{client-plugins.d-BflSNO-b.d.mts → client-plugins.d-C1WM3ieD.d.mts} +6 -1
  94. package/dist/{client-plugins.d-qWp8hNwd.d.ts → client-plugins.d-DcmDzcSC.d.ts} +6 -1
  95. package/dist/client-plugins.d.mts +1 -1
  96. package/dist/client-plugins.d.ts +1 -1
  97. package/dist/client.d.mts +7 -7
  98. package/dist/client.d.ts +7 -7
  99. package/dist/config.d.mts +1 -1
  100. package/dist/config.d.ts +1 -1
  101. package/dist/cron.cjs +2 -2
  102. package/dist/cron.mjs +1 -1
  103. package/dist/desktop.d.mts +2 -2
  104. package/dist/desktop.d.ts +2 -2
  105. package/dist/{devtools-EI5N366Z.cjs → devtools-5B7NZE6F.cjs} +10 -9
  106. package/dist/{devtools-XJHODO5H.mjs → devtools-C5GXZZ7E.mjs} +7 -6
  107. package/dist/docs.cjs +9 -8
  108. package/dist/docs.d.mts +3 -3
  109. package/dist/docs.d.ts +3 -3
  110. package/dist/docs.mjs +8 -7
  111. package/dist/environment/vite.cjs +4 -4
  112. package/dist/environment/vite.mjs +3 -3
  113. package/dist/{handler.d-DoH5Krkq.d.mts → handler.d-B8bPCBzl.d.mts} +1 -1
  114. package/dist/{handler.d-C2oRihfa.d.ts → handler.d-Cliwo6Nu.d.ts} +1 -1
  115. package/dist/{headers.d-BrX53wFQ.d.mts → headers.d-CVwSpSGX.d.mts} +1 -1
  116. package/dist/{headers.d-Dj0mfYpb.d.ts → headers.d-C_btqjV6.d.ts} +1 -1
  117. package/dist/index.cjs +28 -27
  118. package/dist/{index.d-DzDHOttz.d.mts → index.d-DFuMZk9-.d.mts} +1 -1
  119. package/dist/{index.d-Dhc2scRl.d.ts → index.d-hOEbMcLk.d.ts} +1 -1
  120. package/dist/index.d.mts +22 -22
  121. package/dist/index.d.ts +22 -22
  122. package/dist/index.mjs +27 -26
  123. package/dist/integrations/orm.d.mts +1 -1
  124. package/dist/integrations/orm.d.ts +1 -1
  125. package/dist/integrations.cjs +4 -3
  126. package/dist/integrations.d.mts +1 -1
  127. package/dist/integrations.d.ts +1 -1
  128. package/dist/integrations.mjs +3 -2
  129. package/dist/internal/app-markdown-runtime.d.mts +2 -2
  130. package/dist/internal/app-markdown-runtime.d.ts +2 -2
  131. package/dist/internal/build-runtime.cjs +26 -25
  132. package/dist/internal/build-runtime.d.mts +4 -4
  133. package/dist/internal/build-runtime.d.ts +4 -4
  134. package/dist/internal/build-runtime.mjs +25 -24
  135. package/dist/internal/cli-runtime.cjs +11 -10
  136. package/dist/internal/cli-runtime.d.mts +7 -7
  137. package/dist/internal/cli-runtime.d.ts +7 -7
  138. package/dist/internal/cli-runtime.mjs +10 -9
  139. package/dist/internal/client-error-overlay.cjs +4 -4
  140. package/dist/internal/client-error-overlay.mjs +1 -1
  141. package/dist/internal/client-runtime.d.mts +5 -5
  142. package/dist/internal/client-runtime.d.ts +5 -5
  143. package/dist/internal/compression-runtime.d.mts +1 -1
  144. package/dist/internal/compression-runtime.d.ts +1 -1
  145. package/dist/internal/config-runtime.cjs +9 -8
  146. package/dist/internal/config-runtime.d.mts +3 -3
  147. package/dist/internal/config-runtime.d.ts +3 -3
  148. package/dist/internal/config-runtime.mjs +8 -7
  149. package/dist/internal/infra-analytics-runtime.cjs +8 -6
  150. package/dist/internal/infra-analytics-runtime.d.mts +8 -2
  151. package/dist/internal/infra-analytics-runtime.d.ts +8 -2
  152. package/dist/internal/infra-analytics-runtime.mjs +8 -6
  153. package/dist/internal/islands-boot.cjs +54 -20
  154. package/dist/internal/islands-boot.d.mts +5 -3
  155. package/dist/internal/islands-boot.d.ts +5 -3
  156. package/dist/internal/islands-boot.mjs +49 -15
  157. package/dist/internal/native-server-fns.cjs +4 -4
  158. package/dist/internal/native-server-fns.mjs +3 -3
  159. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  160. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  161. package/dist/internal/production-runtime.cjs +11 -6
  162. package/dist/internal/production-runtime.d.mts +13 -11
  163. package/dist/internal/production-runtime.d.ts +13 -11
  164. package/dist/internal/production-runtime.mjs +10 -5
  165. package/dist/internal/spa-router.d.mts +3 -3
  166. package/dist/internal/spa-router.d.ts +3 -3
  167. package/dist/internal/start-manifest.d.mts +1 -1
  168. package/dist/internal/start-manifest.d.ts +1 -1
  169. package/dist/markdown.d.mts +1 -1
  170. package/dist/markdown.d.ts +1 -1
  171. package/dist/middleware.d.mts +1 -1
  172. package/dist/middleware.d.ts +1 -1
  173. package/dist/{mount.d-DwXjaOHY.d.ts → mount.d-CAovYKfs.d.ts} +1 -1
  174. package/dist/{mount.d-DOaeUoWq.d.mts → mount.d-DLeYxeRR.d.mts} +1 -1
  175. package/dist/{navigation-delegate.d-o3pPd9VI.d.ts → navigation-delegate.d-BLM-8Q3Z.d.ts} +1 -1
  176. package/dist/{navigation-delegate.d-BElGUMgt.d.mts → navigation-delegate.d-Chv93QS6.d.mts} +1 -1
  177. package/dist/navigation.d.mts +4 -4
  178. package/dist/navigation.d.ts +4 -4
  179. package/dist/{nitro-YLTGVGK4.mjs → nitro-FK3SZM4H.mjs} +1 -1
  180. package/dist/{nitro-XGIO6EQN.cjs → nitro-YDFMH5PY.cjs} +4 -4
  181. package/dist/{plugin-LN3JBZRR.cjs → plugin-3PT7I26P.cjs} +2 -2
  182. package/dist/{plugin-33I3V42N.mjs → plugin-QOTAPTVV.mjs} +1 -1
  183. package/dist/plugin.cjs +21 -19
  184. package/dist/plugin.d.mts +5 -5
  185. package/dist/plugin.d.ts +5 -5
  186. package/dist/plugin.mjs +20 -18
  187. package/dist/{render-plan.d-BD06tqFA.d.ts → render-plan.d-BSTjTH8h.d.ts} +1 -1
  188. package/dist/{render-plan.d-xWCRAJeR.d.mts → render-plan.d-CK5Lggyb.d.mts} +1 -1
  189. package/dist/renderer-client.cjs +48 -5
  190. package/dist/renderer-client.d.mts +5 -5
  191. package/dist/renderer-client.d.ts +5 -5
  192. package/dist/renderer-client.mjs +48 -5
  193. package/dist/renderer.cjs +2 -2
  194. package/dist/renderer.d.mts +10 -0
  195. package/dist/renderer.d.ts +10 -0
  196. package/dist/renderer.mjs +1 -1
  197. package/dist/{request.d-Dx82V8bz.d.mts → request.d-BhggxQf3.d.mts} +1 -1
  198. package/dist/{request.d-DUMuWxSN.d.ts → request.d-CyJS9bjm.d.ts} +1 -1
  199. package/dist/request.d.mts +2 -2
  200. package/dist/request.d.ts +2 -2
  201. package/dist/{route-rendering.d-BwBVpLtD.d.ts → route-rendering.d-BLPPmI5I.d.ts} +1 -1
  202. package/dist/{route-rendering.d-DJh6GauM.d.mts → route-rendering.d-CUpG2mZJ.d.mts} +1 -1
  203. package/dist/{router.d-CJBSG5jr.d.ts → router.d-0X2Ki6rf.d.ts} +1 -1
  204. package/dist/{router.d-BtkKDxUB.d.mts → router.d-2NQM1Kgw.d.mts} +1 -1
  205. package/dist/routes.d.mts +1 -1
  206. package/dist/routes.d.ts +1 -1
  207. package/dist/{rsc-pipeline-H5AXQA7A.cjs → rsc-pipeline-5AOF64FL.cjs} +10 -9
  208. package/dist/{rsc-pipeline-GD6KLOIG.mjs → rsc-pipeline-DNRLYOJ7.mjs} +9 -8
  209. package/dist/{runtime-OJ7FXFUI.mjs → runtime-EHG2FRXZ.mjs} +9 -8
  210. package/dist/{runtime-YWQVBC3V.cjs → runtime-ZVHG5SRB.cjs} +13 -12
  211. package/dist/{runtime.d-BQnD0cfC.d.ts → runtime.d-CXuwkUgr.d.ts} +1 -1
  212. package/dist/{runtime.d-C4SuZXf6.d.mts → runtime.d-CaFXcu_Q.d.mts} +1 -1
  213. package/dist/{server-components-status.d-rfKOcE0N.d.ts → server-components-status.d-BdeFD8ZH.d.ts} +1 -1
  214. package/dist/{server-components-status.d-9rH7ZoEq.d.mts → server-components-status.d-Cp7zvBm5.d.mts} +1 -1
  215. package/dist/server-plugins.d.mts +3 -3
  216. package/dist/server-plugins.d.ts +3 -3
  217. package/dist/server.cjs +54 -48
  218. package/dist/server.d.mts +11 -11
  219. package/dist/server.d.ts +11 -11
  220. package/dist/server.mjs +30 -24
  221. package/dist/{spa-router.d-DMKiBsHH.d.ts → spa-router.d-Bjgl-Osi.d.ts} +2 -2
  222. package/dist/{spa-router.d-V6XLSTCy.d.mts → spa-router.d-l3G38xHa.d.mts} +2 -2
  223. package/dist/{ssg.d-MNedvvMB.d.ts → ssg.d-DDca17Lc.d.ts} +2 -2
  224. package/dist/{ssg.d-BnCKPQL0.d.mts → ssg.d-RnlHOqUL.d.mts} +2 -2
  225. package/dist/{store-core.d-BqJI1-ix.d.mts → store-core.d-BZjuC6Zc.d.mts} +11 -3
  226. package/dist/{store-core.d-Ad5biajo.d.ts → store-core.d-BaOUOPf7.d.ts} +11 -3
  227. package/dist/testing.cjs +5 -4
  228. package/dist/testing.d.mts +1 -1
  229. package/dist/testing.d.ts +1 -1
  230. package/dist/testing.mjs +4 -3
  231. package/dist/{utils.d-BdjHKDuT.d.ts → utils.d-D8TWmpWo.d.ts} +1 -1
  232. package/dist/{utils.d-BEKLWa0Z.d.mts → utils.d-tdzw0_zQ.d.mts} +1 -1
  233. package/dist/version.cjs +2 -2
  234. package/dist/version.mjs +1 -1
  235. package/dist/vite.cjs +21 -19
  236. package/dist/vite.d.mts +6 -6
  237. package/dist/vite.d.ts +6 -6
  238. package/dist/vite.mjs +20 -18
  239. package/package.json +2 -2
  240. package/dist/analyzer-435DCIQ6.cjs +0 -17
@@ -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-4X7LSGM6.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-OP5VI4TP.mjs";
33
33
  import {
34
34
  applyFarmBasePath
35
35
  } from "./chunk-SF3JB56B.mjs";
@@ -8,7 +8,8 @@ var DEFAULT_RENDERER_CAPABILITIES = Object.freeze({
8
8
  // Conservative default: assume a re-render rebuilds until a renderer states
9
9
  // otherwise, so callers do not silently rely on reconciliation.
10
10
  reconcilesRerenders: false,
11
- functionComponents: false
11
+ functionComponents: false,
12
+ hydrationFallback: false
12
13
  });
13
14
  function getFarmRendererCapabilities(renderer) {
14
15
  const defaultStreaming = {
@@ -36,7 +37,8 @@ function getFarmRendererCapabilities(renderer) {
36
37
  ...Object.keys(runtimes).length > 0 ? { runtimes } : {}
37
38
  },
38
39
  reconcilesRerenders: renderer?.capabilities?.reconcilesRerenders ?? DEFAULT_RENDERER_CAPABILITIES.reconcilesRerenders,
39
- functionComponents: renderer?.capabilities?.functionComponents ?? DEFAULT_RENDERER_CAPABILITIES.functionComponents
40
+ functionComponents: renderer?.capabilities?.functionComponents ?? DEFAULT_RENDERER_CAPABILITIES.functionComponents,
41
+ hydrationFallback: renderer?.capabilities?.hydrationFallback ?? DEFAULT_RENDERER_CAPABILITIES.hydrationFallback
40
42
  };
41
43
  }
42
44
  function getFarmRendererStreamingCapabilitiesForRuntime(renderer, runtime) {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkNSLRK5DKcjs = require('./chunk-NSLRK5DK.cjs');
3
+ var _chunkJK26IMT7cjs = require('./chunk-JK26IMT7.cjs');
4
4
 
5
5
  // src/deployment-environment.ts
6
6
  function isFarmProductionDeploymentEnvironment(env = process.env) {
@@ -90,7 +90,7 @@ function createFarmProductionSiteReporter(options) {
90
90
  schemaVersion: FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION,
91
91
  eventType: FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE,
92
92
  packageName: FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME,
93
- packageVersion: sanitizeDetail(_chunkNSLRK5DKcjs.FARM_VERSION, "unknown"),
93
+ packageVersion: sanitizeDetail(_chunkJK26IMT7cjs.FARM_VERSION, "unknown"),
94
94
  renderer: sanitizeDetail(options.renderer, "custom"),
95
95
  deployTarget: sanitizeDetail(options.deployTarget, "custom")
96
96
  };
@@ -3,7 +3,7 @@
3
3
  var _chunkAQIRXBBYcjs = require('./chunk-AQIRXBBY.cjs');
4
4
 
5
5
 
6
- var _chunkM6DAIE4Tcjs = require('./chunk-M6DAIE4T.cjs');
6
+ var _chunkBCTHOQPPcjs = require('./chunk-BCTHOQPP.cjs');
7
7
 
8
8
 
9
9
  var _chunk2BEGVSDFcjs = require('./chunk-2BEGVSDF.cjs');
@@ -136,7 +136,7 @@ var PLATFORM_FILE = /^(?:(page|layout)\.(native|ios|android)\.(?:tsx|ts|jsx|js)|
136
136
  async function scanRoutePatterns(options) {
137
137
  const { root, srcDir = "src" } = options;
138
138
  const sourceRoots = _nullishCoalesce(options.sourceRoots, () => ( [{ name: "project", root, srcDir, layer: false }]));
139
- const componentExtensions = _chunkM6DAIE4Tcjs.resolveFarmComponentExtensions.call(void 0, options.componentExtensions).map(
139
+ const componentExtensions = _chunkBCTHOQPPcjs.resolveFarmComponentExtensions.call(void 0, options.componentExtensions).map(
140
140
  (extension) => extension.slice(1)
141
141
  );
142
142
  const pages = /* @__PURE__ */ new Set();
@@ -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 [];
@@ -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,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkAHVF5GI2cjs = require('./chunk-AHVF5GI2.cjs');
4
+ var _chunkS7WZUK3Bcjs = require('./chunk-S7WZUK3B.cjs');
5
5
 
6
6
 
7
7
  var _chunkA4WWKG2Bcjs = require('./chunk-A4WWKG2B.cjs');
@@ -814,7 +814,7 @@ async function generateFarmTypeArtifacts(options) {
814
814
  componentExtensions: options.componentExtensions,
815
815
  sourceRoots
816
816
  };
817
- unifiedSections.push(await _chunkAHVF5GI2cjs.createRouteTypeDeclarations.call(void 0, routeOptions, unifiedTypesPath));
817
+ unifiedSections.push(await _chunkS7WZUK3Bcjs.createRouteTypeDeclarations.call(void 0, routeOptions, unifiedTypesPath));
818
818
  result.routeTypesPath = unifiedTypesPath;
819
819
  } else if (shouldGenerateRoutes) {
820
820
  const routeOptions = {
@@ -828,11 +828,11 @@ async function generateFarmTypeArtifacts(options) {
828
828
  };
829
829
  if (options.check) {
830
830
  const routeTypesPath = resolveGeneratedPath(root, srcDir, options.routeTypesOutFile);
831
- const content = await _chunkAHVF5GI2cjs.createRouteTypeDeclarations.call(void 0, routeOptions, routeTypesPath);
831
+ const content = await _chunkS7WZUK3Bcjs.createRouteTypeDeclarations.call(void 0, routeOptions, routeTypesPath);
832
832
  checkGeneratedFile(routeTypesPath, content, result.stalePaths);
833
833
  result.routeTypesPath = routeTypesPath;
834
834
  } else {
835
- result.routeTypesPath = await _chunkAHVF5GI2cjs.generateRouteTypes.call(void 0, routeOptions);
835
+ result.routeTypesPath = await _chunkS7WZUK3Bcjs.generateRouteTypes.call(void 0, routeOptions);
836
836
  }
837
837
  }
838
838
  if (shouldGenerateApi) {
@@ -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) {
@@ -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,7 +1,7 @@
1
1
  import {
2
2
  createRouteTypeDeclarations,
3
3
  generateRouteTypes
4
- } from "./chunk-ONSZP5JK.mjs";
4
+ } from "./chunk-AUFEM3FB.mjs";
5
5
  import {
6
6
  APITypeGenerator
7
7
  } from "./chunk-HQ2VAJLW.mjs";
@@ -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-tdzw0_zQ.mjs';
2
+ import { F as FarmPlugin } from './client-plugins.d-C1WM3ieD.mjs';
3
3
  import { R as ResolvedFarmLayer } from './layers.d-CH0bC4QL.mjs';
4
4
  import './renderer.mjs';
5
- import './ssg.d-BnCKPQL0.mjs';
5
+ import './ssg.d-RnlHOqUL.mjs';
6
6
  import './deployment.mjs';
7
- import './handler.d-DoH5Krkq.mjs';
7
+ import './handler.d-B8bPCBzl.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-Cp7zvBm5.mjs';
13
13
  import './storage.mjs';
14
14
 
15
15
  /**
@@ -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-D8TWmpWo.js';
2
+ import { F as FarmPlugin } from './client-plugins.d-DcmDzcSC.js';
3
3
  import { R as ResolvedFarmLayer } from './layers.d-CH0bC4QL.js';
4
4
  import './renderer.js';
5
- import './ssg.d-MNedvvMB.js';
5
+ import './ssg.d-DDca17Lc.js';
6
6
  import './deployment.js';
7
- import './handler.d-C2oRihfa.js';
7
+ import './handler.d-Cliwo6Nu.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-BdeFD8ZH.js';
13
13
  import './storage.js';
14
14
 
15
15
  /**
@@ -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-DcmDzcSC.js';
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.mjs';
2
- import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-BflSNO-b.mjs';
2
+ import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-C1WM3ieD.mjs';
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;
@@ -2023,6 +2026,8 @@ declare function manageFarmLinkHeaderPreloads(value: string, config: ResolvedFar
2023
2026
  declare function manageFarmDocumentPreloads(html: string, linkHeader: string, config: ResolvedFarmPreloadConfig, shell?: object): FarmManagedDocumentPreloads;
2024
2027
  /** Rate-limit identical route-and-budget warnings within a server process. */
2025
2028
  declare function reportFarmPreloadWarnings(warnings: FarmPreloadBudgetWarning[], context?: string): void;
2029
+ /** @internal Whether `html` can hold a preload link the budget counts. */
2030
+ declare function hasFarmHtmlPreloadToken(html: string): boolean;
2026
2031
 
2027
2032
  type FarmCspDirectiveValue = string | readonly string[] | boolean | null | undefined;
2028
2033
  type FarmCspDirectives = Readonly<Record<string, FarmCspDirectiveValue>>;
@@ -3837,4 +3842,4 @@ declare function dispatchIntegrationRequests(integrations: FarmIntegrationsUserC
3837
3842
  setCookies: string[];
3838
3843
  }>;
3839
3844
 
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 };
3845
+ 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 };