1// Pairing tickets are upstream iroh EndpointTicket strings (produced and2// parsed by the addon). This module is the FFI-free shape check for paste3// paths (CLI pair) — real validation happens when the addon parses the4// ticket at connect/start time.56/** Cheap sanity check for a pasted ticket: single token, plausible length.7 * Never throws; never a guarantee — the addon's parser is authoritative. */8export function looksLikeTicket(text: string): boolean {9 const trimmed = text.trim();10 return trimmed.length >= 32 && !/\s/.test(trimmed);11}