refactor(harmonyos): ship HarmonyOS as the managed platform plugin

Merged
TH
1d ago
+3776-1885

Summary

Moves HarmonyOS from the packed core into the managed platform plugin @agent-device/harmonyos (packages/platform-harmonyos). Without the plugin, --platform harmonyos answers plugin-not-installed with its install command, and unscoped devices/doctor skip the family. Every spawn and diagnostic goes through the PlatformHost from setup; the plugin reads toolchain roots from the setup environment, not process.env. A layering rule bans runtime @agent-device/host-kit/command|diagnostics imports in managed platform packages. Part of #4317. The package stays private (#4866).

Value

metricbasehead
core installed size6.20 MB6.16 MB
core package download1.89 MB1.88 MB

Validation

Head rebased onto 0.22 at 62f24be4fd. Local: build, typecheck, lint, layering, command-docs, daemon-wire-compat, full vitest --project unit-core (20911 passed), check:package with the packed-plugin smoke (stub hdc via HDC_SDK_PATH). No live HarmonyOS target on this Mac: hdc list targets is empty and no emulator image exists; evidence in docs/evidence/harmonyos-managed-platform-2026-11-20.md. A live run or a maintainer waiver is required before merge.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.