Autonomous OODA-loop pentesting agent. Hermes brain, Kali + Playwright tools over MCP, ATT&CK as the Orient language.
Python ai-agentsautonomous-agentskali-linuxllm-agentsoffensive-securityooda-looppentestingplaywrightsecurity
feat(web): karaoke lyrics synced above waveform
irrazcd498de7b8a5
diff --git a/docs/page.js b/docs/page.jsindex 0ab86c5..bca31a7 100644--- a/docs/page.js+++ b/docs/page.js@@ -10,6 +10,7 @@window.initPostBoot = function (audioEl) {initToasts();initVisualizer(audioEl);+ initKaraoke(audioEl);};/* ═══════════════════════════════════════════════════════════════@@ -250,3 +251,131 @@ function initVisualizer(audioEl) {canvas.style.display = 'none';}}++/* ═══════════════════════════════════════════════════════════════+ KARAOKE — synchronized lyrics above the waveform+ One line at a time, fade in → hold → fade out.+ Adjust OFFSET (seconds) to shift all lyrics forward/backward.+═══════════════════════════════════════════════════════════════ */+function initKaraoke(audioEl) {+ if (!audioEl) return;++ // ── Global offset: positive = lyrics appear later, negative = earlier ──+ const OFFSET = 0;++ // ── Auto-synced via Whisper anchors (107.7 BPM, 249s) ──────────+ const LYRICS = [+ { t: 63.92, text: 'Scan the dark, the signal\'s clear', s: 'verse' },+ { t: 66.15, text: 'Hermes rises, death is near', s: 'verse' },+ { t: 68.38, text: 'Kali loaded, blades are drawn', s: 'verse' },+ { t: 70.61, text: 'Playwright crawls before the dawn', s: 'verse' },+ { t: 72.83, text: 'ATT&CK maps the kill-chain line', s: 'verse' },+ { t: 75.06, text: 'OODA loop begins the crime', s: 'verse' },+ { t: 77.68, text: 'No UI, no fucking gate', s: 'prechorus' },+ { t: 79.91, text: 'Four containers seal your fate', s: 'prechorus' },+ { t: 82.14, text: 'Direct attack, pure intent', s: 'prechorus' },+ { t: 84.37, text: 'Authorized target\u2026 no relent', s: 'prechorus' },+ { t: 85.22, text: 'VULNERATOR!', s: 'chorus' },+ { t: 87.54, text: 'Break the wall!', s: 'chorus' },+ { t: 89.86, text: 'VULNERATOR!', s: 'chorus' },+ { t: 92.18, text: 'Hear the call!', s: 'chorus' },+ { t: 94.50, text: 'Hermes brain, Kali blade', s: 'chorus' },+ { t: 96.81, text: 'We infiltrate, we never fade', s: 'chorus' },+ { t: 99.13, text: 'VULNERATOR!', s: 'chorus' },+ { t: 101.45, text: 'Rise and strike!', s: 'chorus' },+ { t: 103.77, text: 'VULNERATOR!', s: 'chorus' },+ { t: 106.08, text: 'Own the night!', s: 'chorus' },+ { t: 122.08, text: 'Nmap whispers, nuclei screams', s: 'verse' },+ { t: 124.31, text: 'Ffuf digs through broken dreams', s: 'verse' },+ { t: 126.54, text: 'Sqlmap cuts, gobuster crawls', s: 'verse' },+ { t: 128.77, text: 'Bloodhound maps the domain walls', s: 'verse' },+ { t: 130.99, text: 'Scope is set, the hunt is real', s: 'verse' },+ { t: 133.22, text: 'Every finding is made of steel', s: 'verse' },+ { t: 134.54, text: 'Minimal code, maximum speed', s: 'prechorus' },+ { t: 136.77, text: 'No middleman, pure need', s: 'prechorus' },+ { t: 139.00, text: 'Docker fortress, silent war', s: 'prechorus' },+ { t: 141.23, text: 'The agent walks the darkest floor', s: 'prechorus' },+ { t: 143.95, text: 'VULNERATOR!', s: 'chorus' },+ { t: 146.27, text: 'Break the wall!', s: 'chorus' },+ { t: 148.59, text: 'VULNERATOR!', s: 'chorus' },+ { t: 150.91, text: 'Hear the call!', s: 'chorus' },+ { t: 153.22, text: 'Hermes brain, Kali blade', s: 'chorus' },+ { t: 155.54, text: 'We infiltrate, we never fade', s: 'chorus' },+ { t: 157.86, text: 'VULNERATOR!', s: 'chorus' },+ { t: 160.18, text: 'Rise and strike!', s: 'chorus' },+ { t: 162.49, text: 'VULNERATOR!', s: 'chorus' },+ { t: 164.81, text: 'Own the night!', s: 'chorus' },+ { t: 170.08, text: 'Observe!', s: 'bridge' },+ { t: 171.47, text: 'Orient!', s: 'bridge' },+ { t: 172.87, text: 'Decide!', s: 'bridge' },+ { t: 174.26, text: 'ACT!', s: 'bridge' },+ { t: 175.65, text: 'Observe!', s: 'bridge' },+ { t: 177.04, text: 'Orient!', s: 'bridge' },+ { t: 178.44, text: 'Decide!', s: 'bridge' },+ { t: 179.83, text: 'ACT!', s: 'bridge' },+ ];++ // Apply offset+ const lines = LYRICS.map(l => ({ ...l, t: l.t + OFFSET }));++ // ── Wait for waveform canvas to exist then insert zone after it ──+ function insertZone() {+ const canvas = document.getElementById('visualizer');+ if (!canvas) { requestAnimationFrame(insertZone); return; }++ const zone = document.createElement('div');+ zone.id = 'karaoke-zone';++ const lineEl = document.createElement('div');+ lineEl.id = 'karaoke-line';+ zone.appendChild(lineEl);++ canvas.insertAdjacentElement('afterend', zone);+ startTracking(lineEl);+ }+ requestAnimationFrame(insertZone);++ function startTracking(lineEl) {+ let lastIdx = -1;+ let fadeOutTimer = null;++ function showLine(idx) {+ const entry = lines[idx];+ clearTimeout(fadeOutTimer);++ lineEl.className = 'kl kl--' + entry.s;+ lineEl.textContent = entry.text;+ lineEl.classList.add('kl--in');+ lineEl.classList.remove('kl--out');++ // Compute hold time until next line (min 0.8s, max 5s)+ const nextT = idx + 1 < lines.length ? lines[idx + 1].t : entry.t + 4;+ const hold = Math.max(800, Math.min(5000, (nextT - entry.t - 0.6) * 1000));++ fadeOutTimer = setTimeout(() => {+ lineEl.classList.add('kl--out');+ lineEl.classList.remove('kl--in');+ }, hold);+ }++ audioEl.addEventListener('timeupdate', () => {+ const t = audioEl.currentTime;+ let idx = -1;+ for (let i = 0; i < lines.length; i++) {+ if (lines[i].t <= t) idx = i;+ else break;+ }+ if (idx !== lastIdx) {+ lastIdx = idx;+ if (idx >= 0) showLine(idx);+ else {+ clearTimeout(fadeOutTimer);+ lineEl.className = 'kl';+ lineEl.textContent = '';+ }+ }+ });++ audioEl.addEventListener('seeked', () => { lastIdx = -1; });+ }+}diff --git a/docs/styles.css b/docs/styles.cssindex 37059a8..599a669 100644--- a/docs/styles.css+++ b/docs/styles.css@@ -1249,3 +1249,58 @@ body.has-sysbar .hero::before {background: var(--accent-soft);box-shadow: 0 0 12px rgba(176, 58, 58, 0.4);}++/* ── Karaoke zone — sits directly above the waveform ──────────── */+#karaoke-zone {+ width: 100%;+ height: 3.2rem;+ background: rgba(8, 0, 0, 0.97);+ border-bottom: 1px solid var(--panel-edge);+ display: flex;+ align-items: center;+ justify-content: center;+ overflow: hidden;+ position: relative;+}++#karaoke-line {+ font-family: var(--mono);+ text-align: center;+ letter-spacing: 0.06em;+ max-width: 90%;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ opacity: 0;+}++/* Fade in */+#karaoke-line.kl--in {+ animation: kl-fadein 0.35s ease forwards;+}+/* Fade out */+#karaoke-line.kl--out {+ animation: kl-fadeout 0.6s ease forwards;+}++@keyframes kl-fadein {+ from { opacity: 0; transform: translateY(4px); }+ to { opacity: 1; transform: translateY(0); }+}+@keyframes kl-fadeout {+ from { opacity: 1; transform: translateY(0); }+ to { opacity: 0; transform: translateY(-4px); }+}++/* Section colours */+.kl--verse { font-size: 1rem; color: #d0d0d0; }+.kl--prechorus { font-size: 1rem; color: #c75a5a; }+.kl--bridge { font-size: 1.1rem; font-weight: 700; color: #00ff41;+ text-shadow: 0 0 16px rgba(0,255,65,0.6); }+.kl--chorus {+ font-size: 1.25rem;+ font-weight: 700;+ color: #ff4444;+ letter-spacing: 0.1em;+ text-shadow: 0 0 22px rgba(255,68,68,0.75), 0 0 44px rgba(255,68,68,0.3);+}