mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-15 06:16:03 +00:00
feat(cliproxy): rename kimi API preset to km, add kimi to UI
- create config/base-km.settings.json for API-key Kimi users - rename preset id 'kimi' to 'km' in CLI and UI provider presets - add 'ccs km' to help text API section, keep 'ccs kimi' for OAuth - add --km delegation flag for API-key mode, --kimi stays for OAuth - add kimi to UI CLIPROXY_PROVIDERS, assets, colors, names, device code
This commit is contained in:
1 parent
08b2a67913
commit
f451f4e421
5 files changed
+24
-7
No files matched your search
@@ -19,6 +19,7 @@ export const CLIPROXY_PROVIDERS = [
|
||||
'kiro',
|
||||
'ghcp',
|
||||
'claude',
|
||||
'kimi',
|
||||
] as const;
|
||||
|
||||
/** Union type for CLIProxy provider IDs */
|
||||
@@ -39,6 +40,7 @@ export const PROVIDER_ASSETS: Record<string, string> = {
|
||||
kiro: '/assets/providers/kiro.png',
|
||||
ghcp: '/assets/providers/copilot.svg',
|
||||
claude: '/assets/providers/claude.svg',
|
||||
kimi: '/assets/providers/kimi.svg',
|
||||
};
|
||||
|
||||
// Provider brand colors
|
||||
@@ -52,6 +54,7 @@ export const PROVIDER_COLORS: Record<string, string> = {
|
||||
kiro: '#4d908e', // Dark Cyan (AWS-inspired)
|
||||
ghcp: '#43aa8b', // Seaweed (GitHub-inspired)
|
||||
claude: '#D97757', // Anthropic brand color (matches SVG)
|
||||
kimi: '#FF6B35', // Moonshot AI brand orange
|
||||
};
|
||||
|
||||
// Provider display names
|
||||
@@ -65,6 +68,7 @@ const PROVIDER_NAMES: Record<string, string> = {
|
||||
kiro: 'Kiro (AWS)',
|
||||
ghcp: 'GitHub Copilot (OAuth)',
|
||||
claude: 'Claude (Anthropic)',
|
||||
kimi: 'Kimi (Moonshot)',
|
||||
};
|
||||
|
||||
// Map provider to display name
|
||||
@@ -76,7 +80,7 @@ export function getProviderDisplayName(provider: string): string {
|
||||
* Providers that use Device Code OAuth flow instead of Authorization Code flow.
|
||||
* Device Code flow requires displaying a user code for manual entry at provider's website.
|
||||
*/
|
||||
export const DEVICE_CODE_PROVIDERS: CLIProxyProvider[] = ['ghcp', 'kiro', 'qwen'];
|
||||
export const DEVICE_CODE_PROVIDERS: CLIProxyProvider[] = ['ghcp', 'kiro', 'qwen', 'kimi'];
|
||||
|
||||
/** Check if provider uses Device Code flow */
|
||||
export function isDeviceCodeProvider(provider: string): boolean {
|
||||
|
||||
@@ -90,11 +90,11 @@ export const PROVIDER_PRESETS: ProviderPreset[] = [
|
||||
category: 'alternative',
|
||||
},
|
||||
{
|
||||
id: 'kimi',
|
||||
id: 'km',
|
||||
name: 'Kimi',
|
||||
description: 'Moonshot AI - Fast reasoning model',
|
||||
baseUrl: 'https://api.kimi.com/coding/',
|
||||
defaultProfileName: 'kimi',
|
||||
defaultProfileName: 'km',
|
||||
badge: 'Reasoning',
|
||||
icon: '/icons/kimi.svg',
|
||||
defaultModel: 'kimi-k2-thinking-turbo',
|
||||
@@ -102,6 +102,7 @@ export const PROVIDER_PRESETS: ProviderPreset[] = [
|
||||
apiKeyPlaceholder: 'sk-...',
|
||||
apiKeyHint: 'Get your API key from Moonshot AI',
|
||||
category: 'alternative',
|
||||
alwaysThinkingEnabled: true,
|
||||
},
|
||||
{
|
||||
id: 'foundry',
|
||||
|
||||
Reference in new issue
Block a user