yusyus
eb3b9d9175
fix: Add robust CHANGELOG encoding handling and enhancement flags
Fixes #219 - Two issues resolved:
1. **Encoding Error Fix:**
- Added graceful error handling for CHANGELOG extraction
- Handles 'unsupported encoding: none' error from GitHub API
- Falls back to latin-1 encoding if UTF-8 fails
- Logs warnings instead of crashing
- Continues processing even if CHANGELOG has encoding issues
2. **Enhancement Flags Added:**
- Added --enhance-local flag to github command
- Added --enhance flag for API-based enhancement
- Added --api-key flag for API authentication
- Auto-enhancement after skill building when flags used
- Matches doc_scraper.py functionality
**Test Results:**
- ✅ All 612 tests passing (100% pass rate)
- ✅ All 22 github_scraper tests passing
- ✅ Backward compatible
**Usage:**
```bash
# Local enhancement (no API key needed)
skill-seekers github --repo ccxt/ccxt --name ccxtSkills --enhance-local
# API-based enhancement
skill-seekers github --repo owner/repo --enhance --api-key sk-ant-...
```
2025-12-28 18:21:03 +03:00
..
2025-12-28 18:21:03 +03:00
2025-12-26 00:45:48 +03:00
2025-11-07 01:14:24 +03:00