feat(opencode-go): add CLI install flag and TUI prompts
This commit is contained in:
@@ -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",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user