@devrouter/cli 0.3.0 → 0.3.1
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.
|
@@ -5373,7 +5373,7 @@ function retain(session, previous) {
|
|
|
5373
5373
|
|
|
5374
5374
|
// src/core/reliability-operation-store.ts
|
|
5375
5375
|
function installedCliVersion() {
|
|
5376
|
-
return true ? "0.3.
|
|
5376
|
+
return true ? "0.3.1" : "0.0.0-dev";
|
|
5377
5377
|
}
|
|
5378
5378
|
function compareCliVersions(left, right) {
|
|
5379
5379
|
const parts = (value) => value.split(".").map((part) => Number.parseInt(part, 10) || 0);
|
|
@@ -7371,7 +7371,7 @@ function loadRepoConfig(repoPath, read2 = (file) => import_node_fs19.default.rea
|
|
|
7371
7371
|
const config = parseConfig(parsed ?? {}, configPath);
|
|
7372
7372
|
const requiredVersion = config.devrouter?.version;
|
|
7373
7373
|
if (requiredVersion && !hasWarnedVersionMismatch) {
|
|
7374
|
-
const cliVersion = true ? "0.3.
|
|
7374
|
+
const cliVersion = true ? "0.3.1" : "0.0.0-dev";
|
|
7375
7375
|
if (cliVersion !== "0.0.0-dev" && compareSemver2(requiredVersion, cliVersion) > 0) {
|
|
7376
7376
|
hasWarnedVersionMismatch = true;
|
|
7377
7377
|
process.stderr.write(
|
package/dist/devrouter.js
CHANGED
|
@@ -4764,7 +4764,7 @@ function loadRepoConfig(repoPath, read2 = (file) => import_node_fs8.default.read
|
|
|
4764
4764
|
const config = parseConfig(parsed ?? {}, configPath);
|
|
4765
4765
|
const requiredVersion = config.devrouter?.version;
|
|
4766
4766
|
if (requiredVersion && !hasWarnedVersionMismatch) {
|
|
4767
|
-
const cliVersion = true ? "0.3.
|
|
4767
|
+
const cliVersion = true ? "0.3.1" : "0.0.0-dev";
|
|
4768
4768
|
if (cliVersion !== "0.0.0-dev" && compareSemver(requiredVersion, cliVersion) > 0) {
|
|
4769
4769
|
hasWarnedVersionMismatch = true;
|
|
4770
4770
|
process.stderr.write(
|
|
@@ -6763,7 +6763,7 @@ var init_reliability_contract = __esm({
|
|
|
6763
6763
|
|
|
6764
6764
|
// src/core/reliability-operation-store.ts
|
|
6765
6765
|
function installedCliVersion() {
|
|
6766
|
-
return true ? "0.3.
|
|
6766
|
+
return true ? "0.3.1" : "0.0.0-dev";
|
|
6767
6767
|
}
|
|
6768
6768
|
function compareCliVersions(left, right) {
|
|
6769
6769
|
const parts = (value) => value.split(".").map((part) => Number.parseInt(part, 10) || 0);
|
|
@@ -24206,7 +24206,7 @@ function probeInstalledCliVersion(executable) {
|
|
|
24206
24206
|
}
|
|
24207
24207
|
function buildCliPathCheck(options = {}) {
|
|
24208
24208
|
const id5 = "global.cli-path";
|
|
24209
|
-
const runningVersion = options.runningVersion ?? (true ? "0.3.
|
|
24209
|
+
const runningVersion = options.runningVersion ?? (true ? "0.3.1" : "0.0.0-dev");
|
|
24210
24210
|
if (runningVersion === "0.0.0-dev") {
|
|
24211
24211
|
return {
|
|
24212
24212
|
id: id5,
|
|
@@ -25102,7 +25102,7 @@ async function buildDoctorReport(options = {}) {
|
|
|
25102
25102
|
suggestion: `Remedy ${expansionNotice.remedy.code}: set a named default profile other than '${expansionNotice.profile}'${remedyCandidates}.`
|
|
25103
25103
|
});
|
|
25104
25104
|
}
|
|
25105
|
-
const cliVersion = true ? "0.3.
|
|
25105
|
+
const cliVersion = true ? "0.3.1" : "0.0.0-dev";
|
|
25106
25106
|
const configVersion = config.devrouter?.version;
|
|
25107
25107
|
const installedKnown = cliVersion !== "0.0.0-dev";
|
|
25108
25108
|
const versionComparison = installedKnown && configVersion ? compareSemver(configVersion, cliVersion) : void 0;
|
|
@@ -32872,13 +32872,34 @@ function runWorkspaceLeftoverCommand(options) {
|
|
|
32872
32872
|
{
|
|
32873
32873
|
dryRun: report.dryRun,
|
|
32874
32874
|
stoppedEarly: false,
|
|
32875
|
-
targets: report.targets.map((target) => ({
|
|
32875
|
+
targets: report.targets.map((target) => ({
|
|
32876
|
+
...target,
|
|
32877
|
+
path: target.project,
|
|
32878
|
+
steps: summarizeLeftoverSteps(target.steps)
|
|
32879
|
+
}))
|
|
32876
32880
|
},
|
|
32877
32881
|
"remove the leftovers"
|
|
32878
32882
|
);
|
|
32883
|
+
if (!report.dryRun && report.targets.some((target) => target.steps.length)) {
|
|
32884
|
+
process.stdout.write(
|
|
32885
|
+
"Each removed object is listed in the stack's receipt; use --json for the full list.\n"
|
|
32886
|
+
);
|
|
32887
|
+
}
|
|
32879
32888
|
}
|
|
32880
32889
|
if (report.targets.some((target) => target.status === "failed")) process.exitCode = 1;
|
|
32881
32890
|
}
|
|
32891
|
+
function summarizeLeftoverSteps(steps) {
|
|
32892
|
+
const counts = /* @__PURE__ */ new Map();
|
|
32893
|
+
for (const step of steps) {
|
|
32894
|
+
const [action2, kind] = step.slice(0, step.indexOf(":")).split("-");
|
|
32895
|
+
const byKind = counts.get(action2) ?? /* @__PURE__ */ new Map();
|
|
32896
|
+
byKind.set(kind, (byKind.get(kind) ?? 0) + 1);
|
|
32897
|
+
counts.set(action2, byKind);
|
|
32898
|
+
}
|
|
32899
|
+
return [...counts].map(
|
|
32900
|
+
([action2, byKind]) => `${action2 === "gone" ? "already gone" : action2} ${[...byKind].map(([kind, count]) => `${count} ${kind}(s)`).join(", ")}`
|
|
32901
|
+
);
|
|
32902
|
+
}
|
|
32882
32903
|
function runWorkspaceManifestSelectCommand(file, options) {
|
|
32883
32904
|
process.stdout.write(selectManifest(file, options.expectedSha256, options.id));
|
|
32884
32905
|
}
|
|
@@ -32985,7 +33006,7 @@ var init_version = __esm({
|
|
|
32985
33006
|
|
|
32986
33007
|
// src/cli.ts
|
|
32987
33008
|
var import_commander = require("commander");
|
|
32988
|
-
var CLI_VERSION = true ? "0.3.
|
|
33009
|
+
var CLI_VERSION = true ? "0.3.1" : "0.0.0-dev";
|
|
32989
33010
|
var VERSION_FLAGS = /* @__PURE__ */ new Set(["-V", "--version"]);
|
|
32990
33011
|
function withErrorHandling(action2) {
|
|
32991
33012
|
return async (...args) => {
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Upgrade to devrouter 0.3.1
|
|
2
|
+
|
|
3
|
+
This patch release makes the `workspace leftover` output readable. Each stack's
|
|
4
|
+
table row now shows per-kind counts, for example `removed 7 container(s), 42
|
|
5
|
+
volume(s), 1 network(s)`, instead of every removed container ID and volume
|
|
6
|
+
name. After an apply, one line points to the per-stack receipts and `--json`,
|
|
7
|
+
which still list every object.
|
|
8
|
+
|
|
9
|
+
There is no configuration change, no migration and no change to which objects
|
|
10
|
+
are removed.
|
|
11
|
+
|
|
12
|
+
## Task
|
|
13
|
+
|
|
14
|
+
Install the published 0.3.1 CLI. No repository change is needed. A repository
|
|
15
|
+
that requires 0.3.0 keeps working with 0.3.1.
|
|
16
|
+
|
|
17
|
+
## Validation
|
|
18
|
+
|
|
19
|
+
1. Run `devrouter -V` from the consumer checkout. A repository Volta pin can
|
|
20
|
+
change which install resolves.
|
|
21
|
+
2. Optionally run `devrouter workspace leftover --manifest <file> --sha256
|
|
22
|
+
<hash>` as a dry run and confirm each stack shows one row of counts.
|
|
23
|
+
|
|
24
|
+
## Report
|
|
25
|
+
|
|
26
|
+
Report the release revision and the resolved executable with its installed
|
|
27
|
+
version.
|