@burdenoff/fe-libs 2026.1117.4 → 2026.1117.6
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/liveDeltas.d.ts +6 -0
- package/dist/shared/assistant/liveDeltas.js +4 -3
- package/dist/shared/assistant/ui/AssistantChatArea.js +1159 -1158
- package/dist/shared/assistant/ui/useVoiceSession.js +312 -301
- package/dist/shared/assistant/voice/handsFree.d.ts +16 -0
- package/dist/shared/assistant/voice/handsFree.js +2 -2
- package/dist/shared/assistant/voice/handsfree/audioTrackTransport.js +1 -0
- package/dist/shared/assistant/voice/handsfree/backendStreamTransport.d.ts +11 -0
- package/dist/shared/assistant/voice/handsfree/backendStreamTransport.js +118 -63
- package/dist/shared/assistant/voice/handsfree/bargeIn.d.ts +20 -1
- package/dist/shared/assistant/voice/handsfree/bargeIn.js +3 -3
- package/dist/shared/assistant/voice/handsfree/handsFreeController.d.ts +10 -1
- package/dist/shared/assistant/voice/handsfree/handsFreeController.js +103 -83
- package/dist/shared/assistant/voice/handsfree/sttTransport.d.ts +20 -0
- package/dist/shared/assistant/voice/handsfree/useHandsFreeInterrupt.d.ts +8 -0
- package/dist/shared/assistant/voice/handsfree/useHandsFreeInterrupt.js +31 -26
- package/dist/shared/assistant/voice/handsfree/webSpeechTransport.js +1 -0
- package/dist/shared/assistant/voice/livePhraseSpeech.d.ts +29 -0
- package/dist/shared/assistant/voice/livePhraseSpeech.js +50 -39
- package/dist/shared/assistant/voice/phraseSpeechConfig.d.ts +44 -2
- package/dist/shared/assistant/voice/phraseSpeechConfig.js +9 -6
- package/dist/shared-assistant.js +399 -399
- package/package.json +1 -1
|
@@ -25,6 +25,12 @@ export interface LivePartState {
|
|
|
25
25
|
export interface LiveMessageState {
|
|
26
26
|
readonly created?: number;
|
|
27
27
|
readonly completed?: number;
|
|
28
|
+
/**
|
|
29
|
+
* How the step ended (`stop`, `tool-calls`, `error`, ...). The bridge writes
|
|
30
|
+
* it on the frame that completes the step and not before: while a step is
|
|
31
|
+
* being written, nothing says whether it will call a tool.
|
|
32
|
+
*/
|
|
33
|
+
readonly finish?: string;
|
|
28
34
|
}
|
|
29
35
|
export interface LiveDeltaState {
|
|
30
36
|
/** +1 for every re-mint. */
|
|
@@ -36,12 +36,13 @@ function l(e) {
|
|
|
36
36
|
function u(e, t) {
|
|
37
37
|
let n = i(t.info), r = a(n?.id);
|
|
38
38
|
if (!n || !r || n.role !== "assistant" || !e.messages.has(r) && e.messages.size >= 256) return e;
|
|
39
|
-
let c = i(n.time), l = o(c?.created), u = o(c?.completed), d = e.messages.get(r);
|
|
39
|
+
let c = i(n.time), l = o(c?.created), u = o(c?.completed), d = a(n.finish)?.slice(0, 64), f = e.messages.get(r);
|
|
40
40
|
return {
|
|
41
41
|
...e,
|
|
42
42
|
messages: s(e.messages, r, {
|
|
43
|
-
...l === void 0 ?
|
|
44
|
-
...u === void 0 ?
|
|
43
|
+
...l === void 0 ? f?.created === void 0 ? {} : { created: f.created } : { created: l },
|
|
44
|
+
...u === void 0 ? f?.completed === void 0 ? {} : { completed: f.completed } : { completed: u },
|
|
45
|
+
...d === void 0 ? f?.finish === void 0 ? {} : { finish: f.finish } : { finish: d }
|
|
45
46
|
})
|
|
46
47
|
};
|
|
47
48
|
}
|