@voxevolv/client 0.3.3 → 0.3.4
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/CHANGELOG.md +11 -0
- package/README.md +25 -4
- package/dist/browser/index.js +6 -6
- package/dist/browser/index.js.map +4 -4
- package/dist/browser/index.js.sha384 +1 -1
- package/dist/browser/manifest.json +1 -1
- package/dist/diagnostics.d.ts +61 -0
- package/dist/diagnostics.d.ts.map +1 -0
- package/dist/diagnostics.js +176 -0
- package/dist/diagnostics.js.map +1 -0
- package/dist/index.d.ts +16 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +304 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@voxevolv/client` are recorded here.
|
|
4
4
|
|
|
5
|
+
## 0.3.4 - 2026-09-22
|
|
6
|
+
|
|
7
|
+
- Add a typed `trigger` and safe command correlation fields to every recovery event.
|
|
8
|
+
- Keep the latest 128 content-free diagnostic entries in memory and report them
|
|
9
|
+
only after a slow operation, rejection, failure, timeout, or reconnect.
|
|
10
|
+
- Send triggered reports through the session-scoped diagnostics endpoint without
|
|
11
|
+
exposing context text, images, tokens, or request URLs, and never let reporting
|
|
12
|
+
failures affect the realtime call.
|
|
13
|
+
- Coalesce rate-limited triggers into a trailing report and stop waiting on a
|
|
14
|
+
diagnostics request after five seconds, so later failure evidence is not lost.
|
|
15
|
+
|
|
5
16
|
## 0.3.3 - 2026-09-17
|
|
6
17
|
|
|
7
18
|
- Add identified, revisioned transcript snapshots with `onTranscriptUpdated()` and `session.transcript`.
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ Browsers without a build step can use the versioned bundle after publication:
|
|
|
26
26
|
```html
|
|
27
27
|
<script type="module">
|
|
28
28
|
import { RealtimeSession } from
|
|
29
|
-
"https://cdn.jsdelivr.net/npm/@voxevolv/client@0.3.
|
|
29
|
+
"https://cdn.jsdelivr.net/npm/@voxevolv/client@0.3.4/dist/browser/index.js";
|
|
30
30
|
</script>
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -127,7 +127,7 @@ await session.connect({ waitForRemoteAudio: false });
|
|
|
127
127
|
|
|
128
128
|
## Recovery, rejoin, and connection quality
|
|
129
129
|
|
|
130
|
-
With `@voxevolv/client@0.3.2
|
|
130
|
+
With `@voxevolv/client@0.3.2` or newer, set `autoRejoin: true` to let the SDK recover
|
|
131
131
|
when an agent leaves, its worker changes, a context command times out, or LiveKit
|
|
132
132
|
exhausts its transport reconnect. Automatic recovery runs only after the session has
|
|
133
133
|
connected successfully, never after an explicit `disconnect()`, `end()`, or
|
|
@@ -169,8 +169,17 @@ session.onStateChange((state) => {
|
|
|
169
169
|
renderConnectionState(state);
|
|
170
170
|
});
|
|
171
171
|
|
|
172
|
-
session.onRecovery(({ status, strategy, attempt, error }) => {
|
|
173
|
-
recordRecovery({
|
|
172
|
+
session.onRecovery(({ status, strategy, attempt, trigger, messageId, contextKey, timeoutMs, error }) => {
|
|
173
|
+
recordRecovery({
|
|
174
|
+
status,
|
|
175
|
+
strategy,
|
|
176
|
+
attempt,
|
|
177
|
+
trigger,
|
|
178
|
+
messageId,
|
|
179
|
+
contextKey,
|
|
180
|
+
timeoutMs,
|
|
181
|
+
error,
|
|
182
|
+
});
|
|
174
183
|
});
|
|
175
184
|
|
|
176
185
|
session.onConnectionQuality((quality) => {
|
|
@@ -182,6 +191,17 @@ session.onConnectionQuality((quality) => {
|
|
|
182
191
|
`waitForState(states, timeoutMs, { signal })` is available for advanced flows
|
|
183
192
|
that need to await a bounded set of lifecycle states.
|
|
184
193
|
|
|
194
|
+
In version 0.3.4, every recovery event includes a typed `trigger`, such as
|
|
195
|
+
`context_command_timeout`, `livekit_disconnected`, `agent_disconnected`, or
|
|
196
|
+
`worker_replaced`. Context timeouts also include the safe `messageId`,
|
|
197
|
+
`contextKey`, and `timeoutMs` correlation fields. The SDK keeps the latest 128
|
|
198
|
+
content-free transport and command entries in memory. It sends a throttled,
|
|
199
|
+
best-effort report only after a slow operation, rejection, failure, timeout, or
|
|
200
|
+
reconnect. Reports never include context text, screenshots, tokens, or raw URLs,
|
|
201
|
+
and reporting failures never affect the call. A trigger received during the
|
|
202
|
+
throttle window is retained for one trailing report, and each diagnostics request
|
|
203
|
+
stops waiting after five seconds so a stuck endpoint cannot block later evidence.
|
|
204
|
+
|
|
185
205
|
Manual `rejoin()` remains available. It obtains a fresh room token, disconnects
|
|
186
206
|
any underlying room connection, and reconnects with the original microphone or
|
|
187
207
|
application-owned track choice. A managed microphone that the user muted with
|
|
@@ -199,6 +219,7 @@ enabled by default), or a same-origin proxy base that forwards only:
|
|
|
199
219
|
|
|
200
220
|
- `POST /sessions/{id}/room-tokens`
|
|
201
221
|
- `GET /sessions/{id}/events`
|
|
222
|
+
- `POST /sessions/{id}/diagnostics`
|
|
202
223
|
- `DELETE /sessions/{id}`
|
|
203
224
|
|
|
204
225
|
The proxy must forward the browser's `Authorization: Bearer vsa_...` header. It
|