tui

package
v0.6.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 49 Imported by: 0

Documentation

Overview

Package tui implements Kodelet's native terminal chat interface.

Index

Constants

View Source
const (
	AutoThemeName    = "auto"
	DefaultThemeName = "catppuccin-mocha"
	LightThemeName   = "catppuccin-latte"
)

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 Run

func Run(ctx context.Context, config Config) error

func ValidateThemeName

func ValidateThemeName(name string) error

ValidateThemeName checks automatic, bundled, and user-installed themes.

Types

type Config

type Config struct {
	ConversationID          string
	Profile                 string
	ProfileOptions          []string
	ProfileSettings         map[string]ProfileSettings
	EnvironmentProfile      string
	ReasoningEffort         string
	ReasoningEffortOptions  []string
	ReasoningEffortExplicit bool
	CWD                     string
	DefaultCWD              string
	Theme                   string
	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.

type ProfileSettings

type ProfileSettings struct {
	ReasoningEffort        string
	ReasoningEffortOptions []string
}

ProfileSettings contains control-plane-owned reasoning policy for one model profile.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL