Read CLAUDE_EFFORT in Bash scripts
The CLAUDE_EFFORT env var is set in Bash subprocesses so scripts can adapt to the current effort level.
# CLAUDE_EFFORT is automatically set in Bash subprocesses
# Values: low, medium, high, xhigh, max
if [ "$CLAUDE_EFFORT" = "high" ] || [ "$CLAUDE_EFFORT" = "max" ]; then
npm run test -- --coverage
else
npm run test -- --bail
fi