Repository navigation
v26.0.0-7
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-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)".