@volter/live 0.5.211 → 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.
Files changed (67) hide show
  1. package/BUNDLED_NOTICES +13 -13
  2. package/README.md +7 -11
  3. package/dist/chunk-7SZ3C4CC.js +768 -0
  4. package/dist/chunk-7SZ3C4CC.js.map +7 -0
  5. package/dist/chunk-7WKVJGHZ.js +15 -0
  6. package/dist/chunk-7WKVJGHZ.js.map +7 -0
  7. package/dist/chunk-SDIWRX5X.js +189 -0
  8. package/dist/chunk-SDIWRX5X.js.map +7 -0
  9. package/dist/chunk-USXOIBVX.js +81 -0
  10. package/dist/chunk-USXOIBVX.js.map +7 -0
  11. package/dist/chunk-Y5W77HYT.js +123 -0
  12. package/dist/chunk-Y5W77HYT.js.map +7 -0
  13. package/dist/chunk-YPAOTPIF.js +202 -0
  14. package/dist/chunk-YPAOTPIF.js.map +7 -0
  15. package/dist/client.d.ts +370 -0
  16. package/dist/client.js +9 -0
  17. package/dist/client.js.map +7 -0
  18. package/dist/discovery.d.ts +32 -0
  19. package/dist/discovery.js +19 -0
  20. package/dist/discovery.js.map +7 -0
  21. package/dist/editor-document.d.ts +12 -47
  22. package/dist/editor.d.ts +34 -181
  23. package/dist/http-transport.d.ts +6 -0
  24. package/dist/index.d.ts +1 -5
  25. package/dist/index.js +76 -1722
  26. package/dist/index.js.map +4 -4
  27. package/dist/installed-package.d.ts +6 -0
  28. package/dist/installed-package.js +7 -0
  29. package/dist/installed-package.js.map +7 -0
  30. package/dist/lazy-proxy.d.ts +11 -11
  31. package/dist/member-hints.d.ts +6 -9
  32. package/dist/product-create.d.ts +29 -0
  33. package/dist/product-create.js +13 -0
  34. package/dist/product-create.js.map +7 -0
  35. package/dist/product-locator.d.ts +100 -0
  36. package/dist/product-locator.js +25 -0
  37. package/dist/product-locator.js.map +7 -0
  38. package/dist/registry-format.d.ts +44 -0
  39. package/dist/registry-format.js +21 -0
  40. package/dist/registry-format.js.map +7 -0
  41. package/dist/session.d.ts +10 -3
  42. package/dist/singleton.d.ts +1 -13
  43. package/dist/volter-manifest.d.ts +55 -0
  44. package/dist/volter-manifest.js +9 -0
  45. package/dist/volter-manifest.js.map +7 -0
  46. package/dist/workbench-locator.d.ts +84 -0
  47. package/dist/workbench-locator.js +416 -0
  48. package/dist/workbench-locator.js.map +7 -0
  49. package/package.json +35 -3
  50. package/src/client.ts +1052 -0
  51. package/src/discovery.ts +105 -0
  52. package/src/editor-document.ts +12 -49
  53. package/src/editor.ts +45 -212
  54. package/src/http-transport.ts +19 -0
  55. package/src/index.ts +3 -7
  56. package/src/installed-package.ts +15 -0
  57. package/src/lazy-proxy.ts +11 -11
  58. package/src/member-hints.ts +8 -12
  59. package/src/product-create.ts +38 -0
  60. package/src/product-locator.ts +327 -0
  61. package/src/registry-format.ts +185 -0
  62. package/src/session.ts +38 -66
  63. package/src/singleton.ts +1 -16
  64. package/src/volter-manifest.ts +97 -0
  65. package/src/workbench-locator.ts +625 -0
  66. package/dist/tools.d.ts +0 -23
  67. 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
- }