@vestra-player/sdk - v1.11.3
    Preparing search index...

    Interface PluginInfo

    One plugin as the player knows it (packages.list).

    1.0.0

    interface PluginInfo {
        id: string;
        version: string | null;
        origin: "installed" | "development";
        state: "failed" | "starting" | "running" | "disabled" | "stopped";
        error: string | null;
        directory: string;
        builtin: boolean;
        source: PackageSource | null;
        dataDirectory: string | null;
        warnings?: readonly PluginWarning[];
        display?: PluginDisplay;
        process?: "running" | "idle";
    }
    Index
    id: string

    Manifest id.

    version: string | null

    Version, null when unknown.

    origin: "installed" | "development"

    From the install library, or a --plugin development load.

    state: "failed" | "starting" | "running" | "disabled" | "stopped"

    Run state.

    error: string | null

    Why it failed (state: "failed").

    directory: string

    The package directory (read its manifest.json for display fields). A built-in's directory is inside the player installation (<install resources>/plugins/<id>) and read-only: a plugin writes only under its own Plugin.dataDirectory.

    builtin: boolean

    Shipped with the player: it always runs; it cannot be disabled, uninstalled or replaced.

    source: PackageSource | null

    Where an installed plugin came from; null for development loads.

    dataDirectory: string | null

    Its data directory (plugin.dataDirectory of that plugin); null when the player has none. The path's layout is not part of the API.

    warnings?: readonly PluginWarning[]

    What a running plugin was refused because another plugin holds it: a panel position (slot-occupied, with slot) or the next/previous sequence (sequence-taken). Neither fails activation; error has the same as text. Always set by the SDK; optional so that code building PluginInfo values itself (tests) keeps compiling.

    1.5.2

    display?: PluginDisplay

    The manifest's display texts in the interface language, translated with that package's catalog; absent from players before 0.4.3 (read manifest.json there).

    1.5.9

    process?: "running" | "idle"

    For state: "running": "running" while its process runs, "idle" while the plugin is switched on but has no process. That is standby with on-demand start (lazy activation): nothing used it for the idle time, or the player's limit on third-party processes or low system memory stopped it early; it starts again on its next use, and its menu items, keys, settings pages, resolvers and drop targets stay. It is also the pause after a crash: a built-in or resident plugin waiting to start again by itself, or a plugin that has run before whose commands are shown disabled with the reason until the pause ends. Absent in other states. A change between the two alone does not fire Packages.onChange; a plugin stopped by the start limit (five crashes within 10 minutes) is state: "failed" with that in PluginInfo.error.

    1.5.38