mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
refactor(deadcode): remove command auth shims
This commit is contained in:
@@ -1 +0,0 @@
|
||||
export * from "../plugins/provider-auth-choice.runtime.js";
|
||||
@@ -1,12 +1,12 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { ProviderPlugin } from "../plugins/types.js";
|
||||
import type { ProviderAuthMethod } from "../plugins/types.js";
|
||||
import type { ApplyAuthChoiceParams } from "./auth-choice.apply.js";
|
||||
import {
|
||||
applyAuthChoiceLoadedPluginProvider,
|
||||
applyAuthChoicePluginProvider,
|
||||
runProviderPluginAuthMethod,
|
||||
} from "./auth-choice.apply.plugin-provider.js";
|
||||
} from "../plugins/provider-auth-choice.js";
|
||||
import type { ProviderPlugin } from "../plugins/types.js";
|
||||
import type { ProviderAuthMethod } from "../plugins/types.js";
|
||||
import type { ApplyAuthChoiceParams } from "./auth-choice.apply.js";
|
||||
|
||||
const resolvePluginProviders = vi.hoisted(() => vi.fn<() => ProviderPlugin[]>(() => []));
|
||||
const resolveProviderPluginChoice = vi.hoisted(() =>
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export * from "../plugins/provider-auth-choice.js";
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
setupAuthTestEnv,
|
||||
} from "./test-wizard-helpers.js";
|
||||
|
||||
type DetectZaiEndpoint = typeof import("./zai-endpoint-detect.js").detectZaiEndpoint;
|
||||
type DetectZaiEndpoint = typeof import("../plugins/provider-zai-endpoint.js").detectZaiEndpoint;
|
||||
|
||||
const GOOGLE_GEMINI_DEFAULT_MODEL = "google/gemini-3.1-pro-preview";
|
||||
const MINIMAX_CN_API_BASE_URL = "https://api.minimax.chat/v1";
|
||||
@@ -31,7 +31,7 @@ const ZAI_CODING_CN_BASE_URL = "https://open.bigmodel.cn/api/coding/paas/v4";
|
||||
const loginOpenAICodexOAuth = vi.hoisted(() =>
|
||||
vi.fn<() => Promise<OAuthCredentials | null>>(async () => null),
|
||||
);
|
||||
vi.mock("./openai-codex-oauth.js", () => ({
|
||||
vi.mock("../plugins/provider-openai-codex-oauth.js", () => ({
|
||||
loginOpenAICodexOAuth,
|
||||
}));
|
||||
|
||||
@@ -47,7 +47,7 @@ vi.mock("../plugins/provider-auth-choice.runtime.js", async () => {
|
||||
});
|
||||
|
||||
const detectZaiEndpoint = vi.hoisted(() => vi.fn<DetectZaiEndpoint>(async () => null));
|
||||
vi.mock("./zai-endpoint-detect.js", () => ({
|
||||
vi.mock("../plugins/provider-zai-endpoint.js", () => ({
|
||||
detectZaiEndpoint,
|
||||
}));
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ vi.mock("./onboard-non-interactive/local/auth-choice.plugin-providers.js", async
|
||||
import("../plugins/provider-api-key-auth.js"),
|
||||
import("../plugins/provider-api-key-auth.runtime.js"),
|
||||
import("../plugins/provider-self-hosted-setup.js"),
|
||||
import("./zai-endpoint-detect.js"),
|
||||
import("../plugins/provider-zai-endpoint.js"),
|
||||
]);
|
||||
|
||||
const ZAI_FALLBACKS = {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export { loginOpenAICodexOAuth } from "../plugins/provider-openai-codex-oauth.js";
|
||||
@@ -1 +0,0 @@
|
||||
export * from "../plugins/provider-self-hosted-setup.js";
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { detectZaiEndpoint } from "./zai-endpoint-detect.js";
|
||||
import { detectZaiEndpoint } from "../plugins/provider-zai-endpoint.js";
|
||||
|
||||
type FetchResponse = { status: number; body?: unknown };
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export * from "../plugins/provider-zai-endpoint.js";
|
||||
Reference in New Issue
Block a user