Const"Blur" appears in the player's Video menu in every interface language.
The player replaces a leading @video with that menu's key ("Video")
before it merges paths, so the item joins the built-in menu; an id that
is not in MENU_IDS makes add fail with invalid, which a test can
rule out ahead of time.
import assert from "node:assert/strict";
import { MENU_IDS } from "@vestra-player/sdk/testing";
plugin.commands.add({ id: "blur", path: ["@video", "Blur"], run() {} });
assert.ok(MENU_IDS.includes("video")); // a menu id, not a title
The player's built-in top-level menus, by id. Write
@<id>as the first segment of a command path (["@video", "Blur"], seeCommandOptions.path) to put a command into that menu whatever language the player's menus are in. Later segments are titles.reset: the Reset menu, directly below Settings, gathers every command that puts something back to its default.tools(SDK 1.7.12): the Tools menu, after the domain menus and before Options…, the home of the player's tools (tracks, snapshot, Vestra Player AI, the store, the command palette) and of any plugin's own. The player's tests check that this list agrees with the player's.