@volter/live 0.5.210 → 0.5.212
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/BUNDLED_NOTICES +13 -13
- package/README.md +7 -11
- package/dist/chunk-7SZ3C4CC.js +768 -0
- package/dist/chunk-7SZ3C4CC.js.map +7 -0
- package/dist/chunk-7WKVJGHZ.js +15 -0
- package/dist/chunk-7WKVJGHZ.js.map +7 -0
- package/dist/chunk-SDIWRX5X.js +189 -0
- package/dist/chunk-SDIWRX5X.js.map +7 -0
- package/dist/chunk-USXOIBVX.js +81 -0
- package/dist/chunk-USXOIBVX.js.map +7 -0
- package/dist/chunk-Y5W77HYT.js +123 -0
- package/dist/chunk-Y5W77HYT.js.map +7 -0
- package/dist/chunk-YPAOTPIF.js +202 -0
- package/dist/chunk-YPAOTPIF.js.map +7 -0
- package/dist/client.d.ts +370 -0
- package/dist/client.js +9 -0
- package/dist/client.js.map +7 -0
- package/dist/discovery.d.ts +32 -0
- package/dist/discovery.js +19 -0
- package/dist/discovery.js.map +7 -0
- package/dist/editor-document.d.ts +12 -47
- package/dist/editor.d.ts +34 -181
- package/dist/http-transport.d.ts +6 -0
- package/dist/index.d.ts +1 -5
- package/dist/index.js +76 -1722
- package/dist/index.js.map +4 -4
- package/dist/installed-package.d.ts +6 -0
- package/dist/installed-package.js +7 -0
- package/dist/installed-package.js.map +7 -0
- package/dist/lazy-proxy.d.ts +11 -11
- package/dist/member-hints.d.ts +6 -9
- package/dist/product-create.d.ts +29 -0
- package/dist/product-create.js +13 -0
- package/dist/product-create.js.map +7 -0
- package/dist/product-locator.d.ts +100 -0
- package/dist/product-locator.js +25 -0
- package/dist/product-locator.js.map +7 -0
- package/dist/registry-format.d.ts +44 -0
- package/dist/registry-format.js +21 -0
- package/dist/registry-format.js.map +7 -0
- package/dist/session.d.ts +10 -3
- package/dist/singleton.d.ts +1 -13
- package/dist/volter-manifest.d.ts +55 -0
- package/dist/volter-manifest.js +9 -0
- package/dist/volter-manifest.js.map +7 -0
- package/dist/workbench-locator.d.ts +84 -0
- package/dist/workbench-locator.js +416 -0
- package/dist/workbench-locator.js.map +7 -0
- package/package.json +35 -3
- package/src/client.ts +1052 -0
- package/src/discovery.ts +105 -0
- package/src/editor-document.ts +12 -49
- package/src/editor.ts +45 -212
- package/src/http-transport.ts +19 -0
- package/src/index.ts +3 -7
- package/src/installed-package.ts +15 -0
- package/src/lazy-proxy.ts +11 -11
- package/src/member-hints.ts +8 -12
- package/src/product-create.ts +38 -0
- package/src/product-locator.ts +327 -0
- package/src/registry-format.ts +185 -0
- package/src/session.ts +38 -66
- package/src/singleton.ts +1 -16
- package/src/volter-manifest.ts +97 -0
- package/src/workbench-locator.ts +625 -0
- package/dist/tools.d.ts +0 -23
- package/src/tools.ts +0 -45
package/src/tools.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/** Registered project tools over the current shared editor session. */
|
|
2
|
-
|
|
3
|
-
import type {
|
|
4
|
-
EditorClient,
|
|
5
|
-
ProjectToolCatalog,
|
|
6
|
-
ProjectToolCatalogEntry,
|
|
7
|
-
ProjectToolOutcome,
|
|
8
|
-
} from '@volter/sdk';
|
|
9
|
-
|
|
10
|
-
export class LiveTools {
|
|
11
|
-
/** `#`-private for the same reason `LiveEditor.#client` is. */
|
|
12
|
-
readonly #client: EditorClient;
|
|
13
|
-
|
|
14
|
-
constructor(client: EditorClient) {
|
|
15
|
-
this.#client = client;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/** Enumerate the exact `package.json#volter.tools` catalog without executing it. */
|
|
19
|
-
async list(): Promise<ProjectToolCatalog> {
|
|
20
|
-
return this.#client.listProjectTools();
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/** Return one tool's discoverable metadata, or `null` when it is not registered. */
|
|
24
|
-
async describe(name: string): Promise<ProjectToolCatalogEntry | null> {
|
|
25
|
-
const catalog = await this.list();
|
|
26
|
-
return catalog.tools.find((tool) => tool.name === name) ?? null;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Invoke the same validated callable used by the editor and CLI.
|
|
31
|
-
*
|
|
32
|
-
* `instance` names WHICH mounted instance the tool should drive when several
|
|
33
|
-
* are live (multiplayer authoring) — it reaches the tool as `ctx.instance`,
|
|
34
|
-
* and a tool that drives the game binds
|
|
35
|
-
* `game.instance(ctx.instance)` from it. Omitted is the single-instance case;
|
|
36
|
-
* the tool then targets the sole live instance, exactly as before.
|
|
37
|
-
*/
|
|
38
|
-
async run(
|
|
39
|
-
name: string,
|
|
40
|
-
input: unknown = {},
|
|
41
|
-
options: { confirm?: boolean; instance?: string } = {},
|
|
42
|
-
): Promise<ProjectToolOutcome> {
|
|
43
|
-
return this.#client.runProjectTool(name, input, options);
|
|
44
|
-
}
|
|
45
|
-
}
|