Allow typed prompts from armed state
Rolling release / release (push) Successful in 3m26s

This commit is contained in:
2026-09-11 17:36:20 -04:00
parent fcfcc0f6a7
commit 2f8f369f24
3 changed files with 11 additions and 1 deletions
+4
View File
@@ -31,6 +31,10 @@ export class VoiceStateMachine {
wake() { return this.transition('LISTENING', 'wake'); }
utterance() { return this.transition('THINKING', 'utterance'); }
typedUtterance() {
if (this.state === 'ARMED' || this.state === 'SLEEPING') this.wake();
return this.utterance();
}
speak() { return this.transition('SPEAKING', 'reply'); }
finishSpeaking() { return this.transition('LISTENING', 'playback-finished'); }
cancel() { return this.transition('ARMED', 'cancel'); }