mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
## What changed - Add typed `browser_use` settings for history access and per-origin access, download, upload, and full CDP policies. - Add typed `computer_use` settings for default app access, macOS bundle IDs, Windows AUMIDs, and Windows executable identities. - Expose the merged settings through app-server config reads and generated Rust, TypeScript, and JSON schemas. ## Testing - Cover TOML serialization round trips, layered config reads with origin metadata, and app-server batch writes. GitOrigin-RevId: 78065f6fec990602071fc81ff639ff97f7ad8cd5
26 lines
890 B
Rust
26 lines
890 B
Rust
use super::AllowDenyRequirement;
|
|
use crate::JsonSchema;
|
|
use crate::TS;
|
|
use serde::Deserialize;
|
|
use serde::Serialize;
|
|
use std::collections::BTreeMap;
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
|
|
#[serde(rename_all = "snake_case")]
|
|
#[ts(export_to = "v2/")]
|
|
pub struct BrowserUseConfig {
|
|
pub allow_history_access: Option<bool>,
|
|
pub default_origin_policy: Option<BrowserUseOriginPolicyConfig>,
|
|
pub origins: Option<BTreeMap<String, BrowserUseOriginPolicyConfig>>,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
|
|
#[serde(rename_all = "snake_case")]
|
|
#[ts(export_to = "v2/")]
|
|
pub struct BrowserUseOriginPolicyConfig {
|
|
pub access: Option<AllowDenyRequirement>,
|
|
pub downloads: Option<AllowDenyRequirement>,
|
|
pub uploads: Option<AllowDenyRequirement>,
|
|
pub full_cdp_access: Option<AllowDenyRequirement>,
|
|
}
|