Skip to content

Commit 2ae3654

Browse files
fix(trogon-acp): update to agent-client-protocol 0.10.2 API
AuthMethod is now an enum in schema 0.11.2; use AuthMethod::Agent(AuthMethodAgent::new(...)) instead of the old AuthMethod::new() struct constructor. Also enable the unstable_auth_methods feature flag required to compile. Update async-nats to 0.46.0 and agent-client-protocol to 0.10.2 in trogon-acp-runner to match workspace versions.
1 parent a91fc75 commit 2ae3654

4 files changed

Lines changed: 25 additions & 108 deletions

File tree

rsworkspace/Cargo.lock

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

rsworkspace/crates/trogon-acp-runner/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ workspace = true
88

99
[dependencies]
1010
acp-nats = { path = "../acp-nats" }
11-
agent-client-protocol = { version = "0.9.4", features = ["unstable_session_fork", "unstable_session_resume", "unstable_session_list"] }
11+
agent-client-protocol = { version = "0.10.2", features = ["unstable_session_fork", "unstable_session_resume"] }
1212
uuid = { version = "1", features = ["v4"] }
1313
anyhow = "1"
14-
async-nats = "0.45.0"
14+
async-nats = "0.46.0"
1515
bytes = "1"
1616
futures-util = "0.3"
1717
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json"] }

rsworkspace/crates/trogon-acp/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ workspace = true
88

99
[dependencies]
1010
acp-nats = { path = "../acp-nats" }
11-
agent-client-protocol = { version = "0.9.4", features = ["unstable_session_list", "unstable_session_model", "unstable_session_fork", "unstable_session_resume", "unstable_session_usage"] }
11+
agent-client-protocol = { version = "0.10.2", features = ["unstable_auth_methods", "unstable_session_model", "unstable_session_fork", "unstable_session_resume", "unstable_session_usage"] }
1212
anyhow = "1"
13-
async-nats = "0.45.0"
13+
async-nats = "0.46.0"
1414
async-trait = "0.1"
1515
opentelemetry = "0.31.0"
1616
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json"] }

rsworkspace/crates/trogon-acp/src/agent.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::path::PathBuf;
77
use std::time::Duration;
88

99
use agent_client_protocol::{
10-
AgentCapabilities, AuthMethod, AuthenticateRequest, AuthenticateResponse, AvailableCommand,
10+
AgentCapabilities, AuthMethod, AuthMethodAgent, AuthenticateRequest, AuthenticateResponse, AvailableCommand,
1111
AvailableCommandsUpdate, CancelNotification, ConfigOptionUpdate, ContentBlock, ContentChunk,
1212
CurrentModeUpdate, Diff, Error, ErrorCode, ExtNotification, ExtRequest, ExtResponse,
1313
ForkSessionRequest, ForkSessionResponse, Implementation, InitializeRequest, InitializeResponse,
@@ -616,8 +616,10 @@ where
616616
.meta(meta),
617617
)
618618
.auth_methods(vec![
619-
AuthMethod::new("gateway", "Model Gateway")
620-
.description("Connect via a custom Anthropic-compatible gateway"),
619+
AuthMethod::Agent(
620+
AuthMethodAgent::new("gateway", "Model Gateway")
621+
.description("Connect via a custom Anthropic-compatible gateway"),
622+
),
621623
])
622624
.agent_info(Implementation::new("trogon-acp", "0.1.0").title("Claude Agent")))
623625
}

0 commit comments

Comments
 (0)