@aiscene/android 1.7.12 → 1.7.14
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 +10 -3
- package/dist/es/index.mjs +9 -2
- package/dist/es/mcp-server.mjs +10 -3
- package/dist/lib/cli.js +10 -3
- package/dist/lib/index.js +9 -2
- package/dist/lib/mcp-server.js +10 -3
- package/package.json +2 -2
package/dist/es/cli.mjs
CHANGED
|
@@ -14267,6 +14267,13 @@ If a key specifies a JSON data type (such as Number, String, Boolean, Object, Ar
|
|
|
14267
14267
|
|
|
14268
14268
|
If the user provides multiple reference images, please carefully review the reference images with the screenshot and provide the correct answer for <DATA_DEMAND>.
|
|
14269
14269
|
|
|
14270
|
+
IMPORTANT - Boolean Judgment Rules:
|
|
14271
|
+
- When judging Boolean questions about UI elements, you MUST ONLY judge based on EXACT text or clear visual elements visible in the screenshot.
|
|
14272
|
+
- If there is ONLY an icon WITHOUT text label, you CANNOT infer its function. Return false.
|
|
14273
|
+
- If you need to guess or infer what an icon means, return false.
|
|
14274
|
+
- Do NOT assume an icon represents a feature even if it seems likely.
|
|
14275
|
+
- For example: "页面存在继续咨询按钮" - if you only see an icon without "继续咨询" text, return false.
|
|
14276
|
+
|
|
14270
14277
|
|
|
14271
14278
|
Return in the following XML format:
|
|
14272
14279
|
<thought>the thinking process of the extraction, less than 300 words. Use ${preferredLanguage} in this field.</thought>
|
|
@@ -17608,7 +17615,7 @@ async function utils_sleep(ms) {
|
|
|
17608
17615
|
return new Promise((resolve)=>setTimeout(resolve, ms));
|
|
17609
17616
|
}
|
|
17610
17617
|
function getVersion() {
|
|
17611
|
-
return "1.7.
|
|
17618
|
+
return "1.7.3";
|
|
17612
17619
|
}
|
|
17613
17620
|
function debugLog(...message) {
|
|
17614
17621
|
const debugMode = process.env[MIDSCENE_DEBUG_MODE];
|
|
@@ -20834,7 +20841,7 @@ async function matchElementFromCache(context, cacheEntry, cachePrompt, cacheable
|
|
|
20834
20841
|
return;
|
|
20835
20842
|
}
|
|
20836
20843
|
}
|
|
20837
|
-
const getMidsceneVersion = ()=>"1.7.
|
|
20844
|
+
const getMidsceneVersion = ()=>"1.7.3";
|
|
20838
20845
|
const parsePrompt = (prompt)=>{
|
|
20839
20846
|
if ('string' == typeof prompt) return {
|
|
20840
20847
|
textPrompt: prompt,
|
|
@@ -24162,7 +24169,7 @@ class AndroidMidsceneTools extends BaseMidsceneTools {
|
|
|
24162
24169
|
const cli_tools = new AndroidMidsceneTools();
|
|
24163
24170
|
runToolsCLI(cli_tools, 'midscene-android', {
|
|
24164
24171
|
stripPrefix: 'android_',
|
|
24165
|
-
version: "1.7.
|
|
24172
|
+
version: "1.7.13"
|
|
24166
24173
|
}).catch((e)=>{
|
|
24167
24174
|
if (!(e instanceof CLIError)) console.error(e);
|
|
24168
24175
|
process.exit(e instanceof CLIError ? e.exitCode : 1);
|
package/dist/es/index.mjs
CHANGED
|
@@ -14269,6 +14269,13 @@ If a key specifies a JSON data type (such as Number, String, Boolean, Object, Ar
|
|
|
14269
14269
|
|
|
14270
14270
|
If the user provides multiple reference images, please carefully review the reference images with the screenshot and provide the correct answer for <DATA_DEMAND>.
|
|
14271
14271
|
|
|
14272
|
+
IMPORTANT - Boolean Judgment Rules:
|
|
14273
|
+
- When judging Boolean questions about UI elements, you MUST ONLY judge based on EXACT text or clear visual elements visible in the screenshot.
|
|
14274
|
+
- If there is ONLY an icon WITHOUT text label, you CANNOT infer its function. Return false.
|
|
14275
|
+
- If you need to guess or infer what an icon means, return false.
|
|
14276
|
+
- Do NOT assume an icon represents a feature even if it seems likely.
|
|
14277
|
+
- For example: "页面存在继续咨询按钮" - if you only see an icon without "继续咨询" text, return false.
|
|
14278
|
+
|
|
14272
14279
|
|
|
14273
14280
|
Return in the following XML format:
|
|
14274
14281
|
<thought>the thinking process of the extraction, less than 300 words. Use ${preferredLanguage} in this field.</thought>
|
|
@@ -17608,7 +17615,7 @@ async function utils_sleep(ms) {
|
|
|
17608
17615
|
return new Promise((resolve)=>setTimeout(resolve, ms));
|
|
17609
17616
|
}
|
|
17610
17617
|
function getVersion() {
|
|
17611
|
-
return "1.7.
|
|
17618
|
+
return "1.7.3";
|
|
17612
17619
|
}
|
|
17613
17620
|
function debugLog(...message) {
|
|
17614
17621
|
const debugMode = process.env[MIDSCENE_DEBUG_MODE];
|
|
@@ -20834,7 +20841,7 @@ async function matchElementFromCache(context, cacheEntry, cachePrompt, cacheable
|
|
|
20834
20841
|
return;
|
|
20835
20842
|
}
|
|
20836
20843
|
}
|
|
20837
|
-
const getMidsceneVersion = ()=>"1.7.
|
|
20844
|
+
const getMidsceneVersion = ()=>"1.7.3";
|
|
20838
20845
|
const parsePrompt = (prompt)=>{
|
|
20839
20846
|
if ('string' == typeof prompt) return {
|
|
20840
20847
|
textPrompt: prompt,
|
package/dist/es/mcp-server.mjs
CHANGED
|
@@ -14466,6 +14466,13 @@ If a key specifies a JSON data type (such as Number, String, Boolean, Object, Ar
|
|
|
14466
14466
|
|
|
14467
14467
|
If the user provides multiple reference images, please carefully review the reference images with the screenshot and provide the correct answer for <DATA_DEMAND>.
|
|
14468
14468
|
|
|
14469
|
+
IMPORTANT - Boolean Judgment Rules:
|
|
14470
|
+
- When judging Boolean questions about UI elements, you MUST ONLY judge based on EXACT text or clear visual elements visible in the screenshot.
|
|
14471
|
+
- If there is ONLY an icon WITHOUT text label, you CANNOT infer its function. Return false.
|
|
14472
|
+
- If you need to guess or infer what an icon means, return false.
|
|
14473
|
+
- Do NOT assume an icon represents a feature even if it seems likely.
|
|
14474
|
+
- For example: "页面存在继续咨询按钮" - if you only see an icon without "继续咨询" text, return false.
|
|
14475
|
+
|
|
14469
14476
|
|
|
14470
14477
|
Return in the following XML format:
|
|
14471
14478
|
<thought>the thinking process of the extraction, less than 300 words. Use ${preferredLanguage} in this field.</thought>
|
|
@@ -19460,7 +19467,7 @@ async function utils_sleep(ms) {
|
|
|
19460
19467
|
return new Promise((resolve)=>setTimeout(resolve, ms));
|
|
19461
19468
|
}
|
|
19462
19469
|
function getVersion() {
|
|
19463
|
-
return "1.7.
|
|
19470
|
+
return "1.7.3";
|
|
19464
19471
|
}
|
|
19465
19472
|
function debugLog(...message) {
|
|
19466
19473
|
const debugMode = process.env[MIDSCENE_DEBUG_MODE];
|
|
@@ -20569,7 +20576,7 @@ async function matchElementFromCache(context, cacheEntry, cachePrompt, cacheable
|
|
|
20569
20576
|
return;
|
|
20570
20577
|
}
|
|
20571
20578
|
}
|
|
20572
|
-
const getMidsceneVersion = ()=>"1.7.
|
|
20579
|
+
const getMidsceneVersion = ()=>"1.7.3";
|
|
20573
20580
|
const parsePrompt = (prompt)=>{
|
|
20574
20581
|
if ('string' == typeof prompt) return {
|
|
20575
20582
|
textPrompt: prompt,
|
|
@@ -24165,7 +24172,7 @@ class AndroidMCPServer extends BaseMCPServer {
|
|
|
24165
24172
|
constructor(toolsManager){
|
|
24166
24173
|
super({
|
|
24167
24174
|
name: '@midscene/android-mcp',
|
|
24168
|
-
version: "1.7.
|
|
24175
|
+
version: "1.7.13",
|
|
24169
24176
|
description: 'Control the Android device using natural language commands'
|
|
24170
24177
|
}, toolsManager);
|
|
24171
24178
|
}
|
package/dist/lib/cli.js
CHANGED
|
@@ -14314,6 +14314,13 @@ If a key specifies a JSON data type (such as Number, String, Boolean, Object, Ar
|
|
|
14314
14314
|
|
|
14315
14315
|
If the user provides multiple reference images, please carefully review the reference images with the screenshot and provide the correct answer for <DATA_DEMAND>.
|
|
14316
14316
|
|
|
14317
|
+
IMPORTANT - Boolean Judgment Rules:
|
|
14318
|
+
- When judging Boolean questions about UI elements, you MUST ONLY judge based on EXACT text or clear visual elements visible in the screenshot.
|
|
14319
|
+
- If there is ONLY an icon WITHOUT text label, you CANNOT infer its function. Return false.
|
|
14320
|
+
- If you need to guess or infer what an icon means, return false.
|
|
14321
|
+
- Do NOT assume an icon represents a feature even if it seems likely.
|
|
14322
|
+
- For example: "页面存在继续咨询按钮" - if you only see an icon without "继续咨询" text, return false.
|
|
14323
|
+
|
|
14317
14324
|
|
|
14318
14325
|
Return in the following XML format:
|
|
14319
14326
|
<thought>the thinking process of the extraction, less than 300 words. Use ${preferredLanguage} in this field.</thought>
|
|
@@ -17665,7 +17672,7 @@ Return JSON:
|
|
|
17665
17672
|
return new Promise((resolve)=>setTimeout(resolve, ms));
|
|
17666
17673
|
}
|
|
17667
17674
|
function getVersion() {
|
|
17668
|
-
return "1.7.
|
|
17675
|
+
return "1.7.3";
|
|
17669
17676
|
}
|
|
17670
17677
|
function debugLog(...message) {
|
|
17671
17678
|
const debugMode = process.env[env_namespaceObject.MIDSCENE_DEBUG_MODE];
|
|
@@ -20893,7 +20900,7 @@ Return JSON:
|
|
|
20893
20900
|
return;
|
|
20894
20901
|
}
|
|
20895
20902
|
}
|
|
20896
|
-
const getMidsceneVersion = ()=>"1.7.
|
|
20903
|
+
const getMidsceneVersion = ()=>"1.7.3";
|
|
20897
20904
|
const parsePrompt = (prompt)=>{
|
|
20898
20905
|
if ('string' == typeof prompt) return {
|
|
20899
20906
|
textPrompt: prompt,
|
|
@@ -24223,7 +24230,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
24223
24230
|
const cli_tools = new AndroidMidsceneTools();
|
|
24224
24231
|
(0, cli_namespaceObject.runToolsCLI)(cli_tools, 'midscene-android', {
|
|
24225
24232
|
stripPrefix: 'android_',
|
|
24226
|
-
version: "1.7.
|
|
24233
|
+
version: "1.7.13"
|
|
24227
24234
|
}).catch((e)=>{
|
|
24228
24235
|
if (!(e instanceof cli_namespaceObject.CLIError)) console.error(e);
|
|
24229
24236
|
process.exit(e instanceof cli_namespaceObject.CLIError ? e.exitCode : 1);
|
package/dist/lib/index.js
CHANGED
|
@@ -14332,6 +14332,13 @@ If a key specifies a JSON data type (such as Number, String, Boolean, Object, Ar
|
|
|
14332
14332
|
|
|
14333
14333
|
If the user provides multiple reference images, please carefully review the reference images with the screenshot and provide the correct answer for <DATA_DEMAND>.
|
|
14334
14334
|
|
|
14335
|
+
IMPORTANT - Boolean Judgment Rules:
|
|
14336
|
+
- When judging Boolean questions about UI elements, you MUST ONLY judge based on EXACT text or clear visual elements visible in the screenshot.
|
|
14337
|
+
- If there is ONLY an icon WITHOUT text label, you CANNOT infer its function. Return false.
|
|
14338
|
+
- If you need to guess or infer what an icon means, return false.
|
|
14339
|
+
- Do NOT assume an icon represents a feature even if it seems likely.
|
|
14340
|
+
- For example: "页面存在继续咨询按钮" - if you only see an icon without "继续咨询" text, return false.
|
|
14341
|
+
|
|
14335
14342
|
|
|
14336
14343
|
Return in the following XML format:
|
|
14337
14344
|
<thought>the thinking process of the extraction, less than 300 words. Use ${preferredLanguage} in this field.</thought>
|
|
@@ -17677,7 +17684,7 @@ Return JSON:
|
|
|
17677
17684
|
return new Promise((resolve)=>setTimeout(resolve, ms));
|
|
17678
17685
|
}
|
|
17679
17686
|
function getVersion() {
|
|
17680
|
-
return "1.7.
|
|
17687
|
+
return "1.7.3";
|
|
17681
17688
|
}
|
|
17682
17689
|
function debugLog(...message) {
|
|
17683
17690
|
const debugMode = process.env[env_namespaceObject.MIDSCENE_DEBUG_MODE];
|
|
@@ -20903,7 +20910,7 @@ Return JSON:
|
|
|
20903
20910
|
return;
|
|
20904
20911
|
}
|
|
20905
20912
|
}
|
|
20906
|
-
const getMidsceneVersion = ()=>"1.7.
|
|
20913
|
+
const getMidsceneVersion = ()=>"1.7.3";
|
|
20907
20914
|
const parsePrompt = (prompt)=>{
|
|
20908
20915
|
if ('string' == typeof prompt) return {
|
|
20909
20916
|
textPrompt: prompt,
|
package/dist/lib/mcp-server.js
CHANGED
|
@@ -14522,6 +14522,13 @@ If a key specifies a JSON data type (such as Number, String, Boolean, Object, Ar
|
|
|
14522
14522
|
|
|
14523
14523
|
If the user provides multiple reference images, please carefully review the reference images with the screenshot and provide the correct answer for <DATA_DEMAND>.
|
|
14524
14524
|
|
|
14525
|
+
IMPORTANT - Boolean Judgment Rules:
|
|
14526
|
+
- When judging Boolean questions about UI elements, you MUST ONLY judge based on EXACT text or clear visual elements visible in the screenshot.
|
|
14527
|
+
- If there is ONLY an icon WITHOUT text label, you CANNOT infer its function. Return false.
|
|
14528
|
+
- If you need to guess or infer what an icon means, return false.
|
|
14529
|
+
- Do NOT assume an icon represents a feature even if it seems likely.
|
|
14530
|
+
- For example: "页面存在继续咨询按钮" - if you only see an icon without "继续咨询" text, return false.
|
|
14531
|
+
|
|
14525
14532
|
|
|
14526
14533
|
Return in the following XML format:
|
|
14527
14534
|
<thought>the thinking process of the extraction, less than 300 words. Use ${preferredLanguage} in this field.</thought>
|
|
@@ -19524,7 +19531,7 @@ Return JSON:
|
|
|
19524
19531
|
return new Promise((resolve)=>setTimeout(resolve, ms));
|
|
19525
19532
|
}
|
|
19526
19533
|
function getVersion() {
|
|
19527
|
-
return "1.7.
|
|
19534
|
+
return "1.7.3";
|
|
19528
19535
|
}
|
|
19529
19536
|
function debugLog(...message) {
|
|
19530
19537
|
const debugMode = process.env[env_namespaceObject.MIDSCENE_DEBUG_MODE];
|
|
@@ -20635,7 +20642,7 @@ Return JSON:
|
|
|
20635
20642
|
return;
|
|
20636
20643
|
}
|
|
20637
20644
|
}
|
|
20638
|
-
const getMidsceneVersion = ()=>"1.7.
|
|
20645
|
+
const getMidsceneVersion = ()=>"1.7.3";
|
|
20639
20646
|
const parsePrompt = (prompt)=>{
|
|
20640
20647
|
if ('string' == typeof prompt) return {
|
|
20641
20648
|
textPrompt: prompt,
|
|
@@ -24232,7 +24239,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
24232
24239
|
constructor(toolsManager){
|
|
24233
24240
|
super({
|
|
24234
24241
|
name: '@midscene/android-mcp',
|
|
24235
|
-
version: "1.7.
|
|
24242
|
+
version: "1.7.13",
|
|
24236
24243
|
description: 'Control the Android device using natural language commands'
|
|
24237
24244
|
}, toolsManager);
|
|
24238
24245
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiscene/android",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.14",
|
|
4
4
|
"description": "Android automation library for Midscene",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Android UI automation",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"test:ai:cache": "MIDSCENE_CACHE=true AI_TEST_TYPE=android npm run test"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aiscene/core": "1.7.
|
|
49
|
+
"@aiscene/core": "1.7.3",
|
|
50
50
|
"@midscene/shared": "1.6.0",
|
|
51
51
|
"@yume-chan/adb": "2.5.1",
|
|
52
52
|
"@yume-chan/adb-scrcpy": "2.3.2",
|