refactor!: remove google-antigravity provider support
This commit is contained in:
@@ -5,9 +5,9 @@ import { enablePluginInConfig } from "./enable.js";
|
||||
describe("enablePluginInConfig", () => {
|
||||
it("enables a plugin entry", () => {
|
||||
const cfg: OpenClawConfig = {};
|
||||
const result = enablePluginInConfig(cfg, "google-antigravity-auth");
|
||||
const result = enablePluginInConfig(cfg, "google-gemini-cli-auth");
|
||||
expect(result.enabled).toBe(true);
|
||||
expect(result.config.plugins?.entries?.["google-antigravity-auth"]?.enabled).toBe(true);
|
||||
expect(result.config.plugins?.entries?.["google-gemini-cli-auth"]?.enabled).toBe(true);
|
||||
});
|
||||
|
||||
it("adds plugin to allowlist when allowlist is configured", () => {
|
||||
@@ -16,18 +16,18 @@ describe("enablePluginInConfig", () => {
|
||||
allow: ["memory-core"],
|
||||
},
|
||||
};
|
||||
const result = enablePluginInConfig(cfg, "google-antigravity-auth");
|
||||
const result = enablePluginInConfig(cfg, "google-gemini-cli-auth");
|
||||
expect(result.enabled).toBe(true);
|
||||
expect(result.config.plugins?.allow).toEqual(["memory-core", "google-antigravity-auth"]);
|
||||
expect(result.config.plugins?.allow).toEqual(["memory-core", "google-gemini-cli-auth"]);
|
||||
});
|
||||
|
||||
it("refuses enable when plugin is denylisted", () => {
|
||||
const cfg: OpenClawConfig = {
|
||||
plugins: {
|
||||
deny: ["google-antigravity-auth"],
|
||||
deny: ["google-gemini-cli-auth"],
|
||||
},
|
||||
};
|
||||
const result = enablePluginInConfig(cfg, "google-antigravity-auth");
|
||||
const result = enablePluginInConfig(cfg, "google-gemini-cli-auth");
|
||||
expect(result.enabled).toBe(false);
|
||||
expect(result.reason).toBe("blocked by denylist");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user