agent-device 0.21.12 → 0.21.14

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 (317) hide show
  1. package/android/ime-helper/dist/{agent-device-android-ime-helper-0.21.12.apk → agent-device-android-ime-helper-0.21.14.apk} +0 -0
  2. package/android/ime-helper/dist/agent-device-android-ime-helper-0.21.14.apk.sha256 +1 -0
  3. package/android/ime-helper/dist/{agent-device-android-ime-helper-0.21.12.manifest.json → agent-device-android-ime-helper-0.21.14.manifest.json} +4 -4
  4. package/android/snapshot-helper/dist/agent-device-android-snapshot-helper-0.21.14.apk +0 -0
  5. package/android/snapshot-helper/dist/agent-device-android-snapshot-helper-0.21.14.apk.sha256 +1 -0
  6. package/android/snapshot-helper/dist/{agent-device-android-snapshot-helper-0.21.12.manifest.json → agent-device-android-snapshot-helper-0.21.14.manifest.json} +6 -6
  7. package/apple/macos-helper/Package.swift +4 -0
  8. package/apple/macos-helper/Sources/AgentDeviceMacOSHelper/main.swift +3 -6
  9. package/apple/macos-helper/Tests/AgentDeviceMacOSHelperTests/ScreenshotResponseTests.swift +15 -0
  10. package/apple/snapshot-bridge/SnapshotBridgeRuntime.m +47 -1
  11. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunner/AgentDeviceRunnerApp.m +122 -42
  12. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunner/Info.plist +23 -0
  13. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunner.xcodeproj/project.pbxproj +17 -0
  14. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerAppScreenCapture.swift +21 -13
  15. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerScrollViewportPolicy.swift +1 -162
  16. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerSynthesizedGesture.h +0 -9
  17. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerSynthesizedGesture.m +0 -56
  18. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerSystemSurfaceHostPolicy.swift +0 -48
  19. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTapPointPolicy.swift +0 -50
  20. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+AXSnapshotFallback.swift +33 -586
  21. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Alert.swift +40 -24
  22. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+AlertObservation.swift +2 -3
  23. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+BlockingSystemModalResolution.swift +0 -36
  24. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandDispatch.swift +630 -0
  25. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandExecution.swift +34 -2256
  26. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandJournal.swift +1 -338
  27. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Environment.swift +0 -12
  28. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+GestureExecution.swift +160 -0
  29. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Interaction.swift +0 -24
  30. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Keyboard.swift +0 -142
  31. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Lifecycle.swift +90 -39
  32. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+MainThreadWork.swift +78 -106
  33. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Models.swift +23 -2
  34. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Navigation.swift +162 -113
  35. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+PrivateAXPresentation.swift +0 -209
  36. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+ScreenRecorder.swift +86 -10
  37. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+ScrollDragExecution.swift +271 -0
  38. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+ScrollGesture.swift +1 -200
  39. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SequenceExecution.swift +20 -227
  40. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Snapshot.swift +78 -295
  41. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SnapshotAcquisition.swift +40 -27
  42. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SnapshotBackendCapabilities.swift +0 -78
  43. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SnapshotCapturePlan.swift +85 -581
  44. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SnapshotCaptureTarget.swift +106 -0
  45. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SnapshotExecution.swift +142 -0
  46. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SnapshotTiming.swift +49 -78
  47. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SynthesizedCommitDeadline.swift +0 -44
  48. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SynthesizedGesturePolicy.swift +73 -114
  49. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SynthesizedInteraction.swift +1 -12
  50. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SynthesizedTextEntry.swift +11 -94
  51. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SystemModal.swift +2 -10
  52. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TextEntry.swift +1 -1
  53. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TextEntryFocus.swift +0 -35
  54. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TextInputCandidatePolicy.swift +0 -31
  55. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TextTyping.swift +2 -18
  56. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Transport.swift +34 -52
  57. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TvRemote.swift +0 -22
  58. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TypeExecution.swift +135 -0
  59. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests.swift +22 -6
  60. package/dist/apple/runner/AgentDeviceRunner/RecordingScripts/recording-overlay.swift +140 -20
  61. package/dist/apple/snapshot-presentation/Sources/AgentDeviceSnapshotPresentation/SnapshotCoordinateSpace.swift +16 -19
  62. package/dist/apple/snapshot-presentation/Sources/AgentDeviceSnapshotPresentation/SnapshotGeometry.swift +21 -9
  63. package/dist/apple/snapshot-presentation/Sources/AgentDeviceSnapshotPresentation/SnapshotModels.swift +59 -10
  64. package/dist/apple/snapshot-presentation/Sources/AgentDeviceSnapshotPresentation/SnapshotPresentationInvariant.swift +12 -10
  65. package/dist/apple/snapshot-presentation/Sources/AgentDeviceSnapshotPresentation/SnapshotVisibilityFold.swift +13 -8
  66. package/dist/src/absence-observation-errors.js +1 -1
  67. package/dist/src/adapter.js +1 -1
  68. package/dist/src/adb-executor.js +1 -1
  69. package/dist/src/adb-failure.js +1 -1
  70. package/dist/src/adb-transport.js +1 -1
  71. package/dist/src/agent-browser-provider.js +1 -1
  72. package/dist/src/agent-browser-tool.js +1 -1
  73. package/dist/src/agent-device-client.js +2 -2
  74. package/dist/src/ai-sdk.js +1 -1
  75. package/dist/src/alert-runtime.js +1 -1
  76. package/dist/src/android-adb.d.ts +1 -1
  77. package/dist/src/app-catalog.js +1 -1
  78. package/dist/src/app-deployment-resolution.js +1 -1
  79. package/dist/src/app-inventory.js +1 -1
  80. package/dist/src/app-launch.js +2 -2
  81. package/dist/src/app-lifecycle.js +1 -1
  82. package/dist/src/app-lifecycle2.js +1 -1
  83. package/dist/src/app-log-files.js +1 -1
  84. package/dist/src/app-log-runtime2.js +3 -3
  85. package/dist/src/app-resolution.js +2 -2
  86. package/dist/src/apple-runner-platform.js +1 -1
  87. package/dist/src/application-lifecycle-interaction.js +1 -1
  88. package/dist/src/archive.js +1 -1
  89. package/dist/src/artifact-download.js +1 -1
  90. package/dist/src/auth-session.js +1 -1
  91. package/dist/src/auth.js +1 -1
  92. package/dist/src/back-mode.js +1 -1
  93. package/dist/src/backend-snapshot-options.js +1 -1
  94. package/dist/src/boot-diagnostics.js +1 -1
  95. package/dist/src/capture-disclosure.js +1 -1
  96. package/dist/src/capture.js +1 -1
  97. package/dist/src/cli-config.js +1 -1
  98. package/dist/src/cli-help.js +8 -7
  99. package/dist/src/cli-runner.js +1 -1
  100. package/dist/src/cli.js +4 -4
  101. package/dist/src/click-button.js +1 -1
  102. package/dist/src/client-metro.js +1 -1
  103. package/dist/src/client-types.d.ts +4 -5
  104. package/dist/src/clipboard-shell-response.js +1 -1
  105. package/dist/src/code-signature.js +1 -1
  106. package/dist/src/command-schema.js +3 -3
  107. package/dist/src/command-tools.js +3 -3
  108. package/dist/src/connection-runtime.js +1 -1
  109. package/dist/src/connection.js +1 -1
  110. package/dist/src/contracts.js +1 -1
  111. package/dist/src/daemon-client-lifecycle.js +1 -1
  112. package/dist/src/daemon-resolution.js +1 -1
  113. package/dist/src/daemon.js +1 -1
  114. package/dist/src/debug-symbols-facade.js +1 -1
  115. package/dist/src/device-claim-rule.js +2 -2
  116. package/dist/src/device-input-state.d.ts +1 -1
  117. package/dist/src/device-inventory-context.js +1 -1
  118. package/dist/src/device-rotation.js +1 -1
  119. package/dist/src/device-selection-resolver.js +1 -1
  120. package/dist/src/device-session.js +1 -1
  121. package/dist/src/device-shell.js +1 -1
  122. package/dist/src/device2.js +1 -1
  123. package/dist/src/devicectl.js +1 -1
  124. package/dist/src/diagnostics.js +1 -1
  125. package/dist/src/dispatch-resolve.js +1 -1
  126. package/dist/src/display-inventory.js +1 -1
  127. package/dist/src/doctor-facade.js +1 -1
  128. package/dist/src/doctor2.js +1 -1
  129. package/dist/src/engine-eval-script.js +1 -1
  130. package/dist/src/error.js +1 -1
  131. package/dist/src/exec.js +1 -1
  132. package/dist/src/file.js +1 -1
  133. package/dist/src/find.js +1 -1
  134. package/dist/src/format.js +1 -1
  135. package/dist/src/gesture-plan-types.d.ts +38 -0
  136. package/dist/src/gesture-plan.js +1 -1
  137. package/dist/src/gesture-runtime.js +1 -1
  138. package/dist/src/harmonyos.js +1 -1
  139. package/dist/src/helper.js +2 -2
  140. package/dist/src/host.js +1 -1
  141. package/dist/src/human-control-contract.js +1 -1
  142. package/dist/src/human-control.js +1 -1
  143. package/dist/src/index.js +1 -1
  144. package/dist/src/input-actions.js +1 -1
  145. package/dist/src/input-actions2.js +1 -1
  146. package/dist/src/install-artifact-facade.js +1 -1
  147. package/dist/src/install-source-network-transport.js +1 -1
  148. package/dist/src/install-source2.js +1 -1
  149. package/dist/src/interaction-positionals.js +1 -1
  150. package/dist/src/interaction-ref-policy.js +1 -1
  151. package/dist/src/interaction2.js +1 -1
  152. package/dist/src/interactor-operation-binding.js +1 -1
  153. package/dist/src/interactor-operation-catalog.js +1 -1
  154. package/dist/src/interactor.js +4 -4
  155. package/dist/src/interactor2.js +1 -1
  156. package/dist/src/interactors.js +1 -1
  157. package/dist/src/internal/bin.js +1 -1
  158. package/dist/src/internal/daemon.js +2 -2
  159. package/dist/src/internal/png-worker.js +1 -1
  160. package/dist/src/internal/run-script-http-child.js +1 -1
  161. package/dist/src/inventory.js +1 -1
  162. package/dist/src/inventory2.js +1 -1
  163. package/dist/src/inventory3.js +1 -1
  164. package/dist/src/inventory5.js +1 -1
  165. package/dist/src/ios-snapshot-acquisition.js +1 -1
  166. package/dist/src/ios-snapshot-runtime.js +1 -1
  167. package/dist/src/lease.js +1 -1
  168. package/dist/src/limrun-download-file.js +1 -1
  169. package/dist/src/limrun-runtime-dependencies.js +1 -1
  170. package/dist/src/limrun.d.ts +435 -4
  171. package/dist/src/linux.js +1 -1
  172. package/dist/src/local-interactor-operation-set.js +1 -1
  173. package/dist/src/location-coordinates.js +1 -1
  174. package/dist/src/managed-device-scope.js +1 -1
  175. package/dist/src/mechanics.js +5 -5
  176. package/dist/src/mobile-snapshot-semantics.js +1 -1
  177. package/dist/src/multitouch-support.js +1 -1
  178. package/dist/src/native-build-cache.js +1 -0
  179. package/dist/src/observation.js +1 -1
  180. package/dist/src/parameterized-recorded-fill.js +1 -1
  181. package/dist/src/perf-facade.js +1 -2
  182. package/dist/src/perf-runtime-operation-builder.js +1 -1
  183. package/dist/src/perf-runtime-plan.js +1 -1
  184. package/dist/src/perf-target.js +2 -0
  185. package/dist/src/perf.js +1 -1
  186. package/dist/src/physical-device-apps.js +1 -0
  187. package/dist/src/physical-device-control.js +1 -1
  188. package/dist/src/platform-request-scope.js +1 -1
  189. package/dist/src/platform-runtime-host.js +1 -1
  190. package/dist/src/platform-runtime-managed-owner.js +1 -1
  191. package/dist/src/platform-runtime-open-target.js +1 -1
  192. package/dist/src/platform-runtime-operation-host.js +2 -2
  193. package/dist/src/platform-runtime-runtime-hints.js +1 -1
  194. package/dist/src/platform-runtime-screen-recording-apple-simulator-host.js +1 -1
  195. package/dist/src/platform-runtime-screen-recording-finalizer-host.js +1 -1
  196. package/dist/src/platform-runtime-screen-recording-process-host.js +1 -1
  197. package/dist/src/platform-runtime-unavailable.js +1 -1
  198. package/dist/src/platform-runtime.js +1 -1
  199. package/dist/src/platform-runtime2.js +1 -1
  200. package/dist/src/png-crop-bytes.js +1 -1
  201. package/dist/src/png-size.js +1 -1
  202. package/dist/src/png-worker-client.js +1 -1
  203. package/dist/src/png.js +1 -1
  204. package/dist/src/prepare-kind.js +1 -1
  205. package/dist/src/provider-session-ownership.js +1 -1
  206. package/dist/src/provider-webdriver.js +1 -1
  207. package/dist/src/proxy.js +1 -1
  208. package/dist/src/quality-warnings.js +1 -1
  209. package/dist/src/react-native.js +1 -1
  210. package/dist/src/record-runtime.js +1 -1
  211. package/dist/src/recording.js +1 -1
  212. package/dist/src/register-builtins.js +1 -1
  213. package/dist/src/registry.js +35 -35
  214. package/dist/src/remote-config2.js +1 -1
  215. package/dist/src/replay-divergence.js +1 -1
  216. package/dist/src/replay.js +1 -1
  217. package/dist/src/reporting.js +1 -1
  218. package/dist/src/request-admission.js +1 -1
  219. package/dist/src/request-cancel.js +1 -1
  220. package/dist/src/request-runtime-binding.js +1 -1
  221. package/dist/src/retry.js +1 -1
  222. package/dist/src/runner-cache-metadata.js +1 -1
  223. package/dist/src/runner-client.js +1 -1
  224. package/dist/src/runner-dev-tools-security.js +1 -1
  225. package/dist/src/runner-device-readiness.js +1 -1
  226. package/dist/src/runner-disposal.js +1 -1
  227. package/dist/src/runner-error-classification.js +3 -0
  228. package/dist/src/runner-operations-facade.js +1 -1
  229. package/dist/src/runner-presentation.js +1 -1
  230. package/dist/src/runner.js +1 -1
  231. package/dist/src/runtime-transport-hints.js +1 -1
  232. package/dist/src/runtime.js +3 -3
  233. package/dist/src/runtime10.js +2 -2
  234. package/dist/src/runtime2.js +2 -2
  235. package/dist/src/runtime3.js +1 -1
  236. package/dist/src/runtime4.js +4 -4
  237. package/dist/src/runtime5.js +1 -1
  238. package/dist/src/runtime6.js +1 -1
  239. package/dist/src/runtime7.js +1 -1
  240. package/dist/src/runtime8.js +1 -1
  241. package/dist/src/runtime9.js +1 -1
  242. package/dist/src/screen-recording-admission-ledger.js +1 -1
  243. package/dist/src/screen-recording-completion.js +1 -1
  244. package/dist/src/screen-recording-options.js +1 -1
  245. package/dist/src/screen-recording-resource-recovery.js +1 -1
  246. package/dist/src/screen-recording-transport.js +1 -1
  247. package/dist/src/screenshot-density.js +1 -1
  248. package/dist/src/screenshot-image.js +1 -1
  249. package/dist/src/screenshot-runtime.js +1 -1
  250. package/dist/src/screenshot.js +1 -1
  251. package/dist/src/screenshot3.js +1 -1
  252. package/dist/src/script.js +1 -1
  253. package/dist/src/scroll-command.d.ts +377 -0
  254. package/dist/src/scroll-command.js +1 -1
  255. package/dist/src/scroll-gesture.js +1 -1
  256. package/dist/src/sdk-batch-runner.js +2 -2
  257. package/dist/src/sdk-batch.js +2 -2
  258. package/dist/src/sdk-contracts.d.ts +28 -0
  259. package/dist/src/sdk-contracts.js +1 -1
  260. package/dist/src/sdk-device.js +1 -1
  261. package/dist/src/sdk-io.js +1 -1
  262. package/dist/src/sdk-remote-config.js +1 -1
  263. package/dist/src/sdk-selectors.d.ts +23 -726
  264. package/dist/src/selection.js +0 -0
  265. package/dist/src/selector-runtime.js +1 -1
  266. package/dist/src/semantic-index.js +1 -1
  267. package/dist/src/server.js +1 -1
  268. package/dist/src/session-allocation.js +1 -1
  269. package/dist/src/session-observation.js +1 -1
  270. package/dist/src/session-routing.js +1 -1
  271. package/dist/src/session-runtime-admission.js +1 -1
  272. package/dist/src/session-snapshot.js +1 -1
  273. package/dist/src/session-store.js +2 -2
  274. package/dist/src/session2.js +3 -3
  275. package/dist/src/settings.js +1 -1
  276. package/dist/src/simctl-facade.js +1 -1
  277. package/dist/src/simctl.js +1 -1
  278. package/dist/src/simulator-state.js +1 -1
  279. package/dist/src/simulator.js +1 -1
  280. package/dist/src/snapshot-runtime-binding.js +1 -1
  281. package/dist/src/snapshot-runtime.js +1 -1
  282. package/dist/src/snapshot-state.js +1 -1
  283. package/dist/src/snapshot2.js +1 -1
  284. package/dist/src/snapshot3.js +1 -1
  285. package/dist/src/snapshot4.js +1 -1
  286. package/dist/src/src.js +1 -1
  287. package/dist/src/src7.js +1 -1
  288. package/dist/src/src8.js +2 -2
  289. package/dist/src/string-enum.js +1 -1
  290. package/dist/src/takeover.js +1 -1
  291. package/dist/src/text-entry-focus.js +1 -1
  292. package/dist/src/tool-provider-facade.js +1 -1
  293. package/dist/src/tool-provider.js +2 -2
  294. package/dist/src/tool-provider2.js +1 -1
  295. package/dist/src/touch-runtime.js +1 -1
  296. package/dist/src/transport.js +1 -1
  297. package/dist/src/tree.js +1 -1
  298. package/dist/src/tv-remote.js +1 -1
  299. package/dist/src/type-text-runtime.js +1 -1
  300. package/dist/src/update-check.js +1 -1
  301. package/dist/src/verified-file.js +1 -1
  302. package/dist/src/version.js +1 -1
  303. package/dist/src/video.js +1 -1
  304. package/dist/src/viewport.js +1 -1
  305. package/dist/src/web.js +1 -1
  306. package/dist/src/web2.js +1 -1
  307. package/dist/src/webdriver-source.js +1 -1
  308. package/package.json +3 -2
  309. package/server.json +2 -2
  310. package/android/ime-helper/dist/agent-device-android-ime-helper-0.21.12.apk.sha256 +0 -1
  311. package/android/snapshot-helper/dist/agent-device-android-snapshot-helper-0.21.12.apk +0 -0
  312. package/android/snapshot-helper/dist/agent-device-android-snapshot-helper-0.21.12.apk.sha256 +0 -1
  313. package/dist/src/app-inventory.d.ts +0 -4
  314. package/dist/src/apps-simctl.js +0 -1
  315. package/dist/src/cloud-artifacts.d.ts +0 -61
  316. package/dist/src/runner-contract.js +0 -3
  317. package/dist/src/snapshot-process.js +0 -1
@@ -1,7 +1,6 @@
1
- import { S as DeviceTarget, b as DeviceInfo, f as LeaseBackend, w as PlatformSelector, x as DeviceKind } from "./sdk-contracts.js";
2
- import { t as AppsFilter } from "./app-inventory.js";
3
- import { d as Interactor, f as RunnerContext } from "./sdk-selectors.js";
4
- import { n as CloudArtifactProvider } from "./cloud-artifacts.js";
1
+ import { D as Point, E as IosTargetActivation, F as SnapshotProvenance, M as SnapshotKeyboardBandFact, O as RawSnapshotNode, P as SnapshotOptions$1, S as DeviceTarget, b as DeviceInfo, f as LeaseBackend, k as Rect, w as PlatformSelector, x as DeviceKind } from "./sdk-contracts.js";
2
+ import { s as AppsFilter, t as GesturePlan } from "./gesture-plan-types.js";
3
+ import { T as BackendSnapshotResult, d as ReadSettingResult, f as ReadableSetting, g as CloudArtifactProvider, i as DeviceRotation, k as SessionSurface, n as ScrollExecutionOptions, p as SettingOptions, r as TvRemoteButton, v as BackMode, y as ScrollDirection } from "./scroll-command.js";
5
4
  import { d as AndroidAdbProvider, n as AndroidKeyboardState, s as AndroidInputOwner, t as AndroidKeyboardDismissResult } from "./device-input-state.js";
6
5
  //#region packages/contracts/src/device-inventory.d.ts
7
6
  type DeviceInventoryRequest = {
@@ -64,6 +63,438 @@ type ProviderAppCatalogQuery = Readonly<{
64
63
  }>;
65
64
  type ProviderAppCatalogHandler = (query: ProviderAppCatalogQuery, signal?: AbortSignal) => Promise<readonly string[]>;
66
65
  //#endregion
66
+ //#region packages/contracts/src/ios-system-surface.d.ts
67
+ /**
68
+ * iOS out-of-process system surfaces that agent-device observes and drives IN PLACE, never by
69
+ * activation: launching or activating the host cancels what it presents (issue #2438), so the
70
+ * runner addresses the host process while it is foreground and the `open` path refuses it. The set
71
+ * is deliberately closed and tiny; add a host only with live evidence that it presents out of
72
+ * process and dies on activation. Rationale per host lives in the canonical fixture
73
+ * `contracts/fixtures/ios-system-surface-hosts.json` (see also docs/adr/0004); this module and the
74
+ * Swift `SystemSurfaceHostRegistry` both mirror it, each guarded by a parity test.
75
+ */
76
+ /** Why a system surface is served in place; carried at snapshot-response level as provenance. */
77
+ type IosSystemSurfaceKind = 'web-auth' | 'payment';
78
+ /**
79
+ * Whole-snapshot provenance: the capture describes a system surface presented over the session app,
80
+ * not the app itself. Carried at response level (it applies to the entire snapshot) and folded into
81
+ * iOS snapshot lineage so `--verify`/`--settle` never compare an app baseline against a sheet
82
+ * capture. Mirrors the Android system-chrome/system-surface provenance model.
83
+ */
84
+ type IosSystemSurfaceProvenance = Readonly<{
85
+ bundleId: string;
86
+ kind: IosSystemSurfaceKind;
87
+ }>;
88
+ //#endregion
89
+ //#region packages/contracts/src/runner-lease-context.d.ts
90
+ type RunnerLogicalLeaseContext = {
91
+ leaseId?: string;
92
+ clientId?: string;
93
+ tenantId?: string;
94
+ runId?: string;
95
+ leaseProvider?: string;
96
+ deviceKey?: string;
97
+ };
98
+ //#endregion
99
+ //#region packages/contracts/src/ios-snapshot.d.ts
100
+ type IosSnapshotProducer = 'apple-runner' | 'simulator-ax-bridge' | 'appium-source' | 'limrun-ios-tree';
101
+ type IosAcquisitionProducer = Exclude<IosSnapshotProducer, 'apple-runner'>;
102
+ type IosAcquisitionIntent = 'full' | 'surface-observation';
103
+ type IosSnapshotProjection = 'regular' | 'raw';
104
+ type IosSnapshotGeneration = string;
105
+ type IosSnapshotLineage = Readonly<{
106
+ targetId?: string;
107
+ generation?: IosSnapshotGeneration;
108
+ }>;
109
+ type IosSnapshotPresentationKey = Readonly<{
110
+ projection: IosSnapshotProjection;
111
+ interactiveOnly: boolean;
112
+ depth: number | null;
113
+ scope: string | null;
114
+ customActions: boolean;
115
+ }>;
116
+ type CaptureHint = Readonly<{
117
+ projection: IosSnapshotProjection;
118
+ rawTraversalDepth: number | null;
119
+ regularPresentedDepth: number | null;
120
+ interactiveOnly: boolean;
121
+ customActions: boolean;
122
+ acquisitionIntent: IosAcquisitionIntent;
123
+ }>;
124
+ type IosSnapshotFact = 'acquisition-depth' | 'scope' | 'interactive-query' | 'viewport' | 'hittability' | 'generation' | 'truncation';
125
+ type IosViewportEvidence = Readonly<{
126
+ kind: 'reported';
127
+ rect: Rect;
128
+ }> | Readonly<{
129
+ kind: 'derived';
130
+ rect: Rect;
131
+ }> | Readonly<{
132
+ kind: 'missing';
133
+ reason: 'not-provided' | 'not-supported' | 'invalid';
134
+ }>;
135
+ type IosProviderPrunedField = 'nodes' | 'depth' | 'scope' | 'interactive-only';
136
+ type IosAcquisitionResidue = Readonly<{
137
+ kind: 'provider-pruned';
138
+ fields: readonly IosProviderPrunedField[];
139
+ }> | Readonly<{
140
+ kind: 'missing-viewport';
141
+ reason: 'not-provided' | 'not-supported' | 'invalid';
142
+ }> | Readonly<{
143
+ kind: 'truncated';
144
+ }> | Readonly<{
145
+ kind: 'stale-generation';
146
+ expected?: IosSnapshotGeneration;
147
+ observed?: IosSnapshotGeneration;
148
+ }> | Readonly<{
149
+ kind: 'unknown-generation';
150
+ captureId: string;
151
+ }> | Readonly<{
152
+ kind: 'unavailable-fact';
153
+ fact: IosSnapshotFact;
154
+ }> | Readonly<{
155
+ kind: 'fallback-source';
156
+ producer: IosSnapshotProducer;
157
+ }>;
158
+ type IosSnapshotAcquisitionForIntent<Intent extends IosAcquisitionIntent> = Readonly<{
159
+ producer: IosAcquisitionProducer;
160
+ intent: Intent;
161
+ hint: CaptureHint & Readonly<{
162
+ acquisitionIntent: Intent;
163
+ }>;
164
+ nodes: readonly RawSnapshotNode[];
165
+ truncated?: boolean;
166
+ viewport: IosViewportEvidence;
167
+ lineage: IosSnapshotLineage;
168
+ residue: readonly IosAcquisitionResidue[];
169
+ }>;
170
+ type IosSnapshotAcquisition = IosSnapshotAcquisitionForIntent<'full'> | IosSnapshotAcquisitionForIntent<'surface-observation'>;
171
+ type IosSnapshotAcquisitionFacts = Omit<IosSnapshotAcquisition, 'hint'>;
172
+ type IosSnapshotComparisonIdentity = Readonly<{
173
+ producer: IosSnapshotProducer;
174
+ intent: IosAcquisitionIntent;
175
+ lineage: IosSnapshotLineage;
176
+ presentationKey: IosSnapshotPresentationKey;
177
+ residue: readonly IosAcquisitionResidue[];
178
+ }>;
179
+ //#endregion
180
+ //#region packages/contracts/src/interactor-types.d.ts
181
+ type RunnerContext = {
182
+ requestId?: string;
183
+ signal?: AbortSignal;
184
+ appBundleId?: string;
185
+ verbose?: boolean;
186
+ logPath?: string;
187
+ traceLogPath?: string;
188
+ iosXctestrunFile?: string;
189
+ iosXctestDerivedDataPath?: string;
190
+ iosXctestEnvDir?: string;
191
+ runnerLeaseContext?: RunnerLogicalLeaseContext;
192
+ };
193
+ type ScreenshotOptions = {
194
+ appBundleId?: string;
195
+ pixelDensity?: number;
196
+ fullscreen?: boolean;
197
+ normalizeStatusBar?: boolean;
198
+ stabilize?: boolean;
199
+ surface?: SessionSurface;
200
+ skipIosSimulatorBootCheck?: boolean;
201
+ captureBackend?: 'runner';
202
+ };
203
+ type ElementSelectorKey = 'id' | 'label' | 'text' | 'value';
204
+ type ElementSelectorTapOptions = {
205
+ key: ElementSelectorKey;
206
+ value: string;
207
+ allowNonHittableCoordinateFallback?: boolean;
208
+ expectedPoint?: Point;
209
+ };
210
+ type PressPointOptions = Readonly<{
211
+ button: 'primary' | 'secondary' | 'middle';
212
+ count: number;
213
+ intervalMs: number;
214
+ holdMs: number;
215
+ jitterPx: number;
216
+ doubleTap: boolean;
217
+ surface?: SessionSurface;
218
+ }>;
219
+ /**
220
+ * The channel the XCTest runner actually entered text through — the Swift
221
+ * `TextEntryResult.textEntryRoute` (RunnerTests+TextTyping.swift,
222
+ * RunnerTests+SynthesizedTextEntry.swift). Closed set, because the runner is
223
+ * its only producer and the boundary that narrows it
224
+ * (readTypeTextBackendResult, packages/platform-apple/src/interactions.ts) drops a
225
+ * route it cannot name — so a Swift-side addition would silently vanish. The
226
+ * route-parity test in packages/platform-apple/src/core/__tests__/interactions.test.ts
227
+ * reads the Swift sources and fails instead.
228
+ */
229
+ declare const TEXT_ENTRY_ROUTES: readonly ['xctest-element', 'synthesized-first-responder', 'synthesized-first-responder-replacement', 'xctest-application-fallback'];
230
+ type TextEntryRoute = (typeof TEXT_ENTRY_ROUTES)[number];
231
+ /**
232
+ * What `Interactor.type` reports back about the entry it performed. Only the
233
+ * Apple runner populates it; every other platform types blind and returns void.
234
+ */
235
+ type TypeTextBackendResult = {
236
+ textEntryRoute?: TextEntryRoute;
237
+ };
238
+ type SnapshotOptions = SnapshotOptions$1 & {
239
+ appBundleId?: string;
240
+ signal?: AbortSignal;
241
+ includeRects?: boolean;
242
+ includeHiddenContentHints?: boolean;
243
+ surface?: SessionSurface;
244
+ /** Internal capture purpose; action outcomes always require the full tree. */
245
+ acquisitionIntent?: 'full' | 'surface-observation';
246
+ };
247
+ /**
248
+ * Android's live IME status read. Optional on {@link Interactor}: parity with the retired leaf,
249
+ * which refused `status`/`get` on every other family (no other platform's runner exposes one).
250
+ * A single-member discriminated union rather than a bare object so the daemon can derive its wire
251
+ * `platform` label from `kind` the same way it does for dismiss and enter — an owner can only ever
252
+ * produce its own result shape.
253
+ */
254
+ type KeyboardStatusResult = Readonly<{
255
+ kind: 'ime-probe';
256
+ visible: boolean;
257
+ inputType?: string;
258
+ type?: string;
259
+ inputMethodPackage?: string;
260
+ focusedPackage?: string;
261
+ focusedResourceId?: string;
262
+ inputOwner?: string;
263
+ }>;
264
+ /**
265
+ * Owner-shaped dismiss evidence, discriminated by which owner produced it: Android's IME probe
266
+ * fields, or iOS's `mechanism` disclosure (#1598), or HarmonyOS's bare acknowledgment (its HDC
267
+ * key press reports nothing beyond success). The daemon derives the wire `platform` label from
268
+ * `kind` rather than re-deriving it from the device, so an owner can only ever produce its own
269
+ * result shape — an android-probe result under an `ios` label is unrepresentable.
270
+ */
271
+ type KeyboardDismissResult = Readonly<{
272
+ kind: 'ime-probe';
273
+ attempts?: number;
274
+ wasVisible?: boolean;
275
+ dismissed?: boolean;
276
+ visible?: boolean;
277
+ inputType?: string;
278
+ type?: string;
279
+ inputMethodPackage?: string;
280
+ focusedPackage?: string;
281
+ focusedResourceId?: string;
282
+ inputOwner?: string;
283
+ }> | Readonly<{
284
+ kind: 'mechanism';
285
+ wasVisible?: boolean;
286
+ dismissed?: boolean;
287
+ visible?: boolean;
288
+ mechanism?: string;
289
+ }> | Readonly<{
290
+ kind: 'acknowledged';
291
+ }>;
292
+ /**
293
+ * Only the Apple runner echoes visibility around the return-key press; Android and HarmonyOS
294
+ * acknowledge with no fields beyond success. Kind is owner-specific, not just content-shaped —
295
+ * Android's and HarmonyOS's acknowledgments are structurally identical, so only the discriminant
296
+ * itself tells the daemon which owner actually pressed enter.
297
+ */
298
+ type KeyboardEnterResult = Readonly<{
299
+ kind: 'visibility-echo';
300
+ visible?: boolean;
301
+ wasVisible?: boolean;
302
+ }> | Readonly<{
303
+ kind: 'android-acknowledged';
304
+ }> | Readonly<{
305
+ kind: 'harmonyos-acknowledged';
306
+ }>;
307
+ /**
308
+ * Every acquisition carries its provenance pair atomically: the channel alone cannot say who
309
+ * acquired the tree or which guarantees it carries, and `SnapshotProvenance`
310
+ * (`@agent-device/kernel/snapshot`) makes a cross-channel `backend`/`producer` combination
311
+ * fail to compile.
312
+ */
313
+ type SnapshotResult = Omit<BackendSnapshotResult, 'backend' | 'nodes'> & {
314
+ nodes?: RawSnapshotNode[];
315
+ comparisonIdentity?: IosSnapshotComparisonIdentity;
316
+ /**
317
+ * Set when the capture describes an in-place iOS system surface (a web sign-in sheet) presented
318
+ * over the session app rather than the app itself (#2438).
319
+ */
320
+ systemSurface?: IosSystemSurfaceProvenance;
321
+ /**
322
+ * The keyboard band the producer measured while capturing, when it can measure one (#2660). A
323
+ * producer that publishes nothing measured nothing, so the tap-path guard keeps deriving the band
324
+ * from `nodes`; see {@link SnapshotKeyboardBandFact}.
325
+ */
326
+ keyboard?: SnapshotKeyboardBandFact;
327
+ /**
328
+ * Set when this capture's own command had to bring the session app back to the foreground, i.e.
329
+ * something else held it and an earlier observation described that instead (#2682).
330
+ */
331
+ targetActivation?: IosTargetActivation;
332
+ } & SnapshotProvenance;
333
+ type SnapshotRuntimeAcquiredResult = Readonly<{
334
+ stage: 'acquired';
335
+ acquisition: IosSnapshotAcquisitionFacts & Readonly<{
336
+ producer: IosAcquisitionProducer;
337
+ }>;
338
+ }>;
339
+ type SnapshotRuntimeResult = SnapshotResult | SnapshotRuntimeAcquiredResult;
340
+ type Interactor = {
341
+ open(app: string, options?: {
342
+ activity?: string;
343
+ appBundleId?: string;
344
+ launchConsole?: string;
345
+ launchArgs?: string[];
346
+ terminateRunningApp?: boolean;
347
+ url?: string;
348
+ }): Promise<void>;
349
+ openDevice(): Promise<void>;
350
+ close(app: string): Promise<void>;
351
+ tap(x: number, y: number): Promise<Record<string, unknown> | void>;
352
+ /** Complete point-press semantics for owners with fused series, alternate buttons, or surfaces. */
353
+ pressPoint?(point: Point, options: PressPointOptions): Promise<Record<string, unknown> | void>;
354
+ /** Alternate mouse buttons for owners that otherwise use the shared point-press series. */
355
+ alternateClick?(point: Point, button: 'secondary' | 'middle'): Promise<Record<string, unknown> | void>;
356
+ /** Owner-native ref routes; currently the managed web runtime is their only local owner. */
357
+ tapRef?(ref: string): Promise<Record<string, unknown> | void>;
358
+ tapElementSelector?(selector: ElementSelectorTapOptions): Promise<Record<string, unknown> | void>;
359
+ /**
360
+ * Fused double-click for owners that have one. The shared `--count` series cannot stand in for it —
361
+ * it spaces and jitters independent presses rather than firing one pair the target reads as a
362
+ * double — so an owner with no such mechanic leaves this undefined and `press --double` reports the
363
+ * gap instead of resolving a denial.
364
+ */
365
+ doubleTap?(x: number, y: number): Promise<Record<string, unknown> | void>;
366
+ longPress(x: number, y: number, durationMs?: number): Promise<Record<string, unknown> | void>;
367
+ /**
368
+ * Move the pointer to a point without pressing. Only pointer-driven
369
+ * platforms (web today) implement it; touch platforms have no hover state
370
+ * and leave it undefined, which the `hover` command reports as unsupported.
371
+ */
372
+ hover?(x: number, y: number): Promise<Record<string, unknown> | void>;
373
+ hoverRef?(ref: string): Promise<Record<string, unknown> | void>;
374
+ focus(x: number, y: number): Promise<Record<string, unknown> | void>;
375
+ type(text: string, delayMs?: number): Promise<TypeTextBackendResult | void>;
376
+ /**
377
+ * Replace the target's text with `text`. The empty string is the clear request (#2063), not a
378
+ * no-op: an implementation must empty the field or fail — never report success over an
379
+ * untouched value. A backend with no clear mechanism refuses the empty text up front (see the
380
+ * webdriver interactor).
381
+ */
382
+ fill(x: number, y: number, text: string, delayMs?: number, options?: {
383
+ allowNonHittableCoordinateFallback?: boolean;
384
+ }): Promise<Record<string, unknown> | void>;
385
+ fillRef?(ref: string, text: string, delayMs?: number): Promise<Record<string, unknown> | void>;
386
+ scroll(direction: ScrollDirection, options?: ScrollExecutionOptions): Promise<Record<string, unknown> | void>;
387
+ screenshot(outPath: string, options?: ScreenshotOptions): Promise<void>;
388
+ setViewport?(width: number, height: number): Promise<Record<string, unknown> | void>;
389
+ snapshot(options?: SnapshotOptions): Promise<SnapshotRuntimeResult>;
390
+ /**
391
+ * Native reading of the live text at a point, when the backend has one. Answers the text the
392
+ * owner can see right now, which can exceed what an already-captured node carries (an editable
393
+ * field whose value is longer than its label). Optional: a backend without it leaves the
394
+ * captured tree as the complete answer.
395
+ */
396
+ readTextAtPoint?(point: Point, options?: {
397
+ appBundleId?: string;
398
+ surface?: SessionSurface;
399
+ signal?: AbortSignal;
400
+ }): Promise<string | undefined>;
401
+ /**
402
+ * Native text-presence reading, when the backend has one that does not require a tree capture.
403
+ * A `true` answer is authoritative; anything else means "not proven here" and the caller
404
+ * consults the canonical tree (see `FindTextResult`).
405
+ */
406
+ findText?(text: string, options?: {
407
+ appBundleId?: string;
408
+ signal?: AbortSignal;
409
+ }): Promise<{
410
+ found: boolean;
411
+ }>;
412
+ gestureViewport?(): Promise<Rect>;
413
+ back(mode?: BackMode): Promise<void>;
414
+ /**
415
+ * Optional (parity with `actionButton`): opens the springboard, a control not every owner
416
+ * carries. An owner without it leaves it undefined; its fact refuses the press before binding,
417
+ * and the system-button binder fails closed rather than resolving an absent member as a
418
+ * successful no-op.
419
+ */
420
+ home?(): Promise<void>;
421
+ setOrientation(orientation: DeviceRotation): Promise<{
422
+ orientation?: DeviceRotation;
423
+ } | void>;
424
+ performGesture?(plan: GesturePlan): Promise<Record<string, unknown> | void>;
425
+ /**
426
+ * Optional (parity with `home`): opens the recents surface, a control not every owner carries.
427
+ * An owner without it leaves it undefined; its fact refuses the press before binding, and the
428
+ * system-button binder fails closed rather than resolving an absent member as a successful
429
+ * no-op.
430
+ */
431
+ appSwitcher?(): Promise<void>;
432
+ /**
433
+ * Optional (parity with `home`): presses one TV remote key, a control only TV-capable owners
434
+ * carry. An owner without it leaves it undefined; its fact refuses the press before binding,
435
+ * and the TV remote binder fails closed rather than resolving an absent member as a silent
436
+ * no-op.
437
+ */
438
+ tvRemote?(button: TvRemoteButton, durationMs?: number): Promise<void>;
439
+ /**
440
+ * Optional (parity with `keyboardDismiss`): presses the iPhone/iPad Action Button, hardware only
441
+ * the Apple owner carries. An owner without the button leaves it undefined; its fact refuses the
442
+ * press before binding, and the system-button binder fails closed rather than resolving an
443
+ * absent member as a successful no-op.
444
+ */
445
+ actionButton?(): Promise<void>;
446
+ /** Optional: only Android implements a live status read (see {@link KeyboardStatusResult}). */
447
+ keyboardStatus?(): Promise<KeyboardStatusResult>;
448
+ /** Optional: platforms with no keyboard-dismiss concept leave it undefined. */
449
+ keyboardDismiss?(): Promise<KeyboardDismissResult>;
450
+ /** Optional: platforms with no keyboard-return concept leave it undefined. */
451
+ keyboardEnter?(): Promise<KeyboardEnterResult>;
452
+ /**
453
+ * Optional (parity with `readSetting`): the owner's pasteboard read. An owner with no clipboard
454
+ * surface leaves both halves undefined; its fact refuses the half before binding, and the
455
+ * clipboard binder fails closed rather than resolving an absent member as an empty answer.
456
+ */
457
+ readClipboard?(): Promise<string>;
458
+ /**
459
+ * Optional (parity with `readClipboard`): the owner's pasteboard write, with the same
460
+ * fact-then-guard contract as the read.
461
+ */
462
+ writeClipboard?(text: string): Promise<void>;
463
+ setSetting(setting: string, state: string, appId?: string, options?: SettingOptions): Promise<Record<string, unknown> | void>;
464
+ /**
465
+ * Optional: reads back the value a device holds for one readable setting. The name is narrowed to
466
+ * `READABLE_SETTINGS`, which is not every setting the write switch serves, and an owner's dispatch
467
+ * is exhaustive over it — a setting joins the list only with an owner that answers it. An owner with
468
+ * no read path leaves the member undefined; its fact refuses the read before binding, so an absent
469
+ * method can never resolve into an empty answer.
470
+ */
471
+ readSetting?(setting: ReadableSetting): Promise<ReadSettingResult>;
472
+ /**
473
+ * The four alert legs. Each owner runs its own observation and, where it needs one, its own
474
+ * poll: an alert is a transient device surface, and how long to look for it — and how to press
475
+ * its buttons — is family mechanics, not something a caller can supply. `timeoutMs` is the
476
+ * whole window the caller allows; the owner spends it however its backend requires.
477
+ *
478
+ * Optional: an owner with no alert surface leaves all four undefined. Its facts refuse every leg
479
+ * before binding, so the absent members are never resolved, and a fact that admitted a leg the
480
+ * interactor cannot serve fails closed instead of answering empty.
481
+ */
482
+ readAlert?(options?: AlertInteractorOptions): Promise<Record<string, unknown>>;
483
+ awaitAlert?(options?: AlertInteractorOptions): Promise<Record<string, unknown>>;
484
+ acceptAlert?(options?: AlertInteractorOptions): Promise<Record<string, unknown>>;
485
+ dismissAlert?(options?: AlertInteractorOptions): Promise<Record<string, unknown>>;
486
+ };
487
+ /**
488
+ * The session-derived target one alert leg acts on. `appBundleId` is separate from the runner
489
+ * context's because the macOS helper reads a frontmost-app surface with no bundle at all, and
490
+ * the two must not collapse into one field that means both.
491
+ */
492
+ type AlertInteractorOptions = {
493
+ timeoutMs?: number;
494
+ appBundleId?: string;
495
+ surface?: SessionSurface;
496
+ };
497
+ //#endregion
67
498
  //#region packages/contracts/src/provider-device-runtime.d.ts
68
499
  type ProviderDeviceInstallResult = {
69
500
  bundleId?: string;
package/dist/src/linux.js CHANGED
@@ -1 +1 @@
1
- import{D as e}from"./sdk-contracts.js";import{c as t}from"./diagnostics.js";import"./diagnostics2.js";import{a as n}from"./gesture-plan.js";import{S as r,_ as i,a,b as o,d as s,f as c,h as l,i as u,l as d,m as f,n as p,o as m,p as h,r as g,s as _,t as v,u as y,v as b,x}from"./src5.js";function S(){throw new e(`UNSUPPORTED_OPERATION`,`alert not supported on Linux`)}function C(){return{open:e=>s(e),openDevice:()=>Promise.resolve(),close:e=>g(e),tap:(e,t)=>c(e,t),alternateClick:async(e,t)=>t===`secondary`?await l(e.x,e.y):await y(e.x,e.y),doubleTap:(e,t)=>u(e,t),longPress:(e,t,n)=>d(e,t,n),focus:(e,t)=>m(e,t),type:(e,t)=>x(e,t),fill:(e,t,n,r)=>a(e,t,n,r),scroll:(e,t)=>b(e,t),performGesture:async t=>{if(t.topology===`two`)throw new e(`UNSUPPORTED_OPERATION`,`Multi-touch gestures are not supported on Linux`);let{start:r,end:i}=n(t);await o(r.x,r.y,i.x,i.y,t.durationMs)},screenshot:(e,t)=>i(e,t),readTextAtPoint:async(e,t)=>await f(e.x,e.y,t?.surface),snapshot:async e=>await t(`snapshot_capture`,async()=>await p(e,e?.signal),{backend:`linux-atspi`}),back:()=>v(),home:()=>_(),setOrientation:()=>{throw new e(`UNSUPPORTED_OPERATION`,`orientation not supported on Linux`)},appSwitcher:()=>{throw new e(`UNSUPPORTED_OPERATION`,`appSwitcher not yet supported on Linux`)},tvRemote:()=>{throw new e(`UNSUPPORTED_OPERATION`,`tv-remote not supported on Linux`)},readClipboard:()=>h(),writeClipboard:e=>r(e),setSetting:()=>{throw new e(`UNSUPPORTED_OPERATION`,`setSetting not supported on Linux`)},readAlert:S,awaitAlert:S,acceptAlert:S,dismissAlert:S}}export{C as createLinuxInteractor};
1
+ import{O as e}from"./sdk-contracts.js";import{c as t}from"./diagnostics.js";import"./diagnostics2.js";import{a as n}from"./gesture-plan.js";import{S as r,_ as i,a,b as o,d as s,f as c,h as l,i as u,l as d,m as f,n as p,o as m,p as h,r as g,s as _,t as v,u as y,v as b,x}from"./src5.js";function S(){return{open:e=>s(e),openDevice:()=>Promise.resolve(),close:e=>g(e),tap:(e,t)=>c(e,t),alternateClick:async(e,t)=>t===`secondary`?await l(e.x,e.y):await y(e.x,e.y),doubleTap:(e,t)=>u(e,t),longPress:(e,t,n)=>d(e,t,n),focus:(e,t)=>m(e,t),type:(e,t)=>x(e,t),fill:(e,t,n,r)=>a(e,t,n,r),scroll:(e,t)=>b(e,t),performGesture:async t=>{if(t.topology===`two`)throw new e(`UNSUPPORTED_OPERATION`,`Multi-touch gestures are not supported on Linux`);let{start:r,end:i}=n(t);await o(r.x,r.y,i.x,i.y,t.durationMs)},screenshot:(e,t)=>i(e,t),readTextAtPoint:async(e,t)=>await f(e.x,e.y,t?.surface),snapshot:async e=>await t(`snapshot_capture`,async()=>await p(e,e?.signal),{backend:`linux-atspi`}),back:()=>v(),home:()=>_(),setOrientation:()=>{throw new e(`UNSUPPORTED_OPERATION`,`orientation not supported on Linux`)},appSwitcher:()=>{throw new e(`UNSUPPORTED_OPERATION`,`appSwitcher not yet supported on Linux`)},tvRemote:()=>{throw new e(`UNSUPPORTED_OPERATION`,`tv-remote not supported on Linux`)},readClipboard:()=>h(),writeClipboard:e=>r(e),setSetting:()=>{throw new e(`UNSUPPORTED_OPERATION`,`setSetting not supported on Linux`)}}}export{S as createLinuxInteractor};
@@ -1 +1 @@
1
- import{tn as e}from"./sdk-batch.js";import{C as t,O as n,P as r,T as i,U as a,j as o}from"./alert-runtime.js";import{t as s}from"./touch-runtime.js";import{t as c}from"./interactor-operation-catalog.js";function l(l){let{facts:u,pause:d}=l,f={device:l.device,signal:l.signal,resolveInteractor:l.resolveInteractor};return{...u.captureScreenshot.available?a(f):{},...u.focusPoint.available?r(f):{},...o({...f,facts:u}),...u.scrollDirection.available?n(f):{},...u.typeText.available?i(f):{},...u.readTextAtPoint.available?t(f):{},...e(u.tapPoint,()=>s({...f,facts:u,pause:d})),...c({...f,facts:u})}}export{l as t};
1
+ import{tn as e}from"./sdk-batch.js";import{E as t,K as n,L as r,O as i,P as a,j as o}from"./alert-runtime.js";import{t as s}from"./touch-runtime.js";import{t as c}from"./interactor-operation-catalog.js";function l(l){let{facts:u,pause:d}=l,f={device:l.device,signal:l.signal,resolveInteractor:l.resolveInteractor};return{...u.captureScreenshot.available?n(f):{},...u.focusPoint.available?r(f):{},...a({...f,facts:u}),...u.scrollDirection.available?o(f):{},...u.typeText.available?i(f):{},...u.readTextAtPoint.available?t(f):{},...e(u.tapPoint,()=>s({...f,facts:u,pause:d})),...c({...f,facts:u})}}export{l as t};
@@ -1 +1 @@
1
- import{D as e}from"./sdk-contracts.js";const t=[`grant`,`deny`,`reset`],n=[`full`,`limited`],r=[`all`,`camera`,`microphone`,`photos`,`contacts`,`contacts-limited`,`notifications`,`calendar`,`location`,`location-always`,`media-library`,`motion`,`reminders`,`siri`],i=[`accessibility`,`screen-recording`,`input-monitoring`],a=[`extra-small`,`small`,`medium`,`large`,`extra-large`,`extra-extra-large`,`extra-extra-extra-large`,`accessibility-medium`,`accessibility-large`,`accessibility-extra-large`,`accessibility-extra-extra-large`,`accessibility-extra-extra-extra-large`];function o(e,t){return Object.freeze({setting:`text-size`,category:e,platformValue:t})}function s(e){return`Text size is ${e.category}`}function c(e,t,n){return e===`clear-app-state`?`Cleared user data for ${n}`:e===`text-size`?`Text size set to ${t}`:`Updated setting: ${e}`}const l=`<wifi|airplane|location> <on|off>`,u=`location set <lat> <lon>`,d=`animations <on|off>`,f=`appearance <light|dark|toggle>`,p=`faceid <match|nonmatch|enroll|unenroll>`,m=`touchid <match|nonmatch|enroll|unenroll>`,h=`fingerprint <match|nonmatch>`,g=`clear-app-state [app-id]`,_=`reset-keychain clear`,v=`text-size [${a.join(`|`)}]`,y=`permission <${t.join(`|`)}> <${r.join(`|`)}> [${n.join(`|`)}]`,b=`permission <grant|reset> <${i.join(`|`)}>`,x=`macOS supports only settings ${f} and settings ${b}. wifi|airplane|location|animations|text-size remain unsupported on macOS.`,S=[`settings ${l}`,`settings ${u}`,`settings ${d}`,`settings ${f}`,`settings ${v}`,`settings ${p}`,`settings ${m}`,`settings ${h}`,`settings ${g}`,`settings ${_}`,`settings ${y}`,`settings ${b}`].join(` | `),C=`settings requires ${l}, ${u}, ${d}, ${f}, ${v}, ${p}, ${m}, ${h}, ${g}, ${_}, ${y}, or ${b}`;function w(e){let t=e.trim().toLowerCase();return t===`appearance`||t===`permission`}function T(e){return`Unsupported macOS setting: ${e}. ${x}`}function E(t){let n=O(t);if(n!==void 0)return n;throw new e(`INVALID_ARGS`,D(t))}function D(e){return`Invalid text size: ${e??``}. Use ${a.join(`|`)}.`}function O(e){return A(a,e)}const k=Object.freeze({message:`Reading or setting a text size is supported on iOS and iPadOS simulators.`,hint:"Run `xcrun simctl ui <device> content_size` on a booted iPhone or iPad simulator.",reason:`setting-unsupported-on-leaf`});function A(e,t){let n=t?.trim().toLowerCase();return n===void 0?void 0:e.find(e=>e===n)}function j(n){let r=A(t,n);if(r!==void 0)return r;throw new e(`INVALID_ARGS`,`Invalid permission action: ${n}. Use ${t.join(`|`)}.`)}function M(t){let n=A(r,t);if(n!==void 0)return n;throw new e(`INVALID_ARGS`,`permission setting requires a target: ${r.join(`|`)}`)}function N(t,n){if(t===void 0||t.trim()===``)throw new e(`INVALID_ARGS`,`settings location set requires ${n}`);return F(Number(t),n)}function P(e){return{latitude:F(e?.latitude,`latitude`),longitude:F(e?.longitude,`longitude`)}}function F(t,n){let r=n===`latitude`?-90:-180,i=n===`latitude`?90:180;if(typeof t!=`number`||!Number.isFinite(t)||t<r||t>i)throw new e(`INVALID_ARGS`,`${n} must be a number from ${r} to ${i}`);return t}export{j as _,r as a,O as b,C as c,a as d,s as f,w as g,D as h,i,b as l,T as m,P as n,t as o,c as p,k as r,n as s,N as t,S as u,M as v,o as x,E as y};
1
+ import{O as e}from"./sdk-contracts.js";const t=[`grant`,`deny`,`reset`],n=[`full`,`limited`],r=[`all`,`camera`,`microphone`,`photos`,`contacts`,`contacts-limited`,`notifications`,`calendar`,`location`,`location-always`,`media-library`,`motion`,`reminders`,`siri`],i=[`accessibility`,`screen-recording`,`input-monitoring`],a=[`extra-small`,`small`,`medium`,`large`,`extra-large`,`extra-extra-large`,`extra-extra-extra-large`,`accessibility-medium`,`accessibility-large`,`accessibility-extra-large`,`accessibility-extra-extra-large`,`accessibility-extra-extra-extra-large`];function o(e,t){return Object.freeze({setting:`text-size`,category:e,platformValue:t})}function s(e){return`Text size is ${e.category}`}function c(e,t,n){return e===`clear-app-state`?`Cleared user data for ${n}`:e===`text-size`?`Text size set to ${t}`:`Updated setting: ${e}`}const l=`<wifi|airplane|location> <on|off>`,u=`location set <lat> <lon>`,d=`animations <on|off>`,f=`appearance <light|dark|toggle>`,p=`faceid <match|nonmatch|enroll|unenroll>`,m=`touchid <match|nonmatch|enroll|unenroll>`,h=`fingerprint <match|nonmatch>`,g=`clear-app-state [app-id]`,_=`reset-keychain clear`,v=`text-size [${a.join(`|`)}]`,y=`permission <${t.join(`|`)}> <${r.join(`|`)}> [${n.join(`|`)}]`,b=`permission <grant|reset> <${i.join(`|`)}>`,x=`macOS supports only settings ${f} and settings ${b}. wifi|airplane|location|animations|text-size remain unsupported on macOS.`,S=[`settings ${l}`,`settings ${u}`,`settings ${d}`,`settings ${f}`,`settings ${v}`,`settings ${p}`,`settings ${m}`,`settings ${h}`,`settings ${g}`,`settings ${_}`,`settings ${y}`,`settings ${b}`].join(` | `),C=`settings requires ${l}, ${u}, ${d}, ${f}, ${v}, ${p}, ${m}, ${h}, ${g}, ${_}, ${y}, or ${b}`;function w(e){let t=e.trim().toLowerCase();return t===`appearance`||t===`permission`}function T(e){return`Unsupported macOS setting: ${e}. ${x}`}function E(t){let n=O(t);if(n!==void 0)return n;throw new e(`INVALID_ARGS`,D(t))}function D(e){return`Invalid text size: ${e??``}. Use ${a.join(`|`)}.`}function O(e){return A(a,e)}const k=Object.freeze({message:`Reading or setting a text size is supported on iOS and iPadOS simulators.`,hint:"Run `xcrun simctl ui <device> content_size` on a booted iPhone or iPad simulator.",reason:`setting-unsupported-on-leaf`});function A(e,t){let n=t?.trim().toLowerCase();return n===void 0?void 0:e.find(e=>e===n)}function j(n){let r=A(t,n);if(r!==void 0)return r;throw new e(`INVALID_ARGS`,`Invalid permission action: ${n}. Use ${t.join(`|`)}.`)}function M(t){let n=A(r,t);if(n!==void 0)return n;throw new e(`INVALID_ARGS`,`permission setting requires a target: ${r.join(`|`)}`)}function N(t,n){if(t===void 0||t.trim()===``)throw new e(`INVALID_ARGS`,`settings location set requires ${n}`);return F(Number(t),n)}function P(e){return{latitude:F(e?.latitude,`latitude`),longitude:F(e?.longitude,`longitude`)}}function F(t,n){let r=n===`latitude`?-90:-180,i=n===`latitude`?90:180;if(typeof t!=`number`||!Number.isFinite(t)||t<r||t>i)throw new e(`INVALID_ARGS`,`${n} must be a number from ${r} to ${i}`);return t}export{j as _,r as a,O as b,C as c,a as d,s as f,w as g,D as h,i,b as l,T as m,P as n,t as o,c as p,k as r,n as s,N as t,S as u,M as v,o as x,E as y};
@@ -1 +1 @@
1
- import{D as e}from"./sdk-contracts.js";import{E as t,k as n}from"./sdk-device.js";import{t as r}from"./scoped-provider.js";const i=r(void 0);function a(){return i.resolve()}async function o(e,t){return await i.run(e,t)}function s(r,i){if(!n(t(r.device),t(i))||r.device.simulatorSetPath!==i.simulatorSetPath)throw new e(`COMMAND_FAILED`,`Managed automation cannot select another device.`,{reason:`managed-device-transport-mismatch`})}function c(){let e=a();if(e)return async t=>{s(e,t)}}async function l(e){let t=c();return t?(await t(e),!0):!1}export{o as a,c as i,a as n,l as r,s as t};
1
+ import{O as e}from"./sdk-contracts.js";import{A as t,D as n}from"./sdk-device.js";import{t as r}from"./scoped-provider.js";const i=r(void 0);function a(){return i.resolve()}async function o(e,t){return await i.run(e,t)}function s(r,i){if(!t(n(r.device),n(i))||r.device.simulatorSetPath!==i.simulatorSetPath)throw new e(`COMMAND_FAILED`,`Managed automation cannot select another device.`,{reason:`managed-device-transport-mismatch`})}function c(){let e=a();if(e)return async t=>{s(e,t)}}async function l(e){let t=c();return t?(await t(e),!0):!1}export{o as a,c as i,a as n,l as r,s as t};