mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
chore: upgrade rmcp to 0.6.0 (#4243)
This commit is contained in:
Generated
+4
-4
@@ -5399,9 +5399,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rmcp"
|
||||
version = "0.5.0"
|
||||
version = "0.6.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2faf35b7d3c4b7f8c21c45bb014011b32a0ce6444bf6094da04daab01a8c3c34"
|
||||
checksum = "bb21cd3555f1059f27e4813827338dec44429a08ecd0011acc41d9907b160c00"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"chrono",
|
||||
@@ -5427,9 +5427,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rmcp-macros"
|
||||
version = "0.5.0"
|
||||
version = "0.6.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ad9720d9d2a943779f1dc3d47fa9072c7eeffaff4e1a82f67eb9f7ea52696091"
|
||||
checksum = "ab5d16ae1ff3ce2c5fd86c37047b2869b75bec795d53a4b1d8257b15415a2354"
|
||||
dependencies = [
|
||||
"darling 0.21.0",
|
||||
"proc-macro2",
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ description = "An AI agent"
|
||||
uninlined_format_args = "allow"
|
||||
|
||||
[workspace.dependencies]
|
||||
rmcp = { version = "0.5.0", features = ["schemars", "auth"] }
|
||||
rmcp = { version = "0.6.0", features = ["schemars", "auth"] }
|
||||
|
||||
# Patch for Windows cross-compilation issue with crunchy
|
||||
[patch.crates-io]
|
||||
|
||||
@@ -95,7 +95,7 @@ impl McpClientTrait for MockClient {
|
||||
if let Some(handler) = self.handlers.get(name) {
|
||||
match handler(&arguments) {
|
||||
Ok(content) => Ok(CallToolResult {
|
||||
content: Some(content),
|
||||
content: content,
|
||||
is_error: None,
|
||||
structured_content: None,
|
||||
}),
|
||||
|
||||
@@ -786,7 +786,7 @@ impl ExtensionManager {
|
||||
client_guard
|
||||
.call_tool(&tool_name, arguments, cancellation_token)
|
||||
.await
|
||||
.map(|call| call.content.unwrap_or_default())
|
||||
.map(|call| call.content)
|
||||
.map_err(|e| ErrorData::new(ErrorCode::INTERNAL_ERROR, e.to_string(), None))
|
||||
};
|
||||
|
||||
@@ -1046,7 +1046,7 @@ mod tests {
|
||||
) -> Result<CallToolResult, Error> {
|
||||
match name {
|
||||
"tool" | "test__tool" | "available_tool" | "hidden_tool" => Ok(CallToolResult {
|
||||
content: Some(vec![]),
|
||||
content: vec![],
|
||||
is_error: None,
|
||||
structured_content: None,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user