Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(modules): link tinyvoice module into the host

Steven Enamakel54dae5785217
diff --git a/Cargo.lock b/Cargo.lock
index 8937cd2d51..d8f6e6c747 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8,7 +8,7 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "46a6a8e90a1d8b96a48249e7c8f5b4058447bea8847280db7bfccb6dcab6b8e1"
dependencies = [
- "core-foundation-sys",
+ "core-foundation-sys 0.8.7",
]
[[package]]
@@ -145,7 +145,7 @@ dependencies = [
"agent-desktop-core",
"base64 0.23.1",
"core-foundation 0.10.1",
- "core-foundation-sys",
+ "core-foundation-sys 0.8.7",
"core-graphics 0.25.0",
"libc",
"rustc-hash",
@@ -766,6 +766,12 @@ dependencies = [
"digest 0.10.7",
]
+[[package]]
+name = "block"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
+
[[package]]
name = "block-buffer"
version = "0.10.4"
@@ -1298,6 +1304,21 @@ version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
+[[package]]
+name = "cocoa"
+version = "0.22.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "667fdc068627a2816b9ff831201dd9864249d6ee8d190b9532357f1fc0f61ea7"
+dependencies = [
+ "bitflags 1.3.2",
+ "block",
+ "core-foundation 0.9.4",
+ "core-graphics 0.21.0",
+ "foreign-types 0.3.2",
+ "libc",
+ "objc",
+]
+
[[package]]
name = "codepage"
version = "0.1.3"
@@ -1545,13 +1566,23 @@ dependencies = [
"url",
]
+[[package]]
+name = "core-foundation"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171"
+dependencies = [
+ "core-foundation-sys 0.7.0",
+ "libc",
+]
+
[[package]]
name = "core-foundation"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
dependencies = [
- "core-foundation-sys",
+ "core-foundation-sys 0.8.7",
"libc",
]
@@ -1561,16 +1592,46 @@ version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
dependencies = [
- "core-foundation-sys",
+ "core-foundation-sys 0.8.7",
"libc",
]
+[[package]]
+name = "core-foundation-sys"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac"
+
[[package]]
name = "core-foundation-sys"
version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
+[[package]]
+name = "core-graphics"
+version = "0.19.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b3889374e6ea6ab25dba90bb5d96202f61108058361f6dc72e8b03e6f8bbe923"
+dependencies = [
+ "bitflags 1.3.2",
+ "core-foundation 0.7.0",
+ "foreign-types 0.3.2",
+ "libc",
+]
+
+[[package]]
+name = "core-graphics"
+version = "0.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52a67c4378cf203eace8fb6567847eb641fd6ff933c1145a115c6ee820ebb978"
+dependencies = [
+ "bitflags 1.3.2",
+ "core-foundation 0.9.4",
+ "foreign-types 0.3.2",
+ "libc",
+]
+
[[package]]
name = "core-graphics"
version = "0.24.0"
@@ -3501,7 +3562,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
dependencies = [
"android_system_properties",
- "core-foundation-sys",
+ "core-foundation-sys 0.8.7",
"iana-time-zone-haiku",
"js-sys",
"log",
@@ -4387,6 +4448,15 @@ dependencies = [
"hashify",
]
+[[package]]
+name = "malloc_buf"
+version = "0.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"
+dependencies = [
+ "libc",
+]
+
[[package]]
name = "matchers"
version = "0.2.0"
@@ -4910,6 +4980,15 @@ dependencies = [
"libc",
]
+[[package]]
+name = "objc"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1"
+dependencies = [
+ "malloc_buf",
+]
+
[[package]]
name = "objc-sys"
version = "0.3.5"
@@ -5551,6 +5630,7 @@ dependencies = [
"tinyjuice-module",
"tinymcp",
"tinysearch",
+ "tinyvoice-module",
"tinywallet-module",
]
@@ -6661,6 +6741,22 @@ dependencies = [
"unicode-width",
]
+[[package]]
+name = "rdev"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "00552ca2dc2f93b84cd7b5581de49549411e4e41d89e1c691bcb93dc4be360c3"
+dependencies = [
+ "cocoa",
+ "core-foundation 0.7.0",
+ "core-foundation-sys 0.7.0",
+ "core-graphics 0.19.2",
+ "lazy_static",
+ "libc",
+ "winapi",
+ "x11",
+]
+
[[package]]
name = "read-fonts"
version = "0.35.0"
@@ -7104,7 +7200,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1167586491e2b18b8bfbb293e8180ec17c201c4f076d7cb3070ca964e7598f98"
dependencies = [
"core-foundation 0.10.1",
- "core-foundation-sys",
+ "core-foundation-sys 0.8.7",
"jni",
"log",
"once_cell",
@@ -7250,7 +7346,7 @@ checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"
dependencies = [
"bitflags 2.13.2",
"core-foundation 0.9.4",
- "core-foundation-sys",
+ "core-foundation-sys 0.8.7",
"libc",
"security-framework-sys",
]
@@ -7263,7 +7359,7 @@ checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
dependencies = [
"bitflags 2.13.2",
"core-foundation 0.10.1",
- "core-foundation-sys",
+ "core-foundation-sys 0.8.7",
"libc",
"security-framework-sys",
]
@@ -7274,7 +7370,7 @@ version = "2.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
dependencies = [
- "core-foundation-sys",
+ "core-foundation-sys 0.8.7",
"libc",
]
@@ -8043,7 +8139,7 @@ version = "0.33.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4fc858248ea01b66f19d8e8a6d55f41deaf91e9d495246fd01368d99935c6c01"
dependencies = [
- "core-foundation-sys",
+ "core-foundation-sys 0.8.7",
"libc",
"memchr",
"ntapi",
@@ -8067,7 +8163,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
dependencies = [
- "core-foundation-sys",
+ "core-foundation-sys 0.8.7",
"libc",
]
@@ -9764,6 +9860,21 @@ version = "1.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
+[[package]]
+name = "tinyvoice"
+version = "0.3.1"
+dependencies = [
+ "cpal",
+ "log",
+ "parking_lot",
+ "rdev",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.20",
+ "tinyvoice-bus",
+ "tokio",
+]
+
[[package]]
name = "tinyvoice-bus"
version = "0.1.4"
@@ -9773,6 +9884,36 @@ dependencies = [
"thiserror 2.0.20",
]
+[[package]]
+name = "tinyvoice-hotkey-win"
+version = "0.1.0"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "tinyvoice-module"
+version = "0.3.1"
+dependencies = [
+ "anyhow",
+ "async-trait",
+ "base64 0.22.1",
+ "getrandom 0.4.3",
+ "rustix 1.1.5",
+ "serde",
+ "serde_json",
+ "tinyagents-harness",
+ "tinyagents-live",
+ "tinybus",
+ "tinybus-module 0.1.5",
+ "tinytools",
+ "tinyvoice",
+ "tinyvoice-bus",
+ "tinyvoice-hotkey-win",
+ "tokio",
+ "x11rb",
+]
+
[[package]]
name = "tinywallet"
version = "0.23.0"
@@ -11715,6 +11856,16 @@ dependencies = [
"tap",
]
+[[package]]
+name = "x11"
+version = "2.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e"
+dependencies = [
+ "libc",
+ "pkg-config",
+]
+
[[package]]
name = "x11rb"
version = "0.13.2"
diff --git a/Cargo.toml b/Cargo.toml
index a52d189cee..e5c83c5583 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -88,6 +88,11 @@ tinyinference-providers = { path = "vendor/tinyagents/vendor/tinyinference/crate
tinyinference-voice = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-voice" }
[patch.crates-io]
+# Module crates name TinyAgents by version (with a nested-path patch of their
+# own for standalone builds); resolve those names to the one copy the host uses.
+tinyagents-live = { path = "vendor/tinyagents/crates/tinyagents-live" }
+tinyagents-harness = { path = "vendor/tinyagents/crates/tinyagents-harness" }
+tinytools = { path = "vendor/tinyagents/vendor/tinytools/crates/tinytools" }
tinybus = { path = "vendor/tinybus/crates/tinybus" }
tinybus-macros = { path = "vendor/tinybus/crates/tinybus-macros" }
tinybus-module = { path = "vendor/tinybus/crates/tinybus-module" }
diff --git a/crates/openhuman-modules-linked/Cargo.toml b/crates/openhuman-modules-linked/Cargo.toml
index 65e3f1108a..25974a9634 100644
--- a/crates/openhuman-modules-linked/Cargo.toml
+++ b/crates/openhuman-modules-linked/Cargo.toml
@@ -53,7 +53,7 @@ tinyhosts = ["dep:tinyhosts"]
tinyjuice = ["dep:tinyjuice-module"]
tinymcp = ["dep:tinymcp"]
tinysearch = ["dep:tinysearch"]
-tinyvoice = []
+tinyvoice = ["dep:tinyvoice-module"]
tinywallet = ["dep:tinywallet-module"]
[dependencies]
@@ -71,6 +71,7 @@ tinyhosts = { path = "../../vendor/tinyhosts", features = ["static-link"], optio
tinyjuice-module = { path = "../../vendor/tinyjuice/crates/tinyjuice-module", features = ["static-link"], optional = true }
tinymcp = { path = "../../vendor/tinymcp/crates/tinymcp", features = ["static-link"], optional = true }
tinysearch = { path = "../../vendor/tinysearch/crates/tinysearch", features = ["static-link"], optional = true }
+tinyvoice-module = { path = "../../vendor/tinyvoice/crates/tinyvoice-module", features = ["static-link"], optional = true }
tinywallet-module = { path = "../../vendor/tinywallet/crates/tinywallet-module", features = ["static-link"], optional = true }
[lints.rust]
diff --git a/vendor/tinyvoice b/vendor/tinyvoice
index add81e3670..14d594889c 160000
--- a/vendor/tinyvoice
+++ b/vendor/tinyvoice
@@ -1 +1 @@
-Subproject commit add81e36706d33e2bca6b472ddcf311fde092605
+Subproject commit 14d594889c6605c65f6d32b0de8665698bb04125