fix(plugin-sdk): keep profile resolver source compatible

This commit is contained in:
Patrick Erichsen
2026-08-11 13:27:18 -07:00
parent ba62356982
commit f64a010f66
4 changed files with 1 additions and 5 deletions
-1
View File
@@ -64,7 +64,6 @@ function createCatalogContext(
mode: "api_key",
source: "env",
}),
resolveProviderAuthProfiles: () => [],
};
}
-1
View File
@@ -33,7 +33,6 @@ function createCatalogContext(params: {
mode: providerId && params.apiKeys?.[providerId] ? "api_key" : "none",
source: providerId && params.apiKeys?.[providerId] ? "env" : "none",
}),
resolveProviderAuthProfiles: () => [],
};
}
+1 -1
View File
@@ -41,7 +41,7 @@ export type ProviderCatalogContext = {
profileId?: string;
};
/** Runtime-ordered auth candidates for profile-aware live discovery. */
resolveProviderAuthProfiles: (
resolveProviderAuthProfiles?: (
providerId?: string,
options?: { oauthMarker?: string },
) => ProviderCatalogAuthResolution[];
@@ -695,7 +695,6 @@ describe("resolvePluginDiscoveryProvidersRuntime", () => {
env: {},
resolveProviderApiKey: () => ({ apiKey: undefined }),
resolveProviderAuth: () => ({ apiKey: undefined, mode: "none", source: "none" }),
resolveProviderAuthProfiles: () => [],
}),
).resolves.toEqual({
providers: {
@@ -791,7 +790,6 @@ describe("resolvePluginDiscoveryProvidersRuntime", () => {
env: {},
resolveProviderApiKey: () => ({ apiKey: undefined }),
resolveProviderAuth: () => ({ apiKey: undefined, mode: "none", source: "none" }),
resolveProviderAuthProfiles: () => [],
}),
).resolves.toEqual({
providers: {