Files
Memoh/internal/command/commands.go
T
Acbox 27d2b99301 feat: add immediate context compaction API, UI button, and /compact slash command
- Add POST /bots/:bot_id/sessions/:session_id/compact endpoint for
  synchronous context compaction with fallback to chat model when no
  dedicated compaction model is configured
- Add "Compact Now" button to session info panel in the web UI
- Add /compact slash command for triggering compaction from chat
- Regenerate OpenAPI spec and TypeScript SDK
2026-04-14 21:30:05 +08:00

23 lines
758 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())
r.RegisterGroup(h.buildCompactGroup())
return r
}