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:
@@ -2,7 +2,6 @@ use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use anyhow::Context as _;
|
||||
use akode_config::types::AuthKeyringBackendKind;
|
||||
use akode_config::types::OAuthCredentialsStoreMode;
|
||||
use akode_exec_server::Environment;
|
||||
@@ -14,6 +13,7 @@ use akode_rmcp_client::StreamableHttpOAuthDiscovery;
|
||||
use akode_rmcp_client::StreamableHttpRedirectMode;
|
||||
use akode_rmcp_client::discover_streamable_http_oauth;
|
||||
use akode_rmcp_client::perform_oauth_login_return_url;
|
||||
use anyhow::Context as _;
|
||||
use pretty_assertions::assert_eq;
|
||||
use rmcp::transport::auth::AuthError;
|
||||
use serde_json::json;
|
||||
|
||||
@@ -6,6 +6,13 @@ use std::sync::atomic::AtomicBool;
|
||||
use std::sync::atomic::Ordering;
|
||||
use std::time::Duration;
|
||||
|
||||
use akode_api::AuthError;
|
||||
use akode_api::AuthProvider;
|
||||
use akode_api::SharedAuthProvider;
|
||||
use akode_config::types::AuthKeyringBackendKind;
|
||||
use akode_config::types::OAuthCredentialsStoreMode;
|
||||
use akode_exec_server::Environment;
|
||||
use akode_rmcp_client::RmcpClient;
|
||||
use anyhow::Context as _;
|
||||
use axum::Json;
|
||||
use axum::Router;
|
||||
@@ -14,13 +21,6 @@ use axum::response::IntoResponse;
|
||||
use axum::response::sse::Event;
|
||||
use axum::response::sse::Sse;
|
||||
use axum::routing::post;
|
||||
use akode_api::AuthError;
|
||||
use akode_api::AuthProvider;
|
||||
use akode_api::SharedAuthProvider;
|
||||
use akode_config::types::AuthKeyringBackendKind;
|
||||
use akode_config::types::OAuthCredentialsStoreMode;
|
||||
use akode_exec_server::Environment;
|
||||
use akode_rmcp_client::RmcpClient;
|
||||
use futures::StreamExt as _;
|
||||
use futures::stream;
|
||||
use http::HeaderMap;
|
||||
|
||||
@@ -7,12 +7,12 @@ use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use akode_rmcp_client::ElicitationAction;
|
||||
use akode_rmcp_client::ElicitationResponse;
|
||||
use akode_rmcp_client::LocalStdioServerLauncher;
|
||||
use akode_rmcp_client::RmcpClient;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use futures::FutureExt as _;
|
||||
use rmcp::model::ClientCapabilities;
|
||||
use rmcp::model::Implementation;
|
||||
|
||||
@@ -13,11 +13,11 @@ use std::process::Command;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use anyhow::Result;
|
||||
use akode_rmcp_client::ElicitationAction;
|
||||
use akode_rmcp_client::ElicitationResponse;
|
||||
use akode_rmcp_client::LocalStdioServerLauncher;
|
||||
use akode_rmcp_client::RmcpClient;
|
||||
use anyhow::Result;
|
||||
use futures::FutureExt as _;
|
||||
use pretty_assertions::assert_eq;
|
||||
use rmcp::model::ClientCapabilities;
|
||||
|
||||
@@ -10,11 +10,11 @@ use std::sync::Arc;
|
||||
use std::sync::Mutex;
|
||||
use std::time::Duration;
|
||||
|
||||
use anyhow::Result;
|
||||
use akode_rmcp_client::ElicitationAction;
|
||||
use akode_rmcp_client::ElicitationResponse;
|
||||
use akode_rmcp_client::LocalStdioServerLauncher;
|
||||
use akode_rmcp_client::RmcpClient;
|
||||
use anyhow::Result;
|
||||
use futures::FutureExt as _;
|
||||
use pretty_assertions::assert_eq;
|
||||
use rmcp::model::ClientCapabilities;
|
||||
|
||||
@@ -8,7 +8,6 @@ use std::time::Duration;
|
||||
use std::time::SystemTime;
|
||||
use std::time::UNIX_EPOCH;
|
||||
|
||||
use base64::Engine;
|
||||
use akode_config::McpServerOAuthConfig;
|
||||
use akode_config::types::AuthKeyringBackendKind;
|
||||
use akode_config::types::OAuthCredentialsStoreMode;
|
||||
@@ -27,6 +26,7 @@ use akode_rmcp_client::is_authentication_required_error;
|
||||
use akode_rmcp_client::save_oauth_tokens;
|
||||
use akode_rmcp_client::with_http_headers_helper;
|
||||
use akode_utils_cargo_bin::cargo_bin;
|
||||
use base64::Engine;
|
||||
use oauth2::AccessToken;
|
||||
use oauth2::RefreshToken;
|
||||
use oauth2::basic::BasicTokenType;
|
||||
|
||||
@@ -9,13 +9,13 @@ mod streamable_http_test_support;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use anyhow::Context;
|
||||
use akode_config::types::AuthKeyringBackendKind;
|
||||
use akode_config::types::OAuthCredentialsStoreMode;
|
||||
use akode_rmcp_client::ElicitationAction;
|
||||
use akode_rmcp_client::ElicitationResponse;
|
||||
use akode_rmcp_client::McpProtocolMode;
|
||||
use akode_rmcp_client::RmcpClient;
|
||||
use anyhow::Context;
|
||||
use futures::FutureExt as _;
|
||||
use pretty_assertions::assert_eq;
|
||||
use rmcp::model::ClientCapabilities;
|
||||
|
||||
@@ -18,7 +18,6 @@ use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
use std::time::Instant;
|
||||
|
||||
use anyhow::Context as _;
|
||||
use akode_config::types::AuthKeyringBackendKind;
|
||||
use akode_config::types::OAuthCredentialsStoreMode;
|
||||
use akode_exec_server::Environment;
|
||||
@@ -31,6 +30,7 @@ use akode_rmcp_client::ElicitationAction;
|
||||
use akode_rmcp_client::ElicitationResponse;
|
||||
use akode_rmcp_client::RmcpClient;
|
||||
use akode_utils_cargo_bin::CargoBinError;
|
||||
use anyhow::Context as _;
|
||||
use futures::FutureExt as _;
|
||||
use pretty_assertions::assert_eq;
|
||||
use rmcp::model::CallToolResult;
|
||||
|
||||
Reference in New Issue
Block a user