Ripristinato akode update verso il Gitea dell'utente (come in 0.9.2, senza il sync del daemon)
Da9494b768,e1ce139ae1c278642: 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:
@@ -7210,6 +7210,21 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"UpdateConfigToml": {
|
||||
"additionalProperties": false,
|
||||
"description": "`[update]`: where `akode update` looks for releases and whether the TUI checks on startup.",
|
||||
"properties": {
|
||||
"check_on_startup": {
|
||||
"description": "When `false`, the TUI never checks for a newer release on startup. Defaults to `true`.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"repo_url": {
|
||||
"description": "Gitea repository URL (`https://host/owner/repo`) whose latest release is checked. Defaults to the public aKode repository.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"UpdatePlanToolConfig": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
@@ -8658,6 +8673,14 @@
|
||||
],
|
||||
"description": "Collection of settings that are specific to the TUI."
|
||||
},
|
||||
"update": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/UpdateConfigToml"
|
||||
}
|
||||
],
|
||||
"description": "Release source and startup check for `akode update`."
|
||||
},
|
||||
"web_search": {
|
||||
"allOf": [
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user