sim-mirror 2.2.0__tar.gz → 2.4.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.2.0 → sim_mirror-2.4.0}/PKG-INFO +11 -6
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/README.md +10 -5
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/examples/claude-code-cli/README.md +4 -3
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/examples/codex/README.md +1 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/examples/cursor/README.md +1 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/examples/fastapi-embed/README.md +1 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/Recording.swift +45 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/Wire.swift +1 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/RecordingRenderer.swift +29 -26
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Tests/HelperCoreTests/RecordingTests.swift +60 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/v1/http.schema.json +42 -7
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/_version.py +1 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/context.py +3 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/doctor.py +3 -0
- sim_mirror-2.4.0/src/sim_mirror/cli/record.py +118 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/stop.py +88 -13
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/tools.py +2 -5
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/wda.py +116 -7
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/config/model.py +4 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/config/schema.py +22 -2
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/base.py +26 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/helper_process.py +45 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/iphone/cable.py +10 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/iphone/capture.py +8 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/iphone/connector.py +60 -9
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/iphone/wda.py +111 -7
- sim_mirror-2.4.0/src/sim_mirror/connectors/iphone/wda_client.py +347 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/iphone/wda_roles.py +182 -26
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/native/helper.py +21 -10
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/actions.py +289 -76
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/backends.py +3 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/control.py +65 -7
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/device_logs.py +45 -15
- sim_mirror-2.4.0/src/sim_mirror/core/drivers.py +124 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/instance.py +38 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/manager.py +331 -84
- sim_mirror-2.4.0/src/sim_mirror/core/reaper.py +98 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/recordings.py +314 -51
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/render.py +10 -4
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/runtime.py +41 -8
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/touch.py +15 -3
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/daemon/app.py +49 -7
- sim_mirror-2.4.0/src/sim_mirror/daemon/lease.py +76 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/doctor/checks.py +8 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/doctor/real_devices.py +118 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/host_copy.py +58 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/hosting.py +2 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/mcp/launcher.py +136 -26
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/mcp/relay.py +117 -14
- sim_mirror-2.4.0/src/sim_mirror/perception/backtracking.py +276 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/occlusion.py +54 -7
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/ocr.py +25 -2
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/readers.py +6 -4
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/snapshot.py +73 -15
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/vision/helper.py +136 -11
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/vision/text_recognizer.swift +32 -1
- sim_mirror-2.4.0/src/sim_mirror/perception/wait.py +236 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/json_lines.py +81 -2
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/process.py +13 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/usbmux.py +35 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/protocol/_generated.py +42 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/server/http_routes.py +17 -9
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/server/log_redaction.py +25 -2
- sim_mirror-2.4.0/src/sim_mirror/server/static/viewer/start.js +35 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fakes.py +12 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/usbmux.py +22 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/vision.py +4 -1
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/wda.py +23 -3
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/tools/act.py +11 -4
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/tools/context.py +26 -8
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/tools/device.py +128 -16
- sim_mirror-2.4.0/src/sim_mirror/tools/record.py +141 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/tools/registry.py +9 -9
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/tools/schemas.py +81 -11
- sim_mirror-2.4.0/src/sim_mirror/tools/screenshot.py +136 -0
- sim_mirror-2.4.0/src/sim_mirror/tools/snapshot.py +34 -0
- sim_mirror-2.2.0/src/sim_mirror/cli/record.py +0 -75
- sim_mirror-2.2.0/src/sim_mirror/connectors/iphone/wda_client.py +0 -190
- sim_mirror-2.2.0/src/sim_mirror/core/reaper.py +0 -64
- sim_mirror-2.2.0/src/sim_mirror/daemon/lease.py +0 -46
- sim_mirror-2.2.0/src/sim_mirror/perception/wait.py +0 -73
- sim_mirror-2.2.0/src/sim_mirror/server/static/viewer/start.js +0 -35
- sim_mirror-2.2.0/src/sim_mirror/tools/record.py +0 -93
- sim_mirror-2.2.0/src/sim_mirror/tools/screenshot.py +0 -28
- sim_mirror-2.2.0/src/sim_mirror/tools/snapshot.py +0 -23
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/.gitignore +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/LICENSE +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/NOTICE +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/THIRD_PARTY_LICENSES.md +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/docs/README.md +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/docs/media/README.md +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/examples/README.md +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/examples/android-app/README.md +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/examples/custom-connector/README.md +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/examples/embed-host/README.md +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/examples/iframe/README.md +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/examples/token-budget/README.md +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/examples/web-component/README.md +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Package.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/Accessibility.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/Arguments.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/Capture.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/FrameScheduler.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/Input.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/JSON.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/Orientation.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/Requests.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/Rotation.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/Screen.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/Server.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperCore/Video.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/AccessibilityReader.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/CaptureDevice.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/Disclaimed.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/Framebuffer.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/Frameworks.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/H264Stream.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/HIDTransports.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/Pictures.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/PixelSource.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/ScreenFeed.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/SimDeviceHandle.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/SimulatorDevice.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/UnixSocket.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/UsbCapture.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/HelperPlatform/Warming.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/ObjCGuard/ObjCGuard.m +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/ObjCGuard/include/ObjCGuard.h +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Sources/sim-mirror-helper/main.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Support/Info.plist +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Tests/Fixtures/wire-vectors.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Tests/HelperCoreTests/AccessibilityTests.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Tests/HelperCoreTests/ArgumentsTests.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Tests/HelperCoreTests/CaptureTests.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Tests/HelperCoreTests/InputTests.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Tests/HelperCoreTests/OrientationTests.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Tests/HelperCoreTests/PictureTests.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Tests/HelperCoreTests/RotationTests.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Tests/HelperCoreTests/ServerTests.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/helper/Tests/HelperCoreTests/WireTests.swift +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/README.md +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/app-sdk/v1/examples/error-inactive.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/app-sdk/v1/examples/error-unauthorized.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/app-sdk/v1/examples/hierarchy-alert.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/app-sdk/v1/examples/hierarchy-keyboard.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/app-sdk/v1/examples/hierarchy-swiftui.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/app-sdk/v1/examples/hierarchy-tagged.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/app-sdk/v1/examples/hierarchy-uikit.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/app-sdk/v1/examples/listing.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/app-sdk/v1/hierarchy.schema.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/app-sdk/v1/listing.schema.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/v1/agent-event.schema.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/v1/client-input.schema.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/v1/close-codes.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/v1/common.schema.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/v1/constants.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/v1/hello.schema.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/v1/input-refused.schema.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/v1/screen-text.schema.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/v1/settings.schema.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/v1/status.schema.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/protocol/v1/stream.schema.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/pyproject.toml +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/scripts/hatch_build.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/__main__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/api.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/checkouts.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/destination.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/gradle.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/gradle_log.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/junit.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/project_files.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/provider.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/runner.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/schemes.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/source.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/stamp.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/wda.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/xcodebuild.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/xcresult.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/build/xctestplan.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/android.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/app_command.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/config_command.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/device_command.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/devices.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/helper.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/main.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/mcp.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/open_viewer.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/serve.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/settings_command.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/tokens.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/version.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/cli/xcode.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/config/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/config/discovery.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/config/env.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/config/observe_languages.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/config/provenance.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/config/settings_store.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/config/toml_source.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/config/writer.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/android/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/android/adb_input.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/android/connector.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/android/geometry.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/android/keys.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/android/scrcpy.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/android/scrcpy_roles.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/android/scrcpy_source.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/android/screen.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/android/uiautomator.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/app/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/app/client.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/app/discovery.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/app/document.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/app/errors.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/app/merge.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/app/reader.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/app/wire.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/idb/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/idb/companion.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/idb/connector.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/idb/engine.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/idb/frameworks.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/idb/orientation.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/idb/proto/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/idb/proto/idb.proto +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/idb/proto/idb_grpc.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/idb/proto/idb_pb2.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/iphone/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/iphone/screen.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/iphone/wda_setup.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/iphone/wda_source.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/mcpbridge/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/mcpbridge/client.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/mcpbridge/connector.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/mcpbridge/hierarchy.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/mcpbridge/merge.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/mcpbridge/reader.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/native/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/native/client.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/native/connector.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/native/wire.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/registry.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/simctl/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/simctl/capture.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/connectors/simctl/connector.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/android_backend.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/android_control.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/android_devices.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/availability.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/device_changes.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/device_settings.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/devices.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/events.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/frames.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/gestures.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/recording_sources.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/refusals.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/screen_input.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/screen_relay.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/signing.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/status.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/text_entry.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/text_overlay.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/core/tickets.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/daemon/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/daemon/auth.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/daemon/confirmations.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/daemon/health.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/daemon/lifecycle.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/daemon/passes.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/daemon/pauses.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/daemon/policy.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/daemon/tokens.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/doctor/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/doctor/android.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/doctor/macos.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/doctor/report.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/doctor/tap.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/doctor/worktree.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/mcp/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/bar_names.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/budget.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/imagehash.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/in_front.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/model.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/orientation.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/settle.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/system_alert.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/vision/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/perception/vision/probe.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/adb.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/android_sdk.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/codesign.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/developer_dir.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/device_data.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/devicectl.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/emulator.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/errors.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/git.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/identifiers.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/images.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/java.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/keyboard.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/keychain.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/lockdown.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/simctl.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/swift.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/swiftpm.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/xcode.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/platform/xcrun.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/protocol/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/protocol/messages.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/py.typed +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/scope.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/seams.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/server/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/server/agent_routes.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/server/envelope.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/server/pages.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/server/security.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/server/settings_routes.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/server/settings_view.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/server/socket_routes.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/server/static/viewer/embed.html +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/server/static/viewer/index.html +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/storage/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/storage/app_support.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/storage/claims.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/storage/private.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/adb.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/android_sdk.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/app_sdk.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/asgi.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/checkouts.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/contract.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/daemon.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/android-am-start-bad.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/android-am-start.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/android-logcat-uid.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/android-package-missing.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/android-package.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/android-pm-uid.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/android-uiautomator-landscape.xml +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/android-uiautomator-search.xml +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/android-uiautomator-settings.xml +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/android-window-search.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/android-window-settings.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-alert-ios27.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-alert-ipad-landscape-left-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-alert-ipad-upside-down-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-alert-turned-left-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-alert-turned-right-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-alert-upright-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-alert.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-keyboard.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-swiftui.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-tagged.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-app-sdk-uikit.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-files-navigation-bar-de-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-files-tab-bar-de-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-floating-button-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-health-tab-bar-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-home-complete.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-home-ios27.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-keyboard-ios27.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-native-files-navigation-bar-de-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-probe-ios27.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-probe-ipad-upside-down-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-probe-rotated-left-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-safari-ios27.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-safari-typed.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-settings-back-button-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-settings-interactable.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-settings-ios27.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-settings-search-field-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-settings-toolbar-ja-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-settings-under-navigation-bar-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-turned-landscape-left-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-turned-landscape-right-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-turned-maps-alert-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-turned-portrait-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-turned-reminders-portrait-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-turned-safari-landscape-left-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/ax-turned-safari-landscape-right-ios26.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/development-certificate.pem +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/devicectl-appearance.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/devicectl-apps.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/devicectl-devices.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/devicectl-displays.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/devicectl-launch-missing.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/devicectl-launch.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/devicectl-lock-state.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/devicectl-processes.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/devicectl-screenshot.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/gradle-aapt-error.log +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/gradle-kotlin-error.log +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/gradle-output-metadata.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/gradle-test-failure.log +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/junit-android-failure.xml +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/mcpbridge-answers.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-alert.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-home.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-keyboard.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-probe.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-safari.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/mcpbridge-hierarchy-settings.txt +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/simctl-devices.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/simctl-runtimes.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcodebuild-list-names.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcodebuild-list.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcodebuild-settings-test.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcodebuild-settings.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcodebuild-test-plans-none.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcodebuild-test-plans.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcresult-build-broken.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcresult-build-ok.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcresult-build-results-unbuilt.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-retries.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-swift-testing-xcode27.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-swift-testing.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary-unbuilt.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcresult-test-summary.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests-retries.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests-swift-testing-xcode27.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests-swift-testing.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcresult-test-tests.json +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcscheme-staging.xcscheme +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xcscheme-test-plans.xcscheme +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xctestplan-everything.xctestplan +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/fixtures/xctestplan-units-only.xctestplan +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/gradle.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/guards.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/native.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/pictures.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/recording.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/rig.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/testing/scrcpy.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/tools/__init__.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/tools/app.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/tools/results.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/src/sim_mirror/validation.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.0}/tests/unit/protocol/test_messages.py +0 -0
- {sim_mirror-2.2.0 → sim_mirror-2.4.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.4.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,12 +58,15 @@ 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.4.** 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
|
|
65
65
|
> in, and adds observe mode for walkthroughs on accounts an agent must not change. 2.2 adds Android emulators and
|
|
66
|
-
> phones, with the same viewer, cursor and tools.
|
|
66
|
+
> phones, with the same viewer, cursor and tools. 2.3 attaches a real device again by itself once a pulled cable is
|
|
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
|
+
> 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. It removes nothing 1.x promised.
|
|
67
70
|
|
|
68
71
|
## Why SimMirror
|
|
69
72
|
|
|
@@ -91,7 +94,7 @@ Cursor and any other MCP client.
|
|
|
91
94
|
**Any MCP client**, as a stdio server:
|
|
92
95
|
|
|
93
96
|
```sh
|
|
94
|
-
claude mcp add sim-mirror -- uvx --from sim-mirror==2.
|
|
97
|
+
claude mcp add sim-mirror -- uvx --from sim-mirror==2.4.0 sim-mirror mcp
|
|
95
98
|
```
|
|
96
99
|
|
|
97
100
|
Configurations for [Codex](docs/clients/codex.md), [Cursor](docs/clients/cursor.md) and
|
|
@@ -100,7 +103,7 @@ Configurations for [Codex](docs/clients/codex.md), [Cursor](docs/clients/cursor.
|
|
|
100
103
|
**The command**, for `sim-mirror open`, `doctor` and the rest:
|
|
101
104
|
|
|
102
105
|
```sh
|
|
103
|
-
uv tool install sim-mirror==2.
|
|
106
|
+
uv tool install sim-mirror==2.4.0
|
|
104
107
|
# or
|
|
105
108
|
brew install andrewkochulab/tap/sim-mirror
|
|
106
109
|
```
|
|
@@ -253,7 +256,9 @@ the [command line](docs/reference/cli.md) and the [protocol](docs/reference/prot
|
|
|
253
256
|
| **v1.2** | SimMirror's own native helper instead of idb_companion, screens read from their pixels and settling past endless animations, an optional in-app debug SDK, and a Homebrew tap |
|
|
254
257
|
| **v2.0** | Real iPhones and iPads: the live screen over the cable, apps, logs, look and location without signing; full control through WebDriverAgent; recording a screen as an MP4 or GIF |
|
|
255
258
|
| **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 |
|
|
256
|
-
| **v2.2**
|
|
259
|
+
| **v2.2** | Android emulators and phones with the same viewer, cursor and tools: adb, scrcpy's live screen, and Gradle builds |
|
|
260
|
+
| **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 |
|
|
261
|
+
| **v2.4** (now) | 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 |
|
|
257
262
|
| **Website & launch** | Landing page, video tutorials and guides |
|
|
258
263
|
|
|
259
264
|
See [ROADMAP.md](ROADMAP.md) and the [milestones](https://github.com/AndrewKochulab/sim-mirror/milestones). How
|
|
@@ -21,12 +21,15 @@ 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.4.** 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
|
|
28
28
|
> in, and adds observe mode for walkthroughs on accounts an agent must not change. 2.2 adds Android emulators and
|
|
29
|
-
> phones, with the same viewer, cursor and tools.
|
|
29
|
+
> phones, with the same viewer, cursor and tools. 2.3 attaches a real device again by itself once a pulled cable is
|
|
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
|
+
> 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. It removes nothing 1.x promised.
|
|
30
33
|
|
|
31
34
|
## Why SimMirror
|
|
32
35
|
|
|
@@ -54,7 +57,7 @@ Cursor and any other MCP client.
|
|
|
54
57
|
**Any MCP client**, as a stdio server:
|
|
55
58
|
|
|
56
59
|
```sh
|
|
57
|
-
claude mcp add sim-mirror -- uvx --from sim-mirror==2.
|
|
60
|
+
claude mcp add sim-mirror -- uvx --from sim-mirror==2.4.0 sim-mirror mcp
|
|
58
61
|
```
|
|
59
62
|
|
|
60
63
|
Configurations for [Codex](docs/clients/codex.md), [Cursor](docs/clients/cursor.md) and
|
|
@@ -63,7 +66,7 @@ Configurations for [Codex](docs/clients/codex.md), [Cursor](docs/clients/cursor.
|
|
|
63
66
|
**The command**, for `sim-mirror open`, `doctor` and the rest:
|
|
64
67
|
|
|
65
68
|
```sh
|
|
66
|
-
uv tool install sim-mirror==2.
|
|
69
|
+
uv tool install sim-mirror==2.4.0
|
|
67
70
|
# or
|
|
68
71
|
brew install andrewkochulab/tap/sim-mirror
|
|
69
72
|
```
|
|
@@ -216,7 +219,9 @@ the [command line](docs/reference/cli.md) and the [protocol](docs/reference/prot
|
|
|
216
219
|
| **v1.2** | SimMirror's own native helper instead of idb_companion, screens read from their pixels and settling past endless animations, an optional in-app debug SDK, and a Homebrew tap |
|
|
217
220
|
| **v2.0** | Real iPhones and iPads: the live screen over the cable, apps, logs, look and location without signing; full control through WebDriverAgent; recording a screen as an MP4 or GIF |
|
|
218
221
|
| **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 |
|
|
219
|
-
| **v2.2**
|
|
222
|
+
| **v2.2** | Android emulators and phones with the same viewer, cursor and tools: adb, scrcpy's live screen, and Gradle builds |
|
|
223
|
+
| **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 |
|
|
224
|
+
| **v2.4** (now) | 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 |
|
|
220
225
|
| **Website & launch** | Landing page, video tutorials and guides |
|
|
221
226
|
|
|
222
227
|
See [ROADMAP.md](ROADMAP.md) and the [milestones](https://github.com/AndrewKochulab/sim-mirror/milestones). How
|
|
@@ -11,12 +11,13 @@ The plugin adds the tools, a skill that teaches the snapshot-first way to use th
|
|
|
11
11
|
/plugin install sim-mirror@sim-mirror
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Its tools are named `mcp__plugin_sim-
|
|
14
|
+
Its tools are named `mcp__plugin_sim-mirror_device__sim_snapshot` and so on (`mcp__plugin_sim-mirror_sim-mirror__…` up to
|
|
15
|
+
2.2).
|
|
15
16
|
|
|
16
17
|
## Without the plugin
|
|
17
18
|
|
|
18
19
|
```sh
|
|
19
|
-
claude mcp add sim-mirror -- uvx --from sim-mirror==2.
|
|
20
|
+
claude mcp add sim-mirror -- uvx --from sim-mirror==2.4.0 sim-mirror mcp
|
|
20
21
|
```
|
|
21
22
|
|
|
22
23
|
Add `--scope project` before the name to write it to the project's `.mcp.json` for everyone working on it. Its tools
|
|
@@ -30,7 +31,7 @@ simulator (its scope) and this folder as the only place builds and installs may
|
|
|
30
31
|
## Watch it
|
|
31
32
|
|
|
32
33
|
```sh
|
|
33
|
-
uvx --from sim-mirror==2.
|
|
34
|
+
uvx --from sim-mirror==2.4.0 sim-mirror open
|
|
34
35
|
```
|
|
35
36
|
|
|
36
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.4.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.4.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.4.0" \
|
|
9
9
|
uvicorn --factory app:create_app --port 7484
|
|
10
10
|
```
|
|
11
11
|
|
|
@@ -41,15 +41,20 @@ public struct RenderJob: Equatable, Sendable, Codable {
|
|
|
41
41
|
public let mp4Width: Int
|
|
42
42
|
/// How many bits the MP4 spends on its size; a job that does not say is `high`, as every MP4 was before.
|
|
43
43
|
public let mp4Quality: MovieQuality
|
|
44
|
+
/// How long the recording ran by the clock, in seconds: a still screen sends its last picture long before the
|
|
45
|
+
/// recording stops. 0, or a job from a SimMirror that did not say, is as long as its pictures run.
|
|
46
|
+
public let durationS: Double
|
|
44
47
|
|
|
45
48
|
public static let speeds = 0.25...8.0
|
|
46
49
|
public static let gifFpsRange = 1...30
|
|
47
50
|
public static let gifWidthRange = 64...2000
|
|
48
51
|
public static let mp4WidthRange = 0...4000
|
|
52
|
+
/// Up to a day: longer than any recording SimMirror lets run.
|
|
53
|
+
public static let durationRange = 0.0...86_400
|
|
49
54
|
|
|
50
55
|
enum CodingKeys: String, CodingKey {
|
|
51
56
|
case input, inputKind = "input_kind", touches, mp4, gif, codec, speed, gifFps = "gif_fps", gifWidth = "gif_width"
|
|
52
|
-
case mp4Width = "mp4_width", mp4Quality = "mp4_quality"
|
|
57
|
+
case mp4Width = "mp4_width", mp4Quality = "mp4_quality", durationS = "duration_s"
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
public init(from decoder: Decoder) throws {
|
|
@@ -65,11 +70,24 @@ public struct RenderJob: Equatable, Sendable, Codable {
|
|
|
65
70
|
gifWidth = try values.decode(Int.self, forKey: .gifWidth)
|
|
66
71
|
mp4Width = try values.decodeIfPresent(Int.self, forKey: .mp4Width) ?? 0
|
|
67
72
|
mp4Quality = try values.decodeIfPresent(MovieQuality.self, forKey: .mp4Quality) ?? .high
|
|
73
|
+
durationS = try values.decodeIfPresent(Double.self, forKey: .durationS) ?? 0
|
|
68
74
|
}
|
|
69
75
|
|
|
70
76
|
/// The width the MP4 is drawn no wider than, or nil for the recording's own.
|
|
71
77
|
public var movieWidth: Int? { mp4Width > 0 ? mp4Width : nil }
|
|
72
78
|
|
|
79
|
+
/// How long the recording runs, in seconds: as long as it ran by the clock, or as its pictures run when they run
|
|
80
|
+
/// longer -- never cut short at the last picture a still screen sent.
|
|
81
|
+
public func length(of pictures: Double) -> Double {
|
|
82
|
+
max(pictures.isFinite ? pictures : 0, durationS)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/// The frames a file of this job is made of, at `fps` a second, for a recording whose pictures run `pictures`
|
|
86
|
+
/// seconds.
|
|
87
|
+
public func ticks(pictures: Double, fps: Int) -> Ticks {
|
|
88
|
+
Ticks.make(duration: length(of: pictures), speed: speed, fps: fps)
|
|
89
|
+
}
|
|
90
|
+
|
|
73
91
|
/// A job read from SimMirror's JSON, refused when it asks for something that cannot be made.
|
|
74
92
|
public static func read(_ data: Data) throws -> RenderJob {
|
|
75
93
|
let job: RenderJob
|
|
@@ -84,6 +102,7 @@ public struct RenderJob: Equatable, Sendable, Codable {
|
|
|
84
102
|
guard gifFpsRange.contains(job.gifFps) else { throw HelperFailure("gif_fps must be 1 to 30", status: 400) }
|
|
85
103
|
guard gifWidthRange.contains(job.gifWidth) else { throw HelperFailure("gif_width must be 64 to 2000", status: 400) }
|
|
86
104
|
guard mp4WidthRange.contains(job.mp4Width) else { throw HelperFailure("mp4_width must be 0 to 4000", status: 400) }
|
|
105
|
+
guard durationRange.contains(job.durationS) else { throw HelperFailure("duration_s must be 0 to 86400", status: 400) }
|
|
87
106
|
return job
|
|
88
107
|
}
|
|
89
108
|
}
|
|
@@ -217,6 +236,31 @@ public struct Ticks: Equatable, Sendable {
|
|
|
217
236
|
public var length: Double { Double(times.count) / Double(fps) }
|
|
218
237
|
}
|
|
219
238
|
|
|
239
|
+
/// Moves a recording's pictures on to a moment: keeps the last one shown by then, reading ahead one picture. Past the
|
|
240
|
+
/// last picture it keeps showing that one, so a recording that ran on after its screen stopped changing still shows it
|
|
241
|
+
/// to the end.
|
|
242
|
+
public struct Playhead<Picture> {
|
|
243
|
+
public private(set) var shown: Picture?
|
|
244
|
+
private var ahead: (time: Double, picture: Picture)?
|
|
245
|
+
private var ended = false
|
|
246
|
+
|
|
247
|
+
public init() {}
|
|
248
|
+
|
|
249
|
+
/// The picture shown at `time`: the last one `next` gave whose time is not after it, or the first one, before any.
|
|
250
|
+
public mutating func advance(to time: Double, next: () throws -> (time: Double, picture: Picture)?) rethrows -> Picture? {
|
|
251
|
+
while !ended {
|
|
252
|
+
if ahead == nil {
|
|
253
|
+
ahead = try next()
|
|
254
|
+
if ahead == nil { ended = true; break }
|
|
255
|
+
}
|
|
256
|
+
guard let upcoming = ahead, upcoming.time <= time || shown == nil else { break }
|
|
257
|
+
shown = upcoming.picture
|
|
258
|
+
ahead = nil
|
|
259
|
+
}
|
|
260
|
+
return shown
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
220
264
|
/// The size a rendered file is drawn at: the recording's own, no wider than `width`, both sides even as H.264 wants.
|
|
221
265
|
public func renderedSize(sourceWidth: Int, sourceHeight: Int, width: Int?) -> (width: Int, height: Int) {
|
|
222
266
|
guard sourceWidth > 0, sourceHeight > 0 else { return (2, 2) }
|
|
@@ -12,7 +12,9 @@ import VideoToolbox
|
|
|
12
12
|
/// Renders a recording as SimMirror asks (`RenderJob`): an MP4 and a GIF, each at a steady rate in its own time (`Ticks`),
|
|
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
|
-
/// or JPEGs -- all read forward once for each file written.
|
|
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`). A file that cannot be finished is removed, never left half
|
|
17
|
+
/// written.
|
|
16
18
|
public enum RecordingRenderer {
|
|
17
19
|
/// Frames a second in a rendered MP4.
|
|
18
20
|
public static let movieFps = 30
|
|
@@ -48,26 +50,6 @@ protocol PictureSource {
|
|
|
48
50
|
mutating func picture(at time: Double) throws -> CIImage?
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
/// Moves a source's pictures on to a moment: keeps the last one shown by then, reading ahead one picture.
|
|
52
|
-
struct Playhead {
|
|
53
|
-
private(set) var shown: CIImage?
|
|
54
|
-
private var ahead: (time: Double, image: CIImage)?
|
|
55
|
-
private var ended = false
|
|
56
|
-
|
|
57
|
-
mutating func advance(to time: Double, next: () throws -> (time: Double, image: CIImage)?) rethrows -> CIImage? {
|
|
58
|
-
while !ended {
|
|
59
|
-
if ahead == nil {
|
|
60
|
-
ahead = try next()
|
|
61
|
-
if ahead == nil { ended = true; break }
|
|
62
|
-
}
|
|
63
|
-
guard let upcoming = ahead, upcoming.time <= time || shown == nil else { break }
|
|
64
|
-
shown = upcoming.image
|
|
65
|
-
ahead = nil
|
|
66
|
-
}
|
|
67
|
-
return shown
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
53
|
/// A movie's pictures, through AVAssetReader.
|
|
72
54
|
struct MoviePictures: PictureSource {
|
|
73
55
|
let width: Int
|
|
@@ -76,7 +58,7 @@ struct MoviePictures: PictureSource {
|
|
|
76
58
|
private let reader: AVAssetReader
|
|
77
59
|
private let output: AVAssetReaderTrackOutput
|
|
78
60
|
private let transform: CGAffineTransform
|
|
79
|
-
private var playhead = Playhead()
|
|
61
|
+
private var playhead = Playhead<CIImage>()
|
|
80
62
|
|
|
81
63
|
init(url: URL) async throws {
|
|
82
64
|
let asset = AVURLAsset(url: url)
|
|
@@ -114,7 +96,7 @@ struct FramePictures: PictureSource {
|
|
|
114
96
|
let duration: Double
|
|
115
97
|
private var reader: FrameFile.Reader
|
|
116
98
|
private let decoder = H264Decoder()
|
|
117
|
-
private var playhead = Playhead()
|
|
99
|
+
private var playhead = Playhead<CIImage>()
|
|
118
100
|
|
|
119
101
|
init(url: URL) throws {
|
|
120
102
|
var scan = try FramePictures.open(url)
|
|
@@ -285,8 +267,17 @@ enum Frames {
|
|
|
285
267
|
/// through AVAssetWriter. It has no sound: a recording has none.
|
|
286
268
|
enum MovieWriter {
|
|
287
269
|
static func write(_ source: inout any PictureSource, job: RenderJob, to url: URL) async throws -> RenderedFile {
|
|
288
|
-
let (width, height) = renderedSize(sourceWidth: source.width, sourceHeight: source.height, width: job.movieWidth)
|
|
289
270
|
try? FileManager.default.removeItem(at: url)
|
|
271
|
+
do {
|
|
272
|
+
return try await written(&source, job: job, to: url)
|
|
273
|
+
} catch {
|
|
274
|
+
try? FileManager.default.removeItem(at: url)
|
|
275
|
+
throw error
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
private static func written(_ source: inout any PictureSource, job: RenderJob, to url: URL) async throws -> RenderedFile {
|
|
280
|
+
let (width, height) = renderedSize(sourceWidth: source.width, sourceHeight: source.height, width: job.movieWidth)
|
|
290
281
|
let writer = try AVAssetWriter(outputURL: url, fileType: .mp4)
|
|
291
282
|
let bitrate = job.mp4Quality.bitrate(width: width, height: height)
|
|
292
283
|
let input = AVAssetWriterInput(mediaType: .video, outputSettings: [
|
|
@@ -305,7 +296,7 @@ enum MovieWriter {
|
|
|
305
296
|
guard writer.startWriting() else { throw HelperFailure("the MP4 cannot be written: \(writer.error?.localizedDescription ?? "no reason")") }
|
|
306
297
|
writer.startSession(atSourceTime: .zero)
|
|
307
298
|
let context = CIContext(options: [.cacheIntermediates: false])
|
|
308
|
-
let ticks =
|
|
299
|
+
let ticks = job.ticks(pictures: source.duration, fps: RecordingRenderer.movieFps)
|
|
309
300
|
for (index, tick) in ticks.times.enumerated() {
|
|
310
301
|
guard let picture = try source.picture(at: tick.source) else { continue }
|
|
311
302
|
while !input.isReadyForMoreMediaData { try await Task.sleep(nanoseconds: 2_000_000) }
|
|
@@ -320,6 +311,8 @@ enum MovieWriter {
|
|
|
320
311
|
}
|
|
321
312
|
}
|
|
322
313
|
input.markAsFinished()
|
|
314
|
+
// The last frame shows until the file's end, not only for the moment it began.
|
|
315
|
+
writer.endSession(atSourceTime: CMTime(value: CMTimeValue(ticks.times.count), timescale: CMTimeScale(ticks.fps)))
|
|
323
316
|
await writer.finishWriting()
|
|
324
317
|
guard writer.status == .completed else { throw HelperFailure("the MP4 was not finished: \(writer.error?.localizedDescription ?? "no reason")") }
|
|
325
318
|
return RenderedFile(path: url.path, format: "mp4", width: width, height: height, durationS: ticks.length)
|
|
@@ -329,8 +322,18 @@ enum MovieWriter {
|
|
|
329
322
|
/// An animated GIF at its own width and rate, through ImageIO; a frame the same as the one before only lengthens it.
|
|
330
323
|
enum GIFWriter {
|
|
331
324
|
static func write(_ source: inout any PictureSource, job: RenderJob, to url: URL) throws -> RenderedFile {
|
|
325
|
+
do {
|
|
326
|
+
return try written(&source, job: job, to: url)
|
|
327
|
+
} catch {
|
|
328
|
+
try? FileManager.default.removeItem(at: url)
|
|
329
|
+
throw error
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/// ImageIO is told the most frames there can be; a frame the same as the one before is left out, which it allows.
|
|
334
|
+
private static func written(_ source: inout any PictureSource, job: RenderJob, to url: URL) throws -> RenderedFile {
|
|
332
335
|
let (width, height) = renderedSize(sourceWidth: source.width, sourceHeight: source.height, width: job.gifWidth)
|
|
333
|
-
let ticks =
|
|
336
|
+
let ticks = job.ticks(pictures: source.duration, fps: job.gifFps)
|
|
334
337
|
guard let destination = CGImageDestinationCreateWithURL(url as CFURL, UTType.gif.identifier as CFString, ticks.times.count, nil) else {
|
|
335
338
|
throw HelperFailure("ImageIO cannot write a GIF here")
|
|
336
339
|
}
|
|
@@ -153,4 +153,64 @@ import Testing
|
|
|
153
153
|
#expect(AnnexB.nalUnits(Data([1, 2, 3])).isEmpty && AnnexB.type(Data()) == 0)
|
|
154
154
|
#expect(AnnexB.nalUnits(Data([0, 0, 1, 0, 0, 1, 0x41])) == [Data([0x41])])
|
|
155
155
|
}
|
|
156
|
+
|
|
157
|
+
static func lasting(_ seconds: String, speed: String = "1") throws -> RenderJob {
|
|
158
|
+
let asked = job
|
|
159
|
+
.replacingOccurrences(of: #""gif_width":600"#, with: #""gif_width":600,"duration_s":\#(seconds)"#)
|
|
160
|
+
.replacingOccurrences(of: #""speed":2"#, with: #""speed":\#(speed)"#)
|
|
161
|
+
return try RenderJob.read(Data(asked.utf8))
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@Test func aRecordingOfAStillScreenRunsAsLongAsItRanByTheClock() throws {
|
|
165
|
+
// 120 s recorded, the screen's last picture sent 0.3 s in: the file still plays 120 s.
|
|
166
|
+
let still = try Self.lasting("120")
|
|
167
|
+
#expect(still.durationS == 120 && still.length(of: 0.3) == 120)
|
|
168
|
+
let movie = still.ticks(pictures: 0.3, fps: 30)
|
|
169
|
+
#expect(movie.length == 120 && movie.times.count == 3600 && movie.times.last?.source ?? 0 < 120)
|
|
170
|
+
#expect(still.ticks(pictures: 0.3, fps: 12).length == 120)
|
|
171
|
+
#expect(try Self.lasting("120", speed: "2").ticks(pictures: 0.3, fps: 30).length == 60)
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@Test func pictureLongerThanTheClockSaysOrAnUnknownLengthIsWhatCounts() throws {
|
|
175
|
+
let job = try Self.lasting("2.5")
|
|
176
|
+
#expect(job.length(of: 4) == 4 && job.length(of: .nan) == 2.5 && job.length(of: .infinity) == 2.5)
|
|
177
|
+
// A SimMirror that does not say how long it ran renders as long as the pictures run, as before.
|
|
178
|
+
let older = try RenderJob.read(Data(Self.job.utf8))
|
|
179
|
+
#expect(older.durationS == 0 && older.length(of: 3) == 3)
|
|
180
|
+
#expect(older.ticks(pictures: 3, fps: 4) == Ticks.make(duration: 3, speed: 2, fps: 4))
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@Test(arguments: ["-1", "86401"])
|
|
184
|
+
func aDurationNoRecordingCouldHaveIsRefused(seconds: String) {
|
|
185
|
+
do {
|
|
186
|
+
_ = try Self.lasting(seconds)
|
|
187
|
+
Issue.record("\(seconds) was read")
|
|
188
|
+
} catch {
|
|
189
|
+
#expect((error as? HelperFailure)?.message == "duration_s must be 0 to 86400")
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@Test func thePlayheadHoldsTheLastPictureToTheEnd() {
|
|
194
|
+
var pictures: [(time: Double, picture: String)] = [(0.4, "a"), (1, "b"), (2, "c")]
|
|
195
|
+
var asked = 0
|
|
196
|
+
var playhead = Playhead<String>()
|
|
197
|
+
func next() -> (time: Double, picture: String)? {
|
|
198
|
+
asked += 1
|
|
199
|
+
return pictures.isEmpty ? nil : pictures.removeFirst()
|
|
200
|
+
}
|
|
201
|
+
#expect(playhead.advance(to: 0, next: next) == "a", "the first picture shows from the start")
|
|
202
|
+
#expect(playhead.advance(to: 0.9, next: next) == "a")
|
|
203
|
+
#expect(playhead.advance(to: 1, next: next) == "b" && playhead.shown == "b")
|
|
204
|
+
#expect(playhead.advance(to: 5, next: next) == "c")
|
|
205
|
+
let read = asked
|
|
206
|
+
#expect(playhead.advance(to: 120, next: next) == "c", "the last picture holds long after it was sent")
|
|
207
|
+
#expect(asked == read, "nothing more is read once the pictures end")
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@Test func aPlayheadWithNoPicturesShowsNoneAndPassesOnWhatReadingThrows() throws {
|
|
211
|
+
var empty = Playhead<Int>()
|
|
212
|
+
#expect(empty.advance(to: 1) { nil } == nil && empty.shown == nil)
|
|
213
|
+
var broken = Playhead<Int>()
|
|
214
|
+
#expect(throws: HelperFailure.self) { try broken.advance(to: 1) { throw HelperFailure("a recorded frame cannot be read") } }
|
|
215
|
+
}
|
|
156
216
|
}
|
|
@@ -98,13 +98,42 @@
|
|
|
98
98
|
"required": ["id", "device", "started_at", "duration_ms", "files", "notes"]
|
|
99
99
|
},
|
|
100
100
|
"RecordingList": {
|
|
101
|
-
"description": "GET a scope's recordings: those kept, newest first,
|
|
101
|
+
"description": "GET a scope's recordings: those kept, newest first, the one under way on its device, and those still being rendered.",
|
|
102
102
|
"type": "object",
|
|
103
103
|
"properties": {
|
|
104
104
|
"recordings": { "type": "array", "items": { "$ref": "#/$defs/Recording" } },
|
|
105
|
-
"recording": { "oneOf": [{ "$ref": "common.schema.json#/$defs/RecordingState" }, { "type": "null" }] }
|
|
105
|
+
"recording": { "oneOf": [{ "$ref": "common.schema.json#/$defs/RecordingState" }, { "type": "null" }] },
|
|
106
|
+
"finishing": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": { "$ref": "#/$defs/RecordingFinishing" },
|
|
109
|
+
"description": "Recordings that have stopped and are still being rendered; each is in recordings once it is kept. An older server does not send it."
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": ["recordings", "recording", "finishing"]
|
|
113
|
+
},
|
|
114
|
+
"RecordingFinishing": {
|
|
115
|
+
"description": "A recording that has stopped and is still being rendered into its files.",
|
|
116
|
+
"type": "object",
|
|
117
|
+
"properties": {
|
|
118
|
+
"id": { "type": "string" },
|
|
119
|
+
"device": { "type": "string", "description": "The name of the device recorded." },
|
|
120
|
+
"started_at": { "type": "string", "description": "When it began, as an ISO 8601 time in UTC." },
|
|
121
|
+
"recorded_ms": { "type": "integer", "minimum": 0, "description": "How long it recorded before it stopped." },
|
|
122
|
+
"stopped_by_itself": { "type": "boolean", "description": "Whether it stopped by itself, at its limit, rather than when asked." },
|
|
123
|
+
"paths": { "type": "array", "items": { "type": "string" }, "description": "Where its files will be kept on this Mac." }
|
|
124
|
+
},
|
|
125
|
+
"required": ["id", "device", "started_at", "recorded_ms", "stopped_by_itself", "paths"]
|
|
126
|
+
},
|
|
127
|
+
"RecordingStopped": {
|
|
128
|
+
"description": "DELETE a scope's recording: what was kept -- or, while it is still being rendered, what it is so far, with no files yet and a note saying where they will be.",
|
|
129
|
+
"type": "object",
|
|
130
|
+
"properties": {
|
|
131
|
+
"recording": { "$ref": "#/$defs/Recording" },
|
|
132
|
+
"recorded_ms": { "type": "integer", "minimum": 0, "description": "How long it recorded before it stopped. An older server does not send it." },
|
|
133
|
+
"stopped_by_itself": { "type": "boolean", "description": "Whether it had already stopped by itself, at its limit, before it was asked to. An older server does not send it." },
|
|
134
|
+
"rendering": { "type": "boolean", "description": "Whether it is still being rendered: its files are kept, and listed, once it is. An older server does not send it." }
|
|
106
135
|
},
|
|
107
|
-
"required": ["
|
|
136
|
+
"required": ["recording", "recorded_ms", "stopped_by_itself", "rendering"]
|
|
108
137
|
},
|
|
109
138
|
"TouchSetupState": {
|
|
110
139
|
"description": "How touching a scope's real device stands: nothing to set up (a simulator, or none running), WebDriverAgent turned off, touch working, no team known to sign WebDriverAgent, a person's Set up touch offered, WebDriverAgent being built, being started on the device, or failed and why.",
|
|
@@ -123,9 +152,10 @@
|
|
|
123
152
|
"state": { "$ref": "#/$defs/TouchSetupState" },
|
|
124
153
|
"message": { "type": "string", "description": "What to tell a person; empty when there is nothing to say." },
|
|
125
154
|
"team": { "type": ["string", "null"], "description": "The team that signs WebDriverAgent here, when one is known." },
|
|
126
|
-
"team_from": { "oneOf": [{ "$ref": "#/$defs/TeamSource" }, { "type": "null" }] }
|
|
155
|
+
"team_from": { "oneOf": [{ "$ref": "#/$defs/TeamSource" }, { "type": "null" }] },
|
|
156
|
+
"last_error": { "type": ["string", "null"], "description": "What last kept what drives the device -- WebDriverAgent on a real iPhone -- from driving it, with when; null when nothing has since it last did." }
|
|
127
157
|
},
|
|
128
|
-
"required": ["state", "message", "team", "team_from"]
|
|
158
|
+
"required": ["state", "message", "team", "team_from", "last_error"]
|
|
129
159
|
},
|
|
130
160
|
"Chosen": {
|
|
131
161
|
"description": "PUT a scope's device: the simulator it uses from now on.",
|
|
@@ -158,9 +188,14 @@
|
|
|
158
188
|
"type": "object",
|
|
159
189
|
"properties": {
|
|
160
190
|
"scope": { "type": "string" },
|
|
161
|
-
"expires_in_s": { "type": "number", "minimum": 0 }
|
|
191
|
+
"expires_in_s": { "type": "number", "minimum": 0 },
|
|
192
|
+
"agent_idle_s": {
|
|
193
|
+
"description": "How long the agent's client may go without a tool call before it stops renewing its lease: the scope's device.agent_idle_minutes.",
|
|
194
|
+
"type": "number",
|
|
195
|
+
"minimum": 0
|
|
196
|
+
}
|
|
162
197
|
},
|
|
163
|
-
"required": ["scope", "expires_in_s"]
|
|
198
|
+
"required": ["scope", "expires_in_s", "agent_idle_s"]
|
|
164
199
|
},
|
|
165
200
|
"Pause": {
|
|
166
201
|
"description": "GET, PUT or DELETE a scope's pause: whether a person has paused agents' gestures on the device the scope uses, and for how much longer. It lifts by itself when it runs out.",
|
|
@@ -55,8 +55,10 @@ Spawn = Callable[[Sequence[str], Path], Awaitable[Any]]
|
|
|
55
55
|
|
|
56
56
|
def daemon_log_config() -> dict[str, Any]:
|
|
57
57
|
"""uvicorn's logging, with SimMirror's own loggers written the same way: to stderr, which a detached daemon
|
|
58
|
-
appends to its log."""
|
|
58
|
+
appends to its log -- each line starting with when it was written."""
|
|
59
59
|
config = copy.deepcopy(uvicorn.config.LOGGING_CONFIG)
|
|
60
|
+
for formatter in config["formatters"].values():
|
|
61
|
+
formatter["fmt"] = "%(asctime)s " + formatter["fmt"]
|
|
60
62
|
config["loggers"]["sim_mirror"] = {"handlers": ["default"], "level": "INFO"}
|
|
61
63
|
return config
|
|
62
64
|
|
|
@@ -13,6 +13,7 @@ import json
|
|
|
13
13
|
from typing import Any
|
|
14
14
|
|
|
15
15
|
from sim_mirror.cli.context import CliContext
|
|
16
|
+
from sim_mirror.cli.wda import in_use
|
|
16
17
|
from sim_mirror.connectors.registry import ConnectorContext
|
|
17
18
|
from sim_mirror.core.devices import JsonDeviceMemory
|
|
18
19
|
from sim_mirror.core.runtime import Runtime
|
|
@@ -67,6 +68,8 @@ async def _diagnose(args: argparse.Namespace, ctx: CliContext) -> int:
|
|
|
67
68
|
run_dir=state.run_dir(),
|
|
68
69
|
folder=ctx.cwd,
|
|
69
70
|
config_file=source.path,
|
|
71
|
+
touch_now=lambda: in_use(ctx),
|
|
72
|
+
log_dir=state.log_dir(),
|
|
70
73
|
**ctx.doctor_android(),
|
|
71
74
|
)
|
|
72
75
|
try:
|