experimental: codex / ai integration

This commit is contained in:
2026-07-28 20:48:00 +02:00
parent e89c524438
commit 949935a2aa
14 changed files with 2987 additions and 7 deletions

View File

@@ -38,6 +38,7 @@ type Config struct {
Editing EditingConfig `toml:"editing"`
CustomTheme CustomThemeConfig `toml:"custom_theme"`
KeyBindings KeyBindings `toml:"keybindings"`
AI AIConfig `toml:"ai"`
}
type CustomThemeConfig struct {
@@ -117,6 +118,7 @@ func defaultConfig() Config {
Enabled: true, MaxAge: configDuration{7 * 24 * time.Hour}, MaxEntries: 200,
},
Editing: EditingConfig{Mode: "vim"},
AI: defaultAIConfig(),
KeyBindings: defaultKeyBindings(),
}
}
@@ -231,6 +233,9 @@ func validateConfig(config Config) error {
if err := validateKeyBindings(config.KeyBindings); err != nil {
return err
}
if err := validateAIConfig(config.AI); err != nil {
return err
}
return nil
}