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:
@@ -16,7 +16,6 @@ use codex_protocol::models::ImageReference as CoreImageReference;
|
||||
use codex_protocol::openai_models::ReasoningEffort;
|
||||
use codex_protocol::plan_tool::PlanItemArg as CorePlanItemArg;
|
||||
use codex_protocol::plan_tool::StepStatus as CorePlanStepStatus;
|
||||
use codex_protocol::turn_input::CyberAccessProgram as CoreCyberAccessProgram;
|
||||
use codex_protocol::user_input::ByteRange as CoreByteRange;
|
||||
use codex_protocol::user_input::TextElement as CoreTextElement;
|
||||
use codex_protocol::user_input::UserInput as CoreUserInput;
|
||||
@@ -122,38 +121,6 @@ pub struct AdditionalContextEntry {
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
/// Requested cyber treatment for an OpenAI model turn.
|
||||
/// Authorization and model-tier restrictions remain server-owned.
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub enum CyberAccessProgram {
|
||||
Standard,
|
||||
DaybreakBlue,
|
||||
DaybreakRed,
|
||||
}
|
||||
|
||||
impl From<CyberAccessProgram> for CoreCyberAccessProgram {
|
||||
fn from(value: CyberAccessProgram) -> Self {
|
||||
match value {
|
||||
CyberAccessProgram::Standard => Self::Standard,
|
||||
CyberAccessProgram::DaybreakBlue => Self::DaybreakBlue,
|
||||
CyberAccessProgram::DaybreakRed => Self::DaybreakRed,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<CoreCyberAccessProgram> for CyberAccessProgram {
|
||||
fn from(value: CoreCyberAccessProgram) -> Self {
|
||||
match value {
|
||||
CoreCyberAccessProgram::Standard => Self::Standard,
|
||||
CoreCyberAccessProgram::DaybreakBlue => Self::DaybreakBlue,
|
||||
CoreCyberAccessProgram::DaybreakRed => Self::DaybreakRed,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
@@ -298,12 +265,6 @@ pub struct TurnStartParams {
|
||||
#[experimental("turn/start.multiAgentMode")]
|
||||
#[ts(optional = nullable)]
|
||||
pub multi_agent_mode: Option<MultiAgentMode>,
|
||||
|
||||
/// EXPERIMENTAL - Request an authorized cyber program for this
|
||||
/// turn. Omission preserves automatic behavior. This does not grant access.
|
||||
#[experimental("turn/start.cyberAccessProgram")]
|
||||
#[ts(optional = nullable)]
|
||||
pub cyber_access_program: Option<CyberAccessProgram>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
|
||||
Reference in New Issue
Block a user