import type { AuthChoice } from "./onboard-types.js"; const PREFERRED_PROVIDER_BY_AUTH_CHOICE: Partial> = { oauth: "anthropic", "setup-token": "anthropic", "claude-cli": "anthropic", token: "anthropic", apiKey: "anthropic", "openai-codex": "openai-codex", "codex-cli": "openai-codex", chutes: "chutes", "openai-api-key": "openai", "openrouter-api-key": "openrouter", "ai-gateway-api-key": "vercel-ai-gateway", "moonshot-api-key": "moonshot", "kimi-code-api-key": "kimi-code", "gemini-api-key": "google", "zai-api-key": "zai", "synthetic-api-key": "synthetic", "github-copilot": "github-copilot", "minimax-cloud": "minimax", "minimax-api": "minimax", "minimax-api-lightning": "minimax", minimax: "lmstudio", "opencode-zen": "opencode", "qwen-portal": "qwen-portal", }; export function resolvePreferredProviderForAuthChoice(choice: AuthChoice): string | undefined { return PREFERRED_PROVIDER_BY_AUTH_CHOICE[choice]; }