Skip to content

feat: add HarmonyOS platform support (v2)#678

Closed
wz9527 wants to merge 1 commit into
callstack:mainfrom
wz9527:feat/harmonyos-v2
Closed

feat: add HarmonyOS platform support (v2)#678
wz9527 wants to merge 1 commit into
callstack:mainfrom
wz9527:feat/harmonyos-v2

Conversation

@wz9527
Copy link
Copy Markdown

@wz9527 wz9527 commented Jun 3, 2026

Summary

Re-implements HarmonyOS platform support on the latest main architecture after rebase from original PR failed due to major architectural changes.

Key changes:

  • Full HarmonyOS platform implementation (HDC, uitest, ArkUI)
  • New cli-grammar system integration
  • Backend capability escape hatches for HDC
  • Interactor interface with gesture method stubs
  • Cognition command for UI structure analysis

Test plan

  • All 2051 unit tests pass
  • TypeScript compilation successful
  • Manual testing on HarmonyOS device (to be done)

🤖 Generated with Claude Code

@thymikee
Copy link
Copy Markdown
Member

thymikee commented Jun 3, 2026

Thank you! This is a huge diff, everything is necessary? Please double check before I jump into reviewing. I have a HarmonyOS device at home so happy to test it later this week when I'm back from SF

Re-implement HarmonyOS platform support on the new architecture after main branch refactoring.

Platform implementation (src/platforms/harmonyos/):
- Device discovery and management via HDC
- App lifecycle (open, close, app state) with launchAbility resolution
- UI snapshot with interactive-only filtering for ArkUI
- Screenshot capture
- Input actions: scroll, rotate, keyboard, double-tap, long-press
- System dialog handling
- Clipboard, logcat, perf, and recording support

Core changes:
- Add 'harmonyos' to Platform type and device resolution
- Add 'harmonyos.hdc' to backend capabilities
- Add harmonyos interactor with gesture stubs
- Add harmonyos to command capability matrix
- Add cognition command for UI structure analysis

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@wz9527 wz9527 force-pushed the feat/harmonyos-v2 branch from a412e31 to a4e0679 Compare June 3, 2026 02:43
@wz9527
Copy link
Copy Markdown
Author

wz9527 commented Jun 3, 2026

测试不充分,暂时撤回,待完善后重新提交

@wz9527 wz9527 closed this Jun 3, 2026
@thymikee
Copy link
Copy Markdown
Member

thymikee commented Jun 3, 2026

Feel free to keep working on it, no need to close the PR

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.

2 participants