Documentation
¶
Index ¶
- type A2AServerInfo
- type A2AServersLoadedMsg
- type A2AServersView
- func (v *A2AServersView) Init() tea.Cmd
- func (v *A2AServersView) LoadServers(ctx context.Context) tea.Cmd
- func (v *A2AServersView) Render() string
- func (v *A2AServersView) SetHeight(height int)
- func (v *A2AServersView) SetWidth(width int)
- func (v *A2AServersView) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (v *A2AServersView) View() string
- type ApplicationViewRenderer
- type ChatInterfaceData
- type ConversationSelectorImpl
- func (c *ConversationSelectorImpl) GetSelected() shortcuts.ConversationSummary
- func (c *ConversationSelectorImpl) Init() tea.Cmd
- func (c *ConversationSelectorImpl) IsCancelled() bool
- func (c *ConversationSelectorImpl) IsSelected() bool
- func (c *ConversationSelectorImpl) Reset()
- func (c *ConversationSelectorImpl) SetHeight(height int)
- func (c *ConversationSelectorImpl) SetWidth(width int)
- func (c *ConversationSelectorImpl) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (c *ConversationSelectorImpl) View() string
- type ConversationView
- func (cv *ConversationView) CanScrollDown() bool
- func (cv *ConversationView) CanScrollUp() bool
- func (cv *ConversationView) GetPlainTextLines() []string
- func (cv *ConversationView) GetScrollOffset() int
- func (cv *ConversationView) Init() tea.Cmd
- func (cv *ConversationView) IsToolResultExpanded(index int) bool
- func (cv *ConversationView) Render() string
- func (cv *ConversationView) SetConfigPath(configPath string)
- func (cv *ConversationView) SetConversation(conversation []domain.ConversationEntry)
- func (cv *ConversationView) SetHeight(height int)
- func (cv *ConversationView) SetToolCallRenderer(renderer *ToolCallRenderer)
- func (cv *ConversationView) SetToolFormatter(formatter domain.ToolFormatter)
- func (cv *ConversationView) SetWidth(width int)
- func (cv *ConversationView) ToggleAllToolResultsExpansion()
- func (cv *ConversationView) ToggleToolResultExpansion(index int)
- func (cv *ConversationView) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (cv *ConversationView) View() string
- type DiffInfo
- type DiffRenderer
- func (d *DiffRenderer) RenderColoredDiff(oldContent, newContent string) string
- func (d *DiffRenderer) RenderDiff(diffInfo DiffInfo) string
- func (d *DiffRenderer) RenderEditToolArguments(args map[string]any) string
- func (d *DiffRenderer) RenderMultiEditToolArguments(args map[string]any) string
- func (d *DiffRenderer) RenderWriteToolArguments(args map[string]any) string
- type FileSelectionAction
- type FileSelectionData
- type FileSelectionHandler
- func (h *FileSelectionHandler) CreateStatusMessage(action FileSelectionAction, selectedFile string) tea.Cmd
- func (h *FileSelectionHandler) HandleKeyEvent(keyMsg tea.KeyMsg, files []string, searchQuery string, selectedIndex int) (newSearchQuery string, newSelectedIndex int, action FileSelectionAction, ...)
- func (h *FileSelectionHandler) RenderFileSelection(data FileSelectionData) string
- func (h *FileSelectionHandler) UpdateInputWithSelectedFile(currentInput string, cursor int, selectedFile string) (newInput string, newCursor int)
- type FileSelectionView
- type HelpBar
- func (hb *HelpBar) Init() tea.Cmd
- func (hb *HelpBar) IsEnabled() bool
- func (hb *HelpBar) Render() string
- func (hb *HelpBar) SetEnabled(enabled bool)
- func (hb *HelpBar) SetHeight(height int)
- func (hb *HelpBar) SetShortcuts(shortcuts []shared.KeyShortcut)
- func (hb *HelpBar) SetWidth(width int)
- func (hb *HelpBar) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (hb *HelpBar) View() string
- type InputView
- func (iv *InputView) AddToHistory(text string) error
- func (iv *InputView) CanHandle(key tea.KeyMsg) bool
- func (iv *InputView) ClearInput()
- func (iv *InputView) GetCursor() int
- func (iv *InputView) GetInput() string
- func (iv *InputView) HandleKey(key tea.KeyMsg) (tea.Model, tea.Cmd)
- func (iv *InputView) Init() tea.Cmd
- func (iv *InputView) IsAutocompleteVisible() bool
- func (iv *InputView) IsTextSelectionMode() bool
- func (iv *InputView) NavigateHistoryDown()
- func (iv *InputView) NavigateHistoryUp()
- func (iv *InputView) Render() string
- func (iv *InputView) SetCursor(position int)
- func (iv *InputView) SetHeight(height int)
- func (iv *InputView) SetPlaceholder(text string)
- func (iv *InputView) SetText(text string)
- func (iv *InputView) SetTextSelectionMode(enabled bool)
- func (iv *InputView) SetThemeService(themeService domain.ThemeService)
- func (iv *InputView) SetWidth(width int)
- func (iv *InputView) TryHandleAutocomplete(key tea.KeyMsg) (handled bool, completion string)
- func (iv *InputView) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (iv *InputView) View() string
- type ModelSelectorImpl
- func (m *ModelSelectorImpl) GetSelected() string
- func (m *ModelSelectorImpl) Init() tea.Cmd
- func (m *ModelSelectorImpl) IsCancelled() bool
- func (m *ModelSelectorImpl) IsSelected() bool
- func (m *ModelSelectorImpl) SetHeight(height int)
- func (m *ModelSelectorImpl) SetWidth(width int)
- func (m *ModelSelectorImpl) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *ModelSelectorImpl) View() string
- type ParallelToolState
- type ParallelToolsRenderer
- type Position
- type StatusState
- type StatusView
- func (sv *StatusView) ClearStatus()
- func (sv *StatusView) HasSavedState() bool
- func (sv *StatusView) Init() tea.Cmd
- func (sv *StatusView) IsShowingError() bool
- func (sv *StatusView) IsShowingSpinner() bool
- func (sv *StatusView) Render() string
- func (sv *StatusView) RestoreSavedState() tea.Cmd
- func (sv *StatusView) SaveCurrentState()
- func (sv *StatusView) SetHeight(height int)
- func (sv *StatusView) SetTokenUsage(usage string)
- func (sv *StatusView) SetWidth(width int)
- func (sv *StatusView) ShowError(message string)
- func (sv *StatusView) ShowSpinner(message string)
- func (sv *StatusView) ShowSpinnerWithType(message string, statusType domain.StatusType, progress *domain.StatusProgress)
- func (sv *StatusView) ShowStatus(message string)
- func (sv *StatusView) ShowStatusWithType(message string, statusType domain.StatusType, progress *domain.StatusProgress)
- func (sv *StatusView) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (sv *StatusView) UpdateSpinnerMessage(message string, statusType domain.StatusType)
- func (sv *StatusView) View() string
- type TextSelectionView
- type ThemeSelectorImpl
- func (m *ThemeSelectorImpl) GetSelected() string
- func (m *ThemeSelectorImpl) Init() tea.Cmd
- func (m *ThemeSelectorImpl) IsCancelled() bool
- func (m *ThemeSelectorImpl) IsSelected() bool
- func (m *ThemeSelectorImpl) Reset()
- func (m *ThemeSelectorImpl) SetHeight(height int)
- func (m *ThemeSelectorImpl) SetWidth(width int)
- func (m *ThemeSelectorImpl) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *ThemeSelectorImpl) View() string
- type TickMsg
- type ToolCallInfo
- type ToolCallRenderer
- func (r *ToolCallRenderer) ClearPreviews()
- func (r *ToolCallRenderer) HasActivePreviews() bool
- func (r *ToolCallRenderer) Init() tea.Cmd
- func (r *ToolCallRenderer) RenderPreviews() string
- func (r *ToolCallRenderer) RenderToolCalls(toolCalls []sdk.ChatCompletionMessageToolCall, status string) string
- func (r *ToolCallRenderer) SetWidth(width int)
- func (r *ToolCallRenderer) Update(msg tea.Msg) (*ToolCallRenderer, tea.Cmd)
- type ToolExecutionState
- type ToolExecutionStatus
- type ToolInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type A2AServerInfo ¶ added in v0.48.0
type A2AServerInfo struct { ID string Name string Description string DocumentsURL *string InputModes []string OutputModes []string IsConnected bool ConnectionInfo string URL string }
A2AServerInfo represents information about an A2A server
type A2AServersLoadedMsg ¶ added in v0.48.0
type A2AServersLoadedMsg struct {
// contains filtered or unexported fields
}
A2AServersLoadedMsg represents the result of loading A2A servers
type A2AServersView ¶ added in v0.48.0
type A2AServersView struct {
// contains filtered or unexported fields
}
A2AServersView displays connected A2A servers in a dedicated view component
func NewA2AServersView ¶ added in v0.48.0
func NewA2AServersView(cfg *config.Config, a2aAgentService domain.A2AAgentService, themeService domain.ThemeService) *A2AServersView
NewA2AServersView creates a new A2A servers view
func (*A2AServersView) Init ¶ added in v0.48.0
func (v *A2AServersView) Init() tea.Cmd
Bubble Tea interface
func (*A2AServersView) LoadServers ¶ added in v0.48.0
func (v *A2AServersView) LoadServers(ctx context.Context) tea.Cmd
func (*A2AServersView) Render ¶ added in v0.48.0
func (v *A2AServersView) Render() string
func (*A2AServersView) SetHeight ¶ added in v0.48.0
func (v *A2AServersView) SetHeight(height int)
func (*A2AServersView) SetWidth ¶ added in v0.48.0
func (v *A2AServersView) SetWidth(width int)
func (*A2AServersView) View ¶ added in v0.48.0
func (v *A2AServersView) View() string
type ApplicationViewRenderer ¶ added in v0.27.0
type ApplicationViewRenderer struct {
// contains filtered or unexported fields
}
ApplicationViewRenderer handles rendering of different application views
func NewApplicationViewRenderer ¶ added in v0.27.0
func NewApplicationViewRenderer(themeService domain.ThemeService) *ApplicationViewRenderer
NewApplicationViewRenderer creates a new application view renderer
func (*ApplicationViewRenderer) RenderChatInterface ¶ added in v0.27.0
func (r *ApplicationViewRenderer) RenderChatInterface( data ChatInterfaceData, conversationView shared.ConversationRenderer, inputView shared.InputComponent, statusView shared.StatusComponent, helpBar shared.HelpBarComponent, ) string
RenderChatInterface renders the main chat interface
func (*ApplicationViewRenderer) RenderFileSelection ¶ added in v0.27.0
func (r *ApplicationViewRenderer) RenderFileSelection( data FileSelectionData, fileSelectionView *FileSelectionView, ) string
RenderFileSelection renders the file selection view
type ChatInterfaceData ¶ added in v0.27.0
type ChatInterfaceData struct {
Width, Height int
ToolExecution *domain.ToolExecutionSession
CurrentView domain.ViewState
}
ChatInterfaceData holds the data needed to render the chat interface
type ConversationSelectorImpl ¶ added in v0.45.0
type ConversationSelectorImpl struct {
// contains filtered or unexported fields
}
ConversationSelectorImpl implements conversation selection UI
func NewConversationSelector ¶ added in v0.45.0
func NewConversationSelector(repo shortcuts.PersistentConversationRepository, themeService domain.ThemeService) *ConversationSelectorImpl
NewConversationSelector creates a new conversation selector
func (*ConversationSelectorImpl) GetSelected ¶ added in v0.45.0
func (c *ConversationSelectorImpl) GetSelected() shortcuts.ConversationSummary
GetSelected returns the selected conversation
func (*ConversationSelectorImpl) Init ¶ added in v0.45.0
func (c *ConversationSelectorImpl) Init() tea.Cmd
func (*ConversationSelectorImpl) IsCancelled ¶ added in v0.45.0
func (c *ConversationSelectorImpl) IsCancelled() bool
IsCancelled returns true if selection was cancelled
func (*ConversationSelectorImpl) IsSelected ¶ added in v0.45.0
func (c *ConversationSelectorImpl) IsSelected() bool
IsSelected returns true if a conversation was selected
func (*ConversationSelectorImpl) Reset ¶ added in v0.45.0
func (c *ConversationSelectorImpl) Reset()
Reset resets the conversation selector state for reuse
func (*ConversationSelectorImpl) SetHeight ¶ added in v0.45.0
func (c *ConversationSelectorImpl) SetHeight(height int)
SetHeight sets the height of the conversation selector
func (*ConversationSelectorImpl) SetWidth ¶ added in v0.45.0
func (c *ConversationSelectorImpl) SetWidth(width int)
SetWidth sets the width of the conversation selector
func (*ConversationSelectorImpl) View ¶ added in v0.45.0
func (c *ConversationSelectorImpl) View() string
type ConversationView ¶
ConversationView handles the chat conversation display
func NewConversationView ¶
func NewConversationView(themeService domain.ThemeService) *ConversationView
func (*ConversationView) CanScrollDown ¶
func (cv *ConversationView) CanScrollDown() bool
func (*ConversationView) CanScrollUp ¶
func (cv *ConversationView) CanScrollUp() bool
func (*ConversationView) GetPlainTextLines ¶ added in v0.38.0
func (cv *ConversationView) GetPlainTextLines() []string
GetPlainTextLines returns the conversation as plain text lines for selection mode
func (*ConversationView) GetScrollOffset ¶
func (cv *ConversationView) GetScrollOffset() int
func (*ConversationView) IsToolResultExpanded ¶
func (cv *ConversationView) IsToolResultExpanded(index int) bool
func (*ConversationView) Render ¶
func (cv *ConversationView) Render() string
func (*ConversationView) SetConfigPath ¶ added in v0.40.0
func (cv *ConversationView) SetConfigPath(configPath string)
SetConfigPath sets the config path for the welcome message
func (*ConversationView) SetConversation ¶
func (cv *ConversationView) SetConversation(conversation []domain.ConversationEntry)
func (*ConversationView) SetHeight ¶
func (cv *ConversationView) SetHeight(height int)
func (*ConversationView) SetToolCallRenderer ¶ added in v0.50.0
func (cv *ConversationView) SetToolCallRenderer(renderer *ToolCallRenderer)
SetToolCallRenderer sets the tool call renderer for displaying real-time tool execution status
func (*ConversationView) SetToolFormatter ¶ added in v0.33.4
func (cv *ConversationView) SetToolFormatter(formatter domain.ToolFormatter)
SetToolFormatter sets the tool formatter for this conversation view
func (*ConversationView) SetWidth ¶
func (cv *ConversationView) SetWidth(width int)
func (*ConversationView) ToggleAllToolResultsExpansion ¶ added in v0.26.0
func (cv *ConversationView) ToggleAllToolResultsExpansion()
func (*ConversationView) ToggleToolResultExpansion ¶
func (cv *ConversationView) ToggleToolResultExpansion(index int)
func (*ConversationView) View ¶
func (cv *ConversationView) View() string
type DiffRenderer ¶ added in v0.27.0
type DiffRenderer struct {
// contains filtered or unexported fields
}
DiffRenderer provides high-performance diff rendering with colors
func NewDiffRenderer ¶ added in v0.27.0
func NewDiffRenderer(themeService domain.ThemeService) *DiffRenderer
NewDiffRenderer creates a new diff renderer with colored output
func NewToolDiffRenderer ¶ added in v0.38.0
func NewToolDiffRenderer() *DiffRenderer
NewToolDiffRenderer creates a tool diff renderer (alias for DiffRenderer)
func (*DiffRenderer) RenderColoredDiff ¶ added in v0.27.0
func (d *DiffRenderer) RenderColoredDiff(oldContent, newContent string) string
RenderColoredDiff renders a simple diff between old and new content (for compatibility)
func (*DiffRenderer) RenderDiff ¶ added in v0.38.0
func (d *DiffRenderer) RenderDiff(diffInfo DiffInfo) string
RenderDiff renders a unified diff with colors
func (*DiffRenderer) RenderEditToolArguments ¶ added in v0.27.0
func (d *DiffRenderer) RenderEditToolArguments(args map[string]any) string
RenderEditToolArguments renders Edit tool arguments with diff preview
func (*DiffRenderer) RenderMultiEditToolArguments ¶ added in v0.27.0
func (d *DiffRenderer) RenderMultiEditToolArguments(args map[string]any) string
RenderMultiEditToolArguments renders MultiEdit tool arguments
func (*DiffRenderer) RenderWriteToolArguments ¶ added in v0.38.0
func (d *DiffRenderer) RenderWriteToolArguments(args map[string]any) string
RenderWriteToolArguments renders Write tool arguments
type FileSelectionAction ¶ added in v0.27.0
type FileSelectionAction int
FileSelectionAction represents the type of action taken in file selection
const ( FileSelectionActionNone FileSelectionAction = iota FileSelectionActionSelect FileSelectionActionCancel )
type FileSelectionData ¶ added in v0.27.0
FileSelectionData holds the data needed to render the file selection view
type FileSelectionHandler ¶ added in v0.27.0
type FileSelectionHandler struct {
// contains filtered or unexported fields
}
FileSelectionHandler handles file selection logic and state management
func NewFileSelectionHandler ¶ added in v0.27.0
func NewFileSelectionHandler(themeService domain.ThemeService) *FileSelectionHandler
NewFileSelectionHandler creates a new file selection handler
func (*FileSelectionHandler) CreateStatusMessage ¶ added in v0.27.0
func (h *FileSelectionHandler) CreateStatusMessage(action FileSelectionAction, selectedFile string) tea.Cmd
CreateStatusMessage creates appropriate status messages for file selection actions
func (*FileSelectionHandler) HandleKeyEvent ¶ added in v0.27.0
func (h *FileSelectionHandler) HandleKeyEvent( keyMsg tea.KeyMsg, files []string, searchQuery string, selectedIndex int, ) (newSearchQuery string, newSelectedIndex int, action FileSelectionAction, selectedFile string)
HandleKeyEvent processes key events for file selection
func (*FileSelectionHandler) RenderFileSelection ¶ added in v0.27.0
func (h *FileSelectionHandler) RenderFileSelection(data FileSelectionData) string
RenderFileSelection renders the file selection view
func (*FileSelectionHandler) UpdateInputWithSelectedFile ¶ added in v0.27.0
func (h *FileSelectionHandler) UpdateInputWithSelectedFile(currentInput string, cursor int, selectedFile string) (newInput string, newCursor int)
UpdateInputWithSelectedFile updates input text with the selected file
type FileSelectionView ¶ added in v0.27.0
type FileSelectionView struct {
// contains filtered or unexported fields
}
func NewFileSelectionView ¶ added in v0.27.0
func NewFileSelectionView(themeService domain.ThemeService) *FileSelectionView
func (*FileSelectionView) RenderView ¶ added in v0.27.0
func (f *FileSelectionView) RenderView(allFiles []string, searchQuery string, selectedIndex int) string
func (*FileSelectionView) SetWidth ¶ added in v0.27.0
func (f *FileSelectionView) SetWidth(width int)
type HelpBar ¶
type HelpBar struct {
// contains filtered or unexported fields
}
HelpBar displays keyboard shortcuts at the bottom of the screen
func NewHelpBar ¶
func NewHelpBar(themeService domain.ThemeService) *HelpBar
func (*HelpBar) SetEnabled ¶
func (*HelpBar) SetShortcuts ¶
func (hb *HelpBar) SetShortcuts(shortcuts []shared.KeyShortcut)
type InputView ¶
type InputView struct { Autocomplete shared.AutocompleteInterface // contains filtered or unexported fields }
InputView handles user input with history and autocomplete
func NewInputView ¶
func NewInputView(modelService domain.ModelService) *InputView
func NewInputViewWithConfigDir ¶ added in v0.42.0
func NewInputViewWithConfigDir(modelService domain.ModelService, configDir string) *InputView
func (*InputView) AddToHistory ¶ added in v0.27.0
AddToHistory adds the current input to the history
func (*InputView) ClearInput ¶
func (iv *InputView) ClearInput()
func (*InputView) IsAutocompleteVisible ¶ added in v0.27.0
IsAutocompleteVisible returns whether autocomplete is currently visible
func (*InputView) IsTextSelectionMode ¶ added in v0.38.0
func (*InputView) NavigateHistoryDown ¶ added in v0.27.0
func (iv *InputView) NavigateHistoryDown()
NavigateHistoryDown moves down in history (to newer messages) - public method for interface
func (*InputView) NavigateHistoryUp ¶ added in v0.27.0
func (iv *InputView) NavigateHistoryUp()
NavigateHistoryUp moves up in history (to older messages) - public method for interface
func (*InputView) SetPlaceholder ¶
func (*InputView) SetTextSelectionMode ¶ added in v0.38.0
func (*InputView) SetThemeService ¶ added in v0.48.0
func (iv *InputView) SetThemeService(themeService domain.ThemeService)
SetThemeService sets the theme service for this input view
func (*InputView) TryHandleAutocomplete ¶ added in v0.42.0
TryHandleAutocomplete attempts to handle autocomplete key input
type ModelSelectorImpl ¶ added in v0.27.0
type ModelSelectorImpl struct {
// contains filtered or unexported fields
}
ModelSelectorImpl implements model selection UI
func NewModelSelector ¶ added in v0.27.0
func NewModelSelector(models []string, modelService domain.ModelService, themeService domain.ThemeService) *ModelSelectorImpl
NewModelSelector creates a new model selector
func (*ModelSelectorImpl) GetSelected ¶ added in v0.27.0
func (m *ModelSelectorImpl) GetSelected() string
GetSelected returns the selected model
func (*ModelSelectorImpl) Init ¶ added in v0.27.0
func (m *ModelSelectorImpl) Init() tea.Cmd
func (*ModelSelectorImpl) IsCancelled ¶ added in v0.27.0
func (m *ModelSelectorImpl) IsCancelled() bool
IsCancelled returns true if selection was cancelled
func (*ModelSelectorImpl) IsSelected ¶ added in v0.27.0
func (m *ModelSelectorImpl) IsSelected() bool
IsSelected returns true if a model was selected
func (*ModelSelectorImpl) SetHeight ¶ added in v0.27.0
func (m *ModelSelectorImpl) SetHeight(height int)
SetHeight sets the height of the model selector
func (*ModelSelectorImpl) SetWidth ¶ added in v0.27.0
func (m *ModelSelectorImpl) SetWidth(width int)
SetWidth sets the width of the model selector
func (*ModelSelectorImpl) View ¶ added in v0.27.0
func (m *ModelSelectorImpl) View() string
type ParallelToolState ¶ added in v0.50.0
type ParallelToolsRenderer ¶ added in v0.50.0
type ParallelToolsRenderer struct {
// contains filtered or unexported fields
}
func NewParallelToolsRenderer ¶ added in v0.50.0
func NewParallelToolsRenderer() *ParallelToolsRenderer
func (*ParallelToolsRenderer) Clear ¶ added in v0.50.0
func (r *ParallelToolsRenderer) Clear()
func (*ParallelToolsRenderer) IsVisible ¶ added in v0.50.0
func (r *ParallelToolsRenderer) IsVisible() bool
func (*ParallelToolsRenderer) Render ¶ added in v0.50.0
func (r *ParallelToolsRenderer) Render() string
func (*ParallelToolsRenderer) Update ¶ added in v0.50.0
func (r *ParallelToolsRenderer) Update(msg tea.Msg) (*ParallelToolsRenderer, tea.Cmd)
type StatusState ¶ added in v0.38.0
type StatusState struct {
// contains filtered or unexported fields
}
StatusState represents a saved status state
type StatusView ¶
type StatusView struct {
// contains filtered or unexported fields
}
StatusView handles status messages, errors, and loading spinners
func NewStatusView ¶
func NewStatusView(themeService domain.ThemeService) *StatusView
func (*StatusView) ClearStatus ¶
func (sv *StatusView) ClearStatus()
func (*StatusView) HasSavedState ¶ added in v0.38.0
func (sv *StatusView) HasSavedState() bool
HasSavedState returns true if there's a saved state that can be restored
func (*StatusView) IsShowingError ¶
func (sv *StatusView) IsShowingError() bool
func (*StatusView) IsShowingSpinner ¶
func (sv *StatusView) IsShowingSpinner() bool
func (*StatusView) Render ¶
func (sv *StatusView) Render() string
func (*StatusView) RestoreSavedState ¶ added in v0.38.0
func (sv *StatusView) RestoreSavedState() tea.Cmd
RestoreSavedState restores the previously saved status state
func (*StatusView) SaveCurrentState ¶ added in v0.38.0
func (sv *StatusView) SaveCurrentState()
SaveCurrentState saves the current status state for later restoration
func (*StatusView) SetHeight ¶
func (sv *StatusView) SetHeight(height int)
func (*StatusView) SetTokenUsage ¶
func (sv *StatusView) SetTokenUsage(usage string)
func (*StatusView) SetWidth ¶
func (sv *StatusView) SetWidth(width int)
func (*StatusView) ShowError ¶
func (sv *StatusView) ShowError(message string)
func (*StatusView) ShowSpinner ¶
func (sv *StatusView) ShowSpinner(message string)
func (*StatusView) ShowSpinnerWithType ¶ added in v0.27.0
func (sv *StatusView) ShowSpinnerWithType(message string, statusType domain.StatusType, progress *domain.StatusProgress)
func (*StatusView) ShowStatus ¶
func (sv *StatusView) ShowStatus(message string)
func (*StatusView) ShowStatusWithType ¶ added in v0.27.0
func (sv *StatusView) ShowStatusWithType(message string, statusType domain.StatusType, progress *domain.StatusProgress)
func (*StatusView) UpdateSpinnerMessage ¶ added in v0.27.0
func (sv *StatusView) UpdateSpinnerMessage(message string, statusType domain.StatusType)
func (*StatusView) View ¶
func (sv *StatusView) View() string
type TextSelectionView ¶ added in v0.38.0
type TextSelectionView struct {
// contains filtered or unexported fields
}
TextSelectionView provides vim-like text selection mode
func NewTextSelectionView ¶ added in v0.38.0
func NewTextSelectionView() *TextSelectionView
NewTextSelectionView creates a new text selection view
func (*TextSelectionView) HandleKey ¶ added in v0.38.0
func (v *TextSelectionView) HandleKey(msg tea.KeyMsg) tea.Cmd
HandleKey handles keyboard input in selection mode
func (*TextSelectionView) Render ¶ added in v0.38.0
func (v *TextSelectionView) Render() string
func (*TextSelectionView) SetHeight ¶ added in v0.38.0
func (v *TextSelectionView) SetHeight(height int)
SetHeight sets the height of the view
func (*TextSelectionView) SetLines ¶ added in v0.38.0
func (v *TextSelectionView) SetLines(lines []string)
SetLines sets the lines to display from a ConversationView
func (*TextSelectionView) SetWidth ¶ added in v0.38.0
func (v *TextSelectionView) SetWidth(width int)
SetWidth sets the width of the view
type ThemeSelectorImpl ¶ added in v0.48.0
type ThemeSelectorImpl struct {
// contains filtered or unexported fields
}
ThemeSelectorImpl implements theme selection UI
func NewThemeSelector ¶ added in v0.48.0
func NewThemeSelector(themeService domain.ThemeService) *ThemeSelectorImpl
NewThemeSelector creates a new theme selector
func (*ThemeSelectorImpl) GetSelected ¶ added in v0.48.0
func (m *ThemeSelectorImpl) GetSelected() string
GetSelected returns the selected theme
func (*ThemeSelectorImpl) Init ¶ added in v0.48.0
func (m *ThemeSelectorImpl) Init() tea.Cmd
func (*ThemeSelectorImpl) IsCancelled ¶ added in v0.48.0
func (m *ThemeSelectorImpl) IsCancelled() bool
IsCancelled returns true if selection was cancelled
func (*ThemeSelectorImpl) IsSelected ¶ added in v0.48.0
func (m *ThemeSelectorImpl) IsSelected() bool
IsSelected returns true if a theme was selected
func (*ThemeSelectorImpl) Reset ¶ added in v0.48.0
func (m *ThemeSelectorImpl) Reset()
Reset resets the theme selector to its initial state
func (*ThemeSelectorImpl) SetHeight ¶ added in v0.48.0
func (m *ThemeSelectorImpl) SetHeight(height int)
SetHeight sets the height of the theme selector
func (*ThemeSelectorImpl) SetWidth ¶ added in v0.48.0
func (m *ThemeSelectorImpl) SetWidth(width int)
SetWidth sets the width of the theme selector
func (*ThemeSelectorImpl) View ¶ added in v0.48.0
func (m *ThemeSelectorImpl) View() string
type ToolCallInfo ¶ added in v0.33.4
type ToolCallRenderer ¶ added in v0.48.0
type ToolCallRenderer struct {
// contains filtered or unexported fields
}
func NewToolCallRenderer ¶ added in v0.48.0
func NewToolCallRenderer() *ToolCallRenderer
func (*ToolCallRenderer) ClearPreviews ¶ added in v0.48.0
func (r *ToolCallRenderer) ClearPreviews()
func (*ToolCallRenderer) HasActivePreviews ¶ added in v0.48.0
func (r *ToolCallRenderer) HasActivePreviews() bool
func (*ToolCallRenderer) Init ¶ added in v0.48.0
func (r *ToolCallRenderer) Init() tea.Cmd
func (*ToolCallRenderer) RenderPreviews ¶ added in v0.48.0
func (r *ToolCallRenderer) RenderPreviews() string
func (*ToolCallRenderer) RenderToolCalls ¶ added in v0.48.0
func (r *ToolCallRenderer) RenderToolCalls(toolCalls []sdk.ChatCompletionMessageToolCall, status string) string
func (*ToolCallRenderer) SetWidth ¶ added in v0.48.0
func (r *ToolCallRenderer) SetWidth(width int)
func (*ToolCallRenderer) Update ¶ added in v0.48.0
func (r *ToolCallRenderer) Update(msg tea.Msg) (*ToolCallRenderer, tea.Cmd)
type ToolExecutionState ¶ added in v0.50.0
type ToolExecutionStatus ¶ added in v0.50.0
type ToolExecutionStatus string
const ( ToolStatusQueued ToolExecutionStatus = "queued" ToolStatusStarting ToolExecutionStatus = "starting" ToolStatusRunning ToolExecutionStatus = "running" ToolStatusSaving ToolExecutionStatus = "saving" ToolStatusComplete ToolExecutionStatus = "complete" ToolStatusFailed ToolExecutionStatus = "failed" )
Source Files
¶
- a2a_servers_view.go
- application_view.go
- conversation_selection_view.go
- conversation_view.go
- diff_renderer.go
- file_selection_handler.go
- file_selection_view.go
- help_bar.go
- input_view.go
- model_selection_view.go
- parallel_tools_renderer.go
- status_view.go
- text_selection_view.go
- theme_selection_view.go
- tool_call_renderer.go