#!/bin/bash
# Run Python type checks for both bots

echo "Checking Python bot types..."

for bot in screenshare-bot tavus-tool-forwarder; do
  echo "Checking $bot..."
  cd apps/slide-system/bots/$bot
  if [ ! -d .venv ]; then
    echo "⚠️ No venv found for $bot, skipping"
    cd - > /dev/null
    continue
  fi
  source .venv/bin/activate
  mypy . || exit 1
  deactivate
  cd - > /dev/null
done

echo "✅ Python type checks passed!"
