feat(api): organization-owned regions, checkers and status page servers

Organizations create regions and agents for themselves under Regions &
checkers; an org checker only receives its org's monitors. Platform admins
manage shared regions and agents in the admin panel or with the CLI,
which gains 'api admin grant|revoke'. The first user of a self-hosted
installation becomes a platform admin. Region lists show the org's own
regions first.

Closes #52
Refs #29

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-22 01:36:02 +01:00
1 parent 607798d742
commit 22f0740056
19 files changed
+1932 -301

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ func run(log *slog.Logger, level *slog.LevelVar, args []string) error {
switch args[0] {
case "migrate":
return migrate(ctx, log, cfg.DatabaseURL, args[1:])
case "agent", "region":
case "admin", "agent", "region":
return admin(ctx, cfg, args)
case "serve":
default: