@devrouter/cli 0.0.28 → 0.0.29
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.
- package/dist/devrouter.js +17 -5
- package/package.json +1 -1
- package/upgrade-prompts/0.0.29.md +12 -0
package/dist/devrouter.js
CHANGED
|
@@ -1787,7 +1787,7 @@ function loadRepoConfig(repoPath) {
|
|
|
1787
1787
|
const config = parseConfig(parsed ?? {}, configPath);
|
|
1788
1788
|
const requiredVersion = config.devrouter?.version;
|
|
1789
1789
|
if (requiredVersion && !hasWarnedVersionMismatch) {
|
|
1790
|
-
const cliVersion = true ? "0.0.
|
|
1790
|
+
const cliVersion = true ? "0.0.29" : "0.0.0-dev";
|
|
1791
1791
|
if (cliVersion !== "0.0.0-dev" && compareSemver(requiredVersion, cliVersion) > 0) {
|
|
1792
1792
|
hasWarnedVersionMismatch = true;
|
|
1793
1793
|
process.stderr.write(
|
|
@@ -4390,7 +4390,7 @@ async function buildDoctorReport(options = {}) {
|
|
|
4390
4390
|
const config = runtimeConfig.config;
|
|
4391
4391
|
loadedConfig = config;
|
|
4392
4392
|
loadedWorkspace = runtimeConfig.workspace;
|
|
4393
|
-
const cliVersion = true ? "0.0.
|
|
4393
|
+
const cliVersion = true ? "0.0.29" : "0.0.0-dev";
|
|
4394
4394
|
const configVersion = config.devrouter?.version;
|
|
4395
4395
|
if (configVersion && cliVersion !== "0.0.0-dev" && compareSemver(configVersion, cliVersion) > 0) {
|
|
4396
4396
|
addCheck(checks, {
|
|
@@ -8189,6 +8189,7 @@ async function workspaceEnsure(requestedRepoPath, options = {}) {
|
|
|
8189
8189
|
await waitForContainerPreflight(repoPath, commonDir, workspace, upstreamHosts, 0);
|
|
8190
8190
|
} catch {
|
|
8191
8191
|
await recreateAndWait();
|
|
8192
|
+
recreated = true;
|
|
8192
8193
|
}
|
|
8193
8194
|
}
|
|
8194
8195
|
ensureRouterFiles();
|
|
@@ -8205,8 +8206,19 @@ async function workspaceEnsure(requestedRepoPath, options = {}) {
|
|
|
8205
8206
|
}
|
|
8206
8207
|
}
|
|
8207
8208
|
startRouterStack();
|
|
8208
|
-
|
|
8209
|
-
|
|
8209
|
+
const routes = routeInputs(repoPath, workspace, apps);
|
|
8210
|
+
replaceHostRoutesForRepo(repoPath, routes);
|
|
8211
|
+
try {
|
|
8212
|
+
await waitForHttpRoutes(apps, options.httpTimeoutMs ?? DEFAULT_READINESS_TIMEOUT_MS);
|
|
8213
|
+
} catch (error) {
|
|
8214
|
+
replaceHostRoutesForRepo(repoPath, []);
|
|
8215
|
+
if (!hadExactDevpod || recreated) {
|
|
8216
|
+
throw error;
|
|
8217
|
+
}
|
|
8218
|
+
await recreateAndWait();
|
|
8219
|
+
replaceHostRoutesForRepo(repoPath, routes);
|
|
8220
|
+
await waitForHttpRoutes(apps, options.httpTimeoutMs ?? DEFAULT_READINESS_TIMEOUT_MS);
|
|
8221
|
+
}
|
|
8210
8222
|
const urls = apps.map(
|
|
8211
8223
|
(app) => app.protocol === "tcp" ? `${app.tcpProtocol}://${app.host}:${String(TCP_PROTOCOL_REGISTRY[app.tcpProtocol].port)}` : routeUrl3(app.host)
|
|
8212
8224
|
);
|
|
@@ -8553,7 +8565,7 @@ var init_version = __esm({
|
|
|
8553
8565
|
|
|
8554
8566
|
// src/cli.ts
|
|
8555
8567
|
var import_commander = require("commander");
|
|
8556
|
-
var CLI_VERSION = true ? "0.0.
|
|
8568
|
+
var CLI_VERSION = true ? "0.0.29" : "0.0.0-dev";
|
|
8557
8569
|
var VERSION_FLAGS = /* @__PURE__ */ new Set(["-V", "--version"]);
|
|
8558
8570
|
function withErrorHandling(action2) {
|
|
8559
8571
|
return async (...args) => {
|
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Upgrade to devrouter 0.0.29
|
|
2
|
+
|
|
3
|
+
## What changed
|
|
4
|
+
|
|
5
|
+
`workspace ensure` now uses the one-total-recreate budget for HTTP readiness failures on existing exact workspaces. Routes are removed before recovery, verified after recreation, and removed again if the retry fails. No new CLI flags, config schema, or dependencies.
|
|
6
|
+
|
|
7
|
+
## Steps
|
|
8
|
+
|
|
9
|
+
1. Open `.devrouter.yml` and bump `devrouter.version` from `0.0.28` to `0.0.29`.
|
|
10
|
+
2. Run `devrouter -V --repo <repo>` and confirm the reported version is `0.0.29`.
|
|
11
|
+
3. From an existing linked worktree, run `devrouter workspace ensure .`.
|
|
12
|
+
4. Report the route results.
|