ECC/scripts/hooks
Affaan Mustafa 75ab8e6194 fix: eliminate child process spawns during session startup (#162)
getAvailablePackageManagers() spawned where.exe/which for each package
manager (npm, pnpm, yarn, bun). During SessionStart hooks, these 4+
child processes combined with Bun's own initialization exceeded the
spawn limit on Windows, freezing the terminal.

Fix: Remove process spawning from the hot path. Steps 1-5 of detection
(env var, project config, package.json, lock file, global config) already
cover all file-based detection. If none match, default to npm without
spawning. Also fix getSelectionPrompt() to list supported PMs without
checking availability.
2026-02-12 00:01:23 -08:00
..
check-console-log.js fix: resolve ESLint errors and update tests for project-name fallback 2026-01-29 02:58:51 -08:00
evaluate-session.js feat: cross-platform support with Node.js scripts 2026-01-22 23:08:07 -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(sessions): make session hooks actually persist and load context (#187) 2026-02-11 23:56:41 -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: resolve ESLint errors and update tests for project-name fallback 2026-01-29 02:58:51 -08:00