设置界面支持版本控制和github账号管理

This commit is contained in:
itpkcn@gmail.com
2026-03-21 11:33:48 +08:00
parent e801f041a0
commit 62fab2c3f2
22 changed files with 1595 additions and 4 deletions

View File

@@ -523,6 +523,41 @@ export interface SystemLanguageSettings {
language: AppLocale
}
// --- Version Control ---
export interface GitDetectResult {
installed: boolean
version: string | null
path: string | null
}
export interface GitSettings {
custom_path: string | null
}
export interface GitHubAccount {
id: string
server_url: string
username: string
token: string
scopes: string[]
avatar_url: string | null
is_default: boolean
created_at: string
}
export interface GitHubAccountsSettings {
accounts: GitHubAccount[]
}
export interface GitHubTokenValidation {
success: boolean
username: string | null
scopes: string[]
avatar_url: string | null
message: string | null
}
export type McpAppType = "claude_code" | "codex" | "open_code"
export interface LocalMcpServer {