#!/usr/bin/env bash
set -Eeuo pipefail
ROOT="${SHIRE_ROOT:-/home/shire3d/ARMOR}"
echo "=== SHiRE AGENT VERIFICATION ==="
python3 "$ROOT/agents/runtime/agent_hub.py" --check
node --check "$ROOT/agents/apps/marketing-boss/server.js"
node --check "$ROOT/agents/apps/marketing-boss/marketing-boss-worker.js"
(cd "$ROOT/agents/apps/marketing-boss" && npm test)
systemctl --no-pager --full status shire-agent-hub.service shire-marketing-boss.service shire-marketing-boss.timer || true
curl --fail --silent http://127.0.0.1:8770/health | python3 -m json.tool
curl --fail --silent http://127.0.0.1:4173/api/health | python3 -m json.tool
echo "PASS: active Agent services responded locally."
