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:
@@ -390,7 +390,6 @@ async fn parse_skill_file(
|
||||
path_to_skills_md: path_uri.clone(),
|
||||
scope,
|
||||
plugin_id: plugin_identity.map(|identity| identity.plugin_id.clone()),
|
||||
remote_plugin_id: plugin_identity.and_then(|identity| identity.remote_plugin_id.clone()),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,6 @@ async fn host_loading_reuses_walk_inventory_for_symlinked_skill_pack() {
|
||||
path_to_skills_md: PathUri::from_abs_path(&first_skill_path),
|
||||
scope: SkillScope::User,
|
||||
plugin_id: None,
|
||||
remote_plugin_id: None,
|
||||
},
|
||||
SkillMetadata {
|
||||
name: "linked:second".to_string(),
|
||||
@@ -107,7 +106,6 @@ async fn host_loading_reuses_walk_inventory_for_symlinked_skill_pack() {
|
||||
path_to_skills_md: PathUri::from_abs_path(&second_skill_path),
|
||||
scope: SkillScope::User,
|
||||
plugin_id: None,
|
||||
remote_plugin_id: None,
|
||||
},
|
||||
]
|
||||
);
|
||||
|
||||
@@ -93,7 +93,6 @@ impl PluginSkillsFixture {
|
||||
access: FileSystemEnvironmentAccessor::unrestricted(&LOCAL_FS),
|
||||
identity: PluginIdentity {
|
||||
plugin_id: "sample@test".to_string(),
|
||||
remote_plugin_id: Some("remote-sample".to_string()),
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -267,8 +266,8 @@ async fn reuses_owner_managed_plugin_root_snapshots() {
|
||||
assert_eq!(cached_outcome.skills[0].description, "native");
|
||||
assert_eq!(refreshed_outcome.skills[0].description, "updated");
|
||||
assert_eq!(
|
||||
cached_outcome.skills[0].remote_plugin_id.as_deref(),
|
||||
Some("remote-sample")
|
||||
cached_outcome.skills[0].plugin_id.as_deref(),
|
||||
Some("sample@test")
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,6 @@ impl PluginSkillFixture {
|
||||
path: self.plugin_root.join("skills"),
|
||||
plugin_identity: PluginIdentity {
|
||||
plugin_id: "fixture@test".to_string(),
|
||||
remote_plugin_id: None,
|
||||
},
|
||||
plugin_namespace: "plugin".to_string(),
|
||||
plugin_root: self.plugin_root.clone(),
|
||||
@@ -162,7 +161,6 @@ policy:
|
||||
path_to_skills_md: PathUri::from_abs_path(&skill_path),
|
||||
scope: SkillScope::User,
|
||||
plugin_id: None,
|
||||
remote_plugin_id: None,
|
||||
}]
|
||||
);
|
||||
}
|
||||
@@ -189,7 +187,6 @@ async fn invalid_optional_metadata_fails_open() {
|
||||
path_to_skills_md: PathUri::from_abs_path(&skill_path),
|
||||
scope: SkillScope::Repo,
|
||||
plugin_id: None,
|
||||
remote_plugin_id: None,
|
||||
}]
|
||||
);
|
||||
}
|
||||
@@ -236,7 +233,6 @@ async fn loads_host_interface_metadata_and_local_asset_paths() {
|
||||
path_to_skills_md: PathUri::from_abs_path(&skill_path),
|
||||
scope: SkillScope::User,
|
||||
plugin_id: None,
|
||||
remote_plugin_id: None,
|
||||
}]
|
||||
);
|
||||
}
|
||||
@@ -279,7 +275,6 @@ async fn loads_plugin_skill_interface_icons_from_local_and_shared_assets() {
|
||||
path_to_skills_md: PathUri::from_abs_path(&fixture.skill_path),
|
||||
scope: SkillScope::User,
|
||||
plugin_id: Some("fixture@test".to_string()),
|
||||
remote_plugin_id: None,
|
||||
}]
|
||||
);
|
||||
}
|
||||
@@ -317,7 +312,6 @@ async fn rejects_plugin_skill_interface_icons_outside_shared_assets() {
|
||||
path_to_skills_md: PathUri::from_abs_path(&fixture.skill_path),
|
||||
scope: SkillScope::User,
|
||||
plugin_id: Some("fixture@test".to_string()),
|
||||
remote_plugin_id: None,
|
||||
}]
|
||||
);
|
||||
}
|
||||
@@ -348,7 +342,6 @@ async fn rejects_interface_fields_that_escape_or_fail_validation() {
|
||||
path_to_skills_md: PathUri::from_abs_path(&skill_path),
|
||||
scope: SkillScope::User,
|
||||
plugin_id: None,
|
||||
remote_plugin_id: None,
|
||||
}]
|
||||
);
|
||||
}
|
||||
@@ -403,7 +396,6 @@ async fn discovers_nested_plugin_namespace_without_plugin_identity() {
|
||||
path_to_skills_md: PathUri::from_abs_path(&skill_path),
|
||||
scope: SkillScope::User,
|
||||
plugin_id: None,
|
||||
remote_plugin_id: None,
|
||||
}]
|
||||
);
|
||||
}
|
||||
@@ -426,7 +418,6 @@ async fn plugin_root_accepts_maximum_length_qualified_skill_name() {
|
||||
path: plugin_root.join("skills"),
|
||||
plugin_identity: PluginIdentity {
|
||||
plugin_id: "demo@test".to_string(),
|
||||
remote_plugin_id: None,
|
||||
},
|
||||
plugin_namespace: plugin_namespace.clone(),
|
||||
plugin_root,
|
||||
@@ -449,7 +440,6 @@ async fn plugin_root_accepts_maximum_length_qualified_skill_name() {
|
||||
path_to_skills_md: PathUri::from_abs_path(&skill_path),
|
||||
scope: SkillScope::User,
|
||||
plugin_id: Some("demo@test".to_string()),
|
||||
remote_plugin_id: None,
|
||||
}]
|
||||
);
|
||||
}
|
||||
@@ -471,7 +461,6 @@ async fn plugin_root_rejects_overlong_qualified_skill_name() {
|
||||
path: plugin_root.join("skills"),
|
||||
plugin_identity: PluginIdentity {
|
||||
plugin_id: "demo@test".to_string(),
|
||||
remote_plugin_id: None,
|
||||
},
|
||||
plugin_namespace: "p".repeat(MAX_NAME_LEN + 1),
|
||||
plugin_root,
|
||||
@@ -522,7 +511,6 @@ async fn recursive_plugin_root_preserves_owner_namespace_and_shared_asset_policy
|
||||
path: plugin_root.join("skills"),
|
||||
plugin_identity: PluginIdentity {
|
||||
plugin_id: "demo@test".to_string(),
|
||||
remote_plugin_id: Some("remote-demo".to_string()),
|
||||
},
|
||||
plugin_namespace: "plugin".to_string(),
|
||||
plugin_root,
|
||||
@@ -552,7 +540,6 @@ async fn recursive_plugin_root_preserves_owner_namespace_and_shared_asset_policy
|
||||
path_to_skills_md: PathUri::from_abs_path(&skill_path),
|
||||
scope: SkillScope::User,
|
||||
plugin_id: Some("demo@test".to_string()),
|
||||
remote_plugin_id: Some("remote-demo".to_string()),
|
||||
}]
|
||||
);
|
||||
assert_eq!(
|
||||
@@ -584,7 +571,6 @@ async fn direct_child_plugin_root_ignores_nested_skills() {
|
||||
path: plugin_root.join("skills"),
|
||||
plugin_identity: PluginIdentity {
|
||||
plugin_id: "demo@test".to_string(),
|
||||
remote_plugin_id: None,
|
||||
},
|
||||
plugin_namespace: "plugin".to_string(),
|
||||
plugin_root,
|
||||
@@ -607,7 +593,6 @@ async fn direct_child_plugin_root_ignores_nested_skills() {
|
||||
path_to_skills_md: PathUri::from_abs_path(&direct_path),
|
||||
scope: SkillScope::User,
|
||||
plugin_id: Some("demo@test".to_string()),
|
||||
remote_plugin_id: None,
|
||||
}]
|
||||
);
|
||||
}
|
||||
@@ -636,7 +621,6 @@ async fn direct_child_plugin_root_skips_skills_resolving_outside_plugin_root() {
|
||||
path: plugin_root.join("skills"),
|
||||
plugin_identity: PluginIdentity {
|
||||
plugin_id: "demo@test".to_string(),
|
||||
remote_plugin_id: None,
|
||||
},
|
||||
plugin_namespace: "plugin".to_string(),
|
||||
plugin_root,
|
||||
@@ -667,7 +651,6 @@ async fn recursive_plugin_root_preserves_symlinked_skill_discovery_path() {
|
||||
path: plugin_root.join("skills"),
|
||||
plugin_identity: PluginIdentity {
|
||||
plugin_id: "demo@test".to_string(),
|
||||
remote_plugin_id: None,
|
||||
},
|
||||
plugin_namespace: "plugin".to_string(),
|
||||
plugin_root,
|
||||
@@ -690,7 +673,6 @@ async fn recursive_plugin_root_preserves_symlinked_skill_discovery_path() {
|
||||
path_to_skills_md: PathUri::from_abs_path(&target_skill),
|
||||
scope: SkillScope::User,
|
||||
plugin_id: Some("demo@test".to_string()),
|
||||
remote_plugin_id: None,
|
||||
}]
|
||||
);
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user