Documentation
¶
Index ¶
- type AutocompleteImpl
- func (a *AutocompleteImpl) ClearUsageHint()
- func (a *AutocompleteImpl) GetCompletionCursorPos() int
- func (a *AutocompleteImpl) GetSelectedShortcut() string
- func (a *AutocompleteImpl) GetUsageHint() string
- func (a *AutocompleteImpl) HandleKey(k tea.KeyPressMsg) (bool, string)
- func (a *AutocompleteImpl) Hide()
- func (a *AutocompleteImpl) IsVisible() bool
- func (a *AutocompleteImpl) RefreshToolsList()
- func (a *AutocompleteImpl) Render() string
- func (a *AutocompleteImpl) SetGitHubIssueService(s agentdomain.GitHubIssueService)
- func (a *AutocompleteImpl) SetHeight(height int)
- func (a *AutocompleteImpl) SetModelService(modelService convdomain.ModelService)
- func (a *AutocompleteImpl) SetPricingService(pricingService convdomain.PricingService)
- func (a *AutocompleteImpl) SetSkillsService(skillsService agentdomain.SkillsService)
- func (a *AutocompleteImpl) SetStateManager(stateManager agentdomain.AgentModeManager)
- func (a *AutocompleteImpl) SetToolService(toolService agentdomain.ToolService)
- func (a *AutocompleteImpl) SetWidth(width int)
- func (a *AutocompleteImpl) Update(inputText string, cursorPos int)
- type ShortcutOption
- type ShortcutRegistry
- type SubcommandProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutocompleteImpl ¶
type AutocompleteImpl struct {
// contains filtered or unexported fields
}
AutocompleteImpl implements inline autocomplete functionality
func NewAutocomplete ¶
func NewAutocomplete(theme tui.Theme, shortcutRegistry ShortcutRegistry) *AutocompleteImpl
NewAutocomplete creates a new autocomplete component
func (*AutocompleteImpl) ClearUsageHint ¶
func (a *AutocompleteImpl) ClearUsageHint()
ClearUsageHint clears the current usage hint
func (*AutocompleteImpl) GetCompletionCursorPos ¶
func (a *AutocompleteImpl) GetCompletionCursorPos() int
GetCompletionCursorPos returns the explicit caret position requested by the most recent handleSelection call, or 0 to mean "use the caller's default heuristic". Mirrors AutocompleteCompleteEvent.CursorPos.
func (*AutocompleteImpl) GetSelectedShortcut ¶
func (a *AutocompleteImpl) GetSelectedShortcut() string
GetSelectedShortcut returns the currently selected shortcut
func (*AutocompleteImpl) GetUsageHint ¶
func (a *AutocompleteImpl) GetUsageHint() string
GetUsageHint returns the current usage hint for ghost text display
func (*AutocompleteImpl) HandleKey ¶
func (a *AutocompleteImpl) HandleKey(k tea.KeyPressMsg) (bool, string)
HandleKey processes key input for autocomplete navigation
func (*AutocompleteImpl) IsVisible ¶
func (a *AutocompleteImpl) IsVisible() bool
IsVisible returns whether autocomplete is currently visible
func (*AutocompleteImpl) RefreshToolsList ¶
func (a *AutocompleteImpl) RefreshToolsList()
RefreshToolsList forces a reload of the tools list This should be called when MCP servers connect or disconnect
func (*AutocompleteImpl) Render ¶
func (a *AutocompleteImpl) Render() string
Render returns the autocomplete suggestions as a string
func (*AutocompleteImpl) SetGitHubIssueService ¶
func (a *AutocompleteImpl) SetGitHubIssueService(s agentdomain.GitHubIssueService)
SetGitHubIssueService sets the GitHub issue lookup used by the "#" autocomplete trigger. Safe to call with nil; the trigger then shows nothing.
func (*AutocompleteImpl) SetHeight ¶
func (a *AutocompleteImpl) SetHeight(height int)
SetHeight sets the height for rendering
func (*AutocompleteImpl) SetModelService ¶
func (a *AutocompleteImpl) SetModelService(modelService convdomain.ModelService)
SetModelService sets the model service for model autocomplete
func (*AutocompleteImpl) SetPricingService ¶
func (a *AutocompleteImpl) SetPricingService(pricingService convdomain.PricingService)
SetPricingService sets the pricing service for model pricing display
func (*AutocompleteImpl) SetSkillsService ¶
func (a *AutocompleteImpl) SetSkillsService(skillsService agentdomain.SkillsService)
SetSkillsService sets the skills service so installed skills appear in the slash-command autocomplete alongside shortcuts.
func (*AutocompleteImpl) SetStateManager ¶
func (a *AutocompleteImpl) SetStateManager(stateManager agentdomain.AgentModeManager)
SetStateManager sets the state manager for agent mode filtering
func (*AutocompleteImpl) SetToolService ¶
func (a *AutocompleteImpl) SetToolService(toolService agentdomain.ToolService)
SetToolService sets the tool service for tool autocomplete
func (*AutocompleteImpl) SetWidth ¶
func (a *AutocompleteImpl) SetWidth(width int)
SetWidth sets the width for rendering
func (*AutocompleteImpl) Update ¶
func (a *AutocompleteImpl) Update(inputText string, cursorPos int)
Update handles autocomplete logic
type ShortcutOption ¶
ShortcutOption represents a shortcut option for autocomplete
type ShortcutRegistry ¶
ShortcutRegistry interface for dependency injection
type SubcommandProvider ¶
type SubcommandProvider interface {
GetSubcommands() []shortcuts.Subcommand
}
SubcommandProvider is an interface for shortcuts that provide subcommands