fix: align embedded runner with session API changes

This commit is contained in:
Peter Steinberger
2026-02-01 15:06:42 -08:00
parent bcbb447357
commit 3367b2aa27
4 changed files with 55 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ import { ensureAuthProfileStore, saveAuthProfileStore } from "./store.js";
const OAUTH_PROVIDER_IDS = new Set(getOAuthProviders().map((provider) => provider.id));
const resolveOAuthProvider = (provider: string): OAuthProvider | null =>
OAUTH_PROVIDER_IDS.has(provider as OAuthProvider) ? (provider as OAuthProvider) : null;
OAUTH_PROVIDER_IDS.has(provider) ? provider : null;
function buildOAuthApiKey(provider: string, credentials: OAuthCredentials): string {
const needsProjectId = provider === "google-gemini-cli" || provider === "google-antigravity";