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

Function install_cursor_plugin

src/agents/cursor.rs:225–241  ·  view source on GitHub ↗
(home: &Path, tracedecay_bin: &str)

Source from the content-addressed store, hash-verified

223}
224
225fn install_cursor_plugin(home: &Path, tracedecay_bin: &str) -> Result<()> {
226 let install_dir = cursor_plugin_install_dir(home);
227 if let Some(parent) = install_dir.parent() {
228 std::fs::create_dir_all(parent).map_err(|e| TraceDecayError::Config {
229 message: format!("failed to create {}: {e}", parent.display()),
230 })?;
231 }
232 remove_cursor_plugin_install(&install_dir)?;
233
234 write_embedded_plugin(&install_dir, tracedecay_bin)?;
235 install_cursor_managed_skill_overlay(home, &install_dir)?;
236 eprintln!(
237 "\x1b[32m✔\x1b[0m Installed Cursor plugin at {}",
238 install_dir.display()
239 );
240 Ok(())
241}
242
243fn install_cursor_managed_skill_overlay(home: &Path, install_dir: &Path) -> Result<()> {
244 let profile_root = crate::automation::skill_targets::profile_root_for_agent_home(home);

Callers 3

installMethod · 0.85
install_localMethod · 0.85
update_pluginMethod · 0.85

Tested by

no test coverage detected