sim-mirror 2.5.0__tar.gz → 2.6.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-2.6.0}/PKG-INFO +10 -6
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/README.md +9 -5
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/examples/claude-code-cli/README.md +2 -2
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/examples/codex/README.md +1 -1
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/examples/cursor/README.md +1 -1
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/examples/fastapi-embed/README.md +1 -1
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/Recording.swift +99 -4
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/Wire.swift +1 -1
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/RecordingRenderer.swift +47 -18
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Tests/HelperCoreTests/RecordingTests.swift +45 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/v1/http.schema.json +17 -2
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/_version.py +1 -1
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/config_command.py +19 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/record.py +13 -1
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/config/model.py +2 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/config/schema.py +8 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/base.py +13 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/iphone/connector.py +83 -5
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/iphone/wda.py +8 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/iphone/wda_roles.py +44 -8
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/actions.py +59 -8
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/android_control.py +18 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/control.py +12 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/device_changes.py +49 -3
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/device_settings.py +4 -3
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/frames.py +36 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/manager.py +29 -2
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/recording_sources.py +3 -3
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/recordings.py +192 -8
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/refusals.py +31 -11
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/render.py +13 -1
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/snapshot.py +90 -36
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/protocol/_generated.py +17 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/server/http_routes.py +2 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fakes.py +5 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/recording.py +5 -2
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/tools/context.py +27 -5
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/tools/device.py +2 -2
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/tools/record.py +31 -7
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/tools/schemas.py +25 -10
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/tools/screenshot.py +31 -13
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/.gitignore +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/LICENSE +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/NOTICE +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/THIRD_PARTY_LICENSES.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/docs/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/docs/media/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/examples/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/examples/android-app/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/examples/custom-connector/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/examples/embed-host/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/examples/iframe/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/examples/token-budget/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/examples/web-component/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Package.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/Accessibility.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/Arguments.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/Capture.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/FrameScheduler.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/Input.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/JSON.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/Orientation.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/Requests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/Rotation.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/Screen.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/Server.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperCore/Video.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/AccessibilityReader.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/CaptureDevice.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/Disclaimed.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/Framebuffer.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/Frameworks.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/H264Stream.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/HIDTransports.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/Pictures.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/PixelSource.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/ScreenFeed.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/SimDeviceHandle.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/SimulatorDevice.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/UnixSocket.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/UsbCapture.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/HelperPlatform/Warming.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/ObjCGuard/ObjCGuard.m +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/ObjCGuard/include/ObjCGuard.h +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Sources/sim-mirror-helper/main.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Support/Info.plist +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Tests/Fixtures/wire-vectors.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Tests/HelperCoreTests/AccessibilityTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Tests/HelperCoreTests/ArgumentsTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Tests/HelperCoreTests/CaptureTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Tests/HelperCoreTests/InputTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Tests/HelperCoreTests/OrientationTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Tests/HelperCoreTests/PictureTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Tests/HelperCoreTests/RotationTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Tests/HelperCoreTests/ServerTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/helper/Tests/HelperCoreTests/WireTests.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/README.md +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/app-sdk/v1/examples/error-inactive.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/app-sdk/v1/examples/error-unauthorized.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/app-sdk/v1/examples/hierarchy-alert.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/app-sdk/v1/examples/hierarchy-keyboard.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/app-sdk/v1/examples/hierarchy-swiftui.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/app-sdk/v1/examples/hierarchy-tagged.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/app-sdk/v1/examples/hierarchy-uikit.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/app-sdk/v1/examples/listing.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/app-sdk/v1/hierarchy.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/app-sdk/v1/listing.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/v1/agent-event.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/v1/client-input.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/v1/close-codes.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/v1/common.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/v1/constants.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/v1/hello.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/v1/input-refused.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/v1/screen-text.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/v1/settings.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/v1/status.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/protocol/v1/stream.schema.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/pyproject.toml +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/scripts/hatch_build.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/__main__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/api.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/checkouts.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/destination.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/gradle.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/gradle_log.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/junit.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/project_files.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/provider.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/runner.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/schemes.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/source.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/stamp.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/wda.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/xcodebuild.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/xcresult.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/build/xctestplan.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/android.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/app_command.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/context.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/device_command.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/devices.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/doctor.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/helper.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/main.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/mcp.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/open_viewer.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/serve.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/settings_command.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/stop.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/tokens.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/tools.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/version.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/wda.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/cli/xcode.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/config/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/config/discovery.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/config/env.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/config/observe_languages.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/config/provenance.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/config/settings_store.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/config/toml_source.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/config/writer.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/android/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/android/adb_input.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/android/connector.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/android/geometry.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/android/keys.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/android/scrcpy.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/android/scrcpy_roles.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/android/scrcpy_source.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/android/screen.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/android/uiautomator.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/app/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/app/client.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/app/discovery.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/app/document.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/app/errors.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/app/merge.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/app/reader.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/app/wire.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/helper_process.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/idb/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/idb/companion.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/idb/connector.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/idb/engine.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/idb/frameworks.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/idb/orientation.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/idb/proto/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/idb/proto/idb.proto +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/idb/proto/idb_grpc.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/idb/proto/idb_pb2.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/iphone/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/iphone/cable.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/iphone/capture.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/iphone/screen.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/iphone/wda_client.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/iphone/wda_setup.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/iphone/wda_source.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/mcpbridge/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/mcpbridge/client.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/mcpbridge/connector.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/mcpbridge/hierarchy.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/mcpbridge/merge.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/mcpbridge/reader.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/native/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/native/client.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/native/connector.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/native/helper.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/native/wire.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/registry.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/simctl/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/simctl/capture.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/connectors/simctl/connector.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/android_backend.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/android_devices.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/availability.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/backends.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/device_logs.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/devices.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/drivers.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/events.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/gestures.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/instance.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/reaper.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/runtime.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/screen_input.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/screen_relay.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/signing.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/status.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/text_entry.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/text_overlay.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/tickets.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/core/touch.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/daemon/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/daemon/app.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/daemon/auth.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/daemon/confirmations.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/daemon/health.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/daemon/lease.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/daemon/lifecycle.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/daemon/passes.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/daemon/pauses.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/daemon/policy.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/daemon/tokens.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/doctor/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/doctor/android.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/doctor/checks.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/doctor/macos.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/doctor/real_devices.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/doctor/report.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/doctor/tap.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/doctor/worktree.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/host_copy.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/hosting.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/mcp/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/mcp/launcher.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/mcp/relay.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/backtracking.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/bar_names.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/budget.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/imagehash.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/in_front.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/model.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/occlusion.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/ocr.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/orientation.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/readers.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/settle.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/system_alert.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/vision/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/vision/helper.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/vision/probe.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/vision/text_recognizer.swift +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/perception/wait.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/adb.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/android_sdk.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/codesign.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/developer_dir.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/device_data.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/devicectl.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/emulator.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/errors.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/git.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/identifiers.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/images.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/java.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/json_lines.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/keyboard.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/keychain.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/lockdown.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/process.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/simctl.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/swift.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/swiftpm.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/usbmux.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/xcode.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/platform/xcrun.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/protocol/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/protocol/messages.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/py.typed +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/scope.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/seams.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/server/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/server/agent_routes.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/server/envelope.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/server/log_redaction.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/server/pages.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/server/security.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/server/settings_routes.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/server/settings_view.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/server/socket_routes.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/server/static/viewer/embed.html +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/server/static/viewer/index.html +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/server/static/viewer/start.js +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/storage/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/storage/app_support.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/storage/claims.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/storage/private.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/adb.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/android_sdk.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/app_sdk.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/asgi.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/checkouts.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/contract.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/daemon.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/android-am-start-bad.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/android-am-start.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/android-logcat-uid.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/android-package-missing.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/android-package.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/android-pm-uid.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/android-uiautomator-landscape.xml +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/android-uiautomator-search.xml +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/android-uiautomator-settings.xml +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/android-window-search.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/android-window-settings.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-alert-ios27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-alert-ipad-landscape-left-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-alert-ipad-upside-down-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-alert-turned-left-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-alert-turned-right-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-alert-upright-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-alert.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-keyboard.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-swiftui.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-tagged.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-uikit.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-files-navigation-bar-de-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-files-tab-bar-de-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-floating-button-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-health-tab-bar-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-home-complete.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-home-ios27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-keyboard-ios27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-native-files-navigation-bar-de-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-probe-ios27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-probe-ipad-upside-down-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-probe-rotated-left-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-safari-ios27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-safari-typed.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-settings-back-button-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-settings-interactable.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-settings-ios27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-settings-search-field-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-settings-toolbar-ja-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-settings-under-navigation-bar-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-turned-landscape-left-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-turned-landscape-right-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-turned-maps-alert-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-turned-portrait-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-turned-reminders-portrait-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-turned-safari-landscape-left-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/ax-turned-safari-landscape-right-ios26.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/development-certificate.pem +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/devicectl-appearance.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/devicectl-apps.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/devicectl-devices.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/devicectl-displays.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/devicectl-launch-missing.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/devicectl-launch.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/devicectl-lock-state.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/devicectl-processes.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/devicectl-screenshot.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/gradle-aapt-error.log +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/gradle-kotlin-error.log +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/gradle-output-metadata.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/gradle-test-failure.log +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/junit-android-failure.xml +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/mcpbridge-answers.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-alert.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-home.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-keyboard.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-probe.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-safari.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-settings.txt +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/simctl-devices.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/simctl-runtimes.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcodebuild-list-names.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcodebuild-list.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcodebuild-settings-test.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcodebuild-settings.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcodebuild-test-plans-none.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcodebuild-test-plans.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcresult-build-broken.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcresult-build-ok.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcresult-build-results-unbuilt.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-retries.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-swift-testing-xcode27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-swift-testing.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-unbuilt.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests-retries.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests-swift-testing-xcode27.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests-swift-testing.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests.json +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcscheme-staging.xcscheme +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xcscheme-test-plans.xcscheme +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xctestplan-everything.xctestplan +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/fixtures/xctestplan-units-only.xctestplan +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/gradle.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/guards.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/native.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/pictures.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/rig.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/scrcpy.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/usbmux.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/vision.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/testing/wda.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/tools/__init__.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/tools/act.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/tools/app.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/tools/registry.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/tools/results.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/tools/snapshot.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/src/sim_mirror/validation.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/tests/unit/protocol/test_messages.py +0 -0
- {sim_mirror-2.5.0 → sim_mirror-2.6.0}/viewer/README.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: sim-mirror
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.6.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: 2.
|
|
61
|
+
> **Status: 2.6.** 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,10 @@ 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. It removes nothing 1.x promised.
|
|
70
73
|
|
|
71
74
|
## Why SimMirror
|
|
72
75
|
|
|
@@ -83,7 +86,8 @@ Cursor and any other MCP client.
|
|
|
83
86
|
- **Check connection recovery.** Open Control Center on a real iPhone to manage Wi-Fi and Bluetooth connections or
|
|
84
87
|
toggle airplane mode, then return to your app to check how it reconnects to a BLE or Wi-Fi accessory.
|
|
85
88
|
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
|
|
89
|
+
- **Show what happened.** Record a flow as an MP4 or a GIF with every touch drawn in -- at 60 or 120 frames a second
|
|
90
|
+
for a short animation, or only the part of the screen that matters -- and put it in a pull request.
|
|
87
91
|
|
|
88
92
|
## Install
|
|
89
93
|
|
|
@@ -97,7 +101,7 @@ Cursor and any other MCP client.
|
|
|
97
101
|
**Any MCP client**, as a stdio server:
|
|
98
102
|
|
|
99
103
|
```sh
|
|
100
|
-
claude mcp add sim-mirror -- uvx --from sim-mirror==2.
|
|
104
|
+
claude mcp add sim-mirror -- uvx --from sim-mirror==2.6.0 sim-mirror mcp
|
|
101
105
|
```
|
|
102
106
|
|
|
103
107
|
Configurations for [Codex](docs/clients/codex.md), [Cursor](docs/clients/cursor.md) and
|
|
@@ -107,7 +111,7 @@ The plugin includes four [workflow skills](docs/clients/skills.md); the release
|
|
|
107
111
|
**The command**, for `sim-mirror open`, `doctor` and the rest:
|
|
108
112
|
|
|
109
113
|
```sh
|
|
110
|
-
uv tool install sim-mirror==2.
|
|
114
|
+
uv tool install sim-mirror==2.6.0
|
|
111
115
|
# or
|
|
112
116
|
brew install andrewkochulab/tap/sim-mirror
|
|
113
117
|
```
|
|
@@ -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: 2.
|
|
24
|
+
> **Status: 2.6.** 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,10 @@ 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. It removes nothing 1.x promised.
|
|
33
36
|
|
|
34
37
|
## Why SimMirror
|
|
35
38
|
|
|
@@ -46,7 +49,8 @@ Cursor and any other MCP client.
|
|
|
46
49
|
- **Check connection recovery.** Open Control Center on a real iPhone to manage Wi-Fi and Bluetooth connections or
|
|
47
50
|
toggle airplane mode, then return to your app to check how it reconnects to a BLE or Wi-Fi accessory.
|
|
48
51
|
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
|
|
52
|
+
- **Show what happened.** Record a flow as an MP4 or a GIF with every touch drawn in -- at 60 or 120 frames a second
|
|
53
|
+
for a short animation, or only the part of the screen that matters -- and put it in a pull request.
|
|
50
54
|
|
|
51
55
|
## Install
|
|
52
56
|
|
|
@@ -60,7 +64,7 @@ Cursor and any other MCP client.
|
|
|
60
64
|
**Any MCP client**, as a stdio server:
|
|
61
65
|
|
|
62
66
|
```sh
|
|
63
|
-
claude mcp add sim-mirror -- uvx --from sim-mirror==2.
|
|
67
|
+
claude mcp add sim-mirror -- uvx --from sim-mirror==2.6.0 sim-mirror mcp
|
|
64
68
|
```
|
|
65
69
|
|
|
66
70
|
Configurations for [Codex](docs/clients/codex.md), [Cursor](docs/clients/cursor.md) and
|
|
@@ -70,7 +74,7 @@ The plugin includes four [workflow skills](docs/clients/skills.md); the release
|
|
|
70
74
|
**The command**, for `sim-mirror open`, `doctor` and the rest:
|
|
71
75
|
|
|
72
76
|
```sh
|
|
73
|
-
uv tool install sim-mirror==2.
|
|
77
|
+
uv tool install sim-mirror==2.6.0
|
|
74
78
|
# or
|
|
75
79
|
brew install andrewkochulab/tap/sim-mirror
|
|
76
80
|
```
|
|
@@ -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==2.
|
|
20
|
+
claude mcp add sim-mirror -- uvx --from sim-mirror==2.6.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==2.
|
|
34
|
+
uvx --from sim-mirror==2.6.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==2.
|
|
9
|
+
- Watch and take over in a browser: `uvx --from sim-mirror==2.6.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==2.
|
|
9
|
+
- Watch and take over in a browser: `uvx --from sim-mirror==2.6.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==2.
|
|
8
|
+
EXAMPLE_KEY=change-me uv run --with "sim-mirror==2.6.0" \
|
|
9
9
|
uvicorn --factory app:create_app --port 7484
|
|
10
10
|
```
|
|
11
11
|
|
|
@@ -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
|
|
@@ -13,21 +13,22 @@ import VideoToolbox
|
|
|
13
13
|
/// each frame the recording's picture at that moment with the touches that were landing then drawn over it
|
|
14
14
|
/// (`TouchMarks`). The recording is a movie the device's own tool wrote, or SimMirror's frame file of H.264 access units
|
|
15
15
|
/// or JPEGs -- all read forward once for each file written. Each file runs as long as the recording ran by the clock,
|
|
16
|
-
/// its last picture held to the end (`RenderJob.length`)
|
|
17
|
-
/// written.
|
|
16
|
+
/// its last picture held to the end (`RenderJob.length`), cut to the part of the screen the job keeps (`RecordingCrop`).
|
|
17
|
+
/// An MP4 is written at the job's rate, its index first so a browser plays it before it has all of it. Each file says
|
|
18
|
+
/// how fast the pictures it was made of came (`CaptureRate`). A file that cannot be finished is removed, never left
|
|
19
|
+
/// half written.
|
|
18
20
|
public enum RecordingRenderer {
|
|
19
|
-
/// Frames a second in a rendered MP4.
|
|
20
|
-
public static let movieFps = 30
|
|
21
|
-
|
|
22
21
|
public static func run(_ job: RenderJob) async throws -> RenderReport {
|
|
23
22
|
var files: [RenderedFile] = []
|
|
24
23
|
if let mp4 = job.mp4 {
|
|
25
24
|
var source = try await pictures(job)
|
|
26
|
-
|
|
25
|
+
let file = try await MovieWriter.write(&source, job: job, to: URL(fileURLWithPath: mp4))
|
|
26
|
+
files.append(file.counted(CaptureRate.of(source.times)))
|
|
27
27
|
}
|
|
28
28
|
if let gif = job.gif {
|
|
29
29
|
var source = try await pictures(job)
|
|
30
|
-
|
|
30
|
+
let file = try GIFWriter.write(&source, job: job, to: URL(fileURLWithPath: gif))
|
|
31
|
+
files.append(file.counted(CaptureRate.of(source.times)))
|
|
31
32
|
}
|
|
32
33
|
return RenderReport(files: files)
|
|
33
34
|
}
|
|
@@ -47,6 +48,8 @@ protocol PictureSource {
|
|
|
47
48
|
var height: Int { get }
|
|
48
49
|
/// How long the recording runs, in seconds.
|
|
49
50
|
var duration: Double { get }
|
|
51
|
+
/// When each picture read so far was taken.
|
|
52
|
+
var times: [Double] { get }
|
|
50
53
|
mutating func picture(at time: Double) throws -> CIImage?
|
|
51
54
|
}
|
|
52
55
|
|
|
@@ -59,6 +62,7 @@ struct MoviePictures: PictureSource {
|
|
|
59
62
|
private let output: AVAssetReaderTrackOutput
|
|
60
63
|
private let transform: CGAffineTransform
|
|
61
64
|
private var playhead = Playhead<CIImage>()
|
|
65
|
+
var times: [Double] { playhead.times }
|
|
62
66
|
|
|
63
67
|
init(url: URL) async throws {
|
|
64
68
|
let asset = AVURLAsset(url: url)
|
|
@@ -97,6 +101,7 @@ struct FramePictures: PictureSource {
|
|
|
97
101
|
private var reader: FrameFile.Reader
|
|
98
102
|
private let decoder = H264Decoder()
|
|
99
103
|
private var playhead = Playhead<CIImage>()
|
|
104
|
+
var times: [Double] { playhead.times }
|
|
100
105
|
|
|
101
106
|
init(url: URL) throws {
|
|
102
107
|
var scan = try FramePictures.open(url)
|
|
@@ -250,16 +255,36 @@ enum TouchPainter {
|
|
|
250
255
|
}
|
|
251
256
|
}
|
|
252
257
|
|
|
253
|
-
/// One frame of a rendered file: the recording's picture then,
|
|
258
|
+
/// One frame of a rendered file: the recording's picture then, with its touches over it, cut to the part the job keeps
|
|
259
|
+
/// and scaled to the file's size. Touches are drawn on the whole picture first, so a ring is the size it is on the
|
|
260
|
+
/// screen, and one at the crop's edge shows the part of it inside.
|
|
254
261
|
enum Frames {
|
|
255
|
-
static func compose(_ picture: CIImage, touches: [RecordedTouch], at time: Double, width: Int, height: Int
|
|
262
|
+
static func compose(_ picture: CIImage, touches: [RecordedTouch], at time: Double, width: Int, height: Int,
|
|
263
|
+
crop: RecordingCrop? = nil) -> CIImage {
|
|
264
|
+
guard let crop else { return scaled(drawn(picture, touches: touches, at: time, width: width, height: height), width: width, height: height) }
|
|
265
|
+
let extent = picture.extent
|
|
266
|
+
let whole = drawn(picture, touches: touches, at: time, width: Int(extent.width), height: Int(extent.height))
|
|
267
|
+
let part = crop.pixels(width: Int(extent.width), height: Int(extent.height))
|
|
268
|
+
// Core Image measures from the bottom left; the crop from the top left.
|
|
269
|
+
let rect = CGRect(x: part.x, y: Double(extent.height) - part.y - part.height, width: part.width, height: part.height)
|
|
270
|
+
let cut = whole.cropped(to: rect).transformed(by: CGAffineTransform(translationX: -rect.minX, y: -rect.minY))
|
|
271
|
+
return scaled(cut, width: width, height: height)
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/// The picture with the touches landing at `time` drawn over it, at `width` by `height`.
|
|
275
|
+
private static func drawn(_ picture: CIImage, touches: [RecordedTouch], at time: Double, width: Int, height: Int) -> CIImage {
|
|
256
276
|
let extent = picture.extent
|
|
257
|
-
let
|
|
277
|
+
let sized = extent.width > 0 && extent.height > 0 && (Int(extent.width) != width || Int(extent.height) != height)
|
|
258
278
|
? picture.transformed(by: CGAffineTransform(scaleX: CGFloat(width) / extent.width, y: CGFloat(height) / extent.height))
|
|
259
279
|
: picture
|
|
260
|
-
let
|
|
261
|
-
|
|
262
|
-
|
|
280
|
+
guard let overlay = TouchPainter.paint(TouchMarks.at(time, touches), width: width, height: height) else { return sized }
|
|
281
|
+
return overlay.composited(over: sized)
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
private static func scaled(_ image: CIImage, width: Int, height: Int) -> CIImage {
|
|
285
|
+
let extent = image.extent
|
|
286
|
+
guard extent.width > 0, extent.height > 0, Int(extent.width) != width || Int(extent.height) != height else { return image }
|
|
287
|
+
return image.transformed(by: CGAffineTransform(scaleX: CGFloat(width) / extent.width, y: CGFloat(height) / extent.height))
|
|
263
288
|
}
|
|
264
289
|
}
|
|
265
290
|
|
|
@@ -277,8 +302,11 @@ enum MovieWriter {
|
|
|
277
302
|
}
|
|
278
303
|
|
|
279
304
|
private static func written(_ source: inout any PictureSource, job: RenderJob, to url: URL) async throws -> RenderedFile {
|
|
280
|
-
let
|
|
305
|
+
let kept = job.kept(width: source.width, height: source.height)
|
|
306
|
+
let (width, height) = renderedSize(sourceWidth: kept.width, sourceHeight: kept.height, width: job.movieWidth)
|
|
281
307
|
let writer = try AVAssetWriter(outputURL: url, fileType: .mp4)
|
|
308
|
+
// Its index before its pictures (fast start): a browser plays it, and seeks in it, before it has all of it.
|
|
309
|
+
writer.shouldOptimizeForNetworkUse = true
|
|
282
310
|
let bitrate = job.mp4Quality.bitrate(width: width, height: height)
|
|
283
311
|
let input = AVAssetWriterInput(mediaType: .video, outputSettings: [
|
|
284
312
|
AVVideoCodecKey: job.codec == "hevc" ? AVVideoCodecType.hevc : AVVideoCodecType.h264,
|
|
@@ -296,7 +324,7 @@ enum MovieWriter {
|
|
|
296
324
|
guard writer.startWriting() else { throw HelperFailure("the MP4 cannot be written: \(writer.error?.localizedDescription ?? "no reason")") }
|
|
297
325
|
writer.startSession(atSourceTime: .zero)
|
|
298
326
|
let context = CIContext(options: [.cacheIntermediates: false])
|
|
299
|
-
let ticks = job.ticks(pictures: source.duration, fps:
|
|
327
|
+
let ticks = job.ticks(pictures: source.duration, fps: job.mp4Fps)
|
|
300
328
|
for (index, tick) in ticks.times.enumerated() {
|
|
301
329
|
guard let picture = try source.picture(at: tick.source) else { continue }
|
|
302
330
|
while !input.isReadyForMoreMediaData { try await Task.sleep(nanoseconds: 2_000_000) }
|
|
@@ -305,7 +333,7 @@ enum MovieWriter {
|
|
|
305
333
|
guard CVPixelBufferPoolCreatePixelBuffer(nil, pool, &buffer) == kCVReturnSuccess, let buffer else {
|
|
306
334
|
throw HelperFailure("the MP4 has no pixel buffer free")
|
|
307
335
|
}
|
|
308
|
-
context.render(Frames.compose(picture, touches: job.touches, at: tick.source, width: width, height: height), to: buffer)
|
|
336
|
+
context.render(Frames.compose(picture, touches: job.touches, at: tick.source, width: width, height: height, crop: job.crop), to: buffer)
|
|
309
337
|
guard adaptor.append(buffer, withPresentationTime: CMTime(value: CMTimeValue(index), timescale: CMTimeScale(ticks.fps))) else {
|
|
310
338
|
throw HelperFailure("the MP4 stopped taking frames: \(writer.error?.localizedDescription ?? "no reason")")
|
|
311
339
|
}
|
|
@@ -332,7 +360,8 @@ enum GIFWriter {
|
|
|
332
360
|
|
|
333
361
|
/// ImageIO is told the most frames there can be; a frame the same as the one before is left out, which it allows.
|
|
334
362
|
private static func written(_ source: inout any PictureSource, job: RenderJob, to url: URL) throws -> RenderedFile {
|
|
335
|
-
let
|
|
363
|
+
let kept = job.kept(width: source.width, height: source.height)
|
|
364
|
+
let (width, height) = renderedSize(sourceWidth: kept.width, sourceHeight: kept.height, width: job.gifWidth)
|
|
336
365
|
let ticks = job.ticks(pictures: source.duration, fps: job.gifFps)
|
|
337
366
|
guard let destination = CGImageDestinationCreateWithURL(url as CFURL, UTType.gif.identifier as CFString, ticks.times.count, nil) else {
|
|
338
367
|
throw HelperFailure("ImageIO cannot write a GIF here")
|
|
@@ -349,7 +378,7 @@ enum GIFWriter {
|
|
|
349
378
|
}
|
|
350
379
|
for tick in ticks.times {
|
|
351
380
|
guard let picture = try source.picture(at: tick.source),
|
|
352
|
-
let image = context.createCGImage(Frames.compose(picture, touches: job.touches, at: tick.source, width: width, height: height),
|
|
381
|
+
let image = context.createCGImage(Frames.compose(picture, touches: job.touches, at: tick.source, width: width, height: height, crop: job.crop),
|
|
353
382
|
from: rect, format: .RGBA8, colorSpace: TouchPainter.space) else { continue }
|
|
354
383
|
let bytes = image.dataProvider?.data.map { $0 as Data } ?? Data()
|
|
355
384
|
if let held = pending, held.bytes == bytes {
|
|
@@ -13,6 +13,38 @@ import Testing
|
|
|
13
13
|
#expect(job.codec == "h264" && job.speed == 2 && job.gifFps == 12 && job.gifWidth == 600)
|
|
14
14
|
#expect(job.touches == [RecordedTouch(t: 1.5, kind: "tap", points: [[0.5, 0.25]], duration: 0.1, by: "agent")])
|
|
15
15
|
#expect(job.mp4Width == 0 && job.movieWidth == nil && job.mp4Quality == .high)
|
|
16
|
+
#expect(job.mp4Fps == 30 && job.crop == nil, "a SimMirror that does not say asks for 30 a second of all of it")
|
|
17
|
+
#expect(job.kept(width: 1206, height: 2622) == (1206, 2622))
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@Test func aJobMayAskForAFasterMovieOfPartOfTheScreen() throws {
|
|
21
|
+
let asked = Self.job.replacingOccurrences(
|
|
22
|
+
of: #""gif_width":600"#, with: #""gif_width":600,"mp4_fps":120,"crop":{"x":0.25,"y":0.5,"width":0.5,"height":0.25}"#)
|
|
23
|
+
let job = try RenderJob.read(Data(asked.utf8))
|
|
24
|
+
#expect(job.mp4Fps == 120 && job.crop == RecordingCrop(x: 0.25, y: 0.5, width: 0.5, height: 0.25))
|
|
25
|
+
#expect(job.kept(width: 1206, height: 2622) == (603, 656))
|
|
26
|
+
#expect(job.kept(width: 1, height: 1) == (1, 1), "never nothing")
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@Test func aCropIsMeasuredInPixelsFromTheTopLeftAndKeptInsideThePicture() {
|
|
30
|
+
let crop = RecordingCrop(x: 0.25, y: 0.5, width: 0.5, height: 0.25)
|
|
31
|
+
#expect(crop.pixels(width: 400, height: 800) == (100, 400, 200, 200))
|
|
32
|
+
let edge = RecordingCrop(x: 0.9, y: 0.9, width: 0.1 + 5e-7, height: 0.1 + 5e-7)
|
|
33
|
+
let rect = edge.pixels(width: 100, height: 100)
|
|
34
|
+
#expect(rect.x == 90 && rect.width == 10 && rect.y + rect.height == 100, "rounding never reaches past the edge")
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@Test func howFastPicturesCameIsTheBusiestSecondAndTheLongestWait() {
|
|
38
|
+
#expect(CaptureRate.of([]) == CaptureRate(pictures: 0, busiestFps: 0, longestGapS: 0))
|
|
39
|
+
#expect(CaptureRate.of([2]) == CaptureRate(pictures: 1, busiestFps: 1, longestGapS: 0))
|
|
40
|
+
// 60 a second for half a second, then nothing for 2.5 s, then 10 more over a second.
|
|
41
|
+
let burst = (0..<30).map { Double($0) / 60 }
|
|
42
|
+
let slow = (0..<10).map { 3 + Double($0) / 10 }
|
|
43
|
+
let rate = CaptureRate.of(burst + slow)
|
|
44
|
+
#expect(rate.pictures == 40 && rate.busiestFps == 30 && rate.longestGapS == 2.517)
|
|
45
|
+
#expect(CaptureRate.of((0..<120).map { Double($0) / 60 }).busiestFps == 60)
|
|
46
|
+
let said = String(decoding: JSON.encode(CaptureRate(pictures: 3, busiestFps: 2, longestGapS: 0.5)), as: UTF8.self)
|
|
47
|
+
#expect(said == #"{"busiest_fps":2,"longest_gap_s":0.5,"pictures":3}"#)
|
|
16
48
|
}
|
|
17
49
|
|
|
18
50
|
@Test func aJobMayAskForASmallerMovieAtALowerQuality() throws {
|
|
@@ -39,6 +71,15 @@ import Testing
|
|
|
39
71
|
(job.replacingOccurrences(of: #""gif_width":600"#, with: #""gif_width":20"#), "gif_width must be 64 to 2000"),
|
|
40
72
|
(job.replacingOccurrences(of: #""gif_width":600"#, with: #""gif_width":600,"mp4_width":5000"#), "mp4_width must be 0 to 4000"),
|
|
41
73
|
(job.replacingOccurrences(of: #""gif_width":600"#, with: #""gif_width":600,"mp4_quality":"best""#), "not a render job"),
|
|
74
|
+
(job.replacingOccurrences(of: #""gif_width":600"#, with: #""gif_width":600,"mp4_fps":240"#), "mp4_fps must be 1 to 120"),
|
|
75
|
+
(job.replacingOccurrences(of: #""gif_width":600"#, with: #""gif_width":600,"mp4_fps":0"#), "mp4_fps must be 1 to 120"),
|
|
76
|
+
(job.replacingOccurrences(of: #""gif_width":600"#, with: #""gif_width":600,"crop":{"x":0.5,"y":0,"width":0.6,"height":1}"#), "crop must be a part"),
|
|
77
|
+
(job.replacingOccurrences(of: #""gif_width":600"#, with: #""gif_width":600,"crop":{"x":0,"y":0.5,"width":1,"height":0.6}"#), "crop must be a part"),
|
|
78
|
+
(job.replacingOccurrences(of: #""gif_width":600"#, with: #""gif_width":600,"crop":{"x":-0.1,"y":0,"width":0.5,"height":0.5}"#), "crop must be a part"),
|
|
79
|
+
(job.replacingOccurrences(of: #""gif_width":600"#, with: #""gif_width":600,"crop":{"x":0,"y":-0.1,"width":0.5,"height":0.5}"#), "crop must be a part"),
|
|
80
|
+
(job.replacingOccurrences(of: #""gif_width":600"#, with: #""gif_width":600,"crop":{"x":0,"y":0,"width":0,"height":0.5}"#), "crop must be a part"),
|
|
81
|
+
(job.replacingOccurrences(of: #""gif_width":600"#, with: #""gif_width":600,"crop":{"x":0,"y":0,"width":0.5,"height":0}"#), "crop must be a part"),
|
|
82
|
+
(job.replacingOccurrences(of: #""gif_width":600"#, with: #""gif_width":600,"crop":{"x":0,"y":0,"width":0.5}"#), "not a render job"),
|
|
42
83
|
] as [(String, String)])
|
|
43
84
|
func aJobThatCannotBeMadeIsRefused(json: String, says: String) {
|
|
44
85
|
do {
|
|
@@ -52,6 +93,9 @@ import Testing
|
|
|
52
93
|
@Test func aReportSaysWhatWasWritten() {
|
|
53
94
|
let report = RenderReport(files: [RenderedFile(path: "/r/a.mp4", format: "mp4", width: 400, height: 868, durationS: 2.5)])
|
|
54
95
|
#expect(String(decoding: JSON.encode(report), as: UTF8.self) == #"{"files":[{"duration_s":2.5,"format":"mp4","height":868,"path":"/r/a.mp4","width":400}]}"#)
|
|
96
|
+
let counted = report.files[0].counted(CaptureRate(pictures: 9, busiestFps: 9, longestGapS: 0.1))
|
|
97
|
+
#expect(counted.source?.pictures == 9 && counted.path == "/r/a.mp4" && counted.durationS == 2.5)
|
|
98
|
+
#expect(String(decoding: JSON.encode(counted), as: UTF8.self).contains(#""source":{"busiest_fps":9,"longest_gap_s":0.1,"pictures":9}"#))
|
|
55
99
|
}
|
|
56
100
|
|
|
57
101
|
static func frame(_ kind: UInt8, _ time: Double, _ body: [UInt8]) -> Data {
|
|
@@ -205,6 +249,7 @@ import Testing
|
|
|
205
249
|
let read = asked
|
|
206
250
|
#expect(playhead.advance(to: 120, next: next) == "c", "the last picture holds long after it was sent")
|
|
207
251
|
#expect(asked == read, "nothing more is read once the pictures end")
|
|
252
|
+
#expect(playhead.times == [0.4, 1, 2], "every picture read is counted")
|
|
208
253
|
}
|
|
209
254
|
|
|
210
255
|
@Test func aPlayheadWithNoPicturesShowsNoneAndPassesOnWhatReadingThrows() throws {
|
|
@@ -93,9 +93,24 @@
|
|
|
93
93
|
"started_at": { "type": "string", "description": "When it began, as an ISO 8601 time in UTC." },
|
|
94
94
|
"duration_ms": { "type": "integer", "minimum": 0, "description": "How long it plays." },
|
|
95
95
|
"files": { "type": "array", "items": { "$ref": "#/$defs/RecordingFile" } },
|
|
96
|
-
"notes": { "type": "array", "items": { "type": "string" }, "description": "What a person should know about it, such as touches not drawn." }
|
|
96
|
+
"notes": { "type": "array", "items": { "type": "string" }, "description": "What a person should know about it, such as touches not drawn." },
|
|
97
|
+
"capture": {
|
|
98
|
+
"oneOf": [{ "$ref": "#/$defs/RecordingCapture" }, { "type": "null" }],
|
|
99
|
+
"description": "How fast the screen's pictures came while it was recorded; null when they were not counted. An older server does not send it."
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"required": ["id", "device", "started_at", "duration_ms", "files", "notes", "capture"]
|
|
103
|
+
},
|
|
104
|
+
"RecordingCapture": {
|
|
105
|
+
"description": "How fast a recorded screen's pictures came: a screen that does not change sends none, so its busiest second says how fast it could send them while something moved.",
|
|
106
|
+
"type": "object",
|
|
107
|
+
"properties": {
|
|
108
|
+
"fps": { "type": "integer", "minimum": 1, "description": "Frames a second the MP4 was kept at." },
|
|
109
|
+
"pictures": { "type": "integer", "minimum": 0, "description": "How many pictures the screen sent." },
|
|
110
|
+
"busiest_fps": { "type": "integer", "minimum": 0, "description": "The most pictures that came within any one second." },
|
|
111
|
+
"longest_gap_ms": { "type": "integer", "minimum": 0, "description": "The longest wait between two pictures." }
|
|
97
112
|
},
|
|
98
|
-
"required": ["
|
|
113
|
+
"required": ["fps", "pictures", "busiest_fps", "longest_gap_ms"]
|
|
99
114
|
},
|
|
100
115
|
"RecordingList": {
|
|
101
116
|
"description": "GET a scope's recordings: those kept, newest first, the one under way on its device, and those still being rendered.",
|
|
@@ -7,12 +7,16 @@ command returns. ``--scope`` edits that scope's own table.
|
|
|
7
7
|
|
|
8
8
|
``copy --from A --scope B`` copies what scope A's own table sets into B's, keeping each value B sets already: how a
|
|
9
9
|
git worktree's scope gets its main checkout's settings, as `sim-mirror doctor` suggests (`doctor.worktree`).
|
|
10
|
+
|
|
11
|
+
``scope`` prints the scope id a folder has -- the current one unless ``--folder`` names another -- and nothing else,
|
|
12
|
+
so a script can pass it on: ``sim-mirror config set --scope "$(sim-mirror config scope)" ...``.
|
|
10
13
|
"""
|
|
11
14
|
|
|
12
15
|
from __future__ import annotations
|
|
13
16
|
|
|
14
17
|
import argparse
|
|
15
18
|
import json
|
|
19
|
+
from pathlib import Path
|
|
16
20
|
from typing import Any
|
|
17
21
|
|
|
18
22
|
from sim_mirror.cli.context import CliContext
|
|
@@ -29,6 +33,8 @@ def register(commands: Any) -> None:
|
|
|
29
33
|
actions = command.add_subparsers(dest="action", metavar="ACTION", required=True)
|
|
30
34
|
actions.add_parser("path", help="print where config.toml is")
|
|
31
35
|
actions.add_parser("validate", help="check config.toml and the SIM_MIRROR_ environment")
|
|
36
|
+
scoping = actions.add_parser("scope", help="print the scope id SimMirror gives a folder")
|
|
37
|
+
scoping.add_argument("--folder", help="this folder instead of the current one")
|
|
32
38
|
for name, helped in (("list", "every setting and its value"), ("get", "one setting's value")):
|
|
33
39
|
action = actions.add_parser(name, help=helped)
|
|
34
40
|
if name == "get":
|
|
@@ -63,6 +69,9 @@ def run(args: argparse.Namespace, ctx: CliContext) -> int:
|
|
|
63
69
|
if args.action == "path":
|
|
64
70
|
ctx.say(str(path))
|
|
65
71
|
return 0
|
|
72
|
+
if args.action == "scope":
|
|
73
|
+
ctx.say(_folder_scope(ctx, args.folder))
|
|
74
|
+
return 0
|
|
66
75
|
source = ctx.config()
|
|
67
76
|
if args.action == "validate":
|
|
68
77
|
problems = source.problems()
|
|
@@ -96,6 +105,16 @@ def run(args: argparse.Namespace, ctx: CliContext) -> int:
|
|
|
96
105
|
return 0
|
|
97
106
|
|
|
98
107
|
|
|
108
|
+
def _folder_scope(ctx: CliContext, named: str | None) -> str:
|
|
109
|
+
"""The scope id of the folder named, relative to where the command runs, else of the folder it runs in."""
|
|
110
|
+
if named is None:
|
|
111
|
+
return Scope.for_folder(ctx.cwd).id
|
|
112
|
+
folder = ctx.cwd / Path(named).expanduser()
|
|
113
|
+
if not folder.is_dir():
|
|
114
|
+
raise ConfigError(f"{named} is not a folder")
|
|
115
|
+
return Scope.for_folder(folder).id
|
|
116
|
+
|
|
117
|
+
|
|
99
118
|
def _copy(ctx: CliContext, writer: ConfigWriter, source: str, target: str) -> bool:
|
|
100
119
|
"""Copy what one scope's table sets into another's, keeping what that one sets already. Answers whether anything
|
|
101
120
|
was written."""
|