Plugins/google-gemini-cli-auth: migrate to scoped plugin-sdk imports

This commit is contained in:
Gustavo Madeira Santana
2026-03-04 02:32:59 -05:00
parent 3e1ca111af
commit 5174b38626
3 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import {
emptyPluginConfigSchema,
type OpenClawPluginApi,
type ProviderAuthContext,
} from "openclaw/plugin-sdk/core";
} from "openclaw/plugin-sdk/google-gemini-cli-auth";
import { loginGeminiCliOAuth } from "./oauth.js";
const PROVIDER_ID = "google-gemini-cli";

View File

@@ -1,7 +1,7 @@
import { join, parse } from "node:path";
import { describe, expect, it, vi, beforeEach, afterEach } from "vitest";
vi.mock("openclaw/plugin-sdk", () => ({
vi.mock("openclaw/plugin-sdk/google-gemini-cli-auth", () => ({
isWSL2Sync: () => false,
fetchWithSsrFGuard: async (params: {
url: string;

View File

@@ -2,7 +2,7 @@ import { createHash, randomBytes } from "node:crypto";
import { existsSync, readFileSync, readdirSync, realpathSync } from "node:fs";
import { createServer } from "node:http";
import { delimiter, dirname, join } from "node:path";
import { fetchWithSsrFGuard, isWSL2Sync } from "openclaw/plugin-sdk/compat";
import { fetchWithSsrFGuard, isWSL2Sync } from "openclaw/plugin-sdk/google-gemini-cli-auth";
const CLIENT_ID_KEYS = ["OPENCLAW_GEMINI_OAUTH_CLIENT_ID", "GEMINI_CLI_OAUTH_CLIENT_ID"];
const CLIENT_SECRET_KEYS = [