ECC/scripts/hooks
Affaan Mustafa 992688a674 fix: add cwd to prettier hook, consistent process.exit(0), and stdout pass-through
- post-edit-format.js: add cwd based on file directory so npx resolves
  correct local prettier binary
- post-edit-typecheck.js, post-edit-format.js: replace console.log(data)
  with process.stdout.write(data) to avoid trailing newline corruption
- Add process.exit(0) to 4 hooks for consistent termination
  (check-console-log, post-edit-console-warn, post-edit-format,
  post-edit-typecheck)
- run-all.js: switch from execSync to spawnSync so stderr is visible
  on the success path (hook warnings were silently discarded)
- Add 21 tests: cwd verification, process.exit(0) checks, exact
  stdout pass-through, extension edge cases, exclusion pattern
  matching, threshold boundary values (630 → 651)
2026-02-13 03:20:41 -08:00
..
check-console-log.js fix: add cwd to prettier hook, consistent process.exit(0), and stdout pass-through 2026-02-13 03:20:41 -08:00
evaluate-session.js fix: nullish coalescing in evaluate-session config, narrow pre-compact glob, add 11 tests 2026-02-13 02:42:01 -08:00
post-edit-console-warn.js fix: add cwd to prettier hook, consistent process.exit(0), and stdout pass-through 2026-02-13 03:20:41 -08:00
post-edit-format.js fix: add cwd to prettier hook, consistent process.exit(0), and stdout pass-through 2026-02-13 03:20:41 -08:00
post-edit-typecheck.js fix: add cwd to prettier hook, consistent process.exit(0), and stdout pass-through 2026-02-13 03:20:41 -08:00
pre-compact.js fix: nullish coalescing in evaluate-session config, narrow pre-compact glob, add 11 tests 2026-02-13 02:42:01 -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: consistent periodic interval spacing in suggest-compact, add 10 tests 2026-02-13 02:45:08 -08:00