oculon 0.1.5 → 0.1.7
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.
- package/README.md +72 -4
- package/dist/cli/main.js +184 -0
- package/dist/core/calls.d.ts +63 -0
- package/dist/core/calls.js +120 -0
- package/dist/core/evm.d.ts +20 -0
- package/dist/core/evm.js +165 -0
- package/dist/core/http.d.ts +11 -0
- package/dist/core/http.js +113 -30
- package/dist/core/pdf.d.ts +51 -0
- package/dist/core/pdf.js +211 -0
- package/dist/core/quota.js +3 -0
- package/dist/core/verdict.d.ts +30 -0
- package/dist/core/verdict.js +164 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +54 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +159 -5
- package/dist/modules/address.d.ts +32 -0
- package/dist/modules/address.js +91 -0
- package/dist/modules/checks.d.ts +59 -0
- package/dist/modules/checks.js +134 -0
- package/dist/modules/doc.d.ts +61 -0
- package/dist/modules/doc.js +715 -0
- package/dist/modules/headers.d.ts +50 -0
- package/dist/modules/headers.js +108 -0
- package/dist/modules/honeypot.d.ts +36 -0
- package/dist/modules/honeypot.js +53 -0
- package/dist/modules/iban.d.ts +30 -0
- package/dist/modules/iban.js +82 -0
- package/dist/modules/lookalike.d.ts +34 -0
- package/dist/modules/lookalike.js +122 -0
- package/dist/modules/personal.d.ts +1 -1
- package/dist/modules/personal.js +14 -4
- package/dist/modules/utility.d.ts +147 -0
- package/dist/modules/utility.js +403 -0
- package/dist/report-pdf.d.ts +7 -0
- package/dist/report-pdf.js +81 -0
- package/dist/telegram.d.ts +2 -0
- package/dist/telegram.js +43 -6
- package/dist/web/assets/logo-200.png +0 -0
- package/dist/web/burns.d.ts +21 -0
- package/dist/web/burns.js +53 -0
- package/dist/web/card.d.ts +28 -0
- package/dist/web/card.js +75 -0
- package/dist/web/index.html +76 -4
- package/dist/web/landing.html +1 -1
- package/dist/web/legal.html +1 -1
- package/dist/web/mcp.html +1 -1
- package/dist/web/openapi.js +6 -0
- package/dist/web/pages.d.ts +24 -0
- package/dist/web/pages.js +139 -0
- package/dist/web/public.js +7 -1
- package/dist/web/server.d.ts +17 -0
- package/dist/web/server.js +207 -7
- package/dist/web/token.html +98 -0
- package/dist/web/token.json +9 -0
- package/dist/web/utility.html +251 -0
- package/package.json +1 -1
package/dist/telegram.js
CHANGED
|
@@ -21,9 +21,9 @@ export function formatSignal(s) {
|
|
|
21
21
|
return `<b>[${Math.round(s.score)}] ${esc(s.title)}</b> <code>${esc(s.module)}</code>${ev ? `\n${ev}` : ''}`;
|
|
22
22
|
}
|
|
23
23
|
/** Commands anyone may use when the bot is public. Everything else stays with the allowlisted chats. */
|
|
24
|
-
export const PUBLIC_COMMANDS = new Set(['/start', '/help', '/scam', '/url', '/factcheck', '/recall', '/email', '/travel', '/airport', '/country', '/papers', '/audit', '/monitor', '/monitors', '/unmonitor', '/cve', '/vulns', '/hazards', '/blackout', '/cloud', '/space', '/air', '/radar', '/signals', '/alerts', '/ask', '/ip', '/hash', '/ransomware', '/company', '/breaches', '/phone', '/satellite']);
|
|
24
|
+
export const PUBLIC_COMMANDS = new Set(['/start', '/help', '/scam', '/url', '/factcheck', '/recall', '/email', '/travel', '/airport', '/country', '/papers', '/audit', '/monitor', '/monitors', '/unmonitor', '/cve', '/vulns', '/hazards', '/blackout', '/cloud', '/space', '/air', '/radar', '/signals', '/alerts', '/ask', '/ip', '/hash', '/ransomware', '/company', '/breaches', '/phone', '/satellite', '/iban', '/lookalike', '/honeypot', '/address', '/headers']);
|
|
25
25
|
/** Commands that start many upstream calls or an LLM get a tighter budget. */
|
|
26
|
-
const HEAVY = new Set(['/factcheck', '/papers', '/travel', '/country', '/ask', '/scam', '/audit', '/radar', '/ip', '/hash', '/company']);
|
|
26
|
+
const HEAVY = new Set(['/factcheck', '/papers', '/travel', '/country', '/ask', '/scam', '/audit', '/radar', '/ip', '/hash', '/company', '/lookalike', '/honeypot', '/address']);
|
|
27
27
|
export const PUBLIC_HELP = [
|
|
28
28
|
'<b>Oculon</b>: check anything, every answer sourced.',
|
|
29
29
|
'',
|
|
@@ -40,6 +40,11 @@ export const PUBLIC_HELP = [
|
|
|
40
40
|
'/papers <topic> — research brief',
|
|
41
41
|
'/audit <npm:name@ver ...> — dependency vulnerabilities',
|
|
42
42
|
'/phone <+number> — who is calling? premium-rate and callback-scam warnings',
|
|
43
|
+
'/iban <IBAN> — is this IBAN valid before you pay?',
|
|
44
|
+
'/headers <raw headers> — was this email spoofed? SPF, DKIM, DMARC, origin',
|
|
45
|
+
'/lookalike <domain> — lookalike domains and new certificates for a brand',
|
|
46
|
+
'/honeypot <token> [eth|bsc|base] — can this token be sold?',
|
|
47
|
+
'/address <crypto address> — sanctions, balance and activity',
|
|
43
48
|
'/company <name, LEI or EU VAT> — is this supplier real?',
|
|
44
49
|
'/breaches [domain] — newest data breaches, or one domain',
|
|
45
50
|
'/ip <address or domain> — abuse reports, scanners, Tor, threat reports',
|
|
@@ -68,7 +73,7 @@ export const HELP = [
|
|
|
68
73
|
'/monitor <request> — watch anything in plain words, e.g. /monitor internet outages in Iran',
|
|
69
74
|
'/recall <VIN, "2018 Honda Accord" or product> — vehicle and product recalls',
|
|
70
75
|
'/email <domain> — can someone spoof email from this domain?',
|
|
71
|
-
'/phone · /company · /breaches · /ip · /hash · /ransomware · /satellite — caller, supplier, breach and threat checks',
|
|
76
|
+
'/phone · /company · /iban · /headers · /breaches · /ip · /hash · /lookalike · /honeypot · /address · /ransomware · /satellite — caller, supplier, email, breach, crypto and threat checks',
|
|
72
77
|
'/airport <JFK|EGLL> — airport weather, delays and ground stops',
|
|
73
78
|
'/country <name> — economy, leaders, currency, travel advice, headlines',
|
|
74
79
|
'/papers <topic> — research brief: most cited and newest papers',
|
|
@@ -457,6 +462,37 @@ export class TelegramBot {
|
|
|
457
462
|
const items = d.breaches.slice(0, 8).map((b) => `• <b>${esc(b.title)}</b> <i>${esc(b.breachDate ?? '')} · ${b.accounts.toLocaleString('en-US')} accounts</i>`).join('\n');
|
|
458
463
|
return { html: `<b>${d.query ? `Breaches: ${esc(d.query)}` : 'Newest breaches'}</b>${d.query ? ` (${d.total})` : ''}\n${items || 'None found.'}\n<i>Source: Have I Been Pwned (CC BY 4.0)</i>` };
|
|
459
464
|
}
|
|
465
|
+
case '/iban': {
|
|
466
|
+
if (!arg)
|
|
467
|
+
return needArg('DE89 3704 0044 0532 0130 00');
|
|
468
|
+
const d = (await o.ibanCheck(arg)).result;
|
|
469
|
+
return { html: `<b>${esc(d.formatted ?? d.input)}</b>: <b>${d.valid ? 'VALID FORMAT' : 'NOT VALID'}</b>${d.countryName ? `\n${esc(d.countryName)}${d.bank ? ` · ${esc(d.bank.kind)} ${esc(d.bank.code)}` : ''}` : ''}${d.problems.map((p) => `\nx ${esc(p)}`).join('')}\n${esc(d.advice[0] ?? '')}` };
|
|
470
|
+
}
|
|
471
|
+
case '/headers': {
|
|
472
|
+
if (!arg)
|
|
473
|
+
return needArg('Received: ... (paste the raw headers from "Show original")');
|
|
474
|
+
const d = (await o.headerCheck(arg)).result;
|
|
475
|
+
return { html: `<b>${esc(d.from.address ?? 'unknown sender')}</b>: <b>${esc(d.verdict.toUpperCase())}</b> (risk ${d.risk}/100)\nSPF ${esc(d.auth.spf ?? '?')} · DKIM ${esc(d.auth.dkim ?? '?')} · DMARC ${esc(d.auth.dmarc ?? '?')}${d.origin.ip ? `\nsent from ${esc(d.origin.ip)}${d.origin.country ? ` · ${esc(d.origin.country)}` : ''}` : ''}${d.flags.slice(0, 5).map((f) => `\n! ${esc(f)}`).join('')}\n${esc(d.advice[0] ?? '')}` };
|
|
476
|
+
}
|
|
477
|
+
case '/lookalike': {
|
|
478
|
+
if (!arg)
|
|
479
|
+
return needArg('example.com');
|
|
480
|
+
const d = (await o.lookalikes(arg)).result;
|
|
481
|
+
return { html: `<b>${esc(d.domain)}</b>: <b>${d.risk.toUpperCase()} RISK</b>, ${d.live.length} of ${d.checked} lookalikes exist${d.live.slice(0, 10).map((l) => `\n${esc(l.domain)} · ${esc(l.kind)}${l.mx ? ' · mail' : ''}`).join('')}${d.certs.length ? `\n\nNew certificates: ${d.certs.slice(0, 5).map((c) => esc(c.name)).join(', ')}` : ''}` };
|
|
482
|
+
}
|
|
483
|
+
case '/honeypot': {
|
|
484
|
+
if (!arg)
|
|
485
|
+
return needArg('0x6982508145454Ce325dDbE47a25d4ec3d2311933 eth');
|
|
486
|
+
const [addr, chain] = arg.split(/\s+/);
|
|
487
|
+
const d = (await o.honeypotCheck(addr, chain ? { chain } : {})).result;
|
|
488
|
+
return { html: `<b>${esc(d.symbol ?? d.address)}</b> on ${esc(d.chain)}: <b>${esc(d.verdict.toUpperCase())}</b>\nbuy tax ${d.buyTax ?? '?'}% · sell tax ${d.sellTax ?? '?'}%${d.reasons.map((r) => `\n! ${esc(r)}`).join('')}\n${esc(d.advice[0] ?? '')}` };
|
|
489
|
+
}
|
|
490
|
+
case '/address': {
|
|
491
|
+
if (!arg)
|
|
492
|
+
return needArg('bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh');
|
|
493
|
+
const d = (await o.addressCheck(arg)).result;
|
|
494
|
+
return { html: `<b>${esc(d.address)}</b>: <b>${d.sanctioned ? 'SANCTIONED' : d.warnings.length ? 'CHECK FIRST' : 'NO RED FLAGS'}</b>\n${esc(d.format)}${d.activity ? `\n${esc([d.activity.label, d.activity.balance, d.activity.txCount !== null ? `${d.activity.txCount} transactions` : null].filter(Boolean).join(' · '))}` : ''}${d.warnings.map((w) => `\n! ${esc(w)}`).join('')}\n${esc(d.advice[0] ?? '')}` };
|
|
495
|
+
}
|
|
460
496
|
case '/phone': {
|
|
461
497
|
if (!arg)
|
|
462
498
|
return needArg('+1 876 555 0100');
|
|
@@ -799,7 +835,8 @@ export class TelegramBot {
|
|
|
799
835
|
db.prepare('INSERT OR IGNORE INTO telegram_subs (chat_id, created_at) VALUES (?, ?)').run(chatId, Date.now());
|
|
800
836
|
else
|
|
801
837
|
db.prepare('DELETE FROM telegram_subs WHERE chat_id = ?').run(chatId);
|
|
802
|
-
|
|
838
|
+
const every = this.opts.watchMinutes || this.opts.scheduleMinutes;
|
|
839
|
+
return { html: on ? `Alerts on: signals scoring ${this.opts.alertMinScore ?? 70}+ will be sent here${every ? ` (scan every ${every} min)` : ' when the bot runs with a watch interval'}.` : 'Alerts off.' };
|
|
803
840
|
}
|
|
804
841
|
default:
|
|
805
842
|
return { html: `Unknown command. ${helpHtml()}` };
|
|
@@ -911,12 +948,12 @@ export class TelegramBot {
|
|
|
911
948
|
const me = await this.call('getMe', {});
|
|
912
949
|
this.log(`bot @${me.username} running; ${this.opts.allowedChats.length} allowed chat(s)`);
|
|
913
950
|
if (this.isPublic) {
|
|
914
|
-
await this.call('setMyCommands', { commands: ['scam', 'url', 'factcheck', 'recall', 'email', 'phone', 'company', 'breaches', 'ip', 'hash', 'ransomware', 'travel', 'airport', 'country', 'papers', 'audit', 'monitor', 'monitors', 'unmonitor', 'cve', 'hazards', 'blackout', 'alerts', 'help'].map((c) => ({ command: c, description: `Oculon ${c}` })) }).catch(() => { });
|
|
951
|
+
await this.call('setMyCommands', { commands: ['scam', 'url', 'factcheck', 'recall', 'email', 'phone', 'company', 'iban', 'headers', 'breaches', 'ip', 'hash', 'lookalike', 'honeypot', 'address', 'ransomware', 'travel', 'airport', 'country', 'papers', 'audit', 'monitor', 'monitors', 'unmonitor', 'cve', 'hazards', 'blackout', 'alerts', 'help'].map((c) => ({ command: c, description: `Oculon ${c}` })) }).catch(() => { });
|
|
915
952
|
}
|
|
916
953
|
for (const chat of this.opts.allowedChats)
|
|
917
954
|
await this.call('setMyCommands', {
|
|
918
955
|
scope: { type: 'chat', chat_id: Number(chat) },
|
|
919
|
-
commands: ['ask', 'scam', 'monitors', 'unmonitor', 'url', 'factcheck', 'travel', 'audit', 'monitor', 'recall', 'email', 'phone', 'company', 'breaches', 'ip', 'hash', 'ransomware', 'satellite', 'airport', 'country', 'papers', 'case', 'brief', 'report', 'narratives', 'health', 'impact', 'contradict', 'sanctions', 'watch', 'fence', 'markets', 'launches', 'rewind', 'deployer', 'scoops', 'rh', 'ships', 'radar', 'signals', 'dossier', 'hype', 'footprint', 'plane', 'mil', 'events', 'lights', 'image', 'wallet', 'token', 'space', 'air', 'score', 'cloud', 'bgp', 'vulns', 'cve', 'regs', 'defi', 'squawk', 'filings', 'fires', 'sentinel', 'radar_image', 'darkships', 'vessel', 'blackout', 'hazards', 'podcast', 'exposure', 'social', 'calendar', 'connect', 'live', 'feedback', 'alerts'].filter((c) => onchainEnabled() || !/^(deployer|rh|wallet|token|defi|protocol)$/.test(c)).map((c) => ({ command: c, description: `Oculon ${c}` })),
|
|
956
|
+
commands: ['ask', 'scam', 'monitors', 'unmonitor', 'url', 'factcheck', 'travel', 'audit', 'monitor', 'recall', 'email', 'phone', 'company', 'iban', 'headers', 'breaches', 'ip', 'hash', 'lookalike', 'honeypot', 'address', 'ransomware', 'satellite', 'airport', 'country', 'papers', 'case', 'brief', 'report', 'narratives', 'health', 'impact', 'contradict', 'sanctions', 'watch', 'fence', 'markets', 'launches', 'rewind', 'deployer', 'scoops', 'rh', 'ships', 'radar', 'signals', 'dossier', 'hype', 'footprint', 'plane', 'mil', 'events', 'lights', 'image', 'wallet', 'token', 'space', 'air', 'score', 'cloud', 'bgp', 'vulns', 'cve', 'regs', 'defi', 'squawk', 'filings', 'fires', 'sentinel', 'radar_image', 'darkships', 'vessel', 'blackout', 'hazards', 'podcast', 'exposure', 'social', 'calendar', 'connect', 'live', 'feedback', 'alerts'].filter((c) => onchainEnabled() || !/^(deployer|rh|wallet|token|defi|protocol)$/.test(c)).map((c) => ({ command: c, description: `Oculon ${c}` })),
|
|
920
957
|
}).catch(() => { });
|
|
921
958
|
if (this.opts.watchMinutes && this.opts.watchMinutes > 0) {
|
|
922
959
|
this.scheduler = startScheduler(this.oculon, {
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Token burns for /thetoken, read straight from the chain: every Transfer of the token to the dead address or
|
|
3
|
+
* the zero address since the deploy block, with the block time. The total is the dead address balance plus
|
|
4
|
+
* everything sent to the zero address. Callers cache the result so page views do not hit the RPC.
|
|
5
|
+
*/
|
|
6
|
+
export interface Burn {
|
|
7
|
+
tx: string;
|
|
8
|
+
time: string;
|
|
9
|
+
amount: string;
|
|
10
|
+
}
|
|
11
|
+
export interface BurnInfo {
|
|
12
|
+
total: string;
|
|
13
|
+
percent: string | null;
|
|
14
|
+
burns: Burn[];
|
|
15
|
+
checkedAt: string;
|
|
16
|
+
}
|
|
17
|
+
/** Whole tokens with thousands separators, plus two decimals when there are any. */
|
|
18
|
+
export declare function formatUnits(raw: bigint, decimals: number): string;
|
|
19
|
+
export type Rpc = <T>(method: string, params: unknown[]) => Promise<T>;
|
|
20
|
+
export declare function rpcClient(url: string, fetchImpl?: typeof fetch): Rpc;
|
|
21
|
+
export declare function readBurns(rpc: Rpc, token: string, fromBlock: number, now?: Date): Promise<BurnInfo>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Token burns for /thetoken, read straight from the chain: every Transfer of the token to the dead address or
|
|
3
|
+
* the zero address since the deploy block, with the block time. The total is the dead address balance plus
|
|
4
|
+
* everything sent to the zero address. Callers cache the result so page views do not hit the RPC.
|
|
5
|
+
*/
|
|
6
|
+
const TRANSFER = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef';
|
|
7
|
+
const DEAD = '0x000000000000000000000000000000000000dead';
|
|
8
|
+
const ZERO = '0x0000000000000000000000000000000000000000';
|
|
9
|
+
const pad = (a) => `0x${a.slice(2).toLowerCase().padStart(64, '0')}`;
|
|
10
|
+
/** Whole tokens with thousands separators, plus two decimals when there are any. */
|
|
11
|
+
export function formatUnits(raw, decimals) {
|
|
12
|
+
const base = 10n ** BigInt(decimals);
|
|
13
|
+
const whole = raw / base;
|
|
14
|
+
const cents = decimals >= 2 ? (raw % base) / 10n ** BigInt(decimals - 2) : 0n;
|
|
15
|
+
return `${whole.toLocaleString('en-US')}${cents ? `.${cents.toString().padStart(2, '0')}` : ''}`;
|
|
16
|
+
}
|
|
17
|
+
export function rpcClient(url, fetchImpl = fetch) {
|
|
18
|
+
let id = 0;
|
|
19
|
+
return async (method, params) => {
|
|
20
|
+
const r = await fetchImpl(url, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ jsonrpc: '2.0', id: ++id, method, params }), signal: AbortSignal.timeout(15_000) });
|
|
21
|
+
const j = (await r.json());
|
|
22
|
+
if (j.error || j.result === undefined)
|
|
23
|
+
throw new Error(`rpc ${method}: ${j.error?.message ?? `HTTP ${r.status}`}`);
|
|
24
|
+
return j.result;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export async function readBurns(rpc, token, fromBlock, now = new Date()) {
|
|
28
|
+
const call = (data) => rpc('eth_call', [{ to: token, data }, 'latest']);
|
|
29
|
+
const [decHex, supplyHex, deadHex] = await Promise.all([call('0x313ce567'), call('0x18160ddd'), call(`0x70a08231${pad(DEAD).slice(2)}`)]);
|
|
30
|
+
const decimals = Number(BigInt(decHex));
|
|
31
|
+
const query = (to) => rpc('eth_getLogs', [{ address: token, fromBlock: `0x${fromBlock.toString(16)}`, toBlock: 'latest', topics: [TRANSFER, null, pad(to)] }]);
|
|
32
|
+
const [toDead, toZero] = await Promise.all([query(DEAD), query(ZERO)]);
|
|
33
|
+
const logs = [...toDead, ...toZero];
|
|
34
|
+
const times = new Map();
|
|
35
|
+
await Promise.all([...new Set(logs.map((l) => l.blockNumber))].map(async (b) => {
|
|
36
|
+
const blk = await rpc('eth_getBlockByNumber', [b, false]);
|
|
37
|
+
times.set(b, new Date(Number(BigInt(blk.timestamp)) * 1000).toISOString());
|
|
38
|
+
}));
|
|
39
|
+
const burns = logs
|
|
40
|
+
.map((l) => ({ l, order: Number(BigInt(l.blockNumber)) * 1e4 + Number(BigInt(l.logIndex)) }))
|
|
41
|
+
.sort((a, b) => b.order - a.order)
|
|
42
|
+
.map(({ l }) => ({ tx: l.transactionHash, time: times.get(l.blockNumber), amount: formatUnits(BigInt(l.data), decimals) }));
|
|
43
|
+
const zeroRaw = toZero.reduce((s, l) => s + BigInt(l.data), 0n);
|
|
44
|
+
const totalRaw = BigInt(deadHex) + zeroRaw;
|
|
45
|
+
// A burn to the zero address lowers totalSupply, so add it back to compare against the supply at launch.
|
|
46
|
+
const supply = BigInt(supplyHex) + zeroRaw;
|
|
47
|
+
return {
|
|
48
|
+
total: formatUnits(totalRaw, decimals),
|
|
49
|
+
percent: supply > 0n ? `${(Number((totalRaw * 1000000n) / supply) / 10_000).toFixed(2)}%` : null,
|
|
50
|
+
burns,
|
|
51
|
+
checkedAt: now.toISOString(),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verdict card shown inside AI chat apps that render MCP UI resources: MCP Apps hosts (Claude and others,
|
|
3
|
+
* ui:// resources with the text/html;profile=mcp-app type) and ChatGPT apps (text/html+skybridge, window.openai).
|
|
4
|
+
* The page is self-contained (no network, no external fonts) and reads the tool's structuredContent.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CARD_URI = "ui://oculon/verdict.html";
|
|
7
|
+
export declare const CARD_URI_OPENAI = "ui://oculon/verdict-openai.html";
|
|
8
|
+
export declare const MCP_APP_MIME = "text/html;profile=mcp-app";
|
|
9
|
+
export declare const SKYBRIDGE_MIME = "text/html+skybridge";
|
|
10
|
+
export interface CardData {
|
|
11
|
+
kind: string;
|
|
12
|
+
title: string;
|
|
13
|
+
verdict: string | null;
|
|
14
|
+
tone: 'bad' | 'warn' | 'ok' | 'info';
|
|
15
|
+
risk: number | null;
|
|
16
|
+
points: string[];
|
|
17
|
+
sources: string;
|
|
18
|
+
seenBefore: {
|
|
19
|
+
at: string;
|
|
20
|
+
changes: string[];
|
|
21
|
+
} | null;
|
|
22
|
+
links: {
|
|
23
|
+
replay: string | null;
|
|
24
|
+
report: string | null;
|
|
25
|
+
};
|
|
26
|
+
checkId: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const CARD_HTML = "<!doctype html>\n<html><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n<style>\n:root{--bg:#05090a;--line:#1d2a2d;--ink:#eef3f4;--mut:#8fa3a7;--y:#00f0ff;--bad:#ff5d6c;--warn:#f5a524;--ok:#3ddc97;--info:#8fa3a7}\n@media (prefers-color-scheme: light){:root{--bg:#ffffff;--line:#dfe6e8;--ink:#0d1416;--mut:#5b6b6f;--y:#007a85;--bad:#c8323f;--warn:#b26f00;--ok:#14895a;--info:#5b6b6f}}\n*{box-sizing:border-box}\nhtml,body{margin:0;background:transparent;color:var(--ink);font:14px/1.5 ui-sans-serif,system-ui,-apple-system,\"Segoe UI\",sans-serif}\n.c{border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:16px 18px;max-width:640px}\n.top{display:flex;justify-content:space-between;align-items:center;font:600 11px ui-monospace,Consolas,monospace;letter-spacing:.18em;color:var(--mut);text-transform:uppercase}\n.top b{color:var(--y)}\n.t{margin:8px 0 10px;font-size:15px;font-weight:600;overflow-wrap:anywhere}\n.v{display:flex;align-items:center;gap:12px;flex-wrap:wrap}\n.pill{font:700 13px ui-monospace,Consolas,monospace;letter-spacing:.06em;text-transform:uppercase;padding:6px 10px;border-radius:6px;color:#fff;background:var(--info)}\n.pill.bad{background:var(--bad)}.pill.warn{background:var(--warn)}.pill.ok{background:var(--ok)}\n.risk{flex:1;min-width:140px}.risk span{font:600 12px ui-monospace,Consolas,monospace;color:var(--mut)}\n.bar{height:6px;background:var(--line);border-radius:4px;margin-top:4px;overflow:hidden}.bar i{display:block;height:100%}\nul{margin:12px 0 0;padding-left:18px}li{margin:3px 0}\n.seen{margin-top:12px;border-left:3px solid var(--y);padding:6px 10px;font-size:13px;color:var(--mut)}\n.seen b{color:var(--ink)}\n.foot{margin-top:14px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--mut)}\n.foot a{color:var(--y);cursor:pointer;text-decoration:none;margin-left:12px}\n.empty{color:var(--mut)}\n</style></head>\n<body><div class=\"c\" id=\"c\"><div class=\"empty\">Waiting for the result...</div></div>\n<script>\n(function(){\n var esc=function(s){return String(s==null?'':s).replace(/[&<>\"']/g,function(c){return{'&':'&','<':'<','>':'>','\"':'"',\"'\":'''}[c];});};\n var nextId=1, pending={};\n function rpc(method, params){\n var id=nextId++;\n try{ window.parent.postMessage({jsonrpc:'2.0',id:id,method:method,params:params||{}},'*'); }catch(e){}\n return new Promise(function(res){ pending[id]=res; setTimeout(function(){ if(pending[id]){ delete pending[id]; res(null);} },3000); });\n }\n function notify(method, params){ try{ window.parent.postMessage({jsonrpc:'2.0',method:method,params:params||{}},'*'); }catch(e){} }\n function open(url){\n if(!url) return;\n if(window.openai && window.openai.openExternal){ window.openai.openExternal({href:url}); return; }\n rpc('ui/open-link',{url:url}).then(function(r){ if(!r) window.open(url,'_blank','noopener'); });\n }\n function size(){ var h=document.documentElement.scrollHeight; notify('ui/notifications/size-changed',{width:document.documentElement.scrollWidth,height:h}); }\n function render(d){\n if(!d||!d.checkId){ return; }\n var color={bad:'var(--bad)',warn:'var(--warn)',ok:'var(--ok)',info:'var(--info)'}[d.tone]||'var(--info)';\n var h='<div class=\"top\"><span><b>OCULON</b> · '+esc(d.kind)+'</span><span>'+esc(d.checkId.slice(0,8))+'</span></div>';\n h+='<div class=\"t\">'+esc(d.title)+'</div><div class=\"v\"><span class=\"pill '+esc(d.tone)+'\">'+esc(d.verdict||'result')+'</span>';\n if(d.risk!=null) h+='<div class=\"risk\"><span>risk '+esc(d.risk)+'/100</span><div class=\"bar\"><i style=\"width:'+Math.max(2,Math.min(100,d.risk))+'%;background:'+color+'\"></i></div></div>';\n h+='</div>';\n if(d.points&&d.points.length) h+='<ul>'+d.points.slice(0,6).map(function(p){return '<li>'+esc(p)+'</li>';}).join('')+'</ul>';\n if(d.seenBefore) h+='<div class=\"seen\"><b>Seen before</b> on '+esc(String(d.seenBefore.at).slice(0,16).replace('T',' '))+' UTC. '+(d.seenBefore.changes.length?esc(d.seenBefore.changes.slice(0,4).join('; ')):'Nothing changed since then.')+'</div>';\n h+='<div class=\"foot\"><span>'+esc(d.sources)+'</span><span>'+(d.links&&d.links.replay?'<a data-u=\"'+esc(d.links.replay)+'\">Replay log</a>':'')+(d.links&&d.links.report?'<a data-u=\"'+esc(d.links.report)+'\">PDF report</a>':'')+'</span></div>';\n var c=document.getElementById('c'); c.innerHTML=h;\n Array.prototype.forEach.call(c.querySelectorAll('a[data-u]'),function(a){ a.onclick=function(){ open(a.getAttribute('data-u')); }; });\n size();\n }\n function fromResult(r){ if(!r) return null; return r.structuredContent||(r.result&&r.result.structuredContent)||null; }\n window.addEventListener('message',function(ev){\n var m=ev.data; if(!m||typeof m!=='object') return;\n if(m.id!=null&&pending[m.id]){ var f=pending[m.id]; delete pending[m.id]; f(m.result||null); return; }\n if(m.method==='ui/notifications/tool-result') render(fromResult(m.params));\n if(m.type==='openai:set_globals'&&window.openai) render(window.openai.toolOutput);\n });\n window.addEventListener('openai:set_globals',function(){ if(window.openai) render(window.openai.toolOutput); });\n if(window.openai&&window.openai.toolOutput) render(window.openai.toolOutput);\n rpc('ui/initialize',{protocolVersion:'2026-01-26',appInfo:{name:'oculon-verdict',version:'1.0.0'},appCapabilities:{}}).then(function(){ notify('ui/notifications/initialized',{}); });\n})();\n</script></body></html>";
|
package/dist/web/card.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verdict card shown inside AI chat apps that render MCP UI resources: MCP Apps hosts (Claude and others,
|
|
3
|
+
* ui:// resources with the text/html;profile=mcp-app type) and ChatGPT apps (text/html+skybridge, window.openai).
|
|
4
|
+
* The page is self-contained (no network, no external fonts) and reads the tool's structuredContent.
|
|
5
|
+
*/
|
|
6
|
+
export const CARD_URI = 'ui://oculon/verdict.html';
|
|
7
|
+
export const CARD_URI_OPENAI = 'ui://oculon/verdict-openai.html';
|
|
8
|
+
export const MCP_APP_MIME = 'text/html;profile=mcp-app';
|
|
9
|
+
export const SKYBRIDGE_MIME = 'text/html+skybridge';
|
|
10
|
+
export const CARD_HTML = `<!doctype html>
|
|
11
|
+
<html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
|
12
|
+
<style>
|
|
13
|
+
:root{--bg:#05090a;--line:#1d2a2d;--ink:#eef3f4;--mut:#8fa3a7;--y:#00f0ff;--bad:#ff5d6c;--warn:#f5a524;--ok:#3ddc97;--info:#8fa3a7}
|
|
14
|
+
@media (prefers-color-scheme: light){:root{--bg:#ffffff;--line:#dfe6e8;--ink:#0d1416;--mut:#5b6b6f;--y:#007a85;--bad:#c8323f;--warn:#b26f00;--ok:#14895a;--info:#5b6b6f}}
|
|
15
|
+
*{box-sizing:border-box}
|
|
16
|
+
html,body{margin:0;background:transparent;color:var(--ink);font:14px/1.5 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
|
|
17
|
+
.c{border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:16px 18px;max-width:640px}
|
|
18
|
+
.top{display:flex;justify-content:space-between;align-items:center;font:600 11px ui-monospace,Consolas,monospace;letter-spacing:.18em;color:var(--mut);text-transform:uppercase}
|
|
19
|
+
.top b{color:var(--y)}
|
|
20
|
+
.t{margin:8px 0 10px;font-size:15px;font-weight:600;overflow-wrap:anywhere}
|
|
21
|
+
.v{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
|
|
22
|
+
.pill{font:700 13px ui-monospace,Consolas,monospace;letter-spacing:.06em;text-transform:uppercase;padding:6px 10px;border-radius:6px;color:#fff;background:var(--info)}
|
|
23
|
+
.pill.bad{background:var(--bad)}.pill.warn{background:var(--warn)}.pill.ok{background:var(--ok)}
|
|
24
|
+
.risk{flex:1;min-width:140px}.risk span{font:600 12px ui-monospace,Consolas,monospace;color:var(--mut)}
|
|
25
|
+
.bar{height:6px;background:var(--line);border-radius:4px;margin-top:4px;overflow:hidden}.bar i{display:block;height:100%}
|
|
26
|
+
ul{margin:12px 0 0;padding-left:18px}li{margin:3px 0}
|
|
27
|
+
.seen{margin-top:12px;border-left:3px solid var(--y);padding:6px 10px;font-size:13px;color:var(--mut)}
|
|
28
|
+
.seen b{color:var(--ink)}
|
|
29
|
+
.foot{margin-top:14px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--mut)}
|
|
30
|
+
.foot a{color:var(--y);cursor:pointer;text-decoration:none;margin-left:12px}
|
|
31
|
+
.empty{color:var(--mut)}
|
|
32
|
+
</style></head>
|
|
33
|
+
<body><div class="c" id="c"><div class="empty">Waiting for the result...</div></div>
|
|
34
|
+
<script>
|
|
35
|
+
(function(){
|
|
36
|
+
var esc=function(s){return String(s==null?'':s).replace(/[&<>"']/g,function(c){return{'&':'&','<':'<','>':'>','"':'"',"'":'''}[c];});};
|
|
37
|
+
var nextId=1, pending={};
|
|
38
|
+
function rpc(method, params){
|
|
39
|
+
var id=nextId++;
|
|
40
|
+
try{ window.parent.postMessage({jsonrpc:'2.0',id:id,method:method,params:params||{}},'*'); }catch(e){}
|
|
41
|
+
return new Promise(function(res){ pending[id]=res; setTimeout(function(){ if(pending[id]){ delete pending[id]; res(null);} },3000); });
|
|
42
|
+
}
|
|
43
|
+
function notify(method, params){ try{ window.parent.postMessage({jsonrpc:'2.0',method:method,params:params||{}},'*'); }catch(e){} }
|
|
44
|
+
function open(url){
|
|
45
|
+
if(!url) return;
|
|
46
|
+
if(window.openai && window.openai.openExternal){ window.openai.openExternal({href:url}); return; }
|
|
47
|
+
rpc('ui/open-link',{url:url}).then(function(r){ if(!r) window.open(url,'_blank','noopener'); });
|
|
48
|
+
}
|
|
49
|
+
function size(){ var h=document.documentElement.scrollHeight; notify('ui/notifications/size-changed',{width:document.documentElement.scrollWidth,height:h}); }
|
|
50
|
+
function render(d){
|
|
51
|
+
if(!d||!d.checkId){ return; }
|
|
52
|
+
var color={bad:'var(--bad)',warn:'var(--warn)',ok:'var(--ok)',info:'var(--info)'}[d.tone]||'var(--info)';
|
|
53
|
+
var h='<div class="top"><span><b>OCULON</b> · '+esc(d.kind)+'</span><span>'+esc(d.checkId.slice(0,8))+'</span></div>';
|
|
54
|
+
h+='<div class="t">'+esc(d.title)+'</div><div class="v"><span class="pill '+esc(d.tone)+'">'+esc(d.verdict||'result')+'</span>';
|
|
55
|
+
if(d.risk!=null) h+='<div class="risk"><span>risk '+esc(d.risk)+'/100</span><div class="bar"><i style="width:'+Math.max(2,Math.min(100,d.risk))+'%;background:'+color+'"></i></div></div>';
|
|
56
|
+
h+='</div>';
|
|
57
|
+
if(d.points&&d.points.length) h+='<ul>'+d.points.slice(0,6).map(function(p){return '<li>'+esc(p)+'</li>';}).join('')+'</ul>';
|
|
58
|
+
if(d.seenBefore) h+='<div class="seen"><b>Seen before</b> on '+esc(String(d.seenBefore.at).slice(0,16).replace('T',' '))+' UTC. '+(d.seenBefore.changes.length?esc(d.seenBefore.changes.slice(0,4).join('; ')):'Nothing changed since then.')+'</div>';
|
|
59
|
+
h+='<div class="foot"><span>'+esc(d.sources)+'</span><span>'+(d.links&&d.links.replay?'<a data-u="'+esc(d.links.replay)+'">Replay log</a>':'')+(d.links&&d.links.report?'<a data-u="'+esc(d.links.report)+'">PDF report</a>':'')+'</span></div>';
|
|
60
|
+
var c=document.getElementById('c'); c.innerHTML=h;
|
|
61
|
+
Array.prototype.forEach.call(c.querySelectorAll('a[data-u]'),function(a){ a.onclick=function(){ open(a.getAttribute('data-u')); }; });
|
|
62
|
+
size();
|
|
63
|
+
}
|
|
64
|
+
function fromResult(r){ if(!r) return null; return r.structuredContent||(r.result&&r.result.structuredContent)||null; }
|
|
65
|
+
window.addEventListener('message',function(ev){
|
|
66
|
+
var m=ev.data; if(!m||typeof m!=='object') return;
|
|
67
|
+
if(m.id!=null&&pending[m.id]){ var f=pending[m.id]; delete pending[m.id]; f(m.result||null); return; }
|
|
68
|
+
if(m.method==='ui/notifications/tool-result') render(fromResult(m.params));
|
|
69
|
+
if(m.type==='openai:set_globals'&&window.openai) render(window.openai.toolOutput);
|
|
70
|
+
});
|
|
71
|
+
window.addEventListener('openai:set_globals',function(){ if(window.openai) render(window.openai.toolOutput); });
|
|
72
|
+
if(window.openai&&window.openai.toolOutput) render(window.openai.toolOutput);
|
|
73
|
+
rpc('ui/initialize',{protocolVersion:'2026-01-26',appInfo:{name:'oculon-verdict',version:'1.0.0'},appCapabilities:{}}).then(function(){ notify('ui/notifications/initialized',{}); });
|
|
74
|
+
})();
|
|
75
|
+
</script></body></html>`;
|
package/dist/web/index.html
CHANGED
|
@@ -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,9 @@ 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, screenshot or photo)</option>
|
|
563
|
+
<option value="iban">Is this IBAN valid? (IBAN)</option>
|
|
564
|
+
<option value="headers">Was this email spoofed? (paste raw headers)</option>
|
|
558
565
|
<option value="factcheck">Fact check (claim or news URL)</option>
|
|
559
566
|
<option value="audit">Dependency audit (package.json or npm:name@version)</option>
|
|
560
567
|
<option value="travel">Travel risk (place)</option>
|
|
@@ -571,6 +578,9 @@ nav button { white-space: nowrap; }
|
|
|
571
578
|
<optgroup label="Threat intel">
|
|
572
579
|
<option value="ip">IP address check (IP or domain)</option>
|
|
573
580
|
<option value="hash">File hash check (MD5, SHA-1, SHA-256)</option>
|
|
581
|
+
<option value="lookalike">Lookalike domains of a brand (domain)</option>
|
|
582
|
+
<option value="address">Crypto address check (BTC, 0x, Solana, Tron)</option>
|
|
583
|
+
<option value="honeypot">Can this token be sold? (0x, Ethereum, BNB, Base)</option>
|
|
574
584
|
<option value="ransomware">Ransomware claims (country, sector, name, or empty)</option>
|
|
575
585
|
<option value="satellites">Satellites (name, NORAD number, or empty for new launches)</option>
|
|
576
586
|
</optgroup>
|
|
@@ -598,6 +608,8 @@ nav button { white-space: nowrap; }
|
|
|
598
608
|
</optgroup>
|
|
599
609
|
</select>
|
|
600
610
|
<input type="text" id="inv-q" placeholder="paypa1-secure-login.top/verify" aria-label="Query">
|
|
611
|
+
<label id="inv-file-l" class="filepick" hidden><input type="file" id="inv-file" accept=".pdf,.png,.jpg,.jpeg,application/pdf,image/png,image/jpeg"><span id="inv-file-n">Choose a PDF, PNG or JPEG (max 10 MB)</span></label>
|
|
612
|
+
<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
613
|
<button class="go" id="inv-go">Investigate</button>
|
|
602
614
|
</div>
|
|
603
615
|
<div id="inv-out" class="out"></div>
|
|
@@ -933,7 +945,7 @@ function handleMapClick(e) {
|
|
|
933
945
|
const waitMap = setInterval(() => { if (map) { map.on('click', handleMapClick); clearInterval(waitMap); } }, 300);
|
|
934
946
|
|
|
935
947
|
/* 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' };
|
|
948
|
+
const placeholders = { doc: '', headers: '', 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
949
|
const usd = (x) => (x == null ? '?' : '$' + Math.round(x).toLocaleString('en-US'));
|
|
938
950
|
|
|
939
951
|
/* brief: tiny, safe Markdown renderer (escape first, then headings, bold, links, bullets) */
|
|
@@ -1080,7 +1092,15 @@ $('#ask-go').onclick = async () => {
|
|
|
1080
1092
|
finally { $('#ask-go').disabled = false; }
|
|
1081
1093
|
};
|
|
1082
1094
|
$('#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 = ''; };
|
|
1095
|
+
$('#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 = k === 'doc' || k === 'headers'; $('#inv-file-l').hidden = k !== 'doc'; $('#inv-ta').hidden = k !== 'headers'; };
|
|
1096
|
+
$('#inv-file').onchange = () => { const f = $('#inv-file').files[0]; $('#inv-file-n').textContent = f ? f.name + ' · ' + Math.round(f.size / 1024) + ' KB' : 'Choose a PDF, PNG or JPEG (max 10 MB)'; };
|
|
1097
|
+
/* Under every recorded check: what changed since last time, the replay log and the PDF report. */
|
|
1098
|
+
function checkFoot(r) {
|
|
1099
|
+
const c = r && r.check;
|
|
1100
|
+
if (!c) return '';
|
|
1101
|
+
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>` : '';
|
|
1102
|
+
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>`;
|
|
1103
|
+
}
|
|
1084
1104
|
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
1105
|
const sigList = (s) => (s.length ? `<h3>Signals</h3>${s.map(renderSignal).join('')}` : '');
|
|
1086
1106
|
const link = (u, t) => `<a href="${safeUrl(u)}" target="_blank" rel="noopener noreferrer">${esc(t)}</a>`;
|
|
@@ -1134,6 +1154,36 @@ const views = {
|
|
|
1134
1154
|
const park = d.recalls.some((x) => x.parkIt || x.parkOutside);
|
|
1135
1155
|
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
1156
|
},
|
|
1157
|
+
doc: (r) => {
|
|
1158
|
+
const d = r.result;
|
|
1159
|
+
const t = d.verdict === 'dangerous file' || d.verdict === 'likely edited' ? 'bad' : d.verdict === 'signs of editing' ? 'warn' : 'ok';
|
|
1160
|
+
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('');
|
|
1161
|
+
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>`;
|
|
1162
|
+
},
|
|
1163
|
+
iban: (r) => {
|
|
1164
|
+
const d = r.result;
|
|
1165
|
+
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>`;
|
|
1166
|
+
},
|
|
1167
|
+
headers: (r) => {
|
|
1168
|
+
const d = r.result;
|
|
1169
|
+
const t = d.verdict === 'likely spoofed' ? 'bad' : d.verdict === 'suspicious' ? 'warn' : 'ok';
|
|
1170
|
+
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>`;
|
|
1171
|
+
},
|
|
1172
|
+
lookalike: (r) => {
|
|
1173
|
+
const d = r.result;
|
|
1174
|
+
const t = d.risk === 'high' ? 'bad' : d.risk === 'medium' ? 'warn' : 'ok';
|
|
1175
|
+
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>`;
|
|
1176
|
+
},
|
|
1177
|
+
honeypot: (r) => {
|
|
1178
|
+
const d = r.result;
|
|
1179
|
+
const t = d.verdict === 'honeypot' || d.verdict === 'high risk' ? 'bad' : d.verdict === 'caution' ? 'warn' : 'ok';
|
|
1180
|
+
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>`;
|
|
1181
|
+
},
|
|
1182
|
+
address: (r) => {
|
|
1183
|
+
const d = r.result;
|
|
1184
|
+
const t = d.sanctioned ? 'bad' : d.warnings.length ? 'warn' : 'ok';
|
|
1185
|
+
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>`;
|
|
1186
|
+
},
|
|
1137
1187
|
emailsec: (r) => {
|
|
1138
1188
|
const d = r.result;
|
|
1139
1189
|
const tone = d.verdict === 'protected' ? 'ok' : d.verdict === 'partly protected' ? 'warn' : 'bad';
|
|
@@ -1290,13 +1340,35 @@ $('#inv-go').onclick = async () => {
|
|
|
1290
1340
|
finally { $('#inv-go').disabled = false; }
|
|
1291
1341
|
return;
|
|
1292
1342
|
}
|
|
1293
|
-
|
|
1343
|
+
if (kind === 'doc' || kind === 'headers') {
|
|
1344
|
+
$('#inv-go').disabled = true;
|
|
1345
|
+
try {
|
|
1346
|
+
let r;
|
|
1347
|
+
if (kind === 'doc') {
|
|
1348
|
+
const f = $('#inv-file').files[0];
|
|
1349
|
+
if (!f) throw new Error('Choose a file first.');
|
|
1350
|
+
if (f.size > 10 * 1024 * 1024) throw new Error('The file is larger than 10 MB.');
|
|
1351
|
+
out.innerHTML = '<p class="meta">Reading the file…</p>';
|
|
1352
|
+
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); });
|
|
1353
|
+
r = await post('/api/doc', { name: f.name, data });
|
|
1354
|
+
} else {
|
|
1355
|
+
const h = $('#inv-ta').value.trim();
|
|
1356
|
+
if (h.length < 20) throw new Error('Paste the raw headers first.');
|
|
1357
|
+
out.innerHTML = '<p class="meta">Checking…</p>';
|
|
1358
|
+
r = await post('/api/headers', { headers: h });
|
|
1359
|
+
}
|
|
1360
|
+
out.innerHTML = views[kind](r) + checkFoot(r) + `<h3>Sources</h3>${renderSources(r.provenance)}`;
|
|
1361
|
+
} catch (err) { out.innerHTML = `<p class="err">${esc(err.message)}</p>`; }
|
|
1362
|
+
finally { $('#inv-go').disabled = false; }
|
|
1363
|
+
return;
|
|
1364
|
+
}
|
|
1365
|
+
const param = { 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
1366
|
$('#inv-go').disabled = true;
|
|
1295
1367
|
out.innerHTML = '<p class="meta">Working… some sources are rate-limited and take a while.</p>';
|
|
1296
1368
|
try {
|
|
1297
1369
|
const r = kind === 'audit' && /^[{]/.test(q) ? await post('/api/audit', { manifest: q }) : await api(`/api/${kind}?${param}=${encodeURIComponent(q)}`);
|
|
1298
1370
|
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)}`;
|
|
1371
|
+
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
1372
|
if (shareable) $('#inv-share').onclick = async () => {
|
|
1301
1373
|
const b = $('#inv-share');
|
|
1302
1374
|
b.disabled = true;
|
package/dist/web/landing.html
CHANGED
|
@@ -641,7 +641,7 @@ r.provenance <span class="d">// every source used</span></pre></div></div>
|
|
|
641
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>
|
|
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
|
-
<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></div>
|
|
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>
|
|
645
645
|
<div><h5>Legal</h5><a href="/privacy">Privacy</a><a href="/terms">Terms</a><a href="/docs#license">Licence (MIT)</a><a href="/terms#sources">Data sources</a></div>
|
|
646
646
|
</div>
|
|
647
647
|
<div class="fword" aria-hidden="true">OCULON</div>
|
package/dist/web/legal.html
CHANGED
|
@@ -156,7 +156,7 @@ footer{background:rgba(0,0,0,.6);backdrop-filter:blur(6px)}
|
|
|
156
156
|
<p>These terms ship with the software and may change between versions.</p>
|
|
157
157
|
</article>
|
|
158
158
|
</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></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>
|
|
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>
|
|
160
160
|
<script src="/assets/fx.js"></script>
|
|
161
161
|
<script>
|
|
162
162
|
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></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/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>
|
|
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 {} }
|
package/dist/web/openapi.js
CHANGED
|
@@ -12,6 +12,12 @@ const E = [
|
|
|
12
12
|
['/api/ip', 'ipCheck', 'Who runs this IP, and is it known for abuse? AbuseIPDB, GreyNoise, OTX, VirusTotal, ThreatFox, Spamhaus DROP, Tor, open ports.', [{ name: 'ip', desc: 'IP address or domain', example: '185.220.101.1', required: true }]],
|
|
13
13
|
['/api/hash', 'hashCheck', 'Is this file known malware or a known good file? MD5, SHA-1 or SHA-256.', [{ name: 'hash', desc: 'File hash in hex', example: '094fd325049b8a9cf6d3e5ef2a6d4cc6a567d7d49c35f8bb8dd9e3c6acf3d78d', required: true }]],
|
|
14
14
|
['/api/ransomware', 'ransomwareClaims', 'Ransomware leak-site claims: newest, or by country code, sector, company or domain.', [{ name: 'q', desc: 'Country code, sector, company or domain (optional)', example: 'Healthcare' }]],
|
|
15
|
+
['/api/iban', 'ibanCheck', 'Check an IBAN offline: country, length, check digits, bank code, and whether the account is in the supplier\'s country.', [{ name: 'iban', desc: 'IBAN', example: 'DE89 3704 0044 0532 0130 00', required: true }, { name: 'country', desc: 'Supplier ISO country code', example: 'NL' }]],
|
|
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
|
+
['/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
|
+
['/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/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 }]],
|
|
20
|
+
['/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' }]],
|
|
15
21
|
['/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' }]],
|
|
16
22
|
['/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 }]],
|
|
17
23
|
['/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 }]],
|