Update to acp 0.0.9 (#34463)

Release Notes:

- N/A
This commit is contained in:
Ben Brandt 2025-07-15 16:28:27 +02:00 committed by GitHub
parent 050ed85d71
commit 7ab8f431a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 47 additions and 19 deletions

52
Cargo.lock generated
View file

@ -264,16 +264,18 @@ dependencies = [
[[package]] [[package]]
name = "agentic-coding-protocol" name = "agentic-coding-protocol"
version = "0.0.7" version = "0.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a75f520bcc049ebe40c8c99427aa61b48ad78a01bcc96a13b350b903dcfb9438" checksum = "0e276b798eddd02562a339340a96919d90bbfcf78de118fdddc932524646fac7"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"chrono", "chrono",
"derive_more 2.0.1",
"futures 0.3.31", "futures 0.3.31",
"log", "log",
"parking_lot", "parking_lot",
"schemars", "schemars",
"semver",
"serde", "serde",
"serde_json", "serde_json",
] ]
@ -676,7 +678,7 @@ dependencies = [
"anyhow", "anyhow",
"async-trait", "async-trait",
"collections", "collections",
"derive_more", "derive_more 0.99.19",
"extension", "extension",
"futures 0.3.31", "futures 0.3.31",
"gpui", "gpui",
@ -739,7 +741,7 @@ dependencies = [
"clock", "clock",
"collections", "collections",
"ctor", "ctor",
"derive_more", "derive_more 0.99.19",
"futures 0.3.31", "futures 0.3.31",
"gpui", "gpui",
"icons", "icons",
@ -775,7 +777,7 @@ dependencies = [
"clock", "clock",
"collections", "collections",
"component", "component",
"derive_more", "derive_more 0.99.19",
"editor", "editor",
"feature_flags", "feature_flags",
"fs", "fs",
@ -1232,7 +1234,7 @@ version = "0.1.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"collections", "collections",
"derive_more", "derive_more 0.99.19",
"gpui", "gpui",
"parking_lot", "parking_lot",
"rodio", "rodio",
@ -2925,7 +2927,7 @@ dependencies = [
"cocoa 0.26.0", "cocoa 0.26.0",
"collections", "collections",
"credentials_provider", "credentials_provider",
"derive_more", "derive_more 0.99.19",
"feature_flags", "feature_flags",
"fs", "fs",
"futures 0.3.31", "futures 0.3.31",
@ -3113,7 +3115,7 @@ dependencies = [
"dap_adapters", "dap_adapters",
"dashmap 6.1.0", "dashmap 6.1.0",
"debugger_ui", "debugger_ui",
"derive_more", "derive_more 0.99.19",
"editor", "editor",
"envy", "envy",
"extension", "extension",
@ -3318,7 +3320,7 @@ name = "command_palette_hooks"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"collections", "collections",
"derive_more", "derive_more 0.99.19",
"gpui", "gpui",
"workspace-hack", "workspace-hack",
] ]
@ -4525,6 +4527,27 @@ dependencies = [
"syn 2.0.101", "syn 2.0.101",
] ]
[[package]]
name = "derive_more"
version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "093242cf7570c207c83073cf82f79706fe7b8317e98620a47d5be7c3d8497678"
dependencies = [
"derive_more-impl",
]
[[package]]
name = "derive_more-impl"
version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bda628edc44c4bb645fbe0f758797143e4e07926f7ebf4e9bdfbd3d2ce621df3"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.101",
"unicode-xid",
]
[[package]] [[package]]
name = "derive_refineable" name = "derive_refineable"
version = "0.1.0" version = "0.1.0"
@ -6223,7 +6246,7 @@ dependencies = [
"askpass", "askpass",
"async-trait", "async-trait",
"collections", "collections",
"derive_more", "derive_more 0.99.19",
"futures 0.3.31", "futures 0.3.31",
"git2", "git2",
"gpui", "gpui",
@ -7240,7 +7263,7 @@ dependencies = [
"core-video", "core-video",
"cosmic-text", "cosmic-text",
"ctor", "ctor",
"derive_more", "derive_more 0.99.19",
"embed-resource", "embed-resource",
"env_logger 0.11.8", "env_logger 0.11.8",
"etagere", "etagere",
@ -7786,7 +7809,7 @@ version = "0.1.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"bytes 1.10.1", "bytes 1.10.1",
"derive_more", "derive_more 0.99.19",
"futures 0.3.31", "futures 0.3.31",
"http 1.3.1", "http 1.3.1",
"log", "log",
@ -8224,7 +8247,7 @@ dependencies = [
"async-trait", "async-trait",
"cargo_metadata", "cargo_metadata",
"collections", "collections",
"derive_more", "derive_more 0.99.19",
"extension", "extension",
"fs", "fs",
"futures 0.3.31", "futures 0.3.31",
@ -14163,6 +14186,7 @@ dependencies = [
"indexmap", "indexmap",
"ref-cast", "ref-cast",
"schemars_derive", "schemars_derive",
"semver",
"serde", "serde",
"serde_json", "serde_json",
] ]
@ -16124,7 +16148,7 @@ version = "0.1.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"collections", "collections",
"derive_more", "derive_more 0.99.19",
"fs", "fs",
"futures 0.3.31", "futures 0.3.31",
"gpui", "gpui",

View file

@ -404,7 +404,7 @@ zlog_settings = { path = "crates/zlog_settings" }
# External crates # External crates
# #
agentic-coding-protocol = "0.0.7" agentic-coding-protocol = { version = "0.0.9" }
aho-corasick = "1.1" aho-corasick = "1.1"
alacritty_terminal = { git = "https://github.com/zed-industries/alacritty.git", branch = "add-hush-login-flag" } alacritty_terminal = { git = "https://github.com/zed-industries/alacritty.git", branch = "add-hush-login-flag" }
any_vec = "0.14" any_vec = "0.14"

View file

@ -875,7 +875,7 @@ impl AcpThread {
&self, &self,
) -> impl use<> + Future<Output = Result<acp::InitializeResponse, acp::Error>> { ) -> impl use<> + Future<Output = Result<acp::InitializeResponse, acp::Error>> {
let connection = self.connection.clone(); let connection = self.connection.clone();
async move { connection.request(acp::InitializeParams).await } async move { connection.initialize().await }
} }
pub fn authenticate(&self) -> impl use<> + Future<Output = Result<(), acp::Error>> { pub fn authenticate(&self) -> impl use<> + Future<Output = Result<(), acp::Error>> {
@ -1839,8 +1839,12 @@ mod tests {
} }
impl acp::Agent for FakeAgent { impl acp::Agent for FakeAgent {
async fn initialize(&self) -> Result<acp::InitializeResponse, acp::Error> { async fn initialize(
&self,
params: acp::InitializeParams,
) -> Result<acp::InitializeResponse, acp::Error> {
Ok(acp::InitializeResponse { Ok(acp::InitializeResponse {
protocol_version: params.protocol_version,
is_authenticated: true, is_authenticated: true,
}) })
} }

View file

@ -107,7 +107,7 @@ rustc-hash = { version = "1" }
rustix-d585fab2519d2d1 = { package = "rustix", version = "0.38", default-features = false, features = ["fs", "net", "std"] } rustix-d585fab2519d2d1 = { package = "rustix", version = "0.38", default-features = false, features = ["fs", "net", "std"] }
rustls = { version = "0.23", features = ["ring"] } rustls = { version = "0.23", features = ["ring"] }
rustls-webpki = { version = "0.103", default-features = false, features = ["aws-lc-rs", "ring", "std"] } rustls-webpki = { version = "0.103", default-features = false, features = ["aws-lc-rs", "ring", "std"] }
schemars = { version = "1", features = ["chrono04", "indexmap2"] } schemars = { version = "1", features = ["chrono04", "indexmap2", "semver1"] }
sea-orm = { version = "1", features = ["runtime-tokio-rustls", "sqlx-postgres", "sqlx-sqlite"] } sea-orm = { version = "1", features = ["runtime-tokio-rustls", "sqlx-postgres", "sqlx-sqlite"] }
sea-query-binder = { version = "0.7", default-features = false, features = ["postgres-array", "sqlx-postgres", "sqlx-sqlite", "with-bigdecimal", "with-chrono", "with-json", "with-rust_decimal", "with-time", "with-uuid"] } sea-query-binder = { version = "0.7", default-features = false, features = ["postgres-array", "sqlx-postgres", "sqlx-sqlite", "with-bigdecimal", "with-chrono", "with-json", "with-rust_decimal", "with-time", "with-uuid"] }
semver = { version = "1", features = ["serde"] } semver = { version = "1", features = ["serde"] }
@ -240,7 +240,7 @@ rustc-hash = { version = "1" }
rustix-d585fab2519d2d1 = { package = "rustix", version = "0.38", default-features = false, features = ["fs", "net", "std"] } rustix-d585fab2519d2d1 = { package = "rustix", version = "0.38", default-features = false, features = ["fs", "net", "std"] }
rustls = { version = "0.23", features = ["ring"] } rustls = { version = "0.23", features = ["ring"] }
rustls-webpki = { version = "0.103", default-features = false, features = ["aws-lc-rs", "ring", "std"] } rustls-webpki = { version = "0.103", default-features = false, features = ["aws-lc-rs", "ring", "std"] }
schemars = { version = "1", features = ["chrono04", "indexmap2"] } schemars = { version = "1", features = ["chrono04", "indexmap2", "semver1"] }
sea-orm = { version = "1", features = ["runtime-tokio-rustls", "sqlx-postgres", "sqlx-sqlite"] } sea-orm = { version = "1", features = ["runtime-tokio-rustls", "sqlx-postgres", "sqlx-sqlite"] }
sea-query-binder = { version = "0.7", default-features = false, features = ["postgres-array", "sqlx-postgres", "sqlx-sqlite", "with-bigdecimal", "with-chrono", "with-json", "with-rust_decimal", "with-time", "with-uuid"] } sea-query-binder = { version = "0.7", default-features = false, features = ["postgres-array", "sqlx-postgres", "sqlx-sqlite", "with-bigdecimal", "with-chrono", "with-json", "with-rust_decimal", "with-time", "with-uuid"] }
semver = { version = "1", features = ["serde"] } semver = { version = "1", features = ["serde"] }