mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-30 06:32:24 +00:00
feat: add tools-discovery-bin feature to Tauri integration
- Updated the Tauri command in both discover-tools.js and tauri-integration.js to include the new '--features tools-discovery-bin' option for enhanced tool discovery. - Bumped OpenHuman version to 0.49.5 in Cargo.lock to reflect dependency updates. - Added required features for openhuman-tools-discovery, openhuman-core, and openhuman-cli in Cargo.toml to support the new functionality.
This commit is contained in:
@@ -211,6 +211,8 @@ async function discoverToolsFromTauri() {
|
||||
join(PROJECT_ROOT, 'src-tauri', 'Cargo.toml'),
|
||||
'--bin',
|
||||
'openhuman-tools-discovery',
|
||||
'--features',
|
||||
'tools-discovery-bin',
|
||||
];
|
||||
|
||||
console.log('🔧 Attempting to run tools discovery via Cargo...');
|
||||
|
||||
@@ -28,6 +28,8 @@ export function getTauriCommand() {
|
||||
join(PROJECT_ROOT, 'src-tauri', 'Cargo.toml'),
|
||||
'--bin',
|
||||
'openhuman-tools-discovery',
|
||||
'--features',
|
||||
'tools-discovery-bin',
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
Generated
+1
-1
@@ -4,7 +4,7 @@ version = 4
|
||||
|
||||
[[package]]
|
||||
name = "OpenHuman"
|
||||
version = "0.49.4"
|
||||
version = "0.49.5"
|
||||
dependencies = [
|
||||
"aes-gcm",
|
||||
"android_logger",
|
||||
|
||||
@@ -22,14 +22,17 @@ path = "src/main.rs"
|
||||
[[bin]]
|
||||
name = "openhuman-tools-discovery"
|
||||
path = "src/bin/openhuman-tools-discovery.rs"
|
||||
required-features = ["tools-discovery-bin"]
|
||||
|
||||
[[bin]]
|
||||
name = "openhuman-core"
|
||||
path = "src/bin/openhuman-core.rs"
|
||||
required-features = ["openhuman-core-bin"]
|
||||
|
||||
[[bin]]
|
||||
name = "openhuman-cli"
|
||||
path = "src/bin/openhuman-cli.rs"
|
||||
required-features = ["openhuman-cli-bin"]
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = { version = "2", features = [] }
|
||||
@@ -184,6 +187,9 @@ tempfile = "3"
|
||||
custom-protocol = ["tauri/custom-protocol"]
|
||||
sandbox-landlock = ["dep:landlock"]
|
||||
sandbox-bubblewrap = []
|
||||
tools-discovery-bin = []
|
||||
openhuman-core-bin = []
|
||||
openhuman-cli-bin = []
|
||||
|
||||
# OpenHuman feature flags
|
||||
hardware = ["dep:nusb", "dep:tokio-serial"]
|
||||
|
||||
Reference in New Issue
Block a user