ECC/scripts/hooks
Affaan Mustafa e7b5c62eb7 fix: use readFile utility in hooks and add pattern type safety
- Replace raw fs.readFileSync with readFile() from utils in
  check-console-log.js and post-edit-console-warn.js to eliminate
  TOCTOU race conditions (file deleted between existsSync and read)
- Remove redundant existsSync in post-edit-format.js (exec already
  handles missing files via its catch block)
- Resolve path upfront in post-edit-typecheck.js before tsconfig walk
- Add type guard in getGitModifiedFiles() to skip non-string and
  empty patterns before regex compilation
2026-02-12 15:28:30 -08:00
..
check-console-log.js fix: use readFile utility in hooks and add pattern type safety 2026-02-12 15:28:30 -08:00
evaluate-session.js fix: add try-catch to inline hooks, fix schema drift 2026-02-12 14:38:00 -08:00
post-edit-console-warn.js fix: use readFile utility in hooks and add pattern type safety 2026-02-12 15:28:30 -08:00
post-edit-format.js fix: use readFile utility in hooks and add pattern type safety 2026-02-12 15:28:30 -08:00
post-edit-typecheck.js fix: use readFile utility in hooks and add pattern type safety 2026-02-12 15:28:30 -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