@vestra-player/sdk 1.7.20 → 1.9.0

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 (96) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/README.md +2 -2
  3. package/bin/vestra-plugin.mjs +139 -100
  4. package/capability-scan.json +369 -0
  5. package/dist/api-requests.d.ts +11 -36
  6. package/dist/api-requests.js +22 -47
  7. package/dist/capability-scan.d.ts +95 -0
  8. package/dist/capability-scan.js +249 -0
  9. package/dist/commands.d.ts +35 -0
  10. package/dist/commands.js +42 -1
  11. package/dist/docs-tree.json.gz +0 -0
  12. package/dist/docs.d.ts +1 -1
  13. package/dist/docs.js +1 -1
  14. package/dist/index.d.ts +4 -5
  15. package/dist/manifest.d.ts +5 -0
  16. package/dist/manifest.js +9 -24
  17. package/dist/member-uses.d.ts +61 -0
  18. package/dist/member-uses.js +160 -0
  19. package/dist/mpv.d.ts +139 -0
  20. package/dist/mpv.js +496 -0
  21. package/dist/player-runtime.d.ts +3 -3
  22. package/dist/player-runtime.js +3 -3
  23. package/dist/plugin/appearance.d.ts +1 -1
  24. package/dist/plugin/appearance.js +2 -2
  25. package/dist/plugin/bindings.d.ts +1 -1
  26. package/dist/plugin/bindings.js +2 -2
  27. package/dist/plugin/commands.js +6 -14
  28. package/dist/plugin/connection.d.ts +26 -7
  29. package/dist/plugin/connection.js +68 -36
  30. package/dist/plugin/drops.js +1 -1
  31. package/dist/plugin/index.js +9 -15
  32. package/dist/plugin/media.js +0 -12
  33. package/dist/plugin/mpv.d.ts +3 -0
  34. package/dist/plugin/mpv.js +91 -0
  35. package/dist/plugin/packages.js +1 -2
  36. package/dist/plugin/player/events.d.ts +4 -3
  37. package/dist/plugin/player/events.js +7 -6
  38. package/dist/plugin/player.d.ts +21 -13
  39. package/dist/plugin/player.js +56 -21
  40. package/dist/plugin/scope.d.ts +1 -0
  41. package/dist/plugin/scope.js +2 -0
  42. package/dist/plugin/services.d.ts +4 -4
  43. package/dist/plugin/services.js +7 -29
  44. package/dist/plugin/settings.js +1 -1
  45. package/dist/plugin/shaders.js +0 -2
  46. package/dist/plugin/stream.d.ts +2 -1
  47. package/dist/plugin/stream.js +2 -2
  48. package/dist/plugin/testing/commands.d.ts +3 -10
  49. package/dist/plugin/testing/commands.js +43 -24
  50. package/dist/plugin/testing/index.d.ts +75 -114
  51. package/dist/plugin/testing/index.js +83 -102
  52. package/dist/plugin/testing/mpv.d.ts +7 -0
  53. package/dist/plugin/testing/mpv.js +90 -0
  54. package/dist/plugin/testing/processing.js +1 -1
  55. package/dist/plugin/testing/services.js +0 -1
  56. package/dist/plugin/timeline.d.ts +2 -3
  57. package/dist/plugin/timeline.js +4 -8
  58. package/dist/plugin/types/base.d.ts +49 -88
  59. package/dist/plugin/types/commands.d.ts +44 -77
  60. package/dist/plugin/types/packages.d.ts +17 -55
  61. package/dist/plugin/types/playback.d.ts +302 -135
  62. package/dist/plugin/types/plugin-wire.d.ts +6 -36
  63. package/dist/plugin/types/processing.d.ts +10 -49
  64. package/dist/plugin/types/services.d.ts +11 -70
  65. package/dist/plugin/types/snapshots.d.ts +7 -60
  66. package/dist/plugin/types/sources.d.ts +2 -11
  67. package/dist/plugin/types/subtitles.d.ts +5 -26
  68. package/dist/plugin/types/ui-content.d.ts +1 -16
  69. package/dist/plugin/types/ui-layout.d.ts +53 -79
  70. package/dist/plugin/types/ui-locale.d.ts +5 -23
  71. package/dist/plugin/types/ui-shell.d.ts +13 -59
  72. package/dist/plugin/view/layout.js +1 -1
  73. package/dist/plugin/view.js +0 -2
  74. package/dist/plugin/window.d.ts +1 -1
  75. package/dist/plugin/window.js +1 -1
  76. package/dist/plugin/wire-facade.js +1 -2
  77. package/dist/processing.d.ts +2 -3
  78. package/dist/protocol.d.ts +14 -0
  79. package/dist/protocol.js +14 -0
  80. package/dist/request-queue.js +1 -1
  81. package/dist/subtitles.d.ts +1 -1
  82. package/dist/ts-plugin.d.ts +8 -15
  83. package/dist/ts-plugin.js +3 -141
  84. package/dist/wire.d.ts +22 -12
  85. package/dist/wire.js +17 -8
  86. package/llms.txt +5 -5
  87. package/package.json +4 -3
  88. package/slint/vestra/widgets.slint +12 -4
  89. package/dist/capabilities.d.ts +0 -107
  90. package/dist/capabilities.js +0 -69
  91. package/dist/capability-check.d.ts +0 -133
  92. package/dist/capability-check.js +0 -371
  93. package/dist/capability-rules.d.ts +0 -125
  94. package/dist/capability-rules.js +0 -192
  95. package/dist/host-capabilities.d.ts +0 -10
  96. package/dist/host-capabilities.js +0 -477
@@ -4,8 +4,7 @@ import type { PackageManifest, PackageSource } from "../types.ts";
4
4
  import type { Json, LayoutSlot, LocalServices, PlaybackStats, Transport, WireSystemInfo } from "../../wire.ts";
5
5
  import { BAR_BUTTON_ICONS, BAR_BUTTON_LIMITS, BUILTIN_COMMANDS, BUILTIN_SUBMENUS, COMMAND_LIMITS, MENU_IDS } from "../../commands.ts";
6
6
  import type { BuiltinCommand, BuiltinSubmenu } from "../../commands.ts";
7
- import { CAPABILITY_INFO, MESSAGE_LIMIT } from "../../capabilities.ts";
8
- import type { CapabilityInfo } from "../../capabilities.ts";
7
+ import { MESSAGE_LIMIT } from "../../protocol.ts";
9
8
  import { OSD_LIMITS } from "../osd.ts";
10
9
  import { TIMELINE_LIMITS } from "../timeline.ts";
11
10
  import { SECRET_LIMITS, SESSION_STORAGE_LIMITS } from "../services.ts";
@@ -30,9 +29,6 @@ export { BAR_BUTTON_ICONS, BAR_BUTTON_LIMITS };
30
29
  /** The submenus of the player's built-in plugins, by key path. */
31
30
  export { BUILTIN_COMMANDS, BUILTIN_SUBMENUS };
32
31
  export type { BuiltinCommand, BuiltinSubmenu };
33
- /** The manifest capabilities: what each opens and how the store shows it. */
34
- export { CAPABILITY_INFO };
35
- export type { CapabilityInfo };
36
32
  /** The longest message a plugin may send the player. */
37
33
  export { MESSAGE_LIMIT };
38
34
  /** The player's limits on the on-screen display. */
@@ -132,7 +128,6 @@ type Call = {
132
128
  * callback the way the user's input would; `userClose` closes it the way
133
129
  * the title-bar button would.
134
130
  *
135
- * @capability None.
136
131
  * @since 1.0.0
137
132
  * @category Testing
138
133
  */
@@ -154,8 +149,6 @@ export interface FakeWindow {
154
149
  * name may be kebab-case or camelCase; `args` are the callback arguments.
155
150
  * Follow it with `await host.settle()` before asserting.
156
151
  *
157
- * @capability None.
158
- *
159
152
  * @example Type into a window's search field
160
153
  * The test types "cat" into the window's search box and checks the
161
154
  * plugin's results. `emit` delivers the Slint callback `search-changed`
@@ -179,8 +172,6 @@ export interface FakeWindow {
179
172
  * and the plugin's `window.onClose` listeners run (unlike the plugin's own
180
173
  * `close()`).
181
174
  *
182
- * @capability None.
183
- *
184
175
  * @example Close a window the way the user does
185
176
  * The test closes the plugin's window with its title-bar button and checks
186
177
  * that the plugin stopped its timer. Unlike the plugin's own `close()`,
@@ -241,7 +232,6 @@ export interface FileDialogText {
241
232
  * Read it again after `settle()` to see changes; `run` executes it as the
242
233
  * menu would.
243
234
  *
244
- * @capability None.
245
235
  * @since 1.0.0
246
236
  * @category Testing
247
237
  */
@@ -322,7 +312,6 @@ export interface FakeCommand {
322
312
  * idle. Rejects (with a {@link HostError}) when the command is disabled or
323
313
  * busy, like the player, which does not call `run` then.
324
314
  *
325
- * @capability None.
326
315
  * @throws `command` (rejects) A `HostError`: the command is disabled or
327
316
  * busy (the message says which).
328
317
  *
@@ -353,8 +342,6 @@ export interface FakeCommand {
353
342
  * the command is enabled and not busy, accent-coloured while checked, with
354
343
  * the command's title (and reason) as the tooltip.
355
344
  *
356
- * @capability None.
357
- *
358
345
  * @example Check a bar button's tooltip while it is disabled
359
346
  * The test checks that the Export button shows why it cannot be clicked.
360
347
  * The tooltip is the command's title; while the command is disabled or
@@ -393,7 +380,6 @@ export interface FakeBarButton {
393
380
  * as its menu item would. Rejects (with a {@link HostError}) while the
394
381
  * button is disabled, and once the command is gone.
395
382
  *
396
- * @capability None.
397
383
  * @throws `command` (rejects) A `HostError`: the command is disabled or
398
384
  * busy.
399
385
  * @throws `missing` (rejects) A `HostError`: the command is gone.
@@ -424,8 +410,6 @@ export interface FakeBarButton {
424
410
  * plugin released it or the player retired it. Tests assert on it; nothing
425
411
  * is played.
426
412
  *
427
- * @capability None.
428
- *
429
413
  * @example Check that the stream delivers frames
430
414
  * The test starts the plugin's generator and checks that video and audio
431
415
  * arrive. The counters grow as the SDK pulls frames and sends them over
@@ -499,7 +483,6 @@ export interface MarkdownWire {
499
483
  * const panel: FakePanel = host.mounted("adjust");
500
484
  * assert.deepEqual(panel.locks, { focused: false, dragging: true, popupOpen: false });
501
485
  * ```n *
502
- * @capability None.
503
486
  * @since 1.6.15
504
487
  * @category Testing
505
488
  */
@@ -585,7 +568,6 @@ export type FakePanel = Omit<FakeWindow, "callbacks" | "userClose"> & {
585
568
  * {@link startPlugin}, drive it, `settle()`, and assert on what it
586
569
  * recorded.
587
570
  *
588
- * @capability None.
589
571
  * @see [Test a plugin](../../../docs/guides/testing.md)
590
572
  * @since 1.0.0
591
573
  * @category Testing
@@ -597,7 +579,7 @@ export declare class TestHost implements Transport {
597
579
  * Wire-level; prefer {@link TestHost.sent} for one method.
598
580
  */
599
581
  readonly calls: Call[];
600
- /** The host events the plugin subscribed to (needs `events` etc.). */
582
+ /** The host events the plugin subscribed to. */
601
583
  readonly subscriptions: Set<string>;
602
584
  /**
603
585
  * The subscribed events the plugin really listens to: an `onChange` and
@@ -719,7 +701,6 @@ export declare class TestHost implements Transport {
719
701
  * await host.pressOsdAction(0); // runs the plugin's `reveal` command
720
702
  * ```
721
703
  *
722
- * @capability None.
723
704
  * @since 1.6.9
724
705
  */
725
706
  pressOsdAction(index: number): Promise<void>;
@@ -768,8 +749,6 @@ export declare class TestHost implements Transport {
768
749
  * @param directory - The package directory (holding `locales/`).
769
750
  * @since 1.5.9
770
751
  *
771
- * @capability None.
772
- *
773
752
  * @example Load the translations after changing the language
774
753
  * The test switches the host to German before starting the plugin and
775
754
  * loads that catalog itself (`startPlugin` does the same). Texts are then
@@ -804,8 +783,6 @@ export declare class TestHost implements Transport {
804
783
  * ```
805
784
  *
806
785
  * @since 1.5.9
807
- *
808
- * @capability None.
809
786
  */
810
787
  translate(text: TextValue, args?: TemplateArgs): string;
811
788
  /**
@@ -822,11 +799,9 @@ export declare class TestHost implements Transport {
822
799
  * @param language - `"system"` or a locale.
823
800
  * @since 1.5.9
824
801
  *
825
- * @capability None.
826
- *
827
802
  * @example Simulate the user choosing French for the next start
828
803
  * The plugin hears that the saved interface language changed. The host
829
- * pushes `appearance.changed`, which a plugin with `events` sees in
804
+ * pushes `appearance.changed`, which a plugin sees (after `plugin.player.subscribe()`) in
830
805
  * `appearance.language` once it has read it and subscribed; this run's
831
806
  * language does not change.
832
807
  * ```ts
@@ -1072,7 +1047,6 @@ export declare class TestHost implements Transport {
1072
1047
  * assert.equal(plugin.timeline.ranges[0]?.plugin, "community.clips");
1073
1048
  * ```
1074
1049
  *
1075
- * @capability None.
1076
1050
  * @since 1.6.9
1077
1051
  */
1078
1052
  setTimelineRanges(pluginId: string, ranges: {
@@ -1091,8 +1065,8 @@ export declare class TestHost implements Transport {
1091
1065
  * @example Let another plugin publish chapters
1092
1066
  * The plugin under test sees two chapter marks another plugin put on the
1093
1067
  * timeline. `setTimelineLayer` stores that plugin's whole layer and pushes
1094
- * `timeline.changed`; once the plugin uses `plugin.timeline` (with
1095
- * `events`) the SDK keeps `marks` current from that event, and `settle()`
1068
+ * `timeline.changed`; once the plugin uses `plugin.timeline` (after
1069
+ * `plugin.player.subscribe()`) the SDK keeps `marks` current from that event, and `settle()`
1096
1070
  * lets it arrive.
1097
1071
  * ```ts
1098
1072
  * import assert from "node:assert/strict";
@@ -1106,7 +1080,6 @@ export declare class TestHost implements Transport {
1106
1080
  * assert.equal(plugin.timeline.marks.length, 2);
1107
1081
  * ```
1108
1082
  *
1109
- * @capability None.
1110
1083
  * @since 1.0.0
1111
1084
  */
1112
1085
  setTimelineLayer(pluginId: string, marks: {
@@ -1149,7 +1122,6 @@ export declare class TestHost implements Transport {
1149
1122
  * );
1150
1123
  * ```
1151
1124
  *
1152
- * @capability None.
1153
1125
  * @since 1.0.0
1154
1126
  */
1155
1127
  imagePath(value: Json | undefined): string | null;
@@ -1192,7 +1164,6 @@ export declare class TestHost implements Transport {
1192
1164
  * });
1193
1165
  * ```
1194
1166
  *
1195
- * @capability None.
1196
1167
  * @throws Never: files nobody takes are ignored, as in the player.
1197
1168
  * @since 1.0.0
1198
1169
  */
@@ -1214,17 +1185,15 @@ export declare class TestHost implements Transport {
1214
1185
  * Simulate another plugin switching the palette: updates
1215
1186
  * {@link TestHost.appearance} and pushes `appearance.changed`.
1216
1187
  *
1217
- * @capability None.
1218
- *
1219
1188
  * @example Simulate another plugin switching to the light palette
1220
1189
  * The plugin hears the palette change. The host updates `appearance` and
1221
- * pushes `appearance.changed` to a plugin that listens with `events`.
1190
+ * pushes `appearance.changed` to a plugin that listens (after `plugin.player.subscribe()`).
1222
1191
  * ```ts
1223
1192
  * import assert from "node:assert/strict";
1224
1193
  * declare const host: TestHost;
1225
1194
  * // ---cut---
1226
1195
  * const themes: string[] = [];
1227
- * plugin.player.on("appearance.changed", ({ theme }) => themes.push(theme)); // subscribes (`events`)
1196
+ * plugin.player.on("appearance.changed", ({ theme }) => themes.push(theme)); // subscribes
1228
1197
  * host.setAppearance("vestra-light");
1229
1198
  * await host.settle();
1230
1199
  * assert.deepEqual(themes, ["vestra-light"]);
@@ -1282,7 +1251,6 @@ export declare class TestHost implements Transport {
1282
1251
  * assert.equal(page.props["step"], 10);
1283
1252
  * ```
1284
1253
  *
1285
- * @capability None.
1286
1254
  * @since 1.0.0
1287
1255
  */
1288
1256
  settingsPage(id: string): {
@@ -1314,8 +1282,6 @@ export declare class TestHost implements Transport {
1314
1282
  * Simulate the backdrop's `effective` changing (`false`: a video frame
1315
1283
  * appeared; `true`: there is none again); pushed to the plugin.
1316
1284
  *
1317
- * @capability None.
1318
- *
1319
1285
  * @example Make a video picture replace the backdrop
1320
1286
  * The plugin's backdrop hears that a video frame now covers it. `false`
1321
1287
  * means a picture appeared; the change is pushed like the player's
@@ -1362,8 +1328,6 @@ export declare class TestHost implements Transport {
1362
1328
  * ```
1363
1329
  *
1364
1330
  * @since 1.5.2
1365
- *
1366
- * @capability None.
1367
1331
  */
1368
1332
  mountOther(slot: "bottom" | "sidebar" | "adjust" | "backdrop", plugin: string, options?: {
1369
1333
  title?: string;
@@ -1374,8 +1338,6 @@ export declare class TestHost implements Transport {
1374
1338
  *
1375
1339
  * @since 1.5.2
1376
1340
  *
1377
- * @capability None.
1378
- *
1379
1341
  * @example Let the playlist's tab go away
1380
1342
  * The other plugin's sidebar tab disappears and the plugin's own tab
1381
1343
  * becomes current. When the removed tab was current, the next tab (else
@@ -1397,8 +1359,6 @@ export declare class TestHost implements Transport {
1397
1359
  *
1398
1360
  * @since 1.5.2
1399
1361
  *
1400
- * @capability None.
1401
- *
1402
1362
  * @example Click another plugin's sidebar tab
1403
1363
  * The user switches the sidebar to the playlist; the plugin's panel is in
1404
1364
  * a background tab now. The change is pushed as `window.state`.
@@ -1427,8 +1387,6 @@ export declare class TestHost implements Transport {
1427
1387
  * `video.view()` then fails with `conflict`), or, with `null`, releasing
1428
1388
  * it (values reset to the defaults).
1429
1389
  *
1430
- * @capability None.
1431
- *
1432
1390
  * @example Let another plugin own the display layer
1433
1391
  * The plugin's `video.view()` fails with `conflict` because another plugin
1434
1392
  * took the display layer first. `null` releases it again.
@@ -1467,8 +1425,6 @@ export declare class TestHost implements Transport {
1467
1425
  * `video.render()` then fails with `conflict`), or, with `null`, releasing
1468
1426
  * them (values reset to the defaults).
1469
1427
  *
1470
- * @capability None.
1471
- *
1472
1428
  * @example Let another plugin own the render options
1473
1429
  * The plugin's render options report `conflict` while another plugin owns
1474
1430
  * them; `null` releases them and resets the values to the defaults.
@@ -1512,7 +1468,6 @@ export declare class TestHost implements Transport {
1512
1468
  * assert.equal(render.status.state, "failed");
1513
1469
  * ```
1514
1470
  *
1515
- * @capability None.
1516
1471
  * @since 1.0.0
1517
1472
  */
1518
1473
  failVideoRender(code: "failed" | "unsupported" | "previous-crash", message: string): void;
@@ -1553,8 +1508,6 @@ export declare class TestHost implements Transport {
1553
1508
  * player never pushes it, it refuses the `set` request itself after
1554
1509
  * an abnormal end. To test that, set {@link TestHost.previousCrash}.
1555
1510
  *
1556
- * @capability None.
1557
- *
1558
1511
  * @example Make the plugin's shader fail to compile
1559
1512
  * The plugin's shader handle reports `failed`, as when mpv rejects a
1560
1513
  * shader. The host pushes the failure only to a handle that holds
@@ -1858,8 +1811,6 @@ export declare class TestHost implements Transport {
1858
1811
  * plugin's file resolvers and of {@link TestHost.otherResolvers}, sorted,
1859
1812
  * each once.
1860
1813
  *
1861
- * @capability None.
1862
- *
1863
1814
  * @example Check the file types a resolver adds
1864
1815
  * The test checks the list the plugin will hear in
1865
1816
  * `resolvers.fileTypes`: the extensions of its own file resolvers and of
@@ -1891,7 +1842,7 @@ export declare class TestHost implements Transport {
1891
1842
  * declare const host: TestHost;
1892
1843
  * // ---cut---
1893
1844
  * const heard: string[][] = [];
1894
- * // A listener of the event (`events`): each list the player sends.
1845
+ * // A listener of the event: each list the player sends.
1895
1846
  * plugin.player.on("resolvers.fileTypes", ({ fileTypes }) => heard.push(fileTypes));
1896
1847
  * // Another plugin starts with a resolver for .ch8 files.
1897
1848
  * host.otherResolvers.push({ owner: "example.emulator", extensions: ["ch8"] });
@@ -1900,7 +1851,6 @@ export declare class TestHost implements Transport {
1900
1851
  * assert.deepEqual(heard, [["ch8"]]);
1901
1852
  * ```
1902
1853
  *
1903
- * @capability None.
1904
1854
  * @since 1.5.8
1905
1855
  */
1906
1856
  updateFileTypes(): void;
@@ -1990,6 +1940,55 @@ export declare class TestHost implements Transport {
1990
1940
  active: boolean;
1991
1941
  };
1992
1942
  };
1943
+ /**
1944
+ * The mpv pass-through (`plugin.mpv`), without an mpv: `commands` are
1945
+ * the commands the plugin sent, in order (they do nothing else);
1946
+ * `properties` is what `get` answers and `set` writes (a property not in
1947
+ * it fails `backend`, "mpv: property not found"); `labels` are the
1948
+ * owners of filter labels by `"vf/<label>"` or `"af/<label>"` (preset
1949
+ * another plugin's id to test `conflict`); `observed` are the properties
1950
+ * the plugin observes. The player's refusals apply (`refused`,
1951
+ * `invalid`, the limit of 64 observed properties), from the same table
1952
+ * as the player's.
1953
+ *
1954
+ * @since 1.8.0
1955
+ */
1956
+ readonly mpv: {
1957
+ /** The commands the plugin sent, in order, as their arrays. */
1958
+ commands: (string | number | boolean)[][];
1959
+ /** Property values by name: what `get` answers and `set` writes. */
1960
+ properties: Map<string, Json>;
1961
+ /** The owner (a plugin id) of each filter label, by `"vf/<label>"` or `"af/<label>"`. */
1962
+ labels: Map<string, string>;
1963
+ /** The properties the plugin observes now. */
1964
+ observed: Set<string>;
1965
+ };
1966
+ /**
1967
+ * Simulate mpv changing a property: store the value and send it to the
1968
+ * plugin if it observes the property (`plugin.mpv.observe`).
1969
+ *
1970
+ * @param name - The property, as mpv names it.
1971
+ * @param value - Its new value.
1972
+ *
1973
+ * @example The frame rate behind the filters changes
1974
+ * The plugin's listener hears the value the test gives the property.
1975
+ * `setMpvProperty` stores it and sends the `mpv.property` event that
1976
+ * the player sends to an observer; `settle` lets it arrive.
1977
+ * ```ts
1978
+ * import assert from "node:assert/strict";
1979
+ * declare const host: TestHost;
1980
+ * // ---cut---
1981
+ * const seen: unknown[] = [];
1982
+ * plugin.mpv.observe("estimated-vf-fps", (fps) => seen.push(fps));
1983
+ * await host.settle();
1984
+ * host.setMpvProperty("estimated-vf-fps", 59.94);
1985
+ * await host.settle();
1986
+ * assert.deepEqual(seen, [null, 59.94]); // no value at first, then the change
1987
+ * ```
1988
+ *
1989
+ * @since 1.8.0
1990
+ */
1991
+ setMpvProperty(name: string, value: Json): void;
1993
1992
  /**
1994
1993
  * The player's secret store for this plugin: name → value. Preset entries
1995
1994
  * to simulate stored secrets; inject failures with
@@ -2196,7 +2195,6 @@ export declare class TestHost implements Transport {
2196
2195
  * assert.match(String(host.window("upscale").props.blocker), /Picture Adjustments/);
2197
2196
  * ```
2198
2197
  *
2199
- * @capability None.
2200
2198
  * @since 1.5.43
2201
2199
  */
2202
2200
  upscalingDecoding(cause: UpscalingDecodingCause, plugins?: readonly UpscalingPlugin[]): UpscalingReason;
@@ -2206,8 +2204,6 @@ export declare class TestHost implements Transport {
2206
2204
  * plugin listening with `plugin.video.upscaling.onChange` receives it.
2207
2205
  * Nothing reaches a plugin that does not listen.
2208
2206
  *
2209
- * @capability None.
2210
- *
2211
2207
  * @example Show the new factor in the plugin's window
2212
2208
  * The window resized: the test changes the area and the factor, sends
2213
2209
  * the change, and checks that the plugin's window shows the new factor.
@@ -2286,8 +2282,6 @@ export declare class TestHost implements Transport {
2286
2282
  * plugin listening with `plugin.video.motion("amd").onChange` receives it.
2287
2283
  * Nothing reaches a plugin that does not listen.
2288
2284
  *
2289
- * @capability None.
2290
- *
2291
2285
  * @example The GPU fell behind
2292
2286
  * The player turned the converter off for this video; the plugin's
2293
2287
  * panel shows the reason.
@@ -2404,9 +2398,9 @@ export declare class TestHost implements Transport {
2404
2398
  readonly coreRuns: string[];
2405
2399
  /**
2406
2400
  * The plugin is built into the player (`startPlugin`'s `builtin`). Only
2407
- * then does the host take the built-in-only capabilities
2408
- * (`commands.run`, `palette.lead`); otherwise their calls fail with
2409
- * `capability`, as in the player.
2401
+ * then does the host answer the built-in-only requests
2402
+ * (`commands.list`, `commands.run`, `palette.lead.*`); otherwise they
2403
+ * fail with `capability`, as in the player.
2410
2404
  *
2411
2405
  * @since 1.7.9
2412
2406
  */
@@ -2462,7 +2456,6 @@ export declare class TestHost implements Transport {
2462
2456
  * await stop();
2463
2457
  * ```
2464
2458
  *
2465
- * @capability None.
2466
2459
  * @throws `Error` without a code (rejects) The plugin has no lead row.
2467
2460
  * @since 1.7.9
2468
2461
  */
@@ -2493,7 +2486,6 @@ export declare class TestHost implements Transport {
2493
2486
  * assert.deepEqual(host.coreRuns, ["play-pause"]);
2494
2487
  * ```
2495
2488
  *
2496
- * @capability None.
2497
2489
  * @since 1.0.0
2498
2490
  */
2499
2491
  coreAction(id: string): FakeCommand;
@@ -2537,15 +2529,12 @@ export declare class TestHost implements Transport {
2537
2529
  * host.reset("system.openPath");
2538
2530
  * ```
2539
2531
  *
2540
- * @capability None.
2541
2532
  * @since 1.0.0
2542
2533
  */
2543
2534
  handle(method: string, handler: Handler): void;
2544
2535
  /**
2545
2536
  * Restore the default behaviour of a method replaced with {@link TestHost.handle}.
2546
2537
  *
2547
- * @capability None.
2548
- *
2549
2538
  * @example Restore the default answer after a simulated failure
2550
2539
  * The first write fails, the second succeeds. `reset` removes the handler
2551
2540
  * that `handle` installed, so the method is answered by the test host
@@ -2569,14 +2558,12 @@ export declare class TestHost implements Transport {
2569
2558
  * Deliver a host event to the plugin. Like the player, subscription-based
2570
2559
  * events (`source.state`, `playback.backend`, `window.state`,
2571
2560
  * `timeline.changed`, `appearance.changed`) are delivered only when the
2572
- * plugin subscribed (it declared `events` and listens). Most tests use the
2561
+ * plugin subscribed (it called `plugin.player.subscribe()` and listens). Most tests use the
2573
2562
  * higher-level helpers (`setSource`, `setMainWindow`, ...) instead.
2574
2563
  *
2575
2564
  * @param event - The wire event name.
2576
2565
  * @param data - The event payload (wire-level shape).
2577
2566
  *
2578
- * @capability None.
2579
- *
2580
2567
  * @example Deliver a raw event the helpers do not cover
2581
2568
  * The test pushes a `window.state` event after changing `layout` by hand.
2582
2569
  * Like the player, the host delivers it only when the plugin subscribed;
@@ -2623,7 +2610,6 @@ export declare class TestHost implements Transport {
2623
2610
  * await host.settle();
2624
2611
  * ```
2625
2612
  *
2626
- * @capability None.
2627
2613
  * @since 1.0.0
2628
2614
  */
2629
2615
  setSource(patch: Partial<SourceState>): void;
@@ -2656,7 +2642,6 @@ export declare class TestHost implements Transport {
2656
2642
  * assert.equal(plugin.window.state.maximized, true);
2657
2643
  * ```
2658
2644
  *
2659
- * @capability None.
2660
2645
  * @since 1.0.0
2661
2646
  */
2662
2647
  setMainWindow(patch: Partial<{
@@ -2677,8 +2662,6 @@ export declare class TestHost implements Transport {
2677
2662
  * those switched on, pop out or collapse (reference §6.3). No effect outside
2678
2663
  * fullscreen, or on a column switched off or floating.
2679
2664
  *
2680
- * @capability None.
2681
- *
2682
2665
  * @example Pop the sidebar out in fullscreen
2683
2666
  * The pointer reaches the right edge in fullscreen and the attached
2684
2667
  * sidebar pops out over the video. Outside fullscreen, or with the
@@ -2718,7 +2701,6 @@ export declare class TestHost implements Transport {
2718
2701
  * assert.equal(plugin.player.isCurrent(before), false);
2719
2702
  * ```
2720
2703
  *
2721
- * @capability None.
2722
2704
  * @since 1.0.0
2723
2705
  */
2724
2706
  openElsewhere(source: string, phase?: SourceState["phase"]): void;
@@ -2743,7 +2725,6 @@ export declare class TestHost implements Transport {
2743
2725
  * host.failStream(producer!.id, "producer transport closed");
2744
2726
  * ```
2745
2727
  *
2746
- * @capability None.
2747
2728
  * @since 1.5.7
2748
2729
  */
2749
2730
  failStream(producerId: number, message: string): void;
@@ -2777,7 +2758,6 @@ export declare class TestHost implements Transport {
2777
2758
  * await host.press("Delete", { panel: true }); // while the panel has focus
2778
2759
  * ```
2779
2760
  *
2780
- * @capability None.
2781
2761
  * @throws `command` (rejects) A `HostError`: the command that would run is
2782
2762
  * busy (the player only logs this).
2783
2763
  * @throws `Error` (rejects) Nothing is bound to the key.
@@ -2826,7 +2806,6 @@ export declare class TestHost implements Transport {
2826
2806
  * assert.equal(host.window("picture").props["brightness-down"], "⇧W");
2827
2807
  * ```
2828
2808
  *
2829
- * @capability None.
2830
2809
  * @throws `Error` `command` is neither a command of the plugin nor a
2831
2810
  * core command.
2832
2811
  * @since 1.6.6
@@ -2856,8 +2835,6 @@ export declare class TestHost implements Transport {
2856
2835
  state: "starting" | "running" | "disabled" | "failed" | "stopped";
2857
2836
  /** Why it failed (`state: "failed"`). */
2858
2837
  error: string | null;
2859
- /** Its declared capabilities. */
2860
- capabilities: string[];
2861
2838
  /** The package directory. */
2862
2839
  directory: string;
2863
2840
  /** Shipped with the player: `uninstall` and `install` are `unsupported`. */
@@ -2903,7 +2880,7 @@ export declare class TestHost implements Transport {
2903
2880
  * // ---cut---
2904
2881
  * host.candidates.set("/downloads/someone.demo-1.0.0.vxp", {
2905
2882
  * id: "someone.demo", version: "1.0.0", apiVersion: "vestra/1",
2906
- * entry: "main.js", capabilities: [],
2883
+ * entry: "main.js",
2907
2884
  * });
2908
2885
  * ```
2909
2886
  */
@@ -2925,7 +2902,6 @@ export declare class TestHost implements Transport {
2925
2902
  * host.installKeepsDisabled = false; // every install runs
2926
2903
  * ```
2927
2904
  *
2928
- * @capability None.
2929
2905
  * @since 1.5.55
2930
2906
  */
2931
2907
  installKeepsDisabled: boolean;
@@ -2954,7 +2930,6 @@ export declare class TestHost implements Transport {
2954
2930
  * assert.equal(host.markdown(rows[0]!.body)?.text, "**Hello**");
2955
2931
  * ```
2956
2932
  *
2957
- * @capability None.
2958
2933
  * @since 1.1.0
2959
2934
  */
2960
2935
  markdown(value: Json | undefined): MarkdownWire | null;
@@ -2972,8 +2947,6 @@ export declare class TestHost implements Transport {
2972
2947
  * Replace the plugin list and push `packages.changed` (another plugin
2973
2948
  * started, stopped, was installed or removed).
2974
2949
  *
2975
- * @capability None.
2976
- *
2977
2950
  * @example Simulate another plugin starting
2978
2951
  * The plugin's store window hears that a plugin is running now. The list
2979
2952
  * replaces `packages` and is pushed as `packages.changed`, which the
@@ -2993,7 +2966,6 @@ export declare class TestHost implements Transport {
2993
2966
  * asks this plugin's sequence provider. Rejects with `unavailable` when
2994
2967
  * there is no provider or its flag is false.
2995
2968
  *
2996
- * @capability None.
2997
2969
  * @throws `unavailable` (rejects) A `HostError`: there is no sequence
2998
2970
  * provider, or its flag is false.
2999
2971
  *
@@ -3017,8 +2989,6 @@ export declare class TestHost implements Transport {
3017
2989
  * The plugin's command with this local id. Throws when it is not
3018
2990
  * registered (never added, or disposed).
3019
2991
  *
3020
- * @capability None.
3021
- *
3022
2992
  * @example Read a command's state after a change
3023
2993
  * The test checks that Export becomes enabled once a file is ready. The
3024
2994
  * record is updated as the plugin sends new state; read it after
@@ -3080,7 +3050,6 @@ export declare class TestHost implements Transport {
3080
3050
  * assert.equal(host.window("picture").props["brightness"], 0);
3081
3051
  * ```
3082
3052
  *
3083
- * @capability None.
3084
3053
  * @since 1.0.0
3085
3054
  */
3086
3055
  window(id: string): FakeWindow;
@@ -3105,7 +3074,6 @@ export declare class TestHost implements Transport {
3105
3074
  * await host.settle();
3106
3075
  * ```
3107
3076
  *
3108
- * @capability None.
3109
3077
  * @since 1.0.0
3110
3078
  */
3111
3079
  mounted(slot?: "bottom" | "sidebar" | "adjust" | "backdrop"): FakePanel;
@@ -3123,7 +3091,6 @@ export declare class TestHost implements Transport {
3123
3091
  * assert.deepEqual(host.sent("osd.show").at(-1), { text: "Saved" });
3124
3092
  * ```
3125
3093
  *
3126
- * @capability None.
3127
3094
  * @since 1.0.0
3128
3095
  */
3129
3096
  sent(method: string): Record<string, Json>[];
@@ -3178,7 +3145,6 @@ export declare class TestHost implements Transport {
3178
3145
  * assert.equal(importWindow.props["status-text"], expected);
3179
3146
  * ```
3180
3147
  *
3181
- * @capability None.
3182
3148
  * @throws Never.
3183
3149
  * @since 1.0.0
3184
3150
  */
@@ -3190,8 +3156,6 @@ export declare class TestHost implements Transport {
3190
3156
  * `ENOTEMPTY`, `EBUSY`, `EPERM`) is retried for about 1.5 s, then left
3191
3157
  * for the system to clean, with a warning on the console.
3192
3158
  *
3193
- * @capability None.
3194
- *
3195
3159
  * @example Clean up a host that was never started
3196
3160
  * A test that made a host but failed before `startPlugin` removes the
3197
3161
  * host's temporary directories itself. `stop()` from `startPlugin` calls
@@ -3221,7 +3185,6 @@ export declare class TestHost implements Transport {
3221
3185
  * and start it again on its next use. Filter chains, streams, jobs and the
3222
3186
  * like (which also keep a plugin running) are not listed.
3223
3187
  *
3224
- * @capability None.
3225
3188
  * @since 1.5.40
3226
3189
  *
3227
3190
  * @example Check that a plugin can be stopped while idle
@@ -3245,18 +3208,16 @@ export declare class TestHost implements Transport {
3245
3208
  * registration started during activation (commands, panels, resolvers, ...),
3246
3209
  * then wait until the host is idle.
3247
3210
  *
3248
- * The manifest id and capabilities come from `directory/manifest.json`
3249
- * unless `capabilities` is given; then `id` (default `"test.plugin"`) and
3250
- * `capabilities` are used and no manifest is read. The test host does not
3251
- * apply the player's capability table to every request: the members that
3252
- * check a capability on the plugin's side (`plugin.media.sources` and its
3253
- * `open`, which also needs `playback.control`, `plugin.secrets`, timeline
3254
- * marks, video shaders and views, among others) fail with `capability` as in
3255
- * the player, but a call the player refuses for an undeclared capability can
3256
- * succeed here. `vestra-plugin check` (and the TypeScript plugin) reports
3257
- * those calls from the sources.
3211
+ * The manifest id comes from `directory/manifest.json` unless `id` is
3212
+ * given; then no manifest is read (and without `directory` none is read
3213
+ * either: the id is `"test.plugin"`). Nothing in the manifest changes how
3214
+ * the plugin runs: event delivery and the start-up reads are the plugin's
3215
+ * own calls (`plugin.player.subscribe()`, `plugin.player.read()`), as in
3216
+ * the player.
3258
3217
  *
3259
- * Rejects when `manifest.json` cannot be read or parsed, when `activate`
3218
+ * Rejects when `manifest.json` cannot be read or parsed, when it still has
3219
+ * `capabilities` (removed in 1.9.0; the message says what to call
3220
+ * instead), when `activate`
3260
3221
  * throws, or when a registration made during activation fails (for example
3261
3222
  * `limit`, `conflict`, `invalid`). Stricter than the player's runner for
3262
3223
  * commands: there the SDK logs a command declaration the player refuses during
@@ -3318,7 +3279,6 @@ export declare class TestHost implements Transport {
3318
3279
  * player's runner does and returns the host to drive, the `plugin` object
3319
3280
  * to call directly, and `stop` to end it like the player.
3320
3281
  *
3321
- * @capability None.
3322
3282
  * @see [Test a plugin](../../../docs/guides/testing.md)
3323
3283
  * @since 1.0.0
3324
3284
  * @category Testing
@@ -3330,10 +3290,11 @@ export declare function startPlugin(activate: (plugin: Plugin) => unknown, optio
3330
3290
  * files resolve against it. Default: the current working directory.
3331
3291
  */
3332
3292
  directory?: string | URL;
3333
- /** The manifest id when `capabilities` is given. Default `"test.plugin"`. */
3293
+ /**
3294
+ * The plugin's id; then `manifest.json` is not read. Default: the
3295
+ * manifest's id, or `"test.plugin"` without `directory`.
3296
+ */
3334
3297
  id?: string;
3335
- /** Use these capabilities instead of reading `manifest.json`. */
3336
- capabilities?: string[];
3337
3298
  /**
3338
3299
  * Run the plugin as one built into the player
3339
3300
  * ({@link TestHost.builtin}): only then do `commands.run` and