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:
49
akode-rs/state/src/delegated_preview_tests.rs
Normal file
49
akode-rs/state/src/delegated_preview_tests.rs
Normal file
@@ -0,0 +1,49 @@
|
||||
//! Verify delegated preview decoding and tool identity filtering.
|
||||
|
||||
use super::delegated_output_preview;
|
||||
use akode_protocol::items::FunctionCallOutputItem;
|
||||
use akode_protocol::models::FunctionCallOutputBody;
|
||||
use pretty_assertions::assert_eq;
|
||||
|
||||
#[test]
|
||||
fn delegated_previews_unwrap_only_recognized_inputs() {
|
||||
let wrapped = "<codex_delegation>\n <source_thread_id>source</source_thread_id>\n <input>Check <main> & &lt;literal&gt;</input>\n</codex_delegation>";
|
||||
for (namespace, name, text, expected) in [
|
||||
(
|
||||
Some("codex_app"),
|
||||
"create_thread",
|
||||
wrapped,
|
||||
Some("Check <main> & <literal>"),
|
||||
),
|
||||
(
|
||||
Some("akode_tui"),
|
||||
"send_message_to_thread",
|
||||
wrapped,
|
||||
Some("Check <main> & <literal>"),
|
||||
),
|
||||
(
|
||||
Some("codex_app"),
|
||||
"create_thread",
|
||||
"plain <text>",
|
||||
Some("plain <text>"),
|
||||
),
|
||||
(Some("akode_tui"), "create_thread", " ", None),
|
||||
(Some("other"), "create_thread", wrapped, None),
|
||||
(None, "create_thread", wrapped, None),
|
||||
(Some("codex_app"), "shell", wrapped, None),
|
||||
(
|
||||
Some("codex_app"),
|
||||
"create_thread",
|
||||
"<codex_delegation>incomplete",
|
||||
Some("<codex_delegation>incomplete"),
|
||||
),
|
||||
] {
|
||||
let output = FunctionCallOutputItem {
|
||||
id: "output".to_string(),
|
||||
name: name.to_string(),
|
||||
namespace: namespace.map(str::to_string),
|
||||
output: FunctionCallOutputBody::Text(text.to_string()),
|
||||
};
|
||||
assert_eq!(delegated_output_preview(&output).as_deref(), expected);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user