From bd81c12071371130db7da01349a42b8e47aade85 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Sun, 15 Mar 2026 23:11:37 +0000 Subject: [PATCH] docs: update TASKS.md and scratchpad for CLI command architecture (#159) Co-authored-by: Jason Woltje Co-committed-by: Jason Woltje --- docs/TASKS.md | 4 ++-- docs/scratchpads/mvp-20260312.md | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/TASKS.md b/docs/TASKS.md index a977f74..a6b0e7f 100644 --- a/docs/TASKS.md +++ b/docs/TASKS.md @@ -74,8 +74,8 @@ | P7-006 | done | Phase 7 | Documentation — user guide, admin guide, dev guide | #151 | #57 W9 done | | P7-007 | done | Phase 7 | Bare-metal deployment docs + .env.example | #153 | #58 W9 done | | P7-021 | done | Phase 7 | Verify Phase 7 — feature-complete platform E2E | — | #132 W10 done | -| P8-005 | in-progress | Phase 8 | CLI command architecture — DB schema + brain repo + gateway endpoints | — | | -| P8-006 | not-started | Phase 8 | CLI command architecture — agent, mission, prdy commands + TUI mods | — | | +| P8-005 | done | Phase 8 | CLI command architecture — DB schema + brain repo + gateway endpoints | #158 | | +| P8-006 | done | Phase 8 | CLI command architecture — agent, mission, prdy commands + TUI mods | #158 | | | P8-001 | not-started | Phase 8 | Additional SSO providers — WorkOS + Keycloak | — | #53 | | P8-002 | not-started | Phase 8 | Additional LLM providers — Codex, Z.ai, LM Studio, llama.cpp | — | #54 | | P8-003 | not-started | Phase 8 | Performance optimization | — | #56 | diff --git a/docs/scratchpads/mvp-20260312.md b/docs/scratchpads/mvp-20260312.md index 8b2f723..22733f1 100644 --- a/docs/scratchpads/mvp-20260312.md +++ b/docs/scratchpads/mvp-20260312.md @@ -222,3 +222,19 @@ Issues closed: #52, #55, #57, #58, #120-#134 - Infrastructure: coord DB migration, agent sandbox hardening - Quality: E2E Playwright suite (~35 tests), comprehensive docs (user/admin/dev/deployment) - Fixes: TUI state updater, agent session sandboxing + +### Session 13 — CLI Command Architecture (P8-005, P8-006) + +| Session | Date | Milestone | Tasks Done | Outcome | +| ------- | ---------- | --------- | -------------- | ------------------------------------------------------------------------------------------------------------- | +| 13 | 2026-03-15 | Phase 8 | P8-005, P8-006 | CLI command architecture implemented. DB schema, brain repo, gateway endpoints, CLI commands. PR #158 merged. | + +**Changes delivered:** + +- DB: Extended agents table (projectId, ownerId, systemPrompt, allowedTools, skills, isSystem). Added agentId to conversations. +- Brain: New agents repository with findAccessible (owner's + system agents). +- Gateway: /api/agents CRUD, consolidated /api/missions with user-scoped CRUD + /tasks sub-routes, coord slimmed to file-based only, agentConfigId wired into session creation. +- CLI: `mosaic agent` (--list, --new, --show, --update, --delete), `mosaic mission` (--list, --init, --plan, --update, task subcommand), `mosaic prdy` (gateway-aware), shared with-auth + select-dialog utilities. +- TUI: --agent and --project flags, agent name display in top bar, agentId in socket payload. +- Types: agentId added to ChatMessagePayload. +- Tests: 23/23 gateway tests pass (updated ownership test for user-scoped missions).