Skip to content

Commit c0fa6e3

Browse files
committed
[fix]: update integration points after restructuring
1 parent 092b1a5 commit c0fa6e3

File tree

4 files changed

+12
-31
lines changed

4 files changed

+12
-31
lines changed

backend/app/core/orchestration/agent_coordinator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
from app.agents.devrel.agent import DevRelAgent
66
# TODO: Implement GitHub agent
77
# from app.agents.github.agent import GitHubAgent
8-
from app.agents.shared.state import AgentState
8+
from app.agents.state import AgentState
99
from app.core.orchestration.queue_manager import AsyncQueueManager
10-
from app.agents.devrel.nodes.summarization_node import store_summary_to_database
10+
from app.agents.devrel.nodes.summarization import store_summary_to_database
1111
from langsmith import traceable
1212

1313
logger = logging.getLogger(__name__)

backend/main.py

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
import uvicorn
77
from fastapi import FastAPI, Response
88

9-
from app.api.v1.auth import router as auth_router
9+
from app.api.router import api_router
1010
from app.core.config import settings
1111
from app.core.orchestration.agent_coordinator import AgentCoordinator
1212
from app.core.orchestration.queue_manager import AsyncQueueManager
13-
from app.db.weaviate.weaviate_client import get_weaviate_client
14-
from bots.discord.discord_bot import DiscordBot
15-
from bots.discord.discord_cogs import DevRelCommands
13+
from app.database.weaviate.client import get_weaviate_client
14+
from integrations.discord.bot import DiscordBot
15+
from integrations.discord.cogs import DevRelCommands
1616

1717
logging.basicConfig(
1818
level=logging.INFO,
@@ -103,28 +103,8 @@ async def favicon():
103103
"""Return empty favicon to prevent 404 logs"""
104104
return Response(status_code=204)
105105

106-
@api.get("/health")
107-
async def health_check():
108-
"""Health check endpoint to verify services are running"""
109-
try:
110-
async with get_weaviate_client() as client:
111-
weaviate_ready = await client.is_ready()
112-
113-
return {
114-
"status": "healthy",
115-
"services": {
116-
"weaviate": "ready" if weaviate_ready else "not_ready",
117-
"discord_bot": "running" if app_instance.discord_bot and not app_instance.discord_bot.is_closed() else "stopped"
118-
}
119-
}
120-
except Exception as e:
121-
logger.error(f"Health check failed: {e}")
122-
return {
123-
"status": "unhealthy",
124-
"error": str(e)
125-
}
126-
127-
api.include_router(auth_router, prefix="/v1/auth", tags=["Authentication"])
106+
107+
api.include_router(api_router)
128108

129109

130110
if __name__ == "__main__":

backend/routes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class RepoRequest(BaseModel):
1414
repo_url: str
1515

16+
1617
logging.basicConfig(level=logging.INFO)
1718
handler_registry = HandlerRegistry()
1819
event_bus = EventBus(handler_registry)
@@ -71,7 +72,7 @@ async def github_webhook(request: Request):
7172
event_type = EventType.PR_MERGED
7273
else:
7374
logging.info("Pull request closed without merge; no event dispatched.")
74-
75+
7576
# Handle pull request comment events
7677
elif event_header in ["pull_request_review_comment", "pull_request_comment"]:
7778
action = payload.get("action")

tests/test_supabase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from ..backend.app.model.supabase.models import User, Interaction, CodeChunk, Repository
1+
from ..backend.app.models.database.supabase import User, Interaction, CodeChunk, Repository
22
from uuid import uuid4
3-
from ..backend.app.db.supabase.supabase_client import get_supabase_client
3+
from ..backend.app.database.supabase.client import get_supabase_client
44
from datetime import datetime # Your User model import
55

66
client = get_supabase_client()

0 commit comments

Comments
 (0)