mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 20:17:45 +00:00
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:
@@ -58,7 +58,7 @@ export type OAuthAccounts = Record<string, string>;
|
||||
*/
|
||||
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,
|
||||
|
||||
@@ -35,7 +35,7 @@ const validProviders: CLIProxyProvider[] = [
|
||||
'qwen',
|
||||
'iflow',
|
||||
'kiro',
|
||||
'copilot',
|
||||
'ghcp',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -66,7 +66,7 @@ router.get('/', async (_req: Request, res: Response): Promise<void> => {
|
||||
qwen: 'qwen',
|
||||
iflow: 'iflow',
|
||||
kiro: 'kiro',
|
||||
copilot: 'copilot',
|
||||
copilot: 'ghcp', // CLIProxyAPI returns 'copilot', we map to 'ghcp'
|
||||
};
|
||||
|
||||
// Update lastUsedAt for providers with recent activity
|
||||
|
||||
Reference in New Issue
Block a user