aKode fase 5: rinomina interna (crate akode-*, akode-rs/, akode-cli/, binario akode, AKODE_*, ~/.akode, snapshot)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-11 11:06:46 +01:00
parent df99318392
commit 86e7c72e5f
10383 changed files with 749164 additions and 749170 deletions

View File

@@ -20,8 +20,8 @@ rust_library(
edition = "2024",
target_compatible_with = ["@platforms//os:linux"],
deps = [
"//codex-rs/utils/cargo-bin",
"//codex-rs/utils/pty",
"//akode-rs/utils/cargo-bin",
"//akode-rs/utils/pty",
"@crates//:anyhow",
"@crates//:tempfile",
"@crates//:tokio",

View File

@@ -168,14 +168,14 @@ impl Drop for WineTestProcess {
impl WineRuntimePaths {
fn from_runfiles() -> Result<Self> {
let wine = codex_utils_cargo_bin::cargo_bin("wine")?;
let runtime_marker = codex_utils_cargo_bin::cargo_bin("wine-runtime-marker")?;
let wine = akode_utils_cargo_bin::cargo_bin("wine")?;
let runtime_marker = akode_utils_cargo_bin::cargo_bin("wine-runtime-marker")?;
let dll_path = runtime_marker
.parent()
.context("locate Wine runtime directory")?
.to_path_buf();
let wineserver = codex_utils_cargo_bin::cargo_bin("wineserver")?;
let powershell_runtime = codex_utils_cargo_bin::cargo_bin("pwsh-runtime-marker")?
let wineserver = akode_utils_cargo_bin::cargo_bin("wineserver")?;
let powershell_runtime = akode_utils_cargo_bin::cargo_bin("pwsh-runtime-marker")?
.parent()
.context("locate PowerShell runtime directory")?
.to_path_buf();

View File

@@ -10,8 +10,8 @@ use std::time::Duration;
use anyhow::Context;
use anyhow::Result;
use anyhow::anyhow;
use codex_utils_pty::SpawnedProcess;
use codex_utils_pty::TerminalSize;
use akode_utils_pty::SpawnedProcess;
use akode_utils_pty::TerminalSize;
use futures::FutureExt;
use pretty_assertions::assert_eq;
use tempfile::TempDir;
@@ -26,7 +26,7 @@ use super::WineTestProcess;
use super::install_powershell_runtime;
async fn waiting_smoke_process() -> Result<WineTestProcess> {
let executable = codex_utils_cargo_bin::cargo_bin("wine-smoke")?;
let executable = akode_utils_cargo_bin::cargo_bin("wine-smoke")?;
let mut process = WineTestCommand::new(executable).arg("--wait").spawn()?;
let mut lines = BufReader::new(process.take_stdout()).lines();
let ready_line = lines
@@ -179,7 +179,7 @@ async fn scope_panic_preserves_panic_and_tears_down() -> Result<()> {
#[tokio::test]
async fn shutdown_reports_nonzero_process_exit() -> Result<()> {
let executable = codex_utils_cargo_bin::cargo_bin("wine-smoke")?;
let executable = akode_utils_cargo_bin::cargo_bin("wine-smoke")?;
let mut process = WineTestCommand::new(executable).arg("--fail").spawn()?;
let prefix = prefix_path(&process);
let status = process
@@ -360,14 +360,14 @@ async fn pinned_powershell_runs_under_wine_with_a_pty() -> Result<()> {
mut stdout_rx,
mut stderr_rx,
exit_rx,
} = codex_utils_pty::spawn_pty_process(
} = akode_utils_pty::spawn_pty_process(
&wine,
&args,
prefix.path(),
&env,
/*arg0*/ &None,
TerminalSize::default(),
codex_utils_pty::ChildFds::Inherited(&[]),
akode_utils_pty::ChildFds::Inherited(&[]),
)
.await?;
let command_result = timeout(Duration::from_secs(90), async {

View File

@@ -28,7 +28,7 @@ def wine_rust_test(
complete PowerShell runtime.
These are Bazel runfile locations. Resolve binaries with
`codex_utils_cargo_bin::cargo_bin`; `:wine_test_support` resolves the fixed
`akode_utils_cargo_bin::cargo_bin`; `:wine_test_support` resolves the fixed
runtime names and starts each process in an isolated prefix.
Args: