mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-15 16:46:30 +00:00
fix(agents): resolve provider attribution metadata cold
This commit is contained in:
parent
23fbdc1ec2
commit
4fbc490fca
1 changed files with 7 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { loadPluginManifestRegistry } from "../plugins/manifest-registry.js";
|
||||
import { loadPluginManifestRegistryForInstalledIndex } from "../plugins/manifest-registry-installed.js";
|
||||
import { loadPluginRegistrySnapshot } from "../plugins/plugin-registry.js";
|
||||
import {
|
||||
normalizeOptionalLowercaseString,
|
||||
normalizeOptionalString,
|
||||
|
|
@ -208,7 +209,11 @@ function isManifestProviderEndpointClass(value: string): value is ProviderEndpoi
|
|||
|
||||
function loadManifestProviderEndpointCache(): ManifestProviderEndpointCacheEntry[] {
|
||||
if (!manifestProviderEndpointCache) {
|
||||
const registry = loadPluginManifestRegistry({ cache: true });
|
||||
const index = loadPluginRegistrySnapshot({ cache: true });
|
||||
const registry = loadPluginManifestRegistryForInstalledIndex({
|
||||
index,
|
||||
includeDisabled: true,
|
||||
});
|
||||
const entries: ManifestProviderEndpointCacheEntry[] = [];
|
||||
for (const plugin of registry.plugins) {
|
||||
for (const endpoint of plugin.providerEndpoints ?? []) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue