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

@@ -1,6 +1,6 @@
use anyhow::Context;
use akode_config::skill_config_rules_from_stack;
use akode_plugin::PluginId;
use anyhow::Context;
use std::collections::HashSet;
use tracing::warn;

View File

@@ -131,8 +131,7 @@ fn discovers_allowlisted_executor_plugin_hook_sources() {
manifest,
);
let sources =
executor_plugin_hook_sources(&snapshot, &PluginsConfigToml::default());
let sources = executor_plugin_hook_sources(&snapshot, &PluginsConfigToml::default());
let mut interrupt_source = expected_source(/*index*/ 1);
interrupt_source.hooks.interrupt = std::mem::take(&mut interrupt_source.hooks.stop);
let mut stop_and_interrupt_source = expected_source(/*index*/ 2);
@@ -157,10 +156,7 @@ fn discovers_allowlisted_executor_plugin_hook_sources() {
),
] {
let config = toml::from_str(config).expect("plugin policy");
assert_eq!(
executor_plugin_hook_sources(&snapshot, &config),
expected
);
assert_eq!(executor_plugin_hook_sources(&snapshot, &config), expected);
}
}

View File

@@ -46,13 +46,13 @@ pub fn is_openai_curated_marketplace_name(marketplace_name: &str) -> bool {
pub type LoadedPlugin = akode_plugin::LoadedPlugin<akode_config::McpServerConfig>;
pub type PluginLoadOutcome = akode_plugin::PluginLoadOutcome<akode_config::McpServerConfig>;
pub use akode_core_plugin_common::PluginIdentity;
pub use artifact_operation::ArtifactOperation;
pub use artifact_operation::recognize_artifact_operation;
pub use catalog::PluginCatalog;
pub use catalog::PluginCatalogEntry;
pub use catalog::PluginSourceLocation;
pub use catalog::merge_catalogs;
pub use akode_core_plugin_common::PluginIdentity;
pub use command_migration::CommandDescriptionMode;
pub use command_migration::CommandMigrationProfile;
pub use command_migration::RewriteProfile as CommandRewriteProfile;

View File

@@ -1117,7 +1117,6 @@ pub(crate) async fn plugin_capability_summary_from_root(
mcp_server_names.sort_unstable();
mcp_server_names.dedup();
Some(PluginCapabilitySummary {
config_name: plugin_id.as_key(),
display_name: plugin_id.plugin_name.clone(),

View File

@@ -211,10 +211,7 @@ async fn agent_plugin_codex_mcp_overlay_only_forwards_matching_stdio_server_env_
}"#,
);
assert_eq!(
load_plugin_mcp_servers(&plugin_root).await,
expected
);
assert_eq!(load_plugin_mcp_servers(&plugin_root).await, expected);
}
#[tokio::test]
@@ -258,10 +255,7 @@ async fn agent_plugin_codex_mcp_overlay_supports_inline_legacy_servers_without_p
}"#,
);
assert_eq!(
load_plugin_mcp_servers(&plugin_root).await,
expected
);
assert_eq!(load_plugin_mcp_servers(&plugin_root).await, expected);
}
#[cfg(unix)]

View File

@@ -212,10 +212,10 @@ where
#[cfg(test)]
mod tests {
use super::*;
use anyhow::Result;
use akode_config::RequirementSource;
use akode_config::RequirementsLayerEntry;
use akode_config::compose_requirements;
use anyhow::Result;
use pretty_assertions::assert_eq;
use std::cell::Cell;
use tempfile::TempDir;

View File

@@ -5,7 +5,6 @@ use std::fs;
use crate::PluginsConfigInput;
use crate::PluginsManager;
use crate::test_support::test_skill_root_loader;
use anyhow::Result;
use akode_config::LoaderOverrides;
use akode_config::NoopThreadConfigLoader;
use akode_config::loader::load_config_layers_state;
@@ -19,6 +18,7 @@ use akode_skills::SkillMetadata;
use akode_skills::SkillRootLoadRequest;
use akode_utils_absolute_path::AbsolutePathBuf;
use akode_utils_path_uri::PathUri;
use anyhow::Result;
use pretty_assertions::assert_eq;
use tempfile::TempDir;