' + esc(art.title) + '
' + '' + esc((art.summary || '').slice(0, 280)) + '
' + '' + '/** * GMIIE author profile loader — bio, attribution badges, articles, contact CTA. */ (function () { const root = document.getElementById('author-profile-root'); if (!root) return; const authorId = root.dataset.authorId; if (!authorId) return; const nameEl = document.getElementById('ap-name'); const roleEl = document.getElementById('ap-role'); const bioEl = document.getElementById('ap-bio'); const badgeEl = document.getElementById('ap-badge'); const statsEl = document.getElementById('ap-stats'); const articlesEl = document.getElementById('ap-articles'); let contactEl = document.getElementById('ap-contact'); function badgeFor(author) { if (author.attribution_class === 'human+ai' || author.type === 'hybrid') { return 'Human + AI · Disclosed · LPS-1'; } if (author.type === 'ai' || author.attribution_class === 'ai') { return 'AI · Model Named · LPS-1'; } return 'Human · SHA-256 · LPS-1'; } function roleLabel(author) { if (author.type === 'ai') return 'AI Writer'; if (author.type === 'hybrid') return 'System Partner'; return 'Human Author'; } function esc(s) { return String(s || '') .replace(/&/g, '&') .replace(//g, '>') .replace(/"/g, '"'); } function renderContact(author) { if (!contactEl) { contactEl = document.createElement('div'); contactEl.id = 'ap-contact'; contactEl.className = 'ap-contact'; contactEl.style.cssText = 'margin:20px 0;padding:16px;border:1px solid var(--rule,#d4c9a8);background:var(--paper2,#f3f0e8);'; const anchor = articlesEl || bioEl; if (anchor && anchor.parentNode) anchor.parentNode.insertBefore(contactEl, anchor.nextSibling); } const status = author.email_alias_status || 'pending_dns'; const statusLabel = status === 'live' || status === 'routed_via_legacychain' ? 'Email routing LIVE' : 'Email routing pending DNS'; contactEl.innerHTML = '
' + 'Correspondence routes through LegacyChain intake. Machine agents use x402 on Apostle Chain (7332).' + '
' + '' + '' + esc(statusLabel) + '' + (author.email_alias ? ' · ' + esc(author.email_alias) : '') + '
' + '' + esc((art.summary || '').slice(0, 280)) + '
' + '' + 'No recent articles in Pulse feed.
'; } }) .catch(function () { if (bioEl) bioEl.textContent = 'Could not load author profile.'; }); })();