Documentation
¶
Overview ¶
Package admin is the privileged admin console (PRD §6), reached over SSH as `ssh admin@host` by an account in the operator allowlist ($AGENTBBS_ADMINS).
It is a self-contained Bubble Tea model (not a hub plugin) so it never shows up in the public menu: the route gates access, the model drives the console. Four sections cover the M2 scope — users, live sessions, moderation/audit, and config/plugins — over the shared store plus a live-session registry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct {
Host string
Sandbox string
PodsEngine string // "" when pods are disabled on this host
MailConfigured bool
Admins []string
Plugins []PluginInfo
}
Env is the read-only runtime snapshot shown on the config screen.
type LiveSessions ¶
LiveSessions is the registry of currently-connected sessions the console can list and disconnect. main wires the concrete implementation.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the admin console.
type PluginInfo ¶
type PluginInfo struct{ ID, Title string }
PluginInfo identifies a registered hub plugin for the config screen.