@timber-js/app 0.2.0-alpha.222 → 0.2.0-alpha.224

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 (362) hide show
  1. package/agent-skill.md +21 -5
  2. package/dist/_chunks/{actions-vBHr2vqd.js → actions-7dTXYJfu.js} +53 -24
  3. package/dist/_chunks/actions-7dTXYJfu.js.map +1 -0
  4. package/dist/_chunks/{als-registry-BZqHCtq-.js → als-registry-DpygwCp0.js} +2 -3
  5. package/dist/_chunks/{als-registry-BZqHCtq-.js.map → als-registry-DpygwCp0.js.map} +1 -1
  6. package/dist/_chunks/{als-slots-BEEIPKYm.js → als-slots-kbQrHTzm.js} +2 -3
  7. package/dist/_chunks/{als-slots-BEEIPKYm.js.map → als-slots-kbQrHTzm.js.map} +1 -1
  8. package/dist/_chunks/{base-path-DaQrzbez.js → base-path-DDIx0FXe.js} +2 -3
  9. package/dist/_chunks/{base-path-DaQrzbez.js.map → base-path-DDIx0FXe.js.map} +1 -1
  10. package/dist/_chunks/{build-manifest-DWppEdLB.js → build-manifest-Y4jl7nwU.js} +2 -3
  11. package/dist/_chunks/{build-manifest-DWppEdLB.js.map → build-manifest-Y4jl7nwU.js.map} +1 -1
  12. package/dist/_chunks/{build-output-helper-RV_BRcF1.js → build-output-helper-B7wWGTfR.js} +14 -10
  13. package/dist/_chunks/build-output-helper-B7wWGTfR.js.map +1 -0
  14. package/dist/_chunks/{cache-api-DdcDLpBj.js → cache-api-TDZ4hlDc.js} +190 -38
  15. package/dist/_chunks/cache-api-TDZ4hlDc.js.map +1 -0
  16. package/dist/_chunks/{canonicalize-BAWkWiKK.js → canonicalize-CqK135BN.js} +29 -4
  17. package/dist/_chunks/{canonicalize-BAWkWiKK.js.map → canonicalize-CqK135BN.js.map} +1 -1
  18. package/dist/_chunks/chains-CwOr3Myj.js +1 -0
  19. package/dist/_chunks/{chains-BchW_AtW.js → chains-Dgm3PrMe.js} +3 -4
  20. package/dist/_chunks/{chains-BchW_AtW.js.map → chains-Dgm3PrMe.js.map} +1 -1
  21. package/dist/_chunks/{classify-IqzMpxMs.js → classify--_kINHQV.js} +4 -5
  22. package/dist/_chunks/{classify-IqzMpxMs.js.map → classify--_kINHQV.js.map} +1 -1
  23. package/dist/_chunks/{cli-check-DQne_YhU.js → cli-check-Dv3f8d2j.js} +5 -6
  24. package/dist/_chunks/{cli-check-DQne_YhU.js.map → cli-check-Dv3f8d2j.js.map} +1 -1
  25. package/dist/_chunks/{cli-context-_mPttGGY.js → cli-context-CbZp32SK.js} +3 -4
  26. package/dist/_chunks/{cli-context-_mPttGGY.js.map → cli-context-CbZp32SK.js.map} +1 -1
  27. package/dist/_chunks/cli-context-n5hmkdla.js +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-BS-RFGE2.js → cli-schema-sync-DIPurq7X.js} +4 -5
  33. package/dist/_chunks/{cli-schema-sync-BS-RFGE2.js.map → cli-schema-sync-DIPurq7X.js.map} +1 -1
  34. package/dist/_chunks/{cli-schema-sync-v872sHms.js → cli-schema-sync-uq72EZmD.js} +1 -1
  35. package/dist/_chunks/{client-dep-entries-BJyP9SIu.js → client-dep-entries-CP7AkMCM.js} +4 -5
  36. package/dist/_chunks/{client-dep-entries-BJyP9SIu.js.map → client-dep-entries-CP7AkMCM.js.map} +1 -1
  37. package/dist/_chunks/{cloudflare-Byxl8FWP.js → cloudflare-B75X6u4O.js} +10 -13
  38. package/dist/_chunks/{cloudflare-Byxl8FWP.js.map → cloudflare-B75X6u4O.js.map} +1 -1
  39. package/dist/_chunks/{codec-registry-oOUxugz3.js → codec-registry-CPc6bjVl.js} +2 -3
  40. package/dist/_chunks/{codec-registry-oOUxugz3.js.map → codec-registry-CPc6bjVl.js.map} +1 -1
  41. package/dist/_chunks/{codegen-Bps1sLKJ.js → codegen-B9oWkWGf.js} +5 -8
  42. package/dist/_chunks/{codegen-Bps1sLKJ.js.map → codegen-B9oWkWGf.js.map} +1 -1
  43. package/dist/_chunks/{convention-lint-VwzrtjIt.js → convention-lint-hZwz5wd4.js} +8 -11
  44. package/dist/_chunks/{convention-lint-VwzrtjIt.js.map → convention-lint-hZwz5wd4.js.map} +1 -1
  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-BNr5drEO.js → dev-server-B7o4As0l.js} +383 -55
  48. package/dist/_chunks/dev-server-B7o4As0l.js.map +1 -0
  49. package/dist/_chunks/dev-server-hZzmbMvK.js +1 -0
  50. package/dist/_chunks/{dev-store-BOa304m_.js → dev-store-BvdqtHvK.js} +82 -38
  51. package/dist/_chunks/dev-store-BvdqtHvK.js.map +1 -0
  52. package/dist/_chunks/{dist-DtrJyBbw.js → dist-C1Rjlo6s.js} +3 -5
  53. package/dist/_chunks/{dist-DtrJyBbw.js.map → dist-C1Rjlo6s.js.map} +1 -1
  54. package/dist/_chunks/{error-boundary-Bc8QPZuq.js → error-boundary-DRQXGWCp.js} +20 -27
  55. package/dist/_chunks/{error-boundary-Bc8QPZuq.js.map → error-boundary-DRQXGWCp.js.map} +1 -1
  56. package/dist/_chunks/{fast-hash-C-tVYrLb.js → fast-hash-DddxkU5Y.js} +2 -3
  57. package/dist/_chunks/{fast-hash-C-tVYrLb.js.map → fast-hash-DddxkU5Y.js.map} +1 -1
  58. package/dist/_chunks/{flight-source-node-BdHUOUqg.js → flight-source-node-0Tp6evlz.js} +6 -8
  59. package/dist/_chunks/flight-source-node-0Tp6evlz.js.map +1 -0
  60. package/dist/_chunks/{format-BKclgVbk.js → format-DuPOoXUP.js} +2 -3
  61. package/dist/_chunks/{format-BKclgVbk.js.map → format-DuPOoXUP.js.map} +1 -1
  62. package/dist/_chunks/{fs-identity-BRKuL215.js → fs-identity-BmQ_Agg-.js} +3 -5
  63. package/dist/_chunks/{fs-identity-BRKuL215.js.map → fs-identity-BmQ_Agg-.js.map} +1 -1
  64. package/dist/_chunks/{global-context-B9PFncvb.js → global-context-DbxNWeBP.js} +2 -3
  65. package/dist/_chunks/{global-context-B9PFncvb.js.map → global-context-DbxNWeBP.js.map} +1 -1
  66. package/dist/_chunks/{graph-cache-CYiUS2aS.js → graph-cache-B1LAg4t7.js} +5 -89
  67. package/dist/_chunks/graph-cache-B1LAg4t7.js.map +1 -0
  68. package/dist/_chunks/{href-validation-BIrxavIy.js → href-validation-CEZy1V-k.js} +4 -7
  69. package/dist/_chunks/{href-validation-BIrxavIy.js.map → href-validation-CEZy1V-k.js.map} +1 -1
  70. package/dist/_chunks/{json-lossy-check-C3Sht92C.js → json-lossy-check-DVkLUlfC.js} +3 -4
  71. package/dist/_chunks/{json-lossy-check-C3Sht92C.js.map → json-lossy-check-DVkLUlfC.js.map} +1 -1
  72. package/dist/_chunks/{live-graph-DEu_GWbc.js → live-graph-BcVjQ1Te.js} +6 -7
  73. package/dist/_chunks/{live-graph-DEu_GWbc.js.map → live-graph-BcVjQ1Te.js.map} +1 -1
  74. package/dist/_chunks/{logger-CI_hThfy.js → logger-CWk44DLp.js} +89 -47
  75. package/dist/_chunks/logger-CWk44DLp.js.map +1 -0
  76. package/dist/_chunks/{metadata-routes-B3XJNyIH.js → metadata-routes-BL26HCDd.js} +2 -3
  77. package/dist/_chunks/{metadata-routes-B3XJNyIH.js.map → metadata-routes-BL26HCDd.js.map} +1 -1
  78. package/dist/_chunks/{navigation-root-BQfo1-kG.js → navigation-root-M3B2ZrdO.js} +6 -10
  79. package/dist/_chunks/{navigation-root-BQfo1-kG.js.map → navigation-root-M3B2ZrdO.js.map} +1 -1
  80. package/dist/_chunks/{node-response-bF0bKoig.js → node-response-B9aviPDa.js} +43 -9
  81. package/dist/_chunks/node-response-B9aviPDa.js.map +1 -0
  82. package/dist/_chunks/{param-value-C8TNYchQ.js → param-value-DqlGfF57.js} +2 -3
  83. package/dist/_chunks/{param-value-C8TNYchQ.js.map → param-value-DqlGfF57.js.map} +1 -1
  84. package/dist/_chunks/{plugin-context-uDHFqHHJ.js → plugin-context-BfSRKJfz.js} +1 -1
  85. package/dist/_chunks/{plugin-context-DxMMvjUt.js → plugin-context-FCkaNLUB.js} +4 -6
  86. package/dist/_chunks/plugin-context-FCkaNLUB.js.map +1 -0
  87. package/dist/_chunks/{poison-rules-DoEhbqaY.js → poison-rules-Bmz-lCPi.js} +2 -3
  88. package/dist/_chunks/{poison-rules-DoEhbqaY.js.map → poison-rules-Bmz-lCPi.js.map} +1 -1
  89. package/dist/_chunks/{poison-scan-DTWIfNgD.js → poison-scan-DJYxZc_7.js} +4 -5
  90. package/dist/_chunks/{poison-scan-DTWIfNgD.js.map → poison-scan-DJYxZc_7.js.map} +1 -1
  91. package/dist/_chunks/{purge-store-WZaxu-3m.js → purge-store-8BqLAYZ1.js} +2 -3
  92. package/dist/_chunks/{purge-store-WZaxu-3m.js.map → purge-store-8BqLAYZ1.js.map} +1 -1
  93. package/dist/_chunks/{render-timeout-Ln_u7fX-.js → render-timeout-MrrqD1wd.js} +2 -3
  94. package/dist/_chunks/{render-timeout-Ln_u7fX-.js.map → render-timeout-MrrqD1wd.js.map} +1 -1
  95. package/dist/_chunks/{resolve-schema-CkAInout.js → resolve-schema-B-aCuTu3.js} +3 -4
  96. package/dist/_chunks/{resolve-schema-CkAInout.js.map → resolve-schema-B-aCuTu3.js.map} +1 -1
  97. package/dist/_chunks/{rsc-cache-key-ClUiXQnK.js → rsc-cache-key-D0cb0Gmc.js} +2 -3
  98. package/dist/_chunks/{rsc-cache-key-ClUiXQnK.js.map → rsc-cache-key-D0cb0Gmc.js.map} +1 -1
  99. package/dist/_chunks/{rsc-media-type-DDc7duTD.js → rsc-media-type-m8jz9u6_.js} +2 -3
  100. package/dist/_chunks/{rsc-media-type-DDc7duTD.js.map → rsc-media-type-m8jz9u6_.js.map} +1 -1
  101. package/dist/_chunks/{rsc-payload-path-dffcs4jp.js → rsc-payload-path-EphpDB-J.js} +2 -3
  102. package/dist/_chunks/{rsc-payload-path-dffcs4jp.js.map → rsc-payload-path-EphpDB-J.js.map} +1 -1
  103. package/dist/_chunks/{scan-BoP17W3w.js → scan-CyizcBiX.js} +2 -3
  104. package/dist/_chunks/{scan-BoP17W3w.js.map → scan-CyizcBiX.js.map} +1 -1
  105. package/dist/_chunks/{scanner-C8fdKvKG.js → scanner-CJC-ScJU.js} +15 -23
  106. package/dist/_chunks/{scanner-C8fdKvKG.js.map → scanner-CJC-ScJU.js.map} +1 -1
  107. package/dist/_chunks/{schema-bridge-DpOmvZlI.js → schema-bridge-DyRs3cqy.js} +2 -3
  108. package/dist/_chunks/{schema-bridge-DpOmvZlI.js.map → schema-bridge-DyRs3cqy.js.map} +1 -1
  109. package/dist/_chunks/{segment-classify-C539Pa2O.js → segment-classify-Ho8jXWeC.js} +3 -5
  110. package/dist/_chunks/{segment-classify-C539Pa2O.js.map → segment-classify-Ho8jXWeC.js.map} +1 -1
  111. package/dist/_chunks/{segment-context-D3DNxKFq.js → segment-context-CYiGTi3K.js} +4 -6
  112. package/dist/_chunks/{segment-context-D3DNxKFq.js.map → segment-context-CYiGTi3K.js.map} +1 -1
  113. package/dist/_chunks/{segment-keys-D5hu1hz4.js → segment-keys-Y60KNc8C.js} +2 -3
  114. package/dist/_chunks/{segment-keys-D5hu1hz4.js.map → segment-keys-Y60KNc8C.js.map} +1 -1
  115. package/dist/_chunks/{singleflight-BeVMMKi0.js → singleflight-BChPMjwH.js} +2 -3
  116. package/dist/_chunks/{singleflight-BeVMMKi0.js.map → singleflight-BChPMjwH.js.map} +1 -1
  117. package/dist/_chunks/{sizeof-CO3dk0V1.js → sizeof-DG4W40lv.js} +3 -4
  118. package/dist/_chunks/{sizeof-CO3dk0V1.js.map → sizeof-DG4W40lv.js.map} +1 -1
  119. package/dist/_chunks/{ssr-data-nA3I70_n.js → ssr-data-9hPtcNOr.js} +3 -4
  120. package/dist/_chunks/{ssr-data-nA3I70_n.js.map → ssr-data-9hPtcNOr.js.map} +1 -1
  121. package/dist/_chunks/{state-BhNGPsdi.js → state-B-EBjeER.js} +2 -3
  122. package/dist/_chunks/{state-BhNGPsdi.js.map → state-B-EBjeER.js.map} +1 -1
  123. package/dist/_chunks/{status-page-marker-BRX9Ib-d.js → status-page-marker-XIQXlTOb.js} +8 -13
  124. package/dist/_chunks/{status-page-marker-BRX9Ib-d.js.map → status-page-marker-XIQXlTOb.js.map} +1 -1
  125. package/dist/_chunks/{tree-match-6yihorhk.js → tree-match-Bqdr9szG.js} +2 -3
  126. package/dist/_chunks/{tree-match-6yihorhk.js.map → tree-match-Bqdr9szG.js.map} +1 -1
  127. package/dist/_chunks/{use-query-states-I3JMng6J.js → use-query-states-pkDV-jSg.js} +4 -7
  128. package/dist/_chunks/{use-query-states-I3JMng6J.js.map → use-query-states-pkDV-jSg.js.map} +1 -1
  129. package/dist/_chunks/{walkers-BqzxnwGC.js → walkers-DIE203ir.js} +6 -8
  130. package/dist/_chunks/{walkers-BqzxnwGC.js.map → walkers-DIE203ir.js.map} +1 -1
  131. package/dist/_chunks/{write-file-atomic-D1qWqHb4.js → write-file-atomic-DW8m_Atv.js} +2 -3
  132. package/dist/_chunks/{write-file-atomic-D1qWqHb4.js.map → write-file-atomic-DW8m_Atv.js.map} +1 -1
  133. package/dist/adapters/build-output-helper.d.ts +10 -1
  134. package/dist/adapters/build-output-helper.d.ts.map +1 -1
  135. package/dist/adapters/cloudflare-dev.js +2 -3
  136. package/dist/adapters/cloudflare-kv-cache.js +3 -4
  137. package/dist/adapters/cloudflare.d.ts.map +1 -1
  138. package/dist/adapters/cloudflare.js +1 -1
  139. package/dist/adapters/nitro-presets.d.ts +6 -0
  140. package/dist/adapters/nitro-presets.d.ts.map +1 -1
  141. package/dist/adapters/nitro-preview.d.ts.map +1 -1
  142. package/dist/adapters/nitro.d.ts.map +1 -1
  143. package/dist/adapters/nitro.js +94 -57
  144. package/dist/adapters/nitro.js.map +1 -1
  145. package/dist/analyze/crawl-entry.js +7 -9
  146. package/dist/analyze/crawl-entry.js.map +1 -1
  147. package/dist/analyze/graph-command.d.ts.map +1 -1
  148. package/dist/analyze/graph-command.js +19 -105
  149. package/dist/analyze/graph-command.js.map +1 -1
  150. package/dist/cache/index.js +3 -3
  151. package/dist/cache/key-discipline.d.ts +61 -0
  152. package/dist/cache/key-discipline.d.ts.map +1 -0
  153. package/dist/cache/stores/cloudflare-kv.js +1 -2
  154. package/dist/cache/stores/memory.js +2 -3
  155. package/dist/cache/stores/redis.js +1 -2
  156. package/dist/cache/stores/vercel.js +1 -2
  157. package/dist/cache/timber-cache.d.ts +5 -1
  158. package/dist/cache/timber-cache.d.ts.map +1 -1
  159. package/dist/cdn/cloudflare-purge.js +1 -2
  160. package/dist/cdn/fastly-purge.js +1 -2
  161. package/dist/cdn/index.js +2 -3
  162. package/dist/cdn/workers-cache-purge.js +3 -5
  163. package/dist/cdn/workers-cache-purge.js.map +1 -1
  164. package/dist/cli-dev-status.d.ts +75 -0
  165. package/dist/cli-dev-status.d.ts.map +1 -0
  166. package/dist/cli-init.d.ts +72 -0
  167. package/dist/cli-init.d.ts.map +1 -0
  168. package/dist/cli.d.ts +4 -12
  169. package/dist/cli.d.ts.map +1 -1
  170. package/dist/cli.js +27 -54
  171. package/dist/cli.js.map +1 -1
  172. package/dist/client/error-boundary.d.ts.map +1 -1
  173. package/dist/client/error-boundary.js +1 -1
  174. package/dist/client/index.js +22 -34
  175. package/dist/client/index.js.map +1 -1
  176. package/dist/client/internal.js +13 -18
  177. package/dist/client/internal.js.map +1 -1
  178. package/dist/client/use-cookie.d.ts +18 -5
  179. package/dist/client/use-cookie.d.ts.map +1 -1
  180. package/dist/codec.js +2 -3
  181. package/dist/config-types.d.ts +40 -5
  182. package/dist/config-types.d.ts.map +1 -1
  183. package/dist/config-validation.d.ts.map +1 -1
  184. package/dist/cookies/define-cookie.d.ts.map +1 -1
  185. package/dist/cookies/index.js +40 -67
  186. package/dist/cookies/index.js.map +1 -1
  187. package/dist/cookies/json-cookie.d.ts +4 -4
  188. package/dist/index.d.ts.map +1 -1
  189. package/dist/index.js +698 -237
  190. package/dist/index.js.map +1 -1
  191. package/dist/params/index.js +3 -4
  192. package/dist/plugin-context.d.ts +7 -0
  193. package/dist/plugin-context.d.ts.map +1 -1
  194. package/dist/plugins/dev-discovery.d.ts +69 -5
  195. package/dist/plugins/dev-discovery.d.ts.map +1 -1
  196. package/dist/plugins/dev-hostname.d.ts +152 -0
  197. package/dist/plugins/dev-hostname.d.ts.map +1 -0
  198. package/dist/plugins/dev-server.d.ts +5 -1
  199. package/dist/plugins/dev-server.d.ts.map +1 -1
  200. package/dist/plugins/dev-store-clear.d.ts +59 -4
  201. package/dist/plugins/dev-store-clear.d.ts.map +1 -1
  202. package/dist/plugins/graph-endpoint.d.ts +4 -2
  203. package/dist/plugins/graph-endpoint.d.ts.map +1 -1
  204. package/dist/plugins/optimize-package-imports-defaults.d.ts +13 -0
  205. package/dist/plugins/optimize-package-imports-defaults.d.ts.map +1 -0
  206. package/dist/plugins/optimize-package-imports.d.ts +113 -0
  207. package/dist/plugins/optimize-package-imports.d.ts.map +1 -0
  208. package/dist/plugins/prebuilt.d.ts.map +1 -1
  209. package/dist/routing/index.js +4 -4
  210. package/dist/rsc-runtime/rsc.d.ts +2 -1
  211. package/dist/rsc-runtime/rsc.d.ts.map +1 -1
  212. package/dist/rsc-runtime/server-references.d.ts +8 -0
  213. package/dist/rsc-runtime/server-references.d.ts.map +1 -0
  214. package/dist/search-params/index.js +5 -7
  215. package/dist/search-params/index.js.map +1 -1
  216. package/dist/server/access-gate.d.ts +12 -0
  217. package/dist/server/access-gate.d.ts.map +1 -1
  218. package/dist/server/canonicalize.d.ts +21 -0
  219. package/dist/server/canonicalize.d.ts.map +1 -1
  220. package/dist/server/cookie-context.d.ts +8 -1
  221. package/dist/server/cookie-context.d.ts.map +1 -1
  222. package/dist/server/flight-source-node.d.ts.map +1 -1
  223. package/dist/server/flight-source.d.ts.map +1 -1
  224. package/dist/server/index.d.ts +1 -1
  225. package/dist/server/index.d.ts.map +1 -1
  226. package/dist/server/index.js +8 -13
  227. package/dist/server/index.js.map +1 -1
  228. package/dist/server/interception-gates.d.ts +49 -0
  229. package/dist/server/interception-gates.d.ts.map +1 -0
  230. package/dist/server/internal.js +1061 -943
  231. package/dist/server/internal.js.map +1 -1
  232. package/dist/server/logger.d.ts +17 -0
  233. package/dist/server/logger.d.ts.map +1 -1
  234. package/dist/server/param-coercion.d.ts +8 -0
  235. package/dist/server/param-coercion.d.ts.map +1 -1
  236. package/dist/server/pipeline-interception.d.ts +34 -4
  237. package/dist/server/pipeline-interception.d.ts.map +1 -1
  238. package/dist/server/pipeline-metadata-route.d.ts +24 -0
  239. package/dist/server/pipeline-metadata-route.d.ts.map +1 -0
  240. package/dist/server/pipeline-metadata.d.ts +3 -2
  241. package/dist/server/pipeline-metadata.d.ts.map +1 -1
  242. package/dist/server/pipeline-phases.d.ts +9 -3
  243. package/dist/server/pipeline-phases.d.ts.map +1 -1
  244. package/dist/server/pipeline.d.ts +18 -0
  245. package/dist/server/pipeline.d.ts.map +1 -1
  246. package/dist/server/prebuilt/dev-store.d.ts +68 -22
  247. package/dist/server/prebuilt/dev-store.d.ts.map +1 -1
  248. package/dist/server/prebuilt/overlay.d.ts +8 -0
  249. package/dist/server/prebuilt/overlay.d.ts.map +1 -1
  250. package/dist/server/prebuilt-runtime.d.ts.map +1 -1
  251. package/dist/server/primitives.d.ts +13 -0
  252. package/dist/server/primitives.d.ts.map +1 -1
  253. package/dist/server/render-utils.d.ts +21 -0
  254. package/dist/server/render-utils.d.ts.map +1 -1
  255. package/dist/server/request-context.d.ts +14 -0
  256. package/dist/server/request-context.d.ts.map +1 -1
  257. package/dist/server/route-element-builder.d.ts.map +1 -1
  258. package/dist/server/route-handler.d.ts +7 -0
  259. package/dist/server/route-handler.d.ts.map +1 -1
  260. package/dist/server/route-matcher.d.ts +14 -3
  261. package/dist/server/route-matcher.d.ts.map +1 -1
  262. package/dist/server/rsc-entry/api-handler.d.ts.map +1 -1
  263. package/dist/server/rsc-entry/index.d.ts.map +1 -1
  264. package/dist/server/rsc-entry/rsc-stream.d.ts.map +1 -1
  265. package/dist/server/signal-identity.d.ts +6 -0
  266. package/dist/server/signal-identity.d.ts.map +1 -1
  267. package/dist/server/traced-access.d.ts +18 -0
  268. package/dist/server/traced-access.d.ts.map +1 -0
  269. package/dist/server/tracing.d.ts.map +1 -1
  270. package/dist/server/types.d.ts +5 -4
  271. package/dist/server/types.d.ts.map +1 -1
  272. package/dist/shims/font-google.js +1 -2
  273. package/dist/shims/font-local.js +1 -2
  274. package/dist/shims/headers.d.ts +11 -4
  275. package/dist/shims/headers.d.ts.map +1 -1
  276. package/docs/api/30-api-server.mdx +3 -1
  277. package/docs/api/32-api-cache.mdx +1 -1
  278. package/docs/api/34-api-config.mdx +42 -0
  279. package/docs/api/36-cli.mdx +72 -6
  280. package/docs/learn/01-quick-start.mdx +1 -1
  281. package/docs/learn/06-typed-params.mdx +2 -2
  282. package/docs/learn/10-caching.mdx +26 -5
  283. package/llms.txt +1 -1
  284. package/package.json +12 -12
  285. package/src/adapters/build-output-helper.ts +26 -4
  286. package/src/adapters/cloudflare.ts +1 -0
  287. package/src/adapters/nitro-presets.ts +15 -0
  288. package/src/adapters/nitro-preview.ts +66 -34
  289. package/src/adapters/nitro.ts +14 -6
  290. package/src/analyze/graph-command.ts +25 -133
  291. package/src/cache/key-discipline.ts +218 -0
  292. package/src/cache/timber-cache.ts +42 -5
  293. package/src/cli-dev-status.ts +196 -0
  294. package/src/cli-init.ts +278 -0
  295. package/src/cli.ts +33 -79
  296. package/src/client/error-boundary.tsx +19 -2
  297. package/src/client/use-cookie.ts +33 -21
  298. package/src/config-types.ts +40 -5
  299. package/src/config-validation.ts +37 -0
  300. package/src/cookies/define-cookie.ts +10 -46
  301. package/src/cookies/json-cookie.ts +4 -4
  302. package/src/index.ts +2 -0
  303. package/src/plugin-context.ts +7 -0
  304. package/src/plugins/dev-discovery.ts +216 -6
  305. package/src/plugins/dev-hostname.ts +322 -0
  306. package/src/plugins/dev-server.ts +96 -37
  307. package/src/plugins/dev-store-clear.ts +105 -7
  308. package/src/plugins/graph-endpoint.ts +15 -3
  309. package/src/plugins/optimize-package-imports-defaults.ts +88 -0
  310. package/src/plugins/optimize-package-imports.ts +439 -0
  311. package/src/plugins/prebuilt.ts +9 -0
  312. package/src/rsc-runtime/rsc.ts +7 -3
  313. package/src/rsc-runtime/server-references.ts +73 -0
  314. package/src/rsc-runtime/vendor-types.d.ts +9 -0
  315. package/src/server/access-gate.tsx +32 -20
  316. package/src/server/action-handler.ts +40 -34
  317. package/src/server/canonicalize.ts +27 -0
  318. package/src/server/cookie-context.ts +11 -3
  319. package/src/server/flight-source-node.ts +5 -2
  320. package/src/server/flight-source.ts +4 -3
  321. package/src/server/index.ts +6 -1
  322. package/src/server/interception-gates.ts +94 -0
  323. package/src/server/logger.ts +23 -0
  324. package/src/server/param-coercion.ts +22 -0
  325. package/src/server/pipeline-interception.ts +64 -4
  326. package/src/server/pipeline-metadata-route.ts +242 -0
  327. package/src/server/pipeline-metadata.ts +7 -5
  328. package/src/server/pipeline-phases.ts +71 -131
  329. package/src/server/pipeline.ts +20 -2
  330. package/src/server/prebuilt/dev-store.ts +113 -34
  331. package/src/server/prebuilt/overlay.ts +18 -0
  332. package/src/server/prebuilt-runtime.ts +43 -44
  333. package/src/server/primitives.ts +14 -0
  334. package/src/server/render-utils.ts +25 -0
  335. package/src/server/request-context.ts +27 -3
  336. package/src/server/route-element-builder.ts +15 -2
  337. package/src/server/route-handler.ts +3 -2
  338. package/src/server/route-matcher.ts +48 -33
  339. package/src/server/rsc-entry/api-handler.ts +2 -33
  340. package/src/server/rsc-entry/index.ts +8 -3
  341. package/src/server/rsc-entry/rsc-stream.ts +7 -1
  342. package/src/server/signal-identity.ts +30 -12
  343. package/src/server/traced-access.ts +50 -0
  344. package/src/server/tracing.ts +18 -1
  345. package/src/server/types.ts +5 -4
  346. package/src/shims/headers.ts +12 -4
  347. package/dist/_chunks/actions-vBHr2vqd.js.map +0 -1
  348. package/dist/_chunks/build-output-helper-RV_BRcF1.js.map +0 -1
  349. package/dist/_chunks/cache-api-DdcDLpBj.js.map +0 -1
  350. package/dist/_chunks/chains-B8TCLved.js +0 -1
  351. package/dist/_chunks/cli-context-BJQB6rtF.js +0 -1
  352. package/dist/_chunks/dev-server-BNr5drEO.js.map +0 -1
  353. package/dist/_chunks/dev-server-CUg7Mqh_.js +0 -1
  354. package/dist/_chunks/dev-store-BOa304m_.js.map +0 -1
  355. package/dist/_chunks/flight-source-node-BdHUOUqg.js.map +0 -1
  356. package/dist/_chunks/graph-cache-CYiUS2aS.js.map +0 -1
  357. package/dist/_chunks/logger-CI_hThfy.js.map +0 -1
  358. package/dist/_chunks/node-response-bF0bKoig.js.map +0 -1
  359. package/dist/_chunks/plugin-context-DxMMvjUt.js.map +0 -1
  360. package/dist/server/prebuilt/key-discipline.d.ts +0 -52
  361. package/dist/server/prebuilt/key-discipline.d.ts.map +0 -1
  362. package/src/server/prebuilt/key-discipline.ts +0 -122
@@ -43,6 +43,12 @@ export interface ManifestRoot extends RouteTree<ManifestFile> {
43
43
  * or null if no route matches.
44
44
  */
45
45
  export declare function createRouteMatcher(manifest: ManifestRoot): (pathname: string) => RouteMatch | null;
46
+ /**
47
+ * The matched segment path of a chain — its segment names, groups and slots
48
+ * included — as `getSegmentParams()`'s dev-mode validation compares against.
49
+ * See design/41-global-params.md §Runtime Validation.
50
+ */
51
+ export declare function matchedSegmentPath(chain: ManifestSegmentNode[]): string;
46
52
  /**
47
53
  * Collect middleware from a matched segment chain, root to leaf.
48
54
  *
@@ -78,14 +84,19 @@ export interface MetadataRouteMatch {
78
84
  contentType: string;
79
85
  /** The manifest file reference for the handler module. */
80
86
  file: ManifestFile;
81
- /** The matched segment (for context/params if needed). */
82
- segment: ManifestSegmentNode;
87
+ /**
88
+ * The segment chain from the root to the segment that owns the file, as
89
+ * a page's match would carry it: route groups and a zero-segment
90
+ * `[[...slug]]` the file sits in included. The pipeline coerces params
91
+ * and runs `middleware.ts` / `access.ts` over it (TIM-1609, TIM-1612).
92
+ */
93
+ segments: ManifestSegmentNode[];
83
94
  /**
84
95
  * Whether this is a static file (e.g. sitemap.xml, favicon.ico, icon.png)
85
96
  * that should be served from disk rather than executed as a handler.
86
97
  */
87
98
  isStatic: boolean;
88
- /** Extracted segment params from dynamic segments in the URL prefix. */
99
+ /** Raw segment params from dynamic segments in the URL prefix. */
89
100
  segmentParams: Record<string, string | string[]>;
90
101
  }
91
102
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"route-matcher.d.ts","sourceRoot":"","sources":["../../src/server/route-matcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAKL,KAAK,iBAAiB,EACvB,MAAM,sBAAsB,CAAC;AAY9B,6DAA6D;AAC7D,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;AAE5D;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAa,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3D,QAAQ,EAAE,MAAM,CAAC;CAClB;AAID;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,YAAY,GACrB,CAAC,QAAQ,EAAE,MAAM,KAAK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M,GAAG,MAAM,EAAE,CAAC,CAAC;CAClD;AAcD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,YAAY,GACrB,CAAC,QAAQ,EAAE,MAAM,KAAK,kBAAkB,GAAG,IAAI,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,mBAAmB,EACzB,QAAQ,EAAE,MAAM,GACf,kBAAkB,GAAG,IAAI,CAoE3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"api-handler.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/api-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAO/D;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,mBAAmB,EAAE,EAC/B,eAAe,EAAE,OAAO,GACvB,OAAO,CAAC,QAAQ,CAAC,CA0CnB"}
1
+ {"version":3,"file":"api-handler.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/api-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAO/D;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,mBAAmB,EAAE,EAC/B,eAAe,EAAE,OAAO,GACvB,OAAO,CAAC,QAAQ,CAAC,CAYnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/index.ts"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAoDlE;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAEjD;AAgWD,OAAO,EAAE,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AwB,EAAE,uBAAuB,CAAC,CAQnE;8BA0CoB,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"rsc-stream.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/rsc-stream.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAKnE,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAQ3E,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAG/E,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,YAAY,CAAC;IACxB,OAAO,EAAE,aAAa,CAAC;CACxB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,cAAc,EACvB,GAAG,EAAE,OAAO,EACZ,eAAe,EAAE,MAAM,EACvB,aAAa,CAAC,EAAE,aAAa,EAAE,GAC9B,eAAe,CAuGjB"}
1
+ {"version":3,"file":"rsc-stream.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/rsc-stream.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAKnE,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAQ3E,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAG/E,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,YAAY,CAAC;IACxB,OAAO,EAAE,aAAa,CAAC;CACxB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,cAAc,EACvB,GAAG,EAAE,OAAO,EACZ,eAAe,EAAE,MAAM,EACvB,aAAa,CAAC,EAAE,aAAa,EAAE,GAC9B,eAAe,CA6GjB"}
@@ -20,6 +20,12 @@ export declare function isSsrStreamError(error: unknown): error is SsrStreamErro
20
20
  * See also: isFrameworkSignalError() in client/browser-dev.ts (client-only).
21
21
  */
22
22
  export declare function isControlFlowSignal(error: unknown): boolean;
23
+ /**
24
+ * The HTTP status a control-flow signal answers with: a signal's own, or the
25
+ * one its digest carries once revived on the SSR side. `undefined` for
26
+ * anything that is not a signal.
27
+ */
28
+ export declare function controlFlowStatus(error: unknown): number | undefined;
23
29
  /**
24
30
  * Error thrown when SSR's renderToReadableStream fails due to an error
25
31
  * in the decoded RSC stream (e.g., uncontained slot errors).
@@ -1 +1 @@
1
- {"version":3,"file":"signal-identity.d.ts","sourceRoot":"","sources":["../../src/server/signal-identity.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAqBlE,eAAO,MAAM,UAAU,EAAE,OAAO,MAAyC,CAAC;AAC1E,eAAO,MAAM,cAAc,EAAE,OAAO,MAA6C,CAAC;AAClF,QAAA,MAAM,sBAAsB,EAAE,OAAO,MAAqD,CAAC;AAM3F,mFAAmF;AACnF,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAEhE;AAED,uFAAuF;AACvF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAExE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAExE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAkB3D;AAID;;;;;;;;;;;;;GAaG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC,QAAQ,CAAC,CAAC,sBAAsB,CAAC,QAAQ;IACzC,SAAkB,KAAK,EAAE,OAAO,CAAC;IAEjC,YAAY,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAI1C;CACF"}
1
+ {"version":3,"file":"signal-identity.d.ts","sourceRoot":"","sources":["../../src/server/signal-identity.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAqBlE,eAAO,MAAM,UAAU,EAAE,OAAO,MAAyC,CAAC;AAC1E,eAAO,MAAM,cAAc,EAAE,OAAO,MAA6C,CAAC;AAClF,QAAA,MAAM,sBAAsB,EAAE,OAAO,MAAqD,CAAC;AAM3F,mFAAmF;AACnF,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAEhE;AAED,uFAAuF;AACvF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAExE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAExE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAK3D;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAIpE;AAwBD;;;;;;;;;;;;;GAaG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC,QAAQ,CAAC,CAAC,sBAAsB,CAAC,QAAQ;IACzC,SAAkB,KAAK,EAAE,OAAO,CAAC;IAEjC,YAAY,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAI1C;CACF"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The one traced call every `access.ts` executor shares: `AccessGate`, in a
3
+ * page render, and `runAccessChain` below, for the `route.ts` handler and
4
+ * metadata routes, which have no render to put a gate in
5
+ * (design/04-authorization.md §"Auth in API Routes", §"Auth in Metadata Routes").
6
+ */
7
+ import type { ManifestSegmentNode } from './route-matcher.ts';
8
+ /**
9
+ * Run each segment's `access.ts`, root to leaf, outside a render. Each one
10
+ * is independent; a deny() or redirect() propagates as a signal.
11
+ */
12
+ export declare function runAccessChain(segments: readonly ManifestSegmentNode[]): Promise<void>;
13
+ /**
14
+ * Call one access function inside a `timber.access` span that records its
15
+ * result. Signals and errors propagate unchanged.
16
+ */
17
+ export declare function runTracedAccess(accessFn: () => unknown, segmentName: string | undefined): Promise<void>;
18
+ //# sourceMappingURL=traced-access.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"traced-access.d.ts","sourceRoot":"","sources":["../../src/server/traced-access.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAK9D;;;GAGG;AACH,wBAAsB,cAAc,CAAC,QAAQ,EAAE,SAAS,mBAAmB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAM5F;AAED;;;GAGG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,OAAO,EACvB,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,OAAO,CAAC,IAAI,CAAC,CAkBf"}
@@ -1 +1 @@
1
- {"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/server/tracing.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG9D,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD;;;;;;;GAOG;AACH,wBAAgB,UAAU,IAAI,MAAM,CASnC;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,MAAM,GAAG,SAAS,CAE9C;AAID;;;GAGG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,EAAE,EAAE,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;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,GACrD,IAAI,CASN;AAED;;;;GAIG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAclE"}
@@ -284,10 +284,11 @@ export declare namespace MetadataRoute {
284
284
  * The value a dynamic metadata route handler may return.
285
285
  *
286
286
  * This is a structural union — the pipeline dispatches on the shape at
287
- * request time (see `pipeline-phases.ts`):
288
- * - `Response` → returned as-is (e.g. `ImageResponse`, `Response.redirect()`).
289
- * Used by `icon.tsx`, `opengraph-image.tsx`,
290
- * `apple-icon.tsx`.
287
+ * request time (see `pipeline-metadata-route.ts`):
288
+ * - `Response` → its status and headers as-is (e.g. `ImageResponse`,
289
+ * `Response.redirect()`). Used by `icon.tsx`, `opengraph-image.tsx`,
290
+ * `apple-icon.tsx`. An image route's body is read to the end before it
291
+ * is answered, so a render that fails is a 500; other routes stream it.
291
292
  * - `string` → written as the response body verbatim. Used by `robots.ts`
292
293
  * and by any handler that wants to emit a pre-serialized payload.
293
294
  * - `MetadataRoute.Sitemap` → serialized via the sitemap XML writer. Used
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/server/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,gBAAgB,EAAE,GAClB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;CAAE,CAAC;AAExC,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,OAAO,CAAC;IACb,cAAc,EAAE,O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AAO,CAAC;QAC5F,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IACD,UAAiB,MAAM;QACrB,KAAK,EAAE,KAAK,CAAC;YACX,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;YAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;YAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;SAC9B,CAAC,CAAC;QACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IACD;;;;;;OAMG;IACH,KAAY,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,MAAM,GAAG,aAAa,CAAC,OAAO,GAAG,aAAa,CAAC,QAAQ,CAAC;AAEhG;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc,IAAI,MAC3E,OAAO,GACP,OAAO,CAAC,OAAO,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- //#region src/shims/font-google.ts
1
+ // src/shims/font-google.ts
2
2
  /**
3
3
  * Create a stub FontResult with empty values.
4
4
  *
@@ -36,7 +36,6 @@ var JetBrains_Mono = (config) => createStubFontResult(config);
36
36
  var Source_Code_Pro = (config) => createStubFontResult(config);
37
37
  var Playfair_Display = (config) => createStubFontResult(config);
38
38
  var Merriweather = (config) => createStubFontResult(config);
39
- //#endregion
40
39
  export { Geist, Geist_Mono, Inter, JetBrains_Mono, Lato, Merriweather, Montserrat, Open_Sans, Playfair_Display, Poppins, Roboto, Source_Code_Pro, createFont };
41
40
 
42
41
  //# sourceMappingURL=font-google.js.map
@@ -1,4 +1,4 @@
1
- //#region src/shims/font-local.ts
1
+ // src/shims/font-local.ts
2
2
  /**
3
3
  * Create a local font.
4
4
  *
@@ -14,7 +14,6 @@ function localFont(config) {
14
14
  variable: config?.variable
15
15
  };
16
16
  }
17
- //#endregion
18
17
  export { localFont as default };
19
18
 
20
19
  //# sourceMappingURL=font-local.js.map
@@ -16,7 +16,7 @@
16
16
  * (design/29-cookies.md, ONGOING_SECURITY.md H-3) apply unchanged.
17
17
  * See TIM-1042 and design/14-ecosystem.md §next/headers.
18
18
  */
19
- import type { CookieOptions, SetCookieOptions } from '@timber-js/app/server';
19
+ import type { CookieDeleteOptions, SetCookieOptions } from '@timber-js/app/server';
20
20
  export { getHeaders, getCookieJar } from '@timber-js/app/server';
21
21
  export { getHeaders as headers } from '@timber-js/app/server';
22
22
  /** Next.js's request cookie shape: `cookies().get(name)` → `{ name, value }`. */
@@ -33,6 +33,15 @@ export interface NextCookieListItem extends NextCookieOptions {
33
33
  name: string;
34
34
  value: string;
35
35
  }
36
+ /**
37
+ * Next.js's object overload for `cookies().delete({ name, ...options })` —
38
+ * every cookie option but `expires`, as in Next.'s `Omit<ResponseCookie, 'value' | 'expires'>`.
39
+ */
40
+ export type NextCookieDeleteItem = {
41
+ name: string;
42
+ } & CookieDeleteOptions & {
43
+ maxAge?: number;
44
+ };
36
45
  /** Next.js's RequestCookies surface, backed by timber's cookie jar. */
37
46
  export interface NextRequestCookies {
38
47
  get(name: string): RequestCookie | undefined;
@@ -44,9 +53,7 @@ export interface NextRequestCookies {
44
53
  set(name: string, value: string, options?: NextCookieOptions): void;
45
54
  set(cookie: NextCookieListItem): void;
46
55
  delete(name: string): void;
47
- delete(cookie: {
48
- name: string;
49
- } & Pick<CookieOptions, 'path' | 'domain'>): void;
56
+ delete(cookie: NextCookieDeleteItem): void;
50
57
  [Symbol.iterator](): IterableIterator<[string, RequestCookie]>;
51
58
  toString(): string;
52
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../src/shims/headers.ts"],"names":[],"mappings":"AAAA;;;;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AAG,SAAS,CAAC;IAC7C,GAAG,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,GAAG,SAAS,CAAC;IACtD,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,EAAE,CAAC;IACvC,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,EAAE,CAAC;IAC/C,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACpE,GAAG,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACtC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC3C,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,gBAAgB,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IAC/D,QAAQ,IAAI,MAAM,CAAC;CACpB;AAUD;;;;;;GAMG;AACH,wBAAgB,OAAO,IAAI,kBAAkB,CAuD5C"}
@@ -89,7 +89,9 @@ c.delete('session'); // Delete
89
89
  c.clear(); // Clear all
90
90
  ```
91
91
 
92
- Mutations are only allowed before the response flushes. Attempting to set a cookie after flush throws in dev mode.
92
+ Mutations are only allowed before the response flushes. After flush, `set()` and `delete()` are dropped with a warning in debug mode, `setFromHeaders()` is dropped with a warning, and `clear()` is dropped silently.
93
+
94
+ `delete(name, options)` takes the same cookie attributes as `set()` except `maxAge` and `expires` (and not `raw`). Pass the attributes the cookie was set with. A partitioned cookie is only removed by `delete(name, { partitioned: true, ... })`, because browsers keep partitioned cookies in a separate jar. `defineCookie().delete()` does this for you, on the server and in the browser.
93
95
 
94
96
  For typed cookies with validation and a client React hook, see [`defineCookie()`](/docs/typed-params) from `@timber-js/app/cookies`.
95
97
 
@@ -118,7 +118,7 @@ export default function Page() {
118
118
  | `ttl`/`tags` only | — | Rendered + stored on first request |
119
119
  | `prerender` + `ttl`/`tags` | Built at deploy | Rendered + stored on first request |
120
120
 
121
- In dev there is no build, so a `prerender` entry renders on its first request for each set of params. It stays in memory until any file changes. A request with `Cache-Control: no-cache` (a hard reload) renders it again. See [Caching → In Development](/docs/caching#in-development).
121
+ In dev there is no build, so a `prerender` entry renders on its first request for each set of params. It stays in memory until you save a module it imports, directly or through other modules, or any file outside the module graph (such as a markdown file it reads with `fs`). A request with `Cache-Control: no-cache` (a hard reload) renders it again. See [Caching → In Development](/docs/caching#in-development).
122
122
 
123
123
  ### Slots
124
124
 
@@ -29,11 +29,13 @@ interface TimberUserConfig {
29
29
  stripSensitiveFields?: boolean | readonly string[];
30
30
  };
31
31
  pageExtensions?: string[];
32
+ optimizePackageImports?: string[];
32
33
  slowRequestMs?: number;
33
34
  renderTimeoutMs?: number;
34
35
  devBrowserLogs?: 'error' | 'warn' | 'info' | 'none';
35
36
  dev?: {
36
37
  slowPhaseMs?: number;
38
+ hostname?: string | false;
37
39
  };
38
40
  budget?: {
39
41
  firstLoadJs?: number;
@@ -166,6 +168,25 @@ Status/error conventions (`error.*`, `global-error.*`, status files like `404.*`
166
168
 
167
169
  Two files claiming the same convention in one directory (e.g. `page.tsx` + `page.jsx`) are a build error — filesystem order is platform-dependent, so timber refuses to pick one silently.
168
170
 
171
+ ### `optimizePackageImports`
172
+
173
+ - **Type:** `string[]`
174
+ - **Default:** a built-in list (`lucide-react`, `date-fns`, `lodash-es`, `@heroicons/react/24/solid`, `react-icons/fa`, `@mui/material`, `recharts`, …, the same one Next.js uses)
175
+
176
+ Packages whose entry file (a "barrel") re-exports many modules. For these packages, timber imports each name from the module that defines it, so `import { Play } from 'lucide-react'` compiles the one icon module that defines `Play`, not every icon the package re-exports. On relisten.net this cut the first dev request from 18s to 5s and the production build from 14s to 8s.
177
+
178
+ Your list adds to the built-in one. Entries are exact import specifiers, so list each entry point you import from (`'react-icons/fa'`, not `'react-icons'`). Only list a package if its modules don't rely on each other's import-time side effects. The modules you don't import are no longer loaded:
179
+
180
+ ```ts
181
+ export default defineConfig({
182
+ optimizePackageImports: ['@acme/icons'],
183
+ });
184
+ ```
185
+
186
+ It applies to production builds. In `timber dev` it applies to server rendering of packages that Vite compiles itself, which in practice means packages with a `react` peer dependency (icon sets, component libraries). Dev hands other packages to Node, which loads them without compiling.
187
+
188
+ When timber can't map an import exactly, it leaves the import as written. For example: a namespace import, a name the barrel only re-exports through `export *` or from another package, or a barrel that runs code of its own or carries a `'use client'` or `'use server'` directive.
189
+
169
190
  ### `debug`
170
191
 
171
192
  - **Type:** `boolean`
@@ -201,6 +222,27 @@ Forward browser console output to the server terminal in dev mode. Sets the mini
201
222
 
202
223
  Threshold in milliseconds to highlight slow phases in dev logging output.
203
224
 
225
+ ### `dev.hostname`
226
+
227
+ - **Type:** `string | false`
228
+ - **Default:** your package.json `name`, or the app directory's name
229
+
230
+ The hostname the dev server prints and opens, as `<hostname>.localhost:<port>`. Browsers don't scope cookies by port, so every app on `localhost` shares one cookie jar, and two apps on `:3000` and `:3001` overwrite each other's sessions. Browsers resolve `*.localhost` to your machine without any setup, so giving each app its own name gives it its own cookies.
231
+
232
+ By default the name comes from package.json: `example-blog` prints `http://example-blog.localhost:3000`, and a scoped `@acme/web` prints `http://web.acme.localhost:3000`. Without a `name`, or with a generic one like `my-app`, the directory name is used. Characters a hostname can't contain become `-`.
233
+
234
+ ```ts title="timber.config.ts"
235
+ export default {
236
+ dev: {
237
+ hostname: 'blog', // http://blog.localhost:3000
238
+ },
239
+ };
240
+ ```
241
+
242
+ Set `false` to keep printing `localhost`, for example when an OAuth provider only has `http://localhost:3000` registered as a callback URL. `http://localhost:<port>` keeps working either way; only the printed and opened URL changes. An invalid name stops the dev server with an error (a production build only warns).
243
+
244
+ A second dev server for the same app keeps the same name on the next port (`blog.localhost:3001`), and the two share cookies. With `server.https`, the named URL is used only when your certificate covers it; a certificate issued for `localhost` alone keeps printing `https://localhost`. Issue it for the name too, for example `mkcert blog.localhost localhost`.
245
+
204
246
  ### `budget`
205
247
 
206
248
  Build-time performance budgets. When exceeded, the build report emits a warning (does not fail the build).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: 'CLI'
3
- description: 'timber dev, build, preview, check, graph, and init commands.'
3
+ description: 'timber dev, dev status, build, preview, check, graph, and init commands.'
4
4
  slug: 'cli'
5
5
  ---
6
6
 
@@ -25,6 +25,14 @@ timber dev --config ./custom-vite.config.ts
25
25
 
26
26
  Starts a Vite dev server with timber's routing, RSC pipeline, and dev tooling active. File changes trigger instant HMR. Route changes are detected automatically.
27
27
 
28
+ The server prints a URL named after your app, so each app gets its own cookies:
29
+
30
+ ```
31
+ ➜ Local: http://example-blog.localhost:3000/
32
+ ```
33
+
34
+ The name comes from package.json `name` (or the directory name), and `http://localhost:3000` still works. See [`dev.hostname`](/docs/api-config#devhostname) to choose the name or turn this off. Plain `vite dev` prints the same URL.
35
+
28
36
  When the requested port is available, the server shows a loading page while Vite initializes. If that port is occupied, startup continues without the loading page.
29
37
 
30
38
  #### Port selection
@@ -46,6 +54,55 @@ An occupied port produces a notice and the server tries the next free port. Set
46
54
 
47
55
  Editing `timber.config.ts` triggers a full process restart so the updated config takes effect. The dev server briefly shuts down and restarts on the same port. Changing the configured port takes effect on restart.
48
56
 
57
+ ### `timber dev status`
58
+
59
+ List the dev servers already running for this app.
60
+
61
+ ```bash
62
+ timber dev status
63
+ timber dev status --json
64
+ ```
65
+
66
+ Run it before starting a dev server, especially from a coding agent: if one is already running for this checkout, use its URL instead of starting a second server on the next port. A server is listed only if its process is alive and it answers as that process.
67
+
68
+ It also checks your other git worktrees. A server running in another worktree serves that worktree's code, so it is listed separately, with the worktree's path and branch. Don't test against it; start your own.
69
+
70
+ The app is found the same way `timber graph` finds it: the nearest Vite config at or above the current directory, or `--config`. It exits `0` whether or not servers are found, and fails only when it can't find a Vite config.
71
+
72
+ `--json` prints:
73
+
74
+ ```json
75
+ {
76
+ "version": 1,
77
+ "appRoot": "/path/to/app",
78
+ "servers": [
79
+ {
80
+ "url": "http://example-blog.localhost:3000/",
81
+ "loopbackUrl": "http://localhost:3000/",
82
+ "port": 3000,
83
+ "pid": 41522
84
+ }
85
+ ],
86
+ "otherWorktrees": [
87
+ {
88
+ "path": "/path/to/app-feature",
89
+ "branch": "feature-x",
90
+ "appRoot": "/path/to/app-feature",
91
+ "servers": [
92
+ {
93
+ "url": "http://example-blog.localhost:3001/",
94
+ "loopbackUrl": "http://localhost:3001/",
95
+ "port": 3001,
96
+ "pid": 41790
97
+ }
98
+ ]
99
+ }
100
+ ]
101
+ }
102
+ ```
103
+
104
+ `url` is the URL the server printed; open it in a browser. `loopbackUrl` is the same server at `localhost`, for scripts and HTTP clients: browsers and curl resolve `*.localhost` names themselves, but Node, Python and some Linux systems don't. Over https, `loopbackUrl` is the named URL unless your certificate also covers `localhost`. `servers` serve this checkout. `otherWorktrees` lists only worktrees that have a running server; `branch` is `null` for a detached HEAD.
105
+
49
106
  ### `timber build`
50
107
 
51
108
  Run the production build.
@@ -154,15 +211,24 @@ The first query after a clone or a file change runs a full-project crawl — typ
154
211
 
155
212
  ### `timber init`
156
213
 
157
- Write `AGENTS.md` and `CLAUDE.md` to the project root for AI coding agent discovery.
214
+ Point AI coding agents at timber's agent guide.
158
215
 
159
216
  ```bash
160
217
  timber init
161
218
  ```
162
219
 
163
- The content comes from the installed `@timber-js/app` package, so it's always in sync with your installed version. If either file already exists, it's skipped — delete it first to regenerate.
220
+ The guide ships inside the package, at `node_modules/@timber-js/app/agent-skill.md`, so it always matches your installed version and updates when you upgrade. `init` doesn't copy it. It adds a short block to `AGENTS.md` and `CLAUDE.md` in the project root that points at it:
221
+
222
+ - `AGENTS.md` gets a one-line pointer to the guide.
223
+ - `CLAUDE.md` gets `@node_modules/@timber-js/app/agent-skill.md` and `@AGENTS.md`, which are Claude Code imports, so Claude loads the guide and your `AGENTS.md` in every session.
224
+
225
+ The block sits between `<!-- timber:start -->` and `<!-- timber:end -->` lines. Everything outside those markers is yours: `init` creates a missing file, appends the block to a file that has none, and refreshes the block in place when it's already there. Running it again is always safe. It prints what it did to each file.
226
+
227
+ If a file is a full copy written by an older timber (the old `init`, or an older `create-timber-app`), `init` renames it to `AGENTS.md.bak` (or `.bak.1`, … if a backup exists) before replacing it, so any edits you made to the copy are kept. An old `CLAUDE.md` symlink to `AGENTS.md` is replaced with a regular file. Any other symlink is skipped (with a message): `init` never writes through a link.
228
+
229
+ In a workspace where `@timber-js/app` is hoisted to the repo root, `init` points at the hoisted copy (for example `../../node_modules/@timber-js/app/agent-skill.md`). Claude Code may not load an import from outside the project directory without your approval, so `init` prints a note when that applies.
164
230
 
165
- The generated `AGENTS.md` includes project structure, key imports, common patterns, and pointers to the full documentation in `node_modules/@timber-js/app/docs/`. `CLAUDE.md` is a one-line pointer to `AGENTS.md`.
231
+ Projects created with `create-timber-app` start with these blocks already in place.
166
232
 
167
233
  ## Options
168
234
 
@@ -170,12 +236,12 @@ The generated `AGENTS.md` includes project structure, key imports, common patter
170
236
  | ----------------- | ----- | --------------------------------------------------------------------------------------------------------- |
171
237
  | `--config <path>` | `-c` | Path to a custom Vite config file. Means the same thing for every command, `check` included. |
172
238
  | `--project <path>` | | `timber check` only — the `tsconfig.json` to type-check. |
173
- | `--json` | | `timber graph` only — emit the machine-readable JSON contract. |
239
+ | `--json` | | `timber graph` and `timber dev status` only — emit the machine-readable JSON contract. |
174
240
  | `--all` | | `timber graph` only — classify the whole project (requires `--json`). |
175
241
 
176
242
  > **Note:** `timber check` resolves your app through Vite, so `--config` names the Vite config there too, exactly as it does for `dev` and `build`. The tsconfig has its own flag, `--project`, spelled the way `tsc` and `tsgo` spell it. `check` needs a Vite config that lists the timber plugin and fails with an actionable message if it cannot find one.
177
243
 
178
- Those are the only flags. Any other produces an error rather than being silently ignored, with a hint at the supported alternative (e.g. `--port` points you to the `PORT` env var or `server.port` in `vite.config.ts`). Passing `--project` to a command with no type pass — or `--json`/`--all` to anything but `graph` — is an error too, pointing you at the right command.
244
+ Those are the only flags. Any other produces an error rather than being silently ignored, with a hint at the supported alternative (e.g. `--port` points you to the `PORT` env var or `server.port` in `vite.config.ts`). Passing `--project` to a command with no type pass — `--json` to anything but `graph` or `dev status`, or `--all` to anything but `graph` — is an error too, pointing you at the right command.
179
245
 
180
246
  ## Package Manager Scripts
181
247
 
@@ -22,7 +22,7 @@ cd my-app && pnpm i
22
22
  pnpm dev
23
23
  ```
24
24
 
25
- Open [http://localhost:3000](http://localhost:3000). You have a running app.
25
+ Open the URL `pnpm dev` prints, [http://my-app.localhost:3000](http://my-app.localhost:3000). You have a running app. The dev server names the URL after your app so each app keeps its own cookies; `http://localhost:3000` works too.
26
26
 
27
27
  ## Project Structure
28
28
 
@@ -186,8 +186,8 @@ export const themeCookie = defineCookie('theme', {
186
186
  Server:
187
187
 
188
188
  ```tsx
189
- const theme = await themeCookie.getCookie(); // 'light' | 'dark' | 'system'
190
- await themeCookie.setCookie('dark'); // before flush only
189
+ const theme = themeCookie.get(); // 'light' | 'dark' | 'system'
190
+ themeCookie.set('dark'); // before flush only
191
191
  ```
192
192
 
193
193
  Client:
@@ -89,6 +89,27 @@ Arguments that can't be serialized faithfully — functions, symbols, or class i
89
89
  cache.data(fn, { ttl: 60, key: (session) => `events:${session.userId}` });
90
90
  ```
91
91
 
92
+ ### Request Context Is Not in the Key
93
+
94
+ The key comes from the arguments only. A cached function that reads request headers, cookies, search params or segment params (`getHeaders()`, `getCookieJar()`, a `defineCookie` or `defineSearchParams` getter, `getSegmentParams()`) caches whichever request called it first, and serves that result to everyone until it expires:
95
+
96
+ ```ts
97
+ // ❌ Every user gets the first caller's balance
98
+ const getMyBalance = cache.data(
99
+ async () => {
100
+ const user = getHeaders().get('x-user');
101
+ return db.balances.find(user);
102
+ },
103
+ { ttl: 60 }
104
+ );
105
+
106
+ // ✅ The user is an argument, so it is part of the key
107
+ const getBalance = cache.data(async (user: string) => db.balances.find(user), { ttl: 60 });
108
+ await getBalance(getHeaders().get('x-user')!);
109
+ ```
110
+
111
+ timber logs a `cache.data cross-user data leak risk` error when a cached function reads request context, with the function's name (if it has one), its cache key and the API it read. Set `cache: { strictKeyDiscipline: true }` in `timber.config.ts` to make it a thrown error instead. The result is then never stored. Strict mode is recommended for any app that serves per-user data, and it applies to `cache.component` too.
112
+
92
113
  ## Invalidation
93
114
 
94
115
  Invalidate by tag:
@@ -171,7 +192,7 @@ const BlogBody = cache.component(Body, { prerender: true });
171
192
 
172
193
  ### Cached (runtime only)
173
194
 
174
- Rendered on first request, stored with a TTL. Invalidatable by tag. May read request context (with a warning — be careful not to leak per-user data into a shared cache).
195
+ Rendered on first request, stored with a TTL. Invalidatable by tag. May read request context (with a warning — be careful not to leak per-user data into a shared cache). The warning and `strictKeyDiscipline` work as they do for [`cache.data`](#request-context-is-not-in-the-key).
175
196
 
176
197
  ```tsx
177
198
  const Pricing = cache.component(PricingTable, {
@@ -239,12 +260,12 @@ Layout `prerender` cascades to descendant pages unless a closer layout or page o
239
260
  `timber dev` caches component output too, so a heavy prerendered page (MDX, syntax highlighting, content walks) renders once instead of on every navigation:
240
261
 
241
262
  - A `prerender` component renders on its first request for each set of params. It is served from memory after that. You don't need `generateStaticSegmentParams` in dev.
242
- - Saving any file the dev server watches clears every cached component, so the next request renders again. That includes a child component and a markdown file you read with `fs`. Files outside your project root (or in `node_modules`) aren't watched.
243
- - `ttl` and `tags` work as they do in production, and `revalidateTag` invalidates them.
244
- - A save clears `cache.data` results too, so a component that reads a file through a cached function picks up the edit.
263
+ - Saving a module clears the `prerender` components that use it: the ones declared in it, and the ones that import it directly or through other modules. The next request renders them again. Other cached components keep their output, so editing your nav doesn't re-render an expensive component elsewhere on the page.
264
+ - Saving any other file the dev server watches clears every cached component. That includes a markdown file you read with `fs`. Adding or deleting a file does too. Files outside your project root (or in `node_modules`) aren't watched.
265
+ - `ttl` and `tags` work as they do in production, and `revalidateTag` invalidates them. Every save clears them, along with `cache.data` results, so a component that reads a file through a cached function picks up the edit.
245
266
  - Reading `getCookieJar()`, `getHeaders()`, or search params in a `prerender` component fails in dev with the same error the build reports.
246
267
 
247
- If a component reads data that changes without a file save (a CMS, a database), hard-reload the page. A request with `Cache-Control: no-cache` renders every cached component again. DevTools sends that header on every request while "Disable cache" is checked.
268
+ If a component reads data that changes without a file save (a CMS, a database), or reads one of your own source files with `fs` (a page that displays code), hard-reload the page. A request with `Cache-Control: no-cache` renders every cached component again. DevTools sends that header on every request while "Disable cache" is checked.
248
269
 
249
270
  ### Slots: Dynamic Children Through a Cached Shell
250
271
 
package/llms.txt CHANGED
@@ -52,4 +52,4 @@ Documentation ships with this package in the `docs/` directory. All files are MD
52
52
 
53
53
  ## AI Agent Skill
54
54
 
55
- A Claude Code skill is included at `agent-skill.md`. Load it for guidance on building timber.js applications.
55
+ The agent guide is `agent-skill.md` (this package). `timber init` points a project's `AGENTS.md` and `CLAUDE.md` at it, so it stays in step with the installed version.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timber-js/app",
3
- "version": "0.2.0-alpha.222",
3
+ "version": "0.2.0-alpha.224",
4
4
  "description": "Vite-native React framework built for Servers and Serverless Platforms — correct HTTP semantics, real status codes, pages that work without JavaScript",
5
5
  "keywords": [
6
6
  "cloudflare-workers",
@@ -151,15 +151,15 @@
151
151
  "access": "public"
152
152
  },
153
153
  "dependencies": {
154
- "@opentelemetry/api": "^1.9.1",
155
- "@opentelemetry/context-async-hooks": "^2.12.0",
154
+ "@opentelemetry/api": "~1.10.0",
155
+ "@opentelemetry/context-async-hooks": "^3.0.0",
156
156
  "@opentelemetry/sdk-trace-base": "^2.12.0",
157
157
  "cookie": "^2.0.1",
158
158
  "jsonc-parser": "^3.3.1",
159
- "magic-string": "^1.4.3",
159
+ "magic-string": "^1.4.5",
160
160
  "nitro": "3.0.260903-beta",
161
- "oxc-transform-react": "^0.153.0",
162
- "srvx": "^1.0.5"
161
+ "oxc-transform-react": "^0.156.0",
162
+ "srvx": "^1.0.8"
163
163
  },
164
164
  "peerDependencies": {
165
165
  "@content-collections/core": "^0.14.0 || ^0.15.0",
@@ -167,13 +167,13 @@
167
167
  "@content-collections/vite": "^0.2.0 || ^0.3.0",
168
168
  "@typescript/native-preview": "^7.0.0-dev.0",
169
169
  "@vitejs/plugin-react": "^6.1.0",
170
- "@vitejs/plugin-rsc": "^0.5.35",
170
+ "@vitejs/plugin-rsc": "^0.5.36",
171
171
  "nuqs": "^2.0.0",
172
- "react": "19.3.0",
173
- "react-dom": "19.3.0",
174
- "satteri": "^0.9.5",
175
- "vite": "8.3.0",
176
- "vite-plugin-satteri": "^0.2.15",
172
+ "react": "19.3.1",
173
+ "react-dom": "19.3.1",
174
+ "satteri": "^0.10.5 || ^0.11.5",
175
+ "vite": "8.3.5",
176
+ "vite-plugin-satteri": "^0.3.7",
177
177
  "wrangler": "^4.0.0",
178
178
  "zod": "^3.22.0 || ^4.0.0"
179
179
  },