@kaeawc/auto-mobile 0.0.40 → 0.0.42

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.
Files changed (47) hide show
  1. package/README.md +3 -3
  2. package/README.md.backup +3 -3
  3. package/dist/schemas/test-plan.schema.json +6 -2
  4. package/dist/schemas/tool-definitions.json +2549 -546
  5. package/dist/src/db/eventTables.ts +8 -0
  6. package/dist/src/db/migrations/2025_12_28_000_initial_schema.ts +3 -3
  7. package/dist/src/db/migrations/2025_12_30_000_performance_thresholds.ts +3 -3
  8. package/dist/src/db/migrations/2025_12_30_001_navigation_graph.ts +9 -9
  9. package/dist/src/db/migrations/2025_12_31_000_accessibility_baselines.ts +3 -3
  10. package/dist/src/db/migrations/2025_12_31_001_memory_audit.ts +4 -4
  11. package/dist/src/db/migrations/2026_01_01_000_recomposition_metrics.ts +2 -2
  12. package/dist/src/db/migrations/2026_01_02_000_prediction_history.ts +4 -4
  13. package/dist/src/db/migrations/2026_01_03_000_feature_flags.ts +3 -3
  14. package/dist/src/db/migrations/2026_01_03_000_test_executions.ts +2 -2
  15. package/dist/src/db/migrations/2026_01_05_000_tool_calls.ts +2 -2
  16. package/dist/src/db/migrations/2026_01_08_000_test_coverage.ts +4 -4
  17. package/dist/src/db/migrations/2026_01_09_000_video_recordings.ts +3 -3
  18. package/dist/src/db/migrations/2026_01_10_000_device_snapshots.ts +3 -3
  19. package/dist/src/db/migrations/2026_01_14_000_appearance_config.ts +3 -3
  20. package/dist/src/db/migrations/2026_01_25_001_test_run_details.ts +2 -2
  21. package/dist/src/db/migrations/2026_01_27_000_crash_anr_monitoring.ts +2 -2
  22. package/dist/src/db/migrations/2026_01_27_000_failures.ts +7 -7
  23. package/dist/src/db/migrations/2026_01_29_000_named_nodes.ts +3 -3
  24. package/dist/src/db/migrations/2026_01_30_000_performance_live_metrics.ts +1 -1
  25. package/dist/src/db/migrations/2026_03_15_000_telemetry_events.ts +5 -5
  26. package/dist/src/db/migrations/2026_03_18_000_navigation_events.ts +2 -2
  27. package/dist/src/db/migrations/2026_03_19_000_storage_events.ts +2 -2
  28. package/dist/src/db/migrations/2026_03_19_001_layout_events.ts +2 -2
  29. package/dist/src/db/migrations/2026_04_01_000_drop_custom_events.ts +2 -2
  30. package/dist/src/db/migrations/2026_04_02_000_device_sessions.ts +3 -3
  31. package/dist/src/db/migrations/2026_07_01_000_failure_groups_signature_unique.ts +162 -0
  32. package/dist/src/db/migrations/2026_07_02_000_event_composite_indexes.ts +62 -0
  33. package/dist/src/db/migrations/2026_07_03_000_drop_redundant_device_indexes.ts +66 -0
  34. package/dist/src/db/migrations/2026_07_03_000_repair_datetime_now_defaults.ts +268 -0
  35. package/dist/src/db/migrations/2026_07_04_000_storage_events_key_lookup.ts +60 -0
  36. package/dist/src/db/migrations/2026_07_05_000_repair_updated_at_defaults.ts +242 -0
  37. package/dist/src/index.js +533 -390
  38. package/dist/src/index.js.map +1 -1
  39. package/dist/vendor/libwebp/COPYING +30 -0
  40. package/dist/vendor/libwebp/PATENTS +23 -0
  41. package/dist/vendor/libwebp/README.md +13 -0
  42. package/dist/vendor/libwebp/README.upstream.md +54 -0
  43. package/dist/vendor/libwebp/win32-x64/cwebp.exe +0 -0
  44. package/dist/vendor/libwebp/win32-x64/dwebp.exe +0 -0
  45. package/package.json +9 -4
  46. package/schemas/test-plan.schema.json +6 -2
  47. package/schemas/tool-definitions.json +2549 -546
@@ -0,0 +1,30 @@
1
+ Copyright (c) 2010, Google Inc. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are
5
+ met:
6
+
7
+ * Redistributions of source code must retain the above copyright
8
+ notice, this list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright
11
+ notice, this list of conditions and the following disclaimer in
12
+ the documentation and/or other materials provided with the
13
+ distribution.
14
+
15
+ * Neither the name of Google nor the names of its contributors may
16
+ be used to endorse or promote products derived from this software
17
+ without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+
@@ -0,0 +1,23 @@
1
+ Additional IP Rights Grant (Patents)
2
+ ------------------------------------
3
+
4
+ "These implementations" means the copyrightable works that implement the WebM
5
+ codecs distributed by Google as part of the WebM Project.
6
+
7
+ Google hereby grants to you a perpetual, worldwide, non-exclusive, no-charge,
8
+ royalty-free, irrevocable (except as stated in this section) patent license to
9
+ make, have made, use, offer to sell, sell, import, transfer, and otherwise
10
+ run, modify and propagate the contents of these implementations of WebM, where
11
+ such license applies only to those patent claims, both currently owned by
12
+ Google and acquired in the future, licensable by Google that are necessarily
13
+ infringed by these implementations of WebM. This grant does not include claims
14
+ that would be infringed only as a consequence of further modification of these
15
+ implementations. If you or your agent or exclusive licensee institute or order
16
+ or agree to the institution of patent litigation or any other patent
17
+ enforcement activity against any entity (including a cross-claim or
18
+ counterclaim in a lawsuit) alleging that any of these implementations of WebM
19
+ or any code incorporated within any of these implementations of WebM
20
+ constitute direct or contributory patent infringement, or inducement of
21
+ patent infringement, then any patent rights granted to you under this License
22
+ for these implementations of WebM shall terminate as of the date such
23
+ litigation is filed.
@@ -0,0 +1,13 @@
1
+ # Bundled libwebp tools
2
+
3
+ This directory vendors the WebP `cwebp` and `dwebp` command line tools for
4
+ Windows x64 so AutoMobile can preserve WebP screenshots offline on Windows.
5
+
6
+ - Version: libwebp 1.6.0
7
+ - Source archive: https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.6.0-windows-x64.zip
8
+ - Upstream docs: https://developers.google.com/speed/webp/docs/precompiled
9
+ - License: see `COPYING` and `PATENTS`, copied from the matching
10
+ `libwebp-1.6.0.tar.gz` source archive.
11
+
12
+ Only `win32-x64/cwebp.exe` and `win32-x64/dwebp.exe` are included. Other tools
13
+ from the upstream archive are intentionally omitted.
@@ -0,0 +1,54 @@
1
+ # WebP Codec
2
+
3
+ ```
4
+ __ __ ____ ____ ____
5
+ / \\/ \/ _ \/ _ )/ _ \
6
+ \ / __/ _ \ __/
7
+ \__\__/\____/\_____/__/ ____ ___
8
+ / _/ / \ \ / _ \/ _/
9
+ / \_/ / / \ \ __/ \__
10
+ \____/____/\_____/_____/____/v1.6.0
11
+ ```
12
+
13
+ WebP codec is a library to encode and decode images in WebP format. This package
14
+ contains the library that can be used in other programs to add WebP support, as
15
+ well as the command line tools 'cwebp' and 'dwebp' to compress and decompress
16
+ images respectively.
17
+
18
+ See https://developers.google.com/speed/webp for details on the image format.
19
+
20
+ The latest source tree is available at
21
+ https://chromium.googlesource.com/webm/libwebp
22
+
23
+ It is released under the same license as the WebM project. See
24
+ https://www.webmproject.org/license/software/ or the "COPYING" file for details.
25
+ An additional intellectual property rights grant can be found in the file
26
+ PATENTS.
27
+
28
+ ## Building
29
+
30
+ See the [building documentation](doc/building.md).
31
+
32
+ ## Encoding and Decoding Tools
33
+
34
+ The examples/ directory contains tools to encode and decode images and
35
+ animations, view information about WebP images, and more. See the
36
+ [tools documentation](doc/tools.md).
37
+
38
+ ## APIs
39
+
40
+ See the [APIs documentation](doc/api.md), and API usage examples in the
41
+ `examples/` directory.
42
+
43
+ ## Bugs
44
+
45
+ Please report all bugs to the [issue tracker](https://issues.webmproject.org).
46
+ For security reports, select 'Security report' from the Template dropdown.
47
+
48
+ Patches welcome! See [how to contribute](CONTRIBUTING.md).
49
+
50
+ ## Discuss
51
+
52
+ Email: webp-discuss@webmproject.org
53
+
54
+ Web: https://groups.google.com/a/webmproject.org/group/webp-discuss
package/package.json CHANGED
@@ -1,17 +1,21 @@
1
1
  {
2
2
  "name": "@kaeawc/auto-mobile",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
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
- "test:sharp:bun": "bun scripts/ci/sharp-runtime-smoke.ts",
9
+ "test:image:bun": "bun scripts/ci/image-runtime-smoke.ts",
10
+ "test:image:sharp-bun-repro": "bash scripts/validate-sharp-bun-repro.sh",
10
11
  "test:memory-leaks": "bun --expose-gc scripts/detect-memory-leaks.ts",
11
12
  "lint": "eslint . --fix",
13
+ "typecheck": "bash scripts/typecheck-baseline.sh",
14
+ "typecheck:update": "bash scripts/typecheck-baseline.sh --update",
12
15
  "watch": "bun --watch src/index.ts",
13
16
  "build": "bun build.ts && chmod +x dist/src/index.js",
14
17
  "clean": "rm -rf dist",
18
+ "bootstrap:worktree": "bash scripts/codex/bootstrap-worktree.sh",
15
19
  "dev:android": "bash scripts/local-dev/android-hot-reload.sh --skip-ai",
16
20
  "dev:android:hot-reload": "bash scripts/local-dev/android-hot-reload.sh",
17
21
  "dev:ios": "bash scripts/local-dev/ios-hot-reload.sh --skip-ai",
@@ -75,7 +79,8 @@
75
79
  "access": "public"
76
80
  },
77
81
  "dependencies": {
78
- "@anthropic-ai/sdk": "^0.107.0",
82
+ "@anthropic-ai/sdk": "^0.110.0",
83
+ "@jimp/core": "^1.6.1",
79
84
  "@modelcontextprotocol/sdk": "^1.26.0",
80
85
  "adm-zip": "^0.5.16",
81
86
  "ajv": "^8.18.0",
@@ -153,6 +158,6 @@
153
158
  "ts-prune": "^0.10.3",
154
159
  "tsx": "^4.21.0",
155
160
  "turbo": "^2.8.10",
156
- "typescript": "^6.0.2"
161
+ "typescript": "6.0.3"
157
162
  }
158
163
  }
@@ -178,6 +178,10 @@
178
178
  "type": "string",
179
179
  "description": "Human-readable description of what this step does"
180
180
  },
181
+ "optional": {
182
+ "type": "boolean",
183
+ "description": "Best-effort step: if the tool fails (returns success:false, an observe waitFor times out, or throws), the executor logs it, records the step as skipped, and continues instead of aborting the plan. Use for steps that guard against intermittent UI (e.g. dismissing a dialog that may or may not be present)."
184
+ },
181
185
  "description": {
182
186
  "type": "string",
183
187
  "description": "DEPRECATED: Use 'label' instead (legacy field)"
@@ -453,7 +457,7 @@
453
457
  },
454
458
  "permissions": {
455
459
  "type": "array",
456
- "description": "Runtime permissions or simulator privacy services to change",
460
+ "description": "Runtime permissions or simulator privacy services to change; iOS physical reset accepts 'all'",
457
461
  "minItems": 1,
458
462
  "items": {
459
463
  "type": "string",
@@ -1178,7 +1182,7 @@
1178
1182
  "type": "string",
1179
1183
  "minLength": 1
1180
1184
  },
1181
- "description": "Runtime permissions or simulator privacy services to change"
1185
+ "description": "Runtime permissions or simulator privacy services to change; iOS physical reset accepts 'all'"
1182
1186
  },
1183
1187
  "userId": {
1184
1188
  "type": "integer",