@ouro.bot/cli 0.1.0-alpha.1649 → 0.1.0-alpha.1650

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,15 +1,26 @@
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.1650",
6
+ "changes": [
7
+ "Agents now see what a person can reach where a message lands. Each candidate target chat, the freshest-contact line and the friend context say it: iMessage or Telegram is their phone (tap an approval, pay, decide; no terminal or desktop browser), Teams may be desktop or phone so assume phone, CLI is a keyboard on this machine, MCP may be an agent acting for them, and voice means hands busy. \"Where i am\" now says the people the agent talks to are usually not at its machine, so screen work there is a visit to batch, not a tap. The `send_message` and `surface` descriptions say the same. This is prompt text only, with no hold or check."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1649",
12
+ "changes": [
13
+ "When the person reads a letter in iMessage, the mailbox now records it as seen. The sense tells the daemon about the read receipt, and the daemon checks the BlueBubbles server's own copy of the message: Ouro sent it, into the chat the letter was delivered to, and the server has a read time. `mailbox_list` then shows `waiting, seen 2h ago` and `mailbox_read` returns `seen: \"seen 2h ago, not answered\"`, so an agent can tell its person has read the letter and doesn't ask again. A read receipt that arrives while the sense is down is not replayed, so a letter can be read without being marked seen."
14
+ ]
15
+ },
16
+ {
17
+ "version": "0.1.0-alpha.1648",
6
18
  "changes": [
7
19
  "A letter filed from an agent's turn now remembers that turn's session. Once the person's answer is recorded, the daemon queues \"Ari answered L7: 2 Ouro — after lunch\" in that session, so the conversation that asked reads the answer on its next turn. A letter filed from the private runtime, the CLI or an MCP client has no session to return to. The agent's private runtime is told of every answer as before, and anyone waiting with `mailbox_wait` is released as before.",
8
20
  "Each try to return an answer writes a `returned` event. A try that fails is tried again after a minute, then after a doubling wait of at most an hour, until it succeeds.",
9
21
  "The session must be one the agent has really had turns in. A voice session gets no returned note, because a voice call drops notes older than a few minutes. The note comes from the mailbox, so Telegram's rule that drops an agent's own stale outreach doesn't remove it.",
10
22
  "The agent's private runtime note about an answer now names the session that asked, so the agent can raise the answer there sooner than that session's next turn.",
11
- "When another caller refiles a letter, the reply says the answer returns to the session that first filed it.",
12
- "When the person reads a letter in iMessage, the mailbox now records it as seen. The sense tells the daemon about the read receipt, and the daemon checks the BlueBubbles server's own copy of the message: Ouro sent it, into the chat the letter was delivered to, and the server has a read time. `mailbox_list` then shows `waiting, seen 2h ago` and `mailbox_read` returns `seen: \"seen 2h ago, not answered\"`, so an agent can tell its person has read the letter and doesn't ask again. A read receipt that arrives while the sense is down is not replayed, so a letter can be read without being marked seen."
23
+ "When another caller refiles a letter, the reply says the answer returns to the session that first filed it."
13
24
  ]
14
25
  },
15
26
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1649",
2
+ "runtimeVersion": "0.1.0-alpha.1650",
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.1649</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1650</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -685,11 +685,13 @@ function formatActiveWorkFrame(frame, options) {
685
685
  const lines = ["## what i'm holding"];
686
686
  lines.push("this is my top-level live world-state right now. private-runtime work, coding lanes, other sessions, and return obligations all belong inside this picture.");
687
687
  lines.push("if older checkpoints elsewhere in the transcript disagree with this picture, this picture wins.");
688
- const friendContactTiming = (0, session_activity_1.describeSessionActivityTiming)((0, session_activity_1.selectFreshestFriendFacingActivity)(frame.friendActivity?.allOtherLiveSessions ?? []), { prefix: "freshest friend-facing contact" });
688
+ const freshestContact = (0, session_activity_1.selectFreshestFriendFacingActivity)(frame.friendActivity?.allOtherLiveSessions ?? []);
689
+ const friendContactTiming = (0, session_activity_1.describeSessionActivityTiming)(freshestContact, { prefix: "freshest friend-facing contact" });
689
690
  if (friendContactTiming) {
691
+ const reach = (0, target_resolution_1.describeChannelReach)(freshestContact.channel);
690
692
  lines.push("");
691
693
  lines.push("## contact timing");
692
- lines.push(`- ${friendContactTiming}`);
694
+ lines.push(`- ${friendContactTiming}${reach ? `; reach there: ${reach}` : ""}`);
693
695
  }
694
696
  const primaryObligation = findPrimaryOpenObligation(frame);
695
697
  const currentSessionObligation = findCurrentSessionOpenObligation(frame);
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.describeChannelReach = describeChannelReach;
3
4
  exports.listTargetSessionCandidates = listTargetSessionCandidates;
4
5
  exports.formatTargetSessionCandidates = formatTargetSessionCandidates;
5
6
  const friends_1 = require("@ouro.bot/friends");
@@ -23,6 +24,23 @@ function synthesizeFriendRecord(candidate) {
23
24
  schemaVersion: 1,
24
25
  };
25
26
  }
27
+ const PHONE_REACH = "they can tap an approval, pay or decide; no terminal, desktop browser or other machine";
28
+ /** What a person can reach where a message on this channel lands: the one source for every prompt line and tool description that names it. */
29
+ function describeChannelReach(channel) {
30
+ if (channel === "bluebubbles")
31
+ return `their phone (iMessage): ${PHONE_REACH}`;
32
+ if (channel === "telegram")
33
+ return `their phone (Telegram): ${PHONE_REACH}`;
34
+ if (channel === "teams")
35
+ return `Teams, desktop or phone, unknown, so assume phone: ${PHONE_REACH}`;
36
+ if (channel === "cli")
37
+ return "a keyboard on this machine";
38
+ if (channel === "mcp")
39
+ return "a dev tool; the sender may be an agent acting for the person, who isn't necessarily there";
40
+ if (channel === "voice")
41
+ return "a call, hands busy: nothing that needs a screen";
42
+ return "";
43
+ }
26
44
  function deliveryPriority(mode) {
27
45
  if (mode === "deliver_now")
28
46
  return 0;
@@ -121,6 +139,9 @@ function formatTargetSessionCandidates(candidates) {
121
139
  lines.push(`- ${candidate.friendName} [${candidate.friendId}] via ${candidate.channel}/${candidate.key}`);
122
140
  lines.push(` trust: ${candidate.trust.level} (${candidate.trust.basis}) — ${candidate.trust.summary}`);
123
141
  lines.push(` delivery: ${candidate.delivery.mode} — ${candidate.delivery.reason}`);
142
+ const reach = describeChannelReach(candidate.channel);
143
+ if (reach)
144
+ lines.push(` reach: ${reach}`);
124
145
  lines.push(` snapshot: ${candidate.snapshot}`);
125
146
  }
126
147
  return lines.join("\n");
@@ -83,6 +83,7 @@ const first_impressions_1 = require("./first-impressions");
83
83
  const desk_section_1 = require("./desk-section");
84
84
  const where_am_i_1 = require("./where-am-i");
85
85
  const session_activity_1 = require("../heart/session-activity");
86
+ const target_resolution_1 = require("../heart/target-resolution");
86
87
  const active_work_1 = require("../heart/active-work");
87
88
  const commitments_1 = require("../heart/commitments");
88
89
  const await_loader_1 = require("../heart/awaiting/await-loader");
@@ -1203,8 +1204,9 @@ function contextSection(context, options) {
1203
1204
  traits.push("streaming");
1204
1205
  if (ch.supportsRichCards)
1205
1206
  traits.push("rich cards");
1207
+ const reach = (0, target_resolution_1.describeChannelReach)(ch.channel);
1206
1208
  /* v8 ignore next -- empty-traits branch unreachable: streaming/no-streaming always adds a trait @preserve */
1207
- lines.push(`channel: ${ch.channel}${traits.length ? ` (${traits.join(", ")})` : ""}`);
1209
+ lines.push(`channel: ${ch.channel}${traits.length ? ` (${traits.join(", ")})` : ""}${reach ? `; reach: ${reach}` : ""}`);
1208
1210
  // Friend record (guaranteed non-null here -- checked above)
1209
1211
  const friend = context.friend;
1210
1212
  // Always-on directives (permanent in contextSection, never gated by token threshold)
@@ -105,6 +105,7 @@ function renderWhereAmI(presence, self, nowMs = Date.now()) {
105
105
  const lines = [
106
106
  "## where i am",
107
107
  `i am on ${self.name} (${self.role}), ${self.os}, at ${self.location}. i am one named agent present on ${presence.block.machines.length} machine${presence.block.machines.length === 1 ? "" : "s"}; each presence runs on its own machine and we share this bundle through git.`,
108
+ `the people i talk to are usually not at ${self.name}: anything that needs its screen (System Settings, a dialog, a desktop browser) is a visit, not a tap, so i batch it and say so.`,
108
109
  ];
109
110
  if (peers.length === 0) {
110
111
  lines.push("my peers: none; this is my only presence.");
@@ -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. 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.",
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. Ask for what they can reach where it lands: iMessage or Telegram is their phone (tap, pay, decide; no terminal or desktop browser); Teams may be either, so assume phone; CLI is a keyboard on this machine; MCP may be an agent acting for them.",
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. 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.",
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. Ask for what they can reach where it lands: iMessage or Telegram is their phone (tap, pay, decide; no terminal or desktop browser); Teams may be either, so assume phone; CLI is a keyboard on this machine; MCP may be an agent acting for them.",
103
103
  parameters: {
104
104
  type: "object",
105
105
  properties: {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1649",
3
+ "version": "0.1.0-alpha.1650",
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.1649",
9
+ "version": "0.1.0-alpha.1650",
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.1649",
3
+ "version": "0.1.0-alpha.1650",
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": {