@vestra-player/sdk 1.7.7 → 1.7.9
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.
- package/CHANGELOG.md +34 -0
- package/dist/api-requests.js +18 -0
- package/dist/capabilities.d.ts +9 -0
- package/dist/capabilities.js +1 -0
- package/dist/capability-rules.d.ts +3 -0
- package/dist/capability-rules.js +47 -21
- package/dist/commands.d.ts +27 -6
- package/dist/commands.js +19 -5
- package/dist/docs-tree.json.gz +0 -0
- package/dist/host-capabilities.js +71 -0
- package/dist/manifest.js +12 -1
- package/dist/media.d.ts +108 -1
- package/dist/media.js +20 -0
- package/dist/player-runtime.d.ts +1 -0
- package/dist/player-runtime.js +1 -0
- package/dist/plugin/commands.d.ts +2 -1
- package/dist/plugin/commands.js +131 -4
- package/dist/plugin/media.d.ts +26 -0
- package/dist/plugin/media.js +166 -0
- package/dist/plugin/player.d.ts +7 -1
- package/dist/plugin/player.js +3 -1
- package/dist/plugin/scope.d.ts +1 -0
- package/dist/plugin/scope.js +2 -1
- package/dist/plugin/testing/commands.d.ts +7 -0
- package/dist/plugin/testing/commands.js +211 -0
- package/dist/plugin/testing/index.d.ts +170 -3
- package/dist/plugin/testing/index.js +120 -4
- package/dist/plugin/testing/internals.d.ts +27 -0
- package/dist/plugin/testing/internals.js +14 -1
- package/dist/plugin/testing/jobs.js +348 -1
- package/dist/plugin/testing/media.js +29 -0
- package/dist/plugin/types/base.d.ts +10 -7
- package/dist/plugin/types/commands.d.ts +412 -1
- package/dist/plugin/types/snapshots.d.ts +511 -1
- package/dist/wire.d.ts +43 -0
- package/dist/wire.js +6 -0
- package/llms.txt +3 -3
- package/package.json +1 -1
- package/slint/vestra/icons.slint +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.7.9
|
|
4
|
+
|
|
5
|
+
**Who must change: nobody; additions only.** The two new capabilities are for the player's built-in plugins only: a third-party plugin cannot declare them (the player refuses the package at install, the plugin registry refuses it, `vestra-plugin check` reports it, and every call fails with `capability`). A built-in plugin that uses them needs player 0.7.6. `apiVersion` stays `vestra/1`; the API surface snapshot gains the new members.
|
|
6
|
+
|
|
7
|
+
Intended users: the built-in Vestra Player AI's Ask Vestra (the palette's first row runs the commands a sentence asks for). The members are shaped by what they do, not by AI: a calculator or unit converter in the palette's first row, a search over the history, jump to a time or chapter, a macro or remote-control plugin running saved commands, a tutorial that shows a command's key. They stay built-in only because one lead row receives every query and running any plugin's command is a wider boundary than any capability so far (the player's ticket, rate limits and confirmation are the boundary; opening them needs the user's ruling).
|
|
8
|
+
|
|
9
|
+
- **`plugin.commands.list()`** (`commands.run`): the command palette's table (`CommandList`, `CommandInfo`): every listed command, the player's own and every plugin's, with its label, category, path, place, keys, owner, state and whether running it asks first (`dangerous`), and a `revision`.
|
|
10
|
+
- **`plugin.commands.run(id, { ticket, step?, of? })`** (`commands.run`, risky): runs a listed command as the palette does, for the ticket of a user action. Resolves `{ ran: true }`, or `{ ran: false, declined: true }` when the user chose Don't Run in the player's own alert, which comes before a command declared `destructive`, the player's Close and Quit, anything in the Settings and Plugins menus, and every command of a plugin that is not built in. Each run shows an OSD line naming the plugin and the command (`step`/`of`, 1–99 and together, add `1/2`). Fails `ticket` (none, ended or expired), `missing`, `disabled` (with the command's reason), `busy`, `invalid` (`step`/`of`, the palette itself) and `limit` (4 a second and 30 per ticket, 120 a minute per plugin).
|
|
11
|
+
- **`plugin.palette.lead(options)`** (`palette.lead`; `Palette`, `PaletteLead`, `PaletteLeadOptions`, `PaletteLeadRun`): the palette's first row (`title`, `icon`, `placeholder`, `empty`, `note`, `status`, with the player's lengths). One plugin holds it (`conflict` for another); the player keeps it while the plugin is stopped. `onRun` hears Enter / Shift+Enter / a click with `{ query, keep, ticket, status }` (the `palette.lead` event, sent unasked to the holder and waking a stopped one); `update` changes it, `done(ticket)` ends a request's ticket, `dispose` removes the row. A refused row reaches `ready` and `onError` without failing activation, so a development load (not built in) still activates.
|
|
12
|
+
- **`CommandOptions.destructive`** (any plugin): the command cannot be undone; `commands.run` asks the user before running it. Sent only when `true`.
|
|
13
|
+
- **`CAPABILITY_INFO[…].builtinOnly`**, from the player's table (`builtinOnly` in its `capabilities.json`). `vestra-plugin check` (and every other command, through the manifest check) reports a built-in-only capability as an error for an id without the `vestra.` prefix (only built-in plugins have one) and as a hint for a `vestra.` id. The Capabilities reference marks them and has a "Built-in plugins only" section; the Commands reference has "Running commands for the user".
|
|
14
|
+
- **Error codes**: `ticket` is new; `disabled` also means a disabled command for `commands.run`; `conflict` also covers the lead row.
|
|
15
|
+
- **Icons**: `BAR_BUTTON_ICONS` and `BarButtonIcon` gain `search-ai` (the palette's button while a plugin holds the lead row); `BarButtonIcon` also gains `sliders`, which `BAR_BUTTON_ICONS` already had.
|
|
16
|
+
- **`TestHost`**: `startPlugin(…, { builtin: true })` (`host.builtin`) runs the plugin as a built-in one; without it both capabilities fail with `capability`, as in the player. `host.paletteLead` is the row as set; `host.runPaletteLead(query, { keep?, status? })` is the user's Enter and returns the ticket (a new one ends the earlier). `commands.list`/`commands.run` follow the player's table, checks, order of refusals, tickets, rates and OSD line over the core commands and the plugin's own; the alert's answer comes from `dialogAnswers`. Tests: `test/builtin-only.test.ts`.
|
|
17
|
+
- Capability table synced from the player (`commands.run`: `commands.list`, `commands.run`; `palette.lead`: `palette.lead.set`, `.clear`, `.done`); the generated Capabilities, Errors and Messages tables follow.
|
|
18
|
+
|
|
19
|
+
## 1.7.8
|
|
20
|
+
|
|
21
|
+
**Who must change: nobody; additions only.** A plugin that uses them declares the new capability `media.sources` (exports of its files also `media.read` and `media.control`, as any export; `media.sources.open` also `playback.control`, as any open) and needs the player that serves them (`minPlayerVersion` of the first player release after 0.7.6). `apiVersion` stays `vestra/1`; the API surface snapshot gains the new members. Snapshot exports are unchanged.
|
|
22
|
+
|
|
23
|
+
**API design rule (user, 2026-11-10)**: a new API names uses by two or three different plugins, otherwise an existing one is extended. Applied here: `media.sources` is new because several plugins need files the user opened, named without paths and found again after a move: Clip Export (its Collection page), a bookmarks or history plugin (reopen what was watched, at its position), a resume plugin (follow a file across renames with Locate…), a compare plugin (switch between two remembered files) and a chapters plugin (marks per file without storing paths). Exporting several ranges is not a new API: it extends the export of a clip, whose input can now be parts of remembered files instead of a snapshot (one part is a clip of one file).
|
|
24
|
+
|
|
25
|
+
- **`plugin.media.sources`** (`MediaSources`): tokens for local files the user opened, kept by the player across restarts. `remember(options?)` gives a token for the file playing now (a stream, an address or a plugin's picture fails `unsupported`; `ifCurrent` as for a capture), with the file's name, duration and stream facts (`SourceReference`), never its path or content. `get(token)` looks at the file again (`status`: `ok`, `missing`, `changed`), `locate(token)` shows the player's own file dialog and rebinds the token to the user's choice (`null` when cancelled), `forget(token)`, `list()`. A token belongs to the plugin that got it; at most 500 per plugin (`limit`); the player deletes them when the plugin is uninstalled. An unknown token fails `missing`.
|
|
26
|
+
- **`plugin.media.sources.open(token, { start? })`**: the player opens the remembered file and plays it from `start` (Clip Export's "preview this part", a bookmark's "go there"), an ordinary open like `player.open` of that file (the playlist treats it as any open), so it needs `playback.control` as well as `media.sources` (`capability` without either; the player's table has an `ifDeclared` rule for `media.sources.open`); followed until loaded like `player.open` (with `playback.read`). The plugin names the file by its token instead of keeping its path; once it plays, `player.state.source` shows the path as for any open. A missing or changed file rejects with `source-missing` / `source-changed` before anything opens.
|
|
27
|
+
- **`plugin.media.export(options)`** (`PartsExportOptions`): a clip whose input is 1 to 100 parts `{ source: token, start, end }` of remembered files instead of a snapshot, in the formats of a snapshot's clip: `format: "copy"` copies the parts as they are, each from the keyframe at or before its start; `format: "mp4"` re-encodes them to H.264 + AAC at the first part's size and frame rate under the `encoding` ceilings, letterboxed, the sound at 48 kHz stereo. The same `ExportJob` as `Snapshot.export` (the same queue, `done`, `cancel`, `outcome`); on the wire the same `jobs.start`, with `parts` in place of `snapshotId`. `progress` gains `part` and `parts`; `facts.join` says how each part was written; a part whose file is gone ends the job `source-missing`, a changed one `source-changed`.
|
|
28
|
+
- **`plugin.media.exportCheck(parts, options?)`** (`ExportCheck`, wire `jobs.check`): what blocks an export of the parts (`missing`, `changed`, `unknown`, `noVideo`, `range`), whether `copy` can write them (else each difference from the first part: `videoCodec`, `videoParams`, `size`, `fps`, `pixelFormat`, `audio`, with both values) and what `mp4` writes. Cheap (nothing is decoded): run it on every change of a list.
|
|
29
|
+
- **Bounds and safety** (security review): an export's parts are at most 24 hours in all (`invalid`); before writing, the player compares the free space with an estimate for the intermediate parts (kept in its own temporary folder, emptied at its next start, so a crash leaves nothing beside the user's videos) and for the output, and ends the job `failed` with `no-space` when there is too little; every join of a copy is decode-checked, not only the start. One plugin has at most 4 `remember`/`get`/`list`/check requests running (`busy`), and one `locate` dialog every 2 seconds (`busy`). A development load's tokens end with the run that loaded it. Tokens hiding paths is an API convenience, not a security boundary: `player.state.source` has the path of the playing file and plugin processes are not sandboxed from the file system (said at `MediaSources` and `MediaSources.open`). `MEDIA_SOURCE_LIMITS` in the limits reference; `./runtime` exports it for the player's agreement test, and the SDK's parts check and `TestHost` read their bounds from it.
|
|
30
|
+
- **`exportCheck({ snapshot, end })`**: the check also takes a snapshot's clip (one part; no `media.sources` needed), so any export can be checked first; a processed snapshot cannot be copied (reason `effects`). The wire `jobs.check` takes `parts` or `snapshotId`, one of them (`invalid` otherwise); `end` belongs to the `snapshotId` form only, so `parts` with an `end` is `invalid` (in the SDK, `TestHost` and the player). Both kinds count in the plugin's 4 requests. The player's messages for a missing or mistyped field of `media.sources.*` and `jobs.check` are its parser's (`missing field `token``); the code stays `invalid`.
|
|
31
|
+
- **Thumbnails**: no API. A part's thumbnail is a frame the plugin captures while the file plays (`media.capture`, `snapshot.export` as JPEG into its data directory; `media.read`, `media.control`) and shows with `plugin.ui.image(path, { maxSide })` (the example at `MediaSources.remember`).
|
|
32
|
+
- **`TestHost`**: `mediaFiles` (the facts, status and `version` of local files by path; a new version reads `changed` and gets a new token, as the player's size and time), parts exports that end `source-missing` / `source-changed` when their files went or changed, the player's bounds in `jobs.check`, and the SDK refuses parts exports and `media.sources` members without `media.sources`, and `open` without `playback.control` (`capability`), as the player does; `sourceReferences` (token → path) and `sourceOpens`; `exports` also records exports of parts (with `parts`); `locate` takes its answer from `dialogAnswers`. An export of parts advances like a clip's, reporting its middle part while running.
|
|
33
|
+
- Capability table synced from the player (`media.sources`: `media.sources.*`, and `media.sources.open` asks for `playback.control` until it is declared, then for `media.sources`; `jobs.start` with `parts` and `jobs.check` are `media.control`'s, and the player also checks `media.sources` for them); the generated Capabilities, Errors, Limits ("Remembered files and exports of their parts"), Messages and Testing tables follow. Tests: `test/media-sources.test.ts`.
|
|
34
|
+
- **Capability checker** (`vestra-plugin check`, the TypeScript plugin): a member whose `ifDeclared` rules read each other's answers is worked out again until its needs stop changing, so `MediaSources.open` reports both `media.sources` and `playback.control` (before, a rule was decided once). Members whose needs settled at once (`Player.seek`, `Player.open`) are unchanged.
|
|
35
|
+
- **Docs**: `BUILTIN_COMMANDS`, `BUILTIN_SUBMENUS` and the built-in tables of the Commands reference say they are a snapshot of the player's built-ins at this SDK release, which the player may change between SDK releases; a test pins `plugin.appearance`'s list of themes to `THEME_PALETTES`. `PartsExportOptions` says its fields are a snapshot clip's; `ExportPart.source` says it is a token, not a path. `startPlugin` says which capability checks the test host makes (those on the plugin's side) and that `vestra-plugin check` finds the rest.
|
|
36
|
+
|
|
3
37
|
## 1.7.7
|
|
4
38
|
|
|
5
39
|
**Who must change: nobody; the table follows player #235** (the built-in capture plugin keeps snapshots only; clip export moves to a store plugin). A data refresh of `BUILTIN_COMMANDS`: no API change, `apiVersion` stays `vestra/1`, the API surface snapshot is unchanged. A plugin whose tests compare a key against the table sees the player's current one: Alt+S, Ctrl+Shift+E and Ctrl+Shift+R are no longer held by a built-in.
|
package/dist/api-requests.js
CHANGED
|
@@ -100,6 +100,9 @@ export const API_REQUESTS = Object.freeze({
|
|
|
100
100
|
"Resolvers.add": [{ method: "sourceResolvers.register" }],
|
|
101
101
|
"Commands.add": [{ method: "commands.register" }],
|
|
102
102
|
"Commands.keys": [{ method: "commands.keys" }, listen("commands.keys")],
|
|
103
|
+
"Commands.list": [{ method: "commands.list" }],
|
|
104
|
+
"Commands.run": [{ method: "commands.run" }],
|
|
105
|
+
"Palette.lead": [{ method: "palette.lead.set" }],
|
|
103
106
|
"Host.run": [{ method: "host.run" }],
|
|
104
107
|
"Windows.create": [{ method: "ui.open" }],
|
|
105
108
|
"Dialogs.confirm": [{ method: "dialogs.confirm" }],
|
|
@@ -129,6 +132,21 @@ export const API_REQUESTS = Object.freeze({
|
|
|
129
132
|
{ method: "snapshot.capture" },
|
|
130
133
|
],
|
|
131
134
|
"Snapshot.export": [{ method: "jobs.state" }, { method: "jobs.start" }],
|
|
135
|
+
// Parts of remembered files: also media.sources (documented at the
|
|
136
|
+
// members; the player checks it for jobs.start with parts and jobs.check).
|
|
137
|
+
"MediaCapture.export": [{ method: "jobs.state" }, { method: "jobs.start" }],
|
|
138
|
+
"MediaCapture.exportCheck": [{ method: "jobs.check" }],
|
|
139
|
+
"MediaSources.remember": [{ method: "media.sources.remember" }],
|
|
140
|
+
"MediaSources.get": [{ method: "media.sources.get" }],
|
|
141
|
+
"MediaSources.locate": [{ method: "media.sources.locate" }],
|
|
142
|
+
"MediaSources.forget": [{ method: "media.sources.forget" }],
|
|
143
|
+
"MediaSources.list": [{ method: "media.sources.list" }],
|
|
144
|
+
// An open like Player.open: playback.control (the player's rule for
|
|
145
|
+
// media.sources.open), with which source.operation needs it too.
|
|
146
|
+
"MediaSources.open": [
|
|
147
|
+
{ method: "media.sources.open" },
|
|
148
|
+
{ method: "source.operation" },
|
|
149
|
+
],
|
|
132
150
|
"Osd.show": [{ method: "osd.show" }],
|
|
133
151
|
"Osd.panel": [{ method: "osd.panel" }],
|
|
134
152
|
"Clipboard.readText": [{ method: "clipboard.readText" }],
|
package/dist/capabilities.d.ts
CHANGED
|
@@ -36,6 +36,15 @@ export interface CapabilityInfo {
|
|
|
36
36
|
* clipboard, every shortcut, the keychain, other plugins).
|
|
37
37
|
*/
|
|
38
38
|
readonly risky: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* `true` when only the player's built-in plugins may declare it
|
|
41
|
+
* (`commands.run`, `palette.lead`): the player refuses a package of any
|
|
42
|
+
* other plugin that declares it, and its calls fail with `capability`.
|
|
43
|
+
* `vestra-plugin check` reports it.
|
|
44
|
+
*
|
|
45
|
+
* @since 1.7.9
|
|
46
|
+
*/
|
|
47
|
+
readonly builtinOnly: boolean;
|
|
39
48
|
}
|
|
40
49
|
/**
|
|
41
50
|
* Every manifest capability the player knows (`vestra/1`), in the player's
|
package/dist/capabilities.js
CHANGED
|
@@ -25,6 +25,8 @@ export interface HostCapability {
|
|
|
25
25
|
readonly name: string;
|
|
26
26
|
readonly label: string;
|
|
27
27
|
readonly risky: boolean;
|
|
28
|
+
/** Only built-in plugins may declare it (absent: `false`). */
|
|
29
|
+
readonly builtinOnly?: boolean;
|
|
28
30
|
readonly requires: readonly string[];
|
|
29
31
|
readonly residency: string;
|
|
30
32
|
readonly methods: readonly HostMethod[];
|
|
@@ -119,4 +121,5 @@ export declare function capabilityInfo(rules?: CapabilityRules): Record<string,
|
|
|
119
121
|
requires: string[];
|
|
120
122
|
label: string;
|
|
121
123
|
risky: boolean;
|
|
124
|
+
builtinOnly: boolean;
|
|
122
125
|
}>;
|
package/dist/capability-rules.js
CHANGED
|
@@ -103,34 +103,59 @@ export function requestsNeed(requests, capabilities, rules = RULES) {
|
|
|
103
103
|
// An `ifDeclared` rule is decided last, as if the plugin had declared what
|
|
104
104
|
// the member's other requests need: `Player.seek` needs `playback.control`
|
|
105
105
|
// for `source.submit`, and with it `source.operation` needs nothing more.
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
// What a rule answers can change what another rule reads, so the needs are
|
|
107
|
+
// worked out again, as if the plugin had declared everything an earlier
|
|
108
|
+
// round needed, until no round adds a capability: `media.sources.open`
|
|
109
|
+
// asks for `playback.control` until it is declared, then for
|
|
110
|
+
// `media.sources` (and `source.operation` follows the first). The set
|
|
111
|
+
// only grows, so the rounds end.
|
|
108
112
|
const conditional = (request) => {
|
|
109
113
|
const rule = hostMethod(request.method, rules.host)?.needs;
|
|
110
114
|
return typeof rule === "object" && rule !== null && "ifDeclared" in rule;
|
|
111
115
|
};
|
|
112
|
-
const
|
|
113
|
-
const add = (need) => {
|
|
114
|
-
if (needs.some((each) => each.capability === need.capability))
|
|
115
|
-
return;
|
|
116
|
-
needs.push(need);
|
|
117
|
-
const entry = rules.host.capabilities.find((capability) => capability.name === need.capability);
|
|
118
|
-
for (const required of entry?.requires ?? [])
|
|
119
|
-
add({
|
|
120
|
-
capability: required,
|
|
121
|
-
method: need.method,
|
|
122
|
-
requiredBy: need.capability,
|
|
123
|
-
});
|
|
124
|
-
};
|
|
125
|
-
for (const request of [
|
|
116
|
+
const ordered = [
|
|
126
117
|
...requests.filter((request) => !conditional(request)),
|
|
127
118
|
...requests.filter(conditional),
|
|
128
|
-
]
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
119
|
+
];
|
|
120
|
+
const round = (previous) => {
|
|
121
|
+
const needs = [];
|
|
122
|
+
const declared = (name) => capabilities.includes(name) ||
|
|
123
|
+
previous.has(name) ||
|
|
124
|
+
needs.some((need) => need.capability === name);
|
|
125
|
+
const add = (need) => {
|
|
126
|
+
if (needs.some((each) => each.capability === need.capability))
|
|
127
|
+
return;
|
|
128
|
+
needs.push(need);
|
|
129
|
+
const entry = rules.host.capabilities.find((capability) => capability.name === need.capability);
|
|
130
|
+
for (const required of entry?.requires ?? [])
|
|
131
|
+
add({
|
|
132
|
+
capability: required,
|
|
133
|
+
method: need.method,
|
|
134
|
+
requiredBy: need.capability,
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
for (const request of ordered) {
|
|
138
|
+
const capability = requestNeeds(request.method, request.params, declared, rules.host);
|
|
139
|
+
if (capability)
|
|
140
|
+
add({ capability, method: request.method });
|
|
141
|
+
}
|
|
142
|
+
return needs;
|
|
143
|
+
};
|
|
144
|
+
// Every capability any round needed; the answer is the last round's needs
|
|
145
|
+
// (read with all of them declared) and then any earlier one it left out.
|
|
146
|
+
const all = new Map();
|
|
147
|
+
for (;;) {
|
|
148
|
+
const needs = round(new Set(all.keys()));
|
|
149
|
+
const before = all.size;
|
|
150
|
+
for (const need of needs)
|
|
151
|
+
if (!all.has(need.capability))
|
|
152
|
+
all.set(need.capability, need);
|
|
153
|
+
if (all.size === before)
|
|
154
|
+
return [
|
|
155
|
+
...needs,
|
|
156
|
+
...[...all.values()].filter((need) => !needs.some((each) => each.capability === need.capability)),
|
|
157
|
+
];
|
|
132
158
|
}
|
|
133
|
-
return needs;
|
|
134
159
|
}
|
|
135
160
|
/**
|
|
136
161
|
* `CAPABILITY_INFO` from the tables: the label, highlight and requirements
|
|
@@ -148,6 +173,7 @@ export function capabilityInfo(rules = RULES) {
|
|
|
148
173
|
requires: [...capability.requires],
|
|
149
174
|
label: capability.label,
|
|
150
175
|
risky: capability.risky,
|
|
176
|
+
builtinOnly: capability.builtinOnly === true,
|
|
151
177
|
};
|
|
152
178
|
for (const [api, requests] of Object.entries(rules.apis))
|
|
153
179
|
for (const request of requests) {
|
package/dist/commands.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { Json, Transport } from "./wire.ts";
|
|
3
3
|
import type { ListJson, TextJson } from "./i18n.ts";
|
|
4
4
|
import type { ConditionJson } from "./plugin/when.ts";
|
|
5
|
+
import type { CommandList, CommandRunResult } from "./plugin/types.ts";
|
|
5
6
|
/**
|
|
6
7
|
* The player's command registry caps, the same values as the player's own
|
|
7
8
|
* table (the player's tests check that they agree). They are runaway guards,
|
|
@@ -134,7 +135,8 @@ export declare const MENU_IDS: readonly ["open", "playback", "subtitles", "video
|
|
|
134
135
|
* icon of the player's V-Line set, `@vestra/icons.slint` (draw one in your own
|
|
135
136
|
* Slint with `Icon { name: "store"; }`). The player's tests check that this
|
|
136
137
|
* list is its icon set. `"sliders"` (three sliders, the player's Adjustments
|
|
137
|
-
* and Effects button)
|
|
138
|
+
* and Effects button); `"search-ai"` (the magnifier with the AI icon's
|
|
139
|
+
* cross, the palette's button while a plugin holds its lead row).
|
|
138
140
|
*
|
|
139
141
|
* @example Check in a test that the button's icon exists
|
|
140
142
|
* The test fails before release if the plugin's bar button names an icon
|
|
@@ -152,7 +154,7 @@ export declare const MENU_IDS: readonly ["open", "playback", "subtitles", "video
|
|
|
152
154
|
*
|
|
153
155
|
* @category Testing
|
|
154
156
|
*/
|
|
155
|
-
export declare const BAR_BUTTON_ICONS: readonly ["play", "pause", "stop", "back", "forward", "open", "volume", "mute", "playlist", "detach", "attach", "close", "failed", "move-top", "move-up", "move-down", "move-bottom", "search", "chapter", "bookmark", "check-task", "check-box", "menu-check", "submenu", "scroll-up", "scroll-down", "caret-down", "sort-asc", "sort-desc", "tag-remove", "preview-play", "add", "remove", "sort", "fullscreen", "exit-fullscreen", "store", "ai", "sliders"];
|
|
157
|
+
export declare const BAR_BUTTON_ICONS: readonly ["play", "pause", "stop", "back", "forward", "open", "volume", "mute", "playlist", "detach", "attach", "close", "failed", "move-top", "move-up", "move-down", "move-bottom", "search", "chapter", "bookmark", "check-task", "check-box", "menu-check", "submenu", "scroll-up", "scroll-down", "caret-down", "sort-asc", "sort-desc", "tag-remove", "preview-play", "add", "remove", "sort", "fullscreen", "exit-fullscreen", "store", "ai", "sliders", "search-ai"];
|
|
156
158
|
/**
|
|
157
159
|
* The player's limits on bottom-bar buttons (`CommandOptions.button`), the same
|
|
158
160
|
* values as the player's (its tests check that they agree). A button past
|
|
@@ -198,8 +200,12 @@ export interface BuiltinSubmenu {
|
|
|
198
200
|
* with the same keys appears in the same submenu, whatever the interface
|
|
199
201
|
* language; the submenu's title is the declaring plugin's translation. The
|
|
200
202
|
* player's own submenus (`Playback ▸ Speed`, `Playback ▸ Seek`) are not
|
|
201
|
-
* listed.
|
|
202
|
-
*
|
|
203
|
+
* listed.
|
|
204
|
+
*
|
|
205
|
+
* A snapshot of the player's built-in submenus at this SDK release; the
|
|
206
|
+
* player may differ between SDK releases. The player's tests check that
|
|
207
|
+
* this list agrees with what its built-in plugins declare when the SDK is
|
|
208
|
+
* released.
|
|
203
209
|
*
|
|
204
210
|
* @example Add an item to the built-in Snapshot submenu
|
|
205
211
|
* "Copy Snapshot" appears in Snapshot ▸ next to the built-in capture
|
|
@@ -264,8 +270,12 @@ export interface BuiltinCommand {
|
|
|
264
270
|
* placeholders (`No Audio Tracks`) are. Items that appear only in a
|
|
265
271
|
* passing state are not listed either: the Picture Adjustments plugin's
|
|
266
272
|
* `Video ▸ Restart Player to Apply` (`video.gpu-rendering.restart`), shown
|
|
267
|
-
* while a rendering choice waits for the next start.
|
|
268
|
-
*
|
|
273
|
+
* while a rendering choice waits for the next start.
|
|
274
|
+
*
|
|
275
|
+
* A snapshot of the player's built-in commands at this SDK release; the
|
|
276
|
+
* player may differ between SDK releases. The player's tests check that
|
|
277
|
+
* this list agrees with what the player and its built-in plugins register
|
|
278
|
+
* when the SDK is released, not with the player a user runs later.
|
|
269
279
|
*
|
|
270
280
|
* @example Check in a test that a default key is still free
|
|
271
281
|
* The test fails if the player or a built-in plugin already binds Ctrl+K
|
|
@@ -336,6 +346,8 @@ export type CommandDeclaration = {
|
|
|
336
346
|
* set, like `category`.
|
|
337
347
|
*/
|
|
338
348
|
home?: string;
|
|
349
|
+
/** The command cannot be undone; sent only when `true`. */
|
|
350
|
+
destructive?: boolean;
|
|
339
351
|
};
|
|
340
352
|
/**
|
|
341
353
|
* `commands.keys`: each of the plugin's own commands, by local id, and each of
|
|
@@ -370,4 +382,13 @@ export declare function commandClient(transport: Transport): {
|
|
|
370
382
|
update: (id: string, revision: number, state: CommandState, when?: CommandWhen) => Promise<{
|
|
371
383
|
revision: number;
|
|
372
384
|
}>;
|
|
385
|
+
/** The palette's table (`commands.run`). */
|
|
386
|
+
list: () => Promise<CommandList>;
|
|
387
|
+
/** Run any listed command for a user action's ticket (`commands.run`). */
|
|
388
|
+
run: (params: {
|
|
389
|
+
id: string;
|
|
390
|
+
ticket: string;
|
|
391
|
+
step?: number;
|
|
392
|
+
of?: number;
|
|
393
|
+
}) => Promise<CommandRunResult>;
|
|
373
394
|
};
|
package/dist/commands.js
CHANGED
|
@@ -139,7 +139,8 @@ export const MENU_IDS = [
|
|
|
139
139
|
* icon of the player's V-Line set, `@vestra/icons.slint` (draw one in your own
|
|
140
140
|
* Slint with `Icon { name: "store"; }`). The player's tests check that this
|
|
141
141
|
* list is its icon set. `"sliders"` (three sliders, the player's Adjustments
|
|
142
|
-
* and Effects button)
|
|
142
|
+
* and Effects button); `"search-ai"` (the magnifier with the AI icon's
|
|
143
|
+
* cross, the palette's button while a plugin holds its lead row).
|
|
143
144
|
*
|
|
144
145
|
* @example Check in a test that the button's icon exists
|
|
145
146
|
* The test fails before release if the plugin's bar button names an icon
|
|
@@ -197,6 +198,7 @@ export const BAR_BUTTON_ICONS = [
|
|
|
197
198
|
"store",
|
|
198
199
|
"ai",
|
|
199
200
|
"sliders",
|
|
201
|
+
"search-ai",
|
|
200
202
|
];
|
|
201
203
|
/**
|
|
202
204
|
* The player's limits on bottom-bar buttons (`CommandOptions.button`), the same
|
|
@@ -224,8 +226,12 @@ export const BAR_BUTTON_LIMITS = {
|
|
|
224
226
|
* with the same keys appears in the same submenu, whatever the interface
|
|
225
227
|
* language; the submenu's title is the declaring plugin's translation. The
|
|
226
228
|
* player's own submenus (`Playback ▸ Speed`, `Playback ▸ Seek`) are not
|
|
227
|
-
* listed.
|
|
228
|
-
*
|
|
229
|
+
* listed.
|
|
230
|
+
*
|
|
231
|
+
* A snapshot of the player's built-in submenus at this SDK release; the
|
|
232
|
+
* player may differ between SDK releases. The player's tests check that
|
|
233
|
+
* this list agrees with what its built-in plugins declare when the SDK is
|
|
234
|
+
* released.
|
|
229
235
|
*
|
|
230
236
|
* @example Add an item to the built-in Snapshot submenu
|
|
231
237
|
* "Copy Snapshot" appears in Snapshot ▸ next to the built-in capture
|
|
@@ -603,8 +609,12 @@ vestra.video | video.upscaling | (AI Upscaling)
|
|
|
603
609
|
* placeholders (`No Audio Tracks`) are. Items that appear only in a
|
|
604
610
|
* passing state are not listed either: the Picture Adjustments plugin's
|
|
605
611
|
* `Video ▸ Restart Player to Apply` (`video.gpu-rendering.restart`), shown
|
|
606
|
-
* while a rendering choice waits for the next start.
|
|
607
|
-
*
|
|
612
|
+
* while a rendering choice waits for the next start.
|
|
613
|
+
*
|
|
614
|
+
* A snapshot of the player's built-in commands at this SDK release; the
|
|
615
|
+
* player may differ between SDK releases. The player's tests check that
|
|
616
|
+
* this list agrees with what the player and its built-in plugins register
|
|
617
|
+
* when the SDK is released, not with the player a user runs later.
|
|
608
618
|
*
|
|
609
619
|
* @example Check in a test that a default key is still free
|
|
610
620
|
* The test fails if the player or a built-in plugin already binds Ctrl+K
|
|
@@ -662,5 +672,9 @@ export function commandClient(transport) {
|
|
|
662
672
|
state,
|
|
663
673
|
...(when ? { when: when } : {}),
|
|
664
674
|
}),
|
|
675
|
+
/** The palette's table (`commands.run`). */
|
|
676
|
+
list: () => transport.request("commands.list", {}),
|
|
677
|
+
/** Run any listed command for a user action's ticket (`commands.run`). */
|
|
678
|
+
run: (params) => transport.request("commands.run", params),
|
|
665
679
|
};
|
|
666
680
|
}
|
package/dist/docs-tree.json.gz
CHANGED
|
Binary file
|
|
@@ -6,6 +6,7 @@ export const HOST_CAPABILITIES = {
|
|
|
6
6
|
apiVersion: "vestra/1",
|
|
7
7
|
capabilities: [
|
|
8
8
|
{
|
|
9
|
+
builtinOnly: false,
|
|
9
10
|
label: "Provide audio and video it generates itself",
|
|
10
11
|
methods: [
|
|
11
12
|
{ name: "producer.prepare", needs: "producer.av" },
|
|
@@ -21,6 +22,7 @@ export const HOST_CAPABILITIES = {
|
|
|
21
22
|
risky: false,
|
|
22
23
|
},
|
|
23
24
|
{
|
|
25
|
+
builtinOnly: false,
|
|
24
26
|
label: "Read what is playing and the position",
|
|
25
27
|
methods: [
|
|
26
28
|
{ name: "source.state", needs: "playback.read" },
|
|
@@ -36,6 +38,7 @@ export const HOST_CAPABILITIES = {
|
|
|
36
38
|
risky: false,
|
|
37
39
|
},
|
|
38
40
|
{
|
|
41
|
+
builtinOnly: false,
|
|
39
42
|
label: "Open media, control playback, keep the computer awake",
|
|
40
43
|
methods: [
|
|
41
44
|
{ name: "playback.set", needs: "playback.control" },
|
|
@@ -64,6 +67,7 @@ export const HOST_CAPABILITIES = {
|
|
|
64
67
|
risky: false,
|
|
65
68
|
},
|
|
66
69
|
{
|
|
70
|
+
builtinOnly: false,
|
|
67
71
|
label: "Resolve online video addresses",
|
|
68
72
|
methods: [
|
|
69
73
|
{ name: "sourceResolvers.register", needs: "source.resolve" },
|
|
@@ -77,6 +81,7 @@ export const HOST_CAPABILITIES = {
|
|
|
77
81
|
risky: false,
|
|
78
82
|
},
|
|
79
83
|
{
|
|
84
|
+
builtinOnly: false,
|
|
80
85
|
label: "Receive playback changes as they happen",
|
|
81
86
|
methods: [
|
|
82
87
|
{
|
|
@@ -112,6 +117,7 @@ export const HOST_CAPABILITIES = {
|
|
|
112
117
|
risky: false,
|
|
113
118
|
},
|
|
114
119
|
{
|
|
120
|
+
builtinOnly: false,
|
|
115
121
|
label: "Add menu commands and shortcuts",
|
|
116
122
|
methods: [
|
|
117
123
|
{ name: "commands.register", needs: "commands" },
|
|
@@ -126,6 +132,7 @@ export const HOST_CAPABILITIES = {
|
|
|
126
132
|
risky: false,
|
|
127
133
|
},
|
|
128
134
|
{
|
|
135
|
+
builtinOnly: false,
|
|
129
136
|
label: "Open tool windows",
|
|
130
137
|
methods: [
|
|
131
138
|
{ name: "ui.open", needs: "ui.window" },
|
|
@@ -139,6 +146,7 @@ export const HOST_CAPABILITIES = {
|
|
|
139
146
|
risky: false,
|
|
140
147
|
},
|
|
141
148
|
{
|
|
149
|
+
builtinOnly: false,
|
|
142
150
|
label: "Show panels in the bottom bar, the sidebar or behind the video",
|
|
143
151
|
methods: [
|
|
144
152
|
{ name: "ui.mount", needs: "ui.mount" },
|
|
@@ -155,6 +163,7 @@ export const HOST_CAPABILITIES = {
|
|
|
155
163
|
risky: false,
|
|
156
164
|
},
|
|
157
165
|
{
|
|
166
|
+
builtinOnly: false,
|
|
158
167
|
label: "Show file pickers and confirmations",
|
|
159
168
|
methods: [
|
|
160
169
|
{ name: "dialogs.open", needs: "ui.dialog" },
|
|
@@ -166,6 +175,7 @@ export const HOST_CAPABILITIES = {
|
|
|
166
175
|
risky: false,
|
|
167
176
|
},
|
|
168
177
|
{
|
|
178
|
+
builtinOnly: false,
|
|
169
179
|
label: "Install, uninstall and disable other plugins",
|
|
170
180
|
methods: [{ name: "packages.*", needs: "plugins.manage" }],
|
|
171
181
|
name: "plugins.manage",
|
|
@@ -174,6 +184,7 @@ export const HOST_CAPABILITIES = {
|
|
|
174
184
|
risky: true,
|
|
175
185
|
},
|
|
176
186
|
{
|
|
187
|
+
builtinOnly: false,
|
|
177
188
|
label: "Process the picture (filters, shaders)",
|
|
178
189
|
methods: [
|
|
179
190
|
{
|
|
@@ -204,6 +215,7 @@ export const HOST_CAPABILITIES = {
|
|
|
204
215
|
risky: false,
|
|
205
216
|
},
|
|
206
217
|
{
|
|
218
|
+
builtinOnly: false,
|
|
207
219
|
label: "Process the sound",
|
|
208
220
|
methods: [],
|
|
209
221
|
name: "processing.audio",
|
|
@@ -212,6 +224,7 @@ export const HOST_CAPABILITIES = {
|
|
|
212
224
|
risky: false,
|
|
213
225
|
},
|
|
214
226
|
{
|
|
227
|
+
builtinOnly: false,
|
|
215
228
|
label: "Read subtitles",
|
|
216
229
|
methods: [{ name: "subtitles.state", needs: "subtitles.read" }],
|
|
217
230
|
name: "subtitles.read",
|
|
@@ -220,6 +233,7 @@ export const HOST_CAPABILITIES = {
|
|
|
220
233
|
risky: false,
|
|
221
234
|
},
|
|
222
235
|
{
|
|
236
|
+
builtinOnly: false,
|
|
223
237
|
label: "Load and change subtitles",
|
|
224
238
|
methods: [{ name: "subtitles.*", needs: "subtitles.control" }],
|
|
225
239
|
name: "subtitles.control",
|
|
@@ -228,6 +242,7 @@ export const HOST_CAPABILITIES = {
|
|
|
228
242
|
risky: false,
|
|
229
243
|
},
|
|
230
244
|
{
|
|
245
|
+
builtinOnly: false,
|
|
231
246
|
label: "Take snapshots and export clips",
|
|
232
247
|
methods: [
|
|
233
248
|
{ name: "snapshot.state", needs: "media.read" },
|
|
@@ -240,6 +255,7 @@ export const HOST_CAPABILITIES = {
|
|
|
240
255
|
risky: false,
|
|
241
256
|
},
|
|
242
257
|
{
|
|
258
|
+
builtinOnly: false,
|
|
243
259
|
label: "Take snapshots and export clips",
|
|
244
260
|
methods: [
|
|
245
261
|
{ name: "snapshot.*", needs: "media.control" },
|
|
@@ -251,6 +267,26 @@ export const HOST_CAPABILITIES = {
|
|
|
251
267
|
risky: false,
|
|
252
268
|
},
|
|
253
269
|
{
|
|
270
|
+
builtinOnly: false,
|
|
271
|
+
label: "Remember videos you add and export from them later",
|
|
272
|
+
methods: [
|
|
273
|
+
{
|
|
274
|
+
name: "media.sources.open",
|
|
275
|
+
needs: {
|
|
276
|
+
ifDeclared: "playback.control",
|
|
277
|
+
otherwise: "playback.control",
|
|
278
|
+
then: "media.sources",
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
{ name: "media.sources.*", needs: "media.sources" },
|
|
282
|
+
],
|
|
283
|
+
name: "media.sources",
|
|
284
|
+
requires: [],
|
|
285
|
+
residency: "none",
|
|
286
|
+
risky: false,
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
builtinOnly: false,
|
|
254
290
|
label: "Show messages on the video",
|
|
255
291
|
methods: [
|
|
256
292
|
{ name: "osd.show", needs: "ui.osd" },
|
|
@@ -262,6 +298,7 @@ export const HOST_CAPABILITIES = {
|
|
|
262
298
|
risky: false,
|
|
263
299
|
},
|
|
264
300
|
{
|
|
301
|
+
builtinOnly: false,
|
|
265
302
|
label: "Read and write the clipboard",
|
|
266
303
|
methods: [
|
|
267
304
|
{ name: "clipboard.readText", needs: "clipboard" },
|
|
@@ -274,6 +311,7 @@ export const HOST_CAPABILITIES = {
|
|
|
274
311
|
risky: true,
|
|
275
312
|
},
|
|
276
313
|
{
|
|
314
|
+
builtinOnly: false,
|
|
277
315
|
label: "Adjust the main window (size, on top, picture-in-picture)",
|
|
278
316
|
methods: [
|
|
279
317
|
{ name: "window.setVideoArea", needs: "window.control" },
|
|
@@ -287,6 +325,7 @@ export const HOST_CAPABILITIES = {
|
|
|
287
325
|
risky: false,
|
|
288
326
|
},
|
|
289
327
|
{
|
|
328
|
+
builtinOnly: false,
|
|
290
329
|
label: "Change all shortcuts",
|
|
291
330
|
methods: [
|
|
292
331
|
{ name: "bindings.list", needs: "bindings.manage" },
|
|
@@ -299,6 +338,7 @@ export const HOST_CAPABILITIES = {
|
|
|
299
338
|
risky: true,
|
|
300
339
|
},
|
|
301
340
|
{
|
|
341
|
+
builtinOnly: false,
|
|
302
342
|
label: "Show marks on the progress bar",
|
|
303
343
|
methods: [
|
|
304
344
|
{ name: "timeline.set", needs: "timeline.marks" },
|
|
@@ -310,6 +350,7 @@ export const HOST_CAPABILITIES = {
|
|
|
310
350
|
risky: false,
|
|
311
351
|
},
|
|
312
352
|
{
|
|
353
|
+
builtinOnly: false,
|
|
313
354
|
label: "Receive files dropped on the player",
|
|
314
355
|
methods: [
|
|
315
356
|
{ name: "drops.provide", needs: "ui.drop" },
|
|
@@ -322,6 +363,7 @@ export const HOST_CAPABILITIES = {
|
|
|
322
363
|
risky: false,
|
|
323
364
|
},
|
|
324
365
|
{
|
|
366
|
+
builtinOnly: false,
|
|
325
367
|
label: "Add pages to the Options window",
|
|
326
368
|
methods: [{ name: "settings.*", needs: "ui.settings" }],
|
|
327
369
|
name: "ui.settings",
|
|
@@ -330,6 +372,7 @@ export const HOST_CAPABILITIES = {
|
|
|
330
372
|
risky: false,
|
|
331
373
|
},
|
|
332
374
|
{
|
|
375
|
+
builtinOnly: false,
|
|
333
376
|
label: "Change the player's palette",
|
|
334
377
|
methods: [
|
|
335
378
|
{ name: "appearance.set", needs: "ui.theme" },
|
|
@@ -341,6 +384,7 @@ export const HOST_CAPABILITIES = {
|
|
|
341
384
|
risky: false,
|
|
342
385
|
},
|
|
343
386
|
{
|
|
387
|
+
builtinOnly: false,
|
|
344
388
|
label: "Store sign-in details in the system keychain",
|
|
345
389
|
methods: [
|
|
346
390
|
{ name: "secrets.get", needs: "secrets" },
|
|
@@ -353,6 +397,7 @@ export const HOST_CAPABILITIES = {
|
|
|
353
397
|
risky: true,
|
|
354
398
|
},
|
|
355
399
|
{
|
|
400
|
+
builtinOnly: false,
|
|
356
401
|
label: "Choose GPU or software rendering and restart the player",
|
|
357
402
|
methods: [
|
|
358
403
|
{ name: "rendering.setPreference", needs: "rendering.manage" },
|
|
@@ -364,6 +409,7 @@ export const HOST_CAPABILITIES = {
|
|
|
364
409
|
risky: true,
|
|
365
410
|
},
|
|
366
411
|
{
|
|
412
|
+
builtinOnly: false,
|
|
367
413
|
label: "Upscale the video with the GPU's video upscaler",
|
|
368
414
|
methods: [
|
|
369
415
|
{ name: "video.upscaling.state", needs: "video.upscaling" },
|
|
@@ -374,6 +420,31 @@ export const HOST_CAPABILITIES = {
|
|
|
374
420
|
residency: "live",
|
|
375
421
|
risky: false,
|
|
376
422
|
},
|
|
423
|
+
{
|
|
424
|
+
builtinOnly: true,
|
|
425
|
+
label: "Run any player or plugin command",
|
|
426
|
+
methods: [
|
|
427
|
+
{ name: "commands.list", needs: "commands.run" },
|
|
428
|
+
{ name: "commands.run", needs: "commands.run" },
|
|
429
|
+
],
|
|
430
|
+
name: "commands.run",
|
|
431
|
+
requires: [],
|
|
432
|
+
residency: "none",
|
|
433
|
+
risky: true,
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
builtinOnly: true,
|
|
437
|
+
label: "Add the first row of the command palette",
|
|
438
|
+
methods: [
|
|
439
|
+
{ name: "palette.lead.set", needs: "palette.lead" },
|
|
440
|
+
{ name: "palette.lead.clear", needs: "palette.lead" },
|
|
441
|
+
{ name: "palette.lead.done", needs: "palette.lead" },
|
|
442
|
+
],
|
|
443
|
+
name: "palette.lead",
|
|
444
|
+
requires: [],
|
|
445
|
+
residency: "recordable",
|
|
446
|
+
risky: false,
|
|
447
|
+
},
|
|
377
448
|
],
|
|
378
449
|
uncapable: [
|
|
379
450
|
{ name: "packages.list", needs: null },
|
package/dist/manifest.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { existsSync, lstatSync, readFileSync, realpathSync } from "node:fs";
|
|
7
7
|
import { join, sep } from "node:path";
|
|
8
|
-
import { API_VERSION, CAPABILITIES } from "./capabilities.js";
|
|
8
|
+
import { API_VERSION, CAPABILITIES, CAPABILITY_INFO } from "./capabilities.js";
|
|
9
9
|
export const MANIFEST_LIMITS = Object.freeze({
|
|
10
10
|
idBytes: 128,
|
|
11
11
|
name: 64,
|
|
@@ -75,6 +75,17 @@ export function manifestProblems(manifest, directory) {
|
|
|
75
75
|
problem(`unknown capabilities ${unknown.join(", ")}`);
|
|
76
76
|
if (new Set(capabilities).size !== capabilities.length)
|
|
77
77
|
problem("capabilities must be unique");
|
|
78
|
+
// Only a built-in plugin may declare these. Built-in plugins have a
|
|
79
|
+
// `vestra.` id, which the player refuses for any other package: any
|
|
80
|
+
// other id is an error, a `vestra.` id a reminder.
|
|
81
|
+
const builtinOnly = capabilities.filter((c) => CAPABILITY_INFO[c]?.builtinOnly);
|
|
82
|
+
if (builtinOnly.length) {
|
|
83
|
+
const text = `${builtinOnly.join(", ")}: built-in plugins only (the player refuses any other plugin that declares ${builtinOnly.length === 1 ? "it" : "them"}, and its calls fail with code capability)`;
|
|
84
|
+
if (typeof id === "string" && /^vestra\./i.test(id))
|
|
85
|
+
hints.push(text);
|
|
86
|
+
else
|
|
87
|
+
problem(text);
|
|
88
|
+
}
|
|
78
89
|
}
|
|
79
90
|
if (typeof manifest.entry !== "string" || !relative(manifest.entry))
|
|
80
91
|
problem("entry must be a relative path inside the package");
|