cc-haha/bin/claude-haha

17 lines
511 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
#Get your current working directory and export it as an environment variable.
export CALLER_DIR="$(pwd -W 2>/dev/null || pwd)"
cd "$ROOT_DIR"
# Force recovery CLI (simple readline REPL, no Ink TUI)
if [[ "${CLAUDE_CODE_FORCE_RECOVERY_CLI:-0}" == "1" ]]; then
exec bun --env-file=.env ./src/localRecoveryCli.ts "$@"
fi
# Default: full CLI with Ink TUI
exec bun --env-file=.env ./src/entrypoints/cli.tsx "$@"