From 2aea370e1ca61f79f2117e92a0bc626e619032b5 Mon Sep 17 00:00:00 2001 From: GamerDubz Date: Mon, 12 Oct 2026 05:37:44 +0200 Subject: [PATCH] fix(plugin): declare the capabilities Codex plugin validation requires Codex's plugin validator rejects a manifest whose interface omits capabilities. Declare them in .codex-plugin/plugin.json and assert the required interface fields in the release configuration test. Co-Authored-By: Claude Opus 5.5 --- .codex-plugin/plugin.json | 1 + .../conformance/releaseConfiguration.test.ts | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 3ae3310a7..976a93750 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -28,6 +28,7 @@ "longDescription": "Use REA to explain shipped behavior from native binaries, managed assemblies, Electron and JavaScript bundles, packages, firmware, and browser targets, with evidence that separates observations from inferences.", "developerName": "morluto", "category": "Developer Tools", + "capabilities": ["Interactive", "Read", "Write"], "websiteURL": "https://rea.tools/", "defaultPrompt": [ "Use REA to explain how this binary implements a feature.", diff --git a/tests/conformance/releaseConfiguration.test.ts b/tests/conformance/releaseConfiguration.test.ts index 90304079e..621c4e4a2 100644 --- a/tests/conformance/releaseConfiguration.test.ts +++ b/tests/conformance/releaseConfiguration.test.ts @@ -101,6 +101,27 @@ describe("release configuration", () => { }, ); + it("declares the interface fields Codex plugin validation requires", async () => { + const manifest = (await readJson(".codex-plugin/plugin.json")) as { + interface: Record; + }; + + for (const field of [ + "displayName", + "shortDescription", + "longDescription", + "developerName", + "category", + ]) + expect(manifest.interface[field]).toEqual(expect.stringMatching(/\S/u)); + expect(manifest.interface.capabilities).toEqual( + expect.arrayContaining([expect.stringMatching(/\S/u)]), + ); + expect(manifest.interface.defaultPrompt).toEqual( + expect.arrayContaining([expect.stringMatching(/\S/u)]), + ); + }); + it("keeps the npm package and MCP Registry metadata aligned", async () => { const packageJson = (await readJson("package.json")) as { name: string;