sim-mirror 2.5.0__tar.gz → 3.0.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-2.5.0 → sim_mirror-3.0.0}/PKG-INFO +16 -7
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/README.md +15 -6
- sim_mirror-3.0.0/examples/cef-app-sdk/README.md +14 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/examples/claude-code-cli/README.md +2 -2
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/examples/codex/README.md +1 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/examples/cursor/README.md +1 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/examples/fastapi-embed/README.md +1 -1
- sim_mirror-3.0.0/examples/mac-app-sdk/README.md +19 -0
- sim_mirror-3.0.0/examples/tauri-app-sdk/README.md +25 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/Accessibility.swift +5 -3
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/Arguments.swift +18 -1
- sim_mirror-3.0.0/helper/Sources/HelperCore/MacWindow.swift +109 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/Recording.swift +99 -4
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/Requests.swift +8 -2
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/Server.swift +9 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/Wire.swift +1 -1
- sim_mirror-3.0.0/helper/Sources/HelperPlatform/MacAccessibility.swift +241 -0
- sim_mirror-3.0.0/helper/Sources/HelperPlatform/MacPermissions.swift +34 -0
- sim_mirror-3.0.0/helper/Sources/HelperPlatform/MacWindowCapture.swift +76 -0
- sim_mirror-3.0.0/helper/Sources/HelperPlatform/MacWindowDevice.swift +121 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/RecordingRenderer.swift +47 -18
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/sim-mirror-helper/main.swift +35 -3
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Tests/HelperCoreTests/AccessibilityTests.swift +10 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Tests/HelperCoreTests/ArgumentsTests.swift +3 -1
- sim_mirror-3.0.0/helper/Tests/HelperCoreTests/MacWindowTests.swift +73 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Tests/HelperCoreTests/RecordingTests.swift +45 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/README.md +2 -2
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/app-sdk/v1/hierarchy.schema.json +1 -1
- sim_mirror-3.0.0/protocol/app-sdk/v1/input.schema.json +193 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/app-sdk/v1/listing.schema.json +32 -3
- sim_mirror-3.0.0/protocol/v1/client-input.schema.json +270 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/v1/common.schema.json +2 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/v1/http.schema.json +17 -2
- sim_mirror-3.0.0/sdk/cef/README.md +70 -0
- sim_mirror-3.0.0/sdk/web/README.md +33 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/_version.py +1 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/api.py +1 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/provider.py +1 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/runner.py +6 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/xcodebuild.py +28 -5
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/config_command.py +19 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/open_viewer.py +1 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/record.py +13 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/xcode.py +1 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/config/model.py +6 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/config/schema.py +19 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/app/client.py +42 -8
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/app/discovery.py +27 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/base.py +32 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/idb/connector.py +1 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/iphone/connector.py +84 -6
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/iphone/wda.py +8 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/iphone/wda_roles.py +44 -8
- sim_mirror-3.0.0/src/sim_mirror/connectors/mac/__init__.py +2 -0
- sim_mirror-3.0.0/src/sim_mirror/connectors/mac/connector.py +256 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/native/client.py +5 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/native/connector.py +1 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/native/helper.py +23 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/registry.py +5 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/actions.py +209 -16
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/android_control.py +18 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/control.py +12 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/device_changes.py +49 -3
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/device_settings.py +4 -3
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/frames.py +36 -0
- sim_mirror-3.0.0/src/sim_mirror/core/mac_backend.py +167 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/manager.py +29 -2
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/recording_sources.py +3 -3
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/recordings.py +192 -8
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/refusals.py +31 -11
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/render.py +13 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/runtime.py +6 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/screen_input.py +37 -2
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/doctor/checks.py +6 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/doctor/macos.py +33 -8
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/host_copy.py +2 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/readers.py +12 -5
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/snapshot.py +90 -36
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/identifiers.py +15 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/keyboard.py +3 -2
- sim_mirror-3.0.0/src/sim_mirror/platform/macos.py +155 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/protocol/_generated.py +47 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/server/http_routes.py +2 -0
- sim_mirror-3.0.0/src/sim_mirror/server/static/viewer/start.js +35 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/storage/claims.py +2 -1
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fakes.py +5 -0
- sim_mirror-3.0.0/src/sim_mirror/testing/fixtures/README.md +6 -0
- sim_mirror-3.0.0/src/sim_mirror/testing/fixtures/ax-macos-chromium.json +5525 -0
- sim_mirror-3.0.0/src/sim_mirror/testing/fixtures/ax-macos-webkit.json +5927 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/guards.py +8 -1
- sim_mirror-3.0.0/src/sim_mirror/testing/macos.py +71 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/recording.py +5 -2
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/tools/app.py +13 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/tools/context.py +27 -5
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/tools/device.py +29 -4
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/tools/record.py +31 -7
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/tools/schemas.py +35 -10
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/tools/screenshot.py +31 -13
- sim_mirror-2.5.0/protocol/v1/client-input.schema.json +0 -94
- sim_mirror-2.5.0/src/sim_mirror/server/static/viewer/start.js +0 -35
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/.gitignore +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/LICENSE +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/NOTICE +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/THIRD_PARTY_LICENSES.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/docs/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/docs/media/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/examples/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/examples/android-app/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/examples/custom-connector/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/examples/embed-host/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/examples/iframe/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/examples/token-budget/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/examples/web-component/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Package.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/Capture.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/FrameScheduler.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/Input.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/JSON.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/Orientation.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/Rotation.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/Screen.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperCore/Video.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/AccessibilityReader.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/CaptureDevice.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/Disclaimed.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/Framebuffer.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/Frameworks.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/H264Stream.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/HIDTransports.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/Pictures.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/PixelSource.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/ScreenFeed.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/SimDeviceHandle.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/SimulatorDevice.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/UnixSocket.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/UsbCapture.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/HelperPlatform/Warming.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/ObjCGuard/ObjCGuard.m +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Sources/ObjCGuard/include/ObjCGuard.h +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Support/Info.plist +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Tests/Fixtures/wire-vectors.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Tests/HelperCoreTests/CaptureTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Tests/HelperCoreTests/InputTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Tests/HelperCoreTests/OrientationTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Tests/HelperCoreTests/PictureTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Tests/HelperCoreTests/RotationTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Tests/HelperCoreTests/ServerTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/helper/Tests/HelperCoreTests/WireTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/app-sdk/v1/examples/error-inactive.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/app-sdk/v1/examples/error-unauthorized.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/app-sdk/v1/examples/hierarchy-alert.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/app-sdk/v1/examples/hierarchy-keyboard.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/app-sdk/v1/examples/hierarchy-swiftui.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/app-sdk/v1/examples/hierarchy-tagged.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/app-sdk/v1/examples/hierarchy-uikit.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/app-sdk/v1/examples/listing.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/v1/agent-event.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/v1/close-codes.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/v1/constants.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/v1/hello.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/v1/input-refused.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/v1/screen-text.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/v1/settings.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/v1/status.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/protocol/v1/stream.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/pyproject.toml +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/scripts/hatch_build.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/__main__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/checkouts.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/destination.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/gradle.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/gradle_log.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/junit.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/project_files.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/schemes.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/source.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/stamp.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/wda.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/xcresult.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/build/xctestplan.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/android.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/app_command.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/context.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/device_command.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/devices.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/doctor.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/helper.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/main.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/mcp.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/serve.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/settings_command.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/stop.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/tokens.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/tools.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/version.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/cli/wda.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/config/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/config/discovery.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/config/env.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/config/observe_languages.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/config/provenance.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/config/settings_store.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/config/toml_source.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/config/writer.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/android/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/android/adb_input.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/android/connector.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/android/geometry.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/android/keys.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/android/scrcpy.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/android/scrcpy_roles.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/android/scrcpy_source.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/android/screen.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/android/uiautomator.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/app/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/app/document.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/app/errors.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/app/merge.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/app/reader.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/app/wire.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/helper_process.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/idb/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/idb/companion.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/idb/engine.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/idb/frameworks.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/idb/orientation.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/idb/proto/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/idb/proto/idb.proto +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/idb/proto/idb_grpc.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/idb/proto/idb_pb2.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/iphone/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/iphone/cable.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/iphone/capture.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/iphone/screen.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/iphone/wda_client.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/iphone/wda_setup.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/iphone/wda_source.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/mcpbridge/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/mcpbridge/client.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/mcpbridge/connector.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/mcpbridge/hierarchy.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/mcpbridge/merge.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/mcpbridge/reader.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/native/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/native/wire.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/simctl/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/simctl/capture.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/connectors/simctl/connector.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/android_backend.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/android_devices.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/availability.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/backends.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/device_logs.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/devices.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/drivers.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/events.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/gestures.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/instance.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/reaper.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/screen_relay.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/signing.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/status.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/text_entry.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/text_overlay.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/tickets.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/core/touch.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/daemon/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/daemon/app.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/daemon/auth.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/daemon/confirmations.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/daemon/health.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/daemon/lease.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/daemon/lifecycle.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/daemon/passes.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/daemon/pauses.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/daemon/policy.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/daemon/tokens.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/doctor/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/doctor/android.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/doctor/real_devices.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/doctor/report.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/doctor/tap.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/doctor/worktree.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/hosting.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/mcp/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/mcp/launcher.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/mcp/relay.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/backtracking.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/bar_names.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/budget.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/imagehash.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/in_front.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/model.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/occlusion.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/ocr.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/orientation.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/settle.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/system_alert.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/vision/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/vision/helper.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/vision/probe.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/vision/text_recognizer.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/perception/wait.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/adb.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/android_sdk.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/codesign.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/developer_dir.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/device_data.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/devicectl.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/emulator.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/errors.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/git.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/images.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/java.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/json_lines.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/keychain.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/lockdown.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/process.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/simctl.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/swift.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/swiftpm.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/usbmux.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/xcode.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/platform/xcrun.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/protocol/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/protocol/messages.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/py.typed +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/scope.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/seams.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/server/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/server/agent_routes.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/server/envelope.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/server/log_redaction.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/server/pages.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/server/security.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/server/settings_routes.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/server/settings_view.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/server/socket_routes.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/server/static/viewer/embed.html +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/server/static/viewer/index.html +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/storage/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/storage/app_support.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/storage/private.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/adb.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/android_sdk.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/app_sdk.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/asgi.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/checkouts.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/contract.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/daemon.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/android-am-start-bad.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/android-am-start.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/android-logcat-uid.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/android-package-missing.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/android-package.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/android-pm-uid.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/android-uiautomator-landscape.xml +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/android-uiautomator-search.xml +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/android-uiautomator-settings.xml +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/android-window-search.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/android-window-settings.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-alert-ios27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-alert-ipad-landscape-left-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-alert-ipad-upside-down-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-alert-turned-left-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-alert-turned-right-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-alert-upright-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-alert.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-keyboard.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-swiftui.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-tagged.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-uikit.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-files-navigation-bar-de-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-files-tab-bar-de-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-floating-button-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-health-tab-bar-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-home-complete.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-home-ios27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-keyboard-ios27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-native-files-navigation-bar-de-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-probe-ios27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-probe-ipad-upside-down-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-probe-rotated-left-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-safari-ios27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-safari-typed.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-settings-back-button-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-settings-interactable.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-settings-ios27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-settings-search-field-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-settings-toolbar-ja-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-settings-under-navigation-bar-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-turned-landscape-left-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-turned-landscape-right-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-turned-maps-alert-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-turned-portrait-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-turned-reminders-portrait-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-turned-safari-landscape-left-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/ax-turned-safari-landscape-right-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/development-certificate.pem +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/devicectl-appearance.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/devicectl-apps.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/devicectl-devices.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/devicectl-displays.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/devicectl-launch-missing.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/devicectl-launch.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/devicectl-lock-state.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/devicectl-processes.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/devicectl-screenshot.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/gradle-aapt-error.log +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/gradle-kotlin-error.log +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/gradle-output-metadata.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/gradle-test-failure.log +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/junit-android-failure.xml +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/mcpbridge-answers.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-alert.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-home.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-keyboard.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-probe.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-safari.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-settings.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/simctl-devices.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/simctl-runtimes.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcodebuild-list-names.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcodebuild-list.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcodebuild-settings-test.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcodebuild-settings.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcodebuild-test-plans-none.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcodebuild-test-plans.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcresult-build-broken.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcresult-build-ok.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcresult-build-results-unbuilt.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-retries.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-swift-testing-xcode27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-swift-testing.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-unbuilt.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests-retries.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests-swift-testing-xcode27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests-swift-testing.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcscheme-staging.xcscheme +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xcscheme-test-plans.xcscheme +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xctestplan-everything.xctestplan +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/fixtures/xctestplan-units-only.xctestplan +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/gradle.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/native.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/pictures.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/rig.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/scrcpy.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/usbmux.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/vision.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/testing/wda.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/tools/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/tools/act.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/tools/registry.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/tools/results.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/tools/snapshot.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/src/sim_mirror/validation.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/tests/unit/protocol/test_messages.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-3.0.0}/viewer/README.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: sim-mirror
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Mirror and drive iOS Simulators and real iPhones 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
|
|
@@ -58,7 +58,7 @@ shows exactly what your AI agent is about to tap, and token-efficient UI snapsho
|
|
|
58
58
|
text instead of screenshots. Record any screen as an MP4 or a GIF for a pull request. Works with Claude Code, Codex,
|
|
59
59
|
Cursor and any other MCP client.
|
|
60
60
|
|
|
61
|
-
> **Status:
|
|
61
|
+
> **Status: 3.0.** The agent tools, the viewer, the protocol and the embedding API are stable, and a check holds every
|
|
62
62
|
> release to [what SimMirror promises not to break](docs/stability.md). 2.0 brought real iPhones and iPads beside the
|
|
63
63
|
> simulators -- live over the cable, driven through WebDriverAgent -- and records any screen as an MP4 or a GIF. 2.1
|
|
64
64
|
> reads and touches apps turned to landscape, keeps taps off what a tab bar covers, builds the worktree the agent works
|
|
@@ -66,7 +66,12 @@ Cursor and any other MCP client.
|
|
|
66
66
|
> phones, with the same viewer, cursor and tools. 2.3 attaches a real device again by itself once a pulled cable is
|
|
67
67
|
> back, tells an agent why it cannot touch one, and checks one before a run with `sim_device health`. 2.4 leaves a
|
|
68
68
|
> phone a person took back alone, records as long as it ran, reads long screens without locking WebDriverAgent up, waits
|
|
69
|
-
> for exact words, and lets one agent at a time drive a real device.
|
|
69
|
+
> for exact words, and lets one agent at a time drive a real device. 2.5 adds concise agent workflow skills and
|
|
70
|
+
> reliable tool outcomes. 2.6 records at 30, 60 or 120 frames a second, at a real device's own width, says when a
|
|
71
|
+
> recording stutters, crops one to a region, keeps refs through a selection change, and guards switches in observe
|
|
72
|
+
> mode. 3.0 adds macOS apps -- one app and window at a time, captured and driven from inside the app, never the
|
|
73
|
+
> person's pointer or keyboard -- and a CEF host adapter that lets a Chromium Embedded app be read and driven fully,
|
|
74
|
+
> in the background. It removes nothing 1.x or 2.x promised.
|
|
70
75
|
|
|
71
76
|
## Why SimMirror
|
|
72
77
|
|
|
@@ -83,7 +88,8 @@ Cursor and any other MCP client.
|
|
|
83
88
|
- **Check connection recovery.** Open Control Center on a real iPhone to manage Wi-Fi and Bluetooth connections or
|
|
84
89
|
toggle airplane mode, then return to your app to check how it reconnects to a BLE or Wi-Fi accessory.
|
|
85
90
|
See [the connectivity workflow](docs/real-devices.md#connectivity-workflows).
|
|
86
|
-
- **Show what happened.** Record a flow as an MP4 or a GIF with every touch drawn in
|
|
91
|
+
- **Show what happened.** Record a flow as an MP4 or a GIF with every touch drawn in -- at 60 or 120 frames a second
|
|
92
|
+
for a short animation, or only the part of the screen that matters -- and put it in a pull request.
|
|
87
93
|
|
|
88
94
|
## Install
|
|
89
95
|
|
|
@@ -97,7 +103,7 @@ Cursor and any other MCP client.
|
|
|
97
103
|
**Any MCP client**, as a stdio server:
|
|
98
104
|
|
|
99
105
|
```sh
|
|
100
|
-
claude mcp add sim-mirror -- uvx --from sim-mirror==
|
|
106
|
+
claude mcp add sim-mirror -- uvx --from sim-mirror==3.0.0 sim-mirror mcp
|
|
101
107
|
```
|
|
102
108
|
|
|
103
109
|
Configurations for [Codex](docs/clients/codex.md), [Cursor](docs/clients/cursor.md) and
|
|
@@ -107,7 +113,7 @@ The plugin includes four [workflow skills](docs/clients/skills.md); the release
|
|
|
107
113
|
**The command**, for `sim-mirror open`, `doctor` and the rest:
|
|
108
114
|
|
|
109
115
|
```sh
|
|
110
|
-
uv tool install sim-mirror==
|
|
116
|
+
uv tool install sim-mirror==3.0.0
|
|
111
117
|
# or
|
|
112
118
|
brew install andrewkochulab/tap/sim-mirror
|
|
113
119
|
```
|
|
@@ -269,7 +275,10 @@ the [command line](docs/reference/cli.md) and the [protocol](docs/reference/prot
|
|
|
269
275
|
| **v2.1** | Apps turned to landscape and `sim_device rotate`, taps kept off what bars cover, builds of the agent's worktree, observe mode, `sim-mirror stop`, and recordings sized for a pull request |
|
|
270
276
|
| **v2.2** | Android emulators and phones with the same viewer, cursor and tools: adb, scrcpy's live screen, and Gradle builds |
|
|
271
277
|
| **v2.3** | Real devices that recover from a pulled cable by themselves, `sim_device health`, an agent told why a device cannot be touched, and a text reader a slow reading no longer locks out |
|
|
272
|
-
| **v2.4**
|
|
278
|
+
| **v2.4** | Agents that hold up on a real iPhone: WebDriverAgent left alone once a person takes the phone back, recordings as long as they ran, long screens read without locking up, exact and regex waits, refs checked before a tap, iOS 27's floating search bar, and one agent at a time per device |
|
|
279
|
+
| **v2.5** | Concise agent workflow skills and tool results that say which steps completed |
|
|
280
|
+
| **v2.6** | Recordings at 30, 60 or 120 fps that say when they stutter, region recordings, refs kept through a selection change |
|
|
281
|
+
| **v3.0** (now) | macOS apps: one app and window, captured with ScreenCaptureKit and driven from inside it -- SimMirrorKit, the app's own accessibility, or a debug web or CEF bridge -- never the person's pointer or keyboard; macOS builds and tests |
|
|
273
282
|
| **Website & launch** | Landing page, video tutorials and guides |
|
|
274
283
|
|
|
275
284
|
See [ROADMAP.md](ROADMAP.md) and the [milestones](https://github.com/AndrewKochulab/sim-mirror/milestones). How
|
|
@@ -21,7 +21,7 @@ shows exactly what your AI agent is about to tap, and token-efficient UI snapsho
|
|
|
21
21
|
text instead of screenshots. Record any screen as an MP4 or a GIF for a pull request. Works with Claude Code, Codex,
|
|
22
22
|
Cursor and any other MCP client.
|
|
23
23
|
|
|
24
|
-
> **Status:
|
|
24
|
+
> **Status: 3.0.** The agent tools, the viewer, the protocol and the embedding API are stable, and a check holds every
|
|
25
25
|
> release to [what SimMirror promises not to break](docs/stability.md). 2.0 brought real iPhones and iPads beside the
|
|
26
26
|
> simulators -- live over the cable, driven through WebDriverAgent -- and records any screen as an MP4 or a GIF. 2.1
|
|
27
27
|
> reads and touches apps turned to landscape, keeps taps off what a tab bar covers, builds the worktree the agent works
|
|
@@ -29,7 +29,12 @@ Cursor and any other MCP client.
|
|
|
29
29
|
> phones, with the same viewer, cursor and tools. 2.3 attaches a real device again by itself once a pulled cable is
|
|
30
30
|
> back, tells an agent why it cannot touch one, and checks one before a run with `sim_device health`. 2.4 leaves a
|
|
31
31
|
> phone a person took back alone, records as long as it ran, reads long screens without locking WebDriverAgent up, waits
|
|
32
|
-
> for exact words, and lets one agent at a time drive a real device.
|
|
32
|
+
> for exact words, and lets one agent at a time drive a real device. 2.5 adds concise agent workflow skills and
|
|
33
|
+
> reliable tool outcomes. 2.6 records at 30, 60 or 120 frames a second, at a real device's own width, says when a
|
|
34
|
+
> recording stutters, crops one to a region, keeps refs through a selection change, and guards switches in observe
|
|
35
|
+
> mode. 3.0 adds macOS apps -- one app and window at a time, captured and driven from inside the app, never the
|
|
36
|
+
> person's pointer or keyboard -- and a CEF host adapter that lets a Chromium Embedded app be read and driven fully,
|
|
37
|
+
> in the background. It removes nothing 1.x or 2.x promised.
|
|
33
38
|
|
|
34
39
|
## Why SimMirror
|
|
35
40
|
|
|
@@ -46,7 +51,8 @@ Cursor and any other MCP client.
|
|
|
46
51
|
- **Check connection recovery.** Open Control Center on a real iPhone to manage Wi-Fi and Bluetooth connections or
|
|
47
52
|
toggle airplane mode, then return to your app to check how it reconnects to a BLE or Wi-Fi accessory.
|
|
48
53
|
See [the connectivity workflow](docs/real-devices.md#connectivity-workflows).
|
|
49
|
-
- **Show what happened.** Record a flow as an MP4 or a GIF with every touch drawn in
|
|
54
|
+
- **Show what happened.** Record a flow as an MP4 or a GIF with every touch drawn in -- at 60 or 120 frames a second
|
|
55
|
+
for a short animation, or only the part of the screen that matters -- and put it in a pull request.
|
|
50
56
|
|
|
51
57
|
## Install
|
|
52
58
|
|
|
@@ -60,7 +66,7 @@ Cursor and any other MCP client.
|
|
|
60
66
|
**Any MCP client**, as a stdio server:
|
|
61
67
|
|
|
62
68
|
```sh
|
|
63
|
-
claude mcp add sim-mirror -- uvx --from sim-mirror==
|
|
69
|
+
claude mcp add sim-mirror -- uvx --from sim-mirror==3.0.0 sim-mirror mcp
|
|
64
70
|
```
|
|
65
71
|
|
|
66
72
|
Configurations for [Codex](docs/clients/codex.md), [Cursor](docs/clients/cursor.md) and
|
|
@@ -70,7 +76,7 @@ The plugin includes four [workflow skills](docs/clients/skills.md); the release
|
|
|
70
76
|
**The command**, for `sim-mirror open`, `doctor` and the rest:
|
|
71
77
|
|
|
72
78
|
```sh
|
|
73
|
-
uv tool install sim-mirror==
|
|
79
|
+
uv tool install sim-mirror==3.0.0
|
|
74
80
|
# or
|
|
75
81
|
brew install andrewkochulab/tap/sim-mirror
|
|
76
82
|
```
|
|
@@ -232,7 +238,10 @@ the [command line](docs/reference/cli.md) and the [protocol](docs/reference/prot
|
|
|
232
238
|
| **v2.1** | Apps turned to landscape and `sim_device rotate`, taps kept off what bars cover, builds of the agent's worktree, observe mode, `sim-mirror stop`, and recordings sized for a pull request |
|
|
233
239
|
| **v2.2** | Android emulators and phones with the same viewer, cursor and tools: adb, scrcpy's live screen, and Gradle builds |
|
|
234
240
|
| **v2.3** | Real devices that recover from a pulled cable by themselves, `sim_device health`, an agent told why a device cannot be touched, and a text reader a slow reading no longer locks out |
|
|
235
|
-
| **v2.4**
|
|
241
|
+
| **v2.4** | Agents that hold up on a real iPhone: WebDriverAgent left alone once a person takes the phone back, recordings as long as they ran, long screens read without locking up, exact and regex waits, refs checked before a tap, iOS 27's floating search bar, and one agent at a time per device |
|
|
242
|
+
| **v2.5** | Concise agent workflow skills and tool results that say which steps completed |
|
|
243
|
+
| **v2.6** | Recordings at 30, 60 or 120 fps that say when they stutter, region recordings, refs kept through a selection change |
|
|
244
|
+
| **v3.0** (now) | macOS apps: one app and window, captured with ScreenCaptureKit and driven from inside it -- SimMirrorKit, the app's own accessibility, or a debug web or CEF bridge -- never the person's pointer or keyboard; macOS builds and tests |
|
|
236
245
|
| **Website & launch** | Landing page, video tutorials and guides |
|
|
237
246
|
|
|
238
247
|
See [ROADMAP.md](ROADMAP.md) and the [milestones](https://github.com/AndrewKochulab/sim-mirror/milestones). How
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Synthetic CEF sample
|
|
2
|
+
|
|
3
|
+
A small CEF Views app with SimMirror's [Debug CEF host adapter](../../sdk/cef/README.md): a button, a text field, hover
|
|
4
|
+
and right-click targets, a scrolling list, a canvas for drags and long presses, and a `Sample` menu. Its page reports
|
|
5
|
+
its own state in an `<output aria-label="State">`, so every action can be checked from a snapshot.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
make sdk-cef-sample CEF_ROOT=/path/to/cef_binary_<version>_macosarm64_minimal
|
|
9
|
+
open -g -n ".build/sdk/cef/sample/Release/CEF Sample.app"
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
`open -g` keeps it in the background; the sample orders its window front without activating. Then `sim_device list`
|
|
13
|
+
shows `CEF Sample`; choose it and drive it like any app. Build with `-DSIM_MIRROR_CEF_BRIDGE=OFF` to see what a
|
|
14
|
+
shipped build keeps: the accessibility hook only.
|
|
@@ -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==
|
|
20
|
+
claude mcp add sim-mirror -- uvx --from sim-mirror==3.0.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==
|
|
34
|
+
uvx --from sim-mirror==3.0.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==
|
|
9
|
+
- Watch and take over in a browser: `uvx --from sim-mirror==3.0.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==
|
|
9
|
+
- Watch and take over in a browser: `uvx --from sim-mirror==3.0.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==
|
|
8
|
+
EXAMPLE_KEY=change-me uv run --with "sim-mirror==3.0.0" \
|
|
9
9
|
uvicorn --factory app:create_app --port 7484
|
|
10
10
|
```
|
|
11
11
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Native macOS sample
|
|
2
|
+
|
|
3
|
+
This app has AppKit and SwiftUI windows, ordinary and secure fields, a long list, an unlabelled switch, a drawn view,
|
|
4
|
+
a sheet, a popover and a menu. Its data is synthetic.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
make sdk-mac-sample
|
|
8
|
+
open -g examples/mac-app-sdk/.build/MacAppSDK.app
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Choose it with `sim_device list` and `choose`. Use `sim_device windows` to select a window. The `Sample → Reset` menu
|
|
12
|
+
is callable without opening a menu on screen. The SDK serves only Debug builds; `make sdk-mac-release-check` proves
|
|
13
|
+
its server and input markers are absent from Release.
|
|
14
|
+
|
|
15
|
+
`MacAppSDK.xcodeproj` also supports `sim_build_run` and the unhosted unit-test scheme `MacAppSDK`. Run its logic tests
|
|
16
|
+
with `make sdk-mac-app-test`. These are unit tests, not XCUITest, and do not launch a GUI test host.
|
|
17
|
+
|
|
18
|
+
See [macOS apps](../../docs/macos.md) for helper permissions and input limits. The sample starts the SDK early enough
|
|
19
|
+
for optional macOS 26 SwiftUI debug data; its normal accessibility tree remains available without that data.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Tauri macOS sample
|
|
2
|
+
|
|
3
|
+
A small Tauri 2 application embeds a local page in WKWebView. It includes buttons, inputs, a password field,
|
|
4
|
+
a checkbox, a select, a link, a scrolling list and a canvas. It starts without taking the frontmost app's place.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
make sdk-tauri-sample
|
|
8
|
+
open -g -n examples/tauri-app-sdk/target/MacWebSample.app
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Mode B requires no bridge: choose the running app in SimMirror, then inspect its AX tree and the results of each action.
|
|
12
|
+
|
|
13
|
+
For Mode C, quit the sample and run:
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
open -g -n --env SIM_MIRROR_WEB_BRIDGE=1 examples/tauri-app-sdk/target/MacWebSample.app
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
`src/mirror.rs` registers its own window,
|
|
20
|
+
executes the adapter only in its own webview, and serves the existing authenticated loopback protocol. The secret
|
|
21
|
+
never enters JavaScript. The registered webview fills the window's content area; the hook accounts for its title bar.
|
|
22
|
+
A different window layout must supply the actual webview offset.
|
|
23
|
+
|
|
24
|
+
The hook and script are excluded from Release with `cfg(debug_assertions)`. Run `make sdk-web-test
|
|
25
|
+
sdk-web-release-check sdk-tauri-release-check`; no hook is needed in an app whose Accessibility tree and actions already work.
|
|
@@ -57,6 +57,8 @@ public struct AXNode: Equatable, Sendable {
|
|
|
57
57
|
public var enabled: Bool
|
|
58
58
|
public var children: [AXNode]
|
|
59
59
|
|
|
60
|
+
public var isSecure: Bool { role == "AXSecureTextField" || subrole == "AXSecureTextField" }
|
|
61
|
+
|
|
60
62
|
public init(
|
|
61
63
|
role: String? = nil, subrole: String? = nil, roleDescription: String? = nil, label: String? = nil,
|
|
62
64
|
title: String? = nil, identifier: String? = nil, value: AccessibilityValue? = nil,
|
|
@@ -154,20 +156,20 @@ public enum AXDocument {
|
|
|
154
156
|
}
|
|
155
157
|
|
|
156
158
|
static func kept(_ node: AXNode) -> [JSONValue] {
|
|
157
|
-
let children = node.children.flatMap(kept)
|
|
159
|
+
let children = node.isSecure ? [] : node.children.flatMap(kept)
|
|
158
160
|
guard keeps(node) else { return children }
|
|
159
161
|
return [element(node, children: children)]
|
|
160
162
|
}
|
|
161
163
|
|
|
162
164
|
static func element(_ node: AXNode, children: [JSONValue]) -> JSONValue {
|
|
163
165
|
.object([
|
|
164
|
-
"type": .text(type(of: node.role)),
|
|
166
|
+
"type": .text(node.isSecure ? "SecureTextField" : type(of: node.role)),
|
|
165
167
|
"subrole": .text(node.subrole),
|
|
166
168
|
"role_description": .text(node.roleDescription),
|
|
167
169
|
"label": .text(node.label),
|
|
168
170
|
"title": .text(node.title),
|
|
169
171
|
"identifier": .text(node.identifier),
|
|
170
|
-
"value": node.value?.json ?? .null,
|
|
172
|
+
"value": node.isSecure ? .null : node.value?.json ?? .null,
|
|
171
173
|
"frame": node.frame.json,
|
|
172
174
|
"traits": node.traits.map { .array(AXTraits.names($0).map(JSONValue.string)) } ?? .null,
|
|
173
175
|
"enabled": .bool(node.enabled),
|
|
@@ -5,6 +5,10 @@ import Foundation
|
|
|
5
5
|
public enum Command: Equatable, Sendable {
|
|
6
6
|
/// Print its versions as JSON and exit.
|
|
7
7
|
case version
|
|
8
|
+
/// Check this helper's macOS permissions without requesting either grant.
|
|
9
|
+
case macApps
|
|
10
|
+
case window(MacWindowOptions)
|
|
11
|
+
case permissions
|
|
8
12
|
/// Serve one device on a unix socket until SimMirror lets go of it.
|
|
9
13
|
case serve(ServeOptions)
|
|
10
14
|
/// Reach a device the way serving would -- its screen, a picture, input and the element tree -- say what worked as
|
|
@@ -18,6 +22,9 @@ public enum Command: Equatable, Sendable {
|
|
|
18
22
|
|
|
19
23
|
public static let usage = """
|
|
20
24
|
usage: sim-mirror-helper version
|
|
25
|
+
sim-mirror-helper permissions
|
|
26
|
+
sim-mirror-helper mac-apps
|
|
27
|
+
sim-mirror-helper window --pid PID --socket PATH [--window-id ID] [--parent-pid PID]
|
|
21
28
|
sim-mirror-helper serve --udid UDID --socket PATH [--parent-pid PID] [--hid auto|dtuhid|indigo]
|
|
22
29
|
[--idle-key-frames on|off] [--log-level debug|info|warning|error]
|
|
23
30
|
sim-mirror-helper self-check --udid UDID [--hid auto|dtuhid|indigo]
|
|
@@ -34,6 +41,16 @@ public enum Command: Equatable, Sendable {
|
|
|
34
41
|
case "version":
|
|
35
42
|
try refuseLeftovers(options)
|
|
36
43
|
return .version
|
|
44
|
+
case "mac-apps":
|
|
45
|
+
try refuseLeftovers(options)
|
|
46
|
+
return .macApps
|
|
47
|
+
case "window":
|
|
48
|
+
let window = try MacWindowOptions.take(&options)
|
|
49
|
+
try refuseLeftovers(options)
|
|
50
|
+
return .window(window)
|
|
51
|
+
case "permissions":
|
|
52
|
+
try refuseLeftovers(options)
|
|
53
|
+
return .permissions
|
|
37
54
|
case "serve":
|
|
38
55
|
let device = try DeviceOptions.take(&options)
|
|
39
56
|
guard let socket = options.removeValue(forKey: "socket"), !socket.isEmpty else {
|
|
@@ -142,7 +159,7 @@ public struct ServeOptions: Equatable, Sendable {
|
|
|
142
159
|
/// What `sim-mirror-helper version` prints.
|
|
143
160
|
public struct VersionReport: Equatable, Sendable, Encodable {
|
|
144
161
|
/// What this helper can do besides serving a simulator, so SimMirror asks only a helper that can.
|
|
145
|
-
public static let features = ["render", "capture", "rotate", "at"]
|
|
162
|
+
public static let features = ["render", "capture", "rotate", "at", "mac-capture"]
|
|
146
163
|
|
|
147
164
|
public let version: String
|
|
148
165
|
public let wire: Int
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
import Foundation
|
|
3
|
+
|
|
4
|
+
/// A helper belongs to one application process for its whole lifetime. No display or system-wide target exists.
|
|
5
|
+
public struct MacWindowOptions: Equatable, Sendable {
|
|
6
|
+
public let pid: Int32
|
|
7
|
+
public let socket: String
|
|
8
|
+
public let windowID: UInt32?
|
|
9
|
+
public let parentPid: Int32?
|
|
10
|
+
public var accessibility = true
|
|
11
|
+
|
|
12
|
+
static func take(_ flags: inout [String: String]) throws -> Self {
|
|
13
|
+
guard let raw = flags.removeValue(forKey: "pid") else { throw HelperFailure("window needs --pid", status: 400) }
|
|
14
|
+
let pid = try Command.pid(raw)
|
|
15
|
+
guard let socket = flags.removeValue(forKey: "socket"), socket.hasPrefix("/") else {
|
|
16
|
+
throw HelperFailure("window needs --socket and an absolute path", status: 400)
|
|
17
|
+
}
|
|
18
|
+
let window = try flags.removeValue(forKey: "window-id").map { raw -> UInt32 in
|
|
19
|
+
guard let id = UInt32(raw), id > 0 else { throw HelperFailure("not a window id: \(raw)", status: 400) }
|
|
20
|
+
return id
|
|
21
|
+
}
|
|
22
|
+
let ax = flags.removeValue(forKey: "accessibility") ?? "on"
|
|
23
|
+
guard ["on", "off"].contains(ax) else { throw HelperFailure("accessibility is on or off", status: 400) }
|
|
24
|
+
return Self(pid: pid, socket: socket, windowID: window, parentPid: try flags.removeValue(forKey: "parent-pid").map(Command.pid), accessibility: ax == "on")
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/// Semantic input for a single app. Coordinates are relative to its selected window, never the desktop.
|
|
29
|
+
public struct MacAction: Equatable, Sendable, Codable {
|
|
30
|
+
public enum Kind: String, Codable, Sendable {
|
|
31
|
+
case tap, rightClick = "right_click", hover, scroll, type, keys, menu, info, window
|
|
32
|
+
}
|
|
33
|
+
public let kind: Kind
|
|
34
|
+
public var x: Double?
|
|
35
|
+
public var y: Double?
|
|
36
|
+
public var dx: Double?
|
|
37
|
+
public var dy: Double?
|
|
38
|
+
public var text: String?
|
|
39
|
+
public var path: [String]?
|
|
40
|
+
public var windowID: UInt32?
|
|
41
|
+
public var clear: Bool?
|
|
42
|
+
|
|
43
|
+
public init(kind: Kind, x: Double? = nil, y: Double? = nil, dx: Double? = nil, dy: Double? = nil,
|
|
44
|
+
text: String? = nil, path: [String]? = nil, windowID: UInt32? = nil, clear: Bool? = nil) {
|
|
45
|
+
self.kind = kind; self.x = x; self.y = y; self.dx = dx; self.dy = dy
|
|
46
|
+
self.text = text; self.path = path; self.windowID = windowID; self.clear = clear
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public func validate() throws {
|
|
50
|
+
switch kind {
|
|
51
|
+
case .tap, .rightClick, .hover, .scroll:
|
|
52
|
+
guard let x, let y, x.isFinite, y.isFinite, x >= 0, y >= 0 else {
|
|
53
|
+
throw HelperFailure("input needs finite window coordinates", status: 400)
|
|
54
|
+
}
|
|
55
|
+
if kind == .scroll {
|
|
56
|
+
guard let dx, let dy, dx.isFinite, dy.isFinite, abs(dx) <= 10000, abs(dy) <= 10000 else {
|
|
57
|
+
throw HelperFailure("scroll needs finite dx and dy within 10000 points", status: 400)
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
case .type, .keys:
|
|
61
|
+
guard let text, !text.isEmpty, text.count <= 2000, !text.contains("\0") else {
|
|
62
|
+
throw HelperFailure("input needs 1 to 2000 characters without NUL", status: 400)
|
|
63
|
+
}
|
|
64
|
+
case .menu:
|
|
65
|
+
guard let path, (1...8).contains(path.count), path.allSatisfy({ !$0.isEmpty && $0.count <= 200 }) else {
|
|
66
|
+
throw HelperFailure("menu needs 1 to 8 nonempty titles of at most 200 characters", status: 400)
|
|
67
|
+
}
|
|
68
|
+
case .window:
|
|
69
|
+
guard let windowID, windowID > 0 else { throw HelperFailure("choose a window id of this app", status: 400) }
|
|
70
|
+
case .info: break
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/// A menu item's title as a person reads it. Apps that show a shortcut hint in the title -- after a tab, or after a run
|
|
76
|
+
/// of spaces ("Library g l") -- are chosen by the words before it, as well as by the whole title.
|
|
77
|
+
public enum MenuTitle {
|
|
78
|
+
public static func matches(_ title: String, _ wanted: String) -> Bool {
|
|
79
|
+
title == wanted || shown(title) == wanted
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static func shown(_ title: String) -> String {
|
|
83
|
+
var name = title.firstIndex(of: "\t").map { String(title[..<$0]) } ?? title
|
|
84
|
+
if let run = name.range(of: " ") { name = String(name[..<run.lowerBound]) }
|
|
85
|
+
return name.trimmingCharacters(in: .whitespaces)
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/// Chromium can append a window-sized structural sibling after its web content. Pick the deepest hit, not the last
|
|
90
|
+
/// overlapping sibling. Framework adapters supply only owned children; the walk is bounded even for malformed trees.
|
|
91
|
+
public enum MacHitSearch {
|
|
92
|
+
public static func deepest<Node: Hashable>(_ root: Node, x: Double, y: Double,
|
|
93
|
+
bounds: (Node) -> Rect?, children: (Node) -> [Node]) -> Node? {
|
|
94
|
+
var seen = Set<Node>()
|
|
95
|
+
func visit(_ node: Node, depth: Int) -> (Node, Int)? {
|
|
96
|
+
guard depth < 40, seen.count < 3000, seen.insert(node).inserted else { return nil }
|
|
97
|
+
let rect = bounds(node)
|
|
98
|
+
let contains = rect.map { $0.width > 0 && $0.height > 0 && x >= $0.x && y >= $0.y
|
|
99
|
+
&& x < $0.x + $0.width && y < $0.y + $0.height } ?? false
|
|
100
|
+
if let rect, rect.width > 0, rect.height > 0, !contains { return nil }
|
|
101
|
+
var found: (Node, Int)? = contains ? (node, depth) : nil
|
|
102
|
+
for child in children(node) {
|
|
103
|
+
if let match = visit(child, depth: depth + 1), match.1 >= (found?.1 ?? -1) { found = match }
|
|
104
|
+
}
|
|
105
|
+
return found
|
|
106
|
+
}
|
|
107
|
+
return visit(root, depth: 0)?.0
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -44,17 +44,24 @@ public struct RenderJob: Equatable, Sendable, Codable {
|
|
|
44
44
|
/// How long the recording ran by the clock, in seconds: a still screen sends its last picture long before the
|
|
45
45
|
/// recording stops. 0, or a job from a SimMirror that did not say, is as long as its pictures run.
|
|
46
46
|
public let durationS: Double
|
|
47
|
+
/// Frames a second in the MP4; a job from a SimMirror that did not say is 30, as every MP4 was before.
|
|
48
|
+
public let mp4Fps: Int
|
|
49
|
+
/// The part of the screen kept, as fractions of the recording's picture; nil, or a job that did not say, keeps all.
|
|
50
|
+
public let crop: RecordingCrop?
|
|
47
51
|
|
|
48
52
|
public static let speeds = 0.25...8.0
|
|
49
53
|
public static let gifFpsRange = 1...30
|
|
50
54
|
public static let gifWidthRange = 64...2000
|
|
51
55
|
public static let mp4WidthRange = 0...4000
|
|
56
|
+
public static let mp4FpsRange = 1...120
|
|
57
|
+
/// What an MP4's rate is when the job does not say.
|
|
58
|
+
public static let defaultMp4Fps = 30
|
|
52
59
|
/// Up to a day: longer than any recording SimMirror lets run.
|
|
53
60
|
public static let durationRange = 0.0...86_400
|
|
54
61
|
|
|
55
62
|
enum CodingKeys: String, CodingKey {
|
|
56
63
|
case input, inputKind = "input_kind", touches, mp4, gif, codec, speed, gifFps = "gif_fps", gifWidth = "gif_width"
|
|
57
|
-
case mp4Width = "mp4_width", mp4Quality = "mp4_quality", durationS = "duration_s"
|
|
64
|
+
case mp4Width = "mp4_width", mp4Quality = "mp4_quality", durationS = "duration_s", mp4Fps = "mp4_fps", crop
|
|
58
65
|
}
|
|
59
66
|
|
|
60
67
|
public init(from decoder: Decoder) throws {
|
|
@@ -71,6 +78,15 @@ public struct RenderJob: Equatable, Sendable, Codable {
|
|
|
71
78
|
mp4Width = try values.decodeIfPresent(Int.self, forKey: .mp4Width) ?? 0
|
|
72
79
|
mp4Quality = try values.decodeIfPresent(MovieQuality.self, forKey: .mp4Quality) ?? .high
|
|
73
80
|
durationS = try values.decodeIfPresent(Double.self, forKey: .durationS) ?? 0
|
|
81
|
+
mp4Fps = try values.decodeIfPresent(Int.self, forKey: .mp4Fps) ?? Self.defaultMp4Fps
|
|
82
|
+
crop = try values.decodeIfPresent(RecordingCrop.self, forKey: .crop)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/// The size of the part of a `width` by `height` picture the job keeps, in pixels: all of it without a crop.
|
|
86
|
+
public func kept(width: Int, height: Int) -> (width: Int, height: Int) {
|
|
87
|
+
guard let crop else { return (width, height) }
|
|
88
|
+
let rect = crop.pixels(width: width, height: height)
|
|
89
|
+
return (max(1, Int(rect.width.rounded())), max(1, Int(rect.height.rounded())))
|
|
74
90
|
}
|
|
75
91
|
|
|
76
92
|
/// The width the MP4 is drawn no wider than, or nil for the recording's own.
|
|
@@ -103,10 +119,78 @@ public struct RenderJob: Equatable, Sendable, Codable {
|
|
|
103
119
|
guard gifWidthRange.contains(job.gifWidth) else { throw HelperFailure("gif_width must be 64 to 2000", status: 400) }
|
|
104
120
|
guard mp4WidthRange.contains(job.mp4Width) else { throw HelperFailure("mp4_width must be 0 to 4000", status: 400) }
|
|
105
121
|
guard durationRange.contains(job.durationS) else { throw HelperFailure("duration_s must be 0 to 86400", status: 400) }
|
|
122
|
+
guard mp4FpsRange.contains(job.mp4Fps) else { throw HelperFailure("mp4_fps must be 1 to 120", status: 400) }
|
|
123
|
+
if let crop = job.crop, !crop.isWithinPicture {
|
|
124
|
+
throw HelperFailure("crop must be a part of the picture: x and y from 0, width and height above 0, within 1", status: 400)
|
|
125
|
+
}
|
|
106
126
|
return job
|
|
107
127
|
}
|
|
108
128
|
}
|
|
109
129
|
|
|
130
|
+
/// The part of a recording's picture a rendered file keeps: where it begins and how big it is, each a fraction of the
|
|
131
|
+
/// picture's width or height, measured from its top left.
|
|
132
|
+
public struct RecordingCrop: Equatable, Sendable, Codable {
|
|
133
|
+
public let x: Double
|
|
134
|
+
public let y: Double
|
|
135
|
+
public let width: Double
|
|
136
|
+
public let height: Double
|
|
137
|
+
|
|
138
|
+
public init(x: Double, y: Double, width: Double, height: Double) {
|
|
139
|
+
self.x = x
|
|
140
|
+
self.y = y
|
|
141
|
+
self.width = width
|
|
142
|
+
self.height = height
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/// How far past the picture's edge a crop may reach, for rounding on SimMirror's side.
|
|
146
|
+
static let slack = 1e-6
|
|
147
|
+
|
|
148
|
+
var isWithinPicture: Bool {
|
|
149
|
+
[x, y, width, height].allSatisfy(\.isFinite) && x >= 0 && y >= 0 && width > 0 && height > 0
|
|
150
|
+
&& x + width <= 1 + Self.slack && y + height <= 1 + Self.slack
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/// The crop in a `width` by `height` picture's pixels, from its top left, no further than its edges.
|
|
154
|
+
public func pixels(width: Int, height: Int) -> (x: Double, y: Double, width: Double, height: Double) {
|
|
155
|
+
let w = Double(width), h = Double(height)
|
|
156
|
+
let left = min(x, 1) * w, top = min(y, 1) * h
|
|
157
|
+
return (left, top, min(self.width * w, w - left), min(self.height * h, h - top))
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/// How fast a recording's pictures came: how many there were, the most that came within any one second, and the
|
|
162
|
+
/// longest wait between two. A screen that does not change sends none, so the busiest second is what says how fast its
|
|
163
|
+
/// source could send them while something moved.
|
|
164
|
+
public struct CaptureRate: Equatable, Sendable, Encodable {
|
|
165
|
+
public let pictures: Int
|
|
166
|
+
public let busiestFps: Int
|
|
167
|
+
public let longestGapS: Double
|
|
168
|
+
|
|
169
|
+
enum CodingKeys: String, CodingKey {
|
|
170
|
+
case pictures, busiestFps = "busiest_fps", longestGapS = "longest_gap_s"
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
public init(pictures: Int, busiestFps: Int, longestGapS: Double) {
|
|
174
|
+
self.pictures = pictures
|
|
175
|
+
self.busiestFps = busiestFps
|
|
176
|
+
self.longestGapS = longestGapS
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/// The rate of pictures taken at these times, in seconds, in the order they came.
|
|
180
|
+
public static func of(_ times: [Double]) -> CaptureRate {
|
|
181
|
+
var busiest = 0
|
|
182
|
+
var first = 0
|
|
183
|
+
var gap = 0.0
|
|
184
|
+
for (index, time) in times.enumerated() {
|
|
185
|
+
// Within a second, not a second apart: two pictures 1/60 s apart sixty times over are 60 a second.
|
|
186
|
+
while time - times[first] >= 1 - 1e-6 { first += 1 }
|
|
187
|
+
busiest = max(busiest, index - first + 1)
|
|
188
|
+
if index > 0 { gap = max(gap, time - times[index - 1]) }
|
|
189
|
+
}
|
|
190
|
+
return CaptureRate(pictures: times.count, busiestFps: busiest, longestGapS: (gap * 1000).rounded() / 1000)
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
110
194
|
/// How many bits an MP4 may spend on each of its pixels every second: the same picture quality at any size, so a movie
|
|
111
195
|
/// drawn smaller is smaller in proportion. The encoder spends less where a screen holds still. `high` is what every MP4
|
|
112
196
|
/// was rendered at before there was a choice; `low` keeps a phone's text legible 450 wide.
|
|
@@ -137,17 +221,25 @@ public struct RenderedFile: Equatable, Sendable, Encodable {
|
|
|
137
221
|
public let width: Int
|
|
138
222
|
public let height: Int
|
|
139
223
|
public let durationS: Double
|
|
224
|
+
/// How fast the recording's pictures came, when the renderer counted them.
|
|
225
|
+
public let source: CaptureRate?
|
|
140
226
|
|
|
141
|
-
public init(path: String, format: String, width: Int, height: Int, durationS: Double) {
|
|
227
|
+
public init(path: String, format: String, width: Int, height: Int, durationS: Double, source: CaptureRate? = nil) {
|
|
142
228
|
self.path = path
|
|
143
229
|
self.format = format
|
|
144
230
|
self.width = width
|
|
145
231
|
self.height = height
|
|
146
232
|
self.durationS = durationS
|
|
233
|
+
self.source = source
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/// This file, saying how fast the pictures it was made of came.
|
|
237
|
+
public func counted(_ rate: CaptureRate) -> RenderedFile {
|
|
238
|
+
RenderedFile(path: path, format: format, width: width, height: height, durationS: durationS, source: rate)
|
|
147
239
|
}
|
|
148
240
|
|
|
149
241
|
enum CodingKeys: String, CodingKey {
|
|
150
|
-
case path, format, width, height, durationS = "duration_s"
|
|
242
|
+
case path, format, width, height, durationS = "duration_s", source
|
|
151
243
|
}
|
|
152
244
|
}
|
|
153
245
|
|
|
@@ -241,6 +333,8 @@ public struct Ticks: Equatable, Sendable {
|
|
|
241
333
|
/// to the end.
|
|
242
334
|
public struct Playhead<Picture> {
|
|
243
335
|
public private(set) var shown: Picture?
|
|
336
|
+
/// When each picture read so far was taken, in the order read: how fast they came (`CaptureRate`).
|
|
337
|
+
public private(set) var times: [Double] = []
|
|
244
338
|
private var ahead: (time: Double, picture: Picture)?
|
|
245
339
|
private var ended = false
|
|
246
340
|
|
|
@@ -251,7 +345,8 @@ public struct Playhead<Picture> {
|
|
|
251
345
|
while !ended {
|
|
252
346
|
if ahead == nil {
|
|
253
347
|
ahead = try next()
|
|
254
|
-
|
|
348
|
+
guard let read = ahead else { ended = true; break }
|
|
349
|
+
times.append(read.time)
|
|
255
350
|
}
|
|
256
351
|
guard let upcoming = ahead, upcoming.time <= time || shown == nil else { break }
|
|
257
352
|
shown = upcoming.picture
|
|
@@ -5,6 +5,7 @@ import Foundation
|
|
|
5
5
|
public enum Request: Equatable, Sendable {
|
|
6
6
|
/// Who the helper is and what it reached: its versions, the device's screen, and how input reaches it.
|
|
7
7
|
case hello
|
|
8
|
+
case mac(MacAction)
|
|
8
9
|
/// The device's screen.
|
|
9
10
|
case describe
|
|
10
11
|
/// A JPEG of the screen or part of it.
|
|
@@ -24,7 +25,7 @@ public enum Request: Equatable, Sendable {
|
|
|
24
25
|
/// the order it was sent, and a hello is quick.
|
|
25
26
|
public var inOrder: Bool {
|
|
26
27
|
switch self {
|
|
27
|
-
case .hid, .hello, .rotate: return true
|
|
28
|
+
case .hid, .hello, .rotate, .mac: return true
|
|
28
29
|
case .describe, .screenshot, .accessibility, .stream, .elementsAt: return false
|
|
29
30
|
}
|
|
30
31
|
}
|
|
@@ -37,6 +38,10 @@ public enum Request: Equatable, Sendable {
|
|
|
37
38
|
throw HelperFailure("a request that is not one: \(error)", status: 400)
|
|
38
39
|
}
|
|
39
40
|
switch raw.op {
|
|
41
|
+
case "mac":
|
|
42
|
+
guard let action = raw.action else { throw HelperFailure("mac needs an action", status: 400) }
|
|
43
|
+
try action.validate()
|
|
44
|
+
return .mac(action)
|
|
40
45
|
case "hello": return .hello
|
|
41
46
|
case "describe": return .describe
|
|
42
47
|
case "accessibility": return .accessibility
|
|
@@ -68,6 +73,7 @@ public enum Request: Equatable, Sendable {
|
|
|
68
73
|
|
|
69
74
|
private struct Raw: Decodable {
|
|
70
75
|
let op: String?
|
|
76
|
+
let action: MacAction?
|
|
71
77
|
let maxWidth: Int?
|
|
72
78
|
let quality: Int?
|
|
73
79
|
let crop: Crop?
|
|
@@ -80,7 +86,7 @@ public enum Request: Equatable, Sendable {
|
|
|
80
86
|
let points: [[Double]]?
|
|
81
87
|
|
|
82
88
|
enum CodingKeys: String, CodingKey {
|
|
83
|
-
case op, maxWidth = "max_width", quality, crop, events, fps, scale, keyFrameS = "key_frame_s", bitrate, orientation,
|
|
89
|
+
case op, action, maxWidth = "max_width", quality, crop, events, fps, scale, keyFrameS = "key_frame_s", bitrate, orientation,
|
|
84
90
|
points
|
|
85
91
|
}
|
|
86
92
|
}
|