@devrouter/cli 0.0.71 → 0.0.72
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.
|
@@ -5159,7 +5159,7 @@ function loadRepoConfig(repoPath, read2 = (file) => import_node_fs14.default.rea
|
|
|
5159
5159
|
const config = parseConfig(parsed ?? {}, configPath);
|
|
5160
5160
|
const requiredVersion = config.devrouter?.version;
|
|
5161
5161
|
if (requiredVersion && !hasWarnedVersionMismatch) {
|
|
5162
|
-
const cliVersion = true ? "0.0.
|
|
5162
|
+
const cliVersion = true ? "0.0.72" : "0.0.0-dev";
|
|
5163
5163
|
if (cliVersion !== "0.0.0-dev" && compareSemver(requiredVersion, cliVersion) > 0) {
|
|
5164
5164
|
hasWarnedVersionMismatch = true;
|
|
5165
5165
|
process.stderr.write(
|
|
@@ -8596,8 +8596,6 @@ function handleOperationRequest(state, event) {
|
|
|
8596
8596
|
);
|
|
8597
8597
|
if (state.operationHistory.some((entry) => entry.id === event.operationId))
|
|
8598
8598
|
return unchanged(state, "conflict");
|
|
8599
|
-
if (state.executionPolicy !== "manual" && state.operationHistory.length >= RELIABILITY_MAX_ITEMS)
|
|
8600
|
-
return unchanged(state, "blocked");
|
|
8601
8599
|
if (event.kind === "exec" && canExecAfterInterruptedEnsure(state) && event.recoverInterruptedEnsure !== true)
|
|
8602
8600
|
return blocked(
|
|
8603
8601
|
state,
|
|
@@ -8620,7 +8618,7 @@ function handleOperationRequest(state, event) {
|
|
|
8620
8618
|
state,
|
|
8621
8619
|
`exec requires a running workspace (runtimeRunning=${event.runtimeRunning}, desired='${state.desired}').`
|
|
8622
8620
|
);
|
|
8623
|
-
const rollover = state.
|
|
8621
|
+
const rollover = state.operationHistory.length >= RELIABILITY_MAX_ITEMS;
|
|
8624
8622
|
let retired = -1;
|
|
8625
8623
|
if (rollover) {
|
|
8626
8624
|
const latestEnsureId = [...state.operationHistory].reverse().find((entry) => entry.kind === "ensure")?.id;
|
|
@@ -9037,7 +9035,7 @@ var import_node_fs25 = __toESM(require("fs"));
|
|
|
9037
9035
|
var import_node_path30 = __toESM(require("path"));
|
|
9038
9036
|
var import_node_util5 = require("util");
|
|
9039
9037
|
function installedCliVersion() {
|
|
9040
|
-
return true ? "0.0.
|
|
9038
|
+
return true ? "0.0.72" : "0.0.0-dev";
|
|
9041
9039
|
}
|
|
9042
9040
|
function compareCliVersions(left, right) {
|
|
9043
9041
|
const parts = (value) => value.split(".").map((part) => Number.parseInt(part, 10) || 0);
|
package/dist/devrouter.js
CHANGED
|
@@ -4133,7 +4133,7 @@ function loadRepoConfig(repoPath, read2 = (file) => import_node_fs7.default.read
|
|
|
4133
4133
|
const config = parseConfig(parsed ?? {}, configPath);
|
|
4134
4134
|
const requiredVersion = config.devrouter?.version;
|
|
4135
4135
|
if (requiredVersion && !hasWarnedVersionMismatch) {
|
|
4136
|
-
const cliVersion = true ? "0.0.
|
|
4136
|
+
const cliVersion = true ? "0.0.72" : "0.0.0-dev";
|
|
4137
4137
|
if (cliVersion !== "0.0.0-dev" && compareSemver(requiredVersion, cliVersion) > 0) {
|
|
4138
4138
|
hasWarnedVersionMismatch = true;
|
|
4139
4139
|
process.stderr.write(
|
|
@@ -5386,7 +5386,7 @@ var init_reliability_contract = __esm({
|
|
|
5386
5386
|
|
|
5387
5387
|
// src/core/reliability-operation-store.ts
|
|
5388
5388
|
function installedCliVersion() {
|
|
5389
|
-
return true ? "0.0.
|
|
5389
|
+
return true ? "0.0.72" : "0.0.0-dev";
|
|
5390
5390
|
}
|
|
5391
5391
|
function compareCliVersions(left, right) {
|
|
5392
5392
|
const parts = (value) => value.split(".").map((part) => Number.parseInt(part, 10) || 0);
|
|
@@ -11833,8 +11833,6 @@ function handleOperationRequest(state, event) {
|
|
|
11833
11833
|
);
|
|
11834
11834
|
if (state.operationHistory.some((entry) => entry.id === event.operationId))
|
|
11835
11835
|
return unchanged(state, "conflict");
|
|
11836
|
-
if (state.executionPolicy !== "manual" && state.operationHistory.length >= RELIABILITY_MAX_ITEMS)
|
|
11837
|
-
return unchanged(state, "blocked");
|
|
11838
11836
|
if (event.kind === "exec" && canExecAfterInterruptedEnsure(state) && event.recoverInterruptedEnsure !== true)
|
|
11839
11837
|
return blocked(
|
|
11840
11838
|
state,
|
|
@@ -11857,7 +11855,7 @@ function handleOperationRequest(state, event) {
|
|
|
11857
11855
|
state,
|
|
11858
11856
|
`exec requires a running workspace (runtimeRunning=${event.runtimeRunning}, desired='${state.desired}').`
|
|
11859
11857
|
);
|
|
11860
|
-
const rollover = state.
|
|
11858
|
+
const rollover = state.operationHistory.length >= RELIABILITY_MAX_ITEMS;
|
|
11861
11859
|
let retired = -1;
|
|
11862
11860
|
if (rollover) {
|
|
11863
11861
|
const latestEnsureId = [...state.operationHistory].reverse().find((entry) => entry.kind === "ensure")?.id;
|
|
@@ -20400,7 +20398,7 @@ async function buildDoctorReport(options = {}) {
|
|
|
20400
20398
|
const config = runtimeConfig.config;
|
|
20401
20399
|
loadedConfig = config;
|
|
20402
20400
|
loadedWorkspace = runtimeConfig.workspace;
|
|
20403
|
-
const cliVersion = true ? "0.0.
|
|
20401
|
+
const cliVersion = true ? "0.0.72" : "0.0.0-dev";
|
|
20404
20402
|
const configVersion = config.devrouter?.version;
|
|
20405
20403
|
if (configVersion && cliVersion !== "0.0.0-dev" && compareSemver(configVersion, cliVersion) > 0) {
|
|
20406
20404
|
addCheck(checks, {
|
|
@@ -25830,7 +25828,7 @@ var init_version = __esm({
|
|
|
25830
25828
|
|
|
25831
25829
|
// src/cli.ts
|
|
25832
25830
|
var import_commander = require("commander");
|
|
25833
|
-
var CLI_VERSION = true ? "0.0.
|
|
25831
|
+
var CLI_VERSION = true ? "0.0.72" : "0.0.0-dev";
|
|
25834
25832
|
var VERSION_FLAGS = /* @__PURE__ */ new Set(["-V", "--version"]);
|
|
25835
25833
|
function withErrorHandling(action2) {
|
|
25836
25834
|
return async (...args) => {
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Upgrade to devrouter 0.0.72
|
|
2
|
+
|
|
3
|
+
This patch release lets capacity-enrolled checkouts keep working past the
|
|
4
|
+
128-entry lifecycle journal cap. Previously the journal refused every later
|
|
5
|
+
`ensure` and `exec` once it filled, because history rollover ran only under
|
|
6
|
+
manual execution policy. Enrolled repositories now roll over under the same
|
|
7
|
+
conservative guards as manual ones. No schema, configuration, or CLI flag
|
|
8
|
+
changes.
|
|
9
|
+
|
|
10
|
+
## Task
|
|
11
|
+
|
|
12
|
+
Install the published release and update `.devrouter.yml` devrouter.version to
|
|
13
|
+
0.0.72. No configuration change is required.
|
|
14
|
+
|
|
15
|
+
## Validation
|
|
16
|
+
|
|
17
|
+
On a repository with an enabled capacity policy enrollment whose journal is at
|
|
18
|
+
or near its cap, run `devrouter ensure <path> --json` and confirm the operation
|
|
19
|
+
is admitted and dispatched instead of failing with a blocked lifecycle
|
|
20
|
+
transition. `devrouter exec <path> -- echo ok` must complete, and
|
|
21
|
+
`devrouter stop <path>` must end with the runtime stopped and zero routes.
|
|
22
|
+
|
|
23
|
+
## Report
|
|
24
|
+
|
|
25
|
+
Report the installed CLI version, the enrolled repository, the journal entry
|
|
26
|
+
count before and after the operation, and the final stopped status with the
|
|
27
|
+
route count.
|