WIP fase 2b-3: rimozione sottosistemi solo-ChatGPT (plugin remoti, image gen, daybreak, cyber, attestation, cloud config, app/connettori) - test in corso

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-10 16:07:22 +01:00
parent 231e8cd136
commit 5afc7e9f7f
1223 changed files with 6225 additions and 113722 deletions

View File

@@ -183,7 +183,7 @@ pub struct SelectedPluginIdentity {
}
/// An executor plugin and its deferred MCP data. Callers that only need the identity can drop
/// `mcp` without loading server or connector configuration. A plugin still owns its skills when
/// `mcp` without loading server configuration. A plugin still owns its skills when
/// it has no MCP data.
pub struct SelectedPlugin<'a> {
pub selected_root_id: String,
@@ -199,7 +199,6 @@ pub struct SelectedPluginContribution {
pub plugin_display_name: String,
/// Environment that supplied the plugin, independent of where its MCP servers run.
pub source_environment_id: String,
pub connector_ids: Vec<String>,
pub servers: Vec<(String, McpServerConfig)>,
}
@@ -213,25 +212,12 @@ pub enum McpServerContribution {
},
/// Adds an ordinary extension-owned server with its own HTTP protocol mode.
/// The mode applies only if this registration wins server resolution; it
/// does not grant controller-owned Apps cache or environment authority.
/// does not grant environment authority.
SetWithProtocolMode {
name: String,
config: Box<McpServerConfig>,
protocol_mode: crate::McpProtocolMode,
},
/// Registers the controller-owned Apps server under its reserved name.
HostedApps {
config: Box<McpServerConfig>,
/// Overrides the HTTP protocol mode, or uses the hosted Apps default when absent.
protocol_mode: Option<crate::McpProtocolMode>,
},
/// Attributes Apps connectors to an account-hosted plugin. Plugins from executor folders must
/// use `McpServerContributor::selected_plugins`, even if they only provide Apps connectors.
HostedPluginConnectors {
plugin_id: String,
plugin_display_name: String,
connector_ids: Vec<String>,
},
/// Removes a named MCP server.
Remove { name: String },
}

View File

@@ -43,8 +43,6 @@ pub enum ToolCallOutcome {
/// Provenance captured from the immutable MCP call selected for one tool invocation.
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum McpToolSource {
/// A connector routed through the host-owned Codex Apps MCP server.
Connector,
/// An MCP server whose frozen registration matches the active Codex configuration.
Config,
/// An MCP server registered by a locally loaded plugin.
@@ -78,9 +76,7 @@ impl McpToolContext {
) -> Self {
let tool = call.tool_info().clone();
let registration = call.config().mcp_server_catalog.server(call.server_name());
let source = if tool.connector_id.is_some() && call.is_host_owned_apps() {
McpToolSource::Connector
} else if call.is_selected_plugin_server() {
let source = if call.is_selected_plugin_server() {
McpToolSource::SelectedPlugin
} else if let Some(McpServerSource::Plugin(plugin)) =
registration.map(ResolvedMcpServer::source)