@kaeawc/auto-mobile 0.0.39 → 0.0.40
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/README.md +2 -2
- package/README.md.backup +2 -2
- package/dist/schemas/tool-definitions.json +142 -0
- package/dist/src/index.js +236 -222
- package/dist/src/index.js.map +1 -1
- package/package.json +5 -7
- package/schemas/tool-definitions.json +142 -0
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaeawc/auto-mobile",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.40",
|
|
4
4
|
"description": "Mobile device interaction automation via MCP",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "bun test",
|
|
7
7
|
"test:coverage": "bun test --coverage",
|
|
8
8
|
"test:startup:bun": "bash scripts/ci/mcp-startup-smoke.sh",
|
|
9
9
|
"test:sharp:bun": "bun scripts/ci/sharp-runtime-smoke.ts",
|
|
10
|
-
"test:memory-leaks": "
|
|
10
|
+
"test:memory-leaks": "bun --expose-gc scripts/detect-memory-leaks.ts",
|
|
11
11
|
"lint": "eslint . --fix",
|
|
12
12
|
"watch": "bun --watch src/index.ts",
|
|
13
13
|
"build": "bun build.ts && chmod +x dist/src/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"benchmark-tools": "bun scripts/benchmark-mcp-tools.ts",
|
|
22
22
|
"benchmark-startup": "bash scripts/benchmark-startup.sh",
|
|
23
23
|
"benchmark-npm-unpacked-size": "bun scripts/benchmark-npm-unpacked-size.ts",
|
|
24
|
-
"profile:memory": "
|
|
25
|
-
"profile:heap": "
|
|
24
|
+
"profile:memory": "bun --expose-gc --inspect scripts/detect-memory-leaks.ts --mode=profile",
|
|
25
|
+
"profile:heap": "bun --expose-gc --heap-prof scripts/stress-test.ts",
|
|
26
26
|
"validate:yaml": "bun scripts/validate-yaml.ts",
|
|
27
27
|
"dead-code:ts": "bash scripts/detect-dead-code-ts.sh",
|
|
28
28
|
"dead-code:ts:prune": "bash -o pipefail -c 'bunx ts-prune --project tsconfig.dead-code.json -i src/db/migrations | (grep -v \"(used in module)\" || true) | bash scripts/filter-ts-prune-allowlist.sh'",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@anthropic-ai/sdk": "^0.
|
|
78
|
+
"@anthropic-ai/sdk": "^0.107.0",
|
|
79
79
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
80
80
|
"adm-zip": "^0.5.16",
|
|
81
81
|
"ajv": "^8.18.0",
|
|
@@ -149,9 +149,7 @@
|
|
|
149
149
|
"@typescript-eslint/parser": "^8.53.0",
|
|
150
150
|
"eslint": "^10.0.0",
|
|
151
151
|
"eslint-plugin-import": "^2.31.0",
|
|
152
|
-
"heapdump": "^0.3.15",
|
|
153
152
|
"knip": "^6.0.0",
|
|
154
|
-
"memwatch-next": "^0.3.0",
|
|
155
153
|
"ts-prune": "^0.10.3",
|
|
156
154
|
"tsx": "^4.21.0",
|
|
157
155
|
"turbo": "^2.8.10",
|
|
@@ -1734,6 +1734,64 @@
|
|
|
1734
1734
|
"additionalProperties": false
|
|
1735
1735
|
}
|
|
1736
1736
|
},
|
|
1737
|
+
{
|
|
1738
|
+
"name": "getPreference",
|
|
1739
|
+
"description": "Read an Android system property, Android SharedPreferences key, or iOS UserDefaults key.",
|
|
1740
|
+
"inputSchema": {
|
|
1741
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1742
|
+
"type": "object",
|
|
1743
|
+
"properties": {
|
|
1744
|
+
"scope": {
|
|
1745
|
+
"type": "string",
|
|
1746
|
+
"enum": [
|
|
1747
|
+
"systemProperty",
|
|
1748
|
+
"sharedPreferences",
|
|
1749
|
+
"userDefaults"
|
|
1750
|
+
],
|
|
1751
|
+
"description": "Preference scope"
|
|
1752
|
+
},
|
|
1753
|
+
"appId": {
|
|
1754
|
+
"description": "App package or bundle id",
|
|
1755
|
+
"type": "string"
|
|
1756
|
+
},
|
|
1757
|
+
"suite": {
|
|
1758
|
+
"description": "SharedPreferences file name or UserDefaults suite/app group",
|
|
1759
|
+
"type": "string"
|
|
1760
|
+
},
|
|
1761
|
+
"key": {
|
|
1762
|
+
"type": "string",
|
|
1763
|
+
"minLength": 1,
|
|
1764
|
+
"description": "Preference key or Android system property name"
|
|
1765
|
+
},
|
|
1766
|
+
"platform": {
|
|
1767
|
+
"type": "string",
|
|
1768
|
+
"enum": [
|
|
1769
|
+
"android",
|
|
1770
|
+
"ios"
|
|
1771
|
+
]
|
|
1772
|
+
},
|
|
1773
|
+
"sessionUuid": {
|
|
1774
|
+
"description": "Session",
|
|
1775
|
+
"type": "string"
|
|
1776
|
+
},
|
|
1777
|
+
"keepScreenAwake": {
|
|
1778
|
+
"type": "boolean"
|
|
1779
|
+
},
|
|
1780
|
+
"device": {
|
|
1781
|
+
"description": "Device label",
|
|
1782
|
+
"type": "string"
|
|
1783
|
+
},
|
|
1784
|
+
"deviceId": {
|
|
1785
|
+
"type": "string"
|
|
1786
|
+
}
|
|
1787
|
+
},
|
|
1788
|
+
"required": [
|
|
1789
|
+
"scope",
|
|
1790
|
+
"key"
|
|
1791
|
+
],
|
|
1792
|
+
"additionalProperties": false
|
|
1793
|
+
}
|
|
1794
|
+
},
|
|
1737
1795
|
{
|
|
1738
1796
|
"name": "highlight",
|
|
1739
1797
|
"description": "Draw a visual highlight around a UI element.",
|
|
@@ -4185,6 +4243,90 @@
|
|
|
4185
4243
|
"additionalProperties": false
|
|
4186
4244
|
}
|
|
4187
4245
|
},
|
|
4246
|
+
{
|
|
4247
|
+
"name": "setPreference",
|
|
4248
|
+
"description": "Write an Android system property, Android SharedPreferences key, or iOS UserDefaults key and return read-back verification.",
|
|
4249
|
+
"inputSchema": {
|
|
4250
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4251
|
+
"type": "object",
|
|
4252
|
+
"properties": {
|
|
4253
|
+
"scope": {
|
|
4254
|
+
"type": "string",
|
|
4255
|
+
"enum": [
|
|
4256
|
+
"systemProperty",
|
|
4257
|
+
"sharedPreferences",
|
|
4258
|
+
"userDefaults"
|
|
4259
|
+
],
|
|
4260
|
+
"description": "Preference scope"
|
|
4261
|
+
},
|
|
4262
|
+
"appId": {
|
|
4263
|
+
"description": "App package or bundle id",
|
|
4264
|
+
"type": "string"
|
|
4265
|
+
},
|
|
4266
|
+
"suite": {
|
|
4267
|
+
"description": "SharedPreferences file name or UserDefaults suite/app group",
|
|
4268
|
+
"type": "string"
|
|
4269
|
+
},
|
|
4270
|
+
"key": {
|
|
4271
|
+
"type": "string",
|
|
4272
|
+
"minLength": 1,
|
|
4273
|
+
"description": "Preference key or Android system property name"
|
|
4274
|
+
},
|
|
4275
|
+
"value": {
|
|
4276
|
+
"anyOf": [
|
|
4277
|
+
{
|
|
4278
|
+
"type": "string"
|
|
4279
|
+
},
|
|
4280
|
+
{
|
|
4281
|
+
"type": "boolean"
|
|
4282
|
+
},
|
|
4283
|
+
{
|
|
4284
|
+
"type": "number"
|
|
4285
|
+
}
|
|
4286
|
+
],
|
|
4287
|
+
"description": "Value to write"
|
|
4288
|
+
},
|
|
4289
|
+
"type": {
|
|
4290
|
+
"type": "string",
|
|
4291
|
+
"enum": [
|
|
4292
|
+
"string",
|
|
4293
|
+
"bool",
|
|
4294
|
+
"int",
|
|
4295
|
+
"float"
|
|
4296
|
+
],
|
|
4297
|
+
"description": "Value type for typed preference stores"
|
|
4298
|
+
},
|
|
4299
|
+
"platform": {
|
|
4300
|
+
"type": "string",
|
|
4301
|
+
"enum": [
|
|
4302
|
+
"android",
|
|
4303
|
+
"ios"
|
|
4304
|
+
]
|
|
4305
|
+
},
|
|
4306
|
+
"sessionUuid": {
|
|
4307
|
+
"description": "Session",
|
|
4308
|
+
"type": "string"
|
|
4309
|
+
},
|
|
4310
|
+
"keepScreenAwake": {
|
|
4311
|
+
"type": "boolean"
|
|
4312
|
+
},
|
|
4313
|
+
"device": {
|
|
4314
|
+
"description": "Device label",
|
|
4315
|
+
"type": "string"
|
|
4316
|
+
},
|
|
4317
|
+
"deviceId": {
|
|
4318
|
+
"type": "string"
|
|
4319
|
+
}
|
|
4320
|
+
},
|
|
4321
|
+
"required": [
|
|
4322
|
+
"scope",
|
|
4323
|
+
"key",
|
|
4324
|
+
"value",
|
|
4325
|
+
"type"
|
|
4326
|
+
],
|
|
4327
|
+
"additionalProperties": false
|
|
4328
|
+
}
|
|
4329
|
+
},
|
|
4188
4330
|
{
|
|
4189
4331
|
"name": "setUIState",
|
|
4190
4332
|
"description": "Set multiple form fields by desired state.",
|