MCPcopy Create free account
hub / github.com/diillson/chatcli / findBestLocalInfo

Method findBestLocalInfo

cli/skill_handler.go:633–639  ·  view source on GitHub ↗

findBestLocalInfo returns the first local install record matching the (base) name, or nil when nothing local exists.

(name string)

Source from the content-addressed store, hash-verified

631// findBestLocalInfo returns the first local install record matching the
632// (base) name, or nil when nothing local exists.
633func (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.

Callers 1

InfoMethod · 0.95

Calls 1

GetAllInstalledInfoMethod · 0.45

Tested by

no test coverage detected