emd-agents 0.14.0 → 0.16.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 +133 -64
- package/dist/adapters/expo/index.js +37 -4
- package/dist/cli/main.js +2 -2
- package/dist/core/adapter.d.ts +3 -0
- package/dist/core/buildrecord.d.ts +8 -0
- package/dist/core/buildrecord.js +45 -0
- package/dist/core/check.d.ts +13 -1
- package/dist/core/check.js +45 -4
- package/dist/core/detect.js +3 -2
- package/dist/core/device/axe.js +11 -9
- package/dist/core/device/backend.d.ts +11 -3
- package/dist/core/device/backend.js +50 -2
- package/dist/core/device/maestro.js +5 -5
- package/dist/core/device/typing.d.ts +20 -0
- package/dist/core/device/typing.js +120 -0
- package/dist/core/index.d.ts +1 -2
- package/dist/core/index.js +1 -2
- package/dist/core/input.js +53 -8
- package/dist/core/isolate.js +4 -2
- package/dist/core/jobs.d.ts +2 -0
- package/dist/core/jobs.js +31 -0
- package/dist/core/launch.d.ts +1 -0
- package/dist/core/launch.js +295 -38
- package/dist/core/log.d.ts +9 -0
- package/dist/core/log.js +22 -0
- package/dist/core/reload.d.ts +7 -0
- package/dist/core/reload.js +68 -0
- package/dist/core/result.d.ts +101 -17
- package/dist/core/result.js +52 -8
- package/dist/core/setup.js +16 -3
- package/dist/core/simulator.d.ts +6 -0
- package/dist/core/simulator.js +71 -0
- package/dist/mcp/server.d.ts +1 -0
- package/dist/mcp/server.js +109 -22
- package/package.json +3 -1
- package/skills/emd/SKILL.md +7 -5
package/skills/emd/SKILL.md
CHANGED
|
@@ -18,16 +18,18 @@ Run `npx -y emd-agents@latest setup --dry-run` and show the user its plan. Run i
|
|
|
18
18
|
|
|
19
19
|
## The loop
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
After you change code, call `launch` again before you `check` or `tap`. When nothing native changed, `launch` reloads the running app from the dev server in seconds (`build.action: "reloaded"`).
|
|
22
|
+
|
|
23
|
+
1. `launch` with `dir` set to the app folder. It waits up to 25 s (100 s in Claude Code): a reload or relaunch usually returns its result.
|
|
24
|
+
2. If it returned a job still running, `job_status` with the `jobId`, until `succeeded` or `failed`. A first build takes minutes. A failed launch gives the reason and the first error lines: fix the cause and launch again.
|
|
25
|
+
3. `tap` with the `jobId`, and a testID (`id`) or a visible `text`. Use a point only when the element has neither. `type` types into the field that has focus, so tap the field first. `swipe` scrolls. For `tap` and `swipe`, `ok` means the gesture was sent; the next `check` shows what the app did. For `type`, `ok` means the text shows on screen; it can take up to 40 s. A secure field shows bullets, so `ok` there has a `note`.
|
|
24
26
|
4. `logs`, to read the tagged lines of this run.
|
|
25
|
-
5. `check` with the expected log events and elements and a `name` for the moment, e.g. `after-save`. A later check under that name must keep the first expectations unchanged; it can add more.
|
|
27
|
+
5. `check` with the expected log events and elements and a `name` for the moment, e.g. `after-save`. Put the taps, typing and swipes that lead to that moment in its `actions`, so one call acts and checks. A later check under that name must keep the first expectations unchanged; it can add more. It usually returns its verdict in the same call; if it returns a job, `job_status` until it ends:
|
|
26
28
|
- `passed`: done.
|
|
27
29
|
- `failed`: fix the cause, then check again.
|
|
28
30
|
- `stopped`: the retry limit is reached. Stop and report what is missing. Only a person can reset the count.
|
|
29
31
|
- `error`: the check could not run. Read its reason.
|
|
30
|
-
6.
|
|
32
|
+
6. Each check rewrites the run's evidence folder and returns its path (`evidenceDir`). Put that path, the screenshots and the matching log lines in your report or PR, and each name in `notPassed`. Call `evidence` only to rewrite the folder on its own.
|
|
31
33
|
|
|
32
34
|
## Rules
|
|
33
35
|
|