@ouro.bot/cli 0.1.0-alpha.1468 → 0.1.0-alpha.1469
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 +15 -0
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/dist/heart/daemon/cli-commands/desk.js +31 -22
- package/dist/heart/daemon/cli-desk.js +212 -195
- package/dist/heart/daemon/cli-gate.js +5 -5
- package/dist/heart/daemon/cli-help.js +3 -3
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/changelog.json
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_note": "Each pull request writes its own change note under changes/; the release job on main gives each landed change its version and adds the notes here (scripts/release-version.cjs). On main this file stops at the last version set by hand; the published package has every release. Agents read this file directly via read_file to understand what changed between versions.",
|
|
3
3
|
"versions": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.1.0-alpha.1469",
|
|
6
|
+
"changes": [
|
|
7
|
+
"`ouro desk` now calls the tools the agent's built-in Desk actually has, so each verb works instead of failing at Desk:",
|
|
8
|
+
"Tasks are named `<track>/<slug>` everywhere. `ouro desk task new <track>/<slug>` (or `<slug> --track <track>`) takes an optional `--title`, which is the slug when you leave it out.",
|
|
9
|
+
"`ouro desk task done <track>/<slug>` needs its proof: `--pr <url>` or `--commit <sha>`.",
|
|
10
|
+
"`ouro desk task archive <track>/<slug>` archives a done task. Add `--cancelled` to archive one that was dropped.",
|
|
11
|
+
"`ouro desk track new <slug>` needs `--title <title>` and `--scope \"<what belongs>; not <what doesn't>\"`.",
|
|
12
|
+
"`ouro desk lesson add <text>` needs `--scope personal|desk|team` and `--topic <short name>`.",
|
|
13
|
+
"`ouro desk status` shows whether the desk is ready, `ouro desk doctor` diagnoses the Desk server, and `ouro desk reindex` re-reads the desk into search.",
|
|
14
|
+
"`ouro desk thread` is gone, because Desk has no such tool.",
|
|
15
|
+
"`--desk <name>` on any of these verbs uses another desk named in the agent's agent.json instead of the main one. The `ouro task ...` shortcut takes the same arguments.",
|
|
16
|
+
"`ouro desk track show <slug>` lists that track's tasks. `ouro desk track list` is gone, because Desk doesn't keep tracks in its search; `ouro desk task list` shows each task's track."
|
|
17
|
+
]
|
|
18
|
+
},
|
|
4
19
|
{
|
|
5
20
|
"version": "0.1.0-alpha.1468",
|
|
6
21
|
"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.1469</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -2,33 +2,42 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DESK_COMMANDS = void 0;
|
|
4
4
|
const cards_1 = require("./cards");
|
|
5
|
+
const FIND_TASK = "Find it with ouro desk task list, then pass it as <track>/<slug>.";
|
|
6
|
+
/** A desk verb's errors: the words it was given are wrong, a flag it doesn't take, or the daemon isn't up. */
|
|
7
|
+
function deskErrors(name, needs, fix) {
|
|
8
|
+
return [(0, cards_1.usageError)(name, needs, fix), (0, cards_1.unknownFlag)(name), (0, cards_1.daemonDown)(name)];
|
|
9
|
+
}
|
|
10
|
+
/** The task verbs, once under `desk task` and once under the shorter `task`. */
|
|
11
|
+
function taskCommands(prefix) {
|
|
12
|
+
const alias = prefix === "task";
|
|
13
|
+
const when = (full, short) => (alias ? `Shorter spelling of desk task ${short}` : full);
|
|
14
|
+
return [
|
|
15
|
+
{ name: `${prefix} list`, effect: "private", readOnly: true, summary: "List the desk's tasks.", ax: { id: `cli:${prefix} list`, group: "desk", effect: "read", when: when("Find the agent's tasks, optionally only one --track or one --status, to get the <track>/<slug> for show, done or archive.", "list: the agent's tasks, filtered by --track or --status, each with its <track>/<slug>."), errors: deskErrors(`${prefix} list`, "takes no words, only its flags.", "Drop the extra words; filter with --track <track> or --status <status>.") } },
|
|
16
|
+
{ name: `${prefix} new`, effect: "private", summary: "Create a desk task.", ax: { id: `cli:${prefix} new`, group: "desk", effect: "write", when: when("Open a new piece of work for the agent as <track>/<slug> in an existing track, with an optional --title (the slug by default).", "new: opens a task as <track>/<slug>, or <slug> --track <track>, with an optional --title."), errors: deskErrors(`${prefix} new`, "needs one task as <track>/<slug>, or <slug> --track <track>, naming the track once.", "Pass the new task's slug with its track (ouro desk task list shows each task's track), such as harness/fix-login.") } },
|
|
17
|
+
{ name: `${prefix} done`, effect: "private", summary: "Mark a desk task done.", ax: { id: `cli:${prefix} done`, group: "desk", effect: "write", when: when("Record that a task's outcome was delivered, by <track>/<slug>, with its proof: --pr <url> or --commit <sha>.", "done: marks a task delivered by <track>/<slug>, with --pr <url> or --commit <sha> as proof."), errors: deskErrors(`${prefix} done`, "needs one task as <track>/<slug> and one piece of evidence: --pr <url> or --commit <sha>.", "Pass the task's <track>/<slug> with --pr and the pull request's URL, or --commit and the pushed commit's sha.") } },
|
|
18
|
+
{ name: `${prefix} archive`, effect: "private", summary: "Archive a desk task.", ax: { id: `cli:${prefix} archive`, group: "desk", effect: "write", when: when("Move a done task out of the active desk by <track>/<slug>, keeping its record; --cancelled archives one that was dropped.", "archive: moves a done task by <track>/<slug> into the archive, or a dropped one with --cancelled."), errors: deskErrors(`${prefix} archive`, "needs one task as <track>/<slug>.", FIND_TASK) } },
|
|
19
|
+
{ name: `${prefix} show`, effect: "private", readOnly: true, summary: "Show a desk task.", ax: { id: `cli:${prefix} show`, group: "desk", effect: "read", when: when("Read one task's card by <track>/<slug>: its outcome, status, next step and anything blocking it.", "show: one task's card by <track>/<slug>, with its status and next step."), errors: deskErrors(`${prefix} show`, "needs one task as <track>/<slug>.", FIND_TASK) } },
|
|
20
|
+
];
|
|
21
|
+
}
|
|
5
22
|
exports.DESK_COMMANDS = [
|
|
6
|
-
{ name: "desk", effect: "private", readOnly: true, summary: "The commands for an agent's desk.", ax: { id: "cli:desk", group: "desk", effect: "read", when: "Names the ways to reach the agent's work records, such as tasks, tracks, lessons and
|
|
23
|
+
{ name: "desk", effect: "private", readOnly: true, summary: "The commands for an agent's desk.", ax: { id: "cli:desk", group: "desk", effect: "read", when: "Names the ways to reach the agent's work records, such as tasks, tracks, lessons, search and Desk's health, and Hosted Desk admin.", errors: [(0, cards_1.needsSubcommand)("desk", "task, track, friction, lesson, search, recall, status, doctor, reindex, invite, access, delete-account"), (0, cards_1.unknownFlag)("desk")] } },
|
|
7
24
|
{ name: "desk task", effect: "private", readOnly: true, summary: "The commands for desk tasks.", ax: { id: "cli:desk task", group: "desk", effect: "read", when: "Names the five task actions on the agent's desk: list, new, done, archive and show.", errors: [(0, cards_1.needsSubcommand)("desk task", "list, new, done, archive, show"), (0, cards_1.unknownFlag)("desk task")] } },
|
|
8
|
-
|
|
9
|
-
{ name: "desk
|
|
10
|
-
{ name: "desk
|
|
11
|
-
{ name: "desk
|
|
12
|
-
{ name: "desk task show", effect: "private", readOnly: true, summary: "Show a desk task.", ax: { id: "cli:desk task show", group: "desk", effect: "read", when: "Read one task's card by its slug: its outcome, status, next step and anything blocking it.", errors: [(0, cards_1.usageError)("desk task show", "needs the task's slug.", "Find it with ouro desk task list, then pass it."), (0, cards_1.unknownFlag)("desk task show"), (0, cards_1.daemonDown)("desk task show")] } },
|
|
13
|
-
{ name: "desk track", effect: "private", readOnly: true, summary: "The commands for desk tracks.", ax: { id: "cli:desk track", group: "desk", effect: "read", when: "Names the three actions on the long-running areas that group tasks: list, new and show.", errors: [(0, cards_1.needsSubcommand)("desk track", "list, new, show"), (0, cards_1.unknownFlag)("desk track")] } },
|
|
14
|
-
{ name: "desk track list", effect: "private", readOnly: true, summary: "List the desk's tracks.", ax: { id: "cli:desk track list", group: "desk", effect: "read", when: "See the areas the agent files its tasks under, to pick the --track for a new task.", errors: [(0, cards_1.unknownFlag)("desk track list"), (0, cards_1.daemonDown)("desk track list")] } },
|
|
15
|
-
{ name: "desk track new", effect: "private", summary: "Create a desk track.", ax: { id: "cli:desk track new", group: "desk", effect: "write", when: "Start a new long-running area for tasks, under a short slug, when no existing track fits the work.", errors: [(0, cards_1.usageError)("desk track new", "needs the track's slug.", "Pass a short slug for the new track."), (0, cards_1.unknownFlag)("desk track new"), (0, cards_1.daemonDown)("desk track new")] } },
|
|
16
|
-
{ name: "desk track show", effect: "private", readOnly: true, summary: "Show a desk track.", ax: { id: "cli:desk track show", group: "desk", effect: "read", when: "Read one track's card by its slug: what it covers and how its tasks stand.", errors: [(0, cards_1.usageError)("desk track show", "needs the track's slug.", "Find it with ouro desk track list, then pass it."), (0, cards_1.unknownFlag)("desk track show"), (0, cards_1.daemonDown)("desk track show")] } },
|
|
25
|
+
...taskCommands("desk task"),
|
|
26
|
+
{ name: "desk track", effect: "private", readOnly: true, summary: "The commands for desk tracks.", ax: { id: "cli:desk track", group: "desk", effect: "read", when: "Names the two actions on the long-running areas that group tasks: new and show.", errors: [(0, cards_1.needsSubcommand)("desk track", "new, show"), (0, cards_1.unknownFlag)("desk track")] } },
|
|
27
|
+
{ name: "desk track new", effect: "private", summary: "Create a desk track.", ax: { id: "cli:desk track new", group: "desk", effect: "write", when: "Start a new long-running area for tasks, by slug, --title and a one-line --scope, when no existing track fits the work.", errors: deskErrors("desk track new", "needs a slug, --title <title> and --scope \"<what belongs>; not <what doesn't>\".", "Pass a short slug, a --title, and a --scope line such as \"login and sessions; not billing\".") } },
|
|
28
|
+
{ name: "desk track show", effect: "private", readOnly: true, summary: "List a desk track's tasks.", ax: { id: "cli:desk track show", group: "desk", effect: "read", when: "List one track's tasks by the track's slug, with each task's status, to see how the track stands.", errors: deskErrors("desk track show", "needs one track's slug.", "Find it in ouro desk task list, which shows each task's track, then pass it.") } },
|
|
17
29
|
{ name: "desk friction", effect: "private", readOnly: true, summary: "The commands for desk friction notes.", ax: { id: "cli:desk friction", group: "desk", effect: "read", when: "Names the one friction action, add, for noting something about the tools that slowed the work down.", errors: [(0, cards_1.usageError)("desk friction", "needs add and the note's text.", "Run ouro desk friction add with the note."), (0, cards_1.unknownFlag)("desk friction")] } },
|
|
18
|
-
{ name: "desk friction add", effect: "private", summary: "Record a desk friction note.", ax: { id: "cli:desk friction add", group: "desk", effect: "write", when: "Note something about the tools or process that got in the way, in a sentence, so it can be fixed later.", errors:
|
|
19
|
-
{ name: "desk lesson", effect: "private", readOnly: true, summary: "The commands for desk lessons.", ax: { id: "cli:desk lesson", group: "desk", effect: "read", when: "Names the one lesson action, add, for keeping something learned so later sessions act on it.", errors: [(0, cards_1.usageError)("desk lesson", "needs add
|
|
20
|
-
{ name: "desk lesson add", effect: "private", summary: "Record a desk lesson.", ax: { id: "cli:desk lesson add", group: "desk", effect: "write", when: "Keep something learned the hard way
|
|
21
|
-
{ name: "desk search", effect: "private", readOnly: true, summary: "Search the desk.", ax: { id: "cli:desk search", group: "desk", effect: "read", when: "Find desk records by words in them, across tasks, tracks, notes and lessons, before starting work that may exist.", errors:
|
|
22
|
-
{ name: "desk recall", effect: "private", readOnly: true, summary: "Recall what the desk holds on a topic.", ax: { id: "cli:desk recall", group: "desk", effect: "read", when: "Gather what the desk already knows about one topic, such as past decisions and lessons, before deciding again.", errors:
|
|
23
|
-
{ name: "desk
|
|
24
|
-
{ name: "desk
|
|
30
|
+
{ name: "desk friction add", effect: "private", summary: "Record a desk friction note.", ax: { id: "cli:desk friction add", group: "desk", effect: "write", when: "Note something about the tools or process that got in the way, in a sentence, so it can be fixed later.", errors: deskErrors("desk friction add", "needs the note's text.", "Pass the note as the words after add.") } },
|
|
31
|
+
{ name: "desk lesson", effect: "private", readOnly: true, summary: "The commands for desk lessons.", ax: { id: "cli:desk lesson", group: "desk", effect: "read", when: "Names the one lesson action, add, for keeping something learned so later sessions act on it.", errors: [(0, cards_1.usageError)("desk lesson", "needs add, the lesson's text, --scope and --topic.", "Run ouro desk lesson add with the lesson, --scope and --topic."), (0, cards_1.unknownFlag)("desk lesson")] } },
|
|
32
|
+
{ name: "desk lesson add", effect: "private", summary: "Record a desk lesson.", ax: { id: "cli:desk lesson add", group: "desk", effect: "write", when: "Keep something learned the hard way as a one-line rule under a short --topic, where its --scope (personal, desk or team) loads it.", errors: deskErrors("desk lesson add", "needs the lesson's text, --scope <personal|desk|team> and --topic <short name>.", "Pass the rule as the words after add, with --scope personal for the person's own rules and a short --topic.") } },
|
|
33
|
+
{ name: "desk search", effect: "private", readOnly: true, summary: "Search the desk.", ax: { id: "cli:desk search", group: "desk", effect: "read", when: "Find desk records by exact words in them, across tasks, tracks, notes and lessons, before starting work that may exist.", errors: deskErrors("desk search", "needs words to search for.", "Pass the query as the words after search.") } },
|
|
34
|
+
{ name: "desk recall", effect: "private", readOnly: true, summary: "Recall what the desk holds on a topic.", ax: { id: "cli:desk recall", group: "desk", effect: "read", when: "Gather what the desk already knows about one topic, such as past decisions and lessons, ranked by meaning, before deciding again.", errors: deskErrors("desk recall", "needs a topic.", "Pass the topic as the words after recall.") } },
|
|
35
|
+
{ name: "desk status", effect: "private", readOnly: true, summary: "Show whether the desk is ready.", ax: { id: "cli:desk status", group: "desk", effect: "read", when: "Check the desk before work: whether it is ready, why it is degraded and what to fix, and the other desks on this machine.", errors: deskErrors("desk status", "takes no words.", "Run ouro desk status on its own, or with --desk <name> for another desk.") } },
|
|
36
|
+
{ name: "desk doctor", effect: "private", readOnly: true, summary: "Diagnose the Desk server.", ax: { id: "cli:desk doctor", group: "desk", effect: "read", when: "When Desk misbehaves: whether its server started healthy and, when it didn't, the exact failure and how to fix it.", errors: deskErrors("desk doctor", "takes no words.", "Run ouro desk doctor on its own, or with --desk <name> for another desk.") } },
|
|
37
|
+
{ name: "desk reindex", effect: "private", summary: "Rebuild the desk's search index.", ax: { id: "cli:desk reindex", group: "desk", effect: "write", when: "When search misses records you know exist: Desk re-reads the desk into search and waits until search is current.", errors: deskErrors("desk reindex", "takes no words.", "Run ouro desk reindex on its own, or with --desk <name> for another desk.") } },
|
|
25
38
|
{ name: "desk invite", effect: "private", summary: "Invite someone to Hosted Desk.", ax: { id: "cli:desk invite", group: "desk", effect: "write", when: "As a Hosted Desk admin, make an account for a new person by --name and get their sign-up link, after a browser sign-in.", errors: [(0, cards_1.usageError)("desk invite", "needs --name <name>, or --account <id> to re-invite, not both.", "Pass --name for a new person, or --account for one who never signed up."), (0, cards_1.unknownFlag)("desk invite")] } },
|
|
26
39
|
{ name: "desk access", effect: "private", summary: "Turn a Hosted Desk account on or off.", ax: { id: "cli:desk access", group: "desk", effect: "write", when: "As a Hosted Desk admin, let an account back in or lock it out, by its id and on or off, after a browser sign-in.", errors: [(0, cards_1.usageError)("desk access", "needs an account id and on or off.", "Pass the id Hosted Desk gave the account, then on or off."), (0, cards_1.unknownFlag)("desk access")] } },
|
|
27
40
|
{ name: "desk delete-account", effect: "private", summary: "Delete a Hosted Desk account.", ax: { id: "cli:desk delete-account", group: "desk", effect: "consequential", destructive: true, confirm: "The account and its sign-ins are removed from Hosted Desk and can't be brought back.", when: "As a Hosted Desk admin, remove an account for good by its id, with --yes, after a browser sign-in.", errors: [(0, cards_1.usageError)("desk delete-account", "needs one account id and --yes.", "Pass the account id, and --yes once the person has agreed to the deletion."), (0, cards_1.unknownFlag)("desk delete-account")] } },
|
|
28
41
|
{ name: "task", effect: "private", readOnly: true, summary: "The commands for desk tasks.", ax: { id: "cli:task", group: "desk", effect: "read", when: "Shorter top-level spelling of desk task: names list, new, done, archive and show for the agent's tasks.", errors: [(0, cards_1.needsSubcommand)("task", "list, new, done, archive, show"), (0, cards_1.unknownFlag)("task")] } },
|
|
29
|
-
|
|
30
|
-
{ name: "task new", effect: "private", summary: "Create a desk task.", ax: { id: "cli:task new", group: "desk", effect: "write", when: "Shorter spelling of desk task new: opens a task under a slug, filed in the --track given.", errors: [(0, cards_1.usageError)("task new", "needs a slug and --track <track>.", "Pass the new task's slug and a track from ouro desk track list."), (0, cards_1.unknownFlag)("task new"), (0, cards_1.daemonDown)("task new")] } },
|
|
31
|
-
{ name: "task done", effect: "private", summary: "Mark a desk task done.", ax: { id: "cli:task done", group: "desk", effect: "write", when: "Shorter spelling of desk task done: records a task's outcome as delivered, by its slug.", errors: [(0, cards_1.usageError)("task done", "needs the task's slug.", "Find it with ouro desk task list, then pass it."), (0, cards_1.unknownFlag)("task done"), (0, cards_1.daemonDown)("task done")] } },
|
|
32
|
-
{ name: "task archive", effect: "private", summary: "Archive a desk task.", ax: { id: "cli:task archive", group: "desk", effect: "write", when: "Shorter spelling of desk task archive: moves a task by slug out of the active desk into its archive.", errors: [(0, cards_1.usageError)("task archive", "needs the task's slug.", "Find it with ouro desk task list, then pass it."), (0, cards_1.unknownFlag)("task archive"), (0, cards_1.daemonDown)("task archive")] } },
|
|
33
|
-
{ name: "task show", effect: "private", readOnly: true, summary: "Show a desk task.", ax: { id: "cli:task show", group: "desk", effect: "read", when: "Shorter spelling of desk task show: one task's card by its slug, with status and next step.", errors: [(0, cards_1.usageError)("task show", "needs the task's slug.", "Find it with ouro desk task list, then pass it."), (0, cards_1.unknownFlag)("task show"), (0, cards_1.daemonDown)("task show")] } },
|
|
42
|
+
...taskCommands("task"),
|
|
34
43
|
];
|
|
@@ -1,41 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* `ouro desk`
|
|
3
|
+
* `ouro desk` CLI: verbs over the agent's Desk MCP server.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* `
|
|
9
|
-
* `
|
|
10
|
-
* `
|
|
5
|
+
* Desk is built into every agent: each agent's daemon runs the Desk MCP server
|
|
6
|
+
* as server `desk`, and one more server `desk-<name>` for each other desk the
|
|
7
|
+
* agent's agent.json `desks` map names. Every verb here turns argv into
|
|
8
|
+
* `{ kind: "desk", tool, toolArgs }` and the executor sends it to the daemon
|
|
9
|
+
* as `mcp.call` (see `daemon.ts::case "mcp.call"`). `--desk <name>` sends it
|
|
10
|
+
* to `desk-<name>` instead of `desk`. No business logic lives here: Desk
|
|
11
|
+
* checks every argument and its refusals say what to fix.
|
|
11
12
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* ouro desk task list [--track <t>] [--status <s>] → desk_search {filters: {kind: "task", ...}}
|
|
14
|
+
* ouro desk task new <track>/<slug> [--title <t>] → task_create
|
|
15
|
+
* ouro desk task done <track>/<slug> --pr|--commit → task_update {status: "done", evidence}
|
|
16
|
+
* ouro desk task archive <track>/<slug> [--cancelled] → task_archive
|
|
17
|
+
* ouro desk task show <track>/<slug> → desk_search {query: slug, filters: {kind: "task", track}}
|
|
18
|
+
* ouro desk track show <slug> → desk_search {filters: {kind: "task", track}}
|
|
19
|
+
* (Desk 3 does not index track.md, so a track is seen through its tasks; task list shows each task's track.)
|
|
20
|
+
* ouro desk track new <slug> --title --scope → track_create
|
|
21
|
+
* ouro desk friction add <text> → friction_add {body}
|
|
22
|
+
* ouro desk lesson add <text> --scope --topic → lesson_add
|
|
23
|
+
* ouro desk search <query> → desk_search {query}
|
|
24
|
+
* ouro desk recall <topic> → desk_recall {topic}
|
|
25
|
+
* ouro desk status | doctor | reindex → desk_status | desk_doctor | desk_doctor {reindex: true}
|
|
26
|
+
* ouro task ... (alias for ouro desk task ...)
|
|
17
27
|
*
|
|
18
|
-
* The
|
|
19
|
-
*
|
|
20
|
-
* ouro desk track list|new|show
|
|
21
|
-
* ouro desk friction add "<text>"
|
|
22
|
-
* ouro desk lesson add "<text>"
|
|
23
|
-
* ouro desk search "<query>"
|
|
24
|
-
* ouro desk recall "<topic>"
|
|
25
|
-
* ouro desk reindex
|
|
26
|
-
* ouro desk thread <path>
|
|
27
|
-
* ouro task ... (alias → ouro desk task ...)
|
|
28
|
-
*
|
|
29
|
-
* For verbs where no direct desk MCP tool exists (`task list`, `task show`,
|
|
30
|
-
* `task done`, `track list`, `track show`), we route via the closest tool:
|
|
31
|
-
* task list / track list / task show / track show → desk_search with
|
|
32
|
-
* kind=task|track and (optionally) the slug as query
|
|
33
|
-
* task done <slug> → task_update path=<slug>/task.md, frontmatter.status=done
|
|
34
|
-
*
|
|
35
|
-
* `desk reindex` routes to `desk_reindex` — no such MCP tool exists yet, but
|
|
36
|
-
* surfacing the tool name lets the daemon return a clean "unknown tool"
|
|
37
|
-
* error from the MCP server itself, deferring the actual reindex tool to a
|
|
38
|
-
* follow-up unit per the plan's Out-of-scope notes.
|
|
28
|
+
* The Hosted Desk admin verbs (invite, access, delete-account) are parsed by
|
|
29
|
+
* desk-admin.ts and reach the Hosted Desk gateway, not an MCP server.
|
|
39
30
|
*/
|
|
40
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
32
|
exports.deskUsage = deskUsage;
|
|
@@ -49,19 +40,20 @@ function deskUsage() {
|
|
|
49
40
|
return [
|
|
50
41
|
"Usage:",
|
|
51
42
|
" ouro desk task list [--track <t>] [--status <s>]",
|
|
52
|
-
" ouro desk task new <slug> --track <track>",
|
|
53
|
-
" ouro desk task done <slug>",
|
|
54
|
-
" ouro desk task archive <slug>",
|
|
55
|
-
" ouro desk task show <slug>",
|
|
56
|
-
" ouro desk track
|
|
57
|
-
" ouro desk track new <slug>",
|
|
43
|
+
" ouro desk task new <track>/<slug> [--title <title>] (or <slug> --track <track>)",
|
|
44
|
+
" ouro desk task done <track>/<slug> --pr <url> | --commit <sha>",
|
|
45
|
+
" ouro desk task archive <track>/<slug> [--cancelled]",
|
|
46
|
+
" ouro desk task show <track>/<slug>",
|
|
47
|
+
" ouro desk track new <slug> --title <title> --scope <scope>",
|
|
58
48
|
" ouro desk track show <slug>",
|
|
59
49
|
" ouro desk friction add <text>",
|
|
60
|
-
" ouro desk lesson add <text>",
|
|
50
|
+
" ouro desk lesson add <text> --scope <personal|desk|team> --topic <topic>",
|
|
61
51
|
" ouro desk search <query>",
|
|
62
52
|
" ouro desk recall <topic>",
|
|
53
|
+
" ouro desk status",
|
|
54
|
+
" ouro desk doctor",
|
|
63
55
|
" ouro desk reindex",
|
|
64
|
-
"
|
|
56
|
+
" (each of these takes --desk <name> to use another desk the agent's agent.json names)",
|
|
65
57
|
"",
|
|
66
58
|
"Hosted Desk admin (needs the ouro.admin role; signs in through the browser):",
|
|
67
59
|
" ouro desk invite --name <name> [--out <file>] (--account <id> re-invites an unused account)",
|
|
@@ -73,197 +65,222 @@ function deskUsage() {
|
|
|
73
65
|
" ouro task list|new|done|archive|show ... (routes through ouro desk task ...)",
|
|
74
66
|
].join("\n");
|
|
75
67
|
}
|
|
76
|
-
function usageError() {
|
|
77
|
-
return new Error(
|
|
68
|
+
function usageError(problem) {
|
|
69
|
+
return new Error(problem ? `${problem}\n${deskUsage()}` : deskUsage());
|
|
78
70
|
}
|
|
79
71
|
// ── Helpers ──
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
72
|
+
const DESK_NAME = /^[a-z0-9](?:[a-z0-9-]{0,30}[a-z0-9])?$/;
|
|
73
|
+
const TASK_REF = /^([^/\s]+)\/([^/\s]+)$/;
|
|
74
|
+
function flagValue(args, index) {
|
|
75
|
+
const value = args[index + 1];
|
|
76
|
+
if (value === undefined || value.startsWith("--"))
|
|
77
|
+
throw usageError(`${args[index]} needs a value.`);
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
/** Takes --agent and --desk out of the words, wherever they sit, since every desk-tool verb reads them. */
|
|
81
|
+
function extractTarget(args) {
|
|
82
|
+
const target = {};
|
|
83
|
+
const rest = [];
|
|
84
|
+
for (let i = 0; i < args.length; i++) {
|
|
85
|
+
const arg = args[i];
|
|
86
|
+
if (arg === "--desk" || arg === "--agent") {
|
|
87
|
+
const value = flagValue(args, i);
|
|
88
|
+
i++;
|
|
89
|
+
if (arg === "--agent") {
|
|
90
|
+
target.agent = value;
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
if (!DESK_NAME.test(value)) {
|
|
94
|
+
throw usageError(`--desk '${value.slice(0, 40)}' is not a desk name: use the lowercase name from the agent's agent.json desks.`);
|
|
95
|
+
}
|
|
96
|
+
target.desk = value;
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
rest.push(arg);
|
|
100
|
+
}
|
|
101
|
+
return { target, rest };
|
|
102
|
+
}
|
|
103
|
+
/** Splits one verb's words from its flags; a flag the verb doesn't take is a usage error. */
|
|
104
|
+
function splitFlags(verb, args, valued = [], boolean = []) {
|
|
105
|
+
const words = [];
|
|
106
|
+
const flags = {};
|
|
107
|
+
for (let i = 0; i < args.length; i++) {
|
|
108
|
+
const arg = args[i];
|
|
109
|
+
if (!arg.startsWith("--")) {
|
|
110
|
+
words.push(arg);
|
|
111
|
+
}
|
|
112
|
+
else if (boolean.includes(arg)) {
|
|
113
|
+
flags[arg] = true;
|
|
114
|
+
}
|
|
115
|
+
else if (valued.includes(arg)) {
|
|
116
|
+
flags[arg] = flagValue(args, i);
|
|
117
|
+
i++;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
throw usageError(`ouro desk ${verb} doesn't take ${arg}.`);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return { words, flags };
|
|
124
|
+
}
|
|
125
|
+
function stringFlag(flags, flag) {
|
|
126
|
+
const value = flags[flag];
|
|
127
|
+
return typeof value === "string" ? value : undefined;
|
|
83
128
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
129
|
+
/** The verb's words must be empty: `ouro desk status` and friends take none. */
|
|
130
|
+
function noWords(verb, args) {
|
|
131
|
+
const { words } = splitFlags(verb, args);
|
|
132
|
+
if (words.length > 0)
|
|
133
|
+
throw usageError(`ouro desk ${verb} takes no words after it.`);
|
|
134
|
+
}
|
|
135
|
+
/** Exactly one word: the task's `<track>/<slug>`. */
|
|
136
|
+
function taskRef(verb, words) {
|
|
137
|
+
const match = words.length === 1 ? TASK_REF.exec(words[0]) : null;
|
|
138
|
+
if (!match)
|
|
139
|
+
throw usageError(`ouro desk task ${verb} needs one task as <track>/<slug>; ouro desk task list shows them.`);
|
|
140
|
+
return { track: match[1], slug: match[2] };
|
|
141
|
+
}
|
|
142
|
+
/** The words after `add`, `search` or `recall`, joined as one text. */
|
|
143
|
+
function textOf(verb, words, what) {
|
|
144
|
+
const text = words.join(" ").trim();
|
|
145
|
+
if (!text)
|
|
146
|
+
throw usageError(`ouro desk ${verb} needs ${what}.`);
|
|
147
|
+
return text;
|
|
148
|
+
}
|
|
149
|
+
function desk(target, tool, toolArgs) {
|
|
150
|
+
return { kind: "desk", tool, toolArgs, ...target };
|
|
91
151
|
}
|
|
92
152
|
// ── Sub-parsers ──
|
|
93
|
-
function parseTaskSubverb(args) {
|
|
153
|
+
function parseTaskSubverb(args, target) {
|
|
94
154
|
const [sub, ...rest] = args;
|
|
95
|
-
if (!sub)
|
|
96
|
-
throw usageError();
|
|
97
155
|
if (sub === "list") {
|
|
98
|
-
const {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
filters.status = status;
|
|
105
|
-
return {
|
|
106
|
-
kind: "desk",
|
|
107
|
-
tool: "desk_search",
|
|
108
|
-
toolArgs: { query: "", filters },
|
|
109
|
-
};
|
|
156
|
+
const { words, flags } = splitFlags("task list", rest, ["--track", "--status"]);
|
|
157
|
+
if (words.length > 0)
|
|
158
|
+
throw usageError("ouro desk task list takes no words; filter with --track or --status.");
|
|
159
|
+
const track = stringFlag(flags, "--track");
|
|
160
|
+
const status = stringFlag(flags, "--status");
|
|
161
|
+
return desk(target, "desk_search", { filters: { kind: "task", ...(track ? { track } : {}), ...(status ? { status } : {}) } });
|
|
110
162
|
}
|
|
111
163
|
if (sub === "new") {
|
|
112
|
-
const {
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
164
|
+
const { words, flags } = splitFlags("task new", rest, ["--track", "--title"]);
|
|
165
|
+
const flagTrack = stringFlag(flags, "--track");
|
|
166
|
+
const ref = words.length === 1 ? words[0] : "";
|
|
167
|
+
const match = TASK_REF.exec(ref);
|
|
168
|
+
let track;
|
|
169
|
+
let slug;
|
|
170
|
+
if (match) {
|
|
171
|
+
if (flagTrack)
|
|
172
|
+
throw usageError("ouro desk task new takes the track once: <track>/<slug>, or <slug> --track <track>.");
|
|
173
|
+
track = match[1];
|
|
174
|
+
slug = match[2];
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
track = flagTrack;
|
|
178
|
+
slug = ref;
|
|
179
|
+
}
|
|
180
|
+
if (!track || !slug || slug.includes("/")) {
|
|
181
|
+
throw usageError("ouro desk task new needs <track>/<slug>, or <slug> --track <track>; ouro desk task list shows each task's track.");
|
|
182
|
+
}
|
|
183
|
+
return desk(target, "task_create", { track, slug, title: stringFlag(flags, "--title") ?? slug });
|
|
121
184
|
}
|
|
122
185
|
if (sub === "done") {
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
};
|
|
186
|
+
const { words, flags } = splitFlags("task done", rest, ["--pr", "--commit"]);
|
|
187
|
+
const ref = taskRef("done", words);
|
|
188
|
+
const pr = stringFlag(flags, "--pr");
|
|
189
|
+
const commit = stringFlag(flags, "--commit");
|
|
190
|
+
if (Boolean(pr) === Boolean(commit)) {
|
|
191
|
+
throw usageError("ouro desk task done needs its evidence: --pr <url> for the pull request, or --commit <sha> for the pushed commit (one of them).");
|
|
192
|
+
}
|
|
193
|
+
const evidence = pr ? { kind: "pr", ref: pr } : { kind: "commit", ref: commit };
|
|
194
|
+
return desk(target, "task_update", { ...ref, status: "done", evidence });
|
|
131
195
|
}
|
|
132
196
|
if (sub === "archive") {
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
return {
|
|
137
|
-
kind: "desk",
|
|
138
|
-
tool: "task_archive",
|
|
139
|
-
toolArgs: { path: taskMdPath(slug) },
|
|
140
|
-
};
|
|
197
|
+
const { words, flags } = splitFlags("task archive", rest, [], ["--cancelled"]);
|
|
198
|
+
const ref = taskRef("archive", words);
|
|
199
|
+
return desk(target, "task_archive", { ...ref, ...(flags["--cancelled"] ? { outcome: "cancelled" } : {}) });
|
|
141
200
|
}
|
|
142
201
|
if (sub === "show") {
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return {
|
|
147
|
-
kind: "desk",
|
|
148
|
-
tool: "desk_search",
|
|
149
|
-
toolArgs: { query: slug, filters: { kind: "task" } },
|
|
150
|
-
};
|
|
202
|
+
const { words } = splitFlags("task show", rest);
|
|
203
|
+
const { track, slug } = taskRef("show", words);
|
|
204
|
+
return desk(target, "desk_search", { query: slug, filters: { kind: "task", track } });
|
|
151
205
|
}
|
|
152
206
|
throw usageError();
|
|
153
207
|
}
|
|
154
|
-
function parseTrackSubverb(args) {
|
|
208
|
+
function parseTrackSubverb(args, target) {
|
|
155
209
|
const [sub, ...rest] = args;
|
|
156
|
-
if (!sub)
|
|
157
|
-
throw usageError();
|
|
158
|
-
if (sub === "list") {
|
|
159
|
-
return {
|
|
160
|
-
kind: "desk",
|
|
161
|
-
tool: "desk_search",
|
|
162
|
-
toolArgs: { query: "", filters: { kind: "track" } },
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
210
|
if (sub === "new") {
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
};
|
|
211
|
+
const { words, flags } = splitFlags("track new", rest, ["--title", "--scope"]);
|
|
212
|
+
const title = stringFlag(flags, "--title");
|
|
213
|
+
const scope = stringFlag(flags, "--scope");
|
|
214
|
+
if (words.length !== 1 || !title || !scope) {
|
|
215
|
+
throw usageError('ouro desk track new needs a slug, --title <title> and --scope "<what belongs>; not <what doesn\'t>".');
|
|
216
|
+
}
|
|
217
|
+
return desk(target, "track_create", { slug: words[0], title, scope });
|
|
174
218
|
}
|
|
175
219
|
if (sub === "show") {
|
|
176
|
-
const
|
|
177
|
-
if (
|
|
178
|
-
throw usageError();
|
|
179
|
-
return {
|
|
180
|
-
kind: "desk",
|
|
181
|
-
tool: "desk_search",
|
|
182
|
-
toolArgs: { query: slug, filters: { kind: "track" } },
|
|
183
|
-
};
|
|
220
|
+
const { words } = splitFlags("track show", rest);
|
|
221
|
+
if (words.length !== 1)
|
|
222
|
+
throw usageError("ouro desk track show needs one track slug; ouro desk task list shows each task's track.");
|
|
223
|
+
return desk(target, "desk_search", { filters: { kind: "task", track: words[0] } });
|
|
184
224
|
}
|
|
185
225
|
throw usageError();
|
|
186
226
|
}
|
|
187
|
-
function parseFrictionSubverb(args) {
|
|
227
|
+
function parseFrictionSubverb(args, target) {
|
|
188
228
|
const [sub, ...rest] = args;
|
|
189
229
|
if (sub !== "add")
|
|
190
230
|
throw usageError();
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
throw usageError();
|
|
194
|
-
return {
|
|
195
|
-
kind: "desk",
|
|
196
|
-
tool: "friction_add",
|
|
197
|
-
toolArgs: { text },
|
|
198
|
-
};
|
|
231
|
+
const { words } = splitFlags("friction add", rest);
|
|
232
|
+
return desk(target, "friction_add", { body: textOf("friction add", words, "the note's text") });
|
|
199
233
|
}
|
|
200
|
-
function parseLessonSubverb(args) {
|
|
234
|
+
function parseLessonSubverb(args, target) {
|
|
201
235
|
const [sub, ...rest] = args;
|
|
202
236
|
if (sub !== "add")
|
|
203
237
|
throw usageError();
|
|
204
|
-
const
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
};
|
|
238
|
+
const { words, flags } = splitFlags("lesson add", rest, ["--scope", "--topic"]);
|
|
239
|
+
const body = textOf("lesson add", words, "the lesson's text");
|
|
240
|
+
const scope = stringFlag(flags, "--scope");
|
|
241
|
+
const topic = stringFlag(flags, "--topic");
|
|
242
|
+
if (!scope || !topic)
|
|
243
|
+
throw usageError("ouro desk lesson add needs --scope <personal|desk|team> and --topic <short name>.");
|
|
244
|
+
return desk(target, "lesson_add", { scope, topic, body });
|
|
212
245
|
}
|
|
213
246
|
// ── Public parsers ──
|
|
214
247
|
/**
|
|
215
248
|
* Parse the `ouro desk <subverb> ...` umbrella into a canonical desk command.
|
|
216
249
|
*/
|
|
217
250
|
function parseDeskCommand(args) {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
251
|
+
// The Hosted Desk admin verbs reach the gateway, not a desk, so they take their own flags and no --desk.
|
|
252
|
+
const verb = args[0];
|
|
253
|
+
if (verb === "invite" || verb === "access" || verb === "delete-account")
|
|
254
|
+
return (0, desk_admin_1.parseDeskAdminCommand)(verb, args.slice(1));
|
|
255
|
+
const { target, rest: words } = extractTarget(args);
|
|
256
|
+
const [head, ...rest] = words;
|
|
221
257
|
if (head === "task")
|
|
222
|
-
return parseTaskSubverb(rest);
|
|
258
|
+
return parseTaskSubverb(rest, target);
|
|
223
259
|
if (head === "track")
|
|
224
|
-
return parseTrackSubverb(rest);
|
|
260
|
+
return parseTrackSubverb(rest, target);
|
|
225
261
|
if (head === "friction")
|
|
226
|
-
return parseFrictionSubverb(rest);
|
|
262
|
+
return parseFrictionSubverb(rest, target);
|
|
227
263
|
if (head === "lesson")
|
|
228
|
-
return parseLessonSubverb(rest);
|
|
229
|
-
if (head === "invite" || head === "access" || head === "delete-account")
|
|
230
|
-
return (0, desk_admin_1.parseDeskAdminCommand)(head, rest);
|
|
264
|
+
return parseLessonSubverb(rest, target);
|
|
231
265
|
if (head === "search") {
|
|
232
|
-
const query =
|
|
233
|
-
|
|
234
|
-
throw usageError();
|
|
235
|
-
return {
|
|
236
|
-
kind: "desk",
|
|
237
|
-
tool: "desk_search",
|
|
238
|
-
toolArgs: { query },
|
|
239
|
-
};
|
|
266
|
+
const { words: query } = splitFlags("search", rest);
|
|
267
|
+
return desk(target, "desk_search", { query: textOf("search", query, "words to search for") });
|
|
240
268
|
}
|
|
241
269
|
if (head === "recall") {
|
|
242
|
-
const
|
|
243
|
-
|
|
244
|
-
throw usageError();
|
|
245
|
-
return {
|
|
246
|
-
kind: "desk",
|
|
247
|
-
tool: "desk_recall",
|
|
248
|
-
toolArgs: { query },
|
|
249
|
-
};
|
|
270
|
+
const { words: topic } = splitFlags("recall", rest);
|
|
271
|
+
return desk(target, "desk_recall", { topic: textOf("recall", topic, "a topic") });
|
|
250
272
|
}
|
|
251
|
-
if (head === "
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
tool: "desk_reindex",
|
|
255
|
-
toolArgs: {},
|
|
256
|
-
};
|
|
273
|
+
if (head === "status") {
|
|
274
|
+
noWords("status", rest);
|
|
275
|
+
return desk(target, "desk_status", {});
|
|
257
276
|
}
|
|
258
|
-
if (head === "
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
toolArgs: { start_path: startPath },
|
|
266
|
-
};
|
|
277
|
+
if (head === "doctor") {
|
|
278
|
+
noWords("doctor", rest);
|
|
279
|
+
return desk(target, "desk_doctor", {});
|
|
280
|
+
}
|
|
281
|
+
if (head === "reindex") {
|
|
282
|
+
noWords("reindex", rest);
|
|
283
|
+
return desk(target, "desk_doctor", { reindex: true });
|
|
267
284
|
}
|
|
268
285
|
throw usageError();
|
|
269
286
|
}
|
|
@@ -271,27 +288,27 @@ function parseDeskCommand(args) {
|
|
|
271
288
|
* Parse `ouro task <subverb> ...` as an alias for `ouro desk task <subverb> ...`.
|
|
272
289
|
*/
|
|
273
290
|
function parseTaskAliasCommand(args) {
|
|
274
|
-
|
|
291
|
+
const { target, rest } = extractTarget(args);
|
|
292
|
+
return parseTaskSubverb(rest, target);
|
|
275
293
|
}
|
|
276
294
|
// ── Executor ──
|
|
277
295
|
/**
|
|
278
|
-
* Route a parsed desk command through the daemon socket as `mcp.call(server
|
|
279
|
-
*
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
* MCP manager — which Unit 9's plugin-MCP wiring populates with the
|
|
283
|
-
* auto-spawned desk server per running agent.
|
|
296
|
+
* Route a parsed desk command through the daemon socket as `mcp.call(server,
|
|
297
|
+
* tool, args)` and render the response. The server is `desk`, or
|
|
298
|
+
* `desk-<name>` for `--desk <name>`: the daemon runs one Desk MCP server per
|
|
299
|
+
* desk the agent has.
|
|
284
300
|
*/
|
|
285
301
|
async function executeDeskCommand(command, deps) {
|
|
302
|
+
const server = command.desk ? `desk-${command.desk}` : "desk";
|
|
286
303
|
(0, runtime_1.emitNervesEvent)({
|
|
287
304
|
component: "daemon",
|
|
288
305
|
event: "daemon.desk_cli_dispatch",
|
|
289
|
-
message: `ouro desk →
|
|
290
|
-
meta: { tool: command.tool, ...(command.agent ? { agent: command.agent } : {}) },
|
|
306
|
+
message: `ouro desk → mcp__${server}__${command.tool}`,
|
|
307
|
+
meta: { tool: command.tool, server, ...(command.agent ? { agent: command.agent } : {}) },
|
|
291
308
|
});
|
|
292
309
|
const daemonCommand = {
|
|
293
310
|
kind: "mcp.call",
|
|
294
|
-
server
|
|
311
|
+
server,
|
|
295
312
|
tool: command.tool,
|
|
296
313
|
args: JSON.stringify(command.toolArgs),
|
|
297
314
|
...(command.agent ? { agent: command.agent } : {}),
|
|
@@ -17,9 +17,9 @@ const GLOBAL_VALUE_FLAGS = ["--why", "--why-file", "--agent"];
|
|
|
17
17
|
// the CLI reads.
|
|
18
18
|
exports.PARSER_FLAGS = [
|
|
19
19
|
"--account", "--action", "--admission", "--agent", "--alert-file", "--allow-send", "--answers", "--api-key",
|
|
20
|
-
"--api-key-file", "--apply", "--args", "--await", "--backup", "--base-url", "--binding", "--cadence", "--card-url",
|
|
21
|
-
"--category", "--channel", "--clone", "--clone-path", "--component", "--context", "--cooldown-minutes",
|
|
22
|
-
"--credential-item", "--delegated", "--deployment", "--did", "--discover", "--dry-run", "--email", "--endpoint",
|
|
20
|
+
"--api-key-file", "--apply", "--args", "--await", "--backup", "--base-url", "--binding", "--cadence", "--cancelled", "--card-url",
|
|
21
|
+
"--category", "--channel", "--clone", "--clone-path", "--commit", "--component", "--context", "--cooldown-minutes",
|
|
22
|
+
"--credential-item", "--delegated", "--deployment", "--desk", "--did", "--discover", "--dry-run", "--email", "--endpoint",
|
|
23
23
|
"--event", "--event-type", "--evidence", "--exit-code", "--expires", "--external-id", "--facing", "--file",
|
|
24
24
|
"--fixture", "--follow", "--force", "--foreground", "--format", "--friend", "--friend-id", "--from", "--full",
|
|
25
25
|
"--gateway", "--generate-unlock-secret", "--github-token", "--habit", "--help", "--home", "--host",
|
|
@@ -30,12 +30,12 @@ exports.PARSER_FLAGS = [
|
|
|
30
30
|
"--native", "--no-chat", "--no-delegated-source", "--no-repair", "--no-send", "--no-wake", "--note",
|
|
31
31
|
"--notify-session", "--oauth-token", "--observe-only", "--occasion", "--oom-score-adj", "--operation-id", "--out",
|
|
32
32
|
"--output", "--output-file", "--owner-alone", "--owner-email", "--owner-name", "--participants", "--path",
|
|
33
|
-
"--payload", "--persist", "--port", "--prefix", "--print", "--priority", "--process", "--profile", "--provider",
|
|
33
|
+
"--payload", "--persist", "--port", "--pr", "--prefix", "--print", "--priority", "--process", "--profile", "--provider",
|
|
34
34
|
"--public-field", "--public-url", "--question", "--reason", "--replay-output", "--repo-path", "--report",
|
|
35
35
|
"--report-title", "--request-id", "--require-sense", "--reserve-mb", "--role", "--root", "--rotate-missing-mail-keys",
|
|
36
36
|
"--run-id", "--scope", "--secret-field", "--secret-file", "--server", "--session", "--setup-token",
|
|
37
37
|
"--silent-consent", "--since", "--socket", "--source", "--state", "--status", "--store", "--strict", "--summary",
|
|
38
|
-
"--surface", "--switch", "--task", "--template", "--text", "--title", "--to", "--tool", "--track", "--trigger",
|
|
38
|
+
"--surface", "--switch", "--task", "--template", "--text", "--title", "--to", "--tool", "--topic", "--track", "--trigger",
|
|
39
39
|
"--trust", "--trust-gateway", "--ttl-minutes", "--type", "--uid", "--unattended", "--upstream", "--username",
|
|
40
40
|
"--value", "--value-file", "--verify", "--version", "--web", "--which", "--workbench-mcp", "--yes"
|
|
41
41
|
];
|
|
@@ -213,10 +213,10 @@ exports.COMMAND_REGISTRY = {
|
|
|
213
213
|
},
|
|
214
214
|
desk: {
|
|
215
215
|
category: "Tasks",
|
|
216
|
-
description: "Manage the agent's desk — tasks, tracks, friction, lessons, search, and
|
|
217
|
-
usage: "ouro desk <task|track|friction|lesson|search|recall|reindex|
|
|
216
|
+
description: "Manage the agent's desk — tasks, tracks, friction, lessons, search, recall and Desk's health (through the agent's built-in Desk MCP server; --desk <name> picks another desk). Ouro admins also invite people to Hosted Desk and manage their access.",
|
|
217
|
+
usage: "ouro desk <task|track|friction|lesson|search|recall|status|doctor|reindex|invite|access|delete-account> ...",
|
|
218
218
|
example: "ouro desk invite --name \"Sam\"",
|
|
219
|
-
subcommands: ["task", "track", "friction", "lesson", "search", "recall", "
|
|
219
|
+
subcommands: ["task", "track", "friction", "lesson", "search", "recall", "status", "doctor", "reindex", "invite", "access", "delete-account"],
|
|
220
220
|
},
|
|
221
221
|
task: {
|
|
222
222
|
category: "Tasks",
|
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.1469",
|
|
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.1469",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"@ouro.bot/friends"
|
|
12
12
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ouro.bot/cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.1469",
|
|
4
4
|
"description": "Ouroboros, the agent harness: agents with durable memory that live where you talk (terminal, Teams, iMessage, mail, voice) and use real tools. Start with npx ouro.bot@latest.",
|
|
5
5
|
"homepage": "https://ouroboros.bot/",
|
|
6
6
|
"engines": {
|