isSelfSend / stripAgentSelfAliases delegate to internal/loopback so the hitlworker package can share the same predicate logic without an upward import. Kept as unexported aliases here to minimize the diff at every call site and to preserve the existing test export below.
(req outbound.SendRequest, agentEmail string)
| 14 | // import. Kept as unexported aliases here to minimize the diff at every |
| 15 | // call site and to preserve the existing test export below. |
| 16 | func isSelfSend(req outbound.SendRequest, agentEmail string) bool { |
| 17 | return loopback.IsSelfSend(req, agentEmail) |
| 18 | } |
| 19 | |
| 20 | // StripAgentSelfAliases is the exported seam over stripAgentSelfAliases so the |
| 21 | // v1 httpapi reply/forward builders reuse the same self-alias stripping. |