Real Apple TV (tvOS) automation: dedicated TvosRobot + focus-by-identity tool#386
Draft
setoelkahfi wants to merge 3 commits into
Draft
Real Apple TV (tvOS) automation: dedicated TvosRobot + focus-by-identity tool#386setoelkahfi wants to merge 3 commits into
setoelkahfi wants to merge 3 commits into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
tvOS simulators now surface through the MCP server. - Accept `tvos` in the platform unions and validation in the mobilecli wrapper. - Drop the hard `ios` filter on simulator discovery so tvOS simulators are returned, and report each device's real platform to analytics. - List the tvOS Siri Remote buttons (UP, DOWN, LEFT, RIGHT, SELECT, MENU, PLAY_PAUSE) in the press-button tool description. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Detect physical Apple TV units by product type and report platform tvos in mobile_list_available_devices instead of hardcoding ios. Route real tvOS devices through mobilecli (which installs and drives the tvOS runner) while iPhones and iPads keep using the WebDriverAgent-based IosRobot. Add a unit test for platform detection. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a dedicated TvosRobot (mobilecli/DeviceKit-backed) for real Apple TV, keeping IosRobot/WebDriverAgent unchanged for iPhone/iPad (D2). Route real Apple TVs (platform tvos) to TvosRobot via getRobotFromDevice; iOS real devices continue to IosRobot. - TvosRobot: Siri Remote buttons (UP/DOWN/LEFT/RIGHT/SELECT/MENU/ PLAY_PAUSE); app/screenshot/view-tree/screen-size delegated to mobilecli; explicit unsupported-on-tvOS ActionableErrors for tap/doubleTap/longPress/swipe/orientation/text; best-effort openUrl - New mobile_focus_by_identifier MCP tool + Mobilecli.focusByIdentifier shelling to mobilecli io focus (accessibility-identity focus) - IosManager.listDevices retains platform so routing can distinguish Apple TV; extracted and tested robotForIosDevice helper - Device-free unit tests for routing, button mapping, unsupported ops, and focus Implements: SPECS/quality/real-tvos-device-support/SPEC.md (Milestone 5, 6) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
setoelkahfi
force-pushed
the
feature/tvos-real-device
branch
from
July 15, 2026 13:03
c29090a to
7e7c0f2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a dedicated
TvosRobottomobile-mcpso real Apple TV devices are driven through mobilecli/DeviceKit with tvOS-appropriate behavior, while leaving the existingIosRobot/WebDriverAgent path unchanged for iPhone/iPad.This is part of a three-repo upstream change across
mobile-next/mobilecli,mobile-next/devicekit-ios, andmobile-next/mobile-mcp.What's in this PR
TvosRobotfor real Apple TV routing.UP,DOWN,LEFT,RIGHT,SELECT,MENU,PLAY_PAUSE.mobile_focus_by_identifierMCP tool delegating tomobilecli io focus.IosRobot/WDA; Android and simulator routing unchanged.Validation
npm run buildnpm run linthas 0 source errorstest/tvos.tsunit tests passImplements: SPECS/quality/real-tvos-device-support/SPEC.md
Related PRs