mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Mirror project-mode `sources:` map (v0.19.15) on the global Config: - GlobalSources struct with Skills/Agents/Extras fields (all omitempty) - Sources field on Config (yaml: sources, omitempty) - EffectiveSkillsSource(), EffectiveExtrasSource() helpers - EffectiveAgentsSource() now prefers Sources.Agents over the legacy AgentsSource field before falling back to <BaseDir>/agents - Load(): expand ~ in cfg.Sources.* (and AgentsSource, previously missed) - cloneForSave(): fold $HOME → ~ in cfg.Sources.* for tilde-preserving saves - RegistryDir cache uses EffectiveSkillsSource() so configs with only sources.skills (no top-level source:) still resolve a registry root Schema: - Add top-level sources property with skills/agents/extras sub-keys - Mark source/agents_source as legacy in their descriptions - Drop required:[source] (new configs can use sources.skills only) Legacy source/agents_source/extras_source fields are retained unchanged for backward compatibility. Caller migration to the new helpers is deferred to a later commit.