mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-03 01:27:09 +01:00
Deduplicate plugin capabilities
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
cb11cd5c28
commit
00ff8698b2
2 files changed
+7
-1
No files matched your search
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user