# Sofiia Supervisor — environment variables
# Copy to .env and fill in values

# ─── Router / Gateway ─────────────────────────────────────────────────────────
# URL of the DAARION router (same docker network on NODA2)
GATEWAY_BASE_URL=http://router:8000
# API key the supervisor uses when calling router's /v1/tools/execute
SUPERVISOR_API_KEY=

# ─── State backend ───────────────────────────────────────────────────────────
SUPERVISOR_STATE_BACKEND=redis
REDIS_URL=redis://redis:6379/0
RUN_TTL_SEC=86400

# ─── Supervisor HTTP API ──────────────────────────────────────────────────────
SUPERVISOR_HOST=0.0.0.0
SUPERVISOR_PORT=8080
# Optional key to protect supervisor endpoints (network-level is preferred)
SUPERVISOR_INTERNAL_KEY=

# ─── Agent defaults ──────────────────────────────────────────────────────────
DEFAULT_AGENT_ID=sofiia
DEFAULT_WORKSPACE_ID=daarion
DEFAULT_TIMEZONE=Europe/Kiev

# ─── Timeouts ─────────────────────────────────────────────────────────────────
TOOL_CALL_TIMEOUT_SEC=60
TOOL_CALL_MAX_RETRIES=2
JOB_POLL_INTERVAL_SEC=3
JOB_MAX_WAIT_SEC=300

# ─── Incident triage ─────────────────────────────────────────────────────────
INCIDENT_MAX_TIME_WINDOW_H=24
INCIDENT_MAX_LOG_LINES=200
