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:
@@ -1,8 +1,6 @@
|
||||
//! Reads application requirements independently of user, project, and cloud configuration.
|
||||
//! Captured local layers retain their positions around cloud layers during composition.
|
||||
//! Reads application requirements independently of user and project configuration.
|
||||
|
||||
use crate::ApplicationRequirementsToml;
|
||||
use crate::CloudRequirementsTomlBundle;
|
||||
use crate::LoaderOverrides;
|
||||
use crate::RequirementsLayerEntry;
|
||||
use crate::compose_requirements;
|
||||
@@ -10,7 +8,7 @@ use codex_file_system::ExecutorFileSystem;
|
||||
use std::io;
|
||||
use toml::Value;
|
||||
|
||||
/// Local application sources captured without waiting for a cloud request.
|
||||
/// Local application requirement sources.
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct LocalApplicationRequirements {
|
||||
system: Option<RequirementsLayerEntry>,
|
||||
@@ -19,18 +17,12 @@ pub struct LocalApplicationRequirements {
|
||||
}
|
||||
|
||||
impl LocalApplicationRequirements {
|
||||
/// Composes system, cloud, and MDM application policy in the normal requirements order.
|
||||
pub fn compose(
|
||||
&self,
|
||||
cloud: CloudRequirementsTomlBundle,
|
||||
) -> io::Result<Option<ApplicationRequirementsToml>> {
|
||||
/// Composes system and MDM application policy in the normal requirements order.
|
||||
pub fn compose(&self) -> io::Result<Option<ApplicationRequirementsToml>> {
|
||||
if self.ignore_managed {
|
||||
return Ok(None);
|
||||
}
|
||||
let mut layers = self.system.clone().into_iter().collect::<Vec<_>>();
|
||||
for layer in cloud.into_layers() {
|
||||
layers.extend(application_layer(layer)?);
|
||||
}
|
||||
layers.extend(self.mdm.clone());
|
||||
Ok(compose_requirements(layers)?
|
||||
.and_then(|requirements| requirements.into_toml().application))
|
||||
@@ -79,8 +71,8 @@ pub async fn load_local_application_requirements(
|
||||
mdm,
|
||||
ignore_managed: false,
|
||||
};
|
||||
// Validate local requirements before cloud loading.
|
||||
local.compose(CloudRequirementsTomlBundle::default())?;
|
||||
// Validate local requirements eagerly.
|
||||
local.compose()?;
|
||||
Ok(local)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user