findBestLocalInfo returns the first local install record matching the (base) name, or nil when nothing local exists.
(name string)
| 631 | // findBestLocalInfo returns the first local install record matching the |
| 632 | // (base) name, or nil when nothing local exists. |
| 633 | func (sh *SkillHandler) findBestLocalInfo(name string) *registry.InstalledSkillInfo { |
| 634 | matches := sh.registryMgr.GetAllInstalledInfo(name) |
| 635 | if len(matches) == 0 { |
| 636 | return nil |
| 637 | } |
| 638 | return &matches[0] |
| 639 | } |
| 640 | |
| 641 | // resolveRemoteSkillMeta returns the best registry-side metadata for the |
| 642 | // skill. When `fromRegistry` is set the query is limited to that registry. |
no test coverage detected