agent-device 0.17.0 → 0.17.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.
Files changed (26) hide show
  1. package/android-multitouch-helper/dist/{agent-device-android-multitouch-helper-0.17.0.apk → agent-device-android-multitouch-helper-0.17.1.apk} +0 -0
  2. package/android-multitouch-helper/dist/agent-device-android-multitouch-helper-0.17.1.apk.sha256 +1 -0
  3. package/android-multitouch-helper/dist/{agent-device-android-multitouch-helper-0.17.0.manifest.json → agent-device-android-multitouch-helper-0.17.1.manifest.json} +4 -4
  4. package/android-snapshot-helper/dist/{agent-device-android-snapshot-helper-0.17.0.apk → agent-device-android-snapshot-helper-0.17.1.apk} +0 -0
  5. package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.17.1.apk.sha256 +1 -0
  6. package/android-snapshot-helper/dist/{agent-device-android-snapshot-helper-0.17.0.manifest.json → agent-device-android-snapshot-helper-0.17.1.manifest.json} +6 -6
  7. package/dist/src/1352.js +1 -1
  8. package/dist/src/2415.js +29 -29
  9. package/dist/src/8699.js +1 -1
  10. package/dist/src/9238.js +3 -3
  11. package/dist/src/9542.js +3 -3
  12. package/dist/src/apple.js +1 -1
  13. package/dist/src/apps.js +1 -1
  14. package/dist/src/args.js +1 -1
  15. package/dist/src/command-metadata.js +1 -1
  16. package/dist/src/generic.js +13 -11
  17. package/dist/src/index.d.ts +1 -0
  18. package/dist/src/interaction.js +1 -1
  19. package/dist/src/record-trace-recording.js +26 -0
  20. package/dist/src/record-trace.js +1 -26
  21. package/dist/src/session.js +10 -10
  22. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandExecution.swift +6 -2
  23. package/package.json +2 -2
  24. package/server.json +2 -2
  25. package/android-multitouch-helper/dist/agent-device-android-multitouch-helper-0.17.0.apk.sha256 +0 -1
  26. package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.17.0.apk.sha256 +0 -1
@@ -17,6 +17,10 @@ extension RunnerTests {
17
17
  min(max((durationMs / 5.0) / 1000.0, 0.016), 0.120)
18
18
  }
19
19
 
20
+ private func coordinateDragHoldDuration() -> TimeInterval {
21
+ 0.050
22
+ }
23
+
20
24
  func unsupportedResponse(for outcome: RunnerInteractionOutcome) -> Response? {
21
25
  switch outcome {
22
26
  case .performed:
@@ -657,7 +661,7 @@ extension RunnerTests {
657
661
  }
658
662
  let holdDuration = command.synthesized == true
659
663
  ? synthesizedSwipeFallbackHoldDuration(durationMs: command.durationMs ?? 250)
660
- : min(max((command.durationMs ?? 60) / 1000.0, 0.016), 10.0)
664
+ : coordinateDragHoldDuration()
661
665
  let (timing, outcome) = performGesture(activeApp) {
662
666
  dragAt(
663
667
  app: activeApp,
@@ -715,7 +719,7 @@ extension RunnerTests {
715
719
  }
716
720
  let holdDuration = command.synthesized == true
717
721
  ? synthesizedSwipeFallbackHoldDuration(durationMs: command.durationMs ?? 250)
718
- : min(max((command.durationMs ?? 60) / 1000.0, 0.016), 10.0)
722
+ : coordinateDragHoldDuration()
719
723
  let (timing, outcome) = performGesture(activeApp) {
720
724
  performDragSeries(
721
725
  count: count,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-device",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "description": "Agent-native CLI for AI mobile testing and app automation across iOS, Android, tvOS, Android TV, macOS, and Linux.",
5
5
  "mcpName": "io.github.callstackincubator/agent-device",
6
6
  "license": "MIT",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "scripts": {
77
77
  "build": "rslib build",
78
- "clean:daemon": "rm -f ~/.agent-device/daemon.json && rm -f ~/.agent-device/daemon.lock",
78
+ "clean:daemon": "node --experimental-strip-types scripts/clean-daemon.ts",
79
79
  "clean:xcuitest": "node scripts/clean-xcuitest-derived.mjs",
80
80
  "clean:xcuitest:ios": "node scripts/clean-xcuitest-derived.mjs ios",
81
81
  "clean:xcuitest:macos": "node scripts/clean-xcuitest-derived.mjs macos",
package/server.json CHANGED
@@ -7,12 +7,12 @@
7
7
  "url": "https://github.com/callstackincubator/agent-device",
8
8
  "source": "github"
9
9
  },
10
- "version": "0.17.0",
10
+ "version": "0.17.1",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "identifier": "agent-device",
15
- "version": "0.17.0",
15
+ "version": "0.17.1",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  }
@@ -1 +0,0 @@
1
- 5d44d6844bd050d159d1f2f8fadd6200166ac5b5c67ebdce7d9f57f880690555 agent-device-android-multitouch-helper-0.17.0.apk
@@ -1 +0,0 @@
1
- 8ec1a43c2b6a9003452763c8f8601444720bcb1efcc3cd24f3afd61157d0e29b agent-device-android-snapshot-helper-0.17.0.apk