sim-mirror 3.0.3__tar.gz → 3.1.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.
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/PKG-INFO +3 -3
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/README.md +2 -2
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/claude-code-cli/README.md +2 -2
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/codex/README.md +1 -1
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/cursor/README.md +1 -1
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/fastapi-embed/README.md +1 -1
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/Wire.swift +1 -1
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/app-sdk/v1/input.schema.json +19 -2
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/app-sdk/v1/listing.schema.json +1 -1
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/sdk/cef/README.md +2 -2
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/_version.py +1 -1
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/android/adb_input.py +6 -1
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/android/keys.py +6 -2
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/iphone/wda_roles.py +3 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/mac/connector.py +18 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/actions.py +191 -23
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/gestures.py +88 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/macos.py +13 -1
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/tools/schemas.py +13 -2
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/.gitignore +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/LICENSE +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/NOTICE +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/THIRD_PARTY_LICENSES.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/docs/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/docs/media/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/android-app/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/cef-app-sdk/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/custom-connector/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/embed-host/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/iframe/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/mac-app-sdk/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/tauri-app-sdk/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/token-budget/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/examples/web-component/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Package.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/Accessibility.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/Arguments.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/Capture.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/FrameScheduler.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/Input.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/JSON.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/MacWindow.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/Orientation.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/Recording.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/Requests.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/Rotation.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/Screen.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/Server.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperCore/Video.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/AccessibilityReader.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/CaptureDevice.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/Disclaimed.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/Framebuffer.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/Frameworks.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/H264Stream.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/HIDTransports.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/MacAccessibility.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/MacPermissions.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/MacWindowCapture.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/MacWindowDevice.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/Pictures.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/PixelSource.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/RecordingRenderer.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/ScreenFeed.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/SimDeviceHandle.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/SimulatorDevice.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/UnixSocket.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/UsbCapture.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/HelperPlatform/Warming.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/ObjCGuard/ObjCGuard.m +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/ObjCGuard/include/ObjCGuard.h +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Sources/sim-mirror-helper/main.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Support/Info.plist +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Tests/Fixtures/wire-vectors.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Tests/HelperCoreTests/AccessibilityTests.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Tests/HelperCoreTests/ArgumentsTests.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Tests/HelperCoreTests/CaptureTests.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Tests/HelperCoreTests/InputTests.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Tests/HelperCoreTests/MacWindowTests.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Tests/HelperCoreTests/OrientationTests.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Tests/HelperCoreTests/PictureTests.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Tests/HelperCoreTests/RecordingTests.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Tests/HelperCoreTests/RotationTests.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Tests/HelperCoreTests/ServerTests.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/helper/Tests/HelperCoreTests/WireTests.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/app-sdk/v1/examples/error-inactive.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/app-sdk/v1/examples/error-unauthorized.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/app-sdk/v1/examples/hierarchy-alert.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/app-sdk/v1/examples/hierarchy-keyboard.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/app-sdk/v1/examples/hierarchy-swiftui.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/app-sdk/v1/examples/hierarchy-tagged.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/app-sdk/v1/examples/hierarchy-uikit.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/app-sdk/v1/examples/listing.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/app-sdk/v1/hierarchy.schema.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/v1/agent-event.schema.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/v1/client-input.schema.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/v1/close-codes.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/v1/common.schema.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/v1/constants.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/v1/hello.schema.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/v1/http.schema.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/v1/input-refused.schema.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/v1/screen-text.schema.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/v1/settings.schema.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/v1/status.schema.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/protocol/v1/stream.schema.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/pyproject.toml +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/scripts/hatch_build.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/sdk/web/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/__main__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/api.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/checkouts.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/destination.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/gradle.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/gradle_log.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/junit.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/project_files.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/provider.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/runner.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/schemes.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/source.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/stamp.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/wda.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/xcodebuild.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/xcresult.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/build/xctestplan.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/android.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/app_command.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/config_command.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/context.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/device_command.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/devices.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/doctor.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/helper.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/main.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/mcp.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/open_viewer.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/record.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/serve.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/settings_command.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/stop.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/tokens.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/tools.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/version.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/wda.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/cli/xcode.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/config/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/config/discovery.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/config/env.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/config/model.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/config/observe_languages.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/config/provenance.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/config/schema.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/config/settings_store.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/config/toml_source.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/config/writer.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/android/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/android/connector.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/android/geometry.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/android/scrcpy.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/android/scrcpy_roles.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/android/scrcpy_source.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/android/screen.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/android/uiautomator.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/app/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/app/client.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/app/discovery.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/app/document.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/app/errors.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/app/merge.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/app/reader.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/app/wire.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/base.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/helper_process.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/idb/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/idb/companion.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/idb/connector.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/idb/engine.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/idb/frameworks.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/idb/orientation.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/idb/proto/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/idb/proto/idb.proto +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/idb/proto/idb_grpc.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/idb/proto/idb_pb2.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/iphone/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/iphone/cable.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/iphone/capture.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/iphone/connector.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/iphone/screen.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/iphone/wda.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/iphone/wda_client.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/iphone/wda_setup.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/iphone/wda_source.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/mac/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/mcpbridge/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/mcpbridge/client.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/mcpbridge/connector.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/mcpbridge/hierarchy.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/mcpbridge/merge.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/mcpbridge/reader.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/native/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/native/client.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/native/connector.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/native/helper.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/native/wire.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/registry.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/simctl/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/simctl/capture.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/connectors/simctl/connector.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/android_backend.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/android_control.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/android_devices.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/availability.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/backends.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/control.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/device_changes.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/device_logs.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/device_settings.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/devices.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/drivers.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/events.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/frames.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/instance.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/mac_backend.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/manager.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/reaper.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/recording_sources.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/recordings.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/refusals.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/render.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/runtime.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/screen_input.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/screen_relay.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/signing.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/status.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/text_entry.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/text_overlay.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/tickets.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/core/touch.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/daemon/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/daemon/app.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/daemon/auth.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/daemon/confirmations.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/daemon/health.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/daemon/lease.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/daemon/lifecycle.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/daemon/passes.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/daemon/pauses.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/daemon/policy.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/daemon/tokens.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/doctor/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/doctor/android.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/doctor/checks.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/doctor/macos.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/doctor/real_devices.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/doctor/report.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/doctor/tap.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/doctor/worktree.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/host_copy.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/hosting.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/mcp/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/mcp/launcher.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/mcp/relay.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/backtracking.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/bar_names.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/budget.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/imagehash.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/in_front.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/model.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/occlusion.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/ocr.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/orientation.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/readers.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/settle.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/snapshot.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/system_alert.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/vision/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/vision/helper.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/vision/probe.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/vision/text_recognizer.swift +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/perception/wait.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/adb.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/android_sdk.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/codesign.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/developer_dir.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/device_data.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/devicectl.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/emulator.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/errors.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/git.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/identifiers.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/images.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/java.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/json_lines.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/keyboard.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/keychain.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/lockdown.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/macos.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/process.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/simctl.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/swift.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/swiftpm.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/usbmux.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/xcode.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/platform/xcrun.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/protocol/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/protocol/_generated.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/protocol/messages.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/py.typed +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/scope.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/seams.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/server/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/server/agent_routes.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/server/envelope.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/server/http_routes.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/server/log_redaction.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/server/pages.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/server/security.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/server/settings_routes.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/server/settings_view.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/server/socket_routes.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/server/static/viewer/embed.html +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/server/static/viewer/index.html +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/server/static/viewer/start.js +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/storage/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/storage/app_support.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/storage/claims.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/storage/private.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/adb.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/android_sdk.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/app_sdk.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/asgi.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/checkouts.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/contract.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/daemon.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fakes.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/README.md +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/android-am-start-bad.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/android-am-start.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/android-logcat-uid.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/android-package-missing.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/android-package.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/android-pm-uid.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/android-uiautomator-landscape.xml +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/android-uiautomator-search.xml +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/android-uiautomator-settings.xml +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/android-window-search.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/android-window-settings.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-alert-ios27.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-alert-ipad-landscape-left-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-alert-ipad-upside-down-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-alert-turned-left-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-alert-turned-right-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-alert-upright-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-alert.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-keyboard.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-swiftui.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-tagged.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-uikit.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-files-navigation-bar-de-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-files-tab-bar-de-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-floating-button-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-health-tab-bar-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-home-complete.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-home-ios27.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-keyboard-ios27.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-macos-chromium.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-macos-webkit.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-native-files-navigation-bar-de-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-probe-ios27.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-probe-ipad-upside-down-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-probe-rotated-left-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-safari-ios27.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-safari-typed.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-settings-back-button-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-settings-interactable.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-settings-ios27.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-settings-search-field-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-settings-toolbar-ja-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-settings-under-navigation-bar-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-turned-landscape-left-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-turned-landscape-right-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-turned-maps-alert-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-turned-portrait-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-turned-reminders-portrait-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-turned-safari-landscape-left-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/ax-turned-safari-landscape-right-ios26.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/development-certificate.pem +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/devicectl-appearance.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/devicectl-apps.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/devicectl-devices.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/devicectl-displays.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/devicectl-launch-missing.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/devicectl-launch.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/devicectl-lock-state.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/devicectl-processes.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/devicectl-screenshot.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/gradle-aapt-error.log +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/gradle-kotlin-error.log +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/gradle-output-metadata.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/gradle-test-failure.log +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/junit-android-failure.xml +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/mcpbridge-answers.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-alert.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-home.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-keyboard.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-probe.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-safari.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-settings.txt +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/simctl-devices.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/simctl-runtimes.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcodebuild-list-names.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcodebuild-list.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcodebuild-settings-test.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcodebuild-settings.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcodebuild-test-plans-none.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcodebuild-test-plans.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcresult-build-broken.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcresult-build-ok.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcresult-build-results-unbuilt.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-retries.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-swift-testing-xcode27.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-swift-testing.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-unbuilt.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests-retries.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests-swift-testing-xcode27.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests-swift-testing.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests.json +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcscheme-staging.xcscheme +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xcscheme-test-plans.xcscheme +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xctestplan-everything.xctestplan +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/fixtures/xctestplan-units-only.xctestplan +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/gradle.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/guards.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/native.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/pictures.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/recording.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/rig.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/scrcpy.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/usbmux.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/vision.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/testing/wda.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/tools/__init__.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/tools/act.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/tools/app.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/tools/context.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/tools/device.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/tools/record.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/tools/registry.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/tools/results.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/tools/screenshot.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/tools/snapshot.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/src/sim_mirror/validation.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/tests/unit/protocol/test_messages.py +0 -0
- {sim_mirror-3.0.3 → sim_mirror-3.1.0}/viewer/README.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: sim-mirror
|
|
3
|
-
Version: 3.0
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Mirror and drive iOS Simulators, real iPhones, Android devices and macOS apps from Claude Code, CLI agents and the browser.
|
|
5
5
|
Project-URL: Homepage, https://github.com/AndrewKochulab/sim-mirror
|
|
6
6
|
Project-URL: Documentation, https://github.com/AndrewKochulab/sim-mirror/tree/main/docs
|
|
@@ -103,7 +103,7 @@ Cursor and any other MCP client.
|
|
|
103
103
|
**Any MCP client**, as a stdio server:
|
|
104
104
|
|
|
105
105
|
```sh
|
|
106
|
-
claude mcp add sim-mirror -- uvx --from sim-mirror==3.0
|
|
106
|
+
claude mcp add sim-mirror -- uvx --from sim-mirror==3.1.0 sim-mirror mcp
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
Configurations for [Codex](docs/clients/codex.md), [Cursor](docs/clients/cursor.md) and
|
|
@@ -113,7 +113,7 @@ The plugin includes four [workflow skills](docs/clients/skills.md); the release
|
|
|
113
113
|
**The command**, for `sim-mirror open`, `doctor` and the rest:
|
|
114
114
|
|
|
115
115
|
```sh
|
|
116
|
-
uv tool install sim-mirror==3.0
|
|
116
|
+
uv tool install sim-mirror==3.1.0
|
|
117
117
|
# or
|
|
118
118
|
brew install andrewkochulab/tap/sim-mirror
|
|
119
119
|
```
|
|
@@ -66,7 +66,7 @@ Cursor and any other MCP client.
|
|
|
66
66
|
**Any MCP client**, as a stdio server:
|
|
67
67
|
|
|
68
68
|
```sh
|
|
69
|
-
claude mcp add sim-mirror -- uvx --from sim-mirror==3.0
|
|
69
|
+
claude mcp add sim-mirror -- uvx --from sim-mirror==3.1.0 sim-mirror mcp
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
Configurations for [Codex](docs/clients/codex.md), [Cursor](docs/clients/cursor.md) and
|
|
@@ -76,7 +76,7 @@ The plugin includes four [workflow skills](docs/clients/skills.md); the release
|
|
|
76
76
|
**The command**, for `sim-mirror open`, `doctor` and the rest:
|
|
77
77
|
|
|
78
78
|
```sh
|
|
79
|
-
uv tool install sim-mirror==3.0
|
|
79
|
+
uv tool install sim-mirror==3.1.0
|
|
80
80
|
# or
|
|
81
81
|
brew install andrewkochulab/tap/sim-mirror
|
|
82
82
|
```
|
|
@@ -17,7 +17,7 @@ Its tools are named `mcp__plugin_sim-mirror_device__sim_snapshot` and so on (`mc
|
|
|
17
17
|
## Without the plugin
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
|
-
claude mcp add sim-mirror -- uvx --from sim-mirror==3.0
|
|
20
|
+
claude mcp add sim-mirror -- uvx --from sim-mirror==3.1.0 sim-mirror mcp
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Add `--scope project` before the name to write it to the project's `.mcp.json` for everyone working on it. Its tools
|
|
@@ -31,7 +31,7 @@ simulator (its scope) and this folder as the only place builds and installs may
|
|
|
31
31
|
## Watch it
|
|
32
32
|
|
|
33
33
|
```sh
|
|
34
|
-
uvx --from sim-mirror==3.0
|
|
34
|
+
uvx --from sim-mirror==3.1.0 sim-mirror open
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
opens this folder's viewer in your browser. Every gesture the agent makes is drawn there as a cursor just before it
|
|
@@ -6,7 +6,7 @@ Add [config.toml](config.toml)'s table to `~/.codex/config.toml`, then start Cod
|
|
|
6
6
|
and installs may reach. The commented `args` pin a project by name and path instead.
|
|
7
7
|
- `tool_timeout_sec` is raised because `sim_build_run` and `sim_test` can take minutes (they are there only when build
|
|
8
8
|
tools are switched on).
|
|
9
|
-
- Watch and take over in a browser: `uvx --from sim-mirror==3.0
|
|
9
|
+
- Watch and take over in a browser: `uvx --from sim-mirror==3.1.0 sim-mirror open`
|
|
10
10
|
in the same folder.
|
|
11
11
|
|
|
12
12
|
The tools are the same for every client; see [claude-code-cli](../claude-code-cli/) for a first prompt to try.
|
|
@@ -6,7 +6,7 @@ one), and enable the server in Cursor's MCP settings.
|
|
|
6
6
|
- `sim-mirror mcp` gives the agent the simulator of the folder it starts in, and that folder as the only place builds
|
|
7
7
|
and installs may reach. If the tools act on the wrong project, append `"--scope", "my-app", "--root",
|
|
8
8
|
"/absolute/path/to/my-app"` to `args`.
|
|
9
|
-
- Watch and take over in a browser: `uvx --from sim-mirror==3.0
|
|
9
|
+
- Watch and take over in a browser: `uvx --from sim-mirror==3.1.0 sim-mirror open`
|
|
10
10
|
in the same folder.
|
|
11
11
|
|
|
12
12
|
The tools are the same for every client; see [claude-code-cli](../claude-code-cli/) for a first prompt to try.
|
|
@@ -5,7 +5,7 @@ A Python application with SimMirror inside it: [app.py](app.py). No daemon runs;
|
|
|
5
5
|
|
|
6
6
|
```sh
|
|
7
7
|
cd examples/fastapi-embed
|
|
8
|
-
EXAMPLE_KEY=change-me uv run --with "sim-mirror==3.0
|
|
8
|
+
EXAMPLE_KEY=change-me uv run --with "sim-mirror==3.1.0" \
|
|
9
9
|
uvicorn --factory app:create_app --port 7484
|
|
10
10
|
```
|
|
11
11
|
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"keys",
|
|
15
15
|
"menu",
|
|
16
16
|
"long_press",
|
|
17
|
-
"drag"
|
|
17
|
+
"drag",
|
|
18
|
+
"middle_click"
|
|
18
19
|
]
|
|
19
20
|
},
|
|
20
21
|
"windowID": {
|
|
@@ -87,6 +88,21 @@
|
|
|
87
88
|
"maximum": 3,
|
|
88
89
|
"description": "A tap's click count: 2 is a double click."
|
|
89
90
|
},
|
|
91
|
+
"modifiers": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"minItems": 1,
|
|
94
|
+
"maxItems": 4,
|
|
95
|
+
"uniqueItems": true,
|
|
96
|
+
"description": "The modifier keys a tap, right_click, middle_click, hover, scroll, long_press or drag holds, as a key chord names them. An adapter that cannot hold them refuses the command and says so in its listing by leaving out the modifiers capability.",
|
|
97
|
+
"items": {
|
|
98
|
+
"enum": [
|
|
99
|
+
"cmd",
|
|
100
|
+
"shift",
|
|
101
|
+
"alt",
|
|
102
|
+
"ctrl"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
},
|
|
90
106
|
"item": {
|
|
91
107
|
"type": "string",
|
|
92
108
|
"minLength": 1,
|
|
@@ -109,7 +125,8 @@
|
|
|
109
125
|
"tap",
|
|
110
126
|
"right_click",
|
|
111
127
|
"hover",
|
|
112
|
-
"long_press"
|
|
128
|
+
"long_press",
|
|
129
|
+
"middle_click"
|
|
113
130
|
]
|
|
114
131
|
}
|
|
115
132
|
}
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"type": "array",
|
|
68
68
|
"maxItems": 32,
|
|
69
69
|
"uniqueItems": true,
|
|
70
|
-
"description": "What the app's adapter offers beyond the protocol's commands, such as a macOS debug bridge's trusted_input, gestures (long_press and drag), keys, submit, menu and
|
|
70
|
+
"description": "What the app's adapter offers beyond the protocol's commands, such as a macOS debug bridge's trusted_input, gestures (long_press and drag), keys, submit, menu, context_menu, clicks (a tap's click count), modifiers (held by a pointer's command) and middle_click. Left out by an SDK that says nothing more.",
|
|
71
71
|
"items": {
|
|
72
72
|
"type": "string",
|
|
73
73
|
"pattern": "^[a-z_]{1,32}$"
|
|
@@ -14,9 +14,9 @@ It is header-only C++20 (`include/sim_mirror_cef/`) and compiles to nothing unle
|
|
|
14
14
|
| Request | How the host performs it |
|
|
15
15
|
|---|---|
|
|
16
16
|
| Read the screen | sdk/web's `bridge.js`, fixed bytes evaluated in the main frame, answered through a process message |
|
|
17
|
-
| Tap, double click, hover, drag, long press, right click | `CefBrowserHost::SendMouseMoveEvent` / `SendMouseClickEvent` |
|
|
17
|
+
| Tap, double and triple click, hover, drag, long press, right and middle click, each with modifier keys held | `CefBrowserHost::SendMouseMoveEvent` / `SendMouseClickEvent`, with the click count and `EVENTFLAG_*_DOWN` flags |
|
|
18
18
|
| Keys, chords, text, clear, submit | Chrome DevTools `Input.dispatchKeyEvent` / `Input.insertText` over `ExecuteDevToolsMethod`, with macOS editing commands (`cmd+a` selects all, `alt+delete` deletes a word, ...) |
|
|
19
|
-
| Scroll | DevTools `Input.dispatchMouseEvent` (`mouseWheel`) at the point |
|
|
19
|
+
| Scroll | DevTools `Input.dispatchMouseEvent` (`mouseWheel`) at the point, with any modifier keys held |
|
|
20
20
|
| Context menu | The host's `RunContextMenu`: the menu's items are answered, or a named item is chosen, and native menu tracking never starts |
|
|
21
21
|
| Menu | The app's own `NSApp.mainMenu`, by title path, chosen in process |
|
|
22
22
|
|
|
@@ -44,6 +44,10 @@ def stroke_command(screen: Screen, quarters: int, stroke: Sequence[tuple[float,
|
|
|
44
44
|
class AdbInput:
|
|
45
45
|
"""An Android device's input, through ``input``."""
|
|
46
46
|
|
|
47
|
+
#: Each stroke is an ``input`` command of its own, which takes longer to start than a double tap allows between
|
|
48
|
+
#: its taps: a double tap is refused here rather than played as two taps.
|
|
49
|
+
taps_in_time = False
|
|
50
|
+
|
|
47
51
|
def __init__(
|
|
48
52
|
self,
|
|
49
53
|
adb: Adb,
|
|
@@ -93,7 +97,8 @@ class AdbInput:
|
|
|
93
97
|
if code is None:
|
|
94
98
|
raise ConnectorError(f"key {usage} has no Android key")
|
|
95
99
|
if held:
|
|
96
|
-
|
|
100
|
+
modifiers = sorted({MODIFIERS[key][0] for key in held})
|
|
101
|
+
await self._input(["input", "keycombination", *(str(modifier) for modifier in modifiers), str(code)])
|
|
97
102
|
else:
|
|
98
103
|
await self._input(["input", "keyevent", str(code)])
|
|
99
104
|
|
|
@@ -10,7 +10,7 @@ from __future__ import annotations
|
|
|
10
10
|
|
|
11
11
|
from collections.abc import Mapping
|
|
12
12
|
|
|
13
|
-
from sim_mirror.core.gestures import COMMAND_KEY, KEYS, SHIFT_KEY
|
|
13
|
+
from sim_mirror.core.gestures import COMMAND_KEY, CONTROL_KEY, KEYS, OPTION_KEY, SHIFT_KEY
|
|
14
14
|
from sim_mirror.protocol import PanelButton
|
|
15
15
|
|
|
16
16
|
#: The buttons an Android device has, and the key each is.
|
|
@@ -27,12 +27,16 @@ ANDROID_BUTTONS: tuple[PanelButton, ...] = ("back", "home", "app_switch", "lock"
|
|
|
27
27
|
|
|
28
28
|
CTRL_LEFT = 113
|
|
29
29
|
SHIFT_LEFT = 59
|
|
30
|
+
ALT_LEFT = 57
|
|
30
31
|
META_SHIFT_ON = 0x1
|
|
32
|
+
META_ALT_ON = 0x2
|
|
31
33
|
META_CTRL_ON = 0x1000
|
|
32
|
-
#: The modifier keys, as Android's keys and meta-state flags.
|
|
34
|
+
#: The modifier keys, as Android's keys and meta-state flags. Command and Control are both Android's Control.
|
|
33
35
|
MODIFIERS: Mapping[int, tuple[int, int]] = {
|
|
34
36
|
COMMAND_KEY: (CTRL_LEFT, META_CTRL_ON),
|
|
37
|
+
CONTROL_KEY: (CTRL_LEFT, META_CTRL_ON),
|
|
35
38
|
SHIFT_KEY: (SHIFT_LEFT, META_SHIFT_ON),
|
|
39
|
+
OPTION_KEY: (ALT_LEFT, META_ALT_ON),
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
_NAMED = {
|
|
@@ -221,6 +221,9 @@ async def sendable(client: WdaClient, what: str, wait_s: float = INPUT_WAIT_S) -
|
|
|
221
221
|
class WdaInput:
|
|
222
222
|
"""Touches, buttons and keys, through WebDriverAgent; each waits `wait_s` at most for it to be free (`sendable`)."""
|
|
223
223
|
|
|
224
|
+
#: Keys become the text they type (`Typing`): Shift is read, and Command, Option or Control cannot be held.
|
|
225
|
+
chords = False
|
|
226
|
+
|
|
224
227
|
def __init__(
|
|
225
228
|
self,
|
|
226
229
|
client: WdaClient,
|
|
@@ -106,7 +106,25 @@ class MacInput:
|
|
|
106
106
|
def gestures(self) -> bool:
|
|
107
107
|
return self.offers("gestures")
|
|
108
108
|
|
|
109
|
+
@property
|
|
110
|
+
def multi_click(self) -> bool:
|
|
111
|
+
"""Whether a tap may click several times (``clicks``): the CEF adapter has since it shipped, saying so first
|
|
112
|
+
only as trusted input."""
|
|
113
|
+
return self.offers("clicks") or self.offers("trusted_input")
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def modifier_input(self) -> bool:
|
|
117
|
+
"""Whether a click, a drag, a hover or a scroll may hold modifier keys (``modifiers``)."""
|
|
118
|
+
return self.offers("modifiers")
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def middle_click(self) -> bool:
|
|
122
|
+
return self.offers("middle_click")
|
|
123
|
+
|
|
109
124
|
async def mac_action(self, action: dict[str, Any]) -> dict[str, Any]:
|
|
125
|
+
if self.listing is None and (action.get("kind") == "middle_click" or {"clicks", "modifiers"} & set(action)):
|
|
126
|
+
# Accessibility has no click count, middle button or held key: refused rather than pressed once.
|
|
127
|
+
raise ConnectorError("accessibility cannot click twice, click the middle button or hold a modifier key")
|
|
110
128
|
if action.get("kind") == "type":
|
|
111
129
|
if action.get("submit") and self.listing is None:
|
|
112
130
|
raise ConnectorError("submitting needs SimMirrorKit or the debug web bridge; text was not changed")
|
|
@@ -118,19 +118,28 @@ STEP_KINDS = (
|
|
|
118
118
|
#: What else each kind of step may say. Anything more is refused, never ignored: a key no step reads was once dropped
|
|
119
119
|
#: silently, and `{"type": "text", "text": "Groceries"}` typed the word "text".
|
|
120
120
|
STEP_OPTIONS: dict[str, tuple[str, ...]] = {
|
|
121
|
-
"right_click": ("item",),
|
|
122
|
-
"hover": (),
|
|
123
|
-
"scroll": (),
|
|
121
|
+
"right_click": ("item", "modifiers"),
|
|
122
|
+
"hover": ("modifiers",),
|
|
123
|
+
"scroll": ("modifiers",),
|
|
124
124
|
"keys": (),
|
|
125
125
|
"menu": (),
|
|
126
|
-
"tap": (),
|
|
127
|
-
"long_press": ("ms",),
|
|
126
|
+
"tap": ("count", "button", "modifiers"),
|
|
127
|
+
"long_press": ("ms", "modifiers"),
|
|
128
128
|
"swipe": (),
|
|
129
|
-
"drag": (),
|
|
129
|
+
"drag": ("modifiers",),
|
|
130
130
|
"type": ("into", "clear", "submit"),
|
|
131
|
-
"press": (),
|
|
131
|
+
"press": ("modifiers",),
|
|
132
132
|
"pause": (),
|
|
133
133
|
}
|
|
134
|
+
#: The buttons a tap may click with, by every name a step may give them.
|
|
135
|
+
TAP_BUTTONS = {
|
|
136
|
+
"primary": "primary", "left": "primary", "secondary": "secondary", "right": "secondary", "middle": "middle",
|
|
137
|
+
} # fmt: skip
|
|
138
|
+
#: How a step's line names a click or a tap made several times over.
|
|
139
|
+
TIMES = {1: "", 2: "double ", 3: "triple "}
|
|
140
|
+
#: Where SimMirror's own app adapter that plays the clicks below -- held modifiers, click counts, the middle button --
|
|
141
|
+
#: is: a host that embeds an older one, or an app reached through accessibility alone, has a step refused instead.
|
|
142
|
+
ADAPTER = "the Debug CEF host adapter from SimMirror 3.1"
|
|
134
143
|
#: What the object of a step that takes one may hold, refused past that the same way: a drag's ``hold_ms`` was dropped.
|
|
135
144
|
INNER_OPTIONS: dict[str, tuple[str, ...]] = {
|
|
136
145
|
"scroll": ("at", "dx", "dy"),
|
|
@@ -324,7 +333,14 @@ def check_steps(steps: Any) -> list[tuple[str, Any, dict[str, Any]]]:
|
|
|
324
333
|
refused += f"; beside it: {', '.join(json.dumps(option) for option in options)}"
|
|
325
334
|
if kind == "type":
|
|
326
335
|
refused += ' -- the words go in "type" itself, e.g. {"type": "Groceries", "into": "e1"}'
|
|
336
|
+
if "modifiers" in extra:
|
|
337
|
+
refused += '; a shortcut is a chord: {"keys": "cmd+shift+t"}'
|
|
327
338
|
raise ActionError(refused)
|
|
339
|
+
if "modifiers" in step:
|
|
340
|
+
try:
|
|
341
|
+
gestures.modifiers(step["modifiers"])
|
|
342
|
+
except ValueError as exc:
|
|
343
|
+
raise ActionError(f"step {number}: {exc}") from None
|
|
328
344
|
for flag in ("clear", "submit"):
|
|
329
345
|
if flag in step and not isinstance(step[flag], bool):
|
|
330
346
|
raise ActionError(f'step {number}: "{flag}" is true or false')
|
|
@@ -353,6 +369,12 @@ def _check_values(kind: str, what: Any, step: dict[str, Any]) -> None:
|
|
|
353
369
|
"""Refuse what a step names that it could never play, whatever is on the screen: before any step plays."""
|
|
354
370
|
if kind in ("tap", "long_press", "right_click", "hover"):
|
|
355
371
|
_check_target(what)
|
|
372
|
+
if kind == "tap":
|
|
373
|
+
count = _whole(step.get("count"), 1, (1, gestures.TAPS_MAX), "count", unit="taps")
|
|
374
|
+
if step.get("button", "primary") not in TAP_BUTTONS:
|
|
375
|
+
raise ActionError("button is primary, secondary or middle (left and right name them too)")
|
|
376
|
+
if count > 1 and TAP_BUTTONS[step.get("button", "primary")] != "primary":
|
|
377
|
+
raise ActionError("a secondary or a middle click is one click; count goes with the primary button")
|
|
356
378
|
if kind == "long_press":
|
|
357
379
|
_whole(step.get("ms"), LONG_PRESS_MS, GESTURE_MS, "ms")
|
|
358
380
|
item = step.get("item")
|
|
@@ -398,8 +420,11 @@ def _check_values(kind: str, what: Any, step: dict[str, Any]) -> None:
|
|
|
398
420
|
if step.get("into") is not None:
|
|
399
421
|
_check_target(step["into"])
|
|
400
422
|
elif kind == "press":
|
|
401
|
-
|
|
402
|
-
|
|
423
|
+
key = isinstance(what, str) and gestures.key_code(what) is not None
|
|
424
|
+
if what not in PRESSABLE and not key:
|
|
425
|
+
raise ActionError(f'press takes one of {", ".join(PRESSABLE)}, or one character such as "w"')
|
|
426
|
+
if "modifiers" in step and not key:
|
|
427
|
+
raise ActionError(f"modifiers are held for a key, and {what} is a button; press it on its own")
|
|
403
428
|
else:
|
|
404
429
|
try:
|
|
405
430
|
whole(what, 0, PAUSE_MS, "pause")
|
|
@@ -422,6 +447,67 @@ def _check_inner(number: int, kind: str, what: Any) -> None:
|
|
|
422
447
|
raise ActionError(refused)
|
|
423
448
|
|
|
424
449
|
|
|
450
|
+
def _offers(instance: DeviceInstance, feature: str, *, default: bool = False) -> bool:
|
|
451
|
+
"""Whether this device's input says it can play `feature` -- an attribute its sink sets (`MacInput`'s
|
|
452
|
+
``multi_click``, ``modifier_input`` and ``middle_click``; an adb sink's ``taps_in_time``) -- or `default` where it
|
|
453
|
+
says nothing."""
|
|
454
|
+
sink = instance.session.input if instance.session is not None else None
|
|
455
|
+
return getattr(sink, feature, default) is True
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
def _needs_adapter(what: str) -> str:
|
|
459
|
+
return (
|
|
460
|
+
f"{what} needs an app adapter that plays it in the app's own process -- {ADAPTER} -- and this app's input "
|
|
461
|
+
"(accessibility, SimMirrorKit or an older adapter) cannot; nothing was sent"
|
|
462
|
+
)
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
def _no_pointer(instance: DeviceInstance, what: str) -> str:
|
|
466
|
+
"""Why `what` -- a pointer's gesture -- cannot be played on this device."""
|
|
467
|
+
if instance.kind == "mac":
|
|
468
|
+
return f"{what} is not supported by this app's input; nothing was sent"
|
|
469
|
+
if what == "keys":
|
|
470
|
+
return "this device takes no key chords; nothing was sent"
|
|
471
|
+
if what == "menu":
|
|
472
|
+
return "menu chooses from a macOS app's menu bar; this device has none"
|
|
473
|
+
instead = {
|
|
474
|
+
"right_click": '; a long_press opens a context menu there: {"long_press": T}',
|
|
475
|
+
"scroll": '; a swipe scrolls it: {"swipe": {"from": T, "direction": "up"}}',
|
|
476
|
+
}.get(what, "")
|
|
477
|
+
return f"{what.replace('_', ' ')} needs a mouse pointer, and this device's screen takes touches{instead}"
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
def _no_held_touch(instance: DeviceInstance) -> str:
|
|
481
|
+
return (
|
|
482
|
+
"a touch on this device's screen holds no modifier keys; modifiers go with press and keys, e.g. "
|
|
483
|
+
'{"press": "a", "modifiers": ["command"]}'
|
|
484
|
+
)
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
def _holding(held: tuple[str, ...]) -> str:
|
|
488
|
+
"""What a step's line adds for the modifier keys a gesture holds."""
|
|
489
|
+
return f" holding {'+'.join(held)}" if held else ""
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
def _held(instance: DeviceInstance, command: dict[str, Any], held: tuple[str, ...]) -> dict[str, Any]:
|
|
493
|
+
"""`command` with `held` modifier keys, as an app's chord names them -- refused where the app cannot hold them,
|
|
494
|
+
rather than sent without them."""
|
|
495
|
+
if not held:
|
|
496
|
+
return command
|
|
497
|
+
if not _offers(instance, "modifier_input"):
|
|
498
|
+
raise ActionError(_needs_adapter(f"a {command['kind'].replace('_', ' ')} with modifier keys held"))
|
|
499
|
+
return {**command, "modifiers": [gestures.CHORD_NAMES[name] for name in held]}
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
def _confirmed(guard: ObserveGuard | None, what: str) -> None:
|
|
503
|
+
"""Refuse `what` -- a chord, a menu item -- which can change the app, where agents only observe and the call did
|
|
504
|
+
not confirm it."""
|
|
505
|
+
if guard is not None and not guard.confirmed:
|
|
506
|
+
raise ActionError(
|
|
507
|
+
f"{what} can change the app; agents only observe here (agent.observe). Use confirm: true to act."
|
|
508
|
+
)
|
|
509
|
+
|
|
510
|
+
|
|
425
511
|
class AgentActions:
|
|
426
512
|
"""Every agent's gestures, snapshots and screenshots, on every device."""
|
|
427
513
|
|
|
@@ -959,9 +1045,15 @@ class AgentActions:
|
|
|
959
1045
|
max_elements: int,
|
|
960
1046
|
guard: ObserveGuard | None = None,
|
|
961
1047
|
) -> Gesture:
|
|
1048
|
+
held = gestures.modifiers(step["modifiers"]) if "modifiers" in step else ()
|
|
1049
|
+
if kind == "tap" and TAP_BUTTONS[step.get("button", "primary")] == "secondary":
|
|
1050
|
+
# A secondary click is a right click, whatever a step calls it.
|
|
1051
|
+
kind, step = "right_click", {"right_click": what, **({"modifiers": step["modifiers"]} if held else {})}
|
|
1052
|
+
if kind == "keys" and instance.kind != "mac":
|
|
1053
|
+
return self._keyboard(instance, what, guard)
|
|
962
1054
|
if kind in ("right_click", "hover", "scroll", "keys", "menu"):
|
|
963
1055
|
if Capability.INPUT_POINTER not in instance.capabilities:
|
|
964
|
-
raise ActionError(
|
|
1056
|
+
raise ActionError(_no_pointer(instance, kind))
|
|
965
1057
|
command: dict[str, Any] = {"kind": kind}
|
|
966
1058
|
if kind in ("right_click", "hover", "scroll"):
|
|
967
1059
|
target = what["at"] if kind == "scroll" else what
|
|
@@ -971,31 +1063,58 @@ class AgentActions:
|
|
|
971
1063
|
command.update(x=x, y=y)
|
|
972
1064
|
if kind == "scroll":
|
|
973
1065
|
command.update(dx=what["dx"], dy=what["dy"])
|
|
974
|
-
summary = f"{kind} {named}"
|
|
1066
|
+
summary = f"{kind} {named}{_holding(held)}"
|
|
975
1067
|
if kind == "right_click" and "item" in step:
|
|
976
1068
|
command["item"] = step["item"]
|
|
977
1069
|
summary += f" → {json.dumps(step['item'], ensure_ascii=False)}"
|
|
978
|
-
return Gesture(kind, summary, points=((x, y),), label=label, command=command)
|
|
979
|
-
|
|
980
|
-
raise ActionError(
|
|
981
|
-
f"{kind} can change the app; agents only observe here (agent.observe). Use confirm: true to act."
|
|
982
|
-
)
|
|
1070
|
+
return Gesture(kind, summary, points=((x, y),), label=label, command=_held(instance, command, held))
|
|
1071
|
+
_confirmed(guard, kind)
|
|
983
1072
|
command["path" if kind == "menu" else "text"] = what
|
|
984
|
-
|
|
1073
|
+
named = " > ".join(what) if kind == "menu" else what
|
|
1074
|
+
return Gesture(kind, f"{kind} {named}"[: CAPTION_MAX + 10], command=command)
|
|
985
1075
|
if kind in ("tap", "long_press"):
|
|
986
|
-
|
|
987
|
-
|
|
1076
|
+
middle = kind == "tap" and TAP_BUTTONS[step.get("button", "primary")] == "middle"
|
|
1077
|
+
count = _whole(step.get("count"), 1, (1, gestures.TAPS_MAX), "count", "taps") if kind == "tap" else 1
|
|
1078
|
+
if instance.kind != "mac":
|
|
1079
|
+
if middle:
|
|
1080
|
+
raise ActionError(_no_pointer(instance, "a middle click"))
|
|
1081
|
+
if held:
|
|
1082
|
+
raise ActionError(_no_held_touch(instance))
|
|
1083
|
+
held_click = _holds(instance)
|
|
1084
|
+
if instance.kind == "mac" and kind == "long_press" and not held_click:
|
|
988
1085
|
raise ActionError(
|
|
989
1086
|
"a held click needs in-process gesture support; accessibility cannot hold a mouse button"
|
|
990
1087
|
)
|
|
1088
|
+
if count > 1 and instance.kind == "mac" and not _offers(instance, "multi_click"):
|
|
1089
|
+
raise ActionError(_needs_adapter(f"a {TIMES[count]}click"))
|
|
1090
|
+
if count > 1 and instance.kind != "mac" and not _offers(instance, "taps_in_time", default=True):
|
|
1091
|
+
raise ActionError(
|
|
1092
|
+
f"a {TIMES[count]}tap through adb arrives as separate taps, too far apart to be one; set up "
|
|
1093
|
+
"scrcpy (sim-mirror android setup) to double-tap"
|
|
1094
|
+
)
|
|
991
1095
|
x, y, label, named = await self._target(instance, caller, what, max_elements, guard=guard)
|
|
1096
|
+
if instance.kind == "mac" and kind == "tap" and (middle or count > 1 or held):
|
|
1097
|
+
if middle and not _offers(instance, "middle_click"):
|
|
1098
|
+
raise ActionError(_needs_adapter("a middle click"))
|
|
1099
|
+
command = {"kind": "middle_click" if middle else "tap", "x": x, "y": y}
|
|
1100
|
+
if count > 1:
|
|
1101
|
+
command["clicks"] = count
|
|
1102
|
+
said = "middle click" if middle else f"{TIMES[count]}click" if count > 1 else "tap"
|
|
1103
|
+
return Gesture(
|
|
1104
|
+
"tap", f"{said} {named}{_holding(held)}", points=((x, y),), label=label,
|
|
1105
|
+
command=_held(instance, command, held),
|
|
1106
|
+
) # fmt: skip
|
|
992
1107
|
if kind == "tap":
|
|
1108
|
+
if count > 1:
|
|
1109
|
+
return Gesture(
|
|
1110
|
+
"tap", f"{TIMES[count]}tap {named}", tuple(gestures.taps(x, y, count)), ((x, y),), label
|
|
1111
|
+
)
|
|
993
1112
|
return Gesture("tap", f"tap {named}", tuple(gestures.tap(x, y)), ((x, y),), label)
|
|
994
1113
|
hold = _whole(step.get("ms"), LONG_PRESS_MS, GESTURE_MS, "ms")
|
|
995
1114
|
if instance.kind == "mac":
|
|
996
1115
|
return Gesture(
|
|
997
|
-
"long_press", f"long press {named} {hold}ms", points=((x, y),), label=label,
|
|
998
|
-
command={"kind": "long_press", "x": x, "y": y, "ms": hold},
|
|
1116
|
+
"long_press", f"long press {named} {hold}ms{_holding(held)}", points=((x, y),), label=label,
|
|
1117
|
+
command=_held(instance, {"kind": "long_press", "x": x, "y": y, "ms": hold}, held),
|
|
999
1118
|
) # fmt: skip
|
|
1000
1119
|
return Gesture(
|
|
1001
1120
|
"long_press", f"long press {named} {hold}ms", tuple(gestures.long_press(x, y, hold / 1000)), ((x, y),),
|
|
@@ -1048,10 +1167,17 @@ class AgentActions:
|
|
|
1048
1167
|
end = await self._under(instance, caller, path[-1], max_elements)
|
|
1049
1168
|
kept += self._kept(guard, f"a drag to {_where(*points[-1])}", guard.matched(end), guard.drop_refusal)
|
|
1050
1169
|
ms = _whole(what.get("ms"), max(300, 16 * len(points)), GESTURE_MS, "ms")
|
|
1170
|
+
if held and instance.kind != "mac":
|
|
1171
|
+
raise ActionError(_no_held_touch(instance))
|
|
1172
|
+
if held and not _holds(instance):
|
|
1173
|
+
raise ActionError(_needs_adapter("a drag with modifier keys held"))
|
|
1051
1174
|
if instance.kind == "mac" and _holds(instance):
|
|
1175
|
+
command = {"kind": "drag", "points": [[x, y] for x, y in points], "ms": ms}
|
|
1052
1176
|
return Gesture(
|
|
1053
|
-
"drag",
|
|
1054
|
-
|
|
1177
|
+
"drag",
|
|
1178
|
+
f"drag {_where(*points[0])} → {_where(*points[-1])} through {len(points)} points{_holding(held)}"
|
|
1179
|
+
f"{kept}",
|
|
1180
|
+
points=tuple(points), command=_held(instance, command, held),
|
|
1055
1181
|
) # fmt: skip
|
|
1056
1182
|
return Gesture(
|
|
1057
1183
|
"drag", f"drag {_where(*points[0])} → {_where(*points[-1])} through {len(points)} points{kept}",
|
|
@@ -1060,6 +1186,9 @@ class AgentActions:
|
|
|
1060
1186
|
if kind == "type":
|
|
1061
1187
|
return await self._typing(instance, caller, what, step, max_elements, guard)
|
|
1062
1188
|
if kind == "press":
|
|
1189
|
+
if what not in PANEL_BUTTONS and (held or what not in gestures.KEYS):
|
|
1190
|
+
# A key held with modifiers, or one that is a character: struck as a chord.
|
|
1191
|
+
return self._chord(instance, what, held, guard)
|
|
1063
1192
|
refused = None if what in gestures.KEYS else button_refusal(what, instance.buttons)
|
|
1064
1193
|
if refused is not None:
|
|
1065
1194
|
raise ActionError(refused)
|
|
@@ -1071,6 +1200,45 @@ class AgentActions:
|
|
|
1071
1200
|
pause = _whole(what, 0, PAUSE_MS, "pause")
|
|
1072
1201
|
return Gesture("pause", f"pause {pause}ms", pause_s=pause / 1000)
|
|
1073
1202
|
|
|
1203
|
+
def _chord(self, instance: DeviceInstance, key: str, held: tuple[str, ...], guard: ObserveGuard | None) -> Gesture:
|
|
1204
|
+
"""A press of `key` -- one that is not text, or a character -- with `held` modifier keys down."""
|
|
1205
|
+
name = gestures.KEY_ALIASES.get(key.lower(), key)
|
|
1206
|
+
written = "+".join([*(gestures.CHORD_NAMES[modifier] for modifier in held), name])
|
|
1207
|
+
if held:
|
|
1208
|
+
_confirmed(guard, f"press {written}")
|
|
1209
|
+
if instance.kind == "mac":
|
|
1210
|
+
if Capability.INPUT_POINTER not in instance.capabilities:
|
|
1211
|
+
raise ActionError(_no_pointer(instance, "keys"))
|
|
1212
|
+
return Gesture("press", f"press {written}", caption=written, command={"kind": "keys", "text": written})
|
|
1213
|
+
code, shifted = gestures.key_code(key) or (0, False)
|
|
1214
|
+
if shifted:
|
|
1215
|
+
held = gestures.modifiers([*held, "shift"])
|
|
1216
|
+
self._chords_held(instance, held)
|
|
1217
|
+
return Gesture("press", f"press {written}", tuple(gestures.chord(held, code)), caption=written)
|
|
1218
|
+
|
|
1219
|
+
def _keyboard(self, instance: DeviceInstance, text: str, guard: ObserveGuard | None) -> Gesture:
|
|
1220
|
+
"""A ``keys`` step on a device with a keyboard: its chords struck one after another."""
|
|
1221
|
+
if Capability.INPUT_KEY not in instance.capabilities:
|
|
1222
|
+
raise ActionError(_no_pointer(instance, "keys"))
|
|
1223
|
+
try:
|
|
1224
|
+
struck = gestures.chords(text)
|
|
1225
|
+
except ValueError as exc:
|
|
1226
|
+
raise ActionError(str(exc)) from None
|
|
1227
|
+
_confirmed(guard, "keys")
|
|
1228
|
+
events: list[gestures.Timed] = []
|
|
1229
|
+
for index, (held, code) in enumerate(struck):
|
|
1230
|
+
self._chords_held(instance, held)
|
|
1231
|
+
events += [(index * gestures.TAP_S * 2 + at, event) for at, event in gestures.chord(held, code)]
|
|
1232
|
+
return Gesture("keys", f"keys {text}", tuple(events), caption=text[:CAPTION_MAX])
|
|
1233
|
+
|
|
1234
|
+
@staticmethod
|
|
1235
|
+
def _chords_held(instance: DeviceInstance, held: tuple[str, ...]) -> None:
|
|
1236
|
+
"""Refuse modifier keys -- Shift aside -- where the device's input cannot hold them (WebDriverAgent's)."""
|
|
1237
|
+
if any(modifier != "shift" for modifier in held) and not _offers(instance, "chords", default=True):
|
|
1238
|
+
raise ActionError(
|
|
1239
|
+
"this device's input types text and cannot hold command, option or control; nothing was sent"
|
|
1240
|
+
)
|
|
1241
|
+
|
|
1074
1242
|
async def _typing(
|
|
1075
1243
|
self,
|
|
1076
1244
|
instance: DeviceInstance,
|