oculon 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +344 -2
- package/dist/agent.d.ts +47 -0
- package/dist/agent.js +104 -0
- package/dist/cases.d.ts +68 -0
- package/dist/cases.js +158 -0
- package/dist/cli/main.d.ts +12 -0
- package/dist/cli/main.js +1999 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +15 -0
- package/dist/core/context.d.ts +19 -0
- package/dist/core/context.js +19 -0
- package/dist/core/features.d.ts +22 -0
- package/dist/core/features.js +28 -0
- package/dist/core/graph.d.ts +38 -0
- package/dist/core/graph.js +81 -0
- package/dist/core/http.d.ts +42 -0
- package/dist/core/http.js +266 -0
- package/dist/core/keys.d.ts +8 -0
- package/dist/core/keys.js +22 -0
- package/dist/core/llm.d.ts +93 -0
- package/dist/core/llm.js +180 -0
- package/dist/core/merkle.d.ts +15 -0
- package/dist/core/merkle.js +46 -0
- package/dist/core/paths.d.ts +2 -0
- package/dist/core/paths.js +6 -0
- package/dist/core/png.d.ts +17 -0
- package/dist/core/png.js +101 -0
- package/dist/core/quota.d.ts +15 -0
- package/dist/core/quota.js +90 -0
- package/dist/core/stats.d.ts +24 -0
- package/dist/core/stats.js +67 -0
- package/dist/core/store.d.ts +20 -0
- package/dist/core/store.js +213 -0
- package/dist/core/text.d.ts +9 -0
- package/dist/core/text.js +30 -0
- package/dist/core/types.d.ts +38 -0
- package/dist/core/types.js +1 -0
- package/dist/index.d.ts +342 -0
- package/dist/index.js +495 -0
- package/dist/live.d.ts +53 -0
- package/dist/live.js +236 -0
- package/dist/mcp.d.ts +43 -0
- package/dist/mcp.js +651 -0
- package/dist/modules/airport.d.ts +60 -0
- package/dist/modules/airport.js +111 -0
- package/dist/modules/audit.d.ts +73 -0
- package/dist/modules/audit.js +211 -0
- package/dist/modules/bgp.d.ts +147 -0
- package/dist/modules/bgp.js +206 -0
- package/dist/modules/blackout.d.ts +41 -0
- package/dist/modules/blackout.js +98 -0
- package/dist/modules/brief.d.ts +26 -0
- package/dist/modules/brief.js +99 -0
- package/dist/modules/calendar.d.ts +27 -0
- package/dist/modules/calendar.js +145 -0
- package/dist/modules/calibrate.d.ts +46 -0
- package/dist/modules/calibrate.js +92 -0
- package/dist/modules/cloud.d.ts +32 -0
- package/dist/modules/cloud.js +94 -0
- package/dist/modules/condor.d.ts +66 -0
- package/dist/modules/condor.js +214 -0
- package/dist/modules/connect.d.ts +47 -0
- package/dist/modules/connect.js +114 -0
- package/dist/modules/contradictions.d.ts +27 -0
- package/dist/modules/contradictions.js +76 -0
- package/dist/modules/country.d.ts +82 -0
- package/dist/modules/country.js +136 -0
- package/dist/modules/cricket.d.ts +34 -0
- package/dist/modules/cricket.js +166 -0
- package/dist/modules/darkships.d.ts +219 -0
- package/dist/modules/darkships.js +400 -0
- package/dist/modules/defi.d.ts +237 -0
- package/dist/modules/defi.js +512 -0
- package/dist/modules/emailsec.d.ts +47 -0
- package/dist/modules/emailsec.js +146 -0
- package/dist/modules/exposure.d.ts +43 -0
- package/dist/modules/exposure.js +89 -0
- package/dist/modules/factcheck.d.ts +39 -0
- package/dist/modules/factcheck.js +127 -0
- package/dist/modules/falcon.d.ts +58 -0
- package/dist/modules/falcon.js +219 -0
- package/dist/modules/feedback.d.ts +24 -0
- package/dist/modules/feedback.js +37 -0
- package/dist/modules/fence.d.ts +52 -0
- package/dist/modules/fence.js +128 -0
- package/dist/modules/ferret.d.ts +47 -0
- package/dist/modules/ferret.js +220 -0
- package/dist/modules/filings.d.ts +86 -0
- package/dist/modules/filings.js +166 -0
- package/dist/modules/fires.d.ts +56 -0
- package/dist/modules/fires.js +150 -0
- package/dist/modules/hazards.d.ts +37 -0
- package/dist/modules/hazards.js +83 -0
- package/dist/modules/health.d.ts +24 -0
- package/dist/modules/health.js +82 -0
- package/dist/modules/heron.d.ts +68 -0
- package/dist/modules/heron.js +184 -0
- package/dist/modules/hound.d.ts +100 -0
- package/dist/modules/hound.js +301 -0
- package/dist/modules/impact.d.ts +39 -0
- package/dist/modules/impact.js +63 -0
- package/dist/modules/launches.d.ts +24 -0
- package/dist/modules/launches.js +61 -0
- package/dist/modules/listen.d.ts +48 -0
- package/dist/modules/listen.js +125 -0
- package/dist/modules/lynx.d.ts +43 -0
- package/dist/modules/lynx.js +127 -0
- package/dist/modules/magpie.d.ts +70 -0
- package/dist/modules/magpie.js +174 -0
- package/dist/modules/meerkat.d.ts +42 -0
- package/dist/modules/meerkat.js +293 -0
- package/dist/modules/monitor.d.ts +27 -0
- package/dist/modules/monitor.js +105 -0
- package/dist/modules/narratives.d.ts +33 -0
- package/dist/modules/narratives.js +136 -0
- package/dist/modules/owl.d.ts +71 -0
- package/dist/modules/owl.js +290 -0
- package/dist/modules/papers.d.ts +46 -0
- package/dist/modules/papers.js +135 -0
- package/dist/modules/personal.d.ts +54 -0
- package/dist/modules/personal.js +153 -0
- package/dist/modules/pulse.d.ts +19 -0
- package/dist/modules/pulse.js +59 -0
- package/dist/modules/raven.d.ts +80 -0
- package/dist/modules/raven.js +147 -0
- package/dist/modules/recall.d.ts +44 -0
- package/dist/modules/recall.js +123 -0
- package/dist/modules/regs.d.ts +88 -0
- package/dist/modules/regs.js +142 -0
- package/dist/modules/rewind.d.ts +22 -0
- package/dist/modules/rewind.js +68 -0
- package/dist/modules/sanctions.d.ts +62 -0
- package/dist/modules/sanctions.js +173 -0
- package/dist/modules/scam.d.ts +43 -0
- package/dist/modules/scam.js +111 -0
- package/dist/modules/scoop.d.ts +31 -0
- package/dist/modules/scoop.js +74 -0
- package/dist/modules/ships.d.ts +33 -0
- package/dist/modules/ships.js +113 -0
- package/dist/modules/sky.d.ts +47 -0
- package/dist/modules/sky.js +183 -0
- package/dist/modules/squawk.d.ts +46 -0
- package/dist/modules/squawk.js +106 -0
- package/dist/modules/tortoise.d.ts +40 -0
- package/dist/modules/tortoise.js +104 -0
- package/dist/modules/travel.d.ts +94 -0
- package/dist/modules/travel.js +241 -0
- package/dist/modules/urlcheck.d.ts +63 -0
- package/dist/modules/urlcheck.js +223 -0
- package/dist/modules/vulns.d.ts +142 -0
- package/dist/modules/vulns.js +276 -0
- package/dist/plugins.d.ts +41 -0
- package/dist/plugins.js +70 -0
- package/dist/report.d.ts +12 -0
- package/dist/report.js +90 -0
- package/dist/scheduler.d.ts +22 -0
- package/dist/scheduler.js +139 -0
- package/dist/sources/aircraft.d.ts +76 -0
- package/dist/sources/aircraft.js +107 -0
- package/dist/sources/airports.d.ts +28 -0
- package/dist/sources/airports.js +100 -0
- package/dist/sources/ais.d.ts +32 -0
- package/dist/sources/ais.js +111 -0
- package/dist/sources/apify.d.ts +28 -0
- package/dist/sources/apify.js +80 -0
- package/dist/sources/arxiv.d.ts +13 -0
- package/dist/sources/arxiv.js +27 -0
- package/dist/sources/certs.d.ts +12 -0
- package/dist/sources/certs.js +23 -0
- package/dist/sources/corp.d.ts +46 -0
- package/dist/sources/corp.js +60 -0
- package/dist/sources/earth.d.ts +39 -0
- package/dist/sources/earth.js +76 -0
- package/dist/sources/fda.d.ts +77 -0
- package/dist/sources/fda.js +121 -0
- package/dist/sources/finance.d.ts +181 -0
- package/dist/sources/finance.js +270 -0
- package/dist/sources/gdelt.d.ts +19 -0
- package/dist/sources/gdelt.js +33 -0
- package/dist/sources/github.d.ts +17 -0
- package/dist/sources/github.js +33 -0
- package/dist/sources/hackernews.d.ts +20 -0
- package/dist/sources/hackernews.js +37 -0
- package/dist/sources/labels.d.ts +21 -0
- package/dist/sources/labels.js +87 -0
- package/dist/sources/launch.d.ts +16 -0
- package/dist/sources/launch.js +41 -0
- package/dist/sources/ofac.d.ts +29 -0
- package/dist/sources/ofac.js +86 -0
- package/dist/sources/onchain.d.ts +77 -0
- package/dist/sources/onchain.js +189 -0
- package/dist/sources/opentimestamps.d.ts +44 -0
- package/dist/sources/opentimestamps.js +131 -0
- package/dist/sources/polymarket.d.ts +36 -0
- package/dist/sources/polymarket.js +70 -0
- package/dist/sources/predict.d.ts +18 -0
- package/dist/sources/predict.js +59 -0
- package/dist/sources/press.d.ts +30 -0
- package/dist/sources/press.js +111 -0
- package/dist/sources/resend.d.ts +14 -0
- package/dist/sources/resend.js +29 -0
- package/dist/sources/robinhood.d.ts +109 -0
- package/dist/sources/robinhood.js +129 -0
- package/dist/sources/sec.d.ts +67 -0
- package/dist/sources/sec.js +129 -0
- package/dist/sources/sentinel.d.ts +13 -0
- package/dist/sources/sentinel.js +63 -0
- package/dist/sources/signatures.d.ts +14 -0
- package/dist/sources/signatures.js +103 -0
- package/dist/sources/social.d.ts +22 -0
- package/dist/sources/social.js +56 -0
- package/dist/sources/space.d.ts +160 -0
- package/dist/sources/space.js +230 -0
- package/dist/sources/usgs.d.ts +17 -0
- package/dist/sources/usgs.js +24 -0
- package/dist/sources/wayback.d.ts +10 -0
- package/dist/sources/wayback.js +28 -0
- package/dist/sources/websec.d.ts +19 -0
- package/dist/sources/websec.js +40 -0
- package/dist/sources/wikidata.d.ts +11 -0
- package/dist/sources/wikidata.js +30 -0
- package/dist/sources/wikimedia.d.ts +28 -0
- package/dist/sources/wikimedia.js +52 -0
- package/dist/telegram.d.ts +104 -0
- package/dist/telegram.js +927 -0
- package/dist/web/assets/favicon-32.png +0 -0
- package/dist/web/assets/fx.js +178 -0
- package/dist/web/assets/icon-192.png +0 -0
- package/dist/web/assets/icon-512.png +0 -0
- package/dist/web/assets/icon-maskable-512.png +0 -0
- package/dist/web/assets/night-americas.jpg +0 -0
- package/dist/web/assets/night-emea.jpg +0 -0
- package/dist/web/assets/og.png +0 -0
- package/dist/web/assets/redsea-bm.jpg +0 -0
- package/dist/web/docs.html +263 -0
- package/dist/web/index.html +1828 -0
- package/dist/web/insights.d.ts +100 -0
- package/dist/web/insights.js +134 -0
- package/dist/web/landing.html +1143 -0
- package/dist/web/legal.html +176 -0
- package/dist/web/manifest.webmanifest +20 -0
- package/dist/web/mcp.html +104 -0
- package/dist/web/mcphttp.d.ts +10 -0
- package/dist/web/mcphttp.js +67 -0
- package/dist/web/openapi.d.ts +1 -0
- package/dist/web/openapi.js +51 -0
- package/dist/web/public.d.ts +45 -0
- package/dist/web/public.js +135 -0
- package/dist/web/server.d.ts +69 -0
- package/dist/web/server.js +750 -0
- package/dist/web/share.d.ts +35 -0
- package/dist/web/share.js +132 -0
- package/dist/web/sw.js +28 -0
- package/package.json +60 -4
|
Binary file
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Oculon motion kit, shared by the landing page and the app.
|
|
3
|
+
* OculonFX.liquid(canvas, opts) grainy liquid gradient (WebGL fragment shader, domain-warped noise),
|
|
4
|
+
* pulled toward the pointer and stirred by scrolling.
|
|
5
|
+
* OculonFX.stream(canvas, opts) a band of flowing particles with a scanning lens that flags the
|
|
6
|
+
* particles inside it; click sends a shockwave through the band.
|
|
7
|
+
* Both pause when off screen and do nothing when the viewer prefers reduced motion.
|
|
8
|
+
*/
|
|
9
|
+
(function () {
|
|
10
|
+
const REDUCE = matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
11
|
+
const pointer = { x: 0.5, y: 0.5, tx: 0.5, ty: 0.5, down: 0 };
|
|
12
|
+
addEventListener('pointermove', (e) => { pointer.tx = e.clientX / innerWidth; pointer.ty = e.clientY / innerHeight; }, { passive: true });
|
|
13
|
+
let scrollV = 0, lastY = scrollY;
|
|
14
|
+
addEventListener('scroll', () => { scrollV += Math.abs(scrollY - lastY); lastY = scrollY; }, { passive: true });
|
|
15
|
+
// Scroll energy: one smoothed, capped value shared by every effect, so scrolling nudges the motion
|
|
16
|
+
// a little instead of making it race.
|
|
17
|
+
let energy = 0;
|
|
18
|
+
(function decay() { energy = Math.min(0.35, energy * 0.93 + Math.min(scrollV, 240) * 0.00035); scrollV = 0; requestAnimationFrame(decay); })();
|
|
19
|
+
|
|
20
|
+
function whileVisible(el, start, stop) {
|
|
21
|
+
if (!('IntersectionObserver' in window)) { start(); return; }
|
|
22
|
+
new IntersectionObserver((es) => (es.some((e) => e.isIntersecting) ? start() : stop())).observe(el);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const FRAG = `
|
|
26
|
+
precision highp float;
|
|
27
|
+
uniform vec2 uRes; uniform float uTime; uniform vec2 uMouse; uniform float uStir; uniform float uIntensity; uniform vec3 uA; uniform vec3 uB; uniform vec3 uC;
|
|
28
|
+
float hash(vec2 p){ p = fract(p * vec2(123.34, 456.21)); p += dot(p, p + 45.32); return fract(p.x * p.y); }
|
|
29
|
+
float noise(vec2 p){ vec2 i = floor(p), f = fract(p); vec2 u = f * f * (3.0 - 2.0 * f);
|
|
30
|
+
return mix(mix(hash(i), hash(i + vec2(1,0)), u.x), mix(hash(i + vec2(0,1)), hash(i + vec2(1,1)), u.x), u.y); }
|
|
31
|
+
float fbm(vec2 p){ float v = 0.0, a = 0.5; mat2 m = mat2(1.6, 1.2, -1.2, 1.6); for (int i = 0; i < 5; i++) { v += a * noise(p); p = m * p; a *= 0.5; } return v; }
|
|
32
|
+
void main(){
|
|
33
|
+
vec2 uv = gl_FragCoord.xy / uRes; vec2 p = uv * vec2(uRes.x / uRes.y, 1.0) * 1.6;
|
|
34
|
+
vec2 m = uMouse * vec2(uRes.x / uRes.y, 1.0) * 1.6;
|
|
35
|
+
float t = uTime * 0.07;
|
|
36
|
+
// pull the fluid toward the pointer
|
|
37
|
+
vec2 d = p - m; float pull = exp(-dot(d, d) * 1.6);
|
|
38
|
+
p -= d * pull * 0.35;
|
|
39
|
+
vec2 q = vec2(fbm(p + t), fbm(p + vec2(5.2, 1.3) - t));
|
|
40
|
+
vec2 r = vec2(fbm(p + 3.8 * q + vec2(1.7, 9.2) + t * 1.3), fbm(p + 3.8 * q + vec2(8.3, 2.8) - t * 0.9));
|
|
41
|
+
float f = fbm(p + 4.0 * r);
|
|
42
|
+
float ink = smoothstep(0.38, 0.95, f + pull * 0.25);
|
|
43
|
+
vec3 col = mix(uA, uB, smoothstep(0.15, 0.7, ink));
|
|
44
|
+
col = mix(col, uC, smoothstep(0.72, 1.0, ink + length(q) * 0.15));
|
|
45
|
+
// film grain, like the reference
|
|
46
|
+
float g = hash(gl_FragCoord.xy + fract(uTime) * 100.0) - 0.5;
|
|
47
|
+
col += g * 0.09;
|
|
48
|
+
gl_FragColor = vec4(col * uIntensity, 1.0);
|
|
49
|
+
}`;
|
|
50
|
+
|
|
51
|
+
function liquid(canvas, opts = {}) {
|
|
52
|
+
if (REDUCE) return;
|
|
53
|
+
const gl = canvas.getContext('webgl', { premultipliedAlpha: false, antialias: false });
|
|
54
|
+
if (!gl) return;
|
|
55
|
+
const sh = (type, src) => { const s = gl.createShader(type); gl.shaderSource(s, src); gl.compileShader(s); return s; };
|
|
56
|
+
const prog = gl.createProgram();
|
|
57
|
+
gl.attachShader(prog, sh(gl.VERTEX_SHADER, 'attribute vec2 a; void main(){ gl_Position = vec4(a, 0.0, 1.0); }'));
|
|
58
|
+
gl.attachShader(prog, sh(gl.FRAGMENT_SHADER, FRAG));
|
|
59
|
+
gl.linkProgram(prog);
|
|
60
|
+
if (!gl.getProgramParameter(prog, gl.LINK_STATUS)) return;
|
|
61
|
+
gl.useProgram(prog);
|
|
62
|
+
const buf = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buf);
|
|
63
|
+
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 1, -1, -1, 1, 1, 1]), gl.STATIC_DRAW);
|
|
64
|
+
const loc = gl.getAttribLocation(prog, 'a'); gl.enableVertexAttribArray(loc); gl.vertexAttribPointer(loc, 2, gl.FLOAT, false, 0, 0);
|
|
65
|
+
const u = (n) => gl.getUniformLocation(prog, n);
|
|
66
|
+
const U = { res: u('uRes'), time: u('uTime'), mouse: u('uMouse'), stir: u('uStir'), int: u('uIntensity'), a: u('uA'), b: u('uB'), c: u('uC') };
|
|
67
|
+
const hex = (h) => [1, 3, 5].map((i) => parseInt(h.slice(i, i + 2), 16) / 255);
|
|
68
|
+
gl.uniform3fv(U.a, hex(opts.base || '#000000'));
|
|
69
|
+
gl.uniform3fv(U.b, hex(opts.mid || '#003a52'));
|
|
70
|
+
gl.uniform3fv(U.c, hex(opts.hi || '#00f0ff'));
|
|
71
|
+
const scale = opts.scale || 0.5; // render at half resolution; the shape is soft anyway
|
|
72
|
+
const size = () => { const w = canvas.clientWidth, h = canvas.clientHeight; canvas.width = Math.max(1, Math.round(w * scale)); canvas.height = Math.max(1, Math.round(h * scale)); gl.viewport(0, 0, canvas.width, canvas.height); };
|
|
73
|
+
size(); addEventListener('resize', size);
|
|
74
|
+
let on = false, raf = 0, stir = 0;
|
|
75
|
+
let phase = Math.random() * 60, prev = performance.now();
|
|
76
|
+
const frame = (now) => {
|
|
77
|
+
pointer.x += (pointer.tx - pointer.x) * 0.06; pointer.y += (pointer.ty - pointer.y) * 0.06;
|
|
78
|
+
// Time is integrated, not scaled, so a speed change never makes the fluid jump.
|
|
79
|
+
const dt = Math.min(0.05, (now - prev) / 1000); prev = now; phase += dt * (1 + energy * 1.2); stir = energy;
|
|
80
|
+
const r = canvas.getBoundingClientRect();
|
|
81
|
+
const mx = (pointer.x * innerWidth - r.left) / r.width, my = 1 - (pointer.y * innerHeight - r.top) / r.height;
|
|
82
|
+
gl.uniform2f(U.res, canvas.width, canvas.height);
|
|
83
|
+
gl.uniform1f(U.time, phase);
|
|
84
|
+
gl.uniform2f(U.mouse, mx, my);
|
|
85
|
+
gl.uniform1f(U.stir, stir);
|
|
86
|
+
gl.uniform1f(U.int, opts.intensity ?? 1);
|
|
87
|
+
gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
|
|
88
|
+
if (on) raf = requestAnimationFrame(frame);
|
|
89
|
+
};
|
|
90
|
+
whileVisible(canvas, () => { if (!on) { on = true; raf = requestAnimationFrame(frame); } }, () => { on = false; cancelAnimationFrame(raf); });
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function stream(canvas, opts = {}) {
|
|
94
|
+
if (REDUCE) return;
|
|
95
|
+
const x = canvas.getContext('2d');
|
|
96
|
+
let W = 0, H = 0, dpr = 1, parts = [];
|
|
97
|
+
const N = opts.count || 4200;
|
|
98
|
+
const cyan = opts.color || '#00f0ff', hot = opts.hot || '#ff4d6d';
|
|
99
|
+
// The band: a slow sine ribbon crossing the frame, thicker in the middle.
|
|
100
|
+
const band = (u, t) => {
|
|
101
|
+
const y = opts.y ?? 0.42;
|
|
102
|
+
return H * (y + Math.sin(u * 2.4 + t * 0.22) * 0.09 + Math.sin(u * 5.3 - t * 0.31) * 0.035 + (u - 0.5) * (opts.tilt ?? 0.16));
|
|
103
|
+
};
|
|
104
|
+
const size = () => {
|
|
105
|
+
dpr = Math.min(2, devicePixelRatio || 1); W = canvas.clientWidth; H = canvas.clientHeight;
|
|
106
|
+
canvas.width = W * dpr; canvas.height = H * dpr; x.setTransform(dpr, 0, 0, dpr, 0, 0);
|
|
107
|
+
const n = Math.round(N * Math.min(1.4, W / 1500));
|
|
108
|
+
parts = Array.from({ length: n }, () => {
|
|
109
|
+
const spread = (Math.random() + Math.random() + Math.random() - 1.5) / 1.5; // roughly normal
|
|
110
|
+
return { u: Math.random(), off: spread, z: Math.random(), sp: 0.012 + Math.random() * 0.02, vx: 0, vy: 0, dx: 0, dy: 0, flag: 0, anomaly: Math.random() < 0.06 };
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
size(); addEventListener('resize', size);
|
|
114
|
+
// Lens: follows the pointer over the canvas, otherwise wanders along the band.
|
|
115
|
+
const lens = { x: W * 0.55, y: H * 0.45, r: opts.lens || 90, active: false, count: 0, shown: 0 };
|
|
116
|
+
let waves = [];
|
|
117
|
+
canvas.addEventListener('pointermove', (e) => { const r = canvas.getBoundingClientRect(); lens.tx = e.clientX - r.left; lens.ty = e.clientY - r.top; lens.active = true; });
|
|
118
|
+
canvas.addEventListener('pointerleave', () => { lens.active = false; });
|
|
119
|
+
const host = opts.host || canvas;
|
|
120
|
+
host.addEventListener('pointerdown', (e) => { const r = canvas.getBoundingClientRect(); waves.push({ x: e.clientX - r.left, y: e.clientY - r.top, t0: performance.now() }); });
|
|
121
|
+
if (host !== canvas) {
|
|
122
|
+
host.addEventListener('pointermove', (e) => { const r = canvas.getBoundingClientRect(); lens.tx = e.clientX - r.left; lens.ty = e.clientY - r.top; lens.active = true; });
|
|
123
|
+
host.addEventListener('pointerleave', () => { lens.active = false; });
|
|
124
|
+
}
|
|
125
|
+
// Spontaneous bursts so the band never sits still.
|
|
126
|
+
setInterval(() => { if (!document.hidden && W) waves.push({ x: W * (0.15 + Math.random() * 0.7), y: band(Math.random(), performance.now() / 1000), t0: performance.now(), soft: true }); }, 3800);
|
|
127
|
+
let on = false, raf = 0, last = performance.now();
|
|
128
|
+
const frame = (now) => {
|
|
129
|
+
const t = now / 1000, dt = Math.min(0.05, (now - last) / 1000); last = now;
|
|
130
|
+
const boost = 1 + energy * 1.5;
|
|
131
|
+
x.clearRect(0, 0, W, H);
|
|
132
|
+
if (!lens.active) { const wu = (Math.sin(t * 0.13) * 0.5 + 0.5) * 0.8 + 0.1; lens.tx = W * wu; lens.ty = band(wu, t) + Math.sin(t * 0.7) * 20; }
|
|
133
|
+
lens.x += ((lens.tx ?? lens.x) - lens.x) * 0.12; lens.y += ((lens.ty ?? lens.y) - lens.y) * 0.12;
|
|
134
|
+
waves = waves.filter((w) => now - w.t0 < 1800);
|
|
135
|
+
let flagged = 0;
|
|
136
|
+
const thick = H * (opts.thickness ?? 0.085);
|
|
137
|
+
for (const p of parts) {
|
|
138
|
+
p.u += p.sp * dt * boost * (0.6 + p.z * 0.8);
|
|
139
|
+
if (p.u > 1.04) { p.u -= 1.08; p.dx = p.dy = 0; }
|
|
140
|
+
let px = p.u * W, py = band(p.u, t) + p.off * thick * (0.7 + 0.6 * Math.sin(p.u * 9 + t));
|
|
141
|
+
for (const w of waves) {
|
|
142
|
+
const k = Math.max(0, (now - w.t0) / 1800), rad = k * (w.soft ? 260 : 520), dx = px - w.x, dy = py - w.y, dist = Math.hypot(dx, dy) || 1;
|
|
143
|
+
const band2 = Math.abs(dist - rad);
|
|
144
|
+
if (band2 < 40) { const f = (1 - band2 / 40) * (1 - k) * (w.soft ? 10 : 34); p.dx += (dx / dist) * f; p.dy += (dy / dist) * f; }
|
|
145
|
+
}
|
|
146
|
+
p.dx *= 0.93; p.dy *= 0.93;
|
|
147
|
+
px += p.dx; py += p.dy;
|
|
148
|
+
const inLens = (px - lens.x) ** 2 + (py - lens.y) ** 2 < lens.r * lens.r;
|
|
149
|
+
p.flag = inLens ? Math.min(1, p.flag + 0.2) : Math.max(0, p.flag - 0.05);
|
|
150
|
+
const isHot = inLens && p.anomaly;
|
|
151
|
+
if (isHot) flagged++;
|
|
152
|
+
const a = 0.25 + p.z * 0.65;
|
|
153
|
+
if (isHot) { x.fillStyle = hot; x.fillRect(px - 1.6, py - 1.6, 3.2, 3.2); }
|
|
154
|
+
else if (p.flag > 0) { x.fillStyle = `rgba(0,240,255,${0.5 + p.flag * 0.5})`; x.fillRect(px - 1.1, py - 1.1, 2.2, 2.2); }
|
|
155
|
+
else { x.fillStyle = `rgba(${p.z > 0.85 ? '120,248,255' : '0,200,230'},${a})`; x.fillRect(px, py, p.z > 0.7 ? 1.6 : 1.1, p.z > 0.7 ? 1.6 : 1.1); }
|
|
156
|
+
if (isHot && Math.random() < 0.35) { x.strokeStyle = 'rgba(255,77,109,.35)'; x.lineWidth = 0.6; x.beginPath(); x.moveTo(px, py); x.lineTo(lens.x, lens.y); x.stroke(); }
|
|
157
|
+
}
|
|
158
|
+
// shockwave rings
|
|
159
|
+
for (const w of waves) { const k = Math.max(0, (now - w.t0) / 1800); x.strokeStyle = `rgba(0,240,255,${(1 - k) * (w.soft ? 0.25 : 0.7)})`; x.lineWidth = w.soft ? 1 : 1.6; x.beginPath(); x.arc(w.x, w.y, k * (w.soft ? 260 : 520), 0, 7); x.stroke(); }
|
|
160
|
+
// lens ring with ticks and a live count
|
|
161
|
+
lens.count = flagged; lens.shown += (flagged - lens.shown) * 0.2;
|
|
162
|
+
x.strokeStyle = 'rgba(200,245,255,.55)'; x.lineWidth = 1; x.beginPath(); x.arc(lens.x, lens.y, lens.r, 0, 7); x.stroke();
|
|
163
|
+
x.strokeStyle = 'rgba(0,240,255,.9)'; x.lineWidth = 2; x.beginPath(); x.arc(lens.x, lens.y, lens.r, t * 1.6, t * 1.6 + 0.9); x.stroke();
|
|
164
|
+
for (let i = 0; i < 4; i++) { const ang = i * Math.PI / 2 + t * 0.4; x.beginPath(); x.moveTo(lens.x + Math.cos(ang) * (lens.r + 4), lens.y + Math.sin(ang) * (lens.r + 4)); x.lineTo(lens.x + Math.cos(ang) * (lens.r + 12), lens.y + Math.sin(ang) * (lens.r + 12)); x.strokeStyle = 'rgba(0,240,255,.7)'; x.lineWidth = 1; x.stroke(); }
|
|
165
|
+
const left = lens.x + lens.r + 170 > W; x.textAlign = left ? 'right' : 'left'; const lx = left ? lens.x - lens.r - 16 : lens.x + lens.r + 16;
|
|
166
|
+
x.font = '13px "Space Mono", monospace';
|
|
167
|
+
const label = `${Math.round(lens.shown)} flagged`;
|
|
168
|
+
x.fillStyle = flagged ? hot : 'rgba(170,236,255,.75)';
|
|
169
|
+
x.fillText(label, lx, lens.y + 4);
|
|
170
|
+
x.fillStyle = 'rgba(170,236,255,.45)'; x.font = '10.5px "Space Mono", monospace';
|
|
171
|
+
x.fillText(opts.caption || 'anomaly scan', lx, lens.y + 20); x.textAlign = 'left';
|
|
172
|
+
if (on) raf = requestAnimationFrame(frame);
|
|
173
|
+
};
|
|
174
|
+
whileVisible(canvas, () => { if (!on) { on = true; last = performance.now(); raf = requestAnimationFrame(frame); } }, () => { on = false; cancelAnimationFrame(raf); });
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
window.OculonFX = { liquid, stream, reduce: REDUCE };
|
|
178
|
+
})();
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<link rel="manifest" href="/manifest.webmanifest">
|
|
7
|
+
<meta name="theme-color" content="#000000">
|
|
8
|
+
<link rel="icon" type="image/png" href="/favicon.ico">
|
|
9
|
+
<link rel="apple-touch-icon" href="/assets/icon-192.png">
|
|
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">
|
|
12
|
+
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
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
|
+
<style>
|
|
15
|
+
: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
|
+
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}
|
|
17
|
+
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased;overflow-x:clip}
|
|
18
|
+
a{color:inherit}
|
|
19
|
+
.lbl{font:12px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--mut)}
|
|
20
|
+
header{position:sticky;top:0;z-index:5;background:rgba(0,0,0,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
|
|
21
|
+
header .in{display:flex;align-items:center;justify-content:space-between;padding:18px clamp(20px,3vw,40px);gap:20px}
|
|
22
|
+
.logo{font-size:17px;font-weight:600;letter-spacing:.4em;text-decoration:none}
|
|
23
|
+
.logo span{color:var(--mut);letter-spacing:.2em;font-weight:400;margin-left:10px}
|
|
24
|
+
header nav{display:flex;gap:24px;align-items:center;font-size:14px}
|
|
25
|
+
header nav a{text-decoration:none;color:var(--soft)}
|
|
26
|
+
.btn{background:var(--y);color:#001418 !important;padding:9px 14px;font-weight:600;text-decoration:none}
|
|
27
|
+
.layout{display:grid;grid-template-columns:280px minmax(0,1fr) 240px;min-height:calc(100vh - 66px)}
|
|
28
|
+
aside.left{border-right:1px solid var(--line);padding:36px 30px;position:sticky;top:66px;height:calc(100vh - 66px);overflow:auto}
|
|
29
|
+
aside.left a{display:block;text-decoration:none;color:var(--mut);font-size:15px;line-height:1.3;padding:7px 0 7px 12px;border-left:2px solid transparent;margin-left:-14px}
|
|
30
|
+
aside.left a.on{color:#fff;border-left-color:var(--y)}
|
|
31
|
+
aside.right{border-left:1px solid var(--line);padding:56px 26px;position:sticky;top:66px;height:calc(100vh - 66px);overflow:auto}
|
|
32
|
+
aside.right a{display:block;text-decoration:none;color:var(--mut);font-size:13.5px;line-height:1.35;padding:5px 0}
|
|
33
|
+
main{padding:64px clamp(20px,5vw,72px) 120px;max-width:1020px}
|
|
34
|
+
main h1{margin:14px 0 18px;font-size:clamp(44px,5vw,64px);font-weight:300;letter-spacing:-.04em;line-height:1}
|
|
35
|
+
main h2{margin:72px 0 16px;font-size:36px;font-weight:300;letter-spacing:-.03em;padding-top:28px;border-top:1px solid var(--line)}
|
|
36
|
+
main h3{margin:36px 0 10px;font-size:22px;font-weight:400}
|
|
37
|
+
main p,main li{font-size:17px;line-height:1.7;color:var(--soft);font-weight:300}
|
|
38
|
+
main ul{padding-left:20px}
|
|
39
|
+
main strong{color:#fff;font-weight:500}
|
|
40
|
+
main a{color:#fff;text-decoration-color:var(--y);text-underline-offset:3px}
|
|
41
|
+
code{font-family:var(--mono);font-size:.86em;background:#111;border:1px solid #1d1d1d;padding:1px 6px;color:#fff}
|
|
42
|
+
pre{background:var(--bg2);border:1px solid #262626;padding:18px 20px;overflow:auto;font:13px/1.75 var(--mono);color:#bdbdbd}
|
|
43
|
+
pre code{background:none;border:0;padding:0;color:inherit;font-size:inherit}
|
|
44
|
+
pre .c{color:var(--dim)}pre .k{color:var(--y)}
|
|
45
|
+
table{width:100%;border-collapse:collapse;margin:18px 0;font-size:14.5px;display:block;overflow-x:auto}
|
|
46
|
+
th,td{text-align:left;padding:12px 14px;border:1px solid var(--line);vertical-align:top;line-height:1.55;color:var(--soft)}
|
|
47
|
+
th{font:11px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--mut);background:#050505}
|
|
48
|
+
td:first-child{color:#fff;white-space:nowrap}
|
|
49
|
+
.intro{font-size:20px !important}
|
|
50
|
+
#help pre{max-height:none}
|
|
51
|
+
.skeleton{color:var(--mut);font:13px var(--mono)}
|
|
52
|
+
@media (max-width:1100px){.layout{grid-template-columns:240px minmax(0,1fr)}aside.right{display:none}}
|
|
53
|
+
@media (max-width:760px){.layout{grid-template-columns:minmax(0,1fr)}aside.left{display:none}header nav .opt{display:none}}
|
|
54
|
+
/* motion, shared with the landing page */
|
|
55
|
+
#liquidbg{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.34}
|
|
56
|
+
header,.layout{position:relative;z-index:1}
|
|
57
|
+
header{position:sticky}
|
|
58
|
+
header::after{content:'';position:absolute;left:-30%;bottom:-1px;width:30%;height:1px;background:linear-gradient(90deg,transparent,var(--y),transparent);animation:hscan 6s linear infinite}
|
|
59
|
+
@keyframes hscan{to{left:100%}}
|
|
60
|
+
.logo{background:linear-gradient(90deg,#fff 40%,var(--y) 50%,#fff 60%);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shim 7s linear infinite}
|
|
61
|
+
.logo span{-webkit-text-fill-color:var(--mut)}
|
|
62
|
+
@keyframes shim{from{background-position:100% 0}to{background-position:-200% 0}}
|
|
63
|
+
.band{position:relative;z-index:1;height:130px;margin-bottom:-130px;pointer-events:none;overflow:hidden}
|
|
64
|
+
.band canvas{position:absolute;inset:0;width:100%;height:100%}
|
|
65
|
+
.band canvas{-webkit-mask-image:linear-gradient(180deg,transparent,#000 30%,#000 65%,transparent);mask-image:linear-gradient(180deg,transparent,#000 30%,#000 65%,transparent)}
|
|
66
|
+
main pre,main table,th{background:rgba(6,6,6,.85)}
|
|
67
|
+
main h1{animation:rv .9s cubic-bezier(.2,.8,.2,1) both}
|
|
68
|
+
.rv{opacity:0;transform:translateY(22px);transition:opacity .8s ease,transform .8s ease}.rv.in{opacity:1;transform:none}
|
|
69
|
+
main h2{position:relative}main h2::before{content:'';position:absolute;left:0;top:-1px;height:1px;width:0;background:var(--y);transition:width 1.2s ease}main h2.in::before{width:120px}
|
|
70
|
+
aside.left a{transition:color .2s,border-color .3s,padding .3s}aside.left a:hover{color:#fff;padding-left:16px}
|
|
71
|
+
aside.left a.on{text-shadow:0 0 18px rgba(0,240,255,.6)}
|
|
72
|
+
@keyframes rv{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
|
|
73
|
+
.btn{transition:box-shadow .3s}.btn:hover{box-shadow:0 0 26px rgba(0,240,255,.45)}
|
|
74
|
+
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none !important;transition:none !important}.rv{opacity:1;transform:none}}
|
|
75
|
+
/* ---------- docs overview cards ---------- */
|
|
76
|
+
.dhero h1{margin:14px 0 12px}
|
|
77
|
+
.dhero p.lead{font-size:19px;line-height:1.65;color:var(--soft);font-weight:300;max-width:760px;margin:0}
|
|
78
|
+
.dstats{margin-top:30px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#1f2a2d;border:1px solid #1f2a2d}
|
|
79
|
+
.dstats div{background:rgba(4,8,9,.88);padding:16px 18px;position:relative;overflow:hidden}
|
|
80
|
+
.dstats div::after{content:'';position:absolute;top:0;bottom:0;left:-50%;width:50%;background:linear-gradient(90deg,transparent,rgba(0,240,255,.07),transparent);animation:dshine 6s ease-in-out infinite;animation-delay:calc(var(--i,0)*1.1s)}
|
|
81
|
+
@keyframes dshine{0%,55%{left:-50%}100%{left:120%}}
|
|
82
|
+
.dstats span{display:block;font:10.5px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--mut)}
|
|
83
|
+
.dstats b{display:block;font:300 34px var(--sans);margin-top:6px;letter-spacing:-.02em}
|
|
84
|
+
.dsec{margin-top:54px}
|
|
85
|
+
.dsec>h2{margin:0 0 6px;padding-top:0;border-top:0;font-size:30px}
|
|
86
|
+
.dsec>p.sub{margin:0 0 20px;font-size:15.5px;color:var(--mut)}
|
|
87
|
+
.qs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
|
|
88
|
+
.qc{border:1px solid #1f2a2d;background:rgba(4,8,9,.85);padding:18px 18px 16px;position:relative;overflow:hidden;transition:border-color .3s,transform .35s}
|
|
89
|
+
.qc:hover{border-color:rgba(0,240,255,.5);transform:translateY(-2px)}
|
|
90
|
+
.qc .n{font:12px var(--mono);color:var(--y)}
|
|
91
|
+
.qc h3{margin:8px 0 6px;font-size:18px;font-weight:500}
|
|
92
|
+
.qc p{margin:0;font-size:14px !important;line-height:1.55 !important;color:var(--mut) !important}
|
|
93
|
+
.qc .cmd{margin-top:12px;display:flex;align-items:center;gap:10px;background:#050a0b;border:1px solid #1a2629;padding:9px 10px 9px 12px;font:12.5px var(--mono);color:#e6fbff}
|
|
94
|
+
.qc .cmd code{background:none;border:0;padding:0;font-size:12.5px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
95
|
+
.qc .cmd .p{color:var(--y)}
|
|
96
|
+
.cp{background:none;border:1px solid #2a3b3f;color:#9fd8e2;font:11px var(--mono);padding:4px 9px;cursor:pointer;flex:none;transition:all .2s}
|
|
97
|
+
.cp:hover{border-color:var(--y);color:#fff}.cp.ok{border-color:#3fd16b;color:#3fd16b}
|
|
98
|
+
.surf{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
|
|
99
|
+
.sc{display:block;text-decoration:none !important;border:1px solid #1f2a2d;background:rgba(4,8,9,.85);padding:16px;position:relative;overflow:hidden;transition:border-color .3s,transform .35s}
|
|
100
|
+
.sc:hover{border-color:rgba(0,240,255,.55);transform:translateY(-3px)}
|
|
101
|
+
.sc::after{content:'';position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,transparent,var(--y),transparent);transform:translateX(-100%);transition:transform .7s}
|
|
102
|
+
.sc:hover::after{transform:translateX(100%)}
|
|
103
|
+
.sc .ic{font:600 13px var(--mono);color:var(--y)}
|
|
104
|
+
.sc h3{margin:10px 0 4px;font-size:17px;font-weight:500;color:#fff}
|
|
105
|
+
.sc p{margin:0;font-size:13px !important;line-height:1.5 !important;color:var(--mut) !important}
|
|
106
|
+
.msearch{display:flex;align-items:center;gap:10px;border:1px solid #1f2a2d;background:rgba(4,8,9,.85);padding:10px 14px;margin-bottom:14px}
|
|
107
|
+
.msearch input{flex:1;background:none;border:0;outline:0;color:#fff;font:14px var(--mono);min-width:0}
|
|
108
|
+
.msearch input::placeholder{color:#3f5b60}
|
|
109
|
+
.msearch span{font:12px var(--mono);color:var(--mut)}
|
|
110
|
+
.msearch:focus-within{border-color:var(--y);box-shadow:0 0 22px rgba(0,240,255,.15)}
|
|
111
|
+
.mods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
|
|
112
|
+
.mc{border:1px solid #1f2a2d;background:rgba(4,8,9,.85);padding:16px 16px 14px;position:relative;overflow:hidden;transition:border-color .3s,transform .35s;animation:mcin .5s cubic-bezier(.2,.8,.2,1) both}
|
|
113
|
+
@keyframes mcin{from{opacity:0;transform:translateY(12px)}}
|
|
114
|
+
.mc:hover{border-color:rgba(0,240,255,.5);transform:translateY(-2px)}
|
|
115
|
+
.mc h3{margin:0;font-size:17px;font-weight:500;color:#fff}
|
|
116
|
+
.mc .c{margin-top:8px;font:12px var(--mono);color:var(--y);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
117
|
+
.mc p{margin:8px 0 0 !important;font-size:13.5px !important;line-height:1.5 !important;color:var(--mut) !important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
|
|
118
|
+
.mc .s{margin-top:10px;font:10.5px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:#4f7177;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
119
|
+
.mc mark{background:rgba(0,240,255,.25);color:#fff}
|
|
120
|
+
.mempty{font:13px var(--mono);color:var(--mut);padding:18px 0}
|
|
121
|
+
@media (max-width:1100px){.surf{grid-template-columns:repeat(3,minmax(0,1fr))}.mods{grid-template-columns:repeat(2,minmax(0,1fr))}}
|
|
122
|
+
@media (max-width:640px){.dstats{grid-template-columns:repeat(2,minmax(0,1fr))}.qs,.mods{grid-template-columns:minmax(0,1fr)}.surf{grid-template-columns:repeat(2,minmax(0,1fr))}}
|
|
123
|
+
#doc > h1:first-child{display:none}
|
|
124
|
+
</style>
|
|
125
|
+
</head>
|
|
126
|
+
<body>
|
|
127
|
+
<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>
|
|
128
|
+
<canvas id="liquidbg" aria-hidden="true"></canvas>
|
|
129
|
+
<div class="layout">
|
|
130
|
+
<aside class="left"><div class="lbl" style="margin-bottom:14px">Guide</div><div id="toc"></div></aside>
|
|
131
|
+
<main><div class="lbl">Documentation · <span id="ver">v—</span></div><section class="dhero" id="overview-cards">
|
|
132
|
+
<h1>Oculon documentation</h1>
|
|
133
|
+
<p class="lead">An open-source intelligence engine you run yourself. Start with the four commands below, pick the surface you work in, then find the module you need.</p>
|
|
134
|
+
<div class="dstats"><div><span>Version</span><b id="ds-ver">—</b></div><div><span>Modules</span><b id="ds-mod">—</b></div><div><span>MCP tools</span><b id="ds-mcp">—</b></div><div><span>Public sources</span><b id="ds-src">—</b></div></div>
|
|
135
|
+
<div class="dsec"><h2 id="start-here">Start here</h2><p class="sub">Four commands, in the order most people run them.</p>
|
|
136
|
+
<div class="qs">
|
|
137
|
+
<div class="qc"><div class="n">01</div><h3>Install</h3><p>Needs Node.js 22.13 or newer. No runtime dependencies.</p><div class="cmd"><span class="p">$</span><code>npm i -g oculon</code><button class="cp" type="button">copy</button></div></div>
|
|
138
|
+
<div class="qc"><div class="n">02</div><h3>Take the tour</h3><p>Shows what this install knows and what to try next.</p><div class="cmd"><span class="p">$</span><code>oculon tour</code><button class="cp" type="button">copy</button></div></div>
|
|
139
|
+
<div class="qc"><div class="n">03</div><h3>Open the web app</h3><p>Overview page, console, dashboard and these docs, with the schedule and live streams running.</p><div class="cmd"><span class="p">$</span><code>oculon serve --watch 15 --live</code><button class="cp" type="button">copy</button></div></div>
|
|
140
|
+
<div class="qc"><div class="n">04</div><h3>Connect an agent</h3><p>Add the remote MCP server to Claude Code, or run <code>oculon mcp</code> on stdio.</p><div class="cmd"><span class="p">$</span><code>claude mcp add --transport http oculon https://mcp.oculon.live</code><button class="cp" type="button">copy</button></div></div>
|
|
141
|
+
</div></div>
|
|
142
|
+
<div class="dsec"><h2 id="surfaces">Surfaces</h2><p class="sub">The same results in six places. Each card jumps to its section.</p>
|
|
143
|
+
<div class="surf">
|
|
144
|
+
<a class="sc" href="#cli"><div class="ic">$_</div><h3>CLI</h3><p>Every module, plain text or --json.</p></a>
|
|
145
|
+
<a class="sc" href="#remote-mcp"><div class="ic">⇄</div><h3>Remote MCP</h3><p>One URL, nothing to install.</p></a>
|
|
146
|
+
<a class="sc" href="#sdk"><div class="ic">{ }</div><h3>SDK</h3><p>TypeScript, same result objects.</p></a>
|
|
147
|
+
<a class="sc" href="#mcp-server"><div class="ic"></></div><h3>MCP server</h3><p><span class="mcpn">71</span> tools for agents.</p></a>
|
|
148
|
+
<a class="sc" href="#dashboard-and-schedule"><div class="ic">▦</div><h3>Web and schedule</h3><p>Overview, console, dashboard.</p></a>
|
|
149
|
+
<a class="sc" href="#telegram-bot"><div class="ic">✈</div><h3>Telegram bot</h3><p>Alerts with Useful and Noise votes.</p></a>
|
|
150
|
+
</div></div>
|
|
151
|
+
<div class="dsec"><h2 id="module-finder">Module finder</h2><p class="sub">Every module from the table in <a href="#what-it-does">What it does</a>. Type to filter by name, command or source.</p>
|
|
152
|
+
<label class="msearch"><span>⌕</span><input id="mq" placeholder="cve, ships, satellite, sanctions…" autocomplete="off" spellcheck="false"><span id="mn"></span></label>
|
|
153
|
+
<div class="mods" id="mods"></div></div>
|
|
154
|
+
</section>
|
|
155
|
+
<div id="doc" class="skeleton">Loading…</div>
|
|
156
|
+
<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>
|
|
157
|
+
</main>
|
|
158
|
+
<aside class="right"><div class="lbl" style="margin-bottom:12px">On this page</div><div id="otp"></div></aside>
|
|
159
|
+
</div>
|
|
160
|
+
<script src="/assets/fx.js"></script>
|
|
161
|
+
<script>
|
|
162
|
+
if (window.OculonFX) { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); }
|
|
163
|
+
// Headings, tables and code blocks rise in as they scroll into view.
|
|
164
|
+
const rvio = new IntersectionObserver((es) => es.forEach((e) => { if (e.isIntersecting) { e.target.classList.add('in'); rvio.unobserve(e.target); } }), { threshold: 0.08 });
|
|
165
|
+
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); } });
|
|
166
|
+
const $ = (id) => document.getElementById(id);
|
|
167
|
+
const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
168
|
+
const slug = (s) => s.toLowerCase().replace(/<[^>]+>/g, '').replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '');
|
|
169
|
+
|
|
170
|
+
/* Small Markdown renderer for the README: headings, paragraphs, lists, fenced code, tables, inline code, bold, links. */
|
|
171
|
+
function inline(s) {
|
|
172
|
+
const codes = [];
|
|
173
|
+
s = s.replace(/`([^`]+)`/g, (_, c) => `\u0000${codes.push(c) - 1}\u0000`);
|
|
174
|
+
s = esc(s);
|
|
175
|
+
s = s.replace(/\*\*([^*]+)\*\*/g, '<strong>$1</strong>');
|
|
176
|
+
s = s.replace(/\[([^\]]+)\]\(([^)\s]+)\)/g, (_, t, u) => /^(https?:|#|\/)/.test(u) ? `<a href="${u}"${u.startsWith('http') ? ' target="_blank" rel="noopener"' : ''}>${t}</a>` : t);
|
|
177
|
+
return s.replace(/\u0000(\d+)\u0000/g, (_, i) => `<code>${esc(codes[i])}</code>`);
|
|
178
|
+
}
|
|
179
|
+
function md(src) {
|
|
180
|
+
const lines = src.replace(/\r\n/g, '\n').split('\n'); let html = '', i = 0;
|
|
181
|
+
while (i < lines.length) {
|
|
182
|
+
const l = lines[i];
|
|
183
|
+
if (/^```/.test(l)) { const buf = []; i++; while (i < lines.length && !/^```/.test(lines[i])) buf.push(lines[i++]); i++; html += `<pre><code>${buf.map((b) => { const e = esc(b); const m = e.match(/^(.*?)(\s+#\s.*)$/); return m ? `${m[1].replace(/^oculon\b/, '<span class="k">oculon</span>')}<span class="c">${m[2]}</span>` : e.replace(/^oculon\b/, '<span class="k">oculon</span>'); }).join('\n')}</code></pre>`; continue; }
|
|
184
|
+
const h = /^(#{1,4})\s+(.*)$/.exec(l);
|
|
185
|
+
if (h) { const lv = h[1].length, t = inline(h[2]); html += lv === 1 ? `<h1>${t}</h1>` : `<h${lv} id="${slug(h[2])}">${t}</h${lv}>`; i++; continue; }
|
|
186
|
+
if (/^\|/.test(l)) { const rows = []; while (i < lines.length && /^\|/.test(lines[i])) rows.push(lines[i++]); const cells = (r) => r.replace(/^\||\|$/g, '').split(/(?<!\\)\|/).map((c) => inline(c.trim().replace(/\\\|/g, '|'))); const head = cells(rows[0]); const body = rows.slice(2).map(cells); html += `<table><thead><tr>${head.map((c) => `<th>${c}</th>`).join('')}</tr></thead><tbody>${body.map((r) => `<tr>${r.map((c) => `<td>${c}</td>`).join('')}</tr>`).join('')}</tbody></table>`; continue; }
|
|
187
|
+
if (/^\s*[-*]\s+/.test(l)) { const items = []; while (i < lines.length && /^\s*[-*]\s+/.test(lines[i])) { let item = lines[i++].replace(/^\s*[-*]\s+/, ''); while (i < lines.length && /^\s{2,}\S/.test(lines[i]) && !/^\s*[-*]\s+/.test(lines[i])) item += ' ' + lines[i++].trim(); items.push(item); } html += `<ul>${items.map((t) => `<li>${inline(t)}</li>`).join('')}</ul>`; continue; }
|
|
188
|
+
if (/^\s*\d+\.\s+/.test(l)) { const items = []; while (i < lines.length && /^\s*\d+\.\s+/.test(lines[i])) items.push(lines[i++].replace(/^\s*\d+\.\s+/, '')); html += `<ol>${items.map((t) => `<li>${inline(t)}</li>`).join('')}</ol>`; continue; }
|
|
189
|
+
if (!l.trim()) { i++; continue; }
|
|
190
|
+
const buf = []; while (i < lines.length && lines[i].trim() && !/^(#|```|\||\s*[-*]\s|\s*\d+\.\s)/.test(lines[i])) buf.push(lines[i++]);
|
|
191
|
+
html += `<p>${inline(buf.join(' '))}</p>`;
|
|
192
|
+
}
|
|
193
|
+
return html;
|
|
194
|
+
}
|
|
195
|
+
function buildNav() {
|
|
196
|
+
const hs = [...document.querySelectorAll('main h2[id]')];
|
|
197
|
+
$('toc').innerHTML = hs.map((h) => `<a href="#${h.id}">${h.textContent}</a>`).join('');
|
|
198
|
+
const links = [...$('toc').querySelectorAll('a')];
|
|
199
|
+
const spy = () => {
|
|
200
|
+
let cur = hs[0];
|
|
201
|
+
for (const h of hs) if (h.getBoundingClientRect().top < 140) cur = h;
|
|
202
|
+
links.forEach((a) => a.classList.toggle('on', a.getAttribute('href') === `#${cur?.id}`));
|
|
203
|
+
const sec = []; let on = false;
|
|
204
|
+
for (const el of document.querySelectorAll('main h2[id], main h3[id]')) { if (el.tagName === 'H2') on = el === cur; else if (on) sec.push(el); }
|
|
205
|
+
$('otp').innerHTML = sec.length ? sec.map((h) => `<a href="#${h.id}">${h.textContent}</a>`).join('') : `<a href="#${cur?.id}">${cur?.textContent ?? ''}</a>`;
|
|
206
|
+
};
|
|
207
|
+
addEventListener('scroll', spy, { passive: true }); spy();
|
|
208
|
+
}
|
|
209
|
+
fetch('/api/readme').then((r) => r.json()).then((j) => {
|
|
210
|
+
const doc = $('doc'); doc.className = ''; doc.innerHTML = md(j.markdown);
|
|
211
|
+
const first = doc.querySelector('p'); if (first) first.classList.add('intro');
|
|
212
|
+
buildNav(); reveal();
|
|
213
|
+
// A link straight to a section (#remote-mcp) skips the rise-in, which could leave the jumped-to text hidden on phones.
|
|
214
|
+
if (location.hash) {
|
|
215
|
+
document.querySelectorAll('.rv').forEach((el) => { el.classList.add('in'); rvio.unobserve(el); });
|
|
216
|
+
document.getElementById(decodeURIComponent(location.hash.slice(1)))?.scrollIntoView({ behavior: 'instant', block: 'start' });
|
|
217
|
+
}
|
|
218
|
+
}).catch((e) => { $('doc').textContent = `Could not load the README: ${e.message}`; });
|
|
219
|
+
fetch('/api/meta').then((r) => r.json()).then((m) => { $('ver').textContent = `v${m.version}`; }).catch(() => {});
|
|
220
|
+
fetch('/api/console?cmd=help').then((r) => r.json()).then((r) => {
|
|
221
|
+
const o = $('help-out'); o.className = '';
|
|
222
|
+
o.innerHTML = `<pre><code>${esc(r.output).split('\n').map((l) => /^\S/.test(l) ? `<span style="color:#fff;font-weight:700">${l}</span>` : l.replace(/^(\s+)(oculon)\b/, '$1<span class="k">$2</span>')).join('\n')}</code></pre>`;
|
|
223
|
+
buildNav(); reveal();
|
|
224
|
+
}).catch(() => { $('help-out').textContent = 'Run oculon help in a terminal for the full list.'; });
|
|
225
|
+
|
|
226
|
+
/* ---------- overview cards: stats, copy buttons, module finder (all read from this install) ---------- */
|
|
227
|
+
document.querySelectorAll('.dstats div').forEach((el, i) => el.style.setProperty('--i', i));
|
|
228
|
+
const dCount = (el, to) => { if (window.OculonFX?.reduce) { el.textContent = to; return; } const t0 = performance.now(); const tick = (t) => { const k = Math.min(1, (t - t0) / 1200), e = 1 - Math.pow(1 - k, 3); el.textContent = Math.round(to * e); if (k < 1) requestAnimationFrame(tick); }; requestAnimationFrame(tick); };
|
|
229
|
+
fetch('/api/meta').then((r) => r.json()).then((m) => { $('ds-ver').textContent = m.version; dCount($('ds-mod'), m.modules); dCount($('ds-mcp'), m.mcpTools); document.querySelectorAll('.mcpn').forEach((el) => { el.textContent = m.mcpTools; }); }).catch(() => {});
|
|
230
|
+
document.querySelectorAll('.qc .cp').forEach((b) => b.addEventListener('click', async () => {
|
|
231
|
+
const text = b.parentElement.querySelector('code').textContent;
|
|
232
|
+
try { await navigator.clipboard.writeText(text); b.textContent = 'copied'; b.classList.add('ok'); } catch { b.textContent = 'select'; }
|
|
233
|
+
setTimeout(() => { b.textContent = 'copy'; b.classList.remove('ok'); }, 1600);
|
|
234
|
+
}));
|
|
235
|
+
fetch('/api/readme').then((r) => r.json()).then(({ markdown }) => {
|
|
236
|
+
const lines = markdown.split('\n');
|
|
237
|
+
const start = lines.findIndex((l) => /^\|\s*Module\s*\|\s*Command\s*\|/.test(l));
|
|
238
|
+
const mods = [];
|
|
239
|
+
for (let i = start + 2; start >= 0 && i < lines.length && /^\|/.test(lines[i]); i++) {
|
|
240
|
+
const c = lines[i].replace(/^\||\|$/g, '').split(/(?<!\\)\|/).map((x) => x.trim().replace(/\\\|/g, '|'));
|
|
241
|
+
if (c.length < 4) continue;
|
|
242
|
+
const plain = (s) => s.replace(/`/g, '').replace(/\*\*/g, '');
|
|
243
|
+
const desc = plain(c[2]);
|
|
244
|
+
mods.push({ name: plain(c[0]), cmd: plain(c[1]), desc, short: desc, src: plain(c[3]) });
|
|
245
|
+
}
|
|
246
|
+
// Source count, read the same way as on the overview page.
|
|
247
|
+
const names = new Set();
|
|
248
|
+
for (const m of mods) for (let n of m.src.replace(/\([^)]*\)/g, '').split(/,|;|\s\+\s|\band\b/)) { n = n.trim(); if (n && n.length <= 32 && !/[:()]/.test(n) && !/^(then|via|plus|pay|optional|own|none|local|oculon)\b/i.test(n) && !/ sources$/i.test(n) && !/^(Time Machine|HN)$/.test(n) && (/^[A-Z0-9]/.test(n) || /^[a-z0-9-]+(\.[a-z0-9-]+)+$/.test(n))) names.add(n); }
|
|
249
|
+
if (names.size) dCount($('ds-src'), names.size);
|
|
250
|
+
const hl = (s, q) => q ? esc(s).replace(new RegExp(`(${q.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')})`, 'ig'), '<mark>$1</mark>') : esc(s);
|
|
251
|
+
const render = () => {
|
|
252
|
+
const q = $('mq').value.trim();
|
|
253
|
+
const ql = q.toLowerCase();
|
|
254
|
+
const list = mods.filter((m) => !ql || `${m.name} ${m.cmd} ${m.desc} ${m.src}`.toLowerCase().includes(ql));
|
|
255
|
+
$("mn").textContent = `${list.length} of ${mods.length} entries`;
|
|
256
|
+
$('mods').innerHTML = list.map((m, i) => `<div class="mc" style="animation-delay:${Math.min(i, 12) * 30}ms" title="${esc(m.desc)}"><h3>${hl(m.name, q)}</h3><div class="c">${hl(m.cmd, q)}</div><p>${hl(m.short, q)}</p><div class="s">${hl(m.src, q)}</div></div>`).join('') || '<div class="mempty">No module matches that. Try a source name or a command.</div>';
|
|
257
|
+
};
|
|
258
|
+
$('mq').addEventListener('input', render);
|
|
259
|
+
render();
|
|
260
|
+
}).catch(() => { $('mods').innerHTML = '<div class="mempty">Could not read the module table.</div>'; });
|
|
261
|
+
</script>
|
|
262
|
+
</body>
|
|
263
|
+
</html>
|