Documentation ¶
Index ¶
- func ClearScrollback() tea.Msg
- func ErrorCmd(err error) tea.Cmd
- func HistoryPrinted() tea.Msg
- func Init() tea.Msg
- func MessageCmd[T any](msg T) tea.Cmd
- func StartEditorCmd(msg string) tea.Cmd
- func StaticStream(text string) tea.Cmd
- func WindowResized(msg tea.WindowSizeMsg, ready bool) func() tea.Msg
- type BacklogMsg
- type BacklogPrintedMsg
- type ConfigLoadedMsg
- type ConversationHistoryMsg
- type ConversationSwitchedMsg
- type EditorRequestMsg
- type EditorResultMsg
- type ErrorMsg
- type GistOpenReq
- type GistOpenRes
- type GistResultMsg
- type HistoryMsg
- type HistoryPrintedMsg
- type InitMsg
- type ScrollbackClearedMsg
- type SetCredentialReq
- type SetCredentialRes
- type StreamCompletion
- type StreamCompletionReq
- type StreamCompletionResult
- type WindowSizeMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearScrollback ¶
func HistoryPrinted ¶
func MessageCmd ¶
MessageCmd is a helper function that wraps a message in a tea.Cmd
func StartEditorCmd ¶
func StaticStream ¶
func WindowResized ¶
func WindowResized(msg tea.WindowSizeMsg, ready bool) func() tea.Msg
Types ¶
type BacklogMsg ¶
type BacklogPrintedMsg ¶
type BacklogPrintedMsg struct { }
type ConfigLoadedMsg ¶
type ConfigLoadedMsg struct { Config store.Config ClientConfig query.ClientConfig Err error }
type ConversationHistoryMsg ¶
type ConversationSwitchedMsg ¶
type EditorRequestMsg ¶
type EditorRequestMsg struct {
Prompt string
}
type EditorResultMsg ¶
type GistOpenReq ¶
type GistOpenReq struct {
URL string
}
type GistOpenRes ¶
type GistResultMsg ¶
type HistoryMsg ¶
type HistoryPrintedMsg ¶
type HistoryPrintedMsg struct{}
type ScrollbackClearedMsg ¶
type ScrollbackClearedMsg struct{}
type SetCredentialReq ¶
type SetCredentialRes ¶
type SetCredentialRes struct {
Err error
}
type StreamCompletion ¶
type StreamCompletion struct {
// contains filtered or unexported fields
}
func NewStreamCompletion ¶
func NewStreamCompletion() StreamCompletion
func (StreamCompletion) Close ¶
func (s StreamCompletion) Close(err error)
Close closes the stream with the error result. This should only ever be called once and should always be called.
func (StreamCompletion) Done ¶
func (s StreamCompletion) Done() bool
func (StreamCompletion) Err ¶
func (s StreamCompletion) Err() error
func (StreamCompletion) Next ¶
func (s StreamCompletion) Next() (res []string)
type StreamCompletionReq ¶
type StreamCompletionReq struct {
Text string
}
type StreamCompletionResult ¶
type WindowSizeMsg ¶
type WindowSizeMsg struct { tea.WindowSizeMsg Ready bool }
Click to show internal directories.
Click to hide internal directories.