chore: 添加应用诊断日志

This commit is contained in:
Wxw-Gu committed 2026-07-23 16:09:20 +08:00
1 parent 3c2aa00dc6
commit 7238b4a01c
9 files changed
+258 -10

No files matched your search

+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 }>