(agentID string, scopes []registry.Scope, gitRoot string)
| 309 | } |
| 310 | |
| 311 | func shouldListPublishedProjectSkills(agentID string, scopes []registry.Scope, gitRoot string) bool { |
| 312 | if agentID != "" || gitRoot == "" { |
| 313 | return false |
| 314 | } |
| 315 | for _, scope := range scopes { |
| 316 | if scope == registry.ScopeProject { |
| 317 | return true |
| 318 | } |
| 319 | } |
| 320 | return false |
| 321 | } |
| 322 | |
| 323 | func scanInstalledSkills(skillsDir string, agentHostIDs []string, scope string, filter scanFilter) ([]listedSkill, error) { |
| 324 | entries, err := os.ReadDir(skillsDir) |