(&self, ctx: &InstallContext)
| 67 | } |
| 68 | |
| 69 | fn uninstall(&self, ctx: &InstallContext) -> Result<()> { |
| 70 | let codex_dir = ctx.home.join(".codex"); |
| 71 | let config_path = codex_dir.join("config.toml"); |
| 72 | |
| 73 | uninstall_mcp_server(&config_path)?; |
| 74 | uninstall_codex_plugin(&ctx.home)?; |
| 75 | |
| 76 | let agents_md = codex_dir.join("AGENTS.md"); |
| 77 | uninstall_prompt_rules(&agents_md); |
| 78 | |
| 79 | uninstall_hooks(&codex_dir.join("hooks.json")); |
| 80 | uninstall_codex_repo_plugin_if_present(ctx)?; |
| 81 | |
| 82 | eprintln!(); |
| 83 | eprintln!("Uninstall complete. TraceDecay has been removed from Codex CLI."); |
| 84 | eprintln!("Start a new Codex session for changes to take effect."); |
| 85 | Ok(()) |
| 86 | } |
| 87 | |
| 88 | fn update_plugin(&self, ctx: &InstallContext) -> Result<UpdatePluginOutcome> { |
| 89 | let cached_dirs = codex_plugin_cached_install_dirs(&ctx.home); |
nothing calls this directly
no test coverage detected