Rimossi i provider integrati OpenAI, Bedrock e GCP e ogni fallback a OpenAI (B)

Parte "sicurezza" della fase 3 di aKode (e39aae00), senza le funzioni di imeAI:

- via i provider integrati openai, amazon-bedrock, amazon-bedrock-runtime e gcp
  (crate model-provider: moduli amazon_bedrock, gcp, chatgpt_base_url; login Bedrock;
  onboarding Bedrock/GCP; richieste app-server di setup cloud);
- nessun URL predefinito verso api.openai.com / chatgpt.com: un provider senza
  base_url non viene mai contattato; senza model_provider configurato exec e TUI
  mostrano come scriverne uno in config.toml (NO_MODEL_PROVIDER_CONFIGURED_ERROR);
- via la skill openai-docs, la sample skill-installer (scaricava da github.com/openai/skills),
  request_plugin_install, AppsInstructions, URL predefiniti di realtime e updater;
- test di sicurezza adattati (provider "mock" al posto di quello integrato), non cancellati.

Restano fuori da questo commit (categoria F/D/E, non portate): chiave per provider nel
portachiavi, modelli da /models, unione dei messaggi di sistema, crate web-tools e
SearXNG, header @@ in apply_patch, modello ausiliario, tool function per apply_patch.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-17 12:31:29 +01:00
parent 22a79feba1
commit 2f8b6a3e16
481 changed files with 4319 additions and 25142 deletions

View File

@@ -15,7 +15,6 @@ use codex_extension_api::ExtensionRegistry;
use codex_extension_api::ExtensionRegistryBuilder;
use codex_features::Feature;
use codex_login::CodexAuth;
use core_test_support::mcp_test_server::MCP_TEST_SERVER_NAME;
use codex_plugin::PluginId;
use codex_protocol::config_types::CollaborationMode;
use codex_protocol::config_types::ModeKind;
@@ -30,6 +29,7 @@ use codex_protocol::user_input::UserInput;
use codex_skills_extension::SkillsExtensionConfig;
use codex_skills_extension::install;
use core_test_support::mcp_test_server::CALENDAR_CREATE_EVENT_TOOL_NAME;
use core_test_support::mcp_test_server::MCP_TEST_SERVER_NAME;
use core_test_support::mcp_test_server::recorded_mcp_tool_calls;
use core_test_support::responses::ResponseMock;
use core_test_support::responses::ResponsesRequest;
@@ -400,13 +400,11 @@ async fn thread_disabled_plugins_filter_skills_and_tools_without_changing_shared
let manager = test.thread_manager.plugins_manager();
let plugins_input = test.config.plugins_config_input();
let shared_plugins = manager.plugins_for_config(&plugins_input).await;
let tool_calls = [
(
"sample",
"echo",
Some(serde_json::json!({"message": "plugin check"})),
),
];
let tool_calls = [(
"sample",
"echo",
Some(serde_json::json!({"message": "plugin check"})),
)];
for (phase, enabled, injection_count) in [(0, true, 1), (1, false, 1), (2, true, 2)] {
if !enabled {
@@ -475,9 +473,7 @@ async fn thread_disabled_plugins_filter_skills_and_tools_without_changing_shared
injection_count
);
}
for (call_id, namespace, tool) in [
(&mcp_call_id, SAMPLE_PLUGIN_MCP_NAMESPACE, "echo"),
] {
for (call_id, namespace, tool) in [(&mcp_call_id, SAMPLE_PLUGIN_MCP_NAMESPACE, "echo")] {
assert_eq!(
namespace_child_tool(&requests[1].tool_search_output(call_id), namespace, tool)
.is_some(),