mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-03 08:18:23 +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 {
|
export interface Variant {
|
||||||
name: string;
|
name: string;
|
||||||
provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'copilot';
|
provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'ghcp';
|
||||||
settings: string;
|
settings: string;
|
||||||
account?: string;
|
account?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateVariant {
|
export interface CreateVariant {
|
||||||
name: string;
|
name: string;
|
||||||
provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'copilot';
|
provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'ghcp';
|
||||||
model?: string;
|
model?: string;
|
||||||
account?: string;
|
account?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UpdateVariant {
|
export interface UpdateVariant {
|
||||||
provider?: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'copilot';
|
provider?: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'ghcp';
|
||||||
model?: string;
|
model?: string;
|
||||||
account?: string;
|
account?: string;
|
||||||
}
|
}
|
||||||
@@ -69,7 +69,7 @@ export interface UpdateVariant {
|
|||||||
export interface OAuthAccount {
|
export interface OAuthAccount {
|
||||||
id: string;
|
id: string;
|
||||||
email?: string;
|
email?: string;
|
||||||
provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'copilot';
|
provider: 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'ghcp';
|
||||||
isDefault: boolean;
|
isDefault: boolean;
|
||||||
tokenFile: string;
|
tokenFile: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
|
|||||||
@@ -196,9 +196,9 @@ export const MODEL_CATALOGS: Record<string, ProviderCatalog> = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
copilot: {
|
ghcp: {
|
||||||
provider: 'copilot',
|
provider: 'ghcp',
|
||||||
displayName: 'GitHub Copilot',
|
displayName: 'GitHub Copilot (OAuth)',
|
||||||
defaultModel: 'claude-sonnet-4.5',
|
defaultModel: 'claude-sonnet-4.5',
|
||||||
models: [
|
models: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export const PROVIDER_ASSETS: Record<string, string> = {
|
|||||||
codex: '/assets/providers/openai.svg',
|
codex: '/assets/providers/openai.svg',
|
||||||
qwen: '/assets/providers/qwen-color.svg',
|
qwen: '/assets/providers/qwen-color.svg',
|
||||||
kiro: '/assets/providers/kiro.png',
|
kiro: '/assets/providers/kiro.png',
|
||||||
copilot: '/assets/providers/copilot.svg',
|
ghcp: '/assets/providers/copilot.svg',
|
||||||
};
|
};
|
||||||
|
|
||||||
// Provider brand colors
|
// Provider brand colors
|
||||||
@@ -22,7 +22,7 @@ export const PROVIDER_COLORS: Record<string, string> = {
|
|||||||
iflow: '#f94144',
|
iflow: '#f94144',
|
||||||
qwen: '#6236FF',
|
qwen: '#6236FF',
|
||||||
kiro: '#4d908e', // Dark Cyan (AWS-inspired)
|
kiro: '#4d908e', // Dark Cyan (AWS-inspired)
|
||||||
copilot: '#43aa8b', // Seaweed (GitHub-inspired)
|
ghcp: '#43aa8b', // Seaweed (GitHub-inspired)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Provider display names
|
// Provider display names
|
||||||
@@ -34,7 +34,7 @@ const PROVIDER_NAMES: Record<string, string> = {
|
|||||||
iflow: 'iFlow',
|
iflow: 'iFlow',
|
||||||
qwen: 'Qwen',
|
qwen: 'Qwen',
|
||||||
kiro: 'Kiro (AWS)',
|
kiro: 'Kiro (AWS)',
|
||||||
copilot: 'GitHub Copilot',
|
ghcp: 'GitHub Copilot (OAuth)',
|
||||||
};
|
};
|
||||||
|
|
||||||
// Map provider to display name
|
// Map provider to display name
|
||||||
|
|||||||
Reference in New Issue
Block a user