@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.
- package/bin/inspector-bridge.mjs +29 -2
- package/bin/inspector-cli.mjs +17 -2
- package/lib/{extensionsListService-B_R2ChvJ.js → extensionsListService-DA8_rCpk.js} +2 -2
- package/lib/{extensionsListService-B_R2ChvJ.js.map → extensionsListService-DA8_rCpk.js.map} +1 -1
- package/lib/{index-DB_fpb1t.js → index-nEGqYbP2.js} +348 -293
- package/lib/index-nEGqYbP2.js.map +1 -0
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -1
- package/lib/inspectable.d.ts +27 -10
- package/lib/inspector.d.ts +7 -2
- package/lib/{quickCreateToolsService-DaBqYmZw.js → quickCreateToolsService-_L22btR5.js} +2 -2
- package/lib/{quickCreateToolsService-DaBqYmZw.js.map → quickCreateToolsService-_L22btR5.js.map} +1 -1
- package/lib/{reflectorService-5IVRhqd-.js → reflectorService-BMLxtZT7.js} +2 -2
- package/lib/{reflectorService-5IVRhqd-.js.map → reflectorService-BMLxtZT7.js.map} +1 -1
- package/lib/services/cli/entityQueryService.d.ts +2 -2
- package/lib/services/cli/perfTraceCommandService.d.ts +2 -2
- package/lib/services/cli/screenshotCommandService.d.ts +2 -2
- package/lib/services/cli/shaderCommandService.d.ts +2 -2
- package/lib/services/cli/statsCommandService.d.ts +2 -2
- package/lib/services/cliConnectionStatusService.d.ts +1 -1
- package/package.json +1 -1
- package/lib/cli/protocol.d.ts +0 -180
- package/lib/index-DB_fpb1t.js.map +0 -1
- package/lib/services/cli/cliConnectionStatus.d.ts +0 -25
- package/lib/services/cli/inspectableBridgeService.d.ts +0 -26
- package/lib/services/cli/inspectableCommandRegistry.d.ts +0 -58
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
2
2
|
import { type ISceneContext } from "../sceneContext";
|
|
3
|
-
import { type
|
|
3
|
+
import { type IBridgeCommandRegistry } from "@babylonjs/shared-ui-components/modularTool/services/cli/bridgeCommandRegistry.js";
|
|
4
4
|
/**
|
|
5
5
|
* Service that registers CLI commands for querying scene entities by uniqueId.
|
|
6
6
|
* When uniqueId is omitted, returns a summary list of all entities of that type.
|
|
7
7
|
*/
|
|
8
|
-
export declare const EntityQueryServiceDefinition: ServiceDefinition<[], [
|
|
8
|
+
export declare const EntityQueryServiceDefinition: ServiceDefinition<[], [IBridgeCommandRegistry, ISceneContext]>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
2
2
|
import { type ISceneContext } from "../sceneContext";
|
|
3
|
-
import { type
|
|
3
|
+
import { type IBridgeCommandRegistry } from "@babylonjs/shared-ui-components/modularTool/services/cli/bridgeCommandRegistry.js";
|
|
4
4
|
import "@babylonjs/core/Misc/PerformanceViewer/performanceViewerSceneExtension.js";
|
|
5
5
|
/**
|
|
6
6
|
* Service that registers CLI commands for performance tracing using the PerformanceViewerCollector.
|
|
7
7
|
* start-perf-trace begins collecting data, stop-perf-trace stops and returns the collected data as JSON.
|
|
8
8
|
*/
|
|
9
|
-
export declare const PerfTraceCommandServiceDefinition: ServiceDefinition<[], [
|
|
9
|
+
export declare const PerfTraceCommandServiceDefinition: ServiceDefinition<[], [IBridgeCommandRegistry, ISceneContext]>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
2
2
|
import { type ISceneContext } from "../sceneContext";
|
|
3
|
-
import { type
|
|
3
|
+
import { type IBridgeCommandRegistry } from "@babylonjs/shared-ui-components/modularTool/services/cli/bridgeCommandRegistry.js";
|
|
4
4
|
/**
|
|
5
5
|
* Service that registers a CLI command for capturing a screenshot of the scene.
|
|
6
6
|
* Returns the image as a base64 data string, suitable for consumption by AI agents.
|
|
7
7
|
*/
|
|
8
|
-
export declare const ScreenshotCommandServiceDefinition: ServiceDefinition<[], [
|
|
8
|
+
export declare const ScreenshotCommandServiceDefinition: ServiceDefinition<[], [IBridgeCommandRegistry, ISceneContext]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
2
2
|
import { type ISceneContext } from "../sceneContext";
|
|
3
|
-
import { type
|
|
3
|
+
import { type IBridgeCommandRegistry } from "@babylonjs/shared-ui-components/modularTool/services/cli/bridgeCommandRegistry.js";
|
|
4
4
|
/**
|
|
5
5
|
* Service that registers a CLI command for retrieving compiled shader code from a material.
|
|
6
6
|
*/
|
|
7
|
-
export declare const ShaderCommandServiceDefinition: ServiceDefinition<[], [
|
|
7
|
+
export declare const ShaderCommandServiceDefinition: ServiceDefinition<[], [IBridgeCommandRegistry, ISceneContext]>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
2
2
|
import { type ISceneContext } from "../sceneContext";
|
|
3
|
-
import { type
|
|
3
|
+
import { type IBridgeCommandRegistry } from "@babylonjs/shared-ui-components/modularTool/services/cli/bridgeCommandRegistry.js";
|
|
4
4
|
import "@babylonjs/core/Engines/AbstractEngine/abstractEngine.timeQuery.js";
|
|
5
5
|
import "@babylonjs/core/Engines/Extensions/engine.query.js";
|
|
6
6
|
/**
|
|
7
7
|
* Service that registers CLI commands for querying scene and engine statistics.
|
|
8
8
|
*/
|
|
9
|
-
export declare const StatsCommandServiceDefinition: ServiceDefinition<[], [
|
|
9
|
+
export declare const StatsCommandServiceDefinition: ServiceDefinition<[], [IBridgeCommandRegistry, ISceneContext]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type ServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
2
|
-
import { type ICliConnectionStatus } from "
|
|
2
|
+
import { type ICliConnectionStatus } from "@babylonjs/shared-ui-components/modularTool/services/cli/bridgeConnectionStatus.js";
|
|
3
3
|
import { type IShellService } from "@babylonjs/shared-ui-components/modularTool/services/shellService.js";
|
|
4
4
|
export declare const CliConnectionStatusServiceDefinition: ServiceDefinition<[], [IShellService, ICliConnectionStatus]>;
|
package/package.json
CHANGED
package/lib/cli/protocol.d.ts
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Serializable description of a command argument, used in protocol messages.
|
|
3
|
-
*/
|
|
4
|
-
export type CommandArgInfo = {
|
|
5
|
-
/** The name of the argument. */
|
|
6
|
-
name: string;
|
|
7
|
-
/** A human-readable description of the argument. */
|
|
8
|
-
description: string;
|
|
9
|
-
/** Whether this argument is required. */
|
|
10
|
-
required?: boolean;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Serializable description of a command, used in protocol messages.
|
|
14
|
-
*/
|
|
15
|
-
export type CommandInfo = {
|
|
16
|
-
/** A unique identifier for the command. */
|
|
17
|
-
id: string;
|
|
18
|
-
/** A human-readable description of the command. */
|
|
19
|
-
description: string;
|
|
20
|
-
/** The arguments this command accepts. */
|
|
21
|
-
args?: CommandArgInfo[];
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Serializable description of a session, used in protocol messages.
|
|
25
|
-
*/
|
|
26
|
-
export type SessionInfo = {
|
|
27
|
-
/** The numeric session identifier. */
|
|
28
|
-
id: number;
|
|
29
|
-
/** The display name of the session. */
|
|
30
|
-
name: string;
|
|
31
|
-
/** ISO 8601 timestamp of when the session connected. */
|
|
32
|
-
connectedAt: string;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* CLI → Bridge: Request the list of active browser sessions.
|
|
36
|
-
*/
|
|
37
|
-
export type SessionsRequest = {
|
|
38
|
-
/** The message type discriminator. */
|
|
39
|
-
type: "sessions";
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* CLI → Bridge: Request the list of commands available from a session.
|
|
43
|
-
*/
|
|
44
|
-
export type CommandsRequest = {
|
|
45
|
-
/** The message type discriminator. */
|
|
46
|
-
type: "commands";
|
|
47
|
-
/** The session to query for commands. */
|
|
48
|
-
sessionId: number;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* CLI → Bridge: Execute a command on a session.
|
|
52
|
-
*/
|
|
53
|
-
export type ExecRequest = {
|
|
54
|
-
/** The message type discriminator. */
|
|
55
|
-
type: "exec";
|
|
56
|
-
/** The session to execute the command on. */
|
|
57
|
-
sessionId: number;
|
|
58
|
-
/** The identifier of the command to execute. */
|
|
59
|
-
commandId: string;
|
|
60
|
-
/** Key-value pairs of arguments for the command. */
|
|
61
|
-
args: Record<string, string>;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* CLI → Bridge: Stop the bridge process.
|
|
65
|
-
*/
|
|
66
|
-
export type StopRequest = {
|
|
67
|
-
/** The message type discriminator. */
|
|
68
|
-
type: "stop";
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* All messages that the CLI sends to the bridge.
|
|
72
|
-
*/
|
|
73
|
-
export type CliRequest = SessionsRequest | CommandsRequest | ExecRequest | StopRequest;
|
|
74
|
-
/**
|
|
75
|
-
* Bridge → CLI: Response with the list of active sessions.
|
|
76
|
-
*/
|
|
77
|
-
export type SessionsResponse = {
|
|
78
|
-
/** The message type discriminator. */
|
|
79
|
-
type: "sessionsResponse";
|
|
80
|
-
/** The list of active sessions. */
|
|
81
|
-
sessions: SessionInfo[];
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Bridge → CLI: Response with the list of commands from a session.
|
|
85
|
-
*/
|
|
86
|
-
export type CommandsResponse = {
|
|
87
|
-
/** The message type discriminator. */
|
|
88
|
-
type: "commandsResponse";
|
|
89
|
-
/** The list of available commands, if successful. */
|
|
90
|
-
commands?: CommandInfo[];
|
|
91
|
-
/** An error message, if the request failed. */
|
|
92
|
-
error?: string;
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* Bridge → CLI: Response with the result of a command execution.
|
|
96
|
-
*/
|
|
97
|
-
export type ExecResponse = {
|
|
98
|
-
/** The message type discriminator. */
|
|
99
|
-
type: "execResponse";
|
|
100
|
-
/** The result of the command execution, if successful. */
|
|
101
|
-
result?: string;
|
|
102
|
-
/** An error message, if the execution failed. */
|
|
103
|
-
error?: string;
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Bridge → CLI: Acknowledgement that the bridge is stopping.
|
|
107
|
-
*/
|
|
108
|
-
export type StopResponse = {
|
|
109
|
-
/** The message type discriminator. */
|
|
110
|
-
type: "stopResponse";
|
|
111
|
-
/** Whether the bridge stopped successfully. */
|
|
112
|
-
success: boolean;
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* All messages that the bridge sends to the CLI.
|
|
116
|
-
*/
|
|
117
|
-
export type CliResponse = SessionsResponse | CommandsResponse | ExecResponse | StopResponse;
|
|
118
|
-
/**
|
|
119
|
-
* Browser → Bridge: Register a new session.
|
|
120
|
-
*/
|
|
121
|
-
export type RegisterRequest = {
|
|
122
|
-
/** The message type discriminator. */
|
|
123
|
-
type: "register";
|
|
124
|
-
/** The display name for this session. */
|
|
125
|
-
name: string;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Browser → Bridge: Response to a listCommands request from the bridge.
|
|
129
|
-
*/
|
|
130
|
-
export type CommandListResponse = {
|
|
131
|
-
/** The message type discriminator. */
|
|
132
|
-
type: "commandListResponse";
|
|
133
|
-
/** The identifier of the original request. */
|
|
134
|
-
requestId: string;
|
|
135
|
-
/** The list of registered commands. */
|
|
136
|
-
commands: CommandInfo[];
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Browser → Bridge: Response to an execCommand request from the bridge.
|
|
140
|
-
*/
|
|
141
|
-
export type CommandResponse = {
|
|
142
|
-
/** The message type discriminator. */
|
|
143
|
-
type: "commandResponse";
|
|
144
|
-
/** The identifier of the original request. */
|
|
145
|
-
requestId: string;
|
|
146
|
-
/** The result of the command execution, if successful. */
|
|
147
|
-
result?: string;
|
|
148
|
-
/** An error message, if the execution failed. */
|
|
149
|
-
error?: string;
|
|
150
|
-
};
|
|
151
|
-
/**
|
|
152
|
-
* All messages that the browser sends to the bridge.
|
|
153
|
-
*/
|
|
154
|
-
export type BrowserRequest = RegisterRequest | CommandListResponse | CommandResponse;
|
|
155
|
-
/**
|
|
156
|
-
* Bridge → Browser: Request the list of registered commands.
|
|
157
|
-
*/
|
|
158
|
-
export type ListCommandsRequest = {
|
|
159
|
-
/** The message type discriminator. */
|
|
160
|
-
type: "listCommands";
|
|
161
|
-
/** A unique identifier for this request. */
|
|
162
|
-
requestId: string;
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* Bridge → Browser: Request execution of a command.
|
|
166
|
-
*/
|
|
167
|
-
export type ExecCommandRequest = {
|
|
168
|
-
/** The message type discriminator. */
|
|
169
|
-
type: "execCommand";
|
|
170
|
-
/** A unique identifier for this request. */
|
|
171
|
-
requestId: string;
|
|
172
|
-
/** The identifier of the command to execute. */
|
|
173
|
-
commandId: string;
|
|
174
|
-
/** Key-value pairs of arguments for the command. */
|
|
175
|
-
args: Record<string, string>;
|
|
176
|
-
};
|
|
177
|
-
/**
|
|
178
|
-
* All messages that the bridge sends to the browser.
|
|
179
|
-
*/
|
|
180
|
-
export type BrowserResponse = ListCommandsRequest | ExecCommandRequest;
|