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

Function reinstall_tracked_agents

src/update_cmd.rs:291–307  ·  view source on GitHub ↗

Re-runs full `install()` + `post_install()` for every tracked agent so tool permissions, hooks, and MCP config stay in sync with the running binary — a superset of `refresh_generated_plugins`, which rewrites generated artifacts only. Mirrors the canonical `handle_reinstall_command` (global scope: `project_root: None`). Continues past a failing agent; returns [`ReinstallOutcome::PartialFailure`] li

(user_config: &UserConfig)

Source from the content-addressed store, hash-verified

289/// resolved, no install runs and a descriptive failure is reported so the
290/// version markers stay put.
291pub(crate) async fn reinstall_tracked_agents(user_config: &UserConfig) -> ReinstallOutcome {
292 let (Some(home), Some(bin)) = (
293 tracedecay::agents::home_dir(),
294 tracedecay::agents::which_tracedecay(),
295 ) else {
296 return ReinstallOutcome::PartialFailure {
297 failed: vec![
298 "<environment>: could not resolve home directory or tracedecay binary on PATH"
299 .to_string(),
300 ],
301 };
302 };
303 let results =
304 crate::agent_cmd::reinstall_agent_integrations(&user_config.installed_agents, &home, &bin)
305 .await;
306 partition_reinstall_results(results)
307}
308
309pub(crate) async fn run_post_update_tasks(
310 no_heal: bool,

Callers 2

run_silent_reinstallFunction · 0.85
run_post_update_tasksFunction · 0.85

Calls 4

which_tracedecayFunction · 0.85
home_dirFunction · 0.50

Tested by

no test coverage detected