mirror of
https://github.com/csunny/DB-GPT.git
synced 2026-07-17 01:58:47 +00:00
- Add POST /v1/skills/import_github endpoint for importing skills from GitHub URLs and skills.sh URLs with subdirectory support - Implement URL parser (_parse_github_url) supporting github.com, skills.sh, /blob/ paths, /tree/ paths, and branch detection with main/master fallback - Implement secure ZIP extraction (_extract_skill_from_zip) with SKILL.md validation, path traversal protection, and 50MB size limit - Extract reusable _install_skill_from_dir helper from existing upload flow - Add frontend GitHub import UI: menu item with GithubOutlined icon, modal with URL form validation, 60s request timeout, loading state - Add httpx>=0.24.0 dependency for async HTTP downloads - Add i18n keys (en + zh) for all import-related strings - Add 18 unit tests: 9 URL parsing + 7 extraction + 2 install tests