aKode fase 4: primo avvio guidato, temi, barra di stato

- Primo avvio (e /setup): benvenuto, tema con anteprima, provider
  (endpoint personalizzato, Ollama, LM Studio), modulo endpoint con chiave
  mascherata nel key store, modello da /models, prova di connessione
  Responses con errori distinti, SearXNG facoltativo verificato, fiducia
  cartella. Schermate in italiano. /model permette di cambiare provider.
- Temi UI: Scuro, Chiaro, Alto contrasto, Daltonici (blu/arancio, mai
  rosso/verde) su accenti, fantasmino, selezione, diff, link; /theme con
  anteprima dal vivo; [tui] ui_theme.
- Barra di stato: nuovi elementi server-endpoint e tokens-per-second;
  rimossi FiveHourLimit e WeeklyLimit; default server · modello · contesto ·
  tok/s · cartella (ramo).
- Chiave mai in config, log, database o snapshot (test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-11 05:59:46 +01:00
parent c97ccf3b2f
commit 97b289d745
207 changed files with 4859 additions and 1025 deletions

View File

@@ -862,7 +862,8 @@ pub struct Tui {
/// Ordered list of status line item identifiers.
///
/// When set, the TUI renders the selected items as the status line.
/// When unset, the TUI defaults to: `model-with-reasoning`, `current-dir`, and `thread-name`.
/// When unset, the TUI defaults to: `server-endpoint`, `model`, `context-used`,
/// `tokens-per-second`, `current-dir`, and `git-branch`.
#[serde(default)]
pub status_line: Option<Vec<String>>,
@@ -887,6 +888,13 @@ pub struct Tui {
#[serde(default)]
pub theme: Option<String>,
/// aKode interface palette: `dark`, `light`, `high-contrast` or `colorblind`.
///
/// Recolors accents, selection, status colors, links and diffs. When unset, colors follow
/// the terminal background. Use `/theme` in the TUI to change it.
#[serde(default)]
pub ui_theme: Option<String>,
/// Pet id to preselect in the terminal pet picker.
///
/// Custom pet ids resolve against CODEX_HOME/pets/<pet-id>/pet.json.