Skip to content

feat(cli): add AI-first super-admin command coverage#5

Merged
mrgoonie merged 14 commits into
mainfrom
feat/ai-first-cli-expansion
May 18, 2026
Merged

feat(cli): add AI-first super-admin command coverage#5
mrgoonie merged 14 commits into
mainfrom
feat/ai-first-cli-expansion

Conversation

@mrgoonie
Copy link
Copy Markdown
Contributor

Summary

  • Adds AI-first CLI expansion command coverage and super-admin API parity.
  • Includes gateway upgrade, package updates, workstations, webhooks, MCP user credentials, media/TTS/storage/channel fillers, and route contract tests.
  • Merges latest origin/main into the feature branch and resolves conflicts.

Validation

  • go test -count=1 ./...
  • go vet ./...
  • go build ./...

Notes

  • AGENTS.md remains untracked locally and is not part of this PR.

mrgoonie added 14 commits April 15, 2026 07:01
…ut, FollowStream

Foundation layer establishes exit code mapping (0 success, 1-6 error types), TTY-aware output auto-switching based on terminal capabilities, and FollowStream abstraction for streaming log handling. Breaking change: TTY auto-switch moves from config-only to intelligent detection. Includes inline fixes: handler-error sentinel pattern, MaxRetries=0 hardening, GOCLAW_OUTPUT validation.
…figs, edition

Establishes tenant isolation context, heartbeat SIGINT handler for graceful shutdown, system configuration inspection, and edition info commands. Adds permissions subcommand with C1 confirm fix gating configuration revocation. Implements systemic tui.Confirm fix: non-interactive mode now requires --yes flag to prevent interactive prompts in automation.
Adds signed URL download and multipart upload abstractions for large file handling. Implements backup/restore with S3 support and per-domain export (agents/teams/skills/MCP). Inline fixes: S3 secret multi-field masking, URL escape tenant ID in paths, error body propagation for debugging, MkdirAll parent directory creation, typed confirmation on restore operations.
Implements vault subsystem for document management, link tracking, file upload with streaming, full-text search, knowledge graph visualization, and semantic enrichment. Tree output formatter provides hierarchical display. Inline fixes: content pass-through on documents create, URL escape tree --path and documents --q parameters for special character safety.
…itical max polish

Core AI agent management commands with JSON schema export, chat with AI primitives, team collaboration with task management, and semantic memory graph. Modularized files <200 LoC per component. Inline fixes: kg entities upsert JSON validation, agents wait command timeout with websocket cleanup, WSClient.Close sync.Once race fix for concurrent shutdown.
…command extensions

Completes CLI surface: pair device linking, OAuth provider whitelist verification, package management, send as AI inter-agent primitive, quota inspection. Extends channels, MCP, skills, providers, tools, and admin with subcommands for deep management. Inline fixes: URL escape throughout for special characters, channels pending delete --all guard prevents accidental system-wide wipe.
Synchronizes project documentation: roadmap phases marked complete, changelog entries for all major features, codebase summary reflecting new modularity, code standards updated with new patterns. Plan directory with all phase files and implementation reports from expanded CLI surface.
Closes remaining gaps after P0-P5 ship:

P0 - Critical surface
- hooks (list/create/update/delete/toggle/test/history) via WS hooks.*
- agents files (list/get/set with --propagate) for global context files

P1 - Lifecycle & analytics
- agents cancel-summon
- agents skills list
- usage timeseries / breakdown

P2 - Coverage completion
- tts test-connection
- voices list / refresh
- memory kg extract -> /v1/agents/{id}/kg/extract (legacy path retired)
- files sign (signed URL)
- teams workspace upload / move (multipart)
- packages github-releases

All commands honor AI-first ergonomics contract: JSON envelope, central
error handler, --yes for destructive ops, --quiet for CI.
Round 2 audit after P0-P5 + P0-P2 expansion ship: ~95% server coverage
achieved (vs ~70% R1). Residual gaps cluster into:

- P3 AI-critical (~250 LoC): multi-profile, sessions compact, health,
  traces filter polish
- P4 UX polish batch 1 (~400 LoC): codex-pool umbrella, api-keys rotate,
  config defaults, chat replay/resume, agents prompt-preview, tools
  invoke, storage size
- P5 fillers + verify batch 2 (~250 LoC): writers groups, contacts
  unmerge, agents instances, mcp tools, evolution patch/apply, team
  attachments
- P6 deferred — server FR backlog (no CLI work, file upstream issues)
@mrgoonie mrgoonie merged commit 9d155cb into main May 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant