InstalledApps returns only the apps whose CLI binary is found on PATH.
(kind Kind)
| 407 | |
| 408 | // InstalledApps returns only the apps whose CLI binary is found on PATH. |
| 409 | func InstalledApps(kind Kind) []string { |
| 410 | apps := AppPathsFor(kind) |
| 411 | var out []string |
| 412 | for _, info := range agentRegistry { |
| 413 | if _, ok := apps[info.ID]; !ok { |
| 414 | continue // this agent doesn't support this kind |
| 415 | } |
| 416 | if IsAgentInstalled(info) { |
| 417 | out = append(out, info.ID) |
| 418 | } |
| 419 | } |
| 420 | return out |
| 421 | } |
| 422 | |
| 423 | // InstallToApp writes the entity's content to the resolved location for app. |
| 424 | // For prompts/instructions: writes Content as a single file. For skills/agents/plugins: |
nothing calls this directly
no test coverage detected