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

Function parseGithubSourceSkillPath

api/service/skill_library_import.go:42–56  ·  view source on GitHub ↗
(sourceRef string)

Source from the content-addressed store, hash-verified

40}
41
42func parseGithubSourceSkillPath(sourceRef string) string {
43 sourceRef = strings.TrimSpace(sourceRef)
44 if sourceRef == "" {
45 return ""
46 }
47 _, refPart, ok := strings.Cut(sourceRef, "@")
48 if !ok {
49 return ""
50 }
51 _, skillPath, hasPath := strings.Cut(refPart, ":")
52 if !hasPath {
53 return ""
54 }
55 return strings.TrimSpace(skillPath)
56}
57
58func (s *SkillLibraryService) importSkillFromUploadFile(ctx context.Context, req *SkillImportRequest) (*SkillImportResult, error) {
59 return s.importSkillFromUploadFileWithPermissions(ctx, req, nil, 0)

Callers 2

ForceImportSkillMethod · 0.85
executeScanJobMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected