@ouro.bot/cli 0.1.0-alpha.1624 → 0.1.0-alpha.1625

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,16 +1,27 @@
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.1625",
6
+ "changes": [
7
+ "Agents no longer have messages held back for asking a person to do something. Version 0.1.0-alpha.1618 held any off-turn message asking for keyboard or machine work, and any \"you need to sign in\" message that `gh auth status` showed was false. This version removes both holds, along with the older hold on \"please check this for me\" requests. The rule now lives where agents read it, in the `send_message` and `surface` tool descriptions and the base prompt: ask a person only for what needs their body (a phone approval, their card, an irreversible call that's theirs, the vault's unlock secret), and do the rest under standing authority, checking a sign-in claim before passing it on. Untested delivery claims are still held and returned to the sender to verify."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1624",
6
12
  "changes": [
7
- "Update the Ouro UI files to Ouro UI v1.3.587.",
8
13
  "New `ouro mailbox handle set <person> <handle>`: the owner names the phone number (with its country code) or email address whose iMessages answer a person's letters. It is a CLI command only; no MCP or in-turn tool can set it. Each letter keeps the handle that was set when it was filed.",
9
14
  "Letters now have a plain-text chat form: code, sender and subject, the reason only you can answer, links by label, the \"Options (from Ouro):\" block, and the exact replies that answer it, such as `Reply \"L7 1\" or \"L7 2\".` A line anchor such as `#L12` is dropped from a link so it can't be mistaken for a letter code. Nothing sends it yet.",
10
15
  "`ouro mailbox handle set` only accepts the person letters actually go to (the family record naming this machine's owner), and refuses with `not-recipient` otherwise. It won't overwrite a damaged answering file (`answering-unreadable`), so nobody else's handle is lost.",
11
16
  "A letter's body, its \"why only you\" line or a link label can no longer start with a number such as \"1 \" or \"2.\", so sender text can't pass for one of Ouro's option lines."
12
17
  ]
13
18
  },
19
+ {
20
+ "version": "0.1.0-alpha.1623",
21
+ "changes": [
22
+ "Update the Ouro UI files to Ouro UI v1.3.587."
23
+ ]
24
+ },
14
25
  {
15
26
  "version": "0.1.0-alpha.1622",
16
27
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1624",
2
+ "runtimeVersion": "0.1.0-alpha.1625",
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.1624</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1625</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -1179,7 +1179,7 @@ exports.TALKING_WITH_PEOPLE_GUIDANCE = `## talking with people
1179
1179
 
1180
1180
  my voice is the one in my identity, in every chat, however much formal text i've been reading. reports, task cards, changelogs, notices and agent intake are written in report-speak; that register belongs on formal surfaces (PRs, task cards, docs, emails to strangers, handoffs between agents), and i don't carry it into chat: no bolded headers or status sections in a chat reply. a notice or tool output isn't the body of my reply; my own words come first.
1181
1181
 
1182
- i ask a person only for what only they can do: passkeys, 2FA, money, irreversible acts. i collect those asks and send them together with the next message i'm already sending, so they can do them in one sitting, rather than one at a time or held for a clock window. an item marked now goes out at once. when something they can try lands, i tell them "Ready: <what>, at <where>" as soon as it lands. when other agents hand me items for a person, a repeat with the same dedupe key and the same ask is dropped; the same key with a changed ask replaces the old one and goes on as new.`;
1182
+ i ask a person only for what needs their body: a number or prompt to approve on their own phone, their card, an irreversible call that's theirs, or the vault's unlock secret. i have standing authority, so the rest is mine: sign-ins with the password from my vault, codes in their mail, prompts, terminals and machines, which they're usually nowhere near. before i pass on "you need to sign in" i check it (\`gh auth status\` for gh) and drop it if it's false, and an agent that hands me an ask that isn't the person's gets it back: do it yourself, you have standing authority. i collect those asks and send them together with the next message i'm already sending, so they can do them in one sitting, rather than one at a time or held for a clock window. an item marked now goes out at once. when something they can try lands, i tell them "Ready: <what>, at <where>" as soon as it lands. when other agents hand me items for a person, a repeat with the same dedupe key and the same ask is dropped; the same key with a changed ask replaces the old one and goes on as new.`;
1183
1183
  function contextSection(context, options) {
1184
1184
  if (!context)
1185
1185
  return "";
@@ -822,7 +822,7 @@ exports.sessionToolDefinitions = [
822
822
  type: "function",
823
823
  function: {
824
824
  name: "send_message",
825
- description: "send a message to a friend's session. Delivers at once when authorized from a trusted live chat; otherwise reports queued, blocked or failed. For user-requested private-return work use ponder, not friendId=self.",
825
+ description: "send a message to a friend's session. Delivers at once when authorized from a trusted live chat; otherwise reports queued, blocked or failed. For user-requested private-return work use ponder, not friendId=self. Ask a person only for what needs their body: a number or prompt to approve on their own phone, their card, an irreversible call that is theirs. Sign-ins (password from your vault), codes in their mail, prompts, terminals and machines are yours under standing authority; check a 'you need to sign in' claim (gh auth status) before passing it on.",
826
826
  parameters: {
827
827
  type: "object",
828
828
  properties: {
@@ -99,7 +99,7 @@ exports.surfaceToolDef = {
99
99
  type: "function",
100
100
  function: {
101
101
  name: "surface",
102
- description: "return a ready thought to a friend or active session; content carrying internal markers is refused. pass delegationId to address a held thought (see your attention queue above): it goes back to the session that asked. pass friendId for spontaneous outreach: to a person it sends now on their newest iMessage, Telegram or Teams chat active in the last 30 days, trying the next if one does not send, and skipping MCP, CLI and agent sessions, which they don't read; to an agent friend it goes to that agent's newest session. if a send fails partway it comes back unconfirmed: it may have reached them, so don't send it again. if none sends, it comes back deferred: not sent, saved for their next message, and the result says why and what else reaches them. set channel=voice only when you intentionally want a live phone call; content becomes the call reason/opening context. set channel=teams to tell a friend on Teams now (it sends at once where your Teams sense runs, otherwise waits in their Teams chat). does not end your turn.",
102
+ description: "return a ready thought to a friend or active session; content carrying internal markers is refused. pass delegationId to address a held thought (see your attention queue above): it goes back to the session that asked. pass friendId for spontaneous outreach: to a person it sends now on their newest iMessage, Telegram or Teams chat active in the last 30 days, trying the next if one does not send, and skipping MCP, CLI and agent sessions, which they don't read; to an agent friend it goes to that agent's newest session. if a send fails partway it comes back unconfirmed: it may have reached them, so don't send it again. if none sends, it comes back deferred: not sent, saved for their next message, and the result says why and what else reaches them. set channel=voice only when you intentionally want a live phone call; content becomes the call reason/opening context. set channel=teams to tell a friend on Teams now (it sends at once where your Teams sense runs, otherwise waits in their Teams chat). does not end your turn. Ask a person only for what needs their body: a number or prompt to approve on their own phone, their card, an irreversible call that is theirs. Sign-ins (password from your vault), codes in their mail, prompts, terminals and machines are yours under standing authority; check a 'you need to sign in' claim (gh auth status) before passing it on.",
103
103
  parameters: {
104
104
  type: "object",
105
105
  properties: {
@@ -38,7 +38,6 @@ exports.isReturnToSenderReason = isReturnToSenderReason;
38
38
  exports.proactiveContentBlockGuidance = proactiveContentBlockGuidance;
39
39
  exports.returnHeldProactiveMessage = returnHeldProactiveMessage;
40
40
  exports.emitProactiveInternalContentBlocked = emitProactiveInternalContentBlocked;
41
- const child_process_1 = require("child_process");
42
41
  const runtime_1 = require("../nerves/runtime");
43
42
  // ── Patterns ────────────────────────────────────────────────────
44
43
  const PROACTIVE_INTERNAL_CONTENT_PATTERNS = [
@@ -63,54 +62,6 @@ const PROACTIVE_INTERNAL_CONTENT_PATTERNS = [
63
62
  { reason: "heartbeat_status", pattern: /\bobligations?\s+showing\b/i },
64
63
  { reason: "heartbeat_status", pattern: /\bsame state\b/i },
65
64
  ];
66
- // ── Asks that aren't theirs ─────────────────────────────────────
67
- // An ask reaches a person only when it names something only their body can do: approve a number or prompt on their own
68
- // phone, pay with their card, or make an irreversible call that is theirs. The rest goes back to the sender.
69
- // The sentence asks them to act: it opens with a command, or asks "can you", "please", "you need to".
70
- const ASK_FRAME = /^\s*(?:[-*\u2022]\s*)?(?:\w+[:,]\s*)?(?:please\s+)?(?:run|type|press|paste|enter|sign|log|accept|make|open|check|click|restart|grab|copy|create|grant)\b|\b(?:(?:can|could|would|will) you|please|you(?:'ll)? (?:need|have) to|needs? you to|ask(?:ing)? you to|the (?:human|owner) (?:needs?|has) to)\b/i;
71
- // Keyboard and terminal work, codes in their mail, a sign-in or a setting: never theirs.
72
- const AT_A_KEYBOARD = [
73
- /\b(?:run|type|paste|enter)\s+(?:`[^`\n]+`|(?:gh|ouro|npm|npx|git|claude|brew|bw)\b)/i,
74
- /\b(?:in|from|at) (?:a|your|the) (?:terminal|shell|command line)\b/i,
75
- /\bpress(?:ing)? (?:\d+|enter|return|y(?:es)?|no?)\b|\bat the [^.?!\n]{0,30}\bprompt\b/i,
76
- /\b(?:paste|send|give|forward|tell|read|grab|copy)\b[^.?!\n]{0,40}\bcodes?\b(?!\s+review)/i,
77
- /(?:^\s*|\b(?:you(?:'ll)? (?:need|have) to|(?:can|could|would) you|please|needs? you to)\s+)(?:re-?)?(?:sign|log)\s*-?\s*(?:in|into|on)\b|\bre-?(?:auth(?:enticate)?|login)\b|\b(?:gh auth (?:login|refresh)|ouro up)\b/i,
78
- /\baccept\b[^.?!\n]{0,40}\b(?:agreement|terms|tos|eula|licen[cs]e)\b|\bmake\b[^.?!\n]{0,40}\b(?:public|private)\b/i,
79
- /\b(?:by hand|manually|system settings|full disk access)\b|\bgrant\b[^.?!\n]{0,30}\baccess\b/i,
80
- /\b(?:restart|relaunch|re-?run|rotate|click|merge)\b|\b(?:create|generate)\b[^.?!\n]{0,40}\b(?:token|api key)\b/i,
81
- ];
82
- // A particular machine: theirs only when the sentence is about a phone approval or a payment.
83
- const ON_A_MACHINE = /\b(?:in|on) (?:edge|chrome|safari|firefox|the browser|(?:the |your )?(?:mac(?: mini)?|macbook|laptop|desktop|computer)|[\w-]+-host)\b/i;
84
- // A check an agent can run, asked for in its own words ("open X and tell me if it shows").
85
- const ROUTINE_CHECKS = [
86
- /\b(?:open|check|look at|test|try|verify|confirm)\b[^.?!]{0,160}\b(?:tell|let) me\b(?![^.?!]*\bworks? for you\b)/i,
87
- /\b(?:tell|let) me(?: know)? (?:if|whether)\b[^.?!]{0,80}\b(?:show|shows|showing|load|loads|loading|works?(?! for you)|render|renders|appear|appears)\b/i,
88
- /\b(?:can|could) you (?:check|see|look at)\b[^.?!\n]{0,40}\b(?:whether|logs?)\b/i,
89
- ];
90
- const BODY_ONLY = /\b(?:passkey|face id|touch id|github mobile|authenticator|(?:approve|tap|confirm)\b[^.?!\n]{0,40}\b(?:on|in) (?:your|their|his|her) (?:own )?phone|tap \d+|pay|payment|(?:your|their|his|her) card|irreversible|can'?t be undone|permanently)\b/i;
91
- // A sign-in ask whose claim the agent can check, and the command that checks it.
92
- const SIGN_IN_CLAIMS = [
93
- { ask: /\bgh auth (?:login|refresh)\b|\b(?:sign|log)\s*-?\s*(?:in|into)\s+(?:to\s+)?(?:gh|the github cli)\b/i, command: "gh", args: ["auth", "status"] },
94
- ];
95
- /** The first sentence that asks them for something that isn't theirs to do, or null. */
96
- function askNotTheirs(text) {
97
- // Only they hold the vault's own unlock secret.
98
- return text.split(/(?<=[.?!])\s+|\n+/).find((sentence) => !/\bouro vault (?:unlock|create)\b/i.test(sentence) && ((ASK_FRAME.test(sentence) && AT_A_KEYBOARD.some((p) => p.test(sentence)))
99
- || (!BODY_ONLY.test(sentence) && ((ASK_FRAME.test(sentence) && ON_A_MACHINE.test(sentence)) || ROUTINE_CHECKS.some((p) => p.test(sentence)))))) ?? null;
100
- }
101
- /** True when the sign-in the ask wants is already done, by the claim's own status command. */
102
- function isSignInClaimFalse(ask) {
103
- const claim = SIGN_IN_CLAIMS.find((c) => c.ask.test(ask));
104
- if (!claim)
105
- return false;
106
- try {
107
- (0, child_process_1.execFileSync)(claim.command, claim.args, { stdio: "ignore", timeout: 5_000 });
108
- return true;
109
- }
110
- catch {
111
- return false;
112
- }
113
- }
114
65
  // An untested result offered as the news.
115
66
  const UNTESTED_CLAIM_PATTERNS = [
116
67
  /\b(?:hasn'?t|has not|haven'?t|have not|not yet|never)\s+(?:been\s+)?(?:tested|verified|confirmed)\b/i,
@@ -120,10 +71,7 @@ const SHOULD_WORK_PATTERN = /\bshould (?:now )?(?:load|show|display|render|work|
120
71
  const VERIFIED_BY_SENDER_PATTERN = /\b(?:i|we)(?:'ve| have)?\s+(?:verified|confirmed|tested|checked)\b|\bverified:/i;
121
72
  // The person asked for this update, so labelling it unverified is honest progress, not a delivery claim.
122
73
  const REQUESTED_STATUS_PATTERN = /\b(?:as you asked|you asked (?:for|me)|you wanted (?:an )?update|status you asked)\b/i;
123
- function getVerificationHoldReason(text) {
124
- const ask = askNotTheirs(text);
125
- if (ask)
126
- return isSignInClaimFalse(ask) ? "false_sign_in_claim" : "not_theirs_to_do";
74
+ function getUntestedClaimReason(text) {
127
75
  if (REQUESTED_STATUS_PATTERN.test(text))
128
76
  return null;
129
77
  if (UNTESTED_CLAIM_PATTERNS.some((p) => p.test(text)))
@@ -142,20 +90,14 @@ function getProactiveInternalContentBlockReason(text) {
142
90
  if (pattern.test(text))
143
91
  return reason;
144
92
  }
145
- return getVerificationHoldReason(text);
93
+ return getUntestedClaimReason(text);
146
94
  }
147
- /** Reasons the sender is told about, so it can do the work itself instead of asking. */
95
+ /** Reasons the sender is told about, so it can verify the result itself. */
148
96
  function isReturnToSenderReason(reason) {
149
- return reason === "not_theirs_to_do" || reason === "false_sign_in_claim" || reason === "untested_delivery_claim";
97
+ return reason === "untested_delivery_claim";
150
98
  }
151
99
  /** What the sending lane is told when the guard refuses its text. */
152
100
  function proactiveContentBlockGuidance(reason) {
153
- if (reason === "not_theirs_to_do") {
154
- return "held back, not sent (not_theirs_to_do): do it yourself; you have standing authority. An ask reaches them only when their body must do it: approve a number or prompt on their own phone (2FA, GitHub Mobile, passkey), pay with their card, or an irreversible call that is theirs. Keyboard and terminal steps, anything on a particular machine, codes in their mail, sign-ins (the password is in your vault) and checks you can run are yours; when a sign-in ends in a phone prompt, send only the number to approve";
155
- }
156
- if (reason === "false_sign_in_claim") {
157
- return "dropped, not sent (false_sign_in_claim): its status command says that sign-in is already done (for gh, `gh auth status` passes), so there is nothing to ask them; retry what failed and read its real error";
158
- }
159
101
  if (reason === "untested_delivery_claim") {
160
102
  return "held back, not sent (untested_delivery_claim): do not 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). A status update they asked for may go unverified if it says so (\"as you asked\")";
161
103
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1624",
3
+ "version": "0.1.0-alpha.1625",
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.1624",
9
+ "version": "0.1.0-alpha.1625",
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.1624",
3
+ "version": "0.1.0-alpha.1625",
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": {