@ouro.bot/cli 0.1.0-alpha.1384 → 0.1.0-alpha.1386

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,18 @@
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.1386",
6
+ "changes": [
7
+ "A delegated command counts as noticed only once Telegram accepted its audit notice, and its refusal no longer says the owner's chat is down when the chat is only handed to someone else."
8
+ ]
9
+ },
10
+ {
11
+ "version": "0.1.0-alpha.1385",
12
+ "changes": [
13
+ "The Mailbox draws every tab with Ouro HX components: cards, item lists, section and page headers, description lists, a log table, empty states, alerts and loading skeletons, from Ouro UI v1.3.454."
14
+ ]
15
+ },
4
16
  {
5
17
  "version": "0.1.0-alpha.1384",
6
18
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1384",
2
+ "runtimeVersion": "0.1.0-alpha.1386",
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.1384</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1386</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -68,7 +68,10 @@ function delegatedCommandWasNoticed(agentRoot, commandId, principalFriendId, del
68
68
  throw error;
69
69
  }
70
70
  const artifact = JSON.parse(raw);
71
- return artifact.idempotencyKey === idempotencyKey && artifact.authorClass === "butler" && artifact.target?.friendId === principalFriendId;
71
+ // The journal entry is written before the send, so only parts Telegram accepted count as the owner having been told.
72
+ const delivered = Array.isArray(artifact.parts) && artifact.parts.length > 0
73
+ && artifact.parts.every((part) => typeof part === "object" && part !== null && ["accepted", "session_recorded"].includes(part.state));
74
+ return delivered && artifact.idempotencyKey === idempotencyKey && artifact.authorClass === "butler" && artifact.target?.friendId === principalFriendId;
72
75
  }
73
76
  /**
74
77
  * What a refused sender is told. Every refusal says that nothing ran and names the next step; the reason code stays
@@ -97,7 +100,7 @@ function delegationRefusalGuidance(reason, hints) {
97
100
  case "principal_unresolved":
98
101
  return { message: "the agent cannot tell whose command this is (its owner record is missing or ambiguous)", next: "Ask the operator to check the owner's friend record on the agent's host.", retry: false };
99
102
  case "notice_failed":
100
- return { message: "the agent could not tell its owner about this command first, so it did not run it", next: "Retry in a minute. If it keeps failing, the owner's chat channel is down: tell the operator.", retry: true };
103
+ return { message: "the agent could not tell its owner about this command first, so it did not run it", next: "Retry in a minute. If it keeps failing, the owner can't be told in their own chat right now (it may be handed to someone else, or unreachable): tell the operator.", retry: true };
101
104
  }
102
105
  }
103
106
  /** Invisible and bidirectional-control characters a sender could slip inside the banner to keep it from matching. */