mirror of
https://github.com/openai/codex.git
synced 2026-02-01 22:47:52 +00:00
## Description
Introduced `ExternalSandbox` policy to cover use case when sandbox
defined by outside environment, effectively it translates to
`SandboxMode#DangerFullAccess` for file system (since sandbox configured
on container level) and configurable `network_access` (either Restricted
or Enabled by outside environment).
as example you can configure `ExternalSandbox` policy as part of
`sendUserTurn` v1 app_server API:
```
{
"conversationId": <id>,
"cwd": <cwd>,
"approvalPolicy": "never",
"sandboxPolicy": {
"type": ""external-sandbox",
"network_access": "enabled"/"restricted"
},
"model": <model>,
"effort": <effort>,
....
}
```
31 lines
841 B
TOML
31 lines
841 B
TOML
[package]
|
|
name = "codex-common"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
clap = { workspace = true, features = ["derive", "wrap_help"], optional = true }
|
|
codex-core = { workspace = true }
|
|
codex-lmstudio = { workspace = true }
|
|
codex-ollama = { workspace = true }
|
|
codex-protocol = { workspace = true }
|
|
serde = { workspace = true, optional = true }
|
|
toml = { workspace = true, optional = true }
|
|
|
|
[features]
|
|
# Separate feature so that `clap` is not a mandatory dependency.
|
|
cli = ["clap", "serde", "toml"]
|
|
elapsed = []
|
|
sandbox_summary = []
|
|
|
|
[dev-dependencies]
|
|
clap = { workspace = true, features = ["derive", "wrap_help"] }
|
|
codex-utils-absolute-path = { workspace = true }
|
|
pretty_assertions = { workspace = true }
|
|
serde = { workspace = true }
|
|
toml = { workspace = true }
|