export type ProviderCategory = | "official" // 官方 | "cn_official" // 国产官方 | "aggregator" // 聚合网站 | "third_party" // 第三方供应商 | "custom"; // 自定义 export interface Provider { id: string; name: string; settingsConfig: Record; // 应用配置对象:Claude 为 settings.json;Codex 为 { auth, config } websiteUrl?: string; // 新增:供应商分类(用于差异化提示/能力开关) category?: ProviderCategory; createdAt?: number; // 添加时间戳(毫秒) } export interface AppConfig { providers: Record; current: string; } // 应用设置类型(用于 SettingsModal 与 Tauri API) export interface Settings { // 是否在系统托盘(macOS 菜单栏)显示图标 showInTray: boolean; }