mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 12:23:22 +00:00
P2-1: handleUninstallRepo and handleBatchUninstall used s.cfg.Source for gitignore removal, but project-mode installs write to .skillshare/.gitignore with a "skills/" prefix. Add gitignoreDir() helper that returns the correct base directory per mode, and prefix entries in project mode. P2-2: Registry prune used filepath.Base(repoName) to derive the legacy group, causing sibling nested repos (e.g., org/_team-skills vs dept/_team-skills) to collide on the same basename. Now uses exact Group match for nested repos and restricts legacy basename matching to top-level repos only. Tests added (15 new): - resolveTrackedRepo: auto _ prefix, nested, already-prefixed, not-found, basename fallback - Registry prune: full-path Group, nested members by prefix, sibling isolation - Project-mode gitignore: single + batch uninstall - updateSingle: basename fallback, not-found, regular skill priority - cleanEmptyParents: multi-level, stops at non-empty, stops at boundary