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:
kaitranntt
2025-12-22 00:46:51 -05:00
parent f5a382c3d5
commit bf3d51ade3
3 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -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;
+3 -3
View File
@@ -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: [
{
+3 -3
View File
@@ -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