feat: add Fireworks provider and simplify plugin setup loading

This commit is contained in:
Peter Steinberger
2026-04-05 07:42:15 +01:00
parent f842f518cd
commit d655a8bc76
62 changed files with 1096 additions and 880 deletions

View File

@@ -345,6 +345,32 @@ describe("resolvePluginWebSearchProviders", () => {
expectLoaderCallCount(1);
});
it("loads manifest-declared web-search providers in setup mode", () => {
const providers = resolvePluginWebSearchProviders({
config: {
plugins: {
allow: ["perplexity"],
},
},
mode: "setup",
});
expect(toRuntimeProviderKeys(providers)).toEqual(["brave:brave"]);
expect(loadOpenClawPluginsMock).toHaveBeenCalledWith(
expect.objectContaining({
onlyPluginIds: ["brave"],
config: expect.objectContaining({
plugins: expect.objectContaining({
allow: ["perplexity", "brave"],
entries: {
brave: { enabled: true },
},
}),
}),
}),
);
});
it("loads plugin web-search providers from the auto-enabled config snapshot", () => {
const rawConfig = createBraveAllowConfig();
const autoEnabledConfig = {