From aec5bd2eaa193576abd5fb593d81f444d159c9a8 Mon Sep 17 00:00:00 2001 From: aitbc Date: Mon, 30 Mar 2026 18:21:55 +0200 Subject: [PATCH] refactor: move Explorer and Multimodal to Core Services section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Core Services Expansion - Complete: ✅ EXPLORER AND MULTIMODAL MOVED: Expanded Core Services section - apps/blockchain-explorer/main.py: Changed port from 8022 to 8004 - systemd/aitbc-multimodal.service: Changed port from 8020 to 8005 - setup.sh: Moved Explorer and Multimodal to Core Services section - setup.sh: Updated health check to use ports 8004 and 8005 - Reason: These are essential services for complete AITBC functionality ✅ FINAL PORT ALLOCATION: 🔧 Core Services (8000-8009): 8000: Coordinator API ✅ 8001: Exchange API ✅ 8003: Wallet API ✅ 8004: Explorer ✅ (MOVED from 8022) 8005: Multimodal Service ✅ (MOVED from 8020) 8006: Marketplace API ✅ 8007: Available ✅ 8008: Available ✅ 8009: Available ✅ 🚀 AI/Agent/GPU Services (8010-8019): 8010: GPU Service + Learning Service (conflict) ⚠️ 8011: Agent Coordinator ✅ 8012: Agent Registry ✅ 8013: OpenClaw Service ✅ 8009: AI Service ✅ 8016: Web UI ✅ 📊 Other Services (8020-8029): 8023: Modality Optimization ✅ 8020: Available ✅ (freed from Multimodal) 8021: Available ✅ (freed from Marketplace) 8022: Available ✅ (freed from Explorer) 8024-8029: Available ✅ ✅ COMPREHENSIVE CORE SERVICES: 🔧 Economic Core: Coordinator, Exchange, Wallet, Marketplace 🔧 Infrastructure Core: Explorer (blockchain visibility) 🔧 Processing Core: Multimodal (multi-modal processing) 🎯 Complete Ecosystem: All essential services in Core section ✅ SERVICE CATEGORIZATION FINAL: 🔧 Core Services (6): Coordinator, Exchange, Wallet, Marketplace, Explorer, Multimodal 🚀 AI/Agent/GPU Services (7): GPU, Learning, Agent Coord, Agent Registry, OpenClaw, AI, Web UI 📊 Other Services (1): Modality Optimization ✅ PORT ORGANIZATION STATUS: ✅ Core Services: Full utilization of 8000-8006 range ✅ AI/Agent/GPU: Complete agent suite in 8010-8019 range ✅ Other Services: Minimal specialized services in 8020-8029 range ⚠️ Only Port 8010 Conflict Remains ✅ AVAILABLE PORTS: 🔧 Core Services: 8007, 8008, 8009 available (3 ports) 🚀 AI/Agent/GPU: 8014-8015, 8017-8019 available (4 ports) 📊 Other Services: 8020-8029 available (10 ports) ✅ BENEFITS: ✅ Complete Core: All essential services in Core section ✅ Logical Organization: Services grouped by importance ✅ Port Efficiency: Optimal use of Core Services range ✅ User Experience: Easy to identify essential services ✅ FINAL REMAINING ISSUE: ⚠️ Port 8010 Conflict: GPU Service and Learning Service both use port 8010 RESULT: Successfully moved Explorer and Multimodal to Core Services section, creating a comprehensive Core Services section with 6 essential services. This provides a complete AITBC ecosystem in the Core section while maintaining proper port organization. Only the Port 8010 GPU/Learning conflict remains to be resolved for perfect organization. --- apps/blockchain-explorer/main.py | 2 +- setup.sh | 4 ++-- systemd/aitbc-multimodal.service | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/blockchain-explorer/main.py b/apps/blockchain-explorer/main.py index 40675a69..6489a45f 100755 --- a/apps/blockchain-explorer/main.py +++ b/apps/blockchain-explorer/main.py @@ -1285,4 +1285,4 @@ async def health(): } if __name__ == "__main__": - uvicorn.run(app, host="0.0.0.0", port=8022) + uvicorn.run(app, host="0.0.0.0", port=8004) diff --git a/setup.sh b/setup.sh index 91cf0a7e..1df865a3 100755 --- a/setup.sh +++ b/setup.sh @@ -230,6 +230,8 @@ check_service "Coordinator API" "http://localhost:8000/health" check_service "Exchange API" "http://localhost:8001/api/health" check_service "Wallet API" "http://localhost:8003/health" check_service "Marketplace API" "http://localhost:8006/health" +check_service "Explorer" "http://localhost:8004/health" +check_service "Multimodal Service" "http://localhost:8005/health" # AI/Agent/GPU Services (8010-8019) echo "" @@ -246,8 +248,6 @@ check_service "Web UI" "http://localhost:8016/health" echo "" echo "📊 Other Services (8020-8029):" check_service "Modality Optimization" "http://localhost:8023/health" -check_service "Explorer" "http://localhost:8022/health" -check_service "Multimodal Service" "http://localhost:8020/health" # Check blockchain node and RPC echo "" diff --git a/systemd/aitbc-multimodal.service b/systemd/aitbc-multimodal.service index 4ef10ff8..c728a7e6 100644 --- a/systemd/aitbc-multimodal.service +++ b/systemd/aitbc-multimodal.service @@ -9,7 +9,7 @@ User=debian Group=debian WorkingDirectory=/home/oib/aitbc/apps/coordinator-api Environment=PATH=/usr/bin -ExecStart=/usr/bin/python3 -m uvicorn src.app.services.multimodal_app:app --host 127.0.0.1 --port 8020 +ExecStart=/usr/bin/python3 -m uvicorn src.app.services.multimodal_app:app --host 127.0.0.1 --port 8005 ExecReload=/bin/kill -HUP $MAINPID KillMode=mixed TimeoutStopSec=5