Remove the redundant OpenClaw REST service (port 8004) since frontend already uses WebSocket via Gateway (port 8765) → OpenClaw (port 18789). Deleted: - backend/apps/openclaw_service.py - backend/api/openclaw.py - backend/tests/test_openclaw_service_app.py - backend/tests/test_service_clients.py - shared/client/openclaw_client.py Updated: - backend/apps/__init__.py — remove openclaw_app exports - backend/api/__init__.py — remove openclaw_router - shared/client/__init__.py — remove OpenClawServiceClient - backend/services/gateway_openclaw_handlers.py — update docstring - start.sh — remove port 8004 service startup Architecture: - Before: Frontend → HTTP :8004 → subprocess openclaw CLI - After: Frontend → WS :8765 → Gateway → WS :18789 → OpenClaw Constraint: Frontend already uses WebSocket exclusively Confidence: high Scope-risk: low (frontend unchanged)
31 lines
876 B
Python
31 lines
876 B
Python
# -*- coding: utf-8 -*-
|
|
"""Application surfaces for progressive service extraction."""
|
|
|
|
from .agent_service import app as agent_app
|
|
from .agent_service import create_app as create_agent_app
|
|
from .news_service import app as news_app
|
|
from .news_service import create_app as create_news_app
|
|
from .runtime_service import app as runtime_app
|
|
from .runtime_service import create_app as create_runtime_app
|
|
from .trading_service import app as trading_app
|
|
from .trading_service import create_app as create_trading_app
|
|
from .cors import add_cors_middleware, get_cors_origins
|
|
|
|
app = agent_app
|
|
create_app = create_agent_app
|
|
|
|
__all__ = [
|
|
"app",
|
|
"create_app",
|
|
"agent_app",
|
|
"create_agent_app",
|
|
"news_app",
|
|
"create_news_app",
|
|
"runtime_app",
|
|
"create_runtime_app",
|
|
"trading_app",
|
|
"create_trading_app",
|
|
"add_cors_middleware",
|
|
"get_cors_origins",
|
|
]
|