ECC/scripts/hooks
Affaan Mustafa ed7ec29ead fix: migrate hooks to stdin JSON input, fix duplicate main() calls, add threshold validation
- Migrate session-end.js and evaluate-session.js from CLAUDE_TRANSCRIPT_PATH
  env var to stdin JSON transcript_path (correct hook input mechanism)
- Remove duplicate main() calls that ran before stdin was read, causing
  session files to be created with empty data
- Add range validation (1-10000) on COMPACT_THRESHOLD in suggest-compact.js
  to prevent negative or absurdly large thresholds
- Add integration/hooks.test.js to tests/run-all.js so CI runs all 97 tests
- Update evaluate-session.sh to parse transcript_path from stdin JSON
- Update hooks.test.js to pass transcript_path via stdin instead of env var
- Sync .cursor/ copies
2026-02-12 15:33:55 -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: migrate hooks to stdin JSON input, fix duplicate main() calls, add threshold validation 2026-02-12 15:33:55 -08:00
post-edit-console-warn.js fix: remove unused fs imports in 3 hook scripts 2026-02-12 15:33:51 -08:00
post-edit-format.js fix: remove unused fs imports in 3 hook scripts 2026-02-12 15:33:51 -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: migrate hooks to stdin JSON input, fix duplicate main() calls, add threshold validation 2026-02-12 15:33:55 -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: migrate hooks to stdin JSON input, fix duplicate main() calls, add threshold validation 2026-02-12 15:33:55 -08:00