REA HarmonyOS package notes (unofficial)
REA’s first HarmonyOS increment inventories .hap / .hsp / .app packages and projects an execution-free application graph. Prefer harmony-analysis.md.
Minimal path
rea inspect-artifact /absolute/path/Example.hap --format json > inspection.json
# wrap inventory_evidence, then:
rea project-harmony-application-graph projection-input.json --format json
MCP project_harmony_application_graph takes the same inventory_evidence input.
Mental model
- This slice is package identification + component inventory, not full runtime analysis.
- Packaging-model hints (Stage vs FA) come from specific manifest paths — otherwise
unknown. - Encrypted/unavailable entries keep unknown IDs/hashes and make coverage partial.
- App Pack children are listed by path without recursive inventory in this increment.
Legal note
Inspect only HarmonyOS packages you are authorized to examine. Do not use this path to bypass store licensing or device integrity controls.
RepoRead is unofficial. Prefer harmony-analysis.md.
FAQ
Which root formats are recognized?
Docs recognize .hap (installable module), .hsp (runtime shared package) and .app distribution App Packs (HAP/HSP children listed by path) when ZIP magic verifies. Nested .app members inside other packages stay generic zip.
Are .har libraries supported?
Not by suffix alone — .har also names HTTP Archive JSON. A Harmony shared archive needs verified ZIP bytes and is deferred with an explicit limitation.
Do I need a Harmony SDK?
No. Upstream states no external SDK, toolchain or engine is required for this inventory/projection increment.
Typical CLI flow?
rea inspect-artifact Example.hap --format json, then rea project-harmony-application-graph with inventory_evidence wrapping that Evidence.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).