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
|
@@ -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
|
-
|
|
85
|
-
File $FILE_PATH has been edited $COUNT times.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
1.
|
|
89
|
-
2.
|
|
90
|
-
3.
|
|
91
|
-
|
|
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": "
|
|
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
|