MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / detect_missing_installed_agents

Function detect_missing_installed_agents

src/agents/mod.rs:1244–1253  ·  view source on GitHub ↗

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])

Source from the content-addressed store, hash-verified

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.
1244pub 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///

Calls 5

all_integrationsFunction · 0.85
pushMethod · 0.80
idMethod · 0.45
has_tracedecayMethod · 0.45
containsMethod · 0.45