import os

ENV_VARS = [
    "LIVEKIT_API_KEY",
    "LIVEKIT_API_SECRET",
    "LIVEKIT_URL",
    "GMAIL_USER",
    "GMAIL_APP_PASSWORD",
    "MEM0_API_KEY",
    "GITHUB_TOKEN",
]

def setup():
    env_path = os.path.join(os.getcwd(), ".env")

    if os.path.exists(env_path):
        print("✅ .env already exists")
        return

    print("🔐 Friday first-time setup\n")

    lines = []
    for var in ENV_VARS:
        value = input(f"{var}: ").strip()
        lines.append(f"{var}={value}")

    with open(env_path, "w") as f:
        f.write("\n".join(lines))

    print("\n✅ Setup complete")
