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

Method update_plugin

src/agents/cursor.rs:72–86  ·  view source on GitHub ↗
(&self, ctx: &InstallContext)

Source from the content-addressed store, hash-verified

70 }
71
72 fn update_plugin(&self, ctx: &InstallContext) -> Result<UpdatePluginOutcome> {
73 // The whole plugin directory is a tracedecay-generated bundle (its
74 // mcp.json / hooks.json are rendered artifacts, not user config), so
75 // refreshing it is exactly the install path. User config such as
76 // `~/.cursor/mcp.json` is never written by `install_cursor_plugin`,
77 // and unmanaged files inside the plugin dir are preserved.
78 if !cursor_plugin_manifest_path(&ctx.home).exists() {
79 return Ok(UpdatePluginOutcome::NotInstalled);
80 }
81 install_cursor_plugin(&ctx.home, &ctx.tracedecay_bin)?;
82 sweep_legacy_project_artifacts_at_cwd(&ctx.home);
83 Ok(UpdatePluginOutcome::Refreshed(vec![
84 cursor_plugin_install_dir(&ctx.home),
85 ]))
86 }
87
88 fn export_managed_skills(
89 &self,

Callers

nothing calls this directly

Calls 4

install_cursor_pluginFunction · 0.85
existsMethod · 0.80

Tested by

no test coverage detected