Spaces:
Sleeping
Sleeping
David Prince
fix: add all missing local module stubs (remote_mcp_registry, mcp_auth, mcp_transport, etc)
cce8120 | set -euo pipefail | |
| ROOT=/root/projects/website-builder-backend-clean | |
| cd "$ROOT" | |
| cp backend/main.py backend/main.py.bak.$(date +%Y%m%d_%H%M%S) | |
| python3 <<'PY' | |
| from pathlib import Path | |
| import re | |
| p=Path("backend/main.py") | |
| src=p.read_text() | |
| pattern=r'app\s*=\s*FastAPI\([\s\S]*?version="1\.0\.0"\s*\)' | |
| replacement=''' | |
| app = FastAPI( | |
| title="Website Builder Agent Backend", | |
| description="Unified API combining Code Intelligence, Task Execution, Autonomous Builder, MCP JSON-RPC, and Workspace Operations", | |
| version="1.0.0" | |
| ) | |
| # -------- Dolor3V Engine -------- | |
| llm_gateway = LLMGateway() | |
| dolor3v = Orchestrator( | |
| gateway=llm_gateway | |
| ) | |
| app.state.dolor3v = dolor3v | |
| ''' | |
| src=re.sub(pattern,replacement,src,count=1) | |
| p.write_text(src) | |
| print("FastAPI constructor repaired.") | |
| PY | |
| python3 -m py_compile backend/main.py | |
| echo | |
| echo "SUCCESS" | |