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

Method SetApprovalSigner

internal/agent/api.go:425–425  ·  view source on GitHub ↗

SetApprovalSigner wires in the magic-link signer after construction so callers (and tests) that don't need HITL magic-link endpoints don't have to know about it. When nil, handleApproveMagicLink / handleRejectMagicLink respond with 404.

(s *approvaltoken.Signer)

Source from the content-addressed store, hash-verified

423// have to know about it. When nil, handleApproveMagicLink /
424// handleRejectMagicLink respond with 404.
425func (a *API) SetApprovalSigner(s *approvaltoken.Signer) { a.approvalSigner = s }
426
427// SetNotifier wires in the HITL notifier. When nil, holdForApproval
428// still persists the pending message but doesn't fire the email — useful

Callers 2

setupMagicLinkAPIFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by 1

setupMagicLinkAPIFunction · 0.76