@burdenoff/fe-libs 2026.1114.12 → 2026.1114.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/shared/assistant/conversation.d.ts +16 -0
- package/dist/shared/assistant/i18nManifest.d.ts +32 -0
- package/dist/shared/assistant/i18nManifest.js +32 -0
- package/dist/shared/assistant/index.d.ts +10 -0
- package/dist/shared/assistant/store.d.ts +7 -0
- package/dist/shared/assistant/store.js +3 -0
- package/dist/shared/assistant/ui/AssistantChatArea.js +1275 -1181
- package/dist/shared/assistant/ui/AssistantMessageList.d.ts +14 -0
- package/dist/shared/assistant/ui/AssistantMessageList.js +55 -52
- package/dist/shared/assistant/ui/composer/AssistantComposer.d.ts +6 -0
- package/dist/shared/assistant/ui/composer/AssistantComposer.js +400 -311
- package/dist/shared/assistant/ui/composer/AssistantDictation.d.ts +42 -0
- package/dist/shared/assistant/ui/composer/AssistantDictation.js +127 -0
- package/dist/shared/assistant/ui/composer/AssistantMicMenu.d.ts +23 -0
- package/dist/shared/assistant/ui/composer/AssistantMicMenu.js +176 -0
- package/dist/shared/assistant/ui/composer/microphones.d.ts +13 -0
- package/dist/shared/assistant/ui/composer/microphones.js +15 -0
- package/dist/shared/assistant/ui/composer/useCompactDictation.d.ts +70 -0
- package/dist/shared/assistant/ui/composer/useCompactDictation.js +136 -0
- package/dist/shared/assistant/ui/useVoiceSession.js +166 -164
- package/dist/shared/assistant/ui/voice/AssistantPageVoiceBar.d.ts +67 -0
- package/dist/shared/assistant/ui/voice/AssistantPageVoiceBar.js +290 -0
- package/dist/shared/assistant/ui/voice/AssistantVoiceSession.d.ts +11 -1
- package/dist/shared/assistant/ui/voice/AssistantVoiceSession.js +288 -244
- package/dist/shared/assistant/ui/voice/AssistantVoiceSessionButton.d.ts +5 -0
- package/dist/shared/assistant/ui/voice/AssistantVoiceSessionButton.js +6 -6
- package/dist/shared/assistant/ui/voice/LiveWaveform.d.ts +32 -0
- package/dist/shared/assistant/ui/voice/LiveWaveform.js +52 -0
- package/dist/shared/assistant/ui/voice/VoiceTurnMarks.d.ts +15 -0
- package/dist/shared/assistant/ui/voice/VoiceTurnMarks.js +43 -0
- package/dist/shared/assistant/ui/voice/formatClock.d.ts +2 -0
- package/dist/shared/assistant/ui/voice/formatClock.js +3 -0
- package/dist/shared/assistant/ui/voice/useLiveLevel.d.ts +23 -0
- package/dist/shared/assistant/ui/voice/useLiveLevel.js +56 -0
- package/dist/shared/assistant/voice/liveLevel.d.ts +85 -0
- package/dist/shared/assistant/voice/liveLevel.js +78 -0
- package/dist/shared/assistant/voice/useVoiceInput.d.ts +27 -1
- package/dist/shared/assistant/voice/useVoiceInput.js +141 -71
- package/dist/shared-assistant.js +393 -383
- package/package.json +1 -1
|
@@ -136,6 +136,22 @@ export interface AssistantMessageMetadata {
|
|
|
136
136
|
* id — so a spoken turn reopened on any device is still spoken, never typed.
|
|
137
137
|
*/
|
|
138
138
|
voice?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* ★ BOFF-13461 (page voice chat): the person cut this spoken reply off, and
|
|
141
|
+
* `voiceSpokenText` is what had been said aloud by then. The page's thread shows
|
|
142
|
+
* only that part, tagged "Interrupted", so the record matches what was heard.
|
|
143
|
+
* Kept on this device: server history keeps the whole reply (its metadata
|
|
144
|
+
* allowlist does not carry these yet). The model's own context is unchanged (it
|
|
145
|
+
* produced the whole reply).
|
|
146
|
+
*/
|
|
147
|
+
voiceInterrupted?: boolean;
|
|
148
|
+
voiceSpokenText?: string;
|
|
149
|
+
/**
|
|
150
|
+
* ★ BOFF-13461 (page voice chat): the voice chat ended before a word of this
|
|
151
|
+
* reply was said (End while it was thinking). It arrives in full, and is never
|
|
152
|
+
* tagged "Spoken aloud".
|
|
153
|
+
*/
|
|
154
|
+
voiceNotSpoken?: boolean;
|
|
139
155
|
/**
|
|
140
156
|
* WHICH live voice session produced this turn.
|
|
141
157
|
*
|
|
@@ -380,6 +380,38 @@ export declare const ASSISTANT_I18N_LITERAL_COPY: {
|
|
|
380
380
|
readonly 'composer.voiceStart': "Dictate a message";
|
|
381
381
|
readonly 'composer.voiceStarting': "Starting the microphone — tap to cancel";
|
|
382
382
|
readonly 'composer.voiceStop': "Stop dictation";
|
|
383
|
+
readonly 'composer.dictationCancel': "Cancel dictation";
|
|
384
|
+
readonly 'composer.dictationDone': "Finish dictation";
|
|
385
|
+
readonly 'dictation.blockedButton': "Dictate, microphone blocked";
|
|
386
|
+
readonly 'dictation.language': "Language";
|
|
387
|
+
readonly 'dictation.microphone': "Microphone";
|
|
388
|
+
readonly 'dictation.noMicrophone': "No microphone available";
|
|
389
|
+
readonly 'dictation.nothingHeard': "Nothing was heard. Check the microphone and try again.";
|
|
390
|
+
readonly 'dictation.options': "Microphone and language options";
|
|
391
|
+
readonly 'dictation.startSpeaking': "Listening. Start speaking.";
|
|
392
|
+
readonly 'dictation.systemDefault': "System default";
|
|
393
|
+
readonly 'dictation.transcribing': "Turning speech into text";
|
|
394
|
+
readonly 'dictation.tryAgain': "Try again";
|
|
395
|
+
readonly 'dictation.unnamedMicrophone': "Microphone {{n}}";
|
|
396
|
+
readonly 'voiceDock.connecting': "Connecting";
|
|
397
|
+
readonly 'voiceDock.connectingCaption': "Setting up audio";
|
|
398
|
+
readonly 'voiceDock.end': "End voice chat";
|
|
399
|
+
readonly 'voiceDock.interrupt': "Interrupt";
|
|
400
|
+
readonly 'voiceDock.listening': "Listening";
|
|
401
|
+
readonly 'voiceDock.listeningCaption': "Go ahead, I am listening.";
|
|
402
|
+
readonly 'voiceDock.muted': "Muted";
|
|
403
|
+
readonly 'voiceDock.mutedCaption': "Your microphone is off. Unmute to continue.";
|
|
404
|
+
readonly 'voiceDock.problem': "Microphone problem";
|
|
405
|
+
readonly 'voiceDock.speaking': "Speaking";
|
|
406
|
+
readonly 'voiceDock.speakingCaption': "Speak or tap Interrupt to cut in.";
|
|
407
|
+
readonly 'voiceDock.speakingCaptionTap': "Tap Interrupt to cut in.";
|
|
408
|
+
readonly 'voiceDock.thinking': "Thinking";
|
|
409
|
+
readonly 'voiceDock.thinkingCaption': "Working on an answer";
|
|
410
|
+
readonly 'voiceTurn.ended': "Voice chat ended";
|
|
411
|
+
readonly 'voiceTurn.endedAfter': "Voice chat ended · {{duration}}";
|
|
412
|
+
readonly 'voiceTurn.interrupted': "Interrupted. Only the spoken part is kept.";
|
|
413
|
+
readonly 'voiceTurn.spoken': "Spoken";
|
|
414
|
+
readonly 'voiceTurn.spokenAloud': "Spoken aloud";
|
|
383
415
|
readonly 'composer.writeAccessDenied': "Changes may not save — your role in this workspace does not currently allow edits. You can still plan and review an action.";
|
|
384
416
|
readonly 'conversationFilters.all': "All";
|
|
385
417
|
readonly 'conversationFilters.archived': "Archived";
|
|
@@ -273,6 +273,38 @@ var g = {
|
|
|
273
273
|
"composer.voiceStart": "Dictate a message",
|
|
274
274
|
"composer.voiceStarting": "Starting the microphone — tap to cancel",
|
|
275
275
|
"composer.voiceStop": "Stop dictation",
|
|
276
|
+
"composer.dictationCancel": "Cancel dictation",
|
|
277
|
+
"composer.dictationDone": "Finish dictation",
|
|
278
|
+
"dictation.blockedButton": "Dictate, microphone blocked",
|
|
279
|
+
"dictation.language": "Language",
|
|
280
|
+
"dictation.microphone": "Microphone",
|
|
281
|
+
"dictation.noMicrophone": "No microphone available",
|
|
282
|
+
"dictation.nothingHeard": "Nothing was heard. Check the microphone and try again.",
|
|
283
|
+
"dictation.options": "Microphone and language options",
|
|
284
|
+
"dictation.startSpeaking": "Listening. Start speaking.",
|
|
285
|
+
"dictation.systemDefault": "System default",
|
|
286
|
+
"dictation.transcribing": "Turning speech into text",
|
|
287
|
+
"dictation.tryAgain": "Try again",
|
|
288
|
+
"dictation.unnamedMicrophone": "Microphone {{n}}",
|
|
289
|
+
"voiceDock.connecting": "Connecting",
|
|
290
|
+
"voiceDock.connectingCaption": "Setting up audio",
|
|
291
|
+
"voiceDock.end": "End voice chat",
|
|
292
|
+
"voiceDock.interrupt": "Interrupt",
|
|
293
|
+
"voiceDock.listening": "Listening",
|
|
294
|
+
"voiceDock.listeningCaption": "Go ahead, I am listening.",
|
|
295
|
+
"voiceDock.muted": "Muted",
|
|
296
|
+
"voiceDock.mutedCaption": "Your microphone is off. Unmute to continue.",
|
|
297
|
+
"voiceDock.problem": "Microphone problem",
|
|
298
|
+
"voiceDock.speaking": "Speaking",
|
|
299
|
+
"voiceDock.speakingCaption": "Speak or tap Interrupt to cut in.",
|
|
300
|
+
"voiceDock.speakingCaptionTap": "Tap Interrupt to cut in.",
|
|
301
|
+
"voiceDock.thinking": "Thinking",
|
|
302
|
+
"voiceDock.thinkingCaption": "Working on an answer",
|
|
303
|
+
"voiceTurn.ended": "Voice chat ended",
|
|
304
|
+
"voiceTurn.endedAfter": "Voice chat ended · {{duration}}",
|
|
305
|
+
"voiceTurn.interrupted": "Interrupted. Only the spoken part is kept.",
|
|
306
|
+
"voiceTurn.spoken": "Spoken",
|
|
307
|
+
"voiceTurn.spokenAloud": "Spoken aloud",
|
|
276
308
|
"composer.writeAccessDenied": "Changes may not save — your role in this workspace does not currently allow edits. You can still plan and review an action.",
|
|
277
309
|
"conversationFilters.all": "All",
|
|
278
310
|
"conversationFilters.archived": "Archived",
|
|
@@ -41,6 +41,7 @@ export * from './api';
|
|
|
41
41
|
export * from './pageContextKeys';
|
|
42
42
|
export * from './types';
|
|
43
43
|
export * from './voice/turnVisibility';
|
|
44
|
+
export * from './voice/liveLevel';
|
|
44
45
|
export * from './speech/types';
|
|
45
46
|
export * from './speech/createSpeechEngine';
|
|
46
47
|
export * from './speech/browserSpeechEngine';
|
|
@@ -196,6 +197,8 @@ export * from './ui/voice/VoiceStage';
|
|
|
196
197
|
export * from './ui/voice/VoiceStatusText';
|
|
197
198
|
export * from './ui/voice/VoiceTranscriptDrawer';
|
|
198
199
|
export * from './ui/voice/VoiceWaveform';
|
|
200
|
+
export * from './ui/voice/LiveWaveform';
|
|
201
|
+
export * from './ui/voice/useLiveLevel';
|
|
199
202
|
export * from './ui/voice/voiceSessionEscape';
|
|
200
203
|
export * from './product';
|
|
201
204
|
export * from './ui/AssistantMoreMenu';
|
|
@@ -243,6 +246,13 @@ export * from './ui/AssistantMessageList';
|
|
|
243
246
|
export * from './ui/AssistantUiOfferLink';
|
|
244
247
|
export * from './ui/AssistantTurnActivity';
|
|
245
248
|
export * from './ui/voice/AssistantVoiceSession';
|
|
249
|
+
export * from './ui/voice/AssistantPageVoiceBar';
|
|
250
|
+
export * from './ui/voice/VoiceTurnMarks';
|
|
251
|
+
export * from './ui/composer/useCompactDictation';
|
|
252
|
+
export * from './ui/composer/AssistantDictation';
|
|
253
|
+
export * from './ui/composer/AssistantMicMenu';
|
|
254
|
+
export * from './ui/composer/microphones';
|
|
255
|
+
export * from './ui/voice/formatClock';
|
|
246
256
|
export * from './ui/voice/HandsFreePrivacyNotice';
|
|
247
257
|
export * from './ui/assistantLiveAvatarSeam';
|
|
248
258
|
export * from './ui/AssistantAvatarTabs';
|
|
@@ -70,6 +70,8 @@ interface AssistantState {
|
|
|
70
70
|
* that existed before this preference did.
|
|
71
71
|
*/
|
|
72
72
|
assistantLanguage: string | null;
|
|
73
|
+
/** ★ BOFF-13461: the chosen microphone's `deviceId`; `null` is the system default. */
|
|
74
|
+
micDeviceId: string | null;
|
|
73
75
|
/**
|
|
74
76
|
* The language the assistant ANSWERS in. `null` means "match my language" —
|
|
75
77
|
* i.e. follow `assistantLanguage` — which is the default and what shipped
|
|
@@ -180,6 +182,11 @@ interface AssistantState {
|
|
|
180
182
|
setAutoSpeak: (enabled: boolean) => void;
|
|
181
183
|
/** Choose the language spoken to the assistant; `null` follows the app locale (persisted). */
|
|
182
184
|
setAssistantLanguage: (code: string | null) => void;
|
|
185
|
+
/**
|
|
186
|
+
* ★ BOFF-13461: the microphone dictation and voice chat use (a `deviceId` from
|
|
187
|
+
* `enumerateDevices`); `null` is the system default (persisted).
|
|
188
|
+
*/
|
|
189
|
+
setMicDeviceId: (deviceId: string | null) => void;
|
|
183
190
|
setReplyLanguage: (code: string | null) => void;
|
|
184
191
|
/** `null` clears the pick for that language, restoring the ranked default. */
|
|
185
192
|
setPreferredVoice: (languageCode: string, voiceName: string | null) => void;
|
|
@@ -75,6 +75,7 @@ function D() {
|
|
|
75
75
|
acknowledgedWriteModes: [],
|
|
76
76
|
autoSpeakEnabled: !1,
|
|
77
77
|
assistantLanguage: null,
|
|
78
|
+
micDeviceId: null,
|
|
78
79
|
replyLanguage: null,
|
|
79
80
|
preferredVoices: {},
|
|
80
81
|
voiceGraceMs: a,
|
|
@@ -300,6 +301,7 @@ var N = M(v()(b((e, t) => ({
|
|
|
300
301
|
acknowledgeWriteMode: (t) => e((e) => ({ acknowledgedWriteModes: _(e.acknowledgedWriteModes, t) })),
|
|
301
302
|
setAutoSpeak: (t) => e({ autoSpeakEnabled: t }),
|
|
302
303
|
setAssistantLanguage: (t) => e({ assistantLanguage: t }),
|
|
304
|
+
setMicDeviceId: (t) => e({ micDeviceId: t }),
|
|
303
305
|
setReplyLanguage: (t) => e({ replyLanguage: t }),
|
|
304
306
|
setVoiceGraceMs: (t) => {
|
|
305
307
|
o(t) === t && e({ voiceGraceMs: o(t) });
|
|
@@ -362,6 +364,7 @@ var N = M(v()(b((e, t) => ({
|
|
|
362
364
|
acknowledgedWriteModes: e.acknowledgedWriteModes,
|
|
363
365
|
autoSpeakEnabled: e.autoSpeakEnabled,
|
|
364
366
|
assistantLanguage: e.assistantLanguage,
|
|
367
|
+
micDeviceId: e.micDeviceId,
|
|
365
368
|
replyLanguage: e.replyLanguage,
|
|
366
369
|
preferredVoices: e.preferredVoices,
|
|
367
370
|
voiceGraceMs: e.voiceGraceMs,
|