From 713ab753c295d75fc703399b05a28f7529cb9705 Mon Sep 17 00:00:00 2001 From: Tak Hoffman <781889+Takhoffman@users.noreply.github.com> Date: Wed, 18 Mar 2026 13:58:15 -0500 Subject: [PATCH] refactor: finalize plugin-sdk bridge cleanup --- src/infra/provider-usage.auth.normalizes-keys.test.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/infra/provider-usage.auth.normalizes-keys.test.ts b/src/infra/provider-usage.auth.normalizes-keys.test.ts index 0309a63c7f6..03938076964 100644 --- a/src/infra/provider-usage.auth.normalizes-keys.test.ts +++ b/src/infra/provider-usage.auth.normalizes-keys.test.ts @@ -4,10 +4,15 @@ import path from "node:path"; import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { NON_ENV_SECRETREF_MARKER } from "../agents/model-auth-markers.js"; -const resolveProviderUsageAuthWithPluginMock = vi.fn(async () => null); +type ResolveProviderUsageAuthWithPlugin = + typeof import("../plugins/provider-runtime.js").resolveProviderUsageAuthWithPlugin; + +const resolveProviderUsageAuthWithPluginMock = vi.fn( + async () => null, +); vi.mock("../plugins/provider-runtime.js", () => ({ - resolveProviderUsageAuthWithPlugin: (...args: unknown[]) => + resolveProviderUsageAuthWithPlugin: (...args: Parameters) => resolveProviderUsageAuthWithPluginMock(...args), }));