@windyroad/jtbd 0.13.0 → 0.13.1-preview.1014
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.
|
@@ -74,6 +74,11 @@ BASENAME=$(basename "$FILE_PATH")
|
|
|
74
74
|
|
|
75
75
|
# Exclude non-JTBD files (matches architect gate exclusions)
|
|
76
76
|
case "$FILE_PATH" in
|
|
77
|
+
# VCS-internal plumbing is never a project artefact — a commit-message file or
|
|
78
|
+
# any scratch under .git/ must not require governance review. Sibling of the P004
|
|
79
|
+
# outside-the-repo exclusion above, for paths INSIDE the repo root (P458).
|
|
80
|
+
*/.git/*|.git/*)
|
|
81
|
+
exit 0 ;;
|
|
77
82
|
*.css|*.scss|*.sass|*.less)
|
|
78
83
|
exit 0 ;;
|
|
79
84
|
*.png|*.jpg|*.jpeg|*.gif|*.svg|*.ico|*.webp)
|
|
@@ -47,6 +47,11 @@ assert_path_blocked() {
|
|
|
47
47
|
# Claude Code passes absolute file paths in tool_input.file_path, so tests
|
|
48
48
|
# use $PWD-prefixed paths to match the real shape (after the P004 root check).
|
|
49
49
|
|
|
50
|
+
@test "enforce: excludes VCS-internal .git/ plumbing files (P458)" {
|
|
51
|
+
assert_path_allowed "$PWD/.git/cruise-brake-commit-msg.txt"
|
|
52
|
+
assert_path_allowed "$PWD/.git/COMMIT_EDITMSG"
|
|
53
|
+
}
|
|
54
|
+
|
|
50
55
|
@test "enforce: excludes CSS files" {
|
|
51
56
|
assert_path_allowed "$PWD/src/styles.css"
|
|
52
57
|
}
|