mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-22 13:31:16 +00:00
New discovery.rs browses _openclaw-gw._tcp with a lifetime mdns-sd browser, keeps a fullname-keyed snapshot (resolved updates replace, goodbye/TTL removes), and mirrors the native clients' TXT contract and direct-selection gate (resolved SRV endpoint routing; tailnetDns is a hint only). The bootstrap page lists discovered gateways and connecting navigates the dashboard WebView to the resolved endpoint, validated against the live snapshot; remote selection cancels the local watchdog so an in-flight local bootstrap cannot steal the WebView back.
18 lines
590 B
Rust
18 lines
590 B
Rust
fn main() {
|
|
// Command metadata generates capability permissions independently of the
|
|
// target's invoke handler, so keep the Linux-only command permission known.
|
|
const COMMANDS: &[&str] = &[
|
|
"bootstrap",
|
|
"canvas_a2ui_action",
|
|
"connect_discovered_gateway",
|
|
"discover_gateways",
|
|
"gateway_action",
|
|
"install_cli",
|
|
];
|
|
tauri_build::try_build(
|
|
tauri_build::Attributes::new()
|
|
.app_manifest(tauri_build::AppManifest::new().commands(COMMANDS)),
|
|
)
|
|
.expect("Tauri build configuration should be valid");
|
|
}
|