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

@@ -2,8 +2,6 @@ use std::sync::Arc;
use std::sync::PoisonError;
use std::time::Duration;
use anyhow::Context;
use anyhow::Result;
use akode_code_mode::CellId;
use akode_code_mode::CodeModeNestedToolCall;
use akode_code_mode::CodeModeSession;
@@ -28,6 +26,8 @@ use akode_code_mode_protocol::grpc::code_mode_host_client::CodeModeHostClient;
#[cfg(unix)]
use akode_code_mode_protocol::grpc::code_mode_host_server::CodeModeHostServer;
use akode_protocol::ToolName;
use anyhow::Context;
use anyhow::Result;
use futures::FutureExt;
use pretty_assertions::assert_eq;
use serde_json::json;

View File

@@ -6,7 +6,6 @@ use std::sync::atomic::AtomicBool;
use std::sync::atomic::AtomicUsize;
use std::sync::atomic::Ordering;
use anyhow::Result;
use akode_code_mode::CodeModeOutputTruncation;
use akode_code_mode::CodeModeSessionOptions;
use akode_code_mode::CodeModeSessionProvider;
@@ -16,6 +15,7 @@ use akode_code_mode::NoopCodeModeSessionDelegate;
use akode_code_mode::RuntimeResponse;
use akode_code_mode_host::GrpcCodeModeHost;
use akode_code_mode_protocol::grpc::code_mode_host_server::CodeModeHostServer;
use anyhow::Result;
use futures::StreamExt;
use pretty_assertions::assert_eq;
use tokio::net::TcpListener;

View File

@@ -2,8 +2,6 @@ use std::sync::Arc;
use std::sync::PoisonError;
use std::time::Duration;
use anyhow::Context;
use anyhow::Result;
use akode_code_mode::CellId;
use akode_code_mode::CodeModeNestedToolCall;
use akode_code_mode::CodeModeSession;
@@ -17,6 +15,8 @@ use akode_code_mode::RuntimeResponse;
use akode_code_mode::ToolInvocationFuture;
use akode_code_mode::WaitOutcome;
use akode_code_mode::WaitRequest;
use anyhow::Context;
use anyhow::Result;
use pretty_assertions::assert_eq;
use tokio::sync::Semaphore;
use tokio::time::timeout;

View File

@@ -2,13 +2,13 @@ use std::future::poll_fn;
use std::process::Stdio;
use std::time::Duration;
use akode_code_mode_protocol::grpc;
use akode_code_mode_protocol::grpc::code_mode_host_client::CodeModeHostClient;
use anyhow::Context;
use anyhow::Result;
use axum::http::Request;
use axum::http::StatusCode;
use axum::http::Version;
use akode_code_mode_protocol::grpc;
use akode_code_mode_protocol::grpc::code_mode_host_client::CodeModeHostClient;
use pretty_assertions::assert_eq;
use tokio::io::AsyncBufReadExt;
use tokio::io::AsyncReadExt;

View File

@@ -4,8 +4,6 @@ use std::sync::Arc;
use std::time::Duration;
use std::time::Instant;
use anyhow::Context;
use anyhow::Result;
use akode_code_mode::CodeModeSessionProvider;
use akode_code_mode::ExecuteRequest;
use akode_code_mode::GrpcCodeModeSessionProvider;
@@ -16,6 +14,8 @@ use akode_code_mode::WaitOutcome;
use akode_code_mode::WaitRequest;
use akode_code_mode_protocol::grpc;
use akode_code_mode_protocol::grpc::code_mode_host_client::CodeModeHostClient;
use anyhow::Context;
use anyhow::Result;
use pretty_assertions::assert_eq;
use tokio::time::sleep;
use tokio::time::timeout;

View File

@@ -1,10 +1,10 @@
//! Exercises the child protocol without the parent supervisor or session APIs.
use anyhow::Context;
use akode_plugin_host::PluginProcess;
use akode_plugin_host::protocol::MAX_PENDING_PROMISES;
use akode_plugin_host::protocol::MAX_SCRIPT_ERROR_BYTES;
use akode_plugin_host::protocol::Packet;
use anyhow::Context;
use futures::SinkExt;
use futures::StreamExt;
use pretty_assertions::assert_eq;