rocketwright 3.12.0__tar.gz

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 (499) hide show
  1. rocketwright-3.12.0/.gitignore +41 -0
  2. rocketwright-3.12.0/LICENSE +202 -0
  3. rocketwright-3.12.0/NOTICE +20 -0
  4. rocketwright-3.12.0/PKG-INFO +324 -0
  5. rocketwright-3.12.0/README.md +287 -0
  6. rocketwright-3.12.0/THIRD_PARTY_LICENSES.md +158 -0
  7. rocketwright-3.12.0/docs/README.md +69 -0
  8. rocketwright-3.12.0/docs/media/README.md +25 -0
  9. rocketwright-3.12.0/examples/README.md +22 -0
  10. rocketwright-3.12.0/examples/android-app/README.md +37 -0
  11. rocketwright-3.12.0/examples/cef-app-sdk/README.md +14 -0
  12. rocketwright-3.12.0/examples/claude-code-cli/README.md +52 -0
  13. rocketwright-3.12.0/examples/codex/README.md +12 -0
  14. rocketwright-3.12.0/examples/cursor/README.md +12 -0
  15. rocketwright-3.12.0/examples/custom-connector/README.md +46 -0
  16. rocketwright-3.12.0/examples/embed-host/README.md +23 -0
  17. rocketwright-3.12.0/examples/fastapi-embed/README.md +50 -0
  18. rocketwright-3.12.0/examples/iframe/README.md +26 -0
  19. rocketwright-3.12.0/examples/mac-app-sdk/README.md +19 -0
  20. rocketwright-3.12.0/examples/tauri-app-sdk/README.md +25 -0
  21. rocketwright-3.12.0/examples/token-budget/README.md +48 -0
  22. rocketwright-3.12.0/examples/web-component/README.md +49 -0
  23. rocketwright-3.12.0/helper/Package.swift +43 -0
  24. rocketwright-3.12.0/helper/Sources/HelperCore/Accessibility.swift +179 -0
  25. rocketwright-3.12.0/helper/Sources/HelperCore/Arguments.swift +245 -0
  26. rocketwright-3.12.0/helper/Sources/HelperCore/Capture.swift +202 -0
  27. rocketwright-3.12.0/helper/Sources/HelperCore/FrameScheduler.swift +72 -0
  28. rocketwright-3.12.0/helper/Sources/HelperCore/Input.swift +171 -0
  29. rocketwright-3.12.0/helper/Sources/HelperCore/JSON.swift +84 -0
  30. rocketwright-3.12.0/helper/Sources/HelperCore/MacWindow.swift +152 -0
  31. rocketwright-3.12.0/helper/Sources/HelperCore/Orientation.swift +131 -0
  32. rocketwright-3.12.0/helper/Sources/HelperCore/Overlay.swift +285 -0
  33. rocketwright-3.12.0/helper/Sources/HelperCore/Recording.swift +434 -0
  34. rocketwright-3.12.0/helper/Sources/HelperCore/Requests.swift +159 -0
  35. rocketwright-3.12.0/helper/Sources/HelperCore/Rotation.swift +58 -0
  36. rocketwright-3.12.0/helper/Sources/HelperCore/Screen.swift +142 -0
  37. rocketwright-3.12.0/helper/Sources/HelperCore/Server.swift +223 -0
  38. rocketwright-3.12.0/helper/Sources/HelperCore/Video.swift +125 -0
  39. rocketwright-3.12.0/helper/Sources/HelperCore/Wire.swift +122 -0
  40. rocketwright-3.12.0/helper/Sources/HelperPlatform/AccessibilityReader.swift +204 -0
  41. rocketwright-3.12.0/helper/Sources/HelperPlatform/CaptureDevice.swift +195 -0
  42. rocketwright-3.12.0/helper/Sources/HelperPlatform/Disclaimed.swift +46 -0
  43. rocketwright-3.12.0/helper/Sources/HelperPlatform/Framebuffer.swift +141 -0
  44. rocketwright-3.12.0/helper/Sources/HelperPlatform/Frameworks.swift +84 -0
  45. rocketwright-3.12.0/helper/Sources/HelperPlatform/H264Stream.swift +295 -0
  46. rocketwright-3.12.0/helper/Sources/HelperPlatform/HIDTransports.swift +149 -0
  47. rocketwright-3.12.0/helper/Sources/HelperPlatform/MacAccessibility.swift +241 -0
  48. rocketwright-3.12.0/helper/Sources/HelperPlatform/MacOverlay.swift +352 -0
  49. rocketwright-3.12.0/helper/Sources/HelperPlatform/MacPermissions.swift +34 -0
  50. rocketwright-3.12.0/helper/Sources/HelperPlatform/MacWindowCapture.swift +76 -0
  51. rocketwright-3.12.0/helper/Sources/HelperPlatform/MacWindowDevice.swift +153 -0
  52. rocketwright-3.12.0/helper/Sources/HelperPlatform/Pictures.swift +73 -0
  53. rocketwright-3.12.0/helper/Sources/HelperPlatform/PixelSource.swift +91 -0
  54. rocketwright-3.12.0/helper/Sources/HelperPlatform/RecordingRenderer.swift +395 -0
  55. rocketwright-3.12.0/helper/Sources/HelperPlatform/ScreenFeed.swift +60 -0
  56. rocketwright-3.12.0/helper/Sources/HelperPlatform/SimDeviceHandle.swift +67 -0
  57. rocketwright-3.12.0/helper/Sources/HelperPlatform/SimulatorDevice.swift +154 -0
  58. rocketwright-3.12.0/helper/Sources/HelperPlatform/UnixSocket.swift +119 -0
  59. rocketwright-3.12.0/helper/Sources/HelperPlatform/UsbCapture.swift +245 -0
  60. rocketwright-3.12.0/helper/Sources/HelperPlatform/Warming.swift +29 -0
  61. rocketwright-3.12.0/helper/Sources/ObjCGuard/ObjCGuard.m +11 -0
  62. rocketwright-3.12.0/helper/Sources/ObjCGuard/include/ObjCGuard.h +12 -0
  63. rocketwright-3.12.0/helper/Sources/rocketwright-helper/main.swift +162 -0
  64. rocketwright-3.12.0/helper/Support/Info.plist +12 -0
  65. rocketwright-3.12.0/helper/Tests/Fixtures/wire-vectors.json +69 -0
  66. rocketwright-3.12.0/helper/Tests/HelperCoreTests/AccessibilityTests.swift +73 -0
  67. rocketwright-3.12.0/helper/Tests/HelperCoreTests/ArgumentsTests.swift +63 -0
  68. rocketwright-3.12.0/helper/Tests/HelperCoreTests/CaptureTests.swift +108 -0
  69. rocketwright-3.12.0/helper/Tests/HelperCoreTests/InputTests.swift +90 -0
  70. rocketwright-3.12.0/helper/Tests/HelperCoreTests/MacWindowTests.swift +101 -0
  71. rocketwright-3.12.0/helper/Tests/HelperCoreTests/OrientationTests.swift +128 -0
  72. rocketwright-3.12.0/helper/Tests/HelperCoreTests/OverlayTests.swift +283 -0
  73. rocketwright-3.12.0/helper/Tests/HelperCoreTests/PictureTests.swift +129 -0
  74. rocketwright-3.12.0/helper/Tests/HelperCoreTests/RecordingTests.swift +261 -0
  75. rocketwright-3.12.0/helper/Tests/HelperCoreTests/RotationTests.swift +41 -0
  76. rocketwright-3.12.0/helper/Tests/HelperCoreTests/ServerTests.swift +293 -0
  77. rocketwright-3.12.0/helper/Tests/HelperCoreTests/WireTests.swift +122 -0
  78. rocketwright-3.12.0/protocol/README.md +93 -0
  79. rocketwright-3.12.0/protocol/app-sdk/v1/examples/error-inactive.json +6 -0
  80. rocketwright-3.12.0/protocol/app-sdk/v1/examples/error-unauthorized.json +6 -0
  81. rocketwright-3.12.0/protocol/app-sdk/v1/examples/hierarchy-alert.json +158 -0
  82. rocketwright-3.12.0/protocol/app-sdk/v1/examples/hierarchy-keyboard.json +446 -0
  83. rocketwright-3.12.0/protocol/app-sdk/v1/examples/hierarchy-swiftui.json +234 -0
  84. rocketwright-3.12.0/protocol/app-sdk/v1/examples/hierarchy-tagged.json +254 -0
  85. rocketwright-3.12.0/protocol/app-sdk/v1/examples/hierarchy-uikit.json +375 -0
  86. rocketwright-3.12.0/protocol/app-sdk/v1/examples/listing.json +12 -0
  87. rocketwright-3.12.0/protocol/app-sdk/v1/hierarchy.schema.json +167 -0
  88. rocketwright-3.12.0/protocol/app-sdk/v1/input.schema.json +210 -0
  89. rocketwright-3.12.0/protocol/app-sdk/v1/listing.schema.json +89 -0
  90. rocketwright-3.12.0/protocol/v1/agent-event.schema.json +110 -0
  91. rocketwright-3.12.0/protocol/v1/client-input.schema.json +297 -0
  92. rocketwright-3.12.0/protocol/v1/close-codes.json +33 -0
  93. rocketwright-3.12.0/protocol/v1/common.schema.json +173 -0
  94. rocketwright-3.12.0/protocol/v1/constants.json +14 -0
  95. rocketwright-3.12.0/protocol/v1/hello.schema.json +50 -0
  96. rocketwright-3.12.0/protocol/v1/http.schema.json +342 -0
  97. rocketwright-3.12.0/protocol/v1/input-refused.schema.json +12 -0
  98. rocketwright-3.12.0/protocol/v1/screen-text.schema.json +43 -0
  99. rocketwright-3.12.0/protocol/v1/settings.schema.json +213 -0
  100. rocketwright-3.12.0/protocol/v1/status.schema.json +134 -0
  101. rocketwright-3.12.0/protocol/v1/stream.schema.json +12 -0
  102. rocketwright-3.12.0/pyproject.toml +172 -0
  103. rocketwright-3.12.0/scripts/hatch_build.py +74 -0
  104. rocketwright-3.12.0/sdk/cef/README.md +70 -0
  105. rocketwright-3.12.0/sdk/web/README.md +33 -0
  106. rocketwright-3.12.0/src/rocketwright/__init__.py +6 -0
  107. rocketwright-3.12.0/src/rocketwright/__main__.py +7 -0
  108. rocketwright-3.12.0/src/rocketwright/_version.py +4 -0
  109. rocketwright-3.12.0/src/rocketwright/api.py +103 -0
  110. rocketwright-3.12.0/src/rocketwright/build/__init__.py +2 -0
  111. rocketwright-3.12.0/src/rocketwright/build/checkouts.py +271 -0
  112. rocketwright-3.12.0/src/rocketwright/build/derived.py +111 -0
  113. rocketwright-3.12.0/src/rocketwright/build/destination.py +102 -0
  114. rocketwright-3.12.0/src/rocketwright/build/flutter.py +542 -0
  115. rocketwright-3.12.0/src/rocketwright/build/flutter_log.py +205 -0
  116. rocketwright-3.12.0/src/rocketwright/build/flutter_run.py +343 -0
  117. rocketwright-3.12.0/src/rocketwright/build/folders.py +38 -0
  118. rocketwright-3.12.0/src/rocketwright/build/gradle.py +489 -0
  119. rocketwright-3.12.0/src/rocketwright/build/gradle_log.py +73 -0
  120. rocketwright-3.12.0/src/rocketwright/build/junit.py +125 -0
  121. rocketwright-3.12.0/src/rocketwright/build/project_files.py +52 -0
  122. rocketwright-3.12.0/src/rocketwright/build/provider.py +461 -0
  123. rocketwright-3.12.0/src/rocketwright/build/runner.py +601 -0
  124. rocketwright-3.12.0/src/rocketwright/build/schemes.py +129 -0
  125. rocketwright-3.12.0/src/rocketwright/build/source.py +59 -0
  126. rocketwright-3.12.0/src/rocketwright/build/stamp.py +192 -0
  127. rocketwright-3.12.0/src/rocketwright/build/wda.py +147 -0
  128. rocketwright-3.12.0/src/rocketwright/build/xcodebuild.py +734 -0
  129. rocketwright-3.12.0/src/rocketwright/build/xcresult.py +365 -0
  130. rocketwright-3.12.0/src/rocketwright/build/xctestplan.py +105 -0
  131. rocketwright-3.12.0/src/rocketwright/cli/__init__.py +2 -0
  132. rocketwright-3.12.0/src/rocketwright/cli/android.py +135 -0
  133. rocketwright-3.12.0/src/rocketwright/cli/app_command.py +129 -0
  134. rocketwright-3.12.0/src/rocketwright/cli/config_command.py +150 -0
  135. rocketwright-3.12.0/src/rocketwright/cli/context.py +187 -0
  136. rocketwright-3.12.0/src/rocketwright/cli/device_command.py +58 -0
  137. rocketwright-3.12.0/src/rocketwright/cli/devices.py +142 -0
  138. rocketwright-3.12.0/src/rocketwright/cli/doctor.py +82 -0
  139. rocketwright-3.12.0/src/rocketwright/cli/helper.py +251 -0
  140. rocketwright-3.12.0/src/rocketwright/cli/login.py +113 -0
  141. rocketwright-3.12.0/src/rocketwright/cli/main.py +80 -0
  142. rocketwright-3.12.0/src/rocketwright/cli/mcp.py +56 -0
  143. rocketwright-3.12.0/src/rocketwright/cli/open_viewer.py +53 -0
  144. rocketwright-3.12.0/src/rocketwright/cli/record.py +130 -0
  145. rocketwright-3.12.0/src/rocketwright/cli/serve.py +76 -0
  146. rocketwright-3.12.0/src/rocketwright/cli/settings_command.py +38 -0
  147. rocketwright-3.12.0/src/rocketwright/cli/stop.py +209 -0
  148. rocketwright-3.12.0/src/rocketwright/cli/tokens.py +88 -0
  149. rocketwright-3.12.0/src/rocketwright/cli/tools.py +29 -0
  150. rocketwright-3.12.0/src/rocketwright/cli/version.py +31 -0
  151. rocketwright-3.12.0/src/rocketwright/cli/wda.py +285 -0
  152. rocketwright-3.12.0/src/rocketwright/cli/xcode.py +90 -0
  153. rocketwright-3.12.0/src/rocketwright/config/__init__.py +3 -0
  154. rocketwright-3.12.0/src/rocketwright/config/discovery.py +19 -0
  155. rocketwright-3.12.0/src/rocketwright/config/env.py +34 -0
  156. rocketwright-3.12.0/src/rocketwright/config/model.py +174 -0
  157. rocketwright-3.12.0/src/rocketwright/config/observe_languages.py +91 -0
  158. rocketwright-3.12.0/src/rocketwright/config/provenance.py +39 -0
  159. rocketwright-3.12.0/src/rocketwright/config/schema.py +1103 -0
  160. rocketwright-3.12.0/src/rocketwright/config/settings_store.py +34 -0
  161. rocketwright-3.12.0/src/rocketwright/config/toml_source.py +139 -0
  162. rocketwright-3.12.0/src/rocketwright/config/writer.py +218 -0
  163. rocketwright-3.12.0/src/rocketwright/connectors/__init__.py +8 -0
  164. rocketwright-3.12.0/src/rocketwright/connectors/android/__init__.py +2 -0
  165. rocketwright-3.12.0/src/rocketwright/connectors/android/adb_input.py +134 -0
  166. rocketwright-3.12.0/src/rocketwright/connectors/android/connector.py +230 -0
  167. rocketwright-3.12.0/src/rocketwright/connectors/android/geometry.py +115 -0
  168. rocketwright-3.12.0/src/rocketwright/connectors/android/keys.py +59 -0
  169. rocketwright-3.12.0/src/rocketwright/connectors/android/scrcpy.py +269 -0
  170. rocketwright-3.12.0/src/rocketwright/connectors/android/scrcpy_roles.py +202 -0
  171. rocketwright-3.12.0/src/rocketwright/connectors/android/scrcpy_source.py +204 -0
  172. rocketwright-3.12.0/src/rocketwright/connectors/android/screen.py +69 -0
  173. rocketwright-3.12.0/src/rocketwright/connectors/android/uiautomator.py +256 -0
  174. rocketwright-3.12.0/src/rocketwright/connectors/app/__init__.py +12 -0
  175. rocketwright-3.12.0/src/rocketwright/connectors/app/client.py +160 -0
  176. rocketwright-3.12.0/src/rocketwright/connectors/app/discovery.py +182 -0
  177. rocketwright-3.12.0/src/rocketwright/connectors/app/document.py +229 -0
  178. rocketwright-3.12.0/src/rocketwright/connectors/app/errors.py +30 -0
  179. rocketwright-3.12.0/src/rocketwright/connectors/app/merge.py +95 -0
  180. rocketwright-3.12.0/src/rocketwright/connectors/app/reader.py +218 -0
  181. rocketwright-3.12.0/src/rocketwright/connectors/app/wire.py +37 -0
  182. rocketwright-3.12.0/src/rocketwright/connectors/base.py +375 -0
  183. rocketwright-3.12.0/src/rocketwright/connectors/helper_process.py +414 -0
  184. rocketwright-3.12.0/src/rocketwright/connectors/idb/__init__.py +2 -0
  185. rocketwright-3.12.0/src/rocketwright/connectors/idb/companion.py +195 -0
  186. rocketwright-3.12.0/src/rocketwright/connectors/idb/connector.py +93 -0
  187. rocketwright-3.12.0/src/rocketwright/connectors/idb/engine.py +202 -0
  188. rocketwright-3.12.0/src/rocketwright/connectors/idb/frameworks.py +51 -0
  189. rocketwright-3.12.0/src/rocketwright/connectors/idb/orientation.py +157 -0
  190. rocketwright-3.12.0/src/rocketwright/connectors/idb/proto/__init__.py +8 -0
  191. rocketwright-3.12.0/src/rocketwright/connectors/idb/proto/idb.proto +1301 -0
  192. rocketwright-3.12.0/src/rocketwright/connectors/idb/proto/idb_grpc.py +776 -0
  193. rocketwright-3.12.0/src/rocketwright/connectors/idb/proto/idb_pb2.py +452 -0
  194. rocketwright-3.12.0/src/rocketwright/connectors/iphone/__init__.py +2 -0
  195. rocketwright-3.12.0/src/rocketwright/connectors/iphone/cable.py +49 -0
  196. rocketwright-3.12.0/src/rocketwright/connectors/iphone/capture.py +147 -0
  197. rocketwright-3.12.0/src/rocketwright/connectors/iphone/connector.py +409 -0
  198. rocketwright-3.12.0/src/rocketwright/connectors/iphone/screen.py +78 -0
  199. rocketwright-3.12.0/src/rocketwright/connectors/iphone/wda.py +320 -0
  200. rocketwright-3.12.0/src/rocketwright/connectors/iphone/wda_client.py +347 -0
  201. rocketwright-3.12.0/src/rocketwright/connectors/iphone/wda_roles.py +520 -0
  202. rocketwright-3.12.0/src/rocketwright/connectors/iphone/wda_setup.py +178 -0
  203. rocketwright-3.12.0/src/rocketwright/connectors/iphone/wda_source.py +247 -0
  204. rocketwright-3.12.0/src/rocketwright/connectors/mac/__init__.py +2 -0
  205. rocketwright-3.12.0/src/rocketwright/connectors/mac/connector.py +344 -0
  206. rocketwright-3.12.0/src/rocketwright/connectors/mcpbridge/__init__.py +3 -0
  207. rocketwright-3.12.0/src/rocketwright/connectors/mcpbridge/client.py +140 -0
  208. rocketwright-3.12.0/src/rocketwright/connectors/mcpbridge/connector.py +84 -0
  209. rocketwright-3.12.0/src/rocketwright/connectors/mcpbridge/hierarchy.py +225 -0
  210. rocketwright-3.12.0/src/rocketwright/connectors/mcpbridge/merge.py +68 -0
  211. rocketwright-3.12.0/src/rocketwright/connectors/mcpbridge/reader.py +221 -0
  212. rocketwright-3.12.0/src/rocketwright/connectors/native/__init__.py +2 -0
  213. rocketwright-3.12.0/src/rocketwright/connectors/native/client.py +275 -0
  214. rocketwright-3.12.0/src/rocketwright/connectors/native/connector.py +182 -0
  215. rocketwright-3.12.0/src/rocketwright/connectors/native/helper.py +490 -0
  216. rocketwright-3.12.0/src/rocketwright/connectors/native/wire.py +98 -0
  217. rocketwright-3.12.0/src/rocketwright/connectors/registry.py +231 -0
  218. rocketwright-3.12.0/src/rocketwright/connectors/simctl/__init__.py +2 -0
  219. rocketwright-3.12.0/src/rocketwright/connectors/simctl/capture.py +66 -0
  220. rocketwright-3.12.0/src/rocketwright/connectors/simctl/connector.py +78 -0
  221. rocketwright-3.12.0/src/rocketwright/core/__init__.py +3 -0
  222. rocketwright-3.12.0/src/rocketwright/core/actions.py +1825 -0
  223. rocketwright-3.12.0/src/rocketwright/core/activity.py +155 -0
  224. rocketwright-3.12.0/src/rocketwright/core/android_backend.py +256 -0
  225. rocketwright-3.12.0/src/rocketwright/core/android_control.py +442 -0
  226. rocketwright-3.12.0/src/rocketwright/core/android_devices.py +260 -0
  227. rocketwright-3.12.0/src/rocketwright/core/availability.py +63 -0
  228. rocketwright-3.12.0/src/rocketwright/core/backends.py +277 -0
  229. rocketwright-3.12.0/src/rocketwright/core/cleanup.py +127 -0
  230. rocketwright-3.12.0/src/rocketwright/core/contact_sheet.py +75 -0
  231. rocketwright-3.12.0/src/rocketwright/core/control.py +457 -0
  232. rocketwright-3.12.0/src/rocketwright/core/device_changes.py +300 -0
  233. rocketwright-3.12.0/src/rocketwright/core/device_logs.py +168 -0
  234. rocketwright-3.12.0/src/rocketwright/core/device_settings.py +112 -0
  235. rocketwright-3.12.0/src/rocketwright/core/devices.py +564 -0
  236. rocketwright-3.12.0/src/rocketwright/core/drivers.py +150 -0
  237. rocketwright-3.12.0/src/rocketwright/core/events.py +46 -0
  238. rocketwright-3.12.0/src/rocketwright/core/flows.py +353 -0
  239. rocketwright-3.12.0/src/rocketwright/core/frames.py +413 -0
  240. rocketwright-3.12.0/src/rocketwright/core/gestures.py +268 -0
  241. rocketwright-3.12.0/src/rocketwright/core/given.py +89 -0
  242. rocketwright-3.12.0/src/rocketwright/core/instance.py +244 -0
  243. rocketwright-3.12.0/src/rocketwright/core/login.py +252 -0
  244. rocketwright-3.12.0/src/rocketwright/core/mac_backend.py +168 -0
  245. rocketwright-3.12.0/src/rocketwright/core/manager.py +1536 -0
  246. rocketwright-3.12.0/src/rocketwright/core/masking.py +113 -0
  247. rocketwright-3.12.0/src/rocketwright/core/reaper.py +98 -0
  248. rocketwright-3.12.0/src/rocketwright/core/recording_sources.py +168 -0
  249. rocketwright-3.12.0/src/rocketwright/core/recordings.py +1101 -0
  250. rocketwright-3.12.0/src/rocketwright/core/refusals.py +275 -0
  251. rocketwright-3.12.0/src/rocketwright/core/render.py +97 -0
  252. rocketwright-3.12.0/src/rocketwright/core/runtime.py +600 -0
  253. rocketwright-3.12.0/src/rocketwright/core/screen_input.py +269 -0
  254. rocketwright-3.12.0/src/rocketwright/core/screen_relay.py +327 -0
  255. rocketwright-3.12.0/src/rocketwright/core/selections.py +194 -0
  256. rocketwright-3.12.0/src/rocketwright/core/signing.py +94 -0
  257. rocketwright-3.12.0/src/rocketwright/core/status.py +69 -0
  258. rocketwright-3.12.0/src/rocketwright/core/text_entry.py +126 -0
  259. rocketwright-3.12.0/src/rocketwright/core/text_overlay.py +71 -0
  260. rocketwright-3.12.0/src/rocketwright/core/tickets.py +43 -0
  261. rocketwright-3.12.0/src/rocketwright/core/touch.py +225 -0
  262. rocketwright-3.12.0/src/rocketwright/daemon/__init__.py +2 -0
  263. rocketwright-3.12.0/src/rocketwright/daemon/app.py +550 -0
  264. rocketwright-3.12.0/src/rocketwright/daemon/auth.py +210 -0
  265. rocketwright-3.12.0/src/rocketwright/daemon/confirmations.py +110 -0
  266. rocketwright-3.12.0/src/rocketwright/daemon/health.py +47 -0
  267. rocketwright-3.12.0/src/rocketwright/daemon/lease.py +76 -0
  268. rocketwright-3.12.0/src/rocketwright/daemon/lifecycle.py +105 -0
  269. rocketwright-3.12.0/src/rocketwright/daemon/passes.py +151 -0
  270. rocketwright-3.12.0/src/rocketwright/daemon/pauses.py +46 -0
  271. rocketwright-3.12.0/src/rocketwright/daemon/policy.py +39 -0
  272. rocketwright-3.12.0/src/rocketwright/daemon/scope_names.py +81 -0
  273. rocketwright-3.12.0/src/rocketwright/daemon/tokens.py +302 -0
  274. rocketwright-3.12.0/src/rocketwright/doctor/__init__.py +2 -0
  275. rocketwright-3.12.0/src/rocketwright/doctor/android.py +118 -0
  276. rocketwright-3.12.0/src/rocketwright/doctor/checks.py +548 -0
  277. rocketwright-3.12.0/src/rocketwright/doctor/flutter.py +32 -0
  278. rocketwright-3.12.0/src/rocketwright/doctor/macos.py +104 -0
  279. rocketwright-3.12.0/src/rocketwright/doctor/real_devices.py +250 -0
  280. rocketwright-3.12.0/src/rocketwright/doctor/report.py +59 -0
  281. rocketwright-3.12.0/src/rocketwright/doctor/tap.py +142 -0
  282. rocketwright-3.12.0/src/rocketwright/doctor/worktree.py +90 -0
  283. rocketwright-3.12.0/src/rocketwright/host_copy.py +436 -0
  284. rocketwright-3.12.0/src/rocketwright/hosting.py +221 -0
  285. rocketwright-3.12.0/src/rocketwright/legacy.py +72 -0
  286. rocketwright-3.12.0/src/rocketwright/mcp/__init__.py +3 -0
  287. rocketwright-3.12.0/src/rocketwright/mcp/launcher.py +685 -0
  288. rocketwright-3.12.0/src/rocketwright/mcp/relay.py +794 -0
  289. rocketwright-3.12.0/src/rocketwright/perception/__init__.py +9 -0
  290. rocketwright-3.12.0/src/rocketwright/perception/backtracking.py +276 -0
  291. rocketwright-3.12.0/src/rocketwright/perception/bar_names.py +49 -0
  292. rocketwright-3.12.0/src/rocketwright/perception/budget.py +66 -0
  293. rocketwright-3.12.0/src/rocketwright/perception/capture.py +36 -0
  294. rocketwright-3.12.0/src/rocketwright/perception/imagehash.py +81 -0
  295. rocketwright-3.12.0/src/rocketwright/perception/in_front.py +116 -0
  296. rocketwright-3.12.0/src/rocketwright/perception/model.py +92 -0
  297. rocketwright-3.12.0/src/rocketwright/perception/occlusion.py +393 -0
  298. rocketwright-3.12.0/src/rocketwright/perception/ocr.py +289 -0
  299. rocketwright-3.12.0/src/rocketwright/perception/orientation.py +177 -0
  300. rocketwright-3.12.0/src/rocketwright/perception/readers.py +488 -0
  301. rocketwright-3.12.0/src/rocketwright/perception/settle.py +241 -0
  302. rocketwright-3.12.0/src/rocketwright/perception/snapshot.py +500 -0
  303. rocketwright-3.12.0/src/rocketwright/perception/system_alert.py +87 -0
  304. rocketwright-3.12.0/src/rocketwright/perception/vision/__init__.py +3 -0
  305. rocketwright-3.12.0/src/rocketwright/perception/vision/helper.py +355 -0
  306. rocketwright-3.12.0/src/rocketwright/perception/vision/probe.py +24 -0
  307. rocketwright-3.12.0/src/rocketwright/perception/vision/text_recognizer.swift +144 -0
  308. rocketwright-3.12.0/src/rocketwright/perception/wait.py +236 -0
  309. rocketwright-3.12.0/src/rocketwright/platform/__init__.py +3 -0
  310. rocketwright-3.12.0/src/rocketwright/platform/adb.py +488 -0
  311. rocketwright-3.12.0/src/rocketwright/platform/android_sdk.py +171 -0
  312. rocketwright-3.12.0/src/rocketwright/platform/codesign.py +38 -0
  313. rocketwright-3.12.0/src/rocketwright/platform/developer_dir.py +72 -0
  314. rocketwright-3.12.0/src/rocketwright/platform/device_data.py +65 -0
  315. rocketwright-3.12.0/src/rocketwright/platform/devicectl.py +414 -0
  316. rocketwright-3.12.0/src/rocketwright/platform/emulator.py +268 -0
  317. rocketwright-3.12.0/src/rocketwright/platform/errors.py +15 -0
  318. rocketwright-3.12.0/src/rocketwright/platform/flutter.py +142 -0
  319. rocketwright-3.12.0/src/rocketwright/platform/git.py +63 -0
  320. rocketwright-3.12.0/src/rocketwright/platform/identifiers.py +84 -0
  321. rocketwright-3.12.0/src/rocketwright/platform/images.py +61 -0
  322. rocketwright-3.12.0/src/rocketwright/platform/java.py +71 -0
  323. rocketwright-3.12.0/src/rocketwright/platform/json_lines.py +266 -0
  324. rocketwright-3.12.0/src/rocketwright/platform/keyboard.py +110 -0
  325. rocketwright-3.12.0/src/rocketwright/platform/keychain.py +79 -0
  326. rocketwright-3.12.0/src/rocketwright/platform/keymap.py +95 -0
  327. rocketwright-3.12.0/src/rocketwright/platform/local_signing.py +241 -0
  328. rocketwright-3.12.0/src/rocketwright/platform/lockdown.py +192 -0
  329. rocketwright-3.12.0/src/rocketwright/platform/macos.py +221 -0
  330. rocketwright-3.12.0/src/rocketwright/platform/passwords.py +393 -0
  331. rocketwright-3.12.0/src/rocketwright/platform/process.py +118 -0
  332. rocketwright-3.12.0/src/rocketwright/platform/simctl.py +400 -0
  333. rocketwright-3.12.0/src/rocketwright/platform/swift.py +76 -0
  334. rocketwright-3.12.0/src/rocketwright/platform/swiftpm.py +52 -0
  335. rocketwright-3.12.0/src/rocketwright/platform/usbmux.py +205 -0
  336. rocketwright-3.12.0/src/rocketwright/platform/xcode.py +30 -0
  337. rocketwright-3.12.0/src/rocketwright/platform/xcrun.py +129 -0
  338. rocketwright-3.12.0/src/rocketwright/protocol/__init__.py +47 -0
  339. rocketwright-3.12.0/src/rocketwright/protocol/_generated.py +1249 -0
  340. rocketwright-3.12.0/src/rocketwright/protocol/messages.py +220 -0
  341. rocketwright-3.12.0/src/rocketwright/py.typed +0 -0
  342. rocketwright-3.12.0/src/rocketwright/scope.py +106 -0
  343. rocketwright-3.12.0/src/rocketwright/seams.py +255 -0
  344. rocketwright-3.12.0/src/rocketwright/server/__init__.py +3 -0
  345. rocketwright-3.12.0/src/rocketwright/server/agent_routes.py +54 -0
  346. rocketwright-3.12.0/src/rocketwright/server/envelope.py +28 -0
  347. rocketwright-3.12.0/src/rocketwright/server/http_routes.py +291 -0
  348. rocketwright-3.12.0/src/rocketwright/server/log_redaction.py +68 -0
  349. rocketwright-3.12.0/src/rocketwright/server/pages.py +86 -0
  350. rocketwright-3.12.0/src/rocketwright/server/security.py +161 -0
  351. rocketwright-3.12.0/src/rocketwright/server/settings_routes.py +189 -0
  352. rocketwright-3.12.0/src/rocketwright/server/settings_view.py +92 -0
  353. rocketwright-3.12.0/src/rocketwright/server/socket_routes.py +61 -0
  354. rocketwright-3.12.0/src/rocketwright/server/static/viewer/embed.html +14 -0
  355. rocketwright-3.12.0/src/rocketwright/server/static/viewer/index.html +14 -0
  356. rocketwright-3.12.0/src/rocketwright/server/static/viewer/start.js +61 -0
  357. rocketwright-3.12.0/src/rocketwright/storage/__init__.py +3 -0
  358. rocketwright-3.12.0/src/rocketwright/storage/app_support.py +116 -0
  359. rocketwright-3.12.0/src/rocketwright/storage/claims.py +147 -0
  360. rocketwright-3.12.0/src/rocketwright/storage/private.py +135 -0
  361. rocketwright-3.12.0/src/rocketwright/testing/__init__.py +2 -0
  362. rocketwright-3.12.0/src/rocketwright/testing/adb.py +422 -0
  363. rocketwright-3.12.0/src/rocketwright/testing/android_sdk.py +44 -0
  364. rocketwright-3.12.0/src/rocketwright/testing/app_sdk.py +211 -0
  365. rocketwright-3.12.0/src/rocketwright/testing/asgi.py +96 -0
  366. rocketwright-3.12.0/src/rocketwright/testing/checkouts.py +72 -0
  367. rocketwright-3.12.0/src/rocketwright/testing/contract.py +120 -0
  368. rocketwright-3.12.0/src/rocketwright/testing/daemon.py +94 -0
  369. rocketwright-3.12.0/src/rocketwright/testing/fakes.py +1115 -0
  370. rocketwright-3.12.0/src/rocketwright/testing/fixtures/README.md +6 -0
  371. rocketwright-3.12.0/src/rocketwright/testing/fixtures/android-am-start-bad.txt +3 -0
  372. rocketwright-3.12.0/src/rocketwright/testing/fixtures/android-am-start.txt +8 -0
  373. rocketwright-3.12.0/src/rocketwright/testing/fixtures/android-logcat-uid.txt +12 -0
  374. rocketwright-3.12.0/src/rocketwright/testing/fixtures/android-package-missing.txt +1 -0
  375. rocketwright-3.12.0/src/rocketwright/testing/fixtures/android-package.txt +45 -0
  376. rocketwright-3.12.0/src/rocketwright/testing/fixtures/android-pm-uid.txt +2 -0
  377. rocketwright-3.12.0/src/rocketwright/testing/fixtures/android-uiautomator-landscape.xml +1 -0
  378. rocketwright-3.12.0/src/rocketwright/testing/fixtures/android-uiautomator-search.xml +1 -0
  379. rocketwright-3.12.0/src/rocketwright/testing/fixtures/android-uiautomator-settings.xml +1 -0
  380. rocketwright-3.12.0/src/rocketwright/testing/fixtures/android-window-search.txt +493 -0
  381. rocketwright-3.12.0/src/rocketwright/testing/fixtures/android-window-settings.txt +491 -0
  382. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-alert-ios27.json +162 -0
  383. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-alert-ipad-landscape-left-ios26.json +551 -0
  384. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-alert-ipad-upside-down-ios26.json +491 -0
  385. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-alert-turned-left-ios26.json +457 -0
  386. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-alert-turned-right-ios26.json +491 -0
  387. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-alert-upright-ios26.json +469 -0
  388. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-app-sdk-alert.json +137 -0
  389. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-app-sdk-keyboard.json +1257 -0
  390. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-app-sdk-swiftui.json +340 -0
  391. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-app-sdk-tagged.json +237 -0
  392. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-app-sdk-uikit.json +340 -0
  393. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-files-navigation-bar-de-ios26.json +551 -0
  394. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-files-tab-bar-de-ios26.json +495 -0
  395. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-floating-button-ios26.json +541 -0
  396. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-health-tab-bar-ios26.json +488 -0
  397. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-home-complete.json +1 -0
  398. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-home-ios27.json +447 -0
  399. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-keyboard-ios27.json +1261 -0
  400. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-macos-chromium.json +5525 -0
  401. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-macos-webkit.json +5927 -0
  402. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-native-files-navigation-bar-de-ios26.json +427 -0
  403. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-probe-ios27.json +444 -0
  404. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-probe-ipad-upside-down-ios26.json +133 -0
  405. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-probe-rotated-left-ios26.json +133 -0
  406. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-safari-ios27.json +188 -0
  407. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-safari-typed.json +1 -0
  408. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-settings-back-button-ios26.json +395 -0
  409. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-settings-interactable.json +1 -0
  410. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-settings-ios27.json +425 -0
  411. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-settings-search-field-ios26.json +426 -0
  412. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-settings-toolbar-ja-ios26.json +397 -0
  413. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-settings-under-navigation-bar-ios26.json +533 -0
  414. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-turned-landscape-left-ios26.json +363 -0
  415. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-turned-landscape-right-ios26.json +363 -0
  416. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-turned-maps-alert-ios26.json +382 -0
  417. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-turned-portrait-ios26.json +370 -0
  418. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-turned-reminders-portrait-ios26.json +345 -0
  419. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-turned-safari-landscape-left-ios26.json +1166 -0
  420. rocketwright-3.12.0/src/rocketwright/testing/fixtures/ax-turned-safari-landscape-right-ios26.json +1166 -0
  421. rocketwright-3.12.0/src/rocketwright/testing/fixtures/development-certificate.pem +24 -0
  422. rocketwright-3.12.0/src/rocketwright/testing/fixtures/devicectl-appearance.json +46 -0
  423. rocketwright-3.12.0/src/rocketwright/testing/fixtures/devicectl-apps.json +59 -0
  424. rocketwright-3.12.0/src/rocketwright/testing/fixtures/devicectl-devices.json +1065 -0
  425. rocketwright-3.12.0/src/rocketwright/testing/fixtures/devicectl-displays.json +63 -0
  426. rocketwright-3.12.0/src/rocketwright/testing/fixtures/devicectl-launch-missing.json +58 -0
  427. rocketwright-3.12.0/src/rocketwright/testing/fixtures/devicectl-launch.json +53 -0
  428. rocketwright-3.12.0/src/rocketwright/testing/fixtures/devicectl-lock-state.json +27 -0
  429. rocketwright-3.12.0/src/rocketwright/testing/fixtures/devicectl-processes.json +39 -0
  430. rocketwright-3.12.0/src/rocketwright/testing/fixtures/devicectl-screenshot.json +31 -0
  431. rocketwright-3.12.0/src/rocketwright/testing/fixtures/flutter-build-ios-error.log +24 -0
  432. rocketwright-3.12.0/src/rocketwright/testing/fixtures/flutter-integration-results.json +20 -0
  433. rocketwright-3.12.0/src/rocketwright/testing/fixtures/flutter-unit-results.json +16 -0
  434. rocketwright-3.12.0/src/rocketwright/testing/fixtures/gradle-aapt-error.log +55 -0
  435. rocketwright-3.12.0/src/rocketwright/testing/fixtures/gradle-kotlin-error.log +51 -0
  436. rocketwright-3.12.0/src/rocketwright/testing/fixtures/gradle-output-metadata.json +21 -0
  437. rocketwright-3.12.0/src/rocketwright/testing/fixtures/gradle-test-failure.log +166 -0
  438. rocketwright-3.12.0/src/rocketwright/testing/fixtures/junit-android-failure.xml +48 -0
  439. rocketwright-3.12.0/src/rocketwright/testing/fixtures/mcpbridge-answers.json +183 -0
  440. rocketwright-3.12.0/src/rocketwright/testing/fixtures/mcpbridge-hierarchy-alert.txt +46 -0
  441. rocketwright-3.12.0/src/rocketwright/testing/fixtures/mcpbridge-hierarchy-home.txt +257 -0
  442. rocketwright-3.12.0/src/rocketwright/testing/fixtures/mcpbridge-hierarchy-keyboard.txt +92 -0
  443. rocketwright-3.12.0/src/rocketwright/testing/fixtures/mcpbridge-hierarchy-probe.txt +39 -0
  444. rocketwright-3.12.0/src/rocketwright/testing/fixtures/mcpbridge-hierarchy-safari.txt +77 -0
  445. rocketwright-3.12.0/src/rocketwright/testing/fixtures/mcpbridge-hierarchy-settings.txt +169 -0
  446. rocketwright-3.12.0/src/rocketwright/testing/fixtures/simctl-devices.json +73 -0
  447. rocketwright-3.12.0/src/rocketwright/testing/fixtures/simctl-runtimes.json +114 -0
  448. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcodebuild-list-names.json +20 -0
  449. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcodebuild-list.json +17 -0
  450. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcodebuild-settings-test.json +55 -0
  451. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcodebuild-settings.json +13 -0
  452. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcodebuild-test-plans-none.json +3 -0
  453. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcodebuild-test-plans.json +10 -0
  454. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcresult-build-broken.json +32 -0
  455. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcresult-build-ok.json +27 -0
  456. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcresult-build-results-unbuilt.json +36 -0
  457. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcresult-test-summary-retries.json +56 -0
  458. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcresult-test-summary-swift-testing-xcode27.json +63 -0
  459. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcresult-test-summary-swift-testing.json +60 -0
  460. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcresult-test-summary-unbuilt.json +24 -0
  461. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcresult-test-summary.json +49 -0
  462. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcresult-test-tests-retries.json +165 -0
  463. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcresult-test-tests-swift-testing-xcode27.json +135 -0
  464. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcresult-test-tests-swift-testing.json +125 -0
  465. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcresult-test-tests.json +93 -0
  466. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcscheme-staging.xcscheme +91 -0
  467. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xcscheme-test-plans.xcscheme +86 -0
  468. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xctestplan-everything.xctestplan +38 -0
  469. rocketwright-3.12.0/src/rocketwright/testing/fixtures/xctestplan-units-only.xctestplan +42 -0
  470. rocketwright-3.12.0/src/rocketwright/testing/flutter.py +277 -0
  471. rocketwright-3.12.0/src/rocketwright/testing/gradle.py +123 -0
  472. rocketwright-3.12.0/src/rocketwright/testing/guards.py +190 -0
  473. rocketwright-3.12.0/src/rocketwright/testing/macos.py +92 -0
  474. rocketwright-3.12.0/src/rocketwright/testing/native.py +243 -0
  475. rocketwright-3.12.0/src/rocketwright/testing/pictures.py +58 -0
  476. rocketwright-3.12.0/src/rocketwright/testing/recording.py +67 -0
  477. rocketwright-3.12.0/src/rocketwright/testing/results.py +16 -0
  478. rocketwright-3.12.0/src/rocketwright/testing/rig.py +225 -0
  479. rocketwright-3.12.0/src/rocketwright/testing/scrcpy.py +148 -0
  480. rocketwright-3.12.0/src/rocketwright/testing/usbmux.py +236 -0
  481. rocketwright-3.12.0/src/rocketwright/testing/vision.py +86 -0
  482. rocketwright-3.12.0/src/rocketwright/testing/wda.py +278 -0
  483. rocketwright-3.12.0/src/rocketwright/tools/__init__.py +2 -0
  484. rocketwright-3.12.0/src/rocketwright/tools/act.py +86 -0
  485. rocketwright-3.12.0/src/rocketwright/tools/app.py +209 -0
  486. rocketwright-3.12.0/src/rocketwright/tools/context.py +232 -0
  487. rocketwright-3.12.0/src/rocketwright/tools/device.py +510 -0
  488. rocketwright-3.12.0/src/rocketwright/tools/flow.py +356 -0
  489. rocketwright-3.12.0/src/rocketwright/tools/login.py +281 -0
  490. rocketwright-3.12.0/src/rocketwright/tools/matrix.py +397 -0
  491. rocketwright-3.12.0/src/rocketwright/tools/record.py +184 -0
  492. rocketwright-3.12.0/src/rocketwright/tools/registry.py +116 -0
  493. rocketwright-3.12.0/src/rocketwright/tools/results.py +48 -0
  494. rocketwright-3.12.0/src/rocketwright/tools/schemas.py +648 -0
  495. rocketwright-3.12.0/src/rocketwright/tools/screenshot.py +158 -0
  496. rocketwright-3.12.0/src/rocketwright/tools/snapshot.py +36 -0
  497. rocketwright-3.12.0/src/rocketwright/validation.py +46 -0
  498. rocketwright-3.12.0/tests/unit/protocol/test_messages.py +139 -0
  499. rocketwright-3.12.0/viewer/README.md +60 -0
@@ -0,0 +1,41 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ .venv/
5
+ /build/
6
+ dist/
7
+ *.egg-info/
8
+ .pytest_cache/
9
+ .mypy_cache/
10
+ .ruff_cache/
11
+ .coverage
12
+ .coverage.*
13
+ coverage.json
14
+ coverage.xml
15
+ htmlcov/
16
+
17
+ # Swift
18
+ helper/.build/
19
+ helper/.swiftpm/
20
+ /.build/
21
+ /.swiftpm/
22
+ xcuserdata/
23
+ *.xcresult
24
+
25
+ # Node
26
+ node_modules/
27
+ viewer/dist/
28
+ viewer/coverage/
29
+ *.tgz
30
+
31
+ # The committed standalone viewer bundle lives in src/rocketwright/server/static/viewer/ and is not ignored.
32
+
33
+ # macOS and editors
34
+ .DS_Store
35
+ .idea/
36
+ .vscode/
37
+ *.swp
38
+ *.profraw
39
+
40
+ # Test fixtures that are build logs: kept, whatever a global ignore of *.log says.
41
+ !src/rocketwright/testing/fixtures/*.log
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,20 @@
1
+ Rocketwright
2
+ Copyright 2026 Soflution Ltd
3
+
4
+ This product includes software from SimMirror, Copyright 2026 Andrew Kochulab,
5
+ licensed under the Apache License, Version 2.0. Soflution Ltd has modified it.
6
+
7
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
8
+
9
+ It includes third-party material under its own licenses; see THIRD_PARTY_LICENSES.md:
10
+ - idb_companion's gRPC protocol definition (facebook/idb), MIT License,
11
+ Copyright (c) Meta Platforms, Inc. and affiliates.
12
+ - In the native helper, simulator input and accessibility bridges written after facebook/idb's
13
+ FBSimulatorControl (MIT License, Copyright (c) Meta Platforms, Inc. and affiliates) and
14
+ EvanBacon/serve-sim (Apache License 2.0, Copyright 2026 Evan Bacon).
15
+ - Icon paths from Lucide (lucide.dev), ISC License,
16
+ Copyright (c) Lucide Contributors 2022; portions Copyright (c) Cole Bemis 2013-2022 (Feather, MIT).
17
+
18
+ Rocketwright is an independent project. It is not affiliated with, endorsed by or sponsored by Apple Inc.,
19
+ Anthropic PBC or Meta Platforms, Inc. iOS, iPhone, Xcode and Simulator are trademarks of Apple Inc.
20
+ Claude and Claude Code are trademarks of Anthropic PBC.
@@ -0,0 +1,324 @@
1
+ Metadata-Version: 2.5
2
+ Name: rocketwright
3
+ Version: 3.12.0
4
+ Summary: Mirror and drive iOS Simulators, real iPhones, Android devices and macOS apps from Claude Code, CLI agents and the browser.
5
+ Project-URL: Homepage, https://github.com/Soflutionltd/rocketwright
6
+ Project-URL: Documentation, https://github.com/Soflutionltd/rocketwright/tree/main/docs
7
+ Project-URL: Issues, https://github.com/Soflutionltd/rocketwright/issues
8
+ Project-URL: Changelog, https://github.com/Soflutionltd/rocketwright/blob/main/CHANGELOG.md
9
+ Author: Soflution Ltd
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ License-File: THIRD_PARTY_LICENSES.md
14
+ Keywords: ai-agents,claude-code,ios-simulator,mcp,screen-mirroring,simulator,ui-automation
15
+ Classifier: Development Status :: 3 - Alpha
16
+ Classifier: Environment :: MacOS X
17
+ Classifier: Framework :: FastAPI
18
+ Classifier: Intended Audience :: Developers
19
+ Classifier: Operating System :: MacOS
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3 :: Only
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Topic :: Software Development :: Testing
27
+ Classifier: Typing :: Typed
28
+ Requires-Python: >=3.10
29
+ Requires-Dist: fastapi<1,>=0.115
30
+ Requires-Dist: grpclib<0.5,>=0.4.9
31
+ Requires-Dist: pillow<13,>=11.1
32
+ Requires-Dist: protobuf<8,>=7.36
33
+ Requires-Dist: tomli>=2; python_version < '3.11'
34
+ Requires-Dist: tomlkit>=0.13
35
+ Requires-Dist: uvicorn[standard]>=0.35
36
+ Description-Content-Type: text/markdown
37
+
38
+ <!-- mcp-name: io.github.Soflutionltd/rocketwright -->
39
+
40
+ <h1 align="center">
41
+ <picture>
42
+ <source media="(prefers-color-scheme: dark)" srcset="docs/media/brand/rocketwright-logo-dark.svg">
43
+ <img src="docs/media/brand/rocketwright-logo.svg" alt="Rocketwright" width="520">
44
+ </picture>
45
+ </h1>
46
+
47
+ **Playwright stops at the browser. Rocketwright puts the whole phone in your AI agent's hands.**
48
+
49
+ iOS Simulators, real iPhones and iPads, Android emulators and phones, and macOS apps -- driven by Claude Code, Codex,
50
+ Cursor or any MCP agent, watched live in a browser tab, at the speed of a few milliseconds a step. One tool, every
51
+ device, no glue.
52
+
53
+ *Formerly Simtrail: the `simtrail` command still works, and an existing install is taken up as it is.*
54
+
55
+ [![CI](https://github.com/Soflutionltd/rocketwright/actions/workflows/ci.yml/badge.svg)](https://github.com/Soflutionltd/rocketwright/actions/workflows/ci.yml)
56
+ [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
57
+ [![Release](https://img.shields.io/github/v/release/Soflutionltd/rocketwright?include_prereleases&sort=semver)](https://github.com/Soflutionltd/rocketwright/releases)
58
+
59
+ <img src="docs/media/hero.gif" width="100%"
60
+ alt="A Claude Code session driving a calendar app on an iPhone 17 simulator in the viewer: it opens an event, scrolls
61
+ through its notes, then fills in and saves a new one, the agent's cursor gliding to each spot before it taps">
62
+
63
+ ## Fast where an agent feels it
64
+
65
+ Measured on an Apple Silicon Mac with an iOS 26.5 simulator, Rocketwright 3.11 (November 2026):
66
+
67
+ | What the agent does | Time | Calls |
68
+ |---|---|---|
69
+ | Act, then read the screen that resulted | **41 ms** | 1 -- the answer carries the new screen |
70
+ | First screen of a session | **57 ms** | the device is attached while the agent is still thinking |
71
+ | Launch an app and read its real first screen | **~2 s** | 1 -- not the splash screen, the app |
72
+ | A new project's own simulator, ready | **17 s** | copied from a booted template instead of 31 s from blank |
73
+ | Hot reload of a Flutter change on the device | **~1 s** | each compile error as `file:line` |
74
+ | The viewer, after the daemon restarts | **4.4 s** | back by itself, no click |
75
+
76
+ Snapshots are a few lines of text -- `e2 button "General" (201,319)` -- instead of screenshots, so an agent spends a
77
+ fraction of the tokens to read a screen, and reaches for a picture only when a question is visual.
78
+
79
+ ## Everything, in one tool
80
+
81
+ | | Rocketwright | Playwright | Maestro | mobile-mcp |
82
+ |---|:---:|:---:|:---:|:---:|
83
+ | iOS Simulator apps | ✅ | ❌ browsers only | ✅ | ✅ |
84
+ | Real iPhones and iPads | ✅ | ❌ | ❌ not yet supported | ✅ |
85
+ | Android emulators and phones | ✅ | Chrome and WebView only, experimental | ✅ | ✅ |
86
+ | macOS apps | ✅ | ❌ | -- | -- |
87
+ | Live viewer in any browser tab, with the agent's cursor | ✅ | -- | ✅ | ✅ |
88
+ | Builds, tests and installs (Xcode, Gradle, Flutter hot reload) | ✅ | -- | -- | -- |
89
+ | Signs in from 1Password, Bitwarden or the Keychain; the agent never sees the password | ✅ | -- | -- | -- |
90
+ | Reads a game or a canvas from its pixels | ✅ | -- | -- | -- |
91
+ | Each project its own simulator; several agents at once, never on each other's device | ✅ | -- | -- | -- |
92
+ | Records any flow as an MP4 or a GIF, every touch drawn in | ✅ | ✅ video | -- | -- |
93
+
94
+ ✅ documented · ❌ documented as unsupported · -- not documented. Checked against each project's own documentation on
95
+ 26 November 2026: [Playwright](https://playwright.dev/docs/api/class-android),
96
+ [Maestro](https://github.com/mobile-dev-inc/maestro), [mobile-mcp](https://github.com/mobile-next/mobile-mcp).
97
+ Something out of date? Open an issue and we fix it.
98
+
99
+ ## Why Rocketwright
100
+
101
+ - **See the simulator anywhere.** A live H.264 or JPEG stream in a Chrome tab, an iframe or a `<rocket-wright>` web
102
+ component, with touch, scrolling, typing, hardware buttons and light and dark mode.
103
+ - **Watch what the agent does.** Every agent gesture is announced before it lands, and the viewer's cursor glides to
104
+ the spot first -- so you can follow along, and step in: an agent waits for your hand to be still.
105
+ - **Spend fewer tokens.** Agents read accessibility snapshots with stable element refs and diffs between screens, act
106
+ in batches with waits, and reach for a screenshot only when a question is visual.
107
+ - **Read screens accessibility cannot.** A game or a canvas reads from its pixels, and an app under development can
108
+ share its own views, so icon-only buttons and hand-drawn controls read by name.
109
+ - **Test on a real iPhone.** Plug it in and it sits beside the simulators: live over the cable at up to 60 fps, touched
110
+ and typed on from the browser or by an agent, and given back everything Rocketwright changed on it.
111
+ - **Type like a person, on any keyboard.** Text goes in as the real keys of the Mac's own layout -- AZERTY, QWERTZ,
112
+ US -- with no paste prompt, on iOS 26 and 27.
113
+ - **Show what happened.** Record a flow as an MP4 or a GIF with every touch drawn in -- at 60 or 120 frames a second
114
+ for a short animation, or only the part of the screen that matters -- and put it in a pull request.
115
+
116
+ ## Install
117
+
118
+ **Claude Code**, with the plugin (tools, a skill that teaches snapshot-first use, and `/rocketwright:open`):
119
+
120
+ ```
121
+ /plugin marketplace add Soflutionltd/rocketwright
122
+ /plugin install rocketwright@rocketwright
123
+ ```
124
+
125
+ **Any MCP client**, as a stdio server:
126
+
127
+ ```sh
128
+ claude mcp add rocketwright -- uvx --from git+https://github.com/Soflutionltd/rocketwright rocketwright mcp
129
+ ```
130
+
131
+ Configurations for [Codex](docs/clients/codex.md), [Cursor](docs/clients/cursor.md) and
132
+ [other clients](docs/clients/other-mcp.md).
133
+ The plugin includes four [workflow skills](docs/clients/skills.md); the release also packages them for Codex and Cursor.
134
+
135
+ **The command**, for `rocketwright open`, `doctor` and the rest:
136
+
137
+ ```sh
138
+ uv tool install git+https://github.com/Soflutionltd/rocketwright
139
+ ```
140
+
141
+ **The viewer library**, for your own pages, is in [`viewer/`](viewer/README.md).
142
+
143
+ **Requirements:** an Apple Silicon Mac, Xcode 26 or later, and [uv](https://docs.astral.sh/uv/). Nothing
144
+ else: Rocketwright drives a simulator with its own helper, which comes in the package. A real iPhone needs Developer Mode,
145
+ and an Apple development team to be touched. Details in [Installation](docs/installation.md).
146
+
147
+ ## Quickstart
148
+
149
+ ```sh
150
+ rocketwright doctor # check this Mac, ending with a real tap on a simulator
151
+ rocketwright open # this project's simulator, live in a browser tab
152
+ ```
153
+
154
+ Then ask your agent:
155
+
156
+ > Open Settings → General → About and tell me which iOS version this simulator runs. Use sim_snapshot rather than
157
+ > screenshots.
158
+
159
+ With an iPhone plugged in, unlocked and in Developer Mode:
160
+
161
+ > Switch to my iPhone, build and run the app on it, walk through sign-up and record it as a GIF.
162
+
163
+ The first time, press **Set up touch** in the viewer: it builds WebDriverAgent with your project's own signing team.
164
+
165
+ [Getting started](docs/getting-started.md) explains what happens along the way.
166
+
167
+ ## Features
168
+
169
+ **Live viewer.** H.264 through WebCodecs where the page can decode it, JPEG otherwise, negotiated per connection.
170
+ Touch, drag, scroll, typing and paste, Home and Lock, light and dark, and a device picker. It reconnects by itself
171
+ after a blip and says plainly when the simulator is off. Its menus, toolbar, settings panel and messages are in
172
+ English.
173
+
174
+ **Agent cursor.** Every agent gesture -- tap, long press, swipe, drag, typing -- reaches the viewer before it lands, and
175
+ the viewer's own pointer glides there first (`agent.cursor_lead_ms`), labelled with what the agent is doing --
176
+ Tapping “Add”, Reading the screen, Thinking…, Building. After a real break it waits in a corner. Never the Mac's pointer. On a macOS app the same
177
+ pointer is drawn over the app's own window on the Mac too, click-through and out of every capture.
178
+
179
+ **Screen understanding.** A snapshot is a few lines -- `e2 button "General" (201,319)` -- with refs that stay with their
180
+ elements across scrolls, a digest, and diffs. `sim_act` plays up to 20 steps in one call and waits for text, its
181
+ absence, or the screen to settle -- past a spinner or a pulsing dot that never stops. An app turned to landscape is
182
+ read and touched in its own points, `sim_device rotate` turns a simulator, and a tap on what a tab bar, a toolbar or
183
+ the keyboard covers is refused with how to reach it. See [Screen understanding](docs/screen-understanding.md).
184
+
185
+ **Observe mode.** For a walkthrough on an account the agent must not change, `agent.observe` refuses a tap on what
186
+ reads like Delete, Save, Send or Sign out -- in English and a dozen other languages, or styled destructive by its app --
187
+ unless the call confirms it. See [Security](docs/security.md).
188
+
189
+ **Reading pixels.** A screen whose accessibility says nothing -- a game, a canvas, an app still loading -- reads as the
190
+ text macOS's Vision finds in it, with refs to tap and text to wait for, and the viewer can outline what was read
191
+ (`perception.ocr`). See [Read from pixels](docs/screen-understanding.md#read-from-pixels).
192
+
193
+ **App SDK.** An app under development can link **RocketwrightKit**, a small Swift package, and call `Rocketwright.start()`:
194
+ in a Debug build on the simulator it shares its own UIKit and SwiftUI views, so an icon-only button, a card with a tap
195
+ gesture or a hand-drawn control reads by name, and `.rocketwright("Settings")` names a SwiftUI view. Optional, and nothing
196
+ of it is in a Release build. See [The app SDK](docs/app-sdk.md).
197
+
198
+ **Real devices.** A cabled iPhone or iPad shows up beside the simulators, and an agent can switch to it
199
+ (`sim_device list` and `choose`): its live screen over the cable; its apps, logs, look and
200
+ location through Xcode's `devicectl`; and touching, typing and its element tree through WebDriverAgent, set up once
201
+ with a click and signed by your project's own team -- a tap lands in about a third of a second. It is reached only over
202
+ the cable, and what Rocketwright changes on it is put back when it is let go. See [Real devices](docs/real-devices.md).
203
+
204
+ **Android.** Android emulators and phones sit beside the simulators, with the same viewer, cursor and tools: adb
205
+ lists, starts and drives them, scrcpy's server -- set up once with a click -- shows the screen live, UI Automator reads
206
+ it for snapshots, and `sim_build_run` and `sim_test` build a Gradle project with its own wrapper. A phone is never
207
+ started or shut down, and what Rocketwright changes on it is put back. See [Android](docs/android.md).
208
+
209
+ **Flutter.** A Flutter app is built, tested and installed by the same tools -- `flutter build`, `flutter test` and
210
+ its integration tests on the device, with a flavor and dart-defines kept off the command line -- and `sim_flutter`
211
+ keeps it running for hot reload: each saved change on the device in about a second, or each compile error as
212
+ `file:line` while the app keeps the code it had. See [Flutter](docs/flutter.md).
213
+
214
+ **Recording.** The viewer's Record button, `sim_record` or `rocketwright record` keep a device's screen as an MP4, a GIF
215
+ or both, with each touch drawn where it landed and a 9:41 status bar, and `preset: "pr"` keeps one small enough for
216
+ a pull request. See [Recording](docs/recording.md).
217
+
218
+ **Replayable flows.** `sim_flow save` keeps a walkthrough under a name -- steps and waits exactly as `sim_act` takes
219
+ them -- as a readable JSON file in the project's state folder, and `sim_flow run` plays it again in one call, by any
220
+ agent: each ref is found again by what it named, long flows are split into calls of 20 steps, and `{{email}}`-style
221
+ variables are given at run time. A step that types into a secure field must type a variable, so a password is never
222
+ kept, and the answer says each value as its name.
223
+
224
+ **Device matrix.** `sim_matrix` captures the same screen on several devices -- UDIDs, or presets such as
225
+ `small_iphone`, `large_iphone`, `ipad` and `android` -- in light and dark and at a chosen text size, launching the app
226
+ and playing a saved flow first. Each screenshot is saved in one folder beside a captioned contact sheet, every device
227
+ gets back the look it had, and one another agent holds is skipped unless the call steals it.
228
+
229
+ **Connectors.** Rocketwright's own native helper gives full control with nothing to install; idb_companion still can,
230
+ and the simctl connector mirrors the screen view-only when neither is there, and says why. `auto` uses the fastest that
231
+ works and falls back when one fails. More connectors plug in through an entry point. See
232
+ [Connectors](docs/connectors.md).
233
+
234
+ **Embedding.** An [iframe](docs/embedding/iframe.md) with a one-shot ticket, the
235
+ [`<rocketwright>` element](docs/embedding/web-component.md) themed with CSS custom properties, or Rocketwright
236
+ [inside a Python application](docs/embedding/python-fastapi.md) with its own sign-in.
237
+
238
+ **Settings panel.** `rocketwright open --settings` puts every setting a click away in the viewer, a tab per section,
239
+ saved for one project or all of them and applied before it says so. Settings that decide what runs or who may reach
240
+ the daemon wait for a code from `rocketwright settings confirm`. See [The settings panel](docs/settings.md).
241
+
242
+ **Doctor.** Checks Xcode, its Simulator frameworks, runtimes, the native helper and idb_companion, Device Hub and the
243
+ desktop session, the text reader and an app's shared hierarchy, then proves a tap reaches a simulator. See [the doctor](docs/doctor.md).
244
+
245
+ **Security.** Loopback only, a Host allowlist, exact Origin checks, CORS and framing only for origins you list, hashed
246
+ scoped tokens, and one-shot codes in URL fragments. See [Security](docs/security.md).
247
+
248
+ **Sign-in from a password manager.** `sim_login` signs an app in with a login saved in 1Password -- or Bitwarden, or
249
+ a program of yours -- searching every vault, for the account the person named and no other, and the agent never sees
250
+ the password: it is typed straight into the app's secure field, masked in every answer and in the viewer, and refused
251
+ in observe mode, while recording and on real devices unless allowed. Off until `login.sources` names a password manager.
252
+ See [Signing in](docs/login.md).
253
+
254
+ **Build and test.** `sim_build_run` and `sim_test` build with xcodebuild for the agent's simulator, install and
255
+ launch, and answer with only what failed and where -- each failing test named so it can be run again alone, and on
256
+ another simulator when asked -- and with the folder, branch and commit they built. They build the git worktree the
257
+ agent works in, with the configuration its scheme runs. Off by default, since they run commands: `rocketwright config
258
+ set build.tools true`.
259
+
260
+ ## Measure the token cost
261
+
262
+ `benchmarks/tool_budget.py` calls each read-only tool through the same MCP relay a client uses and prints each answer's
263
+ bytes, estimated tokens and latency on your own screens; see [the token budget example](examples/token-budget/).
264
+ Measured with Rocketwright 2.4.0 on an iOS simulator using the native connector, showing Settings → General:
265
+ 30 calls per tool after a separate initial round and 3 warmup rounds (2026-10-29). Host and device details are omitted
266
+ from the public report for privacy.
267
+
268
+ | Call | Tool | Bytes | Tokens (est.) | p50 ms | p95 ms |
269
+ |---|---|---:|---:|---:|---:|
270
+ | device info | `sim_device` | 275 | 49 | 260.1 | 282.9 |
271
+ | snapshot, full | `sim_snapshot` | 561 | 112 | 74.3 | 83.3 |
272
+ | snapshot, diff of an unchanged screen | `sim_snapshot` | 83 | 5 | 66.5 | 73.5 |
273
+ | screenshot, 400 px wide | `sim_screenshot` | 55958 | 469 | 15.5 | 17.0 |
274
+ | screenshot, 1200 px wide | `sim_screenshot` | 251484 | 4181 | 24.2 | 25.8 |
275
+
276
+ On a physical iOS device over USB with WebDriverAgent, the same 30-round run measured 199 estimated tokens for a
277
+ full snapshot (p50 859.1 ms), 5 for an unchanged-screen diff (817.9 ms), and 469 for a 400-pixel screenshot (31.4 ms).
278
+
279
+ Bytes are the whole answer, an image's base64 included; tokens are estimates (text at about 4 characters a token,
280
+ an image at about 750 pixels a token), not billed usage or whole-task costs. All measured calls succeeded. See the
281
+ [performance report](docs/performance.md) for real-iPhone results, initial-call timings, raw samples and the older
282
+ baseline. Different connectors and environments make these separate observations, not a before/after speedup claim.
283
+
284
+ ## Compatibility
285
+
286
+ | | Expected to work |
287
+ |---|---|
288
+ | macOS | 26 (15 with Xcode 16.4, view-only) |
289
+ | Xcode | 26 and 27 |
290
+ | Connectors | native helper (full control), idb_companion 1.5 (full control), simctl (view-only) |
291
+ | Real devices | an iPhone or iPad that Xcode's `devicectl` reaches, by cable (view-only without WebDriverAgent) |
292
+ | Android | emulators and phones adb reaches, with the Android SDK; scrcpy 5.0.1 for the live screen; Gradle builds |
293
+ | App SDK | Debug builds on the iOS Simulator, iOS 16 or later |
294
+ | Clients | Claude Code, Codex, Cursor, any stdio MCP client |
295
+ | Browsers | Chrome, Safari, Firefox, Edge |
296
+
297
+ Rows checked on real hardware are marked verified, with the date, in [Compatibility](docs/compatibility.md).
298
+
299
+ From 1.0 the tools, the protocol, the embedding API, the viewer package, settings and the command line are held to
300
+ [what Rocketwright promises not to break](docs/stability.md): a release adds, and never breaks; 2.0 broke nothing.
301
+ Connectors are the exception, and pin a minor version.
302
+
303
+ ## Documentation
304
+
305
+ [Everything](docs/README.md): getting started, clients, embedding, screen understanding, connectors, security,
306
+ architecture, and the reference for [tools](docs/reference/tools.md), [configuration](docs/reference/configuration.md),
307
+ the [command line](docs/reference/cli.md) and the [protocol](docs/reference/protocol.md).
308
+
309
+ ## Roadmap
310
+
311
+ How Rocketwright relates to other tools is in [Comparison](docs/comparison.md).
312
+
313
+ ## Contributing
314
+
315
+ Contributions are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) and the [Code of Conduct](CODE_OF_CONDUCT.md); AI
316
+ coding agents read [AGENTS.md](AGENTS.md). Report security issues privately as described in [SECURITY.md](SECURITY.md).
317
+ Questions go to [Discussions](https://github.com/Soflutionltd/rocketwright/discussions).
318
+
319
+ ## License
320
+
321
+ [Apache-2.0](LICENSE). See [NOTICE](NOTICE) and [THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md).
322
+
323
+ Rocketwright is an independent project, not affiliated with Apple or Anthropic. iOS, iPhone, Xcode and Simulator are
324
+ trademarks of Apple Inc.; Claude and Claude Code are trademarks of Anthropic PBC.