@lumavox/react 0.34.6 → 0.35.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/README.md CHANGED
@@ -60,6 +60,7 @@ redial.
60
60
  | `speaking` `recording` | the adapter is playing; the recorder is open |
61
61
  | `interrupted` | the device has the audio — a call, Siri, another app |
62
62
  | `send` `note` `startAudio` `sendAudio` `endAudio` `cancel` `mute` `reconnect` `end` `close` | the conversation's — `end` has its report written, then closes |
63
+ | `setVolume(level)` | how loud the agent's voice plays, 0 to 1: `audio`'s own, for a slider |
63
64
  | `startRecording({ rate, transcribeOnly, speech, thoughts })` `stopRecording({ transcribeOnly, discard })` | through the `audio` adapter; a held turn's own voice and thinking, as `send`'s |
64
65
  | `listen(options)` `stopListening()` `listening` `hearing` | hands-free: each utterance a turn, talking over the agent stopping it (`@lumavox/client`'s `listen`); `listen({ halfDuplex: true })` where echo cannot be cancelled — nothing heard while the agent speaks |
65
66
  | `newSession()` | a new conversation with the same agent |
@@ -151,6 +151,12 @@ export interface AgentControls extends Snapshot {
151
151
  stopListening(): Promise<void>;
152
152
  cancel(): void;
153
153
  mute(): void;
154
+ /**
155
+ * How loud the agent's voice plays, from 0 to 1 of how it was made: the
156
+ * audio's own `setVolume`, for a slider. Kept from reply to reply, and
157
+ * nothing with an audio that has none.
158
+ */
159
+ setVolume(level: number): void;
154
160
  reconnect(): void;
155
161
  /** A new conversation with the same agent. */
156
162
  newSession(): void;
package/dist/use-agent.js CHANGED
@@ -656,6 +656,9 @@ export function useAgent(target, options = {}) {
656
656
  hush();
657
657
  current.current?.mute();
658
658
  },
659
+ setVolume(level) {
660
+ latest.current.audio?.setVolume?.(level);
661
+ },
659
662
  reconnect() {
660
663
  if (current.current)
661
664
  current.current.reconnect();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumavox/react",
3
- "version": "0.34.6",
3
+ "version": "0.35.1",
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",
@@ -42,12 +42,12 @@
42
42
  "typecheck": "tsc --noEmit && tsc --noEmit -p test"
43
43
  },
44
44
  "peerDependencies": {
45
- "@lumavox/client": "0.34.6",
45
+ "@lumavox/client": "0.35.1",
46
46
  "react": ">=18"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@biomejs/biome": "2.6.4",
50
- "@lumavox/client": "0.34.6",
50
+ "@lumavox/client": "0.35.1",
51
51
  "@testing-library/react": "^16.3.3",
52
52
  "@types/node": "^24",
53
53
  "@types/react": "^19",