@midscene/harmony 1.14.0 → 1.15.0
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 +3 -3
- package/dist/es/cli.mjs +4 -4
- package/dist/es/index.mjs +3 -3
- package/dist/lib/bin.js +3 -3
- package/dist/lib/cli.js +4 -4
- package/dist/lib/index.js +3 -3
- package/package.json +4 -4
- package/static/index.html +1 -1
- package/static/static/js/index.4a512422.js +875 -0
- package/static/static/js/index.4a512422.js.map +1 -0
- package/static/static/js/index.452c709b.js +0 -875
- package/static/static/js/index.452c709b.js.map +0 -1
- /package/static/static/js/{index.452c709b.js.LICENSE.txt → index.4a512422.js.LICENSE.txt} +0 -0
package/dist/es/bin.mjs
CHANGED
|
@@ -495,7 +495,7 @@ class device_HarmonyDevice {
|
|
|
495
495
|
...customActions
|
|
496
496
|
];
|
|
497
497
|
}
|
|
498
|
-
async performActionScroll(param) {
|
|
498
|
+
async performActionScroll(param, opts) {
|
|
499
499
|
const element = param.locate;
|
|
500
500
|
const startingPoint = element ? {
|
|
501
501
|
left: element.center[0],
|
|
@@ -513,7 +513,7 @@ class device_HarmonyDevice {
|
|
|
513
513
|
else if ('right' === param.direction) await this.scrollRight(param.distance ?? void 0, startingPoint);
|
|
514
514
|
else throw new Error(`Unknown scroll direction: ${param.direction}`);
|
|
515
515
|
else await this.scrollDown(param?.distance ?? void 0, startingPoint);
|
|
516
|
-
await sleep(500);
|
|
516
|
+
if (!opts?.skipDefaultWait) await sleep(500);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
describe() {
|
|
@@ -936,7 +936,7 @@ class device_HarmonyDevice {
|
|
|
936
936
|
}
|
|
937
937
|
},
|
|
938
938
|
scroll: {
|
|
939
|
-
scroll: (param)=>this.performActionScroll(param)
|
|
939
|
+
scroll: (param, opts)=>this.performActionScroll(param, opts)
|
|
940
940
|
}
|
|
941
941
|
});
|
|
942
942
|
device_define_property(this, "remoteScreenshotPath", '/data/local/tmp/ms_screen.jpeg');
|
package/dist/es/cli.mjs
CHANGED
|
@@ -493,7 +493,7 @@ class HarmonyDevice {
|
|
|
493
493
|
...customActions
|
|
494
494
|
];
|
|
495
495
|
}
|
|
496
|
-
async performActionScroll(param) {
|
|
496
|
+
async performActionScroll(param, opts) {
|
|
497
497
|
const element = param.locate;
|
|
498
498
|
const startingPoint = element ? {
|
|
499
499
|
left: element.center[0],
|
|
@@ -511,7 +511,7 @@ class HarmonyDevice {
|
|
|
511
511
|
else if ('right' === param.direction) await this.scrollRight(param.distance ?? void 0, startingPoint);
|
|
512
512
|
else throw new Error(`Unknown scroll direction: ${param.direction}`);
|
|
513
513
|
else await this.scrollDown(param?.distance ?? void 0, startingPoint);
|
|
514
|
-
await sleep(500);
|
|
514
|
+
if (!opts?.skipDefaultWait) await sleep(500);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
describe() {
|
|
@@ -934,7 +934,7 @@ class HarmonyDevice {
|
|
|
934
934
|
}
|
|
935
935
|
},
|
|
936
936
|
scroll: {
|
|
937
|
-
scroll: (param)=>this.performActionScroll(param)
|
|
937
|
+
scroll: (param, opts)=>this.performActionScroll(param, opts)
|
|
938
938
|
}
|
|
939
939
|
});
|
|
940
940
|
device_define_property(this, "remoteScreenshotPath", '/data/local/tmp/ms_screen.jpeg');
|
|
@@ -1306,7 +1306,7 @@ class HarmonyMidsceneTools extends BaseMidsceneTools {
|
|
|
1306
1306
|
const tools = new HarmonyMidsceneTools();
|
|
1307
1307
|
runToolsCLI(tools, 'midscene-harmony', {
|
|
1308
1308
|
stripPrefix: 'harmony_',
|
|
1309
|
-
version: "1.
|
|
1309
|
+
version: "1.15.0",
|
|
1310
1310
|
extraCommands: createReportCliCommands()
|
|
1311
1311
|
}).catch((e)=>{
|
|
1312
1312
|
process.exit(reportCLIError(e));
|
package/dist/es/index.mjs
CHANGED
|
@@ -464,7 +464,7 @@ class HarmonyDevice {
|
|
|
464
464
|
...customActions
|
|
465
465
|
];
|
|
466
466
|
}
|
|
467
|
-
async performActionScroll(param) {
|
|
467
|
+
async performActionScroll(param, opts) {
|
|
468
468
|
const element = param.locate;
|
|
469
469
|
const startingPoint = element ? {
|
|
470
470
|
left: element.center[0],
|
|
@@ -482,7 +482,7 @@ class HarmonyDevice {
|
|
|
482
482
|
else if ('right' === param.direction) await this.scrollRight(param.distance ?? void 0, startingPoint);
|
|
483
483
|
else throw new Error(`Unknown scroll direction: ${param.direction}`);
|
|
484
484
|
else await this.scrollDown(param?.distance ?? void 0, startingPoint);
|
|
485
|
-
await sleep(500);
|
|
485
|
+
if (!opts?.skipDefaultWait) await sleep(500);
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
describe() {
|
|
@@ -905,7 +905,7 @@ class HarmonyDevice {
|
|
|
905
905
|
}
|
|
906
906
|
},
|
|
907
907
|
scroll: {
|
|
908
|
-
scroll: (param)=>this.performActionScroll(param)
|
|
908
|
+
scroll: (param, opts)=>this.performActionScroll(param, opts)
|
|
909
909
|
}
|
|
910
910
|
});
|
|
911
911
|
device_define_property(this, "remoteScreenshotPath", '/data/local/tmp/ms_screen.jpeg');
|
package/dist/lib/bin.js
CHANGED
|
@@ -635,7 +635,7 @@ var __webpack_exports__ = {};
|
|
|
635
635
|
...customActions
|
|
636
636
|
];
|
|
637
637
|
}
|
|
638
|
-
async performActionScroll(param) {
|
|
638
|
+
async performActionScroll(param, opts) {
|
|
639
639
|
const element = param.locate;
|
|
640
640
|
const startingPoint = element ? {
|
|
641
641
|
left: element.center[0],
|
|
@@ -653,7 +653,7 @@ var __webpack_exports__ = {};
|
|
|
653
653
|
else if ('right' === param.direction) await this.scrollRight(param.distance ?? void 0, startingPoint);
|
|
654
654
|
else throw new Error(`Unknown scroll direction: ${param.direction}`);
|
|
655
655
|
else await this.scrollDown(param?.distance ?? void 0, startingPoint);
|
|
656
|
-
await (0, core_utils_namespaceObject.sleep)(500);
|
|
656
|
+
if (!opts?.skipDefaultWait) await (0, core_utils_namespaceObject.sleep)(500);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
describe() {
|
|
@@ -1076,7 +1076,7 @@ var __webpack_exports__ = {};
|
|
|
1076
1076
|
}
|
|
1077
1077
|
},
|
|
1078
1078
|
scroll: {
|
|
1079
|
-
scroll: (param)=>this.performActionScroll(param)
|
|
1079
|
+
scroll: (param, opts)=>this.performActionScroll(param, opts)
|
|
1080
1080
|
}
|
|
1081
1081
|
});
|
|
1082
1082
|
device_define_property(this, "remoteScreenshotPath", '/data/local/tmp/ms_screen.jpeg');
|
package/dist/lib/cli.js
CHANGED
|
@@ -632,7 +632,7 @@ var __webpack_exports__ = {};
|
|
|
632
632
|
...customActions
|
|
633
633
|
];
|
|
634
634
|
}
|
|
635
|
-
async performActionScroll(param) {
|
|
635
|
+
async performActionScroll(param, opts) {
|
|
636
636
|
const element = param.locate;
|
|
637
637
|
const startingPoint = element ? {
|
|
638
638
|
left: element.center[0],
|
|
@@ -650,7 +650,7 @@ var __webpack_exports__ = {};
|
|
|
650
650
|
else if ('right' === param.direction) await this.scrollRight(param.distance ?? void 0, startingPoint);
|
|
651
651
|
else throw new Error(`Unknown scroll direction: ${param.direction}`);
|
|
652
652
|
else await this.scrollDown(param?.distance ?? void 0, startingPoint);
|
|
653
|
-
await (0, core_utils_namespaceObject.sleep)(500);
|
|
653
|
+
if (!opts?.skipDefaultWait) await (0, core_utils_namespaceObject.sleep)(500);
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
describe() {
|
|
@@ -1073,7 +1073,7 @@ var __webpack_exports__ = {};
|
|
|
1073
1073
|
}
|
|
1074
1074
|
},
|
|
1075
1075
|
scroll: {
|
|
1076
|
-
scroll: (param)=>this.performActionScroll(param)
|
|
1076
|
+
scroll: (param, opts)=>this.performActionScroll(param, opts)
|
|
1077
1077
|
}
|
|
1078
1078
|
});
|
|
1079
1079
|
device_define_property(this, "remoteScreenshotPath", '/data/local/tmp/ms_screen.jpeg');
|
|
@@ -1349,7 +1349,7 @@ var __webpack_exports__ = {};
|
|
|
1349
1349
|
const tools = new HarmonyMidsceneTools();
|
|
1350
1350
|
(0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-harmony', {
|
|
1351
1351
|
stripPrefix: 'harmony_',
|
|
1352
|
-
version: "1.
|
|
1352
|
+
version: "1.15.0",
|
|
1353
1353
|
extraCommands: (0, core_namespaceObject.createReportCliCommands)()
|
|
1354
1354
|
}).catch((e)=>{
|
|
1355
1355
|
process.exit((0, cli_namespaceObject.reportCLIError)(e));
|
package/dist/lib/index.js
CHANGED
|
@@ -621,7 +621,7 @@ var __webpack_exports__ = {};
|
|
|
621
621
|
...customActions
|
|
622
622
|
];
|
|
623
623
|
}
|
|
624
|
-
async performActionScroll(param) {
|
|
624
|
+
async performActionScroll(param, opts) {
|
|
625
625
|
const element = param.locate;
|
|
626
626
|
const startingPoint = element ? {
|
|
627
627
|
left: element.center[0],
|
|
@@ -639,7 +639,7 @@ var __webpack_exports__ = {};
|
|
|
639
639
|
else if ('right' === param.direction) await this.scrollRight(param.distance ?? void 0, startingPoint);
|
|
640
640
|
else throw new Error(`Unknown scroll direction: ${param.direction}`);
|
|
641
641
|
else await this.scrollDown(param?.distance ?? void 0, startingPoint);
|
|
642
|
-
await (0, utils_namespaceObject.sleep)(500);
|
|
642
|
+
if (!opts?.skipDefaultWait) await (0, utils_namespaceObject.sleep)(500);
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
describe() {
|
|
@@ -1062,7 +1062,7 @@ var __webpack_exports__ = {};
|
|
|
1062
1062
|
}
|
|
1063
1063
|
},
|
|
1064
1064
|
scroll: {
|
|
1065
|
-
scroll: (param)=>this.performActionScroll(param)
|
|
1065
|
+
scroll: (param, opts)=>this.performActionScroll(param, opts)
|
|
1066
1066
|
}
|
|
1067
1067
|
});
|
|
1068
1068
|
device_define_property(this, "remoteScreenshotPath", '/data/local/tmp/ms_screen.jpeg');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/harmony",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/midscene.git",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"@inquirer/prompts": "^7.8.6",
|
|
48
48
|
"open": "10.1.0",
|
|
49
49
|
"zod": "^3.25.1",
|
|
50
|
-
"@midscene/
|
|
51
|
-
"@midscene/
|
|
52
|
-
"@midscene/shared": "1.
|
|
50
|
+
"@midscene/playground": "1.15.0",
|
|
51
|
+
"@midscene/core": "1.15.0",
|
|
52
|
+
"@midscene/shared": "1.15.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@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.8bb5dc6e.js"></script><script defer src="/static/js/652.6a7cf351.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.8bb5dc6e.js"></script><script defer src="/static/js/652.6a7cf351.js"></script><script defer src="/static/js/index.4a512422.js"></script><link href="/static/css/index.67caac18.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|