oculon 0.1.6 → 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 +24 -8
- package/dist/cli/main.js +82 -0
- package/dist/core/calls.d.ts +63 -0
- package/dist/core/calls.js +120 -0
- package/dist/core/http.d.ts +11 -0
- package/dist/core/http.js +110 -30
- package/dist/core/pdf.d.ts +51 -0
- package/dist/core/pdf.js +211 -0
- package/dist/core/verdict.d.ts +30 -0
- package/dist/core/verdict.js +164 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +29 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +129 -5
- 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/utility.d.ts +27 -1
- package/dist/modules/utility.js +108 -11
- package/dist/report-pdf.d.ts +7 -0
- package/dist/report-pdf.js +81 -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/openapi.js +2 -0
- package/dist/web/pages.d.ts +24 -0
- package/dist/web/pages.js +139 -0
- package/dist/web/public.js +2 -0
- package/dist/web/server.js +84 -10
- package/dist/web/token.html +2 -1
- package/dist/web/utility.html +40 -14
- package/package.json +1 -1
|
@@ -3,12 +3,17 @@ import type { Oculon } from '../index.js';
|
|
|
3
3
|
import { type Rpc } from '../web/burns.js';
|
|
4
4
|
export declare const UTILITY: {
|
|
5
5
|
readonly investigate: 1500000n;
|
|
6
|
-
readonly safety:
|
|
6
|
+
readonly safety: 1000000n;
|
|
7
|
+
readonly holdInvestigate: 1500000n;
|
|
8
|
+
readonly holdSafety: 2000000n;
|
|
7
9
|
readonly holder: 3500000n;
|
|
8
10
|
readonly safetyDays: 30;
|
|
11
|
+
readonly holdInvestigateDays: 30;
|
|
9
12
|
readonly holderMonitors: 30;
|
|
10
13
|
readonly sessionDays: 7;
|
|
11
14
|
};
|
|
15
|
+
/** What a holder signs to spend their holding on an action. The nonce comes from createNonce and works once. */
|
|
16
|
+
export declare function holdMessage(kind: 'investigate' | 'safety', target: string, address: string, nonce: string): string;
|
|
12
17
|
/** Burns before the utility went live (buyback burns, for example) do not count. */
|
|
13
18
|
export declare const UTILITY_START: number;
|
|
14
19
|
/** What the burning wallet signs, so only the wallet that burned can spend its burn. */
|
|
@@ -44,6 +49,10 @@ export interface Investigation {
|
|
|
44
49
|
kind: string;
|
|
45
50
|
status: 'running' | 'done';
|
|
46
51
|
burn: Burn | null;
|
|
52
|
+
heldBy: {
|
|
53
|
+
address: string;
|
|
54
|
+
balance: string;
|
|
55
|
+
} | null;
|
|
47
56
|
parts: InvestigationPart[];
|
|
48
57
|
createdAt: string;
|
|
49
58
|
finishedAt: string | null;
|
|
@@ -62,6 +71,10 @@ export declare function startInvestigation(o: Oculon, tx: string, targetInput: s
|
|
|
62
71
|
id: string;
|
|
63
72
|
burn: Burn;
|
|
64
73
|
}>;
|
|
74
|
+
export declare function startInvestigationHold(o: Oculon, targetInput: string, address: string, nonce: string, signature: string): Promise<{
|
|
75
|
+
id: string;
|
|
76
|
+
nextFree: string;
|
|
77
|
+
}>;
|
|
65
78
|
export declare function getInvestigation(ctx: Ctx, id: string): Investigation | null;
|
|
66
79
|
export declare function listInvestigations(ctx: Ctx, limit?: number): {
|
|
67
80
|
id: string;
|
|
@@ -73,6 +86,7 @@ export interface SafetyState {
|
|
|
73
86
|
token: string;
|
|
74
87
|
active: boolean;
|
|
75
88
|
expiresAt: string | null;
|
|
89
|
+
heldBy: string | null;
|
|
76
90
|
verdict: string | null;
|
|
77
91
|
reasons: string[];
|
|
78
92
|
name: string | null;
|
|
@@ -88,6 +102,16 @@ export declare function startSafety(o: Oculon, tx: string, tokenInput: string, s
|
|
|
88
102
|
state: SafetyState;
|
|
89
103
|
burn: Burn;
|
|
90
104
|
}>;
|
|
105
|
+
/** Hold-backed badge: live while the wallet keeps the balance, re-checked daily. One badge per wallet. */
|
|
106
|
+
export declare function startSafetyHold(o: Oculon, tokenInput: string, address: string, nonce: string, signature: string): Promise<{
|
|
107
|
+
state: SafetyState;
|
|
108
|
+
}>;
|
|
109
|
+
/** Daily: a hold-backed badge stays live two more days while the wallet still holds enough; otherwise it lapses. */
|
|
110
|
+
export declare function refreshHolders(ctx: Ctx): Promise<{
|
|
111
|
+
token: string;
|
|
112
|
+
holder: string;
|
|
113
|
+
ok: boolean;
|
|
114
|
+
}[]>;
|
|
91
115
|
export declare function safetyState(ctx: Ctx, token: string): SafetyState;
|
|
92
116
|
/** Re-checks every active monitor not checked in the last `everyMs` (default 14 minutes). Returns verdict changes. */
|
|
93
117
|
export declare function runSafety(o: Oculon, everyMs?: number): Promise<{
|
|
@@ -102,6 +126,8 @@ export declare function createNonce(domain: string, addressInput: string, now?:
|
|
|
102
126
|
message: string;
|
|
103
127
|
nonce: string;
|
|
104
128
|
};
|
|
129
|
+
/** A nonce works once, for the wallet it was issued to, within ten minutes. */
|
|
130
|
+
export declare function consumeNonce(nonce: string, address: string): void;
|
|
105
131
|
export declare function balanceOf(address: string): Promise<bigint>;
|
|
106
132
|
export interface HolderSession {
|
|
107
133
|
key: string | null;
|
package/dist/modules/utility.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* $OCULON utility, read straight from Robinhood Chain: nothing is custodied, nothing is paid to anyone.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
3
|
+
* Holding is the main way in; burning is optional for people who would rather not hold.
|
|
4
|
+
* A. Deep investigation of one domain, wallet, token or company, published as a public page.
|
|
5
|
+
* Hold 1,500,000 OCULON: one investigation per wallet every 30 days. Or burn 1,500,000 for one.
|
|
6
|
+
* B. Live safety badge on one Robinhood Chain token. Hold 2,000,000: the badge stays live while the
|
|
7
|
+
* wallet keeps that balance (checked daily; one badge per wallet). Or burn 1,000,000 for 30 days.
|
|
8
|
+
* Paying, either way, buys monitoring, never a better verdict.
|
|
9
|
+
* C. Holder tier: a wallet holding 3,500,000 signs in once and gets up to 30 personal monitors, checked
|
|
10
|
+
* every 15 minutes instead of every hour.
|
|
11
|
+
* Holding is proven by a signature over a one-time nonce plus a live balance read. A burn is a transfer to the
|
|
12
|
+
* dead or zero address, confirmed on chain; each burn counts once and only the burning wallet can use it.
|
|
10
13
|
*/
|
|
11
14
|
import { randomBytes } from 'node:crypto';
|
|
12
15
|
import { readFileSync } from 'node:fs';
|
|
@@ -14,9 +17,13 @@ import { dirname, join } from 'node:path';
|
|
|
14
17
|
import { fileURLToPath } from 'node:url';
|
|
15
18
|
import { recoverPersonalSigner } from '../core/evm.js';
|
|
16
19
|
import { formatUnits, rpcClient } from '../web/burns.js';
|
|
17
|
-
export const UTILITY = { investigate: 1500000n, safety: 2000000n, holder: 3500000n, safetyDays: 30, holderMonitors: 30, sessionDays: 7 };
|
|
20
|
+
export const UTILITY = { investigate: 1500000n, safety: 1000000n, holdInvestigate: 1500000n, holdSafety: 2000000n, holder: 3500000n, safetyDays: 30, holdInvestigateDays: 30, holderMonitors: 30, sessionDays: 7 };
|
|
21
|
+
/** What a holder signs to spend their holding on an action. The nonce comes from createNonce and works once. */
|
|
22
|
+
export function holdMessage(kind, target, address, nonce) {
|
|
23
|
+
return `Oculon ${kind === 'investigate' ? 'investigation' : 'safety badge'}\nTarget: ${target.trim()}\nWallet: ${address.trim().toLowerCase()}\nPaid by: holding OCULON\nNonce: ${nonce}`;
|
|
24
|
+
}
|
|
18
25
|
/** Burns before the utility went live (buyback burns, for example) do not count. */
|
|
19
|
-
export const UTILITY_START = Date.parse('2026-11-
|
|
26
|
+
export const UTILITY_START = Date.parse('2026-11-25T19:45:00Z');
|
|
20
27
|
/** What the burning wallet signs, so only the wallet that burned can spend its burn. */
|
|
21
28
|
export function utilityMessage(kind, target, tx) {
|
|
22
29
|
return `Oculon ${kind === 'investigate' ? 'investigation' : 'safety badge'}\nTarget: ${target.trim()}\nBurn: ${tx.trim().toLowerCase()}`;
|
|
@@ -51,7 +58,14 @@ function db(ctx) {
|
|
|
51
58
|
CREATE TABLE IF NOT EXISTS investigations (id TEXT PRIMARY KEY, tx TEXT NOT NULL, target TEXT NOT NULL, status TEXT NOT NULL, result TEXT, created_at INTEGER NOT NULL, finished_at INTEGER);
|
|
52
59
|
CREATE TABLE IF NOT EXISTS safety_monitors (token TEXT PRIMARY KEY, expires_at INTEGER NOT NULL, created_at INTEGER NOT NULL, last_check INTEGER, verdict TEXT, reasons TEXT, name TEXT, symbol TEXT);
|
|
53
60
|
CREATE TABLE IF NOT EXISTS safety_checks (token TEXT NOT NULL, at INTEGER NOT NULL, verdict TEXT NOT NULL, reasons TEXT NOT NULL);
|
|
54
|
-
CREATE TABLE IF NOT EXISTS holder_sessions (key TEXT PRIMARY KEY, owner TEXT NOT NULL, address TEXT NOT NULL, balance TEXT NOT NULL, expires_at INTEGER NOT NULL, created_at INTEGER NOT NULL)
|
|
61
|
+
CREATE TABLE IF NOT EXISTS holder_sessions (key TEXT PRIMARY KEY, owner TEXT NOT NULL, address TEXT NOT NULL, balance TEXT NOT NULL, expires_at INTEGER NOT NULL, created_at INTEGER NOT NULL);
|
|
62
|
+
CREATE TABLE IF NOT EXISTS hold_uses (address TEXT NOT NULL, kind TEXT NOT NULL, target TEXT NOT NULL, balance TEXT NOT NULL, at INTEGER NOT NULL);`);
|
|
63
|
+
for (const col of ['holder TEXT', 'holder_check INTEGER']) {
|
|
64
|
+
try {
|
|
65
|
+
d.exec(`ALTER TABLE safety_monitors ADD COLUMN ${col}`);
|
|
66
|
+
}
|
|
67
|
+
catch { /* already there */ }
|
|
68
|
+
}
|
|
55
69
|
return d;
|
|
56
70
|
}
|
|
57
71
|
/** Confirms that `tx` burned at least `min` whole OCULON and has not been used before. Throws a readable error otherwise. */
|
|
@@ -176,6 +190,40 @@ export async function startInvestigation(o, tx, targetInput, signature) {
|
|
|
176
190
|
});
|
|
177
191
|
return { id, burn };
|
|
178
192
|
}
|
|
193
|
+
/** Proves a wallet signed this action over a fresh nonce and returns its live OCULON balance. */
|
|
194
|
+
async function proveHolding(kind, target, address, nonce, signature) {
|
|
195
|
+
const a = address.trim().toLowerCase();
|
|
196
|
+
if (!/^0x[0-9a-f]{40}$/.test(a))
|
|
197
|
+
throw new Error('connect the wallet that holds OCULON');
|
|
198
|
+
consumeNonce(nonce, a);
|
|
199
|
+
const signer = recoverPersonalSigner(holdMessage(kind, target, a, nonce), signature);
|
|
200
|
+
if (signer !== a)
|
|
201
|
+
throw new Error('the signature does not match the wallet address');
|
|
202
|
+
return { address: a, raw: await balanceOf(a) };
|
|
203
|
+
}
|
|
204
|
+
export async function startInvestigationHold(o, targetInput, address, nonce, signature) {
|
|
205
|
+
const target = targetInput.trim().slice(0, 200);
|
|
206
|
+
if (target.length < 3)
|
|
207
|
+
throw new Error('give what to investigate: a domain, a wallet or token address, or a company name');
|
|
208
|
+
const h = await proveHolding('investigate', target, address, nonce, signature);
|
|
209
|
+
if (h.raw < UTILITY.holdInvestigate * E18)
|
|
210
|
+
throw new Error(`this wallet holds ${formatUnits(h.raw, 18)} OCULON; holding needs at least ${UTILITY.holdInvestigate.toLocaleString('en-US')} (or burn ${UTILITY.investigate.toLocaleString('en-US')} instead)`);
|
|
211
|
+
const d = db(o.ctx);
|
|
212
|
+
const now = o.ctx.now().getTime();
|
|
213
|
+
const last = d.prepare("SELECT at FROM hold_uses WHERE address = ? AND kind = 'investigate' ORDER BY at DESC LIMIT 1").get(h.address);
|
|
214
|
+
const period = UTILITY.holdInvestigateDays * 86_400_000;
|
|
215
|
+
if (last && now - last.at < period)
|
|
216
|
+
throw new Error(`this wallet used its investigation for this period; the next one is free from ${new Date(last.at + period).toISOString().slice(0, 10)}`);
|
|
217
|
+
d.prepare('INSERT INTO hold_uses (address, kind, target, balance, at) VALUES (?, ?, ?, ?, ?)').run(h.address, 'investigate', target, h.raw.toString(), now);
|
|
218
|
+
const id = randomBytes(6).toString('hex');
|
|
219
|
+
d.prepare('INSERT INTO investigations (id, tx, target, status, created_at) VALUES (?, ?, ?, ?, ?)').run(id, `hold:${h.address}:${formatUnits(h.raw, 18)}`, target, 'running', now);
|
|
220
|
+
void runInvestigation(o, target).then((parts) => {
|
|
221
|
+
d.prepare('UPDATE investigations SET status = ?, result = ?, finished_at = ? WHERE id = ?').run('done', JSON.stringify(parts), Date.now(), id);
|
|
222
|
+
}).catch((e) => {
|
|
223
|
+
d.prepare('UPDATE investigations SET status = ?, result = ?, finished_at = ? WHERE id = ?').run('done', JSON.stringify([{ title: 'Investigation', ok: false, verdict: null, lines: [], error: String(e.message), sources: [] }]), Date.now(), id);
|
|
224
|
+
});
|
|
225
|
+
return { id, nextFree: new Date(now + period).toISOString() };
|
|
226
|
+
}
|
|
179
227
|
export function getInvestigation(ctx, id) {
|
|
180
228
|
if (!/^[0-9a-f]{12}$/.test(id))
|
|
181
229
|
return null;
|
|
@@ -185,6 +233,7 @@ export function getInvestigation(ctx, id) {
|
|
|
185
233
|
return {
|
|
186
234
|
id, target: String(row.target), kind: targetKind(String(row.target)), status: row.status,
|
|
187
235
|
burn: row.from_addr ? { tx: String(row.tx), from: String(row.from_addr), amount: String(row.amount), raw: '', block: Number(row.block), time: String(row.burned_at) } : null,
|
|
236
|
+
heldBy: String(row.tx).startsWith('hold:') ? { address: String(row.tx).split(':')[1], balance: String(row.tx).split(':')[2] ?? '' } : null,
|
|
188
237
|
parts: row.result ? JSON.parse(String(row.result)) : [],
|
|
189
238
|
createdAt: new Date(Number(row.created_at)).toISOString(), finishedAt: row.finished_at ? new Date(Number(row.finished_at)).toISOString() : null,
|
|
190
239
|
};
|
|
@@ -219,15 +268,54 @@ export async function startSafety(o, tx, tokenInput, signature) {
|
|
|
219
268
|
const state = await checkSafety(o, token).catch(() => safetyState(o.ctx, token));
|
|
220
269
|
return { state, burn };
|
|
221
270
|
}
|
|
271
|
+
/** Hold-backed badge: live while the wallet keeps the balance, re-checked daily. One badge per wallet. */
|
|
272
|
+
export async function startSafetyHold(o, tokenInput, address, nonce, signature) {
|
|
273
|
+
const token = tokenInput.trim().toLowerCase();
|
|
274
|
+
if (!/^0x[0-9a-f]{40}$/.test(token))
|
|
275
|
+
throw new Error('give the Robinhood Chain token address to monitor: 0x followed by 40 hex characters');
|
|
276
|
+
const h = await proveHolding('safety', token, address, nonce, signature);
|
|
277
|
+
if (h.raw < UTILITY.holdSafety * E18)
|
|
278
|
+
throw new Error(`this wallet holds ${formatUnits(h.raw, 18)} OCULON; holding needs at least ${UTILITY.holdSafety.toLocaleString('en-US')} (or burn ${UTILITY.safety.toLocaleString('en-US')} for 30 days)`);
|
|
279
|
+
const d = db(o.ctx);
|
|
280
|
+
const now = o.ctx.now().getTime();
|
|
281
|
+
const other = d.prepare('SELECT token FROM safety_monitors WHERE holder = ? AND token != ? AND expires_at > ?').get(h.address, token, now);
|
|
282
|
+
if (other)
|
|
283
|
+
throw new Error(`this wallet already backs the badge of ${other.token}; one badge per wallet`);
|
|
284
|
+
const until = now + 2 * 86_400_000;
|
|
285
|
+
d.prepare('INSERT INTO safety_monitors (token, expires_at, created_at, holder, holder_check) VALUES (?, ?, ?, ?, ?) ON CONFLICT(token) DO UPDATE SET holder = excluded.holder, holder_check = excluded.holder_check, expires_at = MAX(safety_monitors.expires_at, excluded.expires_at)').run(token, until, now, h.address, now);
|
|
286
|
+
d.prepare('INSERT INTO hold_uses (address, kind, target, balance, at) VALUES (?, ?, ?, ?, ?)').run(h.address, 'safety', token, h.raw.toString(), now);
|
|
287
|
+
const state = await checkSafety(o, token).catch(() => safetyState(o.ctx, token));
|
|
288
|
+
return { state };
|
|
289
|
+
}
|
|
290
|
+
/** Daily: a hold-backed badge stays live two more days while the wallet still holds enough; otherwise it lapses. */
|
|
291
|
+
export async function refreshHolders(ctx) {
|
|
292
|
+
const d = db(ctx);
|
|
293
|
+
const now = ctx.now().getTime();
|
|
294
|
+
const rows = d.prepare('SELECT token, holder FROM safety_monitors WHERE holder IS NOT NULL AND (holder_check IS NULL OR holder_check <= ?)').all(now - 23 * 3_600_000);
|
|
295
|
+
const out = [];
|
|
296
|
+
for (const r of rows) {
|
|
297
|
+
try {
|
|
298
|
+
const ok = (await balanceOf(r.holder)) >= UTILITY.holdSafety * E18;
|
|
299
|
+
if (ok)
|
|
300
|
+
d.prepare('UPDATE safety_monitors SET holder_check = ?, expires_at = MAX(expires_at, ?) WHERE token = ?').run(now, now + 2 * 86_400_000, r.token);
|
|
301
|
+
else
|
|
302
|
+
d.prepare('UPDATE safety_monitors SET holder_check = ?, holder = NULL WHERE token = ?').run(now, r.token);
|
|
303
|
+
out.push({ ...r, ok });
|
|
304
|
+
}
|
|
305
|
+
catch { /* try again next round */ }
|
|
306
|
+
}
|
|
307
|
+
return out;
|
|
308
|
+
}
|
|
222
309
|
export function safetyState(ctx, token) {
|
|
223
310
|
const t = token.toLowerCase();
|
|
224
311
|
const d = db(ctx);
|
|
225
312
|
const m = d.prepare('SELECT * FROM safety_monitors WHERE token = ?').get(t);
|
|
226
313
|
const hist = d.prepare('SELECT at, verdict FROM safety_checks WHERE token = ? ORDER BY at DESC LIMIT 30').all(t).map((h) => ({ at: new Date(h.at).toISOString(), verdict: h.verdict }));
|
|
227
|
-
return { token: t, active: !!m && m.expires_at > ctx.now().getTime(), expiresAt: m ? new Date(m.expires_at).toISOString() : null, verdict: m?.verdict ?? null, reasons: m?.reasons ? JSON.parse(m.reasons) : [], name: m?.name ?? null, symbol: m?.symbol ?? null, lastCheck: m?.last_check ? new Date(m.last_check).toISOString() : null, history: hist };
|
|
314
|
+
return { token: t, active: !!m && m.expires_at > ctx.now().getTime(), expiresAt: m ? new Date(m.expires_at).toISOString() : null, heldBy: m?.holder ?? null, verdict: m?.verdict ?? null, reasons: m?.reasons ? JSON.parse(m.reasons) : [], name: m?.name ?? null, symbol: m?.symbol ?? null, lastCheck: m?.last_check ? new Date(m.last_check).toISOString() : null, history: hist };
|
|
228
315
|
}
|
|
229
316
|
/** Re-checks every active monitor not checked in the last `everyMs` (default 14 minutes). Returns verdict changes. */
|
|
230
317
|
export async function runSafety(o, everyMs = 14 * 60_000) {
|
|
318
|
+
await refreshHolders(o.ctx).catch(() => []);
|
|
231
319
|
const now = o.ctx.now().getTime();
|
|
232
320
|
const rows = db(o.ctx).prepare('SELECT token, verdict FROM safety_monitors WHERE expires_at > ? AND (last_check IS NULL OR last_check <= ?)').all(now, now - everyMs);
|
|
233
321
|
const changes = [];
|
|
@@ -267,6 +355,13 @@ export function createNonce(domain, addressInput, now = Date.now()) {
|
|
|
267
355
|
nonces.set(nonce, { address, exp: now + 10 * 60_000 });
|
|
268
356
|
return { nonce, message: holderMessage(domain, address, nonce, new Date(now).toISOString()) };
|
|
269
357
|
}
|
|
358
|
+
/** A nonce works once, for the wallet it was issued to, within ten minutes. */
|
|
359
|
+
export function consumeNonce(nonce, address) {
|
|
360
|
+
const e = nonces.get(nonce);
|
|
361
|
+
if (!e || e.exp < Date.now() || e.address !== address.toLowerCase())
|
|
362
|
+
throw new Error('this request expired; start again');
|
|
363
|
+
nonces.delete(nonce);
|
|
364
|
+
}
|
|
270
365
|
export async function balanceOf(address) {
|
|
271
366
|
const cfg = tokenConfig();
|
|
272
367
|
if (!cfg)
|
|
@@ -279,6 +374,8 @@ export async function verifyHolder(ctx, owner, message, signature) {
|
|
|
279
374
|
const entry = nonce ? nonces.get(nonce) : undefined;
|
|
280
375
|
if (!nonce || !entry || entry.exp < Date.now())
|
|
281
376
|
throw new Error('this sign-in request expired; start again');
|
|
377
|
+
if (!message.startsWith(`${message.split(' wants you')[0]} wants you to sign in`))
|
|
378
|
+
throw new Error('not a sign-in message');
|
|
282
379
|
const signer = recoverPersonalSigner(message, signature);
|
|
283
380
|
if (!signer || signer !== entry.address || !message.includes(entry.address))
|
|
284
381
|
throw new Error('the signature does not match the wallet address');
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One check as a PDF report to send on (to a bank, a team, the police): what was checked, the verdict and why,
|
|
3
|
+
* what changed since earlier checks, what to do, and every source called with its answer. Built from the stored
|
|
4
|
+
* check only, so the file always matches what Oculon returned.
|
|
5
|
+
*/
|
|
6
|
+
import { renderPdf, TONE_RGB } from './core/pdf.js';
|
|
7
|
+
const KIND_LABEL = {
|
|
8
|
+
scam: 'Message scam check', url: 'Link check', iban: 'IBAN check', headers: 'Email header check', lookalike: 'Lookalike domains', honeypot: 'Token sell check',
|
|
9
|
+
address: 'Crypto address check', phone: 'Phone number check', ip: 'IP address check', hash: 'File hash check', emailsec: 'Email security of a domain',
|
|
10
|
+
company: 'Company check', token: 'Token check', rhtoken: 'Robinhood Chain token check', wallet: 'Wallet check', sanctions: 'Sanctions screening',
|
|
11
|
+
factcheck: 'Fact check', recall: 'Recall check', travel: 'Travel risk', cve: 'Vulnerability', exposure: 'Exposure of a domain', doc: 'Document check',
|
|
12
|
+
};
|
|
13
|
+
const when = (iso) => `${iso.slice(0, 16).replace('T', ' ')} UTC`;
|
|
14
|
+
/** Short "key: value" lines from a result object, for the details section. Long lists and objects are skipped. */
|
|
15
|
+
function details(result) {
|
|
16
|
+
const x = (result?.result ?? result);
|
|
17
|
+
if (!x || typeof x !== 'object')
|
|
18
|
+
return [];
|
|
19
|
+
const rows = [];
|
|
20
|
+
for (const [k, v] of Object.entries(x)) {
|
|
21
|
+
if (['verdict', 'risk', 'reasons', 'flags', 'warnings', 'points', 'advice', 'notes', 'input'].includes(k))
|
|
22
|
+
continue;
|
|
23
|
+
if (typeof v === 'string' && v && v.length < 300)
|
|
24
|
+
rows.push([k, v]);
|
|
25
|
+
else if (typeof v === 'number' || typeof v === 'boolean')
|
|
26
|
+
rows.push([k, String(v)]);
|
|
27
|
+
else if (Array.isArray(v) && v.length && v.every((i) => typeof i === 'string'))
|
|
28
|
+
rows.push([k, v.slice(0, 8).join(', ')]);
|
|
29
|
+
else if (v && typeof v === 'object' && !Array.isArray(v)) {
|
|
30
|
+
const flat = Object.entries(v).filter(([, y]) => typeof y === 'string' || typeof y === 'number').slice(0, 6);
|
|
31
|
+
if (flat.length)
|
|
32
|
+
rows.push([k, flat.map(([a, b]) => `${a}: ${b}`).join('; ')]);
|
|
33
|
+
}
|
|
34
|
+
if (rows.length >= 14)
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
return rows;
|
|
38
|
+
}
|
|
39
|
+
function listOf(result, key) {
|
|
40
|
+
const x = (result?.result ?? result);
|
|
41
|
+
const v = x?.[key];
|
|
42
|
+
return Array.isArray(v) ? v.filter((i) => typeof i === 'string').slice(0, 10) : [];
|
|
43
|
+
}
|
|
44
|
+
export function reportPdf(c, history = [], baseUrl) {
|
|
45
|
+
const v = c.verdict;
|
|
46
|
+
const blocks = [{ t: 'title', text: `${KIND_LABEL[c.kind] ?? c.kind}: ${c.label}` }];
|
|
47
|
+
blocks.push({ t: 'kv', rows: [['Checked', when(c.createdAt)], ['Check id', c.id], ['Took', `${(c.durationMs / 1000).toFixed(1)} s, ${c.calls.length} source call${c.calls.length === 1 ? '' : 's'}`]] });
|
|
48
|
+
blocks.push({ t: 'bar', label: 'VERDICT', text: `${(v.verdict ?? 'result').toUpperCase()}${v.risk !== null ? ` risk ${v.risk}/100` : ''}`, color: TONE_RGB[v.tone] });
|
|
49
|
+
if (v.points.length)
|
|
50
|
+
blocks.push({ t: 'h', text: 'Why' }, { t: 'bullets', items: v.points });
|
|
51
|
+
if (c.seenBefore) {
|
|
52
|
+
blocks.push({ t: 'h', text: 'Seen before' }, { t: 'p', text: `Last checked ${when(c.seenBefore.at)} (verdict then: ${c.seenBefore.verdict ?? 'none'}).` });
|
|
53
|
+
blocks.push(c.seenBefore.changes.length ? { t: 'bullets', items: c.seenBefore.changes } : { t: 'p', text: 'Nothing changed since then.' });
|
|
54
|
+
}
|
|
55
|
+
const advice = listOf(c.result, 'advice');
|
|
56
|
+
if (advice.length)
|
|
57
|
+
blocks.push({ t: 'h', text: 'What to do' }, { t: 'bullets', items: advice });
|
|
58
|
+
const notes = listOf(c.result, 'notes');
|
|
59
|
+
if (notes.length)
|
|
60
|
+
blocks.push({ t: 'h', text: 'Notes' }, { t: 'bullets', items: notes, color: [0.42, 0.47, 0.49] });
|
|
61
|
+
const d = details(c.result);
|
|
62
|
+
if (d.length)
|
|
63
|
+
blocks.push({ t: 'h', text: 'Details' }, { t: 'kv', rows: d });
|
|
64
|
+
if (history.length > 1) {
|
|
65
|
+
blocks.push({ t: 'h', text: 'History of this target' }, { t: 'table', head: ['When', 'Verdict', 'Risk'], widths: [170, 250, 75], rows: history.map((h) => [when(h.at), h.verdict ?? '-', h.risk === null ? '-' : String(h.risk)]) });
|
|
66
|
+
}
|
|
67
|
+
blocks.push({ t: 'h', text: 'Sources called' });
|
|
68
|
+
blocks.push({ t: 'p', text: `${v.sources.live} live, ${v.sources.cached} from cache, ${v.sources.failed} failed or not available (for example, no key set). A failed or unavailable source is not a finding.`, size: 9.5 });
|
|
69
|
+
if (c.calls.length) {
|
|
70
|
+
blocks.push({ t: 'table', head: ['Time (UTC)', 'Source', 'Host', 'Status', 'ms'], widths: [70, 130, 150, 95, 50], rows: c.calls.slice(0, 120).map((k) => [k.at.slice(11, 19), k.source, k.via ? `${k.host} (mirror)` : k.host, k.note && k.status !== 'LIVE' ? `${k.status}: ${k.note}`.slice(0, 60) : k.status, String(k.ms)]) });
|
|
71
|
+
if (c.calls.length > 120)
|
|
72
|
+
blocks.push({ t: 'p', text: `${c.calls.length - 120} more calls are in the replay log.`, size: 9 });
|
|
73
|
+
}
|
|
74
|
+
else
|
|
75
|
+
blocks.push({ t: 'p', text: 'No network calls: this check ran on the input alone.', size: 9.5 });
|
|
76
|
+
if (baseUrl) {
|
|
77
|
+
blocks.push({ t: 'h', text: 'Online' }, { t: 'link', text: `${baseUrl}/replay/${c.id}`, url: `${baseUrl}/replay/${c.id}` });
|
|
78
|
+
}
|
|
79
|
+
blocks.push({ t: 'gap', h: 10 }, { t: 'p', text: 'Oculon is free, open-source software (MIT). This report shows what public sources said at the time of the check. It is not legal, financial or security advice, and a clean result is not a guarantee.', size: 8.5, color: [0.42, 0.47, 0.49] });
|
|
80
|
+
return renderPdf(blocks, `Oculon report ${c.id} · ${when(c.createdAt)}`);
|
|
81
|
+
}
|
|
@@ -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>`;
|