@farm.js/core 0.2.0-beta.4 → 0.2.1

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 (235) hide show
  1. package/README.md +1 -3
  2. package/dist/{agent-mcp.d-CAwDC9y4.d.ts → agent-mcp.d--uQgDp_Q.d.ts} +1 -1
  3. package/dist/{agent-mcp.d-BdFnjlAT.d.mts → agent-mcp.d-DpthRhqr.d.mts} +1 -1
  4. package/dist/agent-runtime.d.mts +4 -4
  5. package/dist/agent-runtime.d.ts +4 -4
  6. package/dist/{analyzer-K3S4YRAH.mjs → analyzer-GLFRODYV.mjs} +2 -2
  7. package/dist/analyzer-KBVOHASA.cjs +17 -0
  8. package/dist/api/node.d.mts +6 -6
  9. package/dist/api/node.d.ts +6 -6
  10. package/dist/api/route-manager.cjs +3 -3
  11. package/dist/api/route-manager.d.mts +6 -6
  12. package/dist/api/route-manager.d.ts +6 -6
  13. package/dist/api/route-manager.mjs +2 -2
  14. package/dist/api/runtime.d.mts +5 -5
  15. package/dist/api/runtime.d.ts +5 -5
  16. package/dist/api.cjs +4 -4
  17. package/dist/api.d.mts +7 -7
  18. package/dist/api.d.ts +7 -7
  19. package/dist/api.mjs +3 -3
  20. package/dist/{app-manifest.d-Dczk-fwt.d.ts → app-manifest.d-DMgcFuXQ.d.ts} +1 -1
  21. package/dist/{app-manifest.d-COs1wBGz.d.mts → app-manifest.d-DXAvPjMw.d.mts} +1 -1
  22. package/dist/app-markdown.d.mts +5 -5
  23. package/dist/app-markdown.d.ts +5 -5
  24. package/dist/{app.d-LepnxO-5.d.mts → app.d-DG_-nN5y.d.mts} +4 -4
  25. package/dist/{app.d-DREl_yXh.d.ts → app.d-htfGqq-d.d.ts} +4 -4
  26. package/dist/{chunk-X2SMVPLH.mjs → chunk-2FBFJO2Z.mjs} +8 -5
  27. package/dist/{chunk-Z3RM3VA2.mjs → chunk-5VXVRMXK.mjs} +11 -1
  28. package/dist/{chunk-LWQ6IESX.mjs → chunk-BOHBFBRA.mjs} +1 -1
  29. package/dist/{chunk-V5F6HN7E.mjs → chunk-CPL7WIMP.mjs} +1 -1
  30. package/dist/{chunk-APKULXZV.cjs → chunk-CS6GXE42.cjs} +91 -21
  31. package/dist/chunk-CYUTK4JP.cjs +52 -0
  32. package/dist/{chunk-T4NOMZTS.mjs → chunk-CZMMU3FP.mjs} +4 -4
  33. package/dist/{chunk-PSALMEHJ.cjs → chunk-D2OU4CX2.cjs} +23 -20
  34. package/dist/{chunk-5BZ7PR3T.cjs → chunk-D2VLHRBN.cjs} +3 -3
  35. package/dist/{chunk-D5OY5OKA.mjs → chunk-D5GFVHBV.mjs} +23 -17
  36. package/dist/{chunk-VGX75645.mjs → chunk-E7ISZK3R.mjs} +8 -5
  37. package/dist/{chunk-F5T55PYX.cjs → chunk-EIAA4W3M.cjs} +26 -21
  38. package/dist/{chunk-2PSN2PUJ.cjs → chunk-EWPH5IOC.cjs} +19 -16
  39. package/dist/{chunk-QBCR2EHA.cjs → chunk-GEZ76JXD.cjs} +3 -3
  40. package/dist/{chunk-KM7ZRKCH.cjs → chunk-GL4SPJTE.cjs} +10 -10
  41. package/dist/{chunk-IU4YTFFQ.cjs → chunk-GUYGMTWA.cjs} +12 -9
  42. package/dist/{chunk-MRDI6MTL.mjs → chunk-H6MYRZ2U.mjs} +15 -10
  43. package/dist/{chunk-P67RLOMO.mjs → chunk-HBZQIRRM.mjs} +1 -1
  44. package/dist/{chunk-NNHIV3O2.cjs → chunk-HENYWY5J.cjs} +2 -2
  45. package/dist/{chunk-HV6CYSMF.mjs → chunk-HHZURH4U.mjs} +1 -17
  46. package/dist/{chunk-E5AC7E25.cjs → chunk-JJ22OI7J.cjs} +2 -2
  47. package/dist/{chunk-XPVS4HKU.cjs → chunk-JZAGIXMB.cjs} +1 -1
  48. package/dist/{chunk-TQCDN4DV.mjs → chunk-KQXYBJES.mjs} +14 -11
  49. package/dist/{chunk-5UMPMVNF.mjs → chunk-L2KGQXFU.mjs} +1 -1
  50. package/dist/{chunk-HP7QYVST.cjs → chunk-LEZJZX4C.cjs} +1 -18
  51. package/dist/{chunk-C4DZAEVT.cjs → chunk-MR64FNW6.cjs} +4 -4
  52. package/dist/{chunk-LOQVWATF.mjs → chunk-MYJPW4XN.mjs} +2 -2
  53. package/dist/chunk-O77EKGAS.mjs +36 -0
  54. package/dist/{chunk-VS4ABIJJ.mjs → chunk-OKZHPPBX.mjs} +1 -1
  55. package/dist/{chunk-WLOIUPV2.mjs → chunk-P2THJDLH.mjs} +37 -26
  56. package/dist/{chunk-KBURN62Z.cjs → chunk-PFVNPOKN.cjs} +11 -1
  57. package/dist/{chunk-IASZIYNM.cjs → chunk-PGU4SCIU.cjs} +302 -297
  58. package/dist/chunk-PTG5BEMG.mjs +47 -0
  59. package/dist/{chunk-UBH2OARS.cjs → chunk-PVB5UYJT.cjs} +280 -274
  60. package/dist/{chunk-EBVKVDQA.mjs → chunk-PZ5ZJAAO.mjs} +1 -1
  61. package/dist/{chunk-FYVSAWJP.cjs → chunk-Q4FHYBFT.cjs} +11 -11
  62. package/dist/{chunk-AGT633OM.cjs → chunk-QI3UYN3P.cjs} +11 -11
  63. package/dist/{chunk-HFOME6I2.mjs → chunk-QJKGRUBR.mjs} +5 -5
  64. package/dist/{chunk-DFLCEMQ3.mjs → chunk-RCJAOQWW.mjs} +1 -1
  65. package/dist/{chunk-AGEBFYHF.mjs → chunk-SIJ3DREB.mjs} +1 -1
  66. package/dist/{chunk-II4ENBE4.mjs → chunk-SPVXL37B.mjs} +1 -1
  67. package/dist/{chunk-VVIO7QGN.mjs → chunk-TI4BJFYX.mjs} +32 -27
  68. package/dist/{chunk-MBDDLYT5.cjs → chunk-V6ACETKR.cjs} +4 -4
  69. package/dist/{chunk-VMIR4SUL.cjs → chunk-W34OS5CK.cjs} +383 -372
  70. package/dist/{chunk-ANKMAGFJ.mjs → chunk-WRT775N6.mjs} +92 -22
  71. package/dist/{chunk-DVXT7RLV.cjs → chunk-WXPY5FRF.cjs} +6 -6
  72. package/dist/{chunk-VQYGXWCS.cjs → chunk-XSE4XJKY.cjs} +2 -2
  73. package/dist/{chunk-2ORWY3SE.mjs → chunk-XYCB3CXM.mjs} +2 -2
  74. package/dist/{chunk-XJEOHDPN.cjs → chunk-YCGOQKVC.cjs} +21 -2
  75. package/dist/{chunk-2UV765GT.cjs → chunk-ZQOHL6TX.cjs} +2 -2
  76. package/dist/{client-component.d-BA6kXI5L.d.mts → client-component.d-D5JVDeQf.d.mts} +1 -1
  77. package/dist/{client-component.d-LSEmRhuI.d.ts → client-component.d-DDbDw2yP.d.ts} +1 -1
  78. package/dist/{client-plugins.d-CVUMc2ai.d.mts → client-plugins.d-9jr2yWR3.d.mts} +21 -16
  79. package/dist/{client-plugins.d-CQ6AGHP0.d.ts → client-plugins.d-BHqfH3DQ.d.ts} +21 -16
  80. package/dist/client-plugins.d.mts +4 -4
  81. package/dist/client-plugins.d.ts +4 -4
  82. package/dist/client.d.mts +10 -10
  83. package/dist/client.d.ts +10 -10
  84. package/dist/config.d.mts +4 -4
  85. package/dist/config.d.ts +4 -4
  86. package/dist/desktop.d.mts +5 -5
  87. package/dist/desktop.d.ts +5 -5
  88. package/dist/{devtools-OBQY3XOY.cjs → devtools-F6Z436WU.cjs} +12 -9
  89. package/dist/{devtools-RYTO2V7G.mjs → devtools-ZDBCJI44.mjs} +8 -5
  90. package/dist/docs.cjs +7 -6
  91. package/dist/docs.d.mts +6 -6
  92. package/dist/docs.d.ts +6 -6
  93. package/dist/docs.mjs +6 -5
  94. package/dist/environment/vite.cjs +6 -5
  95. package/dist/environment/vite.d.mts +2 -1
  96. package/dist/environment/vite.d.ts +2 -1
  97. package/dist/environment/vite.mjs +5 -4
  98. package/dist/{generate-route-types.d-BFOMM8Ef.d.mts → generate-route-types.d-CAiRw4N0.d.mts} +1 -1
  99. package/dist/{generate-route-types.d-C2m8myHb.d.ts → generate-route-types.d-Dz8MOQ3u.d.ts} +1 -1
  100. package/dist/{handler.d-nkrNn_0M.d.ts → handler.d-Dq_bSEKC.d.ts} +2 -2
  101. package/dist/{handler.d-DLKZDAYR.d.mts → handler.d-EtTSPkeO.d.mts} +2 -2
  102. package/dist/{headers.d-C3k520Fc.d.mts → headers.d-BKwGD_uC.d.mts} +1 -1
  103. package/dist/{headers.d-DVBrYnqP.d.ts → headers.d-CpIHLCEk.d.ts} +1 -1
  104. package/dist/index.cjs +28 -27
  105. package/dist/{index.d-e5WhoB07.d.ts → index.d-CoRZKiHA.d.ts} +1 -1
  106. package/dist/{index.d-5PDB032w.d.mts → index.d-DXtaU9OU.d.mts} +1 -1
  107. package/dist/index.d.mts +27 -27
  108. package/dist/index.d.ts +27 -27
  109. package/dist/index.mjs +23 -22
  110. package/dist/integrations/orm.d.mts +4 -4
  111. package/dist/integrations/orm.d.ts +4 -4
  112. package/dist/integrations.d.mts +4 -4
  113. package/dist/integrations.d.ts +4 -4
  114. package/dist/internal/app-markdown-runtime.d.mts +5 -5
  115. package/dist/internal/app-markdown-runtime.d.ts +5 -5
  116. package/dist/internal/build-runtime.cjs +23 -22
  117. package/dist/internal/build-runtime.d.mts +8 -8
  118. package/dist/internal/build-runtime.d.ts +8 -8
  119. package/dist/internal/build-runtime.mjs +22 -21
  120. package/dist/internal/cli-runtime.cjs +14 -10
  121. package/dist/internal/cli-runtime.d.mts +20 -12
  122. package/dist/internal/cli-runtime.d.ts +20 -12
  123. package/dist/internal/cli-runtime.mjs +13 -9
  124. package/dist/internal/client-error-overlay.cjs +4 -4
  125. package/dist/internal/client-error-overlay.mjs +1 -1
  126. package/dist/internal/client-runtime.d.mts +8 -8
  127. package/dist/internal/client-runtime.d.ts +8 -8
  128. package/dist/internal/compression-runtime.d.mts +4 -4
  129. package/dist/internal/compression-runtime.d.ts +4 -4
  130. package/dist/internal/config-runtime.cjs +7 -6
  131. package/dist/internal/config-runtime.d.mts +8 -8
  132. package/dist/internal/config-runtime.d.ts +8 -8
  133. package/dist/internal/config-runtime.mjs +6 -5
  134. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  135. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  136. package/dist/internal/native-server-fns.cjs +4 -4
  137. package/dist/internal/native-server-fns.mjs +3 -3
  138. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  139. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  140. package/dist/internal/production-runtime.cjs +4 -4
  141. package/dist/internal/production-runtime.d.mts +13 -13
  142. package/dist/internal/production-runtime.d.ts +13 -13
  143. package/dist/internal/production-runtime.mjs +3 -3
  144. package/dist/internal/spa-router.d.mts +6 -6
  145. package/dist/internal/spa-router.d.ts +6 -6
  146. package/dist/internal/start-manifest.d.mts +4 -4
  147. package/dist/internal/start-manifest.d.ts +4 -4
  148. package/dist/layers-6R55QDT5.cjs +26 -0
  149. package/dist/{layers-IMRXNZRB.mjs → layers-O6GUR6LT.mjs} +6 -1
  150. package/dist/{layers.d-CH0bC4QL.d.ts → layers.d-dNBkiNE9.d.mts} +1 -1
  151. package/dist/{layers.d-CH0bC4QL.d.mts → layers.d-dNBkiNE9.d.ts} +1 -1
  152. package/dist/{manager-3DFQDKJ6.cjs → manager-YRIENS63.cjs} +4 -4
  153. package/dist/{manager-GZUTAN5Q.mjs → manager-YTJOAHII.mjs} +3 -3
  154. package/dist/markdown.d.mts +4 -4
  155. package/dist/markdown.d.ts +4 -4
  156. package/dist/middleware.d.mts +4 -4
  157. package/dist/middleware.d.ts +4 -4
  158. package/dist/mobile.d.mts +4 -4
  159. package/dist/mobile.d.ts +4 -4
  160. package/dist/{mount.d-Cbz8vsSZ.d.ts → mount.d-BzK2Z1pR.d.ts} +1 -1
  161. package/dist/{mount.d-COIrFH0i.d.mts → mount.d-D-ynBlxU.d.mts} +1 -1
  162. package/dist/{navigation-delegate.d-dlnYTX-Y.d.ts → navigation-delegate.d-DtsnFnNF.d.ts} +1 -1
  163. package/dist/{navigation-delegate.d-yulG9Dp5.d.mts → navigation-delegate.d-aJh3ZmTY.d.mts} +1 -1
  164. package/dist/navigation.d.mts +7 -7
  165. package/dist/navigation.d.ts +7 -7
  166. package/dist/plugin.cjs +18 -17
  167. package/dist/plugin.d.mts +8 -8
  168. package/dist/plugin.d.ts +8 -8
  169. package/dist/plugin.mjs +17 -16
  170. package/dist/{render-plan.d-BW56oxMP.d.mts → render-plan.d-C6nUIU2m.d.mts} +1 -1
  171. package/dist/{render-plan.d-Cz7bQmcf.d.ts → render-plan.d-h8bkOQyh.d.ts} +1 -1
  172. package/dist/renderer-client.d.mts +8 -8
  173. package/dist/renderer-client.d.ts +8 -8
  174. package/dist/renderer.cjs +4 -3
  175. package/dist/renderer.d.mts +1 -1
  176. package/dist/renderer.d.ts +1 -1
  177. package/dist/renderer.mjs +3 -2
  178. package/dist/{request.d-BwgX-7Wi.d.mts → request.d-CBEdJD5R.d.mts} +1 -1
  179. package/dist/{request.d-BaFROByP.d.ts → request.d-CrriEvxy.d.ts} +1 -1
  180. package/dist/request.d.mts +5 -5
  181. package/dist/request.d.ts +5 -5
  182. package/dist/{route-rendering.d-D4kUuncg.d.ts → route-rendering.d-C-ivf31T.d.ts} +1 -1
  183. package/dist/{route-rendering.d-BzeFPYGc.d.mts → route-rendering.d-DgXpNk_c.d.mts} +1 -1
  184. package/dist/{router.d-B9qJdgjt.d.ts → router.d-BRRPd5dE.d.ts} +1 -1
  185. package/dist/{router.d-D-p8WElf.d.mts → router.d-O5LrW9mZ.d.mts} +1 -1
  186. package/dist/{routes.d-D7RWvfqL.d.ts → routes.d-CYe98R_8.d.ts} +1 -1
  187. package/dist/{routes.d-BWvpUoYu.d.mts → routes.d-DBGnKaUQ.d.mts} +1 -1
  188. package/dist/routes.d.mts +4 -4
  189. package/dist/routes.d.ts +4 -4
  190. package/dist/{rsc-pipeline-YHVEHWTU.cjs → rsc-pipeline-2DNM7UDA.cjs} +8 -7
  191. package/dist/{rsc-pipeline-Y6D6KBES.mjs → rsc-pipeline-HYINQPMW.mjs} +7 -6
  192. package/dist/{runtime-62ZIEV6U.mjs → runtime-JP7L5KI7.mjs} +11 -8
  193. package/dist/{runtime-LKEMFXHW.cjs → runtime-M6GLD4CR.cjs} +15 -12
  194. package/dist/{runtime.d-BUtDIrRJ.d.mts → runtime.d-DP8Sk9PM.d.mts} +1 -1
  195. package/dist/{runtime.d-Du64AX3R.d.ts → runtime.d-DW_1avVi.d.ts} +1 -1
  196. package/dist/{cli-runtime.d-Bvfxt4uo.d.ts → schema-dependencies.d-C__RyTvW.d.ts} +21 -13
  197. package/dist/{cli-runtime.d-BGaFPum1.d.mts → schema-dependencies.d-Cedd7QUf.d.mts} +21 -13
  198. package/dist/{schema.d-BM-uVGpx.d.mts → schema.d-HlGSe1on.d.mts} +1 -1
  199. package/dist/{schema.d-BM-uVGpx.d.ts → schema.d-HlGSe1on.d.ts} +1 -1
  200. package/dist/schema.d.mts +1 -1
  201. package/dist/schema.d.ts +1 -1
  202. package/dist/{server-components-status.d-CvFhb6-t.d.ts → server-components-status.d-CdsEQbeM.d.ts} +3 -3
  203. package/dist/{server-components-status.d-B0YP-m9A.d.mts → server-components-status.d-DN98yOT4.d.mts} +3 -3
  204. package/dist/server-plugins.d.mts +6 -6
  205. package/dist/server-plugins.d.ts +6 -6
  206. package/dist/server.cjs +56 -53
  207. package/dist/server.d.mts +15 -15
  208. package/dist/server.d.ts +15 -15
  209. package/dist/server.mjs +23 -20
  210. package/dist/{spa-router.d-D4ye2WFk.d.ts → spa-router.d-BJWZAdrV.d.ts} +2 -2
  211. package/dist/{spa-router.d-CkR14oGH.d.mts → spa-router.d-FcDbBCrK.d.mts} +2 -2
  212. package/dist/{ssg.d-DFs97VTY.d.mts → ssg.d--uut8Gya.d.mts} +3 -3
  213. package/dist/{ssg.d-BCJB_f7B.d.ts → ssg.d-Cf9mC1rZ.d.ts} +3 -3
  214. package/dist/storage.d.mts +2 -2
  215. package/dist/storage.d.ts +2 -2
  216. package/dist/{store-core.d-Vk5UDKeC.d.mts → store-core.d-DgYlAo-e.d.mts} +2 -2
  217. package/dist/{store-core.d-0W2YScl8.d.ts → store-core.d-h7o6V2kH.d.ts} +2 -2
  218. package/dist/testing.cjs +2 -2
  219. package/dist/testing.d.mts +4 -4
  220. package/dist/testing.d.ts +4 -4
  221. package/dist/testing.mjs +2 -2
  222. package/dist/{types.d-C5hlNbHa.d.mts → types.d-CRiwa0jj.d.mts} +1 -1
  223. package/dist/{types.d-C5hlNbHa.d.ts → types.d-CRiwa0jj.d.ts} +1 -1
  224. package/dist/{utils.d-Ba3N28fk.d.ts → utils.d-2lGEnyBc.d.ts} +1 -1
  225. package/dist/{utils.d-Cloiko8d.d.mts → utils.d-DjFApBfE.d.mts} +1 -1
  226. package/dist/version.cjs +2 -2
  227. package/dist/version.mjs +1 -1
  228. package/dist/vite.cjs +18 -17
  229. package/dist/vite.d.mts +9 -9
  230. package/dist/vite.d.ts +9 -9
  231. package/dist/vite.mjs +17 -16
  232. package/package.json +1 -1
  233. package/dist/analyzer-3AMJK27J.cjs +0 -17
  234. package/dist/chunk-GTHBWZUK.mjs +0 -17
  235. package/dist/layers-GP57TBE2.cjs +0 -21
@@ -2,28 +2,59 @@ import {
2
2
  writeFileIfChanged
3
3
  } from "./chunk-YFTGIHNC.mjs";
4
4
  import {
5
- isFarmAPIRouteFileName
6
- } from "./chunk-GTHBWZUK.mjs";
5
+ getPolyrouteRouteDeclarationFileName,
6
+ isFarmAPIRouteFileName,
7
+ isPolyrouteRouteFileName
8
+ } from "./chunk-O77EKGAS.mjs";
7
9
  import {
8
10
  registerAPIRouteShape
9
11
  } from "./chunk-2LKUR5QJ.mjs";
10
12
 
11
13
  // src/type-generator.ts
12
- import { readFileSync, existsSync, readdirSync, mkdirSync } from "fs";
14
+ import { readFileSync, existsSync, readdirSync, mkdirSync, statSync } from "fs";
13
15
  import { createRequire } from "module";
14
- import { join, relative, dirname, extname } from "path";
16
+ import { basename, join, relative, dirname, extname } from "path";
15
17
  import { initSync, parse } from "es-module-lexer";
16
18
  var moduleLexerInitialized = false;
19
+ var HTTP_METHODS = ["GET", "HEAD", "QUERY", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"];
17
20
  var JSX_ROUTE_LANGS = { ".jsx": "jsx", ".tsx": "tsx" };
18
- var oxcTransformSync;
19
- function transformJSXRoute(content, lang, filePath) {
20
- oxcTransformSync ?? (oxcTransformSync = createRequire(typeof __filename === "string" ? __filename : import.meta.url)(
21
+ var oxcUtils;
22
+ function loadOxcUtils() {
23
+ return oxcUtils ?? (oxcUtils = createRequire(typeof __filename === "string" ? __filename : import.meta.url)(
21
24
  "rolldown/utils"
22
- ).transformSync);
23
- const result = oxcTransformSync(filePath, content, { lang, sourceType: "module" });
25
+ ));
26
+ }
27
+ function transformJSXRoute(content, lang, filePath) {
28
+ const result = loadOxcUtils().transformSync(filePath, content, { lang, sourceType: "module" });
24
29
  if (result.errors.length > 0) throw result.errors[0];
25
30
  return result.code;
26
31
  }
32
+ function extractDeclaredMethods(content, filePath) {
33
+ const { program, errors } = loadOxcUtils().parseSync(filePath, content, { lang: "dts" });
34
+ if (errors.length > 0) throw new Error(`${filePath}: ${errors[0].message}`);
35
+ const names = /* @__PURE__ */ new Set();
36
+ for (const statement of program.body) {
37
+ if (statement.type !== "ExportNamedDeclaration") continue;
38
+ const declaration = statement.declaration;
39
+ if (declaration?.type === "VariableDeclaration") {
40
+ for (const declarator of declaration.declarations) {
41
+ if (declarator.id.type === "Identifier") names.add(declarator.id.name);
42
+ }
43
+ } else if ((declaration?.type === "FunctionDeclaration" || declaration?.type === "TSDeclareFunction") && declaration.id) {
44
+ names.add(declaration.id.name);
45
+ } else if (!declaration && statement.exportKind !== "type") {
46
+ for (const specifier of statement.specifiers) {
47
+ if (specifier.exportKind === "type") continue;
48
+ const exported = specifier.exported;
49
+ names.add(exported.type === "Literal" ? String(exported.value) : exported.name);
50
+ }
51
+ }
52
+ }
53
+ return HTTP_METHODS.filter((method) => names.has(method));
54
+ }
55
+ function isFile(filePath) {
56
+ return statSync(filePath, { throwIfNoEntry: false })?.isFile() === true;
57
+ }
27
58
  var API_CLIENT_METHOD_SEGMENTS = /* @__PURE__ */ new Set([
28
59
  "get",
29
60
  "head",
@@ -35,8 +66,9 @@ var API_CLIENT_METHOD_SEGMENTS = /* @__PURE__ */ new Set([
35
66
  "options"
36
67
  ]);
37
68
  var APITypeGenerator = class {
38
- constructor(appDir) {
69
+ constructor(appDir, options = {}) {
39
70
  this.appDirs = Array.isArray(appDir) ? [...appDir] : [appDir];
71
+ this.polyroute = options.polyroute === true;
40
72
  }
41
73
  /**
42
74
  * Scan all API route files and extract route information
@@ -84,7 +116,7 @@ var APITypeGenerator = class {
84
116
  if (item.isDirectory()) {
85
117
  const newBasePath = basePath ? `${basePath}/${item.name}` : item.name;
86
118
  this.scanDirectory(fullPath, appDir, routes, newBasePath);
87
- } else if (isFarmAPIRouteFileName(item.name)) {
119
+ } else if (isFarmAPIRouteFileName(item.name, this.polyroute)) {
88
120
  const routeInfo = this.extractRouteInfo(fullPath, appDir, basePath);
89
121
  if (routeInfo) {
90
122
  routes.push(routeInfo);
@@ -93,14 +125,44 @@ var APITypeGenerator = class {
93
125
  }
94
126
  }
95
127
  extractRouteInfo(filePath, appDir, basePath) {
128
+ const relativePath = relative(appDir, filePath);
129
+ const apiPath = basePath ? `/api/${basePath}` : "/api";
130
+ const fileName = basename(filePath);
131
+ if (isPolyrouteRouteFileName(fileName)) {
132
+ const declarationPath = join(
133
+ dirname(filePath),
134
+ getPolyrouteRouteDeclarationFileName(fileName)
135
+ );
136
+ if (!isFile(declarationPath)) {
137
+ return { path: apiPath, methods: [...HTTP_METHODS], filePath, relativePath };
138
+ }
139
+ try {
140
+ const methods = extractDeclaredMethods(
141
+ readFileSync(declarationPath, "utf-8"),
142
+ declarationPath
143
+ );
144
+ if (methods.length === 0) return null;
145
+ return {
146
+ path: apiPath,
147
+ methods,
148
+ filePath,
149
+ relativePath,
150
+ declaration: {
151
+ filePath: declarationPath,
152
+ relativePath: relative(appDir, declarationPath)
153
+ }
154
+ };
155
+ } catch (error) {
156
+ console.warn(`Failed to read route declaration ${declarationPath}:`, error);
157
+ return null;
158
+ }
159
+ }
96
160
  try {
97
161
  const content = readFileSync(filePath, "utf-8");
98
162
  const methods = this.extractExportedMethods(content, filePath);
99
163
  if (methods.length === 0) {
100
164
  return null;
101
165
  }
102
- const relativePath = relative(appDir, filePath);
103
- const apiPath = basePath ? `/api/${basePath}` : "/api";
104
166
  return {
105
167
  path: apiPath,
106
168
  methods,
@@ -117,7 +179,7 @@ var APITypeGenerator = class {
117
179
  initSync();
118
180
  moduleLexerInitialized = true;
119
181
  }
120
- const httpMethods = ["GET", "HEAD", "QUERY", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"];
182
+ const httpMethods = HTTP_METHODS;
121
183
  const lang = JSX_ROUTE_LANGS[extname(filePath)];
122
184
  const source = lang ? transformJSXRoute(content, lang, filePath) : content;
123
185
  const [, exports] = parse(source);
@@ -154,9 +216,10 @@ var APITypeGenerator = class {
154
216
  */
155
217
  generateAPIRouter(routes, options = {}) {
156
218
  const imports = [];
219
+ const coreAPITypes = [];
157
220
  const pluginTypes = [];
158
221
  if (options.pluginConfigs?.length) {
159
- imports.push('import type { PluginAPIRouter } from "@farm.js/core/api";');
222
+ coreAPITypes.push("PluginAPIRouter");
160
223
  options.pluginConfigs.forEach((filePath, index) => {
161
224
  const importPath = this.getRouteImportPath({ filePath }, options.outFile);
162
225
  imports.push(`import type FarmPluginConfig${index} from ${JSON.stringify(importPath)};`);
@@ -197,18 +260,24 @@ var APITypeGenerator = class {
197
260
  for (const method of route.methods) methodSources.set(method, route);
198
261
  }
199
262
  const allMethods = [...methodSources.keys()];
263
+ const methodTypes = /* @__PURE__ */ new Map();
200
264
  for (const method of allMethods) {
201
- const importPath = this.getRouteImportPath(methodSources.get(method), options.outFile);
265
+ const source = methodSources.get(method);
266
+ if (!source.declaration && isPolyrouteRouteFileName(basename(source.filePath))) {
267
+ if (!coreAPITypes.includes("TypedEndpoint")) coreAPITypes.push("TypedEndpoint");
268
+ methodTypes.set(method, "TypedEndpoint<any, any>");
269
+ continue;
270
+ }
271
+ const importPath = this.getRouteImportPath(source.declaration ?? source, options.outFile);
202
272
  const importName = `${method}_${routeName}`;
203
273
  imports.push(
204
274
  `import type { ${method} as ${importName} } from ${JSON.stringify(importPath)};`
205
275
  );
276
+ methodTypes.set(method, `typeof ${importName}`);
206
277
  }
207
278
  if (parts.length === 0) {
208
279
  for (const method of allMethods) {
209
- const importName = `${method}_${routeName}`;
210
- const methodName = method.toLowerCase();
211
- nestedStructure[methodName] = `typeof ${importName}`;
280
+ nestedStructure[method.toLowerCase()] = methodTypes.get(method);
212
281
  }
213
282
  } else {
214
283
  const hasMethodCollision = parts.some((part, index) => {
@@ -224,9 +293,7 @@ var APITypeGenerator = class {
224
293
  if (i === typePath.length - 1) {
225
294
  current[part] = createRouteTreeNode();
226
295
  for (const method of allMethods) {
227
- const importName = `${method}_${routeName}`;
228
- const methodName = method.toLowerCase();
229
- current[part][methodName] = `typeof ${importName}`;
296
+ current[part][method.toLowerCase()] = methodTypes.get(method);
230
297
  }
231
298
  } else {
232
299
  if (!Object.prototype.hasOwnProperty.call(current, part)) {
@@ -263,6 +330,9 @@ ${routeManifest.map(
263
330
  },`
264
331
  ).join("\n")}
265
332
  ]` : "[]";
333
+ if (coreAPITypes.length) {
334
+ imports.unshift(`import type { ${coreAPITypes.join(", ")} } from "@farm.js/core/api";`);
335
+ }
266
336
  return `/**
267
337
  * Auto-generated API router types
268
338
  * This file is automatically generated - do not edit manually
@@ -5,7 +5,7 @@ var _chunkB6JPBPBQcjs = require('./chunk-B6JPBPBQ.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkHP7QYVSTcjs = require('./chunk-HP7QYVST.cjs');
8
+ var _chunkLEZJZX4Ccjs = require('./chunk-LEZJZX4C.cjs');
9
9
 
10
10
 
11
11
  var _chunkRBDAW6IZcjs = require('./chunk-RBDAW6IZ.cjs');
@@ -85,7 +85,7 @@ async function resolveFarmRendererRoutes(options) {
85
85
  );
86
86
  }
87
87
  const extensions = [
88
- ..._chunkHP7QYVSTcjs.resolveFarmComponentExtensions.call(void 0, renderer.componentExtensions),
88
+ ..._chunkLEZJZX4Ccjs.resolveFarmComponentExtensions.call(void 0, renderer.componentExtensions),
89
89
  ".md",
90
90
  ".mdx"
91
91
  ];
@@ -110,7 +110,7 @@ async function resolveFarmRendererRoutes(options) {
110
110
  try {
111
111
  rule = resolve2.call(rules, file);
112
112
  } catch (error) {
113
- throw _chunkHP7QYVSTcjs.createFarmRendererHookError.call(void 0,
113
+ throw _chunkLEZJZX4Ccjs.createFarmRendererHookError.call(void 0,
114
114
  `${where} threw while resolving ${modulePath}: ${error instanceof Error ? error.message : String(error)}`,
115
115
  error
116
116
  );
@@ -158,7 +158,7 @@ function readRouteRule(rule, where, extension, modulePath) {
158
158
  try {
159
159
  _chunk7ZDLE77Pcjs.parseRoutePath.call(void 0, routeFile);
160
160
  } catch (error) {
161
- throw _chunkHP7QYVSTcjs.createFarmRendererHookError.call(void 0,
161
+ throw _chunkLEZJZX4Ccjs.createFarmRendererHookError.call(void 0,
162
162
  `${where} returned \`pattern: ${JSON.stringify(pattern)}\`: ${error instanceof Error ? error.message : String(error)}`,
163
163
  error
164
164
  );
@@ -168,7 +168,7 @@ function readRouteRule(rule, where, extension, modulePath) {
168
168
  pattern,
169
169
  routeFile,
170
170
  modulePath,
171
- hydration: _chunkHP7QYVSTcjs.readFarmRendererHydration.call(void 0, value, where)
171
+ hydration: _chunkLEZJZX4Ccjs.readFarmRendererHydration.call(void 0, value, where)
172
172
  };
173
173
  }
174
174
  function readPatternSegments(pattern, where) {
@@ -321,7 +321,7 @@ var PLATFORM_FILE = /^(?:(page|layout)\.(native|ios|android)\.(?:tsx|ts|jsx|js)|
321
321
  async function scanRoutePatterns(options) {
322
322
  const { root, srcDir = "src" } = options;
323
323
  const sourceRoots = _nullishCoalesce(options.sourceRoots, () => ( [{ name: "project", root, srcDir, layer: false }]));
324
- const componentExtensions = _chunkHP7QYVSTcjs.resolveFarmComponentExtensions.call(void 0, options.componentExtensions).map(
324
+ const componentExtensions = _chunkLEZJZX4Ccjs.resolveFarmComponentExtensions.call(void 0, options.componentExtensions).map(
325
325
  (extension) => extension.slice(1)
326
326
  );
327
327
  const pages = /* @__PURE__ */ new Set();
@@ -18,7 +18,7 @@ var _chunk4A6WSOZHcjs = require('./chunk-4A6WSOZH.cjs');
18
18
  var _chunkTDAH76RRcjs = require('./chunk-TDAH76RR.cjs');
19
19
 
20
20
 
21
- var _chunkF5T55PYXcjs = require('./chunk-F5T55PYX.cjs');
21
+ var _chunkEIAA4W3Mcjs = require('./chunk-EIAA4W3M.cjs');
22
22
 
23
23
 
24
24
 
@@ -638,7 +638,7 @@ async function resolveAPIContext(options) {
638
638
  config: options.config,
639
639
  configPath: options.configPath
640
640
  }));
641
- const docs = isResolvedDocsConfig(docsInput) ? docsInput : await _chunkF5T55PYXcjs.resolveDocsConfig.call(void 0, docsInput, { root, srcDir });
641
+ const docs = isResolvedDocsConfig(docsInput) ? docsInput : await _chunkEIAA4W3Mcjs.resolveDocsConfig.call(void 0, docsInput, { root, srcDir });
642
642
  const guardedPaths = new Set(_nullishCoalesce(_optionalChain([runtimeConfig, 'optionalAccess', _27 => _27.guardedPaths]), () => ( [])));
643
643
  return {
644
644
  root,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-WABOJXAA.mjs";
5
5
  import {
6
6
  normalizeFarmProductionSiteOrigin
7
- } from "./chunk-DFLCEMQ3.mjs";
7
+ } from "./chunk-RCJAOQWW.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-LWQ6IESX.mjs";
32
+ } from "./chunk-BOHBFBRA.mjs";
33
33
  import {
34
34
  applyFarmBasePath
35
35
  } from "./chunk-SF3JB56B.mjs";
@@ -7,8 +7,24 @@ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
7
7
  function hasPolyroutePlugin(plugins) {
8
8
  return _optionalChain([plugins, 'optionalAccess', _ => _.some, 'call', _2 => _2((plugin) => plugin.name === "polyroute")]) === true;
9
9
  }
10
+ async function hasPolyroutePluginOption(option) {
11
+ const value = await option;
12
+ if (Array.isArray(value)) {
13
+ for (const entry of value) {
14
+ if (await hasPolyroutePluginOption(entry)) return true;
15
+ }
16
+ return false;
17
+ }
18
+ return typeof value === "object" && value !== null && value.name === "polyroute";
19
+ }
10
20
  function isPolyrouteRouteFileName(fileName) {
11
- return fileName === "route.rs" || fileName === "route.go";
21
+ return fileName === "route.rs" || fileName === "route.go" || fileName === "route.py";
22
+ }
23
+ function getPolyrouteRouteDeclarationFileName(routeFileName) {
24
+ return routeFileName.replace(/^route\./, "route.d.") + ".ts";
25
+ }
26
+ function isPolyrouteRouteDeclarationFileName(fileName) {
27
+ return fileName === "route.d.rs.ts" || fileName === "route.d.go.ts" || fileName === "route.d.py.ts";
12
28
  }
13
29
  function isFarmAPIRouteFileName(fileName, polyroute = false) {
14
30
  if (polyroute && isPolyrouteRouteFileName(fileName)) return true;
@@ -19,4 +35,7 @@ function isFarmAPIRouteFileName(fileName, polyroute = false) {
19
35
 
20
36
 
21
37
 
22
- exports.hasPolyroutePlugin = hasPolyroutePlugin; exports.isPolyrouteRouteFileName = isPolyrouteRouteFileName; exports.isFarmAPIRouteFileName = isFarmAPIRouteFileName;
38
+
39
+
40
+
41
+ exports.hasPolyroutePlugin = hasPolyroutePlugin; exports.hasPolyroutePluginOption = hasPolyroutePluginOption; exports.isPolyrouteRouteFileName = isPolyrouteRouteFileName; exports.getPolyrouteRouteDeclarationFileName = getPolyrouteRouteDeclarationFileName; exports.isPolyrouteRouteDeclarationFileName = isPolyrouteRouteDeclarationFileName; exports.isFarmAPIRouteFileName = isFarmAPIRouteFileName;
@@ -1,6 +1,6 @@
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(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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; } async function _asyncOptionalChain(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 = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkAPKULXZVcjs = require('./chunk-APKULXZV.cjs');
3
+ var _chunkCS6GXE42cjs = require('./chunk-CS6GXE42.cjs');
4
4
 
5
5
 
6
6
  var _chunk6K7LEL2Tcjs = require('./chunk-6K7LEL2T.cjs');
@@ -684,7 +684,7 @@ var OpenAPIManager = class {
684
684
  this.config = config;
685
685
  this.mountedRoutes = context.routes;
686
686
  this.generator = new OpenAPIGenerator(this.appDir, config, context);
687
- this.apiTypeGenerator = new (0, _chunkAPKULXZVcjs.APITypeGenerator)(appDirs);
687
+ this.apiTypeGenerator = new (0, _chunkCS6GXE42cjs.APITypeGenerator)(appDirs);
688
688
  }
689
689
  getRoutes() {
690
690
  if (!this.mountedRoutes) return this.apiTypeGenerator.scanAPIRoutes();
@@ -1,5 +1,5 @@
1
1
  import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
2
- import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-CVUMc2ai.mjs';
2
+ import { a_ as FarmIsolatedClientHydrationMode } from './client-plugins.d-9jr2yWR3.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-CQ6AGHP0.js';
2
+ import { a_ as FarmIsolatedClientHydrationMode } from './client-plugins.d-BHqfH3DQ.js';
3
3
 
4
4
  /**
5
5
  * The browser copy of a programmatic page or layout imports only the module that defines its
@@ -6,8 +6,8 @@ import { F as FarmLocalePathConfig } from './routing.d-D67HQmnv.mjs';
6
6
  import { E as EndpointMCPMetadata, T as TypedEndpoint, c as RouteSchema, e as RouteSchemaOutput, f as RouteSchemaInput, $ as OpenAPISecurityMode, J as OpenAPIPathItemObject } from './endpoint.d-BXbBpKoh.mjs';
7
7
  import { ServerFn } from './server-fn.mjs';
8
8
  import { ServerQuery } from './server-query.mjs';
9
- import { F as FarmStorageUserConfig } from './types.d-C5hlNbHa.mjs';
10
- import { F as FarmSchema, m as FarmSqlDialect, f as FarmSchemaMigrationStep, b as FarmSchemaConfig, d as FarmSchemaField, c as FarmSchemaConstraint, e as FarmSchemaFieldType, g as FarmSchemaModel, h as FarmSchemaModelExtension, i as FarmSchemaModelOverride, k as FarmSchemaReference, r as defineSchema } from './schema.d-BM-uVGpx.mjs';
9
+ import { F as FarmStorageUserConfig } from './types.d-CRiwa0jj.mjs';
10
+ import { F as FarmSchema, q as FarmSqlDialect, j as FarmSchemaMigrationStep, b as FarmSchemaConfig, g as FarmSchemaField, f as FarmSchemaConstraint, h as FarmSchemaFieldType, k as FarmSchemaModel, l as FarmSchemaModelExtension, m as FarmSchemaModelOverride, o as FarmSchemaReference, w as defineSchema } from './schema.d-HlGSe1on.mjs';
11
11
  import React__default, { ComponentType, ReactNode } from 'react';
12
12
  import { OrmClient, SchemaDefinition, ModelDefinition, FieldBuilder, JsonValue, AnyModelDefinition, SchemaModels } from '@farming-labs/orm';
13
13
  import { DocsConfig } from '@farming-labs/docs';
@@ -21,7 +21,7 @@ import { ViteDevServer, UserConfig } from 'vite';
21
21
  import { a as FarmRedirectStatus } from './navigation-errors.d-DwHtoMyR.mjs';
22
22
  import { FarmServerActionsConfig, ResolvedFarmServerActionsConfig } from './server-action-security.mjs';
23
23
  import { F as FarmServerConfig, R as ResolvedFarmServerConfig } from './server-http.d-rAe7lAQc.mjs';
24
- import { a as FarmLayerEntry, R as ResolvedFarmLayer } from './layers.d-CH0bC4QL.mjs';
24
+ import { a as FarmLayerEntry, R as ResolvedFarmLayer } from './layers.d-dNBkiNE9.mjs';
25
25
  import { a as FarmImageConfig, R as ResolvedFarmImageConfig } from './image-config.d-ByhQ0TT7.mjs';
26
26
  import { n as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.mjs';
27
27
  import { FarmCacheUserConfig } from './cache.mjs';
@@ -66,9 +66,10 @@ declare function validateIntegrationRequestOrigin(request: Request, policy?: Int
66
66
  declare function describeIntegrationOriginRejection(reason: IntegrationOriginRejection): string;
67
67
 
68
68
  /**
69
- * `experimental.serverComponents`: which engine renders server components.
69
+ * `serverComponents`: which engine renders server components. `experimental.serverComponents` is
70
+ * its deprecated spelling.
70
71
  *
71
- * - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. Experimental. The default. On a
72
+ * - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. The default. On a
72
73
  * renderer besides React, that renderer's islands (`capabilities.islands`), without the engine.
73
74
  * - `"rsc"`: React's Flight pipeline (`@farm.js/plugin/rsc` on `@vitejs/plugin-rsc`).
74
75
  *
@@ -2745,18 +2746,22 @@ interface FarmConfig {
2745
2746
  * Use when you want to skip route-type errors on Link or don't use generated route types.
2746
2747
  */
2747
2748
  suppressLintOnLink?: boolean;
2749
+ /**
2750
+ * Server components: pages and layouts render on the server only, and `"use client"` marks
2751
+ * what runs in the browser.
2752
+ *
2753
+ * - `{ mode: "islands" }`, or `true`: each client component hydrates on its own, as an island.
2754
+ * React runs pages on Farm's own engine (RFC 0003). Another renderer needs
2755
+ * `capabilities.islands`, and its islands hydrate through its `withIsland`.
2756
+ * - `{ mode: "rsc" }`: React's Flight pipeline from `@farm.js/plugin/rsc`. React only.
2757
+ *
2758
+ * @default false
2759
+ */
2760
+ serverComponents?: FarmServerComponentsConfig;
2748
2761
  experimental?: {
2749
2762
  /**
2750
- * Server components: pages and layouts render on the server only, and `"use client"` marks
2751
- * what runs in the browser.
2752
- *
2753
- * - `{ mode: "islands" }`, or `true`: each client component hydrates on its own, as an island.
2754
- * React runs pages on Farm's own engine (RFC 0003). Another renderer needs
2755
- * `capabilities.islands`, and its islands hydrate through its `withIsland`.
2756
- * - `{ mode: "rsc" }`: React's Flight pipeline from `@farm.js/plugin/rsc`. React only.
2757
- *
2758
- * @experimental
2759
- * @default false
2763
+ * @deprecated Use the top-level `serverComponents`, which takes the same values. Setting both
2764
+ * to different engines is an error. https://farmjs.dev/docs/server-rendering/islands
2760
2765
  */
2761
2766
  serverComponents?: FarmServerComponentsConfig;
2762
2767
  serverActions?: boolean;
@@ -3905,4 +3910,4 @@ declare function dispatchIntegrationRequests(integrations: FarmIntegrationsUserC
3905
3910
  setCookies: string[];
3906
3911
  }>;
3907
3912
 
3908
- 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, applyFarmCspNonceToResponse as fA, collectFarmLlmsTxtPages as fB, createFarmAgentRobots as fC, createFarmCspNonce as fD, createFarmDefaultLlmsTxt as fE, createFarmDefaultSitemap as fF, createFarmLlmsFullRenderer as fG, createFarmLlmsMarkdownReader as fH, createFarmMetadataRouteResponse as fI, hasFarmHtmlPreloadToken as fJ, isFarmPageNoIndex as fK, manageFarmDocumentPreloads as fL, manageFarmHtmlPreloads as fM, manageFarmLinkHeaderPreloads as fN, readFarmLlmsMarkdownFrom as fO, renderFarmLlmsFullTxt as fP, reportFarmPreloadWarnings as fQ, resolveFarmAgentCrawlers as fR, resolveFarmAgentOrigin as fS, resolveFarmAgentSitemap as fT, resolveFarmLlmsTxtConfig as fU, resolveFarmSecurityConfig as fV, stampFarmCspNonce as fW, providerSupportsIslands as fa, requestAcceptsMarkdown as fb, resolveDeployOutputPath as fc, resolveFarmAPIConfig as fd, resolveFarmAPIRequestURL as fe, resolveFarmDevIndicatorsConfig as ff, resolveFarmRouteRuleRuntimeConfig as fg, resolveFarmRouteRuntimeConfig as fh, resolveIntegrationAllowedOrigins as fi, resolveIntegrationOrmRuntimeClient as fj, resolveIntegrationPlugins as fk, resolveMarkdownConfig as fl, resolveMarkdownMirrorTarget as fm, resolveMigrationsConfig as fn, resolveRouteRuleCorsPreflightHeaders as fo, routeRulesToHeaders as fp, routeRulesToNitroRouteRules as fq, routeRulesToRedirects as fr, validateIntegrationRequestOrigin as fs, type FarmLlmsTxtLink as ft, type FarmRegisteredMCPServer as fu, type FarmAgentSitemapUserConfig as fv, type FarmLlmsTxtUserConfig as fw, type ResolvedFarmAgentCrawlers as fx, type ResolvedFarmAgentSitemap as fy, type ResolvedFarmLlmsTxtConfig 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 };
3913
+ export { type APIHandlerLifecyclePayload as $, type SSGPage as A, type BundleResultPayload as B, type FarmAppContext as C, type PageProps as D, type FarmSearchParams as E, type FarmPlugin as F, type PluginContextProps as G, type FarmRouteRuntime as H, type FarmRouteRegions as I, type FarmRouteMaxDuration as J, type FarmServerComponentsMode as K, type LayoutProps as L, type Metadata as M, type FarmUserConfig as N, type ResolvedFarmDesktopConfig as O, type ParsedRoute as P, type FarmDesktopConfigInput as Q, type ResolvedFarmDeployConfig as R, type SSGCollectionResult as S, type FarmDesktopContext as T, type FarmDesktopUserConfig as U, type FarmDesktopWindowConfig as V, type HeaderConfig as W, type FarmRequest as X, type FarmResponse as Y, type FarmPluginContext as Z, type ResolvedFarmConfig as _, type FarmIntegration as a, type FarmMCPUserConfig as a$, type APIRouteDiscoveredPayload as a0, type BundleLifecyclePayload as a1, type ErrorLifecyclePayload as a2, FARM_NODE_RESPONSE_END_PENDING as a3, type FarmDevtoolsUserConfig as a4, type FarmPluginBuildHooks as a5, type FarmPluginClientConfig as a6, type FarmPluginDatabase as a7, type FarmPluginDefinition as a8, type FarmPluginDevHooks as a9, type HMRUpdatePayload as aA, type MiddlewareDiscoveredPayload as aB, type NitroBuildLifecyclePayload as aC, PluginManager as aD, type PluginRequestContext as aE, type RenderLifecyclePayload as aF, type ResolvedFarmDevtoolsConfig as aG, type RouteDiscoveredPayload as aH, type RouteMatchPayload as aI, type RouteMatchResultPayload as aJ, type RoutesGeneratedPayload as aK, type ShutdownPayload as aL, definePlugin as aM, resolveFarmDevtoolsConfig as aN, type MiddlewareProps as aO, type FarmContextFactory as aP, type FarmDocsResolvedConfig as aQ, type FarmMCPCatalogDetails as aR, type ResolvedFarmAppManifestConfig as aS, type FarmConfig as aT, type AppRoutePattern as aU, type BuildOptions as aV, type ErrorBoundary as aW, type ErrorProps as aX, type FarmComponentType as aY, type FarmContextFactoryInput as aZ, type FarmIsolatedClientHydrationMode as a_, type FarmPluginDiscoveredRoute as aa, type FarmPluginIntegrationContext as ab, type FarmPluginLifecycle as ac, type FarmPluginRenderHooks as ad, type FarmPluginRouteRuntimePayload as ae, type FarmPluginRouterHooks as af, type FarmPluginRuntimeAfterEvent as ag, type FarmPluginRuntimeBaseEvent as ah, type FarmPluginRuntimeBeforeEvent as ai, type FarmPluginRuntimeCloseEvent as aj, type FarmPluginRuntimeContextEvent as ak, type FarmPluginRuntimeEndpoint as al, type FarmPluginRuntimeEndpointEvent as am, type FarmPluginRuntimeErrorEvent as an, type FarmPluginRuntimeHooks as ao, type FarmPluginRuntimeKind as ap, type FarmPluginRuntimeRequestHandler as aq, type FarmPluginRuntimeRequestOptions as ar, type FarmPluginRuntimeRequestScope as as, type FarmPluginRuntimeSession as at, type FarmPluginRuntimeStartEvent as au, type FarmPluginSetupContext as av, type FarmPluginStateContext as aw, type FarmRequestPluginContext as ax, type FarmRequestStore as ay, FarmRuntimeShutdownError as az, getIntegrationSchemas as b, type FarmAPIConfig as b$, type FarmMigrationCommand as b0, type FarmMigrationsConfig as b1, type FarmMigrationsUserConfig as b2, type GenerateStaticParams as b3, type Layout as b4, type LayoutMetadataProps as b5, type LayoutModule as b6, type Loading as b7, type LoadingProps as b8, type MetadataJsonLd as b9, type ResolvedFarmAuthConfig as bA, type ResolvedFarmPerformanceConfig as bB, type ResolvedFarmSecurityConfig as bC, type FarmDesktopDevSession as bD, type FarmDesktopSetupOptions as bE, createFarmDesktopContext as bF, getFarmDesktopOutputDirs as bG, installFarmDesktopSetup as bH, resolveFarmDesktopBlock as bI, resolveFarmDesktopConfig as bJ, setFarmDesktopDevSession as bK, validateFarmDesktopConfig as bL, createFarmSearchParams as bM, searchParamsToObject as bN, type OpenAPIConfig as bO, type ApplyMarkdownNegotiationHeadersOptions as bP, type CreateIntegrationOrmOptions as bQ, type CreateMarkdownMirrorResponseOptions as bR, DEFAULT_FARM_API_BASE_PATH as bS, DEFAULT_FARM_DEVTOOLS_SHORTCUT as bT, type DefinedIntegration as bU, FARM_DEVTOOLS_LAUNCH_PARAM as bV, FARM_DEVTOOLS_PATH as bW, FARM_INTEGRATION_API_BASE_PATH_KEY as bX, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as bY, FARM_INTEGRATION_SET_COOKIES_KEY as bZ, FARM_MARKDOWN_PAGE_CHECK_HEADER as b_, type MetadataProps as ba, type MetadataRobots as bb, type MetadataRobotsDirectives as bc, type NitroPreset as bd, type Page as be, type PagePropsWithMiddleware as bf, type PageRouteParams as bg, type ResolvedFarmMigrationsConfig as bh, type ServerAction as bi, type StaticPathParams as bj, type StaticPathPrimitive as bk, type StaticRouteParams as bl, type ThemeColorDescriptor as bm, type Viewport as bn, resolveFarmMCPConfig as bo, resolveFarmMCPPlugin as bp, type FarmMCPServerRegistration as bq, _findFarmMCPEndpointTool as br, _publishFarmMCPCatalog as bs, registerFarmMCPServer as bt, type FarmAgentJsonLd as bu, type FarmMarkdownResolvedConfig as bv, type ResolvedFarmRouteRuntimeConfig as bw, type ApplicationMetadataRouteKind as bx, type ResolvedFarmAPIConfig as by, type ResolvedFarmDevIndicatorsConfig as bz, getPresetForDeployTarget as c, type FarmIntegrationRouteInputSchemas as c$, type FarmAPIConfigResolverContext as c0, type FarmAPIConfigValue as c1, type FarmAgentCrawlers as c2, type FarmAgentUserConfig as c3, type FarmAppManifestConfig as c4, type FarmAuthConfig as c5, type FarmAuthDatabaseConfig as c6, type FarmAuthEmailAndPasswordConfig as c7, type FarmAuthSessionConfig as c8, type FarmAuthUserConfig as c9, type FarmIntegrationEndpoints as cA, type FarmIntegrationEndpointsFactory as cB, type FarmIntegrationEndpointsFactoryContext as cC, type FarmIntegrationHandlerContext as cD, type FarmIntegrationInputSchema as cE, type FarmIntegrationLifecycleContext as cF, type FarmIntegrationLifecycleHook as cG, type FarmIntegrationLifecycleLogLevel as cH, type FarmIntegrationLifecycleLogger as cI, type FarmIntegrationLogEvent as cJ, type FarmIntegrationLogPhase as cK, type FarmIntegrationLogger as cL, type FarmIntegrationMiddleware as cM, type FarmIntegrationOrmClient as cN, type FarmIntegrationOrmSchema as cO, type FarmIntegrationPluginOwner as cP, type FarmIntegrationProvider as cQ, type FarmIntegrationProviderComponentReference as cR, type FarmIntegrationProviderProps as cS, type FarmIntegrationRequestContextStore as cT, type FarmIntegrationRoute as cU, type FarmIntegrationRouteArgs as cV, type FarmIntegrationRouteDb as cW, type FarmIntegrationRouteFactory as cX, type FarmIntegrationRouteHook as cY, type FarmIntegrationRouteHookContext as cZ, type FarmIntegrationRouteInput as c_, type FarmBuildActivityPosition as ca, type FarmCrawlerPolicy as cb, type FarmCspConfig as cc, type FarmCspDirectiveValue as cd, type FarmCspDirectives as ce, type FarmCspOptions as cf, type FarmDeployConfig as cg, type FarmDeployTarget as ch, type FarmDevIndicatorsConfig as ci, type FarmDevtoolsConfig as cj, type FarmDocsConfigInput as ck, type FarmDocsNavigationConfig as cl, type FarmDocsResolvedRoot as cm, type FarmDocsRootInput as cn, type FarmDocsSidebarItem as co, type FarmDocsSocialImageConfig as cp, type FarmDocsSocialImageFonts as cq, type FarmDocsUserConfig as cr, type FarmIntegrationCategory as cs, type FarmIntegrationConfigContext as ct, type FarmIntegrationConfigDefinition as cu, type FarmIntegrationConfigInput as cv, type FarmIntegrationContributedPlugin as cw, type FarmIntegrationData as cx, type FarmIntegrationDocumentNavigation as cy, type FarmIntegrationEndpointValue as cz, resolveDeployConfig as d, type FarmRouteRuleRenderMode as d$, type FarmIntegrationRouteInputSource as d0, type FarmIntegrationRouteMethod as d1, type FarmIntegrationRouteMiddleware as d2, type FarmIntegrationRouteParamValue as d3, type FarmIntegrationRouteParams as d4, type FarmIntegrationRouteStorageArgs as d5, type FarmIntegrationRoutesFactory as d6, type FarmIntegrationRoutesFactoryContext as d7, type FarmIntegrationSchema as d8, type FarmIntegrationSchemaConstraint as d9, type FarmMCPResourceContent as dA, type FarmMCPResourceContext as dB, type FarmMCPResourceListing as dC, type FarmMCPServer as dD, type FarmMCPServerFunction as dE, type FarmMCPStandaloneTool as dF, type FarmMCPTool as dG, type FarmMCPToolDefinition as dH, type FarmMarkdownMirrorTarget as dI, type FarmMarkdownResolvedRoute as dJ, type FarmMarkdownRouteInput as dK, type FarmMarkdownUserConfig as dL, type FarmPageFormAction as dM, type FarmPageFormField as dN, type FarmPageFormOption as dO, type FarmPageFormSubmit as dP, type FarmPerformanceConfig as dQ, type FarmPluginFactory as dR, FarmPluginOptionsError as dS, type FarmPluginOptionsIssue as dT, type FarmPluginOptionsSchema as dU, type FarmPreloadMode as dV, type FarmPreloadUserConfig as dW, type FarmRouteRenderingMode as dX, type FarmRouteRule as dY, type FarmRouteRuleCors as dZ, type FarmRouteRuleRedirect as d_, type FarmIntegrationSchemaField as da, type FarmIntegrationSchemaFieldType as db, type FarmIntegrationSchemaModel as dc, type FarmIntegrationSchemaModelExtension as dd, type FarmIntegrationSchemaModelOverride as de, type FarmIntegrationSchemaReference as df, type FarmIntegrationSession as dg, type FarmIntegrationSlot as dh, type FarmIntegrationStandardValidationResult as di, type FarmIntegrationValidationErrorLike as dj, type FarmIntegrationValidationIssue as dk, type FarmIntegrationValidationPathSegment as dl, type FarmIntegrationValidationResult as dm, type FarmIntegrationsUserConfig as dn, type FarmLayerConfig as dp, type FarmMCPAuthorization as dq, type FarmMCPAuthorizeContext as dr, type FarmMCPConfig as ds, type FarmMCPEndpoint as dt, type FarmMCPEndpointTool as du, type FarmMCPExecuteContext as dv, type FarmMCPOAuthConfig as dw, type FarmMCPPrompt as dx, type FarmMCPPromptMessage as dy, type FarmMCPResource as dz, resolveDeployOutputPath as e, htmlToMarkdown as e$, type FarmRouteRules as e0, type FarmRouteRuntimeEntryKind as e1, type FarmRouteRuntimeManifest as e2, type FarmRouteRuntimeManifestEntry as e3, type FarmSecurityConfig as e4, type FarmServerComponentsConfig as e5, type FarmServerComponentsOptions as e6, type FarmTypedIntegrationRoute as e7, type I18nConfig as e8, type ImageConfig as e9, createFarmRouteRuntimeKey as eA, createIntegrationOrm as eB, createIntegrationRoute as eC, createMarkdownMirrorResponse as eD, defineIntegration as eE, defineIntegrationSchema as eF, describeIntegrationOriginRejection as eG, dispatchIntegrationRequest as eH, dispatchIntegrationRequests as eI, extractFarmPageActions as eJ, farmAcceptQuality as eK, farmIntegrationSchemaToOrmSchema as eL, forwardIntegrationSetCookies as eM, generateFarmDevIndicatorsClientRuntime as eN, getFarmAPIBaseURL as eO, getFarmIntegrationPluginOwner as eP, getFarmIntegrationPluginServerRuntime as eQ, getFarmMarkdownAlternatePath as eR, getFarmMarkdownMirrorPath as eS, getFarmRouteRuntimeConfig as eT, getIntegrationDocumentNavigationMatchers as eU, getIntegrationProviders as eV, getRegisteredIntegrationAPIManifest as eW, getRegisteredIntegrationRuntime as eX, getRegisteredIntegrationSchemas as eY, getRegisteredIntegrations as eZ, hasFarmRouteRuntimeControls as e_, type InferFarmIntegrationOrmClient as ea, type InferFarmIntegrationOrmField as eb, type InferFarmIntegrationOrmFields as ec, type InferFarmIntegrationOrmSchema as ed, type InferPluginOptionsInput as ee, type InferPluginOptionsOutput as ef, type IntegrationOriginPolicy as eg, type IntegrationOriginRejection as eh, type IntegrationOriginResult as ei, type IntegrationOrmModelNames as ej, MetadataRoute as ek, type MetadataRouteContext as el, type MiddlewareConfig as em, type RedirectConfig as en, type ResolveMarkdownMirrorTargetOptions as eo, type ResolvedFarmCspConfig as ep, type ResolvedFarmMCPConfig as eq, type ResolvedFarmPreloadConfig as er, type RewriteConfig as es, _getFarmMarkdownPageCheckToken as et, _getFarmMarkdownPath as eu, _isFarmMarkdownPageCheck as ev, _readFarmRenderedHtml as ew, _resolveFarmMarkdownIndexAlias as ex, applyMarkdownNegotiationHeaders as ey, compareFarmRouteRuleSpecificity as ez, farmRouteRuleMatches as f, integrationMiddlewareMayHandlePath as f0, integrationRoute as f1, isFarmIntegration as f2, isFarmIntegrationProviderComponentReference as f3, isFarmMarkdownMirrorExposed as f4, matchIntegrationRoute as f5, matchRegisteredIntegrationRoute as f6, matchesFarmMarkdownRoutePattern as f7, nitroRouteRulesBelowBasePath as f8, normalizeFarmAPIBasePath as f9, applyFarmCspNonceToResponse as fA, collectFarmLlmsTxtPages as fB, createFarmAgentRobots as fC, createFarmCspNonce as fD, createFarmDefaultLlmsTxt as fE, createFarmDefaultSitemap as fF, createFarmLlmsFullRenderer as fG, createFarmLlmsMarkdownReader as fH, createFarmMetadataRouteResponse as fI, hasFarmHtmlPreloadToken as fJ, isFarmPageNoIndex as fK, manageFarmDocumentPreloads as fL, manageFarmHtmlPreloads as fM, manageFarmLinkHeaderPreloads as fN, readFarmLlmsMarkdownFrom as fO, renderFarmLlmsFullTxt as fP, reportFarmPreloadWarnings as fQ, resolveFarmAgentCrawlers as fR, resolveFarmAgentOrigin as fS, resolveFarmAgentSitemap as fT, resolveFarmLlmsTxtConfig as fU, resolveFarmSecurityConfig as fV, stampFarmCspNonce as fW, normalizeFarmAPIConfig as fa, normalizeFarmRouteRuntimeConfig as fb, normalizeRouteRules as fc, providerSupportsIslands as fd, requestAcceptsMarkdown as fe, resolveFarmAPIConfig as ff, resolveFarmAPIRequestURL as fg, resolveFarmDevIndicatorsConfig as fh, resolveIntegrationAllowedOrigins as fi, resolveIntegrationOrmRuntimeClient as fj, resolveIntegrationPlugins as fk, resolveMarkdownConfig as fl, resolveMarkdownMirrorTarget as fm, resolveMigrationsConfig as fn, resolveRouteRuleCorsPreflightHeaders as fo, routeRulesToHeaders as fp, routeRulesToNitroRouteRules as fq, routeRulesToRedirects as fr, validateIntegrationRequestOrigin as fs, type FarmLlmsTxtLink as ft, type FarmRegisteredMCPServer as fu, type FarmAgentSitemapUserConfig as fv, type FarmLlmsTxtUserConfig as fw, type ResolvedFarmAgentCrawlers as fx, type ResolvedFarmAgentSitemap as fy, type ResolvedFarmLlmsTxtConfig as fz, getDeployTargetForPreset as g, resolveFarmRouteRuleRuntimeConfig as h, resolveFarmRouteRuntimeConfig as i, type FarmRouteRuntimeConfig as j, type FarmMdxComponents as k, loadConfig as l, mergeFarmRouteRuntimeConfigs as m, normalizeDeployTarget as n, type FarmMdxResolvedConfig as o, type RouteModule as p, type FarmMarkdownRoutePathname as q, resolveConfig as r, FARM_MARKDOWN_CONTENT_TYPE as s, createFarmMarkdownErrorBody as t, farmRequestWantsMarkdown as u, type FarmMdxComponent as v, type FarmMdxUserConfig as w, resolveFarmMdxComponentsModulePath as x, resolveMdxConfig as y, type RouteSegment as z };