Skip to content

Commit 5593b17

Browse files
committed
version updates
1 parent ca2cfba commit 5593b17

44 files changed

Lines changed: 1875 additions & 1062 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

codex-rs/Cargo.lock

Lines changed: 1621 additions & 915 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codex-rs/Cargo.toml

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ mcp_test_support = { path = "mcp-server/tests/common" }
101101

102102
# External
103103
allocative = "0.3.3"
104-
ansi-to-tui = "7.0.0"
104+
ansi-to-tui = "8.0.0-beta.0"
105105
anyhow = "1"
106106
arboard = { version = "3", features = ["wayland-data-control"] }
107107
askama = "0.14"
@@ -118,8 +118,8 @@ chrono = "0.4.42"
118118
clap = "4"
119119
clap_complete = "4"
120120
color-eyre = "0.6.3"
121-
crossterm = "0.28.1"
122-
ctor = "0.5.0"
121+
crossterm = "0.29.0"
122+
ctor = "0.6.1"
123123
derive_more = "2"
124124
diffy = "0.4.2"
125125
dirs = "6"
@@ -145,35 +145,35 @@ landlock = "0.4.1"
145145
lazy_static = "1"
146146
libc = "0.2.177"
147147
log = "0.4"
148-
lru = "0.12.5"
148+
lru = "0.16.2"
149149
maplit = "1.0.2"
150150
mime_guess = "2.0.5"
151151
multimap = "0.10.0"
152152
notify = "8.2.0"
153153
nucleo-matcher = "0.3.1"
154154
once_cell = "1.20.2"
155155
openssl-sys = "*"
156-
opentelemetry = "0.30.0"
157-
opentelemetry-appender-tracing = "0.30.0"
158-
opentelemetry-otlp = "0.30.0"
159-
opentelemetry-semantic-conventions = "0.30.0"
160-
opentelemetry_sdk = "0.30.0"
156+
opentelemetry = "0.31.0"
157+
opentelemetry-appender-tracing = "0.31.1"
158+
opentelemetry-otlp = "0.31.0"
159+
opentelemetry-semantic-conventions = "0.31.0"
160+
opentelemetry_sdk = "0.31.0"
161161
os_info = "3.12.0"
162162
owo-colors = "4.2.0"
163163
path-absolutize = "3.1.1"
164164
pathdiff = "0.2"
165165
portable-pty = "0.9.0"
166166
predicates = "3"
167167
pretty_assertions = "1.4.1"
168-
pulldown-cmark = "0.10"
169-
rand = "0.9"
170-
ratatui = "0.29.0"
171-
ratatui-macros = "0.6.0"
172168
regex = "1.12.2"
169+
pulldown-cmark = "0.13.0"
170+
rand = "0.9.2"
171+
ratatui = "0.30.0-beta.0"
172+
ratatui-macros = "0.7.0-beta.0"
173173
regex-lite = "0.1.7"
174174
reqwest = "0.12"
175175
rmcp = { version = "0.10.0", default-features = false }
176-
schemars = "0.8.22"
176+
schemars = "1.1.0"
177177
seccompiler = "0.5.0"
178178
sentry = "0.34.0"
179179
serde = "1"
@@ -202,8 +202,8 @@ tokio-test = "0.4"
202202
tokio-util = "0.7.16"
203203
toml = "0.9.5"
204204
toml_edit = "0.23.5"
205-
tonic = "0.13.1"
206205
tracing = "0.1.43"
206+
tonic = "0.14.2"
207207
tracing-appender = "0.2.3"
208208
tracing-subscriber = "0.3.20"
209209
tracing-test = "0.2.5"
@@ -213,14 +213,14 @@ tree-sitter-highlight = "0.25.10"
213213
ts-rs = "11"
214214
uds_windows = "1.1.0"
215215
unicode-segmentation = "1.12.0"
216-
unicode-width = "0.2"
216+
unicode-width = "0.2.2"
217217
url = "2"
218218
urlencoding = "2.1"
219219
uuid = "1"
220220
vt100 = "0.16.2"
221221
walkdir = "2.5.0"
222222
webbrowser = "1.0"
223-
which = "6"
223+
which = "8.0.0"
224224
wildmatch = "2.5.0"
225225

226226
wiremock = "0.6"
@@ -286,8 +286,14 @@ opt-level = 0
286286
[patch.crates-io]
287287
# Uncomment to debug local changes.
288288
# ratatui = { path = "../../ratatui" }
289-
crossterm = { git = "https://github.com/nornagon/crossterm", branch = "nornagon/color-query" }
290-
ratatui = { git = "https://github.com/nornagon/ratatui", branch = "nornagon-v0.29.0-patch" }
289+
crossterm = { git = "https://github.com/takumi-earth/crossterm", rev = "b87b8e3b77283d41d7106d87357f929db2e00368" }
290+
ratatui = { git = "https://github.com/takumi-earth/ratatui", rev = "c250e525a67625dde14a70ccd4cb563610ba103d" }
291+
ratatui-core = { git = "https://github.com/takumi-earth/ratatui", rev = "c250e525a67625dde14a70ccd4cb563610ba103d" }
292+
ratatui-widgets = { git = "https://github.com/takumi-earth/ratatui", rev = "c250e525a67625dde14a70ccd4cb563610ba103d" }
293+
ratatui-crossterm = { git = "https://github.com/takumi-earth/ratatui", rev = "c250e525a67625dde14a70ccd4cb563610ba103d" }
294+
ratatui-termion = { git = "https://github.com/takumi-earth/ratatui", rev = "c250e525a67625dde14a70ccd4cb563610ba103d" }
295+
ratatui-termwiz = { git = "https://github.com/takumi-earth/ratatui", rev = "c250e525a67625dde14a70ccd4cb563610ba103d" }
296+
ratatui-macros = { git = "https://github.com/takumi-earth/ratatui", rev = "c250e525a67625dde14a70ccd4cb563610ba103d" }
291297

292298
# Uncomment to debug local changes.
293299
# rmcp = { path = "../../rust-sdk/crates/rmcp" }

codex-rs/app-server/tests/common/mcp_process.rs

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::collections::VecDeque;
22
use std::path::Path;
3+
use std::path::PathBuf;
34
use std::process::Stdio;
45
use std::sync::atomic::AtomicI64;
56
use std::sync::atomic::Ordering;
@@ -10,8 +11,6 @@ use tokio::process::Child;
1011
use tokio::process::ChildStdin;
1112
use tokio::process::ChildStdout;
1213

13-
use anyhow::Context;
14-
use assert_cmd::prelude::*;
1514
use codex_app_server_protocol::AddConversationListenerParams;
1615
use codex_app_server_protocol::ArchiveConversationParams;
1716
use codex_app_server_protocol::CancelLoginAccountParams;
@@ -49,8 +48,9 @@ use codex_app_server_protocol::ThreadResumeParams;
4948
use codex_app_server_protocol::ThreadStartParams;
5049
use codex_app_server_protocol::TurnInterruptParams;
5150
use codex_app_server_protocol::TurnStartParams;
52-
use std::process::Command as StdCommand;
5351
use tokio::process::Command;
52+
use anyhow::anyhow;
53+
use anyhow::Context;
5454

5555
pub struct McpProcess {
5656
next_request_id: AtomicI64,
@@ -78,11 +78,25 @@ impl McpProcess {
7878
codex_home: &Path,
7979
env_overrides: &[(&str, Option<&str>)],
8080
) -> anyhow::Result<Self> {
81-
// Use assert_cmd to locate the binary path and then switch to tokio::process::Command
82-
let std_cmd = StdCommand::cargo_bin("codex-app-server")
83-
.context("should find binary for codex-mcp-server")?;
84-
85-
let program = std_cmd.get_program().to_owned();
81+
// Use cargo-set env vars to locate the binary path and then switch to tokio::process::Command
82+
let program = std::env::var("CARGO_BIN_EXE_codex-app-server")
83+
.or_else(|_| std::env::var("CARGO_BIN_EXE_codex_app_server"))
84+
.map(PathBuf::from)
85+
.or_else(|_| {
86+
let workspace_dir = Path::new(env!("CARGO_MANIFEST_DIR"))
87+
.ancestors()
88+
.nth(3)
89+
.unwrap_or_else(|| Path::new(env!("CARGO_MANIFEST_DIR")));
90+
let candidate = workspace_dir.join("target/debug").join(format!(
91+
"codex-app-server{}",
92+
std::env::consts::EXE_SUFFIX
93+
));
94+
candidate
95+
.exists()
96+
.then_some(candidate)
97+
.ok_or_else(|| anyhow!("codex-app-server binary not found in target/debug"))
98+
})
99+
.context("should find binary for codex-app-server")?;
86100

87101
let mut cmd = Command::new(program);
88102

codex-rs/apply-patch/tests/suite/cli.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
use assert_cmd::prelude::*;
1+
use assert_cmd::cargo;
22
use std::fs;
3-
use std::process::Command;
43
use tempfile::tempdir;
54

65
#[test]
@@ -16,8 +15,8 @@ fn test_apply_patch_cli_add_and_update() -> anyhow::Result<()> {
1615
+hello
1716
*** End Patch"#
1817
);
19-
Command::cargo_bin("apply_patch")
20-
.expect("should find apply_patch binary")
18+
let mut cmd = cargo::cargo_bin_cmd!("apply_patch");
19+
cmd
2120
.arg(add_patch)
2221
.current_dir(tmp.path())
2322
.assert()
@@ -34,8 +33,8 @@ fn test_apply_patch_cli_add_and_update() -> anyhow::Result<()> {
3433
+world
3534
*** End Patch"#
3635
);
37-
Command::cargo_bin("apply_patch")
38-
.expect("should find apply_patch binary")
36+
let mut cmd = cargo::cargo_bin_cmd!("apply_patch");
37+
cmd
3938
.arg(update_patch)
4039
.current_dir(tmp.path())
4140
.assert()
@@ -59,8 +58,7 @@ fn test_apply_patch_cli_stdin_add_and_update() -> anyhow::Result<()> {
5958
+hello
6059
*** End Patch"#
6160
);
62-
let mut cmd =
63-
assert_cmd::Command::cargo_bin("apply_patch").expect("should find apply_patch binary");
61+
let mut cmd = cargo::cargo_bin_cmd!("apply_patch");
6462
cmd.current_dir(tmp.path());
6563
cmd.write_stdin(add_patch)
6664
.assert()
@@ -77,8 +75,7 @@ fn test_apply_patch_cli_stdin_add_and_update() -> anyhow::Result<()> {
7775
+world
7876
*** End Patch"#
7977
);
80-
let mut cmd =
81-
assert_cmd::Command::cargo_bin("apply_patch").expect("should find apply_patch binary");
78+
let mut cmd = cargo::cargo_bin_cmd!("apply_patch");
8279
cmd.current_dir(tmp.path());
8380
cmd.write_stdin(update_patch)
8481
.assert()

codex-rs/apply-patch/tests/suite/tool.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1+
use assert_cmd::cargo;
12
use assert_cmd::Command;
23
use pretty_assertions::assert_eq;
34
use std::fs;
45
use std::path::Path;
56
use tempfile::tempdir;
67

78
fn run_apply_patch_in_dir(dir: &Path, patch: &str) -> anyhow::Result<assert_cmd::assert::Assert> {
8-
let mut cmd = Command::cargo_bin("apply_patch")?;
9+
let mut cmd = cargo::cargo_bin_cmd!("apply_patch");
910
cmd.current_dir(dir);
1011
Ok(cmd.arg(patch).assert())
1112
}
1213

1314
fn apply_patch_command(dir: &Path) -> anyhow::Result<Command> {
14-
let mut cmd = Command::cargo_bin("apply_patch")?;
15+
let mut cmd = cargo::cargo_bin_cmd!("apply_patch");
1516
cmd.current_dir(dir);
1617
Ok(cmd)
1718
}

codex-rs/cli/tests/execpolicy.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ prefix_rule(
1919
"#,
2020
)?;
2121

22-
let output = Command::cargo_bin("codex")?
22+
let bin = std::env::var("CARGO_BIN_EXE_codex")?;
23+
let output = Command::new(bin)
2324
.env("CODEX_HOME", codex_home.path())
2425
.args([
2526
"execpolicy",

codex-rs/cli/tests/mcp_add_remove.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ use pretty_assertions::assert_eq;
88
use tempfile::TempDir;
99

1010
fn codex_command(codex_home: &Path) -> Result<assert_cmd::Command> {
11-
let mut cmd = assert_cmd::Command::cargo_bin("codex")?;
11+
let bin = std::env::var("CARGO_BIN_EXE_codex")?;
12+
let mut cmd = assert_cmd::Command::new(bin);
1213
cmd.env("CODEX_HOME", codex_home);
1314
Ok(cmd)
1415
}

codex-rs/cli/tests/mcp_list.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ use serde_json::json;
1212
use tempfile::TempDir;
1313

1414
fn codex_command(codex_home: &Path) -> Result<assert_cmd::Command> {
15-
let mut cmd = assert_cmd::Command::cargo_bin("codex")?;
15+
let bin = std::env::var("CARGO_BIN_EXE_codex")?;
16+
let mut cmd = assert_cmd::Command::new(bin);
1617
cmd.env("CODEX_HOME", codex_home);
1718
Ok(cmd)
1819
}

codex-rs/codex-backend-openapi-models/src/models/rate_limit_status_payload.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ impl RateLimitStatusPayload {
4343
}
4444

4545
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
46+
#[derive(Default)]
4647
pub enum PlanType {
4748
#[serde(rename = "guest")]
49+
#[default]
4850
Guest,
4951
#[serde(rename = "free")]
5052
Free,
@@ -72,8 +74,3 @@ pub enum PlanType {
7274
Edu,
7375
}
7476

75-
impl Default for PlanType {
76-
fn default() -> PlanType {
77-
Self::Guest
78-
}
79-
}

codex-rs/core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ seccompiler = { workspace = true }
9797
keyring = { workspace = true, features = ["linux-native-async-persistent"] }
9898

9999
[target.'cfg(target_os = "macos")'.dependencies]
100-
core-foundation = "0.9"
100+
core-foundation = "0.10.1"
101101
keyring = { workspace = true, features = ["apple-native"] }
102102

103103
# Build OpenSSL from source for musl builds.

0 commit comments

Comments
 (0)