WIP fase 2b-2: rimosso login ChatGPT/OAuth/device code, agent/workload identity, backend-client; resta solo chiave API (test non tutti verdi)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-10 06:00:44 +01:00
parent 82347a58ed
commit 231e8cd136
661 changed files with 4924 additions and 64817 deletions

View File

@@ -1,5 +1,5 @@
use codex_core::config::ConfigBuilder;
use codex_core::plugins_manager_for_config_with_runtime;
use codex_core::plugins_manager_for_config;
use codex_core_plugins::PluginInstallError;
use codex_core_plugins::PluginInstallRequest;
use codex_core_plugins::marketplace::MarketplaceError;
@@ -105,10 +105,7 @@ impl ExternalAgentConfigService {
.map_err(|err| io::Error::other(format!("failed to load config: {err}")))?;
let requirements = config.config_layer_stack.requirements().clone();
let mut outcome = PluginImportOutcome::default();
let plugins_manager =
plugins_manager_for_config_with_runtime(&config, Arc::clone(&self.auth_manager))
.await
.map_err(io::Error::other)?;
let plugins_manager = plugins_manager_for_config(&config, Arc::clone(&self.auth_manager));
let configured_marketplace_paths = plugins_manager
.list_marketplaces_for_config(
&config.plugins_config_input(),

View File

@@ -48,7 +48,7 @@ async fn authenticated_plugin_migration_uses_chatgpt_curated_marketplace() {
let mut service = service_for_paths(external_agent_home.clone(), codex_home);
service.auth_manager =
AuthManager::from_auth_for_testing(CodexAuth::create_dummy_chatgpt_auth_for_testing());
AuthManager::from_auth_for_testing(CodexAuth::from_api_key("Test API Key"));
let items = service
.detect(ExternalAgentConfigDetectOptions {
include_home: true,