From 2109458b3f9befc8f6eb0fd63abfa63b975c69d3 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Mon, 9 Nov 2026 17:50:15 -0600 Subject: [PATCH 1/2] feat(webui,cli): U1 cross-organization read model and console verbs (#1873) GET /api/workspace on the dev-local-owner Console: one snapshot of projects, sessions, inbox, tasks and per-org metrics across every organization the owner belongs to. Membership reuses the org list's admission (organizations.members); each org is read over the same per-org options the org pages use, with one deadline per org (4000 ms) and a state (ok, down, starting, timeout, invalid) with a time. Every row carries its org id; decide commands carry --org. Granted users and the tester get 403 owner-only. Polling at 10 s, no push. mosaic console restart and mosaic org reload call the Console's F3 routes (POST /api/console/restart, POST /api/orgs//restart/bus) so gating, proof and trail are the Console's own; both refuse inside an agent run first. The cross-org assistant read is designed and stopped: it needs a new broker read verb or role authority. --- docs/TOOLS.md | 5 +- packages/cli/src/cli.mjs | 11 +- packages/cli/src/org-console.mjs | 77 +++++ packages/cli/src/org.mjs | 9 +- packages/cli/tests/console-actions.test.mjs | 187 +++++++++++ packages/webui/src/cli.mjs | 9 +- packages/webui/src/organizations.mjs | 32 ++ packages/webui/src/serve.mjs | 5 +- packages/webui/src/workspace-read.mjs | 314 +++++++++++++++++++ packages/webui/tests/workspace-read.test.mjs | 264 ++++++++++++++++ 10 files changed, 906 insertions(+), 7 deletions(-) create mode 100644 packages/cli/tests/console-actions.test.mjs create mode 100644 packages/webui/src/workspace-read.mjs create mode 100644 packages/webui/tests/workspace-read.test.mjs diff --git a/docs/TOOLS.md b/docs/TOOLS.md index fd208c059..b1e623e62 100644 --- a/docs/TOOLS.md +++ b/docs/TOOLS.md @@ -311,7 +311,8 @@ scripts/mosaic decide