@ouro.bot/cli 0.1.0-alpha.1296 → 0.1.0-alpha.1298
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 +12 -0
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/dist/heart/auth/auth-flow.js +2 -1
- package/dist/heart/daemon/cli-commands/cards.js +18 -0
- package/dist/heart/daemon/cli-commands/coding-tools.js +6 -2
- package/dist/heart/daemon/cli-commands/friends.js +11 -7
- package/dist/heart/daemon/cli-commands/habits.js +10 -8
- package/dist/heart/daemon/cli-commands/mail.js +5 -3
- package/dist/heart/daemon/cli-commands/mind.js +16 -8
- package/dist/heart/daemon/cli-commands/providers.js +11 -5
- package/dist/heart/daemon/cli-commands/vault.js +12 -7
- package/dist/heart/daemon/cli-exec.js +8 -4
- package/dist/heart/daemon/cli-parse.js +13 -0
- package/dist/nerves/coverage/file-completeness.js +4 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/changelog.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
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.1298",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Every ouro friend, session, habit, poke, mind, mail and MCP command has an Ouro AX card, so an agent reads when to use it and how it fails."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"version": "0.1.0-alpha.1297",
|
|
12
|
+
"changes": [
|
|
13
|
+
"Every ouro vault, provider, auth, account and connect command has an Ouro AX card, so an agent reads when to use it and how it fails."
|
|
14
|
+
]
|
|
15
|
+
},
|
|
4
16
|
{
|
|
5
17
|
"version": "0.1.0-alpha.1296",
|
|
6
18
|
"changes": [
|
|
@@ -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.
|
|
4
|
+
<Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1298</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -354,8 +354,9 @@ async function collectRuntimeAuthCredentials(input, deps) {
|
|
|
354
354
|
const homeDir = deps.homeDir ?? os.homedir();
|
|
355
355
|
const now = deps.now ?? (() => new Date());
|
|
356
356
|
if (input.provider === "openai-compatible" || input.provider === "openai-compatible-gemini") {
|
|
357
|
+
// needs-terminal is the code the ouro auth card names for this refusal.
|
|
357
358
|
if (!input.promptSecret)
|
|
358
|
-
throw new Error(`${input.provider} API key entry requires an interactive terminal so the secret can be hidden.`);
|
|
359
|
+
throw Object.assign(new Error(`${input.provider} API key entry requires an interactive terminal so the secret can be hidden.`), { code: "needs-terminal" });
|
|
359
360
|
const apiKey = (await input.promptSecret(`${input.provider === "openai-compatible" ? "Z.ai" : "Gemini"} API key: `)).trim();
|
|
360
361
|
if (!apiKey)
|
|
361
362
|
throw new Error(`${input.provider} API key is required.`);
|
|
@@ -4,6 +4,8 @@ exports.unknownFlag = unknownFlag;
|
|
|
4
4
|
exports.agentErrors = agentErrors;
|
|
5
5
|
exports.usageError = usageError;
|
|
6
6
|
exports.daemonDown = daemonDown;
|
|
7
|
+
exports.needsSubcommand = needsSubcommand;
|
|
8
|
+
exports.needsTerminal = needsTerminal;
|
|
7
9
|
/** The flag gate's refusal of a flag this command doesn't take. */
|
|
8
10
|
function unknownFlag(name) {
|
|
9
11
|
return {
|
|
@@ -39,3 +41,19 @@ function daemonDown(name) {
|
|
|
39
41
|
fix: `Start it with ouro up, then run ouro ${name} again.`,
|
|
40
42
|
};
|
|
41
43
|
}
|
|
44
|
+
/** A group's own words, which only print its usage: the subcommand is missing or unknown. */
|
|
45
|
+
function needsSubcommand(name, subcommands) {
|
|
46
|
+
return {
|
|
47
|
+
code: "usage",
|
|
48
|
+
means: `ouro ${name} on its own runs nothing; it needs one of its subcommands: ${subcommands}.`,
|
|
49
|
+
fix: `Pick the subcommand for the job and run ouro ${name} <subcommand> --help for its flags.`,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/** The command prompts the person (often for a hidden secret), and this shell has no terminal. */
|
|
53
|
+
function needsTerminal(name, fix) {
|
|
54
|
+
return {
|
|
55
|
+
code: "needs-terminal",
|
|
56
|
+
means: `ouro ${name} has to ask the person at a prompt, and this shell has no interactive terminal.`,
|
|
57
|
+
fix,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -3,7 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CODING_TOOLS_COMMANDS = void 0;
|
|
4
4
|
const cards_1 = require("./cards");
|
|
5
5
|
exports.CODING_TOOLS_COMMANDS = [
|
|
6
|
-
{ name: "mcp call", effect: "private", summary: "Call a tool on an MCP server." },
|
|
7
|
-
{ name: "mcp doctor", effect: "private", readOnly: true, summary: "Check an agent's MCP servers." },
|
|
6
|
+
{ name: "mcp call", effect: "private", summary: "Call a tool on an MCP server.", ax: { id: "cli:mcp call", group: "coding-tools", effect: "consequential", confirm: "The tool runs with the agent's access, and what it changes depends on that tool.", when: "Run one tool on one of the agent's MCP servers by name, with JSON --args, to try it outside a conversation.", errors: [(0, cards_1.usageError)("mcp call", "needs a server name and a tool name, and --args, when given, must be one JSON object.", "Find both with ouro mcp list, then quote --args as JSON."), (0, cards_1.unknownFlag)("mcp call"), (0, cards_1.daemonDown)("mcp call")] } },
|
|
7
|
+
{ name: "mcp doctor", effect: "private", readOnly: true, summary: "Check an agent's MCP servers.", ax: { id: "cli:mcp doctor", group: "coding-tools", effect: "read", when: "When MCP tools fail inside a conversation: starts the agent's MCP server once and reports what it found broken.", errors: [(0, cards_1.usageError)("mcp doctor", "needs --agent <name>.", "Pass --agent with the agent whose MCP server to check."), (0, cards_1.unknownFlag)("mcp doctor")] } },
|
|
8
8
|
{ name: "mcp list", effect: "private", readOnly: true, summary: "List the MCP servers.", ax: { id: "cli:mcp list", group: "coding-tools", effect: "read", when: "Before mcp call, see which servers the agent has connected and the tools each offers.", errors: [(0, cards_1.unknownFlag)("mcp list"), (0, cards_1.daemonDown)("mcp list")] } },
|
|
9
|
+
{ name: "mcp", effect: "private", readOnly: true, summary: "The commands for the MCP servers an agent uses.", ax: { id: "cli:mcp", group: "coding-tools", effect: "read", when: "Names the ways to see and test the MCP servers an agent has: list, call, doctor and canary.", errors: [(0, cards_1.needsSubcommand)("mcp", "list, call, doctor, canary"), (0, cards_1.unknownFlag)("mcp")] } },
|
|
10
|
+
{ name: "mcp canary", effect: "private", readOnly: true, summary: "Probe an agent's MCP server end to end.", ax: { id: "cli:mcp canary", group: "coding-tools", effect: "read", when: "Before relying on MCP from an editor: proves the server answers a status call, exiting 1 when it doesn't.", errors: [(0, cards_1.usageError)("mcp canary", "needs --agent <name>.", "Pass --agent with the agent whose MCP server to probe."), (0, cards_1.unknownFlag)("mcp canary")] } },
|
|
11
|
+
{ name: "mcp-serve", effect: "private", summary: "Serve an agent's tools over MCP to a dev tool.", ax: { id: "cli:mcp-serve", group: "coding-tools", effect: "write", when: "Configure an editor or coding agent to launch this; it serves the agent's tools over stdio until the client closes.", errors: [(0, cards_1.usageError)("mcp-serve", "needs --agent <name>.", "Pass --agent with the agent whose tools to serve."), (0, cards_1.unknownFlag)("mcp-serve")] } },
|
|
12
|
+
{ name: "acp-serve", effect: "private", summary: "Serve an agent to an ACP client.", ax: { id: "cli:acp-serve", group: "coding-tools", effect: "write", when: "Configure an ACP editor to launch this, so it talks to the agent; --observe-only watches without sending turns.", errors: [(0, cards_1.usageError)("acp-serve", "needs --agent <name>.", "Pass --agent with the agent the editor should talk to."), (0, cards_1.unknownFlag)("acp-serve")] } },
|
|
9
13
|
];
|
|
@@ -3,12 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FRIENDS_COMMANDS = void 0;
|
|
4
4
|
const cards_1 = require("./cards");
|
|
5
5
|
exports.FRIENDS_COMMANDS = [
|
|
6
|
-
{ name: "friend create", effect: "private", summary: "Add a friend the agent knows." },
|
|
7
|
-
{ name: "friend link", effect: "private", summary: "Link a friend to an external account." },
|
|
8
|
-
{ name: "friend list", effect: "private", readOnly: true, summary: "List the friends this agent knows." },
|
|
9
|
-
{ name: "friend show", effect: "private", readOnly: true, summary: "Show one friend." },
|
|
10
|
-
{ name: "friend unlink", effect: "private", summary: "Remove a link between a friend and an external account." },
|
|
11
|
-
{ name: "friend update", effect: "private", summary: "Change a friend's trust, admission or initiative." },
|
|
12
|
-
{ name: "link", effect: "private", summary: "Link an agent to a friend's external account." },
|
|
6
|
+
{ name: "friend create", effect: "private", summary: "Add a friend the agent knows.", ax: { id: "cli:friend create", group: "friends", effect: "write", when: "Add a record for someone new the agent should recognise, with a --name and an optional starting --trust.", errors: [(0, cards_1.usageError)("friend create", "needs --name <name>.", "Pass --name, and --trust if they are more than a stranger."), (0, cards_1.unknownFlag)("friend create")] } },
|
|
7
|
+
{ name: "friend link", effect: "private", summary: "Link a friend to an external account.", example: "friend link slugger --friend f1 --provider local --external-id x1", ax: { id: "cli:friend link", group: "friends", effect: "write", when: "Tie a friend record to an identity on a channel, such as an email address, so messages from it reach that record.", errors: [(0, cards_1.usageError)("friend link", "needs the agent, --friend, a known --provider and --external-id.", "Pass all four; the error lists the identity providers it accepts."), (0, cards_1.unknownFlag)("friend link")] } },
|
|
8
|
+
{ name: "friend list", effect: "private", readOnly: true, summary: "List the friends this agent knows.", ax: { id: "cli:friend list", group: "friends", effect: "read", when: "Find a person's friend id, trust level and linked accounts before showing, updating or messaging them.", errors: [(0, cards_1.unknownFlag)("friend list")] } },
|
|
9
|
+
{ name: "friend show", effect: "private", readOnly: true, summary: "Show one friend.", ax: { id: "cli:friend show", group: "friends", effect: "read", when: "Read one person's full record by friend id: notes, trust, admission, initiative policy and linked identities.", errors: [(0, cards_1.usageError)("friend show", "needs the friend id after it.", "Find the id with ouro friend list, then pass it."), (0, cards_1.unknownFlag)("friend show")] } },
|
|
10
|
+
{ name: "friend unlink", effect: "private", summary: "Remove a link between a friend and an external account.", example: "friend unlink slugger --friend f1 --provider local --external-id x1", ax: { id: "cli:friend unlink", group: "friends", effect: "write", when: "Detach a channel identity that was tied to the wrong person, so its messages stop landing on that record.", errors: [(0, cards_1.usageError)("friend unlink", "needs the agent, --friend, a known --provider and --external-id.", "Pass the same four values the link was made with."), (0, cards_1.unknownFlag)("friend unlink")] } },
|
|
11
|
+
{ name: "friend update", effect: "private", summary: "Change a friend's trust, admission or initiative.", ax: { id: "cli:friend update", group: "friends", effect: "write", when: "Change how far the agent trusts a known person, whether they are admitted, or whether it may reach out first.", errors: [(0, cards_1.usageError)("friend update", "needs a friend id and a valid value for each flag it gets.", "Pass the id from ouro friend list, with values the usage lists."), (0, cards_1.unknownFlag)("friend update")] } },
|
|
12
|
+
{ name: "link", effect: "private", summary: "Link an agent to a friend's external account.", ax: { id: "cli:link", group: "friends", effect: "write", when: "Older top-level spelling of friend link: ties a channel identity to a friend record so its messages reach it.", errors: [(0, cards_1.usageError)("link", "needs the agent, --friend, a known --provider and --external-id.", "Pass all four, or use ouro friend link with the same values."), (0, cards_1.unknownFlag)("link")] } },
|
|
13
13
|
{ name: "session list", effect: "private", readOnly: true, summary: "List the agent's sessions.", ax: { id: "cli:session list", group: "friends", effect: "read", when: "Find who the agent talks with now, on which channel and how recently, before reaching someone.", errors: [(0, cards_1.unknownFlag)("session list")] } },
|
|
14
|
+
{ name: "friend", effect: "private", readOnly: true, summary: "The commands for the people an agent knows.", ax: { id: "cli:friend", group: "friends", effect: "read", when: "Names the ways to look up, add, change, link and merge the people an agent keeps records about.", errors: [(0, cards_1.needsSubcommand)("friend", "list, show, create, update, link, unlink, merge, dedupe"), (0, cards_1.unknownFlag)("friend")] } },
|
|
15
|
+
{ name: "friend merge", effect: "private", summary: "Merge duplicate friend records into one.", ax: { id: "cli:friend merge", group: "friends", effect: "write", when: "Fold duplicate records for one person into the record given by --into; it previews until --apply.", errors: [(0, cards_1.usageError)("friend merge", "needs --into <friend-id> and at least one other friend id.", "Pass --into with the record to keep, then the duplicates' ids."), (0, cards_1.unknownFlag)("friend merge")] } },
|
|
16
|
+
{ name: "friend dedupe", effect: "private", summary: "Find and merge duplicate friend records.", ax: { id: "cli:friend dedupe", group: "friends", effect: "write", when: "Look for records that are likely the same person and list the merges it would make; --apply makes them.", errors: [(0, cards_1.unknownFlag)("friend dedupe")] } },
|
|
17
|
+
{ name: "session", effect: "private", readOnly: true, summary: "The commands for an agent's live sessions.", ax: { id: "cli:session", group: "friends", effect: "read", when: "Names the session helper; today only list, which shows who the agent is in conversation with.", errors: [(0, cards_1.needsSubcommand)("session", "list"), (0, cards_1.unknownFlag)("session")] } },
|
|
14
18
|
];
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HABITS_COMMANDS = void 0;
|
|
4
|
+
const cards_1 = require("./cards");
|
|
4
5
|
exports.HABITS_COMMANDS = [
|
|
5
|
-
{ name: "habit cancel", effect: "private", summary: "Cancel a habit's pending run." },
|
|
6
|
-
{ name: "habit create", effect: "private", summary: "Create a habit that runs on a cadence." },
|
|
7
|
-
{ name: "habit inspect", effect: "private", readOnly: true, summary: "Show one habit run." },
|
|
8
|
-
{ name: "habit list", effect: "private", readOnly: true, summary: "List the agent's habits." },
|
|
9
|
-
{ name: "habit probe", effect: "private", readOnly: true, summary: "Check a habit without sending anything." },
|
|
10
|
-
{ name: "habit runs", effect: "private", readOnly: true, summary: "List recent habit runs." },
|
|
11
|
-
{ name: "habit summary", effect: "private", readOnly: true, summary: "Summarise a habit run." },
|
|
12
|
-
{ name: "poke", effect: "private", summary: "Wake an agent for a task or habit." },
|
|
6
|
+
{ name: "habit cancel", effect: "private", summary: "Cancel a habit's pending run.", ax: { id: "cli:habit cancel", group: "habits", effect: "write", when: "Stop a habit's pending run that is waiting on a bridge, naming that bridge with --evidence.", errors: [(0, cards_1.usageError)("habit cancel", "needs --agent, --habit and --evidence <bridge-id>.", "Pass all three; the bridge id is in the run's summary."), (0, cards_1.unknownFlag)("habit cancel")] } },
|
|
7
|
+
{ name: "habit create", effect: "private", summary: "Create a habit that runs on a cadence.", ax: { id: "cli:habit create", group: "habits", effect: "write", when: "Start a new recurring job for the agent under a name, running every --cadence, such as 1d or 30m.", errors: [(0, cards_1.usageError)("habit create", "needs a habit name, and a --cadence it can read.", "Pass a short name and a cadence such as 1h or 1d."), (0, cards_1.unknownFlag)("habit create")] } },
|
|
8
|
+
{ name: "habit inspect", effect: "private", readOnly: true, summary: "Show one habit run.", ax: { id: "cli:habit inspect", group: "habits", effect: "read", when: "Read everything recorded for one execution by its run id: trigger, timing, outcome and the evidence it left.", errors: [(0, cards_1.usageError)("habit inspect", "needs the run id after it.", "Find the id with ouro habit runs, then pass it."), (0, cards_1.unknownFlag)("habit inspect")] } },
|
|
9
|
+
{ name: "habit list", effect: "private", readOnly: true, summary: "List the agent's habits.", ax: { id: "cli:habit list", group: "habits", effect: "read", when: "See which recurring jobs an agent has, their cadence and when each last ran, before creating or poking one.", errors: [(0, cards_1.unknownFlag)("habit list")] } },
|
|
10
|
+
{ name: "habit probe", effect: "private", readOnly: true, summary: "Check a habit without sending anything.", ax: { id: "cli:habit probe", group: "habits", effect: "read", when: "Dry-run one habit with --no-send to see what it would do now, without messaging anyone or recording a run.", errors: [(0, cards_1.usageError)("habit probe", "needs --agent, --habit and --no-send.", "Pass all three; --no-send is required so a probe never sends."), (0, cards_1.unknownFlag)("habit probe")] } },
|
|
11
|
+
{ name: "habit runs", effect: "private", readOnly: true, summary: "List recent habit runs.", ax: { id: "cli:habit runs", group: "habits", effect: "read", when: "Find recent executions across habits, newest first, to get a run id for inspect or summary; --limit caps them.", errors: [(0, cards_1.unknownFlag)("habit runs")] } },
|
|
12
|
+
{ name: "habit summary", effect: "private", readOnly: true, summary: "Summarise a habit run.", ax: { id: "cli:habit summary", group: "habits", effect: "read", when: "Get the short verdict of a habit's latest, previous or latest failed run, picked by run id, habit or operation id.", errors: [(0, cards_1.usageError)("habit summary", "needs one of --run-id, --habit or --operation-id.", "Pass --habit <name> for its latest run, or a --run-id from habit runs."), (0, cards_1.unknownFlag)("habit summary")] } },
|
|
13
|
+
{ name: "poke", effect: "private", summary: "Wake an agent for a task or habit.", ax: { id: "cli:poke", group: "habits", effect: "write", when: "Wake an agent now for one task or habit instead of waiting for its cadence, saying which with --task or --habit.", errors: [(0, cards_1.usageError)("poke", "needs the agent name and one of --task or --habit.", "Pass the agent first, then --task <id> or --habit <name>."), (0, cards_1.unknownFlag)("poke")] } },
|
|
14
|
+
{ name: "habit", effect: "private", readOnly: true, summary: "The commands for an agent's habits.", ax: { id: "cli:habit", group: "habits", effect: "read", when: "Names the ways to see, create, test and cancel the recurring jobs an agent runs on a cadence.", errors: [(0, cards_1.needsSubcommand)("habit", "list, create, runs, inspect, summary, probe, cancel"), (0, cards_1.unknownFlag)("habit")] } },
|
|
13
15
|
];
|
|
@@ -3,8 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MAIL_COMMANDS = void 0;
|
|
4
4
|
const cards_1 = require("./cards");
|
|
5
5
|
exports.MAIL_COMMANDS = [
|
|
6
|
-
{ name: "mail backfill-indexes", effect: "private", summary: "Rebuild the mail indexes for an agent." },
|
|
7
|
-
{ name: "mail sweep-orphans", effect: "private", summary: "Delete unreferenced encrypted raw mail (dry run unless --live)." },
|
|
8
|
-
{ name: "mail import-mbox", effect: "private", summary: "Import an MBOX export into the agent's mail." },
|
|
6
|
+
{ name: "mail backfill-indexes", effect: "private", summary: "Rebuild the mail indexes for an agent.", ax: { id: "cli:mail backfill-indexes", group: "mail", effect: "write", when: "When mail search misses messages the Mailroom holds: rebuilds its indexes, in the background unless --foreground.", errors: [(0, cards_1.usageError)("mail backfill-indexes", "takes only --agent, --foreground and --operation-id.", "Drop the other words; pass --foreground to wait for it to finish."), (0, cards_1.unknownFlag)("mail backfill-indexes")] } },
|
|
7
|
+
{ name: "mail sweep-orphans", effect: "private", summary: "Delete unreferenced encrypted raw mail (dry run unless --live).", ax: { id: "cli:mail sweep-orphans", group: "mail", effect: "consequential", destructive: true, confirm: "With --live it deletes stored raw mail that no index refers to; that mail can't be recovered.", when: "Free storage taken by raw mail nothing refers to; without --live it only lists what it would delete.", errors: [(0, cards_1.usageError)("mail sweep-orphans", "takes only --agent and --live.", "Run it without --live first, then add --live to delete what it listed."), (0, cards_1.unknownFlag)("mail sweep-orphans"), ...(0, cards_1.agentErrors)("mail sweep-orphans")] } },
|
|
8
|
+
{ name: "mail import-mbox", effect: "private", summary: "Import an MBOX export into the agent's mail.", ax: { id: "cli:mail import-mbox", group: "mail", effect: "write", when: "Bring a person's existing mail into the agent's Mailroom from an MBOX export, given by --file or found with --discover.", errors: [(0, cards_1.usageError)("mail import-mbox", "needs --file <path> or --discover.", "Pass --file with the MBOX export's path, or --discover to look in the usual download folders."), (0, cards_1.unknownFlag)("mail import-mbox"), ...(0, cards_1.agentErrors)("mail import-mbox")] } },
|
|
9
9
|
{ name: "mailbox", effect: "private", readOnly: true, summary: "Show the agent's mailbox.", ax: { id: "cli:mailbox", group: "mail", effect: "read", when: "Get the local web address where a person can read the agent's mail in a browser.", errors: [(0, cards_1.unknownFlag)("mailbox"), (0, cards_1.daemonDown)("mailbox")], aliases: ["outlook"] } },
|
|
10
|
+
{ name: "mail", effect: "private", readOnly: true, summary: "The commands for an agent's hosted mail.", ax: { id: "cli:mail", group: "mail", effect: "read", when: "Names the mail upkeep jobs: import-mbox brings in old mail, and the others repair indexes, cache and stray files.", errors: [(0, cards_1.needsSubcommand)("mail", "import-mbox, backfill-indexes, sync-cache, sweep-orphans"), (0, cards_1.unknownFlag)("mail")] } },
|
|
11
|
+
{ name: "mail sync-cache", effect: "private", summary: "Refresh the local mail search cache.", ax: { id: "cli:mail sync-cache", group: "mail", effect: "write", when: "When local mail search is stale or empty on this machine: pulls the hosted Mailroom's messages into the local cache.", errors: [(0, cards_1.usageError)("mail sync-cache", "takes only one --agent <name>.", "Pass --agent once with a name, or leave it out."), (0, cards_1.unknownFlag)("mail sync-cache"), ...(0, cards_1.agentErrors)("mail sync-cache")] } },
|
|
10
12
|
];
|
|
@@ -3,15 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MIND_COMMANDS = void 0;
|
|
4
4
|
const cards_1 = require("./cards");
|
|
5
5
|
exports.MIND_COMMANDS = [
|
|
6
|
-
{ name: "chat", effect: "private", summary: "Open an interactive chat with an agent." },
|
|
7
|
-
{ name: "event submit", effect: "others", summary: "Submit an event that can wake the agent and reach other people." },
|
|
8
|
-
{ name: "msg", effect: "others", summary: "Send a message to another agent." },
|
|
9
|
-
{ name: "nerves-review", effect: "private", readOnly: true, summary: "Review the runtime's nerves events." },
|
|
10
|
-
{ name: "private decisions", effect: "private", readOnly: true, summary: "List an agent's recent private decisions." },
|
|
6
|
+
{ name: "chat", effect: "private", summary: "Open an interactive chat with an agent.", ax: { id: "cli:chat", group: "mind", effect: "write", when: "Talk with an agent turn by turn in this terminal, starting the daemon if it is down; from a script, send one msg instead.", errors: [(0, cards_1.unknownFlag)("chat")] } },
|
|
7
|
+
{ name: "event submit", effect: "others", summary: "Submit an event that can wake the agent and reach other people.", ax: { id: "cli:event submit", group: "mind", effect: "write", when: "Hand the agent something that happened elsewhere, such as a webhook, with --source, --type and --id; it wakes the agent unless --no-wake.", errors: [(0, cards_1.usageError)("event submit", "needs --agent, --source, --type and --id, and --priority only as high, normal or low.", "Pass all four; the --id should be the outside system's own id so a retry isn't counted twice."), { code: "needs-why", means: "ouro event submit can lead the agent to reach other people, so it needs a reason it can record.", fix: "Add --why with one line on where the event came from." }, (0, cards_1.unknownFlag)("event submit")] } },
|
|
8
|
+
{ name: "msg", effect: "others", summary: "Send a message to another agent.", ax: { id: "cli:msg", group: "mind", effect: "consequential", confirm: "The other agent gets the message at once and may act on it; it can't be taken back.", when: "Send one message to another agent by --to, optionally into a --session or about a --task; a reason is required as --why.", errors: [(0, cards_1.usageError)("msg", "needs --to <agent> and the message text.", "Pass --to with the agent's name, then the text as the last argument."), { code: "needs-why", means: "ouro msg reaches another agent, so it needs a reason it can record.", fix: "Add --why with one line on why you are sending it." }, (0, cards_1.unknownFlag)("msg")] } },
|
|
9
|
+
{ name: "nerves-review", effect: "private", readOnly: true, summary: "Review the runtime's nerves events.", ax: { id: "cli:nerves-review", group: "mind", effect: "read", when: "Debug what the runtime did by filtering one process's event log by component, event, level and --since window.", errors: [(0, cards_1.unknownFlag)("nerves-review")] } },
|
|
10
|
+
{ name: "private decisions", effect: "private", readOnly: true, summary: "List an agent's recent private decisions.", ax: { id: "cli:private decisions", group: "mind", effect: "read", when: "Find out why the agent did or didn't act on its own lately: its recent policy choices, newest first, up to --limit.", errors: [(0, cards_1.unknownFlag)("private decisions"), (0, cards_1.daemonDown)("private decisions")] } },
|
|
11
11
|
{ name: "private status", effect: "private", readOnly: true, summary: "Show an agent's private status.", ax: { id: "cli:private status", group: "mind", effect: "read", when: "See the inner runtime's cadence, its last wake, open return obligations and how much the diary holds.", errors: [(0, cards_1.unknownFlag)("private status")] } },
|
|
12
12
|
{ name: "thoughts", effect: "private", readOnly: true, summary: "Show an agent's recent thoughts.", ax: { id: "cli:thoughts", group: "mind", effect: "read", when: "Read the private runtime's recent turns to understand what the agent is mulling; --follow streams new ones live.", errors: [(0, cards_1.unknownFlag)("thoughts")] } },
|
|
13
|
-
{ name: "work card", effect: "private", readOnly: true, summary: "Show the agent's work card." },
|
|
14
|
-
{ name: "work gauntlet", effect: "private", readOnly: true, summary: "Show the agent's work gauntlet." },
|
|
15
|
-
{ name: "work sentinel", effect: "private", readOnly: true, summary: "Show the agent's work sentinel." },
|
|
13
|
+
{ name: "work card", effect: "private", readOnly: true, summary: "Show the agent's work card.", ax: { id: "cli:work card", group: "mind", effect: "read", when: "See the agent's current work as compiled from its durable records: what it owns, what is open and what comes next.", errors: [(0, cards_1.unknownFlag)("work card")] } },
|
|
14
|
+
{ name: "work gauntlet", effect: "private", readOnly: true, summary: "Show the agent's work gauntlet.", ax: { id: "cli:work gauntlet", group: "mind", effect: "read", when: "Score whether the agent could pick its work back up after losing its context, from its records alone.", errors: [(0, cards_1.unknownFlag)("work gauntlet")] } },
|
|
15
|
+
{ name: "work sentinel", effect: "private", readOnly: true, summary: "Show the agent's work sentinel.", ax: { id: "cli:work sentinel", group: "mind", effect: "read", when: "Read the saved recovery checkpoint the agent would resume from after a crash, without changing it.", errors: [(0, cards_1.unknownFlag)("work sentinel")] } },
|
|
16
16
|
{ name: "inner", effect: "private", readOnly: true, hidden: true, summary: "The older name of private status.", ax: { id: "cli:inner", group: "mind", effect: "read", when: "Kept so existing scripts still run; it prints a note to use private status, then the same answer private status gives.", errors: [(0, cards_1.unknownFlag)("inner")] } },
|
|
17
|
+
{ name: "event", effect: "private", readOnly: true, summary: "The commands for outside events the daemon handles.", ax: { id: "cli:event", group: "mind", effect: "read", when: "Names the two ways to feed the daemon outside happenings: submit hands it one event, repair applies a fix manifest.", errors: [(0, cards_1.needsSubcommand)("event", "submit, repair"), (0, cards_1.unknownFlag)("event")] } },
|
|
18
|
+
{ name: "event repair", effect: "private", summary: "Apply a reviewed repair manifest for event receipts.", ax: { id: "cli:event repair", group: "mind", effect: "write", when: "After someone has reviewed a receipt-repair manifest: has the owning daemon apply it to the stored event receipts.", errors: [(0, cards_1.usageError)("event repair", "needs exactly --manifest <path>.", "Pass the reviewed manifest's path with --manifest and nothing else."), (0, cards_1.unknownFlag)("event repair")] } },
|
|
19
|
+
{ name: "private", effect: "private", readOnly: true, summary: "The commands for an agent's private runtime.", ax: { id: "cli:private", group: "mind", effect: "read", when: "Names the two views of the agent's own background thinking: status for its state now, decisions for its recent choices.", errors: [(0, cards_1.needsSubcommand)("private", "status, decisions"), (0, cards_1.unknownFlag)("private")] } },
|
|
20
|
+
{ name: "work", effect: "private", readOnly: true, summary: "The commands for an agent's durable work state.", ax: { id: "cli:work", group: "mind", effect: "read", when: "Names the views of what the agent is working on that survive a lost context: card, gauntlet and sentinel.", errors: [(0, cards_1.needsSubcommand)("work", "card, gauntlet, sentinel"), (0, cards_1.unknownFlag)("work")] } },
|
|
21
|
+
{ name: "work sentinel refresh", effect: "private", summary: "Rebuild the agent's recovery checkpoint.", ax: { id: "cli:work sentinel refresh", group: "mind", effect: "write", when: "When the saved recovery checkpoint looks out of date: rebuilds it now from the agent's durable records.", errors: [(0, cards_1.unknownFlag)("work sentinel refresh")] } },
|
|
22
|
+
{ name: "attention", effect: "private", readOnly: true, summary: "List the items waiting for an agent's attention.", ax: { id: "cli:attention", group: "mind", effect: "read", when: "See what is queued for the agent to deal with next, such as unanswered messages, each with an id for show.", errors: [(0, cards_1.unknownFlag)("attention")] } },
|
|
23
|
+
{ name: "attention show", effect: "private", readOnly: true, summary: "Show one attention item.", ax: { id: "cli:attention show", group: "mind", effect: "read", when: "Read one queued item in full by the id the attention list gave it: where it came from and why it is waiting.", errors: [(0, cards_1.unknownFlag)("attention show")] } },
|
|
24
|
+
{ name: "attention history", effect: "private", readOnly: true, summary: "Show the attention items an agent has handled.", ax: { id: "cli:attention history", group: "mind", effect: "read", when: "Look back at items the agent has already dealt with or dropped, to see how and when each one left the queue.", errors: [(0, cards_1.unknownFlag)("attention history")] } },
|
|
17
25
|
];
|
|
@@ -3,12 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PROVIDERS_COMMANDS = void 0;
|
|
4
4
|
const cards_1 = require("./cards");
|
|
5
5
|
exports.PROVIDERS_COMMANDS = [
|
|
6
|
-
{ name: "auth", effect: "private", summary: "Store or check provider credentials for an agent." },
|
|
6
|
+
{ name: "auth", effect: "private", summary: "Store or check provider credentials for an agent.", ax: { id: "cli:auth", group: "providers", effect: "write", when: "Give an agent a model provider's credentials: a browser sign-in, or an Anthropic key piped in with --api-key-file.", errors: [(0, cards_1.usageError)("auth", "got a --provider it doesn't know, or --api-key-file or --base-url with a provider other than anthropic.", "Use a provider the usage lists; the API-key flags work only with --provider anthropic."), (0, cards_1.needsTerminal)("auth", "Ask the person to run it in their terminal, or pipe an API key in with --api-key-file /dev/stdin."), (0, cards_1.unknownFlag)("auth"), ...(0, cards_1.agentErrors)("auth")] } },
|
|
7
7
|
{ name: "auth verify", effect: "private", readOnly: true, summary: "Check that an agent's provider credentials work.", ax: { id: "cli:auth verify", group: "providers", effect: "read", when: "After storing or rotating a key, test each credential live without changing any of them.", errors: [(0, cards_1.unknownFlag)("auth verify"), ...(0, cards_1.agentErrors)("auth verify")] } },
|
|
8
|
-
{ name: "account ensure", effect: "private", summary: "Make sure an agent has its account and mail keys." },
|
|
8
|
+
{ name: "account ensure", effect: "private", summary: "Make sure an agent has its account and mail keys.", ax: { id: "cli:account ensure", group: "providers", effect: "write", when: "Before mail or other hosted work: creates or repairs the agent's hosted account and Mailroom keys, idempotently.", idempotent: true, errors: [(0, cards_1.usageError)("account ensure", "got --no-delegated-source together with --owner-email or --source.", "Pass --owner-email and --source for a delegated source, or --no-delegated-source alone."), (0, cards_1.unknownFlag)("account ensure"), ...(0, cards_1.agentErrors)("account ensure")] } },
|
|
9
9
|
{ name: "check", effect: "private", readOnly: true, summary: "Check an agent's provider lane.", example: "check --lane inner", ax: { id: "cli:check", group: "providers", effect: "read", when: "Make one live call on the outward or inner lane to learn whether the agent can think right now; it records the result as that lane's readiness.", errors: [(0, cards_1.usageError)("check", "needs --lane outward or --lane inner.", "Add --lane outward for the person-facing lane or --lane inner for the agent's own."), (0, cards_1.unknownFlag)("check"), ...(0, cards_1.agentErrors)("check")] } },
|
|
10
|
-
{ name: "connect", effect: "private", summary: "Guide setup of an integration or local sense." },
|
|
11
|
-
{ name: "provider refresh", effect: "private", summary: "Refresh the daemon's cached provider credentials." },
|
|
12
|
-
{ name: "use", effect: "private", summary: "Choose the provider and model for a lane." },
|
|
10
|
+
{ name: "connect", effect: "private", summary: "Guide setup of an integration or local sense.", ax: { id: "cli:connect", group: "providers", effect: "write", when: "Set up an integration or local sense from a guided screen; name one, such as mail or telegram, to go straight there.", errors: [(0, cards_1.usageError)("connect", "got a target it doesn't set up.", "Use a target the usage lists, or run ouro connect alone for the guided screen."), (0, cards_1.needsTerminal)("connect", "Ask the person to run it in their terminal; setup asks for secrets at hidden prompts."), (0, cards_1.unknownFlag)("connect"), ...(0, cards_1.agentErrors)("connect")] } },
|
|
11
|
+
{ name: "provider refresh", effect: "private", summary: "Refresh the daemon's cached provider credentials.", ax: { id: "cli:provider refresh", group: "providers", effect: "write", when: "After auth or a vault change: makes the running daemon reload credentials so turns use the new ones without a restart.", errors: [(0, cards_1.unknownFlag)("provider refresh"), ...(0, cards_1.agentErrors)("provider refresh")] } },
|
|
12
|
+
{ name: "use", effect: "private", summary: "Choose the provider and model for a lane.", ax: { id: "cli:use", group: "providers", effect: "write", when: "Point the outward or inner lane at a provider and model on this machine; it checks the pair live unless --force.", errors: [(0, cards_1.usageError)("use", "needs --lane, --provider and --model together.", "Pass all three, such as --lane outward --provider anthropic --model <id>."), (0, cards_1.unknownFlag)("use"), ...(0, cards_1.agentErrors)("use")] } },
|
|
13
13
|
{ name: "config models", effect: "private", readOnly: true, summary: "List the models the agent's provider offers.", ax: { id: "cli:config models", group: "providers", effect: "read", when: "Before choosing a model with config model, list the ids the GitHub Copilot account offers.", errors: [(0, cards_1.unknownFlag)("config models"), ...(0, cards_1.agentErrors)("config models")] } },
|
|
14
|
+
{ name: "auth switch", effect: "private", summary: "Deprecated: switch a lane's provider.", ax: { id: "cli:auth switch", group: "providers", effect: "write", when: "Only for old scripts: moves a facing to another provider; new work should call use, which also sets the model.", errors: [(0, cards_1.usageError)("auth switch", "needs --provider <provider>.", "Pass --provider, or better, run ouro use with --lane, --provider and --model."), (0, cards_1.unknownFlag)("auth switch"), ...(0, cards_1.agentErrors)("auth switch")] } },
|
|
15
|
+
{ name: "provider", effect: "private", readOnly: true, summary: "The commands for the daemon's provider credentials.", ax: { id: "cli:provider", group: "providers", effect: "read", when: "Names the two provider helpers: refresh reloads credentials into the running daemon, check probes a lane live.", errors: [(0, cards_1.needsSubcommand)("provider", "refresh, check"), (0, cards_1.unknownFlag)("provider")] } },
|
|
16
|
+
{ name: "provider check", effect: "private", readOnly: true, summary: "The same live lane probe as check.", ax: { id: "cli:provider check", group: "providers", effect: "read", when: "Longer spelling kept beside provider refresh; prefer check, which takes the same --lane and gives the same answer.", errors: [(0, cards_1.usageError)("provider check", "needs --lane outward or --lane inner.", "Add --lane outward for the person-facing lane or --lane inner for the agent's own."), (0, cards_1.unknownFlag)("provider check"), ...(0, cards_1.agentErrors)("provider check")] } },
|
|
17
|
+
{ name: "account", effect: "private", readOnly: true, summary: "The commands for an agent's hosted account.", ax: { id: "cli:account", group: "providers", effect: "read", when: "Names the hosted work-substrate account helper; today only ensure, which sets up the account and Mailroom.", errors: [(0, cards_1.needsSubcommand)("account", "ensure"), (0, cards_1.unknownFlag)("account")] } },
|
|
18
|
+
{ name: "config", effect: "private", readOnly: true, summary: "Deprecated model helpers.", ax: { id: "cli:config", group: "providers", effect: "read", when: "Names the old model helpers, model and models; new work should choose lanes with use and test them with check.", errors: [(0, cards_1.needsSubcommand)("config", "model, models"), (0, cards_1.unknownFlag)("config")] } },
|
|
19
|
+
{ name: "config model", effect: "private", summary: "Deprecated: set the human-facing model.", ax: { id: "cli:config model", group: "providers", effect: "write", when: "Only for old scripts: changes the person-facing model name alone; use sets provider and model together per lane.", errors: [(0, cards_1.usageError)("config model", "needs a model name after it, not a flag.", "Pass the model id, such as one config models lists, or run ouro use instead."), (0, cards_1.unknownFlag)("config model"), ...(0, cards_1.agentErrors)("config model")] } },
|
|
14
20
|
];
|
|
@@ -3,16 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VAULT_COMMANDS = void 0;
|
|
4
4
|
const cards_1 = require("./cards");
|
|
5
5
|
exports.VAULT_COMMANDS = [
|
|
6
|
-
{ name: "vault config set", effect: "private", summary: "Set a vault config value." },
|
|
6
|
+
{ name: "vault config set", effect: "private", summary: "Set a vault config value.", ax: { id: "cli:vault config set", group: "vault", effect: "write", when: "Store a runtime setting or a sense's API key at agent or machine --scope; --value-file keeps a secret out of argv.", errors: [(0, cards_1.usageError)("vault config set", "needs --key <path>, the setting to store.", "Pass --key with the setting's path, as vault config status lists them."), (0, cards_1.needsTerminal)("vault config set", "For a secret, pipe it in with --value-file /dev/stdin, or ask the person to run it in their terminal."), (0, cards_1.unknownFlag)("vault config set"), ...(0, cards_1.agentErrors)("vault config set")] } },
|
|
7
7
|
{ name: "vault config status", effect: "private", readOnly: true, summary: "Show the vault config.", ax: { id: "cli:vault config status", group: "vault", effect: "read", when: "See which config keys are set at agent or machine scope, values hidden, before changing one.", errors: [(0, cards_1.unknownFlag)("vault config status"), ...(0, cards_1.agentErrors)("vault config status")] } },
|
|
8
|
-
{ name: "vault create", effect: "private", summary: "Create an agent's vault." },
|
|
8
|
+
{ name: "vault create", effect: "private", summary: "Create an agent's vault.", ax: { id: "cli:vault create", group: "vault", effect: "write", when: "For an agent that has no vault yet: makes one at its configured email and has the person choose an unlock secret, hidden.", errors: [(0, cards_1.usageError)("vault create", "got a --store that isn't one of the local stores it knows.", "Leave --store out to let it choose the platform's keychain, or pick one the usage lists."), (0, cards_1.needsTerminal)("vault create", "Ask the person to run it in their terminal, or pipe the secret in with --secret-file /dev/stdin."), (0, cards_1.unknownFlag)("vault create"), ...(0, cards_1.agentErrors)("vault create")] } },
|
|
9
9
|
{ name: "vault item list", effect: "private", readOnly: true, summary: "List vault items.", ax: { id: "cli:vault item list", group: "vault", effect: "read", when: "Find stored item paths, optionally under a --prefix, to pass as --item to another vault command.", errors: [(0, cards_1.unknownFlag)("vault item list"), ...(0, cards_1.agentErrors)("vault item list")] } },
|
|
10
|
-
{ name: "vault item set", effect: "private", summary: "Set a vault item's secret field." },
|
|
10
|
+
{ name: "vault item set", effect: "private", summary: "Set a vault item's secret field.", ax: { id: "cli:vault item set", group: "vault", effect: "write", when: "Save an ordinary credential, such as a website login, with hidden --secret-field prompts and optional public fields.", errors: [(0, cards_1.usageError)("vault item set", "needs --item <path> and at least one --secret-field or a --template.", "Pass --item with a path such as travel/airline and name each secret with --secret-field."), (0, cards_1.needsTerminal)("vault item set", "Ask the person to run it in their terminal: the secret fields are typed at hidden prompts."), (0, cards_1.unknownFlag)("vault item set"), ...(0, cards_1.agentErrors)("vault item set")] } },
|
|
11
11
|
{ name: "vault item status", effect: "private", readOnly: true, summary: "Show a vault item's status.", ax: { id: "cli:vault item status", group: "vault", effect: "read", when: "Check that one stored item exists and which field names it has, never revealing secret values.", errors: [(0, cards_1.usageError)("vault item status", "needs --item <path>, the item to look at.", "Find the path with ouro vault item list, then pass it as --item."), (0, cards_1.unknownFlag)("vault item status"), ...(0, cards_1.agentErrors)("vault item status")] } },
|
|
12
|
-
{ name: "vault ops porkbun set", effect: "private", summary: "Store the Porkbun account for DNS work.", ax: { id: "cli:vault ops porkbun set", group: "vault", effect: "write", when: "Before DNS work on a Porkbun domain, save that registrar account's API key pair, entered at a hidden prompt.", errors: [(0, cards_1.usageError)("vault ops porkbun set", "needs --account <account>, the Porkbun account the key belongs to.", "Pass --account with the account name, such as the login email."), (0, cards_1.unknownFlag)("vault ops porkbun set"), ...(0, cards_1.agentErrors)("vault ops porkbun set")] } },
|
|
12
|
+
{ name: "vault ops porkbun set", effect: "private", summary: "Store the Porkbun account for DNS work.", ax: { id: "cli:vault ops porkbun set", group: "vault", effect: "write", when: "Before DNS work on a Porkbun domain, save that registrar account's API key pair, entered at a hidden prompt.", errors: [(0, cards_1.needsTerminal)("vault ops porkbun set", "Ask the person to run it in their terminal: the API key pair is typed at hidden prompts."), (0, cards_1.usageError)("vault ops porkbun set", "needs --account <account>, the Porkbun account the key belongs to.", "Pass --account with the account name, such as the login email."), (0, cards_1.unknownFlag)("vault ops porkbun set"), ...(0, cards_1.agentErrors)("vault ops porkbun set")] } },
|
|
13
13
|
{ name: "vault ops porkbun status", effect: "private", readOnly: true, summary: "Show the Porkbun account status.", ax: { id: "cli:vault ops porkbun status", group: "vault", effect: "read", when: "See which Porkbun registrar accounts have API keys saved, or with --account whether one does, secrets hidden.", errors: [(0, cards_1.usageError)("vault ops porkbun status", "takes only --agent and --account; another word follows it.", "Drop the extra word, or pass it as --account <account>."), (0, cards_1.unknownFlag)("vault ops porkbun status"), ...(0, cards_1.agentErrors)("vault ops porkbun status")] } },
|
|
14
|
-
{ name: "vault recover", effect: "private", summary: "Recover an agent's vault from exported keys." },
|
|
15
|
-
{ name: "vault replace", effect: "private", summary: "Replace an agent's vault." },
|
|
14
|
+
{ name: "vault recover", effect: "private", summary: "Recover an agent's vault from exported keys.", ax: { id: "cli:vault recover", group: "vault", effect: "write", when: "When the vault is lost but credential JSON exports exist: builds a new vault from each --from file, under a new secret.", errors: [(0, cards_1.usageError)("vault recover", "needs at least one --from <json>, an exported credential file to import.", "Pass each export with its own --from; with no export at all, vault replace is the fallback."), (0, cards_1.needsTerminal)("vault recover", "Ask the person to run it in their terminal, or pipe the new secret in with --secret-file /dev/stdin."), (0, cards_1.unknownFlag)("vault recover"), ...(0, cards_1.agentErrors)("vault recover")] } },
|
|
15
|
+
{ name: "vault replace", effect: "private", summary: "Replace an agent's vault.", ax: { id: "cli:vault replace", group: "vault", effect: "consequential", destructive: true, confirm: "The agent gets a new empty vault; credentials in the old one stay behind unless you recover them from a JSON export.", when: "Last resort when the unlock secret is lost and no JSON export exists: starts the agent over with an empty vault.", errors: [(0, cards_1.needsTerminal)("vault replace", "Ask the person to run it in their terminal, or pipe the new secret in with --secret-file /dev/stdin."), (0, cards_1.unknownFlag)("vault replace"), ...(0, cards_1.agentErrors)("vault replace")] } },
|
|
16
16
|
{ name: "vault status", effect: "private", readOnly: true, summary: "Show the vault's status.", ax: { id: "cli:vault status", group: "vault", effect: "read", when: "Learn whether secrets can be read on this machine: unlocked or locked, and which local store holds the key.", errors: [(0, cards_1.unknownFlag)("vault status"), ...(0, cards_1.agentErrors)("vault status")] } },
|
|
17
|
-
{ name: "vault unlock", effect: "private", summary: "Unlock an agent's vault." },
|
|
17
|
+
{ name: "vault unlock", effect: "private", summary: "Unlock an agent's vault.", ax: { id: "cli:vault unlock", group: "vault", effect: "write", when: "When commands report the vault locked on this machine: the person enters the unlock secret once and it is kept locally.", errors: [(0, cards_1.usageError)("vault unlock", "got a --store this machine doesn't offer.", "Leave --store out to let it choose, or pick a store vault status lists."), (0, cards_1.needsTerminal)("vault unlock", "Ask the person to run ouro vault unlock in their own terminal; never ask them for the secret."), (0, cards_1.unknownFlag)("vault unlock"), ...(0, cards_1.agentErrors)("vault unlock")] } },
|
|
18
|
+
{ name: "vault", effect: "private", readOnly: true, summary: "The commands for an agent's credential vault.", ax: { id: "cli:vault", group: "vault", effect: "read", when: "Start here when a step needs stored credentials: it names create, replace, recover, unlock and status.", errors: [(0, cards_1.needsSubcommand)("vault", "create, replace, recover, unlock, status, config, item, ops"), (0, cards_1.unknownFlag)("vault")] } },
|
|
19
|
+
{ name: "vault config", effect: "private", readOnly: true, summary: "The commands for runtime settings kept in the vault.", ax: { id: "cli:vault config", group: "vault", effect: "read", when: "Names the two ways to handle settings senses and integrations read at runtime, such as API keys: set and status.", errors: [(0, cards_1.needsSubcommand)("vault config", "set, status"), (0, cards_1.unknownFlag)("vault config")] } },
|
|
20
|
+
{ name: "vault item", effect: "private", readOnly: true, summary: "The commands for ordinary credentials kept in the vault.", ax: { id: "cli:vault item", group: "vault", effect: "read", when: "Names the ways to handle ordinary credentials, such as a website login for travel: set, status and list.", errors: [(0, cards_1.needsSubcommand)("vault item", "set, status, list"), (0, cards_1.unknownFlag)("vault item")] } },
|
|
21
|
+
{ name: "vault ops", effect: "private", readOnly: true, summary: "The commands for credentials managed workflows use.", ax: { id: "cli:vault ops", group: "vault", effect: "read", when: "Names the credential helpers that managed workflows rely on; today the only one keeps Porkbun registrar keys.", errors: [(0, cards_1.needsSubcommand)("vault ops", "porkbun"), (0, cards_1.unknownFlag)("vault ops")] } },
|
|
22
|
+
{ name: "vault ops porkbun", effect: "private", readOnly: true, summary: "The commands for Porkbun registrar API keys.", ax: { id: "cli:vault ops porkbun", group: "vault", effect: "read", when: "Names the two Porkbun key actions that DNS work needs: set saves an account's key pair, status shows saved ones.", errors: [(0, cards_1.needsSubcommand)("vault ops porkbun", "set, status"), (0, cards_1.unknownFlag)("vault ops porkbun")] } },
|
|
18
23
|
];
|
|
@@ -1900,7 +1900,7 @@ function ensureVaultSecretPrompt(promptSecret, action, secretFile) {
|
|
|
1900
1900
|
}
|
|
1901
1901
|
if (promptSecret)
|
|
1902
1902
|
return promptSecret;
|
|
1903
|
-
throw
|
|
1903
|
+
throw needsTerminal(`vault ${action} requires an interactive secret prompt that does not echo the vault unlock secret`);
|
|
1904
1904
|
}
|
|
1905
1905
|
function rejectGeneratedVaultUnlockSecret(action) {
|
|
1906
1906
|
throw new Error(`vault ${action} no longer supports --generate-unlock-secret. Re-run without that flag and enter a human-chosen unlock secret; Ouro will not print vault unlock secrets.`);
|
|
@@ -2561,7 +2561,7 @@ async function promptRuntimeConfigValue(command, deps) {
|
|
|
2561
2561
|
return readSecretValueFile("--value-file", command.valueFile);
|
|
2562
2562
|
if (isSensitiveRuntimeConfigKey(command.key)) {
|
|
2563
2563
|
if (!deps.promptSecret) {
|
|
2564
|
-
throw
|
|
2564
|
+
throw needsTerminal("secret entry requires an interactive terminal so the value can be hidden. Re-run without --value in a terminal, or pass --value only from a trusted non-logged script.");
|
|
2565
2565
|
}
|
|
2566
2566
|
return deps.promptSecret(`Value for ${command.key}: `);
|
|
2567
2567
|
}
|
|
@@ -3045,15 +3045,19 @@ async function executeDnsWorkflow(command, deps) {
|
|
|
3045
3045
|
deps.writeStdout(message);
|
|
3046
3046
|
return message;
|
|
3047
3047
|
}
|
|
3048
|
+
/** A step that has to prompt the person, run where there is no terminal: the `needs-terminal` error the cards name. */
|
|
3049
|
+
function needsTerminal(message) {
|
|
3050
|
+
return Object.assign(new Error(message), { code: "needs-terminal" });
|
|
3051
|
+
}
|
|
3048
3052
|
function requirePromptSecret(deps, purpose) {
|
|
3049
3053
|
if (deps.promptSecret)
|
|
3050
3054
|
return deps.promptSecret;
|
|
3051
|
-
throw
|
|
3055
|
+
throw needsTerminal(`${purpose} requires an interactive terminal so the secret can be hidden.`);
|
|
3052
3056
|
}
|
|
3053
3057
|
function requirePromptInput(deps, purpose) {
|
|
3054
3058
|
if (deps.promptInput)
|
|
3055
3059
|
return deps.promptInput;
|
|
3056
|
-
throw
|
|
3060
|
+
throw needsTerminal(`${purpose} requires an interactive terminal.`);
|
|
3057
3061
|
}
|
|
3058
3062
|
function parseOptionalPort(value, fallback, label) {
|
|
3059
3063
|
const trimmed = value.trim();
|
|
@@ -354,6 +354,7 @@ function usage() {
|
|
|
354
354
|
" ouro check [--agent <name>] --lane outward|inner",
|
|
355
355
|
" ouro repair [--agent <name>]",
|
|
356
356
|
" ouro provider refresh [--agent <name>]",
|
|
357
|
+
" ouro provider check [--agent <name>] --lane outward|inner",
|
|
357
358
|
" ouro mailbox [--json]",
|
|
358
359
|
" ouro help [<command>] [--json]",
|
|
359
360
|
" ouro changelog [--from <version>]",
|
|
@@ -365,7 +366,9 @@ function usage() {
|
|
|
365
366
|
" ouro mail import-mbox --file <path> [--owner-email <email>] [--source <label>] [--agent <name>] [--foreground]",
|
|
366
367
|
" ouro mail backfill-indexes [--agent <name>] [--foreground]",
|
|
367
368
|
" ouro mail sweep-orphans [--agent <name>] [--live]",
|
|
369
|
+
" ouro mail sync-cache [--agent <name>]",
|
|
368
370
|
" ouro auth verify [--agent <name>] [--provider <provider>]",
|
|
371
|
+
" ouro auth switch [--agent <name>] --provider <provider> [--facing human|agent]",
|
|
369
372
|
" ouro vault create [--agent <name>] --email <email> [--server <url>] [--store <store>]",
|
|
370
373
|
" ouro vault replace [--agent <name>] [--email <email>] [--server <url>] [--store <store>]",
|
|
371
374
|
" ouro vault recover [--agent <name>] --from <json> [--from <json>] [--email <email>] [--server <url>] [--store <store>]",
|
|
@@ -382,6 +385,7 @@ function usage() {
|
|
|
382
385
|
" ouro chat <agent>",
|
|
383
386
|
" ouro msg --to <agent> [--session <id>] [--task <ref>] <message>",
|
|
384
387
|
" ouro event submit --agent <agent> --source <source> --type <event-type> --id <provider-id> [--summary <text>] [--evidence <path>] [--payload <path>] [--priority high|normal|low] [--no-wake]",
|
|
388
|
+
" ouro event repair --manifest <path>",
|
|
385
389
|
" ouro poke <agent> --task <task-id>",
|
|
386
390
|
" ouro poke <agent> --habit <name> [--trigger poke|launchd|cron|overdue|manual]",
|
|
387
391
|
" ouro habit list [--agent <name>]",
|
|
@@ -404,9 +408,15 @@ function usage() {
|
|
|
404
408
|
" ouro private decisions [--agent <name>] [--limit <n>] [--json]",
|
|
405
409
|
" ouro private status [--agent <name>] [--json]",
|
|
406
410
|
" ouro work card|gauntlet|sentinel [refresh] [--agent <name>] [--format text|json|--json]",
|
|
411
|
+
" ouro work sentinel refresh [--agent <name>] [--format text|json|--json]",
|
|
412
|
+
" ouro attention [--agent <name>]",
|
|
413
|
+
" ouro attention show <id> [--agent <name>]",
|
|
414
|
+
" ouro attention history [--agent <name>]",
|
|
407
415
|
" ouro nerves-review [--agent <name>] [--process <name>] [--component <substr>] [--event <substr>] [--level <level>] [--since <duration>] [--limit <n>] [--json]",
|
|
408
416
|
" ouro friend link <agent> --friend <id> --provider <p> --external-id <eid>",
|
|
409
417
|
" ouro friend unlink <agent> --friend <id> --provider <p> --external-id <eid>",
|
|
418
|
+
" ouro friend merge --into <friend-id> <friend-id>... [--agent <name>] [--apply]",
|
|
419
|
+
" ouro friend dedupe [--agent <name>] [--apply]",
|
|
410
420
|
" ouro a2a card [--agent <name>] [--base-url <url>] [--json]",
|
|
411
421
|
" ouro a2a onboard [--agent <name>] (--card-url <url>|--did <did:key> --name <name>) [--trust <level>] [--name <name>]",
|
|
412
422
|
" ouro a2a serve [--agent <name>] [--host <host>] [--port <port>] [--base-url <url>] [--path <path>]",
|
|
@@ -430,6 +440,9 @@ function usage() {
|
|
|
430
440
|
" ouro mcp list",
|
|
431
441
|
" ouro mcp call <server> <tool> [--args '{...}']",
|
|
432
442
|
" ouro mcp doctor --agent <name> [--json]",
|
|
443
|
+
" ouro mcp canary --agent <name> [--json]",
|
|
444
|
+
" ouro mcp-serve --agent <name> [--friend <id>]",
|
|
445
|
+
" ouro acp-serve --agent <name> [--friend-id <id>] [--workbench-mcp [path]] [--observe-only]",
|
|
433
446
|
" ouro rollback [<version>]",
|
|
434
447
|
" ouro versions",
|
|
435
448
|
" ouro clone <remote> [--agent <name>]",
|
|
@@ -64,8 +64,10 @@ const DISPATCH_EXEMPT_PATTERNS = [
|
|
|
64
64
|
"daemon/cli-render",
|
|
65
65
|
"daemon/cli-help",
|
|
66
66
|
"daemon/vault-items",
|
|
67
|
-
// The
|
|
68
|
-
|
|
67
|
+
// The ouro commands' Ouro AX cards and the error-card builders they share: pure data, read by
|
|
68
|
+
// cli-manifest, with cli-exec as the router that emits. Card prose such as "let it choose" would
|
|
69
|
+
// otherwise read as code to isTypeOnlyFile.
|
|
70
|
+
"daemon/cli-commands/",
|
|
69
71
|
// Shared utility modules: pure helpers consumed by modules that own observability.
|
|
70
72
|
"arc/json-store",
|
|
71
73
|
"heart/mail-import-discovery",
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ouro.bot/cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.1298",
|
|
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.
|
|
9
|
+
"version": "0.1.0-alpha.1298",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"@ouro.bot/friends"
|
|
12
12
|
],
|