@kennethsolomon/shipkit 3.13.0 → 3.13.2

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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  <div align="center">
2
2
 
3
+ <img src="assets/shipkit-logo.png" alt="ShipKit" width="260" />
4
+
3
5
  # SHIPKIT
4
6
 
5
7
  **A structured, quality-gated workflow system for Claude Code.**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kennethsolomon/shipkit",
3
- "version": "3.13.0",
3
+ "version": "3.13.2",
4
4
  "description": "A structured workflow toolkit for Claude Code.",
5
5
  "keywords": [
6
6
  "claude",
@@ -105,7 +105,7 @@
105
105
  ],
106
106
  "PostToolUse": [
107
107
  {
108
- "matcher": "Edit",
108
+ "matcher": "Edit|Write",
109
109
  "hooks": [
110
110
  {
111
111
  "type": "command",
@@ -26,10 +26,10 @@ fi
26
26
  # Branch
27
27
  BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "none")
28
28
 
29
- # Task name from todo.md
29
+ # Active task first unchecked item in todo.md
30
30
  TASK="—"
31
31
  if [ -f "tasks/todo.md" ]; then
32
- TASK=$(head -1 "tasks/todo.md" 2>/dev/null | sed 's/^# TODO.*— //' | cut -c1-40)
32
+ TASK=$(grep -m1 '^\- \[ \]' "tasks/todo.md" 2>/dev/null | sed 's/^- \[ \] //' | cut -c1-40)
33
33
  fi
34
34
 
35
35
  # Output single line
@@ -38,5 +38,14 @@ if [ -d "src" ]; then
38
38
  fi
39
39
  fi
40
40
 
41
+ # Current task — first unchecked item in tasks/todo.md
42
+ if [ -f "tasks/todo.md" ]; then
43
+ CURRENT_TASK=$(grep -m1 '^\- \[ \]' "tasks/todo.md" 2>/dev/null | sed 's/^- \[ \] //')
44
+ if [ -n "$CURRENT_TASK" ]; then
45
+ echo ""
46
+ echo "Current task: $CURRENT_TASK"
47
+ fi
48
+ fi
49
+
41
50
  echo "==================================="
42
51
  exit 0
@@ -73,9 +73,10 @@ if [ -n "$STAGED" ]; then
73
73
  fi
74
74
  fi
75
75
 
76
- # Print warnings (non-blocking) and allow commit
76
+ # Block commit if any violations found
77
77
  if [ -n "$WARNINGS" ]; then
78
- echo -e "=== Commit Validation Warnings ===$WARNINGS\n================================" >&2
78
+ echo -e "=== Commit Blocked ===$WARNINGS\n\nFix the above issues before committing." >&2
79
+ exit 2
79
80
  fi
80
81
 
81
82
  exit 0