wairiah commited on
Commit
3556f9b
·
verified ·
1 Parent(s): ef42f3e

Deploy Real Agent Army

Browse files
Files changed (2) hide show
  1. skills/browser_stealth/tools.py +3 -0
  2. supervisor.py +8 -0
skills/browser_stealth/tools.py CHANGED
@@ -13,6 +13,9 @@ from typing import Dict, Any, Optional
13
  class BrowserStealth:
14
  def __init__(self):
15
  self.browser = None
 
 
 
16
  self.config = self.load_config()
17
 
18
  def load_config(self):
 
13
  class BrowserStealth:
14
  def __init__(self):
15
  self.browser = None
16
+
17
+ # Create instance and expose at module level
18
+ browser = BrowserStealth()
19
  self.config = self.load_config()
20
 
21
  def load_config(self):
supervisor.py CHANGED
@@ -20,8 +20,11 @@ AGENTS = {
20
  'gig1': {'file': 'agent_army/agents/gig_real.py', 'type': 'gig', 'platform': 'freelancer'},
21
  'gig2': {'file': 'agent_army/agents/gig_real.py', 'type': 'gig', 'platform': 'upwork'},
22
  'gig3': {'file': 'agent_army/agents/gig_real.py', 'type': 'gig', 'platform': 'fiverr'},
 
 
23
  'trading1': {'file': 'agent_army/agents/trading_real.py', 'type': 'trading', 'strategy': 'trend'},
24
  'trading2': {'file': 'agent_army/agents/trading_real.py', 'type': 'trading', 'strategy': 'reversion'},
 
25
  'editor': {'file': 'agent_army/agents/editor_improved.py', 'type': 'supervisor'}
26
  }
27
 
@@ -199,6 +202,11 @@ def main():
199
  print("\n[Supervisor] Shutting down...")
200
  for agent in agents.values():
201
  agent.stop()
 
 
 
 
 
202
 
203
  # Web UI Handler
204
  class AgentHandler(http.server.BaseHTTPRequestHandler):
 
20
  'gig1': {'file': 'agent_army/agents/gig_real.py', 'type': 'gig', 'platform': 'freelancer'},
21
  'gig2': {'file': 'agent_army/agents/gig_real.py', 'type': 'gig', 'platform': 'upwork'},
22
  'gig3': {'file': 'agent_army/agents/gig_real.py', 'type': 'gig', 'platform': 'fiverr'},
23
+ 'gig4': {'file': 'agent_army/agents/gig_real.py', 'type': 'gig', 'platform': 'toptal'},
24
+ 'gig5': {'file': 'agent_army/agents/gig_real.py', 'type': 'gig', 'platform': 'peopleperhour'},
25
  'trading1': {'file': 'agent_army/agents/trading_real.py', 'type': 'trading', 'strategy': 'trend'},
26
  'trading2': {'file': 'agent_army/agents/trading_real.py', 'type': 'trading', 'strategy': 'reversion'},
27
+ 'trading3': {'file': 'agent_army/agents/trading_real.py', 'type': 'trading', 'strategy': 'memecoin'},
28
  'editor': {'file': 'agent_army/agents/editor_improved.py', 'type': 'supervisor'}
29
  }
30
 
 
202
  print("\n[Supervisor] Shutting down...")
203
  for agent in agents.values():
204
  agent.stop()
205
+ except Exception as e:
206
+ print(f"\n[Supervisor] Fatal error: {e}")
207
+ import traceback
208
+ traceback.print_exc()
209
+ sys.exit(1)
210
 
211
  # Web UI Handler
212
  class AgentHandler(http.server.BaseHTTPRequestHandler):