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
This commit is contained in:
kaitranntt
2025-12-22 00:45:38 -05:00
parent 49bc0a44cc
commit d04bcc117f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ export type OAuthAccounts = Record<string, string>;
*/ */
export interface CLIProxyVariantConfig { export interface CLIProxyVariantConfig {
/** Base provider to use */ /** 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 nickname (references oauth_accounts) */
account?: string; account?: string;
/** Path to settings file (e.g., "~/.ccs/gemini-custom.settings.json") */ /** Path to settings file (e.g., "~/.ccs/gemini-custom.settings.json") */
@@ -370,7 +370,7 @@ export function createEmptyUnifiedConfig(): UnifiedConfig {
profiles: {}, profiles: {},
cliproxy: { cliproxy: {
oauth_accounts: {}, oauth_accounts: {},
providers: ['gemini', 'codex', 'agy', 'qwen', 'iflow'], providers: ['gemini', 'codex', 'agy', 'qwen', 'iflow', 'kiro', 'ghcp'],
variants: {}, variants: {},
logging: { logging: {
enabled: false, enabled: false,
@@ -35,7 +35,7 @@ const validProviders: CLIProxyProvider[] = [
'qwen', 'qwen',
'iflow', 'iflow',
'kiro', 'kiro',
'copilot', 'ghcp',
]; ];
/** /**
@@ -66,7 +66,7 @@ router.get('/', async (_req: Request, res: Response): Promise<void> => {
qwen: 'qwen', qwen: 'qwen',
iflow: 'iflow', iflow: 'iflow',
kiro: 'kiro', kiro: 'kiro',
copilot: 'copilot', copilot: 'ghcp', // CLIProxyAPI returns 'copilot', we map to 'ghcp'
}; };
// Update lastUsedAt for providers with recent activity // Update lastUsedAt for providers with recent activity