diff --git a/src/config/unified-config-types.ts b/src/config/unified-config-types.ts index 812b89eb..a5e2bc4c 100644 --- a/src/config/unified-config-types.ts +++ b/src/config/unified-config-types.ts @@ -58,7 +58,7 @@ export type OAuthAccounts = Record; */ export interface CLIProxyVariantConfig { /** Base provider to use */ - provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'copilot'; + provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'ghcp'; /** Account nickname (references oauth_accounts) */ account?: string; /** Path to settings file (e.g., "~/.ccs/gemini-custom.settings.json") */ @@ -370,7 +370,7 @@ export function createEmptyUnifiedConfig(): UnifiedConfig { profiles: {}, cliproxy: { oauth_accounts: {}, - providers: ['gemini', 'codex', 'agy', 'qwen', 'iflow'], + providers: ['gemini', 'codex', 'agy', 'qwen', 'iflow', 'kiro', 'ghcp'], variants: {}, logging: { enabled: false, diff --git a/src/web-server/routes/cliproxy-auth-routes.ts b/src/web-server/routes/cliproxy-auth-routes.ts index 1b3ed88b..1abf36d2 100644 --- a/src/web-server/routes/cliproxy-auth-routes.ts +++ b/src/web-server/routes/cliproxy-auth-routes.ts @@ -35,7 +35,7 @@ const validProviders: CLIProxyProvider[] = [ 'qwen', 'iflow', 'kiro', - 'copilot', + 'ghcp', ]; /** @@ -66,7 +66,7 @@ router.get('/', async (_req: Request, res: Response): Promise => { qwen: 'qwen', iflow: 'iflow', kiro: 'kiro', - copilot: 'copilot', + copilot: 'ghcp', // CLIProxyAPI returns 'copilot', we map to 'ghcp' }; // Update lastUsedAt for providers with recent activity