ECC/scripts/hooks
Affaan Mustafa 7356fd996f refactor: extract inline PostToolUse hooks into external scripts
Move three complex inline hooks from hooks.json into proper external
scripts in scripts/hooks/:

- post-edit-format.js: Prettier auto-formatting (was 1 minified line)
- post-edit-typecheck.js: TypeScript check (was 1 minified line with
  unbounded directory traversal, now capped at 20 levels)
- post-edit-console-warn.js: console.log warnings (was 1 minified line)

Benefits:
- Readable, documented, and properly error-handled
- Testable independently via stdin
- Consistent with other hooks (all use external scripts now)
- Adds timeouts to Prettier (15s) and tsc (30s) to prevent hangs
2026-02-12 10:21:59 -08:00
..
check-console-log.js fix: improve error handling, fix bugs, and optimize core libraries 2026-02-12 07:06:53 -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 refactor: extract inline PostToolUse hooks into external scripts 2026-02-12 10:21:59 -08:00
post-edit-format.js refactor: extract inline PostToolUse hooks into external scripts 2026-02-12 10:21:59 -08:00
post-edit-typecheck.js refactor: extract inline PostToolUse hooks into external scripts 2026-02-12 10:21: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: improve error handling, fix bugs, and optimize core libraries 2026-02-12 07:06:53 -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: improve error handling, fix bugs, and optimize core libraries 2026-02-12 07:06:53 -08:00