@dialt/sdk 0.23.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/CHANGELOG.md ADDED
@@ -0,0 +1,336 @@
1
+ # Changelog
2
+
3
+ ## 0.23.0
4
+
5
+ - The package is now published as `@dialt/sdk`; `@trelis/converse` is deprecated.
6
+ - Package metadata and documentation now point to Dialt and
7
+ [`dialt-ai/dialt`](https://github.com/dialt-ai/dialt).
8
+ - The runtime API and wire protocol are unchanged.
9
+
10
+ ## 0.22.1
11
+
12
+ - `startMic()` and the WebRTC track feeder retry their packaged source worklet when a CDN-transformed
13
+ SDK entry cannot load its sibling asset. This fixes esm.sh imports, where the transformed entry
14
+ lives under `es2022/` while the worklets remain under `es2022/src/`.
15
+
16
+ ## 0.22.0
17
+
18
+ - Playback-health telemetry: the player counts mid-reply underruns (queue drained at the
19
+ speaker) and, at each reply's `done`, the client sends
20
+ `{"type":"client_event","event":"playback_report", underruns, starved_ms, max_gap_ms, turn_id}`
21
+ over WebSocket transports. No behaviour change: buffering is untouched; the report is
22
+ record-only on the server and sizes the jitter buffer from real sessions. Not sent over
23
+ WebRTC, where the browser owns the jitter buffer.
24
+
25
+ ## 0.21.1
26
+
27
+ - Removed `playAcknowledgements` and the `ack` frame handler: the server does not send assistant
28
+ backchannel clips yet (roadmap, not shipped), so the option was a no-op and the docs overstated
29
+ it. Passing the old option is still silently accepted.
30
+
31
+ ## 0.21.0 - 2026-08-30
32
+
33
+ - `mode.end_call` (default `false`) declares the managed `end_call(farewell)` tool so the agent can
34
+ end the session. When it calls the tool, Dialt speaks only the farewell, sends
35
+ `session_end_requested` with that `farewell`, and closes after a short grace unless the user
36
+ speaks. Without the flag the agent cannot end the session; the host ends it with `wrap_up` or by
37
+ closing. While enabled, the name `end_call` is reserved, like `web_search` (`invalid_tools`). Pass-through only:
38
+ validation and the default are the only client changes.
39
+
40
+ ## 0.20.0 - 2026-08-28
41
+
42
+ - `mode.modality` selects `"voice"` (the default) or `"text"`. Text sessions use the same
43
+ instructions, tools, history and event lifecycle without microphone or playback setup.
44
+ - `sendText(text)` commits one `input_text` user turn in text mode and returns whether it was
45
+ written to the live connection. In voice sessions `sendText` is unchanged: still the user-role
46
+ `injectContext` shorthand returning the acknowledgement promise, so existing voice
47
+ integrations keep working. Text rejects microphone capture and the WebRTC transport so
48
+ integrations cannot accidentally open an unused media pipeline.
49
+
50
+ ## 0.19.1 - 2026-08-22
51
+
52
+ - Tool declarations: `expected_duration` (`"instant"` / `"seconds"` / `"long"`) replaces
53
+ `wait_for_tool` in the docs. It says what the caller should hear on a tool turn (the answer
54
+ directly, or an acknowledgement first); left out, Dialt learns from observed results.
55
+ `wait_for_tool: true` still passes through as a deprecated alias of `"instant"` during alpha and
56
+ will be removed at beta. Pass-through only: no client code changed.
57
+
58
+ ## 0.19.0 - 2026-08-22
59
+
60
+ - `ambience` constructor option (`'thinking'` DEFAULT; `'off'`, `'continuous'`; or an object with
61
+ `mode` plus `afterS`/`fadeInS`/`fadeOutS`/`level`) and `client.setAmbience(mode)`: a soft
62
+ generative bed rendered in the SDK and mixed THROUGH the SDK player, so it sits in the echo
63
+ canceller's far-end reference on every transport and on WebKit/iOS (where the old playground
64
+ bed on its own AudioContext had to be disabled). `'continuous'` plays it under the whole call
65
+ from the first reply; `'thinking'` plays it only while Dialt is blocking on a tool result with
66
+ nothing to say - fading in after ~1.5 s of silence and out again under the reply's first
67
+ syllables, a real crossfade - so a caller waiting on a slow backend hears "still working"
68
+ instead of dead air. The thinking sound is ON BY DEFAULT from this release (it plays nothing
69
+ unless a tool wait runs long); pass `ambience: 'off'` to keep the old silence. Bed-only audio
70
+ is never queued ahead of a reply and never counts toward
71
+ barge `discarded_ms`. Same musical design and constants as the server-mixed WebRTC
72
+ `background_audio` bed (the two renderers share the score, not the samples). WebSocket
73
+ transport only: over webrtc the SDK player is not in the audio path, so the local ambience
74
+ stays silent and `mode.background_audio` is the option there.
75
+ - New server event `working` (`active: true|false`): Dialt is blocking on a tool result
76
+ (client tools, web_search, think_deeply) with nothing audible, or that wait ended. Drives the
77
+ thinking sound; also usable for a "working..." UI state.
78
+ - `StreamingPlayer.setUnderlay(bed)` / `resumeUnderlay()`: the underlay path the ambience uses.
79
+ Audio is now resampled at schedule time rather than at enqueue (no wire or API change).
80
+
81
+ ## 0.18.0 - 2026-08-18
82
+
83
+ - `mode.background_audio` (default `false`): a server-mixed background underscore that plays for
84
+ the whole call, so the silence between turns feels connected. **Requires
85
+ `transport: 'webrtc'`** — the bed rides the server's playout track, the only downlink that runs
86
+ continuously between turns. The SDK drops the field with a console warning rather than sending
87
+ it on any non-WebRTC session, which matters because WebKit downgrades `webrtc` to `ws` for you;
88
+ without that, asking for both would cost the whole session on iOS instead of just the music.
89
+
90
+ ## 0.17.0 - 2026-08-17
91
+
92
+ - **Breaking (inert):** removed the reversible-playback protocol. The broker stopped sending
93
+ `playback_pause`/`playback_resume` when the ink-decider barge fallback was deleted, so this
94
+ client half has been dead code since. `StreamingPlayer.pause()`, `.resume()` and `.paused` are
95
+ gone, custom players no longer need them, and start frames no longer advertise
96
+ `playback_pause_v1` (`client.capabilities` is now always `[]`). Barge handling is unchanged:
97
+ `interrupted` still fade-clears and reports `discarded_ms`/`remaining_ms`.
98
+
99
+ ## 0.16.0 - 2026-08-16
100
+
101
+ - Interactions accept a `resolver` binding (`{tool, args, option_args, answer_arg}`): once the ask
102
+ has been voiced, subsequent user turns are constrained to an explicit transition
103
+ (resolve / clarify / supersede / cancel) via the broker-managed `interaction_transition` tool,
104
+ and `resolve` executes the bound client tool with host-declared arguments — the model picks the
105
+ option, never the arguments. See docs/client-tool-protocol.md §3a.
106
+
107
+ ## 0.15.0 - 2026-08-16
108
+
109
+ - `tool_choice` lands in `ConverseMode` and as `setToolChoice(choice, { oneShot })` — the familiar
110
+ OpenAI/Gemini restriction vocabulary (`"auto"` | `"none"` | `"required"` | `{allowed: [...]}` |
111
+ `{tool: "..."}`). `required`/`allowed`/`tool` constrain the first planning round of each user
112
+ turn; `none` withholds declared client tools while broker protocol tools stay available;
113
+ `oneShot` reverts after the next user turn. Unknown names are rejected server-side with the new
114
+ `invalid_tool_choice` error code; `setTools` resets the choice to `"auto"`.
115
+ ## 0.14.1 - 2026-08-16
116
+
117
+ - `sendToolInteractionUpdate` normalizes whitespace-padded interaction ids the same way the server
118
+ does, so the ack (which echoes the stripped id) correlates instead of surfacing as a timeout;
119
+ ack correlation is additionally state-matched, so a server answer arriving after a client-side
120
+ timeout can no longer be handed to the next same-id caller.
121
+
122
+ ## 0.14.0 - 2026-08-16
123
+
124
+ - Interactions now carry a stable identity: pass `interaction.id` in `sendToolPartialResult` (or
125
+ read the broker-derived id from `tool_job_narration.interaction_ids`), then close an ask without
126
+ completing its parent call via `sendToolInteractionUpdate(id, interactionId, state, { note })`
127
+ (`state`: `resolved` | `cancelled` | `superseded`). Queued or actively-speaking narration for it
128
+ stops, the model is told not to act on it, and the returned promise resolves with the server's
129
+ deterministic `tool_interaction_update_ack` (late/duplicate/unknown updates come back
130
+ `applied: false` with a stable `reason`). Add `interactionState(interactionId)`; narration and
131
+ interaction state caches now reset on connection loss (a resumed session implicitly supersedes
132
+ any open interaction — re-raise it if still needed).
133
+
134
+ ## 0.13.1 - 2026-08-15
135
+
136
+ - `sendToolPartialResult(id, content, { interaction })` marks a partial as needing a user decision
137
+ (docs/client-tool-protocol.md §3a): unlike `reply: true` alone, it is never silently dropped when
138
+ the floor is busy — it queues and preempts pending completion narration, with a far more
139
+ persistent delivery retry. Add `narrationState(jobId)` and `waitForNarrationState(jobId, states,
140
+ { timeoutMs })` to track its queued/started/superseded/cancelled lifecycle via the new
141
+ `tool_job_narration` server frame.
142
+
143
+ ## 0.13.0 - 2026-08-13
144
+
145
+ - `startMic()` now resolves only after the first AudioWorklet frame. If an opened capture produces
146
+ no frames within the bounded startup window, the SDK fully releases it and reacquires once; a
147
+ repeated stall rejects with the structured `capture_stalled` error. Silent frames remain valid.
148
+ - Add `warming_up`, `listening`, `recovering`, and `failed` capture lifecycle events so host apps can
149
+ render status without implementing their own retry or readiness fallback.
150
+ - Add audio-input enumeration and selection with `getInputDevices()`, `setInputDevice(deviceId)`,
151
+ the `inputDeviceId` option/property, `devices_changed`, and `input_device_changed`. Active capture
152
+ follows relevant `devicechange` events through guarded track restart.
153
+ - Make `stopMic()` a cancellation barrier and harden stop/retry, overlapping device-switch, and
154
+ delayed WebRTC track-replacement races without leaking tracks, worklets, or AudioContexts.
155
+
156
+ ## 0.12.3 - 2026-08-11
157
+
158
+ - Tool result, progress, deferred, partial-result, and cancellation methods now return whether a
159
+ live transport accepted the frame, allowing durable bridges to retain controls across reconnects.
160
+
161
+ ## 0.12.2 - 2026-08-11
162
+
163
+ - Keep a newer successful connection authoritative when an older failed WebSocket delivers its
164
+ close event late, so explicit capacity retries cannot clear the live transport.
165
+
166
+ ## 0.12.1 - 2026-08-11
167
+
168
+ - Bound correlated injection acknowledgement waits and reject with cleanup when an older or
169
+ mismatched broker never returns `inject_context_ack`.
170
+
171
+ ## 0.12.0 - 2026-08-11
172
+
173
+ - `injectContext(text, {messageId, role, reply})` now returns the broker's authoritative
174
+ accepted/rejected acknowledgement. The client-generated ID and `input_source: "text"` are
175
+ echoed on the canonical final `asr` event; spoken transcripts carry `input_source: "voice"`.
176
+ - `sendText(text, {messageId})` exposes the same correlation and acknowledgement contract.
177
+
178
+ ## 0.11.0 - 2026-08-11
179
+
180
+ - Add `sendText(text)` as the concise alias for a typed user turn that should receive a reply.
181
+ Typed and spoken turns use the same `asr` event contract, including a stable `turn_id`.
182
+
183
+ ## 0.10.0 - 2026-08-10
184
+
185
+ - Add a supported, versioned Browser SDK resume-state API for full page reloads:
186
+ `resumeState`, `exportResumeState()`, `importResumeState()`, and the `resume_state` event. The
187
+ state rotates with each server token and clears on terminal or rejected sessions, so apps can
188
+ safely keep a tab-scoped `sessionStorage` copy without reading private SDK fields.
189
+ - Add `injectContext(text, {role, reply})` as the supported Browser SDK surface for the existing
190
+ `inject_context` protocol frame, including proactive host announcements with `reply: true`.
191
+
192
+ ## 0.9.0 - 2026-08-09
193
+
194
+ - Add `mode.silence_nudge_s` / `mode.silence_end_s` to override the broker's two-stage idle
195
+ policy (check-in nudge, then sign-off + end) per session — useful for benchmark harnesses or
196
+ flows with long think-time. Both default to the broker's env-configured values (10s/20s) when
197
+ omitted; the broker also falls back to those defaults if either value is non-positive or
198
+ `silence_end_s` does not exceed `silence_nudge_s`.
199
+
200
+ ## 0.8.0 - 2026-08-08
201
+
202
+ - License Dialt-authored Browser SDK code under Apache 2.0; bundled AEC components remain under
203
+ the third-party terms reproduced in the package.
204
+ - Keep assistant playback on the browser's unity-gain path, with no SDK limiter, software boost,
205
+ output-route switch, or `navigator.audioSession` manipulation.
206
+ - Document that device volume, physical routing, and mobile full-duplex attenuation are controlled
207
+ by the browser and operating system; native integration is required for routing guarantees.
208
+ - Document the Browser SDK support matrix across Chromium, Brave, Firefox and Safari, including
209
+ the automatic WebKit fallback from experimental WebRTC to WebSocket.
210
+
211
+ ## 0.7.0 - 2026-08-07
212
+
213
+ - Add `sendToolDeferred(id, {handle, statusLabel})` for jobs that outlive their originating voice
214
+ turn. Eligible tools opt in with `deferred`, `deferred_timeout`, and `notify_on_complete`.
215
+ - Deferred jobs remain addressable by their original call ID or host handle for progress,
216
+ cancellation, and exactly one terminal result. The SDK forwards `tool_deferred_ack` and
217
+ `tool_deferred_resume` events through the normal typed and catch-all event APIs.
218
+ - Tool interruption is unchanged: barge-in never cancels deferred work; explicit cancellation does.
219
+
220
+ ## 0.6.0 - 2026-08-06
221
+
222
+ - **Hidden-tab playback fix.** Browsers throttle `setInterval` to ~1 Hz in hidden tabs while the
223
+ AudioContext keeps running, so the player's 0.2 s scheduling horizon starved playback into
224
+ 0.2 s bursts with ~0.8 s gaps whenever the user wasn't looking at the page. The player now
225
+ commits a 2.5 s horizon while `document.visibilityState === 'hidden'` (and tops up immediately
226
+ on `visibilitychange`), keeping playback gapless; the short barge-friendly horizon is unchanged
227
+ in visible tabs, and barge/clear still stops committed-but-unplayed sources at any horizon.
228
+ - **Tool replies from anywhere.** `ConverseClient` gains `sendToolResult(id, content)`,
229
+ `sendToolProgress(id, note)`, `sendToolPartialResult(id, content, {reply})` and
230
+ `sendToolCancel(id)`, mirroring the Python SDK. Listen for `tool_call` events and answer them
231
+ from the page or relay them to a backend — no raw-socket sidecar needed.
232
+ - `binaryToFloat32` and `toWebSocketUrl` are re-exported from the package root for raw-socket
233
+ integrations.
234
+ - Server-side (deployed independently): the per-tool `timeout` ceiling rises from 120 s to 600 s
235
+ for long-running agentic tools.
236
+
237
+ ## 0.5.0 - 2026-08-06
238
+
239
+ - **Downlink audio is PCM16 on the wire — required update.** The server's downlink default
240
+ changed from Float32 to PCM16 (bandwidth-halving negotiation, `start.audio.output_encoding`).
241
+ 0.4.5 and earlier decode the downlink as Float32 and therefore produce noise or decode errors
242
+ against current servers. This release requests `output_encoding: "pcm16"` explicitly in the
243
+ start frame, decodes Int16, and fails `connect()` loudly if the server's `ready.audio` field
244
+ announces a format other than pcm16 at 16 kHz instead of playing garbage.
245
+ - `transport: 'webrtc'` option (experimental): carries the session over a WebRTC peer connection
246
+ with a native remote audio track; the WS protocol remains the default and recommended path.
247
+ Includes bounded ICE gathering, the `webrtc_connect_failed` error, and mic dropout/resampler
248
+ fixes from the field-test rounds.
249
+
250
+ ## 0.4.5 - 2026-07-30
251
+
252
+ - **Remove the speaker/earpiece output option entirely (`audioOutputMode`, `setAudioOutputMode`,
253
+ and the 0.4.1 `<audio>`-element sink)** — settled by an 11-configuration on-device experiment
254
+ (iPhone 17, Chrome + Safari): modern iOS routes web audio to the loudspeakers in every reachable
255
+ configuration, "earpiece AND speaker at once" is normal iPhone stereo playback (the receiver is
256
+ the second stereo speaker), and no configuration reaches earpiece-only. Web pages have no output
257
+ routing to control, so the SDK ships none: playback is a plain
258
+ `AudioContext` → master gain → `destination` path on every platform. The
259
+ never-touch-`navigator.audioSession` regression guard remains.
260
+
261
+ ## 0.4.4 - 2026-07-30
262
+
263
+ - **Revert 0.4.3's `navigator.audioSession` usage — field-falsified on real iPhones (Chrome and
264
+ Safari).** Setting `type = 'playback'` (speaker mode) before capture made `getUserMedia` fail
265
+ with a mic-permission error — a broken mic in the DEFAULT mode — and `'play-and-record'`
266
+ (earpiece mode) still produced earpiece+loudspeaker dual output. Speaker routing is back on the
267
+ 0.4.2 `<audio>`-element sink (mic works; known-imperfect dual output remains the open bug). A
268
+ regression test now pins that the SDK never touches `navigator.audioSession`.
269
+ `setAudioOutputMode()` (live switching) and the speaker/earpiece option remain.
270
+
271
+ ## 0.4.3 - 2026-07-30
272
+
273
+ - `ConverseClient.setAudioOutputMode(mode)`: the 0.4.2 speaker/earpiece choice is now live-switchable
274
+ mid-session (previously took effect on the next `Start` only) — re-wires `StreamingPlayer`'s output
275
+ route and, on WebKit, sets `navigator.audioSession.type` (`'playback'` for speaker, `'play-and-record'`
276
+ for earpiece; Safari 16.4+, feature-detected, a no-op elsewhere). This directly targets the
277
+ documented WebKit routing decision the `<audio>`-element sink workaround (0.4.1) could only work
278
+ around indirectly — field testing on iPhone showed the 0.4.1 fix alone produced simultaneous
279
+ earpiece + loudspeaker output rather than a clean switch, and `navigator.audioSession.type` is the
280
+ platform's own API for this exact "mic is live, but I want loudspeaker anyway" case.
281
+ - The two mechanisms are mutually exclusive, not stacked: where `navigator.audioSession` exists
282
+ (Safari 16.4+), the 0.4.1 `<audio>`-element sink route is skipped entirely (`hasAudioSessionApi()`
283
+ in `aec.js`) — running both at once would leave two live output paths fighting over the same
284
+ routing decision, the same shape that produced the dual-output field result. The element sink
285
+ remains only as the pre-16.4 WebKit fallback.
286
+
287
+ ## 0.4.2 - 2026-07-30
288
+
289
+ - Add the `audioOutputMode` (`'speaker' | 'earpiece'`, default `'speaker'`) `StreamingPlayer`
290
+ constructor option so apps can explicitly choose between the loudspeaker route (0.4.1) and the
291
+ platform's own call-audio/earpiece routing on iOS/WebKit, instead of only ever getting one. No
292
+ effect on platforms without that fork (desktop, Android).
293
+
294
+ ## 0.4.1 - 2026-07-30
295
+
296
+ - Route assistant playback through a sink `<audio>` element (instead of `AudioContext.destination`
297
+ directly) on iOS/WebKit, to avoid the call-audio session routing playback to the earpiece
298
+ receiver instead of the loudspeaker while a mic stream is active (WebKit bug 218012). Pending
299
+ on-device confirmation.
300
+
301
+ ## 0.4.0 - 2026-07-29
302
+
303
+ - Publish the package publicly on npm with installation and authentication guidance.
304
+
305
+ - Advertise reversible playback only for players that implement pause and resume, and report the
306
+ actual SDK-owned microphone/AEC frontend across reconnects for echo diagnostics.
307
+ - Make web search opt-in by default.
308
+ - Add `setMicEnabled(enabled)` to gate SDK-owned microphone tracks without reopening capture.
309
+ - Add the default-on `playAcknowledgements` constructor option so half-duplex integrations can
310
+ suppress automatic backchannel playback while retaining `ack` and `audio` event dispatch.
311
+ - Add `setVoice(voice)` to switch character voice from the next reply and reassert it on reconnect.
312
+ - Add `sendAmbienceState(active)` to report the client's ambience state on the session timeline.
313
+
314
+ ## 0.3.1 - 2026-07-16
315
+
316
+ - Enable web search by default while preserving an explicit `webSearch: false` opt-out.
317
+
318
+ ## 0.3.0 - 2026-07-16
319
+
320
+ - Add the opt-in `webSearch` session capability.
321
+
322
+ ## 0.2.1 - 2026-07-15
323
+
324
+ - Gate `playback_pause_v1` to desktop Chromium and Firefox until physical WebKit validation.
325
+
326
+ ## 0.2.0 - 2026-07-15
327
+
328
+ - Add synchronized processed/raw uplink framing for raw-assisted barge detection.
329
+ - Keep WebKit on one physical raw capture teed through SDK WASM AEC.
330
+ - Add reversible `playback_pause` / `playback_resume` handling for backchannels.
331
+ - Add AEC configuration plumbing and explicit desktop/WebKit engine controls.
332
+ - Fail closed to processed-only audio when raw capture or classification is unavailable.
333
+
334
+ ## 0.1.0
335
+
336
+ - Initial browser SDK extracted from the Dialt web client.
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,12 @@
1
+ Dialt Browser SDK
2
+ Copyright 2026 Dialt
3
+
4
+ Dialt-authored portions of this SDK are licensed under the Apache License, Version 2.0.
5
+
6
+ The bundled src/aec3-wasm.js includes third-party WebRTC audio-processing and Emscripten
7
+ components, including libc++abi. Their copyright, license, disclaimer, and patent texts are
8
+ reproduced under
9
+ THIRD_PARTY_LICENSES/ and continue to govern those components.
10
+
11
+ Neither the Apache license nor these third-party licenses grant rights to the hosted Dialt
12
+ service, its models, Dialt trademarks, or server-side software.