@makemore/agent-frontend 1.6.0 → 1.6.1
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.js +8 -2
- package/package.json +1 -1
package/dist/chat-widget.js
CHANGED
|
@@ -645,7 +645,7 @@
|
|
|
645
645
|
state.isSimulating = false;
|
|
646
646
|
|
|
647
647
|
// Speak simulated user message if TTS enabled
|
|
648
|
-
if (config.enableTTS
|
|
648
|
+
if (config.enableTTS) {
|
|
649
649
|
await speakText(data.response, 'user');
|
|
650
650
|
}
|
|
651
651
|
|
|
@@ -670,9 +670,15 @@
|
|
|
670
670
|
|
|
671
671
|
const journey = config.journeyTypes[journeyType];
|
|
672
672
|
if (journey?.initialMessage) {
|
|
673
|
-
setTimeout(() => {
|
|
673
|
+
setTimeout(async () => {
|
|
674
674
|
state.isSimulating = true;
|
|
675
675
|
render();
|
|
676
|
+
|
|
677
|
+
// Speak initial message if TTS enabled
|
|
678
|
+
if (config.enableTTS) {
|
|
679
|
+
await speakText(journey.initialMessage, 'user');
|
|
680
|
+
}
|
|
681
|
+
|
|
676
682
|
sendMessage(journey.initialMessage).then(() => {
|
|
677
683
|
state.isSimulating = false;
|
|
678
684
|
render();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makemore/agent-frontend",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "A standalone, zero-dependency chat widget for AI agents. Embed conversational AI into any website with a single script tag.",
|
|
5
5
|
"main": "dist/chat-widget.js",
|
|
6
6
|
"files": [
|