From 00ff8698b286bffc54b611c44332465bf405ceb4 Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 4 May 2026 15:25:00 -0500 Subject: [PATCH] Deduplicate plugin capabilities Co-Authored-By: Paperclip --- packages/shared/src/constants.ts | 1 - packages/shared/src/validators/plugin.test.ts | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/shared/src/constants.ts b/packages/shared/src/constants.ts index 9cf22a56f30..001ccee26f2 100644 --- a/packages/shared/src/constants.ts +++ b/packages/shared/src/constants.ts @@ -628,7 +628,6 @@ export const PLUGIN_CAPABILITIES = [ "issue.comments.read", "issue.documents.read", "agents.read", - "agents.managed", "goals.read", "goals.create", "goals.update", diff --git a/packages/shared/src/validators/plugin.test.ts b/packages/shared/src/validators/plugin.test.ts index 09f18759fb8..b8b3cbdab5f 100644 --- a/packages/shared/src/validators/plugin.test.ts +++ b/packages/shared/src/validators/plugin.test.ts @@ -1,6 +1,13 @@ import { describe, expect, it } from "vitest"; +import { PLUGIN_CAPABILITIES } from "../constants.js"; import { pluginUiSlotDeclarationSchema } from "./plugin.js"; +describe("plugin capability constants", () => { + it("exposes each capability once", () => { + expect(new Set(PLUGIN_CAPABILITIES).size).toBe(PLUGIN_CAPABILITIES.length); + }); +}); + describe("plugin UI slot validators", () => { it("accepts route-scoped sidebar slots with a routePath", () => { const parsed = pluginUiSlotDeclarationSchema.parse({