Add Guardian V2 extension scaffold (#38336)

## What changed

- Add the `codex-guardian-v2` crate with an extension install entry point that does not register contributors yet.
- Register the crate in the Cargo workspace and add its Bazel target.

GitOrigin-RevId: 7c0c9479c6722d65f0f0dad9b0fd4a756e4649b3
This commit is contained in:
jif
2026-08-13 08:54:37 +00:00
committed by copyberry
parent e0de12a126
commit fe614a6304
5 changed files with 35 additions and 0 deletions

7
codex-rs/Cargo.lock generated
View File

@@ -3295,6 +3295,13 @@ dependencies = [
"codex-protocol",
]
[[package]]
name = "codex-guardian-v2"
version = "0.0.0"
dependencies = [
"codex-extension-api",
]
[[package]]
name = "codex-history"
version = "0.0.0"

View File

@@ -59,6 +59,7 @@ members = [
"ext/goal",
"ext/git-attribution",
"ext/guardian",
"ext/guardian-v2",
"ext/image-generation",
"ext/items",
"ext/memories",

View File

@@ -0,0 +1,6 @@
load("//:defs.bzl", "codex_rust_crate")
codex_rust_crate(
name = "guardian-v2",
crate_name = "codex_guardian_v2",
)

View File

@@ -0,0 +1,17 @@
[package]
edition.workspace = true
license.workspace = true
name = "codex-guardian-v2"
version.workspace = true
[lib]
name = "codex_guardian_v2"
path = "src/lib.rs"
test = false
doctest = false
[lints]
workspace = true
[dependencies]
codex-extension-api = { workspace = true }

View File

@@ -0,0 +1,4 @@
use codex_extension_api::ExtensionRegistryBuilder;
/// Installs the Guardian V2 extension without registering contributors yet.
pub fn install<C: Sync>(_registry: &mut ExtensionRegistryBuilder<C>) {}