@ouro.bot/cli 0.1.0-alpha.1207 → 0.1.0-alpha.1209

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/changelog.json CHANGED
@@ -1,10 +1,23 @@
1
1
  {
2
2
  "_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.1209",
6
+ "changes": [
7
+ "Update the Ouro UI files to Ouro UI v1.3.313."
8
+ ]
9
+ },
10
+ {
11
+ "version": "0.1.0-alpha.1208",
12
+ "changes": [
13
+ "Startup never downgrades an installed CLI to an older reachable release: when a lagging mirror or failed GitHub lookup makes the newest reported release older than the installed one, ouro up (including --latest) keeps the installed version and records it as the latest intent; ouro rollback remains the way to go back."
14
+ ]
15
+ },
4
16
  {
5
17
  "version": "0.1.0-alpha.1207",
6
18
  "changes": [
7
- "Name the failed pre-pass step in an error annotation and the job summary before cancelling the shards, so cancelled checks never hide the cause."
19
+ "Name the failed pre-pass step in an error annotation and the job summary before cancelling the shards, so cancelled checks never hide the cause.",
20
+ "Update the Ouro UI files to Ouro UI v1.3.312."
8
21
  ]
9
22
  },
10
23
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1207",
2
+ "runtimeVersion": "0.1.0-alpha.1209",
3
3
  "bundleSchemaVersion": 3,
4
4
  "lastUpdated": "2026-09-03T00:00:00.000Z"
5
5
  }
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <Container version="2">
3
3
  <Name>ouro-butler</Name>
4
- <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1207</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1209</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -7268,7 +7268,21 @@ async function runOuroCli(args, deps = (0, cli_defaults_1.createDefaultOuroCliDe
7268
7268
  /* v8 ignore next -- fallback: getCurrentCliVersion always injected in tests @preserve */
7269
7269
  const currentVersion = linkedVersionBeforeUp ?? "unknown";
7270
7270
  const targetVersion = updateResult.latestVersion;
7271
- const needsActivation = updateResult.available || linkedVersionBeforeUp !== targetVersion;
7271
+ // A reachable source can lag behind what is installed (a stale mirror
7272
+ // or a failed lookup), so startup only ever moves forward. Going back
7273
+ // is `ouro rollback`.
7274
+ const wouldDowngrade = linkedVersionBeforeUp !== null && (0, ouro_version_manager_1.compareCliVersions)(targetVersion, linkedVersionBeforeUp) < 0;
7275
+ const needsActivation = !wouldDowngrade && (updateResult.available || linkedVersionBeforeUp !== targetVersion);
7276
+ if (wouldDowngrade) {
7277
+ updateCheckStatus = `up to date (kept ${linkedVersionBeforeUp}; newest reachable release ${targetVersion} is older)`;
7278
+ (0, runtime_1.emitNervesEvent)({
7279
+ level: "warn",
7280
+ component: "daemon",
7281
+ event: "daemon.cli_update_downgrade_refused",
7282
+ message: "refused to downgrade to an older published release",
7283
+ meta: { installedVersion: linkedVersionBeforeUp, publishedVersion: targetVersion, explicitLatest: Boolean(command.latest) },
7284
+ });
7285
+ }
7272
7286
  if (needsActivation) {
7273
7287
  await deps.installCliVersion(targetVersion);
7274
7288
  const validation = deps.validateCliVersionForActivation?.(targetVersion);
@@ -7276,7 +7290,7 @@ async function runOuroCli(args, deps = (0, cli_defaults_1.createDefaultOuroCliDe
7276
7290
  throw new Error(`refusing to activate ${targetVersion}: ${validation.message}`);
7277
7291
  }
7278
7292
  }
7279
- writeVersionIntentWithRecoveryLauncher(deps, { schemaVersion: 1, mode: "latest", targetVersion });
7293
+ writeVersionIntentWithRecoveryLauncher(deps, { schemaVersion: 1, mode: "latest", targetVersion: wouldDowngrade ? linkedVersionBeforeUp : targetVersion });
7280
7294
  if (needsActivation) {
7281
7295
  deps.activateCliVersion(targetVersion);
7282
7296
  progress.completePhase("update check", `installed ${targetVersion}`);