Files
DB-GPT/packages
alan.cl f088752633 feat(skills): add GitHub/skills.sh remote import functionality
- 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
2026-03-11 19:03:28 +08:00
..
2026-02-27 14:16:38 +08:00
2026-02-25 19:46:29 +08:00