Versions in this module Expand all Collapse all v1 v1.0.0 Sep 28, 2026 Changes in this version + func CommandName(input string) (string, bool) + func FormatStopReply(result StopResult) string + func HasCommandPrefix(input string) bool + type ContextStats struct + CompressAtTokens int + HistoryTokens int + MessageCount int + SummarizeAtTokens int + TotalTokens int + UsedPercent int + UsedTokens int + type Definition struct + Aliases []string + Description string + Handler Handler + Name string + SubCommands []SubCommand + Usage string + func BuiltinDefinitions() []Definition + func (d Definition) EffectiveUsage() string + type ExecuteResult struct + Command string + Err error + Outcome Outcome + type Executor struct + func NewExecutor(reg *Registry, rt *Runtime) *Executor + func (e *Executor) Execute(ctx context.Context, req Request) ExecuteResult + type Handler func(ctx context.Context, req Request, rt *Runtime) error + type MCPServerInfo struct + Connected bool + Deferred bool + Enabled bool + Name string + ToolCount int + type MCPToolInfo struct + Description string + Name string + Parameters []MCPToolParameterInfo + type MCPToolParameterInfo struct + Description string + Name string + Required bool + Type string + type ModelInfo struct + Selection string + ServedTarget string + Unavailable string + type Outcome int + const OutcomeHandled + const OutcomePassthrough + type Registry struct + func NewRegistry(defs []Definition) *Registry + func (r *Registry) Definitions() []Definition + func (r *Registry) Lookup(name string) (Definition, bool) + type Request struct + Channel string + ChatID string + Reply func(text string) error + SenderID string + Text string + type Runtime struct + AskSideQuestion func(ctx context.Context, question string) (string, error) + ClearHistory func() error + Config *config.Config + GetActiveTurn func() any + GetContextStats func() *ContextStats + GetEnabledChannels func() []string + GetModelInfo func() ModelInfo + ListAgentIDs func() []string + ListDefinitions func() []Definition + ListMCPServers func(ctx context.Context) []MCPServerInfo + ListMCPTools func(ctx context.Context, serverName string) ([]MCPToolInfo, error) + ListSkillNames func() []string + ReloadConfig func() error + StopActiveTurn func() (StopResult, error) + SwitchChannel func(value string) error + SwitchModel func(selection string) (previous string, err error) + type StopResult struct + Stopped bool + TaskName string + type SubCommand struct + ArgsUsage string + Description string + Handler Handler + Name string + type TurnInfo struct + ChildTurnIDs []string + Depth int + IsFinished bool + ParentTurnID string + TurnID string Other modules containing this package github.com/xibodev/compa/v2