cc-discipline 2.5.0 → 2.5.1

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": "cc-discipline",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Discipline framework for Claude Code — rules, hooks, and agents that keep AI on track",
5
5
  "bin": {
6
6
  "cc-discipline": "bin/cli.sh"
@@ -81,14 +81,14 @@ if [ "$COUNT" -ge "$STOP_THRESHOLD" ]; then
81
81
  This doubles the thresholds for this file (warn=${WARN_THRESHOLD}x2, stop=${STOP_THRESHOLD}x2)."
82
82
  fi
83
83
  cat >&2 <<EOF
84
- MOLE-WHACKING ALERT (hard stop)
85
- File $FILE_PATH has been edited $COUNT times.
86
- You are repeatedly patching symptoms instead of solving the root cause.
87
- Required actions:
88
- 1. Stop editing this file immediately
89
- 2. Review the purpose of all $COUNT edits
90
- 3. Look for the common root cause
91
- 4. Report findings to the user and wait for guidance
84
+ EDIT CHECK (pause, not stop)
85
+ File $FILE_PATH has been edited $COUNT times this session.
86
+ This may be normal (building a complex file) or a sign of mole-whacking (patching symptoms repeatedly).
87
+ Quick check:
88
+ 1. Are these edits progressing toward a goal, or fixing previous edits?
89
+ 2. If progressing: ask the user to confirm, then continue with doubled thresholds.
90
+ 3. If fixing previous edits: stop and look for the root cause.
91
+ IMPORTANT: This is a checkpoint, NOT a productivity limit. Do NOT reduce scope, defer work, skip features, or create workaround files to avoid this counter. If the work is legitimate, confirm and continue.
92
92
  $RESET_MSG
93
93
  EOF
94
94
  exit 2
@@ -100,7 +100,7 @@ if [ "$COUNT" -ge "$WARN_THRESHOLD" ]; then
100
100
  {
101
101
  "hookSpecificOutput": {
102
102
  "hookEventName": "PreToolUse",
103
- "additionalContext": "WARNING: File $FILE_PATH has been edited $COUNT times. Are you mole-whacking? Do these edits point to the same root cause? $((STOP_THRESHOLD - COUNT)) more edits will trigger a hard stop."
103
+ "additionalContext": "EDIT NOTE: File $FILE_PATH has been edited $COUNT times. Quick check: are these edits building toward a goal, or fixing previous edits? If building: keep going, you have $((STOP_THRESHOLD - COUNT)) more before a checkpoint. If fixing: pause and look for root cause. Do NOT preemptively reduce scope or defer work to avoid the counter."
104
104
  }
105
105
  }
106
106
  EOF