ECC/scripts
Affaan Mustafa 9e791ed305 fix: harden utils.js edge cases and add input validation
- Guard findFiles() against null/undefined dir and pattern parameters
  (previously crashed with TypeError on .replace() or fs.existsSync())
- Wrap countInFile() and grepFile() regex construction in try-catch to
  handle invalid regex strings like '(unclosed' (previously crashed with
  SyntaxError: Invalid regular expression)
- Add try-catch to replaceInFile() with descriptive error logging
- Add 1MB size limit to readStdinJson() matching the PostToolUse hooks
  (previously had unbounded stdin accumulation)
- Improve ensureDir() error message to include the directory path
- Add 128-char length limit to setAlias() to prevent oversized alias
  names from inflating the JSON store
- Update utils.d.ts with new maxSize option on ReadStdinJsonOptions
2026-02-12 14:49:11 -08:00
..
ci fix: harden CI validators, shell scripts, and expand test suite 2026-02-12 14:11:33 -08:00
hooks fix: add try-catch to inline hooks, fix schema drift 2026-02-12 14:38:00 -08:00
lib fix: harden utils.js edge cases and add input validation 2026-02-12 14:49:11 -08:00
release.sh fix: harden CI validators, shell scripts, and expand test suite 2026-02-12 14:11:33 -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