@lynx-js/devtool-connector 0.13.1 → 0.13.2
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 +13 -0
- package/dist/390.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +1 -32
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @lynx-js/devtool-connector
|
|
2
2
|
|
|
3
|
+
## 0.13.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 51e5de9: Remove the internal `xdb` protocol types from the public type surface.
|
|
8
|
+
|
|
9
|
+
`XdbJsbRequest`, `XdbJsbResponse`, `XdbGlobalPropsRequest` and
|
|
10
|
+
`XdbGlobalPropsResponse`, along with their `CustomizedResponseMap` and
|
|
11
|
+
`Response` entries, described a ByteDance-internal DevTool protocol. The
|
|
12
|
+
commands that spoke it are not part of the public CLI, so the types had no
|
|
13
|
+
consumer here and only leaked internal protocol names into the published
|
|
14
|
+
`.d.ts`.
|
|
15
|
+
|
|
3
16
|
## 0.9.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/390.js
CHANGED
|
@@ -31,7 +31,7 @@ const DAEMON_SHUTDOWN_PATH = `${DAEMON_WS_PATH}/shutdown`;
|
|
|
31
31
|
const DAEMON_INSPECTOR_PATH = `${DAEMON_WS_PATH}/inspector`;
|
|
32
32
|
const DAEMON_COMMAND_PATH_PREFIX = '/command/';
|
|
33
33
|
var package_namespaceObject = {
|
|
34
|
-
rE: "0.13.
|
|
34
|
+
rE: "0.13.2"
|
|
35
35
|
};
|
|
36
36
|
const CONNECTOR_VERSION = package_namespaceObject.rE;
|
|
37
37
|
const debug = createDebug('devtool-mcp-server:daemon:manager');
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare class Connector {
|
|
|
25
25
|
* Unlike {@link sendMessage}, this method does not wait for the output
|
|
26
26
|
* stream to produce a value. It connects, writes the message, and then
|
|
27
27
|
* disposes of the connection. This is useful for fire-and-forget messages
|
|
28
|
-
*
|
|
28
|
+
* that the device acknowledges without sending a reply.
|
|
29
29
|
*/
|
|
30
30
|
sendMessageNoReply<T>(clientId: string, message: T): Promise<void>;
|
|
31
31
|
sendAppMessage<Output, Params = never>(clientId: string, method: string, params?: Params): Promise<Output>;
|
package/dist/types.d.ts
CHANGED
|
@@ -131,46 +131,15 @@ export type SetGlobalSwitchResponse = CustomizedEvent<'SetGlobalSwitch', {
|
|
|
131
131
|
/** JSON string */
|
|
132
132
|
message: string;
|
|
133
133
|
}>;
|
|
134
|
-
export type XdbJsbRequest = CustomizedEvent<'xdb_jsb', {
|
|
135
|
-
client_id: number;
|
|
136
|
-
session_id: number;
|
|
137
|
-
message: {
|
|
138
|
-
type: string;
|
|
139
|
-
};
|
|
140
|
-
}>;
|
|
141
|
-
export type XdbJsbResponse = CustomizedEvent<'xdb_jsb', {
|
|
142
|
-
client_id: number;
|
|
143
|
-
session_id: number;
|
|
144
|
-
/** JSON string */
|
|
145
|
-
message: string;
|
|
146
|
-
}>;
|
|
147
|
-
export type XdbGlobalPropsRequest = CustomizedEvent<'xdb_globalprops', {
|
|
148
|
-
client_id: number;
|
|
149
|
-
session_id: number;
|
|
150
|
-
message: {
|
|
151
|
-
type: string;
|
|
152
|
-
timestamp: string;
|
|
153
|
-
};
|
|
154
|
-
}>;
|
|
155
|
-
export type XdbGlobalPropsResponse = CustomizedEvent<'xdb_globalprops', {
|
|
156
|
-
client_id: number;
|
|
157
|
-
session_id: number;
|
|
158
|
-
/** JSON string */
|
|
159
|
-
message: string;
|
|
160
|
-
}>;
|
|
161
134
|
export type CustomizedResponseMap = {
|
|
162
135
|
App: AppResponse;
|
|
163
136
|
CDP: CDPResponse;
|
|
164
|
-
xdb_jsb: XdbJsbResponse;
|
|
165
|
-
xdb_globalprops: XdbGlobalPropsResponse;
|
|
166
137
|
};
|
|
167
138
|
export type CustomizedResponseMessageMap = {
|
|
168
139
|
App: AppResponseMessage;
|
|
169
140
|
CDP: CDPResponseMessage;
|
|
170
|
-
xdb_jsb: unknown;
|
|
171
|
-
xdb_globalprops: unknown;
|
|
172
141
|
};
|
|
173
|
-
export type Response = InitializeResponse | ListSessionResponse | AppResponse | CDPResponse | GetGlobalSwitchResponse | SetGlobalSwitchResponse |
|
|
142
|
+
export type Response = InitializeResponse | ListSessionResponse | AppResponse | CDPResponse | GetGlobalSwitchResponse | SetGlobalSwitchResponse | HeadlessPrepareResponse;
|
|
174
143
|
export declare function isInitializeResponse(response: Response): response is InitializeResponse;
|
|
175
144
|
export declare function isHeadlessPrepareResponse(response: Response): response is HeadlessPrepareResponse;
|
|
176
145
|
export declare function isListSessionResponse(response: Response): response is ListSessionResponse;
|