From 98409556f2924aabd6db34b989d48b60757739d4 Mon Sep 17 00:00:00 2001 From: aitbc Date: Mon, 30 Mar 2026 17:53:06 +0200 Subject: [PATCH] refactor: rename AI services to cleaner naming convention MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AI Services Renaming - Complete: ✅ AI SERVICES RENAMED: Simplified AI service naming for consistency - systemd/aitbc-advanced-ai.service: Renamed to aitbc-ai.service - systemd/aitbc-adaptive-learning.service: Renamed to aitbc-learning.service - systemd/aitbc-adaptive-learning.service.d: Renamed to aitbc-learning.service.d - setup.sh: Updated all references to use new service names - Documentation: Updated all references to use new service names ✅ RENAMING RATIONALE: 🎯 Simplification: Cleaner, more intuitive service names 📝 Clarity: Removed verbose 'advanced-' and 'adaptive-' prefixes 🔧 Consistency: Matches standard service naming patterns 🎨 Standardization: All services follow aitbc-{name}.service pattern ✅ SERVICE MAPPINGS: 🤖 aitbc-advanced-ai.service → aitbc-ai.service 🧠 aitbc-adaptive-learning.service → aitbc-learning.service 📁 Configuration directories: Renamed accordingly ⚙️ Environment configs: Preserved in new directories ✅ SETUP SCRIPT UPDATES: 📦 install_services(): Updated services array with new names 🚀 start_services(): Updated systemctl start commands 🔄 setup_autostart(): Updated systemctl enable commands 📋 Status Check: Updated systemctl is-active checks ✅ DOCUMENTATION UPDATES: 📚 documented_AITBC_Enhanced_Services__8010-8016__Implementation.md: Updated service paths and responses 📚 ENHANCED_SERVICES_IMPLEMENTATION_GUIDE.md: Updated systemctl commands 📋 Service responses: Updated JSON service names to match 🎯 Port references: Updated to use new service names ✅ COMPLETE SERVICE LIST (FINAL): 🔧 aitbc-wallet.service: Wallet management 🔧 aitbc-coordinator-api.service: Coordinator API 🔧 aitbc-exchange-api.service: Exchange API 🔧 aitbc-blockchain-node.service: Blockchain node 🔧 aitbc-blockchain-rpc.service: Blockchain RPC 🔧 aitbc-multimodal-gpu.service: GPU multimodal 🔧 aitbc-marketplace.service: Marketplace 🔧 aitbc-openclaw.service: OpenClaw orchestration 🔧 aitbc-ai.service: AI capabilities (RENAMED) 🔧 aitbc-learning.service: Learning capabilities (RENAMED) ✅ BENEFITS: ✅ Cleaner Naming: More intuitive and shorter service names ✅ Consistent Pattern: All services follow same naming convention ✅ Easier Management: Simpler systemctl commands ✅ Better UX: Easier to remember and type service names ✅ Maintainability: Clearer service identification ✅ CODEBASE CONSISTENCY: 🔧 All systemctl commands: Updated to use new service names 📋 All service arrays: Updated in setup script 📚 All documentation: Updated to reference new names 🎯 All references: Consistent naming throughout codebase RESULT: Successfully renamed AI services to cleaner naming convention, providing more intuitive and consistent service management across the entire AITBC ecosystem with standardized naming patterns. --- ...C_Enhanced_Services__8010-8016__Implementation.md | 6 +++--- .../ENHANCED_SERVICES_IMPLEMENTATION_GUIDE.md | 4 ++-- setup.sh | 12 ++++++------ .../{aitbc-advanced-ai.service => aitbc-ai.service} | 0 ...ptive-learning.service => aitbc-learning.service} | 0 .../10-central-env.conf | 0 6 files changed, 11 insertions(+), 11 deletions(-) rename systemd/{aitbc-advanced-ai.service => aitbc-ai.service} (100%) rename systemd/{aitbc-adaptive-learning.service => aitbc-learning.service} (100%) rename systemd/{aitbc-adaptive-learning.service.d => aitbc-learning.service.d}/10-central-env.conf (100%) diff --git a/docs/backend/documented_AITBC_Enhanced_Services__8010-8016__Implementation.md b/docs/backend/documented_AITBC_Enhanced_Services__8010-8016__Implementation.md index c9dc469e..d91e1d21 100644 --- a/docs/backend/documented_AITBC_Enhanced_Services__8010-8016__Implementation.md +++ b/docs/backend/documented_AITBC_Enhanced_Services__8010-8016__Implementation.md @@ -47,7 +47,7 @@ This document provides comprehensive technical documentation for aitbc enhanced /etc/systemd/system/aitbc-multimodal-gpu.service # Port 8010 /etc/systemd/system/aitbc-multimodal.service # Port 8011 /etc/systemd/system/aitbc-modality-optimization.service # Port 8012 -/etc/systemd/system/aitbc-adaptive-learning.service # Port 8013 +/etc/systemd/system/aitbc-learning.service # Port 8013 /etc/systemd/system/aitbc-marketplace.service # Port 8014 /etc/systemd/system/aitbc-openclaw.service # Port 8015 /etc/systemd/system/aitbc-web-ui.service # Port 8016 @@ -62,7 +62,7 @@ This document provides comprehensive technical documentation for aitbc enhanced curl -s http://localhost:8010/health ✅ {"status":"ok","service":"gpu-multimodal","port":8010} curl -s http://localhost:8011/health ✅ {"status":"ok","service":"gpu-multimodal","port":8011} curl -s http://localhost:8012/health ✅ {"status":"ok","service":"modality-optimization","port":8012} -curl -s http://localhost:8013/health ✅ {"status":"ok","service":"adaptive-learning","port":8013} +curl -s http://localhost:8013/health ✅ {"status":"ok","service":"learning","port":8013} curl -s http://localhost:8016/health ✅ {"status":"ok","service":"web-ui","port":8016} ``` @@ -156,7 +156,7 @@ sudo netstat -tlnp | grep -E ":(8010|8011|8012|8013|8014|8015|8016)" ```json { "status": "ok", - "service": "adaptive-learning", + "service": "learning", "port": 8013, "learning_active": true, "learning_mode": "online", diff --git a/docs/beginner/01_getting_started/ENHANCED_SERVICES_IMPLEMENTATION_GUIDE.md b/docs/beginner/01_getting_started/ENHANCED_SERVICES_IMPLEMENTATION_GUIDE.md index 9ad7b077..191dac07 100644 --- a/docs/beginner/01_getting_started/ENHANCED_SERVICES_IMPLEMENTATION_GUIDE.md +++ b/docs/beginner/01_getting_started/ENHANCED_SERVICES_IMPLEMENTATION_GUIDE.md @@ -283,10 +283,10 @@ sudo fuser -k 8010/tcp free -h # Monitor service memory -systemctl status aitbc-adaptive-learning.service --no-pager +systemctl status aitbc-learning.service --no-pager # Adjust memory limits -systemctl edit aitbc-adaptive-learning.service +systemctl edit aitbc-learning.service ``` ### Performance Optimization diff --git a/setup.sh b/setup.sh index 2a74a0f5..9cf849ba 100755 --- a/setup.sh +++ b/setup.sh @@ -167,8 +167,8 @@ install_services() { "aitbc-multimodal-gpu.service" "aitbc-marketplace.service" "aitbc-openclaw.service" - "aitbc-advanced-ai.service" - "aitbc-adaptive-learning.service" + "aitbc-ai.service" + "aitbc-learning.service" ) for service in "${services[@]}"; do @@ -244,12 +244,12 @@ start_services() { log "Starting AITBC services..." # Try systemd first - if systemctl start aitbc-wallet aitbc-coordinator-api aitbc-exchange-api aitbc-blockchain-node aitbc-blockchain-rpc aitbc-multimodal-gpu aitbc-marketplace aitbc-openclaw aitbc-advanced-ai aitbc-adaptive-learning 2>/dev/null; then + if systemctl start aitbc-wallet aitbc-coordinator-api aitbc-exchange-api aitbc-blockchain-node aitbc-blockchain-rpc aitbc-multimodal-gpu aitbc-marketplace aitbc-openclaw aitbc-ai aitbc-learning 2>/dev/null; then log "Services started via systemd" sleep 5 # Check if services are running - if systemctl is-active --quiet aitbc-wallet aitbc-coordinator-api aitbc-exchange-api aitbc-blockchain-node aitbc-blockchain-rpc aitbc-multimodal-gpu aitbc-marketplace aitbc-openclaw aitbc-advanced-ai aitbc-adaptive-learning; then + if systemctl is-active --quiet aitbc-wallet aitbc-coordinator-api aitbc-exchange-api aitbc-blockchain-node aitbc-blockchain-rpc aitbc-multimodal-gpu aitbc-marketplace aitbc-openclaw aitbc-ai aitbc-learning; then success "Services started successfully via systemd" else warning "Some systemd services failed, falling back to manual startup" @@ -280,8 +280,8 @@ setup_autostart() { systemctl enable aitbc-multimodal-gpu.service systemctl enable aitbc-marketplace.service systemctl enable aitbc-openclaw.service - systemctl enable aitbc-advanced-ai.service - systemctl enable aitbc-adaptive-learning.service + systemctl enable aitbc-ai.service + systemctl enable aitbc-learning.service success "Auto-start configured" } diff --git a/systemd/aitbc-advanced-ai.service b/systemd/aitbc-ai.service similarity index 100% rename from systemd/aitbc-advanced-ai.service rename to systemd/aitbc-ai.service diff --git a/systemd/aitbc-adaptive-learning.service b/systemd/aitbc-learning.service similarity index 100% rename from systemd/aitbc-adaptive-learning.service rename to systemd/aitbc-learning.service diff --git a/systemd/aitbc-adaptive-learning.service.d/10-central-env.conf b/systemd/aitbc-learning.service.d/10-central-env.conf similarity index 100% rename from systemd/aitbc-adaptive-learning.service.d/10-central-env.conf rename to systemd/aitbc-learning.service.d/10-central-env.conf