From 550bd084d0bc1a2ea6d425bf50a9d81a119cc2aa Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Wed, 11 Nov 2026 19:14:58 -0600 Subject: [PATCH 1/3] feat(cli): hire, autonomy and task-board verbs for WebUI parity (#1873, P1-3) mosaic org role-templates|hire|change|fire and mosaic org autonomy [set|review] send the hire form's and the autonomy panel's own requests to the running Console's org route, so the Console runs the same owner, send, origin, body and revision checks and the same bus verbs. They refuse inside an agent run after their usage checks. mosaic tasks create|edit|archive pass the board's parseTaskWrite and go to the bus as the person (tasks.create|edit|archive). Docs: cli README, docs/TOOLS.md, webui README Console actions table. --- docs/TOOLS.md | 13 +- packages/cli/README.md | 32 +++ packages/cli/src/cli.mjs | 4 + packages/cli/src/org-console.mjs | 28 +- packages/cli/src/org-owner.mjs | 207 +++++++++++++++ packages/cli/src/org.mjs | 5 +- packages/cli/src/tasks-write.mjs | 97 +++++++ packages/cli/tests/agent-guard.test.mjs | 10 +- packages/cli/tests/cli-parity.test.mjs | 336 ++++++++++++++++++++++++ packages/webui/README.md | 4 +- 10 files changed, 727 insertions(+), 9 deletions(-) create mode 100644 packages/cli/src/org-owner.mjs create mode 100644 packages/cli/src/tasks-write.mjs create mode 100644 packages/cli/tests/cli-parity.test.mjs diff --git a/docs/TOOLS.md b/docs/TOOLS.md index e0d0dcee4..f056738dc 100644 --- a/docs/TOOLS.md +++ b/docs/TOOLS.md @@ -313,6 +313,15 @@ scripts/mosaic bus start [--pm | --no-launch] [--dev-local-owner] [-- scripts/mosaic console start [--dev-local-owner [--dev-insecure-bind ADDR --dev-allow-host NAME[,NAME...]]] [--detach] [--port auto|N] scripts/mosaic console stop | status | restart scripts/mosaic org reload +scripts/mosaic org role-templates [--json] +scripts/mosaic org hire|change --name --template