feat: add anthropic claude cli migration

This commit is contained in:
Peter Steinberger
2026-03-26 23:01:44 +00:00
parent b96fccadb9
commit ebf5bd75f4
10 changed files with 394 additions and 12 deletions

View File

@@ -174,6 +174,16 @@ export const GENERATED_BUNDLED_PLUGIN_METADATA = [
anthropic: ["ANTHROPIC_OAUTH_TOKEN", "ANTHROPIC_API_KEY"],
},
providerAuthChoices: [
{
provider: "anthropic",
method: "cli",
choiceId: "anthropic-cli",
choiceLabel: "Anthropic Claude CLI",
choiceHint: "Reuse a local Claude CLI login on this host",
groupId: "anthropic",
groupLabel: "Anthropic",
groupHint: "Claude CLI + setup-token + API key",
},
{
provider: "anthropic",
method: "setup-token",
@@ -182,7 +192,7 @@ export const GENERATED_BUNDLED_PLUGIN_METADATA = [
choiceHint: "Run `claude setup-token` elsewhere, then paste the token here",
groupId: "anthropic",
groupLabel: "Anthropic",
groupHint: "setup-token + API key",
groupHint: "Claude CLI + setup-token + API key",
},
{
provider: "anthropic",
@@ -191,7 +201,7 @@ export const GENERATED_BUNDLED_PLUGIN_METADATA = [
choiceLabel: "Anthropic API key",
groupId: "anthropic",
groupLabel: "Anthropic",
groupHint: "setup-token + API key",
groupHint: "Claude CLI + setup-token + API key",
optionKey: "anthropicApiKey",
cliFlag: "--anthropic-api-key",
cliOption: "--anthropic-api-key <key>",