MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / isSelfSend

Function isSelfSend

internal/agent/selfsend.go:16–18  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

14// import. Kept as unexported aliases here to minimize the diff at every
15// call site and to preserve the existing test export below.
16func 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.

Callers 4

DeliverOutboundMethod · 0.85
IsSelfSendForTestFunction · 0.85
magicApproveMethod · 0.85
ApprovePendingCoreMethod · 0.85

Calls 1

IsSelfSendFunction · 0.92

Tested by 1

IsSelfSendForTestFunction · 0.68