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:
31
akode-rs/voice-host/tests/common/mod.rs
Normal file
31
akode-rs/voice-host/tests/common/mod.rs
Normal file
@@ -0,0 +1,31 @@
|
||||
//! Launches the helper with its Bazel-provided native startup libraries available.
|
||||
|
||||
#[cfg(all(windows, target_env = "msvc"))]
|
||||
use std::env;
|
||||
|
||||
#[cfg(all(windows, target_env = "msvc"))]
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use akode_utils_cargo_bin::cargo_bin;
|
||||
use tokio::process::Command;
|
||||
|
||||
pub(crate) fn voice_host_command() -> Result<Command> {
|
||||
let command = Command::new(cargo_bin("akode-voice-host")?);
|
||||
#[cfg(all(windows, target_env = "msvc"))]
|
||||
let mut command = command;
|
||||
#[cfg(all(windows, target_env = "msvc"))]
|
||||
if akode_utils_cargo_bin::runfiles_available() {
|
||||
let resource = format!(
|
||||
"../../third_party/voice/native_link_windows_{}/runtime.json",
|
||||
env::consts::ARCH
|
||||
);
|
||||
let runtime = akode_utils_cargo_bin::find_resource!(resource)?;
|
||||
let runtime_bin = runtime.parent().context("voice runtime root")?.join("bin");
|
||||
let path = env::join_paths(
|
||||
std::iter::once(runtime_bin)
|
||||
.chain(env::split_paths(&env::var_os("PATH").unwrap_or_default())),
|
||||
)?;
|
||||
command.env("PATH", path);
|
||||
}
|
||||
Ok(command)
|
||||
}
|
||||
Reference in New Issue
Block a user