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

Function install_codex_cached_plugin

src/agents/codex.rs:369–378  ·  view source on GitHub ↗
(home: &Path, tracedecay_bin: &str)

Source from the content-addressed store, hash-verified

367}
368
369fn install_codex_cached_plugin(home: &Path, tracedecay_bin: &str) -> Result<PathBuf> {
370 let target = codex_plugin_current_cached_install_dir(home);
371 install_codex_plugin_bundle(&target, tracedecay_bin, InstallScope::Global, home)?;
372 for stale_dir in codex_plugin_cached_install_dirs(home) {
373 if stale_dir != target {
374 remove_codex_plugin_install(&stale_dir)?;
375 }
376 }
377 Ok(target)
378}
379
380fn install_codex_repo_plugin(home: &Path, project_path: &Path, tracedecay_bin: &str) -> Result<()> {
381 let install_dir = codex_repo_plugin_install_dir(project_path);

Callers 2

update_pluginMethod · 0.85
install_codex_pluginFunction · 0.85

Tested by

no test coverage detected