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

@@ -52,12 +52,6 @@ fn shortens_filesystem_and_skill_resource_locators() {
"skill://executor/workspace/skills/alpha/SKILL.md",
"e0/alpha/SKILL.md",
),
(
SkillSourceKind::Cloud,
"skill://plugin",
"skill://plugin/alpha",
"c0/alpha",
),
] {
let plan = AliasPlan::build(&source, &[root, root]).expect("alias plan should build");
@@ -104,7 +98,7 @@ fn aliases_roots_used_by_only_one_skill() {
#[test]
fn locator_serde_recognizes_aliases_and_preserves_package_strings() {
for (value, expected_source) in [
("c0/release", Some(SkillSourceKind::Cloud)),
("c0/release", None),
("e12/references/details.md", Some(SkillSourceKind::Executor)),
("r1/release/SKILL.md", Some(SkillSourceKind::Host)),
("skill://Plugin_123/release", None),
@@ -152,18 +146,18 @@ fn appended_aliases_preserve_captured_steps_and_existing_locators() {
#[test]
fn alias_number_and_byte_budgets_are_shared_without_reassigning_existing_roots() {
let mut cloud = std::sync::Arc::new(AliasPlan::default());
let mut other = std::sync::Arc::new(AliasPlan::default());
let mut executor = std::sync::Arc::new(AliasPlan::default());
let mut budget = super::AliasBudget {
roots: super::MAX_ALIAS_ROOTS - 2,
..Default::default()
};
cloud.extend_alias_plan("c", ["skill://cloud"], &mut budget);
other.extend_alias_plan("r", ["skill://other"], &mut budget);
executor.extend_alias_plan("e", ["skill://first", "skill://second"], &mut budget);
assert_eq!(budget.roots, super::MAX_ALIAS_ROOTS);
assert_eq!(executor.root_lines(), vec!["- `e0` = `skill://first`"]);
assert_eq!(executor.shorten("skill://second/demo"), None);
assert_eq!(cloud.shorten("skill://cloud/demo"), Some("c0/demo".into()));
assert_eq!(other.shorten("skill://other/demo"), Some("r0/demo".into()));
let mut budget = super::AliasBudget::default();
let mut aliases = std::sync::Arc::new(AliasPlan::default());