Skip to content

Add Duo pose controls and display-aware screenshots - #122

Merged
conorluddy merged 1 commit into
mainfrom
feat/duo-simulator-controls
Nov 8, 2026
Merged

conorluddy merged 1 commit into
mainfrom
feat/duo-simulator-controls

Conversation

@conorluddy

@conorluddy conorluddy commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

All credits to @artemnovichkov and @skarol for the Duo control examples used in this.
https://github.com/artemnovichkov/hinge
https://github.com/skarol/duoctl

Adds duo.py to read and set a booted iPhone Duo's hinge and interface orientation. Commands require an explicit Duo UDID and verify observed angle, rotation and endpoint display activation before reporting success. The bundled Objective-C helper compiles with the selected Xcode and is isolated behind a Python backend.

Adds --display to app state captures and test recordings in file and inline modes. Screenshot captures use isolated temporary files and report unknown dimensions honestly when Pillow is absent. Includes regression tests, usage/backend documentation, research credits and updated script counts.

Ports the Duo features from conorluddy/xc-mcp#155; excludes npm release changes and video capture, which this package does not provide.

Validation:

  • All 359 tests passed; Black and Ruff checks for production scripts passed, and git diff --check is clean.
  • Live Xcode 27.1 / iOS 27.1 Duo: verified 0°, 90°, 127° and 180°, endpoint display switching, all four inner orientations with pauses, non-black captures of both displays, and inline inner capture.
  • Restored the simulator to closed portrait and its original shutdown state.

Known limitations: cover landscape, upside-down and flipped rotation requests timed out and correctly returned failure with observed state. Private APIs are experimental; other toolchain/runtime versions and inner-display coordinate touch routing remain unverified. Total requests can exceed the five-second polling window because reads and dispatch have separate command timeouts. Full verification notes are in references/duo.md.

@conorluddy
conorluddy merged commit 86fb9ba into main Nov 8, 2026
1 check passed
@conorluddy
conorluddy deleted the feat/duo-simulator-controls branch November 8, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant