#!/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 (registered by bin/gstack-memorable enable,
# never by ./setup).
#
# FAIL-OPEN: a third-party recall bridge must never block a prompt. Every
# failure path — bun missing, script crash — still exits 0 with empty stdout.
HERE="$(cd "$(dirname "$0")" && pwd)" || exit 0
bun "$HERE/memorable-user-prompt-hook.ts" || true
exit 0
