mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
Register full CDP requirements feature (#28769)
register cdp requirements feature flag
This commit is contained in:
committed by
GitHub
Unverified
parent
5f129a4703
commit
ff37f4a6ef
@@ -449,6 +449,9 @@
|
||||
"browser_use_external": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"browser_use_full_cdp_access": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"chronicle": {
|
||||
"type": "boolean"
|
||||
},
|
||||
@@ -4750,6 +4753,9 @@
|
||||
"browser_use_external": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"browser_use_full_cdp_access": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"chronicle": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
||||
@@ -9752,6 +9752,7 @@ async fn browser_feature_requirements_are_valid() -> std::io::Result<()> {
|
||||
[features]
|
||||
in_app_browser = false
|
||||
browser_use = false
|
||||
browser_use_full_cdp_access = false
|
||||
"#,
|
||||
),
|
||||
)
|
||||
@@ -9760,6 +9761,7 @@ browser_use = false
|
||||
|
||||
assert!(!config.features.enabled(Feature::InAppBrowser));
|
||||
assert!(!config.features.enabled(Feature::BrowserUse));
|
||||
assert!(!config.features.enabled(Feature::BrowserUseFullCdpAccess));
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -175,6 +175,10 @@ pub enum Feature {
|
||||
///
|
||||
/// Requirements-only gate: this should be set from requirements, not user config.
|
||||
BrowserUse,
|
||||
/// Allow Browser Use integration to access the full Chrome DevTools Protocol surface.
|
||||
///
|
||||
/// Requirements-only gate: this should be set from requirements, not user config.
|
||||
BrowserUseFullCdpAccess,
|
||||
/// Allow Browser Use integration with external browsers.
|
||||
///
|
||||
/// Requirements-only gate: this should be set from requirements, not user config.
|
||||
@@ -1115,6 +1119,12 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::BrowserUseFullCdpAccess,
|
||||
key: "browser_use_full_cdp_access",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::BrowserUseExternal,
|
||||
key: "browser_use_external",
|
||||
|
||||
Reference in New Issue
Block a user