diff --git a/internal/webui/api_capabilities.go b/internal/webui/api_capabilities.go index ef7756581..8edfaec64 100644 --- a/internal/webui/api_capabilities.go +++ b/internal/webui/api_capabilities.go @@ -11,13 +11,8 @@ import ( func (s *Server) handleCapabilities(w http.ResponseWriter, r *http.Request) { sections := map[string]bool{ "chat": s.Chat != nil && s.Chat.Contract != nil, - "logs": s.LogFeed != nil, - "skills": s.Skills != nil, - "curators": s.Curators != nil, - "channels": s.Channels != nil, "captures": s.Captures != nil, "mappings": s.Mappings != nil, - "bindings": s.Bindings != nil, // The workflows page draws its statistics from the task store // and its definition list from the local registry, so it is // worth showing with only the former. @@ -48,11 +43,6 @@ type pageProbe struct{ section, method, path string } func pageProbes() []pageProbe { return []pageProbe{ {"org_members", http.MethodPost, "/api/orgs/_/members"}, - {"org_agents", http.MethodPut, "/api/orgs/_/agents/_"}, {"org_policies", http.MethodPut, "/api/access/policies"}, - {"org_denials", http.MethodGet, "/api/access/denials"}, - {"org_audit", http.MethodGet, "/api/audit"}, - {"org_usage", http.MethodGet, "/api/usage"}, - {"org_config", http.MethodPost, "/api/control-plane/resources/_/commands/replace"}, } } diff --git a/modules/governance/accounts_api.go b/modules/governance/accounts_api.go index 357a0fa21..2abe2503f 100644 --- a/modules/governance/accounts_api.go +++ b/modules/governance/accounts_api.go @@ -612,17 +612,13 @@ func (m *Module) capabilities(ctx context.Context, _ *struct{}) (*httpapi.Reply[ sections := map[string]bool{"chat": signedIn, "memory": signedIn} for _, name := range []string{ "settings", "events", "workflows", "runs", "credentials", "secret_engines", "controls", "memory_admin", - "home", "system_status", "org_config", "captures", "mappings", "bindings", "extension_catalogue", "model_aliases", "workflow_editor", + "home", "system_status", "org_config", "captures", "mappings", "extension_catalogue", "model_aliases", "workflow_editor", } { sections[name] = p.InstanceAdmin() } - for _, name := range []string{ - "tasks", "work_requests", "logs", "skills", "curators", "channels", - "task_execution", "organisations", "tools", "plugins", "container_runtime", "agent_profiles", - "org_agents", "org_audit", "org_usage", "org_work_intake", - } { - sections[name] = false - } + // An organisation is created through the API alone here, so its page is + // offered but its writes are not. + sections["organisations"] = false // The access pages are offered to those the policy chain lets use them. sections["org_members"] = m.mayUse(ctx, p, ActionManageMembers, KindMember) sections["org_policies"] = m.mayUse(ctx, p, ActionManagePolicies, KindPolicy)