fix(plugins): expose startup tool registry in catalog · openclaw/openclaw@3240ccc
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -602,13 +602,24 @@ function resolvePluginToolRegistry(params: {
|
602 | 602 | loadOptions: PluginLoadOptions; |
603 | 603 | onlyPluginIds?: readonly string[]; |
604 | 604 | }) { |
605 | | -return getLoadedRuntimePluginRegistry({ |
| 605 | +const lookup = { |
606 | 606 | env: params.loadOptions.env, |
607 | 607 | loadOptions: params.loadOptions, |
608 | 608 | workspaceDir: params.loadOptions.workspaceDir, |
609 | 609 | requiredPluginIds: params.onlyPluginIds, |
610 | | -surface: "channel", |
611 | | -}); |
| 610 | +}; |
| 611 | +return ( |
| 612 | +getLoadedRuntimePluginRegistry({ |
| 613 | + ...lookup, |
| 614 | +surface: "channel", |
| 615 | +}) ?? |
| 616 | +getLoadedRuntimePluginRegistry({ |
| 617 | +env: lookup.env, |
| 618 | +workspaceDir: lookup.workspaceDir, |
| 619 | +requiredPluginIds: lookup.requiredPluginIds, |
| 620 | +surface: "active", |
| 621 | +}) |
| 622 | +); |
612 | 623 | } |
613 | 624 | |
614 | 625 | function resolvePluginToolLoadState(params: { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。