oculon 0.1.6 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/README.md +93 -17
  2. package/dist/cli/main.js +397 -0
  3. package/dist/core/calls.d.ts +63 -0
  4. package/dist/core/calls.js +120 -0
  5. package/dist/core/der.d.ts +2 -0
  6. package/dist/core/der.js +17 -0
  7. package/dist/core/http.d.ts +30 -1
  8. package/dist/core/http.js +133 -29
  9. package/dist/core/pdf.d.ts +51 -0
  10. package/dist/core/pdf.js +211 -0
  11. package/dist/core/qr.d.ts +23 -0
  12. package/dist/core/qr.js +577 -0
  13. package/dist/core/quota.js +5 -0
  14. package/dist/core/raster.d.ts +6 -0
  15. package/dist/core/raster.js +298 -0
  16. package/dist/core/safeurl.d.ts +5 -0
  17. package/dist/core/safeurl.js +26 -0
  18. package/dist/core/verdict.d.ts +30 -0
  19. package/dist/core/verdict.js +164 -0
  20. package/dist/core/zip.d.ts +9 -0
  21. package/dist/core/zip.js +46 -0
  22. package/dist/index.d.ts +83 -0
  23. package/dist/index.js +128 -0
  24. package/dist/mcp.d.ts +1 -0
  25. package/dist/mcp.js +256 -6
  26. package/dist/modules/address.d.ts +6 -2
  27. package/dist/modules/address.js +32 -5
  28. package/dist/modules/apk.d.ts +37 -0
  29. package/dist/modules/apk.js +191 -0
  30. package/dist/modules/approvals.d.ts +40 -0
  31. package/dist/modules/approvals.js +155 -0
  32. package/dist/modules/archive.d.ts +21 -0
  33. package/dist/modules/archive.js +94 -0
  34. package/dist/modules/checks.d.ts +59 -0
  35. package/dist/modules/checks.js +167 -0
  36. package/dist/modules/contract.d.ts +56 -0
  37. package/dist/modules/contract.js +167 -0
  38. package/dist/modules/deployer.d.ts +42 -0
  39. package/dist/modules/deployer.js +90 -0
  40. package/dist/modules/doc.d.ts +83 -0
  41. package/dist/modules/doc.js +841 -0
  42. package/dist/modules/eml.d.ts +46 -0
  43. package/dist/modules/eml.js +175 -0
  44. package/dist/modules/hashcheck.d.ts +19 -3
  45. package/dist/modules/hashcheck.js +28 -4
  46. package/dist/modules/image.d.ts +32 -0
  47. package/dist/modules/image.js +276 -0
  48. package/dist/modules/invite.d.ts +27 -0
  49. package/dist/modules/invite.js +69 -0
  50. package/dist/modules/job.d.ts +33 -0
  51. package/dist/modules/job.js +64 -0
  52. package/dist/modules/meerkat.d.ts +1 -1
  53. package/dist/modules/meerkat.js +35 -2
  54. package/dist/modules/monitor.js +14 -0
  55. package/dist/modules/poisoning.d.ts +43 -0
  56. package/dist/modules/poisoning.js +114 -0
  57. package/dist/modules/qrcheck.d.ts +24 -0
  58. package/dist/modules/qrcheck.js +136 -0
  59. package/dist/modules/repo.d.ts +61 -0
  60. package/dist/modules/repo.js +162 -0
  61. package/dist/modules/report.d.ts +32 -0
  62. package/dist/modules/report.js +108 -0
  63. package/dist/modules/signature.d.ts +35 -0
  64. package/dist/modules/signature.js +283 -0
  65. package/dist/modules/site.d.ts +62 -0
  66. package/dist/modules/site.js +191 -0
  67. package/dist/modules/stocktoken.d.ts +48 -0
  68. package/dist/modules/stocktoken.js +99 -0
  69. package/dist/modules/trace.d.ts +37 -0
  70. package/dist/modules/trace.js +150 -0
  71. package/dist/modules/txexplain.d.ts +40 -0
  72. package/dist/modules/txexplain.js +135 -0
  73. package/dist/modules/urlcheck.js +15 -1
  74. package/dist/modules/utility.d.ts +27 -1
  75. package/dist/modules/utility.js +108 -11
  76. package/dist/modules/where.d.ts +63 -0
  77. package/dist/modules/where.js +165 -0
  78. package/dist/report-pdf.d.ts +7 -0
  79. package/dist/report-pdf.js +84 -0
  80. package/dist/sources/cfurlscan.d.ts +24 -0
  81. package/dist/sources/cfurlscan.js +46 -0
  82. package/dist/sources/chainabuse.d.ts +17 -0
  83. package/dist/sources/chainabuse.js +19 -0
  84. package/dist/sources/evm.d.ts +135 -0
  85. package/dist/sources/evm.js +260 -0
  86. package/dist/sources/phishlists.d.ts +20 -0
  87. package/dist/sources/phishlists.js +90 -0
  88. package/dist/telegram.d.ts +17 -0
  89. package/dist/telegram.js +151 -4
  90. package/dist/web/card.d.ts +28 -0
  91. package/dist/web/card.js +75 -0
  92. package/dist/web/docs.html +1 -1
  93. package/dist/web/index.html +213 -5
  94. package/dist/web/landing.html +1 -1
  95. package/dist/web/legal.html +3 -1
  96. package/dist/web/mcp.html +1 -1
  97. package/dist/web/openapi.js +15 -0
  98. package/dist/web/pages.d.ts +24 -0
  99. package/dist/web/pages.js +139 -0
  100. package/dist/web/public.js +16 -1
  101. package/dist/web/server.d.ts +13 -0
  102. package/dist/web/server.js +152 -13
  103. package/dist/web/token.html +25 -4
  104. package/dist/web/token.json +12 -1
  105. package/dist/web/utility.html +40 -14
  106. package/package.json +2 -2
@@ -347,6 +347,10 @@ nav button { white-space: nowrap; }
347
347
  .ov-hidden button { background: none; border: 1px solid var(--line); color: var(--muted); font: 11.5px var(--mono); padding: 3px 8px; margin: 0 6px 6px 0; cursor: pointer; }
348
348
  @media (max-width: 1100px) { .hosts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
349
349
  @media (max-width: 720px) { .hosts { grid-template-columns: minmax(0, 1fr); } .ib { grid-template-columns: 44px minmax(0, 1fr); } .ib .acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } .tl-it { grid-template-columns: 90px 40px minmax(0, 1fr); } }
350
+ .filepick{flex:1 1 260px;display:flex;align-items:center;gap:10px;border:1px dashed rgba(0,240,255,.45);padding:10px 12px;cursor:pointer;color:var(--soft,#cfcfcf);font-size:14px;min-width:0}
351
+ .filepick input{max-width:110px}
352
+ #inv-ta{flex:1 1 100%;width:100%;font:13px/1.5 ui-monospace,Consolas,monospace;background:#05090a;color:#e8eef0;border:1px solid #2a3437;padding:10px;resize:vertical}
353
+ .seen{margin-top:14px;border-left:3px solid #00f0ff;padding:8px 12px;background:rgba(0,240,255,.05)}
350
354
  </style>
351
355
  </head>
352
356
  <body>
@@ -555,6 +559,20 @@ nav button { white-space: nowrap; }
555
559
  <optgroup label="Everyday checks">
556
560
  <option value="scam">Is this message a scam? (paste it)</option>
557
561
  <option value="url">Is this link safe? (URL)</option>
562
+ <option value="doc">Was this document edited? (PDF, Word, Excel, screenshot or photo)</option>
563
+ <option value="aiimage">Is this image real? AI, edited or camera (image file)</option>
564
+ <option value="qr">Where does this QR code lead? (photo or screenshot)</option>
565
+ <option value="repo">Is this GitHub repo safe to run? (owner/name or link)</option>
566
+ <option value="domainreport">Full report on a domain (domain)</option>
567
+ <option value="site">Is this site a drainer or phishing page? (link)</option>
568
+ <option value="eml">Check a whole email file (.eml)</option>
569
+ <option value="apk">Is this Android app safe? (.apk file)</option>
570
+ <option value="job">Is this job offer a scam? (paste it)</option>
571
+ <option value="where">Where and when was this photo taken? (photo file)</option>
572
+ <option value="archive">Save a page as evidence (link)</option>
573
+ <option value="invite">What is behind this Telegram or Discord invite? (link)</option>
574
+ <option value="iban">Is this IBAN valid? (IBAN)</option>
575
+ <option value="headers">Was this email spoofed? (paste raw headers)</option>
558
576
  <option value="factcheck">Fact check (claim or news URL)</option>
559
577
  <option value="audit">Dependency audit (package.json or npm:name@version)</option>
560
578
  <option value="travel">Travel risk (place)</option>
@@ -571,6 +589,22 @@ nav button { white-space: nowrap; }
571
589
  <optgroup label="Threat intel">
572
590
  <option value="ip">IP address check (IP or domain)</option>
573
591
  <option value="hash">File hash check (MD5, SHA-1, SHA-256)</option>
592
+ <option value="lookalike">Lookalike domains of a brand (domain)</option>
593
+ <option value="address">Crypto address check (BTC, 0x, Solana, Tron)</option>
594
+ <option value="honeypot">Can this token be sold? (0x, Ethereum, BNB, Base)</option>
595
+ </optgroup>
596
+ <optgroup label="Wallet safety">
597
+ <option value="approvals">Who can take my tokens? Approvals (wallet 0x…, add arbitrum or polygon)</option>
598
+ <option value="contract">What can the token owner do? (token 0x…, add base, bsc…)</option>
599
+ <option value="signature">What does this signature request allow? (paste it)</option>
600
+ <option value="poisoning">Lookalike addresses in my history? (wallet 0x…)</option>
601
+ <option value="trace">Where did the money go? (address 0x…)</option>
602
+ <option value="walletreport">Full report on a wallet or token (0x…)</option>
603
+ <option value="tx">What happened in this transaction? (hash)</option>
604
+ <option value="creator">Who made this token? Creator record (token 0x…)</option>
605
+ <option value="stocktoken">Robinhood Stock Token (ticker or 0x…, empty for upcoming dividends)</option>
606
+ </optgroup>
607
+ <optgroup label="More threat intel">
574
608
  <option value="ransomware">Ransomware claims (country, sector, name, or empty)</option>
575
609
  <option value="satellites">Satellites (name, NORAD number, or empty for new launches)</option>
576
610
  </optgroup>
@@ -598,6 +632,8 @@ nav button { white-space: nowrap; }
598
632
  </optgroup>
599
633
  </select>
600
634
  <input type="text" id="inv-q" placeholder="paypa1-secure-login.top/verify" aria-label="Query">
635
+ <label id="inv-file-l" class="filepick" hidden><input type="file" id="inv-file" accept=".pdf,.png,.jpg,.jpeg,.webp,.docx,.docm,.xlsx,.xlsm,.pptx,.doc,.xls,.eml,.apk,application/pdf,image/*,message/rfc822,application/vnd.android.package-archive"><span id="inv-file-n">Choose a file (max 10 MB)</span></label>
636
+ <textarea id="inv-ta" rows="7" hidden aria-label="Raw email headers" placeholder="Paste the full raw headers. Gmail: open the email, ⋮ menu, Show original. Outlook: File, Properties, Internet headers."></textarea>
601
637
  <button class="go" id="inv-go">Investigate</button>
602
638
  </div>
603
639
  <div id="inv-out" class="out"></div>
@@ -933,7 +969,7 @@ function handleMapClick(e) {
933
969
  const waitMap = setInterval(() => { if (map) { map.on('click', handleMapClick); clearInterval(waitMap); } }, 300);
934
970
 
935
971
  /* investigate */
936
- const placeholders = { phone: '+1 876 555 0100', password: 'type a password (it never leaves your browser)', breaches: '(empty = newest breaches) or adobe.com', company: 'NL004495445B01', ip: '185.220.101.1', hash: '094fd325049b8a9cf6d3e5ef2a6d4cc6a567d7d49c35f8bb8dd9e3c6acf3d78d', ransomware: '(empty = newest claims) or Healthcare, DE, a company', satellites: '(empty = new launches) or ISS, 25544', scam: 'USPS: your package is on hold, pay the $1.99 fee within 24 hours at usps-redelivery-help.top/track', recall: '2018 Honda Accord', emailsec: 'example.com', airport: 'JFK', country: 'Argentina', papers: 'solid-state battery', url: 'paypa1-secure-login.top/verify', factcheck: 'The Great Wall of China is visible from space', audit: 'npm:lodash@4.17.15 npm:request pypi:requests==2.19.0', travel: 'Lisbon', dossier: 'Nvidia', hype: 'ai agent', footprint: 'openai.com', lights: 'Gaza Strip', aircraft: 'N628TS', image: 'Kyoto', /*onchain*/wallet: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', token: '0xdac17f958d2ee523a2206206994597c13d831ec7', /*/onchain*/air: 'New Delhi', space: '(no input needed)', /*onchain*/robinhood: '(no input needed)', deployer: '0x… token or deployer', /*/onchain*/launches: 'OpenAI', markets: '(no input needed)', rewind: '2026-11-12', sanctions: 'IMO 1234567 or 0x… or exact name', health: 'Nvidia', impact: '(empty = current quakes and storms)', contradictions: 'Anthropic IPO' };
972
+ const placeholders = { stocktoken: 'TSLA', doc: '', headers: '', aiimage: '', qr: '', signature: '', eml: '', apk: '', job: '', where: '', site: 'https://claim-airdrop-example.xyz', tx: '0x… transaction hash', creator: '0x… token', archive: 'https://… page to keep as evidence', invite: 't.me/name or discord.gg/code', approvals: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045', contract: '0x6982508145454ce325ddbe47a25d4ec3d2311933', poisoning: '0x… your wallet', trace: '0x… address the funds went to', walletreport: '0x… wallet or token', repo: 'owner/name or https://github.com/…', domainreport: 'example.com', iban:'GB82 WEST 1234 5698 7654 32', lookalike: 'paypal.com', address: 'bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh', honeypot: '0x6982508145454ce325ddbe47a25d4ec3d2311933', phone: '+1 876 555 0100', password: 'type a password (it never leaves your browser)', breaches: '(empty = newest breaches) or adobe.com', company: 'NL004495445B01', ip: '185.220.101.1', hash: '094fd325049b8a9cf6d3e5ef2a6d4cc6a567d7d49c35f8bb8dd9e3c6acf3d78d', ransomware: '(empty = newest claims) or Healthcare, DE, a company', satellites: '(empty = new launches) or ISS, 25544', scam: 'USPS: your package is on hold, pay the $1.99 fee within 24 hours at usps-redelivery-help.top/track', recall: '2018 Honda Accord', emailsec: 'example.com', airport: 'JFK', country: 'Argentina', papers: 'solid-state battery', url: 'paypa1-secure-login.top/verify', factcheck: 'The Great Wall of China is visible from space', audit: 'npm:lodash@4.17.15 npm:request pypi:requests==2.19.0', travel: 'Lisbon', dossier: 'Nvidia', hype: 'ai agent', footprint: 'openai.com', lights: 'Gaza Strip', aircraft: 'N628TS', image: 'Kyoto', /*onchain*/wallet: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', token: '0xdac17f958d2ee523a2206206994597c13d831ec7', /*/onchain*/air: 'New Delhi', space: '(no input needed)', /*onchain*/robinhood: '(no input needed)', deployer: '0x… token or deployer', /*/onchain*/launches: 'OpenAI', markets: '(no input needed)', rewind: '2026-11-12', sanctions: 'IMO 1234567 or 0x… or exact name', health: 'Nvidia', impact: '(empty = current quakes and storms)', contradictions: 'Anthropic IPO' };
937
973
  const usd = (x) => (x == null ? '?' : '$' + Math.round(x).toLocaleString('en-US'));
938
974
 
939
975
  /* brief: tiny, safe Markdown renderer (escape first, then headings, bold, links, bullets) */
@@ -1080,12 +1116,116 @@ $('#ask-go').onclick = async () => {
1080
1116
  finally { $('#ask-go').disabled = false; }
1081
1117
  };
1082
1118
  $('#ask-q').addEventListener('keydown', (e) => { if (e.key === 'Enter') $('#ask-go').click(); });
1083
- $('#inv-kind').onchange = () => { const k = $('#inv-kind').value; $('#inv-q').placeholder = placeholders[k]; $('#inv-q').type = k === 'password' ? 'password' : 'text'; if (k === 'password') $('#inv-q').value = ''; };
1119
+ $('#inv-kind').onchange = () => { const k = $('#inv-kind').value; $('#inv-q').placeholder = placeholders[k]; $('#inv-q').type = k === 'password' ? 'password' : 'text'; if (k === 'password') $('#inv-q').value = ''; $('#inv-q').hidden = FILE_KINDS.has(k) || TEXT_KINDS.has(k); $('#inv-file-l').hidden = !FILE_KINDS.has(k); $('#inv-ta').hidden = !TEXT_KINDS.has(k); $('#inv-ta').placeholder = TEXT_HINT[k] || ''; if (FILE_KINDS.has(k) && !$('#inv-file').files[0]) $('#inv-file-n').textContent = FILE_HINT[k]; };
1120
+ $('#inv-file').onchange = () => { const f = $('#inv-file').files[0]; $('#inv-file-n').textContent = f ? f.name + ' · ' + Math.round(f.size / 1024) + ' KB' : FILE_HINT[$('#inv-kind').value] || 'Choose a file (max 10 MB)'; };
1121
+ const FILE_KINDS = new Set(['doc', 'aiimage', 'qr', 'eml', 'apk', 'where']);
1122
+ const TEXT_KINDS = new Set(['headers', 'signature', 'job']);
1123
+ const FILE_HINT = { doc: 'Choose a PDF, Word, Excel, PNG or JPEG (max 10 MB)', aiimage: 'Choose the image file, not a screenshot of it (max 10 MB)', qr: 'Choose a photo or screenshot of the QR code (max 10 MB)', eml: 'Choose the .eml file (Gmail: ⋮ menu, Download message) (max 10 MB)', apk: 'Choose the .apk file (max 40 MB)', where: 'Choose the original photo file (JPEG or PNG, max 10 MB)' };
1124
+ const FILE_MAX = { apk: 40 };
1125
+ const TEXT_HINT = { headers: 'Paste the full raw headers. Gmail: open the email, ⋮ menu, Show original. Outlook: File, Properties, Internet headers.', signature: 'Paste what the wallet asks you to sign: the typed data JSON (eth_signTypedData), the transaction data (0x…), a {"to","data","value"} object, or the message text.', job: 'Paste the whole job message or email from the recruiter.' };
1126
+ const FILE_ROUTE = { doc: '/api/doc', aiimage: '/api/imagecheck', qr: '/api/qr', eml: '/api/eml', apk: '/api/apk', where: '/api/where' };
1127
+ const CHAIN_WORD = /^(eth|ethereum|base|bsc|bnb|arbitrum|polygon)$/i;
1128
+ /* Shared parts of the new check views: heading with verdict, list of reasons, advice. */
1129
+ const toneFor = (v, risk) => (/^(no|nothing|none)\b/i.test(v || '') ? 'ok' : /danger|malicious|sanction|poisoned|high risk|invalid|AI generated|mixer/i.test(v || '') || risk >= 70 ? 'bad' : /risky|suspicious|caution|check|review|edited|AI edited|computer/i.test(v || '') || risk >= 35 ? 'warn' : 'ok');
1130
+ const vHead = (title, d) => `<h3>${title} ${tonePill(toneFor(d.verdict, d.risk), d.verdict)} <span class="meta">risk ${d.risk}/100</span></h3>`;
1131
+ const vList = (xs, cls = 'ev') => (xs && xs.length ? `<ul class="${cls}">${xs.map((x) => `<li>${esc(x)}</li>`).join('')}</ul>` : '');
1132
+ const vAdvice = (d) => (d.advice && d.advice.length ? `<h3>What to do</h3>${vList(d.advice)}` : '');
1133
+ const short = (a) => (a ? esc(a.slice(0, 8) + '…' + a.slice(-6)) : '');
1134
+ /* Under every recorded check: what changed since last time, the replay log and the PDF report. */
1135
+ function checkFoot(r) {
1136
+ const c = r && r.check;
1137
+ if (!c) return '';
1138
+ const seen = c.seenBefore ? `<div class="seen"><b>Seen before</b> on ${esc(c.seenBefore.at.slice(0, 16).replace('T', ' '))} UTC${c.seenBefore.changes.length ? `: what changed<ul class="ev">${c.seenBefore.changes.map((x) => `<li>${esc(x)}</li>`).join('')}</ul>` : '. Nothing changed since then.'}</div>` : '';
1139
+ return `${seen}<p class="row" style="margin-top:12px;gap:14px"><a class="icon-btn" href="${esc(c.replay)}" target="_blank" rel="noopener">Replay log</a><a class="icon-btn" href="${esc(c.report)}" target="_blank" rel="noopener">PDF report</a><span class="meta">check ${esc(c.id.slice(0, 8))}</span></p>`;
1140
+ }
1084
1141
  const spark = (xs) => { const m = Math.max(...xs, 1e-9); return `<span class="spark">${xs.map((x) => `<i style="height:${Math.max(2, Math.round((x / m) * 28))}px" title="${esc(x)}"></i>`).join('')}</span>`; };
1085
1142
  const sigList = (s) => (s.length ? `<h3>Signals</h3>${s.map(renderSignal).join('')}` : '');
1086
1143
  const link = (u, t) => `<a href="${safeUrl(u)}" target="_blank" rel="noopener noreferrer">${esc(t)}</a>`;
1087
1144
  const tonePill = (t, txt) => `<span class="pill ${t}">${esc(txt)}</span>`;
1088
1145
  const views = {
1146
+ approvals: (r) => {
1147
+ const d = r.result;
1148
+ return `${vHead(`<code>${short(d.address)}</code> <span class="meta">${esc(d.chain)}</span>`, d)}<p>${d.active} active approval${d.active === 1 ? '' : 's'}, ${d.unlimited} unlimited. <a href="${safeUrl(d.revokeUrl)}" target="_blank" rel="noopener noreferrer">Revoke them</a></p>${d.approvals.length ? `<table><tr><th>token</th><th>spender</th><th>amount</th><th>risk</th></tr>${d.approvals.slice(0, 40).map((a) => `<tr><td>${esc(a.symbol || short(a.token))}</td><td>${esc(a.spenderName || '')} <code>${short(a.spender)}</code><div class="meta">${esc(a.spenderType)}${a.why ? ' · ' + esc(a.why) : ''}</div></td><td>${esc(a.amount)}</td><td>${tonePill(a.risk === 'high' ? 'bad' : a.risk === 'medium' ? 'warn' : 'ok', a.risk)}</td></tr>`).join('')}</table>` : ''}${vList(d.reasons)}${vAdvice(d)}`;
1149
+ },
1150
+ contract: (r) => {
1151
+ const d = r.result;
1152
+ const h = d.holders, l = d.liquidity;
1153
+ return `${vHead(`${esc(d.symbol || d.name || short(d.address))} <span class="meta">${esc(d.chain)}</span>`, d)}<p>${d.verified ? `Verified on ${esc(d.verifiedBy)}` : '<b>Source not verified</b>'} · owner ${d.owner ? `<code>${short(d.owner)}</code>${d.ownerRenounced ? ' (renounced)' : ''}` : 'none found'}${d.proxy ? ` · upgradeable proxy${d.proxy.admin ? `, admin <code>${short(d.proxy.admin)}</code>` : ''}` : ''}</p>${d.powers.length ? `<table><tr><th>owner power</th><th>functions</th></tr>${d.powers.map((p) => `<tr><td>${esc(p.power)}</td><td><code>${esc(p.functions.join(', '))}</code></td></tr>`).join('')}</table>` : '<p class="meta">No owner powers found in the code.</p>'}<p class="meta">${h ? `${h.count != null ? h.count.toLocaleString('en-US') + ' holders' : ''}${h.top10Percent != null ? ` · top 10 hold ${h.top10Percent}%` : ''}` : ''}${l ? ` · liquidity ${usd(l.usd)} ${esc(l.pair || '')} ${esc(l.dex || '')}${l.lockedPercent != null ? ` · ${l.lockedPercent}% LP locked or burned` : ''}` : ''}</p>${vList(d.reasons)}${vList(d.notes, 'meta')}${vAdvice(d)}`;
1154
+ },
1155
+ signature: (r) => {
1156
+ const d = r.result;
1157
+ return `${vHead(esc(d.type), d)}<h3>What you would allow</h3>${vList(d.allows)}${d.parties.length ? `<table><tr><th>role</th><th>address</th><th>who</th></tr>${d.parties.map((p) => `<tr><td>${esc(p.role)}</td><td><code>${esc(p.address)}</code></td><td>${esc(p.name || p.type || '?')}</td></tr>`).join('')}</table>` : ''}${vList(d.reasons)}${vAdvice(d)}`;
1158
+ },
1159
+ poisoning: (r) => {
1160
+ const d = r.result;
1161
+ return `${vHead(`<code>${short(d.address)}</code> <span class="meta">${esc(d.chain)}</span>`, d)}<p class="meta">${d.checkedTransfers} token transfers read · ${d.realCounterparties} addresses this wallet really paid · ${d.zeroValue} zero-value transfers it never signed</p>${d.lookalikes.length ? `<table><tr><th>lookalike</th><th>posing as</th><th>how</th></tr>${d.lookalikes.map((x) => `<tr><td><code>${esc(x.fake)}</code></td><td><code>${esc(x.real)}</code></td><td>${esc(x.how.join(', '))} · ${x.seen}x</td></tr>`).join('')}</table>` : ''}${vList(d.reasons)}${vAdvice(d)}`;
1162
+ },
1163
+ trace: (r) => {
1164
+ const d = r.result;
1165
+ return `${vHead(`<code>${short(d.address)}</code> <span class="meta">${esc(d.chain)} · ${d.hops} hops</span>`, d)}<table><tr><th>hop</th><th>to</th><th>amount</th><th></th></tr>${d.nodes.slice(1).map((n) => `<tr><td class="num">${n.hop}</td><td><code>${short(n.address)}</code> ${esc(n.label || '')}<div class="meta">from <code>${short(n.receivedFrom)}</code>${n.firstTx ? ` · tx <code>${short(n.firstTx)}</code>` : ''}</div></td><td>${esc(n.amount || '')}</td><td>${tonePill(n.kind === 'exchange' ? 'info' : /mixer|sanctioned|scam/.test(n.kind) ? 'bad' : 'ok', n.kind)}</td></tr>`).join('')}</table>${vList(d.reasons)}${vAdvice(d)}`;
1166
+ },
1167
+ aiimage: (r) => {
1168
+ const d = r.result;
1169
+ const c = d.c2pa;
1170
+ return `${vHead(esc(d.name), d)}<p class="meta">${esc(d.type)} · ${Math.round(d.bytes / 1024)} KB${d.camera ? ' · camera ' + esc(d.camera) : ''}${d.software ? ' · software ' + esc(d.software) : ''}</p>${c ? `<p>Content Credentials: ${esc(c.generator || 'present')}${c.sourceType ? ` · ${esc(c.sourceType)}` : ''}${c.signers.length ? ` · certificates name ${esc(c.signers.slice(0, 3).join(', '))}` : ''}</p>` : ''}${d.generator ? `<p>Generator: <b>${esc(d.generator.tool)}</b>${d.generator.prompt ? `<div class="meta">prompt: ${esc(d.generator.prompt)}</div>` : ''}</p>` : ''}${vList(d.reasons)}${vList(d.notes, 'meta')}${vAdvice(d)}`;
1171
+ },
1172
+ qr: (r) => {
1173
+ const d = r.result;
1174
+ return `${vHead(d.found ? esc(d.kind || 'QR code') : 'No QR code found', d)}${d.content ? `<p><code>${esc(d.content.slice(0, 500))}</code></p>` : ''}${Object.keys(d.target || {}).length ? `<table>${Object.entries(d.target).map(([k, v]) => `<tr><td>${esc(k)}</td><td>${esc(v)}</td></tr>`).join('')}</table>` : ''}${vList(d.reasons)}${vAdvice(d)}`;
1175
+ },
1176
+ repo: (r) => {
1177
+ const d = r.result;
1178
+ const s = d.stats;
1179
+ return `${vHead(link(d.url, d.repo), d)}<p class="meta">${s.stars.toLocaleString('en-US')} stars · created ${esc(s.createdAt.slice(0, 10))} · ${s.scanned} of ${s.files} files read${d.account ? ` · owner account ${d.account.ageDays ?? '?'} days old` : ''}${d.stars ? ` · ${d.stars.newAccounts} of the last ${d.stars.sampled} stars from new accounts` : ''}</p>${d.findings.length ? `<table><tr><th>file</th><th>finding</th><th></th></tr>${d.findings.slice(0, 30).map((f) => `<tr><td><code>${esc(f.file)}${f.line ? ':' + f.line : ''}</code></td><td>${esc(f.what)}${f.excerpt ? `<div class="meta"><code>${esc(f.excerpt)}</code></div>` : ''}</td><td>${tonePill(f.severity === 'high' ? 'bad' : f.severity === 'medium' ? 'warn' : 'ok', f.severity)}</td></tr>`).join('')}</table>` : ''}${vList(d.reasons)}${vAdvice(d)}`;
1180
+ },
1181
+ stocktoken: (r) => {
1182
+ const d = r.result;
1183
+ const p = d.price;
1184
+ return `${vHead(esc(d.symbol ? `${d.symbol} · ${d.name || ''}` : 'Robinhood Stock Tokens'), d)}${d.contract ? `<p class="meta">${esc(d.contract)} · ${esc(d.chain || '')}${d.isin ? ' · ISIN ' + esc(d.isin) : ''}${d.supply != null ? ' · supply ' + d.supply.toLocaleString('en-US') : ''}</p>` : ''}${p ? `<p>Bid <b>$${p.tokenBid?.toFixed(2) ?? '?'}</b> · ask <b>$${p.tokenAsk?.toFixed(2) ?? '?'}</b> per token · day $${p.dailyLow ?? '?'} to $${p.dailyHigh ?? '?'}${p.halted ? ' · <span class="pill bad">halted</span>' : ''}</p>` : ''}${d.corporateActions.length ? `<table><tr><th>date</th><th>token</th><th>action</th><th>status</th></tr>${d.corporateActions.map((x) => `<tr><td>${esc(x.date || '?')}</td><td>${esc(x.symbol)}</td><td>${esc(x.type)}${x.detail ? ` <span class="meta">${esc(x.detail)}</span>` : ''}</td><td class="meta">${esc(x.status)}</td></tr>`).join('')}</table>` : ''}${vList(d.reasons)}${vAdvice(d)}`;
1185
+ },
1186
+ site: (r) => {
1187
+ const d = r.result;
1188
+ return `${vHead(link(d.finalUrl, d.domain), d)}<p class="meta">${d.title ? `"${esc(d.title)}" · ` : ''}${d.scripts.read} scripts read${d.reputation && d.reputation.ageDays != null ? ` · domain ${d.reputation.ageDays} days old` : ''}${d.finalUrl !== d.url ? ` · redirected from ${esc(d.url)}` : ''}</p>${d.browser ? `<p class="meta">Opened in a real browser by Cloudflare: ${d.browser.malicious ? '<b>malicious</b>' : 'no verdict'}${d.browser.categories.length ? ' · ' + esc(d.browser.categories.join(', ')) : ''} · ${d.browser.domains} domains contacted · ${link(d.browser.report, 'scan report')}</p>` : ''}${d.reports && d.reports.count ? `<p class="meta">${d.reports.count} victim reports on Chainabuse · ${link(d.reports.url, 'view')}</p>` : ''}${d.forms.filter((f) => f.password || f.seed || f.card).length ? `<table><tr><th>form sends to</th><th>asks for</th></tr>${d.forms.filter((f) => f.password || f.seed || f.card).map((f) => `<tr><td><code>${esc(f.action || '(same page)')}</code>${f.external ? ' <span class="pill bad">other domain</span>' : ''}</td><td>${[f.seed && 'seed phrase', f.password && 'password', f.card && 'card'].filter(Boolean).join(', ')}</td></tr>`).join('')}</table>` : ''}${vList(d.reasons)}${vAdvice(d)}`;
1189
+ },
1190
+ tx: (r) => {
1191
+ const d = r.result;
1192
+ return `${vHead(`<code>${short(d.hash)}</code> <span class="meta">${esc(d.chain)} · ${esc(d.status)}</span>`, d)}${vList(d.summary)}${d.reasons.length ? `<h3>Why</h3>${vList(d.reasons)}` : ''}<p>${link(d.explorer, 'Open in the explorer')}</p>${vAdvice(d)}`;
1193
+ },
1194
+ creator: (r) => {
1195
+ const d = r.result;
1196
+ const toks = d.deployments.filter((x) => x.isToken);
1197
+ return `${vHead(`<code>${short(d.token)}</code> <span class="meta">${esc(d.chain)}</span>`, d)}<p>Creator ${d.deployer ? `<code>${esc(d.deployer)}</code>` : 'not found'}${d.createdAt ? ` · created ${esc(d.createdAt.slice(0, 10))}` : ''}${d.fundedBy ? ` · first funded by ${esc(d.fundedBy.label || short(d.fundedBy.address))}` : ''}</p>${toks.length ? `<table><tr><th>token</th><th>created</th><th>liquidity</th><th></th></tr>${toks.slice(0, 30).map((x) => `<tr><td>${esc(x.symbol || '?')} <code>${short(x.address)}</code></td><td>${esc(x.createdAt.slice(0, 10))}</td><td>${x.liquidityUsd == null ? 'no pool' : usd(x.liquidityUsd)}</td><td>${tonePill(x.dead ? 'bad' : 'ok', x.dead ? 'dead' : 'alive')}</td></tr>`).join('')}</table>` : ''}${vList(d.reasons)}${vList(d.notes, 'meta')}${vAdvice(d)}`;
1198
+ },
1199
+ eml: (r) => {
1200
+ const d = r.result;
1201
+ return `${vHead(esc(d.subject || 'Email'), d)}<p class="meta">${esc(d.from || '')}${d.date ? ' · ' + esc(d.date) : ''}</p><table><tr><th>part</th><th>verdict</th><th>details</th></tr>${d.headers ? `<tr><td>headers</td><td>${tonePill(d.headers.tone === 'info' ? 'ok' : d.headers.tone, d.headers.verdict || 'checked')}</td><td class="meta">${esc(d.headers.points.slice(0, 2).join(' · '))}</td></tr>` : ''}${d.body ? `<tr><td>message (${d.body.links} links)</td><td>${tonePill(d.body.tone === 'info' ? 'ok' : d.body.tone, d.body.verdict || 'checked')}</td><td class="meta">${esc(d.body.points.slice(0, 2).join(' · '))}</td></tr>` : ''}${d.attachments.map((x) => `<tr><td>${esc(x.name)} <span class="meta">${esc(x.check)}</span></td><td>${tonePill(x.tone === 'info' ? 'ok' : x.tone, x.verdict || 'checked')}</td><td class="meta">${esc(x.points.slice(0, 2).join(' · '))}</td></tr>`).join('')}</table>${vList(d.reasons)}${vAdvice(d)}`;
1202
+ },
1203
+ apk: (r) => {
1204
+ const d = r.result;
1205
+ return `${vHead(esc(d.package || d.name), d)}<p class="meta">version ${esc(d.version || '?')} · Android SDK ${d.minSdk ?? '?'} to ${d.targetSdk ?? '?'} · ${d.permissions.length} permissions · signed by ${esc(d.signer.join(', ') || 'unknown')}${d.malware ? ` · malware databases: ${esc(d.malware.verdict)}` : ''}</p>${d.risky.length ? `<table><tr><th>permission</th><th>what it allows</th></tr>${d.risky.map((p) => `<tr><td><code>${esc(p.permission)}</code></td><td>${esc(p.why)}</td></tr>`).join('')}</table>` : ''}${vList(d.reasons)}${vAdvice(d)}`;
1206
+ },
1207
+ job: (r) => {
1208
+ const d = r.result;
1209
+ return `${vHead('Job offer', d)}${d.patterns.length ? `<table><tr><th>pattern</th><th>in the message</th></tr>${d.patterns.map((p) => `<tr><td>${esc(p.name)}</td><td class="meta">"${esc(p.evidence)}"</td></tr>`).join('')}</table>` : ''}${d.repo ? `<p>Repo ${esc(d.repo.repo)}: ${tonePill(toneFor(d.repo.verdict, d.repo.risk), d.repo.verdict)}</p>` : ''}${vList(d.reasons)}${vAdvice(d)}`;
1210
+ },
1211
+ where: (r) => {
1212
+ const d = r.result;
1213
+ const w = d.weather;
1214
+ return `${vHead(esc(d.place || d.name), d)}${d.gps ? `<p><code>${d.gps.lat}, ${d.gps.lon}</code> · ${link(d.gps.map, 'Open the map')}</p>` : ''}${d.taken ? `<p class="meta">taken ${esc(d.taken.local || '?')} local${d.taken.gpsUtc ? ' · GPS time ' + esc(d.taken.gpsUtc) : ''}${d.camera ? ' · ' + esc(d.camera) : ''}</p>` : ''}${w ? `<p>At that hour: ${esc([w.condition, w.tempC != null ? w.tempC + ' °C' : null, w.precipMm ? w.precipMm + ' mm rain' : null, w.daylight == null ? null : w.daylight ? 'daylight' : 'dark'].filter(Boolean).join(', '))}</p>` : ''}${vList(d.reasons)}${vList(d.notes, 'meta')}${vAdvice(d)}`;
1215
+ },
1216
+ archive: (r) => {
1217
+ const d = r.result;
1218
+ return `${vHead(esc(d.url), d)}${d.snapshot ? `<p>${link(d.snapshot, 'Wayback Machine snapshot')} <span class="meta">${esc(d.snapshotTime || '')}</span></p>` : ''}${d.page ? `<p class="meta">SHA-256 <code>${esc(d.page.sha256)}</code> · HTTP ${d.page.status} · ${esc(d.page.finalUrl)}</p>` : ''}${vList(d.reasons)}${vAdvice(d)}`;
1219
+ },
1220
+ invite: (r) => {
1221
+ const d = r.result;
1222
+ return `${vHead(`${esc(d.name || d.link)} <span class="meta">${esc(d.platform)} ${esc(d.kind || '')}</span>`, d)}<p class="meta">${d.members != null ? d.members.toLocaleString('en-US') + ' members' : ''}${d.online != null ? ` · ${d.online} online` : ''}${d.verified ? ' · verified' : ' · not verified'}${d.createdAt ? ' · created ' + esc(d.createdAt.slice(0, 10)) : ''}</p>${d.description ? `<p>${esc(d.description.slice(0, 300))}</p>` : ''}${vList(d.reasons)}${vAdvice(d)}`;
1223
+ },
1224
+ domainreport: (r) => views.walletreport(r),
1225
+ walletreport: (r) => {
1226
+ const d = r.result;
1227
+ return `${vHead(`<code>${esc(d.target)}</code> <span class="meta">${esc(d.kind)} report</span>`, d)}<table><tr><th>part</th><th>verdict</th><th>details</th></tr>${d.parts.map((p) => `<tr><td>${esc(p.part)}</td><td>${p.error ? '<span class="meta">not checked</span>' : tonePill(p.tone === 'bad' ? 'bad' : p.tone === 'warn' ? 'warn' : p.tone === 'ok' ? 'ok' : 'info', p.verdict || 'done')}${p.risk != null ? ` <span class="meta">${p.risk}</span>` : ''}</td><td class="meta">${esc(p.error || p.points.slice(0, 2).join(' · '))}</td></tr>`).join('')}</table>${vList(d.reasons)}${vAdvice(d)}`;
1228
+ },
1089
1229
  ip: (r) => {
1090
1230
  const d = r.result;
1091
1231
  const t = d.verdict === 'malicious' ? 'bad' : d.verdict === 'suspicious' ? 'warn' : 'ok';
@@ -1134,6 +1274,36 @@ const views = {
1134
1274
  const park = d.recalls.some((x) => x.parkIt || x.parkOutside);
1135
1275
  return `<h3>${esc(head)} <span class="pill ${park ? 'bad' : d.recalls.length ? 'warn' : 'ok'}">${d.recalls.length ? d.recalls.length + ' recall' + (d.recalls.length === 1 ? '' : 's') : 'no recalls found'}</span></h3>${d.recalls.length ? `<ul class="ev">${d.recalls.slice(0, 15).map((x) => `<li>${x.parkIt ? '<b class="err">DO NOT DRIVE</b> ' : x.parkOutside ? '<b class="err">PARK OUTSIDE</b> ' : x.classification === 'Class I' ? '<b class="err">Class I</b> ' : ''}<b>${esc(x.title)}</b> <span class="meta">${esc(x.source)} ${esc(x.id)} · ${esc(x.date || '')}</span><div>${esc(x.hazard)}</div>${x.remedy ? `<div class="meta">${esc(x.remedy)}</div>` : ''}<a href="${safeUrl(x.url)}" target="_blank" rel="noopener noreferrer">details</a></li>`).join('')}</ul>` : ''}${d.note ? `<p class="meta">${esc(d.note)}</p>` : ''}`;
1136
1276
  },
1277
+ doc: (r) => {
1278
+ const d = r.result;
1279
+ const t = d.verdict === 'dangerous file' || d.verdict === 'likely edited' ? 'bad' : d.verdict === 'signs of editing' ? 'warn' : 'ok';
1280
+ const meta = ['producer', 'creator', 'creator tool', 'software', 'created', 'modified', 'edit history'].filter((k) => d.metadata[k]).map((k) => `<tr><td>${esc(k)}</td><td>${esc(d.metadata[k])}</td></tr>`).join('');
1281
+ return `<h3>${esc(d.name)} ${tonePill(t, d.verdict)} <span class="meta">risk ${d.risk}/100 · ${esc(d.type)} · ${Math.round(d.bytes / 1024)} KB${d.revisions > 1 ? ' · saved ' + d.revisions + ' times' : ''}${d.signed ? ' · digitally signed' : ''}</span></h3>${d.flags.length ? `<ul class="ev">${d.flags.map((x) => `<li class="err">${esc(x)}</li>`).join('')}</ul>` : ''}${d.ibans.length ? `<h3>IBANs in the document</h3><ul class="ev">${d.ibans.map((i) => `<li><code>${esc(i.iban)}</code> ${tonePill(i.valid ? 'ok' : 'bad', i.valid ? 'valid' : 'not valid')} <span class="meta">${esc(i.country || '')}</span></li>`).join('')}</ul>` : ''}${meta ? `<h3>Made with</h3><table>${meta}</table>` : ''}${d.domains.length ? `<p class="meta">Domains in the text: ${esc(d.domains.join(', '))}</p>` : ''}<p class="meta">Text: ${d.text.chars} characters from the ${esc(d.text.from)}.</p>${d.notes.map((n) => `<p class="meta">${esc(n)}</p>`).join('')}<h3>What to do</h3><ul class="ev">${d.advice.map((x) => `<li>${esc(x)}</li>`).join('')}</ul>`;
1282
+ },
1283
+ iban: (r) => {
1284
+ const d = r.result;
1285
+ return `<h3><code>${esc(d.formatted || d.input)}</code> ${tonePill(d.valid ? 'ok' : 'bad', d.valid ? 'valid format' : 'not valid')}</h3>${d.countryName ? `<p>${esc([d.countryName, d.bank ? d.bank.kind + ' ' + d.bank.code : null, d.sortCode ? 'sort code ' + d.sortCode : null].filter(Boolean).join(' · '))}</p>` : ''}${d.problems.length || d.warnings.length ? `<ul class="ev">${[...d.problems, ...d.warnings].map((x) => `<li class="err">${esc(x)}</li>`).join('')}</ul>` : ''}<h3>What to do</h3><ul class="ev">${d.advice.map((x) => `<li>${esc(x)}</li>`).join('')}</ul>`;
1286
+ },
1287
+ headers: (r) => {
1288
+ const d = r.result;
1289
+ const t = d.verdict === 'likely spoofed' ? 'bad' : d.verdict === 'suspicious' ? 'warn' : 'ok';
1290
+ return `<h3>${esc(d.from.address || 'unknown sender')} ${tonePill(t, d.verdict)} <span class="meta">risk ${d.risk}/100</span></h3><p>SPF ${esc(d.auth.spf || '?')} · DKIM ${esc(d.auth.dkim || '?')} · DMARC ${esc(d.auth.dmarc || '?')}${d.origin.ip ? ` · sent from ${esc(d.origin.ip)}${d.origin.country ? ' · ' + esc(d.origin.country) : ''}${d.origin.isp ? ' · ' + esc(d.origin.isp) : ''}` : ''}</p>${d.flags.length ? `<ul class="ev">${d.flags.map((x) => `<li class="err">${esc(x)}</li>`).join('')}</ul>` : ''}<h3>What to do</h3><ul class="ev">${d.advice.map((x) => `<li>${esc(x)}</li>`).join('')}</ul>`;
1291
+ },
1292
+ lookalike: (r) => {
1293
+ const d = r.result;
1294
+ const t = d.risk === 'high' ? 'bad' : d.risk === 'medium' ? 'warn' : 'ok';
1295
+ return `<h3>${esc(d.domain)} ${tonePill(t, d.risk + ' risk')} <span class="meta">${d.live.length} of ${d.checked} lookalikes exist</span></h3>${d.live.length ? `<table><tr><th>domain</th><th>kind</th><th></th></tr>${d.live.slice(0, 30).map((l) => `<tr><td><code>${esc(l.domain)}</code></td><td>${esc(l.kind)}</td><td>${l.mx ? '<span class="err">receives mail</span> ' : ''}${l.certSeen ? '<span class="err">new cert ' + esc(l.certSeen.slice(0, 10)) + '</span>' : ''}</td></tr>`).join('')}</table>` : ''}${d.certs.length ? `<h3>Certificates naming the brand, last 90 days</h3><ul class="ev">${d.certs.slice(0, 12).map((x) => `<li><code>${esc(x.name)}</code> <span class="meta">${esc(x.firstSeen.slice(0, 10))} · ${esc(x.issuer)}</span></li>`).join('')}</ul>` : ''}<p class="meta">${esc(d.note)}</p>`;
1296
+ },
1297
+ honeypot: (r) => {
1298
+ const d = r.result;
1299
+ const t = d.verdict === 'honeypot' || d.verdict === 'high risk' ? 'bad' : d.verdict === 'caution' ? 'warn' : 'ok';
1300
+ return `<h3>${esc(d.symbol || d.address)} <span class="meta">${esc(d.chain)}</span> ${tonePill(t, d.verdict)}</h3><p>Buy tax ${d.buyTax ?? '?'}% · sell tax ${d.sellTax ?? '?'}%${d.holders ? ` · ${d.holders.failed} of ${d.holders.checked} recent holders could not sell` : ''}</p>${d.reasons.length ? `<ul class="ev">${d.reasons.map((x) => `<li class="err">${esc(x)}</li>`).join('')}</ul>` : ''}<h3>What to do</h3><ul class="ev">${d.advice.map((x) => `<li>${esc(x)}</li>`).join('')}</ul>`;
1301
+ },
1302
+ address: (r) => {
1303
+ const d = r.result;
1304
+ const t = d.sanctioned ? 'bad' : d.warnings.length ? 'warn' : 'ok';
1305
+ return `<h3><code>${esc(d.address)}</code> ${tonePill(t, d.sanctioned ? 'sanctioned' : d.warnings.length ? 'check first' : 'no red flags')}</h3><p>${esc(d.format)}${d.network ? ' · ' + esc(d.network) : ''}${d.activity ? ' · ' + esc([d.activity.label, d.activity.balance, d.activity.txCount != null ? d.activity.txCount + ' transactions' : null, d.activity.isContract ? 'smart contract' : null].filter(Boolean).join(' · ')) : ''}</p>${d.warnings.length ? `<ul class="ev">${d.warnings.map((x) => `<li class="err">${esc(x)}</li>`).join('')}</ul>` : ''}<h3>What to do</h3><ul class="ev">${d.advice.map((x) => `<li>${esc(x)}</li>`).join('')}</ul>`;
1306
+ },
1137
1307
  emailsec: (r) => {
1138
1308
  const d = r.result;
1139
1309
  const tone = d.verdict === 'protected' ? 'ok' : d.verdict === 'partly protected' ? 'warn' : 'bad';
@@ -1290,13 +1460,51 @@ $('#inv-go').onclick = async () => {
1290
1460
  finally { $('#inv-go').disabled = false; }
1291
1461
  return;
1292
1462
  }
1293
- const param = { phone: 'number', breaches: 'domain', company: 'q', ip: 'ip', hash: 'hash', ransomware: 'q', satellites: 'q', scam: 'message', recall: 'q', emailsec: 'domain', airport: 'code', country: 'name', papers: 'topic', url: 'url', factcheck: 'claim', audit: 'packages', travel: 'place', dossier: 'name', hype: 'topic', footprint: 'domain', lights: 'place', aircraft: 'q', /*onchain*/wallet: 'address', token: 'address', /*/onchain*/air: 'place', space: 'x', /*onchain*/robinhood: 'x', deployer: 'address', /*/onchain*/launches: 'company', markets: 'x', rewind: 'date', sanctions: 'q', health: 'company', impact: 'place', contradictions: 'topic' }[kind];
1463
+ if (FILE_KINDS.has(kind) || TEXT_KINDS.has(kind)) {
1464
+ $('#inv-go').disabled = true;
1465
+ try {
1466
+ let r;
1467
+ if (FILE_KINDS.has(kind)) {
1468
+ const f = $('#inv-file').files[0];
1469
+ if (!f) throw new Error('Choose a file first.');
1470
+ const maxMb = FILE_MAX[kind] || 10;
1471
+ if (f.size > maxMb * 1024 * 1024) throw new Error(`The file is larger than ${maxMb} MB.`);
1472
+ out.innerHTML = '<p class="meta">Reading the file…</p>';
1473
+ const data = await new Promise((res, rej) => { const fr = new FileReader(); fr.onload = () => res(String(fr.result)); fr.onerror = () => rej(new Error('could not read the file')); fr.readAsDataURL(f); });
1474
+ r = await post(FILE_ROUTE[kind], { name: f.name, data });
1475
+ } else if (kind === 'job') {
1476
+ const s = $('#inv-ta').value.trim();
1477
+ if (s.length < 20) throw new Error('Paste the job message first.');
1478
+ out.innerHTML = '<p class="meta">Checking…</p>';
1479
+ r = await post('/api/job', { message: s });
1480
+ } else if (kind === 'signature') {
1481
+ const s = $('#inv-ta').value.trim();
1482
+ if (s.length < 10) throw new Error('Paste the signature request first.');
1483
+ out.innerHTML = '<p class="meta">Decoding…</p>';
1484
+ r = await post('/api/signature', { request: s });
1485
+ } else {
1486
+ const h = $('#inv-ta').value.trim();
1487
+ if (h.length < 20) throw new Error('Paste the raw headers first.');
1488
+ out.innerHTML = '<p class="meta">Checking…</p>';
1489
+ r = await post('/api/headers', { headers: h });
1490
+ }
1491
+ out.innerHTML = views[kind](r) + checkFoot(r) + `<h3>Sources</h3>${renderSources(r.provenance)}`;
1492
+ } catch (err) { out.innerHTML = `<p class="err">${esc(err.message)}</p>`; }
1493
+ finally { $('#inv-go').disabled = false; }
1494
+ return;
1495
+ }
1496
+ const param = { stocktoken: 'q', site: 'url', tx: 'hash', creator: 'address', archive: 'url', invite: 'link', approvals: 'address', contract: 'address', poisoning: 'address', trace: 'address', walletreport: 'address', repo: 'repo', domainreport: 'domain', iban: 'iban',lookalike: 'domain', address: 'address', honeypot: 'address', phone: 'number', breaches: 'domain', company: 'q', ip: 'ip', hash: 'hash', ransomware: 'q', satellites: 'q', scam: 'message', recall: 'q', emailsec: 'domain', airport: 'code', country: 'name', papers: 'topic', url: 'url', factcheck: 'claim', audit: 'packages', travel: 'place', dossier: 'name', hype: 'topic', footprint: 'domain', lights: 'place', aircraft: 'q', /*onchain*/wallet: 'address', token: 'address', /*/onchain*/air: 'place', space: 'x', /*onchain*/robinhood: 'x', deployer: 'address', /*/onchain*/launches: 'company', markets: 'x', rewind: 'date', sanctions: 'q', health: 'company', impact: 'place', contradictions: 'topic' }[kind];
1294
1497
  $('#inv-go').disabled = true;
1295
1498
  out.innerHTML = '<p class="meta">Working… some sources are rate-limited and take a while.</p>';
1296
1499
  try {
1297
- const r = kind === 'audit' && /^[{]/.test(q) ? await post('/api/audit', { manifest: q }) : await api(`/api/${kind}?${param}=${encodeURIComponent(q)}`);
1500
+ // "0x… arbitrum": a chain word after an address picks the chain.
1501
+ const words = q.split(/\s+/);
1502
+ const chainQ = words.length === 2 && /^0x[0-9a-f]{40}$/i.test(words[0]) && CHAIN_WORD.test(words[1]) ? `&chain=${encodeURIComponent(words[1].toLowerCase())}` : '';
1503
+ const qq = chainQ ? words[0] : q;
1504
+ const path = { domainreport: 'report/domain', walletreport: 'report/wallet' }[kind] || kind;
1505
+ const r = kind === 'audit' && /^[{]/.test(q) ? await post('/api/audit', { manifest: q }) : await api(`/api/${path}?${param}=${encodeURIComponent(qq)}${chainQ}`);
1298
1506
  const shareable = ['url', 'factcheck', 'travel', 'audit', 'recall', 'emailsec', 'papers', 'country', 'airport'].includes(kind) && !(kind === 'audit' && /^[{]/.test(q));
1299
- out.innerHTML = views[kind](r) + (shareable ? '<p class="row" style="margin-top:14px"><button class="icon-btn" id="inv-share">Share result</button><span class="meta" id="inv-share-out"></span></p>' : '') + `<h3>Sources</h3>${renderSources(r.provenance)}`;
1507
+ out.innerHTML = views[kind](r) + checkFoot(r) + (shareable ? '<p class="row" style="margin-top:14px"><button class="icon-btn" id="inv-share">Share result</button><span class="meta" id="inv-share-out"></span></p>' : '') + `<h3>Sources</h3>${renderSources(r.provenance)}`;
1300
1508
  if (shareable) $('#inv-share').onclick = async () => {
1301
1509
  const b = $('#inv-share');
1302
1510
  b.disabled = true;
@@ -638,7 +638,7 @@ r.provenance <span class="d">// every source used</span></pre></div></div>
638
638
 
639
639
  <footer class="sitefoot"><div class="wrap">
640
640
  <div class="fgrid">
641
- <div class="fbrand"><a class="logo" href="/"><img class="lm" src="/assets/logo.svg" alt="" width="22" height="22">OCULON</a><p>Open-source intelligence engine for the physical and digital world. Self-hosted, MIT licensed, zero runtime dependencies.</p><div class="fstatus"><i></i><span id="f-status">Engine online</span></div><div class="social"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/oculon_radar_bot" target="_blank" rel="noopener" aria-label="Oculon Radar on Telegram" title="Oculon Radar on Telegram"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg></a><a href="https://glama.ai/mcp/servers/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on Glama" title="Oculon on Glama"><svg viewBox="15 15 300 300" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M95 15H75V155H95V15ZM255 15H235V155H255V15ZM75 25H65V125H75V25ZM265 25H255V125H265V25ZM65 35H55V95H65V35ZM275 35H265V95H275V35ZM105 75H95V155H105V75ZM235 75H225V155H235V75ZM205 85H125V185H205V85ZM125 95H105V155H125V95ZM225 95H205V155H225V95ZM75 145H65V155H75V145ZM265 145H255V155H265V145ZM125 155H115V225H125V155ZM215 155H205V225H215V155ZM85 165H75V315H85V165ZM115 165H105V315H115V165ZM225 165H215V315H225V165ZM255 165H245V315H255V165ZM105 175H85V315H105V175ZM245 175H225V315H245V175ZM135 185H125V235H135V185ZM185 185H145V195H185V185ZM205 185H195V235H205V185ZM75 195H65V275H75V195ZM145 195H135V235H145V195ZM195 195H185V235H195V195ZM155 205H145V235H155V205ZM185 205H175V235H185V205ZM125 235H115V315H125V235ZM215 235H205V315H215V235ZM145 245H125V315H145V245ZM205 245H185V315H205V245ZM185 265H145V315H185V265Z"/></svg></a></div></div>
641
+ <div class="fbrand"><a class="logo" href="/"><img class="lm" src="/assets/logo.svg" alt="" width="22" height="22">OCULON</a><p>Open-source intelligence engine for the physical and digital world. Self-hosted, MIT licensed, zero runtime dependencies.</p><div class="fstatus"><i></i><span id="f-status">Engine online</span></div><div class="social"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/oculonportal" target="_blank" rel="noopener" aria-label="Oculon community on Telegram" title="Oculon community on Telegram"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg></a><a href="https://glama.ai/mcp/servers/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on Glama" title="Oculon on Glama"><svg viewBox="15 15 300 300" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M95 15H75V155H95V15ZM255 15H235V155H255V15ZM75 25H65V125H75V25ZM265 25H255V125H265V25ZM65 35H55V95H65V35ZM275 35H265V95H275V35ZM105 75H95V155H105V75ZM235 75H225V155H235V75ZM205 85H125V185H205V85ZM125 95H105V155H125V95ZM225 95H205V155H225V95ZM75 145H65V155H75V145ZM265 145H255V155H265V145ZM125 155H115V225H125V155ZM215 155H205V225H215V155ZM85 165H75V315H85V165ZM115 165H105V315H115V165ZM225 165H215V315H225V165ZM255 165H245V315H255V165ZM105 175H85V315H105V175ZM245 175H225V315H245V175ZM135 185H125V235H135V185ZM185 185H145V195H185V185ZM205 185H195V235H205V185ZM75 195H65V275H75V195ZM145 195H135V235H145V195ZM195 195H185V235H195V195ZM155 205H145V235H155V205ZM185 205H175V235H185V205ZM125 235H115V315H125V235ZM215 235H205V315H215V235ZM145 245H125V315H145V245ZM205 245H185V315H205V245ZM185 265H145V315H185V265Z"/></svg></a></div><p style="margin:10px 0 0;font:12px ui-monospace,Consolas,monospace;color:#7d8f93">Telegram bot: <a href="https://t.me/oculon_radar_bot" target="_blank" rel="noopener" style="color:#9fb0b4">@oculon_radar_bot</a></p></div>
642
642
  <div><h5>Product</h5><a href="#console">Console</a><!--onchain--><a href="#robinhood">Robinhood Chain</a><!--/onchain--><a href="#world">Live world</a><a href="#modules">Modules</a><a href="/app">Open the app</a></div>
643
643
  <div><h5>Developers</h5><a href="/docs#cli">CLI</a><a href="/docs#sdk">SDK</a><a href="/docs#mcp-server">MCP server</a><a href="/docs#telegram-bot">Telegram bot</a><a href="/docs#cli-reference">Command reference</a></div>
644
644
  <div><h5>Resources</h5><a href="/docs">Documentation</a><a href="/docs#install">Install</a><a href="/docs#configuration">Configuration</a><a href="/docs#limits">Limits</a><a href="/report">Weekly report</a><a href="/thetoken">Token</a></div>
@@ -103,6 +103,7 @@ footer{background:rgba(0,0,0,.6);backdrop-filter:blur(6px)}
103
103
  <h2>What Oculon stores</h2>
104
104
  <ul>
105
105
  <li>A local SQLite database with signals, entities, links, cached API responses, watchlist items, geofences, case files and feedback votes, in <code>~/.oculon</code> or the folder set by <code>OCULON_HOME</code>.</li>
106
+ <li>Check history: each check (a link, a message, an IBAN, a document and so on) is kept for 90 days with its verdict, the result and the list of sources it called, so it can be replayed, downloaded as a PDF and compared when the same thing is checked again. Anyone with a check's link (<code>/replay/&lt;id&gt;</code>) can open it; the id is random and not listed anywhere. Uploaded documents themselves are not kept, only what the check found in them.</li>
106
107
  <li>API keys you add to your <code>.env</code> file. They are read locally and sent only to the service each key belongs to.</li>
107
108
  <li>Nothing is sent to the Oculon authors. There is no usage reporting, crash reporting or tracking.</li>
108
109
  </ul>
@@ -110,6 +111,7 @@ footer{background:rgba(0,0,0,.6);backdrop-filter:blur(6px)}
110
111
  <ul>
111
112
  <li><strong>Queries to public data sources.</strong> When a module runs, it calls the sources it needs <!--onchain-->(for example USGS, Cloudflare Radar, Blockscout or GeckoTerminal)<!--/onchain--><!--offchain-->(for example USGS, Cloudflare Radar, NVD or NASA)<!--/offchain--> with the inputs you gave it, <!--onchain-->such as an address, a domain or a place name.<!--/onchain--><!--offchain-->such as a domain, a company or a place name.<!--/offchain--> Each source handles those requests under its own policy.</li>
112
113
  <li><strong>Questions to language models.</strong> Commands such as <code>ask</code>, <code>case</code> and the daily brief send your question and the collected evidence to the LLM providers you configured keys for (Groq, Google Gemini, Mistral, OpenRouter, NVIDIA or Anthropic). Without a key, nothing is sent.</li>
114
+ <li><strong>Screenshots in the document check.</strong> To read the text in an image or a scanned PDF, the image is sent to OpenRouter or Google Gemini when a key for them is set. PDFs with a text layer are read on the server only. The result says when an image was sent.</li>
113
115
  <li><strong>Telegram.</strong> If you run the bot, alerts and answers go to the chats you allow-listed, through Telegram's servers.</li>
114
116
  <li><strong>This web page.</strong> The landing page, app and docs load fonts from Google Fonts, map libraries from cdnjs and map outlines from jsDelivr, so your browser contacts those services when it opens them.</li>
115
117
  </ul>
@@ -156,7 +158,7 @@ footer{background:rgba(0,0,0,.6);backdrop-filter:blur(6px)}
156
158
  <p>These terms ship with the software and may change between versions.</p>
157
159
  </article>
158
160
  </main>
159
- <footer><div class="in"><span>© <span id="year"></span> Oculon contributors · MIT</span><span><a href="/">Home</a> · <a href="/docs">Docs</a> · <a href="/app">App</a> · <a href="/thetoken">Token</a></span></div><div class="in" style="padding-top:0"><div class="social" style="margin-top:0"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/oculon_radar_bot" target="_blank" rel="noopener" aria-label="Oculon Radar on Telegram" title="Oculon Radar on Telegram"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg></a><a href="https://glama.ai/mcp/servers/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on Glama" title="Oculon on Glama"><svg viewBox="15 15 300 300" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M95 15H75V155H95V15ZM255 15H235V155H255V15ZM75 25H65V125H75V25ZM265 25H255V125H265V25ZM65 35H55V95H65V35ZM275 35H265V95H275V35ZM105 75H95V155H105V75ZM235 75H225V155H235V75ZM205 85H125V185H205V85ZM125 95H105V155H125V95ZM225 95H205V155H225V95ZM75 145H65V155H75V145ZM265 145H255V155H265V145ZM125 155H115V225H125V155ZM215 155H205V225H215V155ZM85 165H75V315H85V165ZM115 165H105V315H115V165ZM225 165H215V315H225V165ZM255 165H245V315H255V165ZM105 175H85V315H105V175ZM245 175H225V315H245V175ZM135 185H125V235H135V185ZM185 185H145V195H185V185ZM205 185H195V235H205V185ZM75 195H65V275H75V195ZM145 195H135V235H145V195ZM195 195H185V235H195V195ZM155 205H145V235H155V205ZM185 205H175V235H185V205ZM125 235H115V315H125V235ZM215 235H205V315H215V235ZM145 245H125V315H145V245ZM205 245H185V315H205V245ZM185 265H145V315H185V265Z"/></svg></a></div></div></footer>
161
+ <footer><div class="in"><span>© <span id="year"></span> Oculon contributors · MIT</span><span><a href="/">Home</a> · <a href="/docs">Docs</a> · <a href="/app">App</a> · <a href="/thetoken">Token</a></span></div><div class="in" style="padding-top:0"><div class="social" style="margin-top:0"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/oculonportal" target="_blank" rel="noopener" aria-label="Oculon community on Telegram" title="Oculon community on Telegram"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg></a><a href="https://glama.ai/mcp/servers/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on Glama" title="Oculon on Glama"><svg viewBox="15 15 300 300" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M95 15H75V155H95V15ZM255 15H235V155H255V15ZM75 25H65V125H75V25ZM265 25H255V125H265V25ZM65 35H55V95H65V35ZM275 35H265V95H275V35ZM105 75H95V155H105V75ZM235 75H225V155H235V75ZM205 85H125V185H205V85ZM125 95H105V155H125V95ZM225 95H205V155H225V95ZM75 145H65V155H75V145ZM265 145H255V155H265V145ZM125 155H115V225H125V155ZM215 155H205V225H215V155ZM85 165H75V315H85V165ZM115 165H105V315H115V165ZM225 165H215V315H225V165ZM255 165H245V315H255V165ZM105 175H85V315H105V175ZM245 175H225V315H245V175ZM135 185H125V235H135V185ZM185 185H145V195H185V185ZM205 185H195V235H205V185ZM75 195H65V275H75V195ZM145 195H135V235H145V195ZM195 195H185V235H195V195ZM155 205H145V235H155V205ZM185 205H175V235H185V205ZM125 235H115V315H125V235ZM215 235H205V315H215V235ZM145 245H125V315H145V245ZM205 245H185V315H205V245ZM185 265H145V315H185V265Z"/></svg></a></div><p style="margin:10px 0 0;font:12px ui-monospace,Consolas,monospace;color:#7d8f93">Telegram bot: <a href="https://t.me/oculon_radar_bot" target="_blank" rel="noopener" style="color:#9fb0b4">@oculon_radar_bot</a></p></div></footer>
160
162
  <script src="/assets/fx.js"></script>
161
163
  <script>
162
164
  if (window.OculonFX) { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); }
package/dist/web/mcp.html CHANGED
@@ -92,7 +92,7 @@ footer a{color:var(--soft)}
92
92
  <div class="f"><strong>Open source</strong>Run your own copy with <code>oculon serve</code>; it serves this endpoint at <code>/mcp</code>.</div>
93
93
  </div>
94
94
  </main>
95
- <footer><div class="social" style="justify-content:center;margin:0 0 14px"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/oculon_radar_bot" target="_blank" rel="noopener" aria-label="Oculon Radar on Telegram" title="Oculon Radar on Telegram"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg></a><a href="https://glama.ai/mcp/servers/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on Glama" title="Oculon on Glama"><svg viewBox="15 15 300 300" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M95 15H75V155H95V15ZM255 15H235V155H255V15ZM75 25H65V125H75V25ZM265 25H255V125H265V25ZM65 35H55V95H65V35ZM275 35H265V95H275V35ZM105 75H95V155H105V75ZM235 75H225V155H235V75ZM205 85H125V185H205V85ZM125 95H105V155H125V95ZM225 95H205V155H225V95ZM75 145H65V155H75V145ZM265 145H255V155H265V145ZM125 155H115V225H125V155ZM215 155H205V225H215V155ZM85 165H75V315H85V165ZM115 165H105V315H115V165ZM225 165H215V315H225V165ZM255 165H245V315H255V165ZM105 175H85V315H105V175ZM245 175H225V315H245V175ZM135 185H125V235H135V185ZM185 185H145V195H185V185ZM205 185H195V235H205V185ZM75 195H65V275H75V195ZM145 195H135V235H145V195ZM195 195H185V235H195V195ZM155 205H145V235H155V205ZM185 205H175V235H185V205ZM125 235H115V315H125V235ZM215 235H205V315H215V235ZM145 245H125V315H145V245ZM205 245H185V315H205V245ZM185 265H145V315H185V265Z"/></svg></a></div><a href="/">oculon.live</a> · <a href="/docs#remote-mcp">Docs</a> · <a href="/privacy">Privacy</a> · <a href="/terms">Terms</a> · <a href="/thetoken">Token</a></footer>
95
+ <footer><div class="social" style="justify-content:center;margin:0 0 14px"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/oculonportal" target="_blank" rel="noopener" aria-label="Oculon community on Telegram" title="Oculon community on Telegram"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg></a><a href="https://glama.ai/mcp/servers/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on Glama" title="Oculon on Glama"><svg viewBox="15 15 300 300" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M95 15H75V155H95V15ZM255 15H235V155H255V15ZM75 25H65V125H75V25ZM265 25H255V125H265V25ZM65 35H55V95H65V35ZM275 35H265V95H275V35ZM105 75H95V155H105V75ZM235 75H225V155H235V75ZM205 85H125V185H205V85ZM125 95H105V155H125V95ZM225 95H205V155H225V95ZM75 145H65V155H75V145ZM265 145H255V155H265V145ZM125 155H115V225H125V155ZM215 155H205V225H215V155ZM85 165H75V315H85V165ZM115 165H105V315H115V165ZM225 165H215V315H225V165ZM255 165H245V315H255V165ZM105 175H85V315H105V175ZM245 175H225V315H245V175ZM135 185H125V235H135V185ZM185 185H145V195H185V185ZM205 185H195V235H205V185ZM75 195H65V275H75V195ZM145 195H135V235H145V195ZM195 195H185V235H195V195ZM155 205H145V235H155V205ZM185 205H175V235H185V205ZM125 235H115V315H125V235ZM215 235H205V315H215V235ZM145 245H125V315H145V245ZM205 245H185V315H205V245ZM185 265H145V315H185V265Z"/></svg></a></div><p style="margin:10px 0 0;font:12px ui-monospace,Consolas,monospace;color:#7d8f93">Telegram bot: <a href="https://t.me/oculon_radar_bot" target="_blank" rel="noopener" style="color:#9fb0b4">@oculon_radar_bot</a></p><a href="/">oculon.live</a> · <a href="/docs#remote-mcp">Docs</a> · <a href="/privacy">Privacy</a> · <a href="/terms">Terms</a> · <a href="/thetoken">Token</a></footer>
96
96
  <script src="/assets/fx.js"></script>
97
97
  <script>
98
98
  if (window.OculonFX) { try { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); } catch {} }
@@ -16,6 +16,21 @@ const E = [
16
16
  ['/api/lookalike', 'lookalikes', 'Lookalike domains of a brand that exist in DNS, and new certificates naming the brand.', [{ name: 'domain', desc: 'The real domain', example: 'example.com', required: true }]],
17
17
  ['/api/honeypot', 'honeypotCheck', 'Can this token be sold? Buy and sell simulation with taxes (Ethereum, BNB Chain, Base).', [{ name: 'address', desc: 'Token contract address', example: '0x6982508145454Ce325dDbE47a25d4ec3d2311933', required: true }, { name: 'chain', desc: 'eth, bsc or base', example: 'eth' }]],
18
18
  ['/api/address', 'addressCheck', 'Crypto address check without keys: chain, OFAC sanctions, balance and activity.', [{ name: 'address', desc: 'Crypto address', example: 'bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh', required: true }, { name: 'network', desc: '"robinhood" for Robinhood Chain 0x addresses', example: 'robinhood' }]],
19
+ ['/api/approvals', 'approvalsCheck', 'Who can take tokens out of this wallet: active ERC-20 and NFT approvals, re-read on chain, risky spenders flagged.', [{ name: 'address', desc: 'Wallet address', example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045', required: true }, { name: 'chain', desc: 'eth, arbitrum or polygon', example: 'eth' }]],
20
+ ['/api/contract', 'contractRisk', 'What the owner of a token contract can still do: mint, blacklist, taxes, upgrades; owner, holders and liquidity.', [{ name: 'address', desc: 'Token contract address', example: '0x6982508145454Ce325dDbE47a25d4ec3d2311933', required: true }, { name: 'chain', desc: 'eth, base, bsc, arbitrum or polygon', example: 'eth' }]],
21
+ ['/api/poisoning', 'poisoningCheck', 'Lookalike addresses, zero-value transfers and fake tokens planted in a wallet history.', [{ name: 'address', desc: 'Wallet address', example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045', required: true }, { name: 'chain', desc: 'eth, arbitrum or polygon', example: 'eth' }]],
22
+ ['/api/trace', 'traceFunds', 'Follow funds out of an address hop by hop until exchanges, mixers, bridges or sanctioned addresses.', [{ name: 'address', desc: 'Wallet address', example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045', required: true }, { name: 'chain', desc: 'eth, arbitrum or polygon', example: 'eth' }, { name: 'hops', desc: 'Hops to follow, 1-4', example: '3' }]],
23
+ ['/api/repo', 'repoCheck', 'Is this GitHub repo safe to run? Install hooks, remote code, wallet and browser theft, obfuscation, fake stars.', [{ name: 'repo', desc: 'owner/name or github.com link', example: 'expressjs/express', required: true }]],
24
+ ['/api/report/domain', 'domainReport', 'Full report on a domain: link check, email protection, exposure, lookalikes, company.', [{ name: 'domain', desc: 'Domain', example: 'example.com', required: true }]],
25
+ ['/api/report/wallet', 'walletReport', 'Full report on a wallet (address, approvals, poisoning, fund trace) or a token (contract risk, sell simulation).', [{ name: 'address', desc: 'Wallet address', example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045', required: true }, { name: 'chain', desc: 'eth, arbitrum, polygon, base or bsc', example: 'eth' }]],
26
+ ['/api/site', 'siteCheck', 'Open a page and look for wallet drainer code and phishing forms, brand copies and Telegram exfiltration.', [{ name: 'url', desc: 'Page link', example: 'https://example.com', required: true }]],
27
+ ['/api/tx', 'explainTx', 'Explain a transaction: function, transfers, approvals, tokens taken with an earlier approval.', [{ name: 'hash', desc: 'Transaction hash', example: '0xe8701d00f5a33788ab823bb8c32a3863395083914c43c2d97fd50dc33e65ceb5', required: true }, { name: 'chain', desc: 'eth, base, arbitrum, bsc or polygon (found automatically)', example: 'eth' }]],
28
+ ['/api/creator', 'creatorCheck', 'Who created a token and how many of their other tokens are dead.', [{ name: 'address', desc: 'Token contract address', example: '0x6982508145454Ce325dDbE47a25d4ec3d2311933', required: true }, { name: 'chain', desc: 'eth, arbitrum or polygon', example: 'eth' }]],
29
+ ['/api/archive', 'archivePage', 'Save a page in the Wayback Machine as evidence, with its hash and status.', [{ name: 'url', desc: 'Page link', example: 'https://example.com', required: true }]],
30
+ ['/api/invite', 'inviteCheck', 'What is behind a Telegram or Discord invite: members, age, verified badge, scam labels, impersonation.', [{ name: 'link', desc: 'Invite link', example: 'https://t.me/durov', required: true }]],
31
+ ['/api/stocktoken', 'stockToken', 'Robinhood Stock Tokens: official contract, live price, corporate actions; or whether an address is a fake one.', [{ name: 'q', desc: 'Ticker, token address, or empty', example: 'TSLA' }]],
32
+ ['/api/check', 'getCheck', 'An earlier check by its id (returned as check.id by every check): verdict, every source call in order, what changed since the check before it, and the full result.', [{ name: 'id', desc: 'Check id', example: 'qQcUfNGmZgrcQ9kD', required: true }]],
33
+ ['/api/status', 'sourceStatus', 'Which sources are up, slow, degraded or down, from real calls: success rate, median time, last error.', [{ name: 'hours', desc: 'Window in hours (default 24, max 48)', example: '24' }]],
19
34
  ['/api/satellites', 'satellites', 'Satellites launched in the last 30 days, or one object\'s orbit, owner and status.', [{ name: 'q', desc: 'Satellite name or NORAD number (optional)', example: '25544' }]],
20
35
  ['/api/travel', 'travelRisk', 'Travel risk for the coming week: official advice, weather, air, outbreaks, disasters, quakes, outages.', [{ name: 'place', desc: 'City or country', example: 'Lisbon', required: true }]],
21
36
  ['/api/airport', 'airportStatus', 'Airport weather (METAR, TAF), FAA delays and ground stops, nearby emergency squawks.', [{ name: 'code', desc: 'IATA or ICAO code, or name', example: 'JFK', required: true }]],
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Server-rendered pages for the replay log (/replay/<id>), source status (/status) and the AI-agent guides
3
+ * (/llms.txt, /llms-full.txt). Plain HTML in the site's look; no scripts needed to read them.
4
+ */
5
+ import type { SourceStatus } from '../core/calls.js';
6
+ import type { CheckRecord } from '../modules/checks.js';
7
+ /** /replay/<id>: what a check said and every source it called, in order. */
8
+ export declare function replayPage(c: CheckRecord, history: {
9
+ id: string;
10
+ at: string;
11
+ verdict: string | null;
12
+ risk: number | null;
13
+ }[], base: string): string;
14
+ /** /status: which sources answered in the last day. */
15
+ export declare function statusPage(list: SourceStatus[], base: string, hours: number): string;
16
+ export interface ToolDoc {
17
+ name: string;
18
+ description: string;
19
+ inputSchema: Record<string, unknown>;
20
+ }
21
+ /** /llms.txt: a short guide for AI agents (llmstxt.org format). */
22
+ export declare function llmsTxt(tools: ToolDoc[], base: string, mcpUrl: string): string;
23
+ /** /llms-full.txt: every tool with its full description and arguments. */
24
+ export declare function llmsFull(tools: ToolDoc[], base: string, mcpUrl: string): string;