reroute-js 1.0.0-alpha.2 → 1.0.0-alpha.20

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 (252) hide show
  1. package/README.md +7 -3
  2. package/cli/bin.d.ts +1 -1
  3. package/cli/bin.js +1618 -958
  4. package/cli/bin.js.map +38 -35
  5. package/cli/index.d.ts +1 -1
  6. package/cli/index.js +628 -40
  7. package/cli/index.js.map +53 -5
  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 +2 -2
  12. package/cli/src/commands/dev.d.ts +6 -6
  13. package/cli/src/commands/dev.d.ts.map +1 -1
  14. package/cli/src/commands/gen.d.ts +4 -1
  15. package/cli/src/commands/gen.d.ts.map +1 -1
  16. package/cli/src/commands/index.d.ts +1 -1
  17. package/cli/src/commands/init.d.ts +1 -1
  18. package/cli/src/commands/lib/assets.d.ts +1 -1
  19. package/cli/src/commands/lib/bundler.d.ts +7 -1
  20. package/cli/src/commands/lib/bundler.d.ts.map +1 -1
  21. package/cli/src/commands/lib/command.d.ts +1 -1
  22. package/cli/src/commands/lib/env.d.ts +1 -1
  23. package/cli/src/commands/lib/index.d.ts +1 -1
  24. package/cli/src/commands/lib/log.d.ts +1 -1
  25. package/cli/src/commands/lib/markdown/availability.d.ts +1 -1
  26. package/cli/src/commands/lib/markdown/index.d.ts +1 -1
  27. package/cli/src/commands/lib/markdown/processor.d.ts +1 -1
  28. package/cli/src/commands/lib/production.d.ts +1 -1
  29. package/cli/src/commands/lib/server.d.ts +2 -1
  30. package/cli/src/commands/lib/server.d.ts.map +1 -1
  31. package/cli/src/commands/lib/streaming/analyzer.d.ts +1 -1
  32. package/cli/src/commands/lib/streaming/suspense.d.ts +2 -2
  33. package/cli/src/commands/lib/streaming/suspense.d.ts.map +1 -1
  34. package/cli/src/commands/lib/terminal-ui.d.ts +2 -2
  35. package/cli/src/commands/lib/terminal-ui.d.ts.map +1 -1
  36. package/cli/src/commands/lib/theme.d.ts +7 -4
  37. package/cli/src/commands/lib/theme.d.ts.map +1 -1
  38. package/cli/src/commands/lib/version.d.ts +1 -1
  39. package/cli/src/commands/lib/watch.d.ts +26 -0
  40. package/cli/src/commands/lib/watch.d.ts.map +1 -0
  41. package/cli/src/commands/og.d.ts +1 -1
  42. package/cli/src/commands/og.d.ts.map +1 -1
  43. package/cli/src/commands/start.d.ts +2 -2
  44. package/cli/src/commands/start.d.ts.map +1 -1
  45. package/cli/src/index.d.ts +1 -1
  46. package/core/index.d.ts +1 -1
  47. package/core/index.js +712 -279
  48. package/core/index.js.map +25 -23
  49. package/core/src/app-paths.d.ts +32 -0
  50. package/core/src/app-paths.d.ts.map +1 -0
  51. package/core/src/bundler/hash.d.ts +1 -1
  52. package/core/src/bundler/index.d.ts +1 -1
  53. package/core/src/config.d.ts +51 -7
  54. package/core/src/config.d.ts.map +1 -1
  55. package/core/src/content/discovery.d.ts +1 -1
  56. package/core/src/content/index.d.ts +1 -1
  57. package/core/src/content/metadata.d.ts +1 -1
  58. package/core/src/i18n/catalog.d.ts +1 -1
  59. package/core/src/i18n/discover.d.ts +1 -1
  60. package/core/src/i18n/index.d.ts +1 -1
  61. package/core/src/i18n/messages.d.ts +1 -1
  62. package/core/src/i18n/negotiate.d.ts +1 -1
  63. package/core/src/i18n/pathname.d.ts +1 -1
  64. package/core/src/i18n/resolve.d.ts +4 -3
  65. package/core/src/i18n/resolve.d.ts.map +1 -1
  66. package/core/src/i18n/types.d.ts +5 -1
  67. package/core/src/i18n/types.d.ts.map +1 -1
  68. package/core/src/index.d.ts +2 -1
  69. package/core/src/index.d.ts.map +1 -1
  70. package/core/src/llms/discovery.d.ts +35 -0
  71. package/core/src/llms/discovery.d.ts.map +1 -0
  72. package/core/src/llms/extractor.d.ts +6 -1
  73. package/core/src/llms/extractor.d.ts.map +1 -1
  74. package/core/src/llms/formatter.d.ts +1 -1
  75. package/core/src/llms/formatter.d.ts.map +1 -1
  76. package/core/src/llms/full-generator.d.ts +3 -1
  77. package/core/src/llms/full-generator.d.ts.map +1 -1
  78. package/core/src/llms/index-generator.d.ts +6 -3
  79. package/core/src/llms/index-generator.d.ts.map +1 -1
  80. package/core/src/llms/index.d.ts +5 -2
  81. package/core/src/llms/index.d.ts.map +1 -1
  82. package/core/src/og/discovery.d.ts +1 -1
  83. package/core/src/og/index.d.ts +1 -1
  84. package/core/src/og/meta.d.ts +1 -1
  85. package/core/src/og/render.d.ts +1 -1
  86. package/core/src/og/types.d.ts +1 -1
  87. package/core/src/robots/discovery.d.ts +1 -1
  88. package/core/src/robots/generator.d.ts +1 -1
  89. package/core/src/robots/generator.d.ts.map +1 -1
  90. package/core/src/robots/index.d.ts +1 -1
  91. package/core/src/robots/policies.d.ts +1 -1
  92. package/core/src/rss/discovery.d.ts +2 -2
  93. package/core/src/rss/discovery.d.ts.map +1 -1
  94. package/core/src/rss/generator.d.ts +1 -1
  95. package/core/src/rss/index.d.ts +1 -1
  96. package/core/src/sitemap/discovery.d.ts +7 -2
  97. package/core/src/sitemap/discovery.d.ts.map +1 -1
  98. package/core/src/sitemap/generator.d.ts +1 -1
  99. package/core/src/sitemap/index.d.ts +1 -1
  100. package/core/src/ssr/index.d.ts +1 -1
  101. package/core/src/ssr/lib/cache.d.ts +1 -1
  102. package/core/src/ssr/lib/cleanup.d.ts +1 -1
  103. package/core/src/ssr/lib/collections.d.ts +17 -1
  104. package/core/src/ssr/lib/collections.d.ts.map +1 -1
  105. package/core/src/ssr/lib/compression.d.ts +1 -1
  106. package/core/src/ssr/lib/compute/content.d.ts +1 -1
  107. package/core/src/ssr/lib/compute/index.d.ts +1 -1
  108. package/core/src/ssr/lib/compute/layouts.d.ts +1 -1
  109. package/core/src/ssr/lib/compute/routes.d.ts +1 -1
  110. package/core/src/ssr/lib/content-path.d.ts +1 -1
  111. package/core/src/ssr/lib/data.d.ts +1 -1
  112. package/core/src/ssr/lib/html.d.ts +1 -1
  113. package/core/src/ssr/lib/imports.d.ts +8 -3
  114. package/core/src/ssr/lib/imports.d.ts.map +1 -1
  115. package/core/src/ssr/lib/index.d.ts +1 -1
  116. package/core/src/ssr/lib/layouts.d.ts +1 -1
  117. package/core/src/ssr/lib/metadata.d.ts +1 -1
  118. package/core/src/ssr/lib/mime.d.ts +1 -1
  119. package/core/src/ssr/lib/modules.d.ts +1 -1
  120. package/core/src/ssr/lib/path.d.ts +1 -1
  121. package/core/src/ssr/lib/preload.d.ts +1 -1
  122. package/core/src/ssr/lib/route-match.d.ts +1 -1
  123. package/core/src/ssr/lib/scripts/collections.d.ts +2 -2
  124. package/core/src/ssr/lib/scripts/collections.d.ts.map +1 -1
  125. package/core/src/ssr/lib/scripts/data.d.ts +1 -1
  126. package/core/src/ssr/lib/scripts/escape.d.ts +1 -1
  127. package/core/src/ssr/lib/scripts/feeds.d.ts +1 -1
  128. package/core/src/ssr/lib/scripts/index.d.ts +1 -1
  129. package/core/src/ssr/lib/seed.d.ts +6 -1
  130. package/core/src/ssr/lib/seed.d.ts.map +1 -1
  131. package/core/src/ssr/lib/serialize.d.ts +1 -1
  132. package/core/src/ssr/lib/setup.d.ts +2 -2
  133. package/core/src/ssr/lib/setup.d.ts.map +1 -1
  134. package/core/src/ssr/lib/styles.d.ts +5 -4
  135. package/core/src/ssr/lib/styles.d.ts.map +1 -1
  136. package/core/src/ssr/lib/template.d.ts +1 -1
  137. package/core/src/ssr/lib/types.d.ts +15 -1
  138. package/core/src/ssr/lib/types.d.ts.map +1 -1
  139. package/core/src/ssr/render.d.ts +1 -1
  140. package/core/src/ssr/render.d.ts.map +1 -1
  141. package/core/src/ssr/stream.d.ts +1 -1
  142. package/core/src/ssr/stream.d.ts.map +1 -1
  143. package/elysia/index.d.ts +1 -1
  144. package/elysia/index.js +971 -432
  145. package/elysia/index.js.map +38 -33
  146. package/elysia/src/index.d.ts +1 -1
  147. package/elysia/src/libs/assets.d.ts +1 -1
  148. package/elysia/src/libs/cache.d.ts +6 -1
  149. package/elysia/src/libs/cache.d.ts.map +1 -1
  150. package/elysia/src/libs/caching.d.ts +1 -1
  151. package/elysia/src/libs/http.d.ts +1 -1
  152. package/elysia/src/libs/i18n.d.ts +2 -2
  153. package/elysia/src/libs/i18n.d.ts.map +1 -1
  154. package/elysia/src/libs/image.d.ts +1 -1
  155. package/elysia/src/libs/index.d.ts +1 -1
  156. package/elysia/src/libs/llms.d.ts +1 -1
  157. package/elysia/src/libs/response.d.ts +1 -1
  158. package/elysia/src/libs/serving.d.ts +1 -1
  159. package/elysia/src/plugin.d.ts +1 -1
  160. package/elysia/src/plugin.d.ts.map +1 -1
  161. package/elysia/src/routes/artifacts.d.ts +1 -1
  162. package/elysia/src/routes/artifacts.d.ts.map +1 -1
  163. package/elysia/src/routes/content.d.ts +2 -2
  164. package/elysia/src/routes/content.d.ts.map +1 -1
  165. package/elysia/src/routes/image.d.ts +1 -1
  166. package/elysia/src/routes/index.d.ts +1 -1
  167. package/elysia/src/routes/internal.d.ts +1 -1
  168. package/elysia/src/routes/internal.d.ts.map +1 -1
  169. package/elysia/src/routes/liveReloadClient.d.ts +16 -0
  170. package/elysia/src/routes/liveReloadClient.d.ts.map +1 -0
  171. package/elysia/src/routes/llms.d.ts +1 -1
  172. package/elysia/src/routes/llms.d.ts.map +1 -1
  173. package/elysia/src/routes/og.d.ts +1 -1
  174. package/elysia/src/routes/redirects.d.ts +1 -1
  175. package/elysia/src/routes/robots.d.ts +3 -1
  176. package/elysia/src/routes/robots.d.ts.map +1 -1
  177. package/elysia/src/routes/rss.d.ts +1 -1
  178. package/elysia/src/routes/search.d.ts +1 -1
  179. package/elysia/src/routes/sitemap.d.ts +3 -1
  180. package/elysia/src/routes/sitemap.d.ts.map +1 -1
  181. package/elysia/src/routes/ssr.d.ts +4 -2
  182. package/elysia/src/routes/ssr.d.ts.map +1 -1
  183. package/elysia/src/routes/static.d.ts +1 -1
  184. package/elysia/src/routes/themeCssRefresh.d.ts +17 -0
  185. package/elysia/src/routes/themeCssRefresh.d.ts.map +1 -0
  186. package/elysia/src/types.d.ts +1 -1
  187. package/package.json +1 -1
  188. package/react/index.d.ts +1 -1
  189. package/react/index.js +203 -107
  190. package/react/index.js.map +8 -7
  191. package/react/src/components/ClientOnly.d.ts +1 -1
  192. package/react/src/components/ContentRoute.d.ts +1 -1
  193. package/react/src/components/Image.d.ts +1 -1
  194. package/react/src/components/LazyRoute.d.ts +1 -1
  195. package/react/src/components/Link.d.ts +1 -1
  196. package/react/src/components/Markdown.d.ts +1 -1
  197. package/react/src/components/Outlet.d.ts +1 -1
  198. package/react/src/components/index.d.ts +1 -1
  199. package/react/src/hooks/index.d.ts +1 -1
  200. package/react/src/hooks/useContent.d.ts +1 -1
  201. package/react/src/hooks/useContent.d.ts.map +1 -1
  202. package/react/src/hooks/useData.d.ts +1 -1
  203. package/react/src/hooks/useFeed.d.ts +1 -1
  204. package/react/src/hooks/useLayoutData.d.ts +1 -1
  205. package/react/src/hooks/useLlms.d.ts +1 -1
  206. package/react/src/hooks/useNavigate.d.ts +1 -1
  207. package/react/src/hooks/useParams.d.ts +1 -1
  208. package/react/src/hooks/useRouter.d.ts +1 -1
  209. package/react/src/hooks/useSearch.d.ts +1 -1
  210. package/react/src/hooks/useSearchParams.d.ts +1 -1
  211. package/react/src/hooks/useToc.d.ts +1 -1
  212. package/react/src/i18n/LocaleProvider.d.ts +1 -1
  213. package/react/src/i18n/LocaleProvider.d.ts.map +1 -1
  214. package/react/src/i18n/helpers.d.ts +1 -1
  215. package/react/src/i18n/index.d.ts +1 -1
  216. package/react/src/index.d.ts +1 -1
  217. package/react/src/lib/bundle.d.ts +27 -0
  218. package/react/src/lib/bundle.d.ts.map +1 -0
  219. package/react/src/lib/collection.d.ts +1 -1
  220. package/react/src/lib/content.d.ts +1 -1
  221. package/react/src/lib/head.d.ts +1 -1
  222. package/react/src/lib/index.d.ts +2 -1
  223. package/react/src/lib/index.d.ts.map +1 -1
  224. package/react/src/lib/lazy-route.d.ts +7 -21
  225. package/react/src/lib/lazy-route.d.ts.map +1 -1
  226. package/react/src/lib/route-loader.d.ts +1 -1
  227. package/react/src/providers/ContentProvider.d.ts +1 -1
  228. package/react/src/providers/RerouteProvider.d.ts +2 -2
  229. package/react/src/providers/RerouteProvider.d.ts.map +1 -1
  230. package/react/src/providers/RouterProvider.d.ts +1 -1
  231. package/react/src/providers/index.d.ts +1 -1
  232. package/react/src/types/any.d.ts +1 -1
  233. package/react/src/types/index.d.ts +1 -1
  234. package/react/src/types/router.d.ts +1 -1
  235. package/telemetry/react.d.ts +1 -1
  236. package/telemetry/react.js +16 -16
  237. package/telemetry/react.js.map +2 -2
  238. package/telemetry/server.d.ts +1 -1
  239. package/telemetry/server.js +60 -228
  240. package/telemetry/server.js.map +20 -16
  241. package/telemetry/src/react/api.d.ts +1 -1
  242. package/telemetry/src/react/context.d.ts +1 -1
  243. package/telemetry/src/react/index.d.ts +1 -1
  244. package/telemetry/src/react/telemetry.d.ts +1 -1
  245. package/telemetry/src/server/context.d.ts +1 -1
  246. package/telemetry/src/server/headers/extractor.d.ts +1 -1
  247. package/telemetry/src/server/headers/index.d.ts +1 -1
  248. package/telemetry/src/server/headers/presets.d.ts +1 -1
  249. package/telemetry/src/server/index.d.ts +1 -1
  250. package/telemetry/src/server/instrumentation.d.ts +1 -1
  251. package/telemetry/src/server/plugin.d.ts +1 -1
  252. 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.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -13,7 +13,7 @@
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
17
  */
18
18
  export default function build(args: string[]): Promise<void>;
19
19
  //# sourceMappingURL=build.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.2
2
+ * reroute-js v1.0.0-alpha.20
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;AAuJH,wBAA8B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,iBAgC/C"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.2
2
+ * reroute-js v1.0.0-alpha.20
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":";AAgkEA,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":";AAwvEA,wBAAsB,aAAa,CAClC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EAAE,GACZ,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC,CAmehC;AAED,wBAA8B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,iBA0B/C"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -37,4 +37,10 @@ export declare function getNamingConfig(options?: {
37
37
  chunk: string;
38
38
  asset: string;
39
39
  };
40
+ /**
41
+ * Client files whose contents are inlined into the entrypoint bundle.
42
+ * Markdown imported as text (`with { type: 'text' }`) must rebuild the
43
+ * bundle — watching alone only reloads the stale JS.
44
+ */
45
+ export declare function shouldRebuildClientBundle(filename: string): boolean;
40
46
  //# 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,CAQ5D;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"}
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,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
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"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.2
2
+ * reroute-js v1.0.0-alpha.20
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.2
2
+ * reroute-js v1.0.0-alpha.20
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"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.2
2
+ * reroute-js v1.0.0-alpha.20
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"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.2
2
+ * reroute-js v1.0.0-alpha.20
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -10,8 +10,11 @@
10
10
  /**
11
11
  * Client CSS sync utility
12
12
  *
13
- * Bundles src/client/index.css (resolving @import) into .reroute/index.css
14
- * for serving and SSR inlining.
13
+ * Bundles the client CSS entry (resolving @import) into
14
+ * .reroute/bundles/index.css and .reroute/bundles/index.<hash>.css
15
+ * for serving at /bundles/… alongside the JS.
16
+ *
17
+ * Default entry is src/client/index.css (parent of app.src).
15
18
  *
16
19
  * DX pattern — keep the design system modular and import from the entry:
17
20
  *
@@ -27,7 +30,7 @@
27
30
  */
28
31
  export declare function bundleCssEntrypoint(entryPath: string): string;
29
32
  /**
30
- * Bundle index.css (with @import resolution) into .reroute when the source exists.
33
+ * Bundle index.css (with @import resolution) into .reroute/bundles.
31
34
  * Returns true if a sync was performed, false if skipped.
32
35
  */
33
36
  export declare function syncThemeCss(cwd: string): Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAmCH;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAkD7D;AAED;;;GAGG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAsBhE"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AA6CH;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAgD7D;AAcD;;;GAGG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAyBhE"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.2
2
+ * reroute-js v1.0.0-alpha.20
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -0,0 +1,26 @@
1
+ /**
2
+ * reroute-js v1.0.0-alpha.20
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
+ * Sibling copies used to bust Bun's import cache (`name.bust-<token>.tsx`).
12
+ * Also skip dotfiles so those copies never retrigger a rebuild.
13
+ */
14
+ export declare function isWatchNoise(name: string): boolean;
15
+ /**
16
+ * Ignore fs.watch chatter (Cursor, FSEvents, xattrs) unless bytes changed.
17
+ * Events during the settle window only prime the hash map so the burst
18
+ * that macOS fires when watch() starts does not rebuild.
19
+ */
20
+ export declare function createContentFingerprint(options?: {
21
+ settleMs?: number;
22
+ }): {
23
+ changed(absPath: string): Promise<boolean>;
24
+ };
25
+ export declare function retainChangedFiles(root: string, names: string[], fingerprint: ReturnType<typeof createContentFingerprint>): Promise<string[]>;
26
+ //# sourceMappingURL=watch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/watch.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKlD;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE;qBAM/C,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;EAmBjD;AAED,wBAAsB,kBAAkB,CACvC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EAAE,EACf,WAAW,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,GACtD,OAAO,CAAC,MAAM,EAAE,CAAC,CAQnB"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.2
2
+ * reroute-js v1.0.0-alpha.20
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -1 +1 @@
1
- {"version":3,"file":"og.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/og.ts"],"names":[],"mappings":"AA0OA;;GAEG;AACH,wBAA8B,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,iBAyK9C"}
1
+ {"version":3,"file":"og.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/og.ts"],"names":[],"mappings":"AA2OA;;GAEG;AACH,wBAA8B,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,iBAyK9C"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.2
2
+ * reroute-js v1.0.0-alpha.20
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -12,7 +12,7 @@
12
12
  *
13
13
  * This command runs:
14
14
  * 1. `reroute gen --prod` (waits for completion, no watch)
15
- * 2. `bun src/index.ts` (runs the server, no watch)
15
+ * 2. `bun ${app.server}` (runs the server, no watch; default `src/index.ts`)
16
16
  */
17
17
  export default function start(args: string[]): Promise<void>;
18
18
  //# sourceMappingURL=start.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/start.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAsCH,wBAA8B,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,iBA6JjD"}
1
+ {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/start.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAuCH,wBAA8B,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,iBA8JjD"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.2
2
+ * reroute-js v1.0.0-alpha.20
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
package/core/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.2
2
+ * reroute-js v1.0.0-alpha.20
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>