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