Files
oh-my-opencode/src/cli/types.ts
T

35 lines
665 B
TypeScript
Raw Normal View History

2025-12-23 22:26:19 +09:00
export type ClaudeSubscription = "no" | "yes" | "max20"
export type BooleanArg = "no" | "yes"
export interface InstallArgs {
tui: boolean
claude?: ClaudeSubscription
chatgpt?: BooleanArg
gemini?: BooleanArg
copilot?: BooleanArg
2025-12-23 22:26:19 +09:00
skipAuth?: boolean
}
export interface InstallConfig {
hasClaude: boolean
isMax20: boolean
hasChatGPT: boolean
hasGemini: boolean
hasCopilot: boolean
2025-12-23 22:26:19 +09:00
}
export interface ConfigMergeResult {
success: boolean
configPath: string
error?: string
}
export interface DetectedConfig {
isInstalled: boolean
hasClaude: boolean
isMax20: boolean
hasChatGPT: boolean
hasGemini: boolean
hasCopilot: boolean
2025-12-23 22:26:19 +09:00
}