Add codex-network-proxy crate

This commit is contained in:
viyatb-oai
2025-12-21 12:15:59 -08:00
parent 25ecd0c2e4
commit f65edf9c91
17 changed files with 3471 additions and 749 deletions
+6
View File
@@ -1346,6 +1346,12 @@ pub fn find_codex_home() -> std::io::Result<PathBuf> {
Ok(p)
}
/// Returns the default path to the Codex config file (`config.toml`).
pub fn default_config_path() -> std::io::Result<PathBuf> {
let codex_home = find_codex_home()?;
Ok(codex_home.join(CONFIG_TOML_FILE))
}
/// Returns the path to the folder where Codex logs are stored. Does not verify
/// that the directory exists.
pub fn log_dir(cfg: &Config) -> std::io::Result<PathBuf> {