mirror of
https://github.com/openai/codex.git
synced 2026-09-11 20:36:49 +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
27 lines
926 B
Rust
27 lines
926 B
Rust
use crate::AllowDenyRequirementToml;
|
|
use schemars::JsonSchema;
|
|
use serde::Deserialize;
|
|
use serde::Serialize;
|
|
use std::collections::BTreeMap;
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone, Default, PartialEq, Eq, JsonSchema)]
|
|
#[schemars(deny_unknown_fields)]
|
|
pub struct BrowserUseConfigToml {
|
|
pub allow_history_access: Option<bool>,
|
|
pub default_origin_policy: Option<BrowserUseOriginPolicyConfigToml>,
|
|
pub origins: Option<BTreeMap<String, BrowserUseOriginPolicyConfigToml>>,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone, Default, PartialEq, Eq, JsonSchema)]
|
|
#[schemars(deny_unknown_fields)]
|
|
pub struct BrowserUseOriginPolicyConfigToml {
|
|
pub access: Option<AllowDenyRequirementToml>,
|
|
pub downloads: Option<AllowDenyRequirementToml>,
|
|
pub uploads: Option<AllowDenyRequirementToml>,
|
|
pub full_cdp_access: Option<AllowDenyRequirementToml>,
|
|
}
|
|
|
|
#[cfg(test)]
|
|
#[path = "browser_use_tests.rs"]
|
|
mod tests;
|