@midscene/mcp 1.4.2 → 1.4.3
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/index.js +13 -3
- package/dist/server.js +13 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -24454,8 +24454,18 @@ var __webpack_modules__ = {
|
|
|
24454
24454
|
try {
|
|
24455
24455
|
const agent = await getAgent();
|
|
24456
24456
|
if (!agent.aiAction) return createErrorResult('act is not supported by this agent');
|
|
24457
|
-
await agent.aiAction(prompt
|
|
24458
|
-
|
|
24457
|
+
const result = await agent.aiAction(prompt, {
|
|
24458
|
+
deepThink: true
|
|
24459
|
+
});
|
|
24460
|
+
const screenshotResult = await captureScreenshotResult(agent, 'act');
|
|
24461
|
+
if (result) {
|
|
24462
|
+
const message = 'string' == typeof result ? result : JSON.stringify(result);
|
|
24463
|
+
screenshotResult.content.unshift({
|
|
24464
|
+
type: 'text',
|
|
24465
|
+
text: `Task finished, message: ${message}`
|
|
24466
|
+
});
|
|
24467
|
+
}
|
|
24468
|
+
return screenshotResult;
|
|
24459
24469
|
} catch (error) {
|
|
24460
24470
|
const errorMessage = getErrorMessage(error);
|
|
24461
24471
|
console.error('Error executing act:', errorMessage);
|
|
@@ -24717,7 +24727,7 @@ For more information, visit: https://midscenejs.com/mcp-migration
|
|
|
24717
24727
|
constructor(){
|
|
24718
24728
|
super({
|
|
24719
24729
|
name: '@midscene/mcp',
|
|
24720
|
-
version: '1.4.
|
|
24730
|
+
version: '1.4.3',
|
|
24721
24731
|
description: 'Deprecated - Use @midscene/web-bridge-mcp, @midscene/android-mcp, or @midscene/ios-mcp'
|
|
24722
24732
|
});
|
|
24723
24733
|
}
|
package/dist/server.js
CHANGED
|
@@ -31681,8 +31681,18 @@ var __webpack_exports__ = {};
|
|
|
31681
31681
|
try {
|
|
31682
31682
|
const agent = await getAgent();
|
|
31683
31683
|
if (!agent.aiAction) return createErrorResult('act is not supported by this agent');
|
|
31684
|
-
await agent.aiAction(prompt
|
|
31685
|
-
|
|
31684
|
+
const result = await agent.aiAction(prompt, {
|
|
31685
|
+
deepThink: true
|
|
31686
|
+
});
|
|
31687
|
+
const screenshotResult = await captureScreenshotResult(agent, 'act');
|
|
31688
|
+
if (result) {
|
|
31689
|
+
const message = 'string' == typeof result ? result : JSON.stringify(result);
|
|
31690
|
+
screenshotResult.content.unshift({
|
|
31691
|
+
type: 'text',
|
|
31692
|
+
text: `Task finished, message: ${message}`
|
|
31693
|
+
});
|
|
31694
|
+
}
|
|
31695
|
+
return screenshotResult;
|
|
31686
31696
|
} catch (error) {
|
|
31687
31697
|
const errorMessage = getErrorMessage(error);
|
|
31688
31698
|
console.error('Error executing act:', errorMessage);
|
|
@@ -31944,7 +31954,7 @@ For more information, visit: https://midscenejs.com/mcp-migration
|
|
|
31944
31954
|
constructor(){
|
|
31945
31955
|
super({
|
|
31946
31956
|
name: '@midscene/mcp',
|
|
31947
|
-
version: '1.4.
|
|
31957
|
+
version: '1.4.3',
|
|
31948
31958
|
description: 'Deprecated - Use @midscene/web-bridge-mcp, @midscene/android-mcp, or @midscene/ios-mcp'
|
|
31949
31959
|
});
|
|
31950
31960
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/mcp",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "Deprecated - Use @midscene/web-bridge-mcp, @midscene/android-mcp, or @midscene/ios-mcp",
|
|
5
5
|
"bin": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"@rslib/core": "^0.18.3",
|
|
14
14
|
"@types/node": "^18.0.0",
|
|
15
15
|
"typescript": "^5.8.3",
|
|
16
|
-
"@midscene/android": "1.4.
|
|
17
|
-
"@midscene/core": "1.4.
|
|
16
|
+
"@midscene/android": "1.4.3",
|
|
17
|
+
"@midscene/core": "1.4.3",
|
|
18
|
+
"@midscene/shared": "1.4.3",
|
|
18
19
|
"@midscene/report": "1.0.0",
|
|
19
|
-
"@midscene/
|
|
20
|
-
"@midscene/web": "1.4.2"
|
|
20
|
+
"@midscene/web": "1.4.3"
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"scripts": {
|