ECC/tests
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
integration fix: calendar-accurate date validation in parseSessionFilename, add 22 tests 2026-02-13 01:42:56 -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
scripts fix: clamp progressBar to prevent RangeError on overflow, add 10 tests 2026-02-13 02:01:57 -08:00
run-all.js fix: greedy regex in validate-commands captures all refs per line, add 18 tests 2026-02-13 01:52:30 -08:00