@timber-js/app 0.2.0-alpha.25 → 0.2.0-alpha.250

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 (2618) hide show
  1. package/LICENSE +8 -0
  2. package/agent-skill.md +389 -0
  3. package/bin/timber.mjs +15 -1
  4. package/dist/_chunks/actions-DH_TCxJb.js +1429 -0
  5. package/dist/_chunks/actions-DH_TCxJb.js.map +1 -0
  6. package/dist/_chunks/als-registry-C-iwbtvI.js +44 -0
  7. package/dist/_chunks/als-registry-C-iwbtvI.js.map +1 -0
  8. package/dist/_chunks/als-slots-CVTF-AMz.js +25 -0
  9. package/dist/_chunks/als-slots-CVTF-AMz.js.map +1 -0
  10. package/dist/_chunks/base-path-DDIx0FXe.js +79 -0
  11. package/dist/_chunks/base-path-DDIx0FXe.js.map +1 -0
  12. package/dist/_chunks/build-output-helper-5UsltK-S.js +398 -0
  13. package/dist/_chunks/build-output-helper-5UsltK-S.js.map +1 -0
  14. package/dist/_chunks/cache-api-D3HmgsFh.js +1282 -0
  15. package/dist/_chunks/cache-api-D3HmgsFh.js.map +1 -0
  16. package/dist/_chunks/canonicalize-CqK135BN.js +117 -0
  17. package/dist/_chunks/canonicalize-CqK135BN.js.map +1 -0
  18. package/dist/_chunks/chains-BpvDwp08.js +266 -0
  19. package/dist/_chunks/chains-BpvDwp08.js.map +1 -0
  20. package/dist/_chunks/chains-CjlZZ5ad.js +1 -0
  21. package/dist/_chunks/classify-Bbb_lKjH.js +146 -0
  22. package/dist/_chunks/classify-Bbb_lKjH.js.map +1 -0
  23. package/dist/_chunks/cli-check-CetL-6Us.js +252 -0
  24. package/dist/_chunks/cli-check-CetL-6Us.js.map +1 -0
  25. package/dist/_chunks/cli-context-BbwVqarO.js +1 -0
  26. package/dist/_chunks/cli-context-DZh5v0yd.js +77 -0
  27. package/dist/_chunks/cli-context-DZh5v0yd.js.map +1 -0
  28. package/dist/_chunks/cli-dev-status-prPMLU8G.js +138 -0
  29. package/dist/_chunks/cli-dev-status-prPMLU8G.js.map +1 -0
  30. package/dist/_chunks/cli-init-BoXOYYil.js +196 -0
  31. package/dist/_chunks/cli-init-BoXOYYil.js.map +1 -0
  32. package/dist/_chunks/cli-schema-sync-CWkGFlYu.js +289 -0
  33. package/dist/_chunks/cli-schema-sync-CWkGFlYu.js.map +1 -0
  34. package/dist/_chunks/cli-schema-sync-Dyvdkv_I.js +1 -0
  35. package/dist/_chunks/client-dep-entries-Dka67elj.js +109 -0
  36. package/dist/_chunks/client-dep-entries-Dka67elj.js.map +1 -0
  37. package/dist/_chunks/cloudflare-9dbhVOxS.js +1314 -0
  38. package/dist/_chunks/cloudflare-9dbhVOxS.js.map +1 -0
  39. package/dist/_chunks/codec-registry-C8hOGmZo.js +13 -0
  40. package/dist/_chunks/codec-registry-C8hOGmZo.js.map +1 -0
  41. package/dist/_chunks/codegen-BxJGInWa.js +535 -0
  42. package/dist/_chunks/codegen-BxJGInWa.js.map +1 -0
  43. package/dist/_chunks/convention-lint-BWbKAV4x.js +982 -0
  44. package/dist/_chunks/convention-lint-BWbKAV4x.js.map +1 -0
  45. package/dist/_chunks/dev-discovery-YnabkCKD.js +238 -0
  46. package/dist/_chunks/dev-discovery-YnabkCKD.js.map +1 -0
  47. package/dist/_chunks/dev-server-BZxFJNih.js +2836 -0
  48. package/dist/_chunks/dev-server-BZxFJNih.js.map +1 -0
  49. package/dist/_chunks/dev-server-C72bB9Kg.js +1 -0
  50. package/dist/_chunks/dev-span-0aG7Q_Ph.js +107 -0
  51. package/dist/_chunks/dev-span-0aG7Q_Ph.js.map +1 -0
  52. package/dist/_chunks/dev-store-BvdqtHvK.js +327 -0
  53. package/dist/_chunks/dev-store-BvdqtHvK.js.map +1 -0
  54. package/dist/_chunks/dist-ob734WH3.js +401 -0
  55. package/dist/_chunks/dist-ob734WH3.js.map +1 -0
  56. package/dist/_chunks/error-boundary-BR21tTQc.js +1284 -0
  57. package/dist/_chunks/error-boundary-BR21tTQc.js.map +1 -0
  58. package/dist/_chunks/fast-hash-DddxkU5Y.js +40 -0
  59. package/dist/_chunks/fast-hash-DddxkU5Y.js.map +1 -0
  60. package/dist/_chunks/flight-source-node-BeF00Wo_.js +520 -0
  61. package/dist/_chunks/flight-source-node-BeF00Wo_.js.map +1 -0
  62. package/dist/_chunks/format-DuPOoXUP.js +13 -0
  63. package/dist/_chunks/format-DuPOoXUP.js.map +1 -0
  64. package/dist/_chunks/fs-identity-BmQ_Agg-.js +205 -0
  65. package/dist/_chunks/fs-identity-BmQ_Agg-.js.map +1 -0
  66. package/dist/_chunks/global-context-DbxNWeBP.js +47 -0
  67. package/dist/_chunks/global-context-DbxNWeBP.js.map +1 -0
  68. package/dist/_chunks/graph-cache-B1LAg4t7.js +219 -0
  69. package/dist/_chunks/graph-cache-B1LAg4t7.js.map +1 -0
  70. package/dist/_chunks/href-8l5VD23D.js +164 -0
  71. package/dist/_chunks/href-8l5VD23D.js.map +1 -0
  72. package/dist/_chunks/href-validation-DNg-zV7u.js +102 -0
  73. package/dist/_chunks/href-validation-DNg-zV7u.js.map +1 -0
  74. package/dist/_chunks/interception-D1dCGNmQ.js +1174 -0
  75. package/dist/_chunks/interception-D1dCGNmQ.js.map +1 -0
  76. package/dist/_chunks/json-lossy-check-DpXneTBm.js +65 -0
  77. package/dist/_chunks/json-lossy-check-DpXneTBm.js.map +1 -0
  78. package/dist/_chunks/key-headers-CVpa6fpW.js +44 -0
  79. package/dist/_chunks/key-headers-CVpa6fpW.js.map +1 -0
  80. package/dist/_chunks/live-graph-DXhz6A_X.js +150 -0
  81. package/dist/_chunks/live-graph-DXhz6A_X.js.map +1 -0
  82. package/dist/_chunks/logger-D1sWX2I0.js +785 -0
  83. package/dist/_chunks/logger-D1sWX2I0.js.map +1 -0
  84. package/dist/_chunks/merge-search-params-7o_5yX0L.js +111 -0
  85. package/dist/_chunks/merge-search-params-7o_5yX0L.js.map +1 -0
  86. package/dist/_chunks/metadata-routes-MXNjWOt5.js +253 -0
  87. package/dist/_chunks/metadata-routes-MXNjWOt5.js.map +1 -0
  88. package/dist/_chunks/navigation-root-AuCD35Sv.js +306 -0
  89. package/dist/_chunks/navigation-root-AuCD35Sv.js.map +1 -0
  90. package/dist/_chunks/node-response-Cp62CtH1.js +284 -0
  91. package/dist/_chunks/node-response-Cp62CtH1.js.map +1 -0
  92. package/dist/_chunks/param-value-DqlGfF57.js +65 -0
  93. package/dist/_chunks/param-value-DqlGfF57.js.map +1 -0
  94. package/dist/_chunks/plugin-context-BtaQcMuh.js +327 -0
  95. package/dist/_chunks/plugin-context-BtaQcMuh.js.map +1 -0
  96. package/dist/_chunks/plugin-context-I1dvGccO.js +1 -0
  97. package/dist/_chunks/poison-rules-Bmz-lCPi.js +109 -0
  98. package/dist/_chunks/poison-rules-Bmz-lCPi.js.map +1 -0
  99. package/dist/_chunks/poison-scan-DdkJoHvP.js +98 -0
  100. package/dist/_chunks/poison-scan-DdkJoHvP.js.map +1 -0
  101. package/dist/_chunks/purge-store-8BqLAYZ1.js +13 -0
  102. package/dist/_chunks/purge-store-8BqLAYZ1.js.map +1 -0
  103. package/dist/_chunks/render-timeout-MrrqD1wd.js +53 -0
  104. package/dist/_chunks/render-timeout-MrrqD1wd.js.map +1 -0
  105. package/dist/_chunks/resolve-schema-B-aCuTu3.js +49 -0
  106. package/dist/_chunks/resolve-schema-B-aCuTu3.js.map +1 -0
  107. package/dist/_chunks/route-methods-Dk2kZc0n.js +36 -0
  108. package/dist/_chunks/route-methods-Dk2kZc0n.js.map +1 -0
  109. package/dist/_chunks/rsc-cache-key-BGvUtMtN.js +278 -0
  110. package/dist/_chunks/rsc-cache-key-BGvUtMtN.js.map +1 -0
  111. package/dist/_chunks/rsc-error-envelope-D6gNqh52.js +19 -0
  112. package/dist/_chunks/rsc-error-envelope-D6gNqh52.js.map +1 -0
  113. package/dist/_chunks/rsc-media-type-m8jz9u6_.js +60 -0
  114. package/dist/_chunks/rsc-media-type-m8jz9u6_.js.map +1 -0
  115. package/dist/_chunks/rsc-payload-path-EphpDB-J.js +53 -0
  116. package/dist/_chunks/rsc-payload-path-EphpDB-J.js.map +1 -0
  117. package/dist/_chunks/scan-CyizcBiX.js +139 -0
  118. package/dist/_chunks/scan-CyizcBiX.js.map +1 -0
  119. package/dist/_chunks/scanner-B6V2RqqF.js +994 -0
  120. package/dist/_chunks/scanner-B6V2RqqF.js.map +1 -0
  121. package/dist/_chunks/schema-bridge-DyRs3cqy.js +235 -0
  122. package/dist/_chunks/schema-bridge-DyRs3cqy.js.map +1 -0
  123. package/dist/_chunks/segment-classify-Ho8jXWeC.js +195 -0
  124. package/dist/_chunks/segment-classify-Ho8jXWeC.js.map +1 -0
  125. package/dist/_chunks/segment-context-GAyTjjtS.js +33 -0
  126. package/dist/_chunks/segment-context-GAyTjjtS.js.map +1 -0
  127. package/dist/_chunks/singleflight-CzoOVB9Y.js +53 -0
  128. package/dist/_chunks/singleflight-CzoOVB9Y.js.map +1 -0
  129. package/dist/_chunks/sizeof-BKA6qOZq.js +35 -0
  130. package/dist/_chunks/sizeof-BKA6qOZq.js.map +1 -0
  131. package/dist/_chunks/ssr-data-BfsCqCLl.js +47 -0
  132. package/dist/_chunks/ssr-data-BfsCqCLl.js.map +1 -0
  133. package/dist/_chunks/use-query-states-D3MMl-KM.js +223 -0
  134. package/dist/_chunks/use-query-states-D3MMl-KM.js.map +1 -0
  135. package/dist/_chunks/walkers-BAZoAlfI.js +142 -0
  136. package/dist/_chunks/walkers-BAZoAlfI.js.map +1 -0
  137. package/dist/_chunks/write-file-atomic-DW8m_Atv.js +31 -0
  138. package/dist/_chunks/write-file-atomic-DW8m_Atv.js.map +1 -0
  139. package/dist/adapters/build-output-helper.d.ts +81 -0
  140. package/dist/adapters/build-output-helper.d.ts.map +1 -0
  141. package/dist/adapters/canonicalize-module.d.ts +8 -0
  142. package/dist/adapters/canonicalize-module.d.ts.map +1 -0
  143. package/dist/adapters/cloudflare-dev.d.ts +109 -0
  144. package/dist/adapters/cloudflare-dev.d.ts.map +1 -0
  145. package/dist/adapters/cloudflare-dev.js +73 -0
  146. package/dist/adapters/cloudflare-dev.js.map +1 -0
  147. package/dist/adapters/cloudflare-kv-cache.d.ts +64 -0
  148. package/dist/adapters/cloudflare-kv-cache.d.ts.map +1 -0
  149. package/dist/adapters/cloudflare-kv-cache.js +122 -0
  150. package/dist/adapters/cloudflare-kv-cache.js.map +1 -0
  151. package/dist/adapters/cloudflare.d.ts +217 -24
  152. package/dist/adapters/cloudflare.d.ts.map +1 -1
  153. package/dist/adapters/cloudflare.js +1 -188
  154. package/dist/adapters/compress-module.d.ts +25 -4
  155. package/dist/adapters/compress-module.d.ts.map +1 -1
  156. package/dist/adapters/fs-identity.d.ts +63 -0
  157. package/dist/adapters/fs-identity.d.ts.map +1 -0
  158. package/dist/adapters/nitro-immutable-assets.d.ts +47 -0
  159. package/dist/adapters/nitro-immutable-assets.d.ts.map +1 -0
  160. package/dist/adapters/nitro-presets.d.ts +37 -0
  161. package/dist/adapters/nitro-presets.d.ts.map +1 -0
  162. package/dist/adapters/nitro-preview.d.ts +65 -0
  163. package/dist/adapters/nitro-preview.d.ts.map +1 -0
  164. package/dist/adapters/nitro.d.ts +69 -38
  165. package/dist/adapters/nitro.d.ts.map +1 -1
  166. package/dist/adapters/nitro.js +855 -349
  167. package/dist/adapters/nitro.js.map +1 -1
  168. package/dist/adapters/shared.d.ts +85 -0
  169. package/dist/adapters/shared.d.ts.map +1 -0
  170. package/dist/adapters/types.d.ts +124 -16
  171. package/dist/adapters/types.d.ts.map +1 -1
  172. package/dist/adapters/types.js +0 -0
  173. package/dist/analyze/chains.d.ts +124 -0
  174. package/dist/analyze/chains.d.ts.map +1 -0
  175. package/dist/analyze/classify.d.ts +153 -0
  176. package/dist/analyze/classify.d.ts.map +1 -0
  177. package/dist/analyze/crawl-entry.d.ts +17 -0
  178. package/dist/analyze/crawl-entry.d.ts.map +1 -0
  179. package/dist/analyze/crawl-entry.js +312 -0
  180. package/dist/analyze/crawl-entry.js.map +1 -0
  181. package/dist/analyze/crawl.d.ts +134 -0
  182. package/dist/analyze/crawl.d.ts.map +1 -0
  183. package/dist/analyze/graph-cache.d.ts +104 -0
  184. package/dist/analyze/graph-cache.d.ts.map +1 -0
  185. package/dist/analyze/graph-command.d.ts +43 -0
  186. package/dist/analyze/graph-command.d.ts.map +1 -0
  187. package/dist/analyze/graph-command.js +386 -0
  188. package/dist/analyze/graph-command.js.map +1 -0
  189. package/dist/analyze/live-graph.d.ts +81 -0
  190. package/dist/analyze/live-graph.d.ts.map +1 -0
  191. package/dist/analyze/poison-rules.d.ts +72 -0
  192. package/dist/analyze/poison-rules.d.ts.map +1 -0
  193. package/dist/analyze/poison-scan.d.ts +48 -0
  194. package/dist/analyze/poison-scan.d.ts.map +1 -0
  195. package/dist/analyze/scan.d.ts +73 -0
  196. package/dist/analyze/scan.d.ts.map +1 -0
  197. package/dist/cache/cache-api.d.ts +48 -0
  198. package/dist/cache/cache-api.d.ts.map +1 -0
  199. package/dist/cache/fast-hash.d.ts +5 -0
  200. package/dist/cache/fast-hash.d.ts.map +1 -1
  201. package/dist/cache/guarded-read.d.ts +29 -0
  202. package/dist/cache/guarded-read.d.ts.map +1 -0
  203. package/dist/cache/handler-store.d.ts +45 -0
  204. package/dist/cache/handler-store.d.ts.map +1 -0
  205. package/dist/cache/index.d.ts +32 -9
  206. package/dist/cache/index.d.ts.map +1 -1
  207. package/dist/cache/index.js +4 -326
  208. package/dist/cache/invalidation-epoch.d.ts +50 -0
  209. package/dist/cache/invalidation-epoch.d.ts.map +1 -0
  210. package/dist/cache/json-lossy-check.d.ts +11 -0
  211. package/dist/cache/json-lossy-check.d.ts.map +1 -0
  212. package/dist/cache/key-discipline.d.ts +61 -0
  213. package/dist/cache/key-discipline.d.ts.map +1 -0
  214. package/dist/cache/redis-handler.d.ts +140 -9
  215. package/dist/cache/redis-handler.d.ts.map +1 -1
  216. package/dist/cache/singleflight.d.ts +31 -2
  217. package/dist/cache/singleflight.d.ts.map +1 -1
  218. package/dist/cache/sizeof.d.ts +22 -0
  219. package/dist/cache/sizeof.d.ts.map +1 -0
  220. package/dist/cache/stable-stringify.d.ts +15 -0
  221. package/dist/cache/stable-stringify.d.ts.map +1 -1
  222. package/dist/cache/store.d.ts +53 -0
  223. package/dist/cache/store.d.ts.map +1 -0
  224. package/dist/cache/stores/cloudflare-kv.d.ts +38 -0
  225. package/dist/cache/stores/cloudflare-kv.d.ts.map +1 -0
  226. package/dist/cache/stores/cloudflare-kv.js +28 -0
  227. package/dist/cache/stores/cloudflare-kv.js.map +1 -0
  228. package/dist/cache/stores/memory.d.ts +42 -0
  229. package/dist/cache/stores/memory.d.ts.map +1 -0
  230. package/dist/cache/stores/memory.js +89 -0
  231. package/dist/cache/stores/memory.js.map +1 -0
  232. package/dist/cache/stores/redis.d.ts +69 -0
  233. package/dist/cache/stores/redis.d.ts.map +1 -0
  234. package/dist/cache/stores/redis.js +34 -0
  235. package/dist/cache/stores/redis.js.map +1 -0
  236. package/dist/cache/stores/vercel.d.ts +36 -0
  237. package/dist/cache/stores/vercel.d.ts.map +1 -0
  238. package/dist/cache/stores/vercel.js +32 -0
  239. package/dist/cache/stores/vercel.js.map +1 -0
  240. package/dist/cache/tag-aware-handler.d.ts +51 -0
  241. package/dist/cache/tag-aware-handler.d.ts.map +1 -0
  242. package/dist/cache/timber-cache.d.ts +25 -11
  243. package/dist/cache/timber-cache.d.ts.map +1 -1
  244. package/dist/cdn/cloudflare-purge.d.ts +23 -0
  245. package/dist/cdn/cloudflare-purge.d.ts.map +1 -0
  246. package/dist/cdn/cloudflare-purge.js +29 -0
  247. package/dist/cdn/cloudflare-purge.js.map +1 -0
  248. package/dist/cdn/fastly-purge.d.ts +25 -0
  249. package/dist/cdn/fastly-purge.d.ts.map +1 -0
  250. package/dist/cdn/fastly-purge.js +32 -0
  251. package/dist/cdn/fastly-purge.js.map +1 -0
  252. package/dist/cdn/headers.d.ts +97 -0
  253. package/dist/cdn/headers.d.ts.map +1 -0
  254. package/dist/cdn/index.d.ts +5 -0
  255. package/dist/cdn/index.d.ts.map +1 -0
  256. package/dist/cdn/index.js +93 -0
  257. package/dist/cdn/index.js.map +1 -0
  258. package/dist/cdn/purge-store.d.ts +32 -0
  259. package/dist/cdn/purge-store.d.ts.map +1 -0
  260. package/dist/cdn/workers-cache-purge.d.ts +20 -0
  261. package/dist/cdn/workers-cache-purge.d.ts.map +1 -0
  262. package/dist/cdn/workers-cache-purge.js +33 -0
  263. package/dist/cdn/workers-cache-purge.js.map +1 -0
  264. package/dist/cli-check.d.ts +136 -0
  265. package/dist/cli-check.d.ts.map +1 -0
  266. package/dist/cli-context.d.ts +62 -0
  267. package/dist/cli-context.d.ts.map +1 -0
  268. package/dist/cli-dev-status.d.ts +75 -0
  269. package/dist/cli-dev-status.d.ts.map +1 -0
  270. package/dist/cli-init.d.ts +72 -0
  271. package/dist/cli-init.d.ts.map +1 -0
  272. package/dist/cli-schema-sync.d.ts +59 -0
  273. package/dist/cli-schema-sync.d.ts.map +1 -0
  274. package/dist/cli.d.ts +80 -16
  275. package/dist/cli.d.ts.map +1 -1
  276. package/dist/cli.js +210 -69
  277. package/dist/cli.js.map +1 -1
  278. package/dist/client/browser-dev.d.ts +42 -2
  279. package/dist/client/browser-dev.d.ts.map +1 -1
  280. package/dist/client/browser-entry/action-dispatch.d.ts +19 -0
  281. package/dist/client/browser-entry/action-dispatch.d.ts.map +1 -0
  282. package/dist/client/browser-entry/action-queue.d.ts +64 -0
  283. package/dist/client/browser-entry/action-queue.d.ts.map +1 -0
  284. package/dist/client/browser-entry/form-state.d.ts +22 -0
  285. package/dist/client/browser-entry/form-state.d.ts.map +1 -0
  286. package/dist/client/browser-entry/hmr.d.ts +27 -0
  287. package/dist/client/browser-entry/hmr.d.ts.map +1 -0
  288. package/dist/client/browser-entry/hydrate.d.ts +61 -0
  289. package/dist/client/browser-entry/hydrate.d.ts.map +1 -0
  290. package/dist/client/browser-entry/index.d.ts +32 -0
  291. package/dist/client/browser-entry/index.d.ts.map +1 -0
  292. package/dist/client/browser-entry/post-hydration.d.ts +26 -0
  293. package/dist/client/browser-entry/post-hydration.d.ts.map +1 -0
  294. package/dist/client/browser-entry/router-init.d.ts +40 -0
  295. package/dist/client/browser-entry/router-init.d.ts.map +1 -0
  296. package/dist/client/browser-entry/rsc-stream.d.ts +35 -0
  297. package/dist/client/browser-entry/rsc-stream.d.ts.map +1 -0
  298. package/dist/client/browser-entry/scroll.d.ts +31 -0
  299. package/dist/client/browser-entry/scroll.d.ts.map +1 -0
  300. package/dist/client/deny-last-resort.d.ts +29 -0
  301. package/dist/client/deny-last-resort.d.ts.map +1 -0
  302. package/dist/client/dev-pill/index.d.ts +33 -0
  303. package/dist/client/dev-pill/index.d.ts.map +1 -0
  304. package/dist/client/dev-pill/store.d.ts +87 -0
  305. package/dist/client/dev-pill/store.d.ts.map +1 -0
  306. package/dist/client/dev-pill/view.d.ts +9 -0
  307. package/dist/client/dev-pill/view.d.ts.map +1 -0
  308. package/dist/client/document-withdrawal.d.ts +2 -0
  309. package/dist/client/document-withdrawal.d.ts.map +1 -0
  310. package/dist/client/error-boundary.d.ts +59 -9
  311. package/dist/client/error-boundary.d.ts.map +1 -1
  312. package/dist/client/error-boundary.js +1 -126
  313. package/dist/client/error-reconstituter.d.ts +55 -0
  314. package/dist/client/error-reconstituter.d.ts.map +1 -0
  315. package/dist/client/form.d.ts +38 -99
  316. package/dist/client/form.d.ts.map +1 -1
  317. package/dist/client/global-context.d.ts +35 -0
  318. package/dist/client/global-context.d.ts.map +1 -0
  319. package/dist/client/history.d.ts +49 -9
  320. package/dist/client/history.d.ts.map +1 -1
  321. package/dist/client/index.d.ts +23 -33
  322. package/dist/client/index.d.ts.map +1 -1
  323. package/dist/client/index.js +331 -1273
  324. package/dist/client/index.js.map +1 -1
  325. package/dist/client/internal.d.ts +18 -0
  326. package/dist/client/internal.d.ts.map +1 -0
  327. package/dist/client/internal.js +931 -0
  328. package/dist/client/internal.js.map +1 -0
  329. package/dist/client/link.d.ts +75 -71
  330. package/dist/client/link.d.ts.map +1 -1
  331. package/dist/client/location-search.d.ts +12 -0
  332. package/dist/client/location-search.d.ts.map +1 -0
  333. package/dist/client/navigation-api.d.ts +95 -0
  334. package/dist/client/navigation-api.d.ts.map +1 -0
  335. package/dist/client/navigation-commit.d.ts +90 -0
  336. package/dist/client/navigation-commit.d.ts.map +1 -0
  337. package/dist/client/navigation-context.d.ts +75 -37
  338. package/dist/client/navigation-context.d.ts.map +1 -1
  339. package/dist/client/navigation-root.d.ts +106 -0
  340. package/dist/client/navigation-root.d.ts.map +1 -0
  341. package/dist/client/navigation-transition.d.ts +255 -0
  342. package/dist/client/navigation-transition.d.ts.map +1 -0
  343. package/dist/client/nuqs-adapter.d.ts +5 -2
  344. package/dist/client/nuqs-adapter.d.ts.map +1 -1
  345. package/dist/client/outlet-content-cache.d.ts +66 -0
  346. package/dist/client/outlet-content-cache.d.ts.map +1 -0
  347. package/dist/client/outlet-scope-context.d.ts +35 -0
  348. package/dist/client/outlet-scope-context.d.ts.map +1 -0
  349. package/dist/client/params-context.d.ts +80 -0
  350. package/dist/client/params-context.d.ts.map +1 -0
  351. package/dist/client/react-root.d.ts +51 -0
  352. package/dist/client/react-root.d.ts.map +1 -0
  353. package/dist/client/router-effects.d.ts +203 -0
  354. package/dist/client/router-effects.d.ts.map +1 -0
  355. package/dist/client/router-lifecycle.d.ts +107 -0
  356. package/dist/client/router-lifecycle.d.ts.map +1 -0
  357. package/dist/client/router-pipeline.d.ts +81 -0
  358. package/dist/client/router-pipeline.d.ts.map +1 -0
  359. package/dist/client/router-ref.d.ts +2 -2
  360. package/dist/client/router-ref.d.ts.map +1 -1
  361. package/dist/client/router-skew.d.ts +21 -0
  362. package/dist/client/router-skew.d.ts.map +1 -0
  363. package/dist/client/router-types.d.ts +277 -0
  364. package/dist/client/router-types.d.ts.map +1 -0
  365. package/dist/client/router-url.d.ts +24 -0
  366. package/dist/client/router-url.d.ts.map +1 -0
  367. package/dist/client/router.d.ts +1 -97
  368. package/dist/client/router.d.ts.map +1 -1
  369. package/dist/client/rsc-fetch.d.ts +109 -40
  370. package/dist/client/rsc-fetch.d.ts.map +1 -1
  371. package/dist/client/segment-cache.d.ts +139 -66
  372. package/dist/client/segment-cache.d.ts.map +1 -1
  373. package/dist/client/segment-context.d.ts.map +1 -1
  374. package/dist/client/segment-outlet.d.ts +43 -0
  375. package/dist/client/segment-outlet.d.ts.map +1 -0
  376. package/dist/client/shallow-url.d.ts +10 -0
  377. package/dist/client/shallow-url.d.ts.map +1 -0
  378. package/dist/client/slot-context.d.ts +31 -0
  379. package/dist/client/slot-context.d.ts.map +1 -0
  380. package/dist/client/slot-outlet.d.ts +16 -0
  381. package/dist/client/slot-outlet.d.ts.map +1 -0
  382. package/dist/client/slot-provider.d.ts +25 -0
  383. package/dist/client/slot-provider.d.ts.map +1 -0
  384. package/dist/client/ssr-data.d.ts +42 -69
  385. package/dist/client/ssr-data.d.ts.map +1 -1
  386. package/dist/client/stale-client.d.ts +69 -0
  387. package/dist/client/stale-client.d.ts.map +1 -0
  388. package/dist/client/stale-segment.d.ts +39 -0
  389. package/dist/client/stale-segment.d.ts.map +1 -0
  390. package/dist/client/state.d.ts +19 -18
  391. package/dist/client/state.d.ts.map +1 -1
  392. package/dist/client/status-page-marker.d.ts +25 -0
  393. package/dist/client/status-page-marker.d.ts.map +1 -0
  394. package/dist/client/top-loader.d.ts +7 -6
  395. package/dist/client/top-loader.d.ts.map +1 -1
  396. package/dist/client/unload-guard.d.ts +5 -0
  397. package/dist/client/unload-guard.d.ts.map +1 -1
  398. package/dist/client/use-cookie.d.ts +25 -0
  399. package/dist/client/use-cookie.d.ts.map +1 -1
  400. package/dist/client/use-field-state.d.ts +42 -0
  401. package/dist/client/use-field-state.d.ts.map +1 -0
  402. package/dist/client/use-link-status.d.ts +5 -5
  403. package/dist/client/use-link-status.d.ts.map +1 -1
  404. package/dist/client/use-pathname.d.ts +13 -11
  405. package/dist/client/use-pathname.d.ts.map +1 -1
  406. package/dist/client/use-pending-navigation.d.ts +47 -0
  407. package/dist/client/use-pending-navigation.d.ts.map +1 -0
  408. package/dist/client/use-query-states.d.ts +10 -4
  409. package/dist/client/use-query-states.d.ts.map +1 -1
  410. package/dist/client/use-router.d.ts +15 -8
  411. package/dist/client/use-router.d.ts.map +1 -1
  412. package/dist/client/use-search-params.d.ts +15 -8
  413. package/dist/client/use-search-params.d.ts.map +1 -1
  414. package/dist/client/use-segment-params.d.ts +55 -0
  415. package/dist/client/use-segment-params.d.ts.map +1 -0
  416. package/dist/codec.d.ts +69 -0
  417. package/dist/codec.d.ts.map +1 -0
  418. package/dist/codec.js +75 -0
  419. package/dist/codec.js.map +1 -0
  420. package/dist/config-types.d.ts +407 -0
  421. package/dist/config-types.d.ts.map +1 -0
  422. package/dist/config-validation.d.ts +68 -0
  423. package/dist/config-validation.d.ts.map +1 -0
  424. package/dist/cookies/define-cookie.d.ts +58 -25
  425. package/dist/cookies/define-cookie.d.ts.map +1 -1
  426. package/dist/cookies/index.d.ts +3 -2
  427. package/dist/cookies/index.d.ts.map +1 -1
  428. package/dist/cookies/index.js +233 -37
  429. package/dist/cookies/index.js.map +1 -1
  430. package/dist/cookies/json-cookie.d.ts +64 -0
  431. package/dist/cookies/json-cookie.d.ts.map +1 -0
  432. package/dist/cookies/validation.d.ts +34 -0
  433. package/dist/cookies/validation.d.ts.map +1 -0
  434. package/dist/dev-tools/404-page.d.ts +50 -0
  435. package/dist/dev-tools/404-page.d.ts.map +1 -0
  436. package/dist/dev-tools/await-span.d.ts +28 -0
  437. package/dist/dev-tools/await-span.d.ts.map +1 -0
  438. package/dist/dev-tools/browser-logs.d.ts +40 -0
  439. package/dist/dev-tools/browser-logs.d.ts.map +1 -0
  440. package/dist/dev-tools/dev-page-shell.d.ts +95 -0
  441. package/dist/dev-tools/dev-page-shell.d.ts.map +1 -0
  442. package/dist/dev-tools/error-page.d.ts +32 -0
  443. package/dist/dev-tools/error-page.d.ts.map +1 -0
  444. package/dist/dev-tools/holding-server.d.ts +46 -0
  445. package/dist/dev-tools/holding-server.d.ts.map +1 -0
  446. package/dist/dev-tools/hydration-overlay.d.ts +11 -0
  447. package/dist/dev-tools/hydration-overlay.d.ts.map +1 -0
  448. package/dist/dev-tools/index.d.ts +31 -0
  449. package/dist/dev-tools/index.d.ts.map +1 -0
  450. package/dist/dev-tools/instrumentation.d.ts +74 -0
  451. package/dist/dev-tools/instrumentation.d.ts.map +1 -0
  452. package/dist/dev-tools/log-columns.d.ts +50 -0
  453. package/dist/dev-tools/log-columns.d.ts.map +1 -0
  454. package/dist/dev-tools/logger.d.ts +55 -0
  455. package/dist/dev-tools/logger.d.ts.map +1 -0
  456. package/dist/dev-tools/logs.d.ts +60 -0
  457. package/dist/dev-tools/logs.d.ts.map +1 -0
  458. package/dist/dev-tools/overlay.d.ts +50 -0
  459. package/dist/dev-tools/overlay.d.ts.map +1 -0
  460. package/dist/dev-tools/span-sink.d.ts +50 -0
  461. package/dist/dev-tools/span-sink.d.ts.map +1 -0
  462. package/dist/dev-tools/stack-classifier.d.ts +34 -0
  463. package/dist/dev-tools/stack-classifier.d.ts.map +1 -0
  464. package/dist/dev-tools/terminal.d.ts +28 -0
  465. package/dist/dev-tools/terminal.d.ts.map +1 -0
  466. package/dist/fonts/ast-walk.d.ts +68 -0
  467. package/dist/fonts/ast-walk.d.ts.map +1 -0
  468. package/dist/fonts/ast.d.ts +112 -8
  469. package/dist/fonts/ast.d.ts.map +1 -1
  470. package/dist/fonts/bundle.d.ts +68 -0
  471. package/dist/fonts/bundle.d.ts.map +1 -0
  472. package/dist/fonts/css.d.ts +1 -1
  473. package/dist/fonts/dev-middleware.d.ts +22 -0
  474. package/dist/fonts/dev-middleware.d.ts.map +1 -0
  475. package/dist/fonts/fallbacks.d.ts +45 -14
  476. package/dist/fonts/fallbacks.d.ts.map +1 -1
  477. package/dist/fonts/font-metrics.d.ts +54 -0
  478. package/dist/fonts/font-metrics.d.ts.map +1 -0
  479. package/dist/fonts/google.d.ts +5 -3
  480. package/dist/fonts/google.d.ts.map +1 -1
  481. package/dist/fonts/local-fallback.d.ts +64 -0
  482. package/dist/fonts/local-fallback.d.ts.map +1 -0
  483. package/dist/fonts/local.d.ts +5 -5
  484. package/dist/fonts/local.d.ts.map +1 -1
  485. package/dist/fonts/paths.d.ts +43 -0
  486. package/dist/fonts/paths.d.ts.map +1 -0
  487. package/dist/fonts/pipeline.d.ts +177 -0
  488. package/dist/fonts/pipeline.d.ts.map +1 -0
  489. package/dist/fonts/sfnt.d.ts +30 -0
  490. package/dist/fonts/sfnt.d.ts.map +1 -0
  491. package/dist/fonts/transform.d.ts +82 -0
  492. package/dist/fonts/transform.d.ts.map +1 -0
  493. package/dist/fonts/types.d.ts +76 -1
  494. package/dist/fonts/types.d.ts.map +1 -1
  495. package/dist/fonts/virtual-modules.d.ts +77 -0
  496. package/dist/fonts/virtual-modules.d.ts.map +1 -0
  497. package/dist/index.d.ts +38 -181
  498. package/dist/index.d.ts.map +1 -1
  499. package/dist/index.js +10556 -14276
  500. package/dist/index.js.map +1 -1
  501. package/dist/native/rsc/_react/chunks/react-dom.react-server-DBDSYwwu.js +132 -0
  502. package/dist/native/rsc/_react/chunks/react-server-dom-webpack-server.node.development-CAttMzVD.js +3925 -0
  503. package/dist/native/rsc/_react/chunks/react.react-server-Bcw6dpXf.js +539 -0
  504. package/dist/native/rsc/_react/flight-client.js +2867 -0
  505. package/dist/native/rsc/_react/flight-server.js +30 -0
  506. package/dist/native/rsc/_react/flight-static.js +12 -0
  507. package/dist/native/rsc/_react/jsx-dev-runtime.js +234 -0
  508. package/dist/native/rsc/_react/jsx-runtime.js +234 -0
  509. package/dist/native/rsc/_react/react-dom.js +14 -0
  510. package/dist/native/rsc/_react/react.js +29 -0
  511. package/dist/native/rsc/_virtual/_rolldown/runtime.js +2 -0
  512. package/dist/native/rsc/_virtual/_timber-native-client-ref_client/index.js +9 -0
  513. package/dist/native/rsc/_virtual/_timber-native-client-ref_client/use-query-states.js +7 -0
  514. package/dist/native/rsc/adapters/build-output-helper.js +142 -0
  515. package/dist/native/rsc/adapters/build-output-helper.js.map +1 -0
  516. package/dist/native/rsc/adapters/cloudflare-kv-cache.js +96 -0
  517. package/dist/native/rsc/adapters/cloudflare-kv-cache.js.map +1 -0
  518. package/dist/native/rsc/adapters/cloudflare.js +410 -0
  519. package/dist/native/rsc/adapters/cloudflare.js.map +1 -0
  520. package/dist/native/rsc/adapters/fs-identity.js +54 -0
  521. package/dist/native/rsc/adapters/fs-identity.js.map +1 -0
  522. package/dist/native/rsc/adapters/shared.js +99 -0
  523. package/dist/native/rsc/adapters/shared.js.map +1 -0
  524. package/dist/native/rsc/cache/cache-api.js +43 -0
  525. package/dist/native/rsc/cache/cache-api.js.map +1 -0
  526. package/dist/native/rsc/cache/fast-hash.js +15 -0
  527. package/dist/native/rsc/cache/fast-hash.js.map +1 -0
  528. package/dist/native/rsc/cache/guarded-read.js +18 -0
  529. package/dist/native/rsc/cache/guarded-read.js.map +1 -0
  530. package/dist/native/rsc/cache/handler-store.js +69 -0
  531. package/dist/native/rsc/cache/handler-store.js.map +1 -0
  532. package/dist/native/rsc/cache/index.js +86 -0
  533. package/dist/native/rsc/cache/index.js.map +1 -0
  534. package/dist/native/rsc/cache/invalidation-epoch.js +43 -0
  535. package/dist/native/rsc/cache/invalidation-epoch.js.map +1 -0
  536. package/dist/native/rsc/cache/json-lossy-check.js +58 -0
  537. package/dist/native/rsc/cache/json-lossy-check.js.map +1 -0
  538. package/dist/native/rsc/cache/key-discipline.js +93 -0
  539. package/dist/native/rsc/cache/key-discipline.js.map +1 -0
  540. package/dist/native/rsc/cache/redis-handler.js +109 -0
  541. package/dist/native/rsc/cache/redis-handler.js.map +1 -0
  542. package/dist/native/rsc/cache/singleflight.js +49 -0
  543. package/dist/native/rsc/cache/singleflight.js.map +1 -0
  544. package/dist/native/rsc/cache/sizeof.js +15 -0
  545. package/dist/native/rsc/cache/sizeof.js.map +1 -0
  546. package/dist/native/rsc/cache/stable-stringify.js +53 -0
  547. package/dist/native/rsc/cache/stable-stringify.js.map +1 -0
  548. package/dist/native/rsc/cache/stores/cloudflare-kv.js +24 -0
  549. package/dist/native/rsc/cache/stores/cloudflare-kv.js.map +1 -0
  550. package/dist/native/rsc/cache/stores/memory.js +90 -0
  551. package/dist/native/rsc/cache/stores/memory.js.map +1 -0
  552. package/dist/native/rsc/cache/stores/redis.js +35 -0
  553. package/dist/native/rsc/cache/stores/redis.js.map +1 -0
  554. package/dist/native/rsc/cache/stores/vercel.js +33 -0
  555. package/dist/native/rsc/cache/stores/vercel.js.map +1 -0
  556. package/dist/native/rsc/cache/tag-aware-handler.js +147 -0
  557. package/dist/native/rsc/cache/tag-aware-handler.js.map +1 -0
  558. package/dist/native/rsc/cache/timber-cache.js +108 -0
  559. package/dist/native/rsc/cache/timber-cache.js.map +1 -0
  560. package/dist/native/rsc/cdn/cloudflare-purge.js +30 -0
  561. package/dist/native/rsc/cdn/cloudflare-purge.js.map +1 -0
  562. package/dist/native/rsc/cdn/fastly-purge.js +33 -0
  563. package/dist/native/rsc/cdn/fastly-purge.js.map +1 -0
  564. package/dist/native/rsc/cdn/headers.js +41 -0
  565. package/dist/native/rsc/cdn/headers.js.map +1 -0
  566. package/dist/native/rsc/cdn/index.js +4 -0
  567. package/dist/native/rsc/cdn/purge-store.js +25 -0
  568. package/dist/native/rsc/cdn/purge-store.js.map +1 -0
  569. package/dist/native/rsc/cdn/workers-cache-purge.js +14 -0
  570. package/dist/native/rsc/cdn/workers-cache-purge.js.map +1 -0
  571. package/dist/native/rsc/client/global-context.js +20 -0
  572. package/dist/native/rsc/client/global-context.js.map +1 -0
  573. package/dist/native/rsc/client/ssr-data.js +12 -0
  574. package/dist/native/rsc/client/ssr-data.js.map +1 -0
  575. package/dist/native/rsc/client/use-cookie.js +81 -0
  576. package/dist/native/rsc/client/use-cookie.js.map +1 -0
  577. package/dist/native/rsc/codec.js +76 -0
  578. package/dist/native/rsc/codec.js.map +1 -0
  579. package/dist/native/rsc/cookies/define-cookie.js +86 -0
  580. package/dist/native/rsc/cookies/define-cookie.js.map +1 -0
  581. package/dist/native/rsc/cookies/index.js +4 -0
  582. package/dist/native/rsc/cookies/json-cookie.js +26 -0
  583. package/dist/native/rsc/cookies/json-cookie.js.map +1 -0
  584. package/dist/native/rsc/cookies/validation.js +42 -0
  585. package/dist/native/rsc/cookies/validation.js.map +1 -0
  586. package/dist/native/rsc/dev-tools/404-page.js +195 -0
  587. package/dist/native/rsc/dev-tools/404-page.js.map +1 -0
  588. package/dist/native/rsc/dev-tools/await-span.js +31 -0
  589. package/dist/native/rsc/dev-tools/await-span.js.map +1 -0
  590. package/dist/native/rsc/dev-tools/dev-page-shell.js +152 -0
  591. package/dist/native/rsc/dev-tools/dev-page-shell.js.map +1 -0
  592. package/dist/native/rsc/dev-tools/error-page.js +214 -0
  593. package/dist/native/rsc/dev-tools/error-page.js.map +1 -0
  594. package/dist/native/rsc/dev-tools/instrumentation.js +156 -0
  595. package/dist/native/rsc/dev-tools/instrumentation.js.map +1 -0
  596. package/dist/native/rsc/dev-tools/log-columns.js +69 -0
  597. package/dist/native/rsc/dev-tools/log-columns.js.map +1 -0
  598. package/dist/native/rsc/dev-tools/logger.js +271 -0
  599. package/dist/native/rsc/dev-tools/logger.js.map +1 -0
  600. package/dist/native/rsc/dev-tools/overlay.js +36 -0
  601. package/dist/native/rsc/dev-tools/overlay.js.map +1 -0
  602. package/dist/native/rsc/dev-tools/span-sink.js +40 -0
  603. package/dist/native/rsc/dev-tools/span-sink.js.map +1 -0
  604. package/dist/native/rsc/dev-tools/stack-classifier.js +40 -0
  605. package/dist/native/rsc/dev-tools/stack-classifier.js.map +1 -0
  606. package/dist/native/rsc/dev-tools/terminal.js +75 -0
  607. package/dist/native/rsc/dev-tools/terminal.js.map +1 -0
  608. package/dist/native/rsc/manifest.json +271 -0
  609. package/dist/native/rsc/params/codec-registry.js +14 -0
  610. package/dist/native/rsc/params/codec-registry.js.map +1 -0
  611. package/dist/native/rsc/params/define-schema.js +7 -0
  612. package/dist/native/rsc/params/define-schema.js.map +1 -0
  613. package/dist/native/rsc/params/index.js +4 -0
  614. package/dist/native/rsc/params/resolve-schema.js +29 -0
  615. package/dist/native/rsc/params/resolve-schema.js.map +1 -0
  616. package/dist/native/rsc/routes/href.js +8 -0
  617. package/dist/native/rsc/routes/href.js.map +1 -0
  618. package/dist/native/rsc/routes/index.js +2 -0
  619. package/dist/native/rsc/routing/collision-probe.js +127 -0
  620. package/dist/native/rsc/routing/collision-probe.js.map +1 -0
  621. package/dist/native/rsc/routing/descendant-params.js +28 -0
  622. package/dist/native/rsc/routing/descendant-params.js.map +1 -0
  623. package/dist/native/rsc/routing/interception-overlap.js +51 -0
  624. package/dist/native/rsc/routing/interception-overlap.js.map +1 -0
  625. package/dist/native/rsc/routing/interception.js +51 -0
  626. package/dist/native/rsc/routing/interception.js.map +1 -0
  627. package/dist/native/rsc/routing/segment-classify.js +103 -0
  628. package/dist/native/rsc/routing/segment-classify.js.map +1 -0
  629. package/dist/native/rsc/routing/segment-keys.js +60 -0
  630. package/dist/native/rsc/routing/segment-keys.js.map +1 -0
  631. package/dist/native/rsc/routing/types.js +10 -0
  632. package/dist/native/rsc/routing/types.js.map +1 -0
  633. package/dist/native/rsc/routing/walkers.js +28 -0
  634. package/dist/native/rsc/routing/walkers.js.map +1 -0
  635. package/dist/native/rsc/rsc-runtime/dev-reference-cache.js +49 -0
  636. package/dist/native/rsc/rsc-runtime/dev-reference-cache.js.map +1 -0
  637. package/dist/native/rsc/rsc-runtime/server-reference-load-error.js +12 -0
  638. package/dist/native/rsc/rsc-runtime/server-reference-load-error.js.map +1 -0
  639. package/dist/native/rsc/schema-bridge.js +106 -0
  640. package/dist/native/rsc/schema-bridge.js.map +1 -0
  641. package/dist/native/rsc/search-params/define.js +149 -0
  642. package/dist/native/rsc/search-params/define.js.map +1 -0
  643. package/dist/native/rsc/search-params/index.js +5 -0
  644. package/dist/native/rsc/search-params/parse-total.js +10 -0
  645. package/dist/native/rsc/search-params/parse-total.js.map +1 -0
  646. package/dist/native/rsc/search-params/serialize-equal.js +9 -0
  647. package/dist/native/rsc/search-params/serialize-equal.js.map +1 -0
  648. package/dist/native/rsc/search-params/wrappers.js +29 -0
  649. package/dist/native/rsc/search-params/wrappers.js.map +1 -0
  650. package/dist/native/rsc/server/abort-scope.js +27 -0
  651. package/dist/native/rsc/server/abort-scope.js.map +1 -0
  652. package/dist/native/rsc/server/access-gate.js +51 -0
  653. package/dist/native/rsc/server/access-gate.js.map +1 -0
  654. package/dist/native/rsc/server/action-client.js +153 -0
  655. package/dist/native/rsc/server/action-client.js.map +1 -0
  656. package/dist/native/rsc/server/action-handler.js +301 -0
  657. package/dist/native/rsc/server/action-handler.js.map +1 -0
  658. package/dist/native/rsc/server/action-schema.js +66 -0
  659. package/dist/native/rsc/server/action-schema.js.map +1 -0
  660. package/dist/native/rsc/server/actions.js +98 -0
  661. package/dist/native/rsc/server/actions.js.map +1 -0
  662. package/dist/native/rsc/server/als-registry.js +24 -0
  663. package/dist/native/rsc/server/als-registry.js.map +1 -0
  664. package/dist/native/rsc/server/body-limits.js +55 -0
  665. package/dist/native/rsc/server/body-limits.js.map +1 -0
  666. package/dist/native/rsc/server/build-manifest.js +48 -0
  667. package/dist/native/rsc/server/build-manifest.js.map +1 -0
  668. package/dist/native/rsc/server/canonicalize.js +50 -0
  669. package/dist/native/rsc/server/canonicalize.js.map +1 -0
  670. package/dist/native/rsc/server/chain-url-parts.js +44 -0
  671. package/dist/native/rsc/server/chain-url-parts.js.map +1 -0
  672. package/dist/native/rsc/server/children-interception.js +35 -0
  673. package/dist/native/rsc/server/children-interception.js.map +1 -0
  674. package/dist/native/rsc/server/client-error-message.js +10 -0
  675. package/dist/native/rsc/server/client-error-message.js.map +1 -0
  676. package/dist/native/rsc/server/client-state-tree.js +34 -0
  677. package/dist/native/rsc/server/client-state-tree.js.map +1 -0
  678. package/dist/native/rsc/server/coalesce-tick.js +33 -0
  679. package/dist/native/rsc/server/coalesce-tick.js.map +1 -0
  680. package/dist/native/rsc/server/cookie-context.js +161 -0
  681. package/dist/native/rsc/server/cookie-context.js.map +1 -0
  682. package/dist/native/rsc/server/cookie-parsing.js +74 -0
  683. package/dist/native/rsc/server/cookie-parsing.js.map +1 -0
  684. package/dist/native/rsc/server/csp-nonce.js +20 -0
  685. package/dist/native/rsc/server/csp-nonce.js.map +1 -0
  686. package/dist/native/rsc/server/csrf.js +108 -0
  687. package/dist/native/rsc/server/csrf.js.map +1 -0
  688. package/dist/native/rsc/server/debug.js +24 -0
  689. package/dist/native/rsc/server/debug.js.map +1 -0
  690. package/dist/native/rsc/server/default-logger.js +52 -0
  691. package/dist/native/rsc/server/default-logger.js.map +1 -0
  692. package/dist/native/rsc/server/default-status-page.js +46 -0
  693. package/dist/native/rsc/server/default-status-page.js.map +1 -0
  694. package/dist/native/rsc/server/deny-boundary.js +160 -0
  695. package/dist/native/rsc/server/deny-boundary.js.map +1 -0
  696. package/dist/native/rsc/server/deny-renderer.js +130 -0
  697. package/dist/native/rsc/server/deny-renderer.js.map +1 -0
  698. package/dist/native/rsc/server/dev-overlay-report.js +13 -0
  699. package/dist/native/rsc/server/dev-overlay-report.js.map +1 -0
  700. package/dist/native/rsc/server/early-hints-sender.js +19 -0
  701. package/dist/native/rsc/server/early-hints-sender.js.map +1 -0
  702. package/dist/native/rsc/server/early-hints.js +44 -0
  703. package/dist/native/rsc/server/early-hints.js.map +1 -0
  704. package/dist/native/rsc/server/error-boundary-wrapper.js +42 -0
  705. package/dist/native/rsc/server/error-boundary-wrapper.js.map +1 -0
  706. package/dist/native/rsc/server/error-formatter.js +75 -0
  707. package/dist/native/rsc/server/error-formatter.js.map +1 -0
  708. package/dist/native/rsc/server/error-response-headers.js +17 -0
  709. package/dist/native/rsc/server/error-response-headers.js.map +1 -0
  710. package/dist/native/rsc/server/fallback-error.js +54 -0
  711. package/dist/native/rsc/server/fallback-error.js.map +1 -0
  712. package/dist/native/rsc/server/flight-injection-state.js +31 -0
  713. package/dist/native/rsc/server/flight-injection-state.js.map +1 -0
  714. package/dist/native/rsc/server/flight-injector-core.js +160 -0
  715. package/dist/native/rsc/server/flight-injector-core.js.map +1 -0
  716. package/dist/native/rsc/server/flight-scripts.js +20 -0
  717. package/dist/native/rsc/server/flight-scripts.js.map +1 -0
  718. package/dist/native/rsc/server/flight-source-node.js +230 -0
  719. package/dist/native/rsc/server/flight-source-node.js.map +1 -0
  720. package/dist/native/rsc/server/flight-source.js +141 -0
  721. package/dist/native/rsc/server/flight-source.js.map +1 -0
  722. package/dist/native/rsc/server/form-data.js +113 -0
  723. package/dist/native/rsc/server/form-data.js.map +1 -0
  724. package/dist/native/rsc/server/form-state-flight.js +26 -0
  725. package/dist/native/rsc/server/form-state-flight.js.map +1 -0
  726. package/dist/native/rsc/server/framework-stack-frames.js +18 -0
  727. package/dist/native/rsc/server/framework-stack-frames.js.map +1 -0
  728. package/dist/native/rsc/server/head-response.js +16 -0
  729. package/dist/native/rsc/server/head-response.js.map +1 -0
  730. package/dist/native/rsc/server/html-injector-core.js +134 -0
  731. package/dist/native/rsc/server/html-injector-core.js.map +1 -0
  732. package/dist/native/rsc/server/html-injectors.js +62 -0
  733. package/dist/native/rsc/server/html-injectors.js.map +1 -0
  734. package/dist/native/rsc/server/index.js +10 -0
  735. package/dist/native/rsc/server/instrumentation.js +47 -0
  736. package/dist/native/rsc/server/instrumentation.js.map +1 -0
  737. package/dist/native/rsc/server/interception-gates.js +35 -0
  738. package/dist/native/rsc/server/interception-gates.js.map +1 -0
  739. package/dist/native/rsc/server/internal.js +27 -0
  740. package/dist/native/rsc/server/json-status-response.js +34 -0
  741. package/dist/native/rsc/server/json-status-response.js.map +1 -0
  742. package/dist/native/rsc/server/logger.js +102 -0
  743. package/dist/native/rsc/server/logger.js.map +1 -0
  744. package/dist/native/rsc/server/metadata-collector.js +59 -0
  745. package/dist/native/rsc/server/metadata-collector.js.map +1 -0
  746. package/dist/native/rsc/server/metadata-platform.js +210 -0
  747. package/dist/native/rsc/server/metadata-platform.js.map +1 -0
  748. package/dist/native/rsc/server/metadata-render.js +137 -0
  749. package/dist/native/rsc/server/metadata-render.js.map +1 -0
  750. package/dist/native/rsc/server/metadata-route-links.js +101 -0
  751. package/dist/native/rsc/server/metadata-route-links.js.map +1 -0
  752. package/dist/native/rsc/server/metadata-routes.js +152 -0
  753. package/dist/native/rsc/server/metadata-routes.js.map +1 -0
  754. package/dist/native/rsc/server/metadata-social.js +192 -0
  755. package/dist/native/rsc/server/metadata-social.js.map +1 -0
  756. package/dist/native/rsc/server/metadata-urls.js +70 -0
  757. package/dist/native/rsc/server/metadata-urls.js.map +1 -0
  758. package/dist/native/rsc/server/metadata.js +51 -0
  759. package/dist/native/rsc/server/metadata.js.map +1 -0
  760. package/dist/native/rsc/server/middleware-runner.js +14 -0
  761. package/dist/native/rsc/server/middleware-runner.js.map +1 -0
  762. package/dist/native/rsc/server/node-body-response.js +158 -0
  763. package/dist/native/rsc/server/node-body-response.js.map +1 -0
  764. package/dist/native/rsc/server/node-response.js +24 -0
  765. package/dist/native/rsc/server/node-response.js.map +1 -0
  766. package/dist/native/rsc/server/node-streams-platform.js +5 -0
  767. package/dist/native/rsc/server/node-streams-platform.js.map +1 -0
  768. package/dist/native/rsc/server/param-coercion.js +69 -0
  769. package/dist/native/rsc/server/param-coercion.js.map +1 -0
  770. package/dist/native/rsc/server/pipeline-helpers.js +213 -0
  771. package/dist/native/rsc/server/pipeline-helpers.js.map +1 -0
  772. package/dist/native/rsc/server/pipeline-interception.js +105 -0
  773. package/dist/native/rsc/server/pipeline-interception.js.map +1 -0
  774. package/dist/native/rsc/server/pipeline-metadata-route.js +135 -0
  775. package/dist/native/rsc/server/pipeline-metadata-route.js.map +1 -0
  776. package/dist/native/rsc/server/pipeline-metadata.js +46 -0
  777. package/dist/native/rsc/server/pipeline-metadata.js.map +1 -0
  778. package/dist/native/rsc/server/pipeline-outcome.js +142 -0
  779. package/dist/native/rsc/server/pipeline-outcome.js.map +1 -0
  780. package/dist/native/rsc/server/pipeline-phases.js +217 -0
  781. package/dist/native/rsc/server/pipeline-phases.js.map +1 -0
  782. package/dist/native/rsc/server/pipeline.js +143 -0
  783. package/dist/native/rsc/server/pipeline.js.map +1 -0
  784. package/dist/native/rsc/server/prebuilt/cache-key.js +112 -0
  785. package/dist/native/rsc/server/prebuilt/cache-key.js.map +1 -0
  786. package/dist/native/rsc/server/prebuilt/capture-render.js +67 -0
  787. package/dist/native/rsc/server/prebuilt/capture-render.js.map +1 -0
  788. package/dist/native/rsc/server/prebuilt/capture-routes.js +42 -0
  789. package/dist/native/rsc/server/prebuilt/capture-routes.js.map +1 -0
  790. package/dist/native/rsc/server/prebuilt/capture-state.js +64 -0
  791. package/dist/native/rsc/server/prebuilt/capture-state.js.map +1 -0
  792. package/dist/native/rsc/server/prebuilt/dev-store.js +75 -0
  793. package/dist/native/rsc/server/prebuilt/dev-store.js.map +1 -0
  794. package/dist/native/rsc/server/prebuilt/lifetime.js +62 -0
  795. package/dist/native/rsc/server/prebuilt/lifetime.js.map +1 -0
  796. package/dist/native/rsc/server/prebuilt/manifest-tag-index.js +25 -0
  797. package/dist/native/rsc/server/prebuilt/manifest-tag-index.js.map +1 -0
  798. package/dist/native/rsc/server/prebuilt/overlay.js +111 -0
  799. package/dist/native/rsc/server/prebuilt/overlay.js.map +1 -0
  800. package/dist/native/rsc/server/prebuilt/payload-source.js +80 -0
  801. package/dist/native/rsc/server/prebuilt/payload-source.js.map +1 -0
  802. package/dist/native/rsc/server/prebuilt/slots.js +77 -0
  803. package/dist/native/rsc/server/prebuilt/slots.js.map +1 -0
  804. package/dist/native/rsc/server/prebuilt/synthetic-store.js +52 -0
  805. package/dist/native/rsc/server/prebuilt/synthetic-store.js.map +1 -0
  806. package/dist/native/rsc/server/prebuilt-builder.js +279 -0
  807. package/dist/native/rsc/server/prebuilt-builder.js.map +1 -0
  808. package/dist/native/rsc/server/prebuilt-runtime.js +329 -0
  809. package/dist/native/rsc/server/prebuilt-runtime.js.map +1 -0
  810. package/dist/native/rsc/server/primitives.js +130 -0
  811. package/dist/native/rsc/server/primitives.js.map +1 -0
  812. package/dist/native/rsc/server/proxy.js +15 -0
  813. package/dist/native/rsc/server/proxy.js.map +1 -0
  814. package/dist/native/rsc/server/publish-params.js +13 -0
  815. package/dist/native/rsc/server/publish-params.js.map +1 -0
  816. package/dist/native/rsc/server/react-cache-bridge.js +55 -0
  817. package/dist/native/rsc/server/react-cache-bridge.js.map +1 -0
  818. package/dist/native/rsc/server/react-cache-scope.js +38 -0
  819. package/dist/native/rsc/server/react-cache-scope.js.map +1 -0
  820. package/dist/native/rsc/server/render-timeout.js +30 -0
  821. package/dist/native/rsc/server/render-timeout.js.map +1 -0
  822. package/dist/native/rsc/server/render-utils.js +16 -0
  823. package/dist/native/rsc/server/render-utils.js.map +1 -0
  824. package/dist/native/rsc/server/request-context.js +158 -0
  825. package/dist/native/rsc/server/request-context.js.map +1 -0
  826. package/dist/native/rsc/server/response-cache-policy.js +19 -0
  827. package/dist/native/rsc/server/response-cache-policy.js.map +1 -0
  828. package/dist/native/rsc/server/response-framing.js +20 -0
  829. package/dist/native/rsc/server/response-framing.js.map +1 -0
  830. package/dist/native/rsc/server/route-element-builder.js +216 -0
  831. package/dist/native/rsc/server/route-element-builder.js.map +1 -0
  832. package/dist/native/rsc/server/route-handler.js +74 -0
  833. package/dist/native/rsc/server/route-handler.js.map +1 -0
  834. package/dist/native/rsc/server/route-matcher.js +119 -0
  835. package/dist/native/rsc/server/route-matcher.js.map +1 -0
  836. package/dist/native/rsc/server/route-methods.js +18 -0
  837. package/dist/native/rsc/server/route-methods.js.map +1 -0
  838. package/dist/native/rsc/server/route-module-loader.js +71 -0
  839. package/dist/native/rsc/server/route-module-loader.js.map +1 -0
  840. package/dist/native/rsc/server/rsc-cache-key-guard.js +33 -0
  841. package/dist/native/rsc/server/rsc-cache-key-guard.js.map +1 -0
  842. package/dist/native/rsc/server/rsc-entry/action-dispatcher.js +39 -0
  843. package/dist/native/rsc/server/rsc-entry/action-dispatcher.js.map +1 -0
  844. package/dist/native/rsc/server/rsc-entry/action-middleware-runner.js +59 -0
  845. package/dist/native/rsc/server/rsc-entry/action-middleware-runner.js.map +1 -0
  846. package/dist/native/rsc/server/rsc-entry/api-handler.js +16 -0
  847. package/dist/native/rsc/server/rsc-entry/api-handler.js.map +1 -0
  848. package/dist/native/rsc/server/rsc-entry/deny-fallback.js +39 -0
  849. package/dist/native/rsc/server/rsc-entry/deny-fallback.js.map +1 -0
  850. package/dist/native/rsc/server/rsc-entry/error-renderer.js +133 -0
  851. package/dist/native/rsc/server/rsc-entry/error-renderer.js.map +1 -0
  852. package/dist/native/rsc/server/rsc-entry/helpers.js +25 -0
  853. package/dist/native/rsc/server/rsc-entry/helpers.js.map +1 -0
  854. package/dist/native/rsc/server/rsc-entry/render-route.js +79 -0
  855. package/dist/native/rsc/server/rsc-entry/render-route.js.map +1 -0
  856. package/dist/native/rsc/server/rsc-entry/render-signals.js +41 -0
  857. package/dist/native/rsc/server/rsc-entry/render-signals.js.map +1 -0
  858. package/dist/native/rsc/server/rsc-entry/revalidate-renderer.js +134 -0
  859. package/dist/native/rsc/server/rsc-entry/revalidate-renderer.js.map +1 -0
  860. package/dist/native/rsc/server/rsc-entry/rsc-payload.js +53 -0
  861. package/dist/native/rsc/server/rsc-entry/rsc-payload.js.map +1 -0
  862. package/dist/native/rsc/server/rsc-entry/rsc-stream.js +74 -0
  863. package/dist/native/rsc/server/rsc-entry/rsc-stream.js.map +1 -0
  864. package/dist/native/rsc/server/rsc-entry/ssr-renderer.js +125 -0
  865. package/dist/native/rsc/server/rsc-entry/ssr-renderer.js.map +1 -0
  866. package/dist/native/rsc/server/rsc-error-envelope.js +18 -0
  867. package/dist/native/rsc/server/rsc-error-envelope.js.map +1 -0
  868. package/dist/native/rsc/server/rsc-prop-warnings.js +83 -0
  869. package/dist/native/rsc/server/rsc-prop-warnings.js.map +1 -0
  870. package/dist/native/rsc/server/safe-load.js +32 -0
  871. package/dist/native/rsc/server/safe-load.js.map +1 -0
  872. package/dist/native/rsc/server/schema-introspection.js +247 -0
  873. package/dist/native/rsc/server/schema-introspection.js.map +1 -0
  874. package/dist/native/rsc/server/segment-lifetime/document-outlet.js +24 -0
  875. package/dist/native/rsc/server/segment-lifetime/document-outlet.js.map +1 -0
  876. package/dist/native/rsc/server/segment-lifetime/key-digest.js +74 -0
  877. package/dist/native/rsc/server/segment-lifetime/key-digest.js.map +1 -0
  878. package/dist/native/rsc/server/segment-lifetime/outlet-gate.js +45 -0
  879. package/dist/native/rsc/server/segment-lifetime/outlet-gate.js.map +1 -0
  880. package/dist/native/rsc/server/segment-lifetime/read-rule.js +93 -0
  881. package/dist/native/rsc/server/segment-lifetime/read-rule.js.map +1 -0
  882. package/dist/native/rsc/server/segment-lifetime/read-scope.js +84 -0
  883. package/dist/native/rsc/server/segment-lifetime/read-scope.js.map +1 -0
  884. package/dist/native/rsc/server/segment-lifetime/segment-key.js +70 -0
  885. package/dist/native/rsc/server/segment-lifetime/segment-key.js.map +1 -0
  886. package/dist/native/rsc/server/segment-lifetime/slot-outlets.js +73 -0
  887. package/dist/native/rsc/server/segment-lifetime/slot-outlets.js.map +1 -0
  888. package/dist/native/rsc/server/sensitive-fields.js +103 -0
  889. package/dist/native/rsc/server/sensitive-fields.js.map +1 -0
  890. package/dist/native/rsc/server/server-only-guard-noop.js +1 -0
  891. package/dist/native/rsc/server/server-timing.js +57 -0
  892. package/dist/native/rsc/server/server-timing.js.map +1 -0
  893. package/dist/native/rsc/server/signal-identity.js +41 -0
  894. package/dist/native/rsc/server/signal-identity.js.map +1 -0
  895. package/dist/native/rsc/server/sitemap-generator.js +117 -0
  896. package/dist/native/rsc/server/sitemap-generator.js.map +1 -0
  897. package/dist/native/rsc/server/sitemap-handler.js +73 -0
  898. package/dist/native/rsc/server/sitemap-handler.js.map +1 -0
  899. package/dist/native/rsc/server/slot-interception.js +46 -0
  900. package/dist/native/rsc/server/slot-interception.js.map +1 -0
  901. package/dist/native/rsc/server/slot-resolver.js +204 -0
  902. package/dist/native/rsc/server/slot-resolver.js.map +1 -0
  903. package/dist/native/rsc/server/slot-subtree-contain.js +41 -0
  904. package/dist/native/rsc/server/slot-subtree-contain.js.map +1 -0
  905. package/dist/native/rsc/server/static-generator.js +375 -0
  906. package/dist/native/rsc/server/static-generator.js.map +1 -0
  907. package/dist/native/rsc/server/static-not-found.js +32 -0
  908. package/dist/native/rsc/server/static-not-found.js.map +1 -0
  909. package/dist/native/rsc/server/status-code-resolver.js +86 -0
  910. package/dist/native/rsc/server/status-code-resolver.js.map +1 -0
  911. package/dist/native/rsc/server/stream-utils.js +197 -0
  912. package/dist/native/rsc/server/stream-utils.js.map +1 -0
  913. package/dist/native/rsc/server/subtree-walk.js +149 -0
  914. package/dist/native/rsc/server/subtree-walk.js.map +1 -0
  915. package/dist/native/rsc/server/traced-access.js +29 -0
  916. package/dist/native/rsc/server/traced-access.js.map +1 -0
  917. package/dist/native/rsc/server/tracing.js +153 -0
  918. package/dist/native/rsc/server/tracing.js.map +1 -0
  919. package/dist/native/rsc/server/tree-match.js +205 -0
  920. package/dist/native/rsc/server/tree-match.js.map +1 -0
  921. package/dist/native/rsc/server/utils/element-type.js +31 -0
  922. package/dist/native/rsc/server/utils/element-type.js.map +1 -0
  923. package/dist/native/rsc/server/utils/escape-html.js +7 -0
  924. package/dist/native/rsc/server/utils/escape-html.js.map +1 -0
  925. package/dist/native/rsc/server/version-skew.js +36 -0
  926. package/dist/native/rsc/server/version-skew.js.map +1 -0
  927. package/dist/native/rsc/server/vite-handoff-rsc.js +42 -0
  928. package/dist/native/rsc/server/vite-handoff-rsc.js.map +1 -0
  929. package/dist/native/rsc/server/waituntil-bridge.js +11 -0
  930. package/dist/native/rsc/server/waituntil-bridge.js.map +1 -0
  931. package/dist/native/rsc/server/workers-cache-bridge.js +11 -0
  932. package/dist/native/rsc/server/workers-cache-bridge.js.map +1 -0
  933. package/dist/native/rsc/shared/als-slots.js +22 -0
  934. package/dist/native/rsc/shared/als-slots.js.map +1 -0
  935. package/dist/native/rsc/shared/base-path.js +15 -0
  936. package/dist/native/rsc/shared/base-path.js.map +1 -0
  937. package/dist/native/rsc/shared/cookie-read-through.js +5 -0
  938. package/dist/native/rsc/shared/cookie-read-through.js.map +1 -0
  939. package/dist/native/rsc/shared/csrf-reject.js +6 -0
  940. package/dist/native/rsc/shared/csrf-reject.js.map +1 -0
  941. package/dist/native/rsc/shared/dev-span.js +119 -0
  942. package/dist/native/rsc/shared/dev-span.js.map +1 -0
  943. package/dist/native/rsc/shared/error-digest.js +25 -0
  944. package/dist/native/rsc/shared/error-digest.js.map +1 -0
  945. package/dist/native/rsc/shared/flight-base64.js +15 -0
  946. package/dist/native/rsc/shared/flight-base64.js.map +1 -0
  947. package/dist/native/rsc/shared/href-validation.js +40 -0
  948. package/dist/native/rsc/shared/href-validation.js.map +1 -0
  949. package/dist/native/rsc/shared/href.js +83 -0
  950. package/dist/native/rsc/shared/href.js.map +1 -0
  951. package/dist/native/rsc/shared/key-headers.js +23 -0
  952. package/dist/native/rsc/shared/key-headers.js.map +1 -0
  953. package/dist/native/rsc/shared/layout-defaults.js +19 -0
  954. package/dist/native/rsc/shared/layout-defaults.js.map +1 -0
  955. package/dist/native/rsc/shared/merge-search-params.js +20 -0
  956. package/dist/native/rsc/shared/merge-search-params.js.map +1 -0
  957. package/dist/native/rsc/shared/outlet-decision.js +5 -0
  958. package/dist/native/rsc/shared/outlet-decision.js.map +1 -0
  959. package/dist/native/rsc/shared/param-value.js +81 -0
  960. package/dist/native/rsc/shared/param-value.js.map +1 -0
  961. package/dist/native/rsc/shared/redirect-type.js +8 -0
  962. package/dist/native/rsc/shared/redirect-type.js.map +1 -0
  963. package/dist/native/rsc/shared/route-options-export.js +8 -0
  964. package/dist/native/rsc/shared/route-options-export.js.map +1 -0
  965. package/dist/native/rsc/shared/rsc-cache-key.js +72 -0
  966. package/dist/native/rsc/shared/rsc-cache-key.js.map +1 -0
  967. package/dist/native/rsc/shared/rsc-error-envelope.js +5 -0
  968. package/dist/native/rsc/shared/rsc-error-envelope.js.map +1 -0
  969. package/dist/native/rsc/shared/rsc-media-type.js +12 -0
  970. package/dist/native/rsc/shared/rsc-media-type.js.map +1 -0
  971. package/dist/native/rsc/shared/slot-params.js +29 -0
  972. package/dist/native/rsc/shared/slot-params.js.map +1 -0
  973. package/dist/native/rsc/shared/span-waterfall.js +101 -0
  974. package/dist/native/rsc/shared/span-waterfall.js.map +1 -0
  975. package/dist/native/rsc/shared/static-platform-files.js +8 -0
  976. package/dist/native/rsc/shared/static-platform-files.js.map +1 -0
  977. package/dist/native/rsc/shared/status-reason-phrase.js +35 -0
  978. package/dist/native/rsc/shared/status-reason-phrase.js.map +1 -0
  979. package/dist/native/rsc/shims/headers.js +63 -0
  980. package/dist/native/rsc/shims/headers.js.map +1 -0
  981. package/dist/native/rsc/shims/image.js +9 -0
  982. package/dist/native/rsc/shims/image.js.map +1 -0
  983. package/dist/native/rsc/shims/navigation-rsc.js +21 -0
  984. package/dist/native/rsc/shims/navigation-rsc.js.map +1 -0
  985. package/dist/native/rsc/utils/format.js +9 -0
  986. package/dist/native/rsc/utils/format.js.map +1 -0
  987. package/dist/native/rsc/utils/state-machine.js +28 -0
  988. package/dist/native/rsc/utils/state-machine.js.map +1 -0
  989. package/dist/native/ssr/_virtual/_rolldown/runtime.js +2 -0
  990. package/dist/native/ssr/adapters/build-output-helper.js +142 -0
  991. package/dist/native/ssr/adapters/build-output-helper.js.map +1 -0
  992. package/dist/native/ssr/adapters/cloudflare-kv-cache.js +96 -0
  993. package/dist/native/ssr/adapters/cloudflare-kv-cache.js.map +1 -0
  994. package/dist/native/ssr/adapters/cloudflare.js +410 -0
  995. package/dist/native/ssr/adapters/cloudflare.js.map +1 -0
  996. package/dist/native/ssr/adapters/fs-identity.js +54 -0
  997. package/dist/native/ssr/adapters/fs-identity.js.map +1 -0
  998. package/dist/native/ssr/adapters/shared.js +99 -0
  999. package/dist/native/ssr/adapters/shared.js.map +1 -0
  1000. package/dist/native/ssr/cache/cache-api.js +43 -0
  1001. package/dist/native/ssr/cache/cache-api.js.map +1 -0
  1002. package/dist/native/ssr/cache/fast-hash.js +15 -0
  1003. package/dist/native/ssr/cache/fast-hash.js.map +1 -0
  1004. package/dist/native/ssr/cache/guarded-read.js +18 -0
  1005. package/dist/native/ssr/cache/guarded-read.js.map +1 -0
  1006. package/dist/native/ssr/cache/handler-store.js +53 -0
  1007. package/dist/native/ssr/cache/handler-store.js.map +1 -0
  1008. package/dist/native/ssr/cache/index.js +86 -0
  1009. package/dist/native/ssr/cache/index.js.map +1 -0
  1010. package/dist/native/ssr/cache/invalidation-epoch.js +43 -0
  1011. package/dist/native/ssr/cache/invalidation-epoch.js.map +1 -0
  1012. package/dist/native/ssr/cache/json-lossy-check.js +58 -0
  1013. package/dist/native/ssr/cache/json-lossy-check.js.map +1 -0
  1014. package/dist/native/ssr/cache/key-discipline.js +90 -0
  1015. package/dist/native/ssr/cache/key-discipline.js.map +1 -0
  1016. package/dist/native/ssr/cache/redis-handler.js +109 -0
  1017. package/dist/native/ssr/cache/redis-handler.js.map +1 -0
  1018. package/dist/native/ssr/cache/singleflight.js +49 -0
  1019. package/dist/native/ssr/cache/singleflight.js.map +1 -0
  1020. package/dist/native/ssr/cache/sizeof.js +15 -0
  1021. package/dist/native/ssr/cache/sizeof.js.map +1 -0
  1022. package/dist/native/ssr/cache/stable-stringify.js +53 -0
  1023. package/dist/native/ssr/cache/stable-stringify.js.map +1 -0
  1024. package/dist/native/ssr/cache/stores/cloudflare-kv.js +24 -0
  1025. package/dist/native/ssr/cache/stores/cloudflare-kv.js.map +1 -0
  1026. package/dist/native/ssr/cache/stores/memory.js +90 -0
  1027. package/dist/native/ssr/cache/stores/memory.js.map +1 -0
  1028. package/dist/native/ssr/cache/stores/redis.js +35 -0
  1029. package/dist/native/ssr/cache/stores/redis.js.map +1 -0
  1030. package/dist/native/ssr/cache/stores/vercel.js +33 -0
  1031. package/dist/native/ssr/cache/stores/vercel.js.map +1 -0
  1032. package/dist/native/ssr/cache/tag-aware-handler.js +147 -0
  1033. package/dist/native/ssr/cache/tag-aware-handler.js.map +1 -0
  1034. package/dist/native/ssr/cache/timber-cache.js +107 -0
  1035. package/dist/native/ssr/cache/timber-cache.js.map +1 -0
  1036. package/dist/native/ssr/cdn/cloudflare-purge.js +30 -0
  1037. package/dist/native/ssr/cdn/cloudflare-purge.js.map +1 -0
  1038. package/dist/native/ssr/cdn/fastly-purge.js +33 -0
  1039. package/dist/native/ssr/cdn/fastly-purge.js.map +1 -0
  1040. package/dist/native/ssr/cdn/headers.js +41 -0
  1041. package/dist/native/ssr/cdn/headers.js.map +1 -0
  1042. package/dist/native/ssr/cdn/index.js +4 -0
  1043. package/dist/native/ssr/cdn/purge-store.js +11 -0
  1044. package/dist/native/ssr/cdn/purge-store.js.map +1 -0
  1045. package/dist/native/ssr/cdn/workers-cache-purge.js +14 -0
  1046. package/dist/native/ssr/cdn/workers-cache-purge.js.map +1 -0
  1047. package/dist/native/ssr/client/deny-last-resort.js +65 -0
  1048. package/dist/native/ssr/client/deny-last-resort.js.map +1 -0
  1049. package/dist/native/ssr/client/document-withdrawal.js +17 -0
  1050. package/dist/native/ssr/client/document-withdrawal.js.map +1 -0
  1051. package/dist/native/ssr/client/error-boundary.js +173 -0
  1052. package/dist/native/ssr/client/error-boundary.js.map +1 -0
  1053. package/dist/native/ssr/client/error-reconstituter.js +22 -0
  1054. package/dist/native/ssr/client/error-reconstituter.js.map +1 -0
  1055. package/dist/native/ssr/client/form.js +26 -0
  1056. package/dist/native/ssr/client/form.js.map +1 -0
  1057. package/dist/native/ssr/client/global-context.js +20 -0
  1058. package/dist/native/ssr/client/global-context.js.map +1 -0
  1059. package/dist/native/ssr/client/index.js +16 -0
  1060. package/dist/native/ssr/client/link.js +123 -0
  1061. package/dist/native/ssr/client/link.js.map +1 -0
  1062. package/dist/native/ssr/client/location-search.js +8 -0
  1063. package/dist/native/ssr/client/location-search.js.map +1 -0
  1064. package/dist/native/ssr/client/navigation-api.js +19 -0
  1065. package/dist/native/ssr/client/navigation-api.js.map +1 -0
  1066. package/dist/native/ssr/client/navigation-commit.js +17 -0
  1067. package/dist/native/ssr/client/navigation-commit.js.map +1 -0
  1068. package/dist/native/ssr/client/navigation-context.js +17 -0
  1069. package/dist/native/ssr/client/navigation-context.js.map +1 -0
  1070. package/dist/native/ssr/client/navigation-root.js +18 -0
  1071. package/dist/native/ssr/client/navigation-root.js.map +1 -0
  1072. package/dist/native/ssr/client/navigation-transition.js +7 -0
  1073. package/dist/native/ssr/client/navigation-transition.js.map +1 -0
  1074. package/dist/native/ssr/client/nuqs-adapter.js +99 -0
  1075. package/dist/native/ssr/client/nuqs-adapter.js.map +1 -0
  1076. package/dist/native/ssr/client/outlet-content-cache.js +52 -0
  1077. package/dist/native/ssr/client/outlet-content-cache.js.map +1 -0
  1078. package/dist/native/ssr/client/outlet-scope-context.js +12 -0
  1079. package/dist/native/ssr/client/outlet-scope-context.js.map +1 -0
  1080. package/dist/native/ssr/client/params-context.js +32 -0
  1081. package/dist/native/ssr/client/params-context.js.map +1 -0
  1082. package/dist/native/ssr/client/router-effects.js +25 -0
  1083. package/dist/native/ssr/client/router-effects.js.map +1 -0
  1084. package/dist/native/ssr/client/router-ref.js +11 -0
  1085. package/dist/native/ssr/client/router-ref.js.map +1 -0
  1086. package/dist/native/ssr/client/router-skew.js +13 -0
  1087. package/dist/native/ssr/client/router-skew.js.map +1 -0
  1088. package/dist/native/ssr/client/router-url.js +8 -0
  1089. package/dist/native/ssr/client/router-url.js.map +1 -0
  1090. package/dist/native/ssr/client/rsc-fetch.js +77 -0
  1091. package/dist/native/ssr/client/rsc-fetch.js.map +1 -0
  1092. package/dist/native/ssr/client/segment-context.js +18 -0
  1093. package/dist/native/ssr/client/segment-context.js.map +1 -0
  1094. package/dist/native/ssr/client/segment-outlet.js +43 -0
  1095. package/dist/native/ssr/client/segment-outlet.js.map +1 -0
  1096. package/dist/native/ssr/client/shallow-url.js +13 -0
  1097. package/dist/native/ssr/client/shallow-url.js.map +1 -0
  1098. package/dist/native/ssr/client/slot-context.js +8 -0
  1099. package/dist/native/ssr/client/slot-context.js.map +1 -0
  1100. package/dist/native/ssr/client/slot-error-fallback.js +9 -0
  1101. package/dist/native/ssr/client/slot-error-fallback.js.map +1 -0
  1102. package/dist/native/ssr/client/slot-outlet.js +12 -0
  1103. package/dist/native/ssr/client/slot-outlet.js.map +1 -0
  1104. package/dist/native/ssr/client/slot-provider.js +16 -0
  1105. package/dist/native/ssr/client/slot-provider.js.map +1 -0
  1106. package/dist/native/ssr/client/ssr-data.js +15 -0
  1107. package/dist/native/ssr/client/ssr-data.js.map +1 -0
  1108. package/dist/native/ssr/client/stale-client.js +37 -0
  1109. package/dist/native/ssr/client/stale-client.js.map +1 -0
  1110. package/dist/native/ssr/client/stale-segment.js +29 -0
  1111. package/dist/native/ssr/client/stale-segment.js.map +1 -0
  1112. package/dist/native/ssr/client/state.js +26 -0
  1113. package/dist/native/ssr/client/state.js.map +1 -0
  1114. package/dist/native/ssr/client/status-page-marker.js +14 -0
  1115. package/dist/native/ssr/client/status-page-marker.js.map +1 -0
  1116. package/dist/native/ssr/client/top-loader.js +77 -0
  1117. package/dist/native/ssr/client/top-loader.js.map +1 -0
  1118. package/dist/native/ssr/client/unload-guard.js +27 -0
  1119. package/dist/native/ssr/client/unload-guard.js.map +1 -0
  1120. package/dist/native/ssr/client/use-cookie.js +81 -0
  1121. package/dist/native/ssr/client/use-cookie.js.map +1 -0
  1122. package/dist/native/ssr/client/use-field-state.js +59 -0
  1123. package/dist/native/ssr/client/use-field-state.js.map +1 -0
  1124. package/dist/native/ssr/client/use-link-status.js +11 -0
  1125. package/dist/native/ssr/client/use-link-status.js.map +1 -0
  1126. package/dist/native/ssr/client/use-pathname.js +10 -0
  1127. package/dist/native/ssr/client/use-pathname.js.map +1 -0
  1128. package/dist/native/ssr/client/use-pending-navigation.js +52 -0
  1129. package/dist/native/ssr/client/use-pending-navigation.js.map +1 -0
  1130. package/dist/native/ssr/client/use-query-states.js +123 -0
  1131. package/dist/native/ssr/client/use-query-states.js.map +1 -0
  1132. package/dist/native/ssr/client/use-router.js +54 -0
  1133. package/dist/native/ssr/client/use-router.js.map +1 -0
  1134. package/dist/native/ssr/client/use-search-params.js +22 -0
  1135. package/dist/native/ssr/client/use-search-params.js.map +1 -0
  1136. package/dist/native/ssr/client/use-segment-params.js +11 -0
  1137. package/dist/native/ssr/client/use-segment-params.js.map +1 -0
  1138. package/dist/native/ssr/client/use-selected-layout-segment.js +32 -0
  1139. package/dist/native/ssr/client/use-selected-layout-segment.js.map +1 -0
  1140. package/dist/native/ssr/codec.js +76 -0
  1141. package/dist/native/ssr/codec.js.map +1 -0
  1142. package/dist/native/ssr/cookies/define-cookie.js +86 -0
  1143. package/dist/native/ssr/cookies/define-cookie.js.map +1 -0
  1144. package/dist/native/ssr/cookies/index.js +4 -0
  1145. package/dist/native/ssr/cookies/json-cookie.js +26 -0
  1146. package/dist/native/ssr/cookies/json-cookie.js.map +1 -0
  1147. package/dist/native/ssr/cookies/validation.js +42 -0
  1148. package/dist/native/ssr/cookies/validation.js.map +1 -0
  1149. package/dist/native/ssr/dev-tools/await-span.js +31 -0
  1150. package/dist/native/ssr/dev-tools/await-span.js.map +1 -0
  1151. package/dist/native/ssr/dev-tools/instrumentation.js +156 -0
  1152. package/dist/native/ssr/dev-tools/instrumentation.js.map +1 -0
  1153. package/dist/native/ssr/dev-tools/log-columns.js +69 -0
  1154. package/dist/native/ssr/dev-tools/log-columns.js.map +1 -0
  1155. package/dist/native/ssr/dev-tools/logger.js +265 -0
  1156. package/dist/native/ssr/dev-tools/logger.js.map +1 -0
  1157. package/dist/native/ssr/dev-tools/span-sink.js +40 -0
  1158. package/dist/native/ssr/dev-tools/span-sink.js.map +1 -0
  1159. package/dist/native/ssr/manifest.json +250 -0
  1160. package/dist/native/ssr/params/codec-registry.js +14 -0
  1161. package/dist/native/ssr/params/codec-registry.js.map +1 -0
  1162. package/dist/native/ssr/params/define-schema.js +7 -0
  1163. package/dist/native/ssr/params/define-schema.js.map +1 -0
  1164. package/dist/native/ssr/params/index.js +4 -0
  1165. package/dist/native/ssr/params/resolve-schema.js +29 -0
  1166. package/dist/native/ssr/params/resolve-schema.js.map +1 -0
  1167. package/dist/native/ssr/routes/href.js +8 -0
  1168. package/dist/native/ssr/routes/href.js.map +1 -0
  1169. package/dist/native/ssr/routes/index.js +2 -0
  1170. package/dist/native/ssr/routing/segment-classify.js +103 -0
  1171. package/dist/native/ssr/routing/segment-classify.js.map +1 -0
  1172. package/dist/native/ssr/routing/segment-keys.js +26 -0
  1173. package/dist/native/ssr/routing/segment-keys.js.map +1 -0
  1174. package/dist/native/ssr/routing/types.js +10 -0
  1175. package/dist/native/ssr/routing/types.js.map +1 -0
  1176. package/dist/native/ssr/rsc-runtime/dev-reference-cache.js +49 -0
  1177. package/dist/native/ssr/rsc-runtime/dev-reference-cache.js.map +1 -0
  1178. package/dist/native/ssr/schema-bridge.js +106 -0
  1179. package/dist/native/ssr/schema-bridge.js.map +1 -0
  1180. package/dist/native/ssr/search-params/define.js +149 -0
  1181. package/dist/native/ssr/search-params/define.js.map +1 -0
  1182. package/dist/native/ssr/search-params/index.js +5 -0
  1183. package/dist/native/ssr/search-params/parse-total.js +10 -0
  1184. package/dist/native/ssr/search-params/parse-total.js.map +1 -0
  1185. package/dist/native/ssr/search-params/serialize-equal.js +9 -0
  1186. package/dist/native/ssr/search-params/serialize-equal.js.map +1 -0
  1187. package/dist/native/ssr/search-params/wrappers.js +29 -0
  1188. package/dist/native/ssr/search-params/wrappers.js.map +1 -0
  1189. package/dist/native/ssr/server/abort-scope.js +27 -0
  1190. package/dist/native/ssr/server/abort-scope.js.map +1 -0
  1191. package/dist/native/ssr/server/access-gate.js +51 -0
  1192. package/dist/native/ssr/server/access-gate.js.map +1 -0
  1193. package/dist/native/ssr/server/action-client.js +153 -0
  1194. package/dist/native/ssr/server/action-client.js.map +1 -0
  1195. package/dist/native/ssr/server/action-schema.js +66 -0
  1196. package/dist/native/ssr/server/action-schema.js.map +1 -0
  1197. package/dist/native/ssr/server/actions.js +98 -0
  1198. package/dist/native/ssr/server/actions.js.map +1 -0
  1199. package/dist/native/ssr/server/als-registry.js +24 -0
  1200. package/dist/native/ssr/server/als-registry.js.map +1 -0
  1201. package/dist/native/ssr/server/body-limits.js +48 -0
  1202. package/dist/native/ssr/server/body-limits.js.map +1 -0
  1203. package/dist/native/ssr/server/build-manifest.js +45 -0
  1204. package/dist/native/ssr/server/build-manifest.js.map +1 -0
  1205. package/dist/native/ssr/server/canonicalize.js +50 -0
  1206. package/dist/native/ssr/server/canonicalize.js.map +1 -0
  1207. package/dist/native/ssr/server/client-state-tree.js +34 -0
  1208. package/dist/native/ssr/server/client-state-tree.js.map +1 -0
  1209. package/dist/native/ssr/server/coalesce-tick.js +33 -0
  1210. package/dist/native/ssr/server/coalesce-tick.js.map +1 -0
  1211. package/dist/native/ssr/server/cookie-context.js +155 -0
  1212. package/dist/native/ssr/server/cookie-context.js.map +1 -0
  1213. package/dist/native/ssr/server/cookie-parsing.js +74 -0
  1214. package/dist/native/ssr/server/cookie-parsing.js.map +1 -0
  1215. package/dist/native/ssr/server/csp-nonce.js +17 -0
  1216. package/dist/native/ssr/server/csp-nonce.js.map +1 -0
  1217. package/dist/native/ssr/server/csrf.js +108 -0
  1218. package/dist/native/ssr/server/csrf.js.map +1 -0
  1219. package/dist/native/ssr/server/debug.js +19 -0
  1220. package/dist/native/ssr/server/debug.js.map +1 -0
  1221. package/dist/native/ssr/server/default-logger.js +52 -0
  1222. package/dist/native/ssr/server/default-logger.js.map +1 -0
  1223. package/dist/native/ssr/server/deny-boundary.js +94 -0
  1224. package/dist/native/ssr/server/deny-boundary.js.map +1 -0
  1225. package/dist/native/ssr/server/dev-overlay-report.js +6 -0
  1226. package/dist/native/ssr/server/dev-overlay-report.js.map +1 -0
  1227. package/dist/native/ssr/server/early-hints-sender.js +19 -0
  1228. package/dist/native/ssr/server/early-hints-sender.js.map +1 -0
  1229. package/dist/native/ssr/server/early-hints.js +44 -0
  1230. package/dist/native/ssr/server/early-hints.js.map +1 -0
  1231. package/dist/native/ssr/server/error-formatter.js +75 -0
  1232. package/dist/native/ssr/server/error-formatter.js.map +1 -0
  1233. package/dist/native/ssr/server/error-response-headers.js +17 -0
  1234. package/dist/native/ssr/server/error-response-headers.js.map +1 -0
  1235. package/dist/native/ssr/server/flight-injection-state.js +31 -0
  1236. package/dist/native/ssr/server/flight-injection-state.js.map +1 -0
  1237. package/dist/native/ssr/server/flight-injector-core.js +160 -0
  1238. package/dist/native/ssr/server/flight-injector-core.js.map +1 -0
  1239. package/dist/native/ssr/server/flight-scripts.js +20 -0
  1240. package/dist/native/ssr/server/flight-scripts.js.map +1 -0
  1241. package/dist/native/ssr/server/flight-source-node.js +230 -0
  1242. package/dist/native/ssr/server/flight-source-node.js.map +1 -0
  1243. package/dist/native/ssr/server/flight-source.js +56 -0
  1244. package/dist/native/ssr/server/flight-source.js.map +1 -0
  1245. package/dist/native/ssr/server/form-data.js +113 -0
  1246. package/dist/native/ssr/server/form-data.js.map +1 -0
  1247. package/dist/native/ssr/server/framework-stack-frames.js +18 -0
  1248. package/dist/native/ssr/server/framework-stack-frames.js.map +1 -0
  1249. package/dist/native/ssr/server/head-response.js +16 -0
  1250. package/dist/native/ssr/server/head-response.js.map +1 -0
  1251. package/dist/native/ssr/server/html-injector-core.js +134 -0
  1252. package/dist/native/ssr/server/html-injector-core.js.map +1 -0
  1253. package/dist/native/ssr/server/html-injectors.js +117 -0
  1254. package/dist/native/ssr/server/html-injectors.js.map +1 -0
  1255. package/dist/native/ssr/server/index.js +10 -0
  1256. package/dist/native/ssr/server/instrumentation.js +47 -0
  1257. package/dist/native/ssr/server/instrumentation.js.map +1 -0
  1258. package/dist/native/ssr/server/internal.js +27 -0
  1259. package/dist/native/ssr/server/logger.js +98 -0
  1260. package/dist/native/ssr/server/logger.js.map +1 -0
  1261. package/dist/native/ssr/server/metadata-platform.js +210 -0
  1262. package/dist/native/ssr/server/metadata-platform.js.map +1 -0
  1263. package/dist/native/ssr/server/metadata-render.js +137 -0
  1264. package/dist/native/ssr/server/metadata-render.js.map +1 -0
  1265. package/dist/native/ssr/server/metadata-routes.js +152 -0
  1266. package/dist/native/ssr/server/metadata-routes.js.map +1 -0
  1267. package/dist/native/ssr/server/metadata-social.js +192 -0
  1268. package/dist/native/ssr/server/metadata-social.js.map +1 -0
  1269. package/dist/native/ssr/server/metadata-urls.js +70 -0
  1270. package/dist/native/ssr/server/metadata-urls.js.map +1 -0
  1271. package/dist/native/ssr/server/metadata.js +38 -0
  1272. package/dist/native/ssr/server/metadata.js.map +1 -0
  1273. package/dist/native/ssr/server/middleware-runner.js +14 -0
  1274. package/dist/native/ssr/server/middleware-runner.js.map +1 -0
  1275. package/dist/native/ssr/server/node-body-response.js +159 -0
  1276. package/dist/native/ssr/server/node-body-response.js.map +1 -0
  1277. package/dist/native/ssr/server/node-response.js +24 -0
  1278. package/dist/native/ssr/server/node-response.js.map +1 -0
  1279. package/dist/native/ssr/server/node-stream-transforms.js +166 -0
  1280. package/dist/native/ssr/server/node-stream-transforms.js.map +1 -0
  1281. package/dist/native/ssr/server/node-streams-platform.js +5 -0
  1282. package/dist/native/ssr/server/node-streams-platform.js.map +1 -0
  1283. package/dist/native/ssr/server/param-coercion.js +43 -0
  1284. package/dist/native/ssr/server/param-coercion.js.map +1 -0
  1285. package/dist/native/ssr/server/pipeline-helpers.js +203 -0
  1286. package/dist/native/ssr/server/pipeline-helpers.js.map +1 -0
  1287. package/dist/native/ssr/server/pipeline-interception.js +105 -0
  1288. package/dist/native/ssr/server/pipeline-interception.js.map +1 -0
  1289. package/dist/native/ssr/server/pipeline-metadata-route.js +135 -0
  1290. package/dist/native/ssr/server/pipeline-metadata-route.js.map +1 -0
  1291. package/dist/native/ssr/server/pipeline-metadata.js +43 -0
  1292. package/dist/native/ssr/server/pipeline-metadata.js.map +1 -0
  1293. package/dist/native/ssr/server/pipeline-outcome.js +142 -0
  1294. package/dist/native/ssr/server/pipeline-outcome.js.map +1 -0
  1295. package/dist/native/ssr/server/pipeline-phases.js +217 -0
  1296. package/dist/native/ssr/server/pipeline-phases.js.map +1 -0
  1297. package/dist/native/ssr/server/pipeline.js +143 -0
  1298. package/dist/native/ssr/server/pipeline.js.map +1 -0
  1299. package/dist/native/ssr/server/prebuilt/cache-key.js +112 -0
  1300. package/dist/native/ssr/server/prebuilt/cache-key.js.map +1 -0
  1301. package/dist/native/ssr/server/prebuilt/capture-render.js +60 -0
  1302. package/dist/native/ssr/server/prebuilt/capture-render.js.map +1 -0
  1303. package/dist/native/ssr/server/prebuilt/capture-state.js +64 -0
  1304. package/dist/native/ssr/server/prebuilt/capture-state.js.map +1 -0
  1305. package/dist/native/ssr/server/prebuilt/dev-store.js +68 -0
  1306. package/dist/native/ssr/server/prebuilt/dev-store.js.map +1 -0
  1307. package/dist/native/ssr/server/prebuilt/lifetime.js +62 -0
  1308. package/dist/native/ssr/server/prebuilt/lifetime.js.map +1 -0
  1309. package/dist/native/ssr/server/prebuilt/manifest-tag-index.js +25 -0
  1310. package/dist/native/ssr/server/prebuilt/manifest-tag-index.js.map +1 -0
  1311. package/dist/native/ssr/server/prebuilt/overlay.js +111 -0
  1312. package/dist/native/ssr/server/prebuilt/overlay.js.map +1 -0
  1313. package/dist/native/ssr/server/prebuilt/payload-source.js +80 -0
  1314. package/dist/native/ssr/server/prebuilt/payload-source.js.map +1 -0
  1315. package/dist/native/ssr/server/prebuilt/slots.js +77 -0
  1316. package/dist/native/ssr/server/prebuilt/slots.js.map +1 -0
  1317. package/dist/native/ssr/server/prebuilt/synthetic-store.js +52 -0
  1318. package/dist/native/ssr/server/prebuilt/synthetic-store.js.map +1 -0
  1319. package/dist/native/ssr/server/prebuilt-runtime.js +326 -0
  1320. package/dist/native/ssr/server/prebuilt-runtime.js.map +1 -0
  1321. package/dist/native/ssr/server/primitives.js +130 -0
  1322. package/dist/native/ssr/server/primitives.js.map +1 -0
  1323. package/dist/native/ssr/server/proxy.js +15 -0
  1324. package/dist/native/ssr/server/proxy.js.map +1 -0
  1325. package/dist/native/ssr/server/react-cache-scope.js +38 -0
  1326. package/dist/native/ssr/server/react-cache-scope.js.map +1 -0
  1327. package/dist/native/ssr/server/render-timeout.js +46 -0
  1328. package/dist/native/ssr/server/render-timeout.js.map +1 -0
  1329. package/dist/native/ssr/server/render-utils.js +19 -0
  1330. package/dist/native/ssr/server/render-utils.js.map +1 -0
  1331. package/dist/native/ssr/server/request-context.js +133 -0
  1332. package/dist/native/ssr/server/request-context.js.map +1 -0
  1333. package/dist/native/ssr/server/response-cache-policy.js +19 -0
  1334. package/dist/native/ssr/server/response-cache-policy.js.map +1 -0
  1335. package/dist/native/ssr/server/response-framing.js +20 -0
  1336. package/dist/native/ssr/server/response-framing.js.map +1 -0
  1337. package/dist/native/ssr/server/route-handler.js +74 -0
  1338. package/dist/native/ssr/server/route-handler.js.map +1 -0
  1339. package/dist/native/ssr/server/route-matcher.js +101 -0
  1340. package/dist/native/ssr/server/route-matcher.js.map +1 -0
  1341. package/dist/native/ssr/server/route-methods.js +18 -0
  1342. package/dist/native/ssr/server/route-methods.js.map +1 -0
  1343. package/dist/native/ssr/server/rsc-cache-key-guard.js +33 -0
  1344. package/dist/native/ssr/server/rsc-cache-key-guard.js.map +1 -0
  1345. package/dist/native/ssr/server/rsc-error-envelope.js +18 -0
  1346. package/dist/native/ssr/server/rsc-error-envelope.js.map +1 -0
  1347. package/dist/native/ssr/server/safe-load.js +29 -0
  1348. package/dist/native/ssr/server/safe-load.js.map +1 -0
  1349. package/dist/native/ssr/server/schema-introspection.js +247 -0
  1350. package/dist/native/ssr/server/schema-introspection.js.map +1 -0
  1351. package/dist/native/ssr/server/segment-lifetime/key-digest.js +6 -0
  1352. package/dist/native/ssr/server/segment-lifetime/key-digest.js.map +1 -0
  1353. package/dist/native/ssr/server/segment-lifetime/outlet-gate.js +12 -0
  1354. package/dist/native/ssr/server/segment-lifetime/outlet-gate.js.map +1 -0
  1355. package/dist/native/ssr/server/segment-lifetime/read-rule.js +93 -0
  1356. package/dist/native/ssr/server/segment-lifetime/read-rule.js.map +1 -0
  1357. package/dist/native/ssr/server/segment-lifetime/read-scope.js +16 -0
  1358. package/dist/native/ssr/server/segment-lifetime/read-scope.js.map +1 -0
  1359. package/dist/native/ssr/server/sensitive-fields.js +96 -0
  1360. package/dist/native/ssr/server/sensitive-fields.js.map +1 -0
  1361. package/dist/native/ssr/server/server-only-guard-noop.js +1 -0
  1362. package/dist/native/ssr/server/server-timing.js +52 -0
  1363. package/dist/native/ssr/server/server-timing.js.map +1 -0
  1364. package/dist/native/ssr/server/signal-identity.js +50 -0
  1365. package/dist/native/ssr/server/signal-identity.js.map +1 -0
  1366. package/dist/native/ssr/server/ssr-form-state.js +25 -0
  1367. package/dist/native/ssr/server/ssr-form-state.js.map +1 -0
  1368. package/dist/native/ssr/server/ssr-render.js +179 -0
  1369. package/dist/native/ssr/server/ssr-render.js.map +1 -0
  1370. package/dist/native/ssr/server/ssr-wrappers.js +33 -0
  1371. package/dist/native/ssr/server/ssr-wrappers.js.map +1 -0
  1372. package/dist/native/ssr/server/status-code-resolver.js +86 -0
  1373. package/dist/native/ssr/server/status-code-resolver.js.map +1 -0
  1374. package/dist/native/ssr/server/stream-utils.js +190 -0
  1375. package/dist/native/ssr/server/stream-utils.js.map +1 -0
  1376. package/dist/native/ssr/server/subtree-walk.js +149 -0
  1377. package/dist/native/ssr/server/subtree-walk.js.map +1 -0
  1378. package/dist/native/ssr/server/traced-access.js +29 -0
  1379. package/dist/native/ssr/server/traced-access.js.map +1 -0
  1380. package/dist/native/ssr/server/tracing.js +139 -0
  1381. package/dist/native/ssr/server/tracing.js.map +1 -0
  1382. package/dist/native/ssr/server/tree-match.js +205 -0
  1383. package/dist/native/ssr/server/tree-match.js.map +1 -0
  1384. package/dist/native/ssr/server/utils/element-type.js +31 -0
  1385. package/dist/native/ssr/server/utils/element-type.js.map +1 -0
  1386. package/dist/native/ssr/server/version-skew.js +19 -0
  1387. package/dist/native/ssr/server/version-skew.js.map +1 -0
  1388. package/dist/native/ssr/server/vite-handoff-rsc.js +23 -0
  1389. package/dist/native/ssr/server/vite-handoff-rsc.js.map +1 -0
  1390. package/dist/native/ssr/server/waituntil-bridge.js +7 -0
  1391. package/dist/native/ssr/server/waituntil-bridge.js.map +1 -0
  1392. package/dist/native/ssr/server/workers-cache-bridge.js +7 -0
  1393. package/dist/native/ssr/server/workers-cache-bridge.js.map +1 -0
  1394. package/dist/native/ssr/shared/als-slots.js +22 -0
  1395. package/dist/native/ssr/shared/als-slots.js.map +1 -0
  1396. package/dist/native/ssr/shared/base-path.js +27 -0
  1397. package/dist/native/ssr/shared/base-path.js.map +1 -0
  1398. package/dist/native/ssr/shared/cookie-read-through.js +5 -0
  1399. package/dist/native/ssr/shared/cookie-read-through.js.map +1 -0
  1400. package/dist/native/ssr/shared/csrf-reject.js +6 -0
  1401. package/dist/native/ssr/shared/csrf-reject.js.map +1 -0
  1402. package/dist/native/ssr/shared/dev-span.js +119 -0
  1403. package/dist/native/ssr/shared/dev-span.js.map +1 -0
  1404. package/dist/native/ssr/shared/error-digest.js +17 -0
  1405. package/dist/native/ssr/shared/error-digest.js.map +1 -0
  1406. package/dist/native/ssr/shared/flight-base64.js +9 -0
  1407. package/dist/native/ssr/shared/flight-base64.js.map +1 -0
  1408. package/dist/native/ssr/shared/form-state-flight.js +19 -0
  1409. package/dist/native/ssr/shared/form-state-flight.js.map +1 -0
  1410. package/dist/native/ssr/shared/href-validation.js +47 -0
  1411. package/dist/native/ssr/shared/href-validation.js.map +1 -0
  1412. package/dist/native/ssr/shared/href.js +83 -0
  1413. package/dist/native/ssr/shared/href.js.map +1 -0
  1414. package/dist/native/ssr/shared/key-headers.js +16 -0
  1415. package/dist/native/ssr/shared/key-headers.js.map +1 -0
  1416. package/dist/native/ssr/shared/layout-defaults.js +9 -0
  1417. package/dist/native/ssr/shared/layout-defaults.js.map +1 -0
  1418. package/dist/native/ssr/shared/merge-search-params.js +20 -0
  1419. package/dist/native/ssr/shared/merge-search-params.js.map +1 -0
  1420. package/dist/native/ssr/shared/param-value.js +81 -0
  1421. package/dist/native/ssr/shared/param-value.js.map +1 -0
  1422. package/dist/native/ssr/shared/payload-root.js +35 -0
  1423. package/dist/native/ssr/shared/payload-root.js.map +1 -0
  1424. package/dist/native/ssr/shared/redirect-type.js +8 -0
  1425. package/dist/native/ssr/shared/redirect-type.js.map +1 -0
  1426. package/dist/native/ssr/shared/rsc-cache-key.js +82 -0
  1427. package/dist/native/ssr/shared/rsc-cache-key.js.map +1 -0
  1428. package/dist/native/ssr/shared/rsc-error-envelope.js +5 -0
  1429. package/dist/native/ssr/shared/rsc-error-envelope.js.map +1 -0
  1430. package/dist/native/ssr/shared/rsc-media-type.js +12 -0
  1431. package/dist/native/ssr/shared/rsc-media-type.js.map +1 -0
  1432. package/dist/native/ssr/shared/rsc-payload-path.js +8 -0
  1433. package/dist/native/ssr/shared/rsc-payload-path.js.map +1 -0
  1434. package/dist/native/ssr/shared/slot-params.js +29 -0
  1435. package/dist/native/ssr/shared/slot-params.js.map +1 -0
  1436. package/dist/native/ssr/shared/span-waterfall.js +101 -0
  1437. package/dist/native/ssr/shared/span-waterfall.js.map +1 -0
  1438. package/dist/native/ssr/shared/static-platform-files.js +8 -0
  1439. package/dist/native/ssr/shared/static-platform-files.js.map +1 -0
  1440. package/dist/native/ssr/shared/status-reason-phrase.js +35 -0
  1441. package/dist/native/ssr/shared/status-reason-phrase.js.map +1 -0
  1442. package/dist/native/ssr/shims/headers.js +63 -0
  1443. package/dist/native/ssr/shims/headers.js.map +1 -0
  1444. package/dist/native/ssr/shims/image.js +9 -0
  1445. package/dist/native/ssr/shims/image.js.map +1 -0
  1446. package/dist/native/ssr/shims/link.js +4 -0
  1447. package/dist/native/ssr/shims/navigation.js +11 -0
  1448. package/dist/native/ssr/utils/format.js +9 -0
  1449. package/dist/native/ssr/utils/format.js.map +1 -0
  1450. package/dist/native/ssr/utils/state-machine.js +28 -0
  1451. package/dist/native/ssr/utils/state-machine.js.map +1 -0
  1452. package/dist/params/codec-registry.d.ts +36 -0
  1453. package/dist/params/codec-registry.d.ts.map +1 -0
  1454. package/dist/params/define-schema.d.ts +81 -0
  1455. package/dist/params/define-schema.d.ts.map +1 -0
  1456. package/dist/params/index.d.ts +4 -0
  1457. package/dist/params/index.d.ts.map +1 -0
  1458. package/dist/params/index.js +32 -0
  1459. package/dist/params/index.js.map +1 -0
  1460. package/dist/params/resolve-schema.d.ts +34 -0
  1461. package/dist/params/resolve-schema.d.ts.map +1 -0
  1462. package/dist/plugin-context.d.ts +253 -0
  1463. package/dist/plugin-context.d.ts.map +1 -0
  1464. package/dist/plugins/build-manifest.d.ts +12 -3
  1465. package/dist/plugins/build-manifest.d.ts.map +1 -1
  1466. package/dist/plugins/build-report.d.ts +61 -11
  1467. package/dist/plugins/build-report.d.ts.map +1 -1
  1468. package/dist/plugins/cache.d.ts +64 -0
  1469. package/dist/plugins/cache.d.ts.map +1 -0
  1470. package/dist/plugins/callsite-ast.d.ts +117 -0
  1471. package/dist/plugins/callsite-ast.d.ts.map +1 -0
  1472. package/dist/plugins/callsite-jsx.d.ts +42 -0
  1473. package/dist/plugins/callsite-jsx.d.ts.map +1 -0
  1474. package/dist/plugins/chunks.d.ts +11 -4
  1475. package/dist/plugins/chunks.d.ts.map +1 -1
  1476. package/dist/plugins/client-chunks.d.ts +40 -0
  1477. package/dist/plugins/client-chunks.d.ts.map +1 -0
  1478. package/dist/plugins/client-dep-entries.d.ts +80 -0
  1479. package/dist/plugins/client-dep-entries.d.ts.map +1 -0
  1480. package/dist/plugins/client-in-server-package-deps.d.ts +63 -0
  1481. package/dist/plugins/client-in-server-package-deps.d.ts.map +1 -0
  1482. package/dist/plugins/cloudflare-wasm.d.ts +21 -0
  1483. package/dist/plugins/cloudflare-wasm.d.ts.map +1 -0
  1484. package/dist/plugins/content.d.ts +1 -1
  1485. package/dist/plugins/content.d.ts.map +1 -1
  1486. package/dist/plugins/dev-await.d.ts +84 -0
  1487. package/dist/plugins/dev-await.d.ts.map +1 -0
  1488. package/dist/plugins/dev-discovery.d.ts +187 -0
  1489. package/dist/plugins/dev-discovery.d.ts.map +1 -0
  1490. package/dist/plugins/dev-hostname.d.ts +152 -0
  1491. package/dist/plugins/dev-hostname.d.ts.map +1 -0
  1492. package/dist/plugins/dev-precompile.d.ts +112 -0
  1493. package/dist/plugins/dev-precompile.d.ts.map +1 -0
  1494. package/dist/plugins/dev-server.d.ts +29 -2
  1495. package/dist/plugins/dev-server.d.ts.map +1 -1
  1496. package/dist/plugins/dev-store-clear.d.ts +83 -0
  1497. package/dist/plugins/dev-store-clear.d.ts.map +1 -0
  1498. package/dist/plugins/encryption-runtime.d.ts +13 -0
  1499. package/dist/plugins/encryption-runtime.d.ts.map +1 -0
  1500. package/dist/plugins/entries.d.ts +40 -4
  1501. package/dist/plugins/entries.d.ts.map +1 -1
  1502. package/dist/plugins/fonts.d.ts +35 -74
  1503. package/dist/plugins/fonts.d.ts.map +1 -1
  1504. package/dist/plugins/graph-endpoint.d.ts +114 -0
  1505. package/dist/plugins/graph-endpoint.d.ts.map +1 -0
  1506. package/dist/plugins/mdx.d.ts +18 -5
  1507. package/dist/plugins/mdx.d.ts.map +1 -1
  1508. package/dist/plugins/native-runtime-boundary.d.ts +74 -0
  1509. package/dist/plugins/native-runtime-boundary.d.ts.map +1 -0
  1510. package/dist/plugins/native-runtime.d.ts +66 -0
  1511. package/dist/plugins/native-runtime.d.ts.map +1 -0
  1512. package/dist/plugins/node-flight-builds.d.ts +38 -0
  1513. package/dist/plugins/node-flight-builds.d.ts.map +1 -0
  1514. package/dist/plugins/optimize-package-imports-defaults.d.ts +13 -0
  1515. package/dist/plugins/optimize-package-imports-defaults.d.ts.map +1 -0
  1516. package/dist/plugins/optimize-package-imports.d.ts +124 -0
  1517. package/dist/plugins/optimize-package-imports.d.ts.map +1 -0
  1518. package/dist/plugins/orphaned-modules.d.ts +57 -0
  1519. package/dist/plugins/orphaned-modules.d.ts.map +1 -0
  1520. package/dist/plugins/plugin-rsc-package.d.ts +35 -0
  1521. package/dist/plugins/plugin-rsc-package.d.ts.map +1 -0
  1522. package/dist/plugins/post-build.d.ts +110 -0
  1523. package/dist/plugins/post-build.d.ts.map +1 -0
  1524. package/dist/plugins/prebuilt-capture.d.ts +67 -0
  1525. package/dist/plugins/prebuilt-capture.d.ts.map +1 -0
  1526. package/dist/plugins/prebuilt-options-analysis.d.ts +40 -0
  1527. package/dist/plugins/prebuilt-options-analysis.d.ts.map +1 -0
  1528. package/dist/plugins/prebuilt.d.ts +98 -0
  1529. package/dist/plugins/prebuilt.d.ts.map +1 -0
  1530. package/dist/plugins/prerender-sugar.d.ts +40 -0
  1531. package/dist/plugins/prerender-sugar.d.ts.map +1 -0
  1532. package/dist/plugins/react-resolve.d.ts +49 -0
  1533. package/dist/plugins/react-resolve.d.ts.map +1 -0
  1534. package/dist/plugins/route-css.d.ts +63 -0
  1535. package/dist/plugins/route-css.d.ts.map +1 -0
  1536. package/dist/plugins/routing.d.ts +2 -2
  1537. package/dist/plugins/routing.d.ts.map +1 -1
  1538. package/dist/plugins/rsc-assets-manifest.d.ts +33 -0
  1539. package/dist/plugins/rsc-assets-manifest.d.ts.map +1 -0
  1540. package/dist/plugins/server-bundle.d.ts +1 -1
  1541. package/dist/plugins/server-bundle.d.ts.map +1 -1
  1542. package/dist/plugins/shims.d.ts +39 -5
  1543. package/dist/plugins/shims.d.ts.map +1 -1
  1544. package/dist/plugins/static-build.d.ts +246 -26
  1545. package/dist/plugins/static-build.d.ts.map +1 -1
  1546. package/dist/plugins/virtual-ids.d.ts +16 -0
  1547. package/dist/plugins/virtual-ids.d.ts.map +1 -0
  1548. package/dist/routes/href.d.ts +124 -0
  1549. package/dist/routes/href.d.ts.map +1 -0
  1550. package/dist/routes/index.d.ts +4 -0
  1551. package/dist/routes/index.d.ts.map +1 -0
  1552. package/dist/routes/index.js +8 -0
  1553. package/dist/routes/index.js.map +1 -0
  1554. package/dist/routing/codegen-shared.d.ts +26 -0
  1555. package/dist/routing/codegen-shared.d.ts.map +1 -0
  1556. package/dist/routing/codegen-types.d.ts +70 -0
  1557. package/dist/routing/codegen-types.d.ts.map +1 -0
  1558. package/dist/routing/codegen-write.d.ts +42 -0
  1559. package/dist/routing/codegen-write.d.ts.map +1 -0
  1560. package/dist/routing/codegen.d.ts +8 -3
  1561. package/dist/routing/codegen.d.ts.map +1 -1
  1562. package/dist/routing/collision-probe.d.ts +104 -0
  1563. package/dist/routing/collision-probe.d.ts.map +1 -0
  1564. package/dist/routing/collision-spaces.d.ts +26 -0
  1565. package/dist/routing/collision-spaces.d.ts.map +1 -0
  1566. package/dist/routing/convention-lint.d.ts +63 -0
  1567. package/dist/routing/convention-lint.d.ts.map +1 -0
  1568. package/dist/routing/descendant-params.d.ts +46 -0
  1569. package/dist/routing/descendant-params.d.ts.map +1 -0
  1570. package/dist/routing/export-detect.d.ts +118 -0
  1571. package/dist/routing/export-detect.d.ts.map +1 -0
  1572. package/dist/routing/file-cache.d.ts +8 -0
  1573. package/dist/routing/file-cache.d.ts.map +1 -0
  1574. package/dist/routing/index.d.ts +13 -7
  1575. package/dist/routing/index.d.ts.map +1 -1
  1576. package/dist/routing/index.js +6 -2
  1577. package/dist/routing/interception-overlap.d.ts +35 -0
  1578. package/dist/routing/interception-overlap.d.ts.map +1 -0
  1579. package/dist/routing/interception.d.ts +234 -10
  1580. package/dist/routing/interception.d.ts.map +1 -1
  1581. package/dist/routing/link-codegen.d.ts +136 -0
  1582. package/dist/routing/link-codegen.d.ts.map +1 -0
  1583. package/dist/routing/manifest-codegen.d.ts +28 -0
  1584. package/dist/routing/manifest-codegen.d.ts.map +1 -0
  1585. package/dist/routing/route-options-lint.d.ts +36 -0
  1586. package/dist/routing/route-options-lint.d.ts.map +1 -0
  1587. package/dist/routing/route-options.d.ts +55 -0
  1588. package/dist/routing/route-options.d.ts.map +1 -0
  1589. package/dist/routing/scanner.d.ts +14 -10
  1590. package/dist/routing/scanner.d.ts.map +1 -1
  1591. package/dist/routing/schema-validation.d.ts +35 -0
  1592. package/dist/routing/schema-validation.d.ts.map +1 -0
  1593. package/dist/routing/segment-classify.d.ts +114 -0
  1594. package/dist/routing/segment-classify.d.ts.map +1 -0
  1595. package/dist/routing/segment-codegen.d.ts +38 -0
  1596. package/dist/routing/segment-codegen.d.ts.map +1 -0
  1597. package/dist/routing/segment-keys.d.ts +139 -0
  1598. package/dist/routing/segment-keys.d.ts.map +1 -0
  1599. package/dist/routing/slot-placement.d.ts +67 -0
  1600. package/dist/routing/slot-placement.d.ts.map +1 -0
  1601. package/dist/routing/types.d.ts +81 -26
  1602. package/dist/routing/types.d.ts.map +1 -1
  1603. package/dist/routing/walkers.d.ts +57 -0
  1604. package/dist/routing/walkers.d.ts.map +1 -0
  1605. package/dist/rsc-runtime/dev-reference-cache.d.ts +47 -0
  1606. package/dist/rsc-runtime/dev-reference-cache.d.ts.map +1 -0
  1607. package/dist/rsc-runtime/encryption-runtime.d.ts +25 -0
  1608. package/dist/rsc-runtime/encryption-runtime.d.ts.map +1 -0
  1609. package/dist/rsc-runtime/render-flight.d.ts +14 -0
  1610. package/dist/rsc-runtime/render-flight.d.ts.map +1 -0
  1611. package/dist/rsc-runtime/rsc.d.ts +3 -13
  1612. package/dist/rsc-runtime/rsc.d.ts.map +1 -1
  1613. package/dist/rsc-runtime/server-reference-load-error.d.ts +14 -0
  1614. package/dist/rsc-runtime/server-reference-load-error.d.ts.map +1 -0
  1615. package/dist/rsc-runtime/server-references.d.ts +19 -0
  1616. package/dist/rsc-runtime/server-references.d.ts.map +1 -0
  1617. package/dist/rsc-runtime/ssr.d.ts +7 -10
  1618. package/dist/rsc-runtime/ssr.d.ts.map +1 -1
  1619. package/dist/rsc-runtime/transforms.d.ts +13 -0
  1620. package/dist/rsc-runtime/transforms.d.ts.map +1 -0
  1621. package/dist/schema-bridge.d.ts +154 -0
  1622. package/dist/schema-bridge.d.ts.map +1 -0
  1623. package/dist/search-params/define.d.ts +282 -0
  1624. package/dist/search-params/define.d.ts.map +1 -0
  1625. package/dist/search-params/index.d.ts +4 -7
  1626. package/dist/search-params/index.d.ts.map +1 -1
  1627. package/dist/search-params/index.js +182 -362
  1628. package/dist/search-params/index.js.map +1 -1
  1629. package/dist/search-params/parse-total.d.ts +81 -0
  1630. package/dist/search-params/parse-total.d.ts.map +1 -0
  1631. package/dist/search-params/serialize-equal.d.ts +9 -0
  1632. package/dist/search-params/serialize-equal.d.ts.map +1 -0
  1633. package/dist/search-params/wrappers.d.ts +76 -0
  1634. package/dist/search-params/wrappers.d.ts.map +1 -0
  1635. package/dist/server/abort-scope.d.ts +34 -0
  1636. package/dist/server/abort-scope.d.ts.map +1 -0
  1637. package/dist/server/access-gate.d.ts +96 -10
  1638. package/dist/server/access-gate.d.ts.map +1 -1
  1639. package/dist/server/action-client.d.ts +20 -133
  1640. package/dist/server/action-client.d.ts.map +1 -1
  1641. package/dist/server/action-encryption.d.ts +76 -0
  1642. package/dist/server/action-encryption.d.ts.map +1 -0
  1643. package/dist/server/action-handler.d.ts +60 -11
  1644. package/dist/server/action-handler.d.ts.map +1 -1
  1645. package/dist/server/action-schema.d.ts +126 -0
  1646. package/dist/server/action-schema.d.ts.map +1 -0
  1647. package/dist/server/action-types.d.ts +108 -0
  1648. package/dist/server/action-types.d.ts.map +1 -0
  1649. package/dist/server/actions.d.ts +78 -40
  1650. package/dist/server/actions.d.ts.map +1 -1
  1651. package/dist/server/als-registry.d.ts +245 -17
  1652. package/dist/server/als-registry.d.ts.map +1 -1
  1653. package/dist/server/body-limits.d.ts.map +1 -1
  1654. package/dist/server/build-manifest.d.ts +18 -45
  1655. package/dist/server/build-manifest.d.ts.map +1 -1
  1656. package/dist/server/canonicalize.d.ts +53 -0
  1657. package/dist/server/canonicalize.d.ts.map +1 -1
  1658. package/dist/server/chain-url-parts.d.ts +72 -0
  1659. package/dist/server/chain-url-parts.d.ts.map +1 -0
  1660. package/dist/server/children-interception.d.ts +49 -0
  1661. package/dist/server/children-interception.d.ts.map +1 -0
  1662. package/dist/server/client-error-message.d.ts +12 -0
  1663. package/dist/server/client-error-message.d.ts.map +1 -0
  1664. package/dist/server/client-state-tree.d.ts +32 -0
  1665. package/dist/server/client-state-tree.d.ts.map +1 -0
  1666. package/dist/server/coalesce-tick.d.ts +40 -0
  1667. package/dist/server/coalesce-tick.d.ts.map +1 -0
  1668. package/dist/server/compress.d.ts +2 -0
  1669. package/dist/server/compress.d.ts.map +1 -1
  1670. package/dist/server/cookie-context.d.ts +159 -0
  1671. package/dist/server/cookie-context.d.ts.map +1 -0
  1672. package/dist/server/cookie-parsing.d.ts +65 -0
  1673. package/dist/server/cookie-parsing.d.ts.map +1 -0
  1674. package/dist/server/csp-nonce.d.ts +36 -0
  1675. package/dist/server/csp-nonce.d.ts.map +1 -0
  1676. package/dist/server/csrf.d.ts +58 -15
  1677. package/dist/server/csrf.d.ts.map +1 -1
  1678. package/dist/server/debug.d.ts +0 -1
  1679. package/dist/server/debug.d.ts.map +1 -1
  1680. package/dist/server/default-logger.d.ts +23 -0
  1681. package/dist/server/default-logger.d.ts.map +1 -0
  1682. package/dist/server/default-status-page.d.ts +45 -0
  1683. package/dist/server/default-status-page.d.ts.map +1 -0
  1684. package/dist/server/deny-boundary.d.ts +257 -0
  1685. package/dist/server/deny-boundary.d.ts.map +1 -0
  1686. package/dist/server/deny-renderer.d.ts +22 -15
  1687. package/dist/server/deny-renderer.d.ts.map +1 -1
  1688. package/dist/server/dev-overlay-report.d.ts +13 -0
  1689. package/dist/server/dev-overlay-report.d.ts.map +1 -0
  1690. package/dist/server/early-hints-sender.d.ts.map +1 -1
  1691. package/dist/server/early-hints.d.ts +14 -12
  1692. package/dist/server/early-hints.d.ts.map +1 -1
  1693. package/dist/server/error-boundary-wrapper.d.ts +102 -10
  1694. package/dist/server/error-boundary-wrapper.d.ts.map +1 -1
  1695. package/dist/server/error-response-headers.d.ts +3 -0
  1696. package/dist/server/error-response-headers.d.ts.map +1 -0
  1697. package/dist/server/fallback-error.d.ts +19 -7
  1698. package/dist/server/fallback-error.d.ts.map +1 -1
  1699. package/dist/server/flight-injection-state.d.ts +66 -0
  1700. package/dist/server/flight-injection-state.d.ts.map +1 -0
  1701. package/dist/server/flight-injector-core.d.ts +125 -0
  1702. package/dist/server/flight-injector-core.d.ts.map +1 -0
  1703. package/dist/server/flight-scripts.d.ts +63 -0
  1704. package/dist/server/flight-scripts.d.ts.map +1 -0
  1705. package/dist/server/flight-source-node.d.ts +105 -0
  1706. package/dist/server/flight-source-node.d.ts.map +1 -0
  1707. package/dist/server/flight-source.d.ts +139 -0
  1708. package/dist/server/flight-source.d.ts.map +1 -0
  1709. package/dist/server/form-data.d.ts +59 -2
  1710. package/dist/server/form-data.d.ts.map +1 -1
  1711. package/dist/server/form-state-flight.d.ts +32 -0
  1712. package/dist/server/form-state-flight.d.ts.map +1 -0
  1713. package/dist/server/framework-stack-frames.d.ts +20 -0
  1714. package/dist/server/framework-stack-frames.d.ts.map +1 -0
  1715. package/dist/server/head-response.d.ts +35 -0
  1716. package/dist/server/head-response.d.ts.map +1 -0
  1717. package/dist/server/html-injector-core.d.ts +169 -0
  1718. package/dist/server/html-injector-core.d.ts.map +1 -0
  1719. package/dist/server/html-injectors.d.ts +82 -51
  1720. package/dist/server/html-injectors.d.ts.map +1 -1
  1721. package/dist/server/index.d.ts +17 -54
  1722. package/dist/server/index.d.ts.map +1 -1
  1723. package/dist/server/index.js +621 -3009
  1724. package/dist/server/index.js.map +1 -1
  1725. package/dist/server/instrumentation.d.ts +13 -5
  1726. package/dist/server/instrumentation.d.ts.map +1 -1
  1727. package/dist/server/interception-gates.d.ts +49 -0
  1728. package/dist/server/interception-gates.d.ts.map +1 -0
  1729. package/dist/server/internal.d.ts +48 -0
  1730. package/dist/server/internal.d.ts.map +1 -0
  1731. package/dist/server/internal.js +5205 -0
  1732. package/dist/server/internal.js.map +1 -0
  1733. package/dist/server/json-status-response.d.ts +34 -0
  1734. package/dist/server/json-status-response.d.ts.map +1 -0
  1735. package/dist/server/logger.d.ts +115 -7
  1736. package/dist/server/logger.d.ts.map +1 -1
  1737. package/dist/server/metadata-collector.d.ts +75 -0
  1738. package/dist/server/metadata-collector.d.ts.map +1 -0
  1739. package/dist/server/metadata-platform.d.ts +2 -2
  1740. package/dist/server/metadata-render.d.ts +6 -3
  1741. package/dist/server/metadata-render.d.ts.map +1 -1
  1742. package/dist/server/metadata-route-links.d.ts +70 -0
  1743. package/dist/server/metadata-route-links.d.ts.map +1 -0
  1744. package/dist/server/metadata-routes.d.ts +47 -11
  1745. package/dist/server/metadata-routes.d.ts.map +1 -1
  1746. package/dist/server/metadata-social.d.ts +2 -2
  1747. package/dist/server/metadata-urls.d.ts +24 -0
  1748. package/dist/server/metadata-urls.d.ts.map +1 -0
  1749. package/dist/server/metadata.d.ts +10 -9
  1750. package/dist/server/metadata.d.ts.map +1 -1
  1751. package/dist/server/middleware-runner.d.ts +20 -5
  1752. package/dist/server/middleware-runner.d.ts.map +1 -1
  1753. package/dist/server/node-body-response.d.ts +55 -0
  1754. package/dist/server/node-body-response.d.ts.map +1 -0
  1755. package/dist/server/node-response.d.ts +62 -0
  1756. package/dist/server/node-response.d.ts.map +1 -0
  1757. package/dist/server/node-stream-transforms.d.ts +108 -0
  1758. package/dist/server/node-stream-transforms.d.ts.map +1 -0
  1759. package/dist/server/node-streams-platform.d.ts +21 -0
  1760. package/dist/server/node-streams-platform.d.ts.map +1 -0
  1761. package/dist/server/param-coercion.d.ts +84 -0
  1762. package/dist/server/param-coercion.d.ts.map +1 -0
  1763. package/dist/server/pipeline-helpers.d.ts +227 -0
  1764. package/dist/server/pipeline-helpers.d.ts.map +1 -0
  1765. package/dist/server/pipeline-interception.d.ts +100 -9
  1766. package/dist/server/pipeline-interception.d.ts.map +1 -1
  1767. package/dist/server/pipeline-metadata-route.d.ts +24 -0
  1768. package/dist/server/pipeline-metadata-route.d.ts.map +1 -0
  1769. package/dist/server/pipeline-metadata.d.ts +18 -2
  1770. package/dist/server/pipeline-metadata.d.ts.map +1 -1
  1771. package/dist/server/pipeline-outcome.d.ts +59 -0
  1772. package/dist/server/pipeline-outcome.d.ts.map +1 -0
  1773. package/dist/server/pipeline-phases.d.ts +76 -0
  1774. package/dist/server/pipeline-phases.d.ts.map +1 -0
  1775. package/dist/server/pipeline.d.ts +203 -24
  1776. package/dist/server/pipeline.d.ts.map +1 -1
  1777. package/dist/server/port-resolution.d.ts +22 -0
  1778. package/dist/server/port-resolution.d.ts.map +1 -0
  1779. package/dist/server/prebuilt/cache-key.d.ts +89 -0
  1780. package/dist/server/prebuilt/cache-key.d.ts.map +1 -0
  1781. package/dist/server/prebuilt/capture-render.d.ts +30 -0
  1782. package/dist/server/prebuilt/capture-render.d.ts.map +1 -0
  1783. package/dist/server/prebuilt/capture-routes.d.ts +37 -0
  1784. package/dist/server/prebuilt/capture-routes.d.ts.map +1 -0
  1785. package/dist/server/prebuilt/capture-state.d.ts +101 -0
  1786. package/dist/server/prebuilt/capture-state.d.ts.map +1 -0
  1787. package/dist/server/prebuilt/dev-store.d.ts +149 -0
  1788. package/dist/server/prebuilt/dev-store.d.ts.map +1 -0
  1789. package/dist/server/prebuilt/lifetime.d.ts +38 -0
  1790. package/dist/server/prebuilt/lifetime.d.ts.map +1 -0
  1791. package/dist/server/prebuilt/manifest-tag-index.d.ts +27 -0
  1792. package/dist/server/prebuilt/manifest-tag-index.d.ts.map +1 -0
  1793. package/dist/server/prebuilt/overlay.d.ts +119 -0
  1794. package/dist/server/prebuilt/overlay.d.ts.map +1 -0
  1795. package/dist/server/prebuilt/payload-source.d.ts +87 -0
  1796. package/dist/server/prebuilt/payload-source.d.ts.map +1 -0
  1797. package/dist/server/prebuilt/slots.d.ts +105 -0
  1798. package/dist/server/prebuilt/slots.d.ts.map +1 -0
  1799. package/dist/server/prebuilt/synthetic-store.d.ts +67 -0
  1800. package/dist/server/prebuilt/synthetic-store.d.ts.map +1 -0
  1801. package/dist/server/prebuilt-builder.d.ts +121 -0
  1802. package/dist/server/prebuilt-builder.d.ts.map +1 -0
  1803. package/dist/server/prebuilt-runtime.d.ts +95 -0
  1804. package/dist/server/prebuilt-runtime.d.ts.map +1 -0
  1805. package/dist/server/primitives.d.ts +114 -90
  1806. package/dist/server/primitives.d.ts.map +1 -1
  1807. package/dist/server/publish-params.d.ts +34 -0
  1808. package/dist/server/publish-params.d.ts.map +1 -0
  1809. package/dist/server/react-cache-bridge.d.ts +59 -0
  1810. package/dist/server/react-cache-bridge.d.ts.map +1 -0
  1811. package/dist/server/react-cache-scope.d.ts +49 -0
  1812. package/dist/server/react-cache-scope.d.ts.map +1 -0
  1813. package/dist/server/render-timeout.d.ts +66 -0
  1814. package/dist/server/render-timeout.d.ts.map +1 -0
  1815. package/dist/server/render-utils.d.ts +56 -0
  1816. package/dist/server/render-utils.d.ts.map +1 -0
  1817. package/dist/server/request-context.d.ts +172 -103
  1818. package/dist/server/request-context.d.ts.map +1 -1
  1819. package/dist/server/response-cache-policy.d.ts +3 -0
  1820. package/dist/server/response-cache-policy.d.ts.map +1 -0
  1821. package/dist/server/response-framing.d.ts +43 -0
  1822. package/dist/server/response-framing.d.ts.map +1 -0
  1823. package/dist/server/route-element-builder.d.ts +47 -35
  1824. package/dist/server/route-element-builder.d.ts.map +1 -1
  1825. package/dist/server/route-handler.d.ts +9 -3
  1826. package/dist/server/route-handler.d.ts.map +1 -1
  1827. package/dist/server/route-matcher.d.ts +75 -40
  1828. package/dist/server/route-matcher.d.ts.map +1 -1
  1829. package/dist/server/route-methods.d.ts +23 -0
  1830. package/dist/server/route-methods.d.ts.map +1 -0
  1831. package/dist/server/route-module-loader.d.ts +46 -0
  1832. package/dist/server/route-module-loader.d.ts.map +1 -0
  1833. package/dist/server/rsc-cache-key-guard.d.ts +80 -0
  1834. package/dist/server/rsc-cache-key-guard.d.ts.map +1 -0
  1835. package/dist/server/rsc-entry/action-dispatcher.d.ts +65 -0
  1836. package/dist/server/rsc-entry/action-dispatcher.d.ts.map +1 -0
  1837. package/dist/server/rsc-entry/action-middleware-runner.d.ts +66 -0
  1838. package/dist/server/rsc-entry/action-middleware-runner.d.ts.map +1 -0
  1839. package/dist/server/rsc-entry/api-handler.d.ts +19 -3
  1840. package/dist/server/rsc-entry/api-handler.d.ts.map +1 -1
  1841. package/dist/server/rsc-entry/deny-fallback.d.ts +55 -0
  1842. package/dist/server/rsc-entry/deny-fallback.d.ts.map +1 -0
  1843. package/dist/server/rsc-entry/error-renderer.d.ts +35 -21
  1844. package/dist/server/rsc-entry/error-renderer.d.ts.map +1 -1
  1845. package/dist/server/rsc-entry/helpers.d.ts +11 -62
  1846. package/dist/server/rsc-entry/helpers.d.ts.map +1 -1
  1847. package/dist/server/rsc-entry/index.d.ts +30 -6
  1848. package/dist/server/rsc-entry/index.d.ts.map +1 -1
  1849. package/dist/server/rsc-entry/render-route.d.ts +64 -0
  1850. package/dist/server/rsc-entry/render-route.d.ts.map +1 -0
  1851. package/dist/server/rsc-entry/render-signals.d.ts +65 -0
  1852. package/dist/server/rsc-entry/render-signals.d.ts.map +1 -0
  1853. package/dist/server/rsc-entry/revalidate-renderer.d.ts +110 -0
  1854. package/dist/server/rsc-entry/revalidate-renderer.d.ts.map +1 -0
  1855. package/dist/server/rsc-entry/rsc-payload.d.ts +37 -11
  1856. package/dist/server/rsc-entry/rsc-payload.d.ts.map +1 -1
  1857. package/dist/server/rsc-entry/rsc-stream.d.ts +18 -31
  1858. package/dist/server/rsc-entry/rsc-stream.d.ts.map +1 -1
  1859. package/dist/server/rsc-entry/ssr-bridge.d.ts +7 -2
  1860. package/dist/server/rsc-entry/ssr-bridge.d.ts.map +1 -1
  1861. package/dist/server/rsc-entry/ssr-renderer.d.ts +52 -8
  1862. package/dist/server/rsc-entry/ssr-renderer.d.ts.map +1 -1
  1863. package/dist/server/rsc-error-envelope.d.ts +11 -0
  1864. package/dist/server/rsc-error-envelope.d.ts.map +1 -0
  1865. package/dist/server/safe-load.d.ts +61 -0
  1866. package/dist/server/safe-load.d.ts.map +1 -0
  1867. package/dist/server/schema-introspection.d.ts +68 -0
  1868. package/dist/server/schema-introspection.d.ts.map +1 -0
  1869. package/dist/server/segment-lifetime/document-outlet.d.ts +66 -0
  1870. package/dist/server/segment-lifetime/document-outlet.d.ts.map +1 -0
  1871. package/dist/server/segment-lifetime/key-digest.d.ts +46 -0
  1872. package/dist/server/segment-lifetime/key-digest.d.ts.map +1 -0
  1873. package/dist/server/segment-lifetime/outlet-gate.d.ts +58 -0
  1874. package/dist/server/segment-lifetime/outlet-gate.d.ts.map +1 -0
  1875. package/dist/server/segment-lifetime/read-rule.d.ts +56 -0
  1876. package/dist/server/segment-lifetime/read-rule.d.ts.map +1 -0
  1877. package/dist/server/segment-lifetime/read-scope.d.ts +87 -0
  1878. package/dist/server/segment-lifetime/read-scope.d.ts.map +1 -0
  1879. package/dist/server/segment-lifetime/segment-key.d.ts +71 -0
  1880. package/dist/server/segment-lifetime/segment-key.d.ts.map +1 -0
  1881. package/dist/server/segment-lifetime/slot-outlets.d.ts +80 -0
  1882. package/dist/server/segment-lifetime/slot-outlets.d.ts.map +1 -0
  1883. package/dist/server/sensitive-fields.d.ts +88 -0
  1884. package/dist/server/sensitive-fields.d.ts.map +1 -0
  1885. package/dist/server/signal-identity.d.ts +49 -0
  1886. package/dist/server/signal-identity.d.ts.map +1 -0
  1887. package/dist/server/sitemap-generator.d.ts +130 -0
  1888. package/dist/server/sitemap-generator.d.ts.map +1 -0
  1889. package/dist/server/sitemap-handler.d.ts +22 -0
  1890. package/dist/server/sitemap-handler.d.ts.map +1 -0
  1891. package/dist/server/slot-interception.d.ts +80 -0
  1892. package/dist/server/slot-interception.d.ts.map +1 -0
  1893. package/dist/server/slot-resolver.d.ts +78 -7
  1894. package/dist/server/slot-resolver.d.ts.map +1 -1
  1895. package/dist/server/slot-subtree-contain.d.ts +50 -0
  1896. package/dist/server/slot-subtree-contain.d.ts.map +1 -0
  1897. package/dist/server/ssr-bridge-types.d.ts +219 -0
  1898. package/dist/server/ssr-bridge-types.d.ts.map +1 -0
  1899. package/dist/server/ssr-entry.d.ts +15 -51
  1900. package/dist/server/ssr-entry.d.ts.map +1 -1
  1901. package/dist/server/ssr-form-state.d.ts +30 -0
  1902. package/dist/server/ssr-form-state.d.ts.map +1 -0
  1903. package/dist/server/ssr-render.d.ts +42 -12
  1904. package/dist/server/ssr-render.d.ts.map +1 -1
  1905. package/dist/server/ssr-wrappers.d.ts +95 -0
  1906. package/dist/server/ssr-wrappers.d.ts.map +1 -0
  1907. package/dist/server/static-generator.d.ts +112 -0
  1908. package/dist/server/static-generator.d.ts.map +1 -0
  1909. package/dist/server/static-not-found.d.ts +52 -0
  1910. package/dist/server/static-not-found.d.ts.map +1 -0
  1911. package/dist/server/status-code-resolver.d.ts +26 -15
  1912. package/dist/server/status-code-resolver.d.ts.map +1 -1
  1913. package/dist/server/stream-utils.d.ts +93 -0
  1914. package/dist/server/stream-utils.d.ts.map +1 -0
  1915. package/dist/server/subtree-walk.d.ts +70 -0
  1916. package/dist/server/subtree-walk.d.ts.map +1 -0
  1917. package/dist/server/traced-access.d.ts +18 -0
  1918. package/dist/server/traced-access.d.ts.map +1 -0
  1919. package/dist/server/tracing.d.ts +72 -31
  1920. package/dist/server/tracing.d.ts.map +1 -1
  1921. package/dist/server/tree-match.d.ts +59 -0
  1922. package/dist/server/tree-match.d.ts.map +1 -0
  1923. package/dist/server/types.d.ts +167 -8
  1924. package/dist/server/types.d.ts.map +1 -1
  1925. package/dist/server/utils/element-type.d.ts +50 -0
  1926. package/dist/server/utils/element-type.d.ts.map +1 -0
  1927. package/dist/server/utils/escape-html.d.ts +14 -0
  1928. package/dist/server/utils/escape-html.d.ts.map +1 -0
  1929. package/dist/server/version-skew.d.ts +61 -0
  1930. package/dist/server/version-skew.d.ts.map +1 -0
  1931. package/dist/server/vite-handoff-rsc.d.ts +86 -0
  1932. package/dist/server/vite-handoff-rsc.d.ts.map +1 -0
  1933. package/dist/server/workers-cache-bridge.d.ts +26 -0
  1934. package/dist/server/workers-cache-bridge.d.ts.map +1 -0
  1935. package/dist/shared/als-slots.d.ts +52 -0
  1936. package/dist/shared/als-slots.d.ts.map +1 -0
  1937. package/dist/shared/base-path.d.ts +56 -0
  1938. package/dist/shared/base-path.d.ts.map +1 -0
  1939. package/dist/shared/cookie-read-through.d.ts +18 -0
  1940. package/dist/shared/cookie-read-through.d.ts.map +1 -0
  1941. package/dist/shared/csrf-reject.d.ts +16 -0
  1942. package/dist/shared/csrf-reject.d.ts.map +1 -0
  1943. package/dist/shared/dev-span.d.ts +123 -0
  1944. package/dist/shared/dev-span.d.ts.map +1 -0
  1945. package/dist/shared/error-digest.d.ts +28 -0
  1946. package/dist/shared/error-digest.d.ts.map +1 -0
  1947. package/dist/shared/flight-base64.d.ts +13 -0
  1948. package/dist/shared/flight-base64.d.ts.map +1 -0
  1949. package/dist/shared/flight-segment.d.ts +18 -0
  1950. package/dist/shared/flight-segment.d.ts.map +1 -0
  1951. package/dist/shared/form-state-flight.d.ts +32 -0
  1952. package/dist/shared/form-state-flight.d.ts.map +1 -0
  1953. package/dist/shared/href-validation.d.ts +49 -0
  1954. package/dist/shared/href-validation.d.ts.map +1 -0
  1955. package/dist/shared/href.d.ts +88 -0
  1956. package/dist/shared/href.d.ts.map +1 -0
  1957. package/dist/shared/key-headers.d.ts +15 -0
  1958. package/dist/shared/key-headers.d.ts.map +1 -0
  1959. package/dist/shared/layout-defaults.d.ts +30 -0
  1960. package/dist/shared/layout-defaults.d.ts.map +1 -0
  1961. package/dist/shared/merge-search-params.d.ts +22 -0
  1962. package/dist/shared/merge-search-params.d.ts.map +1 -0
  1963. package/dist/shared/outlet-decision.d.ts +36 -0
  1964. package/dist/shared/outlet-decision.d.ts.map +1 -0
  1965. package/dist/shared/param-value.d.ts +104 -0
  1966. package/dist/shared/param-value.d.ts.map +1 -0
  1967. package/dist/shared/payload-root.d.ts +107 -0
  1968. package/dist/shared/payload-root.d.ts.map +1 -0
  1969. package/dist/shared/redirect-type.d.ts +17 -0
  1970. package/dist/shared/redirect-type.d.ts.map +1 -0
  1971. package/dist/shared/route-options-export.d.ts +13 -0
  1972. package/dist/shared/route-options-export.d.ts.map +1 -0
  1973. package/dist/shared/rsc-cache-key.d.ts +185 -0
  1974. package/dist/shared/rsc-cache-key.d.ts.map +1 -0
  1975. package/dist/shared/rsc-error-envelope.d.ts +16 -0
  1976. package/dist/shared/rsc-error-envelope.d.ts.map +1 -0
  1977. package/dist/shared/rsc-manifest.d.ts +28 -0
  1978. package/dist/shared/rsc-manifest.d.ts.map +1 -0
  1979. package/dist/shared/rsc-media-type.d.ts +52 -0
  1980. package/dist/shared/rsc-media-type.d.ts.map +1 -0
  1981. package/dist/shared/rsc-payload-path.d.ts +48 -0
  1982. package/dist/shared/rsc-payload-path.d.ts.map +1 -0
  1983. package/dist/shared/segment-info.d.ts +53 -0
  1984. package/dist/shared/segment-info.d.ts.map +1 -0
  1985. package/dist/shared/slot-params.d.ts +52 -0
  1986. package/dist/shared/slot-params.d.ts.map +1 -0
  1987. package/dist/shared/span-waterfall.d.ts +88 -0
  1988. package/dist/shared/span-waterfall.d.ts.map +1 -0
  1989. package/dist/shared/static-platform-files.d.ts +71 -0
  1990. package/dist/shared/static-platform-files.d.ts.map +1 -0
  1991. package/dist/shared/status-reason-phrase.d.ts +26 -0
  1992. package/dist/shared/status-reason-phrase.d.ts.map +1 -0
  1993. package/dist/shims/font-google.d.ts +1 -1
  1994. package/dist/shims/font-google.d.ts.map +1 -1
  1995. package/dist/shims/font-google.js +41 -0
  1996. package/dist/shims/font-google.js.map +1 -0
  1997. package/dist/shims/font-local.d.ts +26 -0
  1998. package/dist/shims/font-local.d.ts.map +1 -0
  1999. package/dist/shims/font-local.js +19 -0
  2000. package/dist/shims/font-local.js.map +1 -0
  2001. package/dist/shims/headers.d.ts +60 -1
  2002. package/dist/shims/headers.d.ts.map +1 -1
  2003. package/dist/shims/image.d.ts +120 -120
  2004. package/dist/shims/image.d.ts.map +1 -1
  2005. package/dist/shims/navigation-client.d.ts +25 -12
  2006. package/dist/shims/navigation-client.d.ts.map +1 -1
  2007. package/dist/shims/navigation-rsc.d.ts +21 -0
  2008. package/dist/shims/navigation-rsc.d.ts.map +1 -0
  2009. package/dist/shims/navigation.d.ts +10 -5
  2010. package/dist/shims/navigation.d.ts.map +1 -1
  2011. package/dist/utils/state-machine.d.ts +80 -0
  2012. package/dist/utils/state-machine.d.ts.map +1 -0
  2013. package/dist/utils/write-file-atomic.d.ts +17 -0
  2014. package/dist/utils/write-file-atomic.d.ts.map +1 -0
  2015. package/docs/api/30-api-server.mdx +270 -0
  2016. package/docs/api/31-api-client.mdx +225 -0
  2017. package/docs/api/32-api-cache.mdx +347 -0
  2018. package/docs/api/33-api-search-params.mdx +178 -0
  2019. package/docs/api/34-api-config.mdx +461 -0
  2020. package/docs/api/35-api-typescript.mdx +123 -0
  2021. package/docs/api/36-cli.mdx +272 -0
  2022. package/docs/learn/00-introduction.mdx +109 -0
  2023. package/docs/learn/01-quick-start.mdx +94 -0
  2024. package/docs/learn/02-pages-and-layouts.mdx +147 -0
  2025. package/docs/learn/03-fetching-data.mdx +227 -0
  2026. package/docs/learn/04-access-control.mdx +115 -0
  2027. package/docs/learn/05-the-flush-point.mdx +175 -0
  2028. package/docs/learn/06-typed-params.mdx +308 -0
  2029. package/docs/learn/07-typed-routes.mdx +173 -0
  2030. package/docs/learn/08-forms-and-actions.mdx +260 -0
  2031. package/docs/learn/09-streaming.mdx +150 -0
  2032. package/docs/learn/10-caching.mdx +309 -0
  2033. package/docs/learn/11-middleware.mdx +166 -0
  2034. package/docs/learn/12-error-handling.mdx +192 -0
  2035. package/docs/learn/13-deploying.mdx +289 -0
  2036. package/llms.txt +55 -0
  2037. package/package.json +126 -30
  2038. package/src/adapters/build-output-helper.ts +375 -0
  2039. package/src/adapters/canonicalize-module.ts +29 -0
  2040. package/src/adapters/cloudflare-dev.ts +183 -0
  2041. package/src/adapters/cloudflare-kv-cache.ts +203 -0
  2042. package/src/adapters/cloudflare.ts +799 -151
  2043. package/src/adapters/compress-module.ts +110 -86
  2044. package/src/adapters/fs-identity.ts +155 -0
  2045. package/src/adapters/nitro-immutable-assets.ts +142 -0
  2046. package/src/adapters/nitro-presets.ts +153 -0
  2047. package/src/adapters/nitro-preview.ts +565 -0
  2048. package/src/adapters/nitro.ts +349 -448
  2049. package/src/adapters/raw-imports.d.ts +5 -0
  2050. package/src/adapters/shared.ts +314 -0
  2051. package/src/adapters/types.ts +129 -17
  2052. package/src/adapters/wrangler.d.ts +7 -0
  2053. package/src/analyze/chains.ts +411 -0
  2054. package/src/analyze/classify.ts +259 -0
  2055. package/src/analyze/crawl-entry.ts +68 -0
  2056. package/src/analyze/crawl.ts +500 -0
  2057. package/src/analyze/graph-cache.ts +331 -0
  2058. package/src/analyze/graph-command.ts +654 -0
  2059. package/src/analyze/live-graph.ts +232 -0
  2060. package/src/analyze/poison-rules.ts +165 -0
  2061. package/src/analyze/poison-scan.ts +159 -0
  2062. package/src/analyze/scan.ts +149 -0
  2063. package/src/cache/cache-api.ts +113 -0
  2064. package/src/cache/fast-hash.ts +5 -0
  2065. package/src/cache/guarded-read.ts +44 -0
  2066. package/src/cache/handler-store.ts +113 -0
  2067. package/src/cache/index.ts +93 -20
  2068. package/src/cache/invalidation-epoch.ts +105 -0
  2069. package/src/cache/json-lossy-check.ts +69 -0
  2070. package/src/cache/key-discipline.ts +218 -0
  2071. package/src/cache/redis-handler.ts +193 -19
  2072. package/src/cache/singleflight.ts +85 -7
  2073. package/src/cache/sizeof.ts +35 -0
  2074. package/src/cache/stable-stringify.ts +118 -2
  2075. package/src/cache/store.ts +71 -0
  2076. package/src/cache/stores/cloudflare-kv.ts +52 -0
  2077. package/src/cache/stores/memory.ts +125 -0
  2078. package/src/cache/stores/redis.ts +97 -0
  2079. package/src/cache/stores/vercel.ts +59 -0
  2080. package/src/cache/tag-aware-handler.ts +250 -0
  2081. package/src/cache/timber-cache.ts +218 -47
  2082. package/src/cdn/cloudflare-purge.ts +50 -0
  2083. package/src/cdn/fastly-purge.ts +63 -0
  2084. package/src/cdn/headers.ts +153 -0
  2085. package/src/cdn/index.ts +23 -0
  2086. package/src/cdn/purge-store.ts +62 -0
  2087. package/src/cdn/workers-cache-purge.ts +34 -0
  2088. package/src/cli-check.ts +425 -0
  2089. package/src/cli-context.ts +128 -0
  2090. package/src/cli-dev-status.ts +196 -0
  2091. package/src/cli-init.ts +278 -0
  2092. package/src/cli-schema-sync.ts +401 -0
  2093. package/src/cli.ts +308 -84
  2094. package/src/client/browser-dev.ts +192 -5
  2095. package/src/client/browser-entry/action-dispatch.ts +303 -0
  2096. package/src/client/browser-entry/action-queue.ts +152 -0
  2097. package/src/client/browser-entry/form-state.ts +49 -0
  2098. package/src/client/browser-entry/hmr.ts +82 -0
  2099. package/src/client/browser-entry/hydrate.ts +152 -0
  2100. package/src/client/browser-entry/index.ts +151 -0
  2101. package/src/client/browser-entry/post-hydration.ts +104 -0
  2102. package/src/client/browser-entry/router-init.ts +370 -0
  2103. package/src/client/browser-entry/rsc-stream.ts +145 -0
  2104. package/src/client/browser-entry/scroll.ts +53 -0
  2105. package/src/client/deny-last-resort.tsx +54 -0
  2106. package/src/client/dev-pill/index.ts +131 -0
  2107. package/src/client/dev-pill/store.ts +195 -0
  2108. package/src/client/dev-pill/view.ts +448 -0
  2109. package/src/client/document-withdrawal.tsx +41 -0
  2110. package/src/client/error-boundary.tsx +337 -62
  2111. package/src/client/error-reconstituter.tsx +84 -0
  2112. package/src/client/form.tsx +61 -173
  2113. package/src/client/global-context.ts +59 -0
  2114. package/src/client/history.ts +73 -11
  2115. package/src/client/index.ts +93 -53
  2116. package/src/client/internal.ts +50 -0
  2117. package/src/client/link.tsx +285 -204
  2118. package/src/client/location-search.ts +15 -0
  2119. package/src/client/navigation-api.ts +254 -0
  2120. package/src/client/navigation-commit.ts +255 -0
  2121. package/src/client/navigation-context.ts +71 -142
  2122. package/src/client/navigation-root.tsx +237 -0
  2123. package/src/client/navigation-transition.ts +401 -0
  2124. package/src/client/nuqs-adapter.tsx +193 -41
  2125. package/src/client/outlet-content-cache.ts +129 -0
  2126. package/src/client/outlet-scope-context.ts +47 -0
  2127. package/src/client/params-context.ts +174 -0
  2128. package/src/client/react-root.ts +105 -0
  2129. package/src/client/router-effects.ts +349 -0
  2130. package/src/client/router-lifecycle.ts +394 -0
  2131. package/src/client/router-pipeline.ts +379 -0
  2132. package/src/client/router-ref.ts +3 -3
  2133. package/src/client/router-skew.ts +30 -0
  2134. package/src/client/router-types.ts +307 -0
  2135. package/src/client/router-url.ts +32 -0
  2136. package/src/client/router.ts +481 -418
  2137. package/src/client/rsc-fetch.ts +506 -130
  2138. package/src/client/segment-cache.ts +212 -136
  2139. package/src/client/segment-context.ts +7 -4
  2140. package/src/client/segment-outlet.tsx +84 -0
  2141. package/src/client/shallow-url.ts +22 -0
  2142. package/src/client/slot-context.ts +39 -0
  2143. package/src/client/slot-outlet.tsx +22 -0
  2144. package/src/client/slot-provider.tsx +32 -0
  2145. package/src/client/ssr-data.ts +51 -98
  2146. package/src/client/stale-client.ts +191 -0
  2147. package/src/client/stale-segment.ts +60 -0
  2148. package/src/client/state.ts +29 -35
  2149. package/src/client/status-page-marker.tsx +32 -0
  2150. package/src/client/top-loader.tsx +13 -10
  2151. package/src/client/unload-guard.ts +35 -3
  2152. package/src/client/use-cookie.ts +94 -29
  2153. package/src/client/use-field-state.ts +144 -0
  2154. package/src/client/use-link-status.ts +7 -7
  2155. package/src/client/use-pathname.ts +22 -31
  2156. package/src/client/use-pending-navigation.ts +119 -0
  2157. package/src/client/use-query-states.ts +222 -48
  2158. package/src/client/use-router.ts +31 -9
  2159. package/src/client/use-search-params.ts +39 -49
  2160. package/src/client/use-segment-params.ts +69 -0
  2161. package/src/client/use-selected-layout-segment.ts +2 -2
  2162. package/src/codec.ts +149 -0
  2163. package/src/config-types.ts +409 -0
  2164. package/src/config-validation.ts +610 -0
  2165. package/src/cookies/define-cookie.ts +190 -53
  2166. package/src/cookies/index.ts +13 -2
  2167. package/src/cookies/json-cookie.ts +105 -0
  2168. package/src/cookies/validation.ts +192 -0
  2169. package/src/dev-tools/404-page.ts +286 -0
  2170. package/src/dev-tools/await-span.ts +88 -0
  2171. package/src/dev-tools/browser-logs.ts +55 -0
  2172. package/src/dev-tools/dev-page-shell.ts +278 -0
  2173. package/src/dev-tools/error-page.ts +331 -0
  2174. package/src/dev-tools/holding-server.ts +185 -0
  2175. package/src/dev-tools/hydration-overlay.ts +158 -0
  2176. package/src/dev-tools/index.ts +79 -0
  2177. package/src/dev-tools/instrumentation.ts +322 -0
  2178. package/src/dev-tools/log-columns.ts +156 -0
  2179. package/src/dev-tools/logger.ts +535 -0
  2180. package/src/dev-tools/logs.ts +411 -0
  2181. package/src/dev-tools/overlay.ts +175 -0
  2182. package/src/dev-tools/span-sink.ts +163 -0
  2183. package/src/dev-tools/stack-classifier.ts +75 -0
  2184. package/src/dev-tools/terminal.ts +182 -0
  2185. package/src/fonts/ast-walk.ts +235 -0
  2186. package/src/fonts/ast.ts +512 -128
  2187. package/src/fonts/bundle.ts +192 -0
  2188. package/src/fonts/css.ts +1 -1
  2189. package/src/fonts/dev-middleware.ts +85 -0
  2190. package/src/fonts/fallbacks.ts +90 -49
  2191. package/src/fonts/font-metrics.ts +236 -0
  2192. package/src/fonts/google.ts +101 -19
  2193. package/src/fonts/local-fallback.ts +249 -0
  2194. package/src/fonts/local.ts +26 -12
  2195. package/src/fonts/paths.ts +58 -0
  2196. package/src/fonts/pipeline.ts +351 -0
  2197. package/src/fonts/sfnt.ts +185 -0
  2198. package/src/fonts/transform.ts +314 -0
  2199. package/src/fonts/types.ts +81 -1
  2200. package/src/fonts/virtual-modules.ts +179 -0
  2201. package/src/index.ts +509 -380
  2202. package/src/params/codec-registry.ts +47 -0
  2203. package/src/params/define-schema.ts +115 -0
  2204. package/src/params/index.ts +16 -0
  2205. package/src/params/resolve-schema.ts +84 -0
  2206. package/src/plugin-context.ts +493 -0
  2207. package/src/plugins/build-manifest.ts +168 -36
  2208. package/src/plugins/build-report.ts +299 -87
  2209. package/src/plugins/cache.ts +243 -0
  2210. package/src/plugins/callsite-ast.ts +472 -0
  2211. package/src/plugins/callsite-jsx.ts +341 -0
  2212. package/src/plugins/chunks.ts +74 -5
  2213. package/src/plugins/client-chunks.ts +185 -0
  2214. package/src/plugins/client-dep-entries.ts +124 -0
  2215. package/src/plugins/client-in-server-package-deps.ts +139 -0
  2216. package/src/plugins/cloudflare-wasm.ts +141 -0
  2217. package/src/plugins/content.ts +31 -2
  2218. package/src/plugins/dev-await.ts +473 -0
  2219. package/src/plugins/dev-discovery.ts +428 -0
  2220. package/src/plugins/dev-hostname.ts +322 -0
  2221. package/src/plugins/dev-precompile.ts +256 -0
  2222. package/src/plugins/dev-server.ts +487 -102
  2223. package/src/plugins/dev-store-clear.ts +145 -0
  2224. package/src/plugins/encryption-runtime.ts +31 -0
  2225. package/src/plugins/entries.ts +163 -27
  2226. package/src/plugins/fonts.ts +285 -656
  2227. package/src/plugins/graph-endpoint.ts +544 -0
  2228. package/src/plugins/mdx.ts +108 -35
  2229. package/src/plugins/native-runtime-boundary.ts +103 -0
  2230. package/src/plugins/native-runtime.ts +333 -0
  2231. package/src/plugins/node-flight-builds.ts +94 -0
  2232. package/src/plugins/optimize-package-imports-defaults.ts +88 -0
  2233. package/src/plugins/optimize-package-imports.ts +439 -0
  2234. package/src/plugins/orphaned-modules.ts +78 -0
  2235. package/src/plugins/plugin-rsc-package.ts +81 -0
  2236. package/src/plugins/post-build.ts +327 -0
  2237. package/src/plugins/prebuilt-capture.ts +213 -0
  2238. package/src/plugins/prebuilt-options-analysis.ts +175 -0
  2239. package/src/plugins/prebuilt.ts +679 -0
  2240. package/src/plugins/prerender-sugar.ts +364 -0
  2241. package/src/plugins/react-resolve.ts +149 -0
  2242. package/src/plugins/route-css.ts +237 -0
  2243. package/src/plugins/routing.ts +298 -278
  2244. package/src/plugins/rsc-assets-manifest.ts +251 -0
  2245. package/src/plugins/server-bundle.ts +115 -15
  2246. package/src/plugins/shims.ts +292 -116
  2247. package/src/plugins/static-build.ts +681 -71
  2248. package/src/plugins/virtual-ids.ts +15 -0
  2249. package/src/react-canary.d.ts +2 -0
  2250. package/src/routes/href.ts +171 -0
  2251. package/src/routes/index.ts +10 -0
  2252. package/src/routing/codegen-shared.ts +39 -0
  2253. package/src/routing/codegen-types.ts +71 -0
  2254. package/src/routing/codegen-write.ts +163 -0
  2255. package/src/routing/codegen.ts +378 -240
  2256. package/src/routing/collision-probe.ts +438 -0
  2257. package/src/routing/collision-spaces.ts +281 -0
  2258. package/src/routing/convention-lint.ts +662 -0
  2259. package/src/routing/descendant-params.ts +76 -0
  2260. package/src/routing/export-detect.ts +433 -0
  2261. package/src/routing/file-cache.ts +23 -0
  2262. package/src/routing/index.ts +16 -7
  2263. package/src/routing/interception-overlap.ts +141 -0
  2264. package/src/routing/interception.ts +1044 -67
  2265. package/src/routing/link-codegen.ts +346 -0
  2266. package/src/routing/manifest-codegen.ts +232 -0
  2267. package/src/routing/route-options-lint.ts +172 -0
  2268. package/src/routing/route-options.ts +440 -0
  2269. package/src/routing/scanner.ts +429 -223
  2270. package/src/routing/schema-validation.ts +155 -0
  2271. package/src/routing/segment-classify.ts +280 -0
  2272. package/src/routing/segment-codegen.ts +99 -0
  2273. package/src/routing/segment-keys.ts +209 -0
  2274. package/src/routing/slot-placement.ts +134 -0
  2275. package/src/routing/types.ts +82 -26
  2276. package/src/routing/walkers.ts +98 -0
  2277. package/src/rsc-runtime/dev-reference-cache.ts +115 -0
  2278. package/src/rsc-runtime/encryption-runtime.ts +78 -0
  2279. package/src/rsc-runtime/render-flight.ts +26 -0
  2280. package/src/rsc-runtime/rsc.ts +35 -5
  2281. package/src/rsc-runtime/server-reference-load-error.ts +16 -0
  2282. package/src/rsc-runtime/server-references.ts +135 -0
  2283. package/src/rsc-runtime/ssr.ts +23 -0
  2284. package/src/rsc-runtime/transforms.ts +13 -0
  2285. package/src/rsc-runtime/vendor-types.d.ts +99 -0
  2286. package/src/schema-bridge.ts +437 -0
  2287. package/src/search-params/define.ts +696 -0
  2288. package/src/search-params/index.ts +24 -20
  2289. package/src/search-params/parse-total.ts +91 -0
  2290. package/src/search-params/serialize-equal.ts +14 -0
  2291. package/src/search-params/wrappers.ts +150 -0
  2292. package/src/server/abort-scope.ts +68 -0
  2293. package/src/server/access-gate.tsx +179 -57
  2294. package/src/server/action-client.ts +175 -294
  2295. package/src/server/action-encryption.ts +144 -0
  2296. package/src/server/action-handler.ts +533 -150
  2297. package/src/server/action-schema.ts +203 -0
  2298. package/src/server/action-types.ts +145 -0
  2299. package/src/server/actions.ts +172 -85
  2300. package/src/server/als-registry.ts +303 -30
  2301. package/src/server/body-limits.ts +10 -2
  2302. package/src/server/build-manifest.ts +19 -78
  2303. package/src/server/canonicalize.ts +62 -3
  2304. package/src/server/chain-url-parts.ts +145 -0
  2305. package/src/server/children-interception.ts +116 -0
  2306. package/src/server/client-error-message.ts +18 -0
  2307. package/src/server/client-state-tree.ts +78 -0
  2308. package/src/server/coalesce-tick.ts +75 -0
  2309. package/src/server/compress.ts +91 -19
  2310. package/src/server/cookie-context.ts +479 -0
  2311. package/src/server/cookie-parsing.ts +163 -0
  2312. package/src/server/csp-nonce.ts +58 -0
  2313. package/src/server/csrf.ts +238 -37
  2314. package/src/server/debug.ts +0 -1
  2315. package/src/server/default-logger.ts +100 -0
  2316. package/src/server/default-status-page.ts +88 -0
  2317. package/src/server/deny-boundary.ts +529 -0
  2318. package/src/server/deny-renderer.ts +210 -181
  2319. package/src/server/dev-overlay-report.ts +22 -0
  2320. package/src/server/early-hints-sender.ts +4 -3
  2321. package/src/server/early-hints.ts +44 -29
  2322. package/src/server/error-boundary-wrapper.ts +160 -44
  2323. package/src/server/error-response-headers.ts +18 -0
  2324. package/src/server/fallback-error.ts +88 -104
  2325. package/src/server/flight-injection-state.ts +113 -0
  2326. package/src/server/flight-injector-core.ts +332 -0
  2327. package/src/server/flight-scripts.ts +92 -0
  2328. package/src/server/flight-source-node.ts +444 -0
  2329. package/src/server/flight-source.ts +308 -0
  2330. package/src/server/form-data.ts +191 -20
  2331. package/src/server/form-state-flight.ts +67 -0
  2332. package/src/server/framework-stack-frames.ts +41 -0
  2333. package/src/server/head-response.ts +50 -0
  2334. package/src/server/html-injector-core.ts +320 -0
  2335. package/src/server/html-injectors.ts +252 -298
  2336. package/src/server/index.ts +51 -197
  2337. package/src/server/instrumentation.ts +42 -11
  2338. package/src/server/interception-gates.ts +94 -0
  2339. package/src/server/internal.ts +159 -0
  2340. package/src/server/json-status-response.ts +105 -0
  2341. package/src/server/logger.ts +176 -38
  2342. package/src/server/metadata-collector.ts +175 -0
  2343. package/src/server/metadata-platform.ts +2 -2
  2344. package/src/server/metadata-render.ts +36 -9
  2345. package/src/server/metadata-route-links.ts +200 -0
  2346. package/src/server/metadata-routes.ts +114 -24
  2347. package/src/server/metadata-social.ts +2 -2
  2348. package/src/server/metadata-urls.ts +109 -0
  2349. package/src/server/metadata.ts +23 -110
  2350. package/src/server/middleware-runner.ts +32 -5
  2351. package/src/server/node-body-response.ts +236 -0
  2352. package/src/server/node-response.ts +93 -0
  2353. package/src/server/node-stream-transforms.ts +340 -0
  2354. package/src/server/node-streams-platform.ts +23 -0
  2355. package/src/server/param-coercion.ts +205 -0
  2356. package/src/server/pipeline-helpers.ts +554 -0
  2357. package/src/server/pipeline-interception.ts +310 -32
  2358. package/src/server/pipeline-metadata-route.ts +242 -0
  2359. package/src/server/pipeline-metadata.ts +30 -4
  2360. package/src/server/pipeline-outcome.ts +290 -0
  2361. package/src/server/pipeline-phases.ts +431 -0
  2362. package/src/server/pipeline.ts +487 -428
  2363. package/src/server/port-resolution.ts +43 -0
  2364. package/src/server/prebuilt/cache-key.ts +340 -0
  2365. package/src/server/prebuilt/capture-render.ts +125 -0
  2366. package/src/server/prebuilt/capture-routes.ts +104 -0
  2367. package/src/server/prebuilt/capture-state.ts +196 -0
  2368. package/src/server/prebuilt/dev-store.ts +252 -0
  2369. package/src/server/prebuilt/lifetime.ts +151 -0
  2370. package/src/server/prebuilt/manifest-tag-index.ts +46 -0
  2371. package/src/server/prebuilt/overlay.ts +290 -0
  2372. package/src/server/prebuilt/payload-source.ts +221 -0
  2373. package/src/server/prebuilt/slots.ts +200 -0
  2374. package/src/server/prebuilt/synthetic-store.ts +125 -0
  2375. package/src/server/prebuilt-builder.ts +543 -0
  2376. package/src/server/prebuilt-runtime.ts +802 -0
  2377. package/src/server/primitives.ts +167 -171
  2378. package/src/server/publish-params.ts +43 -0
  2379. package/src/server/react-cache-bridge.ts +124 -0
  2380. package/src/server/react-cache-scope.ts +104 -0
  2381. package/src/server/render-timeout.ts +126 -0
  2382. package/src/server/render-utils.ts +70 -0
  2383. package/src/server/request-context.ts +346 -323
  2384. package/src/server/response-cache-policy.ts +45 -0
  2385. package/src/server/response-framing.ts +59 -0
  2386. package/src/server/route-element-builder.ts +504 -370
  2387. package/src/server/route-handler.ts +78 -48
  2388. package/src/server/route-matcher.ts +251 -265
  2389. package/src/server/route-methods.ts +37 -0
  2390. package/src/server/route-module-loader.ts +195 -0
  2391. package/src/server/rsc-cache-key-guard.ts +137 -0
  2392. package/src/server/rsc-entry/action-dispatcher.ts +146 -0
  2393. package/src/server/rsc-entry/action-middleware-runner.ts +130 -0
  2394. package/src/server/rsc-entry/api-handler.ts +30 -93
  2395. package/src/server/rsc-entry/deny-fallback.ts +151 -0
  2396. package/src/server/rsc-entry/error-renderer.ts +305 -113
  2397. package/src/server/rsc-entry/helpers.ts +48 -127
  2398. package/src/server/rsc-entry/index.ts +474 -350
  2399. package/src/server/rsc-entry/render-route.ts +244 -0
  2400. package/src/server/rsc-entry/render-signals.ts +108 -0
  2401. package/src/server/rsc-entry/revalidate-renderer.ts +364 -0
  2402. package/src/server/rsc-entry/rsc-payload.ts +194 -123
  2403. package/src/server/rsc-entry/rsc-stream.ts +145 -135
  2404. package/src/server/rsc-entry/ssr-bridge.ts +43 -8
  2405. package/src/server/rsc-entry/ssr-renderer.ts +312 -140
  2406. package/src/server/rsc-error-envelope.ts +18 -0
  2407. package/src/server/rsc-prop-warnings.ts +1 -1
  2408. package/src/server/safe-load.ts +105 -0
  2409. package/src/server/schema-introspection.ts +393 -0
  2410. package/src/server/segment-lifetime/document-outlet.ts +98 -0
  2411. package/src/server/segment-lifetime/key-digest.ts +139 -0
  2412. package/src/server/segment-lifetime/outlet-gate.ts +102 -0
  2413. package/src/server/segment-lifetime/read-rule.ts +256 -0
  2414. package/src/server/segment-lifetime/read-scope.ts +224 -0
  2415. package/src/server/segment-lifetime/segment-key.ts +191 -0
  2416. package/src/server/segment-lifetime/slot-outlets.ts +178 -0
  2417. package/src/server/sensitive-fields.ts +287 -0
  2418. package/src/server/server-only-guard-noop.js +3 -0
  2419. package/src/server/server-timing.ts +1 -1
  2420. package/src/server/signal-identity.ts +130 -0
  2421. package/src/server/sitemap-generator.ts +337 -0
  2422. package/src/server/sitemap-handler.ts +150 -0
  2423. package/src/server/slot-interception.ts +168 -0
  2424. package/src/server/slot-resolver.ts +543 -329
  2425. package/src/server/slot-subtree-contain.ts +127 -0
  2426. package/src/server/ssr-bridge-types.ts +223 -0
  2427. package/src/server/ssr-entry.ts +246 -136
  2428. package/src/server/ssr-form-state.ts +58 -0
  2429. package/src/server/ssr-render.ts +248 -124
  2430. package/src/server/ssr-wrappers.tsx +188 -0
  2431. package/src/server/static-generator.ts +680 -0
  2432. package/src/server/static-not-found.ts +134 -0
  2433. package/src/server/status-code-resolver.ts +107 -148
  2434. package/src/server/stream-utils.ts +398 -0
  2435. package/src/server/subtree-walk.ts +341 -0
  2436. package/src/server/traced-access.ts +50 -0
  2437. package/src/server/tracing.ts +303 -128
  2438. package/src/server/tree-match.ts +494 -0
  2439. package/src/server/types.ts +189 -10
  2440. package/src/server/utils/element-type.ts +88 -0
  2441. package/src/server/utils/escape-html.ts +20 -0
  2442. package/src/server/version-skew.ts +104 -0
  2443. package/src/server/vite-handoff-rsc.ts +136 -0
  2444. package/src/server/waituntil-bridge.ts +1 -1
  2445. package/src/server/workers-cache-bridge.ts +33 -0
  2446. package/src/shared/als-slots.ts +85 -0
  2447. package/src/shared/base-path.ts +80 -0
  2448. package/src/shared/cookie-read-through.ts +18 -0
  2449. package/src/shared/csrf-reject.ts +15 -0
  2450. package/src/shared/dev-span.ts +223 -0
  2451. package/src/shared/error-digest.ts +46 -0
  2452. package/src/shared/flight-base64.ts +23 -0
  2453. package/src/shared/flight-segment.ts +35 -0
  2454. package/src/shared/form-state-flight.ts +59 -0
  2455. package/src/shared/href-validation.ts +159 -0
  2456. package/src/shared/href.ts +257 -0
  2457. package/src/shared/key-headers.ts +47 -0
  2458. package/src/shared/layout-defaults.ts +43 -0
  2459. package/src/shared/merge-search-params.ts +55 -0
  2460. package/src/shared/outlet-decision.ts +40 -0
  2461. package/src/shared/param-value.ts +281 -0
  2462. package/src/shared/payload-root.ts +150 -0
  2463. package/src/shared/redirect-type.ts +17 -0
  2464. package/src/shared/route-options-export.ts +14 -0
  2465. package/src/shared/rsc-cache-key.ts +308 -0
  2466. package/src/shared/rsc-error-envelope.ts +16 -0
  2467. package/src/shared/rsc-manifest.ts +29 -0
  2468. package/src/shared/rsc-media-type.ts +59 -0
  2469. package/src/shared/rsc-payload-path.ts +52 -0
  2470. package/src/shared/segment-info.ts +54 -0
  2471. package/src/shared/slot-params.ts +109 -0
  2472. package/src/shared/span-waterfall.ts +259 -0
  2473. package/src/shared/static-platform-files.ts +75 -0
  2474. package/src/shared/status-reason-phrase.ts +61 -0
  2475. package/src/shims/font-google.ts +1 -1
  2476. package/src/shims/font-local.ts +34 -0
  2477. package/src/shims/headers.ts +131 -1
  2478. package/src/shims/navigation-client.ts +36 -32
  2479. package/src/shims/navigation-rsc.ts +47 -0
  2480. package/src/shims/navigation.ts +10 -7
  2481. package/src/utils/state-machine.ts +111 -0
  2482. package/src/utils/write-file-atomic.ts +32 -0
  2483. package/dist/_chunks/als-registry-B7DbZ2hS.js +0 -41
  2484. package/dist/_chunks/als-registry-B7DbZ2hS.js.map +0 -1
  2485. package/dist/_chunks/debug-B3Gypr3D.js +0 -108
  2486. package/dist/_chunks/debug-B3Gypr3D.js.map +0 -1
  2487. package/dist/_chunks/format-RyoGQL74.js +0 -164
  2488. package/dist/_chunks/format-RyoGQL74.js.map +0 -1
  2489. package/dist/_chunks/interception-BOoWmLUA.js +0 -676
  2490. package/dist/_chunks/interception-BOoWmLUA.js.map +0 -1
  2491. package/dist/_chunks/metadata-routes-Cjmvi3rQ.js +0 -153
  2492. package/dist/_chunks/metadata-routes-Cjmvi3rQ.js.map +0 -1
  2493. package/dist/_chunks/request-context-BQUC8PHn.js +0 -330
  2494. package/dist/_chunks/request-context-BQUC8PHn.js.map +0 -1
  2495. package/dist/_chunks/ssr-data-MjmprTmO.js +0 -88
  2496. package/dist/_chunks/ssr-data-MjmprTmO.js.map +0 -1
  2497. package/dist/_chunks/tracing-CemImE6h.js +0 -187
  2498. package/dist/_chunks/tracing-CemImE6h.js.map +0 -1
  2499. package/dist/_chunks/use-cookie-DX-l1_5E.js +0 -91
  2500. package/dist/_chunks/use-cookie-DX-l1_5E.js.map +0 -1
  2501. package/dist/_chunks/use-query-states-D5KaffOK.js +0 -109
  2502. package/dist/_chunks/use-query-states-D5KaffOK.js.map +0 -1
  2503. package/dist/adapters/cloudflare.js.map +0 -1
  2504. package/dist/cache/index.js.map +0 -1
  2505. package/dist/cache/register-cached-function.d.ts +0 -17
  2506. package/dist/cache/register-cached-function.d.ts.map +0 -1
  2507. package/dist/client/browser-entry.d.ts +0 -21
  2508. package/dist/client/browser-entry.d.ts.map +0 -1
  2509. package/dist/client/error-boundary.js.map +0 -1
  2510. package/dist/client/head.d.ts +0 -16
  2511. package/dist/client/head.d.ts.map +0 -1
  2512. package/dist/client/link-status-provider.d.ts +0 -11
  2513. package/dist/client/link-status-provider.d.ts.map +0 -1
  2514. package/dist/client/segment-merger.d.ts +0 -119
  2515. package/dist/client/segment-merger.d.ts.map +0 -1
  2516. package/dist/client/stale-reload.d.ts +0 -44
  2517. package/dist/client/stale-reload.d.ts.map +0 -1
  2518. package/dist/client/transition-root.d.ts +0 -74
  2519. package/dist/client/transition-root.d.ts.map +0 -1
  2520. package/dist/client/types.d.ts +0 -14
  2521. package/dist/client/types.d.ts.map +0 -1
  2522. package/dist/client/use-navigation-pending.d.ts +0 -26
  2523. package/dist/client/use-navigation-pending.d.ts.map +0 -1
  2524. package/dist/client/use-params.d.ts +0 -92
  2525. package/dist/client/use-params.d.ts.map +0 -1
  2526. package/dist/content/index.d.ts +0 -11
  2527. package/dist/content/index.d.ts.map +0 -1
  2528. package/dist/content/index.js +0 -2
  2529. package/dist/plugins/adapter-build.d.ts +0 -18
  2530. package/dist/plugins/adapter-build.d.ts.map +0 -1
  2531. package/dist/plugins/cache-transform.d.ts +0 -36
  2532. package/dist/plugins/cache-transform.d.ts.map +0 -1
  2533. package/dist/plugins/dev-error-overlay.d.ts +0 -60
  2534. package/dist/plugins/dev-error-overlay.d.ts.map +0 -1
  2535. package/dist/plugins/dev-logs.d.ts +0 -46
  2536. package/dist/plugins/dev-logs.d.ts.map +0 -1
  2537. package/dist/plugins/dynamic-transform.d.ts +0 -72
  2538. package/dist/plugins/dynamic-transform.d.ts.map +0 -1
  2539. package/dist/plugins/server-action-exports.d.ts +0 -26
  2540. package/dist/plugins/server-action-exports.d.ts.map +0 -1
  2541. package/dist/routing/status-file-lint.d.ts +0 -33
  2542. package/dist/routing/status-file-lint.d.ts.map +0 -1
  2543. package/dist/search-params/analyze.d.ts +0 -54
  2544. package/dist/search-params/analyze.d.ts.map +0 -1
  2545. package/dist/search-params/builtin-codecs.d.ts +0 -105
  2546. package/dist/search-params/builtin-codecs.d.ts.map +0 -1
  2547. package/dist/search-params/codecs.d.ts +0 -53
  2548. package/dist/search-params/codecs.d.ts.map +0 -1
  2549. package/dist/search-params/create.d.ts +0 -106
  2550. package/dist/search-params/create.d.ts.map +0 -1
  2551. package/dist/search-params/registry.d.ts +0 -20
  2552. package/dist/search-params/registry.d.ts.map +0 -1
  2553. package/dist/server/asset-headers.d.ts +0 -42
  2554. package/dist/server/asset-headers.d.ts.map +0 -1
  2555. package/dist/server/client-module-map.d.ts +0 -47
  2556. package/dist/server/client-module-map.d.ts.map +0 -1
  2557. package/dist/server/dev-fetch-instrumentation.d.ts +0 -22
  2558. package/dist/server/dev-fetch-instrumentation.d.ts.map +0 -1
  2559. package/dist/server/dev-logger.d.ts +0 -44
  2560. package/dist/server/dev-logger.d.ts.map +0 -1
  2561. package/dist/server/dev-span-processor.d.ts +0 -29
  2562. package/dist/server/dev-span-processor.d.ts.map +0 -1
  2563. package/dist/server/dev-warnings.d.ts +0 -129
  2564. package/dist/server/dev-warnings.d.ts.map +0 -1
  2565. package/dist/server/flush.d.ts +0 -74
  2566. package/dist/server/flush.d.ts.map +0 -1
  2567. package/dist/server/form-flash.d.ts +0 -78
  2568. package/dist/server/form-flash.d.ts.map +0 -1
  2569. package/dist/server/manifest-status-resolver.d.ts +0 -58
  2570. package/dist/server/manifest-status-resolver.d.ts.map +0 -1
  2571. package/dist/server/nuqs-ssr-provider.d.ts +0 -28
  2572. package/dist/server/nuqs-ssr-provider.d.ts.map +0 -1
  2573. package/dist/server/prerender.d.ts +0 -77
  2574. package/dist/server/prerender.d.ts.map +0 -1
  2575. package/dist/server/state-tree-diff.d.ts +0 -43
  2576. package/dist/server/state-tree-diff.d.ts.map +0 -1
  2577. package/dist/server/tree-builder.d.ts +0 -126
  2578. package/dist/server/tree-builder.d.ts.map +0 -1
  2579. package/dist/utils/directive-parser.d.ts +0 -70
  2580. package/dist/utils/directive-parser.d.ts.map +0 -1
  2581. package/src/cache/register-cached-function.ts +0 -103
  2582. package/src/client/browser-entry.ts +0 -678
  2583. package/src/client/head.ts +0 -61
  2584. package/src/client/link-status-provider.tsx +0 -30
  2585. package/src/client/segment-merger.ts +0 -339
  2586. package/src/client/stale-reload.ts +0 -87
  2587. package/src/client/transition-root.tsx +0 -166
  2588. package/src/client/types.ts +0 -21
  2589. package/src/client/use-navigation-pending.ts +0 -38
  2590. package/src/client/use-params.ts +0 -141
  2591. package/src/content/index.ts +0 -13
  2592. package/src/plugins/adapter-build.ts +0 -118
  2593. package/src/plugins/cache-transform.ts +0 -199
  2594. package/src/plugins/dev-error-overlay.ts +0 -230
  2595. package/src/plugins/dev-logs.ts +0 -280
  2596. package/src/plugins/dynamic-transform.ts +0 -161
  2597. package/src/plugins/server-action-exports.ts +0 -220
  2598. package/src/routing/status-file-lint.ts +0 -112
  2599. package/src/search-params/analyze.ts +0 -192
  2600. package/src/search-params/builtin-codecs.ts +0 -228
  2601. package/src/search-params/codecs.ts +0 -153
  2602. package/src/search-params/create.ts +0 -321
  2603. package/src/search-params/registry.ts +0 -31
  2604. package/src/server/asset-headers.ts +0 -81
  2605. package/src/server/client-module-map.ts +0 -58
  2606. package/src/server/dev-fetch-instrumentation.ts +0 -96
  2607. package/src/server/dev-logger.ts +0 -468
  2608. package/src/server/dev-span-processor.ts +0 -78
  2609. package/src/server/dev-warnings.ts +0 -283
  2610. package/src/server/flush.ts +0 -182
  2611. package/src/server/form-flash.ts +0 -89
  2612. package/src/server/manifest-status-resolver.ts +0 -215
  2613. package/src/server/nuqs-ssr-provider.tsx +0 -63
  2614. package/src/server/prerender.ts +0 -139
  2615. package/src/server/state-tree-diff.ts +0 -77
  2616. package/src/server/tree-builder.ts +0 -382
  2617. package/src/shims/server-only-noop.js +0 -6
  2618. package/src/utils/directive-parser.ts +0 -529
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interception-D1dCGNmQ.js","names":[],"sources":["../../src/server/tree-match.ts","../../src/routing/collision-probe.ts","../../src/routing/interception-overlap.ts","../../src/routing/interception.ts"],"sourcesContent":["/**\n * Shared URL-matching tree walker for segment trees.\n *\n * Both the main route matcher (`route-matcher.ts`) and slot resolver\n * (`slot-resolver.ts`) need to walk a SegmentNode tree, matching URL\n * parts against children with the same priority semantics:\n *\n * static > dynamic > catch-all > optional-catch-all\n *\n * Before this module, each had its own walker with subtle divergences\n * (different group handling, missing backtracking, incomplete\n * optional-catch-all support). This shared walker is the single\n * source of truth for URL-to-segment matching.\n *\n * See design/07-routing.md §\"Request Lifecycle\" and TIM-940.\n */\n\nimport type { SegmentNode } from '../routing/types.ts';\n\n// ─── Public API ───────────────────────────────────────────────────────────\n\n/** Result of matching URL parts against a segment tree. */\nexport interface TreeMatchResult<TFile> {\n /** Matched segment chain from root to leaf, inclusive. */\n chain: SegmentNode<TFile>[];\n /** Collected params, keyed by param name. Catch-all params are string[]. */\n params: Record<string, string | string[]>;\n}\n\nexport interface TreeMatchOptions {\n /**\n * When true (default), only match if the leaf node has a page or route\n * handler. Set to false for metadata route matching, where we just need\n * to find the owning segment regardless of whether it has a page.\n */\n requireTerminal?: boolean;\n}\n\n/**\n * Match URL path parts against a segment tree.\n *\n * Walks the tree depth-first with backtracking, applying priority\n * ordering globally across group boundaries. Returns the matched\n * segment chain and collected params, or null if no route matches.\n *\n * By default, a match requires a terminal node (one with `page` or\n * `route`) at the leaf. Pass `{ requireTerminal: false }` to match\n * any segment (used by metadata route matching).\n *\n * @param root The root segment node to start matching from.\n * @param parts URL path parts (e.g. ['blog', 'hello-world']).\n * Empty array matches the root itself (if terminal).\n */\nexport function matchUrlParts<TFile>(\n root: SegmentNode<TFile>,\n parts: string[],\n options?: TreeMatchOptions\n): TreeMatchResult<TFile> | null {\n const chain: SegmentNode<TFile>[] = [];\n const params: Record<string, string | string[]> = {};\n const requireTerminal = options?.requireTerminal ?? true;\n\n if (matchNode(root, parts, 0, chain, params, requireTerminal)) {\n return { chain, params };\n }\n return null;\n}\n\n/**\n * Yield every match for the given URL parts, in priority order.\n *\n * Same matching semantics as `matchUrlParts` — static > affixed-dynamic >\n * bare-dynamic > catch-all > optional-catch-all — but instead of returning\n * the first match, it yields all of them. Used by the metadata route matcher,\n * which needs to try alternate owner segments when the first match doesn't\n * own the requested metadata file.\n */\nexport function* matchUrlPartsAll<TFile>(\n root: SegmentNode<TFile>,\n parts: string[],\n options?: TreeMatchOptions\n): Generator<TreeMatchResult<TFile>> {\n const chain: SegmentNode<TFile>[] = [];\n const params: Record<string, string | string[]> = {};\n const requireTerminal = options?.requireTerminal ?? true;\n\n yield* matchNodeAll(root, parts, 0, chain, params, requireTerminal);\n}\n\n// ─── Internal ─────────────────────────────────────────────────────────────\n\n/**\n * A child node flattened through group segments, along with the\n * chain of group nodes that must appear in the segment chain\n * before the child to preserve the tree path.\n */\ninterface EffectiveChild<TFile> {\n child: SegmentNode<TFile>;\n groupChain: SegmentNode<TFile>[];\n}\n\n/**\n * Flatten children through group segments.\n *\n * Groups are transparent for URL matching — their non-group descendants\n * are returned with the chain of group nodes leading to them. This lets\n * the caller apply priority ordering (static > dynamic > catch-all >\n * optional-catch-all) across all groups uniformly instead of per-group.\n */\nfunction collectEffectiveChildren<TFile>(\n node: SegmentNode<TFile>,\n groupChain: SegmentNode<TFile>[] = []\n): EffectiveChild<TFile>[] {\n const result: EffectiveChild<TFile>[] = [];\n for (const child of node.children) {\n if (child.segmentType === 'group') {\n const nested = collectEffectiveChildren(child, [...groupChain, child]);\n result.push(...nested);\n } else {\n result.push({ child, groupChain });\n }\n }\n return result;\n}\n\n/** A node is terminal if it can serve a response (has a page or route handler). */\nfunction isTerminal<TFile>(node: SegmentNode<TFile>): boolean {\n return !!(node.page || node.route);\n}\n\n/**\n * Specificity tier for a segment. Lower = more specific. Matches the\n * priority order in `matchNode`: static > affixed-dynamic > bare-dynamic >\n * catch-all > optional-catch-all.\n */\nfunction segmentTier<TFile>(node: SegmentNode<TFile>): number {\n if (node.segmentType === 'static') return 0;\n if (node.segmentType === 'dynamic' && (node.paramPrefix || node.paramSuffix)) return 1;\n if (node.segmentType === 'dynamic') return 2;\n if (node.segmentType === 'catch-all') return 3;\n if (node.segmentType === 'optional-catch-all') return 4;\n return 2;\n}\n\n/**\n * Score a bare-dynamic candidate by running `matchNode` against its subtree\n * with the remaining URL parts, then reading the tier of each segment in\n * the matched chain. Returns a tier array that is compared lexicographically\n * — the candidate whose chain has a lower tier at the first differing\n * position is more specific.\n *\n * Delegates entirely to `matchNode`, so every segment type and priority\n * rule is inherited automatically — no second copy to drift.\n */\nfunction subtreeMatchScore<TFile>(\n node: SegmentNode<TFile>,\n parts: string[],\n index: number,\n requireTerminal: boolean\n): number[] {\n const chain: SegmentNode<TFile>[] = [];\n const params: Record<string, string | string[]> = {};\n if (!matchNode(node, parts, index, chain, params, requireTerminal)) return [];\n // Skip the first entry (the candidate node itself — it's the bare-dynamic\n // we're scoring, which is the same tier for all candidates).\n return chain.slice(1).map((seg) => segmentTier(seg));\n}\n\n/**\n * Compare two tier arrays lexicographically. Negative means `a` is more\n * specific (should be tried first).\n */\nfunction compareTierArrays(a: number[], b: number[]): number {\n const len = Math.max(a.length, b.length);\n for (let i = 0; i < len; i++) {\n // A shorter match is less specific — missing entries treated as worst tier.\n const ta = i < a.length ? a[i] : 5;\n const tb = i < b.length ? b[i] : 5;\n if (ta !== tb) return ta - tb;\n }\n return 0;\n}\n\n/** Combined affix length for specificity ordering. */\nfunction affixLength<TFile>(node: SegmentNode<TFile>): number {\n return (node.paramPrefix?.length ?? 0) + (node.paramSuffix?.length ?? 0);\n}\n\n/**\n * Recursive depth-first matcher with backtracking.\n *\n * Mutates `chain` and `params` in place for performance; backtracks\n * (restores previous state) when a candidate doesn't lead to a match.\n */\nfunction matchNode<TFile>(\n node: SegmentNode<TFile>,\n parts: string[],\n index: number,\n chain: SegmentNode<TFile>[],\n params: Record<string, string | string[]>,\n requireTerminal: boolean\n): boolean {\n chain.push(node);\n\n // All parts consumed — check if this node is terminal (or any node if !requireTerminal)\n if (index >= parts.length) {\n if (!requireTerminal || isTerminal(node)) return true;\n\n // Groups don't consume URL segments, so a group child's page can\n // match at the same URL depth. Recurse into groups transparently.\n for (const child of node.children) {\n if (child.segmentType === 'group') {\n if (matchNode(child, parts, index, chain, params, requireTerminal)) {\n return true;\n }\n }\n }\n\n // Optional catch-all with zero segments (direct and through groups).\n // The param is NOT set — matching Next.js semantics for [[...slug]]\n // with no path segments.\n const effective = collectEffectiveChildren(node);\n for (const { child, groupChain } of effective) {\n if (child.segmentType === 'optional-catch-all' && (!requireTerminal || isTerminal(child))) {\n chain.push(...groupChain, child);\n return true;\n }\n }\n\n chain.pop();\n return false;\n }\n\n const part = parts[index];\n\n // Flatten children through groups so priority ordering applies globally.\n const effective = collectEffectiveChildren(node);\n\n // 1. Static segments (exact name match)\n for (const { child, groupChain } of effective) {\n if (child.segmentType === 'static' && child.segmentName === part) {\n chain.push(...groupChain);\n if (matchNode(child, parts, index + 1, chain, params, requireTerminal)) {\n return true;\n }\n chain.length -= groupChain.length;\n }\n }\n\n // 2. Affixed dynamic segments (e.g. img-[id].png) — more specific than bare dynamic.\n // Sorted by specificity: longer combined prefix+suffix wins.\n const affixed = effective.filter(\n ({ child }) =>\n child.segmentType === 'dynamic' && child.paramName && (child.paramPrefix || child.paramSuffix)\n );\n affixed.sort((a, b) => affixLength(b.child) - affixLength(a.child));\n for (const { child, groupChain } of affixed) {\n const prefix = child.paramPrefix ?? '';\n const suffix = child.paramSuffix ?? '';\n if (\n part.length > prefix.length + suffix.length &&\n (!prefix || part.startsWith(prefix)) &&\n (!suffix || part.endsWith(suffix))\n ) {\n const value = part.slice(prefix.length, part.length - (suffix.length || 0));\n chain.push(...groupChain);\n const prev = params[child.paramName!];\n params[child.paramName!] = value;\n if (matchNode(child, parts, index + 1, chain, params, requireTerminal)) {\n return true;\n }\n // Backtrack\n chain.length -= groupChain.length;\n if (prev !== undefined) {\n params[child.paramName!] = prev;\n } else {\n delete params[child.paramName!];\n }\n }\n }\n\n // 3. Bare dynamic segments ([param])\n // When multiple bare dynamics compete (common with route groups that\n // flatten into the same parent), sort by subtree specificity so a\n // branch containing a static match for the NEXT URL part is tried\n // first. Without this, the winner depends on children order and\n // renaming a route group can flip it — the exact shape the collision\n // validator exists to reject.\n const bareDynamic = effective.filter(\n ({ child }) =>\n child.segmentType === 'dynamic' && child.paramName && !child.paramPrefix && !child.paramSuffix\n );\n if (bareDynamic.length > 1 && index + 1 < parts.length) {\n const scores = new Map<SegmentNode<TFile>, number[]>();\n for (const { child } of bareDynamic) {\n scores.set(child, subtreeMatchScore(child, parts, index + 1, requireTerminal));\n }\n bareDynamic.sort((a, b) => compareTierArrays(scores.get(a.child)!, scores.get(b.child)!));\n }\n for (const { child, groupChain } of bareDynamic) {\n chain.push(...groupChain);\n const prev = params[child.paramName!];\n params[child.paramName!] = part;\n if (matchNode(child, parts, index + 1, chain, params, requireTerminal)) {\n return true;\n }\n // Backtrack\n chain.length -= groupChain.length;\n if (prev !== undefined) {\n params[child.paramName!] = prev;\n } else {\n delete params[child.paramName!];\n }\n }\n\n // 4. Catch-all segments ([...param]) — must be terminal unless the\n // caller passed requireTerminal:false (metadata route matching needs to\n // find the owning segment even when it has no page).\n for (const { child, groupChain } of effective) {\n if (\n child.segmentType === 'catch-all' &&\n child.paramName &&\n (!requireTerminal || isTerminal(child))\n ) {\n chain.push(...groupChain, child);\n params[child.paramName] = parts.slice(index);\n return true;\n }\n }\n\n // 5. Optional catch-all segments ([[...param]]) — same terminal rule\n for (const { child, groupChain } of effective) {\n if (\n child.segmentType === 'optional-catch-all' &&\n child.paramName &&\n (!requireTerminal || isTerminal(child))\n ) {\n chain.push(...groupChain, child);\n params[child.paramName] = parts.slice(index);\n return true;\n }\n }\n\n chain.pop();\n return false;\n}\n\n/**\n * Generator twin of `matchNode` — yields every match instead of returning\n * the first. Each yield snapshots `chain` and `params` so the caller gets\n * independent results. After yielding, backtracking continues to find the\n * next match.\n */\nfunction* matchNodeAll<TFile>(\n node: SegmentNode<TFile>,\n parts: string[],\n index: number,\n chain: SegmentNode<TFile>[],\n params: Record<string, string | string[]>,\n requireTerminal: boolean\n): Generator<TreeMatchResult<TFile>> {\n chain.push(node);\n\n if (index >= parts.length) {\n if (!requireTerminal || isTerminal(node)) {\n yield { chain: [...chain], params: { ...params } };\n }\n\n for (const child of node.children) {\n if (child.segmentType === 'group') {\n yield* matchNodeAll(child, parts, index, chain, params, requireTerminal);\n }\n }\n\n const effective = collectEffectiveChildren(node);\n for (const { child, groupChain } of effective) {\n if (child.segmentType === 'optional-catch-all' && (!requireTerminal || isTerminal(child))) {\n chain.push(...groupChain, child);\n yield { chain: [...chain], params: { ...params } };\n chain.length -= groupChain.length + 1;\n }\n }\n\n chain.pop();\n return;\n }\n\n const part = parts[index];\n const effective = collectEffectiveChildren(node);\n\n // 1. Static segments\n for (const { child, groupChain } of effective) {\n if (child.segmentType === 'static' && child.segmentName === part) {\n chain.push(...groupChain);\n yield* matchNodeAll(child, parts, index + 1, chain, params, requireTerminal);\n chain.length -= groupChain.length;\n }\n }\n\n // 2. Affixed dynamic segments\n const affixed = effective.filter(\n ({ child }) =>\n child.segmentType === 'dynamic' && child.paramName && (child.paramPrefix || child.paramSuffix)\n );\n affixed.sort((a, b) => affixLength(b.child) - affixLength(a.child));\n for (const { child, groupChain } of affixed) {\n const prefix = child.paramPrefix ?? '';\n const suffix = child.paramSuffix ?? '';\n if (\n part.length > prefix.length + suffix.length &&\n (!prefix || part.startsWith(prefix)) &&\n (!suffix || part.endsWith(suffix))\n ) {\n const value = part.slice(prefix.length, part.length - (suffix.length || 0));\n chain.push(...groupChain);\n const prev = params[child.paramName!];\n params[child.paramName!] = value;\n yield* matchNodeAll(child, parts, index + 1, chain, params, requireTerminal);\n chain.length -= groupChain.length;\n if (prev !== undefined) {\n params[child.paramName!] = prev;\n } else {\n delete params[child.paramName!];\n }\n }\n }\n\n // 3. Bare dynamic segments\n const bareDynamic = effective.filter(\n ({ child }) =>\n child.segmentType === 'dynamic' && child.paramName && !child.paramPrefix && !child.paramSuffix\n );\n if (bareDynamic.length > 1 && index + 1 < parts.length) {\n const scores = new Map<SegmentNode<TFile>, number[]>();\n for (const { child } of bareDynamic) {\n scores.set(child, subtreeMatchScore(child, parts, index + 1, requireTerminal));\n }\n bareDynamic.sort((a, b) => compareTierArrays(scores.get(a.child)!, scores.get(b.child)!));\n }\n for (const { child, groupChain } of bareDynamic) {\n chain.push(...groupChain);\n const prev = params[child.paramName!];\n params[child.paramName!] = part;\n yield* matchNodeAll(child, parts, index + 1, chain, params, requireTerminal);\n chain.length -= groupChain.length;\n if (prev !== undefined) {\n params[child.paramName!] = prev;\n } else {\n delete params[child.paramName!];\n }\n }\n\n // 4. Catch-all segments\n for (const { child, groupChain } of effective) {\n if (\n child.segmentType === 'catch-all' &&\n child.paramName &&\n (!requireTerminal || isTerminal(child))\n ) {\n chain.push(...groupChain, child);\n const prev = params[child.paramName];\n params[child.paramName] = parts.slice(index);\n yield { chain: [...chain], params: { ...params } };\n chain.length -= groupChain.length + 1;\n if (prev !== undefined) {\n params[child.paramName] = prev;\n } else {\n delete params[child.paramName];\n }\n }\n }\n\n // 5. Optional catch-all segments\n for (const { child, groupChain } of effective) {\n if (\n child.segmentType === 'optional-catch-all' &&\n child.paramName &&\n (!requireTerminal || isTerminal(child))\n ) {\n chain.push(...groupChain, child);\n const prev = params[child.paramName];\n params[child.paramName] = parts.slice(index);\n yield { chain: [...chain], params: { ...params } };\n chain.length -= groupChain.length + 1;\n if (prev !== undefined) {\n params[child.paramName] = prev;\n } else {\n delete params[child.paramName];\n }\n }\n }\n\n chain.pop();\n}\n","/**\n * The order-dependence oracle shared by every route collision validator.\n *\n * A \"collision space\" is a set of pages that compete for URLs with each other:\n * the main tree, each parallel slot, each intercepting subtree. Two pages in\n * one space that answer the same URL are ambiguous — `matchNode` resolves the\n * tie by whichever `children` array lists first, so which page renders is\n * decided by filesystem enumeration order and renaming a route group can flip\n * it. Every space rejects that shape, and they all reject it the same way,\n * through this module.\n *\n * **The check asks the real matcher rather than modelling it.** For each leaf\n * we build a URL it matches, then run `matchUrlParts` twice — once on the\n * space, once on a clone with every `children` array reversed — and compare the\n * winners. A URL answered by two or more candidates in the same priority tier\n * resolves to whichever comes first in `children`, so reversing the arrays\n * flips it; a URL with a single winner, or one settled by a higher tier, is\n * unaffected. Order-dependence is therefore detected exactly, with no second\n * copy of the precedence rules to drift.\n *\n * That drift is why this is written as an oracle. The interception validator's\n * first version normalized each pattern into a \"match shape\" and compared\n * shapes, which meant reimplementing `matchNode`'s tiers, its group flattening,\n * and its zero-length optional-catch-all handling. Five review rounds found\n * five divergences between the two — param spelling, a zero-length catch-all,\n * the bracket tokens colliding with legal static directory names, a page\n * settling a grouped catch-all, and a page settling a *direct* one (which the\n * model could not express at all, because `matchNode` checks every route-group\n * page before any direct optional catch-all). Each fix was locally right and\n * the next divergence surfaced anyway. The model was the defect.\n *\n * **Every claim made here is existential** — \"here is a URL these two contend\n * for\" — which is what a finite set of probes can actually establish. The\n * reverse, \"this page can never win any URL\", is universal, and a probe's\n * silence is not evidence for it: a leaf that loses every probe may still own\n * URLs no probe visited. An earlier revision reported that as an\n * unreachable-page error and produced two false build errors in one review\n * round. Probe inadequacy must only ever cost a missed collision, never a\n * rejected app — so nothing here may report a leaf as unreachable.\n *\n * See design/07-routing.md §\"Comparing Routes by the URLs They Match\".\n */\n\nimport type { SegmentNode } from './types.ts';\nimport { effectiveUrlSegment } from './segment-classify.ts';\n// The validators ask the real matcher which page answers a URL rather than\n// modelling its precedence rules a second time. `tree-match.ts` is a pure\n// walker over `SegmentNode` with no request-time state, and\n// `server/chain-url-parts.ts` already imports the other direction.\nimport { matchUrlParts } from '../server/tree-match.ts';\n\n/** One page-or-route-bearing node in a collision space. */\nexport interface ProbeLeaf {\n /** The file that serves it — what the error message names. */\n filePath: string;\n /**\n * The nodes from the space root down to this leaf that contribute URL parts\n * — route groups excluded, since they are transparent for matching. Empty\n * for the space root's own page: `matchUrlParts` matches parts against the\n * root's *children*, so the root itself consumes nothing.\n */\n chain: SegmentNode[];\n}\n\n/** Two files in one space that a single URL resolves to order-dependently. */\nexport interface ProbedCollision {\n /** The contended URL, written for a human (see `describeProbeUrl`). */\n url: string;\n /** The file that wins in filesystem order. */\n first: string;\n /** The file that wins when every `children` array is reversed. */\n second: string;\n}\n\n/**\n * Find a URL in this collision space whose winner depends on `children` order,\n * or null if every probed URL resolves the same way in both orderings.\n *\n * `spaceRoot` is the node `matchUrlParts` starts from — the app root, a slot\n * node, or an intercepting directory. `base` is the URL that root sits at, used\n * only to render the reported URL.\n */\nexport function findOrderDependentCollision(\n spaceRoot: SegmentNode,\n leaves: Iterable<ProbeLeaf>,\n base: string\n): ProbedCollision | null {\n const reversed = withReversedChildren(spaceRoot);\n const longTail = longTailLength(spaceRoot) + 1;\n // Computed once for the space, not per leaf: it bounds the second candidate\n // wave, which only runs for a leaf the first wave never reached.\n const minLength = longestStaticName(spaceRoot);\n\n // Each probe is checked as it is generated, and the first flipped winner\n // returns immediately. Accumulating every probe first and scanning afterwards\n // reports the same collision — this walks the same probes in the same order —\n // but it pays for the whole space before saying anything, and the leaves that\n // cost the most are exactly the ones a found collision makes irrelevant.\n //\n // In a space of N equivalent dynamic siblings, only the first and last can\n // win a probe (one per ordering), so every middle leaf is unreachable and\n // exhausts the entire candidate alphabet looking for a value that reaches it\n // — 300 such siblings took ~2.5s to produce a build error the very first\n // probe already proved (codex, on PR #1002). A valid space of the same size\n // scans in ~35ms, so the cost was confined to the error path, but a slow\n // error is still a bad error.\n //\n // Deduped so a space with many leaves does not re-probe one URL, and so the\n // collision reported does not depend on which leaf generated a shared probe.\n const seen = new Set<string>();\n for (const leaf of leaves) {\n for (const { parts, display } of probeUrlsForLeaf(\n spaceRoot,\n reversed,\n leaf,\n longTail,\n minLength\n )) {\n const key = parts.join('/');\n if (seen.has(key)) continue;\n seen.add(key);\n\n const first = matchedLeafFile(spaceRoot, parts);\n const second = matchedLeafFile(reversed, parts);\n if (!first || !second || first === second) continue;\n return { url: describeProbeUrl(base, display), first, second };\n }\n }\n\n return null;\n}\n\n/** Join a probe's display parts onto its space's base. */\nfunction describeProbeUrl(base: string, display: string[]): string {\n if (display.length === 0) return base || '/';\n return `${base === '/' ? '' : base}/${display.join('/')}`;\n}\n\n/**\n * The file `matchUrlParts` resolves for a URL, or null if nothing does.\n *\n * A `route.ts` counts: `isTerminal` accepts either, so a route handler is a\n * legitimate winner of the walk and an ambiguity between a page and a route\n * handler is as real as one between two pages.\n */\nfunction matchedLeafFile(node: SegmentNode, parts: string[]): string | null {\n const match = matchUrlParts(node, parts);\n if (!match) return null;\n const leaf = match.chain[match.chain.length - 1];\n return leaf.page?.filePath ?? leaf.route?.filePath ?? null;\n}\n\n/**\n * A generated URL, and how to show it to a human.\n *\n * `display` is built alongside `parts` rather than derived from it by\n * substitution: a *static* segment can legitimately be named the same as the\n * probe value, and replacing every occurrence of that string rewrote the\n * literal directory to `<any>` — reporting `/<any>/<any>` for a collision under\n * a static `atimber-probea`, which claims a URL position is dynamic when the\n * author wrote it out (codex, on PR #1002). Only the segment that generated a\n * value knows whether it stood for one.\n */\ninterface ProbeUrl {\n parts: string[];\n display: string[];\n /**\n * Whether any part of this URL stood in for a value. When nothing did, every\n * candidate generates the identical URL and the search can stop after one.\n */\n dynamic: boolean;\n}\n\n/**\n * The values a probe's dynamic parts are tried with, in order.\n *\n * A probe stands in for \"any value\" at a dynamic position, so it is only useful\n * if it reaches the leaf it was built for. A *static* sibling's literal name or\n * a more specific *affixed* sibling's pattern can claim it instead, and that\n * higher-priority segment then wins in both orderings — a genuine tie\n * underneath goes unreported, which is safe but is the whole thing these\n * validators are for.\n *\n * Which values are claimable is a question about `matchNode`'s precedence, so\n * `probeUrlsForLeaf` asks `matchUrlParts` rather than deciding it here. This\n * only has to offer enough shapes for the search to find one that works: an\n * affixed sibling constrains the head of the value, its tail, or both, so head\n * and tail are varied over an alphanumeric alphabet. The head varies fastest\n * because a prefix is the more common affix. Exhausting the list is a missed\n * collision like any other inadequate probe, so this is a search and not a\n * proof — nothing downstream may treat it as one.\n *\n * Exported so a test that has to *name* a capturing static sibling can derive\n * the name from this list rather than restate it — a fixture spelling the value\n * out by hand stops being a capture the moment the list changes, and passes.\n *\n * Three revisions of a hand-built value each dodged one more capture and were\n * each followed by another (avoid static names; avoid affix boundary\n * characters; avoid re-affixed forms of static names — then a strictly more\n * specific affixed sibling, TIM-1313). Each rule was modelling affix precedence\n * by hand, which is what the match-shape model was deleted for.\n */\nexport function* probeCandidates(minLength = 0): Generator<string> {\n const alphabet = 'abcdefghijklmnopqrstuvwxyz0123456789';\n const base = 'timber-probe';\n\n function* wave(core: string): Generator<string> {\n for (const tail of alphabet) {\n for (const head of alphabet) yield `${head}${core}${tail}`;\n }\n }\n\n yield* wave(base);\n\n // A second wave, longer than every static segment name in the space.\n //\n // A static sibling claims a probe only by **string equality**, so a value\n // longer than every static name in the space cannot be claimed by one — that\n // is a fact about lengths, not a model of `matchNode`'s precedence, which is\n // what makes it safe to state as an invariant where \"pick an unclaimable\n // value\" was not. An app holding a static directory for all 1296 first-wave\n // candidates claimed every probe and hid a real collision (codex, on\n // PR #1002); it cannot do the same here, because the length is derived from\n // its own longest static and adding a longer one only pushes this further out.\n //\n // Affix capture is not addressed by length and is not addressable this way:\n // an affixed pattern matches infinitely many values, so escaping one is still\n // the head/tail search below. The first wave is byte-identical to what it was\n // before this existed, so nothing that already found a value changes.\n const padded = base.padEnd(Math.max(base.length, minLength), 'x');\n if (padded !== base) yield* wave(padded);\n}\n\n/**\n * The longest static segment name anywhere in the space.\n *\n * Read through `effectiveUrlSegment` so an intercepting directory counts as the\n * segment it intercepts, and only static kinds count: a dynamic sibling claims\n * a probe by pattern rather than by equality, which no length can escape.\n */\nfunction longestStaticName(node: SegmentNode): number {\n let longest = 0;\n for (const child of node.children) {\n const seg = effectiveUrlSegment(child);\n if (seg.segmentType === 'static') longest = Math.max(longest, seg.segmentName.length);\n longest = Math.max(longest, longestStaticName(child));\n }\n return longest;\n}\n\n/**\n * The probe URLs for one leaf, built from the first candidate value that\n * actually reaches it.\n *\n * \"Reaches it\" is `matchUrlParts` resolving one of the leaf's own URLs to the\n * leaf's file, in either ordering — either is enough, because a leaf that wins\n * only in the reversed ordering is precisely the contention being looked for.\n * A catch-all leaf may be reached by its long probe and not its short one (at\n * one part it loses to a bare dynamic sibling deterministically), so any one of\n * the generated URLs landing is enough to accept the value.\n *\n * A leaf that no candidate reaches is shadowed at its position for every value\n * tried — most often because it sits below a catch-all, which `matchNode`\n * accepts only as a terminal and never descends past. Its probes are still\n * emitted, from the first candidate: a probe that misses its own leaf is never\n * *wrong* — it is a real URL, and a winner that differs between the two\n * orderings is a real ambiguity whichever leaf it belongs to. Nothing here may\n * report the leaf as unreachable; that is the universal claim these validators\n * do not make.\n */\nfunction probeUrlsForLeaf(\n root: SegmentNode,\n reversed: SegmentNode,\n leaf: ProbeLeaf,\n longTail: number,\n minLength: number\n): ProbeUrl[] {\n let fallback: ProbeUrl[] | null = null;\n\n for (const value of probeCandidates(minLength)) {\n const urls = probeUrlsFor(leaf.chain, value, longTail);\n const reaches = urls.some(\n ({ parts }) =>\n matchedLeafFile(root, parts) === leaf.filePath ||\n matchedLeafFile(reversed, parts) === leaf.filePath\n );\n if (reaches) return urls;\n fallback ??= urls;\n\n // A leaf with no dynamic part in its chain matches exactly one URL, so the\n // candidate value never appears in it and every further candidate would\n // generate the identical probe. Searching on would cost the whole alphabet\n // per statically-shadowed leaf — and in the main tree those are ordinary\n // (anything below a catch-all) rather than the pathology they are inside an\n // intercepting subtree. Stopping is not a weaker check: the URLs are the\n // same ones, and they are still probed via `fallback`.\n if (!urls.some(({ dynamic }) => dynamic)) break;\n }\n\n // `probeCandidates` is non-empty, so this is only reached with a fallback.\n return fallback ?? [];\n}\n\n/**\n * The URL part one segment contributes to a probe.\n *\n * A dynamic segment stands for any single value, so it contributes the\n * candidate value — re-affixed, since an affixed segment only matches parts\n * that carry its prefix and suffix, so a probe without them could not reach it.\n * A catch-all stands for one or more parts, and one is enough to reach the leaf.\n *\n * The re-affixed part is the reason a value cannot be checked once for the\n * whole space: it exposes the value to every affixed sibling that *extends*\n * this segment's affixes, which differs per position. `probeUrlsForLeaf` asks\n * the matcher whether the assembled URL reaches its leaf, and moves to the next\n * candidate when it does not.\n *\n * Segments are read through `effectiveUrlSegment` so an intercepting directory\n * contributes the part the segment it intercepts would.\n */\nfunction probePartFor(node: SegmentNode, value: string): ProbePart {\n const seg = effectiveUrlSegment(node);\n switch (seg.segmentType) {\n case 'dynamic': {\n const prefix = seg.paramPrefix ?? '';\n const suffix = seg.paramSuffix ?? '';\n // The affixes are kept in the shown form too: `x-<any>` says which URLs\n // are contended for, where a bare `<any>` would claim every value at that\n // position.\n return {\n part: `${prefix}${value}${suffix}`,\n shown: `${prefix}<any>${suffix}`,\n dynamic: true,\n };\n }\n case 'catch-all':\n case 'optional-catch-all':\n return { part: value, shown: '<any>', dynamic: true };\n default:\n return { part: seg.segmentName, shown: seg.segmentName, dynamic: false };\n }\n}\n\n/** One URL part of a probe: what to send, what to show, and whether it stands for a value. */\ninterface ProbePart {\n part: string;\n shown: string;\n dynamic: boolean;\n}\n\n/**\n * The URLs that reach a leaf.\n *\n * An **optional catch-all also matches zero parts**, so it answers the URL its\n * parent sits at as well as longer ones. Both are probed: whether the shorter\n * one is actually *its* to answer is `matchUrlParts`' business, not something\n * to decide here — a page above it, or in a route group beside it, may take\n * that URL deterministically, and the probe will simply report the same winner\n * in both orderings.\n */\nfunction probeUrlsFor(chain: SegmentNode[], value: string, longTail: number): ProbeUrl[] {\n const probeParts = chain.map((node) => probePartFor(node, value));\n const url = (ps: ProbePart[]): ProbeUrl => ({\n parts: ps.map((p) => p.part),\n display: ps.map((p) => p.shown),\n dynamic: ps.some((p) => p.dynamic),\n });\n\n // The kind that decides the probe lengths is the last part-CONTRIBUTING\n // segment's, which is why it is read off the chain rather than off the leaf\n // node. An empty chain is the space root's own page: the walk matches parts\n // against that node's children, so the node's own segment consumes nothing\n // and the only URL that reaches the page is the empty one — even when the\n // root is itself a catch-all (`(.)[...rest]`).\n const leaf = chain[chain.length - 1];\n const kind = leaf && effectiveUrlSegment(leaf).segmentType;\n const isCatchAll = kind === 'catch-all' || kind === 'optional-catch-all';\n if (!isCatchAll) return [url(probeParts)];\n\n // `matchNode` accepts a catch-all only as a terminal, so a catch-all that\n // *is* the leaf owns the whole tail of the probe and it can be re-sized\n // freely. (A catch-all higher in the chain has descendants nothing can\n // reach; those leaves are the statically-shadowed case above.)\n const head = probeParts.slice(0, -1);\n const urls = [url(probeParts)];\n\n // A LONG tail as well as a short one. At one part a catch-all loses to any\n // bare dynamic sibling, deterministically — so a one-part probe reports that\n // sibling in both orderings and two catch-alls competing at every longer URL\n // go unnoticed. `longTail` is past every finite branch in the space, where\n // no fixed-length competitor can still be matching.\n if (longTail > 1) {\n // Every part is the candidate value verbatim. Decorating them to differ\n // (`${value}-0`) puts them back inside patterns like `[value]-0/[...rest]`,\n // which outranks a catch-all — the trailing counter reintroduced exactly\n // the affix capture the value is being searched for (codex, on PR #1000).\n // The parts need not differ from each other; a catch-all consumes them all.\n const tail: ProbePart[] = Array.from({ length: longTail }, () => ({\n part: value,\n shown: '<any>',\n dynamic: true,\n }));\n urls.push(url([...head, ...tail]));\n }\n\n // An optional catch-all also matches zero parts.\n if (kind === 'optional-catch-all') urls.push(url(head));\n\n return urls;\n}\n\n/**\n * One more than the longest fixed-length path in the space.\n *\n * A probe of this length cannot be claimed by any branch that consumes a fixed\n * number of URL parts, so whatever matches it is a catch-all — which is\n * exactly the competition a short probe hides.\n */\nfunction longTailLength(node: SegmentNode): number {\n let deepest = 0;\n for (const child of node.children) {\n const own = child.segmentType === 'group' ? 0 : 1;\n deepest = Math.max(deepest, own + longTailLength(child));\n }\n return deepest;\n}\n\n/**\n * The subtree with every `children` array reversed, top to bottom.\n *\n * Nodes are shallow-copied, so files and slots are shared with the original —\n * only the ordering `matchNode` reads is different. Slots are not reversed\n * because `matchNode` never walks them; each slot is validated as its own\n * collision space, with its own reversed clone.\n */\nfunction withReversedChildren(node: SegmentNode): SegmentNode {\n return { ...node, children: [...node.children].reverse().map(withReversedChildren) };\n}\n","/**\n * Pattern intersection for intercepted URL patterns.\n *\n * Checks whether two intercepted URL patterns can both match the same concrete\n * URL. Used by the cross-mode claim check (TIM-1319) to detect when a\n * children-path interceptor and a slot interceptor from the same owner overlap.\n *\n * This is not the order-dependence oracle (`findOrderDependentCollision`) the\n * within-mode collision checks use. `findInterceptionMatch` picks the mode by\n * first-match on `pathnameMatchesPattern`, which has no priority tiers, so a\n * static `/feed/foo` and a dynamic `/feed/[id]` both match `/feed/foo` even\n * though `matchUrlParts` would resolve the static deterministically. The\n * intersection test catches that: it walks both patterns segment by segment and\n * asks whether any value satisfies both.\n *\n * This is not a model of `matchNode` precedence — that decides *which*\n * candidate wins when several match one URL. This decides the prior question:\n * *do* they both match one URL at all? The two questions are independent, and\n * conflating them is what caused TIM-1308's five-round drift.\n */\n\nimport { classifyUrlSegment } from './segment-classify.ts';\n\n/**\n * Check whether two intercepted URL patterns can both match the same concrete\n * URL. Returns a display string for the overlapping URL, or null.\n *\n * Walks both patterns segment by segment:\n * - Two statics: must be identical.\n * - Static + dynamic: static must satisfy the dynamic's affix constraints.\n * - Two dynamics: affix constraints must be compatible.\n * - A catch-all at either side: compatible with everything remaining.\n *\n * If the patterns differ in length, they can only overlap if the longer one's\n * extra part is an optional catch-all (which also matches zero segments).\n */\nexport function interceptedPatternsOverlap(p1: string, p2: string): string | null {\n if (p1 === p2) return p1;\n\n const parts1 = p1 === '/' ? [] : p1.slice(1).split('/');\n const parts2 = p2 === '/' ? [] : p2.slice(1).split('/');\n const display: string[] = [];\n let i = 0;\n\n while (i < parts1.length && i < parts2.length) {\n const seg1 = classifyUrlSegment(parts1[i]);\n const seg2 = classifyUrlSegment(parts2[i]);\n\n if (\n seg1.kind === 'catch-all' ||\n seg1.kind === 'optional-catch-all' ||\n seg2.kind === 'catch-all' ||\n seg2.kind === 'optional-catch-all'\n ) {\n display.push('<any>');\n return '/' + display.join('/');\n }\n\n const part = segmentsOverlap(seg1, seg2);\n if (part === null) return null;\n display.push(part);\n i++;\n }\n\n const remaining = i < parts1.length ? parts1 : i < parts2.length ? parts2 : null;\n if (remaining) {\n const next = classifyUrlSegment(remaining[i]);\n if (next.kind !== 'optional-catch-all') return null;\n }\n\n return display.length === 0 ? '/' : '/' + display.join('/');\n}\n\n/**\n * Can some concrete value satisfy both classified URL segments?\n *\n * An affixed dynamic (`a-[id].png`) constrains both the prefix and suffix of\n * the value, so a static segment must satisfy those constraints and two\n * dynamics must have compatible affixes — prefixes where one extends the other,\n * and likewise for suffixes. Without this check, `/feed/photo.jpg` beside\n * `/feed/asset-[id].png` would be falsely rejected.\n */\nfunction segmentsOverlap(\n seg1: ReturnType<typeof classifyUrlSegment>,\n seg2: ReturnType<typeof classifyUrlSegment>\n): string | null {\n if (seg1.kind === 'static' && seg2.kind === 'static') {\n return seg1.value === seg2.value ? seg1.value : null;\n }\n\n if (seg1.kind === 'static' && seg2.kind === 'dynamic') {\n return staticMatchesAffix(seg1.value, seg2) ? seg1.value : null;\n }\n if (seg2.kind === 'static' && seg1.kind === 'dynamic') {\n return staticMatchesAffix(seg2.value, seg1) ? seg2.value : null;\n }\n\n if (seg1.kind === 'dynamic' && seg2.kind === 'dynamic') {\n return dynamicAffixesCompatible(seg1, seg2) ? '<any>' : null;\n }\n\n return '<any>';\n}\n\n/**\n * Does a static value satisfy an affixed dynamic's prefix, suffix, and\n * non-empty capture constraints?\n *\n * Mirrors the check `pathnameMatchesPattern` applies: the value must start with\n * the prefix, end with the suffix, and be strictly longer than their combined\n * length (a capture of zero characters is not a match).\n */\nfunction staticMatchesAffix(value: string, dynamic: { prefix?: string; suffix?: string }): boolean {\n const prefix = dynamic.prefix ?? '';\n const suffix = dynamic.suffix ?? '';\n if (!prefix && !suffix) return true;\n if (prefix && !value.startsWith(prefix)) return false;\n if (suffix && !value.endsWith(suffix)) return false;\n return value.length > prefix.length + suffix.length;\n}\n\n/**\n * Can some value simultaneously satisfy two affixed dynamics?\n *\n * Two prefix constraints are compatible when one extends the other (a value\n * starting with the longer one also starts with the shorter). Suffixes are\n * analogous. Without affixes on either side, every value works.\n */\nfunction dynamicAffixesCompatible(\n d1: { prefix?: string; suffix?: string },\n d2: { prefix?: string; suffix?: string }\n): boolean {\n const p1 = d1.prefix ?? '',\n s1 = d1.suffix ?? '';\n const p2 = d2.prefix ?? '',\n s2 = d2.suffix ?? '';\n\n if (p1 && p2 && !p1.startsWith(p2) && !p2.startsWith(p1)) return false;\n if (s1 && s2 && !s1.endsWith(s2) && !s2.endsWith(s1)) return false;\n return true;\n}\n","/**\n * Intercepting route utilities.\n *\n * Computes rewrite rules from the route tree that enable intercepting routes\n * to conditionally render when navigating via client-side (soft) navigation.\n *\n * The mechanism: at build time, each intercepting route directory generates a\n * conditional rewrite. On soft navigation, the client sends an `X-Timber-URL`\n * header with the current pathname. The server checks if any rewrite's source\n * (the intercepted URL) matches the target pathname AND the header matches\n * the intercepting route's parent URL. If both match, the intercepting route\n * renders instead of the normal route.\n *\n * On hard navigation (no header), no rewrite matches, and the normal route\n * renders.\n *\n * See design/07-routing.md §\"Intercepting Routes\"\n */\n\nimport type { SegmentNode, InterceptionMarker, RouteFile } from './types.ts';\nimport { computeSegmentTreePaths, treePathDepth } from './segment-keys.ts';\nimport { classifyUrlSegment, effectiveUrlSegment } from './segment-classify.ts';\n// Every collision space — the main tree, each slot, each intercepting subtree\n// — decides order-dependence with the same oracle, so the spaces cannot drift\n// on what counts as two pages answering one URL. See TIM-1308.\nimport { findOrderDependentCollision, type ProbeLeaf } from './collision-probe.ts';\nimport { interceptedPatternsOverlap } from './interception-overlap.ts';\n\n/** Fields shared by both interception shapes. */\ninterface InterceptionRewriteBase {\n /**\n * The URL pattern that this rewrite intercepts (the target of navigation).\n * E.g., \"/photo/[id]\" for a (.)photo/[id] interception.\n */\n interceptedPattern: string;\n /**\n * The tree path of the segment that OWNS the slot holding this\n * intercepting route (`computeSegmentTreePaths`, e.g. \"/feed\",\n * \"/(browse)\", \"/(browse)/feed\", or \"/\" at the app root).\n *\n * The rewrite only applies when the source route — the page the user is\n * navigating FROM — passes through that directory, because only then\n * does the slot holding the intercepting page exist in the rendered\n * tree. The server checks this by matching X-Timber-URL and testing its\n * segment chain's tree paths for this value.\n *\n * Neither of the identities already in the codebase works here:\n *\n * - A **URL prefix** cannot express it. Route groups contribute nothing\n * to `urlPath`, so `(browse)/@detail/(...)x` and a genuinely\n * root-level `@modal/(...)x` both have prefix \"/\" while meaning very\n * different things.\n * - A **state-tree key** (`computeSegmentKeys`) cannot either. It\n * qualifies a group with its ancestry but resets to `urlPath` at the\n * next URL-visible segment, so `(browse)/feed` and `(landing)/feed`\n * both key as \"/feed\" — and a navigation inside `(landing)/feed/…`\n * would reach `(browse)/feed`'s slot.\n *\n * Tree paths never reset, so two directories that render different\n * layouts never share one. \"/\" as a scope means the app root, which\n * every route passes through — preserving the intentional\n * match-from-anywhere behavior of a root-level `(...)` interception\n * (TIM-1006) without an exemption. See TIM-1279.\n */\n interceptingScope: string;\n}\n\n/**\n * A conditional rewrite rule generated from an intercepting route.\n *\n * `mode` records which of the two shapes the directory expresses, because the\n * two render through entirely different mechanisms and the fields they need\n * are not the same. It is a union rather than a flag so a reader cannot\n * re-match `interceptingPrefix` on the shape that has no such pathname.\n *\n * See design/07-routing.md §\"Intercepting Routes\".\n */\nexport type InterceptionRewrite = SlotInterceptionRewrite | ChildrenInterceptionRewrite;\n\n/**\n * A **modal overlay** interception — the intercepting directory is a direct\n * child of a parallel slot (`feed/@modal/(.)photo/[id]`).\n *\n * The server re-matches the *source* route and the slot resolver finds the\n * intercepting child inside the slot, so the intercepting page layers over\n * the page the user was already on.\n */\nexport interface SlotInterceptionRewrite extends InterceptionRewriteBase {\n mode: 'slot';\n /**\n * The pathname the server re-matches when this rewrite applies — the\n * intercepting slot owner's URL path. E.g., \"/feed\" for a (.)photo/[id]\n * inside /feed/@modal/.\n *\n * This is a build-time constant, never a client-supplied value: the\n * X-Timber-URL header selects a rewrite but never becomes the rendered\n * pathname.\n */\n interceptingPrefix: string;\n}\n\n/**\n * A **sibling layout swap** interception — the intercepting directory is a\n * direct child of an ordinary segment or route group\n * (`(browse)/(...)[artistSlug]/…`).\n *\n * There is no overlay, no slot and no `default.tsx`: the intercepting page\n * *replaces* `children` for the owner's layout chain. Nothing is re-matched\n * either. The server resolves the owner by `interceptingScope` — a tree path,\n * which identifies exactly one directory — and builds the rendered chain as\n * `[…owner ancestors, interceptingNode, …its matched descendants]`. That is an\n * ordinary segment chain, so `route-element-builder.ts` renders it with no\n * knowledge that interception happened.\n *\n * Resolving the owner from the tree rather than from a URL is what makes this\n * shape work where the modal shape cannot: `interceptingPrefix` is\n * URL-derived, and a route group contributes nothing to `urlPath`, so an owner\n * like `app/(browse)/` serializes to \"/\" and re-matching it lands in whichever\n * group owns the canonical page. A tree path never collapses (TIM-1280).\n */\nexport interface ChildrenInterceptionRewrite extends InterceptionRewriteBase {\n mode: 'children';\n}\n\n/**\n * A set of sibling interceptors that compete for one URL position.\n *\n * `base` is the intercepted base they share — the URL their own segments sit\n * directly under — and `anchorIndex` is how many URL parts that base spans,\n * which is the index in a target pathname their segments are matched at.\n * Deeper anchors are more local and are tried first.\n */\nexport interface InterceptorAnchorGroup<TFile> {\n base: string;\n anchorIndex: number;\n interceptors: SegmentNode<TFile>[];\n}\n\n/**\n * Group an owner's intercepting children by the URL position they contend for.\n *\n * This is the definition of *which interceptors compete*, and it has exactly\n * one caller shape on each side of the build: `findInterceptingMatch` resolves\n * a group with one `matchUrlParts` walk, and\n * `assertNoInterceptedPatternCollisions` validates the same group as one\n * collision space. Written twice, the two would be free to disagree about what\n * competes — and a resolver that walks a wider set than the validator checked\n * is precisely the order-dependence the validator exists to reject (TIM-1310).\n *\n * Contention is keyed by the computed intercepted **base**, not by the marker:\n * under an owner at `/feed`, `(..)` and `(...)` both base at `/` and are both\n * matched at index 0, so they are one group. Different bases are different\n * positions — a `(.)` interceptor can never claim a target that belongs to a\n * `(..)` one beside it, because the base must also match the target's leading\n * parts.\n *\n * The base is a URL *pattern*, so its length is its part count only because\n * every pattern part stands for exactly one URL part. A catch-all in the base\n * breaks that, and `assertInterceptedBaseIsCountable` rejects the shape at\n * build time.\n *\n * A node missing either marker field is skipped, which `classifySegment` never\n * produces — it sets both whenever it reports `'intercepting'`. Stating the\n * filter here rather than defaulting the marker is what makes the validator and\n * the resolver see the same set: such a node renders nothing either way, and a\n * validator more permissive than the resolver would be checking a candidate\n * that never competes while the resolver walks one nobody checked.\n *\n * `children` is read directly rather than flattened through route groups,\n * matching both resolvers: the slot resolver reads `slotNode.children`, and an\n * interceptor deeper inside a slot subtree is rejected by\n * `validateInterceptionPlacement`. On the children path an interceptor under a\n * route group is legal and the *group* is its owner, so it is grouped with that\n * group's other interceptors — which is again exactly what the resolver walks,\n * since it resolves the owner by tree path.\n */\nexport function groupByInterceptedAnchor<TFile>(\n ownerUrlPath: string,\n children: readonly SegmentNode<TFile>[]\n): InterceptorAnchorGroup<TFile>[] {\n const byBase = new Map<string, InterceptorAnchorGroup<TFile>>();\n\n for (const child of children) {\n if (child.segmentType !== 'intercepting') continue;\n if (!child.interceptionMarker || !child.interceptedSegmentName) continue;\n\n const base = computeInterceptedBase(ownerUrlPath, child.interceptionMarker);\n const group = byBase.get(base);\n if (group) {\n group.interceptors.push(child);\n } else {\n byBase.set(base, {\n base,\n anchorIndex: base === '/' ? 0 : base.slice(1).split('/').length,\n interceptors: [child],\n });\n }\n }\n\n // Deepest anchor first: a `(.)` interception is the most local one and wins\n // over a `(...)` that reaches the same page from the root.\n return [...byBase.values()].sort((a, b) => b.anchorIndex - a.anchorIndex);\n}\n\n/**\n * Collect all interception rewrite rules from the route tree.\n *\n * Walks the tree recursively. For each intercepting segment, computes the\n * intercepted URL based on the marker and the segment's position.\n *\n * The list is returned **deepest scope first**, which is what makes\n * `findInterceptionMatch`'s first-match rule deterministic; see\n * `sortByScopeDepth`.\n */\nexport function collectInterceptionRewrites(root: SegmentNode): InterceptionRewrite[] {\n const rewrites: InterceptionRewrite[] = [];\n walkForInterceptions(root, [root], false, rewrites);\n return sortByScopeDepth(rewrites);\n}\n\n/**\n * Order the rewrites deepest scope first, so the request-time first-match rule\n * resolves two applicable rewrites by *nesting* rather than by tree-walk order.\n *\n * `findInterceptionMatch` returns the first rewrite whose pattern matches the\n * target and whose scope the source route reports. More than one can satisfy\n * both, and the case is not exotic — an owner and a directory *beneath* it may\n * each hold an interceptor for one URL:\n *\n * ```\n * app/feed/(.)photo/page.tsx scope /feed\n * app/feed/(a)/(.)photo/page.tsx scope /feed/(a)\n * ```\n *\n * A page inside `(a)` renders both owners' layouts, so the client reports both\n * tree paths and both scopes pass. Unsorted, the winner is whichever the\n * filesystem enumerated first — renaming the group flips which page a click\n * opens, the defect class TIM-1305/TIM-1308/TIM-1310 each rejected in a\n * different space. Here it is an ambiguity between *rewrites* rather than\n * between pages inside one walk, so no collision space sees it.\n *\n * **Deepest wins, and it is specified rather than rejected** because the shape\n * is one a correct app writes on purpose: a nested layout refining the\n * interception its parent declares, exactly as `groupByInterceptedAnchor`\n * already prefers the deepest *anchor* within one owner. The two rules are the\n * same preference — the more local interception is the author's more specific\n * statement — applied at the two levels the mechanism has.\n *\n * Depth is counted on the **tree path**, the identity that never collapses\n * (TIM-1279/TIM-1280); a `urlPath` prefix test would relate `(browse)` and\n * `(landing)`, which render different layouts and share no chain. Two scopes on\n * one rendered chain are strictly nested, so depth orders them totally, and two\n * scopes that are *not* on one chain — sibling groups, `feed/(a)` beside\n * `feed/(b)` — never both pass the scope check, so their relative order is not\n * observable. That is why this sorts on depth alone rather than testing\n * ancestry: it is a total order over the pairs that can compete, and it costs\n * nothing per request.\n *\n * Sorting is stable, so rewrites sharing one scope keep tree-walk order. Equal\n * scopes mean one owner, and of the three pairings that produces only one was\n * ambiguous — a children-path interceptor beside a slot one — and that is now\n * rejected at build time by `assertNoCrossModeClaims` (TIM-1319). The\n * enumeration is in design/07-routing.md §\"Selection Between Owners\" rather\n * than repeated here, so there is one place to correct if a rewrite ever grows\n * a field that makes two of them distinguishable.\n */\nfunction sortByScopeDepth(rewrites: InterceptionRewrite[]): InterceptionRewrite[] {\n return rewrites.sort(\n (a, b) => treePathDepth(b.interceptingScope) - treePathDepth(a.interceptingScope)\n );\n}\n\n/**\n * Validate that every intercepting segment sits where it can actually render.\n *\n * There are exactly two positions a renderer exists for, and they are the two\n * shapes interception has:\n *\n * 1. **Direct child of a parallel slot** — the modal overlay. The slot\n * resolver scans a slot node's *direct children* for an intercepting\n * segment (`server/slot-interception.ts`). Nothing between the slot and\n * the intercepting directory is allowed, because nothing walks it.\n * 2. **Direct child of an ordinary segment or route group** — the sibling\n * layout swap (TIM-1280). The pipeline resolves the owner by tree path and\n * builds the rendered chain through the intercepting node itself\n * (`server/children-interception.ts`).\n *\n * Everywhere else, rewrite generation still emits a rewrite and nothing\n * renders it: the rewrite matches the soft navigation, and the user is served\n * the page they were already on under a changed URL (TIM-1278). The rejected\n * positions are:\n *\n * - **Inside a slot subtree but not directly under the slot**\n * (`@modal/(inner)/(.)photo`). Neither renderer applies: the slot resolver\n * only reads direct children, and the children-path resolver builds a\n * *chain*, which cannot express a descent through a slot.\n * - **Inside another intercepting subtree** (`(.)a/(.)b`). Left unvalidated\n * `collectLeavesWithRewrites` walks the inner one as an ordinary URL\n * segment and emits a pattern containing a literal \"(.)b\".\n *\n * Two further shapes are rejected here (TIM-1288). Both are about a catch-all,\n * and both are specific to interception: elsewhere in the tree the same\n * shapes are inert or fail safely, and the general \"nothing below a catch-all\n * is reachable\" rule is tracked as TIM-1286.\n *\n * And one is specific to the children path: an owner chain that binds params\n * (see `assertOwnerChainBindsNoParams`).\n */\nexport function validateInterceptionPlacement(root: SegmentNode): void {\n walkForPlacement(root, '', {\n parentIsSlot: false,\n inSlotSubtree: false,\n inInterceptingSubtree: false,\n ancestorsBindParams: false,\n });\n}\n\n/**\n * Reject a children-path interception whose owner chain binds params.\n *\n * The rendered chain is `[…owner ancestors, interceptingNode, …descendants]`,\n * and the only pathname available to bind params from is the **target** — the\n * URL being navigated to. The intercepting subtree's own params come from it\n * by construction. The owner chain's do not, in general:\n *\n * - With a climbing marker the owner's URL segments are not in the target at\n * all. `app/[team]/(..)photo/[id]` bases at \"/\", so the target is\n * `/photo/9` — there is no team value anywhere in it, and `[team]`'s layout\n * would render with the param it declares missing.\n * - With `(.)` the base *is* the owner's `urlPath`, so the target's leading\n * parts would bind it. Supporting only that half means one marker behaves\n * differently from its siblings for reasons the author cannot see from the\n * directory names, so the rule is stated once, on the owner chain.\n *\n * A layout that silently renders without the param it declares is the failure\n * this prevents; it is rejected where it can be explained rather than left to\n * surface as `undefined` deep inside user code. Route groups and static\n * segments bind nothing and are unrestricted, which is the whole motivating\n * shape (`app/(browse)/(...)[artistSlug]/…`).\n *\n * The rule stops at a slot boundary: a slot-mode interception re-matches the\n * *source* route, which supplies the owner's params, so a dynamic owner is\n * fine there and always has been.\n */\n/**\n * Require a children-path interception's owner to have a `layout.tsx`.\n *\n * The scope is the owner's tree path, and the client reports which tree paths\n * it has mounted from `X-Timber-Segments` — which carries **one entry per\n * layout-bearing segment**, because those are the segments the client needs an\n * outlet and a cache node for. `buildSegmentInfo` skips the rest.\n *\n * For the modal shape that set is exactly the set of possible scope owners:\n * a slot is only resolved inside its owner's layout, and `validateSlotPlacement`\n * rejects a slot whose owner has none (TIM-1443). A children-path\n * interception's owner is an ordinary directory rather than a slot owner, so\n * that rule does not reach it — this one does.\n *\n * Left unchecked the result is a swap that works exactly once: the first soft\n * navigation renders, then the client reports no such tree path, and the next\n * navigation fails the scope check and falls back to the canonical page. That\n * is fail-safe but silent, and the address-bar channel cannot recover it —\n * once the swap is on screen the address holds the *intercepted* URL, which\n * re-matches the canonical chain (the TIM-1282 problem, in the one shape the\n * rendered-scope fix does not reach).\n *\n * Requiring the layout restores the invariant the state tree is built on\n * rather than widening the wire format to carry segments that own no outlet\n * and no payload. It also costs the author nothing they were not already\n * doing: the point of this shape is to render inside the owner's own layout,\n * so an owner with no layout has no chrome to preserve.\n */\nfunction assertOwnerHasLayout(ownerPath: string, childPath: string): void {\n const owner = ownerPath || '(app root)';\n throw new Error(\n `Build error: intercepting route whose owner has no layout.\\n` +\n ` Directory: app/${childPath}\\n` +\n ` Owner: app/${owner}\\n` +\n `An intercepting directory outside a parallel slot renders inside its owner's ` +\n `layout chain, and the owner must have a layout.tsx: the client reports which ` +\n `directories it has mounted from its layout segments, and a scope it cannot ` +\n `report would let the interception fire once and then silently stop.\\n` +\n `Add app/${owner}/layout.tsx (a pass-through returning {children} is enough), or ` +\n `move the interception under a directory that has one.\\n` +\n `See design/07-routing.md §\"Intercepting Routes\".`\n );\n}\n\nfunction assertOwnerChainBindsNoParams(childPath: string, marker: InterceptionMarker): void {\n throw new Error(\n `Build error: intercepting route under a dynamic segment.\\n` +\n ` Directory: app/${childPath}\\n` +\n `An intercepting directory outside a parallel slot renders inside its own ` +\n `layout chain, and the only pathname available to bind params from is the ` +\n `intercepted URL — which does not carry the values of the segments above ` +\n `\"${marker}\".\\n` +\n `Move the interception so every directory above it is a static segment or a ` +\n `route group, or place it inside a parallel slot (@modal/) to render it as an ` +\n `overlay over the source route instead.\\n` +\n `See design/07-routing.md §\"Intercepting Routes\".`\n );\n}\n\n/**\n * Reject an intercepting route whose intercepted level is not well-defined.\n *\n * \"One level up\" is counted in URL segments, which works because every\n * pattern part stands for exactly one URL part — except a catch-all, which\n * stands for a number that varies per request. `anchorIndex` fixes the anchor\n * at the base's pattern length, so with an owner at `/docs/[...path]` the\n * interception resolves when the catch-all consumed exactly one segment\n * (`/docs/a/photo/5`) and is dropped when it consumed more\n * (`/docs/a/b/photo/5`), because the base no longer matches the target's\n * leading parts.\n *\n * Dropping is fail-safe — the canonical route renders, as on hard navigation\n * — so this is never a wrong page. But it is a modal that opens at one depth\n * and silently does not at another, with nothing to tell the author why, and\n * no request-time input can fix it: the only available source depth is\n * `X-Timber-URL`, which is the browser's address bar, and once a modal is\n * open that holds the *intercepted* URL rather than the source.\n *\n * So the shape is rejected where it can be explained. A marker that climbs\n * *past* the catch-all is fine — `(..)` from `/docs/[...path]` bases at\n * `/docs` — and so is `(...)`, which always bases at the root. The rule is on\n * the *computed* base, not on having a catch-all anywhere above.\n */\nfunction assertInterceptedBaseIsCountable(\n child: SegmentNode,\n ownerUrlPath: string,\n childPath: string\n): void {\n const marker = child.interceptionMarker ?? '(.)';\n const base = computeInterceptedBase(ownerUrlPath, marker);\n const baseParts = base === '/' ? [] : base.slice(1).split('/');\n const ambiguous = baseParts.find((part) => {\n const kind = classifyUrlSegment(part).kind;\n return kind === 'catch-all' || kind === 'optional-catch-all';\n });\n if (!ambiguous) return;\n\n throw new Error(\n `Build error: intercepting route below a catch-all segment.\\n` +\n ` Directory: app/${childPath}\\n` +\n ` Intercepted base: ${base}\\n` +\n `A catch-all (${ambiguous}) matches a number of URL segments that varies per ` +\n `request, so \"${marker}\" cannot identify which segment of a target pathname the ` +\n `interception starts at — the modal would open at one depth and silently not at ` +\n `another.\\n` +\n `Move the interception above the catch-all, or use a marker that climbs past it ` +\n `((..) or (...)).\\n` +\n `See design/07-routing.md §\"Intercepting Routes\".`\n );\n}\n\n/**\n * Reject a catch-all inside an intercepting subtree that has directories\n * below it.\n *\n * A catch-all consumes the whole remaining path, so nothing under it is\n * reachable — `matchUrlParts` only accepts a catch-all as a terminal leaf and\n * never descends past one. Rewrite generation is not so strict: it walks the\n * subtree and emits `/feed/[...rest]/child`, and `pathnameMatchesPattern`\n * returns as soon as it reaches the catch-all without ever looking at\n * `child`. So the rewrite matches the navigation and then no renderer exists\n * — the TIM-1278 failure mode reached by a different route, with the user\n * served the page they were already on under a changed URL.\n *\n * The check covers the whole intercepting subtree, not just the intercepted\n * segment: `(.)photo/[...rest]/child` emits `/feed/photo/[...rest]/child` and\n * hijacks `/feed/photo/a/b` by exactly the same mechanism. And it does not\n * exempt a catch-all that carries its own page — that one does render, but\n * the rewrite generated for the unreachable descendant is broader than any\n * route in the tree, so the tail modal fires on navigations no directory\n * describes.\n *\n * Outside a slot the same shape merely 404s, which is why the general rule is\n * tracked separately (TIM-1286); here it is unsafe, and it only became\n * reachable when catch-all intercepted segments started matching at all\n * (TIM-1281).\n *\n * The walk descends `children` and not `slots`, mirroring\n * `collectLeavesWithRewrites` exactly: what this rejects is precisely the set\n * of paths rewrite generation emits, so the two cannot disagree about which\n * shapes exist. A slot nested inside an intercepting subtree produces no\n * rewrite and so cannot hijack anything.\n */\nfunction assertInterceptedCatchAllsAreTerminal(node: SegmentNode, nodePath: string): void {\n const { segmentType, segmentName } = effectiveUrlSegment(node);\n const isCatchAll = segmentType === 'catch-all' || segmentType === 'optional-catch-all';\n\n if (isCatchAll && node.children.length > 0) {\n throw new Error(\n `Build error: catch-all with nested segments inside an intercepting route.\\n` +\n ` Directory: app/${nodePath}\\n` +\n ` Nested: ${node.children.map((c) => c.segmentName).join(', ')}\\n` +\n `A catch-all (${segmentName}) consumes every remaining URL segment, so nothing ` +\n `below it can ever match — but the interception rewrite would still be generated ` +\n `and would hijack the navigation with no page to render.\\n` +\n `Move the nested routes above the catch-all, or intercept a named segment instead.\\n` +\n `See design/07-routing.md §\"Intercepting Routes\".`\n );\n }\n\n for (const child of node.children) {\n assertInterceptedCatchAllsAreTerminal(child, `${nodePath}/${child.segmentName}`);\n }\n}\n\n/**\n * Reject a `route.ts` anywhere inside an intercepting subtree.\n *\n * An interception is a soft-navigation variant of a page — it swaps which\n * page component renders. A route handler returns a `Response` and cannot\n * be an interception target: `walkInterceptedLeaves` visits `node.page`\n * only, so no rewrite is emitted for it, but `isTerminal` in\n * `tree-match.ts` counts both `page` and `route`, so `matchUrlParts` can\n * resolve to the route handler. `slot-interception.ts` then drops the\n * match (`if (!leaf.page) continue`), silently disabling the page's\n * interception. Fail-safe (the canonical route renders) but silent.\n *\n * The walk mirrors `assertInterceptedCatchAllsAreTerminal`: it descends\n * `children` (not `slots`), matching `collectLeavesWithRewrites` exactly.\n */\nfunction assertNoRouteHandlersInSubtree(node: SegmentNode, nodePath: string): void {\n if (node.route) {\n throw new Error(\n `Build error: route handler inside an intercepting route.\\n` +\n ` File: ${node.route.filePath}\\n` +\n ` Directory: app/${nodePath}\\n` +\n `An intercepting subtree renders a page component on soft navigation — a ` +\n `route handler returns a Response and cannot be an interception target. ` +\n `The route handler would silently shadow the interception: the resolver ` +\n `would match it and then discard it because it has no page, so the modal ` +\n `would stop opening with no diagnostic.\\n` +\n `Remove the route.ts, or move it outside the intercepting subtree.\\n` +\n `See design/07-routing.md §\"Intercepting Routes\".`\n );\n }\n\n for (const child of node.children) {\n assertNoRouteHandlersInSubtree(child, `${nodePath}/${child.segmentName}`);\n }\n}\n\n/**\n * Reject two pages that answer one URL among the interceptors an owner\n * resolves in a single walk.\n *\n * `validateRouteGroupCollisions` in the scanner returns early on an\n * intercepting node, so nothing else validates in here. That exemption exists\n * for a real reason — an interception's computed URL legitimately mirrors the\n * canonical route it replaces, and interceptors at *different* anchors\n * deliberately target one URL, which the resolver then orders (deepest anchor\n * first). But the exemption was broader than its reason. Two shapes slip\n * through it, and they are the same shape seen from two levels:\n *\n * feed/(.)photo/(a)/page.tsx feed/@modal/(.)[a]/page.tsx\n * feed/(.)photo/(b)/page.tsx feed/@modal/(.)[b]/page.tsx\n *\n * Both pairs answer one URL, and in both `matchUrlParts` resolves the tie by\n * whichever `children` array lists first — so the winner is whichever the\n * filesystem enumerated first, and renaming a directory flips it. That is\n * exactly what `validateRouteGroupCollisions` and\n * `validateAffixedSiblingConflicts` exist to reject for ordinary siblings.\n *\n * **The collision space is the anchor group, not the directory.** An earlier\n * revision ran once per intercepting directory, which sees the left-hand pair\n * and not the right-hand one: those leaves live in two different directories.\n * The space is `groupByInterceptedAnchor`'s output — the same grouping\n * `findInterceptingMatch` hands to one `matchUrlParts` call — so what is\n * validated together is exactly what is resolved together. Interceptors at\n * different anchors stay independent, which is the documented case, and two\n * slots on one owner are two owners and so two spaces.\n *\n * **Two checks, and the difference between them matters.** A duplicate\n * intercepted *pattern* is decided by string equality, which is exact: two\n * leaves with one pattern claim one set of URLs, whatever the precedence rules\n * are. Everything else is decided by asking the matcher — `collision-probe.ts`,\n * the same oracle the main tree and every slot use, so the spaces cannot\n * disagree about whether a pair of pages collides.\n *\n * Not covered: two affixed dynamics that tie on specificity (`(x)/a-[id]` vs\n * `(y)/[slug]-b`, ambiguous only for a part shaped `a-…-b`). No single probe\n * URL exercises both, and `validateAffixedSiblingConflicts` already rejects\n * that pair by affix length — including through groups, inside intercepting\n * subtrees, and between two interceptors sharing an anchor.\n *\n * The shape applies to both interception mechanisms — a slot interceptor and a\n * children-path one produce their leaves through the same walk, and both are\n * resolved by `findInterceptingMatch` — so this is called from the one place in\n * `walkForPlacement` that sees every owner regardless of position.\n */\nfunction assertNoInterceptedPatternCollisions(owner: SegmentNode, ownerPath: string): void {\n for (const group of groupByInterceptedAnchor(owner.urlPath, owner.children)) {\n assertAnchorGroupHasNoCollisions(group, ownerPath);\n }\n}\n\n/**\n * Reject a children-path interceptor and a slot interceptor from the same owner\n * that claim URLs in common.\n *\n * Within one mode the ambiguity is either non-existent (two children-path\n * rewrites are interchangeable, §\"Selection Between Owners\") or harmless (two\n * slots on one owner both render). Across modes one is a layout swap and the\n * other is a modal overlay, and the walk order picks the children-path shape —\n * making the modal dead, silently and deterministically (TIM-1319).\n *\n * Overlap is a **pattern intersection** test: do two intercepted URL patterns\n * share any concrete URL? This is not the same question the within-mode\n * collision oracle answers. `findOrderDependentCollision` checks whether two\n * candidates in one `matchUrlParts` walk produce different winners when\n * `children` order is reversed — that is, order-dependence. A static segment\n * always beats a dynamic one deterministically (no order-dependence), so\n * `/feed/foo` and `/feed/[id]` pass the oracle even though\n * `pathnameMatchesPattern` — the actual rewrite matcher — accepts both. The\n * pattern intersection test catches that: it walks both patterns segment by\n * segment and asks whether any value satisfies both.\n *\n * The check collects intercepted patterns from children-path interceptors and\n * from each slot's interceptors independently. Slots are checked one at a time\n * so two slot interceptors from *different* slots claiming one URL — the legal\n * \"two slots on one owner\" case — are never compared.\n */\nfunction assertNoCrossModeClaims(node: SegmentNode, ownerPath: string): void {\n // Collect children-path interceptor patterns\n const childrenLeaves: Array<{ pattern: string; filePath: string }> = [];\n for (const child of node.children) {\n if (\n child.segmentType !== 'intercepting' ||\n !child.interceptionMarker ||\n !child.interceptedSegmentName\n )\n continue;\n const urlBase = computeInterceptedUrlBase(\n node.urlPath,\n child.interceptionMarker,\n child.interceptedSegmentName\n );\n walkInterceptedLeaves(child, urlBase, [child], (page, leaf) => {\n childrenLeaves.push({ pattern: leaf.interceptedPattern, filePath: page.filePath });\n });\n }\n\n if (childrenLeaves.length === 0) return;\n\n const owner = ownerPath || '(app root)';\n\n for (const slot of Object.values(node.slots)) {\n const slotLeaves: Array<{ pattern: string; filePath: string }> = [];\n for (const child of slot.children) {\n if (\n child.segmentType !== 'intercepting' ||\n !child.interceptionMarker ||\n !child.interceptedSegmentName\n )\n continue;\n const urlBase = computeInterceptedUrlBase(\n node.urlPath,\n child.interceptionMarker,\n child.interceptedSegmentName\n );\n walkInterceptedLeaves(child, urlBase, [child], (page, leaf) => {\n slotLeaves.push({ pattern: leaf.interceptedPattern, filePath: page.filePath });\n });\n }\n\n for (const cl of childrenLeaves) {\n for (const sl of slotLeaves) {\n const overlap = interceptedPatternsOverlap(cl.pattern, sl.pattern);\n if (overlap !== null) {\n throwCrossModeClaim(owner, overlap, cl.filePath, sl.filePath);\n }\n }\n }\n }\n}\n\nfunction throwCrossModeClaim(\n owner: string,\n url: string,\n childFile: string,\n slotFile: string\n): never {\n throw new Error(\n `Build error: a children-path interception and a slot interception both ` +\n `claim the same URL.\\n` +\n ` Owner: app/${owner}\\n` +\n ` URL: ${url}\\n` +\n ` Children: ${childFile}\\n` +\n ` Slot: ${slotFile}\\n` +\n `The children-path interceptor replaces the owner's children (layout swap) ` +\n `while the slot interceptor renders inside a parallel slot (modal overlay). ` +\n `Both apply from the same scope at the same URL, and which one wins would ` +\n `depend on internal walk order rather than an explicit rule.\\n` +\n `Remove one of the two, or move them to different scopes.\\n` +\n `See design/07-routing.md §\"Selection Between Owners\".`\n );\n}\n\n/**\n * The URL-matching identity of an intercepting node, as a node.\n *\n * `matchUrlParts` reads `segmentType` directly and knows nothing about\n * interception, so a marker'd directory has to be handed to it under the\n * identity of the segment it intercepts — `(.)[id]` as `[id]`. Priority\n * ordering, affix stripping and catch-all handling then come from the shared\n * walker rather than from a second classifier here.\n *\n * Shared with `findInterceptingMatch` for the same reason the grouping is: the\n * collision space is the resolver's synthetic anchor parent, so its children\n * have to carry the identity the resolver gives them or the validator would be\n * probing a tree that does not match the one served. The caller keeps its own\n * map back to the real node — the proxy is a matching identity, not a\n * replacement (tree paths still need the directory name).\n */\nexport function interceptorProxy<TFile>(node: SegmentNode<TFile>): SegmentNode<TFile> {\n return { ...node, ...effectiveUrlSegment(node) };\n}\n\nfunction assertAnchorGroupHasNoCollisions(\n group: InterceptorAnchorGroup<RouteFile>,\n ownerPath: string\n): void {\n const { base } = group;\n const owner = ownerPath || '(app root)';\n\n // The space the resolver walks: a synthetic parent sitting at the anchor\n // base, holding every interceptor of this group under its matching identity.\n // `matchUrlParts` starts below this node, so the interceptors' own segments\n // are matched parts here — which is what lets a probe reach across two\n // directories and find the pair that competes.\n const proxies = group.interceptors.map(interceptorProxy);\n const anchorNode: SegmentNode = {\n segmentName: '',\n segmentType: 'static',\n urlPath: base,\n children: proxies,\n slots: {},\n };\n\n const patterns = new Map<string, string>();\n const probeLeaves: ProbeLeaf[] = [];\n\n for (const proxy of proxies) {\n // The proxy's name, not the directory's `interceptedSegmentName`: they are\n // the same string, and this is the one `matchUrlParts` matches on, so the\n // reported pattern and the probed URL cannot describe different segments.\n const pattern = joinInterceptedBase(base, proxy.segmentName);\n walkInterceptedLeaves(proxy, pattern, [proxy], (page, leaf) => {\n // Two leaves whose intercepted pattern is the *same string* claim exactly\n // the same set of URLs — one is ambiguous with the other, or dead. This\n // needs no probe and no reasoning about precedence: identical patterns are\n // identical URL sets by definition. It is the case route groups make easy\n // to write, `(a)/page.tsx` beside `(b)/page.tsx`, and the one the main\n // tree already rejects by comparing urlPath. Across two interceptors it\n // is `(..)photo` beside `(...)photo` under `/feed`, which both base at\n // `/` and both intercept the literal `photo`.\n const duplicate = patterns.get(leaf.interceptedPattern);\n if (duplicate) {\n throw new Error(\n `Build error: route collision between intercepting routes — two pages intercept the same URL.\\n` +\n ` Owner: app/${owner}\\n` +\n ` Intercepted base: ${base}\\n` +\n ` URL: ${leaf.interceptedPattern}\\n` +\n ` File 1: ${duplicate}\\n` +\n ` File 2: ${page.filePath}\\n` +\n `A route group is transparent for matching, so moving a page into one does not ` +\n `give it a URL of its own — these two claim the same one. Rename or move one of ` +\n `them.\\n` +\n `See design/07-routing.md §\"Collisions Among Intercepting Routes\".`\n );\n }\n patterns.set(leaf.interceptedPattern, page.filePath);\n probeLeaves.push({ filePath: page.filePath, chain: leaf.chain });\n });\n }\n\n // Differently-spelled patterns that nonetheless compete: ask the matcher.\n const collision = findOrderDependentCollision(anchorNode, probeLeaves, base);\n if (collision) {\n throw new Error(\n `Build error: route collision between intercepting routes — two pages answer the same URL.\\n` +\n ` Owner: app/${owner}\\n` +\n ` Intercepted base: ${base}\\n` +\n ` URL: ${collision.url}\\n` +\n ` File 1: ${collision.first}\\n` +\n ` File 2: ${collision.second}\\n` +\n `Both match it, so which one renders would be decided by filesystem enumeration ` +\n `order — renaming a route group can flip it. Rename or move one of them.\\n` +\n `Pages are compared by the URLs they match, not by how they are spelled: [id] and ` +\n `[slug] match the same URLs, and an optional catch-all also matches with zero ` +\n `segments.\\n` +\n `Intercepting directories based at *different* URLs may target one page — the ` +\n `resolver tries the deepest first — so this rejects only an ambiguity among the ` +\n `ones based at ${base}.\\n` +\n `See design/07-routing.md §\"Collisions Among Intercepting Routes\".`\n );\n }\n}\n\n/** What the walk knows about the position it is currently standing in. */\ninterface PlacementContext {\n /** `node` is itself a slot node, so its children are direct slot children. */\n parentIsSlot: boolean;\n /** `node` is at or below a slot node. */\n inSlotSubtree: boolean;\n /** `node` is inside an intercepting subtree. */\n inInterceptingSubtree: boolean;\n /** Some segment from the root down to `node`, inclusive, binds a param. */\n ancestorsBindParams: boolean;\n}\n\nfunction walkForPlacement(node: SegmentNode, path: string, ctx: PlacementContext): void {\n for (const child of node.children) {\n const childPath = path ? `${path}/${child.segmentName}` : child.segmentName;\n\n if (child.segmentType === 'intercepting') {\n const marker = child.interceptionMarker ?? '(.)';\n\n if (ctx.inInterceptingSubtree) {\n throw new Error(\n `Build error: intercepting route nested inside another intercepting route.\\n` +\n ` Directory: app/${childPath}\\n` +\n `An intercepting directory (${marker}) resolves against the URL its own parent ` +\n `renders at, and an intercepting subtree has no such URL — nothing walks it, so ` +\n `the rewrite would match the navigation and then have nothing to render.\\n` +\n `See design/07-routing.md §\"Intercepting Routes\".`\n );\n }\n\n // Inside a slot, only a *direct* slot child is reachable: the slot\n // resolver reads `slotNode.children` and stops. The children-path\n // renderer cannot pick it up either — it builds a segment chain, which\n // has no way to express a descent through a slot.\n if (ctx.inSlotSubtree && !ctx.parentIsSlot) {\n throw new Error(\n `Build error: intercepting route inside a parallel slot but not directly under it.\\n` +\n ` Directory: app/${childPath}\\n` +\n `An intercepting directory (${marker}) inside an @slot must be a *direct* child of ` +\n `that slot, e.g. app/feed/@modal/${child.segmentName}/page.tsx. The slot resolver ` +\n `scans the slot's direct children only; elsewhere the rewrite would match the ` +\n `navigation and then have nothing to render.\\n` +\n `See design/07-routing.md §\"Intercepting Routes\".`\n );\n }\n\n // Outside a slot the intercepting page replaces `children` for the\n // owner's own layout chain, so those layouts render against the\n // intercepted URL — which carries no values for params declared above\n // the interception.\n if (!ctx.parentIsSlot && ctx.ancestorsBindParams) {\n assertOwnerChainBindsNoParams(childPath, marker);\n }\n\n if (!ctx.parentIsSlot && !node.layout) {\n assertOwnerHasLayout(path, childPath);\n }\n\n // `node` is the owner — the slot (whose urlPath is the owning segment's,\n // since slots add no URL depth) or the ordinary segment holding the\n // interception. The same input rewrite generation bases from.\n assertInterceptedBaseIsCountable(child, node.urlPath, childPath);\n assertInterceptedCatchAllsAreTerminal(child, childPath);\n assertNoRouteHandlersInSubtree(child, childPath);\n }\n\n walkForPlacement(child, childPath, {\n parentIsSlot: false,\n // A slot subtree stays a slot subtree all the way down: the deeper\n // positions are exactly the ones neither renderer reaches.\n inSlotSubtree: ctx.inSlotSubtree,\n inInterceptingSubtree: ctx.inInterceptingSubtree || child.segmentType === 'intercepting',\n ancestorsBindParams: ctx.ancestorsBindParams || !!child.paramName,\n });\n }\n\n // After every child has been recursed into, so a placement error inside any\n // intercepting subtree is reported in preference to what it causes here — a\n // nested interception leaves a node `matchUrlParts` cannot match at all, and\n // the resulting nonsense below it is not what the author needs to be told\n // about. This is per *owner* rather than per intercepting directory because\n // the collision space is the anchor group; see\n // `assertNoInterceptedPatternCollisions`.\n assertNoInterceptedPatternCollisions(node, path);\n\n for (const [slotName, slotNode] of Object.entries(node.slots)) {\n walkForPlacement(slotNode, path ? `${path}/@${slotName}` : `@${slotName}`, {\n parentIsSlot: true,\n inSlotSubtree: true,\n inInterceptingSubtree: ctx.inInterceptingSubtree,\n // A slot-mode interception never binds owner params from the target —\n // the pipeline re-matches the source route, which supplies them — so the\n // rule stops at the slot boundary.\n ancestorsBindParams: false,\n });\n }\n\n // After both children and slots have been validated independently, check for\n // the cross-mode ambiguity that neither space covers: a children-path\n // interceptor and a slot interceptor from the same owner claiming one URL.\n // Within each mode the collision is either ordered (two children-path) or\n // harmless (two slots) — see §\"Selection Between Owners\" — but across modes\n // one is an overlay and the other a layout swap, and the walk order picks the\n // children-path shape silently (TIM-1319).\n assertNoCrossModeClaims(node, path);\n}\n\n/**\n * Recursively walk the segment tree to find intercepting routes.\n *\n * `ancestors` deliberately excludes slot nodes: a slot doesn't appear in a\n * matched route chain, so the last entry is always the nearest chain-visible\n * ancestor — the segment that owns the slot, and therefore the segment whose\n * presence in the source route gates the interception.\n *\n * Intercepting nodes only ever appear as a direct child of a slot or of an\n * ordinary chain segment in a valid tree; `validateInterceptionPlacement`\n * rejects every other placement at scan time, so this walk never has to\n * decide what an unrenderable intercepting node should generate.\n *\n * `parentIsSlot` is what distinguishes the two shapes, and it is the only\n * input that does: the owner, the scope and the intercepted pattern are all\n * computed identically either way.\n */\nfunction walkForInterceptions(\n node: SegmentNode,\n ancestors: SegmentNode[],\n parentIsSlot: boolean,\n rewrites: InterceptionRewrite[]\n): void {\n // Check children\n for (const child of node.children) {\n if (child.segmentType === 'intercepting' && child.interceptionMarker) {\n // Found an intercepting route — collect rewrites from its sub-tree\n collectFromInterceptingNode(child, ancestors, parentIsSlot, rewrites);\n } else {\n walkForInterceptions(child, [...ancestors, child], false, rewrites);\n }\n }\n\n // Check slots (intercepting routes are typically inside slots like @modal)\n for (const slot of Object.values(node.slots)) {\n walkForInterceptions(slot, ancestors, true, rewrites);\n }\n}\n\n/**\n * For an intercepting segment, find all leaf pages in its sub-tree and\n * generate rewrite rules for each.\n */\nfunction collectFromInterceptingNode(\n interceptingNode: SegmentNode,\n ancestors: SegmentNode[],\n parentIsSlot: boolean,\n rewrites: InterceptionRewrite[]\n): void {\n const marker = interceptingNode.interceptionMarker!;\n const segmentName = interceptingNode.interceptedSegmentName!;\n\n // Compute the intercepted URL base based on the marker\n const parentUrlPath = ancestors[ancestors.length - 1].urlPath;\n const interceptedUrlBase = computeInterceptedUrlBase(parentUrlPath, marker, segmentName);\n\n // The scope key and the re-match prefix both describe the same node — the\n // interception's owner — so they are derived here together from one\n // ancestor chain.\n const ancestorPaths = computeSegmentTreePaths(ancestors);\n const interceptingScope = ancestorPaths[ancestorPaths.length - 1];\n\n // Find all leaf pages in the intercepting sub-tree\n const shape: InterceptionShape = parentIsSlot\n ? { mode: 'slot', interceptingPrefix: parentUrlPath, interceptingScope }\n : { mode: 'children', interceptingScope };\n collectLeavesWithRewrites(interceptingNode, interceptedUrlBase, shape, rewrites);\n}\n\n/**\n * Everything about a rewrite except which URL it intercepts — one intercepting\n * directory produces one of these and one rewrite per leaf page beneath it.\n *\n * Written as a union of `Omit`s rather than `Omit` of the union: `Omit` is not\n * distributive, so the latter would silently collapse to the shapes' common\n * fields and drop `interceptingPrefix`.\n */\ntype InterceptionShape =\n | Omit<SlotInterceptionRewrite, 'interceptedPattern'>\n | Omit<ChildrenInterceptionRewrite, 'interceptedPattern'>;\n\n/**\n * Walk an intercepting sub-tree and visit every page-bearing node with the URL\n * pattern it is intercepted at, and URLs that reach it.\n *\n * Route groups are transparent, exactly as they are in the main tree — which\n * is what makes two groups under one interceptor able to claim one URL, and is\n * why the collision validator has to walk the same shape this does.\n *\n * Rewrite generation and that validator are the two callers. They share this\n * walk rather than each having their own so they cannot disagree about which\n * URLs an interceptor claims: a leaf the validator did not see is a rewrite\n * nobody checked, and a leaf only the validator sees is a build error for a\n * route that does not exist. Slots are not descended, here or in either caller\n * — a slot nested inside an intercepting subtree produces no rewrite.\n *\n * That answers the rewrite question only, and the resolution question is\n * answered elsewhere: `validateSlotsInsideInterceptingSubtree`\n * (`collision-spaces.ts`) gives each such slot its own collision space, and\n * `validateSlotPlacement` (`slot-placement.ts`) rejects the ones no renderer\n * reaches. Between them the slots this walk skips are covered; do not conclude\n * from the skip here that they are unvalidated (TIM-1308, TIM-1311).\n *\n * The walk reports the chain of URL-contributing nodes rather than building\n * probe URLs itself: choosing a probe value means running the matcher over the\n * whole subtree, which is the validator's business and not something rewrite\n * generation should be paying for or passing dummy arguments around.\n */\nfunction walkInterceptedLeaves(\n node: SegmentNode,\n interceptedUrlPath: string,\n chain: SegmentNode[],\n visit: (page: NonNullable<SegmentNode['page']>, leaf: InterceptedLeaf) => void\n): void {\n if (node.page) {\n // The page is handed over rather than the node so callers reading it do\n // not need a non-null assertion to say what this branch already proved.\n visit(node.page, { interceptedPattern: interceptedUrlPath, chain });\n }\n\n for (const child of node.children) {\n const isGroup = child.segmentType === 'group';\n walkInterceptedLeaves(\n child,\n isGroup ? interceptedUrlPath : `${interceptedUrlPath}/${child.segmentName}`,\n isGroup ? chain : [...chain, child],\n visit\n );\n }\n}\n\n/** What one page-bearing node in an intercepting subtree claims. */\ninterface InterceptedLeaf {\n /** The URL pattern the rewrite carries — the author's own spelling. */\n interceptedPattern: string;\n /**\n * The nodes from the intercepting directory down to this page that contribute\n * URL parts — route groups excluded, since they are transparent for matching.\n * Empty for the intercepting directory's own page.\n */\n chain: SegmentNode[];\n}\n\n/**\n * Recursively find leaf pages in an intercepting sub-tree and generate\n * rewrite rules for each.\n */\nfunction collectLeavesWithRewrites(\n node: SegmentNode,\n interceptedUrlPath: string,\n shape: InterceptionShape,\n rewrites: InterceptionRewrite[]\n): void {\n walkInterceptedLeaves(node, interceptedUrlPath, [], (_page, leaf) => {\n rewrites.push({ ...shape, interceptedPattern: leaf.interceptedPattern });\n });\n}\n\n/**\n * How many URL levels a marker climbs from the slot owner to reach the\n * intercepted segment, or `'root'` for a marker that climbs all the way.\n *\n * Level counting operates on URL path segments, NOT filesystem directories.\n * Route groups and parallel slots are already excluded from urlPath (they\n * don't add URL depth), so (..) correctly climbs visible segments. This\n * avoids the Vinext bug where path.dirname() on filesystem paths would\n * waste climbs on invisible route groups.\n *\n * Used only by `computeInterceptedBase` below — both rewrite generation and\n * the slot resolver go through that, so the arithmetic exists once.\n */\nfunction interceptionClimb(marker: InterceptionMarker): number | 'root' {\n switch (marker) {\n case '(.)':\n return 0;\n case '(..)':\n return 1;\n case '(..)(..)':\n return 2;\n case '(...)':\n return 'root';\n }\n}\n\n/**\n * Compute the base URL that an intercepting route intercepts, given the\n * parent's URL path and the interception marker.\n *\n * - (.) — same level: parent's URL path\n * - (..) — one level up: parent's parent URL path\n * - (...) — root level: /\n * - (..)(..) — two levels up: parent's grandparent URL path\n *\n * The result is a URL **pattern**, not a URL — `parentUrlPath` carries the\n * directory names, so a dynamic ancestor appears as `/docs/[...path]`.\n * Rewrite generation wants exactly that. The slot resolver imports this to\n * locate the intercepted segment in a concrete target pathname, and must\n * therefore account for a bracket part standing for a different number of\n * URL parts than itself (TIM-1281).\n *\n * Climbing past the root clamps to `/` rather than erroring, so generation\n * and resolution never disagree about what an over-reaching marker\n * intercepts.\n */\n/**\n * The URL pattern an intercepting directory's own page sits at — its\n * `computeInterceptedBase` joined with the segment it intercepts.\n *\n * The root case is why this is a function rather than a template literal at\n * each caller: a base of `/` must not produce `//photo`. Rewrite generation\n * and the collision validator both start their walk from this value, so the\n * two describe the same URLs by construction.\n */\nexport function computeInterceptedUrlBase(\n parentUrlPath: string,\n marker: InterceptionMarker,\n interceptedSegmentName: string\n): string {\n return joinInterceptedBase(computeInterceptedBase(parentUrlPath, marker), interceptedSegmentName);\n}\n\n/**\n * An intercepted base joined with one segment beneath it.\n *\n * The whole content of the \"function rather than a template literal\" rule\n * above: a base of `/` must not produce `//photo`. The collision validator has\n * the base in hand already (it groups by it) and joins through this rather than\n * re-deriving it from an owner path, so both callers spell the root case once.\n */\nexport function joinInterceptedBase(base: string, segmentName: string): string {\n return base === '/' ? `/${segmentName}` : `${base}/${segmentName}`;\n}\n\nexport function computeInterceptedBase(parentUrlPath: string, marker: InterceptionMarker): string {\n const climb = interceptionClimb(marker);\n if (climb === 'root') return '/';\n\n const parts = parentUrlPath.split('/').filter(Boolean);\n for (let i = 0; i < climb; i++) parts.pop();\n return parts.length === 0 ? '/' : `/${parts.join('/')}`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAqDA,SAAgB,cACd,MACA,OACA,SAC+B;CAC/B,MAAM,QAA8B,CAAC;CACrC,MAAM,SAA4C,CAAC;CAGnD,IAAI,UAAU,MAAM,OAAO,GAAG,OAAO,QAFb,SAAS,mBAAmB,IAEQ,GAC1D,OAAO;EAAE;EAAO;CAAO;CAEzB,OAAO;AACT;;;;;;;;;AA2CA,SAAS,yBACP,MACA,aAAmC,CAAC,GACX;CACzB,MAAM,SAAkC,CAAC;CACzC,KAAK,MAAM,SAAS,KAAK,UACvB,IAAI,MAAM,gBAAgB,SAAS;EACjC,MAAM,SAAS,yBAAyB,OAAO,CAAC,GAAG,YAAY,KAAK,CAAC;EACrE,OAAO,KAAK,GAAG,MAAM;CACvB,OACE,OAAO,KAAK;EAAE;EAAO;CAAW,CAAC;CAGrC,OAA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7
+ "BigInt"
8
+ ];
9
+ var hasWarned = false;
10
+ /**
11
+ * Dev-mode warning when a cache value contains types that lose fidelity
12
+ * through JSON round-trip. Only runs in development — no-op in production.
13
+ *
14
+ * Detects: Date (→ ISO string), Map/Set (→ {}), BigInt (→ throws).
15
+ * Emits once per process to avoid log spam.
16
+ */
17
+ function warnLossyJsonValue(value, cacheKey) {
18
+ if (hasWarned) return;
19
+ if (process.env.NODE_ENV === "production") return;
20
+ const lossy = findLossyTypes(value, /* @__PURE__ */ new Set(), 0);
21
+ if (lossy.size === 0) return;
22
+ hasWarned = true;
23
+ logLossyCacheValue({
24
+ cacheKey,
25
+ types: [...lossy].join(", ")
26
+ });
27
+ }
28
+ function findLossyTypes(value, seen, depth) {
29
+ const lossy = /* @__PURE__ */ new Set();
30
+ if (depth > 8 || value === null || value === void 0) return lossy;
31
+ if (typeof value === "bigint") {
32
+ lossy.add("BigInt");
33
+ return lossy;
34
+ }
35
+ if (typeof value !== "object" && typeof value !== "function") return lossy;
36
+ if (seen.has(value)) return lossy;
37
+ seen.add(value);
38
+ if (value instanceof Date) {
39
+ lossy.add("Date");
40
+ return lossy;
41
+ }
42
+ if (value instanceof Map) {
43
+ lossy.add("Map");
44
+ return lossy;
45
+ }
46
+ if (value instanceof Set) {
47
+ lossy.add("Set");
48
+ return lossy;
49
+ }
50
+ if (Array.isArray(value)) {
51
+ for (const item of value) {
52
+ for (const t of findLossyTypes(item, seen, depth + 1)) lossy.add(t);
53
+ if (lossy.size === LOSSY_TYPES.length) return lossy;
54
+ }
55
+ return lossy;
56
+ }
57
+ for (const k of Object.keys(value)) {
58
+ for (const t of findLossyTypes(value[k], seen, depth + 1)) lossy.add(t);
59
+ if (lossy.size === LOSSY_TYPES.length) return lossy;
60
+ }
61
+ return lossy;
62
+ }
63
+ export { warnLossyJsonValue as t };
64
+
65
+ //# sourceMappingURL=json-lossy-check-DpXneTBm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-lossy-check-DpXneTBm.js","names":[],"sources":["../../src/cache/json-lossy-check.ts"],"sourcesContent":["import { logLossyCacheValue } from '../server/logger.ts';\n\nconst LOSSY_TYPES = ['Date', 'Map', 'Set', 'BigInt'] as const;\n\nlet hasWarned = false;\n\n/**\n * Dev-mode warning when a cache value contains types that lose fidelity\n * through JSON round-trip. Only runs in development — no-op in production.\n *\n * Detects: Date (→ ISO string), Map/Set (→ {}), BigInt (→ throws).\n * Emits once per process to avoid log spam.\n */\nexport function warnLossyJsonValue(value: unknown, cacheKey: string): void {\n if (hasWarned) return;\n if (process.env.NODE_ENV === 'production') return;\n\n const lossy = findLossyTypes(value, new Set(), 0);\n if (lossy.size === 0) return;\n\n hasWarned = true;\n logLossyCacheValue({ cacheKey, types: [...lossy].join(', ') });\n}\n\nfunction findLossyTypes(value: unknown, seen: Set<unknown>, depth: number): Set<string> {\n const lossy = new Set<string>();\n if (depth > 8 || value === null || value === undefined) return lossy;\n if (typeof value === 'bigint') {\n lossy.add('BigInt');\n return lossy;\n }\n if (typeof value !== 'object' && typeof value !== 'function') return lossy;\n if (seen.has(value)) return lossy;\n seen.add(value);\n\n if (value instanceof Date) {\n lossy.add('Date');\n return lossy;\n }\n if (value instanceof Map) {\n lossy.add('Map');\n return lossy;\n }\n if (value instanceof Set) {\n lossy.add('Set');\n return lossy;\n }\n\n if (Array.isArray(value)) {\n for (const item of value) {\n for (const t of findLossyTypes(item, seen, depth + 1)) lossy.add(t);\n if (lossy.size === LOSSY_TYPES.length) return lossy;\n }\n return lossy;\n }\n\n for (const k of Object.keys(value as Record<string, unknown>)) {\n for (const t of findLossyTypes((value as Record<string, unknown>)[k], seen, depth + 1)) {\n lossy.add(t);\n }\n if (lossy.size === LOSSY_TYPES.length) return lossy;\n }\n return lossy;\n}\n\n/** Reset warning state — for tests only. */\nexport function _resetLossyWarning(): void {\n hasWarned = false;\n}\n"],"mappings":";;AAEA,IAAM,cAAc;CAAC;CAAQ;CAAO;CAAO;AAAQ;AAEnD,IAAI,YAAY;;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AACT"}
@@ -0,0 +1,44 @@
1
+ // src/shared/key-headers.ts
2
+ /**
3
+ * Which request headers a `'document'` segment's key may name
4
+ * (design/53-segment-lifetime.md §"Segment keys"). One rule for the build
5
+ * (`routing/route-options.ts`), which reports it from source, and for the
6
+ * runtime (`server/segment-lifetime/segment-key.ts`), which refuses it too —
7
+ * the build cannot read every file kind (MDX pages are not linted), and a
8
+ * credential must not become keyable by skipping the lint.
9
+ */
10
+ /** RFC 9110 §5.6.2 `token`: what a header field name may be. */
11
+ var HEADER_NAME = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
12
+ /**
13
+ * Headers a key may not name. `cookie` is read through cookie definitions
14
+ * (`key.cookies`). Credentials are secret, and a key answers guesses about
15
+ * its values to whoever holds a digest (design/53 §"The key digest").
16
+ */
17
+ var CREDENTIAL = "It carries a credential, and a key must not hold secret values.";
18
+ /**
19
+ * A `Map`, not an object literal: a header may be named `constructor` or
20
+ * `__proto__`, and an index lookup would find `Object.prototype`'s.
21
+ */
22
+ var UNKEYABLE_HEADERS = /* @__PURE__ */ new Map([
23
+ ["cookie", "Key on cookie definitions with key.cookies instead."],
24
+ ["authorization", CREDENTIAL],
25
+ ["proxy-authorization", CREDENTIAL],
26
+ ["x-api-key", CREDENTIAL]
27
+ ]);
28
+ /** Whether `value` has the shape of `key.headers`: an array of strings. */
29
+ function isHeaderList(value) {
30
+ return Array.isArray(value) && value.every((h) => typeof h === "string");
31
+ }
32
+ /** Why a key may not name `name`, or undefined when it may. */
33
+ function headerKeyProblem(name) {
34
+ if (!HEADER_NAME.test(name)) return `key.headers names "${name}", which is not a valid header name.`;
35
+ const refused = UNKEYABLE_HEADERS.get(name.toLowerCase());
36
+ return refused ? `key.headers may not name "${name}". ${refused}` : void 0;
37
+ }
38
+ /** Whether a key may never name `name` (case-insensitive): a cookie or credential header. */
39
+ function isUnkeyableHeader(name) {
40
+ return UNKEYABLE_HEADERS.has(name.toLowerCase());
41
+ }
42
+ export { isHeaderList as n, isUnkeyableHeader as r, headerKeyProblem as t };
43
+
44
+ //# sourceMappingURL=key-headers-CVpa6fpW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"key-headers-CVpa6fpW.js","names":[],"sources":["../../src/shared/key-headers.ts"],"sourcesContent":["/**\n * Which request headers a `'document'` segment's key may name\n * (design/53-segment-lifetime.md §\"Segment keys\"). One rule for the build\n * (`routing/route-options.ts`), which reports it from source, and for the\n * runtime (`server/segment-lifetime/segment-key.ts`), which refuses it too —\n * the build cannot read every file kind (MDX pages are not linted), and a\n * credential must not become keyable by skipping the lint.\n */\n\n/** RFC 9110 §5.6.2 `token`: what a header field name may be. */\nconst HEADER_NAME = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;\n\n/**\n * Headers a key may not name. `cookie` is read through cookie definitions\n * (`key.cookies`). Credentials are secret, and a key answers guesses about\n * its values to whoever holds a digest (design/53 §\"The key digest\").\n */\nconst CREDENTIAL = 'It carries a credential, and a key must not hold secret values.';\n\n/**\n * A `Map`, not an object literal: a header may be named `constructor` or\n * `__proto__`, and an index lookup would find `Object.prototype`'s.\n */\nconst UNKEYABLE_HEADERS: ReadonlyMap<string, string> = new Map([\n ['cookie', 'Key on cookie definitions with key.cookies instead.'],\n ['authorization', CREDENTIAL],\n ['proxy-authorization', CREDENTIAL],\n ['x-api-key', CREDENTIAL],\n]);\n\n/** Whether `value` has the shape of `key.headers`: an array of strings. */\nexport function isHeaderList(value: unknown): value is readonly string[] {\n return Array.isArray(value) && value.every((h) => typeof h === 'string');\n}\n\n/** Why a key may not name `name`, or undefined when it may. */\nexport function headerKeyProblem(name: string): string | undefined {\n if (!HEADER_NAME.test(name))\n return `key.headers names \"${name}\", which is not a valid header name.`;\n const refused = UNKEYABLE_HEADERS.get(name.toLowerCase());\n return refused ? `key.headers may not name \"${name}\". ${refused}` : undefined;\n}\n\n/** Whether a key may never name `name` (case-insensitive): a cookie or credential header. */\nexport function isUnkeyableHeader(name: string): boolean {\n return UNKEYABLE_HEADERS.has(name.toLowerCase());\n}\n"],"mappings":";;;;;;;;;;AAUA,IAAM,cAAc;;;;;;AAOpB,IAAM,aAAa;;;;;AAMnB,IAAM,oCAAiD,IAAI,IAAI;CAC7D,CAAC,UAAU,qDAAqD;CAChE,CAAC,iBAAiB,UAAU;CAC5B,CAAC,uBAAuB,UAAU;CAClC,CAAC,aAAa,UAAU;AAC1B,CAAC;;AAGD,SAAgB,aAAa,OAA4C;CACvE,OAAO,MAAM,QAAQ,KAAK,KAAK,MAAM,OAAO,MAAM,OAAO,MAAM,QAAQ;AACzE;;AAGA,SAAgB,iBAAiB,MAAkC;CACjE,IAAI,CAAC,YAAY,KAAK,IAAI,GACxB,OAAO,sBAAsB,KAAK;CACpC,MAAM,UAAU,kBAAkB,IAAI,KAAK,YAAY,CAAC;CACxD,OAAO,UAAU,6BAA6B,KAAK,KAAK,YAAY,KAAA;AACtE;;AAGA,SAAgB,kBAAkB,MAAuB;CACvD,OAAO,kBAAkB,IAAI,KAAK,YAAY,CAAC;AACjD"}
@@ -0,0 +1,150 @@
1
+ import { i as detectDirective, n as classifyModule } from "./classify-Bbb_lKjH.js";
2
+ import { n as stitchImportChains } from "./chains-BpvDwp08.js";
3
+ import { n as importSignals, r as poisoningsFor, t as collectImportSpecifiers } from "./poison-scan-DdkJoHvP.js";
4
+ import { i as scanProjectSourceFiles, t as buildSourceExtensions } from "./scan-CyizcBiX.js";
5
+ import { normalizePath } from "vite";
6
+ import { readFileSync } from "node:fs";
7
+ import { readFile } from "node:fs/promises";
8
+ // src/analyze/live-graph.ts
9
+ /**
10
+ * live-graph — classification from a running dev server's environment
11
+ * module graphs (the fast path).
12
+ *
13
+ * When a dev server runs, the env module graphs are already resident —
14
+ * classification is a lookup, not a crawl. This module adapts those
15
+ * graphs to the SAME classification pipeline the cold crawl uses
16
+ * (classify.ts + chains.ts + poison-scan.ts — design/47's "one
17
+ * classification module, thin frontends" requirement), so the
18
+ * dev-server endpoint and the CLI can never disagree about a file.
19
+ *
20
+ * Differences from the crawl, both inherent to the live source:
21
+ *
22
+ * - The browser (`client`) graph can be non-empty here (a real browser
23
+ * has requested modules), so `envs.client` is confirmable.
24
+ * - Rendering populates graphs lazily — only visited routes' code is
25
+ * present, and modules behind unexecuted dynamic imports carry
26
+ * `transformResult == null` (the §8 frontier). Those are reported as
27
+ * `subtreeUnknown` rather than transformed on demand: a hint must
28
+ * never mutate the dev server's graphs as a side effect of asking.
29
+ *
30
+ * Design docs: 47-module-environment-tooling.md §8, §"Dev-server
31
+ * endpoint".
32
+ */
33
+ /** Non-empty node set for a file in one graph. */
34
+ function memberOf(graph, file) {
35
+ return (graph.getModulesByFile(file)?.size ?? 0) > 0;
36
+ }
37
+ /**
38
+ * §8: an SSR-graph member whose every node was never transformed is a
39
+ * module behind an unexecuted dynamic import — reachable (it ships to
40
+ * the browser) but its subtree may be missing from the graphs.
41
+ *
42
+ * Live-source caveat: Vite also clears `transformResult` when a watched
43
+ * edit invalidates a node, so on the live graphs `subtreeUnknown`
44
+ * means "not currently transformed" — a freshly-edited module reads
45
+ * the same as a dormant dynamic-import payload until the next render
46
+ * re-transforms it. The two states are indistinguishable from the
47
+ * graph alone, and both honestly mean the subtree is not currently
48
+ * known; consumers refreshing on `timber:graph-update` events see the
49
+ * flag clear once the module is re-transformed.
50
+ */
51
+ function ssrTransformed(graph, file) {
52
+ const nodes = graph.getModulesByFile(file);
53
+ if (!nodes || nodes.size === 0) return void 0;
54
+ for (const node of nodes) if (node.transformResult != null) return true;
55
+ return false;
56
+ }
57
+ /**
58
+ * Classify one file from the live graphs. `file` must be an absolute
59
+ * realpath (graph nodes carry realpaths); it is slash-normalized here
60
+ * to match Vite's node keying.
61
+ */
62
+ async function classifyLiveFile(rawFile, ctx, getDirective = makeDirectiveReader(), errors) {
63
+ const file = normalizePath(rawFile);
64
+ let code = null;
65
+ try {
66
+ code = await readFile(file, "utf8");
67
+ } catch (error) {
68
+ errors?.push({
69
+ environment: "scan",
70
+ id: file,
71
+ message: `source read failed: ${error instanceof Error ? error.message : String(error)}`
72
+ });
73
+ }
74
+ const directive = code === null ? null : detectDirective(code, file);
75
+ const signals = code === null ? [] : importSignals(collectImportSpecifiers(code, file));
76
+ const classifyCtx = {
77
+ appDir: ctx.appDir,
78
+ pageExtensions: ctx.pageExtensions
79
+ };
80
+ const classification = classifyModule({
81
+ file,
82
+ inRsc: memberOf(ctx.rsc, file),
83
+ inSsr: memberOf(ctx.ssr, file),
84
+ inClient: memberOf(ctx.client, file),
85
+ ssrTransformed: ssrTransformed(ctx.ssr, file),
86
+ directive
87
+ }, classifyCtx);
88
+ const chains = classification.pending ? [] : stitchImportChains(file, {
89
+ rsc: ctx.rsc,
90
+ ssr: ctx.ssr,
91
+ appDir: ctx.appDir,
92
+ pageExtensions: ctx.pageExtensions,
93
+ getDirective
94
+ });
95
+ return {
96
+ ...classification,
97
+ boundary: directive === "use client",
98
+ chains,
99
+ poisonings: poisoningsFor(classification.kind, classification.pending, signals)
100
+ };
101
+ }
102
+ /**
103
+ * Synchronous directive reader with a per-call cache. chains.ts wants a
104
+ * sync callback; node:fs readFileSync per unique hop file is acceptable
105
+ * for a walk bounded by chain length.
106
+ */
107
+ function makeDirectiveReader() {
108
+ const cache = /* @__PURE__ */ new Map();
109
+ return (file) => {
110
+ const hit = cache.get(file);
111
+ if (hit !== void 0) return hit;
112
+ let directive = null;
113
+ try {
114
+ directive = detectDirective(readFileSync(file, "utf8"), file);
115
+ } catch {
116
+ directive = null;
117
+ }
118
+ cache.set(file, directive);
119
+ return directive;
120
+ };
121
+ }
122
+ /**
123
+ * Classify every project source file from the live graphs. Files on
124
+ * disk that no graph reached get the §2 provisional/pending
125
+ * classification — on a lazily-warmed dev server that includes routes
126
+ * nobody has visited yet, which is honest: the graphs genuinely have
127
+ * not confirmed them.
128
+ */
129
+ async function classifyLiveProject(ctx) {
130
+ const files = [];
131
+ const errors = [];
132
+ const extensions = buildSourceExtensions(ctx.pageExtensions);
133
+ await scanProjectSourceFiles(ctx.root, files, (failure) => errors.push({
134
+ environment: "scan",
135
+ id: failure.dir,
136
+ message: failure.message
137
+ }), 0, extensions);
138
+ const modules = [];
139
+ const getDirective = makeDirectiveReader();
140
+ for (const file of files) modules.push(await classifyLiveFile(file, ctx, getDirective, errors));
141
+ modules.sort((a, b) => a.file < b.file ? -1 : a.file > b.file ? 1 : 0);
142
+ return {
143
+ root: ctx.root,
144
+ modules,
145
+ errors
146
+ };
147
+ }
148
+ export { classifyLiveFile, classifyLiveProject };
149
+
150
+ //# sourceMappingURL=live-graph-DXhz6A_X.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"live-graph-DXhz6A_X.js","names":[],"sources":["../../src/analyze/live-graph.ts"],"sourcesContent":["/**\n * live-graph — classification from a running dev server's environment\n * module graphs (the fast path).\n *\n * When a dev server runs, the env module graphs are already resident —\n * classification is a lookup, not a crawl. This module adapts those\n * graphs to the SAME classification pipeline the cold crawl uses\n * (classify.ts + chains.ts + poison-scan.ts — design/47's \"one\n * classification module, thin frontends\" requirement), so the\n * dev-server endpoint and the CLI can never disagree about a file.\n *\n * Differences from the crawl, both inherent to the live source:\n *\n * - The browser (`client`) graph can be non-empty here (a real browser\n * has requested modules), so `envs.client` is confirmable.\n * - Rendering populates graphs lazily — only visited routes' code is\n * present, and modules behind unexecuted dynamic imports carry\n * `transformResult == null` (the §8 frontier). Those are reported as\n * `subtreeUnknown` rather than transformed on demand: a hint must\n * never mutate the dev server's graphs as a side effect of asking.\n *\n * Design docs: 47-module-environment-tooling.md §8, §\"Dev-server\n * endpoint\".\n */\n\nimport { readFile } from 'node:fs/promises';\nimport { readFileSync } from 'node:fs';\nimport { normalizePath } from 'vite';\nimport {\n classifyModule,\n detectDirective,\n type ClassifyContext,\n type Directive,\n} from './classify.ts';\nimport type { GraphModuleReport } from './crawl.ts';\nimport { stitchImportChains, type ChainGraph, type ImportChain } from './chains.ts';\nimport {\n collectImportSpecifiers,\n importSignals,\n poisoningsFor,\n type Poisoning,\n} from './poison-scan.ts';\nimport { buildSourceExtensions, scanProjectSourceFiles, type ScanFailure } from './scan.ts';\n\n/**\n * Duck-typed node view for liveness checks — the `transformResult`\n * member ChainModuleNode deliberately omits (§8 detection is a\n * classification concern, not a chain concern).\n */\ninterface LiveModuleNode {\n transformResult: unknown;\n}\n\nimport type { ChainModuleNode } from './chains.ts';\n\n/** Duck-typed module graph — structural supertype of Vite's. */\nexport interface LiveGraph extends ChainGraph {\n getModulesByFile(file: string): Set<ChainModuleNode & LiveModuleNode> | undefined;\n}\n\nexport interface LiveGraphContext {\n rsc: LiveGraph;\n ssr: LiveGraph;\n client: LiveGraph;\n /** Realpath'd project root. */\n root: string;\n appDir: string;\n pageExtensions?: readonly string[];\n}\n\n/**\n * Per-module answer — the crawl's shape, aliased rather than restated\n * so a field added to one frontend cannot silently miss the other.\n */\nexport type LiveModuleReport = GraphModuleReport;\n\n/** Non-empty node set for a file in one graph. */\nfunction memberOf(graph: LiveGraph, file: string): boolean {\n return (graph.getModulesByFile(file)?.size ?? 0) > 0;\n}\n\n/**\n * §8: an SSR-graph member whose every node was never transformed is a\n * module behind an unexecuted dynamic import — reachable (it ships to\n * the browser) but its subtree may be missing from the graphs.\n *\n * Live-source caveat: Vite also clears `transformResult` when a watched\n * edit invalidates a node, so on the live graphs `subtreeUnknown`\n * means \"not currently transformed\" — a freshly-edited module reads\n * the same as a dormant dynamic-import payload until the next render\n * re-transforms it. The two states are indistinguishable from the\n * graph alone, and both honestly mean the subtree is not currently\n * known; consumers refreshing on `timber:graph-update` events see the\n * flag clear once the module is re-transformed.\n */\nfunction ssrTransformed(graph: LiveGraph, file: string): boolean | undefined {\n const nodes = graph.getModulesByFile(file);\n if (!nodes || nodes.size === 0) return undefined;\n for (const node of nodes) {\n if (node.transformResult != null) return true;\n }\n return false;\n}\n\n/**\n * Classify one file from the live graphs. `file` must be an absolute\n * realpath (graph nodes carry realpaths); it is slash-normalized here\n * to match Vite's node keying.\n */\nexport async function classifyLiveFile(\n rawFile: string,\n ctx: LiveGraphContext,\n // Shared across a ?all=1 sweep (classifyLiveProject) — a per-call\n // cache would re-read every chain hop's source per target file,\n // quadratic sync IO on well-connected graphs.\n getDirective: (file: string) => Directive = makeDirectiveReader(),\n // Failures are recorded, not swallowed (crawl parity): a lost source\n // read means the directive/poisoning half of the answer is missing,\n // and consumers deserve to see that beside the classification.\n errors?: LiveGraphError[]\n): Promise<LiveModuleReport> {\n const file = normalizePath(rawFile);\n let code: string | null = null;\n try {\n code = await readFile(file, 'utf8');\n } catch (error) {\n // Unreadable (deleted mid-query): classification proceeds on graph\n // membership alone; directive/poisonings default to none.\n errors?.push({\n environment: 'scan',\n id: file,\n message: `source read failed: ${error instanceof Error ? error.message : String(error)}`,\n });\n }\n const directive: Directive = code === null ? null : detectDirective(code, file);\n const signals = code === null ? [] : importSignals(collectImportSpecifiers(code, file));\n\n const classifyCtx: ClassifyContext = {\n appDir: ctx.appDir,\n pageExtensions: ctx.pageExtensions,\n };\n const classification = classifyModule(\n {\n file,\n inRsc: memberOf(ctx.rsc, file),\n inSsr: memberOf(ctx.ssr, file),\n inClient: memberOf(ctx.client, file),\n ssrTransformed: ssrTransformed(ctx.ssr, file),\n directive,\n },\n classifyCtx\n );\n\n const chains = classification.pending\n ? []\n : stitchImportChains(file, {\n rsc: ctx.rsc,\n ssr: ctx.ssr,\n appDir: ctx.appDir,\n pageExtensions: ctx.pageExtensions,\n getDirective,\n });\n\n return {\n ...classification,\n boundary: directive === 'use client',\n chains,\n poisonings: poisoningsFor(classification.kind, classification.pending, signals),\n };\n}\n\n/**\n * Synchronous directive reader with a per-call cache. chains.ts wants a\n * sync callback; node:fs readFileSync per unique hop file is acceptable\n * for a walk bounded by chain length.\n */\nfunction makeDirectiveReader(): (file: string) => Directive {\n const cache = new Map<string, Directive>();\n return (file) => {\n const hit = cache.get(file);\n if (hit !== undefined) return hit;\n let directive: Directive = null;\n try {\n directive = detectDirective(readFileSync(file, 'utf8'), file);\n } catch {\n directive = null;\n }\n cache.set(file, directive);\n return directive;\n };\n}\n\n/** Live-source error entry — the crawl's error vocabulary. */\nexport interface LiveGraphError {\n environment: 'scan';\n id: string;\n message: string;\n}\n\nexport interface LiveProjectReport {\n root: string;\n modules: LiveModuleReport[];\n errors: LiveGraphError[];\n}\n\n/**\n * Classify every project source file from the live graphs. Files on\n * disk that no graph reached get the §2 provisional/pending\n * classification — on a lazily-warmed dev server that includes routes\n * nobody has visited yet, which is honest: the graphs genuinely have\n * not confirmed them.\n */\nexport async function classifyLiveProject(ctx: LiveGraphContext): Promise<LiveProjectReport> {\n const files: string[] = [];\n const errors: LiveProjectReport['errors'] = [];\n const extensions = buildSourceExtensions(ctx.pageExtensions);\n await scanProjectSourceFiles(\n ctx.root,\n files,\n (failure: ScanFailure) =>\n errors.push({ environment: 'scan', id: failure.dir, message: failure.message }),\n 0,\n extensions\n );\n const modules: LiveModuleReport[] = [];\n const getDirective = makeDirectiveReader();\n for (const file of files) {\n modules.push(await classifyLiveFile(file, ctx, getDirective, errors));\n }\n modules.sort((a, b) => (a.file < b.file ? -1 : a.file > b.file ? 1 : 0));\n return { root: ctx.root, modules, errors };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EA,SAAS,SAAS,OAAkB,MAAuB;CACzD,QAAQ,MAAM,iBAAiB,IAAI,CAAC,EAAE,QAAQ,KAAK;AACrD;;;;;;;;;;;;;;;AAgBA,SAAS,eAAe,OAAkB,MAAmC;CAC3E,MAAM,QAAQ,MAAM,iBAAiB,IAAI;CACzC,IAAI,CAAC,SAAS,MAAM,SAAS,GAAG,OAAO,KAAA;CACvC,KAAK,MAAM,QAAQ,OACjB,IAAI,KAAK,mBAAmB,MAAM,OAAO;CAE3C,OAAO;AACT;;;;;;AAOA,eAAsB,iBACpB,SACA,KAIA,eAA4C,oBAAoB,GAIhE,QAC2B;CAC3B,MAAM,OAAO,cAAc,OAAO;CAClC,IAAI,OAAsB;CAC1B,IAAI;EACF,OAAO,MAAM,SAAS,MAAM,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