start-vibing 4.4.6 → 4.4.8

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.
@@ -1,54 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Block auto-commits from super-design (sd-fix) and superpowers plugins.
3
- #
4
- # Rationale: these plugins commit on behalf of the user without explicit
5
- # confirmation per commit (sd-fix commits per finding ID; superpowers
6
- # commits per TDD step). In shared repos this pollutes history.
7
- #
8
- # This hook reads the PreToolUse JSON payload from stdin and exits 2
9
- # (= block + show message to model) when it detects plugin signatures.
10
- #
11
- # User-driven commits via /commit or a literal "git commit" run by the
12
- # user are NOT blocked — only commits whose message matches the known
13
- # plugin patterns.
14
-
15
- set -uo pipefail
16
-
17
- input="$(cat)"
18
-
19
- # Extract command field; tolerate missing jq
20
- if command -v jq >/dev/null 2>&1; then
21
- cmd="$(printf '%s' "$input" | jq -r '.tool_input.command // ""' 2>/dev/null || true)"
22
- else
23
- cmd="$(printf '%s' "$input" | grep -oE '"command"[[:space:]]*:[[:space:]]*"[^"]*"' | head -1 | sed -E 's/.*"command"[[:space:]]*:[[:space:]]*"(.*)"/\1/')"
24
- fi
25
-
26
- # Not a git commit? allow
27
- if ! printf '%s' "$cmd" | grep -qE 'git[[:space:]]+commit'; then
28
- exit 0
29
- fi
30
-
31
- # Plugin commit signatures (super-design fix IDs + superpowers markers)
32
- patterns=(
33
- '\[A[0-9]+-' # super-design accessibility findings (A1-A15)
34
- '\[V[0-9]+-' # super-design design findings (V1-V8)
35
- '\[U[0-9]+-' # super-design ux findings (U1-U10)
36
- '\[P[0-9]+-' # super-design perf findings (P1-P10)
37
- '\[M[0-9]+-' # super-design mobile findings (M1-M15)
38
- '\[DSC-[0-9]+' # super-design skill findings
39
- 'finding[_-]?id' # any explicit finding-id reference
40
- 'sd-fix' # sd-fix subagent marker
41
- 'superpowers:' # superpowers commit marker
42
- 'red.*green.*refactor' # TDD step commit
43
- )
44
-
45
- for p in "${patterns[@]}"; do
46
- if printf '%s' "$cmd" | grep -qiE "$p"; then
47
- printf 'BLOCKED: plugin auto-commit detected (pattern: %s).\n' "$p" >&2
48
- printf 'super-design and superpowers must NOT commit automatically.\n' >&2
49
- printf 'If the user asked for a commit, run /commit or ask the user to confirm the message first.\n' >&2
50
- exit 2
51
- fi
52
- done
53
-
54
- exit 0