#!/usr/bin/env bash
# Thin dispatcher for VHS tape recordings.
# Maps short names to demo scripts so tape commands stay readable.
set -euo pipefail

cmd="${1:?Usage: painted-demo <name> [flags]}"
shift

case "$cmd" in
  # patterns
  fidelity)   exec uv run python demos/patterns/fidelity.py "$@" ;;
  health)      exec uv run python demos/patterns/fidelity_health.py "$@" ;;
  show)        exec uv run python demos/patterns/show.py "$@" ;;
  auto)        exec uv run python demos/patterns/auto_dispatch.py "$@" ;;
  # apps
  widgets)     exec uv run python demos/apps/widgets.py "$@" ;;
  big-text)    exec uv run python demos/apps/big_text.py "$@" ;;
  tour)        exec uv run python demos/tour.py "$@" ;;
  *)           echo "Unknown demo: $cmd"; echo "Available: fidelity show auto widgets big-text tour"; exit 1 ;;
esac
