(agentID string, scopes []registry.Scope, gitRoot string)
| 308 | } |
| 309 | |
| 310 | func shouldListPublishedProjectSkills(agentID string, scopes []registry.Scope, gitRoot string) bool { |
| 311 | if agentID != "" || gitRoot == "" { |
| 312 | return false |
| 313 | } |
| 314 | return slices.Contains(scopes, registry.ScopeProject) |
| 315 | } |
| 316 | |
| 317 | func scanInstalledSkills(skillsDir string, agentHostIDs []string, scope string, filter scanFilter) ([]listedSkill, error) { |
| 318 | entries, err := os.ReadDir(skillsDir) |
no test coverage detected