@xiuchang-midscene/android 1.6.0 → 1.6.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-present Bytedance, Inc. and its affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/es/cli.mjs CHANGED
@@ -1994,7 +1994,7 @@ class AndroidMidsceneTools extends BaseMidsceneTools {
1994
1994
  const tools = new AndroidMidsceneTools();
1995
1995
  runToolsCLI(tools, 'midscene-android', {
1996
1996
  stripPrefix: 'android_',
1997
- version: "1.6.0"
1997
+ version: "1.6.2"
1998
1998
  }).catch((e)=>{
1999
1999
  if (!(e instanceof CLIError)) console.error(e);
2000
2000
  process.exit(e instanceof CLIError ? e.exitCode : 1);
@@ -1997,7 +1997,7 @@ class AndroidMCPServer extends BaseMCPServer {
1997
1997
  constructor(toolsManager){
1998
1998
  super({
1999
1999
  name: '@midscene/android-mcp',
2000
- version: "1.6.0",
2000
+ version: "1.6.2",
2001
2001
  description: 'Control the Android device using natural language commands'
2002
2002
  }, toolsManager);
2003
2003
  }
package/dist/lib/cli.js CHANGED
@@ -2009,7 +2009,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
2009
2009
  const tools = new AndroidMidsceneTools();
2010
2010
  (0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-android', {
2011
2011
  stripPrefix: 'android_',
2012
- version: "1.6.0"
2012
+ version: "1.6.2"
2013
2013
  }).catch((e)=>{
2014
2014
  if (!(e instanceof cli_namespaceObject.CLIError)) console.error(e);
2015
2015
  process.exit(e instanceof cli_namespaceObject.CLIError ? e.exitCode : 1);
@@ -2028,7 +2028,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
2028
2028
  constructor(toolsManager){
2029
2029
  super({
2030
2030
  name: '@midscene/android-mcp',
2031
- version: "1.6.0",
2031
+ version: "1.6.2",
2032
2032
  description: 'Control the Android device using natural language commands'
2033
2033
  }, toolsManager);
2034
2034
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiuchang-midscene/android",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "Android automation library for Midscene",
5
5
  "keywords": [
6
6
  "Android UI automation",
@@ -15,7 +15,11 @@
15
15
  "bin": {
16
16
  "midscene-android": "./bin/midscene-android"
17
17
  },
18
- "files": ["bin", "dist", "README.md"],
18
+ "files": [
19
+ "bin",
20
+ "dist",
21
+ "README.md"
22
+ ],
19
23
  "exports": {
20
24
  ".": {
21
25
  "types": "./dist/types/index.d.ts",
@@ -29,34 +33,21 @@
29
33
  },
30
34
  "./package.json": "./package.json"
31
35
  },
32
- "scripts": {
33
- "dev": "npm run build:watch",
34
- "prebuild": "node scripts/download-scrcpy-server.mjs && node scripts/download-yadb.mjs",
35
- "build": "rslib build",
36
- "build:watch": "rslib build --watch --no-clean",
37
- "prepack": "node scripts/download-scrcpy-server.mjs && node scripts/download-yadb.mjs",
38
- "playground": "DEBUG=midscene:* tsx demo/playground.ts",
39
- "test": "vitest --run",
40
- "test:u": "vitest --run -u",
41
- "test:ai": "AI_TEST_TYPE=android npm run test",
42
- "test:ai:cache": "MIDSCENE_CACHE=true AI_TEST_TYPE=android npm run test"
43
- },
44
36
  "dependencies": {
45
- "@midscene/core": "workspace:*",
46
- "@midscene/shared": "workspace:*",
47
37
  "@yume-chan/adb": "2.5.1",
48
38
  "@yume-chan/adb-scrcpy": "2.3.2",
49
39
  "@yume-chan/adb-server-node-tcp": "2.5.2",
50
40
  "@yume-chan/scrcpy": "2.3.0",
51
41
  "@yume-chan/stream-extra": "2.1.0",
52
42
  "appium-adb": "12.12.1",
53
- "sharp": "^0.34.3"
43
+ "sharp": "^0.34.3",
44
+ "@midscene/core": "1.6.0",
45
+ "@midscene/shared": "1.6.0"
54
46
  },
55
47
  "optionalDependencies": {
56
48
  "@ffmpeg-installer/ffmpeg": "^1.1.0"
57
49
  },
58
50
  "devDependencies": {
59
- "@midscene/playground": "workspace:*",
60
51
  "@rslib/core": "^0.18.3",
61
52
  "@types/node": "^18.0.0",
62
53
  "dotenv": "^16.4.5",
@@ -64,7 +55,19 @@
64
55
  "typescript": "^5.8.3",
65
56
  "tsx": "^4.19.2",
66
57
  "vitest": "3.0.5",
67
- "zod": "3.24.3"
58
+ "zod": "3.24.3",
59
+ "@midscene/playground": "1.6.0"
68
60
  },
69
- "license": "MIT"
70
- }
61
+ "license": "MIT",
62
+ "scripts": {
63
+ "dev": "npm run build:watch",
64
+ "prebuild": "node scripts/download-scrcpy-server.mjs && node scripts/download-yadb.mjs",
65
+ "build": "rslib build",
66
+ "build:watch": "rslib build --watch --no-clean",
67
+ "playground": "DEBUG=midscene:* tsx demo/playground.ts",
68
+ "test": "vitest --run",
69
+ "test:u": "vitest --run -u",
70
+ "test:ai": "AI_TEST_TYPE=android npm run test",
71
+ "test:ai:cache": "MIDSCENE_CACHE=true AI_TEST_TYPE=android npm run test"
72
+ }
73
+ }