Marchio: nome inviato ai server MCP e testi residui allineati ad aKode (A)

- il client MCP si presenta come "akode-mcp-client" / titolo "aKode" (prima codex-mcp-client / Codex);
- ILLEGAL_ENV_VAR_PREFIX di arg0 = "AKODE_" (le variabili AKODE_* non si caricano da .env);
- testi per l'utente (errori di contesto, "Trust this folder? aKode can read...", approvazioni,
  firma del baseline, snapshot) riportati come in aKode 0.9.2 dove la differenza era solo di nome.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-17 12:55:34 +01:00
parent 203cd7a3f6
commit 47d6f1eb6b
119 changed files with 187 additions and 187 deletions

View File

@@ -267,12 +267,12 @@ fn build_runtime() -> anyhow::Result<tokio::runtime::Runtime> {
Ok(builder.build()?)
}
const ILLEGAL_ENV_VAR_PREFIX: &str = "CODEX_";
const ILLEGAL_ENV_VAR_PREFIX: &str = "AKODE_";
/// Load env vars from ~/.akode/.env.
///
/// Security: Do not allow `.env` files to create or modify any variables
/// with names starting with `CODEX_`.
/// with names starting with `AKODE_`.
fn load_dotenv() {
if let Ok(codex_home) = find_codex_home()
&& let dotenv_path = codex_home.join(".env")
@@ -283,7 +283,7 @@ fn load_dotenv() {
}
}
/// Helper to set vars from a dotenvy iterator while filtering out `CODEX_` keys.
/// Helper to set vars from a dotenvy iterator while filtering out `AKODE_` keys.
fn set_filtered<I>(iter: I)
where
I: IntoIterator<Item = Result<(String, String), dotenvy::Error>>,