Repository navigation
v0.15.5-beta
Applying a confirmed removal should not vandalize the file it
lands in. The last honest warning of the apply path - "comments in
the source file were not preserved - diff it" - met the author's real
opencode.jsonc, where five hand-written comment lines document
exactly why the key lives in the auth store. Losing those to a
catalog refresh was not acceptable, so the write is now a SURGICAL
text operation: spliceModels rewrites ONLY the provider's models
object inside the raw bytes - kept entries move with their attached
comment lines, added entries are formatted into the existing
indentation, and every byte outside the edited list is untouched
(asserted in tests by prefix equality). Any surprise - scalar-valued
entries, unfindable keys, a result that does not verify by
re-parsing to exactly the intended id set - returns nil and falls
back to the old full rewrite WITH its warning, so the splicer can
fail safe but never fail silently. APPLIED in place (...) says
which path was taken. Same round: removals on a COMPLETE enumeration,
both-readings refusal text and current-model protection from
v0.15.4 stayed as released.
Install this release
curl -fsSL https://raw.githubusercontent.com/aignerdevelopment/harnessator/main/install.sh | bash -s -- --version v0.15.5-beta