@midscene/harmony 1.7.6-beta-20260427023820.0 → 1.7.6
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/cli.mjs +3 -5
- package/dist/es/index.mjs +2 -4
- package/dist/es/mcp-server.mjs +3 -5
- package/dist/lib/cli.js +3 -5
- package/dist/lib/index.js +2 -4
- package/dist/lib/mcp-server.js +3 -5
- package/package.json +4 -4
- package/static/index.html +1 -1
- package/static/static/js/{index.649128a6.js → index.8f7b788e.js} +16 -8
- package/static/static/js/index.8f7b788e.js.map +1 -0
- package/static/static/js/index.649128a6.js.map +0 -1
- /package/static/static/js/{index.649128a6.js.LICENSE.txt → index.8f7b788e.js.LICENSE.txt} +0 -0
package/dist/es/cli.mjs
CHANGED
|
@@ -949,12 +949,10 @@ class HarmonyMidsceneTools extends BaseMidsceneTools {
|
|
|
949
949
|
}
|
|
950
950
|
if (this.agent) return this.agent;
|
|
951
951
|
debug('Creating Harmony agent with deviceId:', deviceId || 'auto-detect');
|
|
952
|
-
const
|
|
952
|
+
const reportOptions = this.readCliReportAgentOptions();
|
|
953
953
|
const agent = await agentFromHdcDevice(deviceId, {
|
|
954
954
|
autoDismissKeyboard: false,
|
|
955
|
-
...
|
|
956
|
-
reportFileName
|
|
957
|
-
} : {}
|
|
955
|
+
...reportOptions ?? {}
|
|
958
956
|
});
|
|
959
957
|
this.agent = agent;
|
|
960
958
|
return agent;
|
|
@@ -1016,7 +1014,7 @@ class HarmonyMidsceneTools extends BaseMidsceneTools {
|
|
|
1016
1014
|
const tools = new HarmonyMidsceneTools();
|
|
1017
1015
|
runToolsCLI(tools, 'midscene-harmony', {
|
|
1018
1016
|
stripPrefix: 'harmony_',
|
|
1019
|
-
version: "1.7.6
|
|
1017
|
+
version: "1.7.6",
|
|
1020
1018
|
extraCommands: createReportCliCommands()
|
|
1021
1019
|
}).catch((e)=>{
|
|
1022
1020
|
process.exit(reportCLIError(e));
|
package/dist/es/index.mjs
CHANGED
|
@@ -954,12 +954,10 @@ class HarmonyMidsceneTools extends BaseMidsceneTools {
|
|
|
954
954
|
}
|
|
955
955
|
if (this.agent) return this.agent;
|
|
956
956
|
debug('Creating Harmony agent with deviceId:', deviceId || 'auto-detect');
|
|
957
|
-
const
|
|
957
|
+
const reportOptions = this.readCliReportAgentOptions();
|
|
958
958
|
const agent = await agentFromHdcDevice(deviceId, {
|
|
959
959
|
autoDismissKeyboard: false,
|
|
960
|
-
...
|
|
961
|
-
reportFileName
|
|
962
|
-
} : {}
|
|
960
|
+
...reportOptions ?? {}
|
|
963
961
|
});
|
|
964
962
|
this.agent = agent;
|
|
965
963
|
return agent;
|
package/dist/es/mcp-server.mjs
CHANGED
|
@@ -949,12 +949,10 @@ class HarmonyMidsceneTools extends BaseMidsceneTools {
|
|
|
949
949
|
}
|
|
950
950
|
if (this.agent) return this.agent;
|
|
951
951
|
debug('Creating Harmony agent with deviceId:', deviceId || 'auto-detect');
|
|
952
|
-
const
|
|
952
|
+
const reportOptions = this.readCliReportAgentOptions();
|
|
953
953
|
const agent = await agentFromHdcDevice(deviceId, {
|
|
954
954
|
autoDismissKeyboard: false,
|
|
955
|
-
...
|
|
956
|
-
reportFileName
|
|
957
|
-
} : {}
|
|
955
|
+
...reportOptions ?? {}
|
|
958
956
|
});
|
|
959
957
|
this.agent = agent;
|
|
960
958
|
return agent;
|
|
@@ -1020,7 +1018,7 @@ class HarmonyMCPServer extends BaseMCPServer {
|
|
|
1020
1018
|
constructor(toolsManager){
|
|
1021
1019
|
super({
|
|
1022
1020
|
name: '@midscene/harmony-mcp',
|
|
1023
|
-
version: "1.7.6
|
|
1021
|
+
version: "1.7.6",
|
|
1024
1022
|
description: 'Control the HarmonyOS device using natural language commands'
|
|
1025
1023
|
}, toolsManager);
|
|
1026
1024
|
}
|
package/dist/lib/cli.js
CHANGED
|
@@ -974,12 +974,10 @@ class HarmonyMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools
|
|
|
974
974
|
}
|
|
975
975
|
if (this.agent) return this.agent;
|
|
976
976
|
debug('Creating Harmony agent with deviceId:', deviceId || 'auto-detect');
|
|
977
|
-
const
|
|
977
|
+
const reportOptions = this.readCliReportAgentOptions();
|
|
978
978
|
const agent = await agentFromHdcDevice(deviceId, {
|
|
979
979
|
autoDismissKeyboard: false,
|
|
980
|
-
...
|
|
981
|
-
reportFileName
|
|
982
|
-
} : {}
|
|
980
|
+
...reportOptions ?? {}
|
|
983
981
|
});
|
|
984
982
|
this.agent = agent;
|
|
985
983
|
return agent;
|
|
@@ -1041,7 +1039,7 @@ class HarmonyMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools
|
|
|
1041
1039
|
const tools = new HarmonyMidsceneTools();
|
|
1042
1040
|
(0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-harmony', {
|
|
1043
1041
|
stripPrefix: 'harmony_',
|
|
1044
|
-
version: "1.7.6
|
|
1042
|
+
version: "1.7.6",
|
|
1045
1043
|
extraCommands: (0, core_namespaceObject.createReportCliCommands)()
|
|
1046
1044
|
}).catch((e)=>{
|
|
1047
1045
|
process.exit((0, cli_namespaceObject.reportCLIError)(e));
|
package/dist/lib/index.js
CHANGED
|
@@ -993,12 +993,10 @@ class HarmonyMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools
|
|
|
993
993
|
}
|
|
994
994
|
if (this.agent) return this.agent;
|
|
995
995
|
debug('Creating Harmony agent with deviceId:', deviceId || 'auto-detect');
|
|
996
|
-
const
|
|
996
|
+
const reportOptions = this.readCliReportAgentOptions();
|
|
997
997
|
const agent = await agentFromHdcDevice(deviceId, {
|
|
998
998
|
autoDismissKeyboard: false,
|
|
999
|
-
...
|
|
1000
|
-
reportFileName
|
|
1001
|
-
} : {}
|
|
999
|
+
...reportOptions ?? {}
|
|
1002
1000
|
});
|
|
1003
1001
|
this.agent = agent;
|
|
1004
1002
|
return agent;
|
package/dist/lib/mcp-server.js
CHANGED
|
@@ -990,12 +990,10 @@ class HarmonyMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools
|
|
|
990
990
|
}
|
|
991
991
|
if (this.agent) return this.agent;
|
|
992
992
|
debug('Creating Harmony agent with deviceId:', deviceId || 'auto-detect');
|
|
993
|
-
const
|
|
993
|
+
const reportOptions = this.readCliReportAgentOptions();
|
|
994
994
|
const agent = await agentFromHdcDevice(deviceId, {
|
|
995
995
|
autoDismissKeyboard: false,
|
|
996
|
-
...
|
|
997
|
-
reportFileName
|
|
998
|
-
} : {}
|
|
996
|
+
...reportOptions ?? {}
|
|
999
997
|
});
|
|
1000
998
|
this.agent = agent;
|
|
1001
999
|
return agent;
|
|
@@ -1061,7 +1059,7 @@ class HarmonyMCPServer extends mcp_namespaceObject.BaseMCPServer {
|
|
|
1061
1059
|
constructor(toolsManager){
|
|
1062
1060
|
super({
|
|
1063
1061
|
name: '@midscene/harmony-mcp',
|
|
1064
|
-
version: "1.7.6
|
|
1062
|
+
version: "1.7.6",
|
|
1065
1063
|
description: 'Control the HarmonyOS device using natural language commands'
|
|
1066
1064
|
}, toolsManager);
|
|
1067
1065
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/harmony",
|
|
3
|
-
"version": "1.7.6
|
|
3
|
+
"version": "1.7.6",
|
|
4
4
|
"description": "HarmonyOS automation library for Midscene",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"HarmonyOS UI automation",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@inquirer/prompts": "^7.8.6",
|
|
43
43
|
"open": "10.1.0",
|
|
44
|
-
"@midscene/core": "1.7.6
|
|
45
|
-
"@midscene/
|
|
46
|
-
"@midscene/
|
|
44
|
+
"@midscene/core": "1.7.6",
|
|
45
|
+
"@midscene/playground": "1.7.6",
|
|
46
|
+
"@midscene/shared": "1.7.6"
|
|
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/883.516361ae.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/883.516361ae.js"></script><script defer src="/static/js/index.8f7b788e.js"></script><link href="/static/css/index.dc500f18.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|