agent-device 0.12.9 → 0.13.0

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,7 +8,7 @@
8
8
 
9
9
  # agent-device
10
10
 
11
- `agent-device` is a CLI for UI automation on iOS, tvOS, macOS, Android, and AndroidTV. It is designed for agent-driven workflows: inspect the UI, act on it deterministically, and keep that work session-aware and replayable.
11
+ `agent-device` is a CLI for UI automation and app observability on iOS, tvOS, macOS, Android, and AndroidTV. It is built for agent-driven workflows: inspect the UI, interact deterministically, collect logs/network/perf evidence when behavior breaks, and keep the whole flow session-aware and replayable.
12
12
 
13
13
  If you know Vercel's [agent-browser](https://github.com/vercel-labs/agent-browser), this project applies the same broad idea to mobile apps and devices.
14
14
 
@@ -19,6 +19,7 @@ If you know Vercel's [agent-browser](https://github.com/vercel-labs/agent-browse
19
19
  - Give agents a practical way to understand mobile UI state through structured snapshots.
20
20
  - Keep automation flows token-efficient enough for real agent loops.
21
21
  - Make common interactions reliable enough for repeated automation runs.
22
+ - Make debugging evidence easy to collect through logs, network inspection, and performance snapshots.
22
23
  - Keep automation grounded in sessions, selectors, and replayable flows instead of one-off scripts.
23
24
 
24
25
  ## Core Ideas
@@ -26,11 +27,28 @@ If you know Vercel's [agent-browser](https://github.com/vercel-labs/agent-browse
26
27
  - Sessions: open a target once, interact within that session, then close it cleanly.
27
28
  - Snapshots: inspect the current accessibility tree in a compact form and get current-screen refs for exploration.
28
29
  - Refs vs selectors: use refs for discovery, use selectors for durable replay and assertions.
30
+ - Observability: collect session logs, inspect recent HTTP traffic with `network dump`, and sample CPU/memory with `perf`.
29
31
  - Tests: run deterministic `.ad` scripts as a light e2e test suite.
30
32
  - Replay scripts: save `.ad` flows with `--save-script`, replay one script with `replay`, or run a folder/glob as a serial suite with `test`.
31
33
  `test` supports metadata-aware retries up to 3 additional attempts, per-test timeouts, flaky pass reporting, and runner-managed artifacts under `.agent-device/test-artifacts` by default. Each attempt writes `replay.ad` and `result.txt`; failed attempts also keep copied logs and artifacts when available.
32
34
  - Human docs vs agent skills: docs explain the system for people; skills provide compact operating guidance for agents.
33
35
 
36
+ ## Complementary Tooling
37
+
38
+ Use `agent-device` for on-device UI automation, screenshots/recordings, app logs, network inspection, and performance snapshots.
39
+
40
+ When the task needs the React Native component tree, props, state, hooks, or render profiling, use the bundled passthrough:
41
+
42
+ ```bash
43
+ agent-device react-devtools status
44
+ agent-device react-devtools get tree --depth 3
45
+ agent-device react-devtools profile start
46
+ agent-device react-devtools profile stop
47
+ agent-device react-devtools profile slow --limit 5
48
+ ```
49
+
50
+ `react-devtools` dynamically runs pinned `agent-react-devtools@0.4.0` commands 1:1, so `agent-device` covers both the device/app runtime layer and React component internals without making React DevTools part of the daemon.
51
+
34
52
  ## Command Flow
35
53
 
36
54
  The canonical loop is:
@@ -69,6 +87,7 @@ For people:
69
87
  For agents:
70
88
 
71
89
  - [agent-device skill](skills/agent-device/SKILL.md)
90
+ - [react-devtools skill](skills/react-devtools/SKILL.md)
72
91
  - [dogfood skill](skills/dogfood/SKILL.md)
73
92
  - [agent-device skill on ClawHub](https://clawhub.ai/okwasniewski/agent-device)
74
93