ECC/scripts/hooks
Affaan Mustafa 63be081741 fix: renameAlias data corruption, empty sessionId match, NaN threshold
- Fix renameAlias() leaving orphaned newAlias key on save failure,
  causing in-memory data corruption with both old and new keys present
- Add sessionPath validation to setAlias() to reject empty/null paths
- Guard getSessionById() against empty string matching all sessions
  (startsWith('') is always true in JavaScript)
- Fix suggest-compact.js NaN comparison when COMPACT_THRESHOLD env var
  is set to a non-numeric value — falls back to 50 instead of silently
  disabling the threshold check
- Sync suggest-compact.js to .cursor/ copy
2026-02-12 14:30:10 -08:00
..
check-console-log.js fix: path traversal in install.sh, error logging in hooks 2026-02-12 14:14:21 -08:00
evaluate-session.js feat: cross-platform support with Node.js scripts 2026-01-22 23:08:07 -08:00
post-edit-console-warn.js fix: harden error handling, fix TOCTOU races, and improve test accuracy 2026-02-12 13:40:14 -08:00
post-edit-format.js fix: harden error handling, fix TOCTOU races, and improve test accuracy 2026-02-12 13:40:14 -08:00
post-edit-typecheck.js fix: harden error handling, fix TOCTOU races, and improve test accuracy 2026-02-12 13:40:14 -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: path traversal in install.sh, error logging in hooks 2026-02-12 14:14:21 -08:00
session-start.js fix: eliminate child process spawns during session startup (#162) 2026-02-12 00:01:23 -08:00
suggest-compact.js fix: renameAlias data corruption, empty sessionId match, NaN threshold 2026-02-12 14:30:10 -08:00