From 036714c77447c4887da038b7979495c80f171c88 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Mon, 22 Dec 2025 00:44:03 -0500 Subject: [PATCH] feat(cliproxy): add kiro and ghcp providers to CLIProxyProvider type - extend CLIProxyProvider union with 'kiro' and 'ghcp' - add both to CLIPROXY_PROFILES array --- src/auth/profile-detector.ts | 2 +- src/cliproxy/types.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/auth/profile-detector.ts b/src/auth/profile-detector.ts index 7016a0ae..014d5407 100644 --- a/src/auth/profile-detector.ts +++ b/src/auth/profile-detector.ts @@ -27,7 +27,7 @@ export const CLIPROXY_PROFILES = [ 'qwen', 'iflow', 'kiro', - 'copilot', + 'ghcp', ] as const; export type CLIProxyProfileName = (typeof CLIPROXY_PROFILES)[number]; diff --git a/src/cliproxy/types.ts b/src/cliproxy/types.ts index b6cb745a..b501fa71 100644 --- a/src/cliproxy/types.ts +++ b/src/cliproxy/types.ts @@ -115,9 +115,9 @@ export interface DownloadResult { * - qwen: Qwen Code via OAuth (qwen3-coder) * - iflow: iFlow via OAuth * - kiro: Kiro (AWS CodeWhisperer) via OAuth - * - copilot: GitHub Copilot via Device Code + * - ghcp: GitHub Copilot via Device Code (OAuth through CLIProxyAPIPlus) */ -export type CLIProxyProvider = 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'copilot'; +export type CLIProxyProvider = 'gemini' | 'codex' | 'agy' | 'qwen' | 'iflow' | 'kiro' | 'ghcp'; /** * CLIProxy config.yaml structure (minimal)