Ripristinato akode update verso il Gitea dell'utente (come in 0.9.2, senza il sync del daemon)

Da 9494b768, e1ce139a e 1c278642: crate akode-update (ultima release da
git.difonzo.net/andrea/imeai-aKode, confronto semver, download solo dallo stesso host, verifica
SHA-256, sostituzione atomica), `akode update [--check]`, riga di avviso nella TUI, controllo in
background all'avvio al massimo ogni 24 h (disattivabile con [update] check_on_startup = false;
non installa mai nulla da solo). Nessun contatto con OpenAI o altri domini; il sistema upstream
(curl chatgpt.com/codex/install.sh, npm, brew) resta rimosso. Lasciato fuori l'allineamento del
daemon (95f4ddcd).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-17 14:35:07 +01:00
parent 925917c58c
commit 07ba31d492
22 changed files with 1538 additions and 75 deletions

View File

@@ -1251,6 +1251,13 @@ pub struct Config {
/// Defaults to `true`.
pub check_for_update_on_startup: bool,
/// Gitea repository checked by `akode update` (`[update] repo_url`).
pub update_repo_url: String,
/// Whether the TUI checks for a newer aKode release on startup
/// (`[update] check_on_startup`, also off when `check_for_update_on_startup = false`).
pub update_check_on_startup: bool,
/// When true, disables burst-paste detection for typed input entirely.
/// All characters are inserted as they are received, and no buffering
/// or placeholder replacement will occur for fast keypress bursts.
@@ -4772,6 +4779,17 @@ impl Config {
active_project,
notices,
check_for_update_on_startup,
update_repo_url: cfg
.update
.as_ref()
.and_then(|update| update.repo_url.clone())
.unwrap_or_else(|| akode_config::types::DEFAULT_UPDATE_REPO_URL.to_string()),
update_check_on_startup: check_for_update_on_startup
&& cfg
.update
.as_ref()
.and_then(|update| update.check_on_startup)
.unwrap_or(true),
disable_paste_burst: cfg
.tui
.as_ref()