mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(plugin-sdk): keep profile resolver source compatible
This commit is contained in:
@@ -64,7 +64,6 @@ function createCatalogContext(
|
||||
mode: "api_key",
|
||||
source: "env",
|
||||
}),
|
||||
resolveProviderAuthProfiles: () => [],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@ function createCatalogContext(params: {
|
||||
mode: providerId && params.apiKeys?.[providerId] ? "api_key" : "none",
|
||||
source: providerId && params.apiKeys?.[providerId] ? "env" : "none",
|
||||
}),
|
||||
resolveProviderAuthProfiles: () => [],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user