pub fn resolve_scope(
explicit: Option<&BTreeSet<String>>,
saved: Option<&[String]>,
refresh_only: bool,
connected: impl FnOnce() -> BTreeSet<String>,
) -> AgentScopeExpand description
Resolve the scope for one run. connected is only evaluated for the
post-update refresh without a recorded choice.