The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(modules): execute accessibility through released Computer contract
Steven Enamakelccdad11ca25a
diff --git a/Cargo.lock b/Cargo.lockindex ea10494a61..6cb561efe4 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -165,7 +165,7 @@ version = "1.1.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"dependencies = [- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -176,7 +176,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"dependencies = ["anstyle","once_cell_polyfill",- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -203,23 +203,6 @@ dependencies = ["derive_arbitrary",]-[[package]]-name = "arboard"-version = "3.6.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0348a1c054491f4bfe6ab86a7b6ab1e44e45d899005de92f58b3df180b36ddaf"-dependencies = [- "clipboard-win",- "log",- "objc2 0.6.4",- "objc2-app-kit 0.3.2",- "objc2-foundation 0.3.2",- "parking_lot",- "percent-encoding",- "windows-sys 0.60.2",- "x11rb",-]-[[package]]name = "argon2"version = "0.5.3"@@ -561,22 +544,13 @@ dependencies = ["hybrid-array",]-[[package]]-name = "block2"-version = "0.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f"-dependencies = [- "objc2 0.5.2",-]-[[package]]name = "block2"version = "0.6.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"dependencies = [- "objc2 0.6.4",+ "objc2",][[package]]@@ -756,7 +730,7 @@ dependencies = ["cap-primitives","cap-std","io-lifetimes 3.0.1",- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -773,7 +747,7 @@ dependencies = ["maybe-owned","rustix","rustix-linux-procfs",- "windows-sys 0.60.2",+ "windows-sys 0.61.2","winx",]@@ -950,15 +924,6 @@ version = "1.1.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"-[[package]]-name = "clipboard-win"-version = "5.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bde03770d3df201d4fb868f2c9c59e66a3e4e2bd06692a0fe701e7103c7e84d4"-dependencies = [- "error-code",-]-[[package]]name = "cmov"version = "0.5.4"@@ -975,7 +940,7 @@ dependencies = ["block","core-foundation 0.9.4","core-graphics 0.21.0",- "foreign-types 0.3.2",+ "foreign-types","libc","objc",]@@ -1206,7 +1171,7 @@ checksum = "b3889374e6ea6ab25dba90bb5d96202f61108058361f6dc72e8b03e6f8bbe923"dependencies = ["bitflags 1.3.2","core-foundation 0.7.0",- "foreign-types 0.3.2",+ "foreign-types","libc",]@@ -1218,31 +1183,7 @@ 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"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1"-dependencies = [- "bitflags 2.13.2",- "core-foundation 0.10.1",- "core-graphics-types",- "foreign-types 0.5.0",- "libc",-]--[[package]]-name = "core-graphics-types"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"-dependencies = [- "bitflags 2.13.2",- "core-foundation 0.10.1",+ "foreign-types","libc",]@@ -1267,7 +1208,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6f02e8d0327b42d3e2e4ab2119af397344eb9fc54a34bf0ddeaa1277af8681f1"dependencies = ["alsa",- "block2 0.6.2",+ "block2","coreaudio-rs","dasp_sample","jni",@@ -1278,13 +1219,13 @@ dependencies = ["ndk-context","num-derive","num-traits",- "objc2 0.6.4",+ "objc2","objc2-audio-toolbox","objc2-avf-audio","objc2-core-audio","objc2-core-audio-types","objc2-core-foundation",- "objc2-foundation 0.3.2",+ "objc2-foundation","web-sys","windows 0.62.2","windows-core 0.62.2",@@ -1752,7 +1693,7 @@ dependencies = ["libc","option-ext","redox_users",- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -1762,8 +1703,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",- "objc2 0.6.4",+ "block2",+ "objc2",][[package]]@@ -1907,25 +1848,6 @@ dependencies = ["tower-service",]-[[package]]-name = "enigo"-version = "0.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0cf6f550bbbdd5fe66f39d429cb2604bcdacbf00dca0f5bbe2e9306a0009b7c6"-dependencies = [- "core-foundation 0.10.1",- "core-graphics 0.24.0",- "foreign-types-shared 0.3.1",- "libc",- "log",- "objc2 0.5.2",- "objc2-app-kit 0.2.2",- "objc2-foundation 0.2.2",- "windows 0.58.0",- "xkbcommon",- "xkeysym",-]-[[package]]name = "enumflags2"version = "0.7.12"@@ -1982,15 +1904,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"dependencies = ["libc",- "windows-sys 0.52.0",+ "windows-sys 0.61.2",]-[[package]]-name = "error-code"-version = "3.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7"-[[package]]name = "euclid"version = "0.22.14"@@ -2184,28 +2100,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"dependencies = [- "foreign-types-shared 0.1.1",-]--[[package]]-name = "foreign-types"-version = "0.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"-dependencies = [- "foreign-types-macros",- "foreign-types-shared 0.3.1",-]--[[package]]-name = "foreign-types-macros"-version = "0.2.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.6",+ "foreign-types-shared",][[package]]@@ -2214,12 +2109,6 @@ version = "0.1.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"-[[package]]-name = "foreign-types-shared"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"-[[package]]name = "form_urlencoded"version = "1.2.2"@@ -2381,16 +2270,6 @@ dependencies = ["zeroize",]-[[package]]-name = "gethostname"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8"-dependencies = [- "rustix",- "windows-link",-]-[[package]]name = "getrandom"version = "0.2.17"@@ -3623,15 +3502,6 @@ version = "2.8.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"-[[package]]-name = "memmap2"-version = "0.9.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d1219ed1b7f229ee7104d281dd01d6802fe28bb6e95d292942c4daacdeb798c0"-dependencies = [- "libc",-]-[[package]]name = "memmem"version = "0.1.1"@@ -3904,7 +3774,7 @@ version = "0.50.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"dependencies = [- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -4052,22 +3922,6 @@ dependencies = ["malloc_buf",]-[[package]]-name = "objc-sys"-version = "0.3.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"--[[package]]-name = "objc2"-version = "0.5.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "46a785d4eeff09c14c487497c162e92766fbb3e4059a71840cecc03d9a50b804"-dependencies = [- "objc-sys",- "objc2-encode",-]-[[package]]name = "objc2"version = "0.6.4"@@ -4077,34 +3931,6 @@ dependencies = ["objc2-encode",]-[[package]]-name = "objc2-app-kit"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff"-dependencies = [- "bitflags 2.13.2",- "block2 0.5.1",- "libc",- "objc2 0.5.2",- "objc2-core-data 0.2.2",- "objc2-core-image 0.2.2",- "objc2-foundation 0.2.2",- "objc2-quartz-core 0.2.2",-]--[[package]]-name = "objc2-app-kit"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"-dependencies = [- "bitflags 2.13.2",- "objc2 0.6.4",- "objc2-core-graphics",- "objc2-foundation 0.3.2",-]-[[package]]name = "objc2-audio-toolbox"version = "0.3.2"@@ -4113,11 +3939,11 @@ checksum = "6948501a91121d6399b79abaa33a8aa4ea7857fe019f341b8c23ad6e81b79b08"dependencies = ["bitflags 2.13.2","libc",- "objc2 0.6.4",+ "objc2","objc2-core-audio","objc2-core-audio-types","objc2-core-foundation",- "objc2-foundation 0.3.2",+ "objc2-foundation",][[package]]@@ -4127,8 +3953,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "13a380031deed8e99db00065c45937da434ca987c034e13b87e4441f9e4090be"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation",][[package]]@@ -4138,8 +3964,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation",][[package]]@@ -4149,10 +3975,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e1eebcea8b0dbff5f7c8504f3107c68fc061a3eb44932051c8cf8a68d969c3b2"dependencies = ["dispatch2",- "objc2 0.6.4",+ "objc2","objc2-core-audio-types","objc2-core-foundation",- "objc2-foundation 0.3.2",+ "objc2-foundation",][[package]]@@ -4162,19 +3988,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5a89f2ec274a0cf4a32642b2991e8b351a404d290da87bb6a9a9d8632490bd1c"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",-]--[[package]]-name = "objc2-core-data"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef"-dependencies = [- "bitflags 2.13.2",- "block2 0.5.1",- "objc2 0.5.2",- "objc2-foundation 0.2.2",+ "objc2",][[package]]@@ -4183,8 +3997,8 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"dependencies = [- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation",][[package]]@@ -4194,10 +4008,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",+ "block2","dispatch2","libc",- "objc2 0.6.4",+ "objc2",][[package]]@@ -4208,31 +4022,19 @@ checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"dependencies = ["bitflags 2.13.2","dispatch2",- "objc2 0.6.4",+ "objc2","objc2-core-foundation","objc2-io-surface",]-[[package]]-name = "objc2-core-image"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80"-dependencies = [- "block2 0.5.1",- "objc2 0.5.2",- "objc2-foundation 0.2.2",- "objc2-metal",-]-[[package]]name = "objc2-core-image"version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"dependencies = [- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation",][[package]]@@ -4241,8 +4043,8 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"dependencies = [- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation",][[package]]@@ -4252,7 +4054,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",+ "objc2","objc2-core-foundation","objc2-core-graphics",]@@ -4263,18 +4065,6 @@ version = "4.1.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"-[[package]]-name = "objc2-foundation"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"-dependencies = [- "bitflags 2.13.2",- "block2 0.5.1",- "libc",- "objc2 0.5.2",-]-[[package]]name = "objc2-foundation"version = "0.3.2"@@ -4282,9 +4072,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",+ "block2","libc",- "objc2 0.6.4",+ "objc2","objc2-core-foundation",]@@ -4295,10 +4085,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "33fafba39597d6dc1fb709123dfa8289d39406734be322956a69f0931c73bb15"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",+ "block2","dispatch2","libc",- "objc2 0.6.4",+ "objc2","objc2-core-foundation",]@@ -4309,35 +4099,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",+ "objc2","objc2-core-foundation",]-[[package]]-name = "objc2-metal"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"-dependencies = [- "bitflags 2.13.2",- "block2 0.5.1",- "objc2 0.5.2",- "objc2-foundation 0.2.2",-]--[[package]]-name = "objc2-quartz-core"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"-dependencies = [- "bitflags 2.13.2",- "block2 0.5.1",- "objc2 0.5.2",- "objc2-foundation 0.2.2",- "objc2-metal",-]-[[package]]name = "objc2-quartz-core"version = "0.3.2"@@ -4345,9 +4110,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",+ "objc2","objc2-core-foundation",- "objc2-foundation 0.3.2",+ "objc2-foundation",][[package]]@@ -4357,17 +4122,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",- "objc2 0.6.4",+ "block2",+ "objc2","objc2-cloud-kit",- "objc2-core-data 0.3.2",+ "objc2-core-data","objc2-core-foundation","objc2-core-graphics",- "objc2-core-image 0.3.2",+ "objc2-core-image","objc2-core-location","objc2-core-text",- "objc2-foundation 0.3.2",- "objc2-quartz-core 0.3.2",+ "objc2-foundation",+ "objc2-quartz-core","objc2-user-notifications",]@@ -4377,8 +4142,8 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"dependencies = [- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation",][[package]]@@ -4482,7 +4247,6 @@ dependencies = ["tinychannels","tinychannels-bus","tinychannels-runtime",- "tinycomputer-accessibility","tinycomputer-bus","tinyconnectors-bus","tinydocs-bus",@@ -4726,7 +4490,7 @@ checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45"dependencies = ["bitflags 2.13.2","cfg-if",- "foreign-types 0.3.2",+ "foreign-types","libc","openssl-macros","openssl-sys",@@ -4785,8 +4549,8 @@ dependencies = ["android_system_properties","log","nix 0.31.3",- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation","objc2-ui-kit","serde","windows-sys 0.61.2",@@ -5301,7 +5065,7 @@ dependencies = ["once_cell","socket2","tracing",- "windows-sys 0.52.0",+ "windows-sys 0.61.2",][[package]]@@ -5834,7 +5598,7 @@ dependencies = ["errno","libc","linux-raw-sys",- "windows-sys 0.52.0",+ "windows-sys 0.61.2",][[package]]@@ -5902,7 +5666,7 @@ dependencies = ["security-framework 3.7.0","security-framework-sys","webpki-root-certs",- "windows-sys 0.52.0",+ "windows-sys 0.61.2",][[package]]@@ -6482,7 +6246,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"dependencies = ["libc",- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -6779,10 +6543,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"dependencies = ["fastrand",- "getrandom 0.3.4",+ "getrandom 0.4.3","once_cell","rustix",- "windows-sys 0.52.0",+ "windows-sys 0.61.2",][[package]]@@ -6795,7 +6559,7 @@ dependencies = ["parking_lot","rustix","signal-hook",- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -7268,25 +7032,13 @@ dependencies = ["uuid",]-[[package]]-name = "tinycomputer-accessibility"-version = "0.10.1"-dependencies = [- "arboard",- "cpal",- "enigo",- "log",- "serde",- "serde_json",- "thiserror 2.0.20",-]-[[package]]name = "tinycomputer-bus"-version = "0.10.1"+version = "0.11.0"dependencies = ["serde","serde_json",+ "thiserror 2.0.20",][[package]]@@ -9123,7 +8875,7 @@ version = "0.1.11"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"dependencies = [- "windows-sys 0.52.0",+ "windows-sys 0.61.2",][[package]]@@ -9142,16 +8894,6 @@ dependencies = ["windows-targets 0.52.6",]-[[package]]-name = "windows"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6"-dependencies = [- "windows-core 0.58.0",- "windows-targets 0.52.6",-]-[[package]]name = "windows"version = "0.62.2"@@ -9183,30 +8925,17 @@ dependencies = ["windows-targets 0.52.6",]-[[package]]-name = "windows-core"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"-dependencies = [- "windows-implement 0.58.0",- "windows-interface 0.58.0",- "windows-result 0.2.0",- "windows-strings 0.1.0",- "windows-targets 0.52.6",-]-[[package]]name = "windows-core"version = "0.62.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"dependencies = [- "windows-implement 0.60.2",- "windows-interface 0.59.3",+ "windows-implement",+ "windows-interface","windows-link","windows-result 0.4.1",- "windows-strings 0.5.1",+ "windows-strings",][[package]]@@ -9220,17 +8949,6 @@ dependencies = ["windows-threading",]-[[package]]-name = "windows-implement"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]-[[package]]name = "windows-implement"version = "0.60.2"@@ -9242,17 +8960,6 @@ dependencies = ["syn 2.0.119",]-[[package]]-name = "windows-interface"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]-[[package]]name = "windows-interface"version = "0.59.3"@@ -9288,7 +8995,7 @@ checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"dependencies = ["windows-link","windows-result 0.4.1",- "windows-strings 0.5.1",+ "windows-strings",][[package]]@@ -9300,15 +9007,6 @@ dependencies = ["windows-targets 0.52.6",]-[[package]]-name = "windows-result"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"-dependencies = [- "windows-targets 0.52.6",-]-[[package]]name = "windows-result"version = "0.4.1"@@ -9318,16 +9016,6 @@ dependencies = ["windows-link",]-[[package]]-name = "windows-strings"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"-dependencies = [- "windows-result 0.2.0",- "windows-targets 0.52.6",-]-[[package]]name = "windows-strings"version = "0.5.1"@@ -9584,23 +9272,6 @@ dependencies = ["pkg-config",]-[[package]]-name = "x11rb"-version = "0.13.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414"-dependencies = [- "gethostname",- "rustix",- "x11rb-protocol",-]--[[package]]-name = "x11rb-protocol"-version = "0.13.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd"-[[package]]name = "x25519-dalek"version = "2.0.1"@@ -9634,23 +9305,6 @@ dependencies = ["rustix",]-[[package]]-name = "xkbcommon"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8d66ca9352cbd4eecbbc40871d8a11b4ac8107cfc528a6e14d7c19c69d0e1ac9"-dependencies = [- "libc",- "memmap2",- "xkeysym",-]--[[package]]-name = "xkeysym"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56"-[[package]]name = "yoke"version = "0.8.3"diff --git a/crates/openhuman-app/Cargo.lock b/crates/openhuman-app/Cargo.lockindex b6fc13ed8e..be33d6a93c 100644--- a/crates/openhuman-app/Cargo.lock+++ b/crates/openhuman-app/Cargo.lock@@ -133,23 +133,6 @@ dependencies = ["derive_arbitrary",]-[[package]]-name = "arboard"-version = "3.6.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0348a1c054491f4bfe6ab86a7b6ab1e44e45d899005de92f58b3df180b36ddaf"-dependencies = [- "clipboard-win",- "log",- "objc2 0.6.4",- "objc2-app-kit 0.3.2",- "objc2-foundation 0.3.2",- "parking_lot",- "percent-encoding",- "windows-sys 0.60.2",- "x11rb",-]-[[package]]name = "argon2"version = "0.5.3"@@ -568,22 +551,13 @@ dependencies = ["hybrid-array",]-[[package]]-name = "block2"-version = "0.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f"-dependencies = [- "objc2 0.5.2",-]-[[package]]name = "block2"version = "0.6.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"dependencies = [- "objc2 0.6.4",+ "objc2",][[package]]@@ -887,15 +861,6 @@ dependencies = ["zeroize",]-[[package]]-name = "clipboard-win"-version = "5.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bde03770d3df201d4fb868f2c9c59e66a3e4e2bd06692a0fe701e7103c7e84d4"-dependencies = [- "error-code",-]-[[package]]name = "cmov"version = "0.5.4"@@ -1054,19 +1019,6 @@ dependencies = ["libc",]-[[package]]-name = "core-graphics"-version = "0.24.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1"-dependencies = [- "bitflags 2.13.2",- "core-foundation 0.10.1",- "core-graphics-types",- "foreign-types 0.5.0",- "libc",-]-[[package]]name = "core-graphics"version = "0.25.0"@@ -1112,7 +1064,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6f02e8d0327b42d3e2e4ab2119af397344eb9fc54a34bf0ddeaa1277af8681f1"dependencies = ["alsa",- "block2 0.6.2",+ "block2","coreaudio-rs","dasp_sample","jni 0.22.4",@@ -1123,13 +1075,13 @@ dependencies = ["ndk-context","num-derive","num-traits",- "objc2 0.6.4",+ "objc2","objc2-audio-toolbox","objc2-avf-audio","objc2-core-audio","objc2-core-audio-types","objc2-core-foundation",- "objc2-foundation 0.3.2",+ "objc2-foundation","web-sys","windows 0.62.2","windows-core 0.62.2",@@ -1537,9 +1489,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",+ "block2","libc",- "objc2 0.6.4",+ "objc2",][[package]]@@ -1750,25 +1702,6 @@ dependencies = ["tower-service",]-[[package]]-name = "enigo"-version = "0.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0cf6f550bbbdd5fe66f39d429cb2604bcdacbf00dca0f5bbe2e9306a0009b7c6"-dependencies = [- "core-foundation 0.10.1",- "core-graphics 0.24.0",- "foreign-types-shared 0.3.1",- "libc",- "log",- "objc2 0.5.2",- "objc2-app-kit 0.2.2",- "objc2-foundation 0.2.2",- "windows 0.58.0",- "xkbcommon",- "xkeysym",-]-[[package]]name = "enumflags2"version = "0.7.12"@@ -1817,12 +1750,6 @@ dependencies = ["windows-sys 0.52.0",]-[[package]]-name = "error-code"-version = "3.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7"-[[package]]name = "event-listener"version = "2.5.3"@@ -2418,8 +2345,8 @@ checksum = "8c386b0a4a70cb2d39fffd74480f985b6f0bfbcb934b6a6b6b7e630e448f242e"dependencies = ["crossbeam-channel","keyboard-types",- "objc2 0.6.4",- "objc2-app-kit 0.3.2",+ "objc2",+ "objc2-app-kit","once_cell","serde","thiserror 2.0.20",@@ -3516,8 +3443,8 @@ checksum = "fd604973958ddcc11b561193c0fb96ba146506ef2f231ef2e7c35fd2cbc9beca"dependencies = ["cc","log",- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation","time","uuid",]@@ -3590,15 +3517,6 @@ version = "2.8.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"-[[package]]-name = "memmap2"-version = "0.9.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d1219ed1b7f229ee7104d281dd01d6802fe28bb6e95d292942c4daacdeb798c0"-dependencies = [- "libc",-]-[[package]]name = "memoffset"version = "0.9.1"@@ -3677,10 +3595,10 @@ dependencies = ["dpi","gtk","keyboard-types",- "objc2 0.6.4",- "objc2-app-kit 0.3.2",+ "objc2",+ "objc2-app-kit","objc2-core-foundation",- "objc2-foundation 0.3.2",+ "objc2-foundation","once_cell","png 0.18.1","serde",@@ -3932,22 +3850,6 @@ dependencies = ["malloc_buf",]-[[package]]-name = "objc-sys"-version = "0.3.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"--[[package]]-name = "objc2"-version = "0.5.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "46a785d4eeff09c14c487497c162e92766fbb3e4059a71840cecc03d9a50b804"-dependencies = [- "objc-sys",- "objc2-encode",-]-[[package]]name = "objc2"version = "0.6.4"@@ -3958,22 +3860,6 @@ dependencies = ["objc2-exception-helper",]-[[package]]-name = "objc2-app-kit"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff"-dependencies = [- "bitflags 2.13.2",- "block2 0.5.1",- "libc",- "objc2 0.5.2",- "objc2-core-data 0.2.2",- "objc2-core-image 0.2.2",- "objc2-foundation 0.2.2",- "objc2-quartz-core 0.2.2",-]-[[package]]name = "objc2-app-kit"version = "0.3.2"@@ -3981,18 +3867,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",+ "block2","libc",- "objc2 0.6.4",+ "objc2","objc2-cloud-kit",- "objc2-core-data 0.3.2",+ "objc2-core-data","objc2-core-foundation","objc2-core-graphics",- "objc2-core-image 0.3.2",+ "objc2-core-image","objc2-core-text","objc2-core-video",- "objc2-foundation 0.3.2",- "objc2-quartz-core 0.3.2",+ "objc2-foundation",+ "objc2-quartz-core",][[package]]@@ -4003,11 +3889,11 @@ checksum = "6948501a91121d6399b79abaa33a8aa4ea7857fe019f341b8c23ad6e81b79b08"dependencies = ["bitflags 2.13.2","libc",- "objc2 0.6.4",+ "objc2","objc2-core-audio","objc2-core-audio-types","objc2-core-foundation",- "objc2-foundation 0.3.2",+ "objc2-foundation",][[package]]@@ -4017,8 +3903,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "13a380031deed8e99db00065c45937da434ca987c034e13b87e4441f9e4090be"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation",][[package]]@@ -4028,8 +3914,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation",][[package]]@@ -4039,10 +3925,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e1eebcea8b0dbff5f7c8504f3107c68fc061a3eb44932051c8cf8a68d969c3b2"dependencies = ["dispatch2",- "objc2 0.6.4",+ "objc2","objc2-core-audio-types","objc2-core-foundation",- "objc2-foundation 0.3.2",+ "objc2-foundation",][[package]]@@ -4052,19 +3938,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5a89f2ec274a0cf4a32642b2991e8b351a404d290da87bb6a9a9d8632490bd1c"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",-]--[[package]]-name = "objc2-core-data"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef"-dependencies = [- "bitflags 2.13.2",- "block2 0.5.1",- "objc2 0.5.2",- "objc2-foundation 0.2.2",+ "objc2",][[package]]@@ -4074,8 +3948,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation",][[package]]@@ -4085,10 +3959,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",+ "block2","dispatch2","libc",- "objc2 0.6.4",+ "objc2",][[package]]@@ -4099,31 +3973,19 @@ checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"dependencies = ["bitflags 2.13.2","dispatch2",- "objc2 0.6.4",+ "objc2","objc2-core-foundation","objc2-io-surface",]-[[package]]-name = "objc2-core-image"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80"-dependencies = [- "block2 0.5.1",- "objc2 0.5.2",- "objc2-foundation 0.2.2",- "objc2-metal",-]-[[package]]name = "objc2-core-image"version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"dependencies = [- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation",][[package]]@@ -4132,8 +3994,8 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"dependencies = [- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation",][[package]]@@ -4143,7 +4005,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",+ "objc2","objc2-core-foundation","objc2-core-graphics",]@@ -4155,7 +4017,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",+ "objc2","objc2-core-foundation","objc2-core-graphics","objc2-io-surface",@@ -4176,18 +4038,6 @@ dependencies = ["cc",]-[[package]]-name = "objc2-foundation"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"-dependencies = [- "bitflags 2.13.2",- "block2 0.5.1",- "libc",- "objc2 0.5.2",-]-[[package]]name = "objc2-foundation"version = "0.3.2"@@ -4195,9 +4045,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",+ "block2","libc",- "objc2 0.6.4",+ "objc2","objc2-core-foundation",]@@ -4208,10 +4058,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "33fafba39597d6dc1fb709123dfa8289d39406734be322956a69f0931c73bb15"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",+ "block2","dispatch2","libc",- "objc2 0.6.4",+ "objc2","objc2-core-foundation",]@@ -4222,7 +4072,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",+ "objc2","objc2-core-foundation",]@@ -4232,22 +4082,10 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2a1e6550c4caed348956ce3370c9ffeca70bb1dbed4fa96112e7c6170e074586"dependencies = [- "objc2 0.6.4",+ "objc2","objc2-core-foundation",]-[[package]]-name = "objc2-metal"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"-dependencies = [- "bitflags 2.13.2",- "block2 0.5.1",- "objc2 0.5.2",- "objc2-foundation 0.2.2",-]-[[package]]name = "objc2-osa-kit"version = "0.3.2"@@ -4255,22 +4093,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f112d1746737b0da274ef79a23aac283376f335f4095a083a267a082f21db0c0"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",- "objc2-app-kit 0.3.2",- "objc2-foundation 0.3.2",-]--[[package]]-name = "objc2-quartz-core"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"-dependencies = [- "bitflags 2.13.2",- "block2 0.5.1",- "objc2 0.5.2",- "objc2-foundation 0.2.2",- "objc2-metal",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation",][[package]]@@ -4280,9 +4105,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",+ "objc2","objc2-core-foundation",- "objc2-foundation 0.3.2",+ "objc2-foundation",][[package]]@@ -4292,7 +4117,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "709fe137109bd1e8b5a99390f77a7d8b2961dafc1a1c5db8f2e60329ad6d895a"dependencies = ["bitflags 2.13.2",- "objc2 0.6.4",+ "objc2","objc2-core-foundation",]@@ -4303,17 +4128,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",- "objc2 0.6.4",+ "block2",+ "objc2","objc2-cloud-kit",- "objc2-core-data 0.3.2",+ "objc2-core-data","objc2-core-foundation","objc2-core-graphics",- "objc2-core-image 0.3.2",+ "objc2-core-image","objc2-core-location","objc2-core-text",- "objc2-foundation 0.3.2",- "objc2-quartz-core 0.3.2",+ "objc2-foundation",+ "objc2-quartz-core","objc2-user-notifications",]@@ -4324,10 +4149,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",- "objc2 0.6.4",+ "block2",+ "objc2","objc2-core-location",- "objc2-foundation 0.3.2",+ "objc2-foundation",][[package]]@@ -4337,11 +4162,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",- "objc2 0.6.4",- "objc2-app-kit 0.3.2",+ "block2",+ "objc2",+ "objc2-app-kit","objc2-core-foundation",- "objc2-foundation 0.3.2",+ "objc2-foundation","objc2-javascript-core","objc2-security",]@@ -4446,7 +4271,6 @@ dependencies = ["tinychannels","tinychannels-bus","tinychannels-runtime",- "tinycomputer-accessibility","tinycomputer-bus","tinyconnectors-bus","tinydocs-bus",@@ -4506,15 +4330,15 @@ version = "0.64.15"dependencies = ["anyhow","async-trait",- "block2 0.6.2",+ "block2","chrono","directories 5.0.1","hex","log","nix 0.29.0",- "objc2 0.6.4",- "objc2-app-kit 0.3.2",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation","objc2-user-notifications","objc2-web-kit","openhuman-rpc",@@ -4708,8 +4532,8 @@ dependencies = ["android_system_properties","log","nix 0.31.3",- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation","objc2-ui-kit","serde","windows-sys 0.61.2",@@ -4721,8 +4545,8 @@ version = "0.3.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "732c71caeaa72c065bb69d7ea08717bd3f4863a4f451402fc9513e29dbd5261b"dependencies = [- "objc2 0.6.4",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-foundation","objc2-osa-kit","serde","serde_json",@@ -5576,17 +5400,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ef2bee61e6cffa4635c72d7d81a84294e28f0930db0ddcb0f66d10244674ebed"dependencies = ["ashpd",- "block2 0.6.2",+ "block2","dispatch2","glib-sys","gobject-sys","gtk-sys","js-sys","log",- "objc2 0.6.4",- "objc2-app-kit 0.3.2",+ "objc2",+ "objc2-app-kit","objc2-core-foundation",- "objc2-foundation 0.3.2",+ "objc2-foundation","raw-window-handle","wasm-bindgen","wasm-bindgen-futures",@@ -6438,11 +6262,11 @@ dependencies = ["bytemuck","js-sys","ndk",- "objc2 0.6.4",+ "objc2","objc2-core-foundation","objc2-core-graphics",- "objc2-foundation 0.3.2",- "objc2-quartz-core 0.3.2",+ "objc2-foundation",+ "objc2-quartz-core","raw-window-handle","redox_syscall","tracing",@@ -6712,7 +6536,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d1c93047acf68669466a34690ac58cca7010bd1b201e1ec86f1fd0a75d3dd4a9"dependencies = ["bitflags 2.13.2",- "block2 0.6.2",+ "block2","core-foundation 0.10.1","core-graphics 0.25.0","crossbeam-channel",@@ -6726,9 +6550,9 @@ dependencies = ["log","ndk","ndk-sys",- "objc2 0.6.4",- "objc2-app-kit 0.3.2",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation","objc2-ui-kit","once_cell","parking_lot",@@ -6793,9 +6617,9 @@ dependencies = ["log","mime","muda",- "objc2 0.6.4",- "objc2-app-kit 0.3.2",- "objc2-foundation 0.3.2",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation","objc2-ui-kit","objc2-web-kit","percent-encoding",@@ -6962,8 +6786,8 @@ checksum = "60d60366174b745b4ef5824b8bbc1c457fd08f0ce101ff643c0a49181a9f4e91"dependencies = ["dunce","glob",- "objc2-app-kit 0.3.2",- "objc2-foundation 0.3.2",+ "objc2-app-kit",+ "objc2-foundation","open","schemars 0.8.22","serde",@@ -7037,7 +6861,7 @@ dependencies = ["gtk","http","jni 0.21.1",- "objc2 0.6.4",+ "objc2","objc2-ui-kit","objc2-web-kit","raw-window-handle",@@ -7061,8 +6885,8 @@ dependencies = ["http","jni 0.21.1","log",- "objc2 0.6.4",- "objc2-app-kit 0.3.2",+ "objc2",+ "objc2-app-kit","once_cell","percent-encoding","raw-window-handle",@@ -7577,25 +7401,13 @@ dependencies = ["uuid",]-[[package]]-name = "tinycomputer-accessibility"-version = "0.10.1"-dependencies = [- "arboard",- "cpal",- "enigo",- "log",- "serde",- "serde_json",- "thiserror 2.0.20",-]-[[package]]name = "tinycomputer-bus"-version = "0.10.1"+version = "0.11.0"dependencies = ["serde","serde_json",+ "thiserror 2.0.20",][[package]]@@ -8614,11 +8426,11 @@ dependencies = ["dirs 6.0.0","libappindicator","muda",- "objc2 0.6.4",- "objc2-app-kit 0.3.2",+ "objc2",+ "objc2-app-kit","objc2-core-foundation","objc2-core-graphics",- "objc2-foundation 0.3.2",+ "objc2-foundation","once_cell","png 0.18.1","serde",@@ -9332,10 +9144,10 @@ version = "0.6.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c"dependencies = [- "objc2 0.6.4",- "objc2-app-kit 0.3.2",+ "objc2",+ "objc2-app-kit","objc2-core-foundation",- "objc2-foundation 0.3.2",+ "objc2-foundation","raw-window-handle","windows-sys 0.59.0","windows-version",@@ -9351,16 +9163,6 @@ dependencies = ["windows-targets 0.52.6",]-[[package]]-name = "windows"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6"-dependencies = [- "windows-core 0.58.0",- "windows-targets 0.52.6",-]-[[package]]name = "windows"version = "0.61.3"@@ -9416,19 +9218,6 @@ dependencies = ["windows-targets 0.52.6",]-[[package]]-name = "windows-core"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"-dependencies = [- "windows-implement 0.58.0",- "windows-interface 0.58.0",- "windows-result 0.2.0",- "windows-strings 0.1.0",- "windows-targets 0.52.6",-]-[[package]]name = "windows-core"version = "0.61.2"@@ -9488,17 +9277,6 @@ dependencies = ["syn 2.0.119",]-[[package]]-name = "windows-implement"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]-[[package]]name = "windows-implement"version = "0.60.2"@@ -9521,17 +9299,6 @@ dependencies = ["syn 2.0.119",]-[[package]]-name = "windows-interface"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]-[[package]]name = "windows-interface"version = "0.59.3"@@ -9595,15 +9362,6 @@ dependencies = ["windows-targets 0.52.6",]-[[package]]-name = "windows-result"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"-dependencies = [- "windows-targets 0.52.6",-]-[[package]]name = "windows-result"version = "0.3.4"@@ -9622,16 +9380,6 @@ dependencies = ["windows-link 0.2.1",]-[[package]]-name = "windows-strings"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"-dependencies = [- "windows-result 0.2.0",- "windows-targets 0.52.6",-]-[[package]]name = "windows-strings"version = "0.4.2"@@ -10040,7 +9788,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "186f9871daa55fd9c016578b810d149de58367113db7fb72b462d2323ce19514"dependencies = ["base64 0.22.1",- "block2 0.6.2",+ "block2","cookie","crossbeam-channel","dirs 6.0.0",@@ -10053,10 +9801,10 @@ dependencies = ["jni 0.21.1","libc","ndk",- "objc2 0.6.4",- "objc2-app-kit 0.3.2",+ "objc2",+ "objc2-app-kit","objc2-core-foundation",- "objc2-foundation 0.3.2",+ "objc2-foundation","objc2-ui-kit","objc2-web-kit","once_cell",@@ -10124,17 +9872,6 @@ dependencies = ["rustix",]-[[package]]-name = "xkbcommon"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8d66ca9352cbd4eecbbc40871d8a11b4ac8107cfc528a6e14d7c19c69d0e1ac9"-dependencies = [- "libc",- "memmap2",- "xkeysym",-]-[[package]]name = "xkeysym"version = "0.2.1"diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.tomlindex fae3ef7afb..7a3749a877 100644--- a/crates/openhuman-core/Cargo.toml+++ b/crates/openhuman-core/Cargo.toml@@ -296,13 +296,6 @@ tinysearch-bus = { path = "../../vendor/tinysearch/crates/tinysearch-bus" }# Registry vocabulary is available even when the loader is disabled, so the# pre-core client can identify and report an unavailable module safely.tinycomputer-bus = { path = "../../vendor/tinycomputer/crates/tinycomputer-bus" }-# Desktop accessibility middleware, linked as a plain library (not through the-# tinycomputer module): the voice pipeline needs focus lookup, paste validation,-# permission checks and the Globe key synchronously and in-process. Deps are-# serde, serde_json and log; `cpal` only via the `inference` gate. The-# submodule pin sits on `oh-accessibility-on-v0.7.0` (v0.7.0 + this crate) — see-# scripts/ci/module-pin-exemptions.json.-tinycomputer-accessibility = { path = "../../vendor/tinycomputer/crates/tinycomputer-accessibility" }# Portable skill metadata, parsing, discovery, and filesystem hardening.tinyskills = { path = "../../vendor/tinyskills/crates/tinyskills" }serde = { version = "1", features = ["derive"] }@@ -693,24 +686,9 @@ default = ["media", "skills", "flows", "mcp", "channels", "http-server", "schedu# TinyMCP HTTP serving is kept optional with the rest of this server surface.# Keep vendor/tinymcp pinned to a revision that defines `server-http`.http-server = ["dep:axum", "tinymcp/server-http"]-# Local audio-device access: the accessibility microphone-permission probe-# (which links `cpal`). The capture stack for voice recording itself is the-# `tinyvoice` library's `capture` feature, enabled by `voice` below. Default-ON. Slim /-# headless builds opt out via `--no-default-features --features "<explicit list-# without inference>"`, which drops the exclusive `cpal` dependency; the-# microphone probe then reports `Unknown`. `voice` requires this gate, so-# building `voice` always pulls `inference` in transitively.-#-# NOTE ON THE NAME (do not "fix" it to `audio`): this gate used to cover the-# bundled whisper.cpp STT engine (`whisper-rs` + the `whisper-rs-sys` CRT-# patch) as well. That engine is gone — STT is now cloud/engine-configurable-# only (`voice_server.stt_engine`, `voice::factory`) — so `cpal` is all that is-# left behind the gate. The gate name stays `inference` because it is forwarded-# by name from `crates/openhuman-app/Cargo.toml`, asserted by `INFERENCE_COMPILED_IN`,-# and referenced from `tinycomputer-accessibility`'s `microphone-probe` feature (forwarded below); renaming it buys-# nothing and would silently drop the microphone probe from the shipped app if-# the forwarding list were not updated in lockstep.-inference = ["tinycomputer-accessibility/microphone-probe"]+# The public inference gate is retained for host feature compatibility.+# Native permission probes execute through the TinyComputer module.+inference = ["modules"]# Office-document tools: the `generate_document` and `generate_presentation`# agent tools, plus PDF text extraction during multimodal file ingest.# Default-ON.@@ -776,13 +754,8 @@ modules = ["tinybus/modules"]# feature narrows the compile-time surface, `DomainSet` gates it at runtime.# Requires `inference` (the microphone-permission probe), so enabling `voice` turns# `inference` on transitively.-# `arboard`/`enigo` (now behind `tinycomputer-accessibility/paste`) and `tinyvoice` (the `rdev` hotkey listener) join here rather than getting their own gate: their-# only call sites are `tinycomputer_accessibility::paste` (clipboard + synthetic keystrokes to-# insert a dictated transcript) and `voice::hotkey` (the global push-to-talk-# listener), both already `#[cfg(feature = "voice")]`, and nothing outside-# `voice/` reaches them. Worth 17 crates — the largest single shed in the wave —-# because `arboard` alone drags an X11/wayland clipboard stack (11 crates) into-# any build that just wants workflow execution.+# Device capture and hotkeys are owned by TinyVoice. Native text insertion+# and permissions execute through the TinyComputer contract.voice = ["inference",# Wake-word gating, command routing and hallucination detection run in the@@ -795,9 +768,6 @@ voice = [# only — `serde` and nothing else."dep:tinyvoice-bus","dep:lettre",- # `voice::server` inserts dictated text through `tinycomputer_accessibility::paste`- # (clipboard + synthetic keystrokes: `arboard`/`enigo` live behind that feature).- "tinycomputer-accessibility/paste","dep:tinyvoice",# `audio_toolkit::ops` delivers generated podcasts through tinychannels'# EmailChannel, so the provider — and therefore the implementation crate —diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rsindex 725344a11e..3b25057bed 100644--- a/crates/openhuman-core/src/core/all_tests.rs+++ b/crates/openhuman-core/src/core/all_tests.rs@@ -243,21 +243,11 @@ fn inference_engine_compiled_in_when_feature_on() {const { assert!(crate::inference::INFERENCE_COMPILED_IN) };}-/// With the `inference` feature off, the marker flips and `cpal` leaves the-/// dependency graph. The observable effect is the microphone-permission probe:-/// it reports `Unknown` rather than a real verdict, because there is no-/// audio-device API compiled in to ask. Speech-to-text is unaffected in either-/// direction — it is a hosted HTTP call now, not an in-process engine.+/// The host marker follows the inference gate without linking audio-device code.#[test]#[cfg(not(feature = "inference"))]fn inference_engine_compiled_out_when_feature_off() {- use tinycomputer_accessibility::{detect_microphone_permission, PermissionState};const { assert!(!crate::inference::INFERENCE_COMPILED_IN) };- assert_eq!(- detect_microphone_permission(),- PermissionState::Unknown,- "without `inference` there is no audio-device API to probe"- );}/// With the `skills` feature on (the default), all three skill domains arediff --git a/crates/openhuman-core/src/desktop/README.md b/crates/openhuman-core/src/desktop/README.mdindex 980aa9dddb..74a4361b59 100644--- a/crates/openhuman-core/src/desktop/README.md+++ b/crates/openhuman-core/src/desktop/README.md@@ -118,7 +118,7 @@ Method names are `openhuman.<namespace>_<function>`.[`crates/openhuman-app/src/notch_window.rs`](../../../openhuman-app/src/notch_window.rs).- Socket.IO forwarding belongs to [`crates/openhuman-rpc/src/server/socketio.rs`](../../../openhuman-rpc/src/server/socketio.rs).- OS accessibility (AX and IOKit FFI, the Swift helper, focus, permissions,- the Globe key) belongs to the `tinycomputer-accessibility` crate in+ the Globe key) executes inside the compiled TinyComputer module in[`vendor/tinycomputer`](../../../../vendor/tinycomputer/) (upstream `tinyhumansai/tinycomputer`). Desktopobservation, interaction, and Jev-driven goals belong to the `tinycomputer`module; this folder calls it through `tinycomputer-bus`.diff --git a/crates/openhuman-core/src/desktop/mod.rs b/crates/openhuman-core/src/desktop/mod.rsindex 534eca9a4f..84d942ca06 100644--- a/crates/openhuman-core/src/desktop/mod.rs+++ b/crates/openhuman-core/src/desktop/mod.rs@@ -10,11 +10,9 @@//! - [`overlay`] — the desktop overlay window surface//! - [`provider_surfaces`] — per-provider UI surface descriptors//!-//! OS accessibility (AX/IOKit FFI, focus, permissions, Globe key) lives in the-//! `tinycomputer-accessibility` library crate (`vendor/tinycomputer`), linked-//! directly by the `voice` family; its `cpal` microphone probe rides the-//! `inference` gate. Not yet gated: the modules below are ungated. See-//! `docs/specs/2026-08-02-core-kernel-domain-reorg.md`.+//! OS accessibility (focus, permissions, paste and Globe listeners) executes+//! inside TinyComputer through its minimal bus contract. The modules below+//! remain ungated. See `docs/specs/2026-08-02-core-kernel-domain-reorg.md`.pub mod app_state;#[cfg(feature = "modules")]diff --git a/crates/openhuman-core/src/modules/README.md b/crates/openhuman-core/src/modules/README.mdindex 5e7f886236..e9e94e0336 100644--- a/crates/openhuman-core/src/modules/README.md+++ b/crates/openhuman-core/src/modules/README.md@@ -8,7 +8,7 @@ binary: `tinycomputer`, `tinysearch`, `tinydocs`, `tinywallet`, `tinyjuice`,GitHub release, checks it against a digest compiled into this crate, letstinybus admit it, attaches it to a private in-process broker, and then callsit like any other bus service. Domains reach a module through the per-module-host files here ([`documents.rs`](./documents.rs), [`wallet.rs`](./wallet.rs), [`voice.rs`](./voice.rs), ...) rather than+host files here ([`documents.rs`](./documents.rs), [`wallet.rs`](./wallet.rs), [`voice.rs`](./voice.rs), [`accessibility.rs`](./accessibility.rs), ...) rather thantalking to tinybus themselves.The `//!` comments in [`mod.rs`](mod.rs), [`host.rs`](host.rs) anddiff --git a/crates/openhuman-core/src/modules/accessibility.rs b/crates/openhuman-core/src/modules/accessibility.rsnew file mode 100644index 0000000000..0835a2f148--- /dev/null+++ b/crates/openhuman-core/src/modules/accessibility.rs@@ -0,0 +1,184 @@+//! Native permissions, focus and listener operations through TinyComputer.++use serde::{de::DeserializeOwned, Serialize};+use tinycomputer_bus::{names::accessibility as methods, DesktopError, DesktopResponse};++use super::client::{ModuleCallError, ModuleClient};+use crate::config::Config;++pub use tinycomputer_bus::accessibility::{+ FocusQuery, FocusTarget, FocusedTextContext, GlobeBatch, GlobeHandle, GlobeHotkeyStatus,+ GlobeRead, GlobeStarted, PasteRequest, PermissionKind, PermissionState, PermissionStatus,+};++const MODULE: &str = "tinycomputer";++/// A transport failure or the module's structured native refusal.+#[derive(Debug)]+pub enum AccessibilityError {+ Bus(ModuleCallError),+ Operation(DesktopError),+}++impl std::fmt::Display for AccessibilityError {+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {+ match self {+ Self::Bus(error) => error.fmt(f),+ Self::Operation(error) => f.write_str(&error.message),+ }+ }+}+impl std::error::Error for AccessibilityError {}++/// Explicit configuration over the process-wide lazy module loader.+#[derive(Clone)]+pub struct AccessibilityClient {+ client: ModuleClient,+}++impl AccessibilityClient {+ pub fn new(config: &Config) -> Self {+ Self {+ client: ModuleClient::new(config.clone()),+ }+ }++ #[cfg(all(test, feature = "modules"))]+ pub(crate) fn fixture(proxy: tinybus::Proxy) -> Self {+ Self {+ client: ModuleClient::fixture(proxy),+ }+ }++ async fn call<T: DeserializeOwned>(+ &self,+ member: &str,+ args: impl Serialize,+ confidential: bool,+ ) -> Result<T, AccessibilityError> {+ let raw: serde_json::Value = if confidential {+ self.client.call_confidential(MODULE, member, args).await+ } else {+ self.client.call(MODULE, member, args).await+ }+ .map_err(AccessibilityError::Bus)?;+ decode(raw)+ }++ /// Read native states without requesting permission.+ pub async fn permissions(&self) -> Result<PermissionStatus, AccessibilityError> {+ self.call(methods::ACCESSIBILITY_PERMISSIONS, (), false)+ .await+ }++ /// Request only the permission authorized by the host.+ pub async fn request_permission(+ &self,+ kind: PermissionKind,+ ) -> Result<PermissionStatus, AccessibilityError> {+ self.call(methods::ACCESSIBILITY_REQUEST_PERMISSION, (kind,), false)+ .await+ }++ /// Read focused text through confidential transport.+ pub async fn focus(&self, query: FocusQuery) -> Result<FocusedTextContext, AccessibilityError> {+ self.call(methods::ACCESSIBILITY_FOCUS, (query,), true)+ .await+ }++ /// Ask the native module to validate the captured target.+ pub async fn validate_target(&self, target: FocusTarget) -> Result<(), AccessibilityError> {+ self.call(methods::ACCESSIBILITY_VALIDATE_TARGET, (target,), true)+ .await+ }++ /// Insert authorized text after native target validation.+ pub async fn paste(&self, request: PasteRequest) -> Result<(), AccessibilityError> {+ self.call(methods::ACCESSIBILITY_PASTE, (request,), true)+ .await+ }++ /// Start or recover the module's one listener lease.+ pub async fn globe_start(&self) -> Result<GlobeStarted, AccessibilityError> {+ self.call(methods::GLOBE_START, (), false).await+ }++ /// Read or acknowledge a bounded, replayable physical-key batch.+ pub async fn globe_read(&self, request: GlobeRead) -> Result<GlobeBatch, AccessibilityError> {+ self.call(methods::GLOBE_READ, (request,), false).await+ }++ /// Release a lease. A failed close retains module ownership for retry.+ pub async fn globe_stop(+ &self,+ handle: GlobeHandle,+ ) -> Result<GlobeHotkeyStatus, AccessibilityError> {+ self.call(methods::GLOBE_STOP, (handle,), false).await+ }++ /// Join native cleanup and permanently close listener admission at shutdown.+ pub async fn globe_shutdown(&self) -> Result<GlobeHotkeyStatus, AccessibilityError> {+ self.call(methods::GLOBE_SHUTDOWN, (), false).await+ }++ /// Apply OpenHuman's permission policy before opening an audio device.+ /// One-shot capture requests an undetermined permission; continuous capture+ /// retains its existing denied-only gate without presenting an OS prompt.+ pub async fn microphone_permission(+ &self,+ request_unknown: bool,+ ) -> Result<(), AccessibilityError> {+ let mut permission = self.permissions().await?.microphone;+ if request_unknown && permission == PermissionState::Unknown {+ permission = self+ .request_permission(PermissionKind::Microphone)+ .await?+ .microphone;+ }+ if permission == PermissionState::Denied+ || (request_unknown && permission == PermissionState::Unknown)+ {+ return Err(AccessibilityError::Operation(DesktopError::new(+ "PERMISSION_DENIED",+ microphone_denied_message(),+ )));+ }+ Ok(())+ }+}++/// OpenHuman's platform-specific microphone guidance.+fn microphone_denied_message() -> &'static str {+ if cfg!(target_os = "macos") {+ "Microphone permission denied. Grant access in System Settings > Privacy & Security > Microphone, then restart the app."+ } else if cfg!(target_os = "windows") {+ "Microphone access unavailable. Check Settings > Privacy & Security > Microphone and ensure the app is allowed. If no microphone is connected, plug one in."+ } else if cfg!(target_os = "linux") {+ "No microphone device available. Check your audio settings and ensure a microphone is connected. If running in a Flatpak sandbox, grant microphone access via Flatseal or system settings."+ } else {+ "Microphone access is not supported on this platform."+ }+}++fn decode<T: DeserializeOwned>(raw: serde_json::Value) -> Result<T, AccessibilityError> {+ let reply: DesktopResponse = serde_json::from_value(raw.clone()).map_err(|_| malformed())?;+ if reply.version != tinycomputer_bus::ENVELOPE_VERSION+ || reply.ok != raw.get("data").is_some()+ || reply.ok == reply.error.is_some()+ {+ return Err(malformed());+ }+ if let Some(error) = reply.error {+ return Err(AccessibilityError::Operation(error));+ }+ serde_json::from_value(raw.get("data").cloned().ok_or_else(malformed)?).map_err(|_| malformed())+}++fn malformed() -> AccessibilityError {+ ModuleClient::report_malformed_reply(MODULE);+ AccessibilityError::Bus(ModuleCallError::ModuleFault)+}++#[cfg(test)]+#[path = "accessibility_tests.rs"]+mod tests;diff --git a/crates/openhuman-core/src/modules/accessibility_tests.rs b/crates/openhuman-core/src/modules/accessibility_tests.rsnew file mode 100644index 0000000000..404c14aff2--- /dev/null+++ b/crates/openhuman-core/src/modules/accessibility_tests.rs@@ -0,0 +1,250 @@+use super::*;++#[cfg(not(feature = "modules"))]+#[tokio::test]+async fn permissions_without_a_loader_are_explicitly_unavailable() {+ assert!(matches!(+ AccessibilityClient::new(&Config::default())+ .permissions()+ .await,+ Err(AccessibilityError::Bus(ModuleCallError::Unavailable))+ ));+}++#[cfg(feature = "modules")]+#[derive(Clone)]+struct Fixture(std::sync::Arc<std::sync::Mutex<(PermissionState, Vec<String>)>>);++#[cfg(feature = "modules")]+#[tinybus::interface(name = "test.Accessibility")]+impl Fixture {+ async fn accessibility_permissions(&self) -> tinybus::Result<DesktopResponse> {+ let mut state = self.0.lock().unwrap();+ state.1.push("permissions".into());+ Ok(DesktopResponse::ok(+ "accessibility-permissions",+ serde_json::to_value(PermissionStatus {+ accessibility: PermissionState::Unsupported,+ input_monitoring: PermissionState::Unsupported,+ microphone: state.0.clone(),+ })+ .unwrap(),+ ))+ }++ async fn accessibility_request_permission(+ &self,+ kind: PermissionKind,+ ) -> tinybus::Result<DesktopResponse> {+ assert_eq!(kind, PermissionKind::Microphone);+ {+ let mut state = self.0.lock().unwrap();+ state.1.push("request".into());+ state.0 = PermissionState::Granted;+ }+ self.accessibility_permissions().await+ }++ async fn accessibility_focus(&self, _: FocusQuery) -> tinybus::Result<DesktopResponse> {+ self.0.lock().unwrap().1.push("focus".into());+ Ok(DesktopResponse::ok(+ "accessibility-focus",+ serde_json::Value::Null,+ ))+ }++ async fn globe_read(&self, request: GlobeRead) -> tinybus::Result<DesktopResponse> {+ assert_eq!(request.handle.0, "opaque-lease");+ assert_eq!(request.acknowledged_batch, Some(4));+ Ok(DesktopResponse::ok(+ "globe-read",+ serde_json::to_value(GlobeBatch {+ handle: request.handle,+ batch: 5,+ status: GlobeHotkeyStatus {+ supported: true,+ running: true,+ input_monitoring_permission: PermissionState::Granted,+ last_error: None,+ events_pending: 0,+ },+ events: vec![tinycomputer_bus::accessibility::GlobeEvent::Down],+ overflow: false,+ })+ .unwrap(),+ ))+ }+}++#[cfg(feature = "modules")]+async fn fixture(+ permission: PermissionState,+) -> (AccessibilityClient, Fixture, tinybus::Connection) {+ use tinybus::{broker::Broker, transport::memory::MemoryBus, Connection, ObjectPath};+ let bus = MemoryBus::new();+ Broker::new().spawn(bus.clone());+ let service = Connection::connect(bus.connect().await.unwrap())+ .await+ .unwrap();+ let caller = Connection::connect(bus.connect().await.unwrap())+ .await+ .unwrap();+ let fixture = Fixture(std::sync::Arc::new(std::sync::Mutex::new((+ permission,+ vec![],+ ))));+ service+ .serve_at(+ ObjectPath::new("/test/Accessibility").unwrap(),+ fixture.clone(),+ )+ .await+ .unwrap();+ service.request_name("test.Accessibility").await.unwrap();+ let proxy = caller+ .proxy(+ "test.Accessibility",+ "/test/Accessibility",+ "test.Accessibility",+ )+ .unwrap();+ (+ AccessibilityClient {+ client: ModuleClient::fixture(proxy),+ },+ fixture,+ service,+ )+}++#[cfg(feature = "modules")]+#[tokio::test]+async fn permissions_use_the_zero_argument_bus_member() {+ let (client, fixture, _service) = fixture(PermissionState::Granted).await;+ assert_eq!(+ client.permissions().await.unwrap().microphone,+ PermissionState::Granted+ );+ assert_eq!(fixture.0.lock().unwrap().1, ["permissions"]);+}++#[cfg(feature = "modules")]+#[tokio::test]+async fn one_shot_capture_requests_unknown_microphone_permission() {+ let (client, fixture, _service) = fixture(PermissionState::Unknown).await;+ client.microphone_permission(true).await.unwrap();+ assert_eq!(+ fixture.0.lock().unwrap().1,+ ["permissions", "request", "permissions"]+ );+}++#[cfg(feature = "modules")]+#[tokio::test]+async fn continuous_capture_does_not_prompt_for_undetermined_permission() {+ let (client, fixture, _service) = fixture(PermissionState::Unknown).await;+ client.microphone_permission(false).await.unwrap();+ assert_eq!(fixture.0.lock().unwrap().1, ["permissions"]);+}++#[cfg(feature = "modules")]+#[tokio::test]+async fn denied_microphone_permission_fails_without_requesting_access() {+ let (client, fixture, _service) = fixture(PermissionState::Denied).await;+ assert!(matches!(client.microphone_permission(true).await,+ Err(AccessibilityError::Operation(error)) if error.code == "PERMISSION_DENIED"));+ assert_eq!(fixture.0.lock().unwrap().1, ["permissions"]);+}++#[cfg(feature = "modules")]+#[tokio::test]+async fn focus_never_retries_over_a_nonconfidential_transport() {+ let (client, fixture, _service) = fixture(PermissionState::Granted).await;+ assert!(matches!(+ client.focus(FocusQuery { verbose: true }).await,+ Err(AccessibilityError::Bus(ModuleCallError::TransportFailed))+ ));+ assert!(fixture.0.lock().unwrap().1.is_empty());+}++#[cfg(feature = "modules")]+#[tokio::test]+async fn reliable_globe_reads_forward_the_lease_and_acknowledged_batch() {+ let (client, _, _service) = fixture(PermissionState::Granted).await;+ let batch = client+ .globe_read(GlobeRead {+ handle: GlobeHandle("opaque-lease".into()),+ acknowledged_batch: Some(4),+ })+ .await+ .unwrap();+ assert_eq!(batch.batch, 5);+ assert_eq!(+ batch.events,+ [tinycomputer_bus::accessibility::GlobeEvent::Down]+ );+}++#[test]+fn successful_unit_response_preserves_its_explicit_null_data() {+ let raw = serde_json::to_value(DesktopResponse::ok(+ "accessibility-paste",+ serde_json::Value::Null,+ ))+ .unwrap();+ decode::<()>(raw).unwrap();+}++#[test]+fn successful_response_requires_the_data_field_even_for_unit_results() {+ assert!(matches!(+ decode::<()>(+ serde_json::json!({"version":"2.5", "command":"accessibility-paste", "ok":true})+ ),+ Err(AccessibilityError::Bus(ModuleCallError::ModuleFault))+ ));+}++#[test]+fn structured_focus_refusal_is_preserved_for_host_presentation() {+ let raw = serde_json::to_value(DesktopResponse::err(+ "accessibility-paste",+ DesktopError::new("FOCUS_CHANGED", "target changed"),+ ))+ .unwrap();+ assert!(+ matches!(decode::<()>(raw), Err(AccessibilityError::Operation(error)) if error.code == "FOCUS_CHANGED")+ );+}++#[cfg(all(feature = "modules", target_os = "linux"))]+#[tokio::test]+#[ignore = "requires the released v0.11.0 artifact in OPENHUMAN_TINYCOMPUTER_TEST_MODULE"]+async fn released_module_serves_permissions_and_confidential_target_validation() {+ let artifact = std::env::var_os("OPENHUMAN_TINYCOMPUTER_TEST_MODULE")+ .expect("set OPENHUMAN_TINYCOMPUTER_TEST_MODULE to the released native library");+ let mut config = Config::default();+ config.modules.allow_download = false;+ config+ .modules+ .overrides+ .push(crate::config::schema::ModuleOverride {+ id: "tinycomputer".into(),+ path: std::path::PathBuf::from(artifact).to_str().unwrap().into(),+ });+ let client = AccessibilityClient::new(&config);+ let permissions = client.permissions().await.expect("native permission query");+ assert_eq!(permissions.accessibility, PermissionState::Unsupported);+ client+ .validate_target(FocusTarget::default())+ .await+ .expect("confidential null-result validation");+ assert!(matches!(client.focus(FocusQuery { verbose: true }).await,+ Err(AccessibilityError::Operation(error)) if error.code == "PLATFORM_NOT_SUPPORTED"));+ assert!(+ matches!(client.validate_target(FocusTarget { app: Some("fixture-editor".into()), ..Default::default() }).await,+ Err(AccessibilityError::Operation(error)) if error.code == "PLATFORM_NOT_SUPPORTED")+ );+ assert!(matches!(client.globe_start().await,+ Err(AccessibilityError::Operation(error)) if error.code == "PLATFORM_NOT_SUPPORTED"));+}diff --git a/crates/openhuman-core/src/modules/mod.rs b/crates/openhuman-core/src/modules/mod.rsindex f917046aba..bb47a82d5d 100644--- a/crates/openhuman-core/src/modules/mod.rs+++ b/crates/openhuman-core/src/modules/mod.rs@@ -38,6 +38,7 @@//! - [`schemas`] — the `modules` RPC surface.//! - [`boot`] — what happens at startup.+pub mod accessibility;#[cfg(feature = "modules")]pub mod boot;#[cfg(feature = "modules")]diff --git a/crates/openhuman-core/src/modules/registry/records_computer.rs b/crates/openhuman-core/src/modules/registry/records_computer.rsindex b49264301f..28f7c5c01f 100644--- a/crates/openhuman-core/src/modules/registry/records_computer.rs+++ b/crates/openhuman-core/src/modules/registry/records_computer.rs@@ -8,45 +8,91 @@ pub(crate) const TINYCOMPUTER: ModuleRecord = ModuleRecord {description: "Permission-aware desktop and browser observation and control",bus_name: names::INTERFACE,object_path: names::OBJECT_PATH,- version: "0.10.1",- release_url: "https://github.com/tinyhumansai/tinycomputer/releases/tag/v0.10.1",- // Verbatim from the published tinycomputer v0.10.1 checksum.toml. Linux remains outside- // the initial product surface; this registry admits macOS and Windows.+ version: "0.11.0",+ release_url: "https://github.com/tinyhumansai/tinycomputer/releases/tag/v0.11.0",+ // All sixteen published archives were checked against checksum.toml+ // and GitHub asset digests before pinning. Linux permission probes are+ // part of the shipped voice surface alongside macOS and Windows.assets: &[PlatformAsset {- host_key: "macos-26-arm64",- archive: "tinycomputer-0.10.1-macos-26-arm64.tar.gz",- sha256: "39d1ca3db737c26b4d39d9a22c16da7845735c6349dd012c59533499498af874",+ host_key: "archlinux-rolling-x86_64",+ archive: "tinycomputer-0.11.0-archlinux-rolling-x86_64.tar.gz",+ sha256: "467c64d90791957a83d2ae5e58a3bffaf02e7bd6c1b01f73a540b1f2eca2fdf4",},PlatformAsset {- host_key: "macos-26-x86_64",- archive: "tinycomputer-0.10.1-macos-26-x86_64.tar.gz",- sha256: "b135b0885cc8d8eaff250d6fb781f7f9e1c8bdbf86dacf2dc44a291c18a1d9ae",+ host_key: "fedora-43-arm64",+ archive: "tinycomputer-0.11.0-fedora-43-arm64.tar.gz",+ sha256: "145b21e785a43b466e0fcc5a3675c635757b5c6383cb7f082fc9ecfac418b855",+ },+ PlatformAsset {+ host_key: "fedora-43-x86_64",+ archive: "tinycomputer-0.11.0-fedora-43-x86_64.tar.gz",+ sha256: "69f855af1e6e23cfe97c22aa23fc3354cddd548b2e7f885b6cb620bb33decc78",+ },+ PlatformAsset {+ host_key: "fedora-44-arm64",+ archive: "tinycomputer-0.11.0-fedora-44-arm64.tar.gz",+ sha256: "f3f89b1b2579ae383c1b13b7ad0c7543e9db51986ed77e598640a10340600d2a",+ },+ PlatformAsset {+ host_key: "fedora-44-x86_64",+ archive: "tinycomputer-0.11.0-fedora-44-x86_64.tar.gz",+ sha256: "22f464deb0a04c05babc49a23583c30040b065e5620247917a9f5d447b84e89c",},PlatformAsset {host_key: "macos-15-arm64",- archive: "tinycomputer-0.10.1-macos-15-arm64.tar.gz",- sha256: "14d55317c96dc0a89bc66b1248da68096d81f0a39b5a7ab8a286db8bbba55368",+ archive: "tinycomputer-0.11.0-macos-15-arm64.tar.gz",+ sha256: "4654e5143f81ac0865df37cc25ab3a003c7fe91edb0942c0d44d6382519d2b05",},PlatformAsset {host_key: "macos-15-x86_64",- archive: "tinycomputer-0.10.1-macos-15-x86_64.tar.gz",- sha256: "c8694118a5e8ac11f3785acda9023044c443bf5ae820695fce17b8c72af00fd0",+ archive: "tinycomputer-0.11.0-macos-15-x86_64.tar.gz",+ sha256: "38eddc6ed86dbed7c91a36bda3ab8fe7cd46db1dd467a84003bfadf5a54ec2b7",},PlatformAsset {- host_key: "windows-2025-x86_64",- archive: "tinycomputer-0.10.1-windows-2025-x86_64.zip",- sha256: "91315b4cefc5a4d034e43d8d5fa287fbac3cb80a74ada4da842c1569b203516f",+ host_key: "macos-26-arm64",+ archive: "tinycomputer-0.11.0-macos-26-arm64.tar.gz",+ sha256: "3a8e20a809262be2154c1b7339fed2a627c13c32b2a7b9de52e4d54ced94a994",},PlatformAsset {- host_key: "windows-2022-x86_64",- archive: "tinycomputer-0.10.1-windows-2022-x86_64.zip",- sha256: "5907acb6d46e8ea33ef5024bf8f5586d17259db92560990a9e320aae9a5e3bbf",+ host_key: "macos-26-x86_64",+ archive: "tinycomputer-0.11.0-macos-26-x86_64.tar.gz",+ sha256: "a61a79cb63798b844009cc8c69575690d6b2d5a25b637e0b05d559b14ad66c10",+ },+ PlatformAsset {+ host_key: "ubuntu-22.04-arm64",+ archive: "tinycomputer-0.11.0-ubuntu-22.04-arm64.tar.gz",+ sha256: "be9b21e5161314e3ab9fe3841ad4552a47b018b1cd999d0fcdeb008fcb3ba239",+ },+ PlatformAsset {+ host_key: "ubuntu-22.04-x86_64",+ archive: "tinycomputer-0.11.0-ubuntu-22.04-x86_64.tar.gz",+ sha256: "fb7654ac75546c32b981be272c4353e2632061b2e05de2a1a535f50e88727188",+ },+ PlatformAsset {+ host_key: "ubuntu-24.04-arm64",+ archive: "tinycomputer-0.11.0-ubuntu-24.04-arm64.tar.gz",+ sha256: "4401c22eb3cf20ce216d7627a3bacd668e27deb21019de0f47955812629014cf",+ },+ PlatformAsset {+ host_key: "ubuntu-24.04-x86_64",+ archive: "tinycomputer-0.11.0-ubuntu-24.04-x86_64.tar.gz",+ sha256: "430426bdbc6f8ad8cc5ed17d6f3bd05f73b4d4fe747a8fc9b77f0b3f4fd3506b",},PlatformAsset {host_key: "windows-11-arm64",- archive: "tinycomputer-0.10.1-windows-11-arm64.zip",- sha256: "71a7052fcb5cd70bf2ce8a41996978177882a2a41a2601f746bce519fa1fc642",+ archive: "tinycomputer-0.11.0-windows-11-arm64.zip",+ sha256: "df97f97f18ed670e57b8b79775fc9bc4cbe44b59f9320c957f93f89f7eba41c0",+ },+ PlatformAsset {+ host_key: "windows-2022-x86_64",+ archive: "tinycomputer-0.11.0-windows-2022-x86_64.zip",+ sha256: "494efca1d2aee2b8371bebc70cb6b791426ada4bc35da0524c7317fd084e9157",+ },+ PlatformAsset {+ host_key: "windows-2025-x86_64",+ archive: "tinycomputer-0.11.0-windows-2025-x86_64.zip",+ sha256: "b65b7ea2f8f678e5a55920b8d72ae62642e3e03ba44e0db78bc8807e8c62520d",},],load: LoadPolicy::Lazy,diff --git a/crates/openhuman-core/src/modules/registry_tests.rs b/crates/openhuman-core/src/modules/registry_tests.rsindex 244e02d355..49102ab8ba 100644--- a/crates/openhuman-core/src/modules/registry_tests.rs+++ b/crates/openhuman-core/src/modules/registry_tests.rs@@ -6,11 +6,16 @@ fn tinycomputer_registry_matches_bus_contract_and_published_release() {let desktop = find("tinycomputer").expect("compiled computer module");assert_eq!(desktop.bus_name, tinycomputer_bus::names::INTERFACE);assert_eq!(desktop.object_path, tinycomputer_bus::names::OBJECT_PATH);- assert_eq!(desktop.version, "0.10.1");- assert_eq!(desktop.assets.len(), 7);+ assert_eq!(desktop.version, "0.11.0");+ assert_eq!(desktop.assets.len(), 16);+ assert_eq!(tinycomputer_bus::CONTRACT_VERSION, (2, 12));+ assert_eq!(+ desktop.asset_for("ubuntu-24.04-x86_64").unwrap().sha256,+ "430426bdbc6f8ad8cc5ed17d6f3bd05f73b4d4fe747a8fc9b77f0b3f4fd3506b"+ );assert_eq!(desktop.asset_for("macos-26-arm64").unwrap().sha256,- "39d1ca3db737c26b4d39d9a22c16da7845735c6349dd012c59533499498af874"+ "3a8e20a809262be2154c1b7339fed2a627c13c32b2a7b9de52e4d54ced94a994");}@@ -236,11 +241,8 @@ fn every_host_key() -> Vec<String> {keys}-fn supported_host_keys(record: &super::ModuleRecord) -> Vec<String> {+fn supported_host_keys(_record: &super::ModuleRecord) -> Vec<String> {every_host_key()- .into_iter()- .filter(|key| record.id != "tinycomputer" || !key.starts_with("ubuntu-"))- .collect()}#[test]diff --git a/crates/openhuman-core/src/voice/README.md b/crates/openhuman-core/src/voice/README.mdindex f88a2d76b2..9391c3e13b 100644--- a/crates/openhuman-core/src/voice/README.md+++ b/crates/openhuman-core/src/voice/README.md@@ -113,7 +113,7 @@ background pipeline:focused app is OpenHuman? --yes--> publish_transcription -> Socket.IO| nov- tinycomputer_accessibility::paste::insert_text (clipboard + keystroke)+ TinyComputer AccessibilityPaste (confidential bus call)```A `session_generation` counter makes each recording's state updates@@ -336,10 +336,12 @@ count, rolling recent-transcript buffer) behind a `OnceCell` singleton.library, linked directly with its `hotkey` and `capture` features, owns the`rdev` listener and the `cpal` stream. This folder owns only the policyaround them.-- `tinycomputer-accessibility` (`vendor/tinycomputer`) owns text insertion- (`paste::insert_text`, which carries `arboard` and `enigo`), focused-text- inspection and, on macOS, the Swift Globe-key listener- (`globe_listener_start` / `globe_listener_poll`).+- The compiled TinyComputer module owns text insertion, focused-text inspection,+ permission decisions and the macOS Swift Globe listener. OpenHuman uses+ `tinycomputer-bus` vocabulary and confidential focus/paste calls. Globe events+ arrive in bounded replayable batches; the host acknowledges delivered batches+ and closes the lease on cancellation or server stop. Overflow resets activation+ and requires a physical release before the next press can rearm it.- `tinyliveagents` owns live provider wire protocols and `tinyagents-live` ownslive tool execution. The tool middleware is `agent::tinyagents::live_harness`.- `crates/openhuman-rpc` mounts and authenticates `/ws/dictation` and@@ -375,7 +377,7 @@ server, listener and always-on mode when gating credentials change),(`cargo check --no-default-features --features "<all-but-voice>"`), so changeboth sides together. `VOICE_COMPILED_IN` is ungated so the desktop shell canassert at compile time that it did not get the stub (#4901).-- `voice` pulls in `inference`, `modules`, `tinycomputer-accessibility/paste`+- `voice` pulls in `inference`, `modules`, `tinyvoice`and the email channel (for `audio_toolkit`), so a voice-less build sheds alarge dependency stack. `streaming` additionally needs `http-server`.- macOS hotkeys (#2677): rdev's CGEventTap callback callsdiff --git a/crates/openhuman-core/src/voice/always_on/capture.rs b/crates/openhuman-core/src/voice/always_on/capture.rsindex 6b82609ed3..b85f7b6182 100644--- a/crates/openhuman-core/src/voice/always_on/capture.rs+++ b/crates/openhuman-core/src/voice/always_on/capture.rs@@ -5,8 +5,6 @@//! microphone-permission policy. Downmixing and resampling live in the//! processor, not in the callback.-use super::LOG_PREFIX;-pub(super) use tinyvoice::capture::{CaptureFormat, RawChunk};/// Spawn the dedicated cpal capture thread. Blocks until the stream is set up@@ -14,21 +12,5 @@ pub(super) use tinyvoice::capture::{CaptureFormat, RawChunk};pub(super) fn spawn_capture_thread(tx: tokio::sync::mpsc::Sender<RawChunk>,) -> Result<CaptureFormat, String> {- tinyvoice::capture::spawn_capture_thread(tx, microphone_permission).map_err(|e| e.to_string())-}--/// Surface the mic permission state explicitly — a denied/Unknown state is the-/// most common reason always-on "does nothing" and it differs per OS (macOS TCC-/// prompt, Windows privacy settings), so log it on every test build. Only a-/// denied state stops capture.-fn microphone_permission() -> Result<(), String> {- use tinycomputer_accessibility::{detect_microphone_permission, PermissionState};-- let permission = detect_microphone_permission();- log::info!("{LOG_PREFIX} microphone permission: {permission:?}");- if matches!(permission, PermissionState::Denied) {- log::warn!("{LOG_PREFIX} microphone permission denied — always-on cannot capture audio");- return Err("microphone permission denied".to_string());- }- Ok(())+ tinyvoice::capture::spawn_capture_thread(tx, || Ok(())).map_err(|e| e.to_string())}diff --git a/crates/openhuman-core/src/voice/always_on/processor.rs b/crates/openhuman-core/src/voice/always_on/processor.rsindex d829c40582..01cd9b58bd 100644--- a/crates/openhuman-core/src/voice/always_on/processor.rs+++ b/crates/openhuman-core/src/voice/always_on/processor.rs@@ -74,6 +74,14 @@ pub async fn start_if_enabled(app_config: &Config) {return;}+ if let Err(error) = crate::modules::accessibility::AccessibilityClient::new(app_config)+ .microphone_permission(false)+ .await+ {+ log::warn!("{LOG_PREFIX} could not authorize microphone capture: {error}");+ RUNNING.store(false, Ordering::SeqCst);+ return;+ }let vad = tinyvoice::vad_config_from_server_config(&app_config.voice_server);let config = app_config.clone();log::info!(diff --git a/crates/openhuman-core/src/voice/audio_capture.rs b/crates/openhuman-core/src/voice/audio_capture.rsindex 89ad4074b4..4b5e8d4204 100644--- a/crates/openhuman-core/src/voice/audio_capture.rs+++ b/crates/openhuman-core/src/voice/audio_capture.rs@@ -6,7 +6,7 @@//! policy and, on stop, runs the raw samples through the `tinyvoice` module//! (downmix, resample, silence gate, WAV framing).-use log::{debug, info, warn};+use log::info;use crate::config::Config;@@ -165,12 +165,17 @@ async fn finalize(config: &Config, raw: &RawRecording) -> Result<RecordingResult/// the captured audio. Recording runs on a dedicated OS thread inside/// `tinyvoice::capture` because `cpal::Stream` is `!Send` (it must be created/// and dropped on the same thread).-pub fn start_recording() -> Result<RecordingHandle, String> {+pub async fn start_recording(config: &Config) -> Result<RecordingHandle, String> {+ crate::modules::accessibility::AccessibilityClient::new(config)+ .microphone_permission(true)+ .await+ .map_err(|e| e.to_string())?;+ let inner = tokio::task::spawn_blocking(|| tinyvoice::capture::start_recording(|| Ok(())))+ .await+ .map_err(|e| format!("microphone setup task failed: {e}"))?+ .map_err(|e| e.to_string())?;Ok(RecordingHandle {- inner: Some(- tinyvoice::capture::start_recording(microphone_permission)- .map_err(|e| e.to_string())?,- ),+ inner: Some(inner),#[cfg(test)]finalized: None,})@@ -180,40 +185,3 @@ pub fn start_recording() -> Result<RecordingHandle, String> {pub fn list_input_devices() -> Result<Vec<String>, String> {tinyvoice::capture::list_input_devices().map_err(|e| e.to_string())}--/// The host's microphone-permission policy for a one-shot recording.-///-/// Cross-platform pre-check: an undetermined state asks the OS for access (macOS-/// may show a prompt) and re-checks; a denied state, or one still undetermined-/// after asking, fails with the platform's explanation.-fn microphone_permission() -> Result<(), String> {- use tinycomputer_accessibility::{- detect_microphone_permission, microphone_denied_message, request_microphone_access,- PermissionState,- };-- let mic_perm = detect_microphone_permission();- debug!("{LOG_PREFIX} microphone permission state: {mic_perm:?}");-- match mic_perm {- PermissionState::Unknown => {- info!("{LOG_PREFIX} microphone permission not yet determined — requesting access");- request_microphone_access();- // Re-check after request (macOS may have shown a prompt).- let updated = detect_microphone_permission();- debug!("{LOG_PREFIX} microphone permission after request: {updated:?}");- if matches!(updated, PermissionState::Denied | PermissionState::Unknown) {- let msg = microphone_denied_message();- warn!("{LOG_PREFIX} {msg}");- return Err(msg);- }- }- PermissionState::Denied => {- let msg = microphone_denied_message();- warn!("{LOG_PREFIX} {msg}");- return Err(msg);- }- _ => {} // Granted or Unsupported — proceed normally.- }- Ok(())-}diff --git a/crates/openhuman-core/src/voice/server/README.md b/crates/openhuman-core/src/voice/server/README.mdindex ad7d1667a3..afa11bd733 100644--- a/crates/openhuman-core/src/voice/server/README.md+++ b/crates/openhuman-core/src/voice/server/README.md@@ -19,7 +19,7 @@ standalone through the `openhuman voice`/`openhuman dictate` CLI subcommand.| --- | --- || [`types.rs`](./types.rs) | `ServerState`, `VoiceServerStatus`, `VoiceServerConfig` (hotkey, activation mode, skip_cleanup, context, min duration, silence threshold, custom dictionary), plus the `DEFAULT_SILENCE_THRESHOLD` (0.002 RMS, matching OpenWhispr's default), `MAX_RECENT_TRANSCRIPTS` (5), and `MAX_INITIAL_PROMPT_CHARS` (500) tunables. || [`runtime.rs`](./runtime.rs) | `VoiceServer`: the hotkey event loop. Starts the platform hotkey listener, tracks in-progress and pending recordings, handles the race between a buffered release event and recording setup still in flight, and spawns `process_recording_bg` off the event loop so rapid consecutive presses are never missed. Owns `run`/`stop`/`status`. |-| [`hotkey_listener.rs`](./hotkey_listener.rs) | Picks the platform-appropriate listener. Uses `rdev` everywhere except the macOS `Fn`/Globe key, which goes through a Swift-based globe listener (`tinycomputer_accessibility` (`vendor/tinycomputer`)) instead, because `rdev`'s `CGEventTap` callback calls `TSMGetInputSourceProperty` off the main thread and macOS 26 kills the process for that (#2677). Any other hotkey is rejected on macOS with a message pointing at `hotkey = "fn"`. |+| [`hotkey_listener.rs`](./hotkey_listener.rs) | Picks the platform-appropriate listener. Uses `rdev` everywhere except the macOS `Fn`/Globe key, which goes through a Swift-based globe listener inside the compiled TinyComputer module, with acknowledged batches and explicit lease cleanup instead, because `rdev`'s `CGEventTap` callback calls `TSMGetInputSourceProperty` off the main thread and macOS 26 kills the process for that (#2677). Any other hotkey is rejected on macOS with a message pointing at `hotkey = "fn"`. || [`pipeline.rs`](./pipeline.rs) | `process_recording_bg`: stops the recording, applies the duration/silence/hallucination gates, builds the `initial_prompt` from the custom dictionary and recent transcripts, transcribes via `crate::voice::voice_transcribe_bytes`, and delivers the text either over Socket.IO (when the focused app is OpenHuman itself) or by pasting into the external app via `text_input::insert_text`. || [`singleton.rs`](./singleton.rs) | `global_server`/`try_global_server` (the process-global `OnceCell<Arc<VoiceServer>>`), `start_if_enabled` (embedded auto-start, gated on `config.voice_server.auto_start`), and `run_standalone` (the blocking CLI entry point, which deliberately does not register in the global singleton so CLI-started instances stay isolated from the core RPC lifecycle). |@@ -35,7 +35,7 @@ agent-tool surface for voice generally lives in `voice/schemas/` and## Notes / gotchas-- Recording setup runs on a blocking thread (`audio_capture::start_recording`) so the event loop stays responsive to a `Released` event that some keys, including `Fn`, fire almost immediately. A release or a second press that arrives during that setup is buffered as a stop intent and applied once the recording handle is ready, with a minimum post-setup recording window (1500ms) so very quick releases still capture real speech.+- Focus capture and microphone permission checks run through async TinyComputer calls; device setup then runs on a blocking thread (`audio_capture::start_recording`) so the event loop stays responsive to a `Released` event that some keys, including `Fn`, fire almost immediately. A release or a second press that arrives during that setup is buffered as a stop intent and applied once the recording handle is ready, with a minimum post-setup recording window (1500ms) so very quick releases still capture real speech.- `stop()` cancels the run-loop's `CancellationToken` and polls for up to 5 seconds for the state to reach `Stopped`, since a fast logout/login cycle should not see a stale `Idle`/`Recording` state and skip a restart.- State updates carry a `generation` counter so a stale background pipeline task from a superseded recording cannot overwrite the state of a newer one.diff --git a/crates/openhuman-core/src/voice/server/hotkey_listener.rs b/crates/openhuman-core/src/voice/server/hotkey_listener.rsindex ebbdd7ee68..4d325ed981 100644--- a/crates/openhuman-core/src/voice/server/hotkey_listener.rs+++ b/crates/openhuman-core/src/voice/server/hotkey_listener.rs@@ -1,31 +1,37 @@//! Hotkey listener dispatch: rdev everywhere except the macOS Fn/Globe key,//! which needs the Swift-based globe listener instead.-#[cfg(target_os = "macos")]+#[cfg(any(target_os = "macos", test))]use std::time::Duration;-#[cfg(target_os = "macos")]-use log::{debug, info, warn};+#[cfg(any(target_os = "macos", test))]+use log::warn;use tokio_util::sync::CancellationToken;use crate::voice::hotkey;-#[cfg(target_os = "macos")]+#[cfg(any(target_os = "macos", test))]use super::LOG_PREFIX;/// Opaque handle that keeps the hotkey listener alive. Drop to stop.pub(super) enum HotkeyListenerKind {Rdev(hotkey::HotkeyListenerHandle),- #[cfg(target_os = "macos")]- Globe(CancellationToken),+ #[cfg(any(target_os = "macos", test))]+ Globe {+ cancel: CancellationToken,+ task: tokio::task::JoinHandle<()>,+ },}impl HotkeyListenerKind {- pub(super) fn stop(&self) {+ pub(super) async fn stop(self) {match self {HotkeyListenerKind::Rdev(handle) => handle.stop(),- #[cfg(target_os = "macos")]- HotkeyListenerKind::Globe(cancel) => cancel.cancel(),+ #[cfg(any(target_os = "macos", test))]+ HotkeyListenerKind::Globe { cancel, task } => {+ cancel.cancel();+ let _ = task.await;+ }}}}@@ -33,27 +39,28 @@ impl HotkeyListenerKind {/// Start the appropriate hotkey listener for the current platform and key.////// On macOS, the Fn/Globe key is handled by the Swift-based globe listener-/// (`tinycomputer_accessibility::globe`) which monitors `NSEvent.flagsChanged`. All other+/// inside the TinyComputer module which monitors `NSEvent.flagsChanged`. All other/// keys return an error on macOS: rdev's CGEventTap callback calls/// `TSMGetInputSourceProperty` off the main thread; macOS 26 enforces/// `dispatch_assert_queue(main_queue)` inside that API and kills the process/// with `EXC_BREAKPOINT` (`dispatch_assert_queue_fail`). Configure/// `hotkey = "fn"` to avoid this. (#2677)-pub(super) fn start_hotkey_listener(+pub(super) async fn start_hotkey_listener(+ config: &crate::config::Config,hotkey_str: &str,mode: hotkey::ActivationMode,server_cancel: &CancellationToken,) -> Result<(HotkeyListenerKind,- tokio::sync::mpsc::UnboundedReceiver<hotkey::HotkeyEvent>,+ tokio::sync::mpsc::Receiver<hotkey::HotkeyEvent>,),String,> {#[cfg(target_os = "macos")]{if hotkey_str.trim().eq_ignore_ascii_case("fn") {- return start_globe_hotkey_listener(mode, server_cancel);+ return start_globe_hotkey_listener(config, mode, server_cancel).await;}// rdev calls TSMGetInputSourceProperty off the main thread; macOS 26// enforces main-queue-only access and crashes the process. Only the@@ -74,106 +81,248 @@ pub(super) fn start_hotkey_listener(// `server_cancel` is only consumed by the macOS Swift-globe listener// branch above; the rdev listener manages its own lifecycle, so bind it// here to keep the shared signature warning-free on non-macOS.- let _ = server_cancel;+ let _ = (config, server_cancel);let combo = hotkey::parse_hotkey(hotkey_str).map_err(|e| e.to_string())?;- let (handle, rx) = hotkey::start_listener(combo, mode).map_err(|e| e.to_string())?;+ let (handle, mut source) =+ hotkey::start_listener(combo, mode).map_err(|e| e.to_string())?;+ let (tx, rx) = tokio::sync::mpsc::channel(65);+ tokio::spawn(async move {+ loop {+ let event = tokio::select! {+ _ = tx.closed() => break,+ event = source.recv() => match event { Some(event) => event, None => break },+ };+ if tx.send(event).await.is_err() {+ break;+ }+ }+ });Ok((HotkeyListenerKind::Rdev(handle), rx))}}-/// macOS-only: start the Swift globe listener and bridge FN_DOWN / FN_UP-/// events into `HotkeyEvent::Pressed` / `HotkeyEvent::Released`.+/// Start an owned task before awaiting the module, so cancellation during startup+/// still leaves an owner to recover a lost start reply and close the native lease.#[cfg(target_os = "macos")]-fn start_globe_hotkey_listener(+async fn start_globe_hotkey_listener(+ config: &crate::config::Config,mode: hotkey::ActivationMode,server_cancel: &CancellationToken,) -> Result<(HotkeyListenerKind,- tokio::sync::mpsc::UnboundedReceiver<hotkey::HotkeyEvent>,+ tokio::sync::mpsc::Receiver<hotkey::HotkeyEvent>,),String,> {- use tinycomputer_accessibility::{globe_listener_poll, globe_listener_start};-- info!("{LOG_PREFIX} hotkey is Fn on macOS — using Swift globe listener instead of rdev");-- let status = globe_listener_start().map_err(|e| e.to_string())?;- if !status.running {- let err_msg = status- .last_error- .unwrap_or_else(|| "globe listener failed to start".to_string());- return Err(format!("globe listener: {err_msg}"));- }- info!(- "{LOG_PREFIX} globe listener started, permission={:?}",- status.input_monitoring_permission- );+ start_globe_with_client(+ crate::modules::accessibility::AccessibilityClient::new(config),+ mode,+ server_cancel,+ )+ .await+}- let (tx, rx) = tokio::sync::mpsc::unbounded_channel();+#[cfg(any(target_os = "macos", test))]+async fn start_globe_with_client(+ client: crate::modules::accessibility::AccessibilityClient,+ mode: hotkey::ActivationMode,+ server_cancel: &CancellationToken,+) -> Result<+ (+ HotkeyListenerKind,+ tokio::sync::mpsc::Receiver<hotkey::HotkeyEvent>,+ ),+ String,+> {+ static ADMISSION: tokio::sync::Mutex<()> = tokio::sync::Mutex::const_new(());+ let admission = tokio::time::timeout(Duration::from_secs(15), ADMISSION.lock())+ .await+ .map_err(|_| "previous Globe listener cleanup is still pending".to_string())?;+ let (tx, rx) = tokio::sync::mpsc::channel(65);+ let (ready_tx, ready_rx) = tokio::sync::oneshot::channel();let cancel = server_cancel.child_token();- let cancel_clone = cancel.clone();-- // Tap mode state: track whether we're currently active.- let is_active = std::sync::Arc::new(std::sync::atomic::AtomicBool::new(false));-- tokio::spawn(async move {- let mut poll_interval = tokio::time::interval(Duration::from_millis(50));- poll_interval.set_missed_tick_behavior(tokio::time::MissedTickBehavior::Skip);-+ let task_cancel = cancel.clone();+ let task = tokio::spawn(async move {+ let _admission = admission;+ let started = match client.globe_start().await {+ Ok(started) => started,+ Err(error) => {+ let recover = matches!(+ error,+ crate::modules::accessibility::AccessibilityError::Bus(+ crate::modules::client::ModuleCallError::TransportFailed+ | crate::modules::client::ModuleCallError::ModuleFault+ )+ );+ let _ = ready_tx.send(Err(error.to_string()));+ if !recover {+ return;+ }+ // Start is idempotent. Recover its lease before cleanup rather+ // than abandoning a native start whose reply was lost.+ loop {+ match client.globe_start().await {+ Ok(started) => {+ close_globe(&client, started.handle).await;+ return;+ }+ Err(_) => tokio::time::sleep(Duration::from_secs(1)).await,+ }+ }+ }+ };+ let handle = started.handle;+ if !started.status.running {+ let _ = ready_tx.send(Err(started+ .status+ .last_error+ .unwrap_or_else(|| "Globe listener did not start".into())));+ close_globe(&client, handle).await;+ return;+ }+ if ready_tx.send(Ok(())).is_err() {+ close_globe(&client, handle).await;+ return;+ }+ let mut acknowledged_batch = None;+ let mut activation = GlobeActivation::default();+ let mut interval = tokio::time::interval(Duration::from_millis(50));+ interval.set_missed_tick_behavior(tokio::time::MissedTickBehavior::Skip);loop {tokio::select! {- _ = cancel_clone.cancelled() => {- debug!("{LOG_PREFIX} globe poller cancelled");+ _ = task_cancel.cancelled() => break,+ _ = tx.closed() => break,+ _ = interval.tick() => {}+ }+ // One bounded module batch at a time. Wait for the host to consume+ // its queue before accepting another batch (at most 65 events).+ if tx.capacity() != 65 {+ continue;+ }+ let batch = match client+ .globe_read(crate::modules::accessibility::GlobeRead {+ handle: handle.clone(),+ acknowledged_batch,+ })+ .await+ {+ Ok(batch) => batch,+ Err(error) => {+ warn!("{LOG_PREFIX} Globe read failed: {error}");break;}- _ = poll_interval.tick() => {- let poll_result = match globe_listener_poll() {- Ok(r) => r,- Err(e) => {- warn!("{LOG_PREFIX} globe poll error: {e}");- continue;- }- };-- for event_str in &poll_result.events {- let hotkey_event = match event_str.as_str() {- "FN_DOWN" => match mode {- hotkey::ActivationMode::Push => {- Some(hotkey::HotkeyEvent::Pressed)- }- hotkey::ActivationMode::Tap => {- let was_active = is_active.load(std::sync::atomic::Ordering::SeqCst);- if was_active {- is_active.store(false, std::sync::atomic::Ordering::SeqCst);- Some(hotkey::HotkeyEvent::Released)- } else {- is_active.store(true, std::sync::atomic::Ordering::SeqCst);- Some(hotkey::HotkeyEvent::Pressed)- }- }- },- "FN_UP" => match mode {- hotkey::ActivationMode::Push => {- Some(hotkey::HotkeyEvent::Released)- }- hotkey::ActivationMode::Tap => None, // tap ignores release- },- _ => None, // ignore modifier events- };-- if let Some(ev) = hotkey_event {- debug!("{LOG_PREFIX} globe event {event_str} → {ev:?}");- if tx.send(ev).is_err() {- debug!("{LOG_PREFIX} globe poller: receiver dropped, stopping");- return;- }- }+ };+ if batch.handle != handle+ || batch.events.len() > 64+ || batch.batch != acknowledged_batch.unwrap_or(0).saturating_add(1)+ {+ warn!("{LOG_PREFIX} invalid Globe batch");+ break;+ }+ if !batch.status.running {+ break;+ }+ if batch.overflow {+ if let Some(event) = activation.reset() {+ if tx.send(event).await.is_err() {+ break;}}}+ let mut delivered = true;+ for event in batch.events {+ if let Some(event) = activation.event(event, mode) {+ if tx.send(event).await.is_err() {+ delivered = false;+ break;+ }+ }+ }+ if !delivered {+ break;+ }+ acknowledged_batch = Some(batch.batch);}+ close_globe(&client, handle).await;});+ // Dropping the startup future cancels the task's receiver; ready_tx then+ // fails and the task closes its lease before releasing admission.+ ready_rx+ .await+ .map_err(|_| "Globe startup task failed".to_string())??;+ Ok((HotkeyListenerKind::Globe { cancel, task }, rx))+}- Ok((HotkeyListenerKind::Globe(cancel), rx))+/// Keep the admission guard while close fails; a successor cannot adopt a+/// listener with uncertain native cleanup. An already-retired lease is closed.+#[cfg(any(target_os = "macos", test))]+async fn close_globe(+ client: &crate::modules::accessibility::AccessibilityClient,+ handle: crate::modules::accessibility::GlobeHandle,+) {+ loop {+ match client.globe_stop(handle.clone()).await {+ Ok(_) => return,+ Err(crate::modules::accessibility::AccessibilityError::Operation(error))+ if error.code == "UNKNOWN_LISTENER" =>+ {+ return+ }+ Err(error) => warn!("{LOG_PREFIX} Globe cleanup pending: {error}"),+ }+ tokio::time::sleep(Duration::from_secs(1)).await;+ }+}++/// Host activation policy; an overflow requires a physical release before rearming.+#[cfg(any(target_os = "macos", test))]+#[derive(Default)]+struct GlobeActivation {+ active: bool,+ wait_release: bool,+}++#[cfg(any(target_os = "macos", test))]+impl GlobeActivation {+ fn reset(&mut self) -> Option<hotkey::HotkeyEvent> {+ self.wait_release = true;+ std::mem::take(&mut self.active).then_some(hotkey::HotkeyEvent::Released)+ }+ fn event(+ &mut self,+ event: tinycomputer_bus::accessibility::GlobeEvent,+ mode: hotkey::ActivationMode,+ ) -> Option<hotkey::HotkeyEvent> {+ use tinycomputer_bus::accessibility::GlobeEvent::{Down, Up};+ if self.wait_release {+ if event == Up {+ self.wait_release = false;+ }+ return None;+ }+ match (event, mode) {+ (Down, hotkey::ActivationMode::Tap) => {+ self.active = !self.active;+ Some(if self.active {+ hotkey::HotkeyEvent::Pressed+ } else {+ hotkey::HotkeyEvent::Released+ })+ }+ (Down, hotkey::ActivationMode::Push) if !self.active => {+ self.active = true;+ Some(hotkey::HotkeyEvent::Pressed)+ }+ (Up, hotkey::ActivationMode::Push) if self.active => {+ self.active = false;+ Some(hotkey::HotkeyEvent::Released)+ }+ _ => None,+ }+ }}++#[cfg(test)]+#[path = "hotkey_listener_tests.rs"]+mod tests;diff --git a/crates/openhuman-core/src/voice/server/hotkey_listener_tests.rs b/crates/openhuman-core/src/voice/server/hotkey_listener_tests.rsnew file mode 100644index 0000000000..9935850e17--- /dev/null+++ b/crates/openhuman-core/src/voice/server/hotkey_listener_tests.rs@@ -0,0 +1,218 @@+use super::*;+use hotkey::{+ ActivationMode::{Push, Tap},+ HotkeyEvent::{Pressed, Released},+};+use tinycomputer_bus::accessibility::GlobeEvent::{Down, Up};++#[test]+fn overflow_stops_activation_and_waits_for_physical_release() {+ for mode in [Push, Tap] {+ let mut state = GlobeActivation::default();+ assert!(matches!(state.event(Down, mode), Some(Pressed)));+ assert!(matches!(state.reset(), Some(Released)));+ assert!(state.event(Down, mode).is_none());+ assert!(state.event(Up, mode).is_none());+ assert!(matches!(state.event(Down, mode), Some(Pressed)));+ }+}++#[test]+fn tap_ignores_key_release_and_toggles_on_the_next_press() {+ let mut state = GlobeActivation::default();+ assert!(matches!(state.event(Down, Tap), Some(Pressed)));+ assert!(state.event(Up, Tap).is_none());+ assert!(matches!(state.event(Down, Tap), Some(Released)));+}++#[test]+fn push_suppresses_duplicate_physical_edges() {+ let mut state = GlobeActivation::default();+ assert!(matches!(state.event(Down, Push), Some(Pressed)));+ assert!(state.event(Down, Push).is_none());+ assert!(matches!(state.event(Up, Push), Some(Released)));+ assert!(state.event(Up, Push).is_none());+}++#[cfg(feature = "modules")]+#[derive(Clone, Default)]+struct ListenerFixture {+ entered: std::sync::Arc<tokio::sync::Notify>,+ allow_start: std::sync::Arc<tokio::sync::Notify>,+ stopped: std::sync::Arc<tokio::sync::Notify>,+ closes: std::sync::Arc<std::sync::atomic::AtomicUsize>,+ lose_start_reply: std::sync::Arc<std::sync::atomic::AtomicBool>,+ fail_close: std::sync::Arc<std::sync::atomic::AtomicBool>,+}++#[cfg(feature = "modules")]+fn status(running: bool) -> crate::modules::accessibility::GlobeHotkeyStatus {+ crate::modules::accessibility::GlobeHotkeyStatus {+ supported: true,+ running,+ input_monitoring_permission: crate::modules::accessibility::PermissionState::Granted,+ last_error: None,+ events_pending: 0,+ }+}++#[cfg(feature = "modules")]+#[tinybus::interface(name = "test.Globe")]+impl ListenerFixture {+ async fn globe_start(&self) -> tinybus::Result<tinycomputer_bus::DesktopResponse> {+ self.entered.notify_one();+ if self+ .lose_start_reply+ .swap(false, std::sync::atomic::Ordering::SeqCst)+ {+ return Err(tinybus::Error::MethodFailed {+ name: tinybus::Error::NOT_ATTESTED.into(),+ message: "fixture lost response".into(),+ });+ }+ self.allow_start.notified().await;+ Ok(tinycomputer_bus::DesktopResponse::ok(+ "globe-start",+ serde_json::to_value(crate::modules::accessibility::GlobeStarted {+ handle: crate::modules::accessibility::GlobeHandle("lease".into()),+ status: status(true),+ })+ .unwrap(),+ ))+ }+ async fn globe_stop(+ &self,+ handle: crate::modules::accessibility::GlobeHandle,+ ) -> tinybus::Result<tinycomputer_bus::DesktopResponse> {+ assert_eq!(handle.0, "lease");+ if self+ .fail_close+ .swap(false, std::sync::atomic::Ordering::SeqCst)+ {+ return Err(tinybus::Error::failed("fixture cleanup pending"));+ }+ self.closes+ .fetch_add(1, std::sync::atomic::Ordering::SeqCst);+ self.stopped.notify_one();+ Ok(tinycomputer_bus::DesktopResponse::ok(+ "globe-stop",+ serde_json::to_value(status(false)).unwrap(),+ ))+ }+ async fn globe_read(+ &self,+ request: crate::modules::accessibility::GlobeRead,+ ) -> tinybus::Result<tinycomputer_bus::DesktopResponse> {+ Ok(tinycomputer_bus::DesktopResponse::ok(+ "globe-read",+ serde_json::to_value(crate::modules::accessibility::GlobeBatch {+ handle: request.handle,+ batch: 1,+ status: status(true),+ events: vec![],+ overflow: false,+ })+ .unwrap(),+ ))+ }+}++#[cfg(feature = "modules")]+async fn listener_fixture() -> (+ crate::modules::accessibility::AccessibilityClient,+ ListenerFixture,+ tinybus::Connection,+) {+ use tinybus::{broker::Broker, transport::memory::MemoryBus, Connection, ObjectPath};+ let bus = MemoryBus::new();+ Broker::new().spawn(bus.clone());+ let service = Connection::connect(bus.connect().await.unwrap())+ .await+ .unwrap();+ let caller = Connection::connect(bus.connect().await.unwrap())+ .await+ .unwrap();+ let fixture = ListenerFixture::default();+ service+ .serve_at(ObjectPath::new("/test/Globe").unwrap(), fixture.clone())+ .await+ .unwrap();+ service.request_name("test.Globe").await.unwrap();+ let proxy = caller+ .proxy("test.Globe", "/test/Globe", "test.Globe")+ .unwrap();+ (+ crate::modules::accessibility::AccessibilityClient::fixture(proxy),+ fixture,+ service,+ )+}++#[cfg(feature = "modules")]+#[tokio::test]+async fn cancelling_startup_still_closes_the_module_owned_listener() {+ let (client, fixture, _service) = listener_fixture().await;+ let startup = tokio::spawn(async move {+ start_globe_with_client(client, Push, &CancellationToken::new()).await+ });+ fixture.entered.notified().await;+ startup.abort();+ assert!(matches!(startup.await, Err(error) if error.is_cancelled()));+ fixture.allow_start.notify_one();+ tokio::time::timeout(+ std::time::Duration::from_secs(5),+ fixture.stopped.notified(),+ )+ .await+ .unwrap();+ assert_eq!(fixture.closes.load(std::sync::atomic::Ordering::SeqCst), 1);+}++#[cfg(feature = "modules")]+#[tokio::test]+async fn stopping_listener_joins_its_bus_cleanup() {+ let (client, fixture, _service) = listener_fixture().await;+ fixture.allow_start.notify_one();+ let (handle, _rx) = start_globe_with_client(client, Push, &CancellationToken::new())+ .await+ .unwrap();+ handle.stop().await;+ assert_eq!(fixture.closes.load(std::sync::atomic::Ordering::SeqCst), 1);+}++#[cfg(feature = "modules")]+#[tokio::test]+async fn lost_start_reply_recovers_the_lease_before_releasing_admission() {+ let (client, fixture, _service) = listener_fixture().await;+ fixture+ .lose_start_reply+ .store(true, std::sync::atomic::Ordering::SeqCst);+ fixture.allow_start.notify_one();+ assert!(+ start_globe_with_client(client, Push, &CancellationToken::new())+ .await+ .is_err()+ );+ tokio::time::timeout(+ std::time::Duration::from_secs(5),+ fixture.stopped.notified(),+ )+ .await+ .unwrap();+ assert_eq!(fixture.closes.load(std::sync::atomic::Ordering::SeqCst), 1);+}++#[cfg(feature = "modules")]+#[tokio::test(start_paused = true)]+async fn failed_close_retains_ownership_until_the_module_confirms_cleanup() {+ let (client, fixture, _service) = listener_fixture().await;+ fixture+ .fail_close+ .store(true, std::sync::atomic::Ordering::SeqCst);+ fixture.allow_start.notify_one();+ let (handle, _rx) = start_globe_with_client(client, Push, &CancellationToken::new())+ .await+ .unwrap();+ handle.stop().await;+ assert_eq!(fixture.closes.load(std::sync::atomic::Ordering::SeqCst), 1);+}diff --git a/crates/openhuman-core/src/voice/server/pipeline.rs b/crates/openhuman-core/src/voice/server/pipeline.rsindex c74157dd37..b7815a5518 100644--- a/crates/openhuman-core/src/voice/server/pipeline.rs+++ b/crates/openhuman-core/src/voice/server/pipeline.rs@@ -11,11 +11,9 @@ use log::{debug, info, warn};use tokio::sync::Mutex;use crate::config::Config;+use crate::modules::accessibility::{AccessibilityClient, FocusTarget, PasteRequest};use crate::modules::voice::{is_hallucinated, HallucinationMode};use crate::voice::audio_capture::RecordingHandle;-#[cfg(target_os = "macos")]-use tinycomputer_accessibility as accessibility;-use tinycomputer_accessibility::paste as text_input;use super::types::{ServerState, VoiceServerConfig, MAX_INITIAL_PROMPT_CHARS, MAX_RECENT_TRANSCRIPTS,@@ -24,8 +22,11 @@ use super::LOG_PREFIX;/// Capture the frontmost app name at hotkey press so insertion can be validated later.#[cfg(target_os = "macos")]-pub(super) fn capture_expected_app_name() -> Option<String> {- match accessibility::focused_text_context_verbose() {+pub(super) async fn capture_expected_app_name(config: &Config) -> Option<String> {+ match AccessibilityClient::new(config)+ .focus(crate::modules::accessibility::FocusQuery { verbose: true })+ .await+ {Ok(ctx) => {let app = ctx.app_name@@ -48,7 +49,7 @@ pub(super) fn capture_expected_app_name() -> Option<String> {}#[cfg(not(target_os = "macos"))]-pub(super) fn capture_expected_app_name() -> Option<String> {+pub(super) async fn capture_expected_app_name(_config: &Config) -> Option<String> {None}@@ -271,9 +272,18 @@ pub(super) async fn process_recording_bg();} else {let insert_started = Instant::now();- if let Err(e) = text_input::insert_text(text, expected_app.as_deref()) {+ if let Err(e) = AccessibilityClient::new(config)+ .paste(PasteRequest {+ text: text.to_string(),+ target: FocusTarget {+ app: expected_app.clone(),+ ..Default::default()+ },+ })+ .await+ {warn!("{LOG_PREFIX} [pipeline={pipeline_id}] stage=deliver_paste FAILED: {e}");- *last_error.lock().await = Some(e);+ *last_error.lock().await = Some(e.to_string());} else {let insert_elapsed = insert_started.elapsed();transcription_count.fetch_add(1, Ordering::Relaxed);diff --git a/crates/openhuman-core/src/voice/server/runtime.rs b/crates/openhuman-core/src/voice/server/runtime.rsindex 10c54d3a14..92bd606426 100644--- a/crates/openhuman-core/src/voice/server/runtime.rs+++ b/crates/openhuman-core/src/voice/server/runtime.rs@@ -94,10 +94,13 @@ impl VoiceServer {// rdev's CGEventTap can see it. Use the Swift-based globe listener// instead, which monitors NSEvent.flagsChanged for the .function flag.let (listener_handle, mut hotkey_rx) = match start_hotkey_listener(+ app_config,&self.config.hotkey,self.config.activation_mode,&cancel,- ) {+ )+ .await+ {Ok(pair) => pair,Err(e) => {*self.state.lock().await = ServerState::Stopped;@@ -114,9 +117,8 @@ impl VoiceServer {// thread so the event loop stays responsive to Release events that// macOS fires almost immediately for the Fn key.let mut recording_pending_rx: Option<- tokio::sync::oneshot::Receiver<Result<RecordingHandle, String>>,+ tokio::sync::oneshot::Receiver<Result<(RecordingHandle, Option<String>), String>>,> = None;- let mut pending_expected_app: Option<String> = None;let mut pending_generation: Option<u64> = None;let mut recording_generation: Option<u64> = None;// Set when a stop-intent event (Release/Pressed toggle) arrives before@@ -203,7 +205,6 @@ impl VoiceServer {info!("{LOG_PREFIX} hotkey pressed while recording setup pending — buffering stop intent");pending_stop = true;} else {- let expected_app = capture_expected_app_name();let generation =self.session_generation.fetch_add(1, Ordering::Relaxed) + 1;debug!("{LOG_PREFIX} hotkey pressed → starting recording (non-blocking)");@@ -215,12 +216,14 @@ impl VoiceServer {// Start recording on a blocking thread so the// event loop remains responsive to Release.let (tx, rx) = tokio::sync::oneshot::channel();- tokio::task::spawn_blocking(move || {- let result = audio_capture::start_recording();+ let capture_config = app_config.clone();+ tokio::spawn(async move {+ let expected_app = capture_expected_app_name(&capture_config).await;+ let result = audio_capture::start_recording(&capture_config).await+ .map(|handle| (handle, expected_app));let _ = tx.send(result);});recording_pending_rx = Some(rx);- pending_expected_app = expected_app;pending_generation = Some(generation);pending_stop = false;deferred_stop_deadline = None;@@ -258,7 +261,7 @@ impl VoiceServer {// Recording setup completed (or failed).recording_pending_rx = None;match result {- Ok(Ok(handle)) => {+ Ok(Ok((handle, expected_app))) => {// Check for a buffered stop event that lost the// select! race against pending_ready. On warm CPAL// init both branches may be ready simultaneously;@@ -299,7 +302,7 @@ impl VoiceServer {pending_stop = false;recording = Some(handle);recording_generation = pending_generation.take();- recording_expected_app = pending_expected_app.take();+ recording_expected_app = expected_app;info!("{LOG_PREFIX} deferred stop: recording for at least {}ms",@@ -311,7 +314,7 @@ impl VoiceServer {} else {recording = Some(handle);recording_generation = pending_generation.take();- recording_expected_app = pending_expected_app.take();+ recording_expected_app = expected_app;deferred_stop_deadline = None;info!("{LOG_PREFIX} recording started (live)");@@ -320,7 +323,6 @@ impl VoiceServer {Ok(Err(e)) => {pending_stop = false;deferred_stop_deadline = None;- pending_expected_app = None;pending_generation = None;warn!("{LOG_PREFIX} failed to start recording: {e}");*self.state.lock().await = ServerState::Idle;@@ -329,7 +331,6 @@ impl VoiceServer {Err(_) => {pending_stop = false;deferred_stop_deadline = None;- pending_expected_app = None;pending_generation = None;warn!("{LOG_PREFIX} recording setup task dropped");*self.state.lock().await = ServerState::Idle;@@ -360,7 +361,7 @@ impl VoiceServer {}}- listener_handle.stop();+ listener_handle.stop().await;*self.state.lock().await = ServerState::Stopped;info!("{LOG_PREFIX} voice server stopped");diff --git a/crates/openhuman-core/src/voice/server_tests.rs b/crates/openhuman-core/src/voice/server_tests.rsindex c03be33960..5717e65145 100644--- a/crates/openhuman-core/src/voice/server_tests.rs+++ b/crates/openhuman-core/src/voice/server_tests.rs@@ -137,10 +137,13 @@ async fn push_recent_transcript_ignores_blank_and_caps_history() {assert_eq!(values.last().unwrap(), "line 6");}-#[test]-fn capture_expected_app_name_is_none_off_macos() {+#[tokio::test]+async fn capture_expected_app_name_is_none_off_macos() {if !cfg!(target_os = "macos") {- assert_eq!(capture_expected_app_name(), None);+ assert_eq!(+ capture_expected_app_name(&crate::config::Config::default()).await,+ None+ );}}diff --git a/docs/module-boundary-inventory.md b/docs/module-boundary-inventory.mdindex 43e1a6fd1d..7d1da2f22d 100644--- a/docs/module-boundary-inventory.md+++ b/docs/module-boundary-inventory.md@@ -265,3 +265,43 @@ drift. Their pending host cutovers must reconcile these pins; no new exceptionhides this mismatch. All eleven Juice v0.7.1 archive bytes were independentlyverified against the host registry, release checksum manifest, and GitHub assetdigests. Local Docs and Hosts archives also match the registry SHA-256 pins.++## Computer accessibility cutover (2026-10-11)++The Computer host cutover pins TinyComputer v0.11.0 at source+`8f50df63e46455a86f2b57f295f86ab8569df99e`, compiling contract 2.12.+All sixteen release archives were downloaded and verified against both the+published checksum manifest and GitHub asset digests. The published Linux+artifact loads through the real TinyBus host. The Linux registry now covers+permission probes as well as the existing macOS and Windows surfaces.++OpenHuman retains its one-shot and continuous microphone permission policies,+focus capture for later target validation, and push/tap activation policy.+Permission queries, permission requests, confidential focus/paste/validation,+and the native Globe listener execute inside the module. An owned listener+task recovers uncertain start replies and retains its admission guard until+cleanup succeeds. Acknowledged batches and a bounded host queue preserve+ordering; overflow resets activation until a physical release is observed.++The shipped and voice feature graphs shed `tinycomputer-accessibility`,+`arboard`, and `enigo`. The boundary audit has zero violations and zero stale+exceptions, with 26 temporary exceptions and one pending contract. The flows+profile measures 325 packages and 303 names; the all-feature profile measures+513 packages and 471 names, nine fewer of each than the preceding cutover.+Both profiles still contain the two native builds `libsqlite3-sys` and `ring`.+These counts do not measure binary size or build time. TinyVoice capture and+non-macOS hotkeys remain a separate host migration.++Linux packaging explicitly stages `libxdo.so.3` and `libasound.so.2` for loaded+modules in both AppImage layouts, checking the target ELF architecture before+copying. Final artifact validation requires these libraries independently of+the host binary's NEEDED entries. Debian declares the ALSA runtime alternatives+as well as libxdo3. Packaging fixtures cover missing libraries, invalid source+ELFs, repeated staging, and both launcher layouts.++Verification passed 51 focused Rust tests, including the published native+artifact and loader-disabled errors. Globe fixtures cover startup cancellation,+a lost start reply, retried cleanup, ordering, and overflow recovery. The+AppImage regression first failed on the obsolete host libxdo NEEDED requirement+and passes after explicit module runtime staging. The full pin audit now reports+only the existing MCP source/artifact drift, pending its separate cutover.diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjsindex 07d7f2644a..ccf406e934 100644--- a/scripts/ci/check-openhuman-rust-layout.mjs+++ b/scripts/ci/check-openhuman-rust-layout.mjs@@ -55,7 +55,7 @@ const LEGACY_LIMIT_ENTRIES = [// `core/` was pruned from the line limit by name until these pins; its// oversized files are pinned at the size they had when enforcement began.["crates/openhuman-core/src/core/all.rs", 1340],- ["crates/openhuman-core/src/core/all_tests.rs", 1492],+ ["crates/openhuman-core/src/core/all_tests.rs", 1482],["crates/openhuman-core/src/core/events.rs", 1789],["crates/openhuman-core/src/core/events_tests.rs", 997],["crates/openhuman-core/src/core/observability.rs", 3493],diff --git a/scripts/ci/module-boundaries.json b/scripts/ci/module-boundaries.jsonindex 61f9dc4f48..6f61ef88e4 100644--- a/scripts/ci/module-boundaries.json+++ b/scripts/ci/module-boundaries.json@@ -143,11 +143,6 @@"package": "tinybox-ssh","reason": "Sandbox execution, shell analysis and pre-core gateways need a bus contract."},- {- "scope": "hosts",- "package": "tinycomputer-accessibility",- "reason": "Focus, paste, permission and Globe-listener operations need bus members."- },{"scope": "hosts","package": "tinyvoice",diff --git a/scripts/ci/product-features.txt b/scripts/ci/product-features.txtindex 80cfa594dd..eca8165f95 100644--- a/scripts/ci/product-features.txt+++ b/scripts/ci/product-features.txt@@ -32,8 +32,8 @@ channels# The media_generate_* agent tools.media-# Local audio-device access (cpal): voice recording plus the accessibility-# microphone-permission probe. `voice` requires it.+# Compatibility marker for inference-backed features. Native microphone+# permission checks execute through TinyComputer; `voice` requires this gate.inference# STT/TTS, dictation server, reply speech. Shipped MISSING from v0.58.19 todiff --git a/vendor/tinycomputer b/vendor/tinycomputerindex cee0f0b7cc..8f50df63e4 160000--- a/vendor/tinycomputer+++ b/vendor/tinycomputer@@ -1 +1 @@-Subproject commit cee0f0b7ccafe4df4f0e643ba8ffe80c3f942015+Subproject commit 8f50df63e46455a86f2b57f295f86ab8569df99e