ECC/scripts/hooks
Affaan Mustafa 0e0319a1c2 fix: clamp suggest-compact counter overflow, add 9 boundary tests
Counter file could contain huge values (e.g. 999999999999) that pass
Number.isFinite() but cause unbounded growth. Added range clamp to
reject values outside [1, 1000000].

New tests cover:
- Counter overflow reset (huge number, negative number)
- COMPACT_THRESHOLD zero fallback
- session-end empty sections (no tools/files omits headers)
- session-end slice boundaries (10 messages, 20 tools, 30 files)
- post-edit-console-warn 5-match limit
- post-edit-console-warn ignores console.warn/error/debug
2026-02-13 01:59:25 -08:00
..
check-console-log.js fix: 3 bugs fixed, stdin encoding hardened, 37 CI validator tests added 2026-02-12 16:08:49 -08:00
evaluate-session.js fix: 3 bugs fixed, stdin encoding hardened, 37 CI validator tests added 2026-02-12 16:08:49 -08:00
post-edit-console-warn.js fix: 3 bugs fixed, stdin encoding hardened, 37 CI validator tests added 2026-02-12 16:08:49 -08:00
post-edit-format.js fix: Windows compatibility for hook scripts (execFileSync + tmux) (#215) 2026-02-13 01:04:27 -08:00
post-edit-typecheck.js fix: typecheck hook false positives, add 11 session-manager tests 2026-02-13 01:28:59 -08:00
pre-compact.js feat: cross-platform support with Node.js scripts 2026-01-22 23:08:07 -08:00
session-end.js fix: Windows compatibility for hook scripts (execFileSync + tmux) (#215) 2026-02-13 01:04:27 -08:00
session-start.js fix: remove unused fs imports in 3 hook scripts 2026-02-12 15:33:51 -08:00
suggest-compact.js fix: clamp suggest-compact counter overflow, add 9 boundary tests 2026-02-13 01:59:25 -08:00