#!/usr/bin/env bash
# TokenLint launcher — runs the bundled linter with the plugin root on PYTHONPATH,
# so it works whether or not `tokenlint` is pip-installed. Added to PATH when the
# Claude Code plugin is enabled.
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT="$(dirname "$HERE")"
exec env PYTHONPATH="${ROOT}${PYTHONPATH:+:${PYTHONPATH}}" python3 -m tokenlint.cli "$@"
