openclaw/extensions/deepgram
dwc1997 f07ea10869
fix(deepgram): validate realtime base URL overrides, preserving ws(s):// endpoints (#105334)
* fix(deepgram): reject malformed and non-http(s) realtime base URL overrides

* fix(deepgram): accept direct ws(s):// realtime base URL overrides

Preserve released behavior: v2026.6.11 passes wss:// (and ws://) base URL
overrides straight through to the WebSocket URL builder. The prior validator
rejected every non-http(s) scheme, breaking custom Deepgram realtime proxies
that use a direct wss:// endpoint. Accept ws:/wss: alongside http(s):, keep
rejecting malformed and unrelated schemes, and preserve a direct ws(s):
override's protocol/path/port through toDeepgramRealtimeWsUrl.

* fix(deepgram): keep secure ws:// -> wss:// upgrade for realtime base URL

A prior change preserved direct ws:/wss: overrides unchanged, which also
stopped upgrading a plaintext ws:// override to wss://. That regressed the
released behavior where every accepted non-http: scheme maps to wss:, so an
existing ws:// endpoint would begin sending Deepgram realtime audio and
provider auth over an unencrypted socket. Restore the release mapping
(http: -> ws:, all others -> wss:), which still preserves a direct wss://
override and keeps the ws:// -> wss:// secure upgrade.

* fix(deepgram): preserve custom websocket transport

Co-authored-by: dwc1997 <du.wenchi@xydigit.com>

* test(deepgram): use placeholder credential fixture

* test(deepgram): clarify loopback callbacks

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-13 11:33:53 -07:00
..
audio.live.test.ts docs: document small extension sources 2026-06-04 21:02:07 -04:00
audio.test.ts docs: document small extension sources 2026-06-04 21:02:07 -04:00
audio.ts docs: document small extension sources 2026-06-04 21:02:07 -04:00
index.ts docs: document small extension sources 2026-06-04 21:02:07 -04:00
media-understanding-provider.ts docs: document small extension sources 2026-06-04 21:02:07 -04:00
openclaw.plugin.json fix(plugins): remove simpleicons icon color paths (#95987) 2026-06-23 12:16:02 -07:00
package.json chore(release): set version to 2026.7.2 2026-07-11 04:00:49 +01:00
realtime-transcription-provider.test.ts fix(deepgram): validate realtime base URL overrides, preserving ws(s):// endpoints (#105334) 2026-07-13 11:33:53 -07:00
realtime-transcription-provider.ts fix(deepgram): validate realtime base URL overrides, preserving ws(s):// endpoints (#105334) 2026-07-13 11:33:53 -07:00
test-api.ts docs: document small extension sources 2026-06-04 21:02:07 -04:00
tsconfig.json