Remove Anthropic OAuth support

This commit is contained in:
Mario Zechner 2026-01-09 05:10:33 +01:00
parent 2e362fbfd2
commit f5e6bcac1b
12 changed files with 121 additions and 183 deletions

View file

@ -9,7 +9,6 @@
import {
getEnvApiKey,
getOAuthApiKey,
loginAnthropic,
loginAntigravity,
loginGeminiCli,
loginGitHubCopilot,
@ -170,12 +169,6 @@ export class AuthStorage {
let credentials: OAuthCredentials;
switch (provider) {
case "anthropic":
credentials = await loginAnthropic(
(url) => callbacks.onAuth({ url }),
() => callbacks.onPrompt({ message: "Paste the authorization code:" }),
);
break;
case "github-copilot":
credentials = await loginGitHubCopilot({
onAuth: (url, instructions) => callbacks.onAuth({ url, instructions }),

View file

@ -303,5 +303,6 @@ Documentation:
prompt += `\nCurrent date and time: ${dateTime}`;
prompt += `\nCurrent working directory: ${resolvedCwd}`;
prompt = "You are a helpful assistant. Be concise.";
return prompt;
}