Documentation
¶
Index ¶
- func AvailableThemes() []string
- func ExecName() string
- func InitThemes() error
- func LoadTheme(name string) error
- func ResumeHint(path string) string
- func Run(ag *agent.Agent, resumeID string, startupErrors []string) error
- func SaveActiveSession() (string, error)
- func ThemeWarning() string
- type Model
- type Theme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableThemes ¶
func AvailableThemes() []string
func InitThemes ¶
func InitThemes() error
Writes built-in themes as .theme files to the themes directory if not written
func ResumeHint ¶
Returns the command that resumes the session logged at path
func Run ¶
Starts the TUI and blocks until it exits. If resumeID is non-empty the previous session is loaded and its conversation restored. startupErrors are shown as errors once the TUI opens.
func SaveActiveSession ¶
Flushes the running TUI's chat state
Types ¶
type Theme ¶
type Theme struct {
Name string
User string // user label color
Agent string // agent label color
Tool string // tool call color
Error string // error color
Dim string // dim text
Title string // title bar color
Border string // input box border
Prompt string // permission prompt border
InputBorder string // inactive input border
Code string // chroma style for code blocks
}
func ActiveTheme ¶
func ActiveTheme() Theme