#!/usr/bin/env bash
# Seed a local Valkey/redis with synthetic provider rate-limit snapshots so the
# viewer's "Rate Limits" tab has data to show locally.
#
# Usage:
#   scripts/dev/seed-rate-limits                       # redis://localhost:6379
#   scripts/dev/seed-rate-limits redis://localhost:6379 --clear
#   scripts/dev/seed-rate-limits --group model-access-public
#
# Needs a running redis/valkey, e.g.: docker run -d -p 6379:6379 valkey/valkey:8

set -euo pipefail
REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
exec uv run --no-project --with redis python \
  "${REPO_ROOT}/scripts/dev/seed_rate_limits.py" "$@"
