mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
fix(plugins): expose startup tool registry in catalog
This commit is contained in:
@@ -602,13 +602,24 @@ function resolvePluginToolRegistry(params: {
|
||||
loadOptions: PluginLoadOptions;
|
||||
onlyPluginIds?: readonly string[];
|
||||
}) {
|
||||
return getLoadedRuntimePluginRegistry({
|
||||
const lookup = {
|
||||
env: params.loadOptions.env,
|
||||
loadOptions: params.loadOptions,
|
||||
workspaceDir: params.loadOptions.workspaceDir,
|
||||
requiredPluginIds: params.onlyPluginIds,
|
||||
surface: "channel",
|
||||
});
|
||||
};
|
||||
return (
|
||||
getLoadedRuntimePluginRegistry({
|
||||
...lookup,
|
||||
surface: "channel",
|
||||
}) ??
|
||||
getLoadedRuntimePluginRegistry({
|
||||
env: lookup.env,
|
||||
workspaceDir: lookup.workspaceDir,
|
||||
requiredPluginIds: lookup.requiredPluginIds,
|
||||
surface: "active",
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
function resolvePluginToolLoadState(params: {
|
||||
|
||||
Reference in New Issue
Block a user