@ouro.bot/cli 0.1.0-alpha.1135 → 0.1.0-alpha.1136

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,6 +1,13 @@
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.1136",
6
+ "changes": [
7
+ "The Butler can restart a container that has been up for about an hour: Docker's \"Up About an hour\" status no longer reads as unknown, which had made the Butler refuse restarts Ari approved.",
8
+ "Containers that were created but never started (deliberately switched off) no longer show as degraded, so they stop raising standing health incidents."
9
+ ]
10
+ },
4
11
  {
5
12
  "version": "0.1.0-alpha.1135",
6
13
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1135",
2
+ "runtimeVersion": "0.1.0-alpha.1136",
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.1135</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1136</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -56,7 +56,7 @@ function display(value, maxBytes) {
56
56
  prefix = prefix.slice(0, -1);
57
57
  return { value: `${prefix}...`, truncated: true };
58
58
  }
59
- const DURATION = "(?:Less than a second|About a (?:minute|hour|day|week|month|year)|(?:[1-9][0-9]*) (?:seconds?|minutes?|hours?|days?|weeks?|months?|years?))";
59
+ const DURATION = "(?:Less than a second|About a (?:minute|day|week|month|year)|About an hour|(?:[1-9][0-9]*) (?:seconds?|minutes?|hours?|days?|weeks?|months?|years?))";
60
60
  const RUNNING = new RegExp(`^Up ${DURATION}(?: \\((?:healthy|unhealthy|health: starting)\\))?$`, "u");
61
61
  const EXITED = new RegExp(`^Exited \\((0|[1-9][0-9]*)\\) ${DURATION} ago$`, "u");
62
62
  const RESTARTING = new RegExp(`^Restarting \\((0|[1-9][0-9]*)\\) ${DURATION} ago$`, "u");
@@ -75,6 +75,9 @@ function normalizeDockerStatus(structuredState, status) {
75
75
  const code = exitCode(exited);
76
76
  return code === null ? { state: "unknown", exitCode: null, degraded: true } : { state: "exited", exitCode: code, degraded: false };
77
77
  }
78
+ // A container that was created but never started (Docker shows "Created") is stopped on purpose, not degraded.
79
+ if ((state === "CREATED" || state === "EXITED") && status === "Created")
80
+ return { state: "created", exitCode: null, degraded: false };
78
81
  const restarting = status.match(RESTARTING);
79
82
  if ((state === "RUNNING" || state === "EXITED") && restarting) {
80
83
  const code = exitCode(restarting);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1135",
3
+ "version": "0.1.0-alpha.1136",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@ouro.bot/cli",
9
- "version": "0.1.0-alpha.1135",
9
+ "version": "0.1.0-alpha.1136",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sdk": "^0.78.0",
12
12
  "@ouro.bot/friends": "0.1.0-alpha.18",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1135",
3
+ "version": "0.1.0-alpha.1136",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },