mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
Introduce InstallContext interface to abstract global/project behavioral differences, push config-based install logic down to internal/install, and merge the nearly-identical Git discovery/subdir handlers. - Add InstallContext interface (SourcePath, ConfigSkills, Reconcile, PostInstallSkill, Mode) with SkillEntryDTO to avoid circular imports - Add globalInstallContext and projectInstallContext implementations - Extract InstallFromConfig() to internal/install/install_config.go, replacing the 90%-identical installFromGlobalConfig/installFromProjectConfig - Merge handleGitDiscovery + handleGitSubdirInstall into handleGitInstall, branching on source.HasSubdir() for the few differences