mirror of
https://github.com/penpot/penpot.git
synced 2026-11-26 21:00:32 +00:00
Plugins and the MCP could not tell whether the new render engine (WebGL) or the SVG engine draws the open file. Add file.features with the sorted features of the open file: its stored features plus the features active in the session. render-wasm/v1 comes from the session alone, so it is present only when WebGL draws the file, whether the renderer comes from the wasm query param, the profile setting or the workspace menu. The backend never stores that feature on the file, so the stored features alone cannot answer it. For any other file, such as a library or a File kept after opening another file, features is null. Add penpotUtils.isWasmRenderer() to the MCP plugin and list it in the MCP instructions. It throws a clear error when the Penpot version does not expose the file features. Regenerate the MCP API docs, which also picks up the missing penpot.location entry, and the plugin API test suite surface. Add plugin API test suite tests for the open file and for a file that is not open. Note in the plugins memory that every new or changed Plugin API member gets a suite test whenever the suite can reach the case. Closes #13167 AI-assisted-by: claude-opus-5-5