/ scripts / fix_failed_agents.sh
fix_failed_agents.sh
 1  #!/bin/bash
 2  
 3  # Quick fix for agents with corrupted dependency caches
 4  
 5  set -e
 6  
 7  ECHO_ROOT="/Users/pranav/Documents/echo"
 8  
 9  # Color output
10  GREEN='\033[0;32m'
11  YELLOW='\033[1;33m'
12  NC='\033[0m'
13  
14  echo "Fixing failed agents..."
15  
16  # These were the ones that failed
17  FAILED_AGENTS=(
18      "product_manager"
19      "senior_architect"
20      "uiux_engineer"
21  )
22  
23  cd "$ECHO_ROOT"
24  
25  for agent in "${FAILED_AGENTS[@]}"; do
26      echo -e "${YELLOW}⧗ Fixing $agent...${NC}"
27  
28      cd "apps/$agent"
29  
30      # Clean and rebuild
31      rm -rf _build deps
32      mix deps.get > /dev/null 2>&1
33      mix escript.build > /dev/null 2>&1
34  
35      echo -e "${GREEN}✓ $agent fixed${NC}"
36  
37      cd "$ECHO_ROOT"
38  done
39  
40  echo ""
41  echo -e "${GREEN}All failed agents fixed!${NC}"