@midscene/ios 1.3.1 → 1.3.2
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 +14 -5
- package/dist/es/mcp-server.mjs +1 -1
- package/dist/lib/bin.js +13 -4
- package/dist/lib/mcp-server.js +1 -1
- package/package.json +5 -5
- package/static/index.html +1 -1
- package/static/static/js/{index.caeabfb7.js → index.659a5e5b.js} +4 -4
- package/static/static/js/index.659a5e5b.js.map +1 -0
- package/static/static/js/index.caeabfb7.js.map +0 -1
- /package/static/static/js/{index.caeabfb7.js.LICENSE.txt → index.659a5e5b.js.LICENSE.txt} +0 -0
package/dist/es/bin.mjs
CHANGED
|
@@ -24,7 +24,7 @@ import { fileURLToPath } from "node:url";
|
|
|
24
24
|
import { GroupedActionDump, getMidsceneLocationSchema, z } from "@midscene/core";
|
|
25
25
|
import { getTmpDir, sleep } from "@midscene/core/utils";
|
|
26
26
|
import { DEFAULT_WDA_PORT, PLAYGROUND_SERVER_PORT as constants_PLAYGROUND_SERVER_PORT } from "@midscene/shared/constants";
|
|
27
|
-
import { overrideAIConfig } from "@midscene/shared/env";
|
|
27
|
+
import { globalModelConfigManager, overrideAIConfig } from "@midscene/shared/env";
|
|
28
28
|
import { mergeAndNormalizeAppNameMapping, normalizeForComparison, uuid as utils_uuid } from "@midscene/shared/utils";
|
|
29
29
|
import "node:child_process";
|
|
30
30
|
import { findAvailablePort } from "@midscene/shared/node";
|
|
@@ -11778,10 +11778,6 @@ class PlaygroundServer {
|
|
|
11778
11778
|
});
|
|
11779
11779
|
try {
|
|
11780
11780
|
overrideAIConfig(aiConfig);
|
|
11781
|
-
return res.json({
|
|
11782
|
-
status: 'ok',
|
|
11783
|
-
message: 'AI config updated. Agent will be recreated on next execution.'
|
|
11784
|
-
});
|
|
11785
11781
|
} catch (error) {
|
|
11786
11782
|
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
11787
11783
|
console.error(`Failed to update AI config: ${errorMessage}`);
|
|
@@ -11789,6 +11785,19 @@ class PlaygroundServer {
|
|
|
11789
11785
|
error: `Failed to update AI config: ${errorMessage}`
|
|
11790
11786
|
});
|
|
11791
11787
|
}
|
|
11788
|
+
try {
|
|
11789
|
+
globalModelConfigManager.getModelConfig('default');
|
|
11790
|
+
} catch (error) {
|
|
11791
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
11792
|
+
console.error(`AI config validation failed: ${errorMessage}`);
|
|
11793
|
+
return res.status(400).json({
|
|
11794
|
+
error: errorMessage
|
|
11795
|
+
});
|
|
11796
|
+
}
|
|
11797
|
+
return res.json({
|
|
11798
|
+
status: 'ok',
|
|
11799
|
+
message: 'AI config updated. Agent will be recreated on next execution.'
|
|
11800
|
+
});
|
|
11792
11801
|
});
|
|
11793
11802
|
}
|
|
11794
11803
|
setupStaticRoutes() {
|
package/dist/es/mcp-server.mjs
CHANGED
|
@@ -1232,7 +1232,7 @@ class IOSMCPServer extends BaseMCPServer {
|
|
|
1232
1232
|
constructor(toolsManager){
|
|
1233
1233
|
super({
|
|
1234
1234
|
name: '@midscene/ios-mcp',
|
|
1235
|
-
version: "1.3.
|
|
1235
|
+
version: "1.3.2",
|
|
1236
1236
|
description: 'Control the iOS device using natural language commands'
|
|
1237
1237
|
}, toolsManager);
|
|
1238
1238
|
}
|
package/dist/lib/bin.js
CHANGED
|
@@ -11923,10 +11923,6 @@ var __webpack_exports__ = {};
|
|
|
11923
11923
|
});
|
|
11924
11924
|
try {
|
|
11925
11925
|
(0, env_namespaceObject.overrideAIConfig)(aiConfig);
|
|
11926
|
-
return res.json({
|
|
11927
|
-
status: 'ok',
|
|
11928
|
-
message: 'AI config updated. Agent will be recreated on next execution.'
|
|
11929
|
-
});
|
|
11930
11926
|
} catch (error) {
|
|
11931
11927
|
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
11932
11928
|
console.error(`Failed to update AI config: ${errorMessage}`);
|
|
@@ -11934,6 +11930,19 @@ var __webpack_exports__ = {};
|
|
|
11934
11930
|
error: `Failed to update AI config: ${errorMessage}`
|
|
11935
11931
|
});
|
|
11936
11932
|
}
|
|
11933
|
+
try {
|
|
11934
|
+
env_namespaceObject.globalModelConfigManager.getModelConfig('default');
|
|
11935
|
+
} catch (error) {
|
|
11936
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
11937
|
+
console.error(`AI config validation failed: ${errorMessage}`);
|
|
11938
|
+
return res.status(400).json({
|
|
11939
|
+
error: errorMessage
|
|
11940
|
+
});
|
|
11941
|
+
}
|
|
11942
|
+
return res.json({
|
|
11943
|
+
status: 'ok',
|
|
11944
|
+
message: 'AI config updated. Agent will be recreated on next execution.'
|
|
11945
|
+
});
|
|
11937
11946
|
});
|
|
11938
11947
|
}
|
|
11939
11948
|
setupStaticRoutes() {
|
package/dist/lib/mcp-server.js
CHANGED
|
@@ -1272,7 +1272,7 @@ class IOSMCPServer extends mcp_namespaceObject.BaseMCPServer {
|
|
|
1272
1272
|
constructor(toolsManager){
|
|
1273
1273
|
super({
|
|
1274
1274
|
name: '@midscene/ios-mcp',
|
|
1275
|
-
version: "1.3.
|
|
1275
|
+
version: "1.3.2",
|
|
1276
1276
|
description: 'Control the iOS device using natural language commands'
|
|
1277
1277
|
}, toolsManager);
|
|
1278
1278
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/ios",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "iOS automation library for Midscene",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iOS UI automation",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@inquirer/prompts": "^7.8.6",
|
|
45
45
|
"open": "10.1.0",
|
|
46
|
-
"@midscene/
|
|
47
|
-
"@midscene/shared": "1.3.
|
|
48
|
-
"@midscene/
|
|
46
|
+
"@midscene/webdriver": "1.3.2",
|
|
47
|
+
"@midscene/shared": "1.3.2",
|
|
48
|
+
"@midscene/core": "1.3.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@rslib/core": "^0.18.3",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"tsx": "^4.19.2",
|
|
56
56
|
"vitest": "3.0.5",
|
|
57
57
|
"zod": "3.24.3",
|
|
58
|
-
"@midscene/playground": "1.3.
|
|
58
|
+
"@midscene/playground": "1.3.2"
|
|
59
59
|
},
|
|
60
60
|
"license": "MIT",
|
|
61
61
|
"scripts": {
|
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/430.4af5d9bf.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/430.4af5d9bf.js"></script><script defer src="/static/js/index.659a5e5b.js"></script><link href="/static/css/index.58968da2.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|