@@ -44,7 +44,7 @@ def get_dashboard() -> dict[str, Any]:
4444 # 3. Entity counts and recent entities across namespaces
4545 # For MVP, we will aggregate from all available namespaces up to the limit
4646 total_entities = 0
47- type_breakdown : dict [str , int ] = {}
47+ approximate_type_breakdown : dict [str , int ] = {}
4848 recent_entities : list [dict [str , Any ]] = []
4949
5050 for ns in namespaces :
@@ -55,7 +55,7 @@ def get_dashboard() -> dict[str, Any]:
5555
5656 for entity in ns_entities :
5757 etype = entity .type or "unknown"
58- type_breakdown [etype ] = type_breakdown .get (etype , 0 ) + 1
58+ approximate_type_breakdown [etype ] = approximate_type_breakdown .get (etype , 0 ) + 1
5959
6060 # Safely handle non-string content before slicing
6161 content = entity .content
@@ -86,7 +86,8 @@ def get_dashboard() -> dict[str, Any]:
8686 "health" : health ,
8787 "namespace_count" : namespace_count ,
8888 "total_entities" : total_entities ,
89- "type_breakdown" : [{"type" : k , "count" : v } for k , v in type_breakdown .items ()],
89+ "approximate_type_breakdown" : [{"type" : k , "count" : v } for k , v in approximate_type_breakdown .items ()],
90+ "type_breakdown_is_approx" : True ,
9091 "recent_entities" : recent_entities ,
9192 }
9293
0 commit comments