pub fn scope_label(
def_path: &Path,
cli_agents: &[PathBuf],
config_user_dir: Option<&PathBuf>,
extra_dirs: &[PathBuf],
) -> &'static strExpand description
Compute the human-readable scope label for an agent definition file.
Returns one of:
"cli"— file lives under one of the--agentsCLI paths"project"— file lives under.zeph/agents/"user"— file lives under the user-level config dir"extra"— file lives under anextra_dirsentry"unknown"— no source directory matches
§Examples
use std::path::PathBuf;
use zeph_subagent::resolve::scope_label;
let def = PathBuf::from(".zeph/agents/my-agent.md");
assert_eq!(scope_label(&def, &[], None, &[]), "project");