Deduplicate plugin capabilities

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-05-04 15:25:00 -05:00
1 parent cb11cd5c28
commit 00ff8698b2
2 files changed
+7 -1

No files matched your search

-1
View File
@@ -628,7 +628,6 @@ export const PLUGIN_CAPABILITIES = [
"issue.comments.read",
"issue.documents.read",
"agents.read",
"agents.managed",
"goals.read",
"goals.create",
"goals.update",
@@ -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({