reroute-js 1.0.0-alpha.4 → 1.0.0-alpha.40

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 (307) hide show
  1. package/README.md +45 -3
  2. package/cli/bin.d.ts +1 -1
  3. package/cli/bin.js +3229 -1217
  4. package/cli/bin.js.map +66 -53
  5. package/cli/index.d.ts +1 -1
  6. package/cli/index.js +672 -45
  7. package/cli/index.js.map +57 -7
  8. package/cli/src/cli.d.ts +1 -1
  9. package/cli/src/commands/analyze.d.ts +1 -1
  10. package/cli/src/commands/analyze.d.ts.map +1 -1
  11. package/cli/src/commands/build.d.ts +6 -3
  12. package/cli/src/commands/build.d.ts.map +1 -1
  13. package/cli/src/commands/dev.d.ts +6 -6
  14. package/cli/src/commands/dev.d.ts.map +1 -1
  15. package/cli/src/commands/gen.d.ts +4 -1
  16. package/cli/src/commands/gen.d.ts.map +1 -1
  17. package/cli/src/commands/index.d.ts +1 -1
  18. package/cli/src/commands/init.d.ts +1 -1
  19. package/cli/src/commands/lib/assets.d.ts +1 -1
  20. package/cli/src/commands/lib/bundler.d.ts +8 -1
  21. package/cli/src/commands/lib/bundler.d.ts.map +1 -1
  22. package/cli/src/commands/lib/command.d.ts +1 -1
  23. package/cli/src/commands/lib/env.d.ts +4 -3
  24. package/cli/src/commands/lib/env.d.ts.map +1 -1
  25. package/cli/src/commands/lib/images.d.ts +12 -0
  26. package/cli/src/commands/lib/images.d.ts.map +1 -0
  27. package/cli/src/commands/lib/index.d.ts +1 -1
  28. package/cli/src/commands/lib/log.d.ts +1 -1
  29. package/cli/src/commands/lib/markdown/availability.d.ts +1 -1
  30. package/cli/src/commands/lib/markdown/index.d.ts +1 -1
  31. package/cli/src/commands/lib/markdown/processor.d.ts +11 -1
  32. package/cli/src/commands/lib/markdown/processor.d.ts.map +1 -1
  33. package/cli/src/commands/lib/prerender.d.ts +40 -0
  34. package/cli/src/commands/lib/prerender.d.ts.map +1 -0
  35. package/cli/src/commands/lib/production.d.ts +3 -3
  36. package/cli/src/commands/lib/production.d.ts.map +1 -1
  37. package/cli/src/commands/lib/routes.d.ts +40 -0
  38. package/cli/src/commands/lib/routes.d.ts.map +1 -0
  39. package/cli/src/commands/lib/server.d.ts +2 -1
  40. package/cli/src/commands/lib/server.d.ts.map +1 -1
  41. package/cli/src/commands/lib/ssr-strip.d.ts +33 -0
  42. package/cli/src/commands/lib/ssr-strip.d.ts.map +1 -0
  43. package/cli/src/commands/lib/static.d.ts +86 -0
  44. package/cli/src/commands/lib/static.d.ts.map +1 -0
  45. package/cli/src/commands/lib/streaming/analyzer.d.ts +1 -1
  46. package/cli/src/commands/lib/streaming/suspense.d.ts +2 -2
  47. package/cli/src/commands/lib/streaming/suspense.d.ts.map +1 -1
  48. package/cli/src/commands/lib/supervise.d.ts +23 -0
  49. package/cli/src/commands/lib/supervise.d.ts.map +1 -0
  50. package/cli/src/commands/lib/terminal-ui.d.ts +2 -2
  51. package/cli/src/commands/lib/terminal-ui.d.ts.map +1 -1
  52. package/cli/src/commands/lib/theme.d.ts +9 -4
  53. package/cli/src/commands/lib/theme.d.ts.map +1 -1
  54. package/cli/src/commands/lib/version.d.ts +1 -1
  55. package/cli/src/commands/lib/watch.d.ts +37 -0
  56. package/cli/src/commands/lib/watch.d.ts.map +1 -0
  57. package/cli/src/commands/og.d.ts +1 -1
  58. package/cli/src/commands/og.d.ts.map +1 -1
  59. package/cli/src/commands/start.d.ts +2 -2
  60. package/cli/src/commands/start.d.ts.map +1 -1
  61. package/cli/src/commands/static-render.d.ts +18 -0
  62. package/cli/src/commands/static-render.d.ts.map +1 -0
  63. package/cli/src/index.d.ts +1 -1
  64. package/core/index.d.ts +1 -1
  65. package/core/index.js +1102 -369
  66. package/core/index.js.map +40 -37
  67. package/core/src/app-paths.d.ts +32 -0
  68. package/core/src/app-paths.d.ts.map +1 -0
  69. package/core/src/bundler/hash.d.ts +1 -1
  70. package/core/src/bundler/index.d.ts +1 -1
  71. package/core/src/config.d.ts +98 -7
  72. package/core/src/config.d.ts.map +1 -1
  73. package/core/src/content/discovery.d.ts +1 -1
  74. package/core/src/content/index.d.ts +1 -1
  75. package/core/src/content/metadata.d.ts +1 -1
  76. package/core/src/i18n/catalog.d.ts +1 -1
  77. package/core/src/i18n/discover.d.ts +1 -1
  78. package/core/src/i18n/discover.d.ts.map +1 -1
  79. package/core/src/i18n/index.d.ts +2 -2
  80. package/core/src/i18n/index.d.ts.map +1 -1
  81. package/core/src/i18n/messages.d.ts +1 -1
  82. package/core/src/i18n/negotiate.d.ts +1 -1
  83. package/core/src/i18n/pathname.d.ts +32 -4
  84. package/core/src/i18n/pathname.d.ts.map +1 -1
  85. package/core/src/i18n/resolve.d.ts +5 -3
  86. package/core/src/i18n/resolve.d.ts.map +1 -1
  87. package/core/src/i18n/types.d.ts +48 -1
  88. package/core/src/i18n/types.d.ts.map +1 -1
  89. package/core/src/image.d.ts +29 -0
  90. package/core/src/image.d.ts.map +1 -0
  91. package/core/src/index.d.ts +3 -1
  92. package/core/src/index.d.ts.map +1 -1
  93. package/core/src/llms/discovery.d.ts +35 -0
  94. package/core/src/llms/discovery.d.ts.map +1 -0
  95. package/core/src/llms/extractor.d.ts +6 -1
  96. package/core/src/llms/extractor.d.ts.map +1 -1
  97. package/core/src/llms/formatter.d.ts +1 -1
  98. package/core/src/llms/formatter.d.ts.map +1 -1
  99. package/core/src/llms/full-generator.d.ts +3 -1
  100. package/core/src/llms/full-generator.d.ts.map +1 -1
  101. package/core/src/llms/index-generator.d.ts +6 -3
  102. package/core/src/llms/index-generator.d.ts.map +1 -1
  103. package/core/src/llms/index.d.ts +5 -2
  104. package/core/src/llms/index.d.ts.map +1 -1
  105. package/core/src/og/discovery.d.ts +8 -1
  106. package/core/src/og/discovery.d.ts.map +1 -1
  107. package/core/src/og/index.d.ts +1 -1
  108. package/core/src/og/meta.d.ts +1 -1
  109. package/core/src/og/render.d.ts +1 -1
  110. package/core/src/og/types.d.ts +1 -1
  111. package/core/src/robots/discovery.d.ts +1 -1
  112. package/core/src/robots/generator.d.ts +1 -1
  113. package/core/src/robots/generator.d.ts.map +1 -1
  114. package/core/src/robots/index.d.ts +1 -1
  115. package/core/src/robots/policies.d.ts +1 -1
  116. package/core/src/rss/discovery.d.ts +2 -2
  117. package/core/src/rss/discovery.d.ts.map +1 -1
  118. package/core/src/rss/generator.d.ts +1 -1
  119. package/core/src/rss/index.d.ts +1 -1
  120. package/core/src/sitemap/discovery.d.ts +7 -2
  121. package/core/src/sitemap/discovery.d.ts.map +1 -1
  122. package/core/src/sitemap/generator.d.ts +12 -2
  123. package/core/src/sitemap/generator.d.ts.map +1 -1
  124. package/core/src/sitemap/index.d.ts +1 -1
  125. package/core/src/ssr/index.d.ts +1 -1
  126. package/core/src/ssr/lib/cache.d.ts +1 -1
  127. package/core/src/ssr/lib/cleanup.d.ts +1 -1
  128. package/core/src/ssr/lib/collections.d.ts +17 -1
  129. package/core/src/ssr/lib/collections.d.ts.map +1 -1
  130. package/core/src/ssr/lib/compression.d.ts +1 -1
  131. package/core/src/ssr/lib/compute/content.d.ts +1 -1
  132. package/core/src/ssr/lib/compute/index.d.ts +1 -1
  133. package/core/src/ssr/lib/compute/index.d.ts.map +1 -1
  134. package/core/src/ssr/lib/compute/layouts.d.ts +1 -1
  135. package/core/src/ssr/lib/compute/layouts.d.ts.map +1 -1
  136. package/core/src/ssr/lib/compute/routes.d.ts +1 -1
  137. package/core/src/ssr/lib/compute/routes.d.ts.map +1 -1
  138. package/core/src/ssr/lib/content-path.d.ts +13 -2
  139. package/core/src/ssr/lib/content-path.d.ts.map +1 -1
  140. package/core/src/ssr/lib/data.d.ts +1 -1
  141. package/core/src/ssr/lib/html.d.ts +7 -1
  142. package/core/src/ssr/lib/html.d.ts.map +1 -1
  143. package/core/src/ssr/lib/imports.d.ts +8 -3
  144. package/core/src/ssr/lib/imports.d.ts.map +1 -1
  145. package/core/src/ssr/lib/index.d.ts +1 -1
  146. package/core/src/ssr/lib/layouts.d.ts +15 -2
  147. package/core/src/ssr/lib/layouts.d.ts.map +1 -1
  148. package/core/src/ssr/lib/metadata.d.ts +1 -1
  149. package/core/src/ssr/lib/metadata.d.ts.map +1 -1
  150. package/core/src/ssr/lib/mime.d.ts +1 -1
  151. package/core/src/ssr/lib/modules.d.ts +1 -1
  152. package/core/src/ssr/lib/path.d.ts +1 -1
  153. package/core/src/ssr/lib/preload.d.ts +16 -3
  154. package/core/src/ssr/lib/preload.d.ts.map +1 -1
  155. package/core/src/ssr/lib/route-match.d.ts +1 -1
  156. package/core/src/ssr/lib/scripts/collections.d.ts +2 -2
  157. package/core/src/ssr/lib/scripts/collections.d.ts.map +1 -1
  158. package/core/src/ssr/lib/scripts/data.d.ts +1 -1
  159. package/core/src/ssr/lib/scripts/data.d.ts.map +1 -1
  160. package/core/src/ssr/lib/scripts/escape.d.ts +1 -1
  161. package/core/src/ssr/lib/scripts/feeds.d.ts +1 -1
  162. package/core/src/ssr/lib/scripts/index.d.ts +1 -1
  163. package/core/src/ssr/lib/seed.d.ts +6 -1
  164. package/core/src/ssr/lib/seed.d.ts.map +1 -1
  165. package/core/src/ssr/lib/serialize.d.ts +1 -1
  166. package/core/src/ssr/lib/setup.d.ts +2 -2
  167. package/core/src/ssr/lib/setup.d.ts.map +1 -1
  168. package/core/src/ssr/lib/styles.d.ts +5 -4
  169. package/core/src/ssr/lib/styles.d.ts.map +1 -1
  170. package/core/src/ssr/lib/template.d.ts +1 -1
  171. package/core/src/ssr/lib/types.d.ts +36 -2
  172. package/core/src/ssr/lib/types.d.ts.map +1 -1
  173. package/core/src/ssr/render.d.ts +1 -1
  174. package/core/src/ssr/render.d.ts.map +1 -1
  175. package/core/src/ssr/stream.d.ts +1 -1
  176. package/core/src/ssr/stream.d.ts.map +1 -1
  177. package/elysia/index.d.ts +1 -1
  178. package/elysia/index.js +1893 -719
  179. package/elysia/index.js.map +56 -48
  180. package/elysia/src/index.d.ts +2 -1
  181. package/elysia/src/index.d.ts.map +1 -1
  182. package/elysia/src/libs/assets.d.ts +1 -1
  183. package/elysia/src/libs/cache.d.ts +6 -1
  184. package/elysia/src/libs/cache.d.ts.map +1 -1
  185. package/elysia/src/libs/caching.d.ts +1 -1
  186. package/elysia/src/libs/devReload.d.ts +53 -0
  187. package/elysia/src/libs/devReload.d.ts.map +1 -0
  188. package/elysia/src/libs/http.d.ts +1 -1
  189. package/elysia/src/libs/i18n.d.ts +15 -4
  190. package/elysia/src/libs/i18n.d.ts.map +1 -1
  191. package/elysia/src/libs/image.d.ts +30 -1
  192. package/elysia/src/libs/image.d.ts.map +1 -1
  193. package/elysia/src/libs/index.d.ts +2 -2
  194. package/elysia/src/libs/index.d.ts.map +1 -1
  195. package/elysia/src/libs/lazyData.d.ts +38 -0
  196. package/elysia/src/libs/lazyData.d.ts.map +1 -0
  197. package/elysia/src/libs/llms.d.ts +1 -1
  198. package/elysia/src/libs/response.d.ts +1 -1
  199. package/elysia/src/libs/serving.d.ts +1 -1
  200. package/elysia/src/plugin.d.ts +1 -1
  201. package/elysia/src/plugin.d.ts.map +1 -1
  202. package/elysia/src/routes/artifacts.d.ts +1 -1
  203. package/elysia/src/routes/artifacts.d.ts.map +1 -1
  204. package/elysia/src/routes/content.d.ts +2 -2
  205. package/elysia/src/routes/content.d.ts.map +1 -1
  206. package/elysia/src/routes/image.d.ts +1 -1
  207. package/elysia/src/routes/index.d.ts +1 -1
  208. package/elysia/src/routes/internal.d.ts +18 -2
  209. package/elysia/src/routes/internal.d.ts.map +1 -1
  210. package/elysia/src/routes/liveReloadClient.d.ts +16 -0
  211. package/elysia/src/routes/liveReloadClient.d.ts.map +1 -0
  212. package/elysia/src/routes/llms.d.ts +1 -1
  213. package/elysia/src/routes/llms.d.ts.map +1 -1
  214. package/elysia/src/routes/og.d.ts +1 -1
  215. package/elysia/src/routes/redirects.d.ts +1 -1
  216. package/elysia/src/routes/robots.d.ts +3 -1
  217. package/elysia/src/routes/robots.d.ts.map +1 -1
  218. package/elysia/src/routes/rss.d.ts +1 -1
  219. package/elysia/src/routes/search.d.ts +1 -1
  220. package/elysia/src/routes/sitemap.d.ts +3 -1
  221. package/elysia/src/routes/sitemap.d.ts.map +1 -1
  222. package/elysia/src/routes/ssr.d.ts +4 -2
  223. package/elysia/src/routes/ssr.d.ts.map +1 -1
  224. package/elysia/src/routes/static.d.ts +1 -1
  225. package/elysia/src/routes/themeCssRefresh.d.ts +17 -0
  226. package/elysia/src/routes/themeCssRefresh.d.ts.map +1 -0
  227. package/elysia/src/types.d.ts +1 -1
  228. package/package.json +1 -1
  229. package/react/index.d.ts +1 -1
  230. package/react/index.js +718 -369
  231. package/react/index.js.map +19 -16
  232. package/react/src/components/ClientOnly.d.ts +1 -1
  233. package/react/src/components/ContentRoute.d.ts +1 -1
  234. package/react/src/components/Image.d.ts +5 -1
  235. package/react/src/components/Image.d.ts.map +1 -1
  236. package/react/src/components/LazyRoute.d.ts +1 -1
  237. package/react/src/components/Link.d.ts +18 -5
  238. package/react/src/components/Link.d.ts.map +1 -1
  239. package/react/src/components/Markdown.d.ts +1 -1
  240. package/react/src/components/Markdown.d.ts.map +1 -1
  241. package/react/src/components/Outlet.d.ts +1 -1
  242. package/react/src/components/index.d.ts +1 -1
  243. package/react/src/hooks/index.d.ts +1 -1
  244. package/react/src/hooks/useContent.d.ts +1 -1
  245. package/react/src/hooks/useContent.d.ts.map +1 -1
  246. package/react/src/hooks/useData.d.ts +11 -1
  247. package/react/src/hooks/useData.d.ts.map +1 -1
  248. package/react/src/hooks/useFeed.d.ts +1 -1
  249. package/react/src/hooks/useLayoutData.d.ts +11 -1
  250. package/react/src/hooks/useLayoutData.d.ts.map +1 -1
  251. package/react/src/hooks/useLlms.d.ts +1 -1
  252. package/react/src/hooks/useNavigate.d.ts +1 -1
  253. package/react/src/hooks/useParams.d.ts +1 -1
  254. package/react/src/hooks/useRouter.d.ts +1 -1
  255. package/react/src/hooks/useSearch.d.ts +1 -1
  256. package/react/src/hooks/useSearchParams.d.ts +1 -1
  257. package/react/src/hooks/useToc.d.ts +1 -1
  258. package/react/src/i18n/LocaleProvider.d.ts +20 -2
  259. package/react/src/i18n/LocaleProvider.d.ts.map +1 -1
  260. package/react/src/i18n/helpers.d.ts +31 -3
  261. package/react/src/i18n/helpers.d.ts.map +1 -1
  262. package/react/src/i18n/index.d.ts +2 -2
  263. package/react/src/i18n/index.d.ts.map +1 -1
  264. package/react/src/index.d.ts +1 -1
  265. package/react/src/lib/bundle.d.ts +27 -0
  266. package/react/src/lib/bundle.d.ts.map +1 -0
  267. package/react/src/lib/collection.d.ts +1 -1
  268. package/react/src/lib/content.d.ts +1 -1
  269. package/react/src/lib/head.d.ts +37 -1
  270. package/react/src/lib/head.d.ts.map +1 -1
  271. package/react/src/lib/index.d.ts +4 -1
  272. package/react/src/lib/index.d.ts.map +1 -1
  273. package/react/src/lib/layouts.d.ts +26 -0
  274. package/react/src/lib/layouts.d.ts.map +1 -0
  275. package/react/src/lib/lazy-route.d.ts +12 -19
  276. package/react/src/lib/lazy-route.d.ts.map +1 -1
  277. package/react/src/lib/route-loader.d.ts +1 -1
  278. package/react/src/lib/static-data.d.ts +31 -0
  279. package/react/src/lib/static-data.d.ts.map +1 -0
  280. package/react/src/providers/ContentProvider.d.ts +1 -1
  281. package/react/src/providers/RerouteProvider.d.ts +2 -2
  282. package/react/src/providers/RerouteProvider.d.ts.map +1 -1
  283. package/react/src/providers/RouterProvider.d.ts +31 -3
  284. package/react/src/providers/RouterProvider.d.ts.map +1 -1
  285. package/react/src/providers/index.d.ts +1 -1
  286. package/react/src/types/any.d.ts +1 -1
  287. package/react/src/types/index.d.ts +1 -1
  288. package/react/src/types/router.d.ts +15 -1
  289. package/react/src/types/router.d.ts.map +1 -1
  290. package/telemetry/react.d.ts +1 -1
  291. package/telemetry/react.js +16 -16
  292. package/telemetry/react.js.map +2 -2
  293. package/telemetry/server.d.ts +1 -1
  294. package/telemetry/server.js +82 -232
  295. package/telemetry/server.js.map +30 -24
  296. package/telemetry/src/react/api.d.ts +1 -1
  297. package/telemetry/src/react/context.d.ts +1 -1
  298. package/telemetry/src/react/index.d.ts +1 -1
  299. package/telemetry/src/react/telemetry.d.ts +1 -1
  300. package/telemetry/src/server/context.d.ts +1 -1
  301. package/telemetry/src/server/headers/extractor.d.ts +1 -1
  302. package/telemetry/src/server/headers/index.d.ts +1 -1
  303. package/telemetry/src/server/headers/presets.d.ts +1 -1
  304. package/telemetry/src/server/index.d.ts +1 -1
  305. package/telemetry/src/server/instrumentation.d.ts +1 -1
  306. package/telemetry/src/server/plugin.d.ts +1 -1
  307. package/telemetry/src/server/sourcemap.d.ts +1 -1
package/cli/src/cli.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -1 +1 @@
1
- {"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/analyze.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG;AA86EH,wBAA8B,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA+SnE"}
1
+ {"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/analyze.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG;AAk7EH,wBAA8B,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA+SnE"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -8,12 +8,15 @@
8
8
  * Built with Bun <3
9
9
  */
10
10
  /**
11
- * Build command - Build production binary
11
+ * Build command - Build production binary or static site
12
12
  *
13
13
  * This command runs:
14
14
  * 1. `reroute gen --prod` (waits for completion, no watch)
15
15
  * 2. Copy consumer assets to .reroute/assets for production serving
16
- * 3. `bun build src/index.ts --target bun --compile --outfile ./dist/{name}`
16
+ * 3. `bun build .reroute/entry.ts --target bun --compile --outfile ./dist/{name}`
17
+ *
18
+ * With `--static`, step 3 prerenders every page into ./dist instead, so the
19
+ * app can be served by any static host without a Reroute server.
17
20
  */
18
21
  export default function build(args: string[]): Promise<void>;
19
22
  //# sourceMappingURL=build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/build.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgUH,wBAA8B,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,iBA8BjD"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAkWH,wBAA8B,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,iBAsCjD"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -8,13 +8,13 @@
8
8
  * Built with Bun <3
9
9
  */
10
10
  /**
11
- * Dev command - Start development environment
11
+ * Dev command — one bun process.
12
12
  *
13
- * This command runs:
14
- * 1. `reroute gen --watch` and `bun --watch src/index.ts` in parallel
13
+ * Default: generate + watch in-process, then import the configured server
14
+ * entry (`app.server`, default `src/index.ts`) in the same process.
15
+ * Live reload is `REROUTE_DEV=1` (not a second `bun --watch`).
15
16
  *
16
- * By default, logs are displayed in a single column format.
17
- * Use `-t` or `--tui` to enable the side-by-side terminal UI.
17
+ * `--tui` still splits gen/server into child processes for the two-column UI.
18
18
  */
19
19
  export default function dev(args: string[]): Promise<void>;
20
20
  //# sourceMappingURL=dev.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAmLH,wBAA8B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,iBA+C/C"}
1
+ {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgKH,wBAA8B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,iBAuC/C"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -7,5 +7,8 @@
7
7
  *
8
8
  * Built with Bun <3
9
9
  */
10
+ export declare function startGenWatch(cwd: string, args: string[]): Promise<{
11
+ close: () => void;
12
+ }>;
10
13
  export default function gen(args: string[]): Promise<void>;
11
14
  //# sourceMappingURL=gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gen.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/gen.ts"],"names":[],"mappings":";AA8lEA,wBAA8B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,iBAqd/C"}
1
+ {"version":3,"file":"gen.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/gen.ts"],"names":[],"mappings":";AAkvEA,wBAAsB,aAAa,CAClC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EAAE,GACZ,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC,CA6iBhC;AAED,wBAA8B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,iBA0B/C"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -43,4 +43,11 @@ export declare function getNamingConfig(options?: {
43
43
  * bundle — watching alone only reloads the stale JS.
44
44
  */
45
45
  export declare function shouldRebuildClientBundle(filename: string): boolean;
46
+ /**
47
+ * Every chunk `entryFile` loads before it runs: its static imports and
48
+ * theirs, from Bun's metafile (outputs are flat file names, as written to
49
+ * the bundles directory). Dynamic imports stay out: a page preloads what
50
+ * the entry needs, not every lazy route.
51
+ */
52
+ export declare function entryStaticImports(metafile: unknown, entryFile: string): string[];
46
53
  //# sourceMappingURL=bundler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/bundler.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAEvC;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,WAAW,CAAC,CAU5D;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;;;;EAMA;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOnE"}
1
+ {"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/bundler.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAEvC;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,WAAW,CAAC,CAU5D;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;;;;EAMA;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOnE;AAOD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CACjC,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,MAAM,GACf,MAAM,EAAE,CA4BV"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -9,9 +9,10 @@
9
9
  */
10
10
  /**
11
11
  * Get public environment variables that should be exposed to the browser
12
- * Only includes variables prefixed with REROUTE_
12
+ * Only includes variables prefixed with REROUTE_: from the .env files, then
13
+ * the process environment (a CI variable or Docker build arg), which wins.
13
14
  */
14
- export declare function getPublicEnvVars(cwd: string, mode?: 'development' | 'production'): Record<string, string>;
15
+ export declare function getPublicEnvVars(cwd: string, mode?: 'development' | 'production', processEnv?: Record<string, string | undefined>): Record<string, string>;
15
16
  /**
16
17
  * Convert environment variables to Bun.build define object
17
18
  * Wraps values in JSON.stringify for proper substitution
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/env.ts"],"names":[],"mappings":"AA2EA;;;GAGG;AACH,wBAAgB,gBAAgB,CAC/B,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,aAAa,GAAG,YAA4B,GAChD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAWxB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAChC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACzB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAUxB"}
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/env.ts"],"names":[],"mappings":"AA2EA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,aAAa,GAAG,YAA4B,EAClD,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,GAC1D,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAcxB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAChC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACzB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAUxB"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * reroute-js v1.0.0-alpha.40
3
+ *
4
+ * @license MIT
5
+ * @copyright 2026 stewones <hi@stewan.io>
6
+ * @see https://github.com/Intenseloop/reroute
7
+ *
8
+ * Built with Bun <3
9
+ */
10
+ import { type RerouteConfig } from 'reroute-js/core';
11
+ export declare function runImagePreprocess(cwd: string, config: RerouteConfig): Promise<void>;
12
+ //# sourceMappingURL=images.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/images.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,aAAa,EAGlB,MAAM,iBAAiB,CAAC;AAczB,wBAAsB,kBAAkB,CACvC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,aAAa,GACnB,OAAO,CAAC,IAAI,CAAC,CAyBf"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -37,6 +37,16 @@ export interface HeadingNode {
37
37
  * Process a markdown/MDX file and return structured data
38
38
  */
39
39
  export declare function processMarkdownFile(filePath: string): ProcessedMarkdown;
40
+ export type ShikiRehypeOptions = {
41
+ theme: string;
42
+ } | {
43
+ themes: {
44
+ light: string;
45
+ dark: string;
46
+ };
47
+ };
48
+ /** Pair GitHub themes so fenced code can follow prefers-color-scheme. */
49
+ export declare function shikiRehypeOptions(theme: string): ShikiRehypeOptions;
40
50
  /**
41
51
  * Generate a React component wrapper for markdown content
42
52
  * This creates a TypeScript module that can be imported as a route
@@ -1 +1 @@
1
- {"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/cli/src/commands/lib/markdown/processor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,KAAK,GAAG,GAAG,GAAG,CAAC;AAkEf,MAAM,WAAW,mBAAmB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IACjC,WAAW,EAAE,mBAAmB,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAoCD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAWvE;AAoND;;;GAGG;AACH,wBAAsB,sBAAsB,CAC3C,SAAS,EAAE,iBAAiB,EAC5B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IACR,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACnB,GACJ,OAAO,CAAC,MAAM,CAAC,CAoJjB;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAC1C,SAAS,EAAE,iBAAiB,GAC1B,MAAM,CAgDR;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGxD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC9B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GACpD,WAAW,EAAE,CA6Bf;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAsCrD"}
1
+ {"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/cli/src/commands/lib/markdown/processor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,KAAK,GAAG,GAAG,GAAG,CAAC;AAkEf,MAAM,WAAW,mBAAmB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IACjC,WAAW,EAAE,mBAAmB,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAoCD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAWvE;AAoFD,MAAM,MAAM,kBAAkB,GAC3B;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GACjB;IAAE,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAE/C,yEAAyE;AACzE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,CAKpE;AAqID;;;GAGG;AACH,wBAAsB,sBAAsB,CAC3C,SAAS,EAAE,iBAAiB,EAC5B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IACR,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACnB,GACJ,OAAO,CAAC,MAAM,CAAC,CAoJjB;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAC1C,SAAS,EAAE,iBAAiB,GAC1B,MAAM,CAgDR;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGxD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC9B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GACpD,WAAW,EAAE,CA6Bf;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAsCrD"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * reroute-js v1.0.0-alpha.40
3
+ *
4
+ * @license MIT
5
+ * @copyright 2026 stewones <hi@stewan.io>
6
+ * @see https://github.com/Intenseloop/reroute
7
+ *
8
+ * Built with Bun <3
9
+ */
10
+ /**
11
+ * Static site generation for `reroute build --static`
12
+ *
13
+ * Runs after `reroute gen --prod`. Loads the app through the same
14
+ * `reroute()` Elysia plugin production servers use, renders every reachable
15
+ * page in-process with `app.handle()`, and writes an output directory that any
16
+ * static host can serve:
17
+ *
18
+ * - `<route>.html` per page (`index.html` for `/`) and `404.html`
19
+ * - `__reroute_data/<route>/index.json` so client navigation needs no server
20
+ * - `bundles/` (hashed JS/CSS) and `assets/` copied from `.reroute`
21
+ * - server-generated files the pages link to (`robots.txt`, `sitemap.xml`,
22
+ * feeds, OG images, `llms.txt`)
23
+ * - `_headers` and `_redirects` for Cloudflare Workers / Pages and Netlify
24
+ *
25
+ * Pages are found from the route manifest, the sitemap and by following
26
+ * same-origin links in every rendered page, so dynamic routes are included
27
+ * when something links to them or `ssr.sitemap()` lists them.
28
+ */
29
+ export interface StaticBuildResult {
30
+ outDir: string;
31
+ pages: string[];
32
+ files: number;
33
+ warnings: string[];
34
+ }
35
+ /**
36
+ * Render the generated app into `outDir` as a static site.
37
+ * Expects `reroute gen --prod` and the asset copy to have run in `cwd`.
38
+ */
39
+ export declare function buildStaticSite(cwd: string, outDir: string): Promise<StaticBuildResult>;
40
+ //# sourceMappingURL=prerender.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prerender.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/prerender.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAkDH,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB;AAsLD;;;GAGG;AACH,wBAAsB,eAAe,CACpC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,GACZ,OAAO,CAAC,iBAAiB,CAAC,CAoD5B"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -15,8 +15,8 @@
15
15
  */
16
16
  /**
17
17
  * Check if production mode is enabled
18
- * @param args Command line arguments to check for --prod flag
19
- * @returns true if --prod flag is present
18
+ * @param args Command line arguments to check for --prod / --production
19
+ * @returns true if a production flag is present
20
20
  */
21
21
  export declare function isProductionMode(args?: string[]): boolean;
22
22
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"production.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/production.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,GAAE,MAAM,EAAO,GAAG,OAAO,CAE7D;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,GAAE,MAAM,EAAO,GAAG,IAAI,CAK7D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAEvD"}
1
+ {"version":3,"file":"production.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/production.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,GAAE,MAAM,EAAO,GAAG,OAAO,CAE7D;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,GAAE,MAAM,EAAO,GAAG,IAAI,CAK7D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAEvD"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * reroute-js v1.0.0-alpha.40
3
+ *
4
+ * @license MIT
5
+ * @copyright 2026 stewones <hi@stewan.io>
6
+ * @see https://github.com/Intenseloop/reroute
7
+ *
8
+ * Built with Bun <3
9
+ */
10
+ interface RouteFile {
11
+ path: string;
12
+ pattern: string;
13
+ filePath: string;
14
+ isLayout: boolean;
15
+ isDynamic: boolean;
16
+ params: string[];
17
+ /** special case for [404].tsx */
18
+ isNotFound?: boolean;
19
+ /** when isNotFound, this is the base pattern to match as a prefix */
20
+ notFoundBasePattern?: string;
21
+ /** Directory of the file inside the routes dir, groups kept: "(app)/settings". */
22
+ dir: string;
23
+ /**
24
+ * Layouts inside a route group only: the patterns of the routes in their
25
+ * folder. They wrap those routes, not everything under the same URL.
26
+ */
27
+ routes?: string[];
28
+ }
29
+ export interface RouteTree {
30
+ routes: RouteFile[];
31
+ layouts: RouteFile[];
32
+ notFoundRoutes: RouteFile[];
33
+ }
34
+ export declare function isRouteGroup(segment: string): boolean;
35
+ /** The URL path of a routes-dir path: group folders removed. */
36
+ export declare function withoutGroups(routePath: string): string;
37
+ export declare function fileToRoute(filePath: string): RouteFile;
38
+ export declare function generateRouteTree(files: string[]): RouteTree;
39
+ export {};
40
+ //# sourceMappingURL=routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/routes.ts"],"names":[],"mappings":"AAEA,UAAU,SAAS;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,iCAAiC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qEAAqE;IACrE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kFAAkF;IAClF,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,SAAS;IACzB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,cAAc,EAAE,SAAS,EAAE,CAAC;CAC5B;AAKD,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,gEAAgE;AAChE,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAKvD;AAUD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAkEvD;AA2BD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,CA2B5D"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -10,6 +10,7 @@
10
10
  /**
11
11
  * Server utilities for waiting and polling
12
12
  */
13
+ export declare function isServerRunning(port: number, timeout?: number): Promise<boolean>;
13
14
  /**
14
15
  * Wait for server to be ready by checking if it responds to HTTP requests
15
16
  * Uses exponential backoff for efficient polling without artificial delays
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/server.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,wBAAsB,kBAAkB,CACvC,IAAI,SAAO,EACX,OAAO,SAAQ,GACb,OAAO,CAAC,IAAI,CAAC,CA6Bf"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/server.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAsB,eAAe,CACpC,IAAI,EAAE,MAAM,EACZ,OAAO,SAAO,GACZ,OAAO,CAAC,OAAO,CAAC,CAUlB;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CACvC,IAAI,SAAO,EACX,OAAO,SAAQ,GACb,OAAO,CAAC,IAAI,CAAC,CA6Bf"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * reroute-js v1.0.0-alpha.40
3
+ *
4
+ * @license MIT
5
+ * @copyright 2026 stewones <hi@stewan.io>
6
+ * @see https://github.com/Intenseloop/reroute
7
+ *
8
+ * Built with Bun <3
9
+ */
10
+ /**
11
+ * A route's `ssr` (data loaders, head, sitemap) is server code: the browser
12
+ * bundle leaves it out, with every import only it used. Otherwise a loader's
13
+ * imports reach the browser and run there (a top-level `Bun` call, a database
14
+ * client) and anyone can read them. Head and lang reach the browser from the
15
+ * server, with the data (`/__reroute_data`).
16
+ */
17
+ import type { BunPlugin } from 'bun';
18
+ type ScriptLoader = 'ts' | 'tsx' | 'js' | 'jsx';
19
+ /** Bun's loader for a script file, by its extension. */
20
+ export declare function scriptLoader(path: string): ScriptLoader;
21
+ /** True when the module exports `ssr` (an unreadable one counts: it keeps its fetch). */
22
+ export declare function exportsSsr(code: string, loader: ScriptLoader): boolean;
23
+ /**
24
+ * The client bundle's plugin: route and layout modules (and the modules
25
+ * generated from markdown routes) lose `ssr` and its imports.
26
+ */
27
+ export declare function ssrStripPlugin(options: {
28
+ routesDir: string;
29
+ markdownDir: string;
30
+ development: boolean;
31
+ }): BunPlugin;
32
+ export {};
33
+ //# sourceMappingURL=ssr-strip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssr-strip.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/ssr-strip.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,KAAK,YAAY,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;AAEhD,wDAAwD;AACxD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAKvD;AAED,yFAAyF;AACzF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAMtE;AA+ED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;CACrB,GAAG,SAAS,CAwBZ"}
@@ -0,0 +1,86 @@
1
+ /**
2
+ * reroute-js v1.0.0-alpha.40
3
+ *
4
+ * @license MIT
5
+ * @copyright 2026 stewones <hi@stewan.io>
6
+ * @see https://github.com/Intenseloop/reroute
7
+ *
8
+ * Built with Bun <3
9
+ */
10
+ /**
11
+ * Static build helpers
12
+ *
13
+ * Pure functions used by `reroute build --static` to turn rendered responses
14
+ * into files a static host (Cloudflare Workers assets, Pages, S3, nginx) can
15
+ * serve without a Reroute server.
16
+ */
17
+ import type { RedirectRule } from 'reroute-js/core';
18
+ /** A lazy `ssr.data` key referenced by rendered HTML or data JSON. */
19
+ export interface LazyDataRef {
20
+ pathname: string;
21
+ key: string;
22
+ }
23
+ /**
24
+ * Convert a URL path into a file path relative to the output directory.
25
+ * Segments are decoded because static hosts decode the request path before
26
+ * looking the file up.
27
+ */
28
+ export declare function toOutputPath(urlPath: string): string;
29
+ /**
30
+ * File for a rendered page: `/` → `index.html`, `/blog/a` → `blog/a.html`.
31
+ * Hosts with "auto trailing slash" handling serve `/blog/a` from `blog/a.html`.
32
+ */
33
+ export declare function pageOutputPath(pathname: string): string;
34
+ /** File for a route's prerendered data (or one of its lazy keys). */
35
+ export declare function dataOutputPath(pathname: string, key?: string): string;
36
+ /**
37
+ * Point `/__reroute_data?path=…[&key=…]` URLs at the prerendered JSON files and
38
+ * report the lazy keys that need their own file.
39
+ */
40
+ export declare function rewriteDataUrls(text: string): {
41
+ text: string;
42
+ lazy: LazyDataRef[];
43
+ };
44
+ /**
45
+ * `404.html` is rendered once for `probePath` but served for every missing
46
+ * URL. Hydration reuses the SSR markup only when the SSR pathname matches the
47
+ * browser's, so the pathname is read at runtime instead, and head tags that
48
+ * name the probe URL (canonical, `og:url`, OG images and their size tags) are
49
+ * dropped.
50
+ */
51
+ export declare function finalizeNotFoundPage(html: string, probePath: string): string;
52
+ /** Mark a rendered page so the client reads data from static JSON files. */
53
+ export declare function injectStaticFlag(html: string): string;
54
+ /**
55
+ * Same-origin paths referenced by a document (`href`, `src`, `srcset` and
56
+ * absolute `content` URLs such as `og:image`). `origins` lists every origin
57
+ * that counts as this site, e.g. the configured `app.baseUrl`.
58
+ */
59
+ export declare function extractLinks(html: string, origins: string[]): string[];
60
+ /**
61
+ * Path (with search) for a same-origin URL, or `undefined` for anything that
62
+ * points elsewhere (other hosts, `mailto:`, fragments, data URIs).
63
+ */
64
+ export declare function toSitePath(raw: string, origins: string[]): string | undefined;
65
+ /** Page and sub-sitemap URLs listed in a sitemap or sitemap index. */
66
+ export declare function parseSitemapLocs(xml: string, origins: string[]): string[];
67
+ /** Cloudflare / Netlify `_headers`: hashed bundles are immutable. */
68
+ export declare function headersFile(): string;
69
+ /** A redirect the static host has to apply. */
70
+ export interface StaticRedirect {
71
+ from: string;
72
+ to: string;
73
+ status: number;
74
+ }
75
+ /**
76
+ * Redirects expressible as plain `_redirects` lines: string sources with
77
+ * string destinations. Regex and function rules are returned as skipped so
78
+ * the build can warn about them.
79
+ */
80
+ export declare function staticRedirectsFromConfig(rules?: RedirectRule[]): {
81
+ redirects: StaticRedirect[];
82
+ skipped: RedirectRule[];
83
+ };
84
+ /** Cloudflare / Netlify `_redirects` file, first rule per source wins. */
85
+ export declare function redirectsFile(redirects: StaticRedirect[]): string;
86
+ //# sourceMappingURL=static.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/static.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,sEAAsE;AACtE,MAAM,WAAW,WAAW;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACZ;AAwBD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAYpD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED,qEAAqE;AACrE,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAErE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,EAAE,CAAC;CACpB,CAYA;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAe5E;AAED,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKrD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CActE;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAQ7E;AAMD,sEAAsE;AACtE,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAOzE;AAED,qEAAqE;AACrE,wBAAgB,WAAW,IAAI,MAAM,CAMpC;AAED,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,GAAE,YAAY,EAAO,GAAG;IACtE,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;CACxB,CAqBA;AAED,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,SAAS,EAAE,cAAc,EAAE,GAAG,MAAM,CASjE"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Built with Bun <3
9
9
  */
10
- import type { RerouteConfig } from 'reroute-js/core';
10
+ import { type RerouteConfig } from 'reroute-js/core';
11
11
  import type { StreamingAnalysis } from './analyzer';
12
12
  type GenerateWrapperOptions = {
13
13
  cwd: string;
@@ -1 +1 @@
1
- {"version":3,"file":"suspense.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/cli/src/commands/lib/streaming/suspense.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,KAAK,sBAAsB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,MAAM,EAAE,aAAa,CAAC;CACtB,CAAC;AASF,wBAAsB,wBAAwB,CAC7C,OAAO,EAAE,sBAAsB,GAC7B,OAAO,CAAC,MAAM,CAAC,CAsCjB"}
1
+ {"version":3,"file":"suspense.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/cli/src/commands/lib/streaming/suspense.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,KAAK,sBAAsB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,MAAM,EAAE,aAAa,CAAC;CACtB,CAAC;AASF,wBAAsB,wBAAwB,CAC7C,OAAO,EAAE,sBAAsB,GAC7B,OAAO,CAAC,MAAM,CAAC,CAsCjB"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * reroute-js v1.0.0-alpha.40
3
+ *
4
+ * @license MIT
5
+ * @copyright 2026 stewones <hi@stewan.io>
6
+ * @see https://github.com/Intenseloop/reroute
7
+ *
8
+ * Built with Bun <3
9
+ */
10
+ /**
11
+ * `reroute dev` runs the server in a child process it can replace: Bun keeps
12
+ * a failed import failing for the life of a process, so when a new file is
13
+ * invisible to the running server, the child asks for a fresh process.
14
+ */
15
+ /** Exit code a supervised dev process uses to ask for a fresh one. */
16
+ declare const devRestartCode = 75;
17
+ declare const supervisedEnv = "REROUTE_DEV_SUPERVISED";
18
+ /** What the supervisor does when the dev process exits with `code`. */
19
+ declare function afterDevExit(code: number | null): 'restart' | 'exit';
20
+ /** Runs `reroute dev` as a child and replaces it when it asks; Ctrl+C and SIGTERM reach it. */
21
+ declare function supervise(): Promise<void>;
22
+ export { afterDevExit, devRestartCode, supervise, supervisedEnv };
23
+ //# sourceMappingURL=supervise.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supervise.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/supervise.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,sEAAsE;AACtE,QAAA,MAAM,cAAc,KAAK,CAAC;AAC1B,QAAA,MAAM,aAAa,2BAA2B,CAAC;AAE/C,uEAAuE;AACvE,iBAAS,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAE7D;AAED,+FAA+F;AAC/F,iBAAe,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAwBxC;AAED,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.4
2
+ * reroute-js v1.0.0-alpha.40
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -9,6 +9,6 @@
9
9
  */
10
10
  import type { ChildProcess } from 'node:child_process';
11
11
  type Any = any;
12
- export declare function setupTerminalUIHandlers(screen: Any, grid: Any, genProcess: ChildProcess, serverProcess: ChildProcess, outputBuffer: Buffer[], blessed: Any, colorizeLogPrefix: (text: string) => string): void;
12
+ export declare function setupTerminalUIHandlers(screen: Any, grid: Any, genProcess: ChildProcess, serverProcess: ChildProcess, outputBuffer: Buffer[], blessed: Any, colorizeLogPrefix: (text: string) => string, serverEntry?: string): void;
13
13
  export {};
14
14
  //# sourceMappingURL=terminal-ui.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"terminal-ui.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/terminal-ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,KAAK,GAAG,GAAG,GAAG,CAAC;AAqGf,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,GAAG,EACX,IAAI,EAAE,GAAG,EACT,UAAU,EAAE,YAAY,EACxB,aAAa,EAAE,YAAY,EAC3B,YAAY,EAAE,MAAM,EAAE,EACtB,OAAO,EAAE,GAAG,EACZ,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,QA4D3C"}
1
+ {"version":3,"file":"terminal-ui.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/terminal-ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,KAAK,GAAG,GAAG,GAAG,CAAC;AAqGf,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,GAAG,EACX,IAAI,EAAE,GAAG,EACT,UAAU,EAAE,YAAY,EACxB,aAAa,EAAE,YAAY,EAC3B,YAAY,EAAE,MAAM,EAAE,EACtB,OAAO,EAAE,GAAG,EACZ,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAC3C,WAAW,SAAiB,QA4D5B"}