Fix SEO skill 34 bugs, Korean labels, and transition Ahrefs refs to our-seo-agent (#2)
This commit is contained in:
@@ -55,7 +55,7 @@ SKILL_REGISTRY = {
|
||||
28: {"name": "knowledge-graph", "category": "entity_seo", "weight": 0.10},
|
||||
31: {"name": "competitor-intel", "category": "competitor", "weight": 0.15},
|
||||
32: {"name": "crawl-budget", "category": "technical", "weight": 0.10},
|
||||
33: {"name": "page-experience", "category": "performance", "weight": 0.10},
|
||||
33: {"name": "migration-planner", "category": "migration", "weight": 0.10},
|
||||
}
|
||||
|
||||
CATEGORY_WEIGHTS = {
|
||||
@@ -69,6 +69,13 @@ CATEGORY_WEIGHTS = {
|
||||
"competitor": 0.05,
|
||||
"schema": 0.05,
|
||||
"kpi": 0.05,
|
||||
"comprehensive": 1.0,
|
||||
"search_console": 0.05,
|
||||
"ecommerce": 0.05,
|
||||
"international": 0.05,
|
||||
"ai_search": 0.05,
|
||||
"entity_seo": 0.05,
|
||||
"migration": 0.05,
|
||||
}
|
||||
|
||||
|
||||
@@ -255,14 +262,15 @@ class ReportAggregator(BaseAsyncClient):
|
||||
|
||||
# Extract health score — check top-level first, then nested data dict
|
||||
score_found = False
|
||||
for key in ("health_score", "overall_health", "score"):
|
||||
for key in ("health_score", "overall_health", "overall_score", "score",
|
||||
"technical_score", "efficiency_score", "onpage_score"):
|
||||
if key in data:
|
||||
try:
|
||||
skill_output.health_score = float(data[key])
|
||||
score_found = True
|
||||
break
|
||||
except (ValueError, TypeError):
|
||||
pass
|
||||
break
|
||||
continue
|
||||
|
||||
if not score_found:
|
||||
nested = data.get("data", {})
|
||||
@@ -276,9 +284,9 @@ class ReportAggregator(BaseAsyncClient):
|
||||
if val is not None:
|
||||
try:
|
||||
skill_output.health_score = float(val)
|
||||
break
|
||||
except (ValueError, TypeError):
|
||||
pass
|
||||
break
|
||||
continue
|
||||
|
||||
# Extract audit date
|
||||
for key in ("audit_date", "report_date", "timestamp", "found_date"):
|
||||
|
||||
Reference in New Issue
Block a user