@dzhechkov/harness-core
v0.3.121
Published
Shared harness logic - skill loading, additive apply, and the init/sync/verify/doctor operations.
Maintainers
Readme
@dzhechkov/harness-core
Shared logic for the DZ harness — the engine behind @dzhechkov/harness-cli
and any other consumer.
What it provides
| Module | Exports | Purpose |
|---|---|---|
| skills | loadSkillFromDir, listSkills, discoverSkillIds | Read skill directories into CanonicalSkill objects |
| apply | applyEmitResult | Write an adapter EmitResult to disk — additively |
| targets | TARGETS, TargetName, isTargetName | --target name → platform adapter |
| operations | runInit, runSync, runVerify, runDoctor | The harness operations, returning structured reports |
The additive guarantee
applyEmitResult is the only part of the harness that writes to disk. It is
additive (ADR-001): it creates new files and directories, it never deletes,
and it never overwrites an existing file unless force: true is passed
explicitly. Operations that would overwrite are reported as skipped.
Status
0.3.20 — stable.
