agent-device 0.6.1 → 0.6.2
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 +12 -0
- package/dist/src/350.js +3 -3
- package/dist/src/bin.js +21 -21
- package/dist/src/daemon.js +22 -19
- package/package.json +1 -1
- package/skills/agent-device/SKILL.md +14 -3
- package/skills/agent-device/references/logs-and-debug.md +16 -0
- package/skills/agent-device/references/permissions.md +8 -0
package/package.json
CHANGED
|
@@ -88,6 +88,8 @@ agent-device is visible 'id="anchor"'
|
|
|
88
88
|
agent-device appstate
|
|
89
89
|
agent-device get text @e1
|
|
90
90
|
agent-device screenshot out.png
|
|
91
|
+
agent-device settings permission grant notifications
|
|
92
|
+
agent-device settings permission reset camera
|
|
91
93
|
agent-device trace start
|
|
92
94
|
agent-device trace stop ./trace.log
|
|
93
95
|
```
|
|
@@ -106,8 +108,20 @@ agent-device batch --steps-file /tmp/batch-steps.json --json
|
|
|
106
108
|
- Use `fill` for clear-then-type semantics; use `type` for focused append typing.
|
|
107
109
|
- iOS `appstate` is session-scoped; Android `appstate` is live foreground state.
|
|
108
110
|
- iOS settings helpers are simulator-only; use faceid `match|nonmatch|enroll|unenroll`.
|
|
111
|
+
- Permission settings are app-scoped and require an active session app:
|
|
112
|
+
`settings permission <grant|deny|reset> <camera|microphone|photos|contacts|notifications> [full|limited]`
|
|
113
|
+
- `full|limited` mode applies only to iOS `photos`; other targets reject mode.
|
|
114
|
+
- On Android, non-ASCII `fill/type` may require an ADB keyboard IME on some system images; only install IME APKs from trusted sources and verify checksum/signature.
|
|
109
115
|
- If using `--save-script`, prefer explicit path syntax (`--save-script=flow.ad` or `./flow.ad`).
|
|
110
116
|
|
|
117
|
+
## Security and Trust Notes
|
|
118
|
+
|
|
119
|
+
- Prefer a preinstalled `agent-device` binary over on-demand package execution.
|
|
120
|
+
- If install is required, pin an exact version (for example: `npx --yes agent-device@<exact-version> --help`).
|
|
121
|
+
- Signing/provisioning environment variables are optional, sensitive, and only for iOS physical-device setup.
|
|
122
|
+
- Logs/artifacts are written under `~/.agent-device`; replay scripts write to explicit paths you provide.
|
|
123
|
+
- Keep logging off unless debugging and use least-privilege/isolated environments for autonomous runs.
|
|
124
|
+
|
|
111
125
|
## Common Mistakes
|
|
112
126
|
|
|
113
127
|
- Mixing debug flow into normal runs (keep logs off unless debugging).
|
|
@@ -115,9 +129,6 @@ agent-device batch --steps-file /tmp/batch-steps.json --json
|
|
|
115
129
|
- Using URL opens with Android `--activity` (unsupported combination).
|
|
116
130
|
- Treating `boot` as default first step instead of fallback.
|
|
117
131
|
|
|
118
|
-
If the CLI is not installed in environment, use:
|
|
119
|
-
`npx -y agent-device`
|
|
120
|
-
|
|
121
132
|
## References
|
|
122
133
|
|
|
123
134
|
- [references/snapshot-refs.md](references/snapshot-refs.md)
|
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Logging is off by default in normal flows. Enable it on demand for debugging windows. App output is written to a session-scoped file so agents can grep it instead of loading full logs into context.
|
|
4
4
|
|
|
5
|
+
## Data Handling
|
|
6
|
+
|
|
7
|
+
- Default app logs are stored under `~/.agent-device/sessions/<session>/app.log`.
|
|
8
|
+
- Replay scripts saved with `--save-script` are written to the explicit path you provide.
|
|
9
|
+
- Log files may contain sensitive runtime data; review before sharing and clean up when finished.
|
|
10
|
+
- Use `AGENT_DEVICE_APP_LOG_REDACT_PATTERNS` to redact sensitive patterns at write time when needed.
|
|
11
|
+
|
|
12
|
+
## Retention and Cleanup
|
|
13
|
+
|
|
14
|
+
- Keep logging scoped to active debug windows (`logs clear --restart` before repro, `logs stop` after repro).
|
|
15
|
+
- Prefer bounded inspection (`grep -n`, `tail -50`) instead of reading full logs into context.
|
|
16
|
+
- Clear session logs when finished:
|
|
17
|
+
`agent-device logs clear`
|
|
18
|
+
- Close session to stop background logging state:
|
|
19
|
+
`agent-device close`
|
|
20
|
+
|
|
5
21
|
## Quick Flow
|
|
6
22
|
|
|
7
23
|
```bash
|
|
@@ -13,6 +13,14 @@ Use Automatic Signing in Xcode, or provide optional overrides:
|
|
|
13
13
|
- `AGENT_DEVICE_IOS_SIGNING_IDENTITY`
|
|
14
14
|
- `AGENT_DEVICE_IOS_PROVISIONING_PROFILE`
|
|
15
15
|
|
|
16
|
+
Security guidance for these overrides:
|
|
17
|
+
|
|
18
|
+
- These variables are optional and only needed for physical-device XCTest setup.
|
|
19
|
+
- Treat values as sensitive host configuration; do not share in chat logs or commit to source control.
|
|
20
|
+
- Do not provide private keys or unrelated secrets; use the minimum values required for signing.
|
|
21
|
+
- Prefer Xcode Automatic Signing when possible to reduce manual secret/config handling.
|
|
22
|
+
- For autonomous/CI runs, keep these unset by default and require explicit opt-in for physical-device workflows.
|
|
23
|
+
|
|
16
24
|
If setup/build takes long, increase:
|
|
17
25
|
|
|
18
26
|
- `AGENT_DEVICE_DAEMON_TIMEOUT_MS` (default `45000`, for example `120000`)
|