Documentation
¶
Overview ¶
Package tui implements Kodelet's native terminal chat interface.
Index ¶
- Constants
- func AvailableThemeNames() []string
- func AvailableWelcomeEffects() []string
- func AvailableWelcomeStyles() []string
- func ParseWelcomeEffect(effect string) (string, error)
- func ParseWelcomeStyle(style string) (string, error)
- func Run(ctx context.Context, config Config) error
- func ValidateThemeName(name string) error
- type Config
- type ProfileSettings
Constants ¶
View Source
const ( AutoThemeName = "auto" DefaultThemeName = "catppuccin-mocha" LightThemeName = "catppuccin-latte" )
View Source
const ( // DefaultWelcomeStyle is used when no logo style is selected. DefaultWelcomeStyle = welcomeStyleBlock // DefaultWelcomeEffect is used when no effect is selected. DefaultWelcomeEffect = welcomeEffectNone )
Variables ¶
This section is empty.
Functions ¶
func AvailableThemeNames ¶
func AvailableThemeNames() []string
AvailableThemeNames returns automatic selection, bundled themes, and valid custom themes discovered under ~/.kodelet/themes.
func AvailableWelcomeEffects ¶
func AvailableWelcomeEffects() []string
AvailableWelcomeEffects returns the supported startup animation names.
func AvailableWelcomeStyles ¶
func AvailableWelcomeStyles() []string
AvailableWelcomeStyles returns the supported welcome wordmark styles.
func ParseWelcomeEffect ¶
ParseWelcomeEffect normalizes an effect name; blank selects the default.
func ParseWelcomeStyle ¶
ParseWelcomeStyle normalizes a logo style; blank selects the default.
func ValidateThemeName ¶
ValidateThemeName checks automatic, bundled, and user-installed themes.
Types ¶
type Config ¶
type Config struct {
ConversationID string
Profile string
ProfileOptions []string
ProfileSettings map[string]ProfileSettings
Model string
ModelOptions []string
EnvironmentProfile string
ReasoningEffort string
ReasoningEffortOptions []string
ReasoningEffortExplicit bool
CWD string
DefaultCWD string
Theme string
WelcomeStyle string
WelcomeEffect string
ServerURL string // Connected control-plane base URL for relative image links.
Runner chat.ChatRunner // Required unless Initialize is set; the daemon owns execution.
// Initialize optionally prepares the daemon connection after the TUI renders.
// Until it succeeds, typing and quitting remain available but submission is disabled.
Initialize func(context.Context) (Config, error)
Remote bool // Deprecated: exported Run always uses daemon-backed discovery and history.
}
Config configures the native chat TUI.
Source Files
¶
- about.go
- constants.go
- conversation_picker.go
- conversation_state.go
- details.go
- events.go
- extensions_ui.go
- format.go
- history.go
- markdown.go
- message_history.go
- model.go
- model_picker.go
- profile.go
- reasoning.go
- shortcuts.go
- styles.go
- terminal_title.go
- text.go
- theme.go
- tool_render.go
- tool_result.go
- transcript.go
- types.go
- ui.go
- update.go
- view.go
- welcome.go
- welcome_beams.go
- welcome_matrix.go
- welcome_particles.go
- welcome_spin.go
- welcome_spin_render.go
Click to show internal directories.
Click to hide internal directories.