#!/bin/bash
echo "Testing agent-bridge wake for all 8 agents..."
echo "=============================================="

agents=("rivet" "builder" "susan" "harper" "sentinel" "radar" "herald" "cog")

for agent in "${agents[@]}"; do
    echo -n "Testing $agent... "
    result=$(node /home/ccuser/rateright-growth/rivet/scripts/agent-bridge.js "$agent" wake "Agent-bridge test from Sentinel - please ignore" 2>&1)
    
    if echo "$result" | grep -q '"ok": true'; then
        echo "✓ SUCCESS"
    else
        echo "✗ FAILED"
        echo "  Error: $result"
    fi
    sleep 1
done

echo "=============================================="
echo "Test complete."