refactor(deadcode): remove command auth shims

This commit is contained in:
Peter Steinberger
2026-04-06 16:18:15 +01:00
parent d425aa0912
commit 41c700fe9e
9 changed files with 9 additions and 14 deletions

View File

@@ -1 +0,0 @@
export * from "../plugins/provider-auth-choice.runtime.js";

View File

@@ -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(() =>

View File

@@ -1 +0,0 @@
export * from "../plugins/provider-auth-choice.js";

View File

@@ -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,
}));

View File

@@ -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 = {

View File

@@ -1 +0,0 @@
export { loginOpenAICodexOAuth } from "../plugins/provider-openai-codex-oauth.js";

View File

@@ -1 +0,0 @@
export * from "../plugins/provider-self-hosted-setup.js";

View File

@@ -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 };

View File

@@ -1 +0,0 @@
export * from "../plugins/provider-zai-endpoint.js";