ECC/scripts
Affaan Mustafa 18c5a76a96 fix: improve error handling, fix bugs, and optimize core libraries
utils.js:
- Fix countInFile: enforce global flag on regex to prevent silent
  under-counting (match() without /g returns only first match)
- Add 5s timeout to readStdinJson to prevent hooks hanging forever
- Handle EEXIST race condition in ensureDir
- Pre-compile regex patterns in getGitModifiedFiles to avoid N*M
  compilations and catch invalid patterns before filtering
- Add JSDoc documentation to all improved functions

session-manager.js:
- Fix getSessionById triple file read: pass pre-read content to
  getSessionStats instead of re-reading from disk
- Allow getSessionStats to accept content string directly

session-aliases.js:
- Wrap temp file cleanup in try/catch to prevent cascading errors

check-console-log.js:
- Refactor to use shared utils (isGitRepo, getGitModifiedFiles, log)
  instead of raw execSync calls
- Add exclusion patterns for test files, config files, and scripts/
  where console.log is intentional

session-end.js:
- Log count of skipped unparseable transcript lines for diagnostics

suggest-compact.js:
- Guard against NaN from corrupted counter files

package-manager.js:
- Remove dead fallbackOrder parameter (unused after #162 fix)
2026-02-12 07:06:53 -08:00
..
ci feat: add comprehensive CI/CD pipeline 2026-01-28 23:05:43 -08:00
hooks fix: improve error handling, fix bugs, and optimize core libraries 2026-02-12 07:06:53 -08:00
lib fix: improve error handling, fix bugs, and optimize core libraries 2026-02-12 07:06:53 -08:00
release.sh fix: sync plugin.json version with latest tag (#171) 2026-02-08 16:18:49 -08:00
setup-package-manager.js fix: resolve ESLint errors and update tests for project-name fallback 2026-01-29 02:58:51 -08:00
skill-create-output.js fix: resolve ESLint errors and update tests for project-name fallback 2026-01-29 02:58:51 -08:00