@nodeve/checks 3.0.0 → 4.0.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.
package/README.md CHANGED
@@ -57,7 +57,7 @@ Per-check semantics, tuning, and examples: **[docs/checks.md](docs/checks.md)**.
57
57
 
58
58
  ## Prose gate (Vale)
59
59
 
60
- A second engine gates markdown _wording_ — [Vale](https://vale.sh) against the org house rules in `styles/nodeve/` (`Narration`, `Ephemeral`, `Hedging`, `Filler`, `SentenceLength`), an unguarded `vale` job in `lefthook.checks.yml`. ALWAYS ON: it runs the package's own `.vale.ini` with vendored styles — extending the shared config is the whole opt-in, no per-repo `.vale.ini`, no `vale sync`. Fails the commit if `vale` isn't installed. Rules: **[PROSE.md](PROSE.md)**.
60
+ A second engine gates markdown _wording_ — [Vale](https://vale.sh) against the org house rules in `styles/nodeve/` (`Narration`, `Ephemeral`, `Hedging`, `Filler`, `SentenceLength`), an unguarded `md-prose` job (`packages.md-tools`) in `lefthook.checks.yml`. ALWAYS ON: it runs the package's own `.vale.ini` with vendored styles — no per-repo `.vale.ini`, no `vale sync`. Fails the commit if `md-prose` is missing. Rules: **[PROSE.md](PROSE.md)**.
61
61
 
62
62
  It covers every staged `.md` — the scope `doc-tokens` budgets. One contract: stage a doc, it answers to both.
63
63
 
@@ -80,19 +80,15 @@ pre-commit:
80
80
  glob: '*.md'
81
81
  run: md-lint {staged_files}
82
82
 
83
- # Prose gate — the OTHER engine. Not a `nodeve-check` bin: it's the `vale`
84
- # binary reading the org house rules straight from the package's OWN
85
- # config (`--config=node_modules/@nodeve/checks/.vale.ini`), whose styles
86
- # are vendored beside it. ALWAYS ON: extending this file turns it on, no
87
- # per-repo `.vale.ini`, no `vale sync`, no opt-in to forget. UNGUARDED —
88
- # if `vale` isn't on PATH the commit FAILS (install it: it's in the nix
89
- # devShell). vale exits nonzero on `error` alerts; warning/suggestion are
90
- # advisory.
91
- - name: vale
83
+ # Prose gate: md-prose (md-tools) runs vale with this package's
84
+ # `.vale.ini` and styles, baked in by store path. ALWAYS ON: no per-repo
85
+ # `.vale.ini`, no `vale sync`. UNGUARDED like md-fmt. vale exits nonzero
86
+ # on `error` alerts; warning/suggestion are advisory.
87
+ - name: md-prose
92
88
  glob: '*.md'
93
89
  run: |
94
- command -v vale >/dev/null 2>&1 || { echo "✖ vale is not installed — the org prose gate is mandatory. Install vale (it ships in the nix devShell: 'nix develop')."; exit 1; }
95
- vale --config=node_modules/@nodeve/checks/.vale.ini {staged_files} || { echo "↑ You touched these docs, so you own their prose errors — clear ALL of them (not just your edit)."; echo " Re-run on one file for jump-to-line detail: pnpm exec nodeve-prose <file.md>"; exit 1; }
90
+ command -v md-prose >/dev/null || { echo "✖ md-prose is not installed — it ships in the nix devShell ('nix develop') as nodeve's packages.md-tools."; exit 1; }
91
+ md-prose {staged_files} || { echo "↑ You touched these docs, so you own their prose errors — clear ALL of them (not just your edit)."; echo " Re-run on one file for jump-to-line detail: pnpm exec nodeve-prose <file.md>"; exit 1; }
96
92
 
97
93
  - name: reshape
98
94
  glob: '*.ts'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodeve/checks",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "Org-wide commit-gate checks (doc budgets, reshape/dup/helper smells, page size) and helper-index generators, driven by a per-repo config file and wired through lefthook.",
5
5
  "license": "MIT",
6
6
  "repository": {