ECC/tests/lib
zzzhizhi 177dd36e23
fix(hooks): allow tmux-wrapped dev server commands (#321)
* fix(hooks): fix shell splitter redirection/escape bugs, extract shared module

- Fix single & incorrectly splitting redirection operators (&>, >&, 2>&1)
- Fix escaped quotes (\", \') not being handled inside quoted strings
- Extract splitShellSegments into shared scripts/lib/shell-split.js
  to eliminate duplication between hooks.json, before-shell-execution.js,
  and pre-bash-dev-server-block.js
- Add comprehensive tests for shell splitting edge cases

* fix(hooks): handle backslash escapes outside quotes in shell splitter

Escaped operators like \&& and \; outside quotes were still being
treated as separators. Add escape handling for unquoted context.
2026-03-07 14:47:49 -08:00
..
package-manager.test.js Fix copilot-setup-steps.yml and address PR review comments 2026-02-18 07:22:05 +00:00
project-detect.test.js feat: automatic project type and framework detection (#293) 2026-03-02 22:07:10 -08:00
session-aliases.test.js Fix copilot-setup-steps.yml and address PR review comments 2026-02-18 07:22:05 +00:00
session-manager.test.js feat: deliver v1.8.0 harness reliability and parity updates 2026-03-04 14:48:06 -08:00
shell-split.test.js fix(hooks): allow tmux-wrapped dev server commands (#321) 2026-03-07 14:47:49 -08:00
utils.test.js fix(hooks): scrub secrets and harden hook security (#348) 2026-03-07 14:47:31 -08:00