#!/usr/bin/env bash # Bash shim — Claude Code hooks run `command` strings via /bin/sh, so this # wrapper makes the TypeScript hook executable via bun. Settings.json # references this file directly. set -e GSTACK_BUN_CONFIG=/dev/null; case "${OSTYPE:-}" in msys*|cygwin*) if command -v cygpath >/dev/null 2>&1; then GSTACK_BUN_CONFIG=NUL; fi ;; esac HERE="$(cd "$(dirname "$0")" && pwd)" exec bun --no-env-file --config="${GSTACK_BUN_CONFIG:-/dev/null}" "$HERE/question-preference-hook.ts"