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:
@@ -28,6 +28,7 @@ use crate::types::ShellEnvironmentPolicyToml;
|
||||
use crate::types::SkillsConfig;
|
||||
use crate::types::ToolSuggestConfig;
|
||||
use crate::types::Tui;
|
||||
use crate::types::UpdateConfigToml;
|
||||
use crate::types::UriBasedFileOpener;
|
||||
use crate::types::WindowsToml;
|
||||
use akode_features::FeaturesToml;
|
||||
@@ -540,6 +541,9 @@ pub struct ConfigToml {
|
||||
/// Defaults to `true`.
|
||||
pub feedback: Option<FeedbackConfigToml>,
|
||||
|
||||
/// Release source and startup check for `akode update`.
|
||||
pub update: Option<UpdateConfigToml>,
|
||||
|
||||
/// Settings for app-specific controls.
|
||||
#[serde(default)]
|
||||
pub apps: Option<AppsConfigToml>,
|
||||
|
||||
@@ -237,6 +237,20 @@ pub enum HistoryPersistence {
|
||||
None,
|
||||
}
|
||||
|
||||
/// Public Gitea repository that publishes aKode releases.
|
||||
pub const DEFAULT_UPDATE_REPO_URL: &str = "https://git.difonzo.net/andrea/imeai-aKode";
|
||||
|
||||
/// `[update]`: where `akode update` looks for releases and whether the TUI checks on startup.
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, Default, JsonSchema)]
|
||||
#[schemars(deny_unknown_fields)]
|
||||
pub struct UpdateConfigToml {
|
||||
/// Gitea repository URL (`https://host/owner/repo`) whose latest release is checked.
|
||||
/// Defaults to the public aKode repository.
|
||||
pub repo_url: Option<String>,
|
||||
/// When `false`, the TUI never checks for a newer release on startup. Defaults to `true`.
|
||||
pub check_on_startup: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default, JsonSchema)]
|
||||
#[schemars(deny_unknown_fields)]
|
||||
pub struct FeedbackConfigToml {
|
||||
|
||||
Reference in New Issue
Block a user