Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions clawteam/board/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,23 @@ def collect_team(self, team_name: str) -> dict:
except Exception:
pass

# Conflict/overlap data
conflict_data = {}
try:
from clawteam.workspace.conflicts import detect_overlaps
overlaps = detect_overlaps(team_name)
conflict_data = {
"overlaps": [
{"file": o["file"], "agents": o["agents"], "severity": o["severity"]}
for o in overlaps
],
"totalOverlaps": len(overlaps),
"highSeverity": sum(1 for o in overlaps if o["severity"] == "high"),
"mediumSeverity": sum(1 for o in overlaps if o["severity"] == "medium"),
}
except Exception:
pass

return {
"team": {
"name": config.name,
Expand All @@ -105,6 +122,7 @@ def collect_team(self, team_name: str) -> dict:
"taskSummary": summary,
"messages": all_messages,
"cost": cost_data,
"conflicts": conflict_data,
}

def collect_overview(self) -> list[dict]:
Expand Down
Loading