@farm.js/core 0.1.82 → 0.1.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/dist/{agent-mcp.d-C2Su3x4D.d.ts → agent-mcp.d-7uKdOttc.d.ts} +1 -1
  2. package/dist/{agent-mcp.d-Yak-LqRd.d.mts → agent-mcp.d-LChlR2au.d.mts} +1 -1
  3. package/dist/agent-runtime.d.mts +2 -1
  4. package/dist/agent-runtime.d.ts +2 -1
  5. package/dist/analyzer-WGH6J2HN.cjs +17 -0
  6. package/dist/{analyzer-RPU2KG4J.mjs → analyzer-Y6IY26HI.mjs} +2 -2
  7. package/dist/api/node.d.mts +4 -3
  8. package/dist/api/node.d.ts +4 -3
  9. package/dist/api/route-manager.d.mts +4 -3
  10. package/dist/api/route-manager.d.ts +4 -3
  11. package/dist/api/runtime.d.mts +3 -2
  12. package/dist/api/runtime.d.ts +3 -2
  13. package/dist/api.d.mts +5 -4
  14. package/dist/api.d.ts +5 -4
  15. package/dist/{app-manifest.d-DZyXaICz.d.ts → app-manifest.d-CRp21oAz.d.ts} +1 -1
  16. package/dist/{app-manifest.d-BcyOFMrg.d.mts → app-manifest.d-QMdmqqCr.d.mts} +1 -1
  17. package/dist/app-markdown.d.mts +3 -2
  18. package/dist/app-markdown.d.ts +3 -2
  19. package/dist/{app.d-CIoXsAbN.d.ts → app.d-CVPu_hoD.d.ts} +34 -4
  20. package/dist/{app.d-C0ePpuaG.d.mts → app.d-eSm7jgoc.d.mts} +34 -4
  21. package/dist/{chunk-JK26IMT7.cjs → chunk-3CZ4MJHW.cjs} +1 -1
  22. package/dist/{chunk-5MUFW5UU.cjs → chunk-3DAJXBSL.cjs} +2 -2
  23. package/dist/{chunk-XMHERKSE.mjs → chunk-42IBGQTN.mjs} +5 -12
  24. package/dist/{chunk-4X7LSGM6.mjs → chunk-43N3X6OO.mjs} +1 -1
  25. package/dist/{chunk-LM2ZDNDD.cjs → chunk-55UJGUBP.cjs} +24 -19
  26. package/dist/{chunk-TPA2PV5J.mjs → chunk-5V6HSJFG.mjs} +24 -1
  27. package/dist/chunk-5X5GJU5A.cjs +426 -0
  28. package/dist/{chunk-Q2VOT3K2.cjs → chunk-7X2CYE66.cjs} +316 -310
  29. package/dist/{chunk-6BPFIYGY.cjs → chunk-A5BHJHDF.cjs} +3 -3
  30. package/dist/{chunk-EL2Z6YFZ.mjs → chunk-B5SJYXJK.mjs} +177 -67
  31. package/dist/chunk-BUQR7KKO.mjs +17 -0
  32. package/dist/{chunk-724WT3NI.mjs → chunk-CRE642TW.mjs} +1 -1
  33. package/dist/{chunk-NRCKBDYP.mjs → chunk-DPUZVGXH.mjs} +130 -27
  34. package/dist/{chunk-N2EFMN2K.cjs → chunk-DZTWUEBB.cjs} +2 -2
  35. package/dist/{chunk-DRO3NXA3.cjs → chunk-EFI6QWBQ.cjs} +200 -90
  36. package/dist/chunk-ELNRKD4V.mjs +426 -0
  37. package/dist/{chunk-63ZE6B6M.mjs → chunk-FFWSER54.mjs} +1 -1
  38. package/dist/chunk-FZ7OUN5M.cjs +30 -0
  39. package/dist/{chunk-5MMKNW7Q.cjs → chunk-H7REG7OX.cjs} +15 -8
  40. package/dist/{chunk-VMBIKDKW.cjs → chunk-HRH7OKBQ.cjs} +6 -4
  41. package/dist/{chunk-RMPUEH5T.cjs → chunk-IABI62FH.cjs} +2 -2
  42. package/dist/{chunk-ZIZRIZLP.mjs → chunk-IAIRQAHA.mjs} +3 -1
  43. package/dist/{chunk-EX6ZSN5P.cjs → chunk-IZYFP7IN.cjs} +17 -24
  44. package/dist/chunk-J6RFB324.cjs +17 -0
  45. package/dist/{chunk-ARORZ3MH.cjs → chunk-JHRJ5V2F.cjs} +366 -263
  46. package/dist/{chunk-OMB7UGVW.mjs → chunk-K3GHY7GY.mjs} +14 -9
  47. package/dist/{chunk-UVV3I5QA.cjs → chunk-L2GUEYHR.cjs} +29 -6
  48. package/dist/{chunk-HHQEKLZL.cjs → chunk-LN6FAYNB.cjs} +36 -31
  49. package/dist/chunk-M6AJZ4XR.mjs +30 -0
  50. package/dist/{chunk-47I2MYIR.mjs → chunk-NDWI6FDH.mjs} +442 -180
  51. package/dist/{chunk-BCTHOQPP.cjs → chunk-NGTZHWBG.cjs} +68 -1
  52. package/dist/{chunk-OP5VI4TP.mjs → chunk-NKVBWPXR.mjs} +1 -1
  53. package/dist/{chunk-CD5Z7RR5.cjs → chunk-OM6JIIJU.cjs} +4 -4
  54. package/dist/{chunk-C3VCYOU4.mjs → chunk-ORBBAA7B.mjs} +1 -1
  55. package/dist/{chunk-I4DR3HCH.mjs → chunk-R3VLM2MW.mjs} +1 -1
  56. package/dist/{chunk-I4WZRG73.mjs → chunk-RB5IGN3N.mjs} +13 -6
  57. package/dist/{chunk-RMLR5RMH.mjs → chunk-RGTZAM6Y.mjs} +67 -0
  58. package/dist/{chunk-GXLNARPO.mjs → chunk-RNJX3MD6.mjs} +1 -1
  59. package/dist/{chunk-EJCVG25Z.mjs → chunk-S3R4JDRO.mjs} +17 -9
  60. package/dist/{chunk-AIPZDBP6.cjs → chunk-SLIXHUMS.cjs} +780 -518
  61. package/dist/{chunk-WFVSAT7Y.cjs → chunk-T7HGXF7D.cjs} +3 -3
  62. package/dist/{chunk-CJDBTTLB.mjs → chunk-U56Z3755.mjs} +10 -5
  63. package/dist/{chunk-QSMUMK7Y.mjs → chunk-VQ6IXALL.mjs} +2 -2
  64. package/dist/{chunk-B2PGVHBG.cjs → chunk-WCSBYQOT.cjs} +4 -4
  65. package/dist/{chunk-DAXU2NBE.mjs → chunk-WZV2G2A6.mjs} +30 -24
  66. package/dist/{chunk-SM2SYWAR.cjs → chunk-XJDB564A.cjs} +18 -10
  67. package/dist/{cli-runtime.d-Hnvvadz7.d.mts → cli-runtime.d-C7aMfoTq.d.mts} +8 -6
  68. package/dist/{cli-runtime.d-I0MphTbc.d.ts → cli-runtime.d-DaElKjaL.d.ts} +8 -6
  69. package/dist/{client-component.d-DapRqtSC.d.mts → client-component.d-DLMCzmUx.d.mts} +1 -1
  70. package/dist/{client-component.d-5QEvtJsg.d.ts → client-component.d-DLknFP8l.d.ts} +1 -1
  71. package/dist/{client-plugins.d-DcmDzcSC.d.ts → client-plugins.d-BVXjyIkY.d.ts} +14 -0
  72. package/dist/{client-plugins.d-C1WM3ieD.d.mts → client-plugins.d-BwKwuO_0.d.mts} +14 -0
  73. package/dist/client-plugins.d.mts +2 -1
  74. package/dist/client-plugins.d.ts +2 -1
  75. package/dist/client.cjs +4 -3
  76. package/dist/client.d.mts +10 -9
  77. package/dist/client.d.ts +10 -9
  78. package/dist/client.mjs +3 -2
  79. package/dist/config.d.mts +2 -1
  80. package/dist/config.d.ts +2 -1
  81. package/dist/desktop.d.mts +3 -2
  82. package/dist/desktop.d.ts +3 -2
  83. package/dist/{devtools-C5GXZZ7E.mjs → devtools-OI52TCSD.mjs} +3 -3
  84. package/dist/{devtools-5B7NZE6F.cjs → devtools-ZM2AR36W.cjs} +5 -5
  85. package/dist/docs.cjs +8 -7
  86. package/dist/docs.d.mts +15 -6
  87. package/dist/docs.d.ts +15 -6
  88. package/dist/docs.mjs +7 -6
  89. package/dist/environment/vite.cjs +4 -4
  90. package/dist/environment/vite.d.mts +1 -0
  91. package/dist/environment/vite.d.ts +1 -0
  92. package/dist/environment/vite.mjs +3 -3
  93. package/dist/{generate-route-types.d-CaGMIaNI.d.mts → generate-route-types.d-BFOMM8Ef.d.mts} +3 -0
  94. package/dist/{generate-route-types.d-B76M5R11.d.ts → generate-route-types.d-C2m8myHb.d.ts} +3 -0
  95. package/dist/{handler.d-B8bPCBzl.d.mts → handler.d-BKTWzzNA.d.mts} +1 -1
  96. package/dist/{handler.d-Cliwo6Nu.d.ts → handler.d-Dzpyg3-N.d.ts} +1 -1
  97. package/dist/{headers.d-CVwSpSGX.d.mts → headers.d-5opjyhXw.d.mts} +1 -1
  98. package/dist/{headers.d-C_btqjV6.d.ts → headers.d-PZyXcDAH.d.ts} +1 -1
  99. package/dist/index.cjs +25 -23
  100. package/dist/{index.d-DFuMZk9-.d.mts → index.d-C0Mie66f.d.mts} +1 -1
  101. package/dist/{index.d-hOEbMcLk.d.ts → index.d-DV2q-0mE.d.ts} +1 -1
  102. package/dist/index.d.mts +26 -25
  103. package/dist/index.d.ts +26 -25
  104. package/dist/index.mjs +25 -23
  105. package/dist/integrations/orm.d.mts +2 -1
  106. package/dist/integrations/orm.d.ts +2 -1
  107. package/dist/integrations.d.mts +2 -1
  108. package/dist/integrations.d.ts +2 -1
  109. package/dist/internal/app-markdown-runtime.d.mts +3 -2
  110. package/dist/internal/app-markdown-runtime.d.ts +3 -2
  111. package/dist/internal/build-runtime.cjs +21 -21
  112. package/dist/internal/build-runtime.d.mts +5 -4
  113. package/dist/internal/build-runtime.d.ts +5 -4
  114. package/dist/internal/build-runtime.mjs +20 -20
  115. package/dist/internal/cli-runtime.cjs +6 -6
  116. package/dist/internal/cli-runtime.d.mts +8 -7
  117. package/dist/internal/cli-runtime.d.ts +8 -7
  118. package/dist/internal/cli-runtime.mjs +5 -5
  119. package/dist/internal/client-error-overlay.cjs +4 -4
  120. package/dist/internal/client-error-overlay.mjs +1 -1
  121. package/dist/internal/client-runtime.d.mts +5 -5
  122. package/dist/internal/client-runtime.d.ts +5 -5
  123. package/dist/internal/compression-runtime.d.mts +2 -1
  124. package/dist/internal/compression-runtime.d.ts +2 -1
  125. package/dist/internal/config-runtime.cjs +5 -5
  126. package/dist/internal/config-runtime.d.mts +6 -5
  127. package/dist/internal/config-runtime.d.ts +6 -5
  128. package/dist/internal/config-runtime.mjs +4 -4
  129. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  130. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  131. package/dist/internal/islands-action-client.cjs +18 -0
  132. package/dist/internal/islands-action-client.d.mts +18 -0
  133. package/dist/internal/islands-action-client.d.ts +18 -0
  134. package/dist/internal/islands-action-client.mjs +18 -0
  135. package/dist/internal/islands-runtime.cjs +3 -8
  136. package/dist/internal/islands-runtime.mjs +4 -9
  137. package/dist/internal/islx-actions-client.cjs +4 -3
  138. package/dist/internal/islx-actions-client.mjs +3 -2
  139. package/dist/internal/islx-actions-server.d.mts +0 -2
  140. package/dist/internal/islx-actions-server.d.ts +0 -2
  141. package/dist/internal/islx-client.cjs +13 -1
  142. package/dist/internal/islx-client.d.mts +11 -0
  143. package/dist/internal/islx-client.d.ts +11 -0
  144. package/dist/internal/islx-client.mjs +14 -0
  145. package/dist/internal/metadata-image-runtime.d.mts +1 -0
  146. package/dist/internal/metadata-image-runtime.d.ts +1 -0
  147. package/dist/internal/native-server-fns.cjs +4 -4
  148. package/dist/internal/native-server-fns.mjs +3 -3
  149. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  150. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  151. package/dist/internal/production-runtime.cjs +5 -5
  152. package/dist/internal/production-runtime.d.mts +11 -11
  153. package/dist/internal/production-runtime.d.ts +11 -11
  154. package/dist/internal/production-runtime.mjs +4 -4
  155. package/dist/internal/spa-router.d.mts +3 -3
  156. package/dist/internal/spa-router.d.ts +3 -3
  157. package/dist/internal/start-manifest.d.mts +2 -1
  158. package/dist/internal/start-manifest.d.ts +2 -1
  159. package/dist/markdown.d.mts +2 -1
  160. package/dist/markdown.d.ts +2 -1
  161. package/dist/middleware.d.mts +2 -1
  162. package/dist/middleware.d.ts +2 -1
  163. package/dist/mobile.d.mts +6 -3
  164. package/dist/mobile.d.ts +6 -3
  165. package/dist/{mount.d-DLeYxeRR.d.mts → mount.d-CZ_qL1iS.d.mts} +1 -1
  166. package/dist/{mount.d-CAovYKfs.d.ts → mount.d-gWul1GA1.d.ts} +1 -1
  167. package/dist/{navigation-delegate.d-Chv93QS6.d.mts → navigation-delegate.d-BBTzhJLj.d.mts} +1 -1
  168. package/dist/{navigation-delegate.d-BLM-8Q3Z.d.ts → navigation-delegate.d-BZsYEAet.d.ts} +1 -1
  169. package/dist/navigation.d.mts +5 -5
  170. package/dist/navigation.d.ts +5 -5
  171. package/dist/plugin.cjs +15 -15
  172. package/dist/plugin.d.mts +6 -6
  173. package/dist/plugin.d.ts +6 -6
  174. package/dist/plugin.mjs +14 -14
  175. package/dist/{render-plan.d-BSTjTH8h.d.ts → render-plan.d-AaJsYPX-.d.ts} +1 -1
  176. package/dist/{render-plan.d-CK5Lggyb.d.mts → render-plan.d-bnWxS12w.d.mts} +1 -1
  177. package/dist/renderer-client.cjs +6 -5
  178. package/dist/renderer-client.d.mts +8 -7
  179. package/dist/renderer-client.d.ts +8 -7
  180. package/dist/renderer-client.mjs +2 -1
  181. package/dist/renderer.cjs +6 -2
  182. package/dist/renderer.d.mts +87 -4
  183. package/dist/renderer.d.ts +87 -4
  184. package/dist/renderer.mjs +5 -1
  185. package/dist/{request.d-BhggxQf3.d.mts → request.d-C2HOn3Hi.d.mts} +1 -1
  186. package/dist/{request.d-CyJS9bjm.d.ts → request.d-CAeitOG1.d.ts} +1 -1
  187. package/dist/request.d.mts +3 -2
  188. package/dist/request.d.ts +3 -2
  189. package/dist/{route-rendering.d-BLPPmI5I.d.ts → route-rendering.d-A1dIkUK5.d.ts} +1 -1
  190. package/dist/{route-rendering.d-CUpG2mZJ.d.mts → route-rendering.d-CYA-ulnX.d.mts} +1 -1
  191. package/dist/{router.d-2NQM1Kgw.d.mts → router.d-8lxnzlkr.d.mts} +1 -1
  192. package/dist/{router.d-0X2Ki6rf.d.ts → router.d-A_Yt6jYz.d.ts} +1 -1
  193. package/dist/{routes.d-CCccJRrp.d.mts → routes.d-BWvpUoYu.d.mts} +1 -1
  194. package/dist/{routes.d-b7khoRoU.d.ts → routes.d-D7RWvfqL.d.ts} +1 -1
  195. package/dist/routes.d.mts +2 -1
  196. package/dist/routes.d.ts +2 -1
  197. package/dist/{rsc-pipeline-5AOF64FL.cjs → rsc-pipeline-MFJZGDPE.cjs} +5 -5
  198. package/dist/{rsc-pipeline-DNRLYOJ7.mjs → rsc-pipeline-TRZVFCBX.mjs} +4 -4
  199. package/dist/{runtime-ZVHG5SRB.cjs → runtime-MJUG2HGR.cjs} +10 -9
  200. package/dist/{runtime-EHG2FRXZ.mjs → runtime-O4Y3Z6V3.mjs} +6 -5
  201. package/dist/{runtime.d-CXuwkUgr.d.ts → runtime.d-BPyvWrgQ.d.ts} +1 -1
  202. package/dist/{runtime.d-CaFXcu_Q.d.mts → runtime.d-C_rZ9_DD.d.mts} +1 -1
  203. package/dist/{server-components-status.d-Cp7zvBm5.d.mts → server-components-status.d-BpxiEMQE.d.mts} +1 -1
  204. package/dist/{server-components-status.d-BdeFD8ZH.d.ts → server-components-status.d-C2UEKJn7.d.ts} +1 -1
  205. package/dist/server-plugins.d.mts +4 -3
  206. package/dist/server-plugins.d.ts +4 -3
  207. package/dist/server-query-call.d-rVM_lsYk.d.mts +15 -0
  208. package/dist/server-query-call.d-rVM_lsYk.d.ts +15 -0
  209. package/dist/server-query-client.cjs +5 -3
  210. package/dist/server-query-client.d.mts +3 -2
  211. package/dist/server-query-client.d.ts +3 -2
  212. package/dist/server-query-client.mjs +5 -3
  213. package/dist/{server-query-runtime.d-DXRNhX_3.d.ts → server-query-runtime.d-BlHd90D0.d.ts} +2 -8
  214. package/dist/{server-query-runtime.d-aP52iuL5.d.mts → server-query-runtime.d-CCLGkQtE.d.mts} +2 -8
  215. package/dist/server.cjs +39 -39
  216. package/dist/server.d.mts +12 -12
  217. package/dist/server.d.ts +12 -12
  218. package/dist/server.mjs +16 -16
  219. package/dist/{spa-router.d-l3G38xHa.d.mts → spa-router.d-BD-6WX1R.d.mts} +2 -2
  220. package/dist/{spa-router.d-Bjgl-Osi.d.ts → spa-router.d-Cw5i_15e.d.ts} +2 -2
  221. package/dist/{ssg.d-DDca17Lc.d.ts → ssg.d-Bifiq0EL.d.ts} +2 -2
  222. package/dist/{ssg.d-RnlHOqUL.d.mts → ssg.d-CCE9aob5.d.mts} +2 -2
  223. package/dist/{store-core.d-BaOUOPf7.d.ts → store-core.d-5tVn5vi1.d.ts} +3 -3
  224. package/dist/{store-core.d-BZjuC6Zc.d.mts → store-core.d-BN2MxSG9.d.mts} +3 -3
  225. package/dist/testing.d.mts +2 -1
  226. package/dist/testing.d.ts +2 -1
  227. package/dist/{utils.d-D8TWmpWo.d.ts → utils.d-BUjpSNIO.d.ts} +1 -1
  228. package/dist/{utils.d-tdzw0_zQ.d.mts → utils.d-wGPLeVbq.d.mts} +1 -1
  229. package/dist/version.cjs +2 -2
  230. package/dist/version.mjs +1 -1
  231. package/dist/vite.cjs +15 -15
  232. package/dist/vite.d.mts +6 -6
  233. package/dist/vite.d.ts +6 -6
  234. package/dist/vite.mjs +14 -14
  235. package/package.json +6 -1
  236. package/dist/analyzer-LV23T6QN.cjs +0 -17
  237. package/dist/chunk-AUFEM3FB.mjs +0 -229
  238. package/dist/chunk-S7WZUK3B.cjs +0 -229
@@ -6,10 +6,17 @@ import {
6
6
  collectSSGPages,
7
7
  matchSSGPage,
8
8
  resolveRouteRenderingConfigFromFile
9
- } from "./chunk-ZIZRIZLP.mjs";
9
+ } from "./chunk-IAIRQAHA.mjs";
10
10
  import {
11
11
  findFarmAppPackageDir
12
12
  } from "./chunk-YSU3WCW6.mjs";
13
+ import {
14
+ resolveFarmRendererRoutes
15
+ } from "./chunk-ELNRKD4V.mjs";
16
+ import {
17
+ createFarmMetadataImageResponse,
18
+ resolveFarmMetadataImageValue
19
+ } from "./chunk-EZYKV24V.mjs";
13
20
  import {
14
21
  resolveFarmPlatform
15
22
  } from "./chunk-SMUW7UST.mjs";
@@ -57,7 +64,7 @@ import {
57
64
  } from "./chunk-V7HNYR76.mjs";
58
65
  import {
59
66
  listFarmMCPLlmsTxtLinks
60
- } from "./chunk-QSMUMK7Y.mjs";
67
+ } from "./chunk-VQ6IXALL.mjs";
61
68
  import {
62
69
  FARM_DEFAULT_MCP_PATH,
63
70
  collectFarmDefaultMCPPages,
@@ -66,10 +73,6 @@ import {
66
73
  isFarmDefaultMCPPathname,
67
74
  resolveFarmDefaultMCPServer
68
75
  } from "./chunk-HR4N2K4V.mjs";
69
- import {
70
- createFarmMetadataImageResponse,
71
- resolveFarmMetadataImageValue
72
- } from "./chunk-EZYKV24V.mjs";
73
76
  import {
74
77
  installFarmIslandValues,
75
78
  uninstallFarmIslandValues
@@ -97,21 +100,22 @@ import {
97
100
  resolveProgrammaticClientRoutes,
98
101
  runWithLatestPackageClientBoundaryCache,
99
102
  runWithPackageClientBoundaryCacheFile,
103
+ setFarmRendererHydrationScope,
100
104
  traceFarmSourceReads,
101
105
  usesFarmServerTree,
102
106
  withFarmSourceSnapshot
103
- } from "./chunk-EL2Z6YFZ.mjs";
107
+ } from "./chunk-B5SJYXJK.mjs";
104
108
  import {
105
109
  _setDefaultFarmThemeConfig,
106
110
  getTheme
107
111
  } from "./chunk-ZEWWZJPZ.mjs";
108
112
  import {
109
113
  isSecretDocsConfigKey
110
- } from "./chunk-EJCVG25Z.mjs";
114
+ } from "./chunk-S3R4JDRO.mjs";
111
115
  import {
112
116
  resolveFarmAuthConfig,
113
117
  resolveFarmDevIndicatorsConfig
114
- } from "./chunk-TPA2PV5J.mjs";
118
+ } from "./chunk-5V6HSJFG.mjs";
115
119
  import {
116
120
  normalizeRouteRules
117
121
  } from "./chunk-YVVY276M.mjs";
@@ -163,7 +167,7 @@ import {
163
167
  resolveFarmRenderer,
164
168
  resolveFarmRendererAppSetup,
165
169
  resolveFarmRendererModule
166
- } from "./chunk-RMLR5RMH.mjs";
170
+ } from "./chunk-RGTZAM6Y.mjs";
167
171
  import {
168
172
  resolveFarmImageConfig
169
173
  } from "./chunk-AOIUYHPH.mjs";
@@ -304,7 +308,7 @@ import {
304
308
  } from "./chunk-EILUVBKS.mjs";
305
309
  import {
306
310
  FARM_VERSION
307
- } from "./chunk-OP5VI4TP.mjs";
311
+ } from "./chunk-NKVBWPXR.mjs";
308
312
  import {
309
313
  normalizeFarmAPIConfig
310
314
  } from "./chunk-W6QLRQ3V.mjs";
@@ -503,6 +507,14 @@ var RouteManager = class _RouteManager {
503
507
  this.programmaticPages = /* @__PURE__ */ new Map();
504
508
  this.programmaticLayouts = /* @__PURE__ */ new Map();
505
509
  this.programmaticClientRoutes = mergeProgrammaticClientRoutes([]);
510
+ // The hydration settings each route rule returned, by file.
511
+ this.rendererRouteHydration = /* @__PURE__ */ new Map();
512
+ this.disposeRendererHydration = () => {
513
+ };
514
+ // The directories a renderer's route rules scan, and the files they mapped, absolute with `/`
515
+ // separators.
516
+ this.rendererRouteDirs = [];
517
+ this.rendererRouteModules = /* @__PURE__ */ new Set();
506
518
  this.discovery = Promise.resolve();
507
519
  this.reportedIslandsErrors = /* @__PURE__ */ new Set();
508
520
  // Each route module's hydration plan from the last plan, with the source files it read, so a dev
@@ -553,10 +565,65 @@ var RouteManager = class _RouteManager {
553
565
  this.programmaticPages = next.programmaticPages;
554
566
  this.programmaticLayouts = next.programmaticLayouts;
555
567
  this.programmaticClientRoutes = next.programmaticClientRoutes;
568
+ this.rendererNotFoundPath = next.rendererNotFoundPath;
569
+ this.rendererRouteHydration = next.rendererRouteHydration;
570
+ this.rendererRouteDirs = next.rendererRouteDirs;
571
+ this.rendererRouteModules = next.rendererRouteModules;
572
+ this.recordRendererHydration();
556
573
  });
557
574
  this.discovery = discovery;
558
575
  return discovery;
559
576
  }
577
+ /**
578
+ * Hands the client-module reader the renderer's hydration levels for this scan's pages and
579
+ * layouts (`hydration` and route rules on the renderer descriptor).
580
+ */
581
+ recordRendererHydration() {
582
+ this.disposeRendererHydration();
583
+ const renderer = this.config.renderer;
584
+ const routeModules = [];
585
+ for (const [kind, entries] of [
586
+ ["page", this.routes.values()],
587
+ ["layout", this.layouts.values()]
588
+ ]) {
589
+ for (const entry of entries) {
590
+ if (entry.source === "programmatic") continue;
591
+ routeModules.push({
592
+ modulePath: entry.modulePath,
593
+ kind,
594
+ hydration: this.rendererRouteHydration.get(entry.modulePath)
595
+ });
596
+ }
597
+ }
598
+ this.disposeRendererHydration = setFarmRendererHydrationScope(
599
+ getFarmSourceRoots(this.config).map((source) => source.root),
600
+ renderer,
601
+ routeModules
602
+ );
603
+ }
604
+ /**
605
+ * The not-found page a renderer's `routes()` mapped, null when it mapped none, or undefined when
606
+ * the renderer has no route rules and Farm looks for `src/app/not-found.*` itself.
607
+ */
608
+ getRendererNotFoundPath() {
609
+ return this.rendererNotFoundPath;
610
+ }
611
+ /**
612
+ * Whether `file` is under a directory a renderer's route rules scan, where adding or removing a
613
+ * file can change the routes.
614
+ */
615
+ isRendererRouteFile(file) {
616
+ if (this.rendererRouteDirs.length === 0) return false;
617
+ const normalized = file.replace(/\\/g, "/");
618
+ return this.rendererRouteDirs.some((dir) => normalized.startsWith(`${dir}/`));
619
+ }
620
+ /**
621
+ * Whether `file` is a page, layout, loading, error or not-found file a renderer's route rules
622
+ * mapped, where an edit can change what the route renders or whether it hydrates.
623
+ */
624
+ isRendererRouteModule(file) {
625
+ return this.rendererRouteModules.size > 0 && this.rendererRouteModules.has(file.replace(/\\/g, "/"));
626
+ }
560
627
  /** Fill this manager's empty route tables. Only a fresh manager made by discoverRoutes runs it. */
561
628
  async discoverInto() {
562
629
  const programmaticClientRoutes = [];
@@ -1407,11 +1474,38 @@ var RouteManager = class _RouteManager {
1407
1474
  (extension) => extension.slice(1)
1408
1475
  );
1409
1476
  const componentGlob = componentExtensions.join(",");
1410
- const pageFiles = await safeGlobFiles(`**/page.{${componentGlob},md,mdx}`, appDir);
1477
+ const rendererRoutes = await resolveFarmRendererRoutes({
1478
+ renderer: this.config.renderer,
1479
+ root: source.root,
1480
+ srcDir: source.srcDir
1481
+ });
1482
+ const routeModulePaths = /* @__PURE__ */ new Map();
1483
+ const modulePathOf = (file) => routeModulePaths.get(file) ?? path2.join(appDir, file);
1484
+ const rendererFiles = (kind) => (rendererRoutes?.entries ?? []).filter((entry) => entry.kind === kind).map((entry) => {
1485
+ routeModulePaths.set(entry.routeFile, entry.modulePath);
1486
+ if (entry.hydration.hydrate !== void 0 || entry.hydration.strategy !== void 0) {
1487
+ this.rendererRouteHydration.set(entry.modulePath, entry.hydration);
1488
+ }
1489
+ return entry.routeFile;
1490
+ });
1491
+ if (rendererRoutes) {
1492
+ this.rendererRouteDirs.push(rendererRoutes.dir.replace(/\\/g, "/"));
1493
+ for (const entry of rendererRoutes.entries) {
1494
+ this.rendererRouteModules.add(entry.modulePath.replace(/\\/g, "/"));
1495
+ }
1496
+ const notFound = rendererRoutes.entries.find((entry) => entry.kind === "not-found");
1497
+ if (notFound || this.rendererNotFoundPath === void 0) {
1498
+ this.rendererNotFoundPath = notFound?.modulePath ?? null;
1499
+ }
1500
+ }
1501
+ const pageFiles = rendererRoutes ? [
1502
+ ...rendererFiles("page"),
1503
+ ...await safeGlobFiles(`**/@*/**/page.{${componentGlob},md,mdx}`, appDir)
1504
+ ] : await safeGlobFiles(`**/page.{${componentGlob},md,mdx}`, appDir);
1411
1505
  const slotDefaultFiles = await safeGlobFiles(`**/@*/**/default.{${componentGlob}}`, appDir);
1412
- const layoutFiles = await safeGlobFiles(`**/layout.{${componentGlob}}`, appDir);
1413
- const loadingFiles = await safeGlobFiles(`**/loading.{${componentGlob}}`, appDir);
1414
- const errorFiles = await safeGlobFiles(`**/error.{${componentGlob}}`, appDir);
1506
+ const layoutFiles = rendererRoutes ? rendererFiles("layout") : await safeGlobFiles(`**/layout.{${componentGlob}}`, appDir);
1507
+ const loadingFiles = rendererRoutes ? rendererFiles("loading") : await safeGlobFiles(`**/loading.{${componentGlob}}`, appDir);
1508
+ const errorFiles = rendererRoutes ? rendererFiles("error") : await safeGlobFiles(`**/error.{${componentGlob}}`, appDir);
1415
1509
  const metadataImageFiles = await safeGlobFiles(
1416
1510
  `**/{opengraph-image,twitter-image}.{${componentGlob},png,jpg,jpeg,gif,webp}`,
1417
1511
  appDir
@@ -1439,19 +1533,19 @@ var RouteManager = class _RouteManager {
1439
1533
  const markdownFiles = group.files.filter(isFarmMarkdownPageFile);
1440
1534
  if (componentFiles.length > 1) {
1441
1535
  throw new Error(
1442
- `Duplicate page route "${pattern}". Found ${componentFiles.map((file) => path2.join(appDir, file)).join(" and ")}.`
1536
+ `Duplicate page route "${pattern}". Found ${componentFiles.map(modulePathOf).join(" and ")}.`
1443
1537
  );
1444
1538
  }
1445
1539
  if (markdownFiles.length > 1) {
1446
1540
  throw new Error(
1447
- `Duplicate markdown representation for page route "${pattern}". Found ${markdownFiles.map((file) => path2.join(appDir, file)).join(" and ")}.`
1541
+ `Duplicate markdown representation for page route "${pattern}". Found ${markdownFiles.map(modulePathOf).join(" and ")}.`
1448
1542
  );
1449
1543
  }
1450
1544
  const componentFile = componentFiles[0];
1451
1545
  const markdownFile = markdownFiles[0];
1452
1546
  const primaryFile = componentFile || markdownFile;
1453
1547
  if (!primaryFile) continue;
1454
- const modulePath = path2.join(appDir, primaryFile);
1548
+ const modulePath = modulePathOf(primaryFile);
1455
1549
  const existing = this.routes.get(pattern);
1456
1550
  if (existing?.sourceRoot === source.root) {
1457
1551
  throw new Error(
@@ -1462,7 +1556,7 @@ var RouteManager = class _RouteManager {
1462
1556
  route: group.route,
1463
1557
  modulePath,
1464
1558
  ...markdownFile ? {
1465
- markdownSourcePath: path2.join(appDir, markdownFile)
1559
+ markdownSourcePath: modulePathOf(markdownFile)
1466
1560
  } : {},
1467
1561
  pattern,
1468
1562
  ...getPageDirectoryField(group.route, pattern),
@@ -1477,7 +1571,7 @@ var RouteManager = class _RouteManager {
1477
1571
  ]) {
1478
1572
  for (const file of files) {
1479
1573
  const route = parseRoutePath(file);
1480
- const modulePath = path2.join(appDir, file);
1574
+ const modulePath = modulePathOf(file);
1481
1575
  const pattern = createRouteDirectoryPattern(route);
1482
1576
  const existing = target.get(pattern);
1483
1577
  if (existing?.sourceRoot === source.root) {
@@ -1779,8 +1873,6 @@ var RouteManager = class _RouteManager {
1779
1873
  getDocsAdapterRoutes() {
1780
1874
  const docs = this.config.docs;
1781
1875
  if (!docs || typeof docs !== "object" || !docs.enabled) return void 0;
1782
- const usesAdapter = Boolean(docs.adapter && docs.adapter.server && docs.adapter.react);
1783
- if (usesAdapter && !isReactRenderer(this.config.renderer)) return void 0;
1784
1876
  const entry = `/${String(docs.entry || "docs").replace(/^\/+|\/+$/g, "")}`;
1785
1877
  return {
1786
1878
  owns: (routePath) => entry === "/" || routePath === entry || routePath.startsWith(`${entry}/`),
@@ -3320,7 +3412,7 @@ import { Readable, Writable } from "stream";
3320
3412
  // src/not-found.ts
3321
3413
  import fs4 from "fs";
3322
3414
  import path7 from "path";
3323
- function resolveFarmNotFoundComponentPath(config, appDirs) {
3415
+ function resolveFarmNotFoundComponentPath(config, appDirs, discovered) {
3324
3416
  const extensions = getFarmRendererComponentExtensions(config.renderer);
3325
3417
  const configuredPath = config.notFound?.component?.trim();
3326
3418
  if (configuredPath) {
@@ -3335,6 +3427,7 @@ function resolveFarmNotFoundComponentPath(config, appDirs) {
3335
3427
  }
3336
3428
  return componentPath;
3337
3429
  }
3430
+ if (discovered !== void 0) return discovered;
3338
3431
  let discoveredPath = null;
3339
3432
  for (const appDir of appDirs) {
3340
3433
  for (const extension of extensions) {
@@ -7079,11 +7172,19 @@ window.__FARM_I18N__ = ${getFarmI18nClientSnapshot() ? serializeInlineValue(getF
7079
7172
  const snapshot = getFarmI18nClientSnapshot();
7080
7173
  return snapshot && url.startsWith("/") && !url.startsWith("//") ? localizeFarmHref(url, snapshot.locale, snapshot) : url;
7081
7174
  }
7175
+ /**
7176
+ * The not-found page the renderer's `routes()` mapped, or undefined when the renderer has no route
7177
+ * rules and the not-found lookup scans `src/app` as before.
7178
+ */
7179
+ getRendererNotFoundPath() {
7180
+ return this.config.renderer?.routes ? this.routeManager.getRendererNotFoundPath() : void 0;
7181
+ }
7082
7182
  /** The app's not-found component, or null when it relies on the built-in page. */
7083
7183
  async loadNotFoundModule() {
7084
7184
  const notFoundPath = resolveFarmNotFoundComponentPath(
7085
7185
  this.config,
7086
- getFarmAppDirectories(this.config)
7186
+ getFarmAppDirectories(this.config),
7187
+ this.getRendererNotFoundPath()
7087
7188
  );
7088
7189
  if (!notFoundPath) return null;
7089
7190
  return await this.routeManager.loadRouteModule(notFoundPath);
@@ -7165,9 +7266,9 @@ window.__FARM_I18N__ = ${getFarmI18nClientSnapshot() ? serializeInlineValue(getF
7165
7266
  const appDir = path10.join(this.config.root, this.config.srcDir, "app");
7166
7267
  const notFoundExtensions = getFarmRendererComponentExtensions(this.config.renderer);
7167
7268
  let layoutModule = null;
7269
+ const rendererRootLayout = this.config.renderer?.routes ? this.routeManager.getLayouts().get("/")?.modulePath : void 0;
7168
7270
  try {
7169
- for (const ext of notFoundExtensions) {
7170
- const layoutPath = path10.join(appDir, `layout${ext}`);
7271
+ for (const layoutPath of rendererRootLayout ? [rendererRootLayout] : notFoundExtensions.map((ext) => path10.join(appDir, `layout${ext}`))) {
7171
7272
  if (fs7.existsSync(layoutPath)) {
7172
7273
  layoutModule = await this.routeManager.loadLayoutModule(layoutPath);
7173
7274
  break;
@@ -7175,7 +7276,8 @@ window.__FARM_I18N__ = ${getFarmI18nClientSnapshot() ? serializeInlineValue(getF
7175
7276
  }
7176
7277
  const notFoundPath = resolveFarmNotFoundComponentPath(
7177
7278
  this.config,
7178
- getFarmAppDirectories(this.config)
7279
+ getFarmAppDirectories(this.config),
7280
+ this.getRendererNotFoundPath()
7179
7281
  );
7180
7282
  if (notFoundPath) {
7181
7283
  const notFoundModule = await this.loadNotFoundModule();
@@ -7527,6 +7629,7 @@ var FarmApp = class {
7527
7629
  );
7528
7630
  }
7529
7631
  async verifyAppStructure() {
7632
+ if (typeof this.config.renderer?.routes === "function") return;
7530
7633
  const appDirs = getFarmAppDirectories(this.config);
7531
7634
  const hasAppDirectory = (await Promise.all(appDirs.map((appDir) => fileExists(appDir)))).some(
7532
7635
  Boolean
@@ -3,7 +3,7 @@
3
3
  var _chunkPWMJBCANcjs = require('./chunk-PWMJBCAN.cjs');
4
4
 
5
5
 
6
- var _chunkLM2ZDNDDcjs = require('./chunk-LM2ZDNDD.cjs');
6
+ var _chunk55UJGUBPcjs = require('./chunk-55UJGUBP.cjs');
7
7
 
8
8
 
9
9
 
@@ -163,7 +163,7 @@ async function createFarmRscViteConfig(userConfig, options) {
163
163
  server: { environmentName: "rsc" },
164
164
  config: {
165
165
  preset: options.preset,
166
- outputDir: options.outputDir && _chunkLM2ZDNDDcjs.resolveDeployOutputPath.call(void 0, root, options.outputDir)
166
+ outputDir: options.outputDir && _chunk55UJGUBPcjs.resolveDeployOutputPath.call(void 0, root, options.outputDir)
167
167
  }
168
168
  })
169
169
  ]