aKode fase 2b-2: rimosso login ChatGPT e tutti i sottosistemi solo-ChatGPT

- Login: resta solo chiave API (+ header, Bedrock). Rimossi OAuth/browser,
  device code, refresh/revoke su auth.openai.com, PAT, agent/workload identity,
  runtime agent instance, backend-client e openapi-models, workspace routing.
- Rimossi: generazione immagini (ext + skill imagegen), history notes, plugin
  remoti (catalogo, sync, share), cyber access program, daybreak, cloud config
  e requirements (config_server ora fail-closed), attestation, frozen cloud
  skills, EMA MCP auth, Codex Apps/connettori, ricerca ospitata, header/zstd/
  routing/cookie del backend Codex, fallback OPENAI_API_KEY del realtime.
- Messaggi d'errore senza link a chatgpt.com.
- Chiavi di config legacy accettate e ignorate; feature rimosse = Stage::Removed.
- Test: cancellati solo quelli del codice rimosso; test di sicurezza
  (sandbox estensioni, permessi, redazione, auth storage, requirements)
  adattati. Restano solo fallimenti d'ambiente (code-mode-host/V8, ~/.agents).
- Istruzioni di sistema invariate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-10 16:20:15 +01:00
parent 82347a58ed
commit 6089fbde91
1573 changed files with 10289 additions and 177679 deletions

View File

@@ -15,11 +15,6 @@ enum BundledHookTarget {
server: &'static str,
tool: &'static str,
},
App {
server: &'static str,
connector_id: &'static str,
tool: &'static str,
},
}
// Keep unsigned plugin exceptions together so they can be removed as signing lands.
@@ -96,38 +91,16 @@ const ALLOWLISTED_BUNDLED_HOOKS: &[BundledHook] = &[
tool: "turn_ended",
},
},
BundledHook {
plugin_id: "browser@openai-curated-remote",
events: &[
HookEventName::Stop,
HookEventName::Interrupt,
HookEventName::SubagentStop,
],
target: BundledHookTarget::App {
server: "codex_apps",
connector_id: "connector_openai_browser",
tool: "browser.turn_ended",
},
},
];
/// Matches a temporary unsigned cleanup exception. App targets additionally require the
/// connector identity for this handler's server and tool from the caller's enabled tool
/// catalog; callers without that catalog must pass `None`.
/// Matches a temporary unsigned cleanup exception.
pub fn is_allowlisted_bundled_cleanup_hook(
plugin_id: &str,
event: HookEventName,
matcher: Option<&str>,
handler: &HookHandlerConfig,
app_connector_id: Option<&str>,
) -> bool {
let HookHandlerConfig::McpTool {
server,
tool,
input,
..
} = handler
else {
let HookHandlerConfig::McpTool { server, tool, .. } = handler else {
return false;
};
@@ -140,17 +113,6 @@ pub fn is_allowlisted_bundled_cleanup_hook(
server: expected_server,
tool: expected_tool,
} => server == expected_server && tool == expected_tool,
BundledHookTarget::App {
server: expected_server,
connector_id,
tool: expected_tool,
} => {
// Raw Apps tool names can collide; require the registered connector.
server == expected_server
&& tool == expected_tool
&& input.is_empty()
&& app_connector_id == Some(connector_id)
}
}
})
}