Repository navigation
Changelog
All notable changes to hvolt are documented here. The format follows
Keep a Changelog; versions follow
Semantic Versioning. While the project is pre-1.0, minor
versions may change the CLI surface.
[Unreleased]
[26.0.0-9] — 2026-11-08
Added
hvolt dep sync [DIR]turns registry packages that are already on disk into
deps/<scope>/<name>/: sources move to the package root, specifiers that addressed
src/main/ets/are rewritten, each package gets its ownhvolt.toml(type=arkts/
bytecode/js), and the root[dependencies]switches topath. No network, no registry
lookup.- Hidden
hvolt abc-records <FILE>lists the records of amodules.abcwith the source file
each one came from, without the SDK'sark_disasm. hvolt dep syncis the only writer ofdeps/; the build resolves a package's kind, entry and
version from its ownhvolt.tomlor its directory shape.
Changed
- Device access speaks the hdc wire protocol in process: the handshake (RSA-PSS over SHA512
with a fresh session id),shell, file send and install all run against the device'shdcd
without spawninghdc. - The build reads no hvigor manifest:
oh-package.json5,build-profile.json5,package.json
andhvigorfile.tsare not configuration sources, and a bare import the[dependencies]table
does not cover is an error naming the package instead of being resolved from a leftover
manifest.src/main/etsno longer exists inside dependencies. - Byte-code dependencies carry
modules.abcat the package root (deps/<x>/modules.abc), not
underets/. - API level → bytecode version comes from an in-tree table (
src/build/deps/sdk_bytecode.rs, 19
rows) instead of running the SDK'sts2abc.jsthrough Node. rpcid.scis encoded in-tree (src/build/artifacts/rpcid_sc.rs) instead of invoking the SDK's
syscap_tool. Byte-identical to the tool's output on the measured fixture (52742 bytes,
sha25656435e3f…690e8f).- Signing, packing and package checking no longer run the SDK's Java tools.
hvolt signuses
hapsignerin process for localSign, for signing the provisioning profile, and for the
acceptance checks;hvolt checkcomputes duplicate / oversized / per-suffix statistics from
the archive directory instead of parsing the tool'sstat.json; the hiddenhvolt pack-hap
assembles a HAP from hvigor intermediates.
Fixed
hvolt doctorno longer reports a device-type error for library modules:type = "har"/
"hsp"members ship no device profile, so theirdevice_typeslist is not a claim the
installed SDK has to satisfy.hvolt check --size-limitcompares bytes. The SDK tool's--stat-file-sizeis in KB, so the
previous pass-through made every threshold 1024x larger than requested.- The provisioning profile carries the leaf certificate only. The whole chain used to be written
intobundle-info.distribution-certificate, which the SDK tool silently truncated. - Key aliases resolve case-insensitively against the p12 store: the official test store holds
them lower-case while callers name them as the SDK documents them.
[26.0.0-8] — 2026-11-01
Added
hvolt sign <HAP>signs a bare unsigned package where it lies, with no project and no
build: the result stays in the package's own directory as<name>-signed.hap(an input
ending in-unsignedbecomes-signed). Without--p12/--profile/--certthe package is
signed with the localSign test chain, bound to thebundleNameit declares (--bundle
covers a package that declares none); giving all three materials signs with those instead.
The result is verified withhap-sign-tool verify-appbefore the command reports success.hvolt push --hap <FILE>installs a package at an arbitrary path. An unsigned package is
refused before reaching the device transport, which would otherwise only report a signature error.
Fixed
- Signedness is now read from the archive (
META-INF/*.sig|.rsa|.ec) instead of the file
name, so a package named*-signed.hapwhose contents carry no signature is still signed,
and one that really is signed is refused rather than overwritten. - Module-level
metadatais no longer dropped from the generatedmodule.json5.resource
andvalueare emitted as the mutually exclusive fields they are, and the list no longer
assumes a preceding section — a non-entry module used to produce a closing bracket followed
by a comma, whichhvigorrejects as invalid JSON. - A dependency declared with parent components now resolves to its mirrored copy under
build/<basename>/instead of overshooting one level abovebuild/into the source tree;
.harfile dependencies keep their declared path verbatim, and a dependency with no local
path is emitted as its version rather than afile:path to a directory that does not exist. libs/content thathvigorwill drop (anything but*.so) is announced at assemble time
with the source-to-destination mapping, instead of being silently left out of the package.- Multi-device ambiguity errors list the connected devices and both remedies (
hvolt device connect <serial>, or-d <serial>per command).
[26.0.0-7] — 2026-10-27
Added
hvolt skill— the binary embeds its own documentation (usage/architecture guide, code
conventions, cross-host device flow) so any machine with hvolt has the docs without a clone
or network.hvolt skill list(with--plain/--json),hvolt skill show <id>, a content
hash so the same version with different docs is distinguishable, and SIGPIPE-safe output for
agent consumers. The embedded docs are a community-sanitised set: no private hosts, IPs, user
names or device identifiers (enforced by a leak-scan test).
Fixed
- Incremental rebuild (
hvolt assemblemirror path) now propagates native source changes into
the build tree. Previously the mirror skipped files that already existed: edited.cpp/.h
never reachedsrc/main/cpp/<module>/,Index.d.tsedits never reached the types bridge,
and deleted sources stayed in the build tree — so "rebuild" silently produced yesterday's
package untilbuild/was wiped. The mirror and full-translate paths now share the native
copy, types-bridge and stale-prune helpers; the top-level CMakeLists aggregator also rewrites
itself when the native module list changes (module-owned inline_cpp trees stay untouched).
[26.0.0-6] — 2026-10-26
Fixed
- Building a project with several native modules no longer drops all but the last one: their C++
sources were flat-copied into a singlesrc/main/cpp/, so same-named files (napi_init.cpp,
CMakeLists.txt) overwrote each other and only the last module compiled. Each native module now
mirrors into its ownsrc/main/cpp/<module>/subdirectory, wired together by a generated
top-levelCMakeLists.txt(add_subdirectoryin declaration order; an existing module-owned
file is left untouched). - Headers (
.h/.hpp) are now carried into the build tree with the C++ sources; they were
skipped entirely, so any native module split across.h/.cppfailed to compile. hvolt buildno longer fails with hvigor 00303208 "Unable to find 'sdk.dir'" when the SDK is
only set viaDEVECO_SDK_HOME:run_assemblewriteslocal.properties(sdk.dir=), as DevEco
Studio does.- The hvigor wrapper no longer fails resolving
@ohos/hvigor-ohos-plugin(ERR_PNPM_FETCH_404
— the plugin is not on the public registry): the declared dependency is rebound to the vendored
copy shipped with hvolt (afile:dependency, forward-slash paths on Windows too). - Shared/HSP/HAR
oh-package.json5mainnow resolves fromsrc/main/, where the entry file is
actually mirrored; the old bareIndex.etspointed at a file that never existed.
Changed
module.json5for entry modules now emitsisolationMode: isolationFirst.- The SDK platform version and the hvigor plugin version each have a single source of truth in the
code, with a drift-guard test (hvolt --versionstamps the same platform version the config
defaults to; the generated hvigor-config declares the plugin version the tool is built against). - Internal seams (signingConfigs scan, config defaults) extracted for testability — no CLI change.
[26.0.0-1] — 2026-10-19
Added
- A VS Code client, maintained in its own repository
(hvolt-project/hvolt-vscode): registers.ets,
launcheshvolt lsp --stdio, shows build state in the status bar and exposes Build / Run / Sign /
Install / Screenshot / Log. The copy that lived ineditor/was removed once its files and history
moved there. hvolt lsp --stdio: a language server for editors.- Palette commands in the language server:
hvolt.build,assemble,sign,push,run,
screenshot,log— each returns{ok, seconds, tail}(success taken from the exit code) and
posts awindow/showMessagenotification. - Editor features: completion (component attributes, declared object arguments, enum members, ArkTS
decorators,$r/$rawfile, module exports together with their import edit), hover, signature help,
definition, type definition, implementation, references, document highlights, outline, workspace
symbols, folding, smart selection, rename, quick fixes, semantic highlighting, inlay hints,
hvolt.tomlpath links and call hierarchy. - ArkUI blocks are rewritten before the SDK's TypeScript service reads a file (
Column() { … }becomes
Column() ;__arkui(() => { … }), with a segment map for positions), because the service's parser
rejects the block syntax and so has no scope insidebuild()— measured 2026-10-19: a completion
request there returned 1,757 global entries and the local variable was not among them. - Diagnostics in the language server come from codelinter (
hvolt lint --json) and from the SDK's
TypeScript service (type errors), both mapped from the generated trees back to the flat project paths
and merged per source. Unsaved buffers reach codelinter through an overlay, so what is on screen is
what gets judged. The rule run is skipped when its inputs are unchanged, because engine startup
dominates the cost (whole tree 2.94 s, one file 2.78 s, identical content again 0 ms). hvolt lint --scopedchecks only the files an overlay replaced.
Fixed
hvolt.tomlacceptsmembersagain: the language server reported it as an unknown
key in[app], although the parser reads it.typeis no longer offered there — it is
the toml name ofModuleInfo.module_typeand belongs to[module]only. A test now
readssrc/config.rsso the editor's key list cannot drift from the parser again.- Semantic highlighting no longer reads strings or comments:
'@kit.AbilityKit'in an
import was coloured as a decorator plus a property, because the classifier scanned the
raw line. Strings, template literals and comments are masked before identifiers are
matched, with the line length kept so positions stay exact.
[26.0.0-0] — 2026-10-18
Version numbering switches to "SDK version + release counter" (26.0.0-0; see RELEASING.md).
hvolt --version now prints the SDK the build defaults to. Behaviour is otherwise the same as 0.1.0,
plus the fixes below.
Fixed
hvolt tools install ohpmno longer hard-fails when the mirror drops the pinned 5.0.2 archive: it
falls back to the newest small, host-matching build and says which one it picked.- releases upload their
SHA256SUMS.txt, and the installers verify downloads against it. - an SDK skeleton left behind by an uninstalled DevEco Studio no longer shadows
~/.hvolt/sdk.
[0.1.0] — 2026-10-18
First public release: a HarmonyOS build tool with its own flat project layout.
- Prebuilt binaries for darwin-arm64, linux-x64, win32-x64, published to npm as
@hvolt/cliand attached to the GitHub release. - Targets SDK 26.0.0 (hvolt 0.1.x → SDK 26.0.0 pairing is fixed).
Added
- Flat project layout — one
hvolt.tomlper module, a flat tree (hvolt.tomlper module,src/,resources/) translated into a
standard HarmonyOS project;hvolt initscaffolds it,hvolt assemblegeneratesbuild/. - Build chain —
assemble→ hvigorw → sign → push → launch (hvolt build,hvolt run), with
signing configuration managed inhvolt.toml. - Native modules — C++/NAPI modules declared as dependencies; CMake wiring and the
Index.d.tstypes bridge are generated. Demonstrated inexamples/hello-native. - SDK management —
sdk list-remote,download(per-component sizes, resumable),import,
list,use,remove,set. - Tool management —
tools list,list-remote,installforhvigor,ohpmand the
Code Linter payload (--from <dir>). - Code scan —
hvolt lintdrives DevEco's codelinter engine over the translated tree, with
--all-rules,--json,--fail-on,--max-defectsand--fix. Engines that fail to run are
reported as an error instead of a clean pass. - Package checks —
hvolt check(official app_check_tool) andhvolt hap info(bundle,
version, abilities and permissions read from the package). - Signing —
sign --local(OpenHarmony localSign with the public test chain) for development
boards, emulators and source-built ROMs. Remote signing through AppGallery Connect is provided by
an optional backend that is not part of this source tree. - Device tooling —
push,apply(hqf quickfix),uninstall,log(hilog filters),
screenshot,ui dump,file send/recv,device list/connect/remote. - Emulator —
list,start,stop,create,delete,images download,license. - Diagnostics —
hvolt doctorchecks environment, SDK, tools, device, auth and project
consistency, with a fix hint per failed check. - Examples —
examples/hello-worldandexamples/hello-native.
Notes
- Requests to Huawei endpoints identify hvolt in
User-Agent(no client impersonation), and the
icon assets shipped with the scaffold are original works. hvolt lintneeds the codelinter payload, which Huawei ships only inside DevEco Studio; the
emulator needs DevEco's emulator binary and images. Every other command runs without DevEco
Studio. See the README section "DevEco Studio (optional)".