feat(app): M5 step 2, service control and the dashboard data
- control: one Controller starts, stops and restarts the services (stopped, starting, running, stopping, failed); a failed start leaves nothing running and keeps its error with secrets masked. The app binary uses it. - dashboard: built from the core's events alone: the bot's tag, the voice channel, live captions (screen only, cleared on leaving or stopping), the last 20 voice answers split into stages with medians (matched by the new AnswerAsked event), and missed requests without text. - system: memory in use and per NVIDIA GPU its use and VRAM (nvidia-smi). - DiscordCore::voice_members, WorkerClient::hello, the conversation's missed requests shared with the dashboard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -184,6 +184,11 @@ impl WorkerClient {
|
||||
tokio::spawn(async move { run(inner).await });
|
||||
}
|
||||
|
||||
/// The worker's `hello_ok` while connected (STT and TTS readiness), else None.
|
||||
pub fn hello(&self) -> Option<HelloOk> {
|
||||
self.inner.ready.borrow().clone()
|
||||
}
|
||||
|
||||
pub fn is_ready(&self) -> bool {
|
||||
self.inner.ready.borrow().is_some()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user