feat(opencode): 改进 XCOpenCodeWeb 服务管理和健康检查

This commit is contained in:
2026-03-14 20:44:15 +08:00
parent b5343bcd9d
commit 88d42b37a6
4 changed files with 80 additions and 49 deletions

View File

@@ -44,6 +44,7 @@ export interface ElectronAPI {
xcOpenCodeWebStop: () => Promise<{ success: boolean; error?: string }>
xcOpenCodeWebGetStatus: () => Promise<{ running: boolean; port: number }>
xcOpenCodeWebGetPort: () => Promise<{ port: number }>
xcOpenCodeWebCheckReady: () => Promise<{ ready: boolean }>
}
declare global {