Skip to content

Mobile MCP: let AI agents drive your iOS and Android apps. MCP server for simulators, emulators and real devices. Works with Claude Code, Codex, Cursor and any MCP client.

feat: mobile_fold_device to fold and unfold foldable devices

gmegidish3801a145ebe0
diff --git a/README.md b/README.md
index 7e92d5a..75a378c 100644
--- a/README.md
+++ b/README.md
@@ -75,6 +75,7 @@ How we help to scale mobile automation:
- **`mobile_get_screen_size`** - Get the screen size of the mobile device in pixels
- **`mobile_get_orientation`** - Get the current screen orientation of the device
- **`mobile_set_orientation`** - Change the screen orientation (portrait/landscape)
+- **`mobile_fold_device`** - Fold or unfold a foldable device (iPhone Duo simulators, foldable Android emulators)
- **`mobile_set_location`** - Override the GPS location reported by the device, or clear the override
- **`mobile_clipboard`** - Read or replace the device clipboard
diff --git a/package-lock.json b/package-lock.json
index a671ee9..6841b0c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -16,7 +16,7 @@
"commander": "14.0.0",
"express": "5.1.0",
"fast-xml-parser": "5.8.0",
- "mobilewright": "0.0.60",
+ "mobilewright": "0.0.62",
"qs": "^6.15.0",
"zod": "^4.2.0",
"zod-to-json-schema": "3.25.0"
@@ -324,9 +324,9 @@
}
},
"node_modules/@img/sharp-darwin-arm64": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.4.tgz",
- "integrity": "sha512-Uhfl4V4lhP2nbUVF9+hyH1+luj86f1gUFeo8ALYxFoULoU+G87D43BfeMP8XHsk9boxAnCY/bf2EHwhA7MuGsA==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz",
+ "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==",
"cpu": [
"arm64"
],
@@ -342,13 +342,13 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-darwin-arm64": "1.3.3"
+ "@img/sharp-libvips-darwin-arm64": "1.3.4"
}
},
"node_modules/@img/sharp-darwin-x64": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.4.tgz",
- "integrity": "sha512-hWniXY3bG5qKpkKrAwPe4y+VTPmf086YQAnkxWh7uA1YrlRouWGa0M0Mxj3ZjnXFkv7/TD1bTy9lGUK26vRvWw==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz",
+ "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==",
"cpu": [
"x64"
],
@@ -364,20 +364,20 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-darwin-x64": "1.3.3"
+ "@img/sharp-libvips-darwin-x64": "1.3.4"
}
},
"node_modules/@img/sharp-freebsd-wasm32": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.4.tgz",
- "integrity": "sha512-lIsKw/BU+kjB4eZjxrYrZmwOJYi3Ajrv66iAlBmUPyKc3HpnloevB1g3wxGD9P/5BbQ1brBGl65VRRrCvQDEqA==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz",
+ "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==",
"license": "Apache-2.0",
"optional": true,
"os": [
"freebsd"
],
"dependencies": {
- "@img/sharp-wasm32": "0.35.4"
+ "@img/sharp-wasm32": "0.35.5"
},
"engines": {
"node": ">=20.9.0"
@@ -387,9 +387,9 @@
}
},
"node_modules/@img/sharp-libvips-darwin-arm64": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.3.tgz",
- "integrity": "sha512-suTBPTDGrI9WodccaDdwZItTSaBYASlBk1NSfElSHrUfzu3szG6lvIF58+WiFvnfzuK8ZBFS5zE00PxqxnRiPg==",
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz",
+ "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==",
"cpu": [
"arm64"
],
@@ -403,9 +403,9 @@
}
},
"node_modules/@img/sharp-libvips-darwin-x64": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.3.tgz",
- "integrity": "sha512-FVJZ5mITMobmXIz/hPDTw0EintTW5H3WfrxwLqEqjiIihlu+hVRyGrFQ60xl0Lxn7Bt3zdpevPaQi0HEzqz9fw==",
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz",
+ "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==",
"cpu": [
"x64"
],
@@ -419,9 +419,9 @@
}
},
"node_modules/@img/sharp-libvips-linux-arm": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.3.tgz",
- "integrity": "sha512-3rbU4vqXXc3hY/OiXdl52xZvT0F1yEngWfvqudtPJg/KkyiaQw2DRsFrNzpmLvfavbwOq3qXn36GP8obHRULQA==",
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz",
+ "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==",
"cpu": [
"arm"
],
@@ -438,9 +438,9 @@
}
},
"node_modules/@img/sharp-libvips-linux-arm64": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.3.tgz",
- "integrity": "sha512-0DaL0A6Xu6sQSQFwe4iVCrKWU2cCTItnRsYsCdxAMm9NF6twAA9BKnoqy4hqz4+azQ0JHuA26qiUKsf1XJ/v5A==",
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz",
+ "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==",
"cpu": [
"arm64"
],
@@ -457,9 +457,9 @@
}
},
"node_modules/@img/sharp-libvips-linux-ppc64": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.3.tgz",
- "integrity": "sha512-cdn1OvUBwsXhbC0zSzJnNzf5MZ/mTrobawDvNXBTxe8VtqKAm0sRuEY2Evzovb/w9JMk4TvRxqt1mekSuJz64w==",
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz",
+ "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==",
"cpu": [
"ppc64"
],
@@ -476,9 +476,9 @@
}
},
"node_modules/@img/sharp-libvips-linux-riscv64": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.3.tgz",
- "integrity": "sha512-HjPVx7yKz+0lqdhDlTw1tt90wamBoxhiXpvl1XZpJLiHH4RCJ5yDTqH+VlYPv2fwFs89JFw4c1IexYOcQUi4IQ==",
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz",
+ "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==",
"cpu": [
"riscv64"
],
@@ -495,9 +495,9 @@
}
},
"node_modules/@img/sharp-libvips-linux-s390x": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.3.tgz",
- "integrity": "sha512-neWLh+3yCNThxnfy3c4BbVBeGgt9aftno+XbT56iK28RgeDs3UOFWviLWlUu0bArYVYJaFDK+RRohbicUNCm8Q==",
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz",
+ "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==",
"cpu": [
"s390x"
],
@@ -514,9 +514,9 @@
}
},
"node_modules/@img/sharp-libvips-linux-x64": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.3.tgz",
- "integrity": "sha512-4vKmvAst9nrowcqquKFAyZJUDolUaIp8uRiN0mWFguJ1IplC9/pitXtlnnlU4aa/eJw3J7i67V+pwUL+wZGdsA==",
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz",
+ "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==",
"cpu": [
"x64"
],
@@ -533,9 +533,9 @@
}
},
"node_modules/@img/sharp-libvips-linuxmusl-arm64": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.3.tgz",
- "integrity": "sha512-Y9kQaLMuNoB0bPYOOdcZMaseNrFpPodIWWMrx+CZyydf2xn68j9WYc6sWWRrDwNkzCQjKYfc68L7jKjGlHMibw==",
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz",
+ "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==",
"cpu": [
"arm64"
],
@@ -552,9 +552,9 @@
}
},
"node_modules/@img/sharp-libvips-linuxmusl-x64": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.3.tgz",
- "integrity": "sha512-fj8Mv0HHfD1Rr+4I68+3agJynxDWtBFgicTbSOb9Bke6pIwzGcJ+RX/yHjmiEGFMCavY/dxvem7MyNaJF+wDiw==",
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz",
+ "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==",
"cpu": [
"x64"
],
@@ -571,9 +571,9 @@
}
},
"node_modules/@img/sharp-linux-arm": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.4.tgz",
- "integrity": "sha512-7OAS8gI0EReKGVN2HssHlM6umJgxF5VI3xN0p9FA91p/YO+ou5hiNghLdZ5BEHztwaaK5+bLKRf8x/o2L2nk9A==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz",
+ "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==",
"cpu": [
"arm"
],
@@ -592,13 +592,13 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linux-arm": "1.3.3"
+ "@img/sharp-libvips-linux-arm": "1.3.4"
}
},
"node_modules/@img/sharp-linux-arm64": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.4.tgz",
- "integrity": "sha512-De4jpEnAU8Hd5oT0j1G3uL4ZvTuipVMn7YC6vPaJhy6/7EwEae0SVAoBrUMYQbkLGDm85taVWwuPc1a44LTzCQ==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz",
+ "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==",
"cpu": [
"arm64"
],
@@ -617,13 +617,13 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linux-arm64": "1.3.3"
+ "@img/sharp-libvips-linux-arm64": "1.3.4"
}
},
"node_modules/@img/sharp-linux-ppc64": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.4.tgz",
- "integrity": "sha512-2oYZJeIl4kCcMGk4ouZVjnkCtFrpQFlNEtJ6GbxzhHQchwH0NH/qEb9ykmOl29dqwMq+JhFdZn+1ak2FKhI9fQ==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz",
+ "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==",
"cpu": [
"ppc64"
],
@@ -642,13 +642,13 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linux-ppc64": "1.3.3"
+ "@img/sharp-libvips-linux-ppc64": "1.3.4"
}
},
"node_modules/@img/sharp-linux-riscv64": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.4.tgz",
- "integrity": "sha512-cPbNChoRURAWdebDIHSenxRpgEdy7JkPydSnUxRm9VvKD7m0/xVaR/8Fzlu81pk5nHEvHH87UZUA7cTtwnbJSA==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz",
+ "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==",
"cpu": [
"riscv64"
],
@@ -667,13 +667,13 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linux-riscv64": "1.3.3"
+ "@img/sharp-libvips-linux-riscv64": "1.3.4"
}
},
"node_modules/@img/sharp-linux-s390x": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.4.tgz",
- "integrity": "sha512-RY0JFY8Fd6RonCBtHz+DvadaPkXDSI1AUn6yWL9TipqkZ1vY8w8evqdgyDFnkm4/K1ve1TvZiaePP5oSd4+WVQ==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz",
+ "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==",
"cpu": [
"s390x"
],
@@ -692,13 +692,13 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linux-s390x": "1.3.3"
+ "@img/sharp-libvips-linux-s390x": "1.3.4"
}
},
"node_modules/@img/sharp-linux-x64": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.4.tgz",
- "integrity": "sha512-9qvvEAuk8k89TfWUoX2htWjbAMX8p+NxCppjpcg5k6xMsjhBQPTsoIh36h9Qde4WRuGpJeYnOjdosDn/cnv+OA==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz",
+ "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==",
"cpu": [
"x64"
],
@@ -717,13 +717,13 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linux-x64": "1.3.3"
+ "@img/sharp-libvips-linux-x64": "1.3.4"
}
},
"node_modules/@img/sharp-linuxmusl-arm64": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.4.tgz",
- "integrity": "sha512-KB5jxpfWQTr0nc3xdHtWChdbifHrBGsd2SM62Eyxrl8afikm+f5qGBU75SJIZBT/S1MC8XyacdlXBMSWq6OURA==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz",
+ "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==",
"cpu": [
"arm64"
],
@@ -742,13 +742,13 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linuxmusl-arm64": "1.3.3"
+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.4"
}
},
"node_modules/@img/sharp-linuxmusl-x64": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.4.tgz",
- "integrity": "sha512-f+eZJZIQNEEd26RPSW+76chwOf1XtA2Y/O+5ocVyLliHkeih3e+jhLVBdNTd2rS3IbNXK8+ug93Vf5ZXtF5Lxg==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz",
+ "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==",
"cpu": [
"x64"
],
@@ -767,13 +767,13 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linuxmusl-x64": "1.3.3"
+ "@img/sharp-libvips-linuxmusl-x64": "1.3.4"
}
},
"node_modules/@img/sharp-wasm32": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.4.tgz",
- "integrity": "sha512-zQnl4Kwp7Q6NHsENtU2T/00Zi+w3AQNwz3+UaTyVBy2FpXrzXzGjndpK61onhZjRtRpQXxCTeqw19bVyXOh7jA==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz",
+ "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==",
"license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
"optional": true,
"dependencies": {
@@ -787,16 +787,16 @@
}
},
"node_modules/@img/sharp-webcontainers-wasm32": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.4.tgz",
- "integrity": "sha512-ESfNkywmCfPNyaZjxooddJQiQ+l/nTpGEOGthxiLnIHXC/CmcBixnfwUleX9mCz9ovrUUvKMap/pm8RYbzfwaA==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz",
+ "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==",
"cpu": [
"wasm32"
],
"license": "Apache-2.0",
"optional": true,
"dependencies": {
- "@img/sharp-wasm32": "0.35.4"
+ "@img/sharp-wasm32": "0.35.5"
},
"engines": {
"node": ">=20.9.0"
@@ -806,9 +806,9 @@
}
},
"node_modules/@img/sharp-win32-arm64": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.4.tgz",
- "integrity": "sha512-iNdlBX9gLVvqe2I3uIJSIKTq6wckP/DYxZtcqxm09x5Gi24DnFBmPAWZmr60ZyYMG0xlzo6goG3670ar+RXvRw==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz",
+ "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==",
"cpu": [
"arm64"
],
@@ -825,9 +825,9 @@
}
},
"node_modules/@img/sharp-win32-ia32": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.4.tgz",
- "integrity": "sha512-kqRsbaa5CS6KHlpxnN7WhE6vAAugXyZButpRdvDWetlv6Qv4N9WTcrWzF7tXfB9T7MsoadqdI8hmwLq6UlLvtw==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz",
+ "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==",
"cpu": [
"ia32"
],
@@ -844,9 +844,9 @@
}
},
"node_modules/@img/sharp-win32-x64": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.4.tgz",
- "integrity": "sha512-XtmnYhBcrORsJ4XJngyzr/EWP0hRZLAZRFaApdKuviyqF78+ylxh2y06ZmtULAMOnObJ3ucpN0AcwSWnMowTRg==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz",
+ "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==",
"cpu": [
"x64"
],
@@ -919,9 +919,9 @@
}
},
"node_modules/@mobilenext/mobilecli-darwin-amd64": {
- "version": "1.0.13",
- "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli-darwin-amd64/-/mobilecli-darwin-amd64-1.0.13.tgz",
- "integrity": "sha512-QXeemQ7QC4D5zMu0QguT6KqbMpzPh4YjyqLY+3g6y4c5t2+rgjQc1N0EaWZ6rsEHnhfKhrGJKzTh874vUcRW8w==",
+ "version": "1.0.16",
+ "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli-darwin-amd64/-/mobilecli-darwin-amd64-1.0.16.tgz",
+ "integrity": "sha512-6pdUNZLU81USoaFkVFEcDe0jGKXOf4FCROmVTPYpKzpLP9wY3jLTCZsd1vjSL/lWUNmpUe2Fb0oIMrNjJDUyZA==",
"cpu": [
"x64"
],
@@ -932,9 +932,9 @@
]
},
"node_modules/@mobilenext/mobilecli-darwin-arm64": {
- "version": "1.0.13",
- "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli-darwin-arm64/-/mobilecli-darwin-arm64-1.0.13.tgz",
- "integrity": "sha512-ryxa9EMhrUZkMBjrNYgCL9JNM+FIiNdVGuCO7v393E3QWc2rW8eGJ/0Yryeey8lurUlZMeSh2mMFFdkPXpns9w==",
+ "version": "1.0.16",
+ "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli-darwin-arm64/-/mobilecli-darwin-arm64-1.0.16.tgz",
+ "integrity": "sha512-fjEz9Bg0lpsWBYMxWvfVxVptMRLuA7Tbuv68vk306Wh1UH7uFtPqx1PM52B0ubvEeQZr8bFz+yYJoekE9LFYtA==",
"cpu": [
"arm64"
],
@@ -945,9 +945,9 @@
]
},
"node_modules/@mobilenext/mobilecli-linux-amd64": {
- "version": "1.0.13",
- "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli-linux-amd64/-/mobilecli-linux-amd64-1.0.13.tgz",
- "integrity": "sha512-h8iqVabyE5OwF4uzI2RtCQQl8voio1pSi50B+sLz9+W+eQ5iDfuUfbfheikO8KqMkz0NP1qVu5kaZvd75wDdzw==",
+ "version": "1.0.16",
+ "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli-linux-amd64/-/mobilecli-linux-amd64-1.0.16.tgz",
+ "integrity": "sha512-2yxi+XcxANHU3J9gZF0wXi4DlxO5QgBeFGuWj8N6+611qM+sSjO58ZoImcKroBSWp8WFvUxVs/c6bhoA505fiA==",
"cpu": [
"x64"
],
@@ -958,9 +958,9 @@
]
},
"node_modules/@mobilenext/mobilecli-linux-arm64": {
- "version": "1.0.13",
- "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli-linux-arm64/-/mobilecli-linux-arm64-1.0.13.tgz",
- "integrity": "sha512-qUw21mkng6t2DPxgLx3FUptrR4RM06MV2ahl0zFIIMwD3fcQ0jN78kc7UJIIW0AUU8mUa7p8Hku241NR5e6ouw==",
+ "version": "1.0.16",
+ "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli-linux-arm64/-/mobilecli-linux-arm64-1.0.16.tgz",
+ "integrity": "sha512-jBRzYuGGGKyqu+c1kNNlbHEpphZ8GgMCjiuM0FKd5FOhlreUm3Ln1RzscPwOYiA9vvBNBqBLKr5o2HcjL5Q2VA==",
"cpu": [
"arm64"
],
@@ -971,9 +971,9 @@
]
},
"node_modules/@mobilenext/mobilecli-windows-amd64": {
- "version": "1.0.13",
- "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli-windows-amd64/-/mobilecli-windows-amd64-1.0.13.tgz",
- "integrity": "sha512-KhW6rJ9qkN/o6PGtKwyPNVpC8UGRfh2mExCJ62Sw+AKpcAqKnEFl2iID7z6MwnyEVgdZcFCPXUbjH0l+5GdZTQ==",
+ "version": "1.0.16",
+ "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli-windows-amd64/-/mobilecli-windows-amd64-1.0.16.tgz",
+ "integrity": "sha512-hCRZmKOpgWYLG4d8pJYrxNvwuAtTpCqOgJG/Wv2ZTER1lyE/XfI2SyvtnGLmj5ooVEO8rjF3M8RlodaCJS6P9Q==",
"cpu": [
"x64"
],
@@ -984,9 +984,9 @@
]
},
"node_modules/@mobilenext/mobilecli-windows-arm64": {
- "version": "1.0.13",
- "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli-windows-arm64/-/mobilecli-windows-arm64-1.0.13.tgz",
- "integrity": "sha512-/C+DHh+qZF6Kjxb8j0LgCZpaYYzdyFheX1al3so0815s6waHssUa/TI7nnkUndMkXztkr2TINQUMSAh+4R2uvg==",
+ "version": "1.0.16",
+ "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli-windows-arm64/-/mobilecli-windows-arm64-1.0.16.tgz",
+ "integrity": "sha512-nkXSoK6sg5+o8CxYdSxRLjfkYroZBNWNvXLOKnGhwzMFnXf1CM5gVdEw7D33iIYsVRMvrFcVUv6JfUW6d87vSA==",
"cpu": [
"arm64"
],
@@ -997,12 +997,12 @@
]
},
"node_modules/@mobilewright/core": {
- "version": "0.0.60",
- "resolved": "https://registry.npmjs.org/@mobilewright/core/-/core-0.0.60.tgz",
- "integrity": "sha512-0Yw3fBWGVbN2rg9oZz/YJz5IKoMQt5yZDn8lsRqG+yQUtzTxpDyvCnTKI03UrLeOh79f02SROWpsLJ5iyWLPwQ==",
+ "version": "0.0.62",
+ "resolved": "https://registry.npmjs.org/@mobilewright/core/-/core-0.0.62.tgz",
+ "integrity": "sha512-U5gbhONN5ZGfw+acluLIDucXZK7L8w/tP4fct/X9Fxef7ey7w50+D4FufM1I//6awjRhXusrNzqn6abPim20HA==",
"license": "Apache-2.0",
"dependencies": {
- "@mobilewright/protocol": "^0.0.60",
+ "@mobilewright/protocol": "^0.0.62",
"debug": "^4.4.3",
"playwright-core": "1.63.0",
"sharp": "^0.35.4"
@@ -1024,14 +1024,14 @@
}
},
"node_modules/@mobilewright/driver-mobilecli": {
- "version": "0.0.60",
- "resolved": "https://registry.npmjs.org/@mobilewright/driver-mobilecli/-/driver-mobilecli-0.0.60.tgz",
- "integrity": "sha512-ARi483sDeic43jn73Jl8WZkPUdpMoGeXZ/ilBhAKNsaHmBT4EJyTlCn9r+OEF8RSrmheMbH2drtJ+l3G8/fBLQ==",
+ "version": "0.0.62",
+ "resolved": "https://registry.npmjs.org/@mobilewright/driver-mobilecli/-/driver-mobilecli-0.0.62.tgz",
+ "integrity": "sha512-li7CpfGqMCc/2ekFACscfdiF+lwm2PhgITsWk3Mlyy+KehH8RdNKzRSkdmNED01A/TzhcigkuEblhL4Jl/xtBw==",
"license": "Apache-2.0",
"dependencies": {
- "@mobilewright/protocol": "^0.0.60",
+ "@mobilewright/protocol": "^0.0.62",
"debug": "^4.4.3",
- "mobilecli": "1.0.13",
+ "mobilecli": "1.0.16",
"ws": "^8.21.3"
},
"engines": {
@@ -1039,12 +1039,12 @@
}
},
"node_modules/@mobilewright/driver-mobilenext": {
- "version": "0.0.60",
- "resolved": "https://registry.npmjs.org/@mobilewright/driver-mobilenext/-/driver-mobilenext-0.0.60.tgz",
- "integrity": "sha512-2MdyTlqUnKQ7bpNtHj8RFApz7XlSiviaEbBQtuVjXOZkaj8g+zPqzsgOC0r+CLw6gdiVYP356eRHDHEGGa/MTg==",
+ "version": "0.0.62",
+ "resolved": "https://registry.npmjs.org/@mobilewright/driver-mobilenext/-/driver-mobilenext-0.0.62.tgz",
+ "integrity": "sha512-mhD+SVZtDBOlsnl6jMSFCI77+6+0y9JsOC5RI4dnfDfSYUMwxxX0sl+xZ7oJmlndFQU2F783R/VXhQI68h9yfA==",
"license": "Apache-2.0",
"dependencies": {
- "@mobilewright/protocol": "^0.0.60",
+ "@mobilewright/protocol": "^0.0.62",
"debug": "^4.4.3",
"ws": "^8.21.3"
},
@@ -1053,13 +1053,13 @@
}
},
"node_modules/@mobilewright/inspector": {
- "version": "0.0.60",
- "resolved": "https://registry.npmjs.org/@mobilewright/inspector/-/inspector-0.0.60.tgz",
- "integrity": "sha512-nvY+PoNaFwy4XzPbSy1XRtb1RmsnSPKje7OavQQ7R23Es8aTvebHjvHAiZrZoYs4VDkqcadIGIUmH+9Xc3UpDw==",
+ "version": "0.0.62",
+ "resolved": "https://registry.npmjs.org/@mobilewright/inspector/-/inspector-0.0.62.tgz",
+ "integrity": "sha512-J88ktUDYbxyTdgoaeh8cHNGJwnkVIl4GLp2VCWL+1t9UVHLcv7fCAvCG8POcHvprA6nqiTkzXwRJCxBbNW2WYA==",
"license": "Apache-2.0",
"dependencies": {
- "@mobilewright/core": "^0.0.60",
- "@mobilewright/protocol": "^0.0.60",
+ "@mobilewright/core": "^0.0.62",
+ "@mobilewright/protocol": "^0.0.62",
"express": "^5.2.1",
"open": "^10.2.0"
},
@@ -1111,9 +1111,9 @@
}
},
"node_modules/@mobilewright/protocol": {
- "version": "0.0.60",
- "resolved": "https://registry.npmjs.org/@mobilewright/protocol/-/protocol-0.0.60.tgz",
- "integrity": "sha512-2AMlQOnuePtmaWYraT5PnUr7c47KrigJyOHXuBHDa5yzEwQqvEhu+OS9AKnAnPX9kHr6Ts0ALMvkG+CKZVjt4A==",
+ "version": "0.0.62",
+ "resolved": "https://registry.npmjs.org/@mobilewright/protocol/-/protocol-0.0.62.tgz",
+ "integrity": "sha512-Nv2miygGJXH7r7vs89Wg/f3qAeqdd4GkGl5Ade9gts+ICZVnu1HLAvi48an+CQ7INLiQxzSMl0MeyxXS45/Apw==",
"license": "Apache-2.0",
"engines": {
"node": ">=22.12.0"
@@ -1988,9 +1988,9 @@
}
},
"node_modules/bundle-name": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz",
- "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==",
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.1.tgz",
+ "integrity": "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==",
"license": "MIT",
"dependencies": {
"run-applescript": "^7.0.0"
@@ -4598,33 +4598,33 @@
}
},
"node_modules/mobilecli": {
- "version": "1.0.13",
- "resolved": "https://registry.npmjs.org/mobilecli/-/mobilecli-1.0.13.tgz",
- "integrity": "sha512-1FZp9i8Sd9H729zXxY29mAmZEKedgLDNHtm4G5iLh3xsnI4xDRSHcjJX8iCcajJKeEzSzSYYzC70ZLYmCADxIA==",
+ "version": "1.0.16",
+ "resolved": "https://registry.npmjs.org/mobilecli/-/mobilecli-1.0.16.tgz",
+ "integrity": "sha512-NYpfg2X7t91Ri5Sfw8/pd9QM1cKLfsoUkRQLX71Lj0t6krgsRpjlxu7WrXwtBCgo27Ml+SYO32Zz2a3okVAMSw==",
"license": "FSL-1.1-ALv2",
"bin": {
"mobilecli": "index.js"
},
"optionalDependencies": {
- "@mobilenext/mobilecli-darwin-amd64": "1.0.13",
- "@mobilenext/mobilecli-darwin-arm64": "1.0.13",
- "@mobilenext/mobilecli-linux-amd64": "1.0.13",
- "@mobilenext/mobilecli-linux-arm64": "1.0.13",
- "@mobilenext/mobilecli-windows-amd64": "1.0.13",
- "@mobilenext/mobilecli-windows-arm64": "1.0.13"
+ "@mobilenext/mobilecli-darwin-amd64": "1.0.16",
+ "@mobilenext/mobilecli-darwin-arm64": "1.0.16",
+ "@mobilenext/mobilecli-linux-amd64": "1.0.16",
+ "@mobilenext/mobilecli-linux-arm64": "1.0.16",
+ "@mobilenext/mobilecli-windows-amd64": "1.0.16",
+ "@mobilenext/mobilecli-windows-arm64": "1.0.16"
}
},
"node_modules/mobilewright": {
- "version": "0.0.60",
- "resolved": "https://registry.npmjs.org/mobilewright/-/mobilewright-0.0.60.tgz",
- "integrity": "sha512-c+aIg0FtMI6226xoVwXiO8Guqk9v5rT81zohz2Rs4WuZEaOgJidHoX9yd5Sqjpx3nTVYfmkFtqHoMFKMGVOuCg==",
+ "version": "0.0.62",
+ "resolved": "https://registry.npmjs.org/mobilewright/-/mobilewright-0.0.62.tgz",
+ "integrity": "sha512-XmeJwVzTwPQo0Bg25ErFcc0B2ZK5pcvcMiUsla7Uo6N5vUecFyFMdiE/Y9q0HW7IVuE+FAqdNhvelarlB+jLBg==",
"license": "Apache-2.0",
"dependencies": {
- "@mobilewright/core": "^0.0.60",
- "@mobilewright/driver-mobilecli": "^0.0.60",
- "@mobilewright/driver-mobilenext": "^0.0.60",
- "@mobilewright/inspector": "^0.0.60",
- "@mobilewright/protocol": "^0.0.60",
+ "@mobilewright/core": "^0.0.62",
+ "@mobilewright/driver-mobilecli": "^0.0.62",
+ "@mobilewright/driver-mobilenext": "^0.0.62",
+ "@mobilewright/inspector": "^0.0.62",
+ "@mobilewright/protocol": "^0.0.62",
"commander": "^15.0.0",
"debug": "^4.4.3",
"open": "^10.2.0",
@@ -5523,9 +5523,9 @@
"license": "ISC"
},
"node_modules/sharp": {
- "version": "0.35.4",
- "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.4.tgz",
- "integrity": "sha512-n++8XWcj+jCOr2IOl7h8LbKnGBDY4aPbmprMONBNFdn0ImXqpGVv5zliDs0V9HbmbCQLpbuo2ej9rAoOQTvMDA==",
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz",
+ "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==",
"license": "Apache-2.0",
"dependencies": {
"@img/colour": "^1.1.0",
@@ -5539,31 +5539,31 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-darwin-arm64": "0.35.4",
- "@img/sharp-darwin-x64": "0.35.4",
- "@img/sharp-freebsd-wasm32": "0.35.4",
- "@img/sharp-libvips-darwin-arm64": "1.3.3",
- "@img/sharp-libvips-darwin-x64": "1.3.3",
- "@img/sharp-libvips-linux-arm": "1.3.3",
- "@img/sharp-libvips-linux-arm64": "1.3.3",
- "@img/sharp-libvips-linux-ppc64": "1.3.3",
- "@img/sharp-libvips-linux-riscv64": "1.3.3",
- "@img/sharp-libvips-linux-s390x": "1.3.3",
- "@img/sharp-libvips-linux-x64": "1.3.3",
- "@img/sharp-libvips-linuxmusl-arm64": "1.3.3",
- "@img/sharp-libvips-linuxmusl-x64": "1.3.3",
- "@img/sharp-linux-arm": "0.35.4",
- "@img/sharp-linux-arm64": "0.35.4",
- "@img/sharp-linux-ppc64": "0.35.4",
- "@img/sharp-linux-riscv64": "0.35.4",
- "@img/sharp-linux-s390x": "0.35.4",
- "@img/sharp-linux-x64": "0.35.4",
- "@img/sharp-linuxmusl-arm64": "0.35.4",
- "@img/sharp-linuxmusl-x64": "0.35.4",
- "@img/sharp-webcontainers-wasm32": "0.35.4",
- "@img/sharp-win32-arm64": "0.35.4",
- "@img/sharp-win32-ia32": "0.35.4",
- "@img/sharp-win32-x64": "0.35.4"
+ "@img/sharp-darwin-arm64": "0.35.5",
+ "@img/sharp-darwin-x64": "0.35.5",
+ "@img/sharp-freebsd-wasm32": "0.35.5",
+ "@img/sharp-libvips-darwin-arm64": "1.3.4",
+ "@img/sharp-libvips-darwin-x64": "1.3.4",
+ "@img/sharp-libvips-linux-arm": "1.3.4",
+ "@img/sharp-libvips-linux-arm64": "1.3.4",
+ "@img/sharp-libvips-linux-ppc64": "1.3.4",
+ "@img/sharp-libvips-linux-riscv64": "1.3.4",
+ "@img/sharp-libvips-linux-s390x": "1.3.4",
+ "@img/sharp-libvips-linux-x64": "1.3.4",
+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.4",
+ "@img/sharp-libvips-linuxmusl-x64": "1.3.4",
+ "@img/sharp-linux-arm": "0.35.5",
+ "@img/sharp-linux-arm64": "0.35.5",
+ "@img/sharp-linux-ppc64": "0.35.5",
+ "@img/sharp-linux-riscv64": "0.35.5",
+ "@img/sharp-linux-s390x": "0.35.5",
+ "@img/sharp-linux-x64": "0.35.5",
+ "@img/sharp-linuxmusl-arm64": "0.35.5",
+ "@img/sharp-linuxmusl-x64": "0.35.5",
+ "@img/sharp-webcontainers-wasm32": "0.35.5",
+ "@img/sharp-win32-arm64": "0.35.5",
+ "@img/sharp-win32-ia32": "0.35.5",
+ "@img/sharp-win32-x64": "0.35.5"
},
"peerDependenciesMeta": {
"@types/node": {
@@ -6465,9 +6465,9 @@
"license": "ISC"
},
"node_modules/ws": {
- "version": "8.21.3",
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz",
- "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==",
+ "version": "8.22.0",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.0.tgz",
+ "integrity": "sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==",
"license": "MIT",
"engines": {
"node": ">=10.0.0"
diff --git a/package.json b/package.json
index f3bdf82..86a634f 100644
--- a/package.json
+++ b/package.json
@@ -32,7 +32,7 @@
"commander": "14.0.0",
"express": "5.1.0",
"fast-xml-parser": "5.8.0",
- "mobilewright": "0.0.60",
+ "mobilewright": "0.0.62",
"qs": "^6.15.0",
"zod": "^4.2.0",
"zod-to-json-schema": "3.25.0"
diff --git a/src/mobile-device.ts b/src/mobile-device.ts
index 781236c..24274f2 100644
--- a/src/mobile-device.ts
+++ b/src/mobile-device.ts
@@ -1,5 +1,5 @@
import { Mobilecli } from "./mobilecli";
-import { ActionableError, Button, InstalledApp, Orientation, Robot, ScreenElement, ScreenSize, ScreenshotOptions, SwipeDirection } from "./robot";
+import { ActionableError, Button, FoldPosture, InstalledApp, Orientation, Robot, ScreenElement, ScreenSize, ScreenshotOptions, SwipeDirection } from "./robot";
interface InstalledAppsResponse {
status: "ok",
@@ -287,6 +287,11 @@ export class MobileDevice implements Robot {
return response.data.orientation;
}
+ public async fold(posture: FoldPosture | number): Promise<void> {
+ // parse the response, older mobilecli versions print help and exit 0 on unknown commands
+ this.runJsonCommand<unknown>(["device", "fold", `${posture}`]);
+ }
+
public async setLocation(latitude: number, longitude: number): Promise<void> {
this.runCommand(["device", "location", "set", `${latitude},${longitude}`]);
}
diff --git a/src/robot.ts b/src/robot.ts
index f801de7..d455719 100644
--- a/src/robot.ts
+++ b/src/robot.ts
@@ -51,6 +51,8 @@ export class ActionableError extends Error {
export type Orientation = "portrait" | "landscape";
+export type FoldPosture = "folded" | "half-open" | "open";
+
export interface ScreenshotOptions {
format?: "png" | "jpeg";
quality?: number;
@@ -102,6 +104,12 @@ export interface Robot {
*/
clearLocation?(): Promise<void>;
+ /**
+ * Set the hinge of a foldable device, either to a named posture or to an
+ * angle in degrees (0-180). Optional, not all robots support it.
+ */
+ fold?(posture: FoldPosture | number): Promise<void>;
+
/**
* Read the device clipboard. Optional, not all robots support it.
*/
diff --git a/src/server.ts b/src/server.ts
index 732910a..c2ee3a5 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -934,6 +934,40 @@ export const createMcpServer = (): McpServer => {
}
);
+ tool(
+ "mobile_fold_device",
+ "Fold Device",
+ "Fold or unfold a foldable device, such as iPhone Duo simulators and foldable Android emulators. Provide either posture or angle.",
+ {
+ device: z.string().describe("The device identifier to use. Use mobile_list_available_devices to find which devices are available to you."),
+ posture: z.enum(["folded", "half-open", "open"]).optional().describe("The desired hinge posture: folded (0 degrees), half-open (90 degrees) or open (180 degrees)"),
+ angle: z.number().min(0).max(180).optional().describe("The desired hinge angle in degrees, between 0 (folded) and 180 (open). iOS only, e.g. iPhone Duo. Use instead of posture."),
+ },
+ { readOnlyHint: false, destructiveHint: false, openWorldHint: false },
+ async ({ device, posture, angle }) => {
+ const robot = getRobotFromDevice(device);
+ if (!robot.fold) {
+ throw new ActionableError("Folding the device is not supported in legacy robot mode");
+ }
+
+ if (posture !== undefined && angle !== undefined) {
+ throw new ActionableError("Provide either posture or angle, not both");
+ }
+
+ if (posture === undefined && angle === undefined) {
+ throw new ActionableError("Either posture or angle is required to fold the device");
+ }
+
+ if (angle !== undefined) {
+ await robot.fold(angle);
+ return `Set device hinge angle to ${angle} degrees`;
+ }
+
+ await robot.fold(posture!);
+ return `Changed device posture to ${posture}`;
+ }
+ );
+
tool(
"mobile_set_location",
"Set Location",
diff --git a/test/mobile-device.test.ts b/test/mobile-device.test.ts
index 619c2f1..4e454f9 100644
--- a/test/mobile-device.test.ts
+++ b/test/mobile-device.test.ts
@@ -86,6 +86,23 @@ test.describe("MobileDevice", () => {
});
});
+ test.describe("fold", () => {
+
+ test("fold should call mobilecli device fold with a named posture", async () => {
+ const { device, calls } = createMockMobileDevice(JSON.stringify({ status: "ok", data: {} }));
+ await device.fold("half-open");
+
+ expect(calls[0]).toEqual(["device", "fold", "half-open", "--device", "test-device"]);
+ });
+
+ test("fold should call mobilecli device fold with an angle in degrees", async () => {
+ const { device, calls } = createMockMobileDevice(JSON.stringify({ status: "ok", data: {} }));
+ await device.fold(120);
+
+ expect(calls[0]).toEqual(["device", "fold", "120", "--device", "test-device"]);
+ });
+ });
+
test.describe("location", () => {
test("setLocation should call mobilecli device location set with lat,lng", async () => {
diff --git a/test/server-annotations.test.ts b/test/server-annotations.test.ts
index 5bff4ee..2505da4 100644
--- a/test/server-annotations.test.ts
+++ b/test/server-annotations.test.ts
@@ -28,6 +28,7 @@ const expectedAnnotations: ToolAnnotationMatrix = {
mobile_save_screenshot: { readOnlyHint: false, destructiveHint: false, openWorldHint: false },
mobile_take_screenshot: { readOnlyHint: true, openWorldHint: true },
mobile_set_orientation: { readOnlyHint: false, destructiveHint: false, openWorldHint: false },
+ mobile_fold_device: { readOnlyHint: false, destructiveHint: false, openWorldHint: false },
mobile_set_location: { readOnlyHint: false, destructiveHint: false, openWorldHint: false },
mobile_clipboard: { readOnlyHint: false, destructiveHint: false, openWorldHint: false },
mobile_get_device_logs: { readOnlyHint: true, openWorldHint: true },