@ouro.bot/cli 0.1.0-alpha.1102 → 0.1.0-alpha.1103

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,12 @@
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.1103",
6
+ "changes": [
7
+ "iMessage and Teams now tell the person when a turn fails, the way Telegram already did, instead of going silent or showing a raw error."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1102",
6
12
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1102",
2
+ "runtimeVersion": "0.1.0-alpha.1103",
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.1102</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1103</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -41,6 +41,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.emitObligationTransitionEpisodes = emitObligationTransitionEpisodes;
42
42
  exports.selectCheckpointCurrentAsk = selectCheckpointCurrentAsk;
43
43
  exports.startPostTurnSync = startPostTurnSync;
44
+ exports.erroredTurnReply = erroredTurnReply;
44
45
  exports.handleInboundTurn = handleInboundTurn;
45
46
  const fs = __importStar(require("fs"));
46
47
  const path = __importStar(require("path"));
@@ -532,6 +533,17 @@ function startPostTurnSync(agentRoot, config) {
532
533
  });
533
534
  });
534
535
  }
536
+ /**
537
+ * What every outward sense says when a turn errors and provider failover has nothing to say.
538
+ * Such turns used to end in silence: the owner saw no reply, prodded, and later got
539
+ * the late answer followed by a greeting to a prod (D-004); the step-limit stop was the
540
+ * observed cause (D-007). The engine still refuses to answer without evidence.
541
+ */
542
+ function erroredTurnReply(errorMessage) {
543
+ return /iteration limit exhausted/u.test(errorMessage ?? "")
544
+ ? "I hit my step limit in the middle of that job and couldn't finish it. Tell me to continue and I'll pick up from where I stopped."
545
+ : "I couldn't finish that one: something went wrong before I had an answer. Ask me again and I'll retry.";
546
+ }
535
547
  async function handleInboundTurn(input) {
536
548
  return (0, turn_execution_lease_1.withTurnExecutionLease)(() => handleInboundTurnExclusive(input));
537
549
  }
@@ -1283,6 +1295,8 @@ async function handleInboundTurnExclusive(input) {
1283
1295
  messages: sessionMessages,
1284
1296
  drainedPending: pending,
1285
1297
  ...(input.switchedProvider ? { switchedProvider: input.switchedProvider } : {}),
1298
+ // Every chat sense answers an errored turn. The inner channel stays silent, and the CLI keeps showing its operator the raw error.
1299
+ ...(result.outcome === "errored" && input.channel !== "inner" && input.channel !== "cli" ? { failoverMessage: erroredTurnReply(result.error?.message) } : {}),
1286
1300
  };
1287
1301
  }
1288
1302
  finally {
@@ -39,10 +39,10 @@ var __importStar = (this && this.__importStar) || (function () {
39
39
  };
40
40
  })();
41
41
  Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.erroredTurnReply = void 0;
42
43
  exports.stripThinkBlocks = stripThinkBlocks;
43
44
  exports.extractOutwardSenseDeliveryText = extractOutwardSenseDeliveryText;
44
45
  exports.getSenseSessionPath = getSenseSessionPath;
45
- exports.erroredTurnReply = erroredTurnReply;
46
46
  exports.runSenseTurn = runSenseTurn;
47
47
  const os = __importStar(require("os"));
48
48
  const path = __importStar(require("path"));
@@ -59,6 +59,7 @@ const pending_1 = require("../mind/pending");
59
59
  const context_2 = require("../mind/context");
60
60
  const trust_gate_1 = require("./trust-gate");
61
61
  const pipeline_1 = require("./pipeline");
62
+ Object.defineProperty(exports, "erroredTurnReply", { enumerable: true, get: function () { return pipeline_1.erroredTurnReply; } });
62
63
  const mcp_manager_1 = require("../repertoire/mcp-manager");
63
64
  const runtime_1 = require("../nerves/runtime");
64
65
  const session_transaction_1 = require("../mind/session-transaction");
@@ -353,17 +354,6 @@ function getSenseSessionPath(agentName, friendId, channel, sessionKey, agentRoot
353
354
  * Caller provides channel, session key, friend, and message;
354
355
  * this function handles all pipeline wiring.
355
356
  */
356
- /**
357
- * What an outward sense says when a turn errors and provider failover has nothing to say.
358
- * Such turns used to end in silence: the owner saw no reply, prodded, and later got
359
- * the late answer followed by a greeting to a prod (D-004); the step-limit stop was the
360
- * observed cause (D-007). The engine still refuses to answer without evidence.
361
- */
362
- function erroredTurnReply(errorMessage) {
363
- return /iteration limit exhausted/u.test(errorMessage ?? "")
364
- ? "I hit my step limit in the middle of that job and couldn't finish it. Tell me to continue and I'll pick up from where I stopped."
365
- : "I couldn't finish that one: something went wrong before I had an answer. Ask me again and I'll retry.";
366
- }
367
357
  async function runSenseTurn(options) {
368
358
  options = { ...options, ...(options.shepherdSession ? { shepherdSession: Object.freeze({ ...options.shepherdSession }) } : {}) };
369
359
  return (0, turn_execution_lease_1.withTurnExecutionLease)(async () => {
@@ -720,7 +710,7 @@ async function runSenseTurnExclusive(options, owner) {
720
710
  let finalDeliveryKind = terminalDeliveryKind;
721
711
  const acceptedTerminalOutcome = turnResult.turnOutcome === "settled" || turnResult.turnOutcome === "blocked";
722
712
  const failoverText = turnResult.turnOutcome === "errored"
723
- ? turnResult.failoverMessage?.trim() || (channel === "inner" ? undefined : erroredTurnReply(terminalErrorMessage))
713
+ ? turnResult.failoverMessage?.trim() || (channel === "inner" ? undefined : (0, pipeline_1.erroredTurnReply)(terminalErrorMessage))
724
714
  : undefined;
725
715
  const expectsOutwardResponse = acceptedTerminalOutcome || turnResult.turnOutcome === "command" || Boolean(failoverText);
726
716
  let finalCausalCoordinate;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1102",
3
+ "version": "0.1.0-alpha.1103",
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.1102",
9
+ "version": "0.1.0-alpha.1103",
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.1102",
3
+ "version": "0.1.0-alpha.1103",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },