Rinomina: crate akode-*, cartelle akode-rs/ e akode-cli/, binario akode, ~/.akode, AKODE_* (A)

Riapplica la fase 5 di aKode (86e7c72e) sulla base ripulita:
- crate codex-* -> akode-*, codex-rs -> akode-rs, codex-cli -> akode-cli, binario e ausiliari akode;
- ~/.codex -> ~/.akode, CODEX_HOME -> AKODE_HOME, variabili CODEX_* -> AKODE_*, .codex/ -> .akode/ di progetto;
  nessun fallback a ~/.codex o a CODEX_*;
- testi per l'utente "Codex" -> "aKode"; testi verso il modello e istruzioni di sistema invariati;
- snapshot insta rinominati (non ancora rigenerati).
I conflitti con la base ripulita sono stati risolti riapplicando la rinomina ai file senza le
funzioni di imeAI (script di mappa dei token per file).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-17 12:37:52 +01:00
parent e37a0deba9
commit 7c1c6dfa8d
10306 changed files with 748026 additions and 748088 deletions

View File

@@ -0,0 +1,28 @@
use super::*;
use pretty_assertions::assert_eq;
#[test]
fn signaling_roundtrips_without_diagnostic_secrets() {
let secret = "a=ice-pwd:synthetic-secret";
let message = Message::ApplyAnswer {
sdp: secret.to_owned().try_into().unwrap(),
};
let debug = format!("{message:?}");
assert!(!debug.contains(secret));
assert!(debug.contains("REDACTED"));
assert_eq!(
decode_frame(&encode_frame(&message).unwrap()).unwrap(),
Some(message)
);
}
#[test]
fn signaling_bounds_apply_to_untrusted_wire_input() {
for sdp in [String::new(), "x".repeat(64 * 1024 + 1)] {
let json = serde_json::json!({"type": "applyAnswer", "sdp": sdp}).to_string();
let mut frame = (json.len() as u32).to_be_bytes().to_vec();
frame.extend(json.as_bytes());
let error = decode_frame(&frame).unwrap_err();
assert_eq!(error.to_string(), "invalid voice frame");
}
}