@midscene/android 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/dist/es/cli.mjs
CHANGED
|
@@ -1945,12 +1945,10 @@ class AndroidMidsceneTools extends BaseMidsceneTools {
|
|
|
1945
1945
|
}
|
|
1946
1946
|
if (this.agent) return this.agent;
|
|
1947
1947
|
debug('Creating Android agent with deviceId:', deviceId || 'auto-detect');
|
|
1948
|
-
const
|
|
1948
|
+
const reportOptions = this.readCliReportAgentOptions();
|
|
1949
1949
|
const agent = await agentFromAdbDevice(deviceId, {
|
|
1950
1950
|
autoDismissKeyboard: false,
|
|
1951
|
-
...
|
|
1952
|
-
reportFileName
|
|
1953
|
-
} : {}
|
|
1951
|
+
...reportOptions ?? {}
|
|
1954
1952
|
});
|
|
1955
1953
|
this.agent = agent;
|
|
1956
1954
|
return agent;
|
|
@@ -2012,7 +2010,7 @@ class AndroidMidsceneTools extends BaseMidsceneTools {
|
|
|
2012
2010
|
const tools = new AndroidMidsceneTools();
|
|
2013
2011
|
runToolsCLI(tools, 'midscene-android', {
|
|
2014
2012
|
stripPrefix: 'android_',
|
|
2015
|
-
version: "1.7.6
|
|
2013
|
+
version: "1.7.6",
|
|
2016
2014
|
extraCommands: createReportCliCommands()
|
|
2017
2015
|
}).catch((e)=>{
|
|
2018
2016
|
process.exit(reportCLIError(e));
|
package/dist/es/index.mjs
CHANGED
|
@@ -2011,12 +2011,10 @@ class AndroidMidsceneTools extends BaseMidsceneTools {
|
|
|
2011
2011
|
}
|
|
2012
2012
|
if (this.agent) return this.agent;
|
|
2013
2013
|
debug('Creating Android agent with deviceId:', deviceId || 'auto-detect');
|
|
2014
|
-
const
|
|
2014
|
+
const reportOptions = this.readCliReportAgentOptions();
|
|
2015
2015
|
const agent = await agentFromAdbDevice(deviceId, {
|
|
2016
2016
|
autoDismissKeyboard: false,
|
|
2017
|
-
...
|
|
2018
|
-
reportFileName
|
|
2019
|
-
} : {}
|
|
2017
|
+
...reportOptions ?? {}
|
|
2020
2018
|
});
|
|
2021
2019
|
this.agent = agent;
|
|
2022
2020
|
return agent;
|
package/dist/es/mcp-server.mjs
CHANGED
|
@@ -1945,12 +1945,10 @@ class AndroidMidsceneTools extends BaseMidsceneTools {
|
|
|
1945
1945
|
}
|
|
1946
1946
|
if (this.agent) return this.agent;
|
|
1947
1947
|
debug('Creating Android agent with deviceId:', deviceId || 'auto-detect');
|
|
1948
|
-
const
|
|
1948
|
+
const reportOptions = this.readCliReportAgentOptions();
|
|
1949
1949
|
const agent = await agentFromAdbDevice(deviceId, {
|
|
1950
1950
|
autoDismissKeyboard: false,
|
|
1951
|
-
...
|
|
1952
|
-
reportFileName
|
|
1953
|
-
} : {}
|
|
1951
|
+
...reportOptions ?? {}
|
|
1954
1952
|
});
|
|
1955
1953
|
this.agent = agent;
|
|
1956
1954
|
return agent;
|
|
@@ -2016,7 +2014,7 @@ class AndroidMCPServer extends BaseMCPServer {
|
|
|
2016
2014
|
constructor(toolsManager){
|
|
2017
2015
|
super({
|
|
2018
2016
|
name: '@midscene/android-mcp',
|
|
2019
|
-
version: "1.7.6
|
|
2017
|
+
version: "1.7.6",
|
|
2020
2018
|
description: 'Control the Android device using natural language commands'
|
|
2021
2019
|
}, toolsManager);
|
|
2022
2020
|
}
|
package/dist/lib/cli.js
CHANGED
|
@@ -1960,12 +1960,10 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
1960
1960
|
}
|
|
1961
1961
|
if (this.agent) return this.agent;
|
|
1962
1962
|
debug('Creating Android agent with deviceId:', deviceId || 'auto-detect');
|
|
1963
|
-
const
|
|
1963
|
+
const reportOptions = this.readCliReportAgentOptions();
|
|
1964
1964
|
const agent = await agentFromAdbDevice(deviceId, {
|
|
1965
1965
|
autoDismissKeyboard: false,
|
|
1966
|
-
...
|
|
1967
|
-
reportFileName
|
|
1968
|
-
} : {}
|
|
1966
|
+
...reportOptions ?? {}
|
|
1969
1967
|
});
|
|
1970
1968
|
this.agent = agent;
|
|
1971
1969
|
return agent;
|
|
@@ -2027,7 +2025,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
2027
2025
|
const tools = new AndroidMidsceneTools();
|
|
2028
2026
|
(0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-android', {
|
|
2029
2027
|
stripPrefix: 'android_',
|
|
2030
|
-
version: "1.7.6
|
|
2028
|
+
version: "1.7.6",
|
|
2031
2029
|
extraCommands: (0, core_namespaceObject.createReportCliCommands)()
|
|
2032
2030
|
}).catch((e)=>{
|
|
2033
2031
|
process.exit((0, cli_namespaceObject.reportCLIError)(e));
|
package/dist/lib/index.js
CHANGED
|
@@ -2047,12 +2047,10 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
2047
2047
|
}
|
|
2048
2048
|
if (this.agent) return this.agent;
|
|
2049
2049
|
debug('Creating Android agent with deviceId:', deviceId || 'auto-detect');
|
|
2050
|
-
const
|
|
2050
|
+
const reportOptions = this.readCliReportAgentOptions();
|
|
2051
2051
|
const agent = await agentFromAdbDevice(deviceId, {
|
|
2052
2052
|
autoDismissKeyboard: false,
|
|
2053
|
-
...
|
|
2054
|
-
reportFileName
|
|
2055
|
-
} : {}
|
|
2053
|
+
...reportOptions ?? {}
|
|
2056
2054
|
});
|
|
2057
2055
|
this.agent = agent;
|
|
2058
2056
|
return agent;
|
package/dist/lib/mcp-server.js
CHANGED
|
@@ -1976,12 +1976,10 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
1976
1976
|
}
|
|
1977
1977
|
if (this.agent) return this.agent;
|
|
1978
1978
|
debug('Creating Android agent with deviceId:', deviceId || 'auto-detect');
|
|
1979
|
-
const
|
|
1979
|
+
const reportOptions = this.readCliReportAgentOptions();
|
|
1980
1980
|
const agent = await agentFromAdbDevice(deviceId, {
|
|
1981
1981
|
autoDismissKeyboard: false,
|
|
1982
|
-
...
|
|
1983
|
-
reportFileName
|
|
1984
|
-
} : {}
|
|
1982
|
+
...reportOptions ?? {}
|
|
1985
1983
|
});
|
|
1986
1984
|
this.agent = agent;
|
|
1987
1985
|
return agent;
|
|
@@ -2047,7 +2045,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
2047
2045
|
constructor(toolsManager){
|
|
2048
2046
|
super({
|
|
2049
2047
|
name: '@midscene/android-mcp',
|
|
2050
|
-
version: "1.7.6
|
|
2048
|
+
version: "1.7.6",
|
|
2051
2049
|
description: 'Control the Android device using natural language commands'
|
|
2052
2050
|
}, toolsManager);
|
|
2053
2051
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/android",
|
|
3
|
-
"version": "1.7.6
|
|
3
|
+
"version": "1.7.6",
|
|
4
4
|
"description": "Android automation library for Midscene",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Android UI automation",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@yume-chan/stream-extra": "2.1.0",
|
|
42
42
|
"appium-adb": "12.12.1",
|
|
43
43
|
"sharp": "^0.34.3",
|
|
44
|
-
"@midscene/core": "1.7.6
|
|
45
|
-
"@midscene/shared": "1.7.6
|
|
44
|
+
"@midscene/core": "1.7.6",
|
|
45
|
+
"@midscene/shared": "1.7.6"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
48
|
"@ffmpeg-installer/ffmpeg": "^1.1.0"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"undici": "^6.0.0",
|
|
57
57
|
"vitest": "3.0.5",
|
|
58
58
|
"zod": "^3.25.1",
|
|
59
|
-
"@midscene/playground": "1.7.6
|
|
59
|
+
"@midscene/playground": "1.7.6"
|
|
60
60
|
},
|
|
61
61
|
"license": "MIT",
|
|
62
62
|
"scripts": {
|