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:
@@ -6,10 +6,10 @@ use std::pin::Pin;
|
||||
use std::task::Context;
|
||||
use std::task::Poll;
|
||||
|
||||
use anyhow::Context as _;
|
||||
use anyhow::Result;
|
||||
use akode_code_mode_protocol::grpc::code_mode_host_server::CodeModeHostServer;
|
||||
use akode_code_mode_protocol::host::MAX_FRAME_BYTES;
|
||||
use anyhow::Context as _;
|
||||
use anyhow::Result;
|
||||
use futures::StreamExt;
|
||||
use tokio::io::AsyncRead;
|
||||
use tokio::io::AsyncWrite;
|
||||
|
||||
@@ -2,6 +2,8 @@ use std::io;
|
||||
use std::io::Write as _;
|
||||
use std::net::SocketAddr;
|
||||
|
||||
use akode_code_mode_protocol::grpc::code_mode_host_server::CodeModeHostServer;
|
||||
use akode_code_mode_protocol::host::MAX_FRAME_BYTES;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use axum::extract::Request;
|
||||
@@ -11,8 +13,6 @@ use axum::http::Version;
|
||||
use axum::middleware;
|
||||
use axum::middleware::Next;
|
||||
use axum::routing::get;
|
||||
use akode_code_mode_protocol::grpc::code_mode_host_server::CodeModeHostServer;
|
||||
use akode_code_mode_protocol::host::MAX_FRAME_BYTES;
|
||||
use tokio::net::TcpListener;
|
||||
use tonic::service::Routes;
|
||||
use tonic::transport::Server;
|
||||
|
||||
@@ -9,8 +9,6 @@ use std::sync::atomic::Ordering;
|
||||
use std::time::Duration;
|
||||
use std::time::Instant;
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use akode_code_mode_protocol::CodeModeOutputTruncation;
|
||||
use akode_code_mode_protocol::CodeModeSessionCellExecutionLimits;
|
||||
use akode_code_mode_protocol::CodeModeSessionOptions;
|
||||
@@ -39,6 +37,8 @@ use akode_code_mode_protocol::host::SupportedProtocolVersions;
|
||||
use akode_code_mode_protocol::host::WireWaitOutcome;
|
||||
use akode_code_mode_protocol::host::YIELD_OBSERVATION_CAPABILITY;
|
||||
use akode_code_mode_runtime::InProcessCodeModeSession;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use tokio::io::AsyncRead;
|
||||
use tokio::io::AsyncWrite;
|
||||
use tokio::sync::OwnedSemaphorePermit;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user