feat(frontend): hands-free voice conversation mode in the composer

The mic opens a voice loop that listens, sends on end of speech, reads each completed reply and reopens the mic when the agent is idle. The phase reducer, pause options and voice-mode instruction move to the shared package. TTS gains per-message completion and pause/resume. The old tap-and-drag recorder, its strip and its CSS are removed.
This commit is contained in:
Chris Scott committed 2026-10-22 20:18:16 -04:00
1 parent 80ef211a94
commit 5d8b2c9445
34 files changed
+4876 -1302

No files matched your search

+36
View File
@@ -125,6 +125,42 @@ export {
parseOpenCodeVersionOutput,
} from './release'
export {
DEFAULT_VOICE_PAUSE_MS,
VOICE_NO_SPEECH_TIMEOUT_MS,
VOICE_PAUSE_OPTIONS_MS,
VOICE_PAUSE_STORAGE_KEY,
formatVoicePauseMs,
isVoicePauseOption,
normalizeVoicePauseMs,
parseVoicePauseMs,
} from './voicePauseSetting'
export {
INITIAL_VOICE_CONVERSATION_STATE,
VOICE_MODE_INSTRUCTIONS,
VOICE_MODE_INSTRUCTION_KEY,
findNextUnspokenMessage,
hasIncompleteAssistant,
hasSpokenMessage,
isVoiceTurnComplete,
listUnspokenMessages,
reduceVoiceConversation,
voiceConversationHint,
voiceConversationLabel,
} from './voiceConversation'
export type {
VoiceConversationEvent,
VoiceConversationLabelInput,
VoiceConversationState,
VoicePauseReason,
VoicePhase,
VoiceSessionStatus,
VoiceSpokenMessage,
VoiceTurnCompletionInput,
} from './voiceConversation'
export { OPENCODE_LIFECYCLE_STATES, OPENCODE_RECOVERY_ACTIONS } from './lifecycle'
export type { OpenCodeLifecycleState, OpenCodeLifecycleStatus, OpenCodeRecoveryAction } from './lifecycle'