@burdenoff/fe-libs 2026.1118.8 → 2026.1118.10

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.
Files changed (37) hide show
  1. package/dist/shared/assistant/index.d.ts +2 -0
  2. package/dist/shared/assistant/ui/useVoiceSession.js +188 -142
  3. package/dist/shared/assistant/voice/handsFree.d.ts +3 -1
  4. package/dist/shared/assistant/voice/handsfree/audioTrackTransport.d.ts +8 -0
  5. package/dist/shared/assistant/voice/handsfree/audioTrackTransport.js +36 -31
  6. package/dist/shared/assistant/voice/handsfree/backendStreamTransport.js +1 -0
  7. package/dist/shared/assistant/voice/handsfree/echoGate.d.ts +21 -0
  8. package/dist/shared/assistant/voice/handsfree/echoGate.js +11 -2
  9. package/dist/shared/assistant/voice/handsfree/handsFreeController.d.ts +7 -0
  10. package/dist/shared/assistant/voice/handsfree/handsFreeController.js +46 -42
  11. package/dist/shared/assistant/voice/handsfree/playbackReference.d.ts +63 -5
  12. package/dist/shared/assistant/voice/handsfree/playbackReference.js +56 -29
  13. package/dist/shared/assistant/voice/handsfree/preRollRing.d.ts +7 -0
  14. package/dist/shared/assistant/voice/handsfree/preRollRing.js +3 -0
  15. package/dist/shared/assistant/voice/handsfree/sttTransport.d.ts +16 -0
  16. package/dist/shared/assistant/voice/handsfree/useHandsFreeInterrupt.js +55 -54
  17. package/dist/shared/assistant/voice/handsfree/vad.d.ts +9 -0
  18. package/dist/shared/assistant/voice/handsfree/vad.js +10 -7
  19. package/dist/shared/assistant/voice/handsfree/webSpeechTransport.js +1 -0
  20. package/dist/shared/assistant/voice/thinkingTone.d.ts +213 -0
  21. package/dist/shared/assistant/voice/thinkingTone.js +182 -0
  22. package/dist/shared/assistant/voice/thinkingToneConfig.d.ts +4 -0
  23. package/dist/shared/assistant/voice/thinkingToneConfig.js +9 -0
  24. package/dist/shared/assistant/voice/voiceSession.d.ts +24 -0
  25. package/dist/shared/assistant/voice/voiceSession.js +18 -11
  26. package/dist/shared-assistant.js +404 -402
  27. package/dist/ui/gallery-category-rail.d.ts +49 -0
  28. package/dist/ui/gallery-category-rail.js +110 -0
  29. package/dist/ui/gallery-pager-labels.d.ts +22 -0
  30. package/dist/ui/gallery-pager-labels.js +12 -0
  31. package/dist/ui/gallery-pager.d.ts +19 -0
  32. package/dist/ui/gallery-pager.js +89 -0
  33. package/dist/ui/gallery-paging.d.ts +45 -0
  34. package/dist/ui/gallery-paging.js +66 -0
  35. package/dist/ui/index.d.ts +4 -0
  36. package/dist/ui.js +49 -45
  37. package/package.json +1 -1
@@ -73,6 +73,15 @@ export interface VoiceSessionSnapshot {
73
73
  candidateId: number;
74
74
  accepted: boolean;
75
75
  };
76
+ /**
77
+ * ★ D3 (BOFF-12936), H2's one exception: the thinking tone sounded when a
78
+ * spoken turn was sent, and until this wall-clock ms what the recogniser
79
+ * reports without acoustic vetting may be the tone itself, not the person
80
+ * (`thinkingToneHeardUntil`, `mayBeThinkingTone`). Set by `thinking-tone`;
81
+ * absent when no tone has played. It is not cleared with the turn — it runs
82
+ * out — and `start` resets it.
83
+ */
84
+ thinkingToneUntil?: number;
76
85
  }
77
86
  /**
78
87
  * Deliberately does NOT include a "playback blocked" variant. Nothing can
@@ -167,6 +176,15 @@ export type VoiceSessionEvent =
167
176
  */
168
177
  | {
169
178
  type: 'answered-locally';
179
+ }
180
+ /**
181
+ * ★ D3 (BOFF-12936): the thinking tone started for the spoken turn just sent.
182
+ * `until`: the wall-clock ms by which the last of what a recogniser may report
183
+ * of it has arrived (`thinkingToneHeardUntil`). See `thinkingToneUntil`.
184
+ */
185
+ | {
186
+ type: 'thinking-tone';
187
+ until: number;
170
188
  } | {
171
189
  type: 'fail';
172
190
  error: VoiceSessionError;
@@ -347,6 +365,12 @@ export declare function isCapturing(snapshot: VoiceSessionSnapshot): boolean;
347
365
  * lets a person correct themselves without tapping. Closed for the whole of
348
366
  * `speaking`, and whenever muted. Barge-in while SPEAKING is a separate step
349
367
  * (H3) and is NOT enabled here.
368
+ *
369
+ * ★ ONE deliberate exception to "nothing plays while thinking": the thinking
370
+ * tone (D3, BOFF-12936, opt-in per app), about 150 ms as a spoken turn is sent.
371
+ * The recogniser stays open through it; what it reports during the tone and its
372
+ * tail is never taken as speech (`thinkingToneUntil`), and hands-free capture
373
+ * attributes nothing while it sounds (`EchoGate.cueStarted`).
350
374
  */
351
375
  export declare function shouldRecognise(snapshot: VoiceSessionSnapshot): boolean;
352
376
  /** The orb's visual mode. Kept here so the UI has no state logic of its own. */
@@ -59,8 +59,11 @@ var h = Object.freeze({
59
59
  submittedAt: null,
60
60
  correcting: !1
61
61
  };
62
- function _(e, n, r) {
63
- if (!n.gated && p(n.transcript, r)) return e;
62
+ function _(e, t) {
63
+ return t.gated !== !0 && e.thinkingToneUntil !== void 0 && t.at !== void 0 && t.at <= e.thinkingToneUntil;
64
+ }
65
+ function v(e, n, r) {
66
+ if (_(e, n) || !n.gated && p(n.transcript, r)) return e;
64
67
  let i = t({
65
68
  transcript: n.transcript,
66
69
  submitted: e.submitted,
@@ -79,7 +82,7 @@ function _(e, n, r) {
79
82
  interim: n.final ? "" : a
80
83
  };
81
84
  }
82
- function v(t, r, i = null) {
85
+ function y(t, r, i = null) {
83
86
  if (r.type === "start") return {
84
87
  ...h,
85
88
  phase: "listening"
@@ -120,7 +123,7 @@ function v(t, r, i = null) {
120
123
  case "speech": {
121
124
  if (t.muted) return t;
122
125
  if (t.phase === "thinking") {
123
- let e = _(t, r, i);
126
+ let e = v(t, r, i);
124
127
  return r.timingCandidateId !== void 0 && (e !== t || r.final) ? {
125
128
  ...e,
126
129
  correctionTimingDecision: {
@@ -129,7 +132,7 @@ function v(t, r, i = null) {
129
132
  }
130
133
  } : e;
131
134
  }
132
- if (t.phase !== "listening" || !r.gated && p(r.transcript, i)) return t;
135
+ if (t.phase !== "listening" || _(t, r) || !r.gated && p(r.transcript, i)) return t;
133
136
  let a = t.correcting ? n(r.transcript, t.submitted) : r.transcript;
134
137
  if (t.correcting && a === "") return t;
135
138
  if (r.final) {
@@ -202,6 +205,10 @@ function v(t, r, i = null) {
202
205
  pending: "",
203
206
  interim: ""
204
207
  } : t;
208
+ case "thinking-tone": return {
209
+ ...t,
210
+ thinkingToneUntil: r.until
211
+ };
205
212
  case "announce": return t.phase === "listening" && s(t) === "" ? {
206
213
  ...t,
207
214
  phase: "speaking",
@@ -211,7 +218,7 @@ function v(t, r, i = null) {
211
218
  default: return t;
212
219
  }
213
220
  }
214
- function y(e) {
221
+ function b(e) {
215
222
  switch (e.phase) {
216
223
  case "listening": return s(e) === "" ? "start" : "drop";
217
224
  case "thinking":
@@ -219,7 +226,7 @@ function y(e) {
219
226
  default: return "drop";
220
227
  }
221
228
  }
222
- function b(e) {
229
+ function x(e) {
223
230
  let { requested: t, held: n, muted: r } = e;
224
231
  return t ? n ? {
225
232
  mute: null,
@@ -238,13 +245,13 @@ function b(e) {
238
245
  held: !1
239
246
  };
240
247
  }
241
- function x(e) {
248
+ function S(e) {
242
249
  return !e.muted && e.phase === "listening";
243
250
  }
244
- function S(e) {
251
+ function C(e) {
245
252
  return e.muted ? !1 : e.phase === "listening" || e.phase === "thinking";
246
253
  }
247
- function C(e) {
254
+ function w(e) {
248
255
  switch (e.phase) {
249
256
  case "thinking": return "thinking";
250
257
  case "speaking": return "speaking";
@@ -252,4 +259,4 @@ function C(e) {
252
259
  default: return "idle";
253
260
  }
254
261
  }
255
- export { r as ENDPOINT_GRACE_MS, h as INITIAL_SESSION, i as INTERRUPT_MAX_MS, a as INTERRUPT_MIN_MS, c as NOTHING_HEARD, u as advanceHeardClock, x as isCapturing, p as isEcho, o as isSubmittable, C as orbMode, b as planListeningHold, m as planReplyConsumption, y as planVoiceAnnouncement, S as shouldRecognise, s as spokenSoFar, v as voiceSessionReducer };
262
+ export { r as ENDPOINT_GRACE_MS, h as INITIAL_SESSION, i as INTERRUPT_MAX_MS, a as INTERRUPT_MIN_MS, c as NOTHING_HEARD, u as advanceHeardClock, S as isCapturing, p as isEcho, o as isSubmittable, w as orbMode, x as planListeningHold, m as planReplyConsumption, b as planVoiceAnnouncement, C as shouldRecognise, s as spokenSoFar, y as voiceSessionReducer };