@webpieces/rules-config 0.4.631 → 0.4.632

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.631",
3
+ "version": "0.4.632",
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",
@@ -38,7 +38,7 @@ the option you pick EXACTLY as written and run nothing else on that line.
38
38
  ### `D` — version drift — root package.json pin != installed version
39
39
 
40
40
  - **Option 1 (preferred)**: `pnpm install` ← pick this when node_modules is OLDER than the pin, OR you are on a feature branch and want YOUR branch pin (usually the case) — it always clears the drift
41
- - **Option 2**: `git pull` ← pick this when node_modules is NEWER than the pin AND you are on main — the PIN is the stale side, so pull first and install second; a bare install would downgrade you
41
+ - **Option 2**: `git checkout main && git pull origin main` ← pick this when node_modules is NEWER than the pin AND you are on main — the PIN is the stale side, so sync first and install second; a bare install would downgrade you
42
42
 
43
43
  ### `X` — guard bin missing (fresh clone / new worktree / package removed)
44
44
 
@@ -86,7 +86,7 @@ The tool is not a dimension either: "any Read" is an allowlist ENTRY, not a tool
86
86
 
87
87
  ONE list, consulted identically by every fault. A cure that cannot help a given fault also
88
88
  cannot hurt it, and gating each entry on a fault is what produced four real defects (a stale
89
- shim that denied `pnpm install` and `git pull`; faults that denied every Read; a config fault
89
+ shim that denied `pnpm install` and every git sync; faults that denied every Read; a config fault
90
90
  that denied `rm -rf node_modules && pnpm install` while allowing a bare `pnpm install`).
91
91
 
92
92
  | # | allowed | outcome |
@@ -95,13 +95,14 @@ that denied `rm -rf node_modules && pnpm install` while allowing a bare `pnpm in
95
95
  | 2 | a Write/Edit whose target is webpieces.config.json | PASS |
96
96
  | 3 | pnpm|npm install | ALLOW |
97
97
  | 4 | rm -rf node_modules && pnpm install - the cure for a CORRUPT node_modules | ALLOW |
98
- | 5 | git pull / git fetch - merge is NOT on the list | ALLOW |
99
- | 6 | pnpm exec wp-upgrade-shim | ALLOW |
100
- | 7 | cp node_modules/@webpieces/ai-hook-rules/templates/ai-hook.sh .claude/webpieces/ai-hook.sh | ALLOW |
101
- | 8 | pnpm wp-prune-unknown-config | ALLOW |
102
- | 9 | pnpm exec wp-install-ai-hooks (flags allowed, e.g. --target=project) | ALLOW |
103
- | 10 | pnpm add -D @webpieces/ai-hook-rules (an @version and extra flags allowed) | ALLOW |
104
- | 11 | read-only orientation: pwd, git status/log/diff/show/branch/rev-parse, git worktree list | ALLOW |
98
+ | 5 | git fetch - a bare git pull and git merge are NOT on the list | ALLOW |
99
+ | 6 | git checkout main && git pull origin main | ALLOW |
100
+ | 7 | pnpm exec wp-upgrade-shim | ALLOW |
101
+ | 8 | cp node_modules/@webpieces/ai-hook-rules/templates/ai-hook.sh .claude/webpieces/ai-hook.sh | ALLOW |
102
+ | 9 | pnpm wp-prune-unknown-config | ALLOW |
103
+ | 10 | pnpm exec wp-install-ai-hooks (flags allowed, e.g. --target=project) | ALLOW |
104
+ | 11 | pnpm add -D @webpieces/ai-hook-rules (an @version and extra flags allowed) | ALLOW |
105
+ | 12 | read-only orientation: pwd, git status/log/diff/show/branch/rev-parse, git worktree list | ALLOW |
105
106
 
106
107
  - **PASS** — L0 has no objection; the call falls THROUGH so the downstream guards still judge it.
107
108
  - **ALLOW** — terminal; bypasses everything, because a cure must stay reachable even when a