diff --git a/scripts/README.md b/scripts/README.md index 4c3fbaa4..d08a92b8 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -77,10 +77,21 @@ The scripts look for systemd services matching the pattern `aitbc-*`. | Port | Service | Description | |------|---------|-------------| -| 8001 | Coordinator API | Main API service | -| 8002 | Wallet Daemon | Wallet management | -| 8003 | Blockchain RPC | Blockchain node RPC | -| 8000 | Coordinator API (alt) | Alternative API | +| 8000 | Coordinator API | Main API service | +| 8001 | Exchange API | Trading functionality | +| 8002 | Marketplace API | GPU compute marketplace | +| 8003 | Wallet API | Digital wallet management | +| 8004 | Explorer | Blockchain explorer | +| 8006 | Blockchain RPC | Blockchain node RPC | +| 8007 | Web UI | Web user interface | +| 8010 | GPU Service | GPU-accelerated processing | +| 8011 | Learning Service | Machine learning | +| 8012 | Agent Coordinator | Agent orchestration | +| 8013 | Agent Registry | Agent registration | +| 8014 | OpenClaw Service | Edge computing | +| 8015 | AI Service | Advanced AI capabilities | +| 8020 | Multimodal Service | Multi-modal processing | +| 8021 | Modality Optimization | Modality optimization | | 8081 | Blockchain Node 1 | Blockchain instance | | 8082 | Blockchain Node 2 | Blockchain instance | | 8006 | Coordinator API (dev) | Development API | @@ -88,9 +99,20 @@ The scripts look for systemd services matching the pattern `aitbc-*`. ## 🔍 Health Endpoints The scripts test these health endpoints: -- `http://localhost:8001/health` - Coordinator API -- `http://localhost:8002/health` - Wallet Daemon -- `http://localhost:8003/health` - Blockchain RPC +- `http://localhost:8000/health` - Coordinator API +- `http://localhost:8001/api/health` - Exchange API +- `http://localhost:8002/health` - Marketplace API +- `http://localhost:8003/health` - Wallet API +- `http://localhost:8004/health` - Explorer +- `http://localhost:8007/` - Web UI +- `http://localhost:8010/health` - GPU Service +- `http://localhost:8011/health` - Learning Service +- `http://localhost:8012/health` - Agent Coordinator +- `http://localhost:8013/health` - Agent Registry +- `http://localhost:8014/health` - OpenClaw Service +- `http://localhost:8015/health` - AI Service +- `http://localhost:8020/health` - Multimodal Service +- `http://localhost:8021/health` - Modality Optimization ## 📝 Output Examples @@ -112,9 +134,21 @@ The scripts test these health endpoints: ### Service Status: ``` [INFO] Checking AITBC service ports... -[SUCCESS] Coordinator API (port 8001): RUNNING -[SUCCESS] Wallet Daemon (port 8002): RUNNING -[WARNING] Blockchain RPC (port 8003): NOT RUNNING +[SUCCESS] Coordinator API (port 8000): RUNNING +[SUCCESS] Exchange API (port 8001): RUNNING +[SUCCESS] Marketplace API (port 8002): RUNNING +[SUCCESS] Wallet API (port 8003): RUNNING +[SUCCESS] Explorer (port 8004): RUNNING +[SUCCESS] Blockchain RPC (port 8006): RUNNING +[SUCCESS] Web UI (port 8007): RUNNING +[SUCCESS] GPU Service (port 8010): RUNNING +[SUCCESS] Learning Service (port 8011): RUNNING +[SUCCESS] Agent Coordinator (port 8012): RUNNING +[SUCCESS] Agent Registry (port 8013): RUNNING +[SUCCESS] OpenClaw Service (port 8014): RUNNING +[SUCCESS] AI Service (port 8015): RUNNING +[SUCCESS] Multimodal Service (port 8020): RUNNING +[SUCCESS] Modality Optimization (port 8021): RUNNING ``` ## 🛠️ Troubleshooting diff --git a/scripts/deployment/complete-agent-protocols.sh b/scripts/deployment/complete-agent-protocols.sh index 997e8c5a..009de46c 100755 --- a/scripts/deployment/complete-agent-protocols.sh +++ b/scripts/deployment/complete-agent-protocols.sh @@ -73,8 +73,8 @@ class AITBCServiceIntegration: "coordinator_api": "http://localhost:8000", "blockchain_rpc": "http://localhost:8006", "exchange_service": "http://localhost:8001", - "marketplace": "http://localhost:8014", - "agent_registry": "http://localhost:8003" + "marketplace": "http://localhost:8002", + "agent_registry": "http://localhost:8013" } self.session = None @@ -328,7 +328,7 @@ class TradingAgent: success = await self.bridge.start_agent(self.agent_id, { "type": "trading", "capabilities": ["market_analysis", "trading", "risk_management"], - "endpoint": f"http://localhost:8005" + "endpoint": f"http://localhost:8012" }) if success: @@ -496,7 +496,7 @@ class ComplianceAgent: success = await self.bridge.start_agent(self.agent_id, { "type": "compliance", "capabilities": ["kyc_check", "aml_screening", "regulatory_reporting"], - "endpoint": f"http://localhost:8006" + "endpoint": f"http://localhost:8014" }) if success: @@ -794,7 +794,7 @@ class TestAgentMessageClient(unittest.TestCase): """Test agent message client""" def setUp(self): - self.client = AgentMessageClient("agent-001", "http://localhost:8003") + self.client = AgentMessageClient("agent-001", "http://localhost:8013") def test_task_assignment_message(self): """Test task assignment message creation""" @@ -899,8 +899,8 @@ systemctl status aitbc-agent-coordinator --no-pager # Test services echo "Testing services..." -curl -s http://localhost:8003/api/health || echo "Agent Registry not responding" -curl -s http://localhost:8004/api/health || echo "Agent Coordinator not responding" +curl -s http://localhost:8013/api/health || echo "Agent Registry not responding" +curl -s http://localhost:8012/api/health || echo "Agent Coordinator not responding" echo "✅ Agent Protocols deployment complete!" EOF diff --git a/scripts/services/adaptive_learning_service.py b/scripts/services/adaptive_learning_service.py index c2e43f2e..bc9e55e0 100755 --- a/scripts/services/adaptive_learning_service.py +++ b/scripts/services/adaptive_learning_service.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 """ -Simple FastAPI service for AITBC Adaptive Learning (Port 8013) +Simple FastAPI service for AITBC Adaptive Learning (Port 8011) """ import sys @@ -17,7 +17,7 @@ def health(): return { 'status': 'ok', 'service': 'adaptive-learning', - 'port': 8013, + 'port': 8011, 'python_version': sys.version.split()[0] } @@ -35,11 +35,11 @@ def learning_status(): def root(): return { 'service': 'AITBC Adaptive Learning Service', - 'port': 8013, + 'port': 8011, 'status': 'running', 'endpoints': ['/health', '/learning/status'] } if __name__ == '__main__': - port = int(os.environ.get('PORT', 8013)) + port = int(os.environ.get('PORT', 8011)) uvicorn.run(app, host='0.0.0.0', port=port)