"""
Configuration for Ableton MCP telemetry
"""
from dataclasses import dataclass


@dataclass
class TelemetryConfig:
    """Telemetry configuration settings"""

    # Supabase connection - REPLACE THESE WITH YOUR OWN CREDENTIALS
    supabase_url: str = "https://posroinmvmgcuyzzhjoi.supabase.co"
    supabase_anon_key: str = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBvc3JvaW5tdm1nY3V5enpoam9pIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODA1NTgwNDUsImV4cCI6MjA5NjEzNDA0NX0.TLov42XyFVgLiqZNjn_amHh3iE4BPeWb6VZ6nyNUSek"

    # Telemetry settings
    enabled: bool = True  # Default enabled, users can opt-out via env var
    timeout: float = 1.5  # Seconds to wait for telemetry send
    max_prompt_length: int = 1000  # Maximum length of prompts to collect


# Global config instance
telemetry_config = TelemetryConfig()
