feat(ui): setAutoStart binding + auto_start in AppSettings

This commit is contained in:
iamdoubz committed 2026-07-14 16:24:25 -05:00
1 parent 4a63b38ee0
commit 26808970df
1 file changed
+4
+4
View File
@@ -336,6 +336,9 @@ export interface AppSettings {
audio_output_device: string | null;
microphone_enabled: boolean;
audio_input_device: string | null;
/** Launch WhispAssist at login (opt-in, off by default; NFR-RES-4). Toggled
* via setAutoStart, which writes a per-user Run entry (no admin). */
auto_start: boolean;
}
// Feature brief — agent-ready spec distilled from a meeting (ADR-0011).
@@ -417,6 +420,7 @@ export const api = {
listInputDevices: () => invoke<AudioDeviceInfo[]>("list_input_devices"),
setPreferredBackend: (backend: BackendId | "auto") =>
invoke<void>("set_preferred_backend", { args: { backend } }),
setAutoStart: (enabled: boolean) => invoke<void>("set_auto_start", { enabled }),
downloadNpuPackage: () => invoke<void>("download_npu_package"),
downloadDirectmlPackage: () => invoke<void>("download_directml_package"),
listModels: () => invoke<ModelInfo[]>("list_models"),