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>
27 lines
659 B
Rust
27 lines
659 B
Rust
//! Protects fingerprint bytes when nested configuration keys are reordered.
|
|
|
|
use super::version_for_toml;
|
|
use pretty_assertions::assert_eq;
|
|
|
|
#[test]
|
|
fn fingerprint_preserves_nested_key_order_independence_and_existing_hash() {
|
|
for input in [
|
|
r#"rows = [{ z = 2, a = 1 }, { z = 4, a = 3 }]
|
|
[nested]
|
|
z = "text"
|
|
a = true
|
|
"#,
|
|
r#"rows = [{ a = 1, z = 2 }, { a = 3, z = 4 }]
|
|
[nested]
|
|
a = true
|
|
z = "text"
|
|
"#,
|
|
] {
|
|
let value = toml::from_str(input).expect("valid config");
|
|
assert_eq!(
|
|
version_for_toml(&value),
|
|
"sha256:a5e4c8fbdbc75d185b0f2b5291bfb2de10e8c523d6c89248876fd78a97c83176"
|
|
);
|
|
}
|
|
}
|