Files
Memoh/internal/command/commands.go
T
Acbox 33b57ee345 feat: rename info to status, add /status slash command
Rename session info endpoint from /sessions/:id/info to /sessions/:id/status
and update frontend tab label accordingly. Add /status slash command that
displays current session metrics (message count, context usage, cache hit
rate, used skills) as formatted text in any channel.
2026-04-03 01:17:33 +08:00

21 lines
679 B
Go

package command
// buildRegistry constructs the full command registry with all resource groups.
func (h *Handler) buildRegistry() *Registry {
r := newRegistry()
r.RegisterGroup(h.buildScheduleGroup())
r.RegisterGroup(h.buildMCPGroup())
r.RegisterGroup(h.buildSettingsGroup())
r.RegisterGroup(h.buildModelGroup())
r.RegisterGroup(h.buildMemoryGroup())
r.RegisterGroup(h.buildSearchGroup())
r.RegisterGroup(h.buildBrowserGroup())
r.RegisterGroup(h.buildUsageGroup())
r.RegisterGroup(h.buildEmailGroup())
r.RegisterGroup(h.buildHeartbeatGroup())
r.RegisterGroup(h.buildSkillGroup())
r.RegisterGroup(h.buildFSGroup())
r.RegisterGroup(h.buildStatusGroup())
return r
}