Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

test(plugins): assert transform permission in lab fixture

vastsaacbd61d44fa7
diff --git a/apps/desktop/test/plugin-ui-slots-lab.test.mjs b/apps/desktop/test/plugin-ui-slots-lab.test.mjs
index 62d5599ed..c5002886b 100644
--- a/apps/desktop/test/plugin-ui-slots-lab.test.mjs
+++ b/apps/desktop/test/plugin-ui-slots-lab.test.mjs
@@ -200,8 +200,16 @@ test("the manifest declares exactly what the lab uses", () => {
const validation = validateManifest(manifest);
assert.ok(validation.ok, validation.error);
assert.deepEqual(manifest.rendererActions, [...PLUGIN_RENDERER_ACTIONS], "every action word the host implements");
- assert.deepEqual(manifest.permissions, ["renderer.extension", "agent.tool.register"]);
+ assert.deepEqual(manifest.permissions, [
+ "renderer.extension",
+ "agent.tool.register",
+ "composer.transform",
+ ]);
assert.deepEqual(manifest.contributes.agentTools.map((tool) => tool.name), ["lab_probe"]);
+ assert.deepEqual(
+ manifest.contributes.composerTransforms.map((transform) => transform.id),
+ ["lab-transform"],
+ );
// Every word a sample dispatches, and every method it calls, is declared;
// every declared method is one a sample calls.