ECC/tests
Apptah 30ab9e2cd7
fix: extract inline SessionStart bootstrap to separate file (#1035)
Inline `node -e "..."` in hooks.json contained `!` characters (e.g.
`!org.isDirectory()`) that bash history expansion in certain shell
environments would misinterpret, producing syntax errors and the
"SessionStart:startup hook error" banner in the Claude Code CLI header.

Extract the bootstrap logic to `scripts/hooks/session-start-bootstrap.js`
so the shell never sees the JS source. Behaviour is identical: the script
reads stdin, resolves the ECC plugin root via CLAUDE_PLUGIN_ROOT or a set
of well-known fallback paths, then delegates to run-with-flags.js.

Update the test that asserted the old inline pattern to verify the new
file-based approach instead.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 14:05:23 -07:00
..
ci fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
hooks fix: extract inline SessionStart bootstrap to separate file (#1035) 2026-03-31 14:05:23 -07:00
integration fix: finish hook fallback and canonical session follow-ups 2026-03-25 03:44:03 -04:00
lib fix: harden Trae install ownership (#1013) 2026-03-30 02:01:54 -04:00
scripts fix: CI fixes, security audit, remotion skill, lead-intelligence, npm audit (#1039) 2026-03-31 15:08:55 -04:00
codex-config.test.js fix(codex): broaden context7 config checks 2026-03-29 00:26:16 -04:00
opencode-config.test.js fix: repair opencode config and project metadata 2026-03-11 01:52:10 -07:00
plugin-manifest.test.js fix: harden lifecycle hook launchers and mcp schema 2026-03-29 21:26:56 -04:00
run-all.js fix: narrow unicode cleanup scope 2026-03-29 21:21:18 -04:00