oculon 0.1.2 → 0.1.4

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.
@@ -185,7 +185,14 @@ void main(){
185
185
  (function () {
186
186
  if (window.__oculonCleanUrl) return;
187
187
  window.__oculonCleanUrl = true;
188
- window.oculonInitialHash = decodeURIComponent(location.hash.slice(1));
188
+ // A section asked for by a link on another Oculon page travels in window.name, so the address never shows it.
189
+ let carried = '';
190
+ try { if (window.name.startsWith('oculon-goto:')) { carried = window.name.slice(12); window.name = ''; } } catch {}
191
+ window.oculonInitialHash = carried || decodeURIComponent(location.hash.slice(1));
192
+ if (location.hash) history.replaceState(history.state, '', location.pathname + location.search);
193
+ // Same site: this host, or another subdomain of the same domain (oculon.live, app., docs., mcp.).
194
+ const site = (h) => h.split('.').slice(-2).join('.');
195
+ const sameSite = (u) => u.protocol === location.protocol && (u.host === location.host || (location.hostname.includes('.') && site(u.hostname) === site(location.hostname)));
189
196
  document.addEventListener('click', (e) => {
190
197
  if (e.defaultPrevented || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
191
198
  const a = e.target.closest && e.target.closest('a[href]');
@@ -193,13 +200,28 @@ void main(){
193
200
  const raw = a.getAttribute('href');
194
201
  if (raw === '#') { e.preventDefault(); return; }
195
202
  const u = new URL(a.href, location.href);
196
- if (!u.hash || u.origin !== location.origin || u.pathname !== location.pathname || u.search !== location.search) return;
203
+ if (!u.hash) return;
204
+ if (u.origin !== location.origin || u.pathname !== location.pathname || u.search !== location.search) {
205
+ // Another page: open it at its plain address and hand over the section name.
206
+ if (!sameSite(u)) return;
207
+ e.preventDefault();
208
+ try { window.name = 'oculon-goto:' + decodeURIComponent(u.hash.slice(1)); } catch {}
209
+ location.href = u.origin + u.pathname + u.search;
210
+ return;
211
+ }
197
212
  const name = decodeURIComponent(u.hash.slice(1));
198
213
  const el = document.getElementById(name);
199
- if (el) { e.preventDefault(); el.scrollIntoView({ behavior: 'smooth', block: 'start' }); return; }
214
+ if (el) { e.preventDefault(); el.scrollIntoView({ behavior: 'smooth', block: 'start' }); if (typeof window.onOculonSection === 'function') window.onOculonSection(name); return; }
200
215
  if (typeof window.onOculonHash === 'function') { e.preventDefault(); window.onOculonHash(name); }
201
216
  });
202
217
  const clear = () => { if (location.hash) history.replaceState(history.state, '', location.pathname + location.search); };
203
218
  window.oculonClearHash = clear;
204
219
  addEventListener('load', () => setTimeout(clear, 2500));
220
+ // Pages whose sections are in the HTML from the start (landing, legal) jump to the handed-over section here;
221
+ // the docs and the app handle it themselves once their content is in place.
222
+ addEventListener('DOMContentLoaded', () => {
223
+ const name = window.oculonInitialHash;
224
+ const el = name && document.getElementById(name);
225
+ if (el) setTimeout(() => el.scrollIntoView({ behavior: 'instant', block: 'start' }), 60);
226
+ });
205
227
  })();
Binary file
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="212 212 600 600"><path fill="#00f0ff" d="M512 212 H348 Q212 212 212 348 V676 Q212 812 348 812 H676 Q812 812 812 676 V512 H680 V630 Q680 680 630 680 H394 Q344 680 344 630 V394 Q344 344 394 344 H512 Z"/><path fill="#00f0ff" d="M586 212 H676 Q812 212 812 348 V438 Q812 472 778 472 H586 Q552 472 552 438 V246 Q552 212 586 212 Z"/></svg>
Binary file
Binary file
Binary file
Binary file
@@ -8,10 +8,14 @@
8
8
  <link rel="icon" type="image/png" href="/favicon.ico">
9
9
  <link rel="apple-touch-icon" href="/assets/icon-192.png">
10
10
  <title>Oculon Docs</title>
11
- <meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon docs"><meta property="og:description" content="Install, CLI, remote MCP, SDK and every module of the Oculon intelligence engine."><meta property="og:url" content="https://oculon.live/docs"><meta property="og:image" content="https://oculon.live/assets/og.png"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://oculon.live/assets/og.png">
11
+ <meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon docs"><meta property="og:description" content="Install, CLI, remote MCP, SDK and every module of the Oculon intelligence engine."><meta property="og:url" content="https://oculon.live/docs"><meta property="og:image" content="https://oculon.live/assets/og-docs.png?v=2"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://oculon.live/assets/og-docs.png?v=2">
12
12
  <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
13
13
  <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
14
14
  <style>
15
+ /* no sideways scrolling on phones: wide tables and code scroll inside their own boxes */
16
+ html,body{overflow-x:clip;max-width:100%}
17
+ .lm{display:inline-block;width:22px;height:22px;vertical-align:-4px;margin-right:12px}
18
+ .social{display:flex;gap:16px;align-items:center;margin-top:18px}.social a{color:#9fb0b4;display:inline-flex;transition:color .2s,transform .2s}.social a:hover{color:#00f0ff;transform:translateY(-2px)}.social svg{display:block}
15
19
  :root{--bg:#000;--bg2:#060606;--line:#222;--text:#fff;--soft:#cfcfcf;--mut:#9a9a9a;--dim:#5e5e5e;--y:#00f0ff;--sans:'Space Grotesk',system-ui,sans-serif;--mono:'Space Mono',ui-monospace,Consolas,monospace}
16
20
  *{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}
17
21
  body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased;overflow-x:clip}
@@ -128,7 +132,7 @@ aside.left a.on{text-shadow:0 0 18px rgba(0,240,255,.6)}
128
132
  </style>
129
133
  </head>
130
134
  <body>
131
- <header><div class="in"><a class="logo" href="/">OCULON<span>DOCS</span></a><nav><a class="opt" href="/">Home</a><a class="opt" href="#cli-reference">CLI reference</a><a class="btn" href="/app">Open app</a></nav></div></header>
135
+ <header><div class="in"><a class="logo" href="/"><img class="lm" src="/assets/logo.svg" alt="" width="22" height="22">OCULON<span>DOCS</span></a><nav><a class="opt" href="/">Home</a><a class="opt" href="/ask">Analyst</a><a class="opt" href="#cli-reference">CLI reference</a><a class="btn" href="/app">Open app</a></nav></div></header>
132
136
  <canvas id="liquidbg" aria-hidden="true"></canvas>
133
137
  <div class="layout">
134
138
  <aside class="left"><div class="lbl" style="margin-bottom:14px">Guide</div><div id="toc"></div></aside>
@@ -164,6 +168,7 @@ ots verify -d &lt;root&gt; &lt;id&gt;.ots # the root is committed i
164
168
  </section>
165
169
  <div id="doc" class="skeleton">Loading…</div>
166
170
  <section id="help"><h2 id="cli-reference">CLI reference</h2><p>The full command list, printed by <code>oculon help</code> on this install.</p><div id="help-out" class="skeleton">Loading…</div></section>
171
+ <div style="margin-top:56px;padding-top:22px;border-top:1px solid var(--line)"><div class="lbl">Follow Oculon</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>
167
172
  </main>
168
173
  <aside class="right"><div class="lbl" style="margin-bottom:12px">On this page</div><div id="otp"></div></aside>
169
174
  </div>
@@ -174,6 +179,11 @@ if (window.OculonFX) { OculonFX.liquid(document.getElementById('liquidbg'), { ba
174
179
  const rvio = new IntersectionObserver((es) => es.forEach((e) => { if (e.isIntersecting) { e.target.classList.add('in'); rvio.unobserve(e.target); } }), { threshold: 0.08 });
175
180
  const reveal = () => document.querySelectorAll('#doc h2, #doc h3, #doc p, #doc pre, #doc table, #doc ul, #help h2, #help pre').forEach((el) => { if (!el.classList.contains('rv')) { el.classList.add('rv'); rvio.observe(el); } });
176
181
  const $ = (id) => document.getElementById(id);
182
+ // Sections have their own addresses: docs.<domain>/install (or /docs/install on a single host).
183
+ const docsBase = location.pathname.startsWith('/docs') ? '/docs/' : '/';
184
+ function sectionFromPath() { const s = location.pathname.slice(docsBase.length).replace(/\/$/, ''); return /^[a-z0-9-]+$/.test(s) ? s : ''; }
185
+ window.onOculonSection = (id) => { const next = docsBase + id; if (location.pathname !== next) history.pushState({ section: id }, '', next + location.search); };
186
+ addEventListener('popstate', () => { const s = sectionFromPath(); const el = s && document.getElementById(s); if (el) el.scrollIntoView({ behavior: 'instant', block: 'start' }); else if (!s) scrollTo({ top: 0 }); });
177
187
  const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
178
188
  const slug = (s) => s.toLowerCase().replace(/<[^>]+>/g, '').replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '');
179
189
 
@@ -223,7 +233,7 @@ fetch('/api/readme').then((r) => r.json()).then((j) => {
223
233
  const first = doc.querySelector('p'); if (first) first.classList.add('intro');
224
234
  buildNav(); reveal();
225
235
  // A link straight to a section (#remote-mcp) skips the rise-in, which could leave the jumped-to text hidden on phones.
226
- const target = window.oculonInitialHash || decodeURIComponent(location.hash.slice(1));
236
+ const target = sectionFromPath() || window.oculonInitialHash || decodeURIComponent(location.hash.slice(1));
227
237
  if (target) {
228
238
  document.querySelectorAll('.rv').forEach((el) => { el.classList.add('in'); rvio.unobserve(el); });
229
239
  // Cards above the README (module finder, live fusion) fill in after this, which moves the section down;
@@ -8,11 +8,14 @@
8
8
  <link rel="icon" type="image/png" href="/favicon.ico">
9
9
  <link rel="apple-touch-icon" href="/assets/icon-192.png">
10
10
  <title>Oculon</title>
11
- <meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon app"><meta property="og:description" content="Investigate, monitor and share: the full Oculon intelligence app."><meta property="og:url" content="https://oculon.live/app"><meta property="og:image" content="https://oculon.live/assets/og.png"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://oculon.live/assets/og.png">
11
+ <meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon app"><meta property="og:description" content="Investigate, monitor and share: the full Oculon intelligence app."><meta property="og:url" content="https://oculon.live/app"><meta property="og:image" content="https://oculon.live/assets/og-app.png?v=2"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://oculon.live/assets/og-app.png?v=2">
12
12
  <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
13
13
  <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
14
14
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.min.css">
15
15
  <style>
16
+ /* no sideways scrolling on phones: wide tables and code scroll inside their own boxes */
17
+ html,body{overflow-x:clip;max-width:100%}
18
+ .lm{display:inline-block;width:22px;height:22px;vertical-align:-4px;margin-right:12px}
16
19
  :root {
17
20
  --bg: #000; --panel: #060606; --panel-2: #0e0e0e; --line: #222; --text: #fff; --muted: #9a9a9a;
18
21
  --accent: #00f0ff; --accent-2: #e8e8e8; --warn: #00f0ff; --bad: #ff7a6b; --chip: #111;
@@ -245,7 +248,7 @@ nav { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollb
245
248
  header .spacer { display: none; }
246
249
  header .status { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
247
250
  @media (max-width: 1300px) { header .status { display: none; } }
248
- @media (max-width: 720px) { header { flex-wrap: wrap; row-gap: 8px; } header nav { order: 5; flex-basis: 100%; } #pal-btn .kbd { display: none; } header .brand { margin-right: auto; } .ov-kpi b { font-size: 22px; overflow-wrap: anywhere; } .ov-kpi { padding: 12px 14px; } }
251
+ @media (max-width: 720px) { header { flex-wrap: wrap; row-gap: 8px; column-gap: 12px; padding: 10px 14px; } header nav { order: 5; flex-basis: 100%; } #pal-btn .kbd { display: none; } header .brand { margin-right: auto; } .ov-kpi b { font-size: 22px; overflow-wrap: anywhere; } .ov-kpi { padding: 12px 14px; } }
249
252
  .pal input { color: var(--text) !important; }
250
253
  #pal-btn { white-space: nowrap; flex: none; }
251
254
  .ib .ev2 a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(0,240,255,.4); text-underline-offset: 3px; }
@@ -348,7 +351,7 @@ nav button { white-space: nowrap; }
348
351
  </head>
349
352
  <body>
350
353
  <header>
351
- <a class="brand" href="/">OCULON</a>
354
+ <a class="brand" href="/"><img class="lm" src="/assets/logo.svg" alt="" width="22" height="22">OCULON</a>
352
355
  <nav role="tablist">
353
356
  <button role="tab" data-tab="overview" aria-selected="true">Overview</button>
354
357
  <!--onchain--> <button role="tab" data-tab="robinhood" aria-selected="false">Robinhood</button><!--/onchain-->
@@ -368,6 +371,7 @@ nav button { white-space: nowrap; }
368
371
  <button role="tab" data-tab="accuracy">Accuracy</button>
369
372
  </nav>
370
373
  <div class="spacer"></div>
374
+ <a class="toplink" href="/ask">Analyst</a>
371
375
  <a class="toplink" href="/docs">Docs</a>
372
376
  <span class="status" id="status"></span>
373
377
  <button class="icon-btn" id="theme" title="Toggle theme" aria-label="Toggle theme">◐</button>
@@ -1033,7 +1037,7 @@ async function loadCases() {
1033
1037
  : '<p class="meta">No cases yet.</p>';
1034
1038
  document.querySelectorAll('[data-case]').forEach((a) => (a.onclick = async (e) => {
1035
1039
  e.preventDefault();
1036
- const k = await api('/api/case?id=' + encodeURIComponent(a.dataset.case));
1040
+ const k = await api('/api/case?id=' + encodeURIComponent(a.dataset.case)).catch(() => null);
1037
1041
  $('#case-view').innerHTML = k && k.markdown ? renderMd(k.markdown) : 'Not found.';
1038
1042
  $('#case-view').className = 'md';
1039
1043
  }));
@@ -1348,13 +1352,44 @@ function drawGraph() {
1348
1352
  const line = getComputedStyle(document.documentElement).getPropertyValue('--line');
1349
1353
  ctx.strokeStyle = line; ctx.lineWidth = 1;
1350
1354
  for (const e of edges) { const [x1, y1] = graphState.tx(nodes[e.a]); const [x2, y2] = graphState.tx(nodes[e.b]); ctx.beginPath(); ctx.moveTo(x1, y1); ctx.lineTo(x2, y2); ctx.stroke(); }
1351
- const text = getComputedStyle(document.documentElement).getPropertyValue('--text');
1352
- nodes.forEach((n, i) => {
1353
- const [x, y] = graphState.tx(n); const r = 3 + Math.min(9, Math.sqrt(n.deg) * 2);
1354
- ctx.beginPath(); ctx.arc(x, y, r, 0, Math.PI * 2); ctx.fillStyle = KIND_COLORS[n.kind] || '#94a3b8'; ctx.fill();
1355
- if (i === hover || n.deg >= 4) { ctx.fillStyle = text; ctx.font = '11px system-ui'; ctx.fillText(n.name.slice(0, 40), x + r + 3, y + 4); }
1355
+ const css = getComputedStyle(document.documentElement);
1356
+ const text = css.getPropertyValue('--text'), bg = css.getPropertyValue('--bg') || '#000';
1357
+ const radius = (n) => 3 + Math.min(9, Math.sqrt(n.deg) * 2);
1358
+ nodes.forEach((n) => {
1359
+ const [x, y] = graphState.tx(n);
1360
+ ctx.beginPath(); ctx.arc(x, y, radius(n), 0, Math.PI * 2); ctx.fillStyle = KIND_COLORS[n.kind] || '#94a3b8'; ctx.fill();
1356
1361
  });
1362
+ // Labels: the hovered node first, then the best-connected ones, and only where a label does not overlap
1363
+ // one already drawn, so dense clusters stay readable instead of turning into a block of text.
1364
+ ctx.font = '11px system-ui'; ctx.textBaseline = 'middle'; ctx.lineJoin = 'round';
1365
+ const placed = [], max = w < 520 ? 14 : 40;
1366
+ const order = nodes.map((n, i) => i).filter((i) => i === hover || nodes[i].deg >= 4).sort((a, b) => (b === hover) - (a === hover) || nodes[b].deg - nodes[a].deg);
1367
+ for (const i of order) {
1368
+ const n = nodes[i], [x, y] = graphState.tx(n), r = radius(n);
1369
+ const label = n.name.length > 28 ? n.name.slice(0, 27) + '…' : n.name;
1370
+ const tw = ctx.measureText(label).width;
1371
+ let lx = x + r + 4; if (lx + tw > w - 4) lx = x - r - 4 - tw;
1372
+ const box = [lx - 2, y - 8, lx + tw + 2, y + 8];
1373
+ if (i !== hover && (placed.length >= max || placed.some((p) => box[0] < p[2] && box[2] > p[0] && box[1] < p[3] && box[3] > p[1]))) continue;
1374
+ placed.push(box);
1375
+ ctx.strokeStyle = bg; ctx.lineWidth = 3; ctx.strokeText(label, lx, y);
1376
+ ctx.fillStyle = text; ctx.fillText(label, lx, y);
1377
+ }
1378
+ ctx.textBaseline = 'alphabetic';
1379
+ }
1380
+ function graphPick(e, reach) {
1381
+ if (!graphState?.tx) return -1;
1382
+ const rect = $('#graph').getBoundingClientRect(); const mx = e.clientX - rect.left, my = e.clientY - rect.top;
1383
+ let best = -1, bd = reach * reach;
1384
+ graphState.nodes.forEach((n, i) => { const [x, y] = graphState.tx(n); const d = (x - mx) ** 2 + (y - my) ** 2; if (d < bd) { bd = d; best = i; } });
1385
+ return best;
1357
1386
  }
1387
+ // Touch has no hover: a tap picks the nearest node within a finger's reach.
1388
+ $('#graph').addEventListener('pointerdown', (e) => {
1389
+ if (e.pointerType === 'mouse' || !graphState) return;
1390
+ const best = graphPick(e, 28);
1391
+ if (best !== graphState.hover) { graphState.hover = best; drawGraph(); $('#graph-hover').textContent = best >= 0 ? `${graphState.nodes[best].kind}: ${graphState.nodes[best].name}` : 'Tap a node to see it; tap again to open its neighbors.'; }
1392
+ });
1358
1393
  $('#graph').addEventListener('mousemove', (e) => {
1359
1394
  if (!graphState?.tx) return;
1360
1395
  const rect = e.target.getBoundingClientRect(); const mx = e.clientX - rect.left, my = e.clientY - rect.top;
@@ -1775,7 +1810,7 @@ const openView = (name) => {
1775
1810
  else document.querySelector(`nav button[data-tab="${CSS.escape(name)}"]`)?.click();
1776
1811
  };
1777
1812
  window.onOculonHash = openView;
1778
- const arrived = decodeURIComponent(location.hash.slice(1));
1813
+ const arrived = window.oculonInitialHash || decodeURIComponent(location.hash.slice(1));
1779
1814
  if (arrived) { openView(arrived); history.replaceState(null, '', location.pathname + location.search); }
1780
1815
  loadInbox().catch(() => {});
1781
1816
  if (!loaded.overview && !document.getElementById('tab-overview').hidden) { loaded.overview = true; loadOverview(); }
@@ -8,12 +8,18 @@
8
8
  <link rel="icon" type="image/png" href="/favicon.ico">
9
9
  <link rel="apple-touch-icon" href="/assets/icon-192.png">
10
10
  <title>Oculon</title>
11
- <meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon: check anything, every answer sourced"><meta property="og:description" content="Open-source intelligence engine and agent: link and claim checks, recalls, travel risk, routing, vulnerabilities, ships and satellites, with sources on every answer."><meta property="og:url" content="https://oculon.live/"><meta property="og:image" content="https://oculon.live/assets/og.png"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://oculon.live/assets/og.png">
11
+ <meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon: check anything, every answer sourced"><meta property="og:description" content="Open-source intelligence engine and agent: link and claim checks, recalls, travel risk, routing, vulnerabilities, ships and satellites, with sources on every answer."><meta property="og:url" content="https://oculon.live/"><meta property="og:image" content="https://oculon.live/assets/og.png?v=2"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://oculon.live/assets/og.png?v=2">
12
12
  <!--onchain--><meta name="description" content="Open-source intelligence engine: routing, vulnerabilities, ships, satellites and Robinhood Chain, with sources on every answer."><!--/onchain-->
13
13
  <!--offchain--><meta name="description" content="Open-source intelligence engine: routing, vulnerabilities, ships, satellites and markets, with sources on every answer."><!--/offchain-->
14
14
  <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
15
15
  <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
16
16
  <style>
17
+ /* no sideways scrolling on phones: wide tables and code scroll inside their own boxes */
18
+ html,body{overflow-x:clip;max-width:100%}
19
+ .lm{display:inline-block;width:22px;height:22px;vertical-align:-4px;margin-right:12px}
20
+ .social{display:flex;gap:16px;align-items:center;margin-top:18px}.social a{color:#9fb0b4;display:inline-flex;transition:color .2s,transform .2s}.social a:hover{color:#00f0ff;transform:translateY(-2px)}.social svg{display:block}
21
+ .hero img.lm{position:static;left:auto;top:auto;transform:none;width:22px;filter:none;animation:none}
22
+ .logo{white-space:nowrap}
17
23
  :root{--bg:#000;--bg2:#060606;--line:#222;--line2:#1a1a1a;--text:#fff;--soft:#cfcfcf;--mut:#9a9a9a;--dim:#5e5e5e;--y:#00f0ff;--sans:'Space Grotesk',system-ui,sans-serif;--mono:'Space Mono',ui-monospace,Consolas,monospace;--pad:clamp(20px,4vw,60px)}
18
24
  *{box-sizing:border-box}html{scroll-behavior:smooth}
19
25
  body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased;overflow-x:clip}
@@ -346,13 +352,13 @@ footer.sitefoot{border-top:1px solid rgba(255,255,255,.12);background:transparen
346
352
  <header class="hero">
347
353
  <img src="/assets/night-emea.jpg" alt="">
348
354
  <div class="tint"></div><div class="grid"></div><canvas id="herofx" aria-hidden="true"></canvas><div class="scan"></div><div class="shade"></div>
349
- <nav class="top"><div class="wrap"><a class="logo" href="/">OCULON</a>
350
- <div class="links"><a class="opt" href="#console">Console</a><!--onchain--><a class="opt" href="#robinhood">Robinhood Chain</a><!--/onchain--><a class="opt" href="#modules">Modules</a><a href="/docs">Docs</a><a class="btn o" href="/app" style="padding:9px 14px;font-size:13px">Open app</a></div></div></nav>
355
+ <nav class="top"><div class="wrap"><a class="logo" href="/"><img class="lm" src="/assets/logo.svg" alt="" width="22" height="22">OCULON</a>
356
+ <div class="links"><a class="opt" href="#console">Console</a><!--onchain--><a class="opt" href="#robinhood">Robinhood Chain</a><!--/onchain--><a class="opt" href="#modules">Modules</a><a class="opt" href="/ask">Analyst</a><a href="/docs">Docs</a><a class="btn o" href="/app" style="padding:9px 14px;font-size:13px">Open app</a></div></div></nav>
351
357
  <div class="lbl credit"><span class="y">●</span> SCAN <span id="clock">--:--:--</span> UTC<br><span id="scanning">NASA Black Marble · Europe · Africa · Asia</span></div>
352
358
  <div class="copy"><div class="wrap">
353
359
  <h1><span class="ln"><span>See</span></span><span class="ln"><span>everything.</span></span></h1>
354
360
  <div class="hin" style="padding-bottom:12px"><p>An open-source intelligence engine for the physical and digital world. <!--onchain-->Routing tables to shipping lanes to fresh pools on Robinhood Chain.<!--/onchain--><!--offchain-->Routing tables to shipping lanes to exploit catalogs and orbit.<!--/offchain--> Self-hosted, sourced, silent until it matters.</p>
355
- <div style="margin-top:26px;display:flex;gap:12px;flex-wrap:wrap"><a class="btn" href="/app">Open the app</a><span class="btn o"><span class="y">$</span> npm i -g oculon</span></div></div>
361
+ <div style="margin-top:26px;display:flex;gap:12px;flex-wrap:wrap"><a class="btn" href="/app">Open the app</a><a class="btn o" href="/ask">Ask the analyst</a><span class="btn o"><span class="y">$</span> npm i -g oculon</span></div></div>
356
362
  </div></div>
357
363
  </header>
358
364
 
@@ -632,7 +638,7 @@ r.provenance <span class="d">// every source used</span></pre></div></div>
632
638
 
633
639
  <footer class="sitefoot"><div class="wrap">
634
640
  <div class="fgrid">
635
- <div class="fbrand"><a class="logo" href="/">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>
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>
636
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>
637
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>
638
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>
@@ -8,10 +8,14 @@
8
8
  <link rel="icon" type="image/png" href="/favicon.ico">
9
9
  <link rel="apple-touch-icon" href="/assets/icon-192.png">
10
10
  <title>Oculon Legal</title>
11
- <meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon"><meta property="og:description" content="Privacy and terms for Oculon."><meta property="og:url" content="https://oculon.live/privacy"><meta property="og:image" content="https://oculon.live/assets/og.png"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://oculon.live/assets/og.png">
11
+ <meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon"><meta property="og:description" content="Privacy and terms for Oculon."><meta property="og:url" content="https://oculon.live/privacy"><meta property="og:image" content="https://oculon.live/assets/og.png?v=2"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://oculon.live/assets/og.png?v=2">
12
12
  <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
13
13
  <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
14
14
  <style>
15
+ /* no sideways scrolling on phones: wide tables and code scroll inside their own boxes */
16
+ html,body{overflow-x:clip;max-width:100%}
17
+ .lm{display:inline-block;width:22px;height:22px;vertical-align:-4px;margin-right:12px}
18
+ .social{display:flex;gap:16px;align-items:center;margin-top:18px}.social a{color:#9fb0b4;display:inline-flex;transition:color .2s,transform .2s}.social a:hover{color:#00f0ff;transform:translateY(-2px)}.social svg{display:block}
15
19
  :root{--line:#222;--soft:#cfcfcf;--mut:#9a9a9a;--y:#00f0ff;--sans:'Space Grotesk',system-ui,sans-serif;--mono:'Space Mono',ui-monospace,Consolas,monospace}
16
20
  *{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}
17
21
  body{margin:0;background:#000;color:#fff;font-family:var(--sans);-webkit-font-smoothing:antialiased;overflow-x:clip}
@@ -78,7 +82,7 @@ footer{background:rgba(0,0,0,.6);backdrop-filter:blur(6px)}
78
82
  </style>
79
83
  </head>
80
84
  <body>
81
- <header><div class="in"><a class="logo" href="/">OCULON</a><nav><a href="/privacy" id="n-privacy">Privacy</a><a href="/terms" id="n-terms">Terms</a><a href="/docs">Docs</a></nav></div></header>
85
+ <header><div class="in"><a class="logo" href="/"><img class="lm" src="/assets/logo.svg" alt="" width="22" height="22">OCULON</a><nav><a href="/privacy" id="n-privacy">Privacy</a><a href="/terms" id="n-terms">Terms</a><a href="/docs">Docs</a></nav></div></header>
82
86
  <canvas id="liquidbg" aria-hidden="true"></canvas>
83
87
  <main>
84
88
  <article class="doc" id="privacy">
@@ -152,7 +156,7 @@ footer{background:rgba(0,0,0,.6);backdrop-filter:blur(6px)}
152
156
  <p>These terms ship with the software and may change between versions.</p>
153
157
  </article>
154
158
  </main>
155
- <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></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></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>
156
160
  <script src="/assets/fx.js"></script>
157
161
  <script>
158
162
  if (window.OculonFX) { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); }
@@ -163,7 +167,7 @@ document.getElementById(`n-${which}`).classList.add('on');
163
167
  document.title = `Oculon ${which === 'terms' ? 'Terms' : 'Privacy'}`;
164
168
  document.getElementById('year').textContent = new Date().getFullYear();
165
169
  document.querySelectorAll('.doc.on h2, .doc.on p, .doc.on ul').forEach((el) => { if (el.closest('.sum') || el.closest('.glance')) return; el.classList.add('rv'); rvio.observe(el); });
166
- if (location.hash) setTimeout(() => document.getElementById(location.hash.slice(1))?.scrollIntoView(), 50);
170
+ // fx.js scrolls to a section handed over by a link.
167
171
 
168
172
  // Live card: the services this install actually called today, from its quota counters.
169
173
  fetch('/api/quota').then((r) => r.json()).then((q) => {
@@ -1,20 +1,44 @@
1
1
  {
2
2
  "name": "Oculon",
3
3
  "short_name": "Oculon",
4
- "description": "Open-source intelligence engine: signals, routing, exploits, ships, satellites and Robinhood Chain, with sources on every answer.",
4
+ "description": "Open-source intelligence engine: scams, links, claims, outages, vulnerabilities, travel risk and research, with sources on every answer.",
5
5
  "start_url": "/app",
6
6
  "scope": "/",
7
7
  "display": "standalone",
8
8
  "background_color": "#000000",
9
9
  "theme_color": "#000000",
10
10
  "icons": [
11
- { "src": "/assets/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
12
- { "src": "/assets/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" },
13
- { "src": "/assets/icon-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
11
+ {
12
+ "src": "/assets/icon-192.png",
13
+ "sizes": "192x192",
14
+ "type": "image/png",
15
+ "purpose": "any"
16
+ },
17
+ {
18
+ "src": "/assets/icon-512.png",
19
+ "sizes": "512x512",
20
+ "type": "image/png",
21
+ "purpose": "any"
22
+ },
23
+ {
24
+ "src": "/assets/icon-maskable-512.png",
25
+ "sizes": "512x512",
26
+ "type": "image/png",
27
+ "purpose": "maskable"
28
+ }
14
29
  ],
15
30
  "shortcuts": [
16
- { "name": "Overview", "url": "/app#overview" },
17
- { "name": "Robinhood Chain", "url": "/app#robinhood" },
18
- { "name": "Signal inbox", "url": "/app#inbox" }
31
+ {
32
+ "name": "Overview",
33
+ "url": "/app"
34
+ },
35
+ {
36
+ "name": "Analyst",
37
+ "url": "/ask"
38
+ },
39
+ {
40
+ "name": "Docs",
41
+ "url": "/docs"
42
+ }
19
43
  ]
20
44
  }
package/dist/web/mcp.html CHANGED
@@ -7,10 +7,14 @@
7
7
  <link rel="icon" type="image/png" href="/favicon.ico">
8
8
  <title>Oculon MCP</title>
9
9
  <meta name="description" content="Remote MCP server for Oculon: OSINT checks with sources for any AI agent, nothing to install.">
10
- <meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon MCP server"><meta property="og:description" content="One URL gives any AI agent Oculon's checks: scams, links, claims, recalls, travel risk, CVEs, outages and research, each with sources."><meta property="og:url" content="{{URL}}"><meta property="og:image" content="https://oculon.live/assets/og.png"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://oculon.live/assets/og.png">
10
+ <meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon MCP server"><meta property="og:description" content="One URL gives any AI agent Oculon's checks: scams, links, claims, recalls, travel risk, CVEs, outages and research, each with sources."><meta property="og:url" content="{{URL}}"><meta property="og:image" content="https://oculon.live/assets/og-mcp.png?v=2"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://oculon.live/assets/og-mcp.png?v=2">
11
11
  <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12
12
  <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
13
13
  <style>
14
+ /* no sideways scrolling on phones: wide tables and code scroll inside their own boxes */
15
+ html,body{overflow-x:clip;max-width:100%}
16
+ .lm{display:inline-block;width:22px;height:22px;vertical-align:-4px;margin-right:12px}
17
+ .social{display:flex;gap:16px;align-items:center;margin-top:18px}.social a{color:#9fb0b4;display:inline-flex;transition:color .2s,transform .2s}.social a:hover{color:#00f0ff;transform:translateY(-2px)}.social svg{display:block}
14
18
  :root{--bg:#000;--bg2:#060606;--line:#222;--text:#fff;--soft:#cfcfcf;--mut:#9a9a9a;--dim:#5e5e5e;--y:#00f0ff;--sans:'Space Grotesk',system-ui,sans-serif;--mono:'Space Mono',ui-monospace,Consolas,monospace}
15
19
  *{box-sizing:border-box}
16
20
  body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased;overflow-x:clip}
@@ -60,7 +64,7 @@ footer a{color:var(--soft)}
60
64
  </head>
61
65
  <body>
62
66
  <canvas id="liquidbg" aria-hidden="true"></canvas>
63
- <header><div class="in"><a class="logo" href="/">OCULON<span>MCP</span></a><nav><a class="opt" href="/docs#remote-mcp">Docs</a><a class="opt" href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener">GitHub</a><a class="btn" href="/app">Open app</a></nav></div></header>
67
+ <header><div class="in"><a class="logo" href="/"><img class="lm" src="/assets/logo.svg" alt="" width="22" height="22">OCULON<span>MCP</span></a><nav><a class="opt" href="/docs#remote-mcp">Docs</a><a class="opt" href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener">GitHub</a><a class="btn" href="/app">Open app</a></nav></div></header>
64
68
  <main>
65
69
  <div class="lbl live"><i></i>Remote MCP server · online</div>
66
70
  <h1>Oculon for your agent.<br>One URL, nothing to install.</h1>
@@ -88,7 +92,7 @@ footer a{color:var(--soft)}
88
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>
89
93
  </div>
90
94
  </main>
91
- <footer><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></footer>
92
96
  <script src="/assets/fx.js"></script>
93
97
  <script>
94
98
  if (window.OculonFX) { try { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); } catch {} }