refactor(plugins): delete registry compat scaffolding (#117749)

* refactor(plugins): delete registry compat scaffolding

* test(plugins): update CLI registry handle mock

* fix(plugins): preserve explicitly initialized hook registries

* test(plugins): update registry ownership fixtures

* fix(channels): restore registry snapshot memo
This commit is contained in:
Peter Steinberger
2026-08-01 21:18:47 -07:00
committed by GitHub
parent a084763814
commit ccee629359
129 changed files with 1677 additions and 6720 deletions
+1 -1
View File
@@ -20,6 +20,7 @@ const mocks = vi.hoisted(() => ({
vi.mock("./loader.js", () => ({
loadOpenClawPluginCliRegistry: (...args: unknown[]) =>
mocks.loadOpenClawPluginCliRegistry(...args),
loadPluginRegistryHandle: (...args: unknown[]) => mocks.loadOpenClawPlugins(...args),
loadOpenClawPlugins: (...args: unknown[]) => mocks.loadOpenClawPlugins(...args),
}));
@@ -385,7 +386,6 @@ describe("registerPluginCliCommands", () => {
expect(loadOptions.autoEnabledReasons).toEqual({
demo: ["demo configured"],
});
expect(loadOptions.activate).toBe(false);
expect(loadOptions.cache).toBe(false);
expect(loadOptions.forceFullRuntimeForChannelPlugins).toBe(true);
expect(mocks.loadOpenClawPluginCliRegistry).not.toHaveBeenCalled();