pub fn resolve_shared_registry_dir() -> Option<PathBuf>Expand description
Resolve <shared_home>/agents/registry/.
The registry is shared across every portable/installed version on the same machine — it must NOT use the per-version data dir.
Resolution order:
AGENTMUX_HOME_OVERRIDE— test-only escape hatch, matchingagentmux-common::data_pathsconvention.- Walk up from
AGENTMUX_DATA_DIR(per-version data dir set by the launcher) by three levels:data → versions/<v> → versions → <shared_home>. Robust against the launcher running without a real home dir (CI). - Fall back to
~/.agentmux/.
Returns None only if every source fails — caller treats this as
“registry disabled,” no write attempts.