(&self, ctx: &InstallContext)
| 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, |
nothing calls this directly
no test coverage detected