Phase 1: Unified Config Format - Created config_validator.py with full validation - Supports multiple sources (documentation, github, pdf) - Backward compatible with legacy configs - Auto-converts legacy → unified format - Validates merge_mode and code_analysis_depth Phase 2: Deep Code Analysis - Created code_analyzer.py with language-specific parsers - Supports Python (AST), JavaScript/TypeScript (regex), C/C++ (regex) - Configurable depth: surface, deep, full - Extracts classes, functions, parameters, types, docstrings - Integrated into github_scraper.py Features: ✅ Unified config with sources array ✅ Code analysis depth: surface/deep/full ✅ Language detection and parser selection ✅ Signature extraction with full parameter info ✅ Type hints and default values captured ✅ Docstring extraction ✅ Example config: godot_unified.json Next: Conflict detection and merging 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
51 lines
1.4 KiB
JSON
51 lines
1.4 KiB
JSON
{
|
|
"name": "godot",
|
|
"description": "Complete Godot Engine knowledge base combining official documentation and source code analysis",
|
|
"merge_mode": "claude-enhanced",
|
|
"sources": [
|
|
{
|
|
"type": "documentation",
|
|
"base_url": "https://docs.godotengine.org/en/stable/",
|
|
"extract_api": true,
|
|
"selectors": {
|
|
"main_content": "div[role='main']",
|
|
"title": "title",
|
|
"code_blocks": "pre"
|
|
},
|
|
"url_patterns": {
|
|
"include": [],
|
|
"exclude": ["/search.html", "/_static/", "/_images/"]
|
|
},
|
|
"categories": {
|
|
"getting_started": ["introduction", "getting_started", "step_by_step"],
|
|
"scripting": ["scripting", "gdscript", "c_sharp"],
|
|
"2d": ["2d", "canvas", "sprite", "animation"],
|
|
"3d": ["3d", "spatial", "mesh", "shader"],
|
|
"physics": ["physics", "collision", "rigidbody"],
|
|
"api": ["api", "class", "reference", "method"]
|
|
},
|
|
"rate_limit": 0.5,
|
|
"max_pages": 500
|
|
},
|
|
{
|
|
"type": "github",
|
|
"repo": "godotengine/godot",
|
|
"github_token": null,
|
|
"code_analysis_depth": "deep",
|
|
"include_code": true,
|
|
"include_issues": true,
|
|
"max_issues": 100,
|
|
"include_changelog": true,
|
|
"include_releases": true,
|
|
"file_patterns": [
|
|
"core/**/*.h",
|
|
"core/**/*.cpp",
|
|
"scene/**/*.h",
|
|
"scene/**/*.cpp",
|
|
"servers/**/*.h",
|
|
"servers/**/*.cpp"
|
|
]
|
|
}
|
|
]
|
|
}
|