import os
import secrets

START_VIA_SCRIPT = os.getenv("ROBO_OPS_VIA_START_SH") == "1"

SECRET_KEY = os.getenv("SECRET_KEY", secrets.token_hex(32))
SESSION_COOKIE = "robo_ops_session"
SESSION_TTL_HOURS = 24
EXTERNAL_API_KEY = os.getenv("EXTERNAL_API_KEY", "robo-ops-external-demo-key-2026")
DATABASE_PATH = os.getenv("DATABASE_PATH", "data/robo_ops.db")
