aKode fase 5: test e snapshot adeguati alla rinomina, 429 distinto (ProviderRateLimited), cargo fmt dopo il cambio dei prefissi

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-11 12:47:01 +01:00
parent 8b73331037
commit ad43f9281a
919 changed files with 2358 additions and 2430 deletions

View File

@@ -3,10 +3,10 @@
#[cfg(all(windows, target_env = "msvc"))]
use std::env;
use akode_utils_cargo_bin::cargo_bin;
#[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> {

View File

@@ -9,13 +9,13 @@ use std::sync::Arc;
use std::time::Duration;
use std::time::Instant;
use anyhow::Context;
use anyhow::Result;
use akode_install_context::CodexPackageLayout;
use akode_install_context::InstallContext;
use akode_realtime_webrtc::SessionDescription;
use akode_realtime_webrtc::VoiceHost;
use akode_utils_cargo_bin::cargo_bin;
use anyhow::Context;
use anyhow::Result;
use common::voice_host_command;
use futures::future::BoxFuture;
use pretty_assertions::assert_eq;
@@ -94,7 +94,7 @@ fn install_helper(root: &Path) -> Result<CodexPackageLayout> {
fs::create_dir_all(&bin)?;
fs::create_dir_all(&helper_dir)?;
fs::write(root.join("akode-package.json"), "{}")?;
let app = bin.join(if cfg!(windows) { "akode.exe" } else { "codex" });
let app = bin.join(if cfg!(windows) { "akode.exe" } else { "akode" });
fs::write(&app, [])?;
let source = cargo_bin("akode-voice-host")?;
let helper = helper_dir.join(source.file_name().context("helper binary file name")?);

View File

@@ -5,11 +5,11 @@ mod common;
use std::process::Stdio;
use std::time::Duration;
use anyhow::Context;
use anyhow::Result;
use akode_realtime_webrtc::Message;
use akode_realtime_webrtc::decode_frame;
use akode_realtime_webrtc::encode_frame;
use anyhow::Context;
use anyhow::Result;
use common::voice_host_command;
use pretty_assertions::assert_eq;
use tokio::io::AsyncReadExt;

View File

@@ -5,12 +5,12 @@ mod common;
use std::fs;
use std::time::Duration;
use anyhow::Context;
use anyhow::Result;
use anyhow::ensure;
use akode_install_context::InstallContext;
use akode_realtime_webrtc::VoiceHost;
use akode_utils_cargo_bin::cargo_bin;
use anyhow::Context;
use anyhow::Result;
use anyhow::ensure;
use common::voice_host_command;
use tokio::time::timeout;
@@ -52,7 +52,7 @@ async fn relocated_runtime_initializes_closes_and_rejects_duplicate_initializati
fs::create_dir_all(runtime.join("bin"))?;
akode_utils_cargo_bin::copy_executable(&helper_source, &runtime.join("bin").join(name))?;
fs::create_dir(root.join("bin"))?;
let app_name = if cfg!(windows) { "akode.exe" } else { "codex" };
let app_name = if cfg!(windows) { "akode.exe" } else { "akode" };
fs::write(root.join("bin").join(app_name), [])?;
fs::write(root.join("akode-package.json"), "{}")?;
let moved = directory.path().join("relocated package");