Marchio: allineamento fine della rinomina (A)
Le righe che differivano dalla rinomina di aKode solo per codex/akode (header e user agent codex_cli_rs -> akode_cli_rs, nomi di file, testi di test) sono riportate come in aKode 0.9.2; dove la mappa automatica aveva rinominato troppo (stringhe di protocollo, residenza) e' ripristinato il testo originale. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -131,7 +131,7 @@ fn agents_reject_inputs_that_cannot_be_applied() -> Result<()> {
|
||||
#[test]
|
||||
fn app_server_emits_json_info_events() -> Result<()> {
|
||||
let codex_home = TempDir::new()?;
|
||||
let event = app_server_json_shutdown_event("codex", &["app-server"], codex_home.path())?;
|
||||
let event = app_server_json_shutdown_event("akode", &["app-server"], codex_home.path())?;
|
||||
|
||||
assert_eq!(
|
||||
event,
|
||||
|
||||
@@ -29,8 +29,8 @@ fn winget_package_starts_and_reselects_daemon() -> Result<()> {
|
||||
for helper in [
|
||||
"akode-code-mode-host.exe",
|
||||
"akode-path/rg.exe",
|
||||
"akode-resources/codex-command-runner.exe",
|
||||
"akode-resources/codex-windows-sandbox-setup.exe",
|
||||
"akode-resources/akode-command-runner.exe",
|
||||
"akode-resources/akode-windows-sandbox-setup.exe",
|
||||
] {
|
||||
std::fs::write(package.join(helper), b"runtime fixture")?;
|
||||
}
|
||||
|
||||
@@ -246,7 +246,7 @@ async fn daemon_startup(command: &str) -> Result<()> {
|
||||
let managed = home
|
||||
.path()
|
||||
.join("packages/app-server-daemon/current/bin")
|
||||
.join(if cfg!(windows) { "akode.exe" } else { "codex" });
|
||||
.join(if cfg!(windows) { "akode.exe" } else { "akode" });
|
||||
fs::create_dir_all(home.path().join("packages/app-server-daemon/current/bin"))?;
|
||||
// Hard links change the executable's ctime and invalidate Rosetta's translation cache.
|
||||
#[cfg(unix)]
|
||||
|
||||
@@ -55,7 +55,7 @@ where
|
||||
let initialized_response = json!({
|
||||
"id": initialize["id"],
|
||||
"result": {
|
||||
"userAgent": "codex_cli_rs/0.0.0-test",
|
||||
"userAgent": "akode_cli_rs/0.0.0-test",
|
||||
"codexHome": codex_home,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -269,7 +269,7 @@ trust_level = "trusted"
|
||||
let _daemon = if backend == "daemon" {
|
||||
let bin = home.join("packages/app-server-daemon/current/bin");
|
||||
fs::create_dir_all(&bin)?;
|
||||
let managed = bin.join(if cfg!(windows) { "akode.exe" } else { "codex" });
|
||||
let managed = bin.join(if cfg!(windows) { "akode.exe" } else { "akode" });
|
||||
// Hard links change the executable's ctime and invalidate Rosetta's translation cache.
|
||||
#[cfg(unix)]
|
||||
std::os::unix::fs::symlink(program.canonicalize()?, &managed)?;
|
||||
|
||||
Reference in New Issue
Block a user