The hub gates uncached /api/tts renders on the latest W4 host CPU sample (503 busy or unknown, cached lines always served, signed speech.threshold 30 to 90 in steps of 10, speech.gate in /api/state). The page plays a WebAudio squelch-tail burst when no speech plays, offers Auto, Quiet and Silence per browser, and always sounds the MAYDAY, PAN-PAN and SECURITE procedure word. The radio panel becomes a minimalist VHF faceplate with display line, mode buttons, knobs, PTT send and the internet station; the settings dialog loses its radio section. The log gets Sent, Received and All tabs with class, sender, recipient and agent chips plus text search. Decisions 3 and 10 of 004 now state that the procedure word still sounds in Silence. Security: MEDUSA-MEX-SCAN-1167 at orchestrator/kvb_orchestrator/hub.py:126 accepted as a false positive after the round 5 skeptic review and the operator pick of 2026-11-13 (regex hit on rce inside RESOURCES; CpuGate reads host CPU samples, no model). Break risk 6 % is above the 5 % bar; committed and merged on the operator pick of 2026-11-13 for this bundle. 🎯 Fix: 92 % 💥 Break: 6 % 💸 Cost: 100 % ⏱️ Time: 100 % 🛡️ Security: 100 % 🏆 Score: 86 🚦 Gate: ⛔ break 6 % > 5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
65 lines
2.3 KiB
JavaScript
65 lines
2.3 KiB
JavaScript
document.getElementById("palette").addEventListener("click", (event) => {
|
|
if (event.target === event.currentTarget) {
|
|
closePalette();
|
|
}
|
|
});
|
|
document.getElementById("sheet").addEventListener("click", (event) => {
|
|
if (event.target === event.currentTarget) {
|
|
closeSheet();
|
|
}
|
|
});
|
|
popupDialog().addEventListener("click", (event) => {
|
|
if (event.target === event.currentTarget) {
|
|
closePopup();
|
|
}
|
|
});
|
|
document.getElementById("palette-open").addEventListener("click", openPalette);
|
|
document.getElementById("settings-open").addEventListener("click", settingsSheet);
|
|
document.getElementById("bubbles-toggle").addEventListener("click", toggleBubbles);
|
|
document.addEventListener("click", (event) => closeMenus(event.target instanceof Element ? event.target.closest("details.menu") : null));
|
|
document.addEventListener("fullscreenchange", () => {
|
|
if (!document.fullscreenElement) {
|
|
document.body.classList.remove("leitstand");
|
|
}
|
|
window.setTimeout(measure, 50);
|
|
});
|
|
document.addEventListener("pointerdown", context, {once: true});
|
|
document.addEventListener("keydown", context, {once: true});
|
|
document.addEventListener("pointerdown", unlock);
|
|
document.addEventListener("keydown", keyboard);
|
|
document.addEventListener("contextmenu", feedbackMenu);
|
|
document.addEventListener("selectionchange", feedbackButton);
|
|
document.addEventListener("visibilitychange", refresh);
|
|
window.addEventListener("focus", refresh);
|
|
window.addEventListener("hashchange", apply);
|
|
window.addEventListener("resize", measure);
|
|
window.addEventListener("resize", redrawSky);
|
|
window.addEventListener("resize", refresh3d);
|
|
window.addEventListener("resize", placePopup);
|
|
skyPanel();
|
|
radioSpot();
|
|
radio.element = radioElement();
|
|
drawSky();
|
|
musicButton();
|
|
syncBubbles();
|
|
syncMusic();
|
|
syncRadio();
|
|
timeBar();
|
|
notifyLabel();
|
|
announce();
|
|
measure();
|
|
apply();
|
|
drawTime();
|
|
motion.asOf = ui.asOf;
|
|
relayout(0);
|
|
window.setInterval(poll, 10000);
|
|
window.setInterval(follow, 3000);
|
|
window.setInterval(() => relayout(MOVE), RELAYOUT);
|
|
window.setInterval(() => live() && drawSky(), 30000);
|
|
window.setInterval(syncRadio, 20000);
|
|
window.setInterval(() => {
|
|
if (tree.dom && !document.hidden) {
|
|
fetchTree();
|
|
}
|
|
}, 60000);
|