@kaeawc/auto-mobile 0.0.26 → 0.0.28

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 CHANGED
@@ -8,9 +8,9 @@
8
8
  ![Platform: macOS](https://img.shields.io/badge/platform-macOS-lightgrey)
9
9
  ![Platform: Linux](https://img.shields.io/badge/platform-Linux-lightgrey)
10
10
 
11
- ![TypeScript tests: 3,760](https://img.shields.io/badge/TypeScript_tests-3%2C760-3178C6)
12
- ![Kotlin tests: 1,100](https://img.shields.io/badge/Kotlin_tests-1%2C100-7F52FF)
13
- ![Swift tests: 393](https://img.shields.io/badge/Swift_tests-393-F05138)
11
+ ![TypeScript tests: 4,020](https://img.shields.io/badge/TypeScript_tests-4%2C020-3178C6)
12
+ ![Kotlin tests: 1,117](https://img.shields.io/badge/Kotlin_tests-1%2C117-7F52FF)
13
+ ![Swift tests: 435](https://img.shields.io/badge/Swift_tests-435-F05138)
14
14
  ![Kotlin coverage](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/kotlin-coverage-badge.json)
15
15
  ![Swift coverage](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/swift-coverage-badge.json)
16
16
 
package/README.md.backup CHANGED
@@ -8,9 +8,9 @@
8
8
  ![Platform: macOS](https://img.shields.io/badge/platform-macOS-lightgrey)
9
9
  ![Platform: Linux](https://img.shields.io/badge/platform-Linux-lightgrey)
10
10
 
11
- ![TypeScript tests: 3,760](https://img.shields.io/badge/TypeScript_tests-3%2C760-3178C6)
12
- ![Kotlin tests: 1,100](https://img.shields.io/badge/Kotlin_tests-1%2C100-7F52FF)
13
- ![Swift tests: 393](https://img.shields.io/badge/Swift_tests-393-F05138)
11
+ ![TypeScript tests: 4,020](https://img.shields.io/badge/TypeScript_tests-4%2C020-3178C6)
12
+ ![Kotlin tests: 1,117](https://img.shields.io/badge/Kotlin_tests-1%2C117-7F52FF)
13
+ ![Swift tests: 435](https://img.shields.io/badge/Swift_tests-435-F05138)
14
14
  ![Kotlin coverage](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/kotlin-coverage-badge.json)
15
15
  ![Swift coverage](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/swift-coverage-badge.json)
16
16
 
@@ -255,12 +255,12 @@
255
255
  "description": "Tool name to execute"
256
256
  },
257
257
  "params": {
258
- "description": "Tool-specific parameters",
259
258
  "type": "object",
260
259
  "propertyNames": {
261
260
  "type": "string"
262
261
  },
263
- "additionalProperties": {}
262
+ "additionalProperties": {},
263
+ "description": "Tool-specific parameters. Must include a non-empty 'device'."
264
264
  },
265
265
  "label": {
266
266
  "description": "Optional human-readable label",
@@ -268,7 +268,8 @@
268
268
  }
269
269
  },
270
270
  "required": [
271
- "tool"
271
+ "tool",
272
+ "params"
272
273
  ],
273
274
  "additionalProperties": {}
274
275
  },
@@ -2191,6 +2192,10 @@
2191
2192
  "description": "When true, include unprocessed view hierarchy in response alongside normal output (default: false)",
2192
2193
  "type": "boolean"
2193
2194
  },
2195
+ "skipBackStack": {
2196
+ "description": "When true, skip back stack collection during waitFor polling to reduce ADB overhead (default: false)",
2197
+ "type": "boolean"
2198
+ },
2194
2199
  "sessionUuid": {
2195
2200
  "description": "Session UUID",
2196
2201
  "type": "string"
@@ -3962,6 +3967,59 @@
3962
3967
  "additionalProperties": false
3963
3968
  }
3964
3969
  },
3970
+ {
3971
+ "name": "phoneCall",
3972
+ "description": "Simulate an incoming phone call on an Android emulator via the emulator console (gsm call/accept/cancel/busy/hold). Emulator-only: physical devices return an unsupported error.",
3973
+ "inputSchema": {
3974
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3975
+ "type": "object",
3976
+ "properties": {
3977
+ "action": {
3978
+ "type": "string",
3979
+ "enum": [
3980
+ "call",
3981
+ "accept",
3982
+ "cancel",
3983
+ "busy",
3984
+ "hold"
3985
+ ],
3986
+ "description": "Phone call action: 'call' simulates an incoming call; 'accept' answers a ringing or waiting call; 'cancel' ends the call from the network side; 'busy' rejects a waiting call with a busy signal; 'hold' puts the active call on hold (no phoneNumber required)."
3987
+ },
3988
+ "phoneNumber": {
3989
+ "description": "Phone number for the call action. Required for all actions except 'hold'. Digits with optional leading '+', max 20 digits.",
3990
+ "type": "string"
3991
+ },
3992
+ "platform": {
3993
+ "type": "string",
3994
+ "enum": [
3995
+ "android",
3996
+ "ios"
3997
+ ],
3998
+ "description": "Target platform"
3999
+ },
4000
+ "sessionUuid": {
4001
+ "description": "Session UUID",
4002
+ "type": "string"
4003
+ },
4004
+ "keepScreenAwake": {
4005
+ "description": "Keep device awake",
4006
+ "type": "boolean"
4007
+ },
4008
+ "device": {
4009
+ "description": "Device label for multi-device plans (e.g., \"A\", \"B\")",
4010
+ "type": "string"
4011
+ },
4012
+ "deviceId": {
4013
+ "description": "Device ID",
4014
+ "type": "string"
4015
+ }
4016
+ },
4017
+ "required": [
4018
+ "action"
4019
+ ],
4020
+ "additionalProperties": false
4021
+ }
4022
+ },
3965
4023
  {
3966
4024
  "name": "pinchOn",
3967
4025
  "description": "Pinch to zoom",
@@ -4408,6 +4466,53 @@
4408
4466
  "additionalProperties": false
4409
4467
  }
4410
4468
  },
4469
+ {
4470
+ "name": "sendSms",
4471
+ "description": "Send a simulated incoming SMS to an Android emulator via the emulator console (sms send). Emulator-only: physical devices return an unsupported error.",
4472
+ "inputSchema": {
4473
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4474
+ "type": "object",
4475
+ "properties": {
4476
+ "phoneNumber": {
4477
+ "type": "string",
4478
+ "description": "Sender phone number for the simulated incoming SMS. Digits with optional leading '+', max 20 digits."
4479
+ },
4480
+ "message": {
4481
+ "type": "string",
4482
+ "description": "SMS message body. Max 1024 characters. Must not contain newlines, carriage returns, or NUL bytes."
4483
+ },
4484
+ "platform": {
4485
+ "type": "string",
4486
+ "enum": [
4487
+ "android",
4488
+ "ios"
4489
+ ],
4490
+ "description": "Target platform"
4491
+ },
4492
+ "sessionUuid": {
4493
+ "description": "Session UUID",
4494
+ "type": "string"
4495
+ },
4496
+ "keepScreenAwake": {
4497
+ "description": "Keep device awake",
4498
+ "type": "boolean"
4499
+ },
4500
+ "device": {
4501
+ "description": "Device label for multi-device plans (e.g., \"A\", \"B\")",
4502
+ "type": "string"
4503
+ },
4504
+ "deviceId": {
4505
+ "description": "Device ID",
4506
+ "type": "string"
4507
+ }
4508
+ },
4509
+ "required": [
4510
+ "phoneNumber",
4511
+ "message"
4512
+ ],
4513
+ "additionalProperties": false
4514
+ }
4515
+ },
4411
4516
  {
4412
4517
  "name": "setActiveDevice",
4413
4518
  "description": "Set active device",
@@ -5934,6 +6039,14 @@
5934
6039
  "description": "When true, refresh the accessibility hierarchy before tapping and require consecutive re-finds with stable bounds before dispatching the gesture. Prevents tapping stale coordinates when the UI is still settling (loading overlays, list refreshes, keyboard). Recommended for search result lists and dynamic content.",
5935
6040
  "type": "boolean"
5936
6041
  },
6042
+ "retryIfNoChange": {
6043
+ "description": "When true, compare the view hierarchy before and after the tap. If unchanged (ghost tap detected), retry the tap once after a short delay. Recommended for taps that should cause obvious UI changes like navigation or screen transitions.",
6044
+ "type": "boolean"
6045
+ },
6046
+ "ensureTap": {
6047
+ "description": "Convenience flag that enables both preTapStability and retryIfNoChange. Use on taps in dynamic UI where you want both stable bounds before tapping and ghost-tap detection after.",
6048
+ "type": "boolean"
6049
+ },
5937
6050
  "platform": {
5938
6051
  "type": "string",
5939
6052
  "enum": [