Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadModelPreference ¶
func LoadModelPreference() string
LoadModelPreference reads the persisted model string (e.g. "anthropic/claude-sonnet-4-5-20250929") from preferences.yml. Returns "" if no preference is saved.
func LoadThemePreference ¶
func LoadThemePreference() string
LoadThemePreference reads the persisted theme name from preferences.yml. Returns "" if no preference is saved or the file doesn't exist.
func LoadThinkingLevelPreference ¶
func LoadThinkingLevelPreference() string
LoadThinkingLevelPreference reads the persisted thinking level from preferences.yml. Returns "" if no preference is saved.
func SaveModelPreference ¶
SaveModelPreference persists the model string to preferences.yml.
func SaveThemePreference ¶
SaveThemePreference persists the theme name to ~/.config/kit/preferences.yml. Preserves other preference fields. Uses atomic write (temp + rename) to avoid corruption from concurrent Kit instances.
func SaveThinkingLevelPreference ¶
SaveThinkingLevelPreference persists the thinking level to preferences.yml.
Types ¶
This section is empty.