mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 20:17:45 +00:00
feat(ui): add kiro and ghcp to provider types and configs
- update Variant, CreateVariant, UpdateVariant, OAuthAccount types - add ghcp to PROVIDER_ASSETS, PROVIDER_COLORS, PROVIDER_NAMES - add ghcp catalog with model configurations
This commit is contained in:
@@ -47,20 +47,20 @@ export interface UpdateProfile {
|
||||
|
||||
export interface Variant {
|
||||
name: string;
|
||||
provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'copilot';
|
||||
provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'ghcp';
|
||||
settings: string;
|
||||
account?: string;
|
||||
}
|
||||
|
||||
export interface CreateVariant {
|
||||
name: string;
|
||||
provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'copilot';
|
||||
provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'ghcp';
|
||||
model?: string;
|
||||
account?: string;
|
||||
}
|
||||
|
||||
export interface UpdateVariant {
|
||||
provider?: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'copilot';
|
||||
provider?: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'ghcp';
|
||||
model?: string;
|
||||
account?: string;
|
||||
}
|
||||
@@ -69,7 +69,7 @@ export interface UpdateVariant {
|
||||
export interface OAuthAccount {
|
||||
id: string;
|
||||
email?: string;
|
||||
provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'copilot';
|
||||
provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'ghcp';
|
||||
isDefault: boolean;
|
||||
tokenFile: string;
|
||||
createdAt: string;
|
||||
|
||||
@@ -196,9 +196,9 @@ export const MODEL_CATALOGS: Record<string, ProviderCatalog> = {
|
||||
},
|
||||
],
|
||||
},
|
||||
copilot: {
|
||||
provider: 'copilot',
|
||||
displayName: 'GitHub Copilot',
|
||||
ghcp: {
|
||||
provider: 'ghcp',
|
||||
displayName: 'GitHub Copilot (OAuth)',
|
||||
defaultModel: 'claude-sonnet-4.5',
|
||||
models: [
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ export const PROVIDER_ASSETS: Record<string, string> = {
|
||||
codex: '/assets/providers/openai.svg',
|
||||
qwen: '/assets/providers/qwen-color.svg',
|
||||
kiro: '/assets/providers/kiro.png',
|
||||
copilot: '/assets/providers/copilot.svg',
|
||||
ghcp: '/assets/providers/copilot.svg',
|
||||
};
|
||||
|
||||
// Provider brand colors
|
||||
@@ -22,7 +22,7 @@ export const PROVIDER_COLORS: Record<string, string> = {
|
||||
iflow: '#f94144',
|
||||
qwen: '#6236FF',
|
||||
kiro: '#4d908e', // Dark Cyan (AWS-inspired)
|
||||
copilot: '#43aa8b', // Seaweed (GitHub-inspired)
|
||||
ghcp: '#43aa8b', // Seaweed (GitHub-inspired)
|
||||
};
|
||||
|
||||
// Provider display names
|
||||
@@ -34,7 +34,7 @@ const PROVIDER_NAMES: Record<string, string> = {
|
||||
iflow: 'iFlow',
|
||||
qwen: 'Qwen',
|
||||
kiro: 'Kiro (AWS)',
|
||||
copilot: 'GitHub Copilot',
|
||||
ghcp: 'GitHub Copilot (OAuth)',
|
||||
};
|
||||
|
||||
// Map provider to display name
|
||||
|
||||
Reference in New Issue
Block a user