fix: stabilize release web provider validation · openclaw/openclaw@44778bc
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -183,6 +183,9 @@ export default definePluginEntry({
|
183 | 183 | `, |
184 | 184 | manifest: { |
185 | 185 | id: pluginId, |
| 186 | +contracts: { |
| 187 | +tools: ["kitchen-sink-tool", "kitchen_sink_tool"], |
| 188 | +}, |
186 | 189 | configSchema: { |
187 | 190 | type: "object", |
188 | 191 | properties: {}, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -160,9 +160,9 @@ export function resolveBundledWebProviderResolutionConfig(params: {
|
160 | 160 | workspaceDir: params.workspaceDir, |
161 | 161 | applyAutoEnable: true, |
162 | 162 | compatMode: { |
163 | | -allowlist: params.bundledAllowlistCompat, |
| 163 | +allowlist: params.config === undefined ? false : params.bundledAllowlistCompat, |
164 | 164 | enablement: "always", |
165 | | -vitest: true, |
| 165 | +vitest: params.config !== undefined, |
166 | 166 | }, |
167 | 167 | resolveCompatPluginIds: (compatParams) => |
168 | 168 | resolveBundledWebProviderCompatPluginIds({ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -188,14 +188,16 @@ export function resolvePluginWebProviders<TEntry>(
|
188 | 188 | } |
189 | 189 | const activeRegistry = getActivePluginRegistry(); |
190 | 190 | if (activeRegistry) { |
191 | | -return deps.mapRegistryProviders({ |
| 191 | +const activeProviders = deps.mapRegistryProviders({ |
192 | 192 | registry: activeRegistry, |
193 | 193 | onlyPluginIds: context.onlyPluginIds, |
194 | 194 | }); |
| 195 | +if (activeProviders.length > 0) { |
| 196 | +return activeProviders; |
| 197 | +} |
195 | 198 | } |
196 | 199 | return deps.mapRegistryProviders({ |
197 | 200 | registry: loadOpenClawPlugins(loadOptions), |
198 | | -onlyPluginIds: context.onlyPluginIds, |
199 | 201 | }); |
200 | 202 | } |
201 | 203 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。