feat(desktop): Add Export Logs (#26262)

This commit is contained in:
Luke Parker
2026-05-21 14:55:23 +10:00
committed by GitHub
parent 3d2bbc5a53
commit ac2f6cf6e8
18 changed files with 508 additions and 21 deletions
+18 -2
View File
@@ -9,13 +9,23 @@ type OpenDirectoryPickerOptions = { title?: string; multiple?: boolean }
type OpenFilePickerOptions = { title?: string; multiple?: boolean; accept?: string[]; extensions?: string[] }
type SaveFilePickerOptions = { title?: string; defaultPath?: string }
type UpdateInfo = { updateAvailable: boolean; version?: string }
type PlatformName = "web" | "desktop"
type DesktopOS = "macos" | "windows" | "linux"
export type FatalRendererErrorLog = {
error: string
url: string
version?: string
platform: PlatformName
os?: DesktopOS
}
export type Platform = {
/** Platform discriminator */
platform: "web" | "desktop"
platform: PlatformName
/** Desktop OS (Tauri only) */
os?: "macos" | "windows" | "linux"
os?: DesktopOS
/** App version */
version?: string
@@ -91,6 +101,12 @@ export type Platform = {
/** Read image from clipboard (desktop only) */
readClipboardImage?(): Promise<File | null>
/** Export collected diagnostic logs (desktop only) */
exportDebugLogs?(): Promise<string>
/** Record a fatal renderer error in platform logs (desktop only) */
recordFatalRendererError?(error: FatalRendererErrorLog): Promise<void>
}
export type DisplayBackend = "auto" | "wayland"