Documentation
¶
Index ¶
- func FormatSessionPickerCard(picker *SessionPicker, width, maxHeight int) string
- func IsCancel(msg tea.Msg) bool
- func IsComplete(msg tea.Msg) bool
- type Model
- type SessionPicker
- type Step
- type SuggestionItem
- type SuggestionModel
- func (s SuggestionModel) Current() *SuggestionItem
- func (s SuggestionModel) First() *SuggestionItem
- func (s SuggestionModel) Height() int
- func (s *SuggestionModel) Hide()
- func (s SuggestionModel) IsFileMode() bool
- func (s SuggestionModel) IsFirstSelected() bool
- func (s SuggestionModel) IsModelMode() bool
- func (s *SuggestionModel) MoveDown()
- func (s *SuggestionModel) MoveUp()
- func (s *SuggestionModel) Refresh(input string)
- func (s *SuggestionModel) RefreshFiles(paths []string)
- func (s *SuggestionModel) RefreshModels(input string, pairs []string)
- func (s *SuggestionModel) RefreshWithSkills(input string, skills []SuggestionItem)
- func (s SuggestionModel) View(width int) string
- func (s SuggestionModel) Visible() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatSessionPickerCard ¶
func FormatSessionPickerCard(picker *SessionPicker, width, maxHeight int) string
func IsComplete ¶
Types ¶
type Model ¶
type Model struct {
Step Step
SelectedProvider string
SelectedModel string
APIKeyInput string
BaseURLInput string
BaseURLError string
ProviderCursor int
ModelCursor int
ThinkingCursor int
ThinkingOptions []string
SelectedThinking string
UpdateProviderConfigCursor int
OAuthStatus string
OAuthURL string
ProviderList []providers.Provider
ModelList []providers.Model
ErrorMessage string
// contains filtered or unexported fields
}
func NewWithAuthManager ¶
func NewWithAuthManager(registry *providers.Registry, globalCfg *config.GlobalConfig, loader *config.Loader, resolvedCfg *config.ResolvedConfig, authManager *keenauth.OAuthManager, onComplete func(provider, model, apiKey string) error) *Model
func (*Model) ViewString ¶
type SessionPicker ¶
type SessionPicker struct {
// contains filtered or unexported fields
}
func NewSessionPicker ¶
func NewSessionPicker(summaries []session.Summary) *SessionPicker
func (*SessionPicker) Current ¶
func (p *SessionPicker) Current() *session.Summary
func (*SessionPicker) Move ¶
func (p *SessionPicker) Move(delta int)
type SuggestionItem ¶
SuggestionItem is a generic suggestion entry used for both slash commands and file paths.
type SuggestionModel ¶
type SuggestionModel struct {
// contains filtered or unexported fields
}
func NewSuggestionModel ¶
func NewSuggestionModel() SuggestionModel
func (SuggestionModel) Current ¶
func (s SuggestionModel) Current() *SuggestionItem
func (SuggestionModel) First ¶
func (s SuggestionModel) First() *SuggestionItem
func (SuggestionModel) Height ¶
func (s SuggestionModel) Height() int
func (*SuggestionModel) Hide ¶
func (s *SuggestionModel) Hide()
func (SuggestionModel) IsFileMode ¶
func (s SuggestionModel) IsFileMode() bool
func (SuggestionModel) IsFirstSelected ¶
func (s SuggestionModel) IsFirstSelected() bool
func (SuggestionModel) IsModelMode ¶
func (s SuggestionModel) IsModelMode() bool
func (*SuggestionModel) MoveDown ¶
func (s *SuggestionModel) MoveDown()
func (*SuggestionModel) MoveUp ¶
func (s *SuggestionModel) MoveUp()
func (*SuggestionModel) Refresh ¶
func (s *SuggestionModel) Refresh(input string)
func (*SuggestionModel) RefreshFiles ¶
func (s *SuggestionModel) RefreshFiles(paths []string)
func (*SuggestionModel) RefreshModels ¶
func (s *SuggestionModel) RefreshModels(input string, pairs []string)
RefreshModels sets provider/model suggestions directly.
func (*SuggestionModel) RefreshWithSkills ¶
func (s *SuggestionModel) RefreshWithSkills(input string, skills []SuggestionItem)
func (SuggestionModel) View ¶
func (s SuggestionModel) View(width int) string
func (SuggestionModel) Visible ¶
func (s SuggestionModel) Visible() bool
Click to show internal directories.
Click to hide internal directories.