Phase 11, part 1: agents and their keys
Agents are users of kind agent, each given modules to read, or to read and act on, and the CRM scope. Admins make them under Settings → Agents, on every edition; keys (sm_…) are shown once and kept as hashes, can expire, be rotated (the old one works a day) or revoked, and record their last use. /mcp takes agent keys and offers each agent only the tools its scopes allow. On the local edition, mcp-token is the key of a built-in Hermes agent with the CRM and the Market. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -344,6 +344,10 @@ func (s *Server) Handler() (http.Handler, error) {
|
||||
mux.HandleFunc("GET /settings/about", s.aboutPage)
|
||||
mux.HandleFunc("GET /settings/connections", s.connectionsPage)
|
||||
mux.HandleFunc("GET /settings/activity", s.activityPage)
|
||||
mux.HandleFunc("GET /settings/agents", s.agentsPage)
|
||||
mux.HandleFunc("POST /settings/agents", s.agentCreate)
|
||||
mux.HandleFunc("GET /settings/agents/{id}", s.agentPage)
|
||||
mux.HandleFunc("POST /settings/agents/{id}/{action}", s.agentAction)
|
||||
mux.HandleFunc("GET /settings/posting", s.postingPage)
|
||||
mux.HandleFunc("POST /settings/posting", s.postingSave)
|
||||
mux.HandleFunc("POST /settings/posting/{id}/remove", s.postingRemove)
|
||||
@@ -698,6 +702,8 @@ var flashes = map[string]string{
|
||||
"signed-out-user": "Signed out everywhere.",
|
||||
"removed": "Removed.",
|
||||
"joined": "Welcome to Supermarket.",
|
||||
"key-revoked": "Revoked: that key no longer works.",
|
||||
"agent-off": "Turned off: none of its keys work.",
|
||||
"account-removed": "Signed out: posts scheduled to it are back in Posts.",
|
||||
"own-account-connected": "Connected: you can post as it, and an admin can let others.",
|
||||
"deleted": "Deleted.",
|
||||
|
||||
Reference in New Issue
Block a user