fix: pass enhance_level instead of removed enhance_with_ai/ai_mode to analyze_codebase (#323)
Two call sites (_run_c3_analysis in unified_scraper.py and _analyze_c3x in unified_codebase_analyzer.py) still passed the old enhance_with_ai and ai_mode kwargs which were replaced by enhance_level. This caused a TypeError when running C3.x codebase analysis. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -267,8 +267,7 @@ class UnifiedCodebaseAnalyzer:
|
||||
extract_test_examples=True,
|
||||
build_how_to_guides=True,
|
||||
extract_config_patterns=True,
|
||||
enhance_with_ai=False, # Disable AI for speed
|
||||
ai_mode="none",
|
||||
enhance_level=0, # Disable AI for speed
|
||||
)
|
||||
|
||||
# Load C3.x results from output files
|
||||
|
||||
@@ -1539,8 +1539,8 @@ class UnifiedScraper:
|
||||
extract_test_examples=True, # C3.2: Test examples
|
||||
build_how_to_guides=True, # C3.3: How-to guides
|
||||
extract_config_patterns=True, # C3.4: Config patterns
|
||||
enhance_with_ai=source.get("ai_mode", "auto") != "none",
|
||||
ai_mode=source.get("ai_mode", "auto"),
|
||||
extract_docs=True,
|
||||
enhance_level=0 if source.get("ai_mode", "auto") == "none" else 2,
|
||||
)
|
||||
|
||||
# Load C3.x outputs into memory
|
||||
|
||||
Reference in New Issue
Block a user