INNER CODE UNIT · TypeScript

href

rowboatlabs/rowboat · apps/harbor/packages/server/src/connectors/attio/index.ts:65

        const href = url.href.replace(/[<>\[\]`\\]/g, (char) => `%${char.charCodeAt(0).toString(16)}`);
        lines.push(`[Open in Attio](<${href}>)`);
      }
    } catch { /* A missing or invalid external link does not hide the record (spec §8 Attio, 2026-10-12). */ }
  }
  return lines;
}

function lookupReply<T>(records: T[], noun: string, query: string, format: (record: T) => string): string {
  const subject = plainText(query, 254);
  if (!records.length) return `No ${noun} found for **${subject}**.`;
  const heading = records.length === 1 ? '' : records.length > LOOKUP_LIMIT
    ? `More than ${LOOKUP_LIMIT} ${noun} match **${subject}**. Showing the first ${LOOKUP_LIMIT}; open Attio to review all matches.\n\n`
    : `${records.length} ${noun} match **${subject}**.\n\n`;
  return heading + records.slice(0, LOOKUP_LIMIT).map(format).join('\n\n---\n\n');
}

function attributeText(value: unknown): string | undefined {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…