@kaeawc/auto-mobile 0.0.87 → 0.0.89
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 +4 -4
- package/README.md.backup +4 -4
- package/dist/build-info.json +13 -10
- package/dist/schemas/test-plan.schema.json +276 -0
- package/dist/src/index.js +2030 -1166
- package/dist/src/utils/workers/iosBundleExtractWorker.js +3 -3
- package/mcp-skills/auto-mobile-usage/SKILL.md +44 -0
- package/node_modules/@borewit/text-codec/LICENSE.txt +9 -9
- package/node_modules/@borewit/text-codec/README.md +86 -86
- package/node_modules/@borewit/text-codec/lib/index.js +102 -120
- package/node_modules/@borewit/text-codec/package.json +71 -70
- package/node_modules/strtok3/README.md +186 -11
- package/node_modules/strtok3/lib/AbstractTokenizer.js +12 -4
- package/node_modules/strtok3/lib/BlobTokenizer.js +1 -0
- package/node_modules/strtok3/lib/BufferTokenizer.js +2 -1
- package/node_modules/strtok3/lib/FileTokenizer.js +11 -5
- package/node_modules/strtok3/lib/NotRegularFileError.js +8 -0
- package/node_modules/strtok3/lib/ReadStreamTokenizer.js +17 -2
- package/node_modules/strtok3/lib/TokenizerBoundaryError.js +10 -0
- package/node_modules/strtok3/lib/TokenizerView.js +184 -0
- package/node_modules/strtok3/lib/core.js +5 -18
- package/node_modules/strtok3/lib/index.js +29 -5
- package/node_modules/strtok3/lib/isRandomAccessTokenizer.js +10 -0
- package/node_modules/strtok3/lib/stream/StreamReader.js +29 -8
- package/node_modules/strtok3/package.json +10 -8
- package/package.json +21 -17
- package/schemas/test-plan.schema.json +276 -0
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|

|
|
9
9
|

|
|
10
10
|
|
|
11
|
-

|
|
12
|
+

|
|
13
|
+

|
|
14
14
|

|
|
15
15
|

|
|
16
16
|
|
|
@@ -68,5 +68,5 @@ or follow the [installation guide](https://github.com/kaeawc/auto-mobile/blob/ma
|
|
|
68
68
|
## Contributing
|
|
69
69
|
|
|
70
70
|
- [Code of Conduct](https://github.com/kaeawc/auto-mobile/blob/main/CODE_OF_CONDUCT.md)
|
|
71
|
-
-
|
|
71
|
+
- [Security policy](https://github.com/kaeawc/auto-mobile/blob/main/SECURITY.md) - report vulnerabilities privately via GitHub
|
|
72
72
|
- [Contributing](https://github.com/kaeawc/auto-mobile/blob/main/.github/CONTRIBUTING.md)
|
package/README.md.backup
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|

|
|
9
9
|

|
|
10
10
|
|
|
11
|
-

|
|
12
|
+

|
|
13
|
+

|
|
14
14
|

|
|
15
15
|

|
|
16
16
|
|
|
@@ -68,5 +68,5 @@ or follow the [installation guide](docs/index.md#install).
|
|
|
68
68
|
## Contributing
|
|
69
69
|
|
|
70
70
|
- [Code of Conduct](CODE_OF_CONDUCT.md)
|
|
71
|
-
-
|
|
71
|
+
- [Security policy](SECURITY.md) - report vulnerabilities privately via GitHub
|
|
72
72
|
- [Contributing](.github/CONTRIBUTING.md)
|
package/dist/build-info.json
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@kaeawc/auto-mobile",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"sourceSha": "
|
|
4
|
+
"version": "0.0.89",
|
|
5
|
+
"sourceSha": "22c37a70a41c2e7d807eb296ec97183155e43c92",
|
|
6
6
|
"sourceShaFrom": "git",
|
|
7
7
|
"sourceDirty": false,
|
|
8
8
|
"sourceDirtyPaths": [],
|
|
9
9
|
"nativeResources": {
|
|
10
|
-
"apkSha256": "
|
|
11
|
-
"ipaSha256": "
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
10
|
+
"apkSha256": "b36316762569410a88e9dad7b23ee037e8379b9f9ecaabddd912db1f68646e06",
|
|
11
|
+
"ipaSha256": "d3ca14a76f26f8021de74e0ef3a4417e18d36d61a181ca7779c35250dd15b4b1",
|
|
12
|
+
"protoViewerApkSha256": "ff3ea2c155951c5a64caeb637e4ddd0ad38e7e5c375bdf35a25fd1487b051d5e",
|
|
13
|
+
"runnerSha256": "885d7a96cd2d1ffe7f8db01e18d3ead4a3a9a887e51b5d78aded226aa9680ccb",
|
|
14
|
+
"videoJarSha256": "092ad380e2cc80e763f1d91944113a79e343d8514178439bb2016bf52d9b5e92",
|
|
15
|
+
"screenCaptureHelperSha256": "9c274523a1ab2a72d15e69d01a34ca6409f5d16d1097f0372463f535ccb9dc37",
|
|
16
|
+
"prototypeAgentSha256": "93d8d3ff9e3e5c78b24dbb90bcf069bb6b68390de09e7372da6b6cb927a43713",
|
|
17
|
+
"prototypeViewerSha256": "4b98dee48a8950e2b8626a42509b177e94472aae70a50348f4a231956e243306",
|
|
18
|
+
"networkFilterSha256": "e0d4cbddf645aa7f225019927ff59ca040ae9e90a22e0cb772a5d9753ee675f3",
|
|
19
|
+
"lmkPressureArm64Sha256": "0de62ea4977e1b1be2f7fe2b646319c7988a7df89398a56caa90a0febb7a681c",
|
|
20
|
+
"lmkPressureX8664Sha256": "37a5194393e58b4e715382ff1a81d7e47ad4311307c8a2ea4e6ed76f9f1210fa"
|
|
18
21
|
},
|
|
19
22
|
"nativeResourcesFrom": "release-registry"
|
|
20
23
|
}
|
|
@@ -792,6 +792,15 @@
|
|
|
792
792
|
{
|
|
793
793
|
"required": ["cameraPoster"]
|
|
794
794
|
},
|
|
795
|
+
{
|
|
796
|
+
"required": ["screenLock"]
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"required": ["power"]
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"required": ["deviceCondition"]
|
|
803
|
+
},
|
|
795
804
|
{
|
|
796
805
|
"required": ["params"]
|
|
797
806
|
}
|
|
@@ -1668,6 +1677,105 @@
|
|
|
1668
1677
|
},
|
|
1669
1678
|
"additionalProperties": false
|
|
1670
1679
|
},
|
|
1680
|
+
"screenLock": {
|
|
1681
|
+
"description": "Android only. Set a lock-screen PIN, password, or pattern (digits 1-9) with locksettings, or clear one with type none and currentCredential. A recorded plan has the credential replaced by <redacted>: set it by hand before a replay.",
|
|
1682
|
+
"anyOf": [
|
|
1683
|
+
{
|
|
1684
|
+
"type": "object",
|
|
1685
|
+
"properties": {
|
|
1686
|
+
"type": { "type": "string", "const": "pin" },
|
|
1687
|
+
"credential": { "type": "string", "pattern": "^\\d{4,16}$" }
|
|
1688
|
+
},
|
|
1689
|
+
"required": ["type", "credential"],
|
|
1690
|
+
"additionalProperties": false
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"type": "object",
|
|
1694
|
+
"properties": {
|
|
1695
|
+
"type": { "type": "string", "const": "password" },
|
|
1696
|
+
"credential": {
|
|
1697
|
+
"type": "string",
|
|
1698
|
+
"pattern": "^(?!-)[\\x20-\\x26\\x28-\\x7e]{4,16}$"
|
|
1699
|
+
}
|
|
1700
|
+
},
|
|
1701
|
+
"required": ["type", "credential"],
|
|
1702
|
+
"additionalProperties": false
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
"type": "object",
|
|
1706
|
+
"properties": {
|
|
1707
|
+
"type": { "type": "string", "const": "pattern" },
|
|
1708
|
+
"credential": { "type": "string", "pattern": "^[1-9]{4,9}$" }
|
|
1709
|
+
},
|
|
1710
|
+
"required": ["type", "credential"],
|
|
1711
|
+
"additionalProperties": false
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
"type": "object",
|
|
1715
|
+
"properties": {
|
|
1716
|
+
"type": { "type": "string", "const": "none" },
|
|
1717
|
+
"currentCredential": {
|
|
1718
|
+
"type": "string",
|
|
1719
|
+
"pattern": "^(?!-)[\\x20-\\x26\\x28-\\x7e]{4,16}$"
|
|
1720
|
+
}
|
|
1721
|
+
},
|
|
1722
|
+
"required": ["type", "currentCredential"],
|
|
1723
|
+
"additionalProperties": false
|
|
1724
|
+
}
|
|
1725
|
+
]
|
|
1726
|
+
},
|
|
1727
|
+
"power": {
|
|
1728
|
+
"description": "Android only. Fake battery (level, charging ac|usb|wireless|none, reset), battery saver, Doze (off|light|deep; light/deep unplug the battery and turn the screen off first), an app's standby bucket and inactive state, Data Saver and thermal status (0-6 or reset). Battery, Doze and thermal faking is refused on physical devices. A session restores every changed field on release.",
|
|
1729
|
+
"type": "object",
|
|
1730
|
+
"properties": {
|
|
1731
|
+
"battery": {
|
|
1732
|
+
"type": "object",
|
|
1733
|
+
"properties": {
|
|
1734
|
+
"level": { "type": "integer", "minimum": 0, "maximum": 100 },
|
|
1735
|
+
"charging": { "type": "string", "enum": ["ac", "usb", "wireless", "none"] },
|
|
1736
|
+
"reset": { "type": "boolean" }
|
|
1737
|
+
},
|
|
1738
|
+
"additionalProperties": false
|
|
1739
|
+
},
|
|
1740
|
+
"batterySaver": { "type": "boolean" },
|
|
1741
|
+
"doze": { "type": "string", "enum": ["off", "light", "deep"] },
|
|
1742
|
+
"standbyBucket": {
|
|
1743
|
+
"type": "object",
|
|
1744
|
+
"properties": {
|
|
1745
|
+
"appId": {
|
|
1746
|
+
"type": "string",
|
|
1747
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*(?:\\.[A-Za-z][A-Za-z0-9_]*)+$"
|
|
1748
|
+
},
|
|
1749
|
+
"bucket": {
|
|
1750
|
+
"type": "string",
|
|
1751
|
+
"enum": ["active", "working_set", "frequent", "rare", "restricted"]
|
|
1752
|
+
}
|
|
1753
|
+
},
|
|
1754
|
+
"required": ["appId", "bucket"],
|
|
1755
|
+
"additionalProperties": false
|
|
1756
|
+
},
|
|
1757
|
+
"appInactive": {
|
|
1758
|
+
"type": "object",
|
|
1759
|
+
"properties": {
|
|
1760
|
+
"appId": {
|
|
1761
|
+
"type": "string",
|
|
1762
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*(?:\\.[A-Za-z][A-Za-z0-9_]*)+$"
|
|
1763
|
+
},
|
|
1764
|
+
"inactive": { "type": "boolean" }
|
|
1765
|
+
},
|
|
1766
|
+
"required": ["appId", "inactive"],
|
|
1767
|
+
"additionalProperties": false
|
|
1768
|
+
},
|
|
1769
|
+
"dataSaver": { "type": "boolean" },
|
|
1770
|
+
"thermalStatus": {
|
|
1771
|
+
"anyOf": [
|
|
1772
|
+
{ "type": "integer", "minimum": 0, "maximum": 6 },
|
|
1773
|
+
{ "type": "string", "const": "reset" }
|
|
1774
|
+
]
|
|
1775
|
+
}
|
|
1776
|
+
},
|
|
1777
|
+
"additionalProperties": false
|
|
1778
|
+
},
|
|
1671
1779
|
"location": {
|
|
1672
1780
|
"description": "Set a static fix, start a timed route, or stop route playback on an Android emulator or iOS Simulator.",
|
|
1673
1781
|
"anyOf": [
|
|
@@ -1799,6 +1907,165 @@
|
|
|
1799
1907
|
"additionalProperties": false
|
|
1800
1908
|
}
|
|
1801
1909
|
]
|
|
1910
|
+
},
|
|
1911
|
+
"deviceCondition": {
|
|
1912
|
+
"description": "Session-scoped root/integrity/fault test fixtures (behind the 'device-condition' feature flag). Sent in its own setDeviceState call.",
|
|
1913
|
+
"type": "object",
|
|
1914
|
+
"properties": {
|
|
1915
|
+
"version": { "type": "number", "const": 1 },
|
|
1916
|
+
"rootState": { "type": "string", "enum": ["rooted-detectable", "unset"] },
|
|
1917
|
+
"integrityState": { "type": "string", "const": "unset" },
|
|
1918
|
+
"faults": {
|
|
1919
|
+
"type": "object",
|
|
1920
|
+
"properties": {
|
|
1921
|
+
"battery": { "type": "string", "enum": ["unplug", "low", "full", "unset"] },
|
|
1922
|
+
"lowPower": { "type": "string", "enum": ["on", "unset"] },
|
|
1923
|
+
"doze": { "type": "string", "enum": ["on", "unset"] },
|
|
1924
|
+
"thermal": { "type": "string", "enum": ["throttling", "critical", "unset"] },
|
|
1925
|
+
"storage": { "type": "string", "enum": ["low", "full", "unset"] },
|
|
1926
|
+
"dontKeepActivities": { "type": "string", "enum": ["on", "unset"] },
|
|
1927
|
+
"memoryPressure": { "type": "string", "enum": ["on", "unset"] },
|
|
1928
|
+
"readOnlyFilesystem": { "type": "string", "enum": ["on", "unset"] },
|
|
1929
|
+
"revokePermission": {
|
|
1930
|
+
"oneOf": [
|
|
1931
|
+
{ "type": "string", "const": "unset" },
|
|
1932
|
+
{
|
|
1933
|
+
"type": "object",
|
|
1934
|
+
"properties": {
|
|
1935
|
+
"package": {
|
|
1936
|
+
"type": "string",
|
|
1937
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
|
|
1938
|
+
},
|
|
1939
|
+
"permission": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9_.]*$" }
|
|
1940
|
+
},
|
|
1941
|
+
"required": ["package", "permission"],
|
|
1942
|
+
"additionalProperties": false
|
|
1943
|
+
}
|
|
1944
|
+
]
|
|
1945
|
+
},
|
|
1946
|
+
"disablePackage": {
|
|
1947
|
+
"oneOf": [
|
|
1948
|
+
{ "type": "string", "const": "unset" },
|
|
1949
|
+
{
|
|
1950
|
+
"type": "object",
|
|
1951
|
+
"properties": {
|
|
1952
|
+
"package": {
|
|
1953
|
+
"type": "string",
|
|
1954
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
|
|
1955
|
+
}
|
|
1956
|
+
},
|
|
1957
|
+
"required": ["package"],
|
|
1958
|
+
"additionalProperties": false
|
|
1959
|
+
}
|
|
1960
|
+
]
|
|
1961
|
+
},
|
|
1962
|
+
"corruptAppFile": {
|
|
1963
|
+
"oneOf": [
|
|
1964
|
+
{ "type": "string", "const": "unset" },
|
|
1965
|
+
{
|
|
1966
|
+
"type": "object",
|
|
1967
|
+
"properties": {
|
|
1968
|
+
"package": {
|
|
1969
|
+
"type": "string",
|
|
1970
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
|
|
1971
|
+
},
|
|
1972
|
+
"path": {
|
|
1973
|
+
"type": "string",
|
|
1974
|
+
"pattern": "^(?!\\.{1,2}(?:/|$))[A-Za-z0-9_.-]+(?:/(?!\\.{1,2}(?:/|$))[A-Za-z0-9_.-]+)*$"
|
|
1975
|
+
},
|
|
1976
|
+
"mode": { "type": "string", "enum": ["overwrite", "truncate"] }
|
|
1977
|
+
},
|
|
1978
|
+
"required": ["package", "path", "mode"],
|
|
1979
|
+
"additionalProperties": false
|
|
1980
|
+
}
|
|
1981
|
+
]
|
|
1982
|
+
},
|
|
1983
|
+
"killApp": {
|
|
1984
|
+
"oneOf": [
|
|
1985
|
+
{ "type": "string", "const": "unset" },
|
|
1986
|
+
{
|
|
1987
|
+
"type": "object",
|
|
1988
|
+
"properties": {
|
|
1989
|
+
"package": {
|
|
1990
|
+
"type": "string",
|
|
1991
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
|
|
1992
|
+
},
|
|
1993
|
+
"mode": { "type": "string", "enum": ["background", "forceStop"] }
|
|
1994
|
+
},
|
|
1995
|
+
"required": ["package", "mode"],
|
|
1996
|
+
"additionalProperties": false
|
|
1997
|
+
}
|
|
1998
|
+
]
|
|
1999
|
+
},
|
|
2000
|
+
"trimMemory": {
|
|
2001
|
+
"oneOf": [
|
|
2002
|
+
{ "type": "string", "const": "unset" },
|
|
2003
|
+
{
|
|
2004
|
+
"type": "object",
|
|
2005
|
+
"properties": {
|
|
2006
|
+
"package": {
|
|
2007
|
+
"type": "string",
|
|
2008
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
|
|
2009
|
+
},
|
|
2010
|
+
"level": {
|
|
2011
|
+
"type": "string",
|
|
2012
|
+
"enum": [
|
|
2013
|
+
"HIDDEN",
|
|
2014
|
+
"RUNNING_MODERATE",
|
|
2015
|
+
"BACKGROUND",
|
|
2016
|
+
"RUNNING_LOW",
|
|
2017
|
+
"MODERATE",
|
|
2018
|
+
"RUNNING_CRITICAL",
|
|
2019
|
+
"COMPLETE"
|
|
2020
|
+
]
|
|
2021
|
+
}
|
|
2022
|
+
},
|
|
2023
|
+
"required": ["package", "level"],
|
|
2024
|
+
"additionalProperties": false
|
|
2025
|
+
}
|
|
2026
|
+
]
|
|
2027
|
+
},
|
|
2028
|
+
"clearPackageData": {
|
|
2029
|
+
"oneOf": [
|
|
2030
|
+
{ "type": "string", "const": "unset" },
|
|
2031
|
+
{
|
|
2032
|
+
"type": "object",
|
|
2033
|
+
"properties": {
|
|
2034
|
+
"package": {
|
|
2035
|
+
"type": "string",
|
|
2036
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
|
|
2037
|
+
}
|
|
2038
|
+
},
|
|
2039
|
+
"required": ["package"],
|
|
2040
|
+
"additionalProperties": false
|
|
2041
|
+
}
|
|
2042
|
+
]
|
|
2043
|
+
},
|
|
2044
|
+
"clockSkew": {
|
|
2045
|
+
"oneOf": [
|
|
2046
|
+
{ "type": "string", "const": "unset" },
|
|
2047
|
+
{
|
|
2048
|
+
"type": "object",
|
|
2049
|
+
"properties": {
|
|
2050
|
+
"offsetSeconds": {
|
|
2051
|
+
"type": "integer",
|
|
2052
|
+
"minimum": -315360000,
|
|
2053
|
+
"maximum": 315360000,
|
|
2054
|
+
"anyOf": [{ "minimum": 3 }, { "maximum": -3 }]
|
|
2055
|
+
}
|
|
2056
|
+
},
|
|
2057
|
+
"required": ["offsetSeconds"],
|
|
2058
|
+
"additionalProperties": false
|
|
2059
|
+
}
|
|
2060
|
+
]
|
|
2061
|
+
}
|
|
2062
|
+
},
|
|
2063
|
+
"additionalProperties": false
|
|
2064
|
+
},
|
|
2065
|
+
"expiresInSeconds": { "type": "integer", "minimum": 1, "maximum": 86400 },
|
|
2066
|
+
"reset": { "type": "boolean", "const": true }
|
|
2067
|
+
},
|
|
2068
|
+
"additionalProperties": false
|
|
1802
2069
|
}
|
|
1803
2070
|
},
|
|
1804
2071
|
"anyOf": [
|
|
@@ -1822,6 +2089,15 @@
|
|
|
1822
2089
|
},
|
|
1823
2090
|
{
|
|
1824
2091
|
"required": ["cameraPoster"]
|
|
2092
|
+
},
|
|
2093
|
+
{
|
|
2094
|
+
"required": ["screenLock"]
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
"required": ["power"]
|
|
2098
|
+
},
|
|
2099
|
+
{
|
|
2100
|
+
"required": ["deviceCondition"]
|
|
1825
2101
|
}
|
|
1826
2102
|
],
|
|
1827
2103
|
"description": "Parameters for setDeviceState"
|