chore: 添加应用诊断日志

This commit is contained in:
Wxw-Gu
2026-07-23 16:09:20 +08:00
parent 0d544275c0
commit 62f729d281
9 changed files with 258 additions and 10 deletions
+4
View File
@@ -38,6 +38,7 @@ import type {
ImageInsight
} from '../shared/image-insight'
import type { AgentHubActionResult, AgentHubLogEntry, AgentHubStatus } from '../shared/agent-hub'
import type { AppLogEntry } from '../shared/app-log'
export type ParsedContent =
| { type: 'text'; content: string }
@@ -71,6 +72,9 @@ declare global {
interface Window {
electron: ElectronAPI
api: {
writeAppLog: (entry: AppLogEntry) => Promise<void>
getAppLogPath: () => Promise<string>
revealAppLog: () => Promise<void>
initDb: (
key: string
) => Promise<boolean | { success: boolean; error?: string; monitoring?: boolean }>