@swmansion/argent 0.32.1-next.1 → 0.32.1-next.11
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/dist/cli-cmds.mjs +513 -438
- package/dist/client.d.ts +5 -0
- package/dist/client.js +38 -9
- package/dist/installer.mjs +15 -1
- package/dist/mcp-server.mjs +33 -8
- package/dist/tool-args.generated.d.ts +9 -4
- package/dist/tool-server.cjs +22595 -21575
- package/package.json +1 -1
- package/skills/argent-create-e2e/references/e2e-yaml.md +4 -0
- package/skills/argent-create-e2e/references/live-authoring.md +1 -0
- package/skills/argent-tv-interact/SKILL.md +4 -4
package/package.json
CHANGED
|
@@ -38,10 +38,14 @@ executionPrerequisite: User is signed in and viewing Settings
|
|
|
38
38
|
steps: []
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
+
The recorder also writes `version: 1`, the file format version. Keep it. A file without it is version 1, and a version newer than the installed Argent reads is refused.
|
|
42
|
+
|
|
41
43
|
E2E tests never store a device id. The runner binds the device. `launch:` restarts the process but does not clear app, account, or backend data.
|
|
42
44
|
|
|
43
45
|
The one exception is a device _scope_ rather than a target: `stop-all-simulator-servers`' `devices` list **is** kept in the YAML, because without it the step means the machine-wide sweep and would tear down devices other agents are mid-session on. Replay rebinds a recorded scope only when you pass `device` explicitly: an auto-detected device would retarget the teardown at a device the test never named. So the recorded ids are what run when you replay without `device`; on another host they reap nothing and come back in `unmatched`, so re-record the cleanup test there or pass `device`. A step that recorded no scope is narrowed onto the run's device **only when the run resolved one**. A cleanup test whose only step is that teardown needs no device, so with none or several booted it resolves none, replays as the machine-wide sweep, and still reports a pass. Record the scope, or pass `device` at replay, whenever the sweep must stay confined.
|
|
44
46
|
|
|
47
|
+
A top-level `requires:` block limits the targets a test runs on: `platform` (`ios`, `android`, `chromium`, `vega`, or a list; `ios` covers a remote simulator) and `runtimeKind` (`tv` or `mobile`). Add it for a platform-specific or TV-specific scenario. A directory run skips a test whose target does not match; a `run:` fragment that does not match fails its step.
|
|
48
|
+
|
|
45
49
|
## Selectors
|
|
46
50
|
|
|
47
51
|
Use values that meet the [stable-selector definition](../SKILL.md#stable-selectors). Always write explicit maps:
|
|
@@ -15,9 +15,9 @@ description: Control and inspect TV apps via argent, Apple TV (tvOS), Android TV
|
|
|
15
15
|
|
|
16
16
|
## The navigation loop
|
|
17
17
|
|
|
18
|
-
1. `describe`: find the cursor and your target
|
|
19
|
-
2. `tv-remote`: move focus toward the target. Prefer **one** call with a path ending in `select`, e.g. `{button:["down","right","select"]}`; count rows/columns from the
|
|
20
|
-
3. `describe` again to confirm
|
|
18
|
+
1. `describe`: find the cursor and your target.
|
|
19
|
+
2. `tv-remote`: move focus toward the target. Prefer **one** call with a path ending in `select`, e.g. `{button:["down","right","select"]}`; count rows/columns from the list order.
|
|
20
|
+
3. `describe` again to confirm, or on Apple TV `await-ui-element {condition:"exists", selector:{text:"X", role:"focused"}}`. On a miss, repeat.
|
|
21
21
|
|
|
22
22
|
## Tools
|
|
23
23
|
|
|
@@ -29,7 +29,7 @@ description: Control and inspect TV apps via argent, Apple TV (tvOS), Android TV
|
|
|
29
29
|
|
|
30
30
|
### Apple TV (tvOS simulator)
|
|
31
31
|
|
|
32
|
-
- Boot like any iOS sim (`boot-device`); the
|
|
32
|
+
- Boot like any iOS sim (`boot-device`); the first `describe` / `tv-remote` starts the AX + HID daemons (a few seconds).
|
|
33
33
|
- Dev build: `open-url {udid, url:"<scheme>://expo-development-client/?url=http%3A%2F%2F<HOST_IP>%3A8081"}` (`<HOST_IP>` = your Mac's LAN IP, shown on the launcher).
|
|
34
34
|
|
|
35
35
|
### Android TV (leanback emulator)
|