hmos-precheck
Agent-first diff checks for HarmonyOS / ArkTS repositories.
This Python package is the primary published implementation of hmos-precheck.
It is designed for LLM or CI gate usage where stdout must stay compact and
self-explanatory.
Install
pip install hmos-precheck
Agent Protocol
Run:
hmos-precheck run --project-root <repo> --output-dir <out>
Interpret stdout JSON only:
{"ok":true}: stop.{"ok":false,"read_file":"..."}: read onlyread_file, fix only itsissues, then re-run once.- If the second run still fails, stop and report the latest
read_file.
warn findings do not block pass and are hidden from compact stdout.
Config Resolution
Resolution order:
--commandline-toolsDEVECO_SDK_HOME- project config
- user config
- auto-detect
Commands
hmos-precheck runhmos-precheck doctorhmos-precheck init
Validation
python3 -m pytest -q
Metadata
Release files for hmos-precheck 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hmos_precheck-0.1.2.tar.gz | 30.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hmos_precheck-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.3 kB
Release files / hmos_precheck-0.1.2.tar.gz
| Download URL | hmos_precheck-0.1.2.tar.gz |
|---|---|
| Size | 30.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c52483a73f0c8d479cbf02de0126ad6eb7d674cb24ebf8c280fed3e9b4713a7a
|
|
BLAKE2b-256 checksum How to use checksums |
7fccc4228fbd235a37877053c6082d861fd746ab72579ffb54145aed8437acea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / hmos_precheck-0.1.2-py3-none-any.whl
| Download URL | hmos_precheck-0.1.2-py3-none-any.whl |
|---|---|
| Size | 24.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4bba7fdf2c58ccaf9a8e3ee2f8143b32e004e6f24e6fe7091d44d7a68db4c6f
|
|
BLAKE2b-256 checksum How to use checksums |
a50e6a67883a7d9f475c4ea5f2fc29ce5645d15265935b7fb88b6eec3cedd2eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for hmos-precheck 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.