feat(types): add CommonConfigEnabledByApp type for per-app tracking

- Add CommonConfigEnabledByApp type for claude/codex/gemini
- Add commonConfigEnabled field to ProviderMeta
- Add commonConfigEnabledByApp field with higher priority
This commit is contained in:
YoVinchen
2026-01-25 03:44:30 +08:00
parent 06d69caf79
commit 86cfa452e9
+10
View File
@@ -119,6 +119,12 @@ export interface ProviderProxyConfig {
proxyPassword?: string;
}
export type CommonConfigEnabledByApp = Partial<{
claude: boolean;
codex: boolean;
gemini: boolean;
}>;
// 供应商元数据(字段名与后端一致,保持 snake_case
export interface ProviderMeta {
// 自定义端点:以 URL 为键,值为端点信息
@@ -135,6 +141,10 @@ export interface ProviderMeta {
testConfig?: ProviderTestConfig;
// 供应商单独的代理配置
proxyConfig?: ProviderProxyConfig;
// 是否启用通用配置片段(用于跨供应商保持勾选状态)
commonConfigEnabled?: boolean;
// 按应用记录通用配置启用状态(优先于 commonConfigEnabled
commonConfigEnabledByApp?: CommonConfigEnabledByApp;
}
// Skill 同步方式