@ouro.bot/cli 0.1.0-alpha.676 → 0.1.0-alpha.677
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.677",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Support structured JSON output for ouro private status so the installed private-runtime CLI matches its advertised help surface alongside private decisions."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.676",
|
|
6
12
|
"changes": [
|
|
@@ -7719,14 +7719,17 @@ async function runOuroCli(args, deps = (0, cli_defaults_1.createDefaultOuroCliDe
|
|
|
7719
7719
|
catch { /* no habits — heartbeat unknown */ }
|
|
7720
7720
|
// Attention count
|
|
7721
7721
|
const activeObligations = listActiveReturnObligations(command.agent);
|
|
7722
|
-
const
|
|
7722
|
+
const statusPayload = {
|
|
7723
7723
|
agentName: command.agent,
|
|
7724
7724
|
runtimeState,
|
|
7725
7725
|
recordSummary,
|
|
7726
7726
|
heartbeat,
|
|
7727
7727
|
attentionCount: activeObligations.length,
|
|
7728
7728
|
now: Date.now(),
|
|
7729
|
-
}
|
|
7729
|
+
};
|
|
7730
|
+
const statusOutput = command.json
|
|
7731
|
+
? `${JSON.stringify(statusPayload, null, 2)}\n`
|
|
7732
|
+
: buildInnerStatusOutput(statusPayload);
|
|
7730
7733
|
const message = command.legacyAlias === "inner"
|
|
7731
7734
|
? [`legacy alias: use \`ouro private status --agent ${command.agent}\``, statusOutput].join("\n")
|
|
7732
7735
|
: statusOutput;
|
|
@@ -346,8 +346,8 @@ const SUBCOMMAND_HELP = {
|
|
|
346
346
|
},
|
|
347
347
|
"private status": {
|
|
348
348
|
description: "Show private-runtime status from local agent state",
|
|
349
|
-
usage: "ouro private status [--agent <name>]",
|
|
350
|
-
example: "ouro private status --agent ouroboros",
|
|
349
|
+
usage: "ouro private status [--agent <name>] [--json]",
|
|
350
|
+
example: "ouro private status --agent ouroboros --json",
|
|
351
351
|
},
|
|
352
352
|
"auth verify": {
|
|
353
353
|
description: "Verify agent provider credentials without changing provider/model lanes",
|
|
@@ -119,7 +119,7 @@ function usage() {
|
|
|
119
119
|
" ouro friend update <id> --trust <level> [--agent <name>]",
|
|
120
120
|
" ouro thoughts [--last <n>] [--json] [--follow] [--agent <name>]",
|
|
121
121
|
" ouro private decisions [--agent <name>] [--limit <n>] [--json]",
|
|
122
|
-
" ouro private status [--agent <name>]",
|
|
122
|
+
" ouro private status [--agent <name>] [--json]",
|
|
123
123
|
" ouro work card|gauntlet|sentinel [refresh] [--agent <name>] [--format text|json|--json]",
|
|
124
124
|
" ouro nerves-review [--agent <name>] [--process <name>] [--component <substr>] [--event <substr>] [--level <level>] [--since <duration>] [--limit <n>] [--json]",
|
|
125
125
|
" ouro friend link <agent> --friend <id> --provider <p> --external-id <eid>",
|
|
@@ -1642,13 +1642,19 @@ function parsePrivateCommand(args) {
|
|
|
1642
1642
|
const [subcommand] = args;
|
|
1643
1643
|
if (subcommand === "status") {
|
|
1644
1644
|
const { agent, rest } = extractAgentFlag(args.slice(1));
|
|
1645
|
-
|
|
1646
|
-
|
|
1645
|
+
let json = false;
|
|
1646
|
+
for (const token of rest) {
|
|
1647
|
+
if (token === "--json") {
|
|
1648
|
+
json = true;
|
|
1649
|
+
}
|
|
1650
|
+
else {
|
|
1651
|
+
throw new Error("Usage: ouro private status [--agent <name>] [--json]");
|
|
1652
|
+
}
|
|
1647
1653
|
}
|
|
1648
|
-
return { kind: "private.status", ...(agent ? { agent } : {}) };
|
|
1654
|
+
return { kind: "private.status", ...(agent ? { agent } : {}), json };
|
|
1649
1655
|
}
|
|
1650
1656
|
if (subcommand !== "decisions") {
|
|
1651
|
-
throw new Error("Usage: ouro private decisions [--agent <name>] [--limit <n>] [--json] OR ouro private status [--agent <name>]");
|
|
1657
|
+
throw new Error("Usage: ouro private decisions [--agent <name>] [--limit <n>] [--json] OR ouro private status [--agent <name>] [--json]");
|
|
1652
1658
|
}
|
|
1653
1659
|
const { agent, rest } = extractAgentFlag(args.slice(1));
|
|
1654
1660
|
let limit = 20;
|