Skip to content

Commit 0cf00f2

Browse files
committed
chore: bump xcap to 0.7.0
1 parent ed68f49 commit 0cf00f2

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

Cross.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ pre-build = [
1111
pkg-config \
1212
libssl-dev:arm64 \
1313
libdbus-1-dev:arm64 \
14+
libpipewire-0.3-dev:arm64 \
15+
libwayland-dev:arm64 \
1416
libxcb1-dev:arm64
1517
""",
1618
"""\
@@ -33,6 +35,8 @@ pre-build = [
3335
pkg-config \
3436
libssl-dev \
3537
libdbus-1-dev \
38+
libpipewire-0.3-dev \
39+
libwayland-dev \
3640
libxcb1-dev
3741
""",
3842
"""\

crates/goose-mcp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ serde_json = "1.0"
2828
lazy_static = "1.5"
2929
shellexpand = "3.1.0"
3030
indoc = "2.0.5"
31-
xcap = "0.0.14"
31+
xcap = "0.7.0"
3232
reqwest = { version = "0.11", features = [
3333
"json",
3434
"rustls-tls-native-roots",

crates/goose-mcp/src/developer/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,7 +1626,7 @@ impl DeveloperRouter {
16261626
})?;
16271627

16281628
let window_titles: Vec<String> =
1629-
windows.into_iter().map(|w| w.title().to_string()).collect();
1629+
windows.into_iter().map(|w| w.title().unwrap_or_default().to_string()).collect();
16301630

16311631
Ok(vec![
16321632
Content::text(format!("Available windows:\n{}", window_titles.join("\n")))
@@ -1797,7 +1797,7 @@ impl DeveloperRouter {
17971797

17981798
let window = windows
17991799
.into_iter()
1800-
.find(|w| w.title() == window_title)
1800+
.find(|w| w.title().unwrap_or_default() == window_title)
18011801
.ok_or_else(|| {
18021802
ErrorData::new(
18031803
ErrorCode::INTERNAL_ERROR,

0 commit comments

Comments
 (0)