All #[tauri::command] functions live here. The frontend calls these via @tauri-apps/api/core's invoke() (or our shim in frontend/src/lib/tauri.ts that pokes window.TAURIINTERNALS.invoke directly to avoid the npm package dep). Registered in lib.rs::invokehandler.
In the dmg the Tauri webview origin is https://tauri.localhost (HTTPS) while the local backend serves on http://localhost:8000 (HTTP). WKWebView classifies any HTTP subresource loaded from an HTTPS document as "active mixed content" and blocks it silently — both iframe loads and fetch() from JS. The artifact panel…
Single #[tauri::command] consumependingdeeplink that returns and clears AppState::pendingdeeplink. Frontend calls it once on App mount via the wrapper in frontend/src/lib/tauri.ts::consumePendingDeepLink.
Just module declarations: auth, config, deeplink, filedownload, health, netmindoauth, notify, power, service, tray, updater, artifactfetch, officewatchscheme. No logic. Each module exposes one or more #[tauri::command] functions registered in lib.rs::run's invokehandler! (or, for officewatchscheme, a custom-scheme…
Rust code that connects NetMind's browser-based sign-in flow to a desktop webview. A webview is an embedded browser inside a desktop app; this bridge captures the sign-in result and passes it back to the app.
notifycompletion(title, body) posts a system notification via tauri-plugin-notification's Rust API. Exists as a custom command (instead of the plugin's JS guest bindings) because the frontend carries no @tauri-apps/ npm dependency — bare specifiers break inside the packaged DMG (see [[tauri.ts]]). All gating…
setpreventsleep(enabled) / getpreventsleep(). macOS: spawns caffeinate -dims -w — -w ties the assertion to the app's lifetime, so a crash/quit can never leave an orphan keeping the machine awake (toggle-off kills the child early). Non-macOS returns Err so the frontend toggle stays off. Child handle lives in the…
A desktop tray command that changes the badge count shown by the app's menu-bar or system-tray icon. The count represents how many agents are currently running.
Previous design had three half-aligned UX paths: Settings page showed text in the page, tray menu and startup auto-check both showed osascript dialogs. Symptoms in production.