pub fn agent_cross_context_targets(
table: &UnitTable,
resolve: impl Fn(&str) -> Option<String>,
) -> BTreeSet<String>Expand description
#1961: the consumed contexts an agent handler body calls a service of,
read from the receivers’ syntax (B.svc(…) / Alias.svc(…)) through
resolve — CrossContextInfo::resolve_prefix, or its equivalent over the
unit’s consumes. A handler that constructs an agent hands its own deps
to the agent’s methods (#1960), so its deps.env type must name these, and
the Worker must bind them. Syntactic because a file’s handlers.ts is
emitted before the unit’s other files are checked; it over-counts only a
local that shadows a consumed alias, which costs an unused binding.