mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-26 06:24:32 +08:00
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:
@@ -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 同步方式
|
||||
|
||||
Reference in New Issue
Block a user