#!/usr/bin/env bash
# morph-spec statusline — installed globally to ~/.claude/statusline.sh
# Claude Code invokes this with JSON via stdin after each response.
# Requires: Python 3 available as `python3` or `python` on PATH.

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if command -v python3 &>/dev/null; then
  python3 "${SCRIPT_DIR}/statusline.py" 2>/dev/null || true
elif command -v python &>/dev/null; then
  python "${SCRIPT_DIR}/statusline.py" 2>/dev/null || true
fi
