Returns agent IDs that have tracedecay configured under `home` but are absent from `current`. Pure — does no I/O on the config file.
(home: &Path, current: &[String])
| 1242 | /// Returns agent IDs that have tracedecay configured under `home` but are |
| 1243 | /// absent from `current`. Pure — does no I/O on the config file. |
| 1244 | pub fn detect_missing_installed_agents(home: &Path, current: &[String]) -> Vec<String> { |
| 1245 | let mut additions = Vec::new(); |
| 1246 | for ag in all_integrations() { |
| 1247 | let id = ag.id().to_string(); |
| 1248 | if ag.has_tracedecay(home) && !current.contains(&id) { |
| 1249 | additions.push(id); |
| 1250 | } |
| 1251 | } |
| 1252 | additions |
| 1253 | } |
| 1254 | |
| 1255 | /// Backfill `installed_agents` for users upgrading from older versions. |
| 1256 | /// |