ECC/scripts
Affaan Mustafa 27dce7794a fix: reject empty/invalid array commands in hooks validator, add 19 tests
validate-hooks.js: Empty arrays [] and arrays with non-string elements
(e.g., [123, null]) passed command validation due to JS truthiness of
empty arrays (![] === false). Added explicit length and element type
checks.

19 new tests covering: non-array event type values, null/string matcher
entries, string/number top-level data, empty string/array commands,
non-string array elements, non-string type field, non-number timeout,
timeout boundary (0), unwrapped hooks format, legacy format error paths,
empty agent directory, whitespace-only command files, valid skill refs,
mixed valid/invalid rules and skills.
2026-02-13 02:33:40 -08:00
..
ci fix: reject empty/invalid array commands in hooks validator, add 19 tests 2026-02-13 02:33:40 -08:00
hooks fix: eliminate command injection in hooks, fix pass-through newline corruption, add 8 tests 2026-02-13 02:22:55 -08:00
lib fix: sanitize getExecCommand args, escape regex in getCommandPattern, clean up readStdinJson timeout, add 10 tests 2026-02-13 02:27:04 -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: clamp progressBar to prevent RangeError on overflow, add 10 tests 2026-02-13 02:01:57 -08:00