mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 20:14:34 +00:00
fix: add claude provider to statsProviderMap, UI types, and provider arrays
Fixes remaining edge cases from #382: - Add anthropic/claude mapping to statsProviderMap in cliproxy-auth-routes - Add 'claude' case to provider-refreshers switch statement - Add 'claude' to 4 UI type definitions in api-client.ts - Add 'claude' to cliproxy-dialog providers array and options - Add 'claude' to use-cliproxy-auth-flow VALID_PROVIDERS - Fix wizard index.tsx type cast to include all 8 providers
This commit is contained in:
1 parent
9cd9c423e9
commit
4a2abc74ca
6 files changed
+19
-7
No files matched your search
@@ -35,6 +35,7 @@ export async function refreshToken(
|
||||
case 'iflow':
|
||||
case 'kiro':
|
||||
case 'ghcp':
|
||||
case 'claude':
|
||||
return {
|
||||
success: false,
|
||||
error: `Token refresh not yet implemented for ${provider}`,
|
||||
|
||||
@@ -71,6 +71,8 @@ router.get('/', async (_req: Request, res: Response): Promise<void> => {
|
||||
iflow: 'iflow',
|
||||
kiro: 'kiro',
|
||||
copilot: 'ghcp', // CLIProxyAPI returns 'copilot', we map to 'ghcp'
|
||||
anthropic: 'claude', // CLIProxyAPI returns 'anthropic', we map to 'claude'
|
||||
claude: 'claude',
|
||||
};
|
||||
|
||||
// Update lastUsedAt for providers with recent activity
|
||||
|
||||
Reference in new issue
Block a user