agent-device 0.14.0 → 0.14.1
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 +1 -1
- package/android-snapshot-helper/README.md +1 -1
- package/android-snapshot-helper/dist/{agent-device-android-snapshot-helper-0.14.0.apk → agent-device-android-snapshot-helper-0.14.1.apk} +0 -0
- package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.14.1.apk.sha256 +1 -0
- package/android-snapshot-helper/dist/{agent-device-android-snapshot-helper-0.14.0.manifest.json → agent-device-android-snapshot-helper-0.14.1.manifest.json} +6 -6
- package/dist/src/221.js +4 -4
- package/dist/src/3918.js +29 -29
- package/dist/src/8656.js +1 -1
- package/dist/src/android-snapshot-helper.d.ts +1 -0
- package/dist/src/internal/bin.js +21 -12
- package/dist/src/internal/daemon.js +17 -17
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Interaction.swift +26 -2
- package/package.json +3 -3
- package/skills/agent-device/SKILL.md +2 -2
- package/skills/dogfood/SKILL.md +2 -2
- package/skills/react-devtools/SKILL.md +1 -1
- package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.14.0.apk.sha256 +0 -1
|
@@ -285,20 +285,44 @@ extension RunnerTests {
|
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
private func tapKeyboardDismissControl(app: XCUIApplication) -> Bool {
|
|
288
|
-
|
|
288
|
+
let keyboardFrame = app.keyboards.firstMatch.frame
|
|
289
|
+
for label in ["Hide keyboard", "Dismiss keyboard", "Done"] {
|
|
289
290
|
let candidates = [
|
|
290
291
|
app.keyboards.buttons[label],
|
|
291
292
|
app.keyboards.keys[label],
|
|
292
|
-
app.toolbars.buttons[label],
|
|
293
|
+
app.keyboards.toolbars.buttons[label],
|
|
293
294
|
]
|
|
294
295
|
if let hittable = candidates.first(where: { $0.exists && $0.isHittable }) {
|
|
295
296
|
hittable.tap()
|
|
296
297
|
return true
|
|
297
298
|
}
|
|
299
|
+
|
|
300
|
+
let toolbarButtonPredicate = NSPredicate(
|
|
301
|
+
format: "label == %@ OR identifier == %@",
|
|
302
|
+
label,
|
|
303
|
+
label
|
|
304
|
+
)
|
|
305
|
+
let toolbarButtons = app.toolbars.buttons
|
|
306
|
+
.matching(toolbarButtonPredicate)
|
|
307
|
+
.allElementsBoundByIndex
|
|
308
|
+
if let hittable = toolbarButtons.first(where: {
|
|
309
|
+
$0.exists && $0.isHittable && isKeyboardAccessoryControl($0, keyboardFrame: keyboardFrame)
|
|
310
|
+
}) {
|
|
311
|
+
hittable.tap()
|
|
312
|
+
return true
|
|
313
|
+
}
|
|
298
314
|
}
|
|
299
315
|
return false
|
|
300
316
|
}
|
|
301
317
|
|
|
318
|
+
private func isKeyboardAccessoryControl(_ element: XCUIElement, keyboardFrame: CGRect) -> Bool {
|
|
319
|
+
let frame = element.frame
|
|
320
|
+
guard !frame.isEmpty && !keyboardFrame.isEmpty else {
|
|
321
|
+
return false
|
|
322
|
+
}
|
|
323
|
+
return frame.intersects(keyboardFrame) || abs(frame.maxY - keyboardFrame.minY) <= 80
|
|
324
|
+
}
|
|
325
|
+
|
|
302
326
|
private func moveCaretToEnd(element: XCUIElement) {
|
|
303
327
|
let frame = element.frame
|
|
304
328
|
guard !frame.isEmpty else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-device",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "Agent-driven CLI for mobile UI automation, network inspection, and performance diagnostics across iOS, Android, tvOS, and macOS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Callstack",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"performance"
|
|
152
152
|
],
|
|
153
153
|
"dependencies": {
|
|
154
|
-
"fast-xml-parser": "^5.
|
|
154
|
+
"fast-xml-parser": "^5.7.2",
|
|
155
155
|
"pngjs": "^7.0.0"
|
|
156
156
|
},
|
|
157
157
|
"devDependencies": {
|
|
@@ -164,6 +164,6 @@
|
|
|
164
164
|
"oxlint": "^1.57.0",
|
|
165
165
|
"skillgym": "^0.5.0",
|
|
166
166
|
"typescript": "^6.0.2",
|
|
167
|
-
"vite": "^8.0.
|
|
167
|
+
"vite": "^8.0.10"
|
|
168
168
|
}
|
|
169
169
|
}
|
|
@@ -11,7 +11,7 @@ Router only. Private setup before using this skill:
|
|
|
11
11
|
agent-device --version
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Require `agent-device >= 0.
|
|
14
|
+
Require `agent-device >= 0.14.0`; older CLIs lack these help topics. If older, run `npm install -g agent-device@latest`, recheck, then continue. If you cannot upgrade, stop and tell the user. Do not include version/upgrade commands in final plans.
|
|
15
15
|
|
|
16
16
|
Before your first agent-device command or plan, read the version-matched CLI guide:
|
|
17
17
|
|
|
@@ -31,4 +31,4 @@ agent-device help dogfood
|
|
|
31
31
|
|
|
32
32
|
Default loop: `open -> snapshot/-i -> get/is/find or press/fill/scroll/wait -> verify -> close`.
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Use this skill only to route into version-matched CLI help. Let `help workflow` provide exact command shapes, platform limits, and current workflow guidance.
|
package/skills/dogfood/SKILL.md
CHANGED
|
@@ -12,7 +12,7 @@ Router for exploratory QA. Private setup before using this skill:
|
|
|
12
12
|
agent-device --version
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Require `agent-device >= 0.
|
|
15
|
+
Require `agent-device >= 0.14.0`; older CLIs lack these help topics. If older, run `npm install -g agent-device@latest`, recheck, then continue. If you cannot upgrade, stop and tell the user. Do not include version/upgrade commands in final plans.
|
|
16
16
|
|
|
17
17
|
Read current CLI guidance:
|
|
18
18
|
|
|
@@ -22,4 +22,4 @@ agent-device help dogfood
|
|
|
22
22
|
|
|
23
23
|
Loop: open named session -> snapshot -i + screenshot -> explore flows -> capture evidence per issue -> close.
|
|
24
24
|
|
|
25
|
-
Target app is required; infer platform or ask.
|
|
25
|
+
Target app is required; infer platform or ask. Findings must come from runtime behavior, not source reads. Let `help dogfood` provide exact report shape, evidence commands, and current workflow guidance.
|
|
@@ -11,7 +11,7 @@ Router for React Native internals. Private setup before using this skill:
|
|
|
11
11
|
agent-device --version
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Require `agent-device >= 0.
|
|
14
|
+
Require `agent-device >= 0.14.0`; older CLIs lack these help topics. If older, run `npm install -g agent-device@latest`, recheck, then continue. If you cannot upgrade, stop and tell the user. Do not include version/upgrade commands in final plans.
|
|
15
15
|
|
|
16
16
|
Read current CLI guidance:
|
|
17
17
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0ecde3a1b5ca159a5921cc66ccff3741bfe316a54f2f1ecc91e9d013312a38b0 agent-device-android-snapshot-helper-0.14.0.apk
|