@webpieces/rules-config 0.4.593 → 0.4.595

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webpieces/rules-config",
3
- "version": "0.4.593",
3
+ "version": "0.4.595",
4
4
  "description": "Shared webpieces.config.json loader. Single source of truth for validation rule configuration consumed by @webpieces/ai-hook-rules, @webpieces/code-rules, and @webpieces/nx-webpieces-rules.",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -191,16 +191,18 @@ flow are not interchangeable.
191
191
  5. **`pnpm wp-finish-upsert-pr`** — STAGE ③: requires stage ②'s receipt, your `review.json` (its `title`
192
192
  becomes the PR title) and every reviewer's verdict, then pushes and creates/updates the PR. It re-runs
193
193
  the build gate ONLY if HEAD moved since stage ②, so the three stages still cost one build.
194
- 6. **`pnpm wp-land-pr`** — squash-merge THIS branch's already-posted PR into main **with the compact
195
- risk/flags commit body** stage ③ rendered, then archive the pre-squash tip and reap the landed
196
- worktree. Use it INSTEAD of a bare `gh pr merge` or the GitHub Merge button, because neither can write
197
- that body: a UI merge takes its subject from the repo's `squash_merge_commit_title` and its body from
198
- `squash_merge_commit_message`, and on `PR_BODY` that pastes the ENTIRE dashboard — risk table, hash
199
- points, gate token — into `git log`. Only an explicit `gh pr merge --subject --body-file` avoids it,
200
- which is what this command is. It is NOT gated on `pr-gate.mergeMode`: running it IS the intent to
201
- merge, so a `mergeMode: NONE` repo keeps its "a human decides when" policy and still gets a readable
202
- history. It runs no build gate and re-renders nothing the bytes that land are the bytes stage
203
- produced.
194
+ 6. **`pnpm wp-land-pr`** — squash-merge THIS branch's already-posted PR into main with the gated commit
195
+ body, then archive the pre-squash tip and reap the landed worktree. It runs no build gate and
196
+ re-renders nothing the bytes that land are the bytes stage produced. NOT gated on
197
+ `pr-gate.mergeMode`: running it IS the intent to merge, so it works on a `mergeMode: NONE` repo whose
198
+ policy is "a human decides when".
199
+
200
+ **The commit body is the PR DESCRIPTION**, which stage writes as one compact string (PR link, risk,
201
+ non-green flags, short summary, build-command footer) and reuses verbatim as its `--body-file`. The
202
+ full dashboard and the reviewer output live in the PR's 1st and 2nd comments so they stay out of
203
+ `git log`. So with `squash_merge_commit_title: PR_TITLE` and `squash_merge_commit_message: PR_BODY` set
204
+ on the repo, this command, a bare `gh pr merge`, and the GitHub Merge button all produce identical
205
+ history — prefer this one for the archiving and worktree cleanup, not because the others are wrong.
204
206
  7. **`pnpm wp-cleanup`** — delete the local branches that are provably dead (merged PR, squash-merge
205
207
  backup of a merged branch, or no commits of their own). Run it after the merge lands, or any time the
206
208
  branch cap blocks you. It takes no arguments and needs no judgement call from you: it recomputes the