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

Function codex_plugin_cached_install_dirs

src/agents/codex.rs:290–308  ·  view source on GitHub ↗
(home: &Path)

Source from the content-addressed store, hash-verified

288}
289
290fn codex_plugin_cached_install_dirs(home: &Path) -> Vec<PathBuf> {
291 let mut dirs = Vec::new();
292 for root in [
293 codex_plugin_cached_root(home),
294 codex_plugin_legacy_cached_root(home),
295 ] {
296 let Ok(entries) = std::fs::read_dir(root) else {
297 continue;
298 };
299 dirs.extend(
300 entries
301 .filter_map(|entry| entry.ok().map(|entry| entry.path()))
302 .filter(|path| path.is_dir() && codex_plugin_dir_is_tracedecay(path)),
303 );
304 }
305 dirs.sort();
306 dirs.dedup();
307 dirs
308}
309
310fn codex_plugin_manifest_path(home: &Path) -> PathBuf {
311 codex_plugin_install_dir(home).join(".codex-plugin/plugin.json")

Callers 10

update_pluginMethod · 0.85
export_managed_skillsMethod · 0.85
healthcheckMethod · 0.85
is_detectedMethod · 0.85
primary_config_pathMethod · 0.85
has_tracedecayMethod · 0.85
install_codex_pluginFunction · 0.85
uninstall_codex_pluginFunction · 0.85
doctor_check_pluginFunction · 0.85

Tested by

no test coverage detected