@vestra-player/sdk 1.7.1 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +6 -9
  3. package/bin/vestra-plugin.mjs +4 -4
  4. package/dist/api-requests.d.ts +8 -8
  5. package/dist/api-requests.js +8 -8
  6. package/dist/capability-check.d.ts +15 -15
  7. package/dist/capability-check.js +4 -4
  8. package/dist/capability-rules.d.ts +4 -5
  9. package/dist/capability-rules.js +4 -5
  10. package/dist/commands.d.ts +34 -44
  11. package/dist/commands.js +21 -27
  12. package/dist/docs-tree.json.gz +0 -0
  13. package/dist/docs.d.ts +1 -1
  14. package/dist/docs.js +13 -3
  15. package/dist/i18n-tools.js +1 -1
  16. package/dist/i18n.js +1 -1
  17. package/dist/media.d.ts +7 -7
  18. package/dist/palettes.d.ts +5 -5
  19. package/dist/palettes.js +5 -5
  20. package/dist/plugin/appearance.js +1 -1
  21. package/dist/plugin/bindings.d.ts +2 -3
  22. package/dist/plugin/bindings.js +2 -3
  23. package/dist/plugin/commands.js +10 -11
  24. package/dist/plugin/connection.d.ts +18 -19
  25. package/dist/plugin/connection.js +23 -24
  26. package/dist/plugin/index.d.ts +5 -5
  27. package/dist/plugin/index.js +1 -1
  28. package/dist/plugin/osd.d.ts +1 -1
  29. package/dist/plugin/osd.js +1 -1
  30. package/dist/plugin/passes.d.ts +4 -4
  31. package/dist/plugin/passes.js +4 -4
  32. package/dist/plugin/patch.d.ts +8 -8
  33. package/dist/plugin/patch.js +12 -12
  34. package/dist/plugin/player/events.js +5 -5
  35. package/dist/plugin/resolvers.js +3 -3
  36. package/dist/plugin/scope.d.ts +4 -4
  37. package/dist/plugin/scope.js +4 -4
  38. package/dist/plugin/services.d.ts +2 -3
  39. package/dist/plugin/services.js +2 -3
  40. package/dist/plugin/shaders.js +5 -6
  41. package/dist/plugin/state.js +10 -10
  42. package/dist/plugin/testing/commands.d.ts +4 -5
  43. package/dist/plugin/testing/commands.js +4 -5
  44. package/dist/plugin/testing/i18n.d.ts +1 -1
  45. package/dist/plugin/testing/i18n.js +1 -1
  46. package/dist/plugin/testing/index.d.ts +147 -165
  47. package/dist/plugin/testing/index.js +137 -155
  48. package/dist/plugin/testing/internals.d.ts +2 -2
  49. package/dist/plugin/testing/internals.js +2 -2
  50. package/dist/plugin/timeline.d.ts +1 -1
  51. package/dist/plugin/timeline.js +2 -2
  52. package/dist/plugin/types/base.d.ts +90 -111
  53. package/dist/plugin/types/commands.d.ts +142 -174
  54. package/dist/plugin/types/packages.d.ts +48 -63
  55. package/dist/plugin/types/playback.d.ts +45 -59
  56. package/dist/plugin/types/plugin-wire.d.ts +38 -45
  57. package/dist/plugin/types/processing.d.ts +52 -65
  58. package/dist/plugin/types/services.d.ts +18 -25
  59. package/dist/plugin/types/snapshots.d.ts +34 -46
  60. package/dist/plugin/types/sources.d.ts +14 -16
  61. package/dist/plugin/types/subtitles.d.ts +7 -8
  62. package/dist/plugin/types/ui-content.d.ts +111 -116
  63. package/dist/plugin/types/ui-layout.d.ts +52 -63
  64. package/dist/plugin/types/ui-locale.d.ts +41 -45
  65. package/dist/plugin/types/ui-shell.d.ts +69 -87
  66. package/dist/plugin/values.d.ts +15 -18
  67. package/dist/plugin/values.js +16 -19
  68. package/dist/plugin/view/base.d.ts +2 -2
  69. package/dist/plugin/view/base.js +7 -8
  70. package/dist/plugin/view/layout.d.ts +2 -2
  71. package/dist/plugin/view/panel.js +2 -4
  72. package/dist/plugin/view/writer.d.ts +8 -8
  73. package/dist/plugin/view/writer.js +37 -39
  74. package/dist/plugin/when.d.ts +3 -3
  75. package/dist/plugin/wire-facade.js +6 -7
  76. package/dist/processing.d.ts +26 -30
  77. package/dist/processing.js +4 -4
  78. package/dist/source-resolvers.d.ts +2 -2
  79. package/dist/source.d.ts +1 -2
  80. package/dist/subtitles.d.ts +1 -1
  81. package/dist/ts-plugin.d.ts +5 -5
  82. package/dist/wire.d.ts +63 -70
  83. package/dist/wire.js +21 -25
  84. package/llms.txt +7 -10
  85. package/package.json +1 -1
  86. package/slint/vestra/bar-buttons.slint +6 -8
  87. package/slint/vestra/focus.slint +1 -1
  88. package/slint/vestra/widgets.slint +2 -4
@@ -114,7 +114,7 @@ export interface Disposable {
114
114
  * | `stream`, `device` | `openStream`: the producer failed / the audio device is not ready. |
115
115
  * | `backend-uncertain` | The player's backend blocked a filter stage; call `retry()`. |
116
116
  * | `limit` | A player-wide limit was reached (for example the number of commands), a property value is over the limits of {@link PropValue}, or a request is longer than the player's 1 MiB message. |
117
- * | `reserved` | {@link Packages.validate}, {@link PackageCandidate.install}: the id is `vestra` or starts with `vestra.` (any case), which only the player's built-in plugins use (player 0.4.1). |
117
+ * | `reserved` | {@link Packages.validate}, {@link PackageCandidate.install}: the id is `vestra` or starts with `vestra.` (any case), which only the player's built-in plugins use. |
118
118
  * | `versionMismatch` | The package needs a newer player (`minPlayerVersion`). |
119
119
  * | `ui-prepare` | The player could not prepare a mounted panel or a settings page (its Slint file does not compile, a bound property is not declared, or another plugin's panel holds the slot); `message` has the diagnostics. |
120
120
  * | `ui` | The player could not apply a property to a tool window or a settings page, or could not build the Options window (a property the Slint file does not declare, a value of the wrong type); `message` has Slint's reason. Also reported to {@link Scope.onError} without a request: a callback whose arguments the player could not convert, a property it could not show again when it rebuilt a view (an image file removed since). |
@@ -133,7 +133,7 @@ export interface Disposable {
133
133
  * | `resolution` | A file or web resolver's result could not be opened; `message` has the reason. |
134
134
  * | `revisionConflict` | {@link Packages}: the installed revision changed since it was read (another install or uninstall ran). Read again and retry; the SDK passes the revision it read, so this reaches plugins that act on old data. |
135
135
  * | `source-geometry`, `source-geometry-unsupported` | The source's picture size or rotation could not be applied: invalid decoder dimensions / a rotation that is not a multiple of 90°. |
136
- * | `previous-crash` | {@link VideoShaders}, {@link RenderOptions} `shaders` (player 0.6.3): plugin shaders are off because the player ended abnormally while they were drawing; clearing still works. Do not retry while refused (the player shows its own OSD line). |
136
+ * | `previous-crash` | {@link VideoShaders}, {@link RenderOptions} `shaders`: plugin shaders are off because the player ended abnormally while they were drawing; clearing still works. Do not retry while refused (the player shows its own OSD line). |
137
137
  * | `source-unavailable` | The source is not ready (still loading, or its time or native binding is not available yet). |
138
138
  * | `unknown-expired` | The player no longer knows the operation or snapshot (it expired or was released). The SDK maps it to `unknownExpired` results where it can; do not resubmit the operation blindly. |
139
139
  *
@@ -217,9 +217,8 @@ export interface Scope extends Disposable {
217
217
  readonly commands: Commands;
218
218
  /**
219
219
  * Conditions on the player's own state for a command's `enabled` and
220
- * `checked` (SDK 1.5.40, player 0.5.21): the player evaluates them, so
221
- * the menu follows playback even while the plugin is stopped. See
222
- * {@link When}.
220
+ * `checked`: the player evaluates them, so the menu follows playback even
221
+ * while the plugin is stopped. See {@link When}.
223
222
  */
224
223
  readonly when: When;
225
224
  /** Tool windows from `.slint` files (`ui.window`). */
@@ -270,11 +269,10 @@ export interface Scope extends Disposable {
270
269
  */
271
270
  render(): RenderOptions;
272
271
  /**
273
- * This plugin's own GPU shaders named `id` (default `"shaders"`;
274
- * needs `processing.video`; SDK 1.5.39, player 0.5.20). Unlike
275
- * {@link Scope.video | render()}, every plugin may hold shader
276
- * handles at the same time; the player joins their lists. Nothing is
277
- * sent until the first `set()`.
272
+ * This plugin's own GPU shaders named `id` (default `"shaders"`; needs
273
+ * `processing.video`). Unlike {@link Scope.video | render()}, every plugin
274
+ * may hold shader handles at the same time; the player joins their lists.
275
+ * Nothing is sent until the first `set()`.
278
276
  *
279
277
  * @param id - Local name of the handle, 1–128 bytes, unique within
280
278
  * the plugin.
@@ -288,9 +286,9 @@ export interface Scope extends Disposable {
288
286
  */
289
287
  shaders(id?: string): VideoShaders;
290
288
  /**
291
- * The GPU's video upscaler (NVIDIA RTX Video Super Resolution on
292
- * Windows; needs `video.upscaling`, player 0.5.16): whether it works
293
- * here and why not, and turning it on or off for this plugin.
289
+ * The GPU's video upscaler (NVIDIA RTX Video Super Resolution on Windows;
290
+ * needs `video.upscaling`): whether it works here and why not, and turning
291
+ * it on or off for this plugin.
294
292
  */
295
293
  readonly upscaling: VideoUpscaling;
296
294
  };
@@ -354,10 +352,10 @@ export interface Scope extends Disposable {
354
352
  /** Pages in the player's options window (`ui.settings`). */
355
353
  readonly settings: Settings;
356
354
  /**
357
- * Direct messages to the player: requests by method name, raw events,
358
- * direct property writes, bare command registrations (SDK 1.7.0).
359
- * Experimental: the wire protocol is not semver; this member changes
360
- * with versions. See {@link Wire}.
355
+ * Direct messages to the player: requests by method name, raw events, direct
356
+ * property writes, bare command registrations. Experimental: the wire
357
+ * protocol is not semver; this member changes with versions. See
358
+ * {@link Wire}.
361
359
  *
362
360
  * @experimental
363
361
  * @since 1.7.0
@@ -438,12 +436,10 @@ export interface Scope extends Disposable {
438
436
  * ```
439
437
  *
440
438
  * @example Save a cache at once when the player is lost
441
- * The plugin writes its cache file at once when the player crashed or
442
- * was killed, instead of waiting for the next periodic save. The cleanup
443
- * may get a {@link DisposeInfo}: `stopping` says the plugin itself stops
444
- * (not a child scope), `reason` why (player 0.6.4). Players
445
- * whose SDK is older than 1.5.54 call the cleanup without an argument,
446
- * so read it with `?.`.
439
+ * The plugin writes its cache file at once when the player crashed or was
440
+ * killed, instead of waiting for the next periodic save. The cleanup may get
441
+ * a {@link DisposeInfo}: `stopping` says the plugin itself stops (not a child
442
+ * scope), `reason` why.
447
443
  * ```ts
448
444
  * declare function saveCacheNow(): void;
449
445
  * // ---cut---
@@ -454,11 +450,10 @@ export interface Scope extends Disposable {
454
450
  * ```
455
451
  *
456
452
  * @remarks
457
- * From SDK 1.5.54 in the player (and in `TestHost`) the cleanup is called
458
- * with one argument, a {@link DisposeInfo}: whether the plugin stops, and
459
- * why. A player whose own SDK is older calls it without one (`info` is
460
- * `undefined`). A cleanup that takes no argument works as before; a
461
- * function with optional parameters of its own that is passed directly
453
+ * In the player (and in `TestHost`) the cleanup is called with one argument,
454
+ * a {@link DisposeInfo}: whether the plugin stops, and why. A cleanup that
455
+ * takes no argument works as well; a function with optional parameters
456
+ * of its own that is passed directly
462
457
  * (`onDispose(controller.abort.bind(controller))`) now receives the
463
458
  * `DisposeInfo` as its first argument: wrap it (`() => controller.abort()`)
464
459
  * when that matters.
@@ -594,24 +589,25 @@ export interface Scope extends Disposable {
594
589
  * The object the player passes to a plugin's `activate`: the root
595
590
  * {@link Scope}, plus the plugin's identity and data directory.
596
591
  *
597
- * Activation: the player starts one Node process per plugin, reads the
598
- * initial player, window and timeline state, then calls `activate(plugin)`.
592
+ * Activation: the player starts one Node process per plugin, reads the initial
593
+ * player, window and timeline state, then calls `activate(plugin)`.
599
594
  * Registrations started during activation (commands, panels, resolvers,
600
- * subscriptions) do not need to be awaited: the plugin is reported ready
601
- * once they all succeed, and activation fails if `activate` throws or any
602
- * of them fails. A command declaration the player refuses is the exception
603
- * (SDK 1.5.49): the SDK logs and skips it, its `ready` rejects and
604
- * {@link Scope.onError} hears it, the rest of the plugin activates
605
- * (`startPlugin` still fails on it). The entry module must
606
- * **default-export** `activate`.
595
+ * subscriptions) do not need to be awaited: the plugin is reported ready once
596
+ * they all succeed, and activation fails if `activate` throws or any of them
597
+ * fails. A command declaration the player refuses is the exception: the SDK
598
+ * logs and skips it, its `ready` rejects and {@link Scope.onError} hears it,
599
+ * the rest of the plugin activates (`startPlugin` still fails on it). The entry
600
+ * module must **default-export** `activate`. Do not await a run of your own
601
+ * command or a callback of your own view inside `activate`: the player holds
602
+ * them until the plugin is ready, so `activate` waits until the start timeout
603
+ * (60 s) and the plugin stops with `failed`.
607
604
  *
608
605
  * Stopping: the player first revokes everything the plugin owns on its side
609
606
  * (menus, windows, panels, filters, subtitle layers, snapshots, jobs,
610
607
  * resolvers, streams); pending requests then fail with `disabled` and the
611
608
  * root scope is disposed for local cleanup (timers, signals, sockets). A
612
- * process that has not exited after its grace is killed: 5 s from player
613
- * 0.7.1 (before it 300 ms; 300 ms after a fault); at quit all plugins
614
- * together get 1 s. Media the
609
+ * process that has not exited after its grace is killed: 5 s (300 ms after
610
+ * a fault); at quit all plugins together get 1 s. Media the
615
611
  * plugin opened with {@link Player.open} keeps playing.
616
612
  *
617
613
  * @example Write a minimal plugin with one menu item
@@ -638,7 +634,7 @@ export interface Scope extends Disposable {
638
634
  * `dataDirectory`.
639
635
  *
640
636
  * @capability That of each module (see the modules).
641
- * @see [How a plugin runs](../../../docs/explanation/plugins.md)
637
+ * @see [Tutorial](../../../docs/tutorial/index.md)
642
638
  * @since 1.0.0
643
639
  * @category Plugin
644
640
  */
@@ -648,9 +644,9 @@ export interface Plugin extends Scope {
648
644
  /**
649
645
  * A writable directory for this plugin's own files (settings, caches,
650
646
  * remembered folders), created by the player before it starts the plugin.
651
- * Each installation has its own directory (player 0.2.0): it is kept across
652
- * restarts, disabling and upgrades, and a reinstall of the same
653
- * id from a different source gets a new, empty one. It is deleted only by
647
+ * Each installation has its own directory: it is kept across restarts,
648
+ * disabling and upgrades, and a reinstall of the same id from a different
649
+ * source gets a new, empty one. It is deleted only by
654
650
  * `packages.uninstall(id, { removeData: true })`. No capability.
655
651
  *
656
652
  * The path's format is not part of the API: do not derive another
@@ -658,15 +654,12 @@ export interface Plugin extends Scope {
658
654
  * {@link PluginInfo.dataDirectory}). Write files atomically (to a
659
655
  * temporary name, then rename); for JSON settings prefer
660
656
  * {@link Scope.storage}. Throws `unavailable` when the player provided
661
- * none. See [How a plugin runs](../../../docs/explanation/plugins.md#the-data-directory).
657
+ * none. See [Store a plugin's data](../../../docs/guides/store-data.md).
662
658
  */
663
659
  readonly dataDirectory: string;
664
660
  /**
665
- * Why the player stops this plugin (SDK 1.5.54, player 0.6.4): set when
666
- * the stop begins, before any
667
- * {@link Scope.onDispose} cleanup runs. `undefined` while the plugin
668
- * runs, and for every stop by an older player (one whose own SDK is older
669
- * than 1.5.54 does not have the property at all). See {@link StopReason}.
661
+ * Why the player stops this plugin: set when the stop begins, before any
662
+ * {@link Scope.onDispose} cleanup runs. See {@link StopReason}.
670
663
  */
671
664
  readonly stopReason: StopReason | undefined;
672
665
  }
@@ -675,8 +668,8 @@ export interface Plugin extends Scope {
675
668
  * {@link Plugin.stopReason}).
676
669
  *
677
670
  * - `quit`: the player quits (or restarts after a lost GPU device). Every
678
- * plugin is stopped at the same time, with 1 s in all (300 ms after a
679
- * lost device; player 0.7.1).
671
+ * plugin is stopped at the same time, with 1 s in all (300 ms after a lost
672
+ * device).
680
673
  * - `disable`: the user, or a plugin with `plugins.manage`, switched the
681
674
  * plugin off. Its session storage is cleared.
682
675
  * - `uninstall`: the user uninstalls it.
@@ -685,61 +678,53 @@ export interface Plugin extends Scope {
685
678
  * - `upgrade`: an install or update replaces the running version; also a
686
679
  * new version stopped because its install was cancelled (the previous
687
680
  * version comes back).
688
- * - `idle`: the plugin goes to standby and its next use starts it again;
689
- * its menu items, keys, settings pages, resolvers and drop targets stay,
690
- * and so does its session storage
691
- * ([Idle plugins](../../../docs/explanation/plugins.md#idle-plugins-are-stopped)).
692
- * Only with on-demand start (lazy activation): on for everyone from
693
- * player 0.7.1, off by default before it (`VESTRA_LAZY=1` turns it on).
694
- * It comes after the idle time without use (30 s; 60 s before 0.7.1),
695
- * right after a first run that holds nothing live, and, from player
696
- * 0.7.1, when the player's limit on third-party processes or low system
697
- * memory puts an idle plugin in standby early. A busy plugin never gets
698
- * it; a resident one (it held something live when it became ready) never
699
- * from player 0.7.1 (before it, after the idle time).
681
+ * - `idle`: the plugin goes to standby and its next use starts it again; its
682
+ * menu items, keys, settings pages, resolvers and drop targets stay, and so
683
+ * does its session storage ([Keep a command's state without keeping the
684
+ * plugin running](../../../docs/guides/command-state.md)). It comes after the idle
685
+ * time without use (30 s), right after a first run that holds nothing live,
686
+ * and when the player's limit on third-party processes or low system memory
687
+ * puts an idle plugin in standby early. A busy plugin never gets it, nor
688
+ * does a resident one (it held something live when it became ready).
700
689
  * - `failed`: the player stops it for a fault it can still tell the plugin
701
- * about: a malformed request, an unreadable or oversized line, a start
702
- * that is not ready within the start timeout (60 s from player 0.7.1;
703
- * the stop may come while `activate` still runs), an uncaught exception
704
- * the shared process attributes to this plugin, and, from player 0.7.1,
705
- * a request from the player (a resolution) it leaves unanswered for 5
706
- * minutes. From player 0.7.1 the player may start it again afterwards (a
707
- * built-in or resident plugin by itself, a plugin that has run before on
690
+ * about: a malformed request, an unreadable or oversized line, a start that
691
+ * is not ready within the start timeout (60 s; the stop may
692
+ * come while `activate` still runs), an uncaught exception the shared process
693
+ * attributes to this plugin, and a request from the player (a resolution) it
694
+ * leaves unanswered for 5 minutes. The player may start it again afterwards
695
+ * (a built-in or resident plugin by itself, a plugin that has run before on
708
696
  * its next use), until the fifth fault within 10 minutes.
709
697
  * - `host-lost`: the plugin's runner saw its pipe to the player close
710
698
  * without a stop: the player crashed or was killed. Requests are refused
711
- * with `disabled`; clean up locally only. Player 0.6.4 sends `quit` on a
699
+ * with `disabled`; clean up locally only. The player sends `quit` on a
712
700
  * normal exit; read `host-lost` as "the player is gone", not as proof of
713
701
  * a crash.
714
702
  *
715
703
  * Some ends are no stop at all: the plugin gets no reason and its
716
- * {@link Scope.onDispose} cleanups do not run. That is the case when its
717
- * own process is killed because its input queue is full or a write to it
718
- * failed, when its own process fails to activate (the runner exits without
719
- * cleaning up), when the process ended by itself (it crashed, or its
720
- * JavaScript heap passed the 512 MB cap of player 0.7.1 and V8 ended it:
721
- * "ran out of memory"), and when the shared runner is restarted as a whole
722
- * (a hang, a fault it cannot attribute, an unreadable line of its own, a
723
- * member's full input queue, the runner exiting): every member is killed
724
- * with it. Keep state that must survive such an end in storage as it
725
- * changes, not only in a cleanup. Timings and restarts are in
726
- * [How the player runs and talks to plugins](../../../docs/explanation/host-and-node.md#crashes-and-restarts).
704
+ * {@link Scope.onDispose} cleanups do not run. That is the case when its own
705
+ * process is killed because its input queue is full or a write to it failed,
706
+ * when its own process fails to activate (the runner exits without cleaning
707
+ * up), when the process ended by itself (it crashed, or its JavaScript heap
708
+ * passed the 512 MB cap and V8 ended it: "ran out of memory"), and when the
709
+ * shared runner is restarted as a whole (a hang, a fault it cannot attribute,
710
+ * an unreadable line of its own, a member's full input queue, the runner
711
+ * exiting): every member is killed with it. Keep state that must survive such
712
+ * an end in storage as it changes, not only in a cleanup. Timings and restarts
713
+ * are in [Limits](../../../docs/reference/limits.md).
727
714
  *
728
- * Player 0.6.4 and later send the reason with `runtime.stop`, and their
729
- * runner reports `host-lost`. Players up to 0.6.3 give no reason for any
730
- * stop, a lost player included (`undefined`); so does a stop that does not
731
- * come from the player (a `TestHost` `stop()` without a reason). A value
732
- * this SDK does not know reads as `undefined`.
715
+ * The player sends the reason with `runtime.stop`, and its runner reports
716
+ * `host-lost`. A stop that does not come from the player (a `TestHost` `stop()`
717
+ * without a reason) has none (`undefined`). A value this SDK does not know
718
+ * reads as `undefined`.
733
719
  *
734
- * @player 0.6.4; older players give no reason (`undefined`).
720
+ * @player 0.6.4
735
721
  * @since 1.5.54
736
722
  * @category Plugin
737
723
  */
738
724
  export type StopReason = "quit" | "disable" | "uninstall" | "reload" | "upgrade" | "idle" | "failed" | "host-lost";
739
725
  /**
740
- * What a {@link Scope.onDispose} cleanup is told (SDK 1.5.54). A player
741
- * whose own SDK is older passes nothing, so the cleanup's parameter is
742
- * optional.
726
+ * What a {@link Scope.onDispose} cleanup is told. The cleanup's parameter is
727
+ * optional, so a cleanup without one works too.
743
728
  *
744
729
  * @since 1.5.54
745
730
  * @category Plugin
@@ -751,9 +736,8 @@ export interface DisposeInfo {
751
736
  */
752
737
  readonly stopping: boolean;
753
738
  /**
754
- * Why the player stops the plugin (player 0.6.4; the causes are listed at
755
- * {@link StopReason}); `undefined` while `stopping` is false, and for
756
- * every stop by an older player.
739
+ * Why the player stops the plugin (the causes are listed at
740
+ * {@link StopReason}).
757
741
  */
758
742
  readonly reason?: StopReason;
759
743
  }
@@ -775,7 +759,7 @@ export interface WindowState {
775
759
  * MPC-HC and mpv do. Always `false` with players before 0.6.3, which do
776
760
  * not report it.
777
761
  *
778
- * @player 0.6.3; older players: always `false`.
762
+ * @player 0.6.3
779
763
  * @since 1.5.52
780
764
  */
781
765
  readonly maximized: boolean;
@@ -993,11 +977,10 @@ export interface MainWindow {
993
977
  */
994
978
  export interface AppInfo {
995
979
  /**
996
- * The player's version, e.g. `"0.7.1"`. From player 0.7.1 this is the
997
- * player's release version (the version of the published release), which
998
- * can differ from the version of the host binary inside it. The player
999
- * compares `minPlayerVersion` with this value, and plugins compare with
1000
- * it too.
980
+ * The player's version, e.g. `"0.7.1"`. This is the player's release version
981
+ * (the version of the published release), which can differ from the version
982
+ * of the host binary inside it. The player compares `minPlayerVersion` with
983
+ * this value, and plugins compare with it too.
1001
984
  */
1002
985
  readonly version: string;
1003
986
  /** Short git hash of the build, `null` when unknown. */
@@ -1102,12 +1085,10 @@ export interface SystemInfo {
1102
1085
  * rather than {@link SystemInfo.os}.
1103
1086
  *
1104
1087
  * @example Offer the HDR menu only where render options work
1105
- * The plugin adds its HDR command only when the player renders on the
1106
- * GPU, instead of creating the render options just to find out from a
1107
- * failed status. `system()` asks the player, which reports the renderer
1108
- * drawing at that moment; no capability is needed to ask. A player before
1109
- * 0.5.12 leaves the field out, so the test is for `"gpu"` exactly (an
1110
- * older player gets no HDR command).
1088
+ * The plugin adds its HDR command only when the player renders on the GPU,
1089
+ * instead of creating the render options just to find out from a failed
1090
+ * status. `system()` asks the player, which reports the renderer drawing at
1091
+ * that moment; no capability is needed to ask.
1111
1092
  * ```ts
1112
1093
  * const { rendering } = await plugin.app.system();
1113
1094
  * if (rendering === "gpu") {
@@ -1120,8 +1101,7 @@ export interface SystemInfo {
1120
1101
  * }
1121
1102
  * ```
1122
1103
  *
1123
- * @player 0.5.12; older players leave it out (declare
1124
- * `"minPlayerVersion": "0.5.12"` when the plugin relies on it).
1104
+ * @player 0.5.12
1125
1105
  * @since 1.5.34
1126
1106
  */
1127
1107
  readonly rendering?: "gpu" | "software";
@@ -1145,8 +1125,7 @@ export interface SystemInfo {
1145
1125
  * console.log(`Rendering: software (${renderingReason.message})`);
1146
1126
  * ```
1147
1127
  *
1148
- * @player 0.5.13; older players leave it out (declare
1149
- * `"minPlayerVersion": "0.5.13"` when the plugin relies on it).
1128
+ * @player 0.5.13
1150
1129
  * @since 1.5.35
1151
1130
  */
1152
1131
  readonly renderingReason?: RenderingReason;