from .key_utils import normalize_pubkey def resolve_nostr_outbound_session_route(target: str) -> dict | None: target = target.replace("nostr:", "").strip() if not target: return None normalized = normalize_pubkey(target) return { "channel": "nostr", "peer": {"kind": "direct", "id": normalized}, "chatType": "direct", "from": f"nostr:{normalized}", "to": f"nostr:{normalized}", }