pub fn resolve_path(
agent: AgentId,
capability: Capability,
scope: Scope,
home: &Path,
cwd: &Path,
) -> PathBufExpand description
Resolve the target install path for (agent, scope).
Pass home and cwd explicitly so callers (and tests) control where the
roots come from — this module never calls dirs::home_dir() or
std::env::current_dir() itself.
Agents whose path is project-only by convention (AGENTS.md, CONVENTIONS.md,
Cursor .cursor/rules/*) ignore Scope::User and return the project path.
See scope_is_meaningful for the symmetric predicate the init command
uses to decide whether to require a --scope flag under --no-prompt.