@farm.js/core 0.1.34 → 0.1.35

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 (261) hide show
  1. package/dist/agent-runtime.cjs +3 -3
  2. package/dist/agent-runtime.d.mts +4 -5
  3. package/dist/agent-runtime.d.ts +4 -5
  4. package/dist/agent-runtime.mjs +2 -2
  5. package/dist/api/route-manager.cjs +5 -5
  6. package/dist/api/route-manager.d.mts +6 -7
  7. package/dist/api/route-manager.d.ts +6 -7
  8. package/dist/api/route-manager.mjs +4 -4
  9. package/dist/api/runtime.cjs +6 -4
  10. package/dist/api/runtime.d.mts +4 -5
  11. package/dist/api/runtime.d.ts +4 -5
  12. package/dist/api/runtime.mjs +6 -4
  13. package/dist/api.cjs +6 -6
  14. package/dist/api.d.mts +7 -8
  15. package/dist/api.d.ts +7 -8
  16. package/dist/api.mjs +5 -5
  17. package/dist/{app-DgotYGbq.d.ts → app-BXB3JZYc.d.ts} +38 -12
  18. package/dist/{app-q4rmZlXK.d.mts → app-D_j9AAVL.d.mts} +38 -12
  19. package/dist/app-markdown.cjs +5 -5
  20. package/dist/app-markdown.d.mts +5 -6
  21. package/dist/app-markdown.d.ts +5 -6
  22. package/dist/app-markdown.mjs +4 -4
  23. package/dist/{chunk-LMJ7VRHZ.mjs → chunk-22LTEMGQ.mjs} +1 -1
  24. package/dist/{chunk-AQZFOP7S.mjs → chunk-2G2NNLE2.mjs} +1 -1
  25. package/dist/{chunk-QJ3J6MZT.cjs → chunk-3BHT4WMP.cjs} +2 -2
  26. package/dist/{chunk-X242HVD5.mjs → chunk-3PXS2MHU.mjs} +1 -1
  27. package/dist/{chunk-A5FGU2WU.cjs → chunk-3UH7MRCP.cjs} +19 -23
  28. package/dist/{chunk-AGC75XAE.mjs → chunk-4JHOT46A.mjs} +1 -1
  29. package/dist/{chunk-XV5DJTBX.mjs → chunk-4KU5Q7C2.mjs} +424 -230
  30. package/dist/{chunk-TA5G2HWD.cjs → chunk-4MMGO7YW.cjs} +21 -21
  31. package/dist/{chunk-7BT4H4P7.cjs → chunk-62XKI4Z3.cjs} +2 -2
  32. package/dist/{chunk-ZKP7C2B6.mjs → chunk-6DU6UFUE.mjs} +12 -11
  33. package/dist/{chunk-GOABMOX3.mjs → chunk-6ETPZTJI.mjs} +366 -4
  34. package/dist/{chunk-7Y6ZNFPX.mjs → chunk-6TJOML4E.mjs} +13 -3
  35. package/dist/{chunk-3ATMYLLJ.mjs → chunk-6WCPV6G2.mjs} +1 -1
  36. package/dist/{chunk-BTAG7LI7.cjs → chunk-73MC7ZL6.cjs} +2 -2
  37. package/dist/chunk-75RZHGLS.cjs +135 -0
  38. package/dist/{chunk-VKNHTSAP.cjs → chunk-7GLPRTTF.cjs} +2 -2
  39. package/dist/{chunk-7M52YUMY.cjs → chunk-7L5V3KQO.cjs} +2 -2
  40. package/dist/{chunk-LI2LMOLR.mjs → chunk-C35ZBVRD.mjs} +12 -3
  41. package/dist/{chunk-YQVSHTMR.mjs → chunk-CP6X4AEU.mjs} +1 -1
  42. package/dist/{chunk-QZCT2CQ4.mjs → chunk-CXEN47J3.mjs} +64 -2
  43. package/dist/{chunk-ATK2R4CH.cjs → chunk-D227TIEN.cjs} +14 -4
  44. package/dist/{chunk-ROUTX2E5.cjs → chunk-DBNKI4NF.cjs} +12 -3
  45. package/dist/{chunk-UX5S4JEO.cjs → chunk-EFCQPQMG.cjs} +3 -3
  46. package/dist/{chunk-K3F2E6GS.cjs → chunk-EJQT6KZN.cjs} +2 -2
  47. package/dist/{chunk-3LUF2PE2.cjs → chunk-EK4QAEFZ.cjs} +67 -5
  48. package/dist/{chunk-VVBO3QH7.mjs → chunk-ENLZ4R3Y.mjs} +10 -1
  49. package/dist/{chunk-XXJU7FCC.cjs → chunk-EUV4YR3V.cjs} +2 -2
  50. package/dist/{chunk-WNNYOOIB.mjs → chunk-F6Z3Y5KL.mjs} +1 -1
  51. package/dist/{chunk-PQDFUSXD.cjs → chunk-F7JZENPF.cjs} +33 -32
  52. package/dist/{chunk-TDFPACVX.cjs → chunk-FTFYRMQQ.cjs} +18 -18
  53. package/dist/{chunk-657WJNRY.mjs → chunk-G5RT7EXW.mjs} +1 -1
  54. package/dist/{chunk-MOKLYNHV.cjs → chunk-GFHLGIYC.cjs} +6 -6
  55. package/dist/{chunk-AWC4VUZL.cjs → chunk-GQ3Z3IZI.cjs} +14 -14
  56. package/dist/{chunk-75WGQVQA.cjs → chunk-HITLGIAO.cjs} +10 -1
  57. package/dist/{chunk-GNSDTTWZ.mjs → chunk-HMIJDL7S.mjs} +1 -1
  58. package/dist/{chunk-PXKIEXZD.mjs → chunk-HUMR6LSU.mjs} +1 -1
  59. package/dist/{chunk-SJVKK4JE.cjs → chunk-ICUQICNC.cjs} +912 -718
  60. package/dist/{chunk-P64MIF5B.cjs → chunk-IPXLADVO.cjs} +387 -25
  61. package/dist/{chunk-KROWKCUH.cjs → chunk-JGLC4TO3.cjs} +8 -1
  62. package/dist/{chunk-2NQQ5H5G.cjs → chunk-M7MKQXAF.cjs} +2 -1
  63. package/dist/chunk-NRDBW4MP.mjs +45 -0
  64. package/dist/chunk-OFZUJMCU.mjs +601 -0
  65. package/dist/{chunk-VCCUOMQN.mjs → chunk-OKZUAXHF.mjs} +1 -1
  66. package/dist/{chunk-EM6SBQKM.cjs → chunk-OMVAU7NT.cjs} +27 -2
  67. package/dist/{chunk-O27L4YAA.mjs → chunk-PDOCJ6RY.mjs} +2 -2
  68. package/dist/{chunk-36MK5YCW.cjs → chunk-PFQKNERH.cjs} +346 -206
  69. package/dist/{chunk-HR5KPHC2.mjs → chunk-Q3VLETLE.mjs} +1 -1
  70. package/dist/{chunk-LR5QSC2P.mjs → chunk-QAU5JD57.mjs} +211 -71
  71. package/dist/{chunk-LHODW25H.mjs → chunk-QORUJDIV.mjs} +2 -2
  72. package/dist/{chunk-UBO4SGH4.mjs → chunk-RHAZ22ZN.mjs} +2 -1
  73. package/dist/{chunk-ZHPHJPQP.cjs → chunk-RU3M2FIK.cjs} +18 -14
  74. package/dist/{chunk-JDPAKVS4.mjs → chunk-SAZVVAJH.mjs} +3 -3
  75. package/dist/{chunk-6VVL3MHY.mjs → chunk-SC2WYWPF.mjs} +1 -1
  76. package/dist/{chunk-QCFFHV5H.mjs → chunk-SMHH4VDG.mjs} +1 -1
  77. package/dist/{chunk-U4PTAHW3.mjs → chunk-SOMHP6GF.mjs} +7 -11
  78. package/dist/{chunk-VHANUNEG.mjs → chunk-UAORZ7QA.mjs} +2 -2
  79. package/dist/{chunk-NGVORZVZ.mjs → chunk-UJD4PHYB.mjs} +15 -11
  80. package/dist/{chunk-U74I55WB.cjs → chunk-ULAWS2PA.cjs} +13 -3
  81. package/dist/{chunk-MPEYMSCF.cjs → chunk-VFQT3LAO.cjs} +5 -5
  82. package/dist/{chunk-Z2YLTERK.cjs → chunk-VZJR7UTG.cjs} +6 -6
  83. package/dist/chunk-WWFTAUFG.cjs +45 -0
  84. package/dist/{chunk-ZUSJDQ2Q.mjs → chunk-WWIKMBRN.mjs} +1 -1
  85. package/dist/{chunk-QGYRXFU2.cjs → chunk-X6W5FFH6.cjs} +8 -8
  86. package/dist/{chunk-MIDIZJZC.cjs → chunk-XBML5KMG.cjs} +8 -8
  87. package/dist/{chunk-G26MUMKL.cjs → chunk-XCACDAZZ.cjs} +4 -4
  88. package/dist/{chunk-CLJYVZAD.mjs → chunk-XCMCS4DA.mjs} +11 -1
  89. package/dist/{chunk-XF7Q24PF.mjs → chunk-Y7RKTKYI.mjs} +25 -0
  90. package/dist/{chunk-ODBZYBAB.cjs → chunk-YC6V7PWE.cjs} +1 -1
  91. package/dist/{chunk-F6OHXPWR.mjs → chunk-YFILVET3.mjs} +8 -1
  92. package/dist/{chunk-DZ4DTRJ5.cjs → chunk-YKX5BK66.cjs} +7 -7
  93. package/dist/chunk-YSLWRWWP.cjs +601 -0
  94. package/dist/{chunk-3VSKDFAT.mjs → chunk-YULD7ICZ.mjs} +1 -1
  95. package/dist/chunk-ZLAT2CWY.mjs +135 -0
  96. package/dist/{chunk-T5CERMEH.cjs → chunk-ZXGAFZDO.cjs} +2 -2
  97. package/dist/{client-plugins-CLObcuCq.d.mts → client-plugins-CvIslxWi.d.mts} +207 -7
  98. package/dist/{client-plugins-DZjHC4Mi.d.ts → client-plugins-HIyulDym.d.ts} +207 -7
  99. package/dist/client-plugins.d.mts +4 -5
  100. package/dist/client-plugins.d.ts +4 -5
  101. package/dist/client.cjs +5 -5
  102. package/dist/client.d.mts +8 -9
  103. package/dist/client.d.ts +8 -9
  104. package/dist/client.mjs +4 -4
  105. package/dist/config.d.mts +4 -5
  106. package/dist/config.d.ts +4 -5
  107. package/dist/{devtools-HU6Y2MNV.cjs → devtools-EAUY43BS.cjs} +9 -9
  108. package/dist/{devtools-RNXCTS4R.mjs → devtools-EE5RIBTH.mjs} +8 -8
  109. package/dist/docs.cjs +12 -12
  110. package/dist/docs.d.mts +41 -4
  111. package/dist/docs.d.ts +41 -4
  112. package/dist/docs.mjs +11 -11
  113. package/dist/i18n/client.d.mts +2 -2
  114. package/dist/i18n/client.d.ts +2 -2
  115. package/dist/i18n/index.d.mts +3 -3
  116. package/dist/i18n/index.d.ts +3 -3
  117. package/dist/i18n/server.d.mts +5 -5
  118. package/dist/i18n/server.d.ts +5 -5
  119. package/dist/image/server.cjs +3 -3
  120. package/dist/image/server.mjs +2 -2
  121. package/dist/image/sharp.cjs +10 -10
  122. package/dist/image/sharp.mjs +2 -2
  123. package/dist/{index-a-8Z5kZU.d.mts → index-BJJfLxJo.d.mts} +2 -2
  124. package/dist/{index-BWVfxIsO.d.ts → index-CwoOP-MW.d.ts} +2 -2
  125. package/dist/index.cjs +38 -35
  126. package/dist/index.d.mts +19 -20
  127. package/dist/index.d.ts +19 -20
  128. package/dist/index.mjs +37 -34
  129. package/dist/integrations.cjs +3 -3
  130. package/dist/integrations.d.mts +4 -5
  131. package/dist/integrations.d.ts +4 -5
  132. package/dist/integrations.mjs +2 -2
  133. package/dist/internal/app-markdown-runtime.cjs +4 -4
  134. package/dist/internal/app-markdown-runtime.d.mts +5 -6
  135. package/dist/internal/app-markdown-runtime.d.ts +5 -6
  136. package/dist/internal/app-markdown-runtime.mjs +3 -3
  137. package/dist/internal/build-runtime.cjs +26 -26
  138. package/dist/internal/build-runtime.d.mts +6 -7
  139. package/dist/internal/build-runtime.d.ts +6 -7
  140. package/dist/internal/build-runtime.mjs +25 -25
  141. package/dist/internal/cli-runtime.cjs +13 -13
  142. package/dist/internal/cli-runtime.mjs +12 -12
  143. package/dist/internal/client-error-overlay.cjs +6 -6
  144. package/dist/internal/client-error-overlay.mjs +2 -2
  145. package/dist/internal/client-runtime.cjs +2 -2
  146. package/dist/internal/client-runtime.mjs +1 -1
  147. package/dist/internal/compression-runtime.d.mts +4 -5
  148. package/dist/internal/compression-runtime.d.ts +4 -5
  149. package/dist/internal/config-runtime.cjs +9 -9
  150. package/dist/internal/config-runtime.d.mts +5 -6
  151. package/dist/internal/config-runtime.d.ts +5 -6
  152. package/dist/internal/config-runtime.mjs +8 -8
  153. package/dist/internal/isolated-boundary.cjs +3 -2
  154. package/dist/internal/isolated-boundary.d.mts +1 -0
  155. package/dist/internal/isolated-boundary.d.ts +1 -0
  156. package/dist/internal/isolated-boundary.mjs +2 -1
  157. package/dist/internal/metadata-image-runtime.cjs +3 -3
  158. package/dist/internal/metadata-image-runtime.mjs +2 -2
  159. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  160. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  161. package/dist/internal/production-runtime.cjs +47 -23
  162. package/dist/internal/production-runtime.d.mts +58 -18
  163. package/dist/internal/production-runtime.d.ts +58 -18
  164. package/dist/internal/production-runtime.mjs +43 -19
  165. package/dist/internal/server-tree.cjs +12 -0
  166. package/dist/internal/server-tree.d.mts +27 -0
  167. package/dist/internal/server-tree.d.ts +27 -0
  168. package/dist/internal/server-tree.mjs +12 -0
  169. package/dist/markdown.cjs +3 -3
  170. package/dist/markdown.d.mts +4 -5
  171. package/dist/markdown.d.ts +4 -5
  172. package/dist/markdown.mjs +2 -2
  173. package/dist/{metadata-Cjs8JMRM.d.ts → metadata-BnLDsUOS.d.ts} +16 -2
  174. package/dist/{metadata-2HSU2i_w.d.mts → metadata-WGpBYcGn.d.mts} +16 -2
  175. package/dist/middleware.cjs +4 -4
  176. package/dist/middleware.d.mts +6 -7
  177. package/dist/middleware.d.ts +6 -7
  178. package/dist/middleware.mjs +3 -3
  179. package/dist/navigation.cjs +5 -5
  180. package/dist/navigation.d.mts +7 -8
  181. package/dist/navigation.d.ts +7 -8
  182. package/dist/navigation.mjs +4 -4
  183. package/dist/{nitro-4XGPNIK4.mjs → nitro-MXRDCXWZ.mjs} +2 -2
  184. package/dist/{nitro-HSAQFXSS.cjs → nitro-OVPLKPE2.cjs} +3 -3
  185. package/dist/{observability-BupkiN0m.d.mts → observability-CoXunYhS.d.mts} +4 -3
  186. package/dist/{observability-BupkiN0m.d.ts → observability-CoXunYhS.d.ts} +4 -3
  187. package/dist/observability.d.mts +1 -1
  188. package/dist/observability.d.ts +1 -1
  189. package/dist/plugin.cjs +22 -22
  190. package/dist/plugin.d.mts +4 -5
  191. package/dist/plugin.d.ts +4 -5
  192. package/dist/plugin.mjs +21 -21
  193. package/dist/{production-runtime-CysZl3EV.d.mts → production-runtime-0sRnuYc-.d.mts} +4 -4
  194. package/dist/{production-runtime-BU5ETAK9.d.ts → production-runtime-Crq6CJ-2.d.ts} +4 -4
  195. package/dist/query/client.cjs +6 -6
  196. package/dist/query/client.mjs +2 -2
  197. package/dist/{render-plan-D72O1qm4.d.ts → render-plan-8ozZh2Qv.d.ts} +1 -1
  198. package/dist/{render-plan-CKr4ltOd.d.mts → render-plan-gs9GGPzw.d.mts} +1 -1
  199. package/dist/renderer/react/server.cjs +10 -4
  200. package/dist/renderer/react/server.d.mts +2 -1
  201. package/dist/renderer/react/server.d.ts +2 -1
  202. package/dist/renderer/react/server.mjs +7 -1
  203. package/dist/renderer-client.cjs +5 -5
  204. package/dist/renderer-client.d.mts +6 -7
  205. package/dist/renderer-client.d.ts +6 -7
  206. package/dist/renderer-client.mjs +2 -2
  207. package/dist/renderer.d.mts +2 -0
  208. package/dist/renderer.d.ts +2 -0
  209. package/dist/{request-DbyOYI2j.d.ts → request-B5G8rLBH.d.ts} +1 -1
  210. package/dist/{request-Be83WafN.d.mts → request-fkhiynXe.d.mts} +1 -1
  211. package/dist/request.d.mts +5 -6
  212. package/dist/request.d.ts +5 -6
  213. package/dist/{resolver-PPEeiJ6M.d.ts → resolver-DadfRL6F.d.ts} +1 -1
  214. package/dist/{resolver-DhW0CqZN.d.mts → resolver-khasx3fU.d.mts} +1 -1
  215. package/dist/{route-rendering-BG56SzvJ.d.mts → route-rendering-CLnS7AZj.d.mts} +1 -1
  216. package/dist/{route-rendering-CtVMpV-k.d.ts → route-rendering-lS5nUMua.d.ts} +1 -1
  217. package/dist/{router-D94-SDlW.d.ts → router-4iuiYnOW.d.ts} +1 -1
  218. package/dist/{router-ALUvm8gC.d.mts → router-ifU8Dui1.d.mts} +1 -1
  219. package/dist/routes.d.mts +4 -5
  220. package/dist/routes.d.ts +4 -5
  221. package/dist/{runtime-BirxPwbZ.d.ts → runtime-BgDQzBiu.d.ts} +2 -2
  222. package/dist/{runtime-AOJge4vQ.d.mts → runtime-CV2UCV-5.d.mts} +2 -2
  223. package/dist/server-action-security.cjs +3 -3
  224. package/dist/server-action-security.mjs +2 -2
  225. package/dist/server-fn.cjs +4 -4
  226. package/dist/server-fn.mjs +3 -3
  227. package/dist/server-plugins.d.mts +5 -6
  228. package/dist/server-plugins.d.ts +5 -6
  229. package/dist/server-query.cjs +5 -5
  230. package/dist/server-query.mjs +4 -4
  231. package/dist/server.cjs +41 -41
  232. package/dist/server.d.mts +13 -14
  233. package/dist/server.d.ts +13 -14
  234. package/dist/server.mjs +24 -24
  235. package/dist/{spa-router-DbxNRKOB.d.mts → spa-router-Bq7VCOwx.d.mts} +3 -3
  236. package/dist/{spa-router-CxK3USIz.d.ts → spa-router-DaJk5Re4.d.ts} +3 -3
  237. package/dist/testing.cjs +7 -7
  238. package/dist/testing.d.mts +4 -5
  239. package/dist/testing.d.ts +4 -5
  240. package/dist/testing.mjs +5 -5
  241. package/dist/{types-Z0aotQ8w.d.mts → types-CnH8DOqo.d.mts} +1 -1
  242. package/dist/{types-Z0aotQ8w.d.ts → types-CnH8DOqo.d.ts} +1 -1
  243. package/dist/{utils-311Y8eoK.d.ts → utils-BXLmFsVR.d.ts} +1 -1
  244. package/dist/{utils-4wVRcpOw.d.mts → utils-XJn0c9bj.d.mts} +1 -1
  245. package/dist/version.cjs +2 -2
  246. package/dist/version.mjs +1 -1
  247. package/dist/vite.cjs +22 -22
  248. package/dist/vite.d.mts +4 -5
  249. package/dist/vite.d.ts +4 -5
  250. package/dist/vite.mjs +21 -21
  251. package/dist/{workflows-CR9ex-gz.d.ts → workflows-jZ4BcdoZ.d.mts} +1 -1
  252. package/dist/{workflows-CR9ex-gz.d.mts → workflows-jZ4BcdoZ.d.ts} +1 -1
  253. package/dist/workflows.cjs +3 -3
  254. package/dist/workflows.d.mts +1 -1
  255. package/dist/workflows.d.ts +1 -1
  256. package/dist/workflows.mjs +2 -2
  257. package/package.json +9 -1
  258. package/dist/chunk-M64YUMA4.cjs +0 -58
  259. package/dist/chunk-QLQ32WC4.mjs +0 -58
  260. package/dist/types-DFbjpjXX.d.mts +0 -105
  261. package/dist/types-DFbjpjXX.d.ts +0 -105
@@ -1,16 +1,15 @@
1
- import { J as FarmConfig, P as ParsedRoute, aF as ResolvedFarmRouteRuntimeConfig, aG as ApplicationMetadataRouteKind, s as RouteModule, ae as LayoutModule, aj as SSGCollectionResult, e as FarmRequest, f as FarmResponse, aH as ResolvedFarmAPIConfig, aI as FarmMarkdownResolvedConfig, u as FarmMdxResolvedConfig, aJ as ResolvedFarmDevtoolsConfig, aK as ResolvedFarmDevIndicatorsConfig, aL as ResolvedFarmAuthConfig, aM as ResolvedFarmPerformanceConfig, aN as ResolvedFarmSecurityConfig } from './client-plugins-DZjHC4Mi.js';
2
- import { F as FarmDocsResolvedConfig } from './types-DFbjpjXX.js';
3
- import { F as FarmWorkflowsResolvedConfig } from './workflows-CR9ex-gz.js';
1
+ import { J as FarmConfig, P as ParsedRoute, aJ as ResolvedFarmRouteRuntimeConfig, aK as ApplicationMetadataRouteKind, s as RouteModule, ae as LayoutModule, al as SSGCollectionResult, e as FarmRequest, f as FarmResponse, aL as ResolvedFarmAPIConfig, aM as FarmDocsResolvedConfig, aN as FarmMarkdownResolvedConfig, u as FarmMdxResolvedConfig, aO as ResolvedFarmDevtoolsConfig, aP as ResolvedFarmDevIndicatorsConfig, aQ as ResolvedFarmAuthConfig, aR as ResolvedFarmPerformanceConfig, aS as ResolvedFarmSecurityConfig } from './client-plugins-HIyulDym.js';
2
+ import { F as FarmWorkflowsResolvedConfig } from './workflows-jZ4BcdoZ.js';
4
3
  import { FarmCronResolvedConfig } from './cron.js';
5
4
  import { R as ResolvedFarmImageConfig } from './image-config-Duob7wER.js';
6
5
  import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.js';
7
6
  import { ViteDevServer } from 'vite';
8
7
  import { F as FarmIslandStrategy } from './island-CfGru1MO.js';
9
- import { M as MetadataImageKind } from './metadata-Cjs8JMRM.js';
8
+ import { M as MetadataImageKind } from './metadata-BnLDsUOS.js';
10
9
  import { FarmServerRendererRuntime, FarmRenderer } from './renderer.js';
11
- import { F as FarmRouteRenderPlan } from './render-plan-D72O1qm4.js';
12
- import { R as ResolvedFarmI18nConfig } from './types-Z0aotQ8w.js';
13
- import { F as FarmI18nRuntime } from './runtime-BirxPwbZ.js';
10
+ import { F as FarmRouteRenderPlan } from './render-plan-8ozZh2Qv.js';
11
+ import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.js';
12
+ import { F as FarmI18nRuntime } from './runtime-BgDQzBiu.js';
14
13
  import { R as ResolvedFarmThemeConfig } from './types-DQnyD3VD.js';
15
14
 
16
15
  interface IsolatedClientBoundaryReference {
@@ -35,13 +34,25 @@ interface RouteEntry {
35
34
  route: ParsedRoute;
36
35
  modulePath: string;
37
36
  markdownSourcePath?: string;
37
+ /**
38
+ * A page's URL pattern. Layouts, loading and error boundaries use their app
39
+ * directory instead, route groups included (`/(auth)`), because a group adds
40
+ * no URL segment and two of them can share one URL.
41
+ */
38
42
  pattern: string;
43
+ /** A page's directory pattern, set only when it differs from `pattern` (route groups). */
44
+ directory?: string;
39
45
  source?: "file" | "programmatic";
40
46
  sourceRoot: string;
41
47
  }
42
48
  interface RouteSlotEntry extends RouteEntry {
43
49
  name: string;
44
50
  ownerPattern: string;
51
+ /**
52
+ * The owning layout's pattern when route groups make it differ from
53
+ * `ownerPattern` (a URL pattern); slots render into the layout with this pattern.
54
+ */
55
+ ownerDirectory?: string;
45
56
  interception: boolean;
46
57
  fallback: boolean;
47
58
  containerId: string;
@@ -49,6 +60,8 @@ interface RouteSlotEntry extends RouteEntry {
49
60
  interface MatchedRouteSlot {
50
61
  name: string;
51
62
  ownerPattern: string;
63
+ /** See `RouteSlotEntry.ownerDirectory`. */
64
+ ownerDirectory?: string;
52
65
  containerId: string;
53
66
  interception: boolean;
54
67
  fallback: boolean;
@@ -58,12 +71,16 @@ interface MatchedRouteSlot {
58
71
  interface FarmClientRouteManifest {
59
72
  routes: Array<{
60
73
  pattern: string;
74
+ /** The page's directory pattern when route groups make it differ from `pattern`. */
75
+ directory?: string;
61
76
  modulePath: string;
62
77
  shouldHydrate: boolean;
63
78
  isClientComponent: boolean;
64
79
  islandStrategy: FarmIslandStrategy | null;
65
80
  hasIsolatedClientBoundaries?: true;
66
81
  isolatedBoundaries?: IsolatedClientBoundaryReference[];
82
+ /** The async page renders as a server tree inside its hydrating layout's root. */
83
+ serverTree?: true;
67
84
  renderPlan: FarmRouteRenderPlan;
68
85
  suppressedAsyncHydration?: true;
69
86
  /** Why an async page's client components could not become islands. */
@@ -179,13 +196,16 @@ declare class RouteManager {
179
196
  params: Record<string, string>;
180
197
  } | null;
181
198
  /**
182
- * Return the nearest matching loading boundary for a pathname.
199
+ * Return the nearest matching loading boundary for a pathname. Pass the page
200
+ * `matchRoute` selected when it is known (`null` for none); otherwise the page is
201
+ * matched only if a boundary inside a route group needs it.
183
202
  */
184
- getMatchingLoading(pathname: string): RouteEntry | null;
203
+ getMatchingLoading(pathname: string, route?: RouteEntry | null): RouteEntry | null;
185
204
  /**
186
- * Return the nearest matching error boundary for a pathname.
205
+ * Return the nearest matching error boundary for a pathname. `route` works as it
206
+ * does for `getMatchingLoading`.
187
207
  */
188
- getMatchingError(pathname: string): RouteEntry | null;
208
+ getMatchingError(pathname: string, route?: RouteEntry | null): RouteEntry | null;
189
209
  matchMetadataImage(pathname: string): {
190
210
  image: MetadataImageEntry;
191
211
  params: Record<string, string>;
@@ -244,9 +264,11 @@ declare class RouteManager {
244
264
  private discoverProgrammaticRoutes;
245
265
  private loadProgrammaticRoutesModule;
246
266
  /**
247
- * Find all layouts that should wrap a given path
267
+ * Find all layouts that should wrap a given path. A layout inside a route group
268
+ * wraps only the pages in that group, so it needs the selected page.
248
269
  */
249
270
  private findMatchingLayouts;
271
+ private matchPageRoute;
250
272
  private findMatchingRouteSlots;
251
273
  private matchesRoutePrefix;
252
274
  private findNearestBoundary;
@@ -287,6 +309,8 @@ interface FarmNavigationFragmentLayout {
287
309
  interface FarmNavigationFragmentSlot {
288
310
  name: string;
289
311
  ownerPattern: string;
312
+ /** The owning layout's pattern when route groups make it differ from `ownerPattern`. */
313
+ ownerDirectory?: string;
290
314
  containerId: string;
291
315
  module: {
292
316
  default?: any;
@@ -305,6 +329,8 @@ interface FarmNavigationFragmentInput {
305
329
  pageShouldHydrate: boolean;
306
330
  layoutShouldHydrate: boolean;
307
331
  islandStrategy?: FarmIslandStrategy | null;
332
+ /** The page renders as a server tree inside its hydrating layout's root. */
333
+ serverTree?: boolean;
308
334
  }
309
335
  declare class ServerRenderer {
310
336
  private config;
@@ -1,16 +1,15 @@
1
- import { J as FarmConfig, P as ParsedRoute, aF as ResolvedFarmRouteRuntimeConfig, aG as ApplicationMetadataRouteKind, s as RouteModule, ae as LayoutModule, aj as SSGCollectionResult, e as FarmRequest, f as FarmResponse, aH as ResolvedFarmAPIConfig, aI as FarmMarkdownResolvedConfig, u as FarmMdxResolvedConfig, aJ as ResolvedFarmDevtoolsConfig, aK as ResolvedFarmDevIndicatorsConfig, aL as ResolvedFarmAuthConfig, aM as ResolvedFarmPerformanceConfig, aN as ResolvedFarmSecurityConfig } from './client-plugins-CLObcuCq.mjs';
2
- import { F as FarmDocsResolvedConfig } from './types-DFbjpjXX.mjs';
3
- import { F as FarmWorkflowsResolvedConfig } from './workflows-CR9ex-gz.mjs';
1
+ import { J as FarmConfig, P as ParsedRoute, aJ as ResolvedFarmRouteRuntimeConfig, aK as ApplicationMetadataRouteKind, s as RouteModule, ae as LayoutModule, al as SSGCollectionResult, e as FarmRequest, f as FarmResponse, aL as ResolvedFarmAPIConfig, aM as FarmDocsResolvedConfig, aN as FarmMarkdownResolvedConfig, u as FarmMdxResolvedConfig, aO as ResolvedFarmDevtoolsConfig, aP as ResolvedFarmDevIndicatorsConfig, aQ as ResolvedFarmAuthConfig, aR as ResolvedFarmPerformanceConfig, aS as ResolvedFarmSecurityConfig } from './client-plugins-CvIslxWi.mjs';
2
+ import { F as FarmWorkflowsResolvedConfig } from './workflows-jZ4BcdoZ.mjs';
4
3
  import { FarmCronResolvedConfig } from './cron.mjs';
5
4
  import { R as ResolvedFarmImageConfig } from './image-config-Duob7wER.mjs';
6
5
  import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.mjs';
7
6
  import { ViteDevServer } from 'vite';
8
7
  import { F as FarmIslandStrategy } from './island-CfGru1MO.mjs';
9
- import { M as MetadataImageKind } from './metadata-2HSU2i_w.mjs';
8
+ import { M as MetadataImageKind } from './metadata-WGpBYcGn.mjs';
10
9
  import { FarmServerRendererRuntime, FarmRenderer } from './renderer.mjs';
11
- import { F as FarmRouteRenderPlan } from './render-plan-CKr4ltOd.mjs';
12
- import { R as ResolvedFarmI18nConfig } from './types-Z0aotQ8w.mjs';
13
- import { F as FarmI18nRuntime } from './runtime-AOJge4vQ.mjs';
10
+ import { F as FarmRouteRenderPlan } from './render-plan-gs9GGPzw.mjs';
11
+ import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.mjs';
12
+ import { F as FarmI18nRuntime } from './runtime-CV2UCV-5.mjs';
14
13
  import { R as ResolvedFarmThemeConfig } from './types-DQnyD3VD.mjs';
15
14
 
16
15
  interface IsolatedClientBoundaryReference {
@@ -35,13 +34,25 @@ interface RouteEntry {
35
34
  route: ParsedRoute;
36
35
  modulePath: string;
37
36
  markdownSourcePath?: string;
37
+ /**
38
+ * A page's URL pattern. Layouts, loading and error boundaries use their app
39
+ * directory instead, route groups included (`/(auth)`), because a group adds
40
+ * no URL segment and two of them can share one URL.
41
+ */
38
42
  pattern: string;
43
+ /** A page's directory pattern, set only when it differs from `pattern` (route groups). */
44
+ directory?: string;
39
45
  source?: "file" | "programmatic";
40
46
  sourceRoot: string;
41
47
  }
42
48
  interface RouteSlotEntry extends RouteEntry {
43
49
  name: string;
44
50
  ownerPattern: string;
51
+ /**
52
+ * The owning layout's pattern when route groups make it differ from
53
+ * `ownerPattern` (a URL pattern); slots render into the layout with this pattern.
54
+ */
55
+ ownerDirectory?: string;
45
56
  interception: boolean;
46
57
  fallback: boolean;
47
58
  containerId: string;
@@ -49,6 +60,8 @@ interface RouteSlotEntry extends RouteEntry {
49
60
  interface MatchedRouteSlot {
50
61
  name: string;
51
62
  ownerPattern: string;
63
+ /** See `RouteSlotEntry.ownerDirectory`. */
64
+ ownerDirectory?: string;
52
65
  containerId: string;
53
66
  interception: boolean;
54
67
  fallback: boolean;
@@ -58,12 +71,16 @@ interface MatchedRouteSlot {
58
71
  interface FarmClientRouteManifest {
59
72
  routes: Array<{
60
73
  pattern: string;
74
+ /** The page's directory pattern when route groups make it differ from `pattern`. */
75
+ directory?: string;
61
76
  modulePath: string;
62
77
  shouldHydrate: boolean;
63
78
  isClientComponent: boolean;
64
79
  islandStrategy: FarmIslandStrategy | null;
65
80
  hasIsolatedClientBoundaries?: true;
66
81
  isolatedBoundaries?: IsolatedClientBoundaryReference[];
82
+ /** The async page renders as a server tree inside its hydrating layout's root. */
83
+ serverTree?: true;
67
84
  renderPlan: FarmRouteRenderPlan;
68
85
  suppressedAsyncHydration?: true;
69
86
  /** Why an async page's client components could not become islands. */
@@ -179,13 +196,16 @@ declare class RouteManager {
179
196
  params: Record<string, string>;
180
197
  } | null;
181
198
  /**
182
- * Return the nearest matching loading boundary for a pathname.
199
+ * Return the nearest matching loading boundary for a pathname. Pass the page
200
+ * `matchRoute` selected when it is known (`null` for none); otherwise the page is
201
+ * matched only if a boundary inside a route group needs it.
183
202
  */
184
- getMatchingLoading(pathname: string): RouteEntry | null;
203
+ getMatchingLoading(pathname: string, route?: RouteEntry | null): RouteEntry | null;
185
204
  /**
186
- * Return the nearest matching error boundary for a pathname.
205
+ * Return the nearest matching error boundary for a pathname. `route` works as it
206
+ * does for `getMatchingLoading`.
187
207
  */
188
- getMatchingError(pathname: string): RouteEntry | null;
208
+ getMatchingError(pathname: string, route?: RouteEntry | null): RouteEntry | null;
189
209
  matchMetadataImage(pathname: string): {
190
210
  image: MetadataImageEntry;
191
211
  params: Record<string, string>;
@@ -244,9 +264,11 @@ declare class RouteManager {
244
264
  private discoverProgrammaticRoutes;
245
265
  private loadProgrammaticRoutesModule;
246
266
  /**
247
- * Find all layouts that should wrap a given path
267
+ * Find all layouts that should wrap a given path. A layout inside a route group
268
+ * wraps only the pages in that group, so it needs the selected page.
248
269
  */
249
270
  private findMatchingLayouts;
271
+ private matchPageRoute;
250
272
  private findMatchingRouteSlots;
251
273
  private matchesRoutePrefix;
252
274
  private findNearestBoundary;
@@ -287,6 +309,8 @@ interface FarmNavigationFragmentLayout {
287
309
  interface FarmNavigationFragmentSlot {
288
310
  name: string;
289
311
  ownerPattern: string;
312
+ /** The owning layout's pattern when route groups make it differ from `ownerPattern`. */
313
+ ownerDirectory?: string;
290
314
  containerId: string;
291
315
  module: {
292
316
  default?: any;
@@ -305,6 +329,8 @@ interface FarmNavigationFragmentInput {
305
329
  pageShouldHydrate: boolean;
306
330
  layoutShouldHydrate: boolean;
307
331
  islandStrategy?: FarmIslandStrategy | null;
332
+ /** The page renders as a server tree inside its hydrating layout's root. */
333
+ serverTree?: boolean;
308
334
  }
309
335
  declare class ServerRenderer {
310
336
  private config;
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkBTAG7LI7cjs = require('./chunk-BTAG7LI7.cjs');
4
+ var _chunk73MC7ZL6cjs = require('./chunk-73MC7ZL6.cjs');
5
5
 
6
6
 
7
7
 
@@ -11,7 +11,7 @@ var _chunkBTAG7LI7cjs = require('./chunk-BTAG7LI7.cjs');
11
11
 
12
12
 
13
13
 
14
- var _chunkUX5S4JEOcjs = require('./chunk-UX5S4JEO.cjs');
14
+ var _chunkEFCQPQMGcjs = require('./chunk-EFCQPQMG.cjs');
15
15
 
16
16
 
17
17
 
@@ -20,9 +20,9 @@ var _chunkOHY2ZWUGcjs = require('./chunk-OHY2ZWUG.cjs');
20
20
 
21
21
 
22
22
 
23
- var _chunkXXJU7FCCcjs = require('./chunk-XXJU7FCC.cjs');
23
+ var _chunkEUV4YR3Vcjs = require('./chunk-EUV4YR3V.cjs');
24
24
  require('./chunk-J63ZH5OQ.cjs');
25
- require('./chunk-M64YUMA4.cjs');
25
+ require('./chunk-75RZHGLS.cjs');
26
26
  require('./chunk-KNBBQHO2.cjs');
27
27
  require('./chunk-E3UK5IIB.cjs');
28
28
  require('./chunk-G7HXGLEC.cjs');
@@ -47,4 +47,4 @@ require('./chunk-S3JO3N4H.cjs');
47
47
 
48
48
 
49
49
 
50
- exports.FARM_MARKDOWN_CONTENT_TYPE = _chunkXXJU7FCCcjs.FARM_MARKDOWN_CONTENT_TYPE; exports.createFarmMarkdownErrorBody = _chunkXXJU7FCCcjs.createFarmMarkdownErrorBody; exports.createFarmMarkdownRouteModule = _chunkUX5S4JEOcjs.createFarmMarkdownRouteModule; exports.createFarmMarkdownRouteModuleFromFile = _chunkBTAG7LI7cjs.createFarmMarkdownRouteModuleFromFile; exports.createFarmMarkdownSourceResponse = _chunkUX5S4JEOcjs.createFarmMarkdownSourceResponse; exports.createMarkdownMetadata = _chunkUX5S4JEOcjs.createMarkdownMetadata; exports.farmRequestWantsMarkdown = _chunkXXJU7FCCcjs.farmRequestWantsMarkdown; exports.isFarmMarkdownPageFile = _chunkUX5S4JEOcjs.isFarmMarkdownPageFile; exports.isFarmMarkdownPublicSourceResponse = _chunkUX5S4JEOcjs.isFarmMarkdownPublicSourceResponse; exports.loadFarmMdxComponents = _chunkBTAG7LI7cjs.loadFarmMdxComponents; exports.normalizeFarmMarkdownRoutePath = _chunkUX5S4JEOcjs.normalizeFarmMarkdownRoutePath; exports.parseMarkdownFrontmatter = _chunkUX5S4JEOcjs.parseMarkdownFrontmatter; exports.resolveFarmMdxComponentsModulePath = _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath; exports.resolveMdxConfig = _chunkOHY2ZWUGcjs.resolveMdxConfig; exports.titleFromMarkdown = _chunkUX5S4JEOcjs.titleFromMarkdown;
50
+ exports.FARM_MARKDOWN_CONTENT_TYPE = _chunkEUV4YR3Vcjs.FARM_MARKDOWN_CONTENT_TYPE; exports.createFarmMarkdownErrorBody = _chunkEUV4YR3Vcjs.createFarmMarkdownErrorBody; exports.createFarmMarkdownRouteModule = _chunkEFCQPQMGcjs.createFarmMarkdownRouteModule; exports.createFarmMarkdownRouteModuleFromFile = _chunk73MC7ZL6cjs.createFarmMarkdownRouteModuleFromFile; exports.createFarmMarkdownSourceResponse = _chunkEFCQPQMGcjs.createFarmMarkdownSourceResponse; exports.createMarkdownMetadata = _chunkEFCQPQMGcjs.createMarkdownMetadata; exports.farmRequestWantsMarkdown = _chunkEUV4YR3Vcjs.farmRequestWantsMarkdown; exports.isFarmMarkdownPageFile = _chunkEFCQPQMGcjs.isFarmMarkdownPageFile; exports.isFarmMarkdownPublicSourceResponse = _chunkEFCQPQMGcjs.isFarmMarkdownPublicSourceResponse; exports.loadFarmMdxComponents = _chunk73MC7ZL6cjs.loadFarmMdxComponents; exports.normalizeFarmMarkdownRoutePath = _chunkEFCQPQMGcjs.normalizeFarmMarkdownRoutePath; exports.parseMarkdownFrontmatter = _chunkEFCQPQMGcjs.parseMarkdownFrontmatter; exports.resolveFarmMdxComponentsModulePath = _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath; exports.resolveMdxConfig = _chunkOHY2ZWUGcjs.resolveMdxConfig; exports.titleFromMarkdown = _chunkEFCQPQMGcjs.titleFromMarkdown;
@@ -1,5 +1,5 @@
1
- import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-CLObcuCq.mjs';
2
- export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-CLObcuCq.mjs';
1
+ import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-CvIslxWi.mjs';
2
+ export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-CvIslxWi.mjs';
3
3
  export { FarmMarkdownPageModuleInput, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.mjs';
4
4
  import './lifecycle-DK06VuKP.mjs';
5
5
  import './integration-api-0y4FXJpC.mjs';
@@ -18,19 +18,18 @@ import 'unstorage';
18
18
  import './schema.mjs';
19
19
  import 'react';
20
20
  import '@farming-labs/orm';
21
- import './types-DFbjpjXX.mjs';
22
21
  import '@farming-labs/docs';
23
- import './observability-BupkiN0m.mjs';
22
+ import './observability-CoXunYhS.mjs';
24
23
  import '@opentelemetry/api';
25
24
  import 'vite';
26
- import './workflows-CR9ex-gz.mjs';
25
+ import './workflows-jZ4BcdoZ.mjs';
27
26
  import './cron.mjs';
28
27
  import './env.mjs';
29
28
  import './server-action-security.mjs';
30
29
  import 'rolldown/utils';
31
30
  import 'rolldown';
32
31
  import './image-config-Duob7wER.mjs';
33
- import './types-Z0aotQ8w.mjs';
32
+ import './types-CnH8DOqo.mjs';
34
33
  import './types-DQnyD3VD.mjs';
35
34
  import './font.mjs';
36
35
  import './after.mjs';
@@ -1,5 +1,5 @@
1
- import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-DZjHC4Mi.js';
2
- export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-DZjHC4Mi.js';
1
+ import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-HIyulDym.js';
2
+ export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-HIyulDym.js';
3
3
  export { FarmMarkdownPageModuleInput, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.js';
4
4
  import './lifecycle-DK06VuKP.js';
5
5
  import './integration-api-BPJo5oXb.js';
@@ -18,19 +18,18 @@ import 'unstorage';
18
18
  import './schema.js';
19
19
  import 'react';
20
20
  import '@farming-labs/orm';
21
- import './types-DFbjpjXX.js';
22
21
  import '@farming-labs/docs';
23
- import './observability-BupkiN0m.js';
22
+ import './observability-CoXunYhS.js';
24
23
  import '@opentelemetry/api';
25
24
  import 'vite';
26
- import './workflows-CR9ex-gz.js';
25
+ import './workflows-jZ4BcdoZ.js';
27
26
  import './cron.js';
28
27
  import './env.js';
29
28
  import './server-action-security.js';
30
29
  import 'rolldown/utils';
31
30
  import 'rolldown';
32
31
  import './image-config-Duob7wER.js';
33
- import './types-Z0aotQ8w.js';
32
+ import './types-CnH8DOqo.js';
34
33
  import './types-DQnyD3VD.js';
35
34
  import './font.js';
36
35
  import './after.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createFarmMarkdownRouteModuleFromFile,
3
3
  loadFarmMdxComponents
4
- } from "./chunk-3VSKDFAT.mjs";
4
+ } from "./chunk-YULD7ICZ.mjs";
5
5
  import {
6
6
  createFarmMarkdownRouteModule,
7
7
  createFarmMarkdownSourceResponse,
@@ -11,7 +11,7 @@ import {
11
11
  normalizeFarmMarkdownRoutePath,
12
12
  parseMarkdownFrontmatter,
13
13
  titleFromMarkdown
14
- } from "./chunk-AGC75XAE.mjs";
14
+ } from "./chunk-4JHOT46A.mjs";
15
15
  import {
16
16
  resolveFarmMdxComponentsModulePath,
17
17
  resolveMdxConfig
@@ -20,9 +20,9 @@ import {
20
20
  FARM_MARKDOWN_CONTENT_TYPE,
21
21
  createFarmMarkdownErrorBody,
22
22
  farmRequestWantsMarkdown
23
- } from "./chunk-ZUSJDQ2Q.mjs";
23
+ } from "./chunk-WWIKMBRN.mjs";
24
24
  import "./chunk-MVL2RAJW.mjs";
25
- import "./chunk-QLQ32WC4.mjs";
25
+ import "./chunk-ZLAT2CWY.mjs";
26
26
  import "./chunk-BTHHUD7Q.mjs";
27
27
  import "./chunk-FUZEBRP3.mjs";
28
28
  import "./chunk-O7BH5O46.mjs";
@@ -17,7 +17,7 @@ import {
17
17
  matchAPIRouteAtBasePath,
18
18
  mergePluginAPIRoutes,
19
19
  resolveAPIRouteEndpoint
20
- } from "./chunk-657WJNRY.mjs";
20
+ } from "./chunk-G5RT7EXW.mjs";
21
21
  import {
22
22
  registerAPIRouteShape
23
23
  } from "./chunk-W3B4PKAW.mjs";
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk-DAATZTKJ.mjs";
27
27
  import {
28
28
  parseRouteSlotFile
29
- } from "./chunk-UBO4SGH4.mjs";
29
+ } from "./chunk-RHAZ22ZN.mjs";
30
30
  import {
31
31
  discoverProgrammaticRoutePaths
32
32
  } from "./chunk-UDNPLXW7.mjs";
@@ -26,7 +26,7 @@ var _chunkVPTDD5XFcjs = require('./chunk-VPTDD5XF.cjs');
26
26
  var _chunkPSV6XKPOcjs = require('./chunk-PSV6XKPO.cjs');
27
27
 
28
28
 
29
- var _chunk2NQQ5H5Gcjs = require('./chunk-2NQQ5H5G.cjs');
29
+ var _chunkM7MKQXAFcjs = require('./chunk-M7MKQXAF.cjs');
30
30
 
31
31
 
32
32
  var _chunkSJNMVDDFcjs = require('./chunk-SJNMVDDF.cjs');
@@ -727,7 +727,7 @@ async function createRouteTypeDeclarations(options, outPath) {
727
727
  }
728
728
  );
729
729
  for (const file of routeModuleFiles) {
730
- if (_chunk2NQQ5H5Gcjs.parseRouteSlotFile.call(void 0, file)) continue;
730
+ if (_chunkM7MKQXAFcjs.parseRouteSlotFile.call(void 0, file)) continue;
731
731
  const route = _chunk5QIKR7RRcjs.parseRoutePath.call(void 0, file);
732
732
  const pattern = createRoutePattern(route);
733
733
  routeModulePatterns.add(pattern);
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.1.34";
2
+ var version = "0.1.35";
3
3
 
4
4
  // src/version.ts
5
5
  var FARM_VERSION = version;
@@ -3,17 +3,18 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkZ2YLTERKcjs = require('./chunk-Z2YLTERK.cjs');
6
+ var _chunkVZJR7UTGcjs = require('./chunk-VZJR7UTG.cjs');
7
7
 
8
8
 
9
9
 
10
10
  var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
11
11
 
12
12
 
13
- var _chunkPQDFUSXDcjs = require('./chunk-PQDFUSXD.cjs');
13
+ var _chunkF7JZENPFcjs = require('./chunk-F7JZENPF.cjs');
14
14
 
15
15
 
16
- var _chunk75WGQVQAcjs = require('./chunk-75WGQVQA.cjs');
16
+
17
+ var _chunkHITLGIAOcjs = require('./chunk-HITLGIAO.cjs');
17
18
 
18
19
 
19
20
  var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
@@ -27,7 +28,7 @@ function hasFarmDocsRuntimeAdapter(docs) {
27
28
  }
28
29
  _chunkS3JO3N4Hcjs.__name.call(void 0, hasFarmDocsRuntimeAdapter, "hasFarmDocsRuntimeAdapter");
29
30
  async function loadFarmDocsConfigModule(docs, loadModule) {
30
- const configModule = _chunk75WGQVQAcjs.getFarmDocsAdapterConfigModule.call(void 0, docs);
31
+ const configModule = _chunkHITLGIAOcjs.getFarmDocsAdapterConfigModule.call(void 0, docs);
31
32
  if (!configModule) return void 0;
32
33
  const loaded = await loadModule(configModule);
33
34
  const config = _nullishCoalesce(_optionalChain([loaded, 'optionalAccess', _4 => _4.default]), () => ( loaded));
@@ -39,7 +40,7 @@ function createFarmDocsAdapterRuntimeConfig(docs, options, moduleConfig) {
39
40
  ...moduleConfig ? { ...moduleConfig, ...docs.configOverrides } : _nullishCoalesce(docs.runtimeConfig, () => ( docs.config)),
40
41
  entry: docs.config.entry || docs.entry.replace(/^\/+|\/+$/g, "") || "docs",
41
42
  docsPath: docs.entry,
42
- contentDir: _chunkZ2YLTERKcjs.resolveFarmDocsContentDir.call(void 0, docs, options)
43
+ contentDir: _chunkVZJR7UTGcjs.resolveFarmDocsContentDir.call(void 0, docs, options)
43
44
  };
44
45
  }
45
46
  _chunkS3JO3N4Hcjs.__name.call(void 0, createFarmDocsAdapterRuntimeConfig, "createFarmDocsAdapterRuntimeConfig");
@@ -118,7 +119,8 @@ async function createFarmDocsAdapterHandler(docs, options) {
118
119
  clientEntry: options.clientEntry,
119
120
  stylesheets: getFarmDocsAdapterStylesheets(options),
120
121
  resolveLayoutFonts: options.resolveLayoutFonts,
121
- loadReactModule: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => options.loadModule(docs.adapter.react), "loadReactModule")
122
+ loadReactModule: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => options.loadModule(docs.adapter.react), "loadReactModule"),
123
+ ...options.registerMCPServer ? { registerMCPServer: options.registerMCPServer } : {}
122
124
  });
123
125
  }
124
126
  _chunkS3JO3N4Hcjs.__name.call(void 0, createFarmDocsAdapterHandler, "createFarmDocsAdapterHandler");
@@ -275,25 +277,25 @@ function getDocsDescription(docs) {
275
277
  }
276
278
  _chunkS3JO3N4Hcjs.__name.call(void 0, getDocsDescription, "getDocsDescription");
277
279
  function getLoadedDocsPages(context) {
278
- return _chunkZ2YLTERKcjs.discoverFarmDocsPages.call(void 0, context.contentDir, context.docs).map((page) => _chunkZ2YLTERKcjs.loadFarmDocsPage.call(void 0, context.contentDir, context.docs, page.slug)).filter((page) => Boolean(page));
280
+ return _chunkVZJR7UTGcjs.discoverFarmDocsPages.call(void 0, context.contentDir, context.docs).map((page) => _chunkVZJR7UTGcjs.loadFarmDocsPage.call(void 0, context.contentDir, context.docs, page.slug)).filter((page) => Boolean(page));
279
281
  }
280
282
  _chunkS3JO3N4Hcjs.__name.call(void 0, getLoadedDocsPages, "getLoadedDocsPages");
281
283
  function toDocsSourcePage(page) {
282
284
  return {
283
- ..._chunkZ2YLTERKcjs.toFarmDocsMarkdownPage.call(void 0, page),
285
+ ..._chunkVZJR7UTGcjs.toFarmDocsMarkdownPage.call(void 0, page),
284
286
  sourcePath: page.sourcePath
285
287
  };
286
288
  }
287
289
  _chunkS3JO3N4Hcjs.__name.call(void 0, toDocsSourcePage, "toDocsSourcePage");
288
290
  function toDocsSitemapPage(page) {
289
291
  return {
290
- ..._chunkZ2YLTERKcjs.toFarmDocsMarkdownPage.call(void 0, page),
292
+ ..._chunkVZJR7UTGcjs.toFarmDocsMarkdownPage.call(void 0, page),
291
293
  sourcePath: page.sourcePath
292
294
  };
293
295
  }
294
296
  _chunkS3JO3N4Hcjs.__name.call(void 0, toDocsSitemapPage, "toDocsSitemapPage");
295
297
  function toDocsLlmsPage(page) {
296
- return _chunkZ2YLTERKcjs.toFarmDocsMarkdownPage.call(void 0, page);
298
+ return _chunkVZJR7UTGcjs.toFarmDocsMarkdownPage.call(void 0, page);
297
299
  }
298
300
  _chunkS3JO3N4Hcjs.__name.call(void 0, toDocsLlmsPage, "toDocsLlmsPage");
299
301
  function getDocsLlmsOptions(context, request) {
@@ -387,7 +389,7 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, renderAgentsDocument, "renderAgentsDocumen
387
389
  function buildAgentSpec(context, request) {
388
390
  const url = new URL(request.url);
389
391
  const origin = url.origin;
390
- const pages = _chunkZ2YLTERKcjs.discoverFarmDocsPages.call(void 0, context.contentDir, context.docs);
392
+ const pages = _chunkVZJR7UTGcjs.discoverFarmDocsPages.call(void 0, context.contentDir, context.docs);
391
393
  const spec = _chunkIK6LVLKCcjs.docsEngine.call(void 0, ).buildDocsAgentDiscoverySpec(getDocsDiscoveryOptions(context, request));
392
394
  const title = getDocsTitle(context.docs);
393
395
  return {
@@ -433,12 +435,6 @@ function buildAgentSpec(context, request) {
433
435
  }
434
436
  _chunkS3JO3N4Hcjs.__name.call(void 0, buildAgentSpec, "buildAgentSpec");
435
437
  var REDACTED_DOCS_CONFIG_VALUE = "[redacted]";
436
- function isSecretDocsConfigKey(key) {
437
- const normalized = key.replace(/[-_]/g, "").toLowerCase();
438
- if (!normalized || normalized.endsWith("env")) return false;
439
- return /apikey|token|secret|password|authorization|credential/.test(normalized);
440
- }
441
- _chunkS3JO3N4Hcjs.__name.call(void 0, isSecretDocsConfigKey, "isSecretDocsConfigKey");
442
438
  function redactDocsConfigValue(value, key, inHeaders) {
443
439
  if (Array.isArray(value)) {
444
440
  return value.map((entry) => redactDocsConfigValue(entry, key, inHeaders));
@@ -453,7 +449,7 @@ function redactDocsConfigValue(value, key, inHeaders) {
453
449
  );
454
450
  }
455
451
  if (value === null || value === void 0 || typeof value === "function") return value;
456
- return inHeaders || isSecretDocsConfigKey(key) ? REDACTED_DOCS_CONFIG_VALUE : value;
452
+ return inHeaders || _chunkHITLGIAOcjs.isSecretDocsConfigKey.call(void 0, key) ? REDACTED_DOCS_CONFIG_VALUE : value;
457
453
  }
458
454
  _chunkS3JO3N4Hcjs.__name.call(void 0, redactDocsConfigValue, "redactDocsConfigValue");
459
455
  function toPublicDocsPath(value, root) {
@@ -483,7 +479,7 @@ function buildPublicConfig(context) {
483
479
  }
484
480
  _chunkS3JO3N4Hcjs.__name.call(void 0, buildPublicConfig, "buildPublicConfig");
485
481
  function buildDiagnostics(context) {
486
- const pages = _chunkZ2YLTERKcjs.discoverFarmDocsPages.call(void 0, context.contentDir, context.docs);
482
+ const pages = _chunkVZJR7UTGcjs.discoverFarmDocsPages.call(void 0, context.contentDir, context.docs);
487
483
  const diagnostics = _chunkIK6LVLKCcjs.docsEngine.call(void 0, ).buildDocsDiagnostics(context.docs.config, {
488
484
  entry: context.docs.entry,
489
485
  mcp: {
@@ -555,12 +551,12 @@ async function resolveAPIContext(options) {
555
551
  config: options.config,
556
552
  configPath: options.configPath
557
553
  }));
558
- const docs = isResolvedDocsConfig(docsInput) ? docsInput : await _chunkPQDFUSXDcjs.resolveDocsConfig.call(void 0, docsInput, { root, srcDir });
554
+ const docs = isResolvedDocsConfig(docsInput) ? docsInput : await _chunkF7JZENPFcjs.resolveDocsConfig.call(void 0, docsInput, { root, srcDir });
559
555
  return {
560
556
  root,
561
557
  srcDir,
562
558
  docs,
563
- contentDir: _chunkZ2YLTERKcjs.resolveFarmDocsContentDir.call(void 0, docs, { root, srcDir }),
559
+ contentDir: _chunkVZJR7UTGcjs.resolveFarmDocsContentDir.call(void 0, docs, { root, srcDir }),
564
560
  diagnostics: options.diagnostics === true
565
561
  };
566
562
  }
@@ -619,10 +615,10 @@ async function handleDocsAPIGet(request, context) {
619
615
  if (format === "markdown" || url.pathname.endsWith(".md")) {
620
616
  const pathParam = url.searchParams.get("path") || url.searchParams.get("slug");
621
617
  const slug = normalizeDocsApiSlug(_nullishCoalesce(_nullishCoalesce(pathParam, () => ( pathTarget.slug)), () => ( "")), context.docs);
622
- const page = _chunkZ2YLTERKcjs.loadFarmDocsPage.call(void 0, context.contentDir, context.docs, slug);
618
+ const page = _chunkVZJR7UTGcjs.loadFarmDocsPage.call(void 0, context.contentDir, context.docs, slug);
623
619
  if (!page) return text("Docs page not found\n", "text/plain; charset=utf-8", { status: 404 });
624
620
  return text(
625
- _chunkIK6LVLKCcjs.docsEngine.call(void 0, ).renderDocsMarkdownDocument(_chunkZ2YLTERKcjs.toFarmDocsMarkdownPage.call(void 0, page), {
621
+ _chunkIK6LVLKCcjs.docsEngine.call(void 0, ).renderDocsMarkdownDocument(_chunkVZJR7UTGcjs.toFarmDocsMarkdownPage.call(void 0, page), {
626
622
  origin: new URL(request.url).origin,
627
623
  llms: getDocsLlmsOptions(context, request),
628
624
  sitemap: context.docs.config.sitemap
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createFarmMarkdownViewResponse,
3
3
  requestAcceptsMarkdown
4
- } from "./chunk-ZUSJDQ2Q.mjs";
4
+ } from "./chunk-WWIKMBRN.mjs";
5
5
  import {
6
6
  __name
7
7
  } from "./chunk-LPEX4YW6.mjs";