@webpieces/ai-hook-rules 0.3.193 → 0.3.194
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/ai-hook-rules",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.194",
|
|
4
4
|
"description": "Pluggable write-time validation framework for AI coding agents (@webpieces/ai-hook-rules). Claude Code PreToolUse + openclaw before_tool_call adapters share one rule engine.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"directory": "packages/tooling/ai-hook-rules"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@webpieces/rules-config": "0.3.
|
|
38
|
+
"@webpieces/rules-config": "0.3.194"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"mode": "ON",
|
|
18
18
|
"buildCommandWhy": "--base is the FORK POINT via $(git merge-base origin/main HEAD), NOT origin/main: basing on origin/main marks projects from other people's already-merged PRs as 'affected' (your branch still has their pre-merge versions), wasting rebuilds. The fork point scopes affected to only your branch's work. The $(...) resolves because the gate runs with shell:true.",
|
|
19
19
|
"buildCommand": "pnpm nx affected --target=ci --base=$(git merge-base origin/main HEAD)",
|
|
20
|
-
"gatesWhy": "
|
|
20
|
+
"gatesWhy": "warningColor (REQUIRED on every gate) = the dashboard color shown WHEN a gate's patterns match a changed file (green is implicit when nothing matches; warningColor is purely visual and never blocks the PR — only the build gate can). disabled:true gates are kept-in-file examples (JSON has no comments) you flip to false and tune for your project.",
|
|
21
21
|
"gates": [
|
|
22
|
-
{ "name": "API Changed", "patterns": ["libraries/apis/**", "**/*Api.ts"], "
|
|
23
|
-
{ "name": "Config Files Changed", "patterns": ["**/package.json", "**/tsconfig*.json", "nx.json", "**/*.config.*"], "
|
|
24
|
-
{ "name": "Dependency Graph Changed", "patterns": ["architecture/dependencies.json"], "
|
|
25
|
-
{ "name": "Claude / Rules Changed", "patterns": ["**/CLAUDE.md", "**/claude.*.md", ".claude/**", "webpieces.config.json"], "
|
|
26
|
-
{ "name": "Package.json Changed", "patterns": ["**/package.json"], "
|
|
27
|
-
{ "name": "Authentication Changed", "patterns": ["**/authentication.ts"], "
|
|
28
|
-
{ "name": "DB Schema Changed", "patterns": ["**/schema.prisma"], "
|
|
29
|
-
{ "name": "Migration Files", "patterns": ["**/migrations/**"], "
|
|
22
|
+
{ "name": "API Changed", "patterns": ["libraries/apis/**", "**/*Api.ts"], "warningColor": "yellow" },
|
|
23
|
+
{ "name": "Config Files Changed", "patterns": ["**/package.json", "**/tsconfig*.json", "nx.json", "**/*.config.*"], "warningColor": "yellow" },
|
|
24
|
+
{ "name": "Dependency Graph Changed", "patterns": ["architecture/dependencies.json"], "warningColor": "yellow" },
|
|
25
|
+
{ "name": "Claude / Rules Changed", "patterns": ["**/CLAUDE.md", "**/claude.*.md", ".claude/**", "webpieces.config.json"], "warningColor": "yellow" },
|
|
26
|
+
{ "name": "Package.json Changed", "patterns": ["**/package.json"], "warningColor": "yellow", "disabled": true },
|
|
27
|
+
{ "name": "Authentication Changed", "patterns": ["**/authentication.ts"], "warningColor": "yellow", "disabled": true },
|
|
28
|
+
{ "name": "DB Schema Changed", "patterns": ["**/schema.prisma"], "warningColor": "red", "disabled": true },
|
|
29
|
+
{ "name": "Migration Files", "patterns": ["**/migrations/**"], "warningColor": "red", "disabled": true }
|
|
30
30
|
]
|
|
31
31
|
}
|
|
32
32
|
}
|