Add update check functionality

Implement version checking and update notifications in the GUI
This commit is contained in:
2026-06-15 14:23:30 +07:00
parent 4c9eacccb7
commit 9db52595c7
8 changed files with 446 additions and 9 deletions
+10
View File
@@ -189,6 +189,16 @@ export async function getHealth(): Promise<DaemonHealth> {
return await invoke<DaemonHealth>("health");
}
export interface UpdateInfo { current: string; latest: string; has_update: boolean; url: string }
export async function checkUpdate(): Promise<UpdateInfo> {
return await invoke<UpdateInfo>("check_update");
}
export async function openExternal(url: string): Promise<void> {
await invoke("open_external", { url });
}
export async function setZoom(workspaceId: string, surfaceId: string | null): Promise<void> {
await invoke("set_zoom", { workspaceId, surfaceId });
}