Structure webber into three independent subprojects: - webber-api/: FastAPI backend server with all agent code - webber-cli/: Standalone CLI client (renamed from cli/ to webber_cli/) - webber-sandbox/: Test project for functional testing Key changes: - Each subproject has its own .venv (Python 3.12+) - Added sandbox.sh for managing test project templates - Created sandbox-templates/ with calculator-cli and empty starter - Updated CI/CD for prefixed tags (api/v*, cli/v*) - Added comprehensive AGENTS.md with operational instructions - Added gitignore filtering to glob and grep tools - Created pyproject.toml for each subproject Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
780 B
Python
28 lines
780 B
Python
"""
|
|
Root router - composes all domain routers.
|
|
|
|
Import and include domain routers here.
|
|
main.py only includes this root_router.
|
|
"""
|
|
from fastapi import APIRouter
|
|
|
|
from src.domains.health.router import router as health_router
|
|
from src.domains.agents.router import router as agents_router
|
|
|
|
# from src.domains.auth.router import router as auth_router
|
|
# from src.domains.tools.router import router as tools_router
|
|
|
|
root_router = APIRouter()
|
|
|
|
# Health (no prefix - root level)
|
|
root_router.include_router(health_router)
|
|
|
|
# Agents domain (prefix defined in router)
|
|
root_router.include_router(agents_router)
|
|
|
|
# Auth domain
|
|
# root_router.include_router(auth_router, prefix="/auth", tags=["Auth"])
|
|
|
|
# Tools domain
|
|
# root_router.include_router(tools_router, prefix="/tools", tags=["Tools"])
|