Rename openclaw to hermes across documentation and workflows
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
Documentation Validation / validate-policies-strict (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
CLI Tests / test-cli (push) Has been cancelled
Blockchain Synchronization Verification / sync-verification (push) Successful in 11s
Contract Performance Benchmarks / benchmark-gas-usage (push) Successful in 1m36s
Contract Performance Benchmarks / benchmark-execution-time (push) Successful in 1m24s
Contract Performance Benchmarks / benchmark-throughput (push) Successful in 1m25s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 5s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Successful in 3s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Successful in 2s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
Smart Contract Tests / test-solidity (map[name:aitbc-contracts path:contracts]) (push) Failing after 1m28s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 21s
Smart Contract Tests / test-foundry (push) Failing after 20s
Smart Contract Tests / lint-solidity (push) Successful in 30s
Smart Contract Tests / deploy-contracts (push) Successful in 1m40s
Systemd Sync / sync-systemd (push) Successful in 26s
Contract Performance Benchmarks / compare-benchmarks (push) Successful in 4s

- Update workflow paths from docs/openclaw to docs/hermes
- Rename skill prefixes from openclaw-* to hermes-*
- Update agent skill references in refactoring and analysis docs
- Rename OPENCLAW_AITBC_MASTERY_PLAN.md to reflect hermes branding
- Update CLI examples and command references throughout documentation
This commit is contained in:
aitbc
2026-05-07 11:42:06 +02:00
parent 151aae1916
commit 852f2e5a8a
307 changed files with 3333 additions and 2837 deletions

View File

@@ -13,7 +13,7 @@
- `modality_optimization_health.py` - Modality Optimization Service (Port 8004)
- `adaptive_learning_health.py` - Adaptive Learning Service (Port 8005)
- `marketplace_enhanced_health.py` - Enhanced Marketplace Service (Port 8006)
- `openclaw_enhanced_health.py` - OpenClaw Enhanced Service (Port 8007)
- `hermes_enhanced_health.py` - hermes Enhanced Service (Port 8007)
**Features:**
- Basic `/health` endpoints with system metrics
@@ -107,7 +107,7 @@ async def collect_all_health_data() -> Dict[str, Any]:
| Modality Optimization | 8004 | ✅ | ✅ | ✅ |
| Adaptive Learning | 8005 | ✅ | ✅ | ✅ |
| Enhanced Marketplace | 8006 | ✅ | ✅ | ✅ |
| OpenClaw Enhanced | 8007 | ✅ | ✅ | ✅ |
| hermes Enhanced | 8007 | ✅ | ✅ | ✅ |
## 🚀 Usage Instructions

View File

@@ -38,7 +38,7 @@ declare -A SERVICES=(
["aitbc-modality-optimization"]="8004:Modality Optimization Service"
["aitbc-adaptive-learning"]="8005:Adaptive Learning Service"
["aitbc-marketplace-enhanced"]="8006:Enhanced Marketplace Service"
["aitbc-openclaw-enhanced"]="8007:OpenClaw Enhanced Service"
["aitbc-hermes-enhanced"]="8007:hermes Enhanced Service"
)
print_header "=== AITBC Enhanced Services Status ==="

View File

@@ -97,20 +97,20 @@ def process_multimodal_data(request_data):
print(f"❌ Multi-Modal Processing: ERROR - {e}")
return None
def route_to_openclaw_agents(processing_results):
"""Route processing to OpenClaw agents for optimization"""
print("\n🤖 OPENCLAW AGENT ROUTING")
def route_to_hermes_agents(processing_results):
"""Route processing to hermes agents for optimization"""
print("\n🤖 hermes AGENT ROUTING")
print("=" * 50)
# Test OpenClaw integration
# Test hermes integration
try:
response = requests.post(f"{BASE_URL}/test-openclaw",
response = requests.post(f"{BASE_URL}/test-hermes",
json=processing_results,
timeout=10)
if response.status_code == 200:
result = response.json()
print(f"OpenClaw Integration: SUCCESS")
print(f"hermes Integration: SUCCESS")
print(f" Service: {result['service']}")
print(f" Status: {result['status']}")
print(f" Agent Capabilities:")
@@ -133,11 +133,11 @@ def route_to_openclaw_agents(processing_results):
return agent_routing
else:
print(f"OpenClaw Integration: FAILED")
print(f"hermes Integration: FAILED")
return None
except Exception as e:
print(f"OpenClaw Integration: ERROR - {e}")
print(f"hermes Integration: ERROR - {e}")
return None
def process_marketplace_transaction(agent_routing):
@@ -266,7 +266,7 @@ def run_complete_workflow():
print("🚀 AITBC Enhanced Services - Client-to-Miner Workflow Demo")
print("=" * 60)
print("Demonstrating complete AI agent processing pipeline")
print("with multi-modal processing, OpenClaw integration, and marketplace")
print("with multi-modal processing, hermes integration, and marketplace")
print("=" * 60)
# Step 1: Client Request
@@ -278,8 +278,8 @@ def run_complete_workflow():
print("\n❌ Workflow failed at multi-modal processing")
return False
# Step 3: OpenClaw Agent Routing
agent_routing = route_to_openclaw_agents(processing_results)
# Step 3: hermes Agent Routing
agent_routing = route_to_hermes_agents(processing_results)
if not agent_routing:
print("\n❌ Workflow failed at agent routing")
return False
@@ -303,7 +303,7 @@ def run_complete_workflow():
print("🎯 Workflow Summary:")
print(" 1. ✅ Client Request Received")
print(" 2. ✅ Multi-Modal Data Processed (Text, Image, Audio)")
print(" 3. ✅ OpenClaw Agent Routing Applied")
print(" 3. ✅ hermes Agent Routing Applied")
print(" 4. ✅ Marketplace Transaction Processed")
print(" 5. ✅ Miner Job Completed")
print(" 6. ✅ Result Returned to Client")
@@ -317,7 +317,7 @@ def run_complete_workflow():
print(f"\n🔗 Enhanced Services Demonstrated:")
print(f" ✅ Multi-Modal Processing: Text, Image, Audio analysis")
print(f"OpenClaw Integration: Agent routing and optimization")
print(f"hermes Integration: Agent routing and optimization")
print(f" ✅ Marketplace Enhancement: Royalties, licensing, verification")
print(f" ✅ GPU Acceleration: High-performance processing")
print(f" ✅ Client-to-Miner: Complete workflow pipeline")

View File

@@ -46,7 +46,7 @@ SERVICES=(
"aitbc-modality-optimization:8004:Modality Optimization"
"aitbc-adaptive-learning:8005:Adaptive Learning"
"aitbc-marketplace-enhanced:8006:Enhanced Marketplace"
"aitbc-openclaw-enhanced:8007:OpenClaw Enhanced"
"aitbc-hermes-enhanced:8007:hermes Enhanced"
)
# Install systemd services
@@ -87,8 +87,8 @@ $SUDO sed -i 's|src.app.services.adaptive_learning:app|src.app.services.adaptive
# Update marketplace enhanced service
$SUDO sed -i 's|src.app.routers.marketplace_enhanced_simple:router|src.app.routers.marketplace_enhanced_app:app|' /etc/systemd/system/aitbc-marketplace-enhanced.service
# Update openclaw enhanced service
$SUDO sed -i 's|src.app.routers.openclaw_enhanced_simple:router|src.app.routers.openclaw_enhanced_app:app|' /etc/systemd/system/aitbc-openclaw-enhanced.service
# Update hermes enhanced service
$SUDO sed -i 's|src.app.routers.hermes_enhanced_simple:router|src.app.routers.hermes_enhanced_app:app|' /etc/systemd/system/aitbc-hermes-enhanced.service
# Reload systemd
$SUDO systemctl daemon-reload
@@ -151,7 +151,7 @@ SERVICES=(
"aitbc-modality-optimization:8004"
"aitbc-adaptive-learning:8005"
"aitbc-marketplace-enhanced:8006"
"aitbc-openclaw-enhanced:8007"
"aitbc-hermes-enhanced:8007"
)
for service_info in "${SERVICES[@]}"; do
@@ -179,7 +179,7 @@ echo "$SUDO journalctl -u aitbc-gpu-multimodal -f"
echo "$SUDO journalctl -u aitbc-modality-optimization -f"
echo "$SUDO journalctl -u aitbc-adaptive-learning -f"
echo "$SUDO journalctl -u aitbc-marketplace-enhanced -f"
echo "$SUDO journalctl -u aitbc-openclaw-enhanced -f"
echo "$SUDO journalctl -u aitbc-hermes-enhanced -f"
EOF
chmod +x /home/oib/aitbc/apps/coordinator-api/check_services.sh
@@ -195,15 +195,15 @@ cat > /home/oib/aitbc/apps/coordinator-api/manage_services.sh << 'EOF'
case "$1" in
start)
echo "🚀 Starting all enhanced services..."
$SUDO systemctl start aitbc-multimodal aitbc-gpu-multimodal aitbc-modality-optimization aitbc-adaptive-learning aitbc-marketplace-enhanced aitbc-openclaw-enhanced
$SUDO systemctl start aitbc-multimodal aitbc-gpu-multimodal aitbc-modality-optimization aitbc-adaptive-learning aitbc-marketplace-enhanced aitbc-hermes-enhanced
;;
stop)
echo "🛑 Stopping all enhanced services..."
$SUDO systemctl stop aitbc-multimodal aitbc-gpu-multimodal aitbc-modality-optimization aitbc-adaptive-learning aitbc-marketplace-enhanced aitbc-openclaw-enhanced
$SUDO systemctl stop aitbc-multimodal aitbc-gpu-multimodal aitbc-modality-optimization aitbc-adaptive-learning aitbc-marketplace-enhanced aitbc-hermes-enhanced
;;
restart)
echo "🔄 Restarting all enhanced services..."
$SUDO systemctl restart aitbc-multimodal aitbc-gpu-multimodal aitbc-modality-optimization aitbc-adaptive-learning aitbc-marketplace-enhanced aitbc-openclaw-enhanced
$SUDO systemctl restart aitbc-multimodal aitbc-gpu-multimodal aitbc-modality-optimization aitbc-adaptive-learning aitbc-marketplace-enhanced aitbc-hermes-enhanced
;;
status)
/home/oib/aitbc/apps/coordinator-api/check_services.sh
@@ -219,7 +219,7 @@ case "$1" in
echo "aitbc-modality-optimization"
echo "aitbc-adaptive-learning"
echo "aitbc-marketplace-enhanced"
echo "aitbc-openclaw-enhanced"
echo "aitbc-hermes-enhanced"
echo ""
echo "Usage: $0 logs <service-name>"
fi
@@ -257,7 +257,7 @@ print_status " GPU Multi-Modal: http://127.0.0.1:8003"
print_status " Modality Optimization: http://127.0.0.1:8004"
print_status " Adaptive Learning: http://127.0.0.1:8005"
print_status " Enhanced Marketplace: http://127.0.0.1:8006"
print_status " OpenClaw Enhanced: http://127.0.0.1:8007"
print_status " hermes Enhanced: http://127.0.0.1:8007"
print_status ""
print_status "📊 Monitoring:"
print_status " $SUDO systemctl status aitbc-multimodal"
@@ -266,4 +266,4 @@ print_status " $SUDO journalctl -u aitbc-gpu-multimodal -f"
print_status " $SUDO journalctl -u aitbc-modality-optimization -f"
print_status " $SUDO journalctl -u aitbc-adaptive-learning -f"
print_status " $SUDO journalctl -u aitbc-marketplace-enhanced -f"
print_status " $SUDO journalctl -u aitbc-openclaw-enhanced -f"
print_status " $SUDO journalctl -u aitbc-hermes-enhanced -f"

View File

@@ -36,7 +36,7 @@ declare -A SERVICES=(
["aitbc-modality-optimization"]="Modality Optimization Service"
["aitbc-adaptive-learning"]="Adaptive Learning Service"
["aitbc-marketplace-enhanced"]="Enhanced Marketplace Service"
["aitbc-openclaw-enhanced"]="OpenClaw Enhanced Service"
["aitbc-hermes-enhanced"]="hermes Enhanced Service"
)
# Show usage

View File

@@ -1,6 +1,6 @@
"""
High Priority Implementation - Phase 6.5 & 6.6
On-Chain Model Marketplace Enhancement and OpenClaw Integration Enhancement
On-Chain Model Marketplace Enhancement and hermes Integration Enhancement
"""
import asyncio
@@ -71,7 +71,7 @@ class HighPriorityImplementation:
implementation_result["errors"].append(f"Phase 6.5 task {task} failed: {e}")
logger.error(f"❌ Failed Phase 6.5 task {task}: {e}")
# Implement Phase 6.6: OpenClaw Enhancement
# Implement Phase 6.6: hermes Enhancement
for task in self.phase6_6_tasks:
try:
task_result = await self._implement_phase6_6_task(task)
@@ -347,7 +347,7 @@ class HighPriorityImplementation:
}
async def _implement_opencaw_ecosystem_development(self) -> Dict[str, Any]:
"""Implement OpenClaw ecosystem development"""
"""Implement hermes ecosystem development"""
return {
"developer_tools": {
@@ -377,7 +377,7 @@ class HighPriorityImplementation:
}
async def _implement_opencaw_partnership_programs(self) -> Dict[str, Any]:
"""Implement OpenClaw partnership programs"""
"""Implement hermes partnership programs"""
return {
"technology_integration": {
@@ -768,7 +768,7 @@ async def main():
print("=" * 60)
print(f"✅ Implementation Status: {result['implementation_status']}")
print(f"✅ Phase 6.5: Marketplace Enhancement Complete")
print(f"✅ Phase 6.6: OpenClaw Enhancement Complete")
print(f"✅ Phase 6.6: hermes Enhancement Complete")
print(f"✅ High Priority Features: {len(result['features_implemented'])} implemented")
print(f"✅ Ready for: Production deployment and user adoption")

View File

@@ -139,7 +139,7 @@ class Settings(BaseSettings):
"http://localhost:8012", # Modality Optimization
"http://localhost:8013", # Adaptive Learning
"http://localhost:8014", # Marketplace Enhanced
"http://localhost:8015", # OpenClaw Enhanced
"http://localhost:8015", # hermes Enhanced
"http://localhost:8016", # Web UI
]

View File

@@ -47,7 +47,7 @@ class Settings(BaseSettings):
"http://localhost:8012", # Modality Optimization
"http://localhost:8013", # Adaptive Learning
"http://localhost:8014", # Marketplace Enhanced
"http://localhost:8015", # OpenClaw Enhanced
"http://localhost:8015", # hermes Enhanced
"http://localhost:8016", # Web UI
"https://aitbc.bubuit.net",
"https://aitbc.bubuit.net:8011",

View File

@@ -70,7 +70,7 @@ class AgentPerformanceProfile(SQLModel, table=True):
# Agent identification
agent_id: str = Field(index=True)
agent_type: str = Field(default="openclaw")
agent_type: str = Field(default="hermes")
agent_version: str = Field(default="1.0.0")
# Performance metrics

View File

@@ -1,6 +1,6 @@
"""
Community and Developer Ecosystem Models
Database models for OpenClaw agent community, third-party solutions, and innovation labs
Database models for hermes agent community, third-party solutions, and innovation labs
"""
import uuid
@@ -44,7 +44,7 @@ class HackathonStatus(StrEnum):
class DeveloperProfile(SQLModel, table=True):
"""Profile for a developer in the OpenClaw community"""
"""Profile for a developer in the hermes community"""
__tablename__ = "developer_profiles"

View File

@@ -1,6 +1,6 @@
"""
Decentralized Governance Models
Database models for OpenClaw DAO, voting, proposals, and governance analytics
Database models for hermes DAO, voting, proposals, and governance analytics
"""
import uuid

View File

@@ -77,7 +77,7 @@ except ImportError:
print("WARNING: ML ZK proofs router not available (missing tenseal)")
from .routers.marketplace_enhanced_simple import router as marketplace_enhanced
from .routers.monitoring_dashboard import router as monitoring_dashboard
from .routers.openclaw_enhanced_simple import router as openclaw_enhanced
from .routers.hermes_enhanced_simple import router as hermes_enhanced
# Skip optional routers with missing dependencies
try:
@@ -339,7 +339,7 @@ def create_app() -> FastAPI:
if ml_zk_proofs:
app.include_router(ml_zk_proofs)
app.include_router(marketplace_enhanced, prefix="/v1")
app.include_router(openclaw_enhanced, prefix="/v1")
app.include_router(hermes_enhanced, prefix="/v1")
app.include_router(monitoring_dashboard, prefix="/v1")
app.include_router(agent_router.router, prefix="/v1/agents")
app.include_router(agent_identity, prefix="/v1")

View File

@@ -47,7 +47,7 @@ class PerformanceProfileRequest(BaseModel):
"""Request model for performance profile creation"""
agent_id: str
agent_type: str = Field(default="openclaw")
agent_type: str = Field(default="hermes")
initial_metrics: Dict[str, float] = Field(default_factory=dict)

View File

@@ -4,7 +4,7 @@ from sqlalchemy.orm import Session
"""
Community and Developer Ecosystem API Endpoints
REST API for managing OpenClaw developer profiles, SDKs, solutions, and hackathons
REST API for managing hermes developer profiles, SDKs, solutions, and hackathons
"""
from typing import Any
@@ -85,7 +85,7 @@ class HackathonCreateRequest(BaseModel):
# Endpoints - Developer Ecosystem
@router.post("/developers", response_model=DeveloperProfile)
async def create_developer_profile(request: DeveloperProfileCreate, session: Annotated[Session, Depends(get_session)]) -> DeveloperProfile:
"""Register a new developer in the OpenClaw ecosystem"""
"""Register a new developer in the hermes ecosystem"""
service = DeveloperEcosystemService(session)
try:
profile = await service.create_developer_profile(
@@ -109,7 +109,7 @@ async def get_developer_profile(developer_id: str, session: Annotated[Session, D
@router.get("/sdk/latest")
async def get_latest_sdk(session: Annotated[Session, Depends(get_session)]) -> dict[str, Any]:
"""Get information about the latest OpenClaw SDK releases"""
"""Get information about the latest hermes SDK releases"""
service = DeveloperEcosystemService(session)
return await service.get_sdk_release_info()

View File

@@ -4,7 +4,7 @@ from sqlalchemy.orm import Session
"""
Decentralized Governance API Endpoints
REST API for OpenClaw DAO voting, proposals, and governance analytics
REST API for hermes DAO voting, proposals, and governance analytics
"""
from __future__ import annotations

View File

@@ -52,8 +52,8 @@ SERVICES = {
"description": "NFT 2.0, royalties, analytics",
"icon": "🏪",
},
"openclaw_enhanced": {
"name": "OpenClaw Enhanced Service",
"hermes_enhanced": {
"name": "hermes Enhanced Service",
"port": 8007,
"url": "http://localhost:8007",
"description": "Agent orchestration, edge computing",

View File

@@ -3,7 +3,7 @@ from typing import Annotated
from sqlalchemy.orm import Session
"""
OpenClaw Integration Enhancement API Router - Phase 6.6
hermes Integration Enhancement API Router - Phase 6.6
REST API endpoints for advanced agent orchestration, edge computing integration, and ecosystem development
"""
@@ -14,7 +14,7 @@ logger = get_logger(__name__)
from fastapi import APIRouter, Depends, HTTPException
from ..deps import require_admin_key
from ..schemas.openclaw_enhanced import (
from ..schemas.hermes_enhanced import (
AgentCollaborationRequest,
AgentCollaborationResponse,
EcosystemDevelopmentRequest,
@@ -30,10 +30,10 @@ from ..schemas.openclaw_enhanced import (
SkillRoutingRequest,
SkillRoutingResponse,
)
from ..services.openclaw_enhanced import OpenClawEnhancedService
from ..services.hermes_enhanced import hermesEnhancedService
from ..storage import get_session
router = APIRouter(prefix="/openclaw/enhanced", tags=["OpenClaw Enhanced"])
router = APIRouter(prefix="/hermes/enhanced", tags=["hermes Enhanced"])
@router.post("/routing/skill", response_model=SkillRoutingResponse)
@@ -45,7 +45,7 @@ async def route_agent_skill(
"""Sophisticated agent skill routing"""
try:
enhanced_service = OpenClawEnhancedService(session)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.route_agent_skill(
skill_type=routing_request.skill_type,
requirements=routing_request.requirements,
@@ -73,7 +73,7 @@ async def intelligent_job_offloading(
"""Intelligent job offloading strategies"""
try:
enhanced_service = OpenClawEnhancedService(session)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.offload_job_intelligently(
job_data=offloading_request.job_data,
cost_optimization=offloading_request.cost_optimization,
@@ -102,7 +102,7 @@ async def coordinate_agent_collaboration(
"""Agent collaboration and coordination"""
try:
enhanced_service = OpenClawEnhancedService(session)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.coordinate_agent_collaboration(
task_data=collaboration_request.task_data,
agent_ids=collaboration_request.agent_ids,
@@ -131,7 +131,7 @@ async def optimize_hybrid_execution(
"""Hybrid execution optimization"""
try:
enhanced_service = OpenClawEnhancedService(session)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.optimize_hybrid_execution(
execution_request=execution_request.execution_request,
optimization_strategy=execution_request.optimization_strategy,
@@ -159,7 +159,7 @@ async def deploy_to_edge(
"""Deploy agent to edge computing infrastructure"""
try:
enhanced_service = OpenClawEnhancedService(session)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.deploy_to_edge(
agent_id=deployment_request.agent_id,
edge_locations=deployment_request.edge_locations,
@@ -188,7 +188,7 @@ async def coordinate_edge_to_cloud(
"""Coordinate edge-to-cloud agent operations"""
try:
enhanced_service = OpenClawEnhancedService(session)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.coordinate_edge_to_cloud(
edge_deployment_id=coordination_request.edge_deployment_id,
coordination_config=coordination_request.coordination_config,
@@ -209,16 +209,16 @@ async def coordinate_edge_to_cloud(
@router.post("/ecosystem/develop", response_model=EcosystemDevelopmentResponse)
async def develop_openclaw_ecosystem(
async def develop_hermes_ecosystem(
ecosystem_request: EcosystemDevelopmentRequest,
session: Session = Depends(Annotated[Session, Depends(get_session)]),
current_user: str = Depends(require_admin_key()),
) -> EcosystemDevelopmentResponse:
"""Build comprehensive OpenClaw ecosystem"""
"""Build comprehensive hermes ecosystem"""
try:
enhanced_service = OpenClawEnhancedService(session)
result = await enhanced_service.develop_openclaw_ecosystem(ecosystem_config=ecosystem_request.ecosystem_config)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.develop_hermes_ecosystem(ecosystem_config=ecosystem_request.ecosystem_config)
return EcosystemDevelopmentResponse(
ecosystem_id=result["ecosystem_id"],
@@ -230,5 +230,5 @@ async def develop_openclaw_ecosystem(
)
except Exception as e:
logger.error(f"Error developing OpenClaw ecosystem: {e}")
logger.error(f"Error developing hermes ecosystem: {e}")
raise HTTPException(status_code=500, detail=str(e))

View File

@@ -1,7 +1,7 @@
"""
OpenClaw Enhanced Service - FastAPI Entry Point
hermes Enhanced Service - FastAPI Entry Point
"""
from typing import Any
@@ -9,13 +9,13 @@ from typing import Any
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from .openclaw_enhanced_health import router as health_router
from .openclaw_enhanced_simple import router
from .hermes_enhanced_health import router as health_router
from .hermes_enhanced_simple import router
app = FastAPI(
title="AITBC OpenClaw Enhanced Service",
title="AITBC hermes Enhanced Service",
version="1.0.0",
description="OpenClaw integration with agent orchestration and edge computing",
description="hermes integration with agent orchestration and edge computing",
)
app.add_middleware(
@@ -35,7 +35,7 @@ app.include_router(health_router, tags=["health"])
@app.get("/health")
async def health() -> dict[str, str]:
return {"status": "ok", "service": "openclaw-enhanced"}
return {"status": "ok", "service": "hermes-enhanced"}
@app.get("/health/detailed")
@@ -48,7 +48,7 @@ async def detailed_health() -> dict[str, Any]:
return {
"status": "healthy",
"service": "openclaw-enhanced",
"service": "hermes-enhanced",
"port": 8014,
"timestamp": datetime.now(timezone.utc).isoformat(),
"python_version": "3.13.5",

View File

@@ -1,7 +1,7 @@
from typing import Annotated
"""
OpenClaw Enhanced Service Health Check Router
hermes Enhanced Service Health Check Router
Provides health monitoring for agent orchestration, edge computing, and ecosystem development
"""
@@ -15,21 +15,21 @@ from sqlalchemy.orm import Session
from aitbc import get_logger
from ..services.openclaw_enhanced import OpenClawEnhancedService
from ..services.hermes_enhanced import hermesEnhancedService
from ..storage import get_session
router = APIRouter()
logger = get_logger(__name__)
@router.get("/health", tags=["health"], summary="OpenClaw Enhanced Service Health")
async def openclaw_enhanced_health(session: Annotated[Session, Depends(get_session)]) -> dict[str, Any]:
@router.get("/health", tags=["health"], summary="hermes Enhanced Service Health")
async def hermes_enhanced_health(session: Annotated[Session, Depends(get_session)]) -> dict[str, Any]:
"""
Health check for OpenClaw Enhanced Service (Port 8007)
Health check for hermes Enhanced Service (Port 8007)
"""
try:
# Initialize service
OpenClawEnhancedService(session)
hermesEnhancedService(session)
# Check system resources
cpu_percent = psutil.cpu_percent(interval=1)
@@ -41,7 +41,7 @@ async def openclaw_enhanced_health(session: Annotated[Session, Depends(get_sessi
service_status = {
"status": "healthy" if edge_status["available"] else "degraded",
"service": "openclaw-enhanced",
"service": "hermes-enhanced",
"port": 8007,
"timestamp": datetime.now(timezone.utc).isoformat(),
"python_version": f"{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}",
@@ -55,7 +55,7 @@ async def openclaw_enhanced_health(session: Annotated[Session, Depends(get_sessi
},
# Edge computing status
"edge_computing": edge_status,
# OpenClaw capabilities
# hermes capabilities
"capabilities": {
"agent_orchestration": True,
"edge_deployment": True,
@@ -86,29 +86,29 @@ async def openclaw_enhanced_health(session: Annotated[Session, Depends(get_sessi
},
}
logger.info("OpenClaw Enhanced Service health check completed successfully")
logger.info("hermes Enhanced Service health check completed successfully")
return service_status
except Exception as e:
logger.error(f"OpenClaw Enhanced Service health check failed: {e}")
logger.error(f"hermes Enhanced Service health check failed: {e}")
return {
"status": "unhealthy",
"service": "openclaw-enhanced",
"service": "hermes-enhanced",
"port": 8007,
"timestamp": datetime.now(timezone.utc).isoformat(),
"error": "Health check failed",
}
@router.get("/health/deep", tags=["health"], summary="Deep OpenClaw Enhanced Service Health")
async def openclaw_enhanced_deep_health(session: Annotated[Session, Depends(get_session)]) -> dict[str, Any]:
@router.get("/health/deep", tags=["health"], summary="Deep hermes Enhanced Service Health")
async def hermes_enhanced_deep_health(session: Annotated[Session, Depends(get_session)]) -> dict[str, Any]:
"""
Deep health check with OpenClaw ecosystem validation
Deep health check with hermes ecosystem validation
"""
try:
OpenClawEnhancedService(session)
hermesEnhancedService(session)
# Test each OpenClaw feature
# Test each hermes feature
feature_tests = {}
# Test agent orchestration
@@ -160,7 +160,7 @@ async def openclaw_enhanced_deep_health(session: Annotated[Session, Depends(get_
return {
"status": "healthy" if edge_status["available"] else "degraded",
"service": "openclaw-enhanced",
"service": "hermes-enhanced",
"port": 8007,
"timestamp": datetime.now(timezone.utc).isoformat(),
"feature_tests": feature_tests,
@@ -173,10 +173,10 @@ async def openclaw_enhanced_deep_health(session: Annotated[Session, Depends(get_
}
except Exception as e:
logger.error(f"Deep OpenClaw Enhanced health check failed: {e}")
logger.error(f"Deep hermes Enhanced health check failed: {e}")
return {
"status": "unhealthy",
"service": "openclaw-enhanced",
"service": "hermes-enhanced",
"port": 8007,
"timestamp": datetime.now(timezone.utc).isoformat(),
"error": "Deep health check failed",

View File

@@ -3,8 +3,8 @@ from typing import Annotated
from sqlalchemy.orm import Session
"""
OpenClaw Enhanced API Router - Simplified Version
REST API endpoints for OpenClaw integration features
hermes Enhanced API Router - Simplified Version
REST API endpoints for hermes integration features
"""
from typing import Any
@@ -18,10 +18,10 @@ from pydantic import BaseModel, Field
from sqlmodel import Session
from ..deps import require_admin_key
from ..services.openclaw_enhanced_simple import OpenClawEnhancedService, SkillType
from ..services.hermes_enhanced_simple import hermesEnhancedService, SkillType
from ..storage import get_session
router = APIRouter(prefix="/openclaw/enhanced", tags=["OpenClaw Enhanced"])
router = APIRouter(prefix="/hermes/enhanced", tags=["hermes Enhanced"])
class SkillRoutingRequest(BaseModel):
@@ -85,7 +85,7 @@ async def route_agent_skill(
"""Route agent skill to appropriate agent"""
try:
enhanced_service = OpenClawEnhancedService(session)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.route_agent_skill(
skill_type=request.skill_type,
requirements=request.requirements,
@@ -108,7 +108,7 @@ async def intelligent_job_offloading(
"""Intelligent job offloading strategies"""
try:
enhanced_service = OpenClawEnhancedService(session)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.offload_job_intelligently(
job_data=request.job_data,
cost_optimization=request.cost_optimization,
@@ -131,7 +131,7 @@ async def coordinate_agent_collaboration(
"""Agent collaboration and coordination"""
try:
enhanced_service = OpenClawEnhancedService(session)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.coordinate_agent_collaboration(
task_data=request.task_data, agent_ids=request.agent_ids, coordination_algorithm=request.coordination_algorithm
)
@@ -152,7 +152,7 @@ async def optimize_hybrid_execution(
"""Hybrid execution optimization"""
try:
enhanced_service = OpenClawEnhancedService(session)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.optimize_hybrid_execution(
execution_request=request.execution_request, optimization_strategy=request.optimization_strategy
)
@@ -173,7 +173,7 @@ async def deploy_to_edge(
"""Deploy agent to edge computing infrastructure"""
try:
enhanced_service = OpenClawEnhancedService(session)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.deploy_to_edge(
agent_id=request.agent_id, edge_locations=request.edge_locations, deployment_config=request.deployment_config
)
@@ -194,7 +194,7 @@ async def coordinate_edge_to_cloud(
"""Coordinate edge-to-cloud agent operations"""
try:
enhanced_service = OpenClawEnhancedService(session)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.coordinate_edge_to_cloud(
edge_deployment_id=request.edge_deployment_id, coordination_config=request.coordination_config
)
@@ -207,19 +207,19 @@ async def coordinate_edge_to_cloud(
@router.post("/ecosystem/develop")
async def develop_openclaw_ecosystem(
async def develop_hermes_ecosystem(
request: EcosystemDevelopmentRequest,
session: Session = Depends(Annotated[Session, Depends(get_session)]),
current_user: str = Depends(require_admin_key()),
) -> dict[str, Any]:
"""Build OpenClaw ecosystem components"""
"""Build hermes ecosystem components"""
try:
enhanced_service = OpenClawEnhancedService(session)
result = await enhanced_service.develop_openclaw_ecosystem(ecosystem_config=request.ecosystem_config)
enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.develop_hermes_ecosystem(ecosystem_config=request.ecosystem_config)
return result
except Exception as e:
logger.error(f"Error developing OpenClaw ecosystem: {e}")
logger.error(f"Error developing hermes ecosystem: {e}")
raise HTTPException(status_code=500, detail=str(e))

View File

@@ -1,6 +1,6 @@
"""
OpenClaw Enhanced Pydantic Schemas - Phase 6.6
Request and response models for advanced OpenClaw integration features
hermes Enhanced Pydantic Schemas - Phase 6.6
Request and response models for advanced hermes integration features
"""
from enum import StrEnum

View File

@@ -1,5 +1,5 @@
"""
Agent Orchestrator Service for OpenClaw Autonomous Economics
Agent Orchestrator Service for hermes Autonomous Economics
Implements multi-agent coordination and sub-task management
"""

View File

@@ -1,6 +1,6 @@
"""
Advanced Agent Performance Service
Implements meta-learning, resource optimization, and performance enhancement for OpenClaw agents
Implements meta-learning, resource optimization, and performance enhancement for hermes agents
"""
import asyncio
@@ -849,7 +849,7 @@ class AgentPerformanceService:
self.performance_optimizer = PerformanceOptimizer()
async def create_performance_profile(
self, agent_id: str, agent_type: str = "openclaw", initial_metrics: dict[str, float] | None = None
self, agent_id: str, agent_type: str = "hermes", initial_metrics: dict[str, float] | None = None
) -> AgentPerformanceProfile:
"""Create comprehensive agent performance profile"""
@@ -886,7 +886,7 @@ class AgentPerformanceService:
if not profile:
# Create profile if it doesn't exist
profile = await self.create_performance_profile(agent_id, "openclaw", new_metrics)
profile = await self.create_performance_profile(agent_id, "hermes", new_metrics)
else:
# Update existing profile
profile.performance_metrics.update(new_metrics)

View File

@@ -1,5 +1,5 @@
"""
Bid Strategy Engine for OpenClaw Autonomous Economics
Bid Strategy Engine for hermes Autonomous Economics
Implements intelligent bidding algorithms for GPU rental negotiations
"""

View File

@@ -1,6 +1,6 @@
"""
Community and Developer Ecosystem Services
Services for managing OpenClaw developer tools, SDKs, and third-party solutions
Services for managing hermes developer tools, SDKs, and third-party solutions
"""
from datetime import datetime, timezone

View File

@@ -1,6 +1,6 @@
"""
Decentralized Governance Service
Implements the OpenClaw DAO, voting mechanisms, and proposal lifecycle
Implements the hermes DAO, voting mechanisms, and proposal lifecycle
Enhanced with multi-jurisdictional support and regional governance
"""

View File

@@ -1,5 +1,5 @@
"""
OpenClaw Integration Enhancement Service - Phase 6.6
hermes Integration Enhancement Service - Phase 6.6
Implements advanced agent orchestration, edge computing integration, and ecosystem development
"""
@@ -34,8 +34,8 @@ class ExecutionMode(StrEnum):
HYBRID = "hybrid"
class OpenClawEnhancedService:
"""Enhanced OpenClaw integration service"""
class hermesEnhancedService:
"""Enhanced hermes integration service"""
def __init__(self, session: Session) -> None:
self.session = session
@@ -361,8 +361,8 @@ class OpenClawEnhancedService:
"backup_locations": ["cloud-primary", "edge-secondary"],
}
async def develop_openclaw_ecosystem(self, ecosystem_config: dict[str, Any]) -> dict[str, Any]:
"""Build comprehensive OpenClaw ecosystem"""
async def develop_hermes_ecosystem(self, ecosystem_config: dict[str, Any]) -> dict[str, Any]:
"""Build comprehensive hermes ecosystem"""
# Create developer tools and SDKs
developer_tools = await self._create_developer_tools(ecosystem_config)
@@ -386,34 +386,34 @@ class OpenClawEnhancedService:
}
async def _create_developer_tools(self, config: dict[str, Any]) -> dict[str, Any]:
"""Create OpenClaw developer tools and SDKs"""
"""Create hermes developer tools and SDKs"""
return {
"sdk_version": "2.0.0",
"languages": ["python", "javascript", "go", "rust"],
"tools": ["cli", "ide-plugin", "debugger"],
"documentation": "https://docs.openclaw.ai",
"documentation": "https://docs.hermes.ai",
}
async def _create_agent_marketplace(self, config: dict[str, Any]) -> dict[str, Any]:
"""Create OpenClaw marketplace for agent solutions"""
"""Create hermes marketplace for agent solutions"""
return {
"marketplace_url": "https://marketplace.openclaw.ai",
"marketplace_url": "https://marketplace.hermes.ai",
"agent_categories": ["inference", "training", "custom"],
"payment_methods": ["cryptocurrency", "fiat"],
"revenue_model": "commission_based",
}
async def _develop_community_governance(self, config: dict[str, Any]) -> dict[str, Any]:
"""Develop OpenClaw community and governance"""
"""Develop hermes community and governance"""
return {
"governance_model": "dao",
"voting_mechanism": "token_based",
"community_forum": "https://community.openclaw.ai",
"contribution_guidelines": "https://github.com/openclaw/contributing",
"community_forum": "https://community.hermes.ai",
"contribution_guidelines": "https://github.com/hermes/contributing",
}
async def _establish_partnership_programs(self, config: dict[str, Any]) -> dict[str, Any]:
"""Establish OpenClaw partnership programs"""
"""Establish hermes partnership programs"""
return {
"technology_partners": ["cloud_providers", "hardware_manufacturers"],
"integration_partners": ["ai_frameworks", "ml_platforms"],

View File

@@ -1,6 +1,6 @@
"""
OpenClaw Enhanced Service - Simplified Version for Deployment
Basic OpenClaw integration features compatible with existing infrastructure
hermes Enhanced Service - Simplified Version for Deployment
Basic hermes integration features compatible with existing infrastructure
"""
from aitbc import get_logger
@@ -32,8 +32,8 @@ class ExecutionMode(StrEnum):
HYBRID = "hybrid"
class OpenClawEnhancedService:
"""Simplified OpenClaw enhanced service"""
class hermesEnhancedService:
"""Simplified hermes enhanced service"""
def __init__(self, session: Session):
self.session = session
@@ -409,8 +409,8 @@ class OpenClawEnhancedService:
logger.error(f"Error coordinating edge-to-cloud: {e}")
raise
async def develop_openclaw_ecosystem(self, ecosystem_config: dict[str, Any]) -> dict[str, Any]:
"""Develop OpenClaw ecosystem components"""
async def develop_hermes_ecosystem(self, ecosystem_config: dict[str, Any]) -> dict[str, Any]:
"""Develop hermes ecosystem components"""
try:
ecosystem_id = f"ecosystem_{uuid4().hex[:8]}"
@@ -420,12 +420,12 @@ class OpenClawEnhancedService:
"sdk_version": "1.0.0",
"languages": ["python", "javascript", "go"],
"tools": ["cli", "sdk", "debugger"],
"documentation": "https://docs.openclaw.aitbc.net",
"documentation": "https://docs.hermes.aitbc.net",
}
# Marketplace
marketplace = {
"marketplace_url": "https://marketplace.openclaw.aitbc.net",
"marketplace_url": "https://marketplace.hermes.aitbc.net",
"agent_categories": ["inference", "training", "data_processing"],
"payment_methods": ["AITBC", "BTC", "ETH"],
"revenue_model": "commission_based",
@@ -435,7 +435,7 @@ class OpenClawEnhancedService:
community = {
"governance_model": "dao",
"voting_mechanism": "token_based",
"community_forum": "https://forum.openclaw.aitbc.net",
"community_forum": "https://forum.hermes.aitbc.net",
"member_count": 150,
}
@@ -456,5 +456,5 @@ class OpenClawEnhancedService:
}
except Exception as e:
logger.error(f"Error developing OpenClaw ecosystem: {e}")
logger.error(f"Error developing hermes ecosystem: {e}")
raise

View File

@@ -1,5 +1,5 @@
"""
Task Decomposition Service for OpenClaw Autonomous Economics
Task Decomposition Service for hermes Autonomous Economics
Implements intelligent task splitting and sub-task management
"""

View File

@@ -105,8 +105,8 @@ class TestEnhancedServicesHealth:
"port": 8006,
"url": "http://localhost:8006",
},
"openclaw_enhanced": {
"name": "OpenClaw Enhanced Service",
"hermes_enhanced": {
"name": "hermes Enhanced Service",
"port": 8007,
"url": "http://localhost:8007",
}