feat: improve onboarding auth prompts

This commit is contained in:
Peter Steinberger
2026-01-12 07:43:20 +00:00
parent 018f7aa4df
commit e79cf5a8b1
7 changed files with 66 additions and 19 deletions

View File

@@ -47,6 +47,12 @@ const AUTH_CHOICE_GROUP_DEFS: {
hint: "Claude CLI + API key",
choices: ["claude-cli", "setup-token", "token", "apiKey"],
},
{
value: "minimax",
label: "MiniMax",
hint: "M2.1 (recommended)",
choices: ["minimax-api", "minimax-api-lightning"],
},
{
value: "google",
label: "Google",
@@ -77,12 +83,6 @@ const AUTH_CHOICE_GROUP_DEFS: {
hint: "API key",
choices: ["opencode-zen"],
},
{
value: "minimax",
label: "MiniMax",
hint: "M2.1 (recommended)",
choices: ["minimax-api"],
},
];
function formatOAuthHint(
@@ -181,6 +181,11 @@ export function buildAuthChoiceOptions(params: {
hint: "Claude, GPT, Gemini via opencode.ai/zen",
});
options.push({ value: "minimax-api", label: "MiniMax M2.1" });
options.push({
value: "minimax-api-lightning",
label: "MiniMax M2.1 Lightning",
hint: "Faster, lower cost",
});
if (params.includeSkip) {
options.push({ value: "skip", label: "Skip for now" });
}