Spaces:
Sleeping
Sleeping
David Prince
fix: add all missing local module stubs (remote_mcp_registry, mcp_auth, mcp_transport, etc)
cce8120 | def generate_component_endpoint(name: str, description: str, framework: str = "react"): | |
| return builder_service.generate_component(name, description, framework) | |
| def generate_api_endpoint(endpoint_path: str, method: str = "GET", description: str = ""): | |
| return builder_service.generate_api(endpoint_path, method, description) | |
| def generate_schema_endpoint(table_name: str, fields: list = Body(...)): | |
| return builder_service.generate_schema(table_name, fields) | |
| def generate_pipeline_endpoint(target: str = "docker"): | |
| return builder_service.generate_pipeline(target) | |
| # Build System & Queue Endpoints | |
| async def start_build(target: str, project_dir: str = "."): | |
| # target can be 'apk', 'static', or 'docker' | |
| build_id = build_queue.trigger_build(target, project_dir) | |
| return {"status": "accepted", "build_id": build_id, "target": target} | |
| def get_build_status(build_id: str): | |
| status = build_queue.get_build_status(build_id) | |
| if not status: | |
| raise HTTPException(status_code=404, detail="Build not found") | |
| return status | |
| async def root(): | |
| return { | |
| "status": "ok", | |
| "service": "Website Builder Agent Backend", | |
| "docs": "/docs", | |
| "openapi": "/openapi.json" | |
| } | |