feat: add Kiro CLI to onboarding wizard
This commit is contained in:
parent
102f8da561
commit
e713eb007f
@ -20,7 +20,8 @@ export type AuthChoiceGroupId =
|
|||||||
| "minimax"
|
| "minimax"
|
||||||
| "synthetic"
|
| "synthetic"
|
||||||
| "venice"
|
| "venice"
|
||||||
| "qwen";
|
| "qwen"
|
||||||
|
| "kiro";
|
||||||
|
|
||||||
export type AuthChoiceGroup = {
|
export type AuthChoiceGroup = {
|
||||||
value: AuthChoiceGroupId;
|
value: AuthChoiceGroupId;
|
||||||
@ -113,6 +114,12 @@ const AUTH_CHOICE_GROUP_DEFS: {
|
|||||||
hint: "API key",
|
hint: "API key",
|
||||||
choices: ["opencode-zen"],
|
choices: ["opencode-zen"],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
value: "kiro",
|
||||||
|
label: "Kiro",
|
||||||
|
hint: "kiro-cli (AWS)",
|
||||||
|
choices: ["kiro-cli"],
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export function buildAuthChoiceOptions(params: {
|
export function buildAuthChoiceOptions(params: {
|
||||||
@ -177,6 +184,11 @@ export function buildAuthChoiceOptions(params: {
|
|||||||
label: "OpenCode Zen (multi-model proxy)",
|
label: "OpenCode Zen (multi-model proxy)",
|
||||||
hint: "Claude, GPT, Gemini via opencode.ai/zen",
|
hint: "Claude, GPT, Gemini via opencode.ai/zen",
|
||||||
});
|
});
|
||||||
|
options.push({
|
||||||
|
value: "kiro-cli",
|
||||||
|
label: "Kiro CLI",
|
||||||
|
hint: "Uses installed kiro-cli (AWS)",
|
||||||
|
});
|
||||||
options.push({ value: "minimax-api", label: "MiniMax M2.1" });
|
options.push({ value: "minimax-api", label: "MiniMax M2.1" });
|
||||||
options.push({
|
options.push({
|
||||||
value: "minimax-api-lightning",
|
value: "minimax-api-lightning",
|
||||||
|
|||||||
14
src/commands/auth-choice.apply.kiro-cli.ts
Normal file
14
src/commands/auth-choice.apply.kiro-cli.ts
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import type { ApplyAuthChoiceParams, ApplyAuthChoiceResult } from "./auth-choice.apply.js";
|
||||||
|
import { applyAuthChoicePluginProvider } from "./auth-choice.apply.plugin-provider.js";
|
||||||
|
|
||||||
|
export async function applyAuthChoiceKiroCli(
|
||||||
|
params: ApplyAuthChoiceParams,
|
||||||
|
): Promise<ApplyAuthChoiceResult | null> {
|
||||||
|
return await applyAuthChoicePluginProvider(params, {
|
||||||
|
authChoice: "kiro-cli",
|
||||||
|
pluginId: "kiro-auth",
|
||||||
|
providerId: "kiro-cli",
|
||||||
|
methodId: "cli",
|
||||||
|
label: "Kiro CLI",
|
||||||
|
});
|
||||||
|
}
|
||||||
@ -7,6 +7,7 @@ import { applyAuthChoiceCopilotProxy } from "./auth-choice.apply.copilot-proxy.j
|
|||||||
import { applyAuthChoiceGitHubCopilot } from "./auth-choice.apply.github-copilot.js";
|
import { applyAuthChoiceGitHubCopilot } from "./auth-choice.apply.github-copilot.js";
|
||||||
import { applyAuthChoiceGoogleAntigravity } from "./auth-choice.apply.google-antigravity.js";
|
import { applyAuthChoiceGoogleAntigravity } from "./auth-choice.apply.google-antigravity.js";
|
||||||
import { applyAuthChoiceGoogleGeminiCli } from "./auth-choice.apply.google-gemini-cli.js";
|
import { applyAuthChoiceGoogleGeminiCli } from "./auth-choice.apply.google-gemini-cli.js";
|
||||||
|
import { applyAuthChoiceKiroCli } from "./auth-choice.apply.kiro-cli.js";
|
||||||
import { applyAuthChoiceMiniMax } from "./auth-choice.apply.minimax.js";
|
import { applyAuthChoiceMiniMax } from "./auth-choice.apply.minimax.js";
|
||||||
import { applyAuthChoiceOAuth } from "./auth-choice.apply.oauth.js";
|
import { applyAuthChoiceOAuth } from "./auth-choice.apply.oauth.js";
|
||||||
import { applyAuthChoiceOpenAI } from "./auth-choice.apply.openai.js";
|
import { applyAuthChoiceOpenAI } from "./auth-choice.apply.openai.js";
|
||||||
@ -44,6 +45,7 @@ export async function applyAuthChoice(
|
|||||||
applyAuthChoiceGitHubCopilot,
|
applyAuthChoiceGitHubCopilot,
|
||||||
applyAuthChoiceGoogleAntigravity,
|
applyAuthChoiceGoogleAntigravity,
|
||||||
applyAuthChoiceGoogleGeminiCli,
|
applyAuthChoiceGoogleGeminiCli,
|
||||||
|
applyAuthChoiceKiroCli,
|
||||||
applyAuthChoiceCopilotProxy,
|
applyAuthChoiceCopilotProxy,
|
||||||
applyAuthChoiceQwenPortal,
|
applyAuthChoiceQwenPortal,
|
||||||
];
|
];
|
||||||
|
|||||||
@ -18,6 +18,7 @@ export type AuthChoice =
|
|||||||
| "synthetic-api-key"
|
| "synthetic-api-key"
|
||||||
| "venice-api-key"
|
| "venice-api-key"
|
||||||
| "codex-cli"
|
| "codex-cli"
|
||||||
|
| "kiro-cli"
|
||||||
| "apiKey"
|
| "apiKey"
|
||||||
| "gemini-api-key"
|
| "gemini-api-key"
|
||||||
| "google-antigravity"
|
| "google-antigravity"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user