mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 22:14:22 +00:00
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:
1 parent
28d8bd84a5
commit
d2129957d7
4 files changed
+15
-2
No files matched your search
@@ -145,7 +145,16 @@ export function getAuthStatus(provider: CLIProxyProvider): AuthStatus {
|
|||||||
* Get auth status for all providers
|
* Get auth status for all providers
|
||||||
*/
|
*/
|
||||||
export function getAllAuthStatus(): AuthStatus[] {
|
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);
|
return providers.map(getAuthStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export const PROVIDERS: ProviderOption[] = [
|
|||||||
{ id: 'iflow', name: 'iFlow', description: 'iFlow AI models' },
|
{ id: 'iflow', name: 'iFlow', description: 'iFlow AI models' },
|
||||||
{ id: 'kiro', name: 'Kiro (AWS)', description: 'AWS CodeWhisperer models' },
|
{ id: 'kiro', name: 'Kiro (AWS)', description: 'AWS CodeWhisperer models' },
|
||||||
{ id: 'ghcp', name: 'GitHub Copilot (OAuth)', description: 'GitHub Copilot via OAuth' },
|
{ 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'];
|
export const ALL_STEPS = ['provider', 'auth', 'variant', 'success'];
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export const PROVIDER_ASSETS: Record<string, string> = {
|
|||||||
qwen: '/assets/providers/qwen-color.svg',
|
qwen: '/assets/providers/qwen-color.svg',
|
||||||
kiro: '/assets/providers/kiro.png',
|
kiro: '/assets/providers/kiro.png',
|
||||||
ghcp: '/assets/providers/copilot.svg',
|
ghcp: '/assets/providers/copilot.svg',
|
||||||
|
claude: '/assets/providers/claude.svg',
|
||||||
};
|
};
|
||||||
|
|
||||||
// Provider brand colors
|
// Provider brand colors
|
||||||
@@ -23,6 +24,7 @@ export const PROVIDER_COLORS: Record<string, string> = {
|
|||||||
qwen: '#6236FF',
|
qwen: '#6236FF',
|
||||||
kiro: '#4d908e', // Dark Cyan (AWS-inspired)
|
kiro: '#4d908e', // Dark Cyan (AWS-inspired)
|
||||||
ghcp: '#43aa8b', // Seaweed (GitHub-inspired)
|
ghcp: '#43aa8b', // Seaweed (GitHub-inspired)
|
||||||
|
claude: '#D97706', // Anthropic orange
|
||||||
};
|
};
|
||||||
|
|
||||||
// Provider display names
|
// Provider display names
|
||||||
@@ -35,6 +37,7 @@ const PROVIDER_NAMES: Record<string, string> = {
|
|||||||
qwen: 'Qwen',
|
qwen: 'Qwen',
|
||||||
kiro: 'Kiro (AWS)',
|
kiro: 'Kiro (AWS)',
|
||||||
ghcp: 'GitHub Copilot (OAuth)',
|
ghcp: 'GitHub Copilot (OAuth)',
|
||||||
|
claude: 'Claude (Anthropic)',
|
||||||
};
|
};
|
||||||
|
|
||||||
// Map provider to display name
|
// Map provider to display name
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import { api } from '@/lib/api-client';
|
|||||||
const DEBUG_MODE_KEY = 'ccs_debug_mode';
|
const DEBUG_MODE_KEY = 'ccs_debug_mode';
|
||||||
|
|
||||||
/** Providers only available on CLIProxyAPIPlus */
|
/** Providers only available on CLIProxyAPIPlus */
|
||||||
const PLUS_ONLY_PROVIDERS = ['kiro', 'ghcp'];
|
const PLUS_ONLY_PROVIDERS = ['kiro', 'ghcp', 'claude'];
|
||||||
|
|
||||||
export default function ProxySection() {
|
export default function ProxySection() {
|
||||||
const {
|
const {
|
||||||
|
|||||||
Reference in new issue
Block a user