test(e2e): accept bundled configured plugins · openclaw/openclaw@1c4d3e2
vincentkoc
·
2026-05-03
·
via Recent Commits to openclaw:main
File tree
scripts/e2e/lib/upgrade-survivor
| Original file line number | Diff line number | Diff line change |
|---|
@@ -388,7 +388,17 @@ function assertConfiguredPluginInstalls() {
|
388 | 388 | const index = readInstalledPluginIndex(); |
389 | 389 | const records = index.installRecords ?? {}; |
390 | 390 | const matrix = records.matrix; |
391 | | -assert(matrix, "configured external matrix plugin install record missing"); |
| 391 | +const bundledMatrix = (index.plugins ?? []).find((plugin) => plugin?.pluginId === "matrix"); |
| 392 | +if (!matrix) { |
| 393 | +assert( |
| 394 | +bundledMatrix, |
| 395 | +"configured matrix plugin is neither present in the plugin index nor installed externally", |
| 396 | +); |
| 397 | +assert(bundledMatrix.enabled !== false, "configured bundled matrix plugin is disabled"); |
| 398 | +assert(!records.discord, "internal discord plugin should not be installed externally"); |
| 399 | +assert(!records.telegram, "internal telegram plugin should not be installed externally"); |
| 400 | +return; |
| 401 | +} |
392 | 402 | assert( |
393 | 403 | matrix.source === "clawhub" || matrix.source === "npm", |
394 | 404 | `configured external matrix plugin installed from unexpected source: ${matrix.source}`, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。