(&self, ctx: &InstallContext)
| 157 | } |
| 158 | |
| 159 | fn install(&self, ctx: &InstallContext) -> Result<()> { |
| 160 | std::fs::create_dir_all(kiro_home(&ctx.home)).ok(); |
| 161 | |
| 162 | let mcp_path = mcp_config_path(&ctx.home); |
| 163 | install_mcp_server(&mcp_path, &ctx.tracedecay_bin)?; |
| 164 | |
| 165 | let steering = steering_path(&ctx.home); |
| 166 | install_steering_rules(&steering)?; |
| 167 | |
| 168 | let agent_path = managed_agent_path(&ctx.home); |
| 169 | let skill_index_path = managed_skill_index_path(&ctx.home); |
| 170 | let owns_agent = install_managed_agent( |
| 171 | &agent_path, |
| 172 | &ctx.tracedecay_bin, |
| 173 | &steering, |
| 174 | &ctx.home, |
| 175 | Some(&skill_index_path), |
| 176 | )?; |
| 177 | |
| 178 | let cli_path = cli_config_path(&ctx.home); |
| 179 | install_default_agent(&cli_path, owns_agent)?; |
| 180 | |
| 181 | eprintln!(); |
| 182 | eprintln!("Setup complete. Next steps:"); |
| 183 | eprintln!(" 1. cd into your project and run: tracedecay init"); |
| 184 | eprintln!(" 2. Start a new Kiro session"); |
| 185 | eprintln!(" tracedecay tools are now available through Kiro MCP"); |
| 186 | eprintln!( |
| 187 | " the tracedecay Kiro agent includes hooks for delegation guardrails and sync" |
| 188 | ); |
| 189 | Ok(()) |
| 190 | } |
| 191 | |
| 192 | fn supports_local_install(&self) -> bool { |
| 193 | true |
nothing calls this directly
no test coverage detected