fix: strip -plugin suffix in deriveIdHint to match manifest ids (#85170) · openclaw/openclaw@6f93365
JulyanXu
·
2026-05-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -550,7 +550,9 @@ function deriveIdHint(params: {
|
550 | 550 | const normalizedPackageId = |
551 | 551 | unscoped.endsWith("-provider") && unscoped.length > "-provider".length |
552 | 552 | ? unscoped.slice(0, -"-provider".length) |
553 | | - : unscoped; |
| 553 | + : unscoped.endsWith("-plugin") && unscoped.length > "-plugin".length |
| 554 | + ? unscoped.slice(0, -"-plugin".length) |
| 555 | + : unscoped; |
554 | 556 | |
555 | 557 | if (!params.hasMultipleExtensions) { |
556 | 558 | return normalizedPackageId; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。