# Allegro Harness Profile — Activation Environment
# Source this file to activate Allegro v2.0

export HERMES_PROFILE=allegro
export HERMES_HOME=/root/wizards/allegro/home
export ALLEGRO_WORK_DIR=/root/wizards/allegro
export ALLEGRO_VERSION=2.0
export ALLEGRO_ARCHITECTURE=harness

# Provider configuration
export KIMI_API_KEY="${KIMI_API_KEY}"
export OPENROUTER_API_KEY="${OPENROUTER_API_KEY}"

# Platform tokens — FULL ACCESS
export GITEA_TOKEN="${GITEA_TOKEN}"
export TELEGRAM_BOT_TOKEN="${TELEGRAM_BOT_TOKEN}"

# Identity
export ALLEGRO_IDENTITY="Allegro"
export ALLEGRO_LANE="tempo-and-dispatch"

# Gitea listener
export ALLEGRO_GITEA_LISTENER=~/.hermes/profiles/allegro/home/gitea-listener
export ALLEGRO_GITEA_POLL_INTERVAL=30

# Status
export ALLEGRO_CUTOVER_DATE="2026-04-01"
export ALLEGRO_STATUS="active"

# Path
export PATH="${ALLEGRO_WORK_DIR}/bin:${PATH}"

# On activation, check for immediate assignments
echo "[Allegro v2.0] Profile activated. Checking Gitea..."
python3 ${ALLEGRO_GITEA_LISTENER}/check_assignments.py --once 2>/dev/null || true
