@babylonjs/inspector 9.2.2 → 9.3.1

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 (26) hide show
  1. package/bin/inspector-bridge.mjs +29 -2
  2. package/bin/inspector-cli.mjs +17 -2
  3. package/lib/{extensionsListService-B_R2ChvJ.js → extensionsListService-DA8_rCpk.js} +2 -2
  4. package/lib/{extensionsListService-B_R2ChvJ.js.map → extensionsListService-DA8_rCpk.js.map} +1 -1
  5. package/lib/{index-DB_fpb1t.js → index-nEGqYbP2.js} +348 -293
  6. package/lib/index-nEGqYbP2.js.map +1 -0
  7. package/lib/index.d.ts +2 -2
  8. package/lib/index.js +1 -1
  9. package/lib/inspectable.d.ts +27 -10
  10. package/lib/inspector.d.ts +7 -2
  11. package/lib/{quickCreateToolsService-DaBqYmZw.js → quickCreateToolsService-_L22btR5.js} +2 -2
  12. package/lib/{quickCreateToolsService-DaBqYmZw.js.map → quickCreateToolsService-_L22btR5.js.map} +1 -1
  13. package/lib/{reflectorService-5IVRhqd-.js → reflectorService-BMLxtZT7.js} +2 -2
  14. package/lib/{reflectorService-5IVRhqd-.js.map → reflectorService-BMLxtZT7.js.map} +1 -1
  15. package/lib/services/cli/entityQueryService.d.ts +2 -2
  16. package/lib/services/cli/perfTraceCommandService.d.ts +2 -2
  17. package/lib/services/cli/screenshotCommandService.d.ts +2 -2
  18. package/lib/services/cli/shaderCommandService.d.ts +2 -2
  19. package/lib/services/cli/statsCommandService.d.ts +2 -2
  20. package/lib/services/cliConnectionStatusService.d.ts +1 -1
  21. package/package.json +1 -1
  22. package/lib/cli/protocol.d.ts +0 -180
  23. package/lib/index-DB_fpb1t.js.map +0 -1
  24. package/lib/services/cli/cliConnectionStatus.d.ts +0 -25
  25. package/lib/services/cli/inspectableBridgeService.d.ts +0 -26
  26. package/lib/services/cli/inspectableCommandRegistry.d.ts +0 -58
@@ -1,25 +0,0 @@
1
- import { type IReadonlyObservable } from "@babylonjs/core/index.js";
2
- import { type IService } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
3
- /**
4
- * The service identity for the CLI connection status.
5
- */
6
- export declare const CliConnectionStatusIdentity: unique symbol;
7
- /**
8
- * Provides the connection status and enable/disable control for the Inspector CLI bridge.
9
- */
10
- export interface ICliConnectionStatus extends IService<typeof CliConnectionStatusIdentity> {
11
- /**
12
- * Whether the bridge is enabled. When true, the bridge actively tries to
13
- * maintain a WebSocket connection. When false, the bridge is disconnected
14
- * and idle.
15
- */
16
- isEnabled: boolean;
17
- /**
18
- * Whether the bridge WebSocket is currently connected.
19
- */
20
- readonly isConnected: boolean;
21
- /**
22
- * Observable that fires when either {@link isEnabled} or {@link isConnected} changes.
23
- */
24
- readonly onConnectionStatusChanged: IReadonlyObservable<void>;
25
- }
@@ -1,26 +0,0 @@
1
- import { type ServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
2
- import { type ICliConnectionStatus } from "./cliConnectionStatus";
3
- import { type IInspectableCommandRegistry } from "./inspectableCommandRegistry";
4
- /**
5
- * Options for the inspectable bridge service.
6
- */
7
- export interface IInspectableBridgeServiceOptions {
8
- /**
9
- * The WebSocket port for the bridge's browser port.
10
- */
11
- port: number;
12
- /**
13
- * The session display name sent to the bridge.
14
- */
15
- name: string;
16
- /**
17
- * Whether to automatically start connecting when the service is created.
18
- */
19
- autoStart: boolean;
20
- }
21
- /**
22
- * Creates the service definition for the InspectableBridgeService.
23
- * @param options The options for connecting to the bridge.
24
- * @returns A service definition that produces an IInspectableCommandRegistry.
25
- */
26
- export declare function MakeInspectableBridgeServiceDefinition(options: IInspectableBridgeServiceOptions): ServiceDefinition<[IInspectableCommandRegistry, ICliConnectionStatus], []>;
@@ -1,58 +0,0 @@
1
- import { type IDisposable } from "@babylonjs/core/index.js";
2
- import { type IService } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
3
- /**
4
- * Describes an argument for an inspectable command.
5
- */
6
- export type InspectableCommandArg = {
7
- /**
8
- * The name of the argument.
9
- */
10
- name: string;
11
- /**
12
- * A description of the argument.
13
- */
14
- description: string;
15
- /**
16
- * Whether the argument is required.
17
- */
18
- required?: boolean;
19
- };
20
- /**
21
- * Describes a command that can be invoked from the CLI.
22
- */
23
- export type InspectableCommandDescriptor = {
24
- /**
25
- * A unique identifier for the command.
26
- */
27
- id: string;
28
- /**
29
- * A human-readable description of what the command does.
30
- */
31
- description: string;
32
- /**
33
- * The arguments that this command accepts.
34
- */
35
- args?: InspectableCommandArg[];
36
- /**
37
- * Executes the command with the given arguments and returns a result string.
38
- * @param args A map of argument names to their values.
39
- * @returns A promise that resolves to the result string.
40
- */
41
- executeAsync: (args: Record<string, string>) => Promise<string>;
42
- };
43
- /**
44
- * The service identity for the inspectable command registry.
45
- */
46
- export declare const InspectableCommandRegistryIdentity: unique symbol;
47
- /**
48
- * A registry for commands that can be invoked from the Inspector CLI.
49
- * @experimental
50
- */
51
- export interface IInspectableCommandRegistry extends IService<typeof InspectableCommandRegistryIdentity> {
52
- /**
53
- * Registers a command that can be invoked from the Inspector CLI.
54
- * @param descriptor The command descriptor.
55
- * @returns A disposable token that unregisters the command when disposed.
56
- */
57
- addCommand(descriptor: InspectableCommandDescriptor): IDisposable;
58
- }