mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:40:44 +00:00
fix: stabilize release web provider validation
This commit is contained in:
@@ -183,6 +183,9 @@ export default definePluginEntry({
|
||||
`,
|
||||
manifest: {
|
||||
id: pluginId,
|
||||
contracts: {
|
||||
tools: ["kitchen-sink-tool", "kitchen_sink_tool"],
|
||||
},
|
||||
configSchema: {
|
||||
type: "object",
|
||||
properties: {},
|
||||
|
||||
@@ -160,9 +160,9 @@ export function resolveBundledWebProviderResolutionConfig(params: {
|
||||
workspaceDir: params.workspaceDir,
|
||||
applyAutoEnable: true,
|
||||
compatMode: {
|
||||
allowlist: params.bundledAllowlistCompat,
|
||||
allowlist: params.config === undefined ? false : params.bundledAllowlistCompat,
|
||||
enablement: "always",
|
||||
vitest: true,
|
||||
vitest: params.config !== undefined,
|
||||
},
|
||||
resolveCompatPluginIds: (compatParams) =>
|
||||
resolveBundledWebProviderCompatPluginIds({
|
||||
|
||||
@@ -188,14 +188,16 @@ export function resolvePluginWebProviders<TEntry>(
|
||||
}
|
||||
const activeRegistry = getActivePluginRegistry();
|
||||
if (activeRegistry) {
|
||||
return deps.mapRegistryProviders({
|
||||
const activeProviders = deps.mapRegistryProviders({
|
||||
registry: activeRegistry,
|
||||
onlyPluginIds: context.onlyPluginIds,
|
||||
});
|
||||
if (activeProviders.length > 0) {
|
||||
return activeProviders;
|
||||
}
|
||||
}
|
||||
return deps.mapRegistryProviders({
|
||||
registry: loadOpenClawPlugins(loadOptions),
|
||||
onlyPluginIds: context.onlyPluginIds,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user