reroute-js 1.0.0-alpha.23 → 1.0.0-alpha.24

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 (208) hide show
  1. package/cli/bin.d.ts +1 -1
  2. package/cli/bin.js +71 -50
  3. package/cli/bin.js.map +6 -6
  4. package/cli/index.d.ts +1 -1
  5. package/cli/index.js +15 -5
  6. package/cli/index.js.map +4 -4
  7. package/cli/src/cli.d.ts +1 -1
  8. package/cli/src/commands/analyze.d.ts +1 -1
  9. package/cli/src/commands/build.d.ts +1 -1
  10. package/cli/src/commands/dev.d.ts +1 -1
  11. package/cli/src/commands/gen.d.ts +1 -1
  12. package/cli/src/commands/gen.d.ts.map +1 -1
  13. package/cli/src/commands/index.d.ts +1 -1
  14. package/cli/src/commands/init.d.ts +1 -1
  15. package/cli/src/commands/lib/assets.d.ts +1 -1
  16. package/cli/src/commands/lib/bundler.d.ts +1 -1
  17. package/cli/src/commands/lib/command.d.ts +1 -1
  18. package/cli/src/commands/lib/env.d.ts +1 -1
  19. package/cli/src/commands/lib/images.d.ts +1 -1
  20. package/cli/src/commands/lib/index.d.ts +1 -1
  21. package/cli/src/commands/lib/log.d.ts +1 -1
  22. package/cli/src/commands/lib/markdown/availability.d.ts +1 -1
  23. package/cli/src/commands/lib/markdown/index.d.ts +1 -1
  24. package/cli/src/commands/lib/markdown/processor.d.ts +11 -1
  25. package/cli/src/commands/lib/markdown/processor.d.ts.map +1 -1
  26. package/cli/src/commands/lib/production.d.ts +1 -1
  27. package/cli/src/commands/lib/server.d.ts +1 -1
  28. package/cli/src/commands/lib/streaming/analyzer.d.ts +1 -1
  29. package/cli/src/commands/lib/streaming/suspense.d.ts +1 -1
  30. package/cli/src/commands/lib/terminal-ui.d.ts +1 -1
  31. package/cli/src/commands/lib/theme.d.ts +1 -1
  32. package/cli/src/commands/lib/version.d.ts +1 -1
  33. package/cli/src/commands/lib/watch.d.ts +6 -1
  34. package/cli/src/commands/lib/watch.d.ts.map +1 -1
  35. package/cli/src/commands/og.d.ts +1 -1
  36. package/cli/src/commands/start.d.ts +1 -1
  37. package/cli/src/index.d.ts +1 -1
  38. package/core/index.d.ts +1 -1
  39. package/core/index.js +2 -2
  40. package/core/index.js.map +3 -3
  41. package/core/src/app-paths.d.ts +1 -1
  42. package/core/src/bundler/hash.d.ts +1 -1
  43. package/core/src/bundler/index.d.ts +1 -1
  44. package/core/src/config.d.ts +9 -1
  45. package/core/src/config.d.ts.map +1 -1
  46. package/core/src/content/discovery.d.ts +1 -1
  47. package/core/src/content/index.d.ts +1 -1
  48. package/core/src/content/metadata.d.ts +1 -1
  49. package/core/src/i18n/catalog.d.ts +1 -1
  50. package/core/src/i18n/discover.d.ts +1 -1
  51. package/core/src/i18n/index.d.ts +1 -1
  52. package/core/src/i18n/messages.d.ts +1 -1
  53. package/core/src/i18n/negotiate.d.ts +1 -1
  54. package/core/src/i18n/pathname.d.ts +1 -1
  55. package/core/src/i18n/resolve.d.ts +1 -1
  56. package/core/src/i18n/types.d.ts +1 -1
  57. package/core/src/image.d.ts +1 -1
  58. package/core/src/index.d.ts +1 -1
  59. package/core/src/llms/discovery.d.ts +1 -1
  60. package/core/src/llms/extractor.d.ts +1 -1
  61. package/core/src/llms/formatter.d.ts +1 -1
  62. package/core/src/llms/full-generator.d.ts +1 -1
  63. package/core/src/llms/index-generator.d.ts +1 -1
  64. package/core/src/llms/index.d.ts +1 -1
  65. package/core/src/og/discovery.d.ts +1 -1
  66. package/core/src/og/index.d.ts +1 -1
  67. package/core/src/og/meta.d.ts +1 -1
  68. package/core/src/og/render.d.ts +1 -1
  69. package/core/src/og/types.d.ts +1 -1
  70. package/core/src/robots/discovery.d.ts +1 -1
  71. package/core/src/robots/generator.d.ts +1 -1
  72. package/core/src/robots/index.d.ts +1 -1
  73. package/core/src/robots/policies.d.ts +1 -1
  74. package/core/src/rss/discovery.d.ts +1 -1
  75. package/core/src/rss/generator.d.ts +1 -1
  76. package/core/src/rss/index.d.ts +1 -1
  77. package/core/src/sitemap/discovery.d.ts +1 -1
  78. package/core/src/sitemap/generator.d.ts +1 -1
  79. package/core/src/sitemap/index.d.ts +1 -1
  80. package/core/src/ssr/index.d.ts +1 -1
  81. package/core/src/ssr/lib/cache.d.ts +1 -1
  82. package/core/src/ssr/lib/cleanup.d.ts +1 -1
  83. package/core/src/ssr/lib/collections.d.ts +1 -1
  84. package/core/src/ssr/lib/compression.d.ts +1 -1
  85. package/core/src/ssr/lib/compute/content.d.ts +1 -1
  86. package/core/src/ssr/lib/compute/index.d.ts +1 -1
  87. package/core/src/ssr/lib/compute/layouts.d.ts +1 -1
  88. package/core/src/ssr/lib/compute/routes.d.ts +1 -1
  89. package/core/src/ssr/lib/content-path.d.ts +1 -1
  90. package/core/src/ssr/lib/data.d.ts +1 -1
  91. package/core/src/ssr/lib/html.d.ts +1 -1
  92. package/core/src/ssr/lib/imports.d.ts +1 -1
  93. package/core/src/ssr/lib/index.d.ts +1 -1
  94. package/core/src/ssr/lib/layouts.d.ts +1 -1
  95. package/core/src/ssr/lib/metadata.d.ts +1 -1
  96. package/core/src/ssr/lib/mime.d.ts +1 -1
  97. package/core/src/ssr/lib/modules.d.ts +1 -1
  98. package/core/src/ssr/lib/path.d.ts +1 -1
  99. package/core/src/ssr/lib/preload.d.ts +1 -1
  100. package/core/src/ssr/lib/route-match.d.ts +1 -1
  101. package/core/src/ssr/lib/scripts/collections.d.ts +1 -1
  102. package/core/src/ssr/lib/scripts/data.d.ts +1 -1
  103. package/core/src/ssr/lib/scripts/escape.d.ts +1 -1
  104. package/core/src/ssr/lib/scripts/feeds.d.ts +1 -1
  105. package/core/src/ssr/lib/scripts/index.d.ts +1 -1
  106. package/core/src/ssr/lib/seed.d.ts +1 -1
  107. package/core/src/ssr/lib/serialize.d.ts +1 -1
  108. package/core/src/ssr/lib/setup.d.ts +1 -1
  109. package/core/src/ssr/lib/styles.d.ts +1 -1
  110. package/core/src/ssr/lib/template.d.ts +1 -1
  111. package/core/src/ssr/lib/types.d.ts +1 -1
  112. package/core/src/ssr/render.d.ts +1 -1
  113. package/core/src/ssr/stream.d.ts +1 -1
  114. package/elysia/index.d.ts +1 -1
  115. package/elysia/index.js +68 -34
  116. package/elysia/index.js.map +6 -5
  117. package/elysia/src/index.d.ts +1 -1
  118. package/elysia/src/libs/assets.d.ts +1 -1
  119. package/elysia/src/libs/cache.d.ts +1 -1
  120. package/elysia/src/libs/caching.d.ts +1 -1
  121. package/elysia/src/libs/devReload.d.ts +31 -0
  122. package/elysia/src/libs/devReload.d.ts.map +1 -0
  123. package/elysia/src/libs/http.d.ts +1 -1
  124. package/elysia/src/libs/i18n.d.ts +1 -1
  125. package/elysia/src/libs/image.d.ts +1 -1
  126. package/elysia/src/libs/index.d.ts +1 -1
  127. package/elysia/src/libs/llms.d.ts +1 -1
  128. package/elysia/src/libs/response.d.ts +1 -1
  129. package/elysia/src/libs/serving.d.ts +1 -1
  130. package/elysia/src/plugin.d.ts +1 -1
  131. package/elysia/src/plugin.d.ts.map +1 -1
  132. package/elysia/src/routes/artifacts.d.ts +1 -1
  133. package/elysia/src/routes/content.d.ts +1 -1
  134. package/elysia/src/routes/image.d.ts +1 -1
  135. package/elysia/src/routes/index.d.ts +1 -1
  136. package/elysia/src/routes/internal.d.ts +1 -1
  137. package/elysia/src/routes/liveReloadClient.d.ts +1 -1
  138. package/elysia/src/routes/llms.d.ts +1 -1
  139. package/elysia/src/routes/og.d.ts +1 -1
  140. package/elysia/src/routes/redirects.d.ts +1 -1
  141. package/elysia/src/routes/robots.d.ts +1 -1
  142. package/elysia/src/routes/rss.d.ts +1 -1
  143. package/elysia/src/routes/search.d.ts +1 -1
  144. package/elysia/src/routes/sitemap.d.ts +1 -1
  145. package/elysia/src/routes/ssr.d.ts +1 -1
  146. package/elysia/src/routes/static.d.ts +1 -1
  147. package/elysia/src/routes/themeCssRefresh.d.ts +1 -1
  148. package/elysia/src/types.d.ts +1 -1
  149. package/package.json +1 -1
  150. package/react/index.d.ts +1 -1
  151. package/react/index.js +2 -2
  152. package/react/index.js.map +1 -1
  153. package/react/src/components/ClientOnly.d.ts +1 -1
  154. package/react/src/components/ContentRoute.d.ts +1 -1
  155. package/react/src/components/Image.d.ts +1 -1
  156. package/react/src/components/LazyRoute.d.ts +1 -1
  157. package/react/src/components/Link.d.ts +1 -1
  158. package/react/src/components/Markdown.d.ts +1 -1
  159. package/react/src/components/Outlet.d.ts +1 -1
  160. package/react/src/components/index.d.ts +1 -1
  161. package/react/src/hooks/index.d.ts +1 -1
  162. package/react/src/hooks/useContent.d.ts +1 -1
  163. package/react/src/hooks/useData.d.ts +1 -1
  164. package/react/src/hooks/useFeed.d.ts +1 -1
  165. package/react/src/hooks/useLayoutData.d.ts +1 -1
  166. package/react/src/hooks/useLlms.d.ts +1 -1
  167. package/react/src/hooks/useNavigate.d.ts +1 -1
  168. package/react/src/hooks/useParams.d.ts +1 -1
  169. package/react/src/hooks/useRouter.d.ts +1 -1
  170. package/react/src/hooks/useSearch.d.ts +1 -1
  171. package/react/src/hooks/useSearchParams.d.ts +1 -1
  172. package/react/src/hooks/useToc.d.ts +1 -1
  173. package/react/src/i18n/LocaleProvider.d.ts +1 -1
  174. package/react/src/i18n/helpers.d.ts +1 -1
  175. package/react/src/i18n/index.d.ts +1 -1
  176. package/react/src/index.d.ts +1 -1
  177. package/react/src/lib/bundle.d.ts +1 -1
  178. package/react/src/lib/collection.d.ts +1 -1
  179. package/react/src/lib/content.d.ts +1 -1
  180. package/react/src/lib/head.d.ts +1 -1
  181. package/react/src/lib/index.d.ts +1 -1
  182. package/react/src/lib/lazy-route.d.ts +1 -1
  183. package/react/src/lib/route-loader.d.ts +1 -1
  184. package/react/src/providers/ContentProvider.d.ts +1 -1
  185. package/react/src/providers/RerouteProvider.d.ts +1 -1
  186. package/react/src/providers/RouterProvider.d.ts +1 -1
  187. package/react/src/providers/index.d.ts +1 -1
  188. package/react/src/types/any.d.ts +1 -1
  189. package/react/src/types/index.d.ts +1 -1
  190. package/react/src/types/router.d.ts +1 -1
  191. package/telemetry/react.d.ts +1 -1
  192. package/telemetry/react.js +2 -2
  193. package/telemetry/react.js.map +1 -1
  194. package/telemetry/server.d.ts +1 -1
  195. package/telemetry/server.js +2 -2
  196. package/telemetry/server.js.map +3 -3
  197. package/telemetry/src/react/api.d.ts +1 -1
  198. package/telemetry/src/react/context.d.ts +1 -1
  199. package/telemetry/src/react/index.d.ts +1 -1
  200. package/telemetry/src/react/telemetry.d.ts +1 -1
  201. package/telemetry/src/server/context.d.ts +1 -1
  202. package/telemetry/src/server/headers/extractor.d.ts +1 -1
  203. package/telemetry/src/server/headers/index.d.ts +1 -1
  204. package/telemetry/src/server/headers/presets.d.ts +1 -1
  205. package/telemetry/src/server/index.d.ts +1 -1
  206. package/telemetry/src/server/instrumentation.d.ts +1 -1
  207. package/telemetry/src/server/plugin.d.ts +1 -1
  208. package/telemetry/src/server/sourcemap.d.ts +1 -1
package/cli/bin.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.23
2
+ * reroute-js v1.0.0-alpha.24
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
package/cli/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
3
  /**
4
- * reroute-js v1.0.0-alpha.23
4
+ * reroute-js v1.0.0-alpha.24
5
5
  *
6
6
  * @license MIT
7
7
  * @copyright 2026 stewones <hi@stewan.io>
@@ -68,7 +68,7 @@ async function getVersionString() {
68
68
  }
69
69
  async function getVersion() {
70
70
  if (true) {
71
- return "1.0.0-alpha.23";
71
+ return "1.0.0-alpha.24";
72
72
  }
73
73
  const possiblePaths = [
74
74
  path.join(import.meta.dir, "../../../../package.json"),
@@ -86,7 +86,7 @@ async function getVersion() {
86
86
  }
87
87
  async function getCommit() {
88
88
  if (true) {
89
- return "97c7664";
89
+ return "ab63579";
90
90
  }
91
91
  return "dev";
92
92
  }
@@ -7744,6 +7744,12 @@ function setupRemarkPlugins(cwd, enableGfm) {
7744
7744
  }
7745
7745
  return remarkPlugins;
7746
7746
  }
7747
+ function shikiRehypeOptions(theme) {
7748
+ if (theme === "github-light" || theme === "github-dark") {
7749
+ return { themes: { light: "github-light", dark: "github-dark" } };
7750
+ }
7751
+ return { theme };
7752
+ }
7747
7753
  function setupRehypePlugins(cwd, theme) {
7748
7754
  const rehypePlugins = [];
7749
7755
  const rehypeRaw = tryLoadModule(cwd, "rehype-raw");
@@ -7764,7 +7770,10 @@ function setupRehypePlugins(cwd, theme) {
7764
7770
  }
7765
7771
  const rehypeShiki = tryLoadModule(cwd, "@shikijs/rehype");
7766
7772
  if (rehypeShiki) {
7767
- rehypePlugins.push([rehypeShiki.default || rehypeShiki, { theme }]);
7773
+ rehypePlugins.push([
7774
+ rehypeShiki.default || rehypeShiki,
7775
+ shikiRehypeOptions(theme)
7776
+ ]);
7768
7777
  } else {
7769
7778
  console.warn("[reroute/mdx] @shikijs/rehype not available, skipping highlighting");
7770
7779
  }
@@ -8284,6 +8293,15 @@ import { join as join13 } from "node:path";
8284
8293
  function isWatchNoise(name) {
8285
8294
  return name.split(/[/\\]/).some((part) => part.startsWith(".")) || /\.bust-[^/\\]+$/.test(name);
8286
8295
  }
8296
+ function isClientSource(name, skipRoutes) {
8297
+ if (isWatchNoise(name))
8298
+ return false;
8299
+ if (name.includes(".reroute") || name.includes("node_modules"))
8300
+ return false;
8301
+ if (skipRoutes && /(^|[/\\])routes[/\\]/.test(name))
8302
+ return false;
8303
+ return /\.(tsx|ts|jsx|js|html|md|mdx|css)$/.test(name);
8304
+ }
8287
8305
  function createContentFingerprint(options) {
8288
8306
  const hashes = new Map;
8289
8307
  const startedAt = Date.now();
@@ -8330,7 +8348,7 @@ __export(exports_gen, {
8330
8348
  });
8331
8349
  import { watch } from "node:fs";
8332
8350
  import { copyFile as copyFile2, mkdir as mkdir3, readdir as readdir8, rm, unlink as unlink3 } from "node:fs/promises";
8333
- import { dirname as dirname7, extname as extname4, join as join14 } from "node:path";
8351
+ import { dirname as dirname7, extname as extname4, join as join14, resolve as resolve3 } from "node:path";
8334
8352
  import { pathToFileURL as pathToFileURL8 } from "node:url";
8335
8353
  async function bundleThemeCssIntoArtifacts(cwd) {
8336
8354
  const cssPath = join14(cwd, ".reroute", "bundles", "index.css");
@@ -10071,30 +10089,32 @@ async function startGenWatch(cwd, args) {
10071
10089
  console.log("[reroute/watch] ├─ index.css synced");
10072
10090
  }
10073
10091
  }
10074
- let pendingClientFiles = new Set;
10075
- const clientWatcher = watch(clientPath, { recursive: true }, (_ev, filename) => {
10076
- if (!filename)
10077
- return;
10078
- const name = String(filename);
10079
- if (isWatchNoise(name))
10080
- return;
10081
- if (name.includes(".reroute") || name.includes("node_modules"))
10082
- return;
10083
- if (name.includes("routes/") || name.includes("routes\\"))
10084
- return;
10085
- if (!/\.(tsx|ts|jsx|js|html|md|mdx|css)$/.test(name))
10086
- return;
10087
- pendingClientFiles.add(name);
10088
- mediumDebounce(() => {
10089
- const names = [...pendingClientFiles];
10090
- pendingClientFiles = new Set;
10091
- retainChangedFiles(clientPath, names, fingerprint).then((changed) => {
10092
- if (changed.length === 0)
10093
- return;
10094
- const reloadMode = changed.every((n) => n.endsWith(".css")) ? "css" : "full";
10095
- scheduleBuild(() => rebuildWatchedClient(changed), "client change", reloadMode);
10092
+ const watchClientSources = (dir, skipRoutes) => {
10093
+ let pending = new Set;
10094
+ return watch(dir, { recursive: true }, (_ev, filename) => {
10095
+ if (!filename)
10096
+ return;
10097
+ const name = String(filename);
10098
+ if (!isClientSource(name, skipRoutes))
10099
+ return;
10100
+ pending.add(name);
10101
+ mediumDebounce(() => {
10102
+ const names = [...pending];
10103
+ pending = new Set;
10104
+ retainChangedFiles(dir, names, fingerprint).then((changed) => {
10105
+ if (changed.length === 0)
10106
+ return;
10107
+ const reloadMode = changed.every((n) => n.endsWith(".css")) ? "css" : "full";
10108
+ scheduleBuild(() => rebuildWatchedClient(changed), "client change", reloadMode);
10109
+ });
10096
10110
  });
10097
10111
  });
10112
+ };
10113
+ const clientWatcher = watchClientSources(clientPath, true);
10114
+ const extraWatchers = (loadedConfig.app?.watch ?? []).map((entry) => {
10115
+ const dir = resolve3(cwd, entry);
10116
+ console.log(`[reroute/watch] \uD83D\uDCE6 Watching ${dir}...`);
10117
+ return watchClientSources(dir, false);
10098
10118
  });
10099
10119
  console.log(`[reroute/watch] ✓ Watch mode active - ready for changes!
10100
10120
  `);
@@ -10103,7 +10123,8 @@ async function startGenWatch(cwd, args) {
10103
10123
  clientWatcher,
10104
10124
  packagesWatcher,
10105
10125
  configWatcher,
10106
- ...envWatchers
10126
+ ...envWatchers,
10127
+ ...extraWatchers
10107
10128
  ].filter(Boolean);
10108
10129
  return {
10109
10130
  close() {
@@ -10134,10 +10155,10 @@ async function gen(args) {
10134
10155
  process.exit(0);
10135
10156
  }
10136
10157
  const session = await startGenWatch(cwd, args);
10137
- await new Promise((resolve3) => {
10158
+ await new Promise((resolve4) => {
10138
10159
  process.on("SIGINT", () => {
10139
10160
  session.close();
10140
- resolve3();
10161
+ resolve4();
10141
10162
  });
10142
10163
  });
10143
10164
  process.exit(0);
@@ -10258,7 +10279,7 @@ async function waitForServerReady(port = 3000, timeout = 30000) {
10258
10279
  return;
10259
10280
  }
10260
10281
  } catch {}
10261
- await new Promise((resolve3) => setTimeout(resolve3, checkInterval));
10282
+ await new Promise((resolve4) => setTimeout(resolve4, checkInterval));
10262
10283
  checkInterval = Math.min(checkInterval * 1.5, maxInterval);
10263
10284
  }
10264
10285
  throw new Error(`Timeout waiting for server to respond after ${timeout}ms. ` + `Make sure your server is starting correctly on port ${port}.`);
@@ -95955,7 +95976,7 @@ Should be of format "before:after"`);
95955
95976
  }
95956
95977
  }
95957
95978
  function objectize(node) {
95958
- function resolve3(value, key) {
95979
+ function resolve4(value, key) {
95959
95980
  if (!value._parent)
95960
95981
  return;
95961
95982
  if (value._parent._default && value._parent._default[key])
@@ -95978,8 +95999,8 @@ Should be of format "before:after"`);
95978
95999
  if (isObject(value)) {
95979
96000
  if (!value._before && !value._after)
95980
96001
  return objectize(value);
95981
- value._before = value._before || resolve3(value, "_before");
95982
- value._after = value._after || resolve3(value, "_after");
96002
+ value._before = value._before || resolve4(value, "_before");
96003
+ value._after = value._after || resolve4(value, "_after");
95983
96004
  return;
95984
96005
  }
95985
96006
  throw new Error("nodes need to be either {String}, {Object} or {Function}." + value + " is neither.");
@@ -104876,7 +104897,7 @@ function parsePort(args) {
104876
104897
  async function waitForInitialBuild(genProcess) {
104877
104898
  console.log("[reroute/dev] Waiting for initial build...");
104878
104899
  const outputBuffer = [];
104879
- const buildCompletePromise = new Promise((resolve3, reject) => {
104900
+ const buildCompletePromise = new Promise((resolve4, reject) => {
104880
104901
  const timeout = setTimeout(() => {
104881
104902
  reject(new Error("Timeout waiting for initial build to complete (120s)"));
104882
104903
  }, 120000);
@@ -104886,7 +104907,7 @@ async function waitForInitialBuild(genProcess) {
104886
104907
  clearTimeout(timeout);
104887
104908
  genProcess.stdout?.removeListener("data", checkComplete);
104888
104909
  genProcess.stderr?.removeListener("data", checkComplete);
104889
- resolve3();
104910
+ resolve4();
104890
104911
  }
104891
104912
  };
104892
104913
  genProcess.stdout?.on("data", checkComplete);
@@ -105077,7 +105098,7 @@ async function start(args) {
105077
105098
  `);
105078
105099
  const genCommand = useShell ? `${rerouteCmd} gen ${genArgs.join(" ")}` : rerouteCmd;
105079
105100
  const genArgsWithCmd = useShell ? [] : ["gen", ...genArgs];
105080
- await new Promise((resolve3, reject) => {
105101
+ await new Promise((resolve4, reject) => {
105081
105102
  const genProcess = spawn2(genCommand, genArgsWithCmd, {
105082
105103
  stdio: ["ignore", "pipe", "pipe"],
105083
105104
  shell: useShell
@@ -105088,7 +105109,7 @@ async function start(args) {
105088
105109
  if (code !== null && code !== 0) {
105089
105110
  reject(new Error(`Gen exited with code ${code}`));
105090
105111
  } else {
105091
- resolve3();
105112
+ resolve4();
105092
105113
  }
105093
105114
  });
105094
105115
  genProcess.on("error", (error) => {
@@ -105130,13 +105151,13 @@ async function start(args) {
105130
105151
  serverProcess.kill("SIGINT");
105131
105152
  process.exit(0);
105132
105153
  });
105133
- await new Promise((resolve3, reject) => {
105154
+ await new Promise((resolve4, reject) => {
105134
105155
  serverProcess.on("exit", (code) => {
105135
105156
  if (code !== null && code !== 0) {
105136
105157
  console.error(colorizeLogPrefixAnsi(`[reroute/start] Server exited with code ${code}`));
105137
105158
  reject(new Error(`Server exited with code ${code}`));
105138
105159
  } else {
105139
- resolve3();
105160
+ resolve4();
105140
105161
  }
105141
105162
  });
105142
105163
  serverProcess.on("error", (error) => {
@@ -105268,7 +105289,7 @@ async function cleanRerouteFolder(cwd) {
105268
105289
  process.stdout.write(colorizeLogPrefixAnsi(`[reroute/build] Cleaning .reroute folder...
105269
105290
  `));
105270
105291
  rmSync(rerouteDir, { recursive: true, force: true });
105271
- await new Promise((resolve3) => setTimeout(resolve3, 100));
105292
+ await new Promise((resolve4) => setTimeout(resolve4, 100));
105272
105293
  process.stdout.write(colorizeLogPrefixAnsi(`[reroute/build] ✓ .reroute folder cleaned
105273
105294
  `));
105274
105295
  }
@@ -105294,7 +105315,7 @@ async function runGenCommand(rerouteCmd, useShell, noCompression) {
105294
105315
  const genArgs = useShell ? [] : ["gen", "--prod", noCompression ? "--no-compression" : ""];
105295
105316
  const genBuffer = { current: "" };
105296
105317
  const handleGenOutput = createOutputHandler(genBuffer);
105297
- await new Promise((resolve3, reject) => {
105318
+ await new Promise((resolve4, reject) => {
105298
105319
  const genProcess = spawn3(genCommand, genArgs, {
105299
105320
  stdio: ["ignore", "pipe", "pipe"],
105300
105321
  shell: useShell
@@ -105305,7 +105326,7 @@ async function runGenCommand(rerouteCmd, useShell, noCompression) {
105305
105326
  if (code !== null && code !== 0) {
105306
105327
  reject(new Error(`Gen exited with code ${code}`));
105307
105328
  } else {
105308
- resolve3();
105329
+ resolve4();
105309
105330
  }
105310
105331
  });
105311
105332
  genProcess.on("error", (error) => {
@@ -107480,7 +107501,7 @@ async function analyze(args) {
107480
107501
  const useShell = rerouteCmd.includes(" ");
107481
107502
  const buildCommand = useShell ? `${rerouteCmd} build` : rerouteCmd;
107482
107503
  const buildArgs = useShell ? [] : ["build"];
107483
- await new Promise((resolve3, reject) => {
107504
+ await new Promise((resolve4, reject) => {
107484
107505
  const buildProcess = spawn4(buildCommand, buildArgs, {
107485
107506
  stdio: "inherit",
107486
107507
  shell: useShell
@@ -107489,7 +107510,7 @@ async function analyze(args) {
107489
107510
  if (code !== null && code !== 0) {
107490
107511
  reject(new Error(`Build exited with code ${code}`));
107491
107512
  } else {
107492
- resolve3();
107513
+ resolve4();
107493
107514
  }
107494
107515
  });
107495
107516
  buildProcess.on("error", (error) => {
@@ -107696,8 +107717,8 @@ async function killProcessOnPort(port) {
107696
107717
  const proc = spawn4("bunx", ["kill-port", String(port)], {
107697
107718
  stdio: "ignore"
107698
107719
  });
107699
- await new Promise((resolve3) => {
107700
- proc.on("close", () => resolve3());
107720
+ await new Promise((resolve4) => {
107721
+ proc.on("close", () => resolve4());
107701
107722
  });
107702
107723
  } catch {}
107703
107724
  }
@@ -108060,7 +108081,7 @@ async function getVersionString2() {
108060
108081
  }
108061
108082
  async function getVersion2() {
108062
108083
  if (true) {
108063
- return "1.0.0-alpha.23";
108084
+ return "1.0.0-alpha.24";
108064
108085
  }
108065
108086
  const possiblePaths = [
108066
108087
  path3.join(import.meta.dir, "../../../package.json"),
@@ -108077,10 +108098,10 @@ async function getVersion2() {
108077
108098
  }
108078
108099
  async function getCommit2() {
108079
108100
  if (true) {
108080
- return "97c7664";
108101
+ return "ab63579";
108081
108102
  }
108082
108103
  return "dev";
108083
108104
  }
108084
108105
  main();
108085
108106
 
108086
- //# debugId=03F389A2271BD14D64756E2164756E21
108107
+ //# debugId=6277845B47C49F9964756E2164756E21