Files
Memoh/internal/command/commands.go
T
Acbox d46269de89 feat(command): improve slash command UX (#361)
Make slash commands easier to navigate in chat by splitting help into levels, compacting list output, and surfacing current selections for model, search, memory, and browser settings. Also route /status to the active conversation session and add an access inspector so users can understand their current command and ACL context.
2026-04-13 12:37:12 +08:00

22 lines
718 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())
r.RegisterGroup(h.buildAccessGroup())
return r
}