@midscene/harmony 1.10.7-beta-20260722111246.0 → 1.10.7
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/dist/es/bin.mjs +2 -2
- package/dist/es/cli.mjs +1 -1
- package/dist/es/index.mjs +2 -2
- package/dist/lib/bin.js +2 -2
- package/dist/lib/cli.js +1 -1
- package/dist/lib/index.js +2 -2
- package/dist/types/index.d.ts +1 -0
- package/package.json +4 -4
- package/static/index.html +1 -1
- package/static/static/js/index.07b9046a.js +960 -0
- package/static/static/js/index.07b9046a.js.map +1 -0
- package/static/static/js/index.ebfda743.js +0 -960
- package/static/static/js/index.ebfda743.js.map +0 -1
- /package/static/static/js/{index.ebfda743.js.LICENSE.txt → index.07b9046a.js.LICENSE.txt} +0 -0
package/dist/es/bin.mjs
CHANGED
|
@@ -1090,7 +1090,7 @@ const harmonyPlaygroundPlatform = definePlaygroundPlatform({
|
|
|
1090
1090
|
const connectAgent = async ()=>{
|
|
1091
1091
|
const device = new device_HarmonyDevice(deviceId);
|
|
1092
1092
|
await device.connect();
|
|
1093
|
-
return new HarmonyAgent(device);
|
|
1093
|
+
return new HarmonyAgent(device, options?.getAgentOptions?.());
|
|
1094
1094
|
};
|
|
1095
1095
|
const agent = await connectAgent();
|
|
1096
1096
|
return {
|
|
@@ -1134,7 +1134,7 @@ const harmonyPlaygroundPlatform = definePlaygroundPlatform({
|
|
|
1134
1134
|
agentFactory: async ()=>{
|
|
1135
1135
|
const device = new device_HarmonyDevice(selectedDeviceId);
|
|
1136
1136
|
await device.connect();
|
|
1137
|
-
return new HarmonyAgent(device);
|
|
1137
|
+
return new HarmonyAgent(device, options?.getAgentOptions?.());
|
|
1138
1138
|
},
|
|
1139
1139
|
launchOptions: {
|
|
1140
1140
|
port: availablePort,
|
package/dist/es/cli.mjs
CHANGED
|
@@ -1093,7 +1093,7 @@ class HarmonyMidsceneTools extends BaseMidsceneTools {
|
|
|
1093
1093
|
const tools = new HarmonyMidsceneTools();
|
|
1094
1094
|
runToolsCLI(tools, 'midscene-harmony', {
|
|
1095
1095
|
stripPrefix: 'harmony_',
|
|
1096
|
-
version: "1.10.7
|
|
1096
|
+
version: "1.10.7",
|
|
1097
1097
|
extraCommands: createReportCliCommands()
|
|
1098
1098
|
}).catch((e)=>{
|
|
1099
1099
|
process.exit(reportCLIError(e));
|
package/dist/es/index.mjs
CHANGED
|
@@ -1212,7 +1212,7 @@ const harmonyPlaygroundPlatform = definePlaygroundPlatform({
|
|
|
1212
1212
|
const connectAgent = async ()=>{
|
|
1213
1213
|
const device = new HarmonyDevice(deviceId);
|
|
1214
1214
|
await device.connect();
|
|
1215
|
-
return new HarmonyAgent(device);
|
|
1215
|
+
return new HarmonyAgent(device, options?.getAgentOptions?.());
|
|
1216
1216
|
};
|
|
1217
1217
|
const agent = await connectAgent();
|
|
1218
1218
|
return {
|
|
@@ -1256,7 +1256,7 @@ const harmonyPlaygroundPlatform = definePlaygroundPlatform({
|
|
|
1256
1256
|
agentFactory: async ()=>{
|
|
1257
1257
|
const device = new HarmonyDevice(selectedDeviceId);
|
|
1258
1258
|
await device.connect();
|
|
1259
|
-
return new HarmonyAgent(device);
|
|
1259
|
+
return new HarmonyAgent(device, options?.getAgentOptions?.());
|
|
1260
1260
|
},
|
|
1261
1261
|
launchOptions: {
|
|
1262
1262
|
port: availablePort,
|
package/dist/lib/bin.js
CHANGED
|
@@ -1116,7 +1116,7 @@ const harmonyPlaygroundPlatform = (0, playground_namespaceObject.definePlaygroun
|
|
|
1116
1116
|
const connectAgent = async ()=>{
|
|
1117
1117
|
const device = new device_HarmonyDevice(deviceId);
|
|
1118
1118
|
await device.connect();
|
|
1119
|
-
return new HarmonyAgent(device);
|
|
1119
|
+
return new HarmonyAgent(device, options?.getAgentOptions?.());
|
|
1120
1120
|
};
|
|
1121
1121
|
const agent = await connectAgent();
|
|
1122
1122
|
return {
|
|
@@ -1160,7 +1160,7 @@ const harmonyPlaygroundPlatform = (0, playground_namespaceObject.definePlaygroun
|
|
|
1160
1160
|
agentFactory: async ()=>{
|
|
1161
1161
|
const device = new device_HarmonyDevice(selectedDeviceId);
|
|
1162
1162
|
await device.connect();
|
|
1163
|
-
return new HarmonyAgent(device);
|
|
1163
|
+
return new HarmonyAgent(device, options?.getAgentOptions?.());
|
|
1164
1164
|
},
|
|
1165
1165
|
launchOptions: {
|
|
1166
1166
|
port: availablePort,
|
package/dist/lib/cli.js
CHANGED
|
@@ -1118,7 +1118,7 @@ class HarmonyMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools
|
|
|
1118
1118
|
const tools = new HarmonyMidsceneTools();
|
|
1119
1119
|
(0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-harmony', {
|
|
1120
1120
|
stripPrefix: 'harmony_',
|
|
1121
|
-
version: "1.10.7
|
|
1121
|
+
version: "1.10.7",
|
|
1122
1122
|
extraCommands: (0, core_namespaceObject.createReportCliCommands)()
|
|
1123
1123
|
}).catch((e)=>{
|
|
1124
1124
|
process.exit((0, cli_namespaceObject.reportCLIError)(e));
|
package/dist/lib/index.js
CHANGED
|
@@ -1258,7 +1258,7 @@ const harmonyPlaygroundPlatform = (0, playground_namespaceObject.definePlaygroun
|
|
|
1258
1258
|
const connectAgent = async ()=>{
|
|
1259
1259
|
const device = new HarmonyDevice(deviceId);
|
|
1260
1260
|
await device.connect();
|
|
1261
|
-
return new HarmonyAgent(device);
|
|
1261
|
+
return new HarmonyAgent(device, options?.getAgentOptions?.());
|
|
1262
1262
|
};
|
|
1263
1263
|
const agent = await connectAgent();
|
|
1264
1264
|
return {
|
|
@@ -1302,7 +1302,7 @@ const harmonyPlaygroundPlatform = (0, playground_namespaceObject.definePlaygroun
|
|
|
1302
1302
|
agentFactory: async ()=>{
|
|
1303
1303
|
const device = new HarmonyDevice(selectedDeviceId);
|
|
1304
1304
|
await device.connect();
|
|
1305
|
-
return new HarmonyAgent(device);
|
|
1305
|
+
return new HarmonyAgent(device, options?.getAgentOptions?.());
|
|
1306
1306
|
},
|
|
1307
1307
|
launchOptions: {
|
|
1308
1308
|
port: availablePort,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ declare interface HarmonyPlatformOptions {
|
|
|
156
156
|
deferConnection?: boolean;
|
|
157
157
|
deviceId?: string;
|
|
158
158
|
staticDir?: string;
|
|
159
|
+
getAgentOptions?: () => HarmonyAgentOpt;
|
|
159
160
|
}
|
|
160
161
|
|
|
161
162
|
export declare const harmonyPlaygroundPlatform: PlaygroundPlatformDescriptor<HarmonyPlatformOptions | undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/harmony",
|
|
3
|
-
"version": "1.10.7
|
|
3
|
+
"version": "1.10.7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/midscene.git",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@inquirer/prompts": "^7.8.6",
|
|
43
43
|
"open": "10.1.0",
|
|
44
|
-
"@midscene/core": "1.10.7
|
|
45
|
-
"@midscene/
|
|
46
|
-
"@midscene/
|
|
44
|
+
"@midscene/core": "1.10.7",
|
|
45
|
+
"@midscene/shared": "1.10.7",
|
|
46
|
+
"@midscene/playground": "1.10.7"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@rslib/core": "^0.18.3",
|
package/static/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html><head><link rel="icon" href="/favicon.ico"><title>Midscene Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.7b1abe58.js"></script><script defer src="/static/js/859.2cecd47a.js"></script><script defer src="/static/js/index.
|
|
1
|
+
<!doctype html><html><head><link rel="icon" href="/favicon.ico"><title>Midscene Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.7b1abe58.js"></script><script defer src="/static/js/859.2cecd47a.js"></script><script defer src="/static/js/index.07b9046a.js"></script><link href="/static/css/index.2b6b43ad.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|