From 7ac2f9c9582a5273f500f774bbdffbca8a5b0487 Mon Sep 17 00:00:00 2001 From: Apple Date: Tue, 2 Dec 2025 13:58:58 -0800 Subject: [PATCH] fix: Remove setup-node2-agents.sh that was creating test agents - This script was trying to assign test agents (ag_atlas, etc.) to NODE2 - Use sync-node2-dagi-agents.py instead for loading real agents - Test agents are now automatically removed by health check --- scripts/setup-node2-agents.sh | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 scripts/setup-node2-agents.sh diff --git a/scripts/setup-node2-agents.sh b/scripts/setup-node2-agents.sh deleted file mode 100755 index 79dca415..00000000 --- a/scripts/setup-node2-agents.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -# Setup agents for NODE2 - update node_id for agents that should be on NODE2 - -set -e - -echo "🔧 Setting up agents for NODE2..." - -# List of agent IDs that should be on NODE2 -# You can modify this list based on your needs -NODE2_AGENTS=( - "ag_atlas" - "ag_builder" - "ag_greeter" - "ag_oracle" -) - -NODE_ID="node-2-macbook-m4max" - -# Update node_id for each agent -for agent_id in "${NODE2_AGENTS[@]}"; do - echo " Updating $agent_id to node_id=$NODE_ID..." - ssh root@144.76.224.179 "docker exec daarion-postgres psql -U postgres -d daarion -c \"UPDATE agents SET node_id = '$NODE_ID' WHERE id = '$agent_id' AND (node_id IS NULL OR node_id = '');\"" -done - -echo "✅ Agents updated for NODE2" -echo "" -echo "Verifying..." -ssh root@144.76.224.179 "docker exec daarion-postgres psql -U postgres -d daarion -c \"SELECT id, display_name, node_id, status FROM agents WHERE node_id = '$NODE_ID' ORDER BY display_name;\"" -