feat: add HarmonyOS platform support#613
Open
wz9527 wants to merge 1 commit into
Open
Conversation
Add HarmonyOS (鸿蒙) as a first-class platform alongside iOS, Android, macOS, and Linux. This enables agent-device to automate HarmonyOS devices via HDC (HarmonyOS Device Connector). Platform implementation (src/platforms/harmonyos/): - Device discovery and management via HDC - App lifecycle (open, close, app state) with automatic launchAbility resolution via wukong appinfo - UI snapshot with interactive-only filtering (snapshot -i) for ArkUI - Screenshot capture - Input actions: scroll (4 directions), rotate, keyboard dismiss, double-tap, long-press - System dialog auto-dismissal (privacy policy, notification permission, update prompts) - Screen lock detection and auto-unlock - uitest preflight health checks - Clipboard, logcat, perf, and recording support Core changes: - Register harmonyos in backend capabilities, dispatch, interactor, and command schema - Add cognition map command for UI structure analysis (cross-platform) - Extend client types, contracts, and CLI commands for HarmonyOS - Update apps command to return structured data with app details Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Member
|
nice! can you please rebase to latest main and update accordingly? |
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
Add HarmonyOS (鸿蒙) as a first-class platform alongside iOS, Android, macOS, and Linux. This enables agent-device to automate HarmonyOS devices via HDC (HarmonyOS Device Connector).
Platform implementation (
src/platforms/harmonyos/, 17 new files)hdc list targetslaunchAbilityresolution viawukong appinfosnapshot -i)Core changes
harmonyosin backend capabilities, dispatch, interactor, and command schemacognitioncommand for UI structure analysis (cross-platform)appscommand to return structured data with app detailsTest plan
pnpm buildsucceedsconsole.log/console.warndebug leftovers (matches existing codebase style)🤖 Generated with Claude Code