@ouro.bot/cli 0.1.0-alpha.1296 → 0.1.0-alpha.1297
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 +6 -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/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 +2 -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,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.1297",
|
|
6
|
+
"changes": [
|
|
7
|
+
"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."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.1296",
|
|
6
12
|
"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.1297</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,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>]",
|
|
@@ -366,6 +367,7 @@ function usage() {
|
|
|
366
367
|
" ouro mail backfill-indexes [--agent <name>] [--foreground]",
|
|
367
368
|
" ouro mail sweep-orphans [--agent <name>] [--live]",
|
|
368
369
|
" ouro auth verify [--agent <name>] [--provider <provider>]",
|
|
370
|
+
" ouro auth switch [--agent <name>] --provider <provider> [--facing human|agent]",
|
|
369
371
|
" ouro vault create [--agent <name>] --email <email> [--server <url>] [--store <store>]",
|
|
370
372
|
" ouro vault replace [--agent <name>] [--email <email>] [--server <url>] [--store <store>]",
|
|
371
373
|
" ouro vault recover [--agent <name>] --from <json> [--from <json>] [--email <email>] [--server <url>] [--store <store>]",
|
|
@@ -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.1297",
|
|
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.1297",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"@ouro.bot/friends"
|
|
12
12
|
],
|