@juspay/neurolink 13.12.5 → 13.13.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 +6 -4
- package/dist/adapters/tts/cartesiaHandler.js +4 -1
- package/dist/browser/neurolink.min.js +444 -444
- package/dist/core/constants.d.ts +11 -0
- package/dist/core/constants.js +11 -0
- package/dist/neurolink.d.ts +3 -0
- package/dist/neurolink.js +78 -2
- package/dist/providers/openaiChatCompletionsBase.js +3 -2
- package/dist/providers/openaiChatCompletionsClient.js +53 -1
- package/dist/proxy/proxyFetch.d.ts +29 -4
- package/dist/proxy/proxyFetch.js +95 -15
- package/dist/server/voice/voiceServerApp.js +4 -1
- package/dist/server/voice/voiceWebSocketHandler.js +30 -1
- package/dist/telemetry/jevRoutingAudit.d.ts +3 -0
- package/dist/telemetry/jevRoutingAudit.js +55 -0
- package/dist/types/openaiCompatible.d.ts +6 -1
- package/dist/types/proxy.d.ts +11 -0
- package/dist/types/toolRouting.d.ts +36 -0
- package/dist/utils/jevRoutingAudit.d.ts +5 -0
- package/dist/utils/jevRoutingAudit.js +145 -0
- package/dist/voice/livekit/realtimeModel.js +34 -0
- package/dist/voice/livekit/voiceAgent.js +7 -0
- package/dist/voice/providers/DeepgramSTT.js +2 -0
- package/dist/voice/providers/GeminiLive.js +2 -0
- package/dist/voice/providers/OpenAIRealtime.js +2 -0
- package/docs-site/static/search-index.json +10 -7
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
## [13.
|
|
1
|
+
## [13.13.0](https://github.com/juspay/neurolink/compare/v13.12.6...v13.13.0) (2026-11-18)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **(jev):** add JEV routing evaluation support ([90c1a24](https://github.com/juspay/neurolink/commit/90c1a24704ece8dde28f27dc165154df3fbd7d1d))
|
|
2
6
|
|
|
3
7
|
### Bug Fixes
|
|
4
8
|
|
|
5
|
-
- **(
|
|
6
|
-
- **(evaluation):** validate JSON response against JSON Schema in FormatScorer ([8847b25](https://github.com/juspay/neurolink/commit/8847b256940b998d4fde7fb06497ac2e5ac0c6b1)), closes [#1955](https://github.com/juspay/neurolink/issues/1955)
|
|
7
|
-
- **(stt):** dispose the handlers a credentials slice builds per call ([0463488](https://github.com/juspay/neurolink/commit/04634883aebd683adb5fbe0a7cfb68ca3385b4aa))
|
|
9
|
+
- **(proxy):** add opt-in strict mode so a failing proxy no longer falls back to a direct connection ([ea1aaf1](https://github.com/juspay/neurolink/commit/ea1aaf1880a162d054aae19339de565f34c3d2b3)), closes [#2054](https://github.com/juspay/neurolink/issues/2054)
|
|
8
10
|
|
|
9
11
|
## [11.2.3](https://github.com/juspay/neurolink/compare/v11.2.2...v11.2.3) (2026-08-19)
|
|
10
12
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import WebSocket from "ws";
|
|
2
2
|
import { EventEmitter } from "events";
|
|
3
3
|
import { logger } from "../../utils/logger.js";
|
|
4
|
+
import { assertWebSocketProxyPolicy } from "../../proxy/proxyFetch.js";
|
|
4
5
|
import { withTimeout } from "../../utils/async/withTimeout.js";
|
|
5
6
|
export function getCartesiaWsUrl() {
|
|
6
7
|
const baseUrl = process.env.CARTESIA_WS_BASE_URL ?? "wss://api.cartesia.ai/tts/websocket";
|
|
@@ -20,7 +21,9 @@ export class CartesiaStream extends EventEmitter {
|
|
|
20
21
|
if (!apiKey) {
|
|
21
22
|
throw new Error("CARTESIA_API_KEY is not set in environment");
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
+
const wsUrl = getCartesiaWsUrl();
|
|
25
|
+
assertWebSocketProxyPolicy(wsUrl, "Cartesia TTS");
|
|
26
|
+
this.ws = new WebSocket(wsUrl, {
|
|
24
27
|
headers: { "X-API-Key": apiKey },
|
|
25
28
|
});
|
|
26
29
|
this.ws.on("open", () => {
|