From d04bcc117f5fd79bf52ab97ce597173a9c40ff00 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Mon, 22 Dec 2025 00:45:38 -0500 Subject: [PATCH] feat(config): add kiro and ghcp to unified config and auth routes - extend CLIProxyVariantConfig provider type - update createEmptyUnifiedConfig providers array - add kiro and ghcp to validProviders in auth routes --- src/config/unified-config-types.ts | 4 ++-- src/web-server/routes/cliproxy-auth-routes.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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