@eshal-bot/chat-widget 0.2.45 → 0.2.46
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/{chat-widget-MarkdownRenderer-DUu9dckR.esm.js → chat-widget-MarkdownRenderer-B1kp67-G.esm.js} +1 -1
- package/dist/{chat-widget-index-BMVyeU-x.esm.js → chat-widget-index-BVHEE7tJ.esm.js} +2 -2
- package/dist/chat-widget.esm.js +1 -1
- package/dist/chat-widget.js +11 -11
- package/dist/chat-widget.min.js +2 -2
- package/dist/chat-widget.umd.js +2 -2
- package/package.json +1 -1
package/dist/chat-widget.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{S as default}from"./chat-widget-index-
|
|
1
|
+
export{S as default}from"./chat-widget-index-BVHEE7tJ.esm.js";import"react";import"react-dom/client";import"react/jsx-runtime";import"react-dom";
|
package/dist/chat-widget.js
CHANGED
|
@@ -15194,12 +15194,12 @@
|
|
|
15194
15194
|
prevIds: prev.map(m => ({
|
|
15195
15195
|
id: m.id,
|
|
15196
15196
|
role: m.role,
|
|
15197
|
-
|
|
15197
|
+
contentLength: m.content?.length || 0
|
|
15198
15198
|
})),
|
|
15199
15199
|
resultIds: result.map(m => ({
|
|
15200
15200
|
id: m.id,
|
|
15201
15201
|
role: m.role,
|
|
15202
|
-
|
|
15202
|
+
contentLength: m.content?.length || 0
|
|
15203
15203
|
}))
|
|
15204
15204
|
});
|
|
15205
15205
|
return prev; // Return previous state to prevent data loss
|
|
@@ -15214,7 +15214,7 @@
|
|
|
15214
15214
|
const appendAssistantContent = reactExports.useCallback((text, finished = false) => {
|
|
15215
15215
|
setIsLoading(false);
|
|
15216
15216
|
console.log("[BIDI] appendAssistantContent called", {
|
|
15217
|
-
|
|
15217
|
+
textLength: text?.length || 0,
|
|
15218
15218
|
finished,
|
|
15219
15219
|
currentAssistantId: currentAssistantMessageIdRef.current,
|
|
15220
15220
|
currentInputId: currentInputMessageIdRef.current
|
|
@@ -15405,12 +15405,12 @@
|
|
|
15405
15405
|
prevIds: prev.map(m => ({
|
|
15406
15406
|
id: m.id,
|
|
15407
15407
|
role: m.role,
|
|
15408
|
-
|
|
15408
|
+
contentLength: m.content?.length || 0
|
|
15409
15409
|
})),
|
|
15410
15410
|
resultIds: result.map(m => ({
|
|
15411
15411
|
id: m.id,
|
|
15412
15412
|
role: m.role,
|
|
15413
|
-
|
|
15413
|
+
contentLength: m.content?.length || 0
|
|
15414
15414
|
}))
|
|
15415
15415
|
});
|
|
15416
15416
|
// Return previous state to prevent data loss
|
|
@@ -15464,7 +15464,7 @@
|
|
|
15464
15464
|
if (!audioOnly && part.text) {
|
|
15465
15465
|
accumulatedText += part.text;
|
|
15466
15466
|
console.log("[BIDI] handleContentParts: accumulated text part", {
|
|
15467
|
-
|
|
15467
|
+
textLength: part.text.length,
|
|
15468
15468
|
index,
|
|
15469
15469
|
totalAccumulated: accumulatedText.length
|
|
15470
15470
|
});
|
|
@@ -15636,7 +15636,6 @@
|
|
|
15636
15636
|
const transcriptionText = event.inputTranscription.text || '';
|
|
15637
15637
|
const transcriptionFinished = Boolean(event.inputTranscription.finished);
|
|
15638
15638
|
console.log("[BIDI] handleBidiEvent: processing inputTranscription", {
|
|
15639
|
-
text: transcriptionText.substring(0, 50),
|
|
15640
15639
|
textLength: transcriptionText.length,
|
|
15641
15640
|
finished: transcriptionFinished,
|
|
15642
15641
|
hasText: !!transcriptionText
|
|
@@ -15963,7 +15962,9 @@
|
|
|
15963
15962
|
};
|
|
15964
15963
|
ws.onmessage = event => {
|
|
15965
15964
|
try {
|
|
15966
|
-
|
|
15965
|
+
// The message kind only: a frame's text is what the caller or the
|
|
15966
|
+
// agent said, and transcripts stay out of browser logs (voice board paper, gate D).
|
|
15967
|
+
const dataPreview = typeof event.data === 'string' ? event.data.match(/^\{"([^"]+)"/)?.[1] || 'text' : 'binary';
|
|
15967
15968
|
console.log("[BIDI] WebSocket message received", {
|
|
15968
15969
|
dataLength: event.data?.length,
|
|
15969
15970
|
dataPreview
|
|
@@ -16385,8 +16386,7 @@
|
|
|
16385
16386
|
role: m.role,
|
|
16386
16387
|
contentLength: m.content?.length || 0,
|
|
16387
16388
|
isProcessing: m.isProcessing,
|
|
16388
|
-
hasContent: !!m.content
|
|
16389
|
-
contentPreview: m.content?.substring(0, 50)
|
|
16389
|
+
hasContent: !!m.content
|
|
16390
16390
|
}))
|
|
16391
16391
|
});
|
|
16392
16392
|
}
|
|
@@ -23944,7 +23944,7 @@
|
|
|
23944
23944
|
* value by its own test (that constant sat at 0.1.113 while this package was
|
|
23945
23945
|
* at 0.2.2 precisely because nothing enforced it - EV-2431).
|
|
23946
23946
|
*/
|
|
23947
|
-
const WIDGET_VERSION = '0.2.
|
|
23947
|
+
const WIDGET_VERSION = '0.2.46';
|
|
23948
23948
|
|
|
23949
23949
|
/**
|
|
23950
23950
|
* API utility functions
|