ruff
This commit is contained in:
parent
3816a9627e
commit
6acf267d48
2 changed files with 2 additions and 18 deletions
|
|
@ -128,9 +128,6 @@
|
|||
display: block;
|
||||
pointer-events: auto;
|
||||
}
|
||||
#agentIndicator .label {
|
||||
display: none;
|
||||
}
|
||||
#agentIndicator.idle {
|
||||
color: #6b3a28;
|
||||
}
|
||||
|
|
@ -389,8 +386,7 @@
|
|||
<div id="log"><div id="log-inner"></div></div>
|
||||
<div id="agentIndicator" data-ptt="1">
|
||||
<div id="agentViz" data-ptt="1"></div>
|
||||
<span class="label"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="voiceStatus"></div>
|
||||
<div id="toast-container"></div>
|
||||
<audio id="remoteAudio" autoplay playsinline hidden></audio>
|
||||
|
|
@ -403,7 +399,6 @@
|
|||
const remoteAudio = document.getElementById("remoteAudio");
|
||||
const agentIndicator = document.getElementById("agentIndicator");
|
||||
const agentVizEl = document.getElementById("agentViz");
|
||||
const agentLabel = agentIndicator.querySelector(".label");
|
||||
const resetSessionBtn = document.getElementById("resetSessionBtn");
|
||||
const toastContainer = document.getElementById("toast-container");
|
||||
|
||||
|
|
@ -527,12 +522,6 @@
|
|||
|
||||
// --- Agent state indicator ---
|
||||
const STATES = { idle: "idle", listening: "listening", thinking: "thinking", speaking: "speaking" };
|
||||
const STATE_COLORS = {
|
||||
[STATES.idle]: 0xfff5eb,
|
||||
[STATES.listening]: 0xfff5eb,
|
||||
[STATES.thinking]: 0xfff5eb,
|
||||
[STATES.speaking]: 0xfff5eb,
|
||||
};
|
||||
let agentState = STATES.idle;
|
||||
let agentVisualizer = null;
|
||||
let lastRemoteAudioActivityS = 0;
|
||||
|
|
@ -541,7 +530,6 @@
|
|||
agentState = state;
|
||||
agentIndicator.classList.remove("listening", "thinking", "speaking", "idle");
|
||||
agentIndicator.classList.add("visible", state);
|
||||
agentLabel.textContent = state === STATES.idle ? "" : state;
|
||||
if (agentVisualizer) agentVisualizer.setState(state);
|
||||
};
|
||||
|
||||
|
|
@ -700,8 +688,6 @@
|
|||
const CARD_IDLE_RGB = [212, 85, 63]; // #d4553f — connected idle coral
|
||||
const CARD_LISTEN_RGB = [120, 40, 28]; // #782c1c — PTT active dark coral
|
||||
|
||||
const setStateColor = (_state) => { /* no-op: MeshBasicMaterial, colour is fixed */ };
|
||||
|
||||
let prevCardRGB = "";
|
||||
let targetConnected = 0.0;
|
||||
let isConnecting = false;
|
||||
|
|
@ -819,7 +805,6 @@
|
|||
requestAnimationFrame(renderFrame);
|
||||
};
|
||||
|
||||
setStateColor(currentState);
|
||||
requestAnimationFrame(renderFrame);
|
||||
|
||||
return {
|
||||
|
|
@ -829,7 +814,6 @@
|
|||
setState: (state) => {
|
||||
if (!STATES[state]) return;
|
||||
currentState = state;
|
||||
setStateColor(state);
|
||||
},
|
||||
setConnected: (connected) => {
|
||||
targetConnected = connected ? 1.0 : 0.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue