Merge branch 'main' into codex-rs-session

This commit is contained in:
oai-ragona
2025-04-28 09:53:28 -07:00
committed by GitHub
31 changed files with 598 additions and 170 deletions

View File

@@ -1,4 +1,5 @@
use clap::Parser;
use codex_core::SandboxModeCliArg;
use std::path::PathBuf;
/// Command-line interface for the non-interactive `codex-exec` agent.
@@ -14,6 +15,12 @@ pub struct Cli {
#[arg(long, short = 'm')]
pub model: Option<String>,
/// Configure the process restrictions when a command is executed.
///
/// Uses OS-specific sandboxing tools; Seatbelt on OSX, landlock+seccomp on Linux.
#[arg(long = "sandbox", short = 's')]
pub sandbox_policy: Option<SandboxModeCliArg>,
/// Allow running Codex outside a Git repository.
#[arg(long = "skip-git-repo-check", default_value_t = false)]
pub skip_git_repo_check: bool,