@lumavox/client 0.11.0 → 0.11.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/conversation.d.ts +7 -0
- package/dist/conversation.js +10 -2
- package/package.json +1 -1
package/dist/conversation.d.ts
CHANGED
|
@@ -363,6 +363,13 @@ export declare class Conversation {
|
|
|
363
363
|
/** The next queued turn goes, when nothing is running and the socket is ready. */
|
|
364
364
|
private pump;
|
|
365
365
|
/** A turn's frame with its `speech` and `thoughts`. */
|
|
366
|
+
/**
|
|
367
|
+
* A turn's `speech` and `thoughts` on the frame that takes it — never on
|
|
368
|
+
* `user_audio.end`, which has neither: the recording's `user_audio.start`
|
|
369
|
+
* carried them, and the edge closes the socket on a field a verb lacks
|
|
370
|
+
* (4009). `thoughts` went on it until 0.11.1, so a conversation connected
|
|
371
|
+
* with `thoughts: true` closed on its first spoken turn.
|
|
372
|
+
*/
|
|
366
373
|
private turnFrame;
|
|
367
374
|
/** The open recording is over before its end: the edge discards the rest. */
|
|
368
375
|
private abandon;
|
package/dist/conversation.js
CHANGED
|
@@ -790,11 +790,19 @@ export class Conversation {
|
|
|
790
790
|
this.sync();
|
|
791
791
|
}
|
|
792
792
|
/** A turn's frame with its `speech` and `thoughts`. */
|
|
793
|
+
/**
|
|
794
|
+
* A turn's `speech` and `thoughts` on the frame that takes it — never on
|
|
795
|
+
* `user_audio.end`, which has neither: the recording's `user_audio.start`
|
|
796
|
+
* carried them, and the edge closes the socket on a field a verb lacks
|
|
797
|
+
* (4009). `thoughts` went on it until 0.11.1, so a conversation connected
|
|
798
|
+
* with `thoughts: true` closed on its first spoken turn.
|
|
799
|
+
*/
|
|
793
800
|
turnFrame(frame, options) {
|
|
801
|
+
if (frame.type === "user_audio.end")
|
|
802
|
+
return frame;
|
|
794
803
|
const speech = options.speech ?? this.speech;
|
|
795
|
-
if (speech !== undefined
|
|
804
|
+
if (speech !== undefined)
|
|
796
805
|
frame.speech = speech;
|
|
797
|
-
}
|
|
798
806
|
if (options.thoughts ?? this.setup.options.thoughts)
|
|
799
807
|
frame.thoughts = true;
|
|
800
808
|
return frame;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumavox/client",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Talk to Lumavox agents from a browser, a React Native app or Node, with an end user's ephemeral key: conversations on the agent's socket, sessions, memory and relations. Zero dependencies.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|