feat(opencode-go): add CLI install flag and TUI prompts

This commit is contained in:
YeonGyu-Kim
2026-03-12 17:31:04 +09:00
parent 89d1e105a8
commit 66ec9f58ee
3 changed files with 20 additions and 4 deletions
+12 -1
View File
@@ -97,9 +97,19 @@ export async function promptInstallConfig(detected: DetectedConfig): Promise<Ins
{ value: "yes", label: "Yes", hint: "Kimi K2.5 for Sisyphus/Prometheus fallback" },
],
initialValue: initial.kimiForCoding,
})
})
if (!kimiForCoding) return null
const opencodeGo = await selectOrCancel({
message: "Do you have an OpenCode Go subscription?",
options: [
{ value: "no", label: "No", hint: "Will use other configured providers" },
{ value: "yes", label: "Yes", hint: "OpenCode Go for quick tasks" },
],
initialValue: initial.opencodeGo,
})
if (!opencodeGo) return null
return {
hasClaude: claude !== "no",
isMax20: claude === "max20",
@@ -109,5 +119,6 @@ export async function promptInstallConfig(detected: DetectedConfig): Promise<Ins
hasOpencodeZen: opencodeZen === "yes",
hasZaiCodingPlan: zaiCodingPlan === "yes",
hasKimiForCoding: kimiForCoding === "yes",
hasOpencodeGo: opencodeGo === "yes",
}
}