d7326e1eeb
Add GitHub Copilot as a fallback provider option in the installer. Native providers (Claude/ChatGPT/Gemini) have priority over Copilot. - Add hasCopilot field to InstallConfig and DetectedConfig types - Add --copilot flag support for both TUI and non-TUI modes - Add Copilot prompt in interactive installer (after Gemini) - Update model selection logic to use Copilot fallback when native providers unavailable - Update configuration summary to display Copilot status Addresses #762 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
35 lines
665 B
TypeScript
35 lines
665 B
TypeScript
export type ClaudeSubscription = "no" | "yes" | "max20"
|
|
export type BooleanArg = "no" | "yes"
|
|
|
|
export interface InstallArgs {
|
|
tui: boolean
|
|
claude?: ClaudeSubscription
|
|
chatgpt?: BooleanArg
|
|
gemini?: BooleanArg
|
|
copilot?: BooleanArg
|
|
skipAuth?: boolean
|
|
}
|
|
|
|
export interface InstallConfig {
|
|
hasClaude: boolean
|
|
isMax20: boolean
|
|
hasChatGPT: boolean
|
|
hasGemini: boolean
|
|
hasCopilot: boolean
|
|
}
|
|
|
|
export interface ConfigMergeResult {
|
|
success: boolean
|
|
configPath: string
|
|
error?: string
|
|
}
|
|
|
|
export interface DetectedConfig {
|
|
isInstalled: boolean
|
|
hasClaude: boolean
|
|
isMax20: boolean
|
|
hasChatGPT: boolean
|
|
hasGemini: boolean
|
|
hasCopilot: boolean
|
|
}
|