@webpieces/rules-config 0.4.622 → 0.4.624
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.
|
|
3
|
+
"version": "0.4.624",
|
|
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",
|
|
@@ -16,7 +16,7 @@ reading this, one of the faults below fired and named this file.
|
|
|
16
16
|
| `X` | guard bin missing (fresh clone / new worktree / package removed) | sh, before the bin runs | sh |
|
|
17
17
|
| `U` | guard bin missing AND @webpieces/ai-hook-rules is not declared in package.json | sh, before the bin runs | sh |
|
|
18
18
|
| `K` | guard bin present but CRASHED (exit code not 0 or 2 — corrupt node_modules) | sh, before the bin runs | sh |
|
|
19
|
-
| `S` | a webpieces-managed hook file
|
|
19
|
+
| `S` | a webpieces-managed hook file, the .claude/settings.json registration or its managed env entry does not match this release | the guard bin | JS |
|
|
20
20
|
| `C` | webpieces.config.json missing | the guard bin | JS |
|
|
21
21
|
| `Y` | a loaded rule has no webpieces.config.json key | the guard bin | JS |
|
|
22
22
|
|
|
@@ -46,9 +46,9 @@ the option you pick EXACTLY as written and run nothing else on that line.
|
|
|
46
46
|
|
|
47
47
|
- **Option 1 (preferred)**: `rm -rf node_modules && pnpm install` ← pick this when this fault fires at all — a BARE pnpm install SKIPS the corrupt package, because pnpm sees the right version on disk and considers it installed; only the delete forces a rewrite
|
|
48
48
|
|
|
49
|
-
### `S` — a webpieces-managed hook file
|
|
49
|
+
### `S` — a webpieces-managed hook file, the .claude/settings.json registration or its managed env entry does not match this release
|
|
50
50
|
|
|
51
|
-
- **Option 1 (preferred)**: `pnpm exec wp-upgrade-shim` ← pick this when this fault fires at all — it is the only cure that repairs all three managed things (
|
|
51
|
+
- **Option 1 (preferred)**: `pnpm exec wp-upgrade-shim` ← pick this when this fault fires at all — it is the only cure that repairs all three managed things (ai-hook.sh, the settings.json registration and its managed env entry), and it also deletes the retired guarantee-root.sh and any entry still naming it, and it touches no config; needs installed @webpieces/ai-hook-rules 0.4.408 or newer
|
|
52
52
|
- **Option 2**: `cp node_modules/@webpieces/ai-hook-rules/templates/ai-hook.sh .claude/webpieces/ai-hook.sh` ← pick this when the installed @webpieces/ai-hook-rules is OLDER than 0.4.408, so wp-upgrade-shim does not exist yet — it is PARTIAL (it repairs ai-hook.sh and NOTHING else), so upgrade @webpieces afterwards and run Option 1 to finish
|
|
53
53
|
|
|
54
54
|
### `C` — webpieces.config.json missing
|