Updates
Rolling release / release (push) Successful in 3m14s

This commit is contained in:
2026-09-11 19:12:28 -04:00
parent 8c17112fa8
commit 7604cded2c
13 changed files with 411 additions and 52 deletions
+10
View File
@@ -15,3 +15,13 @@ export function parseHudSidecar(text) {
try { hud = JSON.parse(match[1]); } catch { hud = { error: 'invalid hud sidecar' }; }
return { spoken: source.replace(match[0], '').trim(), hud };
}
export function spokenReply(reply) {
if (reply == null) return '';
const text = typeof reply === 'string' ? reply
: typeof reply.text === 'string' ? reply.text
: typeof reply.message === 'string' ? reply.message
: '';
if (!text || text === '[object Object]') return '';
return parseHudSidecar(text).spoken;
}