mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 22:50:22 +00:00
refactor: scope provider runtime to enabled provider plugins
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
import { loadOpenClawPlugins, type PluginLoadOptions } from "./loader.js";
|
||||
import { createPluginLoaderLogger } from "./logger.js";
|
||||
import {
|
||||
resolveEnabledProviderPluginIds,
|
||||
resolveBundledProviderCompatPluginIds,
|
||||
withBundledProviderVitestCompat,
|
||||
} from "./providers.js";
|
||||
@@ -54,11 +55,17 @@ export function resolvePluginProviders(params: {
|
||||
env: params.env,
|
||||
})
|
||||
: allowlistCompatConfig;
|
||||
const registry = loadOpenClawPlugins({
|
||||
const providerPluginIds = resolveEnabledProviderPluginIds({
|
||||
config,
|
||||
workspaceDir: params.workspaceDir,
|
||||
env,
|
||||
onlyPluginIds: params.onlyPluginIds,
|
||||
});
|
||||
const registry = loadOpenClawPlugins({
|
||||
config,
|
||||
workspaceDir: params.workspaceDir,
|
||||
env,
|
||||
onlyPluginIds: providerPluginIds,
|
||||
pluginSdkResolution: params.pluginSdkResolution,
|
||||
cache: params.cache ?? false,
|
||||
activate: params.activate ?? false,
|
||||
|
||||
Reference in New Issue
Block a user