(&self, ctx: &InstallContext)
| 32 | } |
| 33 | |
| 34 | fn install(&self, ctx: &InstallContext) -> Result<()> { |
| 35 | let config_path = opencode_config_path(&ctx.home); |
| 36 | install_mcp_server(&config_path, &ctx.tracedecay_bin)?; |
| 37 | |
| 38 | let global_prompt = opencode_prompt_path(&ctx.home); |
| 39 | install_prompt_rules(&global_prompt)?; |
| 40 | super::install_managed_skill_prompt_index( |
| 41 | &ctx.home, |
| 42 | &global_prompt, |
| 43 | crate::automation::skill_targets::SkillInstallTarget::OpenCode, |
| 44 | )?; |
| 45 | |
| 46 | eprintln!(); |
| 47 | eprintln!("Setup complete. Next steps:"); |
| 48 | eprintln!(" 1. cd into your project and run: tracedecay init"); |
| 49 | eprintln!(" 2. Start a new OpenCode session — tracedecay tools are now available"); |
| 50 | eprintln!(" 3. OpenCode will prompt for approval on first use of each tool"); |
| 51 | Ok(()) |
| 52 | } |
| 53 | |
| 54 | fn supports_local_install(&self) -> bool { |
| 55 | true |
nothing calls this directly
no test coverage detected