Files
skills/orchestrator/templates/page-boot.js
T
Kevin Veen-BirkenbachandClaude Opus 5.5 a438a2f54e feat(orchestrator): speak into every text field of the hub (requirement 013)
Requirement 013 and its implementation: page-mic.js puts a microphone on every textarea and text input, records with MediaRecorder and inserts the transcript at the cursor; Escape cancels. /api/stt transcribes with the local whisper.cpp model ggml-small-q8_0 (pinned to commit 5359861c and its sha256) in a per-request temp dir, capped at 60 s and 5 MiB, and returns German or English only, retranscribing a clip detected as another language in both and keeping the surer one. Without a model the button is disabled and names the install row. Tests run once on unify/skills-20261114 after the merge (operator order 2026-11-14).

🎯 Fix: 72 %
💥 Break: 12 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 63
🚦 Gate: ⛔ fix 72 % < 90, break 12 % > 5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 21:37:26 +00:00

67 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();
micWatch();
radioSpot();
radio.element = radioElement();
drawSky();
musicButton();
syncBubbles();
syncMusic();
syncRadio();
timeBar();
notifyLabel();
announce();
measure();
homeBoot();
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);