@lumavox/react 0.28.0 → 0.30.0
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/use-agent.d.ts +2 -0
- package/dist/use-agent.js +8 -0
- package/package.json +2 -2
package/dist/use-agent.d.ts
CHANGED
|
@@ -134,6 +134,8 @@ export interface AgentControls extends Snapshot {
|
|
|
134
134
|
reconnect(): void;
|
|
135
135
|
/** A new conversation with the same agent. */
|
|
136
136
|
newSession(): void;
|
|
137
|
+
/** The conversation is over: its report is written now (`Conversation.end`), then it closes. */
|
|
138
|
+
end(): void;
|
|
137
139
|
close(): void;
|
|
138
140
|
}
|
|
139
141
|
export declare function useAgent(target: AgentTarget | null, options?: UseAgentOptions): AgentControls;
|
package/dist/use-agent.js
CHANGED
|
@@ -159,6 +159,10 @@ export function useAgent(target, options = {}) {
|
|
|
159
159
|
speech: latest.current.speech,
|
|
160
160
|
thoughts: latest.current.thoughts,
|
|
161
161
|
tools,
|
|
162
|
+
// Unset stays unset: the client sends the device's own.
|
|
163
|
+
...(latest.current.timeZone !== undefined
|
|
164
|
+
? { timeZone: latest.current.timeZone }
|
|
165
|
+
: {}),
|
|
162
166
|
});
|
|
163
167
|
current.current = made;
|
|
164
168
|
opening.current = false;
|
|
@@ -419,6 +423,10 @@ export function useAgent(target, options = {}) {
|
|
|
419
423
|
current.current?.mute();
|
|
420
424
|
},
|
|
421
425
|
reconnect: () => current.current?.reconnect(),
|
|
426
|
+
end() {
|
|
427
|
+
hush();
|
|
428
|
+
current.current?.end();
|
|
429
|
+
},
|
|
422
430
|
close() {
|
|
423
431
|
hush();
|
|
424
432
|
current.current?.close();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumavox/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "React and React Native hooks for Lumavox agents: a conversation that keeps itself connected, sessions, memory and relations, over @lumavox/client.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"typecheck": "tsc --noEmit && tsc --noEmit -p test"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@lumavox/client": "0.
|
|
32
|
+
"@lumavox/client": "0.30.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": ">=18"
|