@codacy/verity-cli 0.32.0-experimental.cc76941 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +0 -46
  2. package/bin/verity.js +346 -703
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -42,12 +42,6 @@ default gates nothing** — set it with `verity config git-moments commit,push`,
42
42
  answer the question in `verity init`. An explicit `--on` still wins, so existing
43
43
  installs are untouched.
44
44
 
45
- Linked git worktrees inherit the setting from the main checkout: `.verity/` is
46
- gitignored, so a fresh `git worktree add` had no config of its own and the guard
47
- there gated nothing while `verity hooks check` said "wired but gating nothing".
48
- A worktree's own `.verity/config.json`, when present, still wins — including an
49
- explicit `none` — and `hooks check` names the file it inherited from.
50
-
51
45
  ### 🎯 Setup finishes in one command
52
46
 
53
47
  - **`verity init` now derives the Standard itself.** When the service has nothing
@@ -259,46 +253,6 @@ with one entry point.
259
253
  terminal (Ctrl+D, a pty that ends) falls back to the default instead of
260
254
  crashing init between copying the skills and wiring the hooks.
261
255
 
262
- ### 🔒 Fixed — four ways the gate could be off while reporting itself on
263
-
264
- - **`git add x && git commit` was never reviewed.** A Claude Code hook runs
265
- *before* the command, so the index it read had not had the `add` applied:
266
- no files, and the gate's "nothing staged" exit — a silent allow, with no
267
- trace that a commit had gone unreviewed. It is the shape an agent writes by
268
- default, so it was most of the pre-commit gate's coverage. The gate now works
269
- out what the command will stage, using git's own pathspec matching, and
270
- handles `git commit -a`. Where it cannot — a pathspec the shell expands,
271
- `git add -p` — it says so and lets the commit through **loudly** rather than
272
- reviewing a set it guessed at.
273
- - **Uninstalling the Claude Code plugin left projects with no gate at all.**
274
- Whether the plugin owned a project's hooks was decided by whether its install
275
- directory existed — and that directory survives an uninstall. Every project
276
- the plugin had ever run in went on standing its own hooks down for a plugin
277
- that was gone. Ownership now comes from Claude Code's install registry, and
278
- `verity init` clears the stale marker.
279
- - **`verity init` now says which mode it is in before it acts on it** — the
280
- plugin's hooks or this project's own — with the install it found and
281
- `--no-plugin` to overrule it. It does two opposite things depending on that
282
- answer, and it used to make the choice silently.
283
- - **A repository can no longer switch the gate off by shipping a file.**
284
- Ownership was claimed by `.verity/.plugin-active`, which is a file inside the
285
- project. One naming any directory that happened to exist disabled every hook
286
- in that project. An install Claude Code cannot vouch for is now ignored.
287
- - **`verity status` and `verity doctor` agree with `verity hooks check`.** Under
288
- the plugin both used to report "Stop: off" and tell you to install hooks that
289
- were firing on every turn. All three read one answer now, and it is correct
290
- from a subdirectory too.
291
- - **A commit gate on a linked worktree gates what the main checkout gates.**
292
- `.verity/config.json` is machine-local, so every `git worktree add` started
293
- with no moments and reviewed nothing.
294
- - **A verdict the client does not understand is no longer rendered as a pass.**
295
- An absent or unrecognised gate decision — a truncated response, a proxy error
296
- page — reached the "✓ PASS" line. It is reported as unreviewed.
297
- - **`verity hooks install --moments <typo>` no longer removes every gate.**
298
- Unrecognised moments were dropped, so a misspelling reconciled to nothing and
299
- reported success. It is an error now; `--moments none` turns them off on
300
- purpose.
301
-
302
256
  ## [0.31.3] — 2026-09-03
303
257
 
304
258
  **After a rebase, Verity reviewed the wrong code.** When a branch was rebased