@ouro.bot/cli 0.1.0-alpha.1298 → 0.1.0-alpha.1299

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.1299",
6
+ "changes": [
7
+ "Every ouro a2a, gateway, desk, task, presence, voice and BlueBubbles command has an Ouro AX card, so an agent reads when to use it and how it fails."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1298",
6
12
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1298",
2
+ "runtimeVersion": "0.1.0-alpha.1299",
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.1298</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1299</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -11,7 +11,7 @@ const resolution_proof_1 = require("./resolution-proof");
11
11
  const NEEDS_ROOT = "refusing: this command writes root-owned files the agent cannot forge, so it must run as root on the agent's host (for example docker exec as root, or sudo). Nothing was written.";
12
12
  function requireRoot(ctx) {
13
13
  if (!ctx.isRoot)
14
- throw new Error(NEEDS_ROOT);
14
+ throw Object.assign(new Error(NEEDS_ROOT), { code: "needs-root" });
15
15
  }
16
16
  async function requireFriend(ctx, friendId) {
17
17
  const friend = await ctx.store.get(friendId);
@@ -1,20 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.A2A_COMMANDS = void 0;
4
+ const cards_1 = require("./cards");
4
5
  exports.A2A_COMMANDS = [
5
- { name: "gateway serve", effect: "others", summary: "Serve the gateway that other agents connect to." },
6
- { name: "a2a card", effect: "private", readOnly: true, summary: "Show the agent's A2A card." },
7
- { name: "a2a delegated-commands grant", effect: "others", summary: "Let a friend's agent run delegated commands." },
8
- { name: "a2a delegated-commands list", effect: "private", readOnly: true, summary: "List the delegated command grants." },
9
- { name: "a2a delegated-commands revoke", effect: "private", summary: "Revoke a delegated command grant." },
10
- { name: "a2a escalation grant", effect: "others", summary: "Let a friend escalate to the person." },
11
- { name: "a2a escalation list", effect: "private", readOnly: true, summary: "List escalation grants." },
12
- { name: "a2a escalation revoke", effect: "private", summary: "Revoke an escalation grant." },
13
- { name: "a2a identity", effect: "private", readOnly: true, summary: "Show the agent's A2A identity." },
14
- { name: "a2a message", effect: "others", summary: "Send an A2A message to another agent." },
15
- { name: "a2a onboard", effect: "private", summary: "Onboard another agent from its card." },
16
- { name: "a2a outbox ack", effect: "others", summary: "Acknowledge messages another agent sent." },
17
- { name: "a2a outbox list", effect: "private", readOnly: true, summary: "List the A2A outbox." },
18
- { name: "a2a outbox resolve", effect: "others", summary: "Resolve a report another agent filed." },
19
- { name: "a2a serve", effect: "others", summary: "Serve the agent's A2A endpoint to other agents." },
6
+ { name: "gateway serve", effect: "others", summary: "Serve the gateway that other agents connect to.", ax: { id: "cli:gateway serve", group: "a2a", effect: "write", when: "Run the credit gateway in the foreground: agents call it with one master key, and it spends upstream keys from --keys-dir in order.", errors: [(0, cards_1.usageError)("gateway serve", "needs --keys-dir <dir>.", "Pass the folder holding the upstream Anthropic keys."), (0, cards_1.needsWhy)("gateway serve", "serves model access to other agents"), (0, cards_1.unknownFlag)("gateway serve")] } },
7
+ { name: "a2a card", effect: "private", readOnly: true, summary: "Show the agent's A2A card.", ax: { id: "cli:a2a card", group: "a2a", effect: "read", when: "Get the public card other agents fetch to reach this one: its name, skills and JSON-RPC endpoint under --base-url.", errors: [(0, cards_1.unknownFlag)("a2a card"), ...(0, cards_1.agentErrors)("a2a card")] } },
8
+ { name: "a2a delegated-commands grant", effect: "others", summary: "Let a friend's agent run delegated commands.", ax: { id: "cli:a2a delegated-commands grant", group: "a2a", effect: "consequential", confirm: "The friend's agent can run delegated commands as this agent until revoked or until --expires passes.", when: "Let one friend's agent, pinned by its --did, run commands here as this agent, optionally until --expires; run as root.", errors: [(0, cards_1.usageError)("a2a delegated-commands grant", "needs --friend <id> and --did <did:key>, and --expires in the future.", "Pass the friend id, its host's DID, and an ISO date such as 2027-01-01T00:00:00Z."), { code: "needs-root", means: "ouro a2a delegated-commands grant writes root-owned trust files, and this shell isn't root.", fix: "Ask the person to run it as root on the agent's host, such as with sudo or docker exec as root." }, (0, cards_1.needsWhy)("a2a delegated-commands grant", "lets another agent act as this one"), (0, cards_1.unknownFlag)("a2a delegated-commands grant"), ...(0, cards_1.agentErrors)("a2a delegated-commands grant")] } },
9
+ { name: "a2a delegated-commands list", effect: "private", readOnly: true, summary: "List the delegated command grants.", ax: { id: "cli:a2a delegated-commands list", group: "a2a", effect: "read", when: "See which friends' agents may run commands here as this agent, each grant's pinned DID and when it expires.", errors: [(0, cards_1.unknownFlag)("a2a delegated-commands list"), ...(0, cards_1.agentErrors)("a2a delegated-commands list")] } },
10
+ { name: "a2a delegated-commands revoke", effect: "private", summary: "Revoke a delegated command grant.", ax: { id: "cli:a2a delegated-commands revoke", group: "a2a", effect: "write", when: "Take back a friend's agent's right to run commands as this one, before its grant expires; run as root.", errors: [(0, cards_1.usageError)("a2a delegated-commands revoke", "needs --friend <id>.", "Pass the friend id that ouro a2a delegated-commands list shows."), { code: "needs-root", means: "ouro a2a delegated-commands revoke changes root-owned trust files, and this shell isn't root.", fix: "Ask the person to run it as root on the agent's host, such as with sudo or docker exec as root." }, (0, cards_1.unknownFlag)("a2a delegated-commands revoke"), ...(0, cards_1.agentErrors)("a2a delegated-commands revoke")] } },
11
+ { name: "a2a escalation grant", effect: "others", summary: "Let a friend escalate to the person.", ax: { id: "cli:a2a escalation grant", group: "a2a", effect: "consequential", confirm: "The friend's agent can interrupt the person through this agent until the grant is revoked.", when: "Let one friend's agent, pinned by its --did, escalate to the person through this agent; run as root on the agent's host.", errors: [(0, cards_1.usageError)("a2a escalation grant", "needs --friend <id> and --did <did:key>.", "Pass the friend id and the DID its host prints with ouro a2a identity."), { code: "needs-root", means: "ouro a2a escalation grant writes root-owned trust files, and this shell isn't root.", fix: "Ask the person to run it as root on the agent's host, such as with sudo or docker exec as root." }, (0, cards_1.needsWhy)("a2a escalation grant", "lets another agent reach the person"), (0, cards_1.unknownFlag)("a2a escalation grant"), ...(0, cards_1.agentErrors)("a2a escalation grant")] } },
12
+ { name: "a2a escalation list", effect: "private", readOnly: true, summary: "List escalation grants.", ax: { id: "cli:a2a escalation list", group: "a2a", effect: "read", when: "See which friends' agents may currently escalate to the person through this agent, and the DID each is pinned to.", errors: [(0, cards_1.unknownFlag)("a2a escalation list"), ...(0, cards_1.agentErrors)("a2a escalation list")] } },
13
+ { name: "a2a escalation revoke", effect: "private", summary: "Revoke an escalation grant.", ax: { id: "cli:a2a escalation revoke", group: "a2a", effect: "write", when: "Stop a friend's agent from escalating to the person through this agent; run as root on the agent's host.", errors: [(0, cards_1.usageError)("a2a escalation revoke", "needs --friend <id>.", "Pass the friend id that ouro a2a escalation list shows."), { code: "needs-root", means: "ouro a2a escalation revoke changes root-owned trust files, and this shell isn't root.", fix: "Ask the person to run it as root on the agent's host, such as with sudo or docker exec as root." }, (0, cards_1.unknownFlag)("a2a escalation revoke"), ...(0, cards_1.agentErrors)("a2a escalation revoke")] } },
14
+ { name: "a2a identity", effect: "private", summary: "Show the agent's A2A identity.", ax: { id: "cli:a2a identity", group: "a2a", effect: "write", when: "Print this host's own DID, the key another agent's owner pins when granting this agent escalation or commands; the first run creates its key file.", errors: [(0, cards_1.unknownFlag)("a2a identity")] } },
15
+ { name: "a2a message", effect: "others", summary: "Send an A2A message to another agent.", ax: { id: "cli:a2a message", group: "a2a", effect: "consequential", confirm: "The other agent gets the text at once and may act on it; it can't be taken back.", when: "Send text to another agent at the card URL given by --to, in an ongoing --context or as a --delegated command.", errors: [(0, cards_1.usageError)("a2a message", "needs --to <card-url> and --text <text>.", "Pass the peer's card URL with --to and the message with --text."), (0, cards_1.needsWhy)("a2a message", "sends a message another agent acts on"), (0, cards_1.unknownFlag)("a2a message")] } },
16
+ { name: "a2a onboard", effect: "private", summary: "Onboard another agent from its card.", ax: { id: "cli:a2a onboard", group: "a2a", effect: "write", when: "Add another agent as a friend from the card at its --card-url, or by --did and --name when it publishes no card.", errors: [(0, cards_1.usageError)("a2a onboard", "needs --card-url, or --did with --name.", "Pass the peer's card URL, or its DID from ouro a2a identity on its host plus a name."), (0, cards_1.unknownFlag)("a2a onboard"), ...(0, cards_1.agentErrors)("a2a onboard")] } },
17
+ { name: "a2a outbox ack", effect: "others", summary: "Acknowledge messages another agent sent.", ax: { id: "cli:a2a outbox ack", group: "a2a", effect: "write", when: "Tell the peer at --to that the messages in --ids arrived, so it stops offering them again.", errors: [(0, cards_1.usageError)("a2a outbox ack", "needs --to <card-url> and --ids <id,id,...>.", "Pass the ids from ouro a2a outbox list, comma separated."), (0, cards_1.needsWhy)("a2a outbox ack", "tells another agent what arrived"), (0, cards_1.unknownFlag)("a2a outbox ack")] } },
18
+ { name: "a2a outbox list", effect: "private", summary: "List the A2A outbox.", ax: { id: "cli:a2a outbox list", group: "a2a", effect: "write", when: "See what the peer at --to has queued for this agent since the --since cursor, before acking or resolving it; it signs a request to that peer and keeps a reply ledger.", errors: [(0, cards_1.usageError)("a2a outbox list", "needs --to <card-url>.", "Pass the peer's card URL with --to."), (0, cards_1.unknownFlag)("a2a outbox list")] } },
19
+ { name: "a2a outbox resolve", effect: "others", summary: "Resolve a report another agent filed.", ax: { id: "cli:a2a outbox resolve", group: "a2a", effect: "write", when: "Close a report the peer at --to filed, naming the --version that fixed it and a --note it can read.", errors: [(0, cards_1.usageError)("a2a outbox resolve", "needs --to, --report, --version and --note.", "Pass the report id from ouro a2a outbox list with the version and a one-line note."), (0, cards_1.needsWhy)("a2a outbox resolve", "tells another agent its report is closed"), (0, cards_1.unknownFlag)("a2a outbox resolve")] } },
20
+ { name: "a2a serve", effect: "others", summary: "Serve the agent's A2A endpoint to other agents.", ax: { id: "cli:a2a serve", group: "a2a", effect: "write", when: "Run this agent's endpoint in the foreground so other agents can message it at --host and --port until stopped.", errors: [(0, cards_1.needsWhy)("a2a serve", "opens the agent to messages from other agents"), (0, cards_1.unknownFlag)("a2a serve"), ...(0, cards_1.agentErrors)("a2a serve")] } },
21
+ { name: "a2a", effect: "private", readOnly: true, summary: "The commands for talking with other agents.", ax: { id: "cli:a2a", group: "a2a", effect: "read", when: "Names the ways this agent meets other agents: its public card, onboarding peers, messages, outboxes and trust grants.", errors: [(0, cards_1.needsSubcommand)("a2a", "card, onboard, serve, message, identity, outbox, escalation, delegated-commands"), (0, cards_1.unknownFlag)("a2a")] } },
22
+ { name: "a2a outbox", effect: "private", readOnly: true, summary: "The commands for what other agents sent this one.", ax: { id: "cli:a2a outbox", group: "a2a", effect: "read", when: "Names the three outbox actions for messages and reports a peer queued for this agent: list, ack and resolve.", errors: [(0, cards_1.usageError)("a2a outbox", "needs list, ack or resolve, and --to <card-url>.", "Name the action and pass the peer's card URL with --to."), (0, cards_1.unknownFlag)("a2a outbox")] } },
23
+ { name: "a2a escalation", effect: "private", readOnly: true, summary: "The commands for which agents may escalate to the person.", ax: { id: "cli:a2a escalation", group: "a2a", effect: "read", when: "Names the three escalation actions: grant lets a friend's agent reach the person through this one, revoke ends it, list shows them.", errors: [(0, cards_1.usageError)("a2a escalation", "needs grant, revoke or list.", "Name the action; grant and revoke also need --friend."), (0, cards_1.unknownFlag)("a2a escalation")] } },
24
+ { name: "a2a delegated-commands", effect: "private", readOnly: true, summary: "The commands for which agents may run commands here.", ax: { id: "cli:a2a delegated-commands", group: "a2a", effect: "read", when: "Names the three actions for letting a friend's agent run commands as this one: grant, revoke and list.", errors: [(0, cards_1.usageError)("a2a delegated-commands", "needs grant, revoke or list.", "Name the action; grant and revoke also need --friend."), (0, cards_1.unknownFlag)("a2a delegated-commands")] } },
25
+ { name: "gateway", effect: "private", readOnly: true, summary: "The commands for the credit gateway.", ax: { id: "cli:gateway", group: "a2a", effect: "read", when: "Names the gateway's one action, serve, which shares upstream model keys with agents behind a single master key.", errors: [(0, cards_1.usageError)("gateway", "needs serve and --keys-dir <dir>.", "Run ouro gateway serve --keys-dir with the folder holding the upstream keys."), (0, cards_1.unknownFlag)("gateway")] } },
20
26
  ];
@@ -6,6 +6,7 @@ exports.usageError = usageError;
6
6
  exports.daemonDown = daemonDown;
7
7
  exports.needsSubcommand = needsSubcommand;
8
8
  exports.needsTerminal = needsTerminal;
9
+ exports.needsWhy = needsWhy;
9
10
  /** The flag gate's refusal of a flag this command doesn't take. */
10
11
  function unknownFlag(name) {
11
12
  return {
@@ -57,3 +58,11 @@ function needsTerminal(name, fix) {
57
58
  fix,
58
59
  };
59
60
  }
61
+ /** The gate's refusal of a command other people see when no `--why` is given. */
62
+ function needsWhy(name, reaches) {
63
+ return {
64
+ code: "needs-why",
65
+ means: `ouro ${name} ${reaches}, so the gate wants a one-line reason it can record.`,
66
+ fix: `Add --why "<reason>" saying why, then run it again.`,
67
+ };
68
+ }
@@ -1,4 +1,34 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DESK_COMMANDS = void 0;
4
- exports.DESK_COMMANDS = [];
4
+ const cards_1 = require("./cards");
5
+ exports.DESK_COMMANDS = [
6
+ { name: "desk", effect: "private", readOnly: true, summary: "The commands for an agent's desk.", ax: { id: "cli:desk", group: "desk", effect: "read", when: "Names the ways to reach the agent's work records, such as tasks, tracks, lessons and search, and Hosted Desk admin.", errors: [(0, cards_1.needsSubcommand)("desk", "task, track, friction, lesson, search, recall, reindex, thread, invite, access, delete-account"), (0, cards_1.unknownFlag)("desk")] } },
7
+ { name: "desk task", effect: "private", readOnly: true, summary: "The commands for desk tasks.", ax: { id: "cli:desk task", group: "desk", effect: "read", when: "Names the five task actions on the agent's desk: list, new, done, archive and show.", errors: [(0, cards_1.needsSubcommand)("desk task", "list, new, done, archive, show"), (0, cards_1.unknownFlag)("desk task")] } },
8
+ { name: "desk task list", effect: "private", readOnly: true, summary: "List the desk's tasks.", ax: { id: "cli:desk task list", group: "desk", effect: "read", when: "Find the agent's tasks, optionally only one --track or one --status, to get a slug for show, done or archive.", errors: [(0, cards_1.unknownFlag)("desk task list"), (0, cards_1.daemonDown)("desk task list")] } },
9
+ { name: "desk task new", effect: "private", summary: "Create a desk task.", ax: { id: "cli:desk task new", group: "desk", effect: "write", when: "Open a new piece of work for the agent under a short slug, filed in an existing --track.", errors: [(0, cards_1.usageError)("desk task new", "needs a slug and --track <track>.", "Pass the new task's slug and a track from ouro desk track list."), (0, cards_1.unknownFlag)("desk task new"), (0, cards_1.daemonDown)("desk task new")] } },
10
+ { name: "desk task done", effect: "private", summary: "Mark a desk task done.", ax: { id: "cli:desk task done", group: "desk", effect: "write", when: "Record that a task's outcome was delivered, by its slug, so it stops showing as open work.", errors: [(0, cards_1.usageError)("desk task done", "needs the task's slug.", "Find it with ouro desk task list, then pass it."), (0, cards_1.unknownFlag)("desk task done"), (0, cards_1.daemonDown)("desk task done")] } },
11
+ { name: "desk task archive", effect: "private", summary: "Archive a desk task.", ax: { id: "cli:desk task archive", group: "desk", effect: "write", when: "Move a finished or dropped task out of the active desk by its slug, keeping its record in the archive.", errors: [(0, cards_1.usageError)("desk task archive", "needs the task's slug.", "Find it with ouro desk task list, then pass it."), (0, cards_1.unknownFlag)("desk task archive"), (0, cards_1.daemonDown)("desk task archive")] } },
12
+ { name: "desk task show", effect: "private", readOnly: true, summary: "Show a desk task.", ax: { id: "cli:desk task show", group: "desk", effect: "read", when: "Read one task's card by its slug: its outcome, status, next step and anything blocking it.", errors: [(0, cards_1.usageError)("desk task show", "needs the task's slug.", "Find it with ouro desk task list, then pass it."), (0, cards_1.unknownFlag)("desk task show"), (0, cards_1.daemonDown)("desk task show")] } },
13
+ { name: "desk track", effect: "private", readOnly: true, summary: "The commands for desk tracks.", ax: { id: "cli:desk track", group: "desk", effect: "read", when: "Names the three actions on the long-running areas that group tasks: list, new and show.", errors: [(0, cards_1.needsSubcommand)("desk track", "list, new, show"), (0, cards_1.unknownFlag)("desk track")] } },
14
+ { name: "desk track list", effect: "private", readOnly: true, summary: "List the desk's tracks.", ax: { id: "cli:desk track list", group: "desk", effect: "read", when: "See the areas the agent files its tasks under, to pick the --track for a new task.", errors: [(0, cards_1.unknownFlag)("desk track list"), (0, cards_1.daemonDown)("desk track list")] } },
15
+ { name: "desk track new", effect: "private", summary: "Create a desk track.", ax: { id: "cli:desk track new", group: "desk", effect: "write", when: "Start a new long-running area for tasks, under a short slug, when no existing track fits the work.", errors: [(0, cards_1.usageError)("desk track new", "needs the track's slug.", "Pass a short slug for the new track."), (0, cards_1.unknownFlag)("desk track new"), (0, cards_1.daemonDown)("desk track new")] } },
16
+ { name: "desk track show", effect: "private", readOnly: true, summary: "Show a desk track.", ax: { id: "cli:desk track show", group: "desk", effect: "read", when: "Read one track's card by its slug: what it covers and how its tasks stand.", errors: [(0, cards_1.usageError)("desk track show", "needs the track's slug.", "Find it with ouro desk track list, then pass it."), (0, cards_1.unknownFlag)("desk track show"), (0, cards_1.daemonDown)("desk track show")] } },
17
+ { name: "desk friction", effect: "private", readOnly: true, summary: "The commands for desk friction notes.", ax: { id: "cli:desk friction", group: "desk", effect: "read", when: "Names the one friction action, add, for noting something about the tools that slowed the work down.", errors: [(0, cards_1.usageError)("desk friction", "needs add and the note's text.", "Run ouro desk friction add with the note."), (0, cards_1.unknownFlag)("desk friction")] } },
18
+ { name: "desk friction add", effect: "private", summary: "Record a desk friction note.", ax: { id: "cli:desk friction add", group: "desk", effect: "write", when: "Note something about the tools or process that got in the way, in a sentence, so it can be fixed later.", errors: [(0, cards_1.usageError)("desk friction add", "needs the note's text.", "Pass the note as the words after add."), (0, cards_1.unknownFlag)("desk friction add"), (0, cards_1.daemonDown)("desk friction add")] } },
19
+ { name: "desk lesson", effect: "private", readOnly: true, summary: "The commands for desk lessons.", ax: { id: "cli:desk lesson", group: "desk", effect: "read", when: "Names the one lesson action, add, for keeping something learned so later sessions act on it.", errors: [(0, cards_1.usageError)("desk lesson", "needs add and the lesson's text.", "Run ouro desk lesson add with the lesson."), (0, cards_1.unknownFlag)("desk lesson")] } },
20
+ { name: "desk lesson add", effect: "private", summary: "Record a desk lesson.", ax: { id: "cli:desk lesson add", group: "desk", effect: "write", when: "Keep something learned the hard way, in a sentence, where later sessions of the agent will see it.", errors: [(0, cards_1.usageError)("desk lesson add", "needs the lesson's text.", "Pass the lesson as the words after add."), (0, cards_1.unknownFlag)("desk lesson add"), (0, cards_1.daemonDown)("desk lesson add")] } },
21
+ { name: "desk search", effect: "private", readOnly: true, summary: "Search the desk.", ax: { id: "cli:desk search", group: "desk", effect: "read", when: "Find desk records by words in them, across tasks, tracks, notes and lessons, before starting work that may exist.", errors: [(0, cards_1.usageError)("desk search", "needs words to search for.", "Pass the query as the words after search."), (0, cards_1.unknownFlag)("desk search"), (0, cards_1.daemonDown)("desk search")] } },
22
+ { name: "desk recall", effect: "private", readOnly: true, summary: "Recall what the desk holds on a topic.", ax: { id: "cli:desk recall", group: "desk", effect: "read", when: "Gather what the desk already knows about one topic, such as past decisions and lessons, before deciding again.", errors: [(0, cards_1.usageError)("desk recall", "needs a topic.", "Pass the topic as the words after recall."), (0, cards_1.unknownFlag)("desk recall"), (0, cards_1.daemonDown)("desk recall")] } },
23
+ { name: "desk reindex", effect: "private", summary: "Rebuild the desk's search index.", ax: { id: "cli:desk reindex", group: "desk", effect: "write", when: "When search misses records you know exist: asks the desk server to rebuild its index; older servers answer unknown tool.", errors: [(0, cards_1.unknownFlag)("desk reindex"), (0, cards_1.daemonDown)("desk reindex")] } },
24
+ { name: "desk thread", effect: "private", readOnly: true, summary: "Follow a desk record's links.", ax: { id: "cli:desk thread", group: "desk", effect: "read", when: "Trace where a desk record came from and what grew out of it, starting at its path, to see the whole story.", errors: [(0, cards_1.usageError)("desk thread", "needs a record's path.", "Pass the path a search or recall result gave."), (0, cards_1.unknownFlag)("desk thread"), (0, cards_1.daemonDown)("desk thread")] } },
25
+ { name: "desk invite", effect: "private", summary: "Invite someone to Hosted Desk.", ax: { id: "cli:desk invite", group: "desk", effect: "write", when: "As a Hosted Desk admin, make an account for a new person by --name and get their sign-up link, after a browser sign-in.", errors: [(0, cards_1.usageError)("desk invite", "needs --name <name>, or --account <id> to re-invite, not both.", "Pass --name for a new person, or --account for one who never signed up."), (0, cards_1.unknownFlag)("desk invite")] } },
26
+ { name: "desk access", effect: "private", summary: "Turn a Hosted Desk account on or off.", ax: { id: "cli:desk access", group: "desk", effect: "write", when: "As a Hosted Desk admin, let an account back in or lock it out, by its id and on or off, after a browser sign-in.", errors: [(0, cards_1.usageError)("desk access", "needs an account id and on or off.", "Pass the id Hosted Desk gave the account, then on or off."), (0, cards_1.unknownFlag)("desk access")] } },
27
+ { name: "desk delete-account", effect: "private", summary: "Delete a Hosted Desk account.", ax: { id: "cli:desk delete-account", group: "desk", effect: "consequential", destructive: true, confirm: "The account and its sign-ins are removed from Hosted Desk and can't be brought back.", when: "As a Hosted Desk admin, remove an account for good by its id, with --yes, after a browser sign-in.", errors: [(0, cards_1.usageError)("desk delete-account", "needs one account id and --yes.", "Pass the account id, and --yes once the person has agreed to the deletion."), (0, cards_1.unknownFlag)("desk delete-account")] } },
28
+ { name: "task", effect: "private", readOnly: true, summary: "The commands for desk tasks.", ax: { id: "cli:task", group: "desk", effect: "read", when: "Shorter top-level spelling of desk task: names list, new, done, archive and show for the agent's tasks.", errors: [(0, cards_1.needsSubcommand)("task", "list, new, done, archive, show"), (0, cards_1.unknownFlag)("task")] } },
29
+ { name: "task list", effect: "private", readOnly: true, summary: "List the desk's tasks.", ax: { id: "cli:task list", group: "desk", effect: "read", when: "Shorter spelling of desk task list: the agent's tasks, filtered by --track or --status, each with its slug.", errors: [(0, cards_1.unknownFlag)("task list"), (0, cards_1.daemonDown)("task list")] } },
30
+ { name: "task new", effect: "private", summary: "Create a desk task.", ax: { id: "cli:task new", group: "desk", effect: "write", when: "Shorter spelling of desk task new: opens a task under a slug, filed in the --track given.", errors: [(0, cards_1.usageError)("task new", "needs a slug and --track <track>.", "Pass the new task's slug and a track from ouro desk track list."), (0, cards_1.unknownFlag)("task new"), (0, cards_1.daemonDown)("task new")] } },
31
+ { name: "task done", effect: "private", summary: "Mark a desk task done.", ax: { id: "cli:task done", group: "desk", effect: "write", when: "Shorter spelling of desk task done: records a task's outcome as delivered, by its slug.", errors: [(0, cards_1.usageError)("task done", "needs the task's slug.", "Find it with ouro desk task list, then pass it."), (0, cards_1.unknownFlag)("task done"), (0, cards_1.daemonDown)("task done")] } },
32
+ { name: "task archive", effect: "private", summary: "Archive a desk task.", ax: { id: "cli:task archive", group: "desk", effect: "write", when: "Shorter spelling of desk task archive: moves a task by slug out of the active desk into its archive.", errors: [(0, cards_1.usageError)("task archive", "needs the task's slug.", "Find it with ouro desk task list, then pass it."), (0, cards_1.unknownFlag)("task archive"), (0, cards_1.daemonDown)("task archive")] } },
33
+ { name: "task show", effect: "private", readOnly: true, summary: "Show a desk task.", ax: { id: "cli:task show", group: "desk", effect: "read", when: "Shorter spelling of desk task show: one task's card by its slug, with status and next step.", errors: [(0, cards_1.usageError)("task show", "needs the task's slug.", "Find it with ouro desk task list, then pass it."), (0, cards_1.unknownFlag)("task show"), (0, cards_1.daemonDown)("task show")] } },
34
+ ];
@@ -1,11 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PRESENCE_COMMANDS = void 0;
4
+ const cards_1 = require("./cards");
4
5
  exports.PRESENCE_COMMANDS = [
5
- { name: "voice join", effect: "others", summary: "Join a voice call as the agent." },
6
- { name: "voice leave", effect: "others", summary: "Leave a voice call." },
7
- { name: "voice status", effect: "private", readOnly: true, summary: "Show the agent's voice status." },
8
- { name: "bluebubbles context-smoke", effect: "private", summary: "Check the context a BlueBubbles message would get." },
9
- { name: "bluebubbles host", effect: "private", summary: "Install, check or repair the BlueBubbles host." },
10
- { name: "bluebubbles replay", effect: "private", summary: "Replay a BlueBubbles message." },
6
+ { name: "voice join", effect: "others", summary: "Join a voice call as the agent.", ax: { id: "cli:voice join", group: "presence", effect: "consequential", confirm: "The agent starts listening and speaking on the call, so everyone on it hears it.", when: "Have the agent take part in the call this Mac is on, naming who is there with --participants and why with --occasion.", errors: [(0, cards_1.usageError)("voice join", "needs --agent.", "Pass --agent, and --participants and --occasion so it knows who it is talking to."), (0, cards_1.needsWhy)("voice join", "puts the agent's voice on a call other people hear"), (0, cards_1.unknownFlag)("voice join")] } },
7
+ { name: "voice leave", effect: "others", summary: "Leave a voice call.", ax: { id: "cli:voice leave", group: "presence", effect: "write", when: "Take the agent off the call it joined on this Mac, as soon as someone on the call asks or the call ends.", errors: [(0, cards_1.usageError)("voice leave", "needs --agent.", "Pass --agent with the agent on the call."), (0, cards_1.needsWhy)("voice leave", "changes a call other people are on"), (0, cards_1.unknownFlag)("voice leave")] } },
8
+ { name: "voice status", effect: "private", readOnly: true, summary: "Show the agent's voice status.", ax: { id: "cli:voice status", group: "presence", effect: "read", when: "Check whether the agent is on a call on this Mac now, and with whom, before joining or leaving.", errors: [(0, cards_1.usageError)("voice status", "needs --agent.", "Pass --agent with the agent's name."), (0, cards_1.unknownFlag)("voice status")] } },
9
+ { name: "bluebubbles context-smoke", effect: "private", summary: "Check the context a BlueBubbles message would get.", ax: { id: "cli:bluebubbles context-smoke", group: "presence", effect: "write", when: "See the conversation context the agent would get for one iMessage, by --message-guid, without a reply; --persist saves it.", errors: [(0, cards_1.usageError)("bluebubbles context-smoke", "needs --message-guid <guid>.", "Pass the message's GUID from the BlueBubbles server or the agent's logs."), (0, cards_1.unknownFlag)("bluebubbles context-smoke"), ...(0, cards_1.agentErrors)("bluebubbles context-smoke")] } },
10
+ { name: "bluebubbles host", effect: "private", readOnly: true, summary: "The commands for the BlueBubbles server.", ax: { id: "cli:bluebubbles host", group: "presence", effect: "read", when: "Names the BlueBubbles server actions for the agent's iMessage Mac account: install, status, repair, remove and collect.", errors: [(0, cards_1.needsSubcommand)("bluebubbles host", "install, status, repair, remove, collect"), (0, cards_1.unknownFlag)("bluebubbles host")] } },
11
+ { name: "bluebubbles replay", effect: "private", readOnly: true, summary: "Replay a BlueBubbles message.", ax: { id: "cli:bluebubbles replay", group: "presence", effect: "read", when: "Fetch one past iMessage by --message-guid and show how the sense reads it, attachments included, without the agent replying.", errors: [(0, cards_1.usageError)("bluebubbles replay", "needs --message-guid <guid>.", "Pass the message's GUID from the BlueBubbles server or the agent's logs."), (0, cards_1.unknownFlag)("bluebubbles replay"), ...(0, cards_1.agentErrors)("bluebubbles replay")] } },
12
+ { name: "presence", effect: "private", readOnly: true, summary: "The commands for running an agent on several machines.", ax: { id: "cli:presence", group: "presence", effect: "read", when: "Names the ways to spread one agent over machines: join a roster, hand off or take over a sense, and see status.", errors: [(0, cards_1.usageError)("presence", "needs join, handoff, status, failover or location, and --agent for all but location.", "Name the action and pass --agent with the agent's name."), (0, cards_1.unknownFlag)("presence")] } },
13
+ { name: "presence join", effect: "private", summary: "Add this machine to an agent's roster.", ax: { id: "cli:presence join", group: "presence", effect: "write", when: "Let this machine run an agent alongside its others by adding it to the roster, then restart the daemon with ouro up.", errors: [(0, cards_1.usageError)("presence join", "needs --agent, and takes only --role and --name.", "Pass --agent; add --role or --name only to change the defaults."), (0, cards_1.unknownFlag)("presence join")] } },
14
+ { name: "presence handoff", effect: "private", summary: "Move a shared sense to another machine.", ax: { id: "cli:presence handoff", group: "presence", effect: "write", when: "Move one shared sense, such as Teams or habits, to the named machine on the agent's roster, so only that one runs it.", errors: [(0, cards_1.usageError)("presence handoff", "needs the sense, the machine and --agent.", "Find both names with ouro presence status, then pass them in that order."), (0, cards_1.unknownFlag)("presence handoff")] } },
15
+ { name: "presence status", effect: "private", readOnly: true, summary: "Show which machines run an agent.", ax: { id: "cli:presence status", group: "presence", effect: "read", when: "See which machines run the agent, which one owns each shared sense, and any failover in force, before moving one.", errors: [(0, cards_1.usageError)("presence status", "needs --agent, and takes only --json.", "Pass --agent with the agent's name."), (0, cards_1.unknownFlag)("presence status")] } },
16
+ { name: "presence failover", effect: "private", readOnly: true, summary: "The commands for covering a sense while its machine is down.", ax: { id: "cli:presence failover", group: "presence", effect: "read", when: "Names the two ways to cover for a machine that went down: take claims its sense here, release hands it back.", errors: [(0, cards_1.usageError)("presence failover", "needs take or release, the sense, and --agent.", "Name the action and the sense from ouro presence status."), (0, cards_1.unknownFlag)("presence failover")] } },
17
+ { name: "presence failover take", effect: "private", summary: "Run a sense here while its owner is down.", ax: { id: "cli:presence failover take", group: "presence", effect: "write", when: "When the machine that owns a sense is down: run that sense here for now, saying why with --reason.", errors: [(0, cards_1.usageError)("presence failover take", "needs the sense and --agent, and only --reason after them.", "Pass the sense from ouro presence status and a short --reason."), (0, cards_1.unknownFlag)("presence failover take")] } },
18
+ { name: "presence failover release", effect: "private", summary: "Hand a covered sense back to its owner.", ax: { id: "cli:presence failover release", group: "presence", effect: "write", when: "Once the owning machine is healthy again: stop covering its sense here so it takes the sense back.", errors: [(0, cards_1.usageError)("presence failover release", "needs the sense and --agent.", "Pass the sense this machine took over."), (0, cards_1.unknownFlag)("presence failover release")] } },
19
+ { name: "presence location", effect: "private", summary: "Say where this machine is.", ax: { id: "cli:presence location", group: "presence", effect: "write", when: "Label where this machine sits, such as home or office, so presence status can say which place each machine is in.", errors: [(0, cards_1.usageError)("presence location", "needs exactly one place name.", "Pass one word such as home or office."), (0, cards_1.unknownFlag)("presence location")] } },
20
+ { name: "move", effect: "private", summary: "Make this machine an agent's home.", ax: { id: "cli:move", group: "presence", effect: "consequential", confirm: "The agent's home moves to this machine; the machine it lived on stops being its home.", when: "Bring an agent to live on this machine, as in ouro move slugger here, when its old machine is going away.", errors: [(0, cards_1.usageError)("move", "needs the agent's name and the word here.", "Run it as ouro move <agent> here on the machine that should become home."), (0, cards_1.unknownFlag)("move")] } },
21
+ { name: "voice", effect: "private", readOnly: true, summary: "The commands for voice calls.", ax: { id: "cli:voice", group: "presence", effect: "read", when: "Names the three call actions on this Mac: join a call through the BlackHole audio devices, leave it, and status.", errors: [(0, cards_1.usageError)("voice", "needs join, leave or status, and --agent.", "Name the action and pass --agent."), (0, cards_1.unknownFlag)("voice")] } },
22
+ { name: "bluebubbles", effect: "private", readOnly: true, summary: "The commands for the BlueBubbles iMessage sense.", ax: { id: "cli:bluebubbles", group: "presence", effect: "read", when: "Names the iMessage helpers: replay and context-smoke test one message, and host sets up the BlueBubbles server.", errors: [(0, cards_1.needsSubcommand)("bluebubbles", "replay, context-smoke, host"), (0, cards_1.unknownFlag)("bluebubbles")] } },
23
+ { name: "bluebubbles host install", effect: "private", summary: "Install the BlueBubbles server.", ax: { id: "cli:bluebubbles host install", group: "presence", effect: "write", when: "Set up the BlueBubbles server on the macOS account an agent declares as its iMessage host; for another account it prints a step for the person.", errors: [{ code: "not-imessage-host", means: "No agent declares this macOS account as its iMessage host, so setup refuses it.", fix: "Ask the person to set senses.bluebubbles.hostUsername to the account signed in to the agent's Apple ID." }, (0, cards_1.usageError)("bluebubbles host install", "got only some of --username, --uid and --home.", "Pass all three for another account, or none for this one."), (0, cards_1.unknownFlag)("bluebubbles host install")] } },
24
+ { name: "bluebubbles host status", effect: "private", readOnly: true, summary: "Show the BlueBubbles server's state.", ax: { id: "cli:bluebubbles host status", group: "presence", effect: "read", when: "Check whether the BlueBubbles server is installed and running for the iMessage host account before replaying messages.", errors: [(0, cards_1.usageError)("bluebubbles host status", "got only some of --username, --uid and --home.", "Pass all three for another account, or none for this one."), (0, cards_1.unknownFlag)("bluebubbles host status")] } },
25
+ { name: "bluebubbles host repair", effect: "private", summary: "Repair the BlueBubbles server.", ax: { id: "cli:bluebubbles host repair", group: "presence", effect: "write", when: "When status shows the BlueBubbles server broken or stopped: reinstalls its pieces on the declared iMessage host account.", errors: [{ code: "not-imessage-host", means: "No agent declares this macOS account as its iMessage host, so repair refuses it.", fix: "Run it under the account the agent declares, or ask the person to declare this one." }, (0, cards_1.usageError)("bluebubbles host repair", "got only some of --username, --uid and --home.", "Pass all three for another account, or none for this one."), (0, cards_1.unknownFlag)("bluebubbles host repair")] } },
26
+ { name: "bluebubbles host remove", effect: "private", summary: "Remove the BlueBubbles server.", ax: { id: "cli:bluebubbles host remove", group: "presence", effect: "consequential", destructive: true, confirm: "The agent stops receiving and sending iMessages on this account until the server is installed again.", when: "Take the BlueBubbles server off a Mac account that should no longer carry the agent's iMessages.", errors: [(0, cards_1.usageError)("bluebubbles host remove", "got only some of --username, --uid and --home.", "Pass all three for another account, or none for this one."), (0, cards_1.unknownFlag)("bluebubbles host remove")] } },
27
+ { name: "bluebubbles host collect", effect: "private", summary: "Collect a host step another account ran.", ax: { id: "cli:bluebubbles host collect", group: "presence", effect: "write", when: "After the person ran the printed helper in the other account's Terminal: gather that step's outcome by --request-id.", errors: [(0, cards_1.usageError)("bluebubbles host collect", "needs --request-id <id>.", "Pass the id from the collect line install or repair printed."), (0, cards_1.unknownFlag)("bluebubbles host collect")] } },
11
28
  ];
@@ -70,7 +70,7 @@ function deskUsage() {
70
70
  " (each takes --gateway <url> --trust-gateway to manage a Hosted Desk other than desk.ouro.bot)",
71
71
  "",
72
72
  "Alias:",
73
- " ouro task ... (routes through ouro desk task ...)",
73
+ " ouro task list|new|done|archive|show ... (routes through ouro desk task ...)",
74
74
  ].join("\n");
75
75
  }
76
76
  function usageError() {
@@ -301,9 +301,7 @@ async function executeDeskCommand(command, deps) {
301
301
  response = await deps.sendCommand(deps.socketPath, daemonCommand);
302
302
  }
303
303
  catch {
304
- const message = "daemon unavailable — start with `ouro up` first";
305
- deps.writeStdout(message);
306
- return message;
304
+ throw Object.assign(new Error("daemon unavailable — start with `ouro up` first"), { code: "daemon-down" });
307
305
  }
308
306
  if (!response.ok) {
309
307
  const message = response.error ?? "unknown error";
@@ -7141,7 +7141,7 @@ async function runOuroCli(args, deps = (0, cli_defaults_1.createDefaultOuroCliDe
7141
7141
  const targetUsername = command.target?.username ?? (0, bluebubbles_host_account_1.currentOsAccount)().username;
7142
7142
  const hostCheck = (0, bluebubbles_host_account_1.checkBlueBubblesHostTarget)(targetUsername, declaredBlueBubblesHosts(deps.bundlesRoot ?? (0, identity_1.getAgentBundlesRoot)()));
7143
7143
  if (!hostCheck.ok)
7144
- throw new Error(hostCheck.message);
7144
+ throw Object.assign(new Error(hostCheck.message), { code: "not-imessage-host" });
7145
7145
  }
7146
7146
  if (command.target) {
7147
7147
  (0, bluebubbles_host_1.installBlueBubblesHostSharedHelper)({
@@ -398,7 +398,8 @@ function usage() {
398
398
  " ouro link <agent> --friend <id> --provider <provider> --external-id <external-id>",
399
399
  " ouro bluebubbles replay [--agent <name>] --message-guid <guid> [--event-type new-message|updated-message] [--json]",
400
400
  " ouro bluebubbles context-smoke [--agent <name>] --message-guid <guid> [--persist] [--json]",
401
- " ouro bluebubbles host <install|status|repair|remove|collect> [--username <name> --uid <uid> --home <path>] [--request-id <id>] [--json]",
401
+ " ouro bluebubbles host install|status|repair|remove [--username <name> --uid <uid> --home <path>] [--json]",
402
+ " ouro bluebubbles host collect --request-id <id> [--json]",
402
403
  " ouro rsvp <doctor|incident|cutover|legacy-render|replay|config|habit|import-legacy|refresh|compare|smoke> ...",
403
404
  " ouro friend list [--agent <name>]",
404
405
  " ouro friend show <id> [--agent <name>]",
@@ -436,6 +437,12 @@ function usage() {
436
437
  " ouro voice join --agent <name> [--friend <id>] [--participants <text>] [--occasion <text>] [--mode conversation] [--owner-alone] [--owner-name <name>] [--silent-consent <statement>]",
437
438
  " ouro voice leave --agent <name>",
438
439
  " ouro voice status --agent <name>",
440
+ " ouro presence join --agent <name> [--role <role>] [--name <machine name>]",
441
+ " ouro presence handoff <sense> <machine> --agent <name>",
442
+ " ouro presence status --agent <name> [--json]",
443
+ " ouro presence failover take|release <sense> --agent <name> [--reason <why>]",
444
+ " ouro presence location <place>",
445
+ " ouro move <agent> here",
439
446
  " ouro session list [--agent <name>]",
440
447
  " ouro mcp list",
441
448
  " ouro mcp call <server> <tool> [--args '{...}']",
@@ -448,6 +455,7 @@ function usage() {
448
455
  " ouro clone <remote> [--agent <name>]",
449
456
  " ouro sync [--agent <name>]",
450
457
  " ouro doctor",
458
+ ...(0, cli_desk_1.deskUsage)().split("\n").filter((line) => line.startsWith(" ouro ")),
451
459
  ].join("\n");
452
460
  }
453
461
  // ── Per-group parsers ──
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1298",
3
+ "version": "0.1.0-alpha.1299",
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.1298",
9
+ "version": "0.1.0-alpha.1299",
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.1298",
3
+ "version": "0.1.0-alpha.1299",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },