@ouro.bot/cli 0.1.0-alpha.1535 → 0.1.0-alpha.1537

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": "Each pull request writes its own change note under changes/; the release job on main gives each landed change its version and adds the notes here (scripts/release-version.cjs). On main this file stops at the last version set by hand; the published package has every release. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.1537",
6
+ "changes": [
7
+ "Update the Ouro UI files to Ouro UI v1.3.523."
8
+ ]
9
+ },
10
+ {
11
+ "version": "0.1.0-alpha.1536",
12
+ "changes": [
13
+ "Ouroboros no longer sends a proactive message that asks you to run a routine check (\"open this and tell me if it shows\") or that offers an untested result as the news. The message is held, and the agent that sent it is told to verify it itself and send the verified result with its proof, naming exactly what it checked. Sign-in, MFA, payment and other asks only you can answer, status updates you asked for that are labelled unverified, and replies in a conversation you started are unchanged."
14
+ ]
15
+ },
4
16
  {
5
17
  "version": "0.1.0-alpha.1535",
6
18
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1535",
2
+ "runtimeVersion": "0.1.0-alpha.1537",
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.1535</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1537</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -1044,6 +1044,10 @@ exports.sessionToolDefinitions = [
1044
1044
  detail: "blocked: contains internal meta markers",
1045
1045
  };
1046
1046
  }
1047
+ if (result.reason === "internal_content_blocked") {
1048
+ const { getProactiveInternalContentBlockReason, proactiveContentBlockGuidance } = await Promise.resolve().then(() => __importStar(require("../senses/proactive-content-guard")));
1049
+ return { status: "blocked", detail: proactiveContentBlockGuidance(getProactiveInternalContentBlockReason(request.content)) };
1050
+ }
1047
1051
  if (result.reason === "send_error") {
1048
1052
  return {
1049
1053
  status: "failed",
@@ -1112,6 +1116,10 @@ exports.sessionToolDefinitions = [
1112
1116
  detail: "teams could not resolve a routable target for that session",
1113
1117
  };
1114
1118
  }
1119
+ if (result.reason === "internal_content_blocked") {
1120
+ const { getProactiveInternalContentBlockReason, proactiveContentBlockGuidance } = await Promise.resolve().then(() => __importStar(require("../senses/proactive-content-guard")));
1121
+ return { status: "blocked", detail: proactiveContentBlockGuidance(getProactiveInternalContentBlockReason(request.content)) };
1122
+ }
1115
1123
  if (result.reason === "send_error") {
1116
1124
  return {
1117
1125
  status: "failed",
@@ -316,7 +316,11 @@ async function routeSurfaceToFriend(agentName, friendId, content, queueItem, hin
316
316
  if (sent && teamsSendMayHaveGoneOut(sent))
317
317
  return { status: "unconfirmed", detail: unconfirmedDetail("Teams") };
318
318
  if (sent?.reason && CONTENT_REFUSALS.has(sent.reason)) {
319
- return { status: "failed", detail: (0, tool_error_code_1.withCode)(`blocked: Teams refused this text as internal (${sent.reason}); rewrite it as plain words for them`, "delivery-blocked") };
319
+ const held = (0, proactive_content_guard_1.getProactiveInternalContentBlockReason)(content);
320
+ const detail = (0, proactive_content_guard_1.isVerificationHoldReason)(held)
321
+ ? (0, proactive_content_guard_1.proactiveContentBlockGuidance)(held)
322
+ : `blocked: Teams refused this text as internal (${sent.reason}); rewrite it as plain words for them`;
323
+ return { status: "failed", detail: (0, tool_error_code_1.withCode)(detail, "delivery-blocked") };
320
324
  }
321
325
  return queueToSession(target, detail);
322
326
  };
@@ -405,7 +409,7 @@ async function routeSurfaceToFriend(agentName, friendId, content, queueItem, hin
405
409
  // Text the senses' content guard refuses goes nowhere, whichever chat is newest.
406
410
  const contentBlock = (0, proactive_content_guard_1.getProactiveInternalContentBlockReason)(content);
407
411
  if (contentBlock) {
408
- return { status: "failed", detail: (0, tool_error_code_1.withCode)(`blocked: this reads as internal status (${contentBlock}), so no chat sends it; rewrite it as plain words for them`, "delivery-blocked") };
412
+ return { status: "failed", detail: (0, tool_error_code_1.withCode)((0, proactive_content_guard_1.proactiveContentBlockGuidance)(contentBlock), "delivery-blocked") };
409
413
  }
410
414
  const outreach = await sendSpontaneousOutreach(friendId, allFriendSessions, spontaneousOutreachSenders(agentName, agentRoot, content, queueItem), Date.now());
411
415
  if ("sent" in outreach)
@@ -4370,6 +4370,9 @@ async function drainAndSendPendingBlueBubbles(deps = {}, pendingRoot) {
4370
4370
  reason: internalBlockReason,
4371
4371
  source: "pending_drain",
4372
4372
  });
4373
+ if ((0, proactive_content_guard_1.isVerificationHoldReason)(internalBlockReason)) {
4374
+ await (0, proactive_content_guard_1.returnHeldProactiveMessage)({ agentName: (0, identity_1.getAgentName)(), friendId, text: messageText, reason: internalBlockReason });
4375
+ }
4373
4376
  continue;
4374
4377
  }
4375
4378
  let friend;
@@ -1,6 +1,42 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.getProactiveInternalContentBlockReason = getProactiveInternalContentBlockReason;
37
+ exports.isVerificationHoldReason = isVerificationHoldReason;
38
+ exports.proactiveContentBlockGuidance = proactiveContentBlockGuidance;
39
+ exports.returnHeldProactiveMessage = returnHeldProactiveMessage;
4
40
  exports.emitProactiveInternalContentBlocked = emitProactiveInternalContentBlocked;
5
41
  const runtime_1 = require("../nerves/runtime");
6
42
  // ── Patterns ────────────────────────────────────────────────────
@@ -26,13 +62,70 @@ const PROACTIVE_INTERNAL_CONTENT_PATTERNS = [
26
62
  { reason: "heartbeat_status", pattern: /\bobligations?\s+showing\b/i },
27
63
  { reason: "heartbeat_status", pattern: /\bsame state\b/i },
28
64
  ];
65
+ // Asking the person to run a check an agent could run ("open X and tell me if it shows").
66
+ const ROUTINE_VERIFICATION_REQUEST_PATTERNS = [
67
+ /\b(?:could|can|would|will)\s+you\s+(?:please\s+)?(?:quickly\s+)?(?:open|check|look at|take a look at|test|try|verify|confirm)\b[^.?!]{0,160}\b(?:tell|let) me\b/i,
68
+ /\b(?:please\s+)?(?:open|check|look at|test|try)\b[^.?!]{0,120}\b(?:and\s+)?(?:tell|let) me(?: know)? (?:if|whether)\b/i,
69
+ /\b(?:tell|let) me(?: know)? (?:if|whether)\b[^.?!]{0,80}\b(?:show|shows|showing|load|loads|loading|work|works|render|renders|appear|appears)\b/i,
70
+ ];
71
+ // Only the person can do these, so asking is not a chore an agent could take.
72
+ const USER_ONLY_BLOCKER_PATTERN = /\b(?:sign[- ]?in|log[- ]?in|mfa|2fa|passkey|password|one[- ]time code|verification code|payment|invoice|approve|approval|authori[sz]e|consent|irreversible|permanent(?:ly)?|plug(?:ged)? in|power[- ]cycle|press the)\b/i;
73
+ // An untested result offered as the news.
74
+ const UNTESTED_CLAIM_PATTERNS = [
75
+ /\b(?:hasn'?t|has not|haven'?t|have not|not yet|never)\s+(?:been\s+)?(?:tested|verified|confirmed)\b/i,
76
+ /\b(?:untested|unverified|not (?:yet )?(?:tested|verified|confirmed))\b/i,
77
+ ];
78
+ const SHOULD_WORK_PATTERN = /\bshould (?:now )?(?:load|show|display|render|work|be (?:fixed|visible|working|showing))\b/i;
79
+ const VERIFIED_BY_SENDER_PATTERN = /\b(?:i|we)(?:'ve| have)?\s+(?:verified|confirmed|tested|checked)\b|\bverified:/i;
80
+ // The person asked for this update, so labelling it unverified is honest progress, not a delivery claim.
81
+ const REQUESTED_STATUS_PATTERN = /\b(?:as you asked|you asked (?:for|me)|you wanted (?:an )?update|status you asked)\b/i;
82
+ function getVerificationHoldReason(text) {
83
+ if (!USER_ONLY_BLOCKER_PATTERN.test(text) && ROUTINE_VERIFICATION_REQUEST_PATTERNS.some((p) => p.test(text))) {
84
+ return "routine_verification_request";
85
+ }
86
+ if (REQUESTED_STATUS_PATTERN.test(text))
87
+ return null;
88
+ if (UNTESTED_CLAIM_PATTERNS.some((p) => p.test(text)))
89
+ return "untested_delivery_claim";
90
+ if (SHOULD_WORK_PATTERN.test(text) && !VERIFIED_BY_SENDER_PATTERN.test(text))
91
+ return "untested_delivery_claim";
92
+ return null;
93
+ }
29
94
  // ── Public API ──────────────────────────────────────────────────
95
+ /**
96
+ * The reason a proactive (off-turn) send must not reach the person, or null.
97
+ * Replies inside a live turn never pass through here.
98
+ */
30
99
  function getProactiveInternalContentBlockReason(text) {
31
100
  for (const { reason, pattern } of PROACTIVE_INTERNAL_CONTENT_PATTERNS) {
32
101
  if (pattern.test(text))
33
102
  return reason;
34
103
  }
35
- return null;
104
+ return getVerificationHoldReason(text);
105
+ }
106
+ function isVerificationHoldReason(reason) {
107
+ return reason === "routine_verification_request" || reason === "untested_delivery_claim";
108
+ }
109
+ /** What the sending lane is told when the guard refuses its text. */
110
+ function proactiveContentBlockGuidance(reason) {
111
+ if (isVerificationHoldReason(reason)) {
112
+ return `held back, not sent (${reason}): do not ask them to run a routine check or report an untested result. Verify it yourself, then send the verified result with its proof, naming exactly what you verified (a mobile-web browser render is not proof for the native app). Only a step that needs them (sign-in, MFA, payment, contacting someone, an irreversible decision, a physical action) or a status update they asked for, labelled unverified ("as you asked"), may go to them unverified`;
113
+ }
114
+ return `blocked: this reads as internal status${reason ? ` (${reason})` : ""}, so no chat sends it; rewrite it as plain words for them`;
115
+ }
116
+ /**
117
+ * A held pending message has no live sender, so the guidance goes back to the agent's own
118
+ * private runtime, where its next wake reads it with the held text.
119
+ */
120
+ async function returnHeldProactiveMessage(params) {
121
+ const { queuePendingMessage, getPrivateRuntimePendingDir, PRIVATE_RUNTIME_PENDING } = await Promise.resolve().then(() => __importStar(require("../mind/pending")));
122
+ queuePendingMessage(getPrivateRuntimePendingDir(params.agentName), {
123
+ from: params.agentName,
124
+ ...PRIVATE_RUNTIME_PENDING,
125
+ content: `A message you queued for friend ${params.friendId} was held back before it reached them. ${proactiveContentBlockGuidance(params.reason)}.\n\nHeld text:\n${params.text}`,
126
+ timestamp: Date.now(),
127
+ mode: "reflect",
128
+ });
36
129
  }
37
130
  function emitProactiveInternalContentBlocked(params) {
38
131
  (0, runtime_1.emitNervesEvent)({
@@ -2126,6 +2126,9 @@ async function drainAndSendPendingTeams(store, botApi, pendingRoot) {
2126
2126
  reason: internalBlockReason,
2127
2127
  source: "pending_drain",
2128
2128
  });
2129
+ if ((0, proactive_content_guard_1.isVerificationHoldReason)(internalBlockReason)) {
2130
+ await (0, proactive_content_guard_1.returnHeldProactiveMessage)({ agentName: (0, identity_1.getAgentName)(), friendId, text: messageText, reason: internalBlockReason });
2131
+ }
2129
2132
  continue;
2130
2133
  }
2131
2134
  const sendResult = await sendProactiveTeamsMessageToSession({
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1535",
3
+ "version": "0.1.0-alpha.1537",
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.1535",
9
+ "version": "0.1.0-alpha.1537",
10
10
  "bundleDependencies": [
11
11
  "@ouro.bot/friends"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1535",
3
+ "version": "0.1.0-alpha.1537",
4
4
  "description": "Ouroboros, the agent harness: agents with durable memory that live where you talk (terminal, Teams, iMessage, mail, voice) and use real tools. Start with npx ouro.bot@latest.",
5
5
  "homepage": "https://ouroboros.bot/",
6
6
  "engines": {