(meta map[string]interface{})
| 445 | } |
| 446 | |
| 447 | func hasInstallMetadata(meta map[string]interface{}) bool { |
| 448 | for _, key := range []string{"github-repo", "github-ref", "github-tree-sha", "github-path", "github-pinned", "local-path"} { |
| 449 | value, ok := meta[key] |
| 450 | if !ok { |
| 451 | continue |
| 452 | } |
| 453 | if str, ok := value.(string); !ok || strings.TrimSpace(str) != "" { |
| 454 | return true |
| 455 | } |
| 456 | } |
| 457 | return false |
| 458 | } |
| 459 | |
| 460 | func skillNameFromSourcePath(sourcePath string) string { |
| 461 | sourcePath = strings.TrimSuffix(sourcePath, "/SKILL.md") |
no outgoing calls
no test coverage detected