diff --git a/Cargo.lock b/Cargo.lock index 7150160c69a3..f849572a6789 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6988,9 +6988,9 @@ dependencies = [ [[package]] name = "rmcp" -version = "0.4.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ae7b8e0841e6c5e57448784136315356c70eb92d60d5a5a05a209f159083268" +checksum = "2faf35b7d3c4b7f8c21c45bb014011b32a0ce6444bf6094da04daab01a8c3c34" dependencies = [ "base64 0.22.1", "chrono", @@ -7016,9 +7016,9 @@ dependencies = [ [[package]] name = "rmcp-macros" -version = "0.4.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "470958f96a5700478601c385ad3d987460372c2223959eddcb682c7273cdfb86" +checksum = "ad9720d9d2a943779f1dc3d47fa9072c7eeffaff4e1a82f67eb9f7ea52696091" dependencies = [ "darling 0.21.0", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index 6e24160901f6..0b20bdf0c13b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ description = "An AI agent" uninlined_format_args = "allow" [workspace.dependencies] -rmcp = { version = "0.4.1", features = ["schemars", "auth"] } +rmcp = { version = "0.5.0", features = ["schemars", "auth"] } # Patch for Windows cross-compilation issue with crunchy [patch.crates-io] diff --git a/crates/goose-cli/src/session/output.rs b/crates/goose-cli/src/session/output.rs index dc8d70124e8f..32b706d4de97 100644 --- a/crates/goose-cli/src/session/output.rs +++ b/crates/goose-cli/src/session/output.rs @@ -829,11 +829,11 @@ impl McpSpinners { spinner.set_message(message.to_string()); } - pub fn update(&mut self, token: &str, value: u32, total: Option, message: Option<&str>) { + pub fn update(&mut self, token: &str, value: f64, total: Option, message: Option<&str>) { let bar = self.bars.entry(token.to_string()).or_insert_with(|| { if let Some(total) = total { self.multi_bar.add( - ProgressBar::new((total * 100) as u64).with_style( + ProgressBar::new((total * 100_f64) as u64).with_style( ProgressStyle::with_template("[{elapsed}] {bar:40} {pos:>3}/{len:3} {msg}") .unwrap(), ), @@ -842,7 +842,7 @@ impl McpSpinners { self.multi_bar.add(ProgressBar::new_spinner()) } }); - bar.set_position((value * 100) as u64); + bar.set_position((value * 100_f64) as u64); if let Some(msg) = message { bar.set_message(msg.to_string()); }