fix(cliproxy): add Claude to all provider lists for sidebar display

Claude was missing from:
- getAllAuthStatus() providers array in token-manager.ts
- PROVIDER_ASSETS, PROVIDER_COLORS, PROVIDER_NAMES in provider-config.ts
- PROVIDERS array in setup wizard constants.ts
- PLUS_ONLY_PROVIDERS in proxy settings
This commit is contained in:
kaitranntt
2026-01-27 20:14:22 -05:00
parent 28d8bd84a5
commit d2129957d7
4 changed files with 15 additions and 2 deletions
+10 -1
View File
@@ -145,7 +145,16 @@ export function getAuthStatus(provider: CLIProxyProvider): AuthStatus {
* Get auth status for all providers
*/
export function getAllAuthStatus(): AuthStatus[] {
const providers: CLIProxyProvider[] = ['gemini', 'codex', 'agy', 'qwen', 'iflow', 'kiro', 'ghcp'];
const providers: CLIProxyProvider[] = [
'gemini',
'codex',
'agy',
'qwen',
'iflow',
'kiro',
'ghcp',
'claude',
];
return providers.map(getAuthStatus);
}
@@ -12,6 +12,7 @@ export const PROVIDERS: ProviderOption[] = [
{ id: 'iflow', name: 'iFlow', description: 'iFlow AI models' },
{ id: 'kiro', name: 'Kiro (AWS)', description: 'AWS CodeWhisperer models' },
{ id: 'ghcp', name: 'GitHub Copilot (OAuth)', description: 'GitHub Copilot via OAuth' },
{ id: 'claude', name: 'Claude (Anthropic)', description: 'Claude Opus/Sonnet models' },
];
export const ALL_STEPS = ['provider', 'auth', 'variant', 'success'];
+3
View File
@@ -11,6 +11,7 @@ export const PROVIDER_ASSETS: Record<string, string> = {
qwen: '/assets/providers/qwen-color.svg',
kiro: '/assets/providers/kiro.png',
ghcp: '/assets/providers/copilot.svg',
claude: '/assets/providers/claude.svg',
};
// Provider brand colors
@@ -23,6 +24,7 @@ export const PROVIDER_COLORS: Record<string, string> = {
qwen: '#6236FF',
kiro: '#4d908e', // Dark Cyan (AWS-inspired)
ghcp: '#43aa8b', // Seaweed (GitHub-inspired)
claude: '#D97706', // Anthropic orange
};
// Provider display names
@@ -35,6 +37,7 @@ const PROVIDER_NAMES: Record<string, string> = {
qwen: 'Qwen',
kiro: 'Kiro (AWS)',
ghcp: 'GitHub Copilot (OAuth)',
claude: 'Claude (Anthropic)',
};
// Map provider to display name
@@ -29,7 +29,7 @@ import { api } from '@/lib/api-client';
const DEBUG_MODE_KEY = 'ccs_debug_mode';
/** Providers only available on CLIProxyAPIPlus */
const PLUS_ONLY_PROVIDERS = ['kiro', 'ghcp'];
const PLUS_ONLY_PROVIDERS = ['kiro', 'ghcp', 'claude'];
export default function ProxySection() {
const {