MCPcopy Create free account
hub / github.com/53AI/53AIHub / buildSkillInstallPath

Method buildSkillInstallPath

api/service/skill_library_scan.go:1114–1123  ·  view source on GitHub ↗
(eid int64, extractFolder string)

Source from the content-addressed store, hash-verified

1112}
1113
1114func (s *SkillLibraryService) buildSkillInstallPath(eid int64, extractFolder string) string {
1115 root := s.skillRootPath
1116 if strings.TrimSpace(root) == "" {
1117 root = filepath.Join("data", "skills")
1118 }
1119 if eid == 0 {
1120 return filepath.Join(root, "global", extractFolder)
1121 }
1122 return filepath.Join(root, "tenants", strconv.FormatInt(eid, 10), extractFolder)
1123}
1124
1125func clampScore(v float64) float64 {
1126 if v < 1 {

Callers 2

importSkillAtomicMethod · 0.95
ForceImportSkillMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected