Awesome Reviewers

Security-sensitive data and sinks must be hardened before use. Concretely:

1) Auth/token validity guarantees

2) Sanitize strings embedded into terminal escape sequences

3) Use secure, permissioned temp locations

Example (sanitizing OSC 8 link URLs):

function stripControlChars(s: string): string {
  return s.replace(/[\x00-\x1f\x7f]/g, "");
}

const href = stripControlChars(token.href ?? "");
const osc8Open = `\x1b]8;;${href}\x07`;
const osc8Close = `\x1b]8;;\x07`;