mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-02 20:24:21 +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 {
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user