mirror of
https://github.com/openai/codex.git
synced 2026-11-17 22:10:37 +00:00
## What changed Add `Client::list_saved_environments` and export `SavedEnvironment` with each environment's ID, name, and workspace-sharing status. - Fetch personal and workspace environments from the authenticated `/v1/environment-configs` picker API, following pagination independently for each scope. - Request non-draft configurations and filter out the default environment, empty IDs, and blank names. - Bound the catalog request to 10 seconds and each response page to 1 MiB. Return `EnvironmentCatalogUnavailable` for request, parsing, or limit failures and repeated cursors. ## Testing Add a client test covering pagination, cursor encoding, scope ordering, default-environment filtering, workspace-sharing status, and authenticated request headers. GitOrigin-RevId: ca7793a53eade36ba510a53b4a827f945a109072
38 lines
1007 B
TOML
38 lines
1007 B
TOML
[package]
|
|
name = "codex-cloud-client"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
async-stream = { workspace = true }
|
|
bytes = { workspace = true }
|
|
codex-http-client = { workspace = true }
|
|
futures = { workspace = true }
|
|
http = { workspace = true }
|
|
http-body-util = "0.1.3"
|
|
prost = "0.14.3"
|
|
tonic = { workspace = true }
|
|
tonic-prost = { workspace = true }
|
|
tower = { version = "0.5.3", features = ["util"] }
|
|
thiserror = { workspace = true }
|
|
tokio = { workspace = true, features = ["time"] }
|
|
url = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
anyhow = { workspace = true }
|
|
pretty_assertions = { workspace = true }
|
|
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
|
|
hyper = { version = "1.8.1", features = ["server", "http2"] }
|
|
hyper-util = { version = "0.1.20", features = ["tokio"] }
|
|
tokio-rustls = { workspace = true }
|