fix(test): satisfy plugin smoke lint · openclaw/openclaw@2ea4798
vincentkoc
·
2026-05-01
·
via Recent Commits to openclaw:main
File tree
scripts/e2e/lib/bundled-plugin-install-uninstall
| Original file line number | Diff line number | Diff line change |
|---|
@@ -86,7 +86,7 @@ function activateSmokePlugin(config, pluginId) {
|
86 | 86 | entries: { |
87 | 87 | ...config.plugins?.entries, |
88 | 88 | [pluginId]: { |
89 | | - ...(config.plugins?.entries?.[pluginId] ?? {}), |
| 89 | + ...config.plugins?.entries?.[pluginId], |
90 | 90 | enabled: true, |
91 | 91 | }, |
92 | 92 | }, |
@@ -105,16 +105,15 @@ function buildPluginPlan(manifest) {
|
105 | 105 | ? contracts.speechProviders.filter(isNonEmptyString) |
106 | 106 | : []; |
107 | 107 | const tools = Array.isArray(contracts.tools) ? contracts.tools.filter(isNonEmptyString) : []; |
108 | | -const hasRuntimeContractSurface = Boolean( |
| 108 | +const hasRuntimeContractSurface = |
109 | 109 | channels.length > 0 || |
110 | 110 | speechProviders.length > 0 || |
111 | 111 | tools.length > 0 || |
112 | 112 | (Array.isArray(manifest.providers) && manifest.providers.length > 0) || |
113 | 113 | (Array.isArray(manifest.cliBackends) && manifest.cliBackends.length > 0) || |
114 | 114 | (Array.isArray(contracts.mediaUnderstandingProviders) && |
115 | 115 | contracts.mediaUnderstandingProviders.length > 0) || |
116 | | -(Array.isArray(contracts.migrationProviders) && contracts.migrationProviders.length > 0), |
117 | | -); |
| 116 | +(Array.isArray(contracts.migrationProviders) && contracts.migrationProviders.length > 0); |
118 | 117 | const legacyImplicitStartupSidecar = |
119 | 118 | manifest.activation?.onStartup === undefined && |
120 | 119 | channels.length === 0 && |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。