mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:50:45 +00:00
fix(agents): resolve provider attribution metadata cold
This commit is contained in:
@@ -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 {
|
import {
|
||||||
normalizeOptionalLowercaseString,
|
normalizeOptionalLowercaseString,
|
||||||
normalizeOptionalString,
|
normalizeOptionalString,
|
||||||
@@ -208,7 +209,11 @@ function isManifestProviderEndpointClass(value: string): value is ProviderEndpoi
|
|||||||
|
|
||||||
function loadManifestProviderEndpointCache(): ManifestProviderEndpointCacheEntry[] {
|
function loadManifestProviderEndpointCache(): ManifestProviderEndpointCacheEntry[] {
|
||||||
if (!manifestProviderEndpointCache) {
|
if (!manifestProviderEndpointCache) {
|
||||||
const registry = loadPluginManifestRegistry({ cache: true });
|
const index = loadPluginRegistrySnapshot({ cache: true });
|
||||||
|
const registry = loadPluginManifestRegistryForInstalledIndex({
|
||||||
|
index,
|
||||||
|
includeDisabled: true,
|
||||||
|
});
|
||||||
const entries: ManifestProviderEndpointCacheEntry[] = [];
|
const entries: ManifestProviderEndpointCacheEntry[] = [];
|
||||||
for (const plugin of registry.plugins) {
|
for (const plugin of registry.plugins) {
|
||||||
for (const endpoint of plugin.providerEndpoints ?? []) {
|
for (const endpoint of plugin.providerEndpoints ?? []) {
|
||||||
|
|||||||
Reference in New Issue
Block a user