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

@@ -13,11 +13,11 @@ use std::path::PathBuf;
use std::time::Duration;
use crate::managed_install::ExecutableIdentity;
#[cfg(any(unix, windows))]
use akode_app_server_transport::REMOTE_CONTROL_DISABLED_ENV_VAR;
use anyhow::Context;
use anyhow::Result;
use anyhow::bail;
#[cfg(any(unix, windows))]
use akode_app_server_transport::REMOTE_CONTROL_DISABLED_ENV_VAR;
use serde::Deserialize;
use serde::Serialize;
use tokio::fs;

View File

@@ -1,9 +1,6 @@
use std::path::Path;
use std::time::Duration;
use anyhow::Context;
use anyhow::Result;
use anyhow::anyhow;
use akode_app_server_protocol::ClientInfo;
use akode_app_server_protocol::InitializeCapabilities;
use akode_app_server_protocol::InitializeParams;
@@ -13,6 +10,9 @@ use akode_app_server_protocol::JSONRPCNotification;
use akode_app_server_protocol::JSONRPCRequest;
use akode_app_server_protocol::RequestId;
use akode_uds::UnixStream;
use anyhow::Context;
use anyhow::Result;
use anyhow::anyhow;
use futures::SinkExt;
use futures::StreamExt;
use tokio::io::AsyncRead;

View File

@@ -32,15 +32,15 @@ use std::path::Path;
use std::path::PathBuf;
use std::time::Duration;
use akode_app_server_protocol::RemoteControlConnectionStatus;
use akode_app_server_protocol::RemoteControlPairingStartResponse;
use akode_app_server_transport::app_server_control_socket_path;
use akode_utils_home_dir::find_codex_home;
use anyhow::Context;
use anyhow::Result;
use anyhow::anyhow;
pub use backend::BackendKind;
use backend::BackendPaths;
use akode_app_server_protocol::RemoteControlConnectionStatus;
use akode_app_server_protocol::RemoteControlPairingStartResponse;
use akode_app_server_transport::app_server_control_socket_path;
use akode_utils_home_dir::find_codex_home;
use managed_install::managed_codex_bin;
#[cfg(any(unix, windows))]
use managed_install::managed_codex_version;

View File

@@ -1,8 +1,8 @@
//! Forwards manual requests to the updater and reports its install and restart result.
use akode_uds::UnixStream;
use anyhow::Context;
use anyhow::Result;
use akode_uds::UnixStream;
use tokio::io::AsyncReadExt;
use tokio::io::AsyncWriteExt;
use tokio::time::Duration;

View File

@@ -6,11 +6,11 @@ use std::collections::BTreeMap;
use std::path::Path;
use std::path::PathBuf;
use akode_install_context::CodexPackageManifest;
use akode_install_context::InstallContext;
use anyhow::Context;
use anyhow::Result;
use anyhow::anyhow;
use akode_install_context::CodexPackageManifest;
use akode_install_context::InstallContext;
use crate::Daemon;
use crate::install_lock::acquire_install_lock;
@@ -523,8 +523,8 @@ fn validate_package(root: &Path, entrypoint: &str) -> Result<()> {
];
if cfg!(windows) {
names.extend([
"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",
]);
} else if cfg!(target_os = "linux") {
names.push("akode-resources/bwrap");

View File

@@ -1,9 +1,6 @@
use std::path::Path;
use std::time::Duration;
use anyhow::Context;
use anyhow::Result;
use anyhow::anyhow;
use akode_app_server_protocol::JSONRPCMessage;
use akode_app_server_protocol::JSONRPCNotification;
use akode_app_server_protocol::JSONRPCRequest;
@@ -16,6 +13,9 @@ use akode_app_server_protocol::RemoteControlPairingStartParams;
use akode_app_server_protocol::RemoteControlPairingStartResponse;
use akode_app_server_protocol::RemoteControlStatusChangedNotification;
use akode_app_server_protocol::RequestId;
use anyhow::Context;
use anyhow::Result;
use anyhow::anyhow;
use serde::de::DeserializeOwned;
use tokio::io::AsyncRead;
use tokio::io::AsyncWrite;
@@ -375,11 +375,11 @@ impl From<RemoteControlStatusChangedNotification> for RemoteControlReadyStatus {
#[cfg(all(test, unix))]
mod tests {
use anyhow::Result;
use akode_app_server_protocol::JSONRPCError;
use akode_app_server_protocol::JSONRPCErrorError;
use akode_app_server_protocol::JSONRPCResponse;
use akode_uds::UnixListener;
use anyhow::Result;
use pretty_assertions::assert_eq;
use tempfile::TempDir;
use tokio_tungstenite::accept_async;

View File

@@ -10,11 +10,11 @@ use std::sync::Arc;
use std::sync::Mutex;
use std::time::Duration;
use anyhow::Context;
use anyhow::Result;
use akode_http_client::ClientRouteClass;
use akode_http_client::HttpClientFactory;
use akode_http_client::RouteAwareClientPool;
use anyhow::Context;
use anyhow::Result;
use futures::FutureExt;
#[cfg(unix)]
use std::os::unix::process::CommandExt;