start-vibing 4.4.5 → 4.4.6
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": "start-vibing",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.6",
|
|
4
4
|
"description": "Setup Claude Code with 9 plugins, 6 community skills, and 8 MCP servers. Parallel install, auto-accept, superpowers + ralph-loop. e2e-audit 0.2.0 refactor (skill-only, no agents): SessionStart hook + slash command make the skill keyword-invokable (\"e2e audit\", \"roda o e2e\", \"integration test\", \"test coverage gaps\"). Source-first discovery via detect-stack, discover-routes (Next app/pages/Remix/SvelteKit/Nuxt/Astro), discover-api-surface (HTTP handlers, tRPC procedures, GraphQL, server actions, middleware auth), inventory-existing-tests (preserve prior corpus + sha256 drift hash), and detect-uncovered (branch-diff vs origin/main finds changes not covered by existing specs). Report-then-ask between mapping and Playwright run; post-run-feedback report before writing findings. SHOT+TRACE+ASSERT+SOURCE evidence quad per non-meta finding; meta rules (coverage-gap-*, uncovered-*, test-drift, stack-detect, post-run-feedback) exempt. verify-audit.sh enforces schema + quad. Generic (no project leakage). super-design 0.7.0 carries over.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
|
@@ -59,6 +59,17 @@
|
|
|
59
59
|
]
|
|
60
60
|
}
|
|
61
61
|
],
|
|
62
|
+
"PreToolUse": [
|
|
63
|
+
{
|
|
64
|
+
"matcher": "Bash",
|
|
65
|
+
"hooks": [
|
|
66
|
+
{
|
|
67
|
+
"type": "command",
|
|
68
|
+
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/block-plugin-commits.sh\""
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
],
|
|
62
73
|
"PostToolUse": [
|
|
63
74
|
{
|
|
64
75
|
"matcher": "Write|Edit",
|