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;