chore: reverse the codex-network-proxy -> codex-core dependency (#11121)

This commit is contained in:
Michael Bolin
2026-02-08 17:03:24 -08:00
committed by GitHub
Unverified
parent 45b7763c3f
commit ff74aaae21
14 changed files with 376 additions and 320 deletions
+17
View File
@@ -0,0 +1,17 @@
[package]
name = "codex-network-proxy-cli"
edition = "2024"
version = { workspace = true }
license.workspace = true
[[bin]]
name = "codex-network-proxy"
path = "src/main.rs"
[dependencies]
anyhow = { workspace = true }
clap = { workspace = true, features = ["derive"] }
codex-core = { workspace = true }
codex-network-proxy = { path = "../network-proxy" }
tokio = { workspace = true, features = ["full"] }
tracing-subscriber = { workspace = true, features = ["fmt"] }
+19
View File
@@ -0,0 +1,19 @@
use anyhow::Result;
use clap::Parser;
use codex_core::network_proxy_loader;
use codex_network_proxy::Args;
use codex_network_proxy::NetworkProxy;
use codex_network_proxy::NetworkProxyState;
use std::sync::Arc;
#[tokio::main]
async fn main() -> Result<()> {
tracing_subscriber::fmt::init();
let args = Args::parse();
let (state, reloader) = network_proxy_loader::build_network_proxy_state_and_reloader().await?;
let state = Arc::new(NetworkProxyState::with_reloader(state, Arc::new(reloader)));
let _ = args;
let proxy = NetworkProxy::builder().state(state).build().await?;
proxy.run().await?.wait().await
}