@mastra/voice-xai-realtime 0.2.3-alpha.0 → 0.2.3

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @mastra/voice-xai-realtime
2
2
 
3
+ ## 0.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated the ws dependency to ^8.21.0 to pull in fixes for an uninitialized memory disclosure (GHSA-58qx-3vcg-4xpx) and a memory exhaustion denial-of-service (GHSA-96hv-2xvq-fx4p) in the WebSocket server. ([#18789](https://github.com/mastra-ai/mastra/pull/18789))
8
+
9
+ - Updated dependencies [[`1042cb4`](https://github.com/mastra-ai/mastra/commit/1042cb4da227c0a1315a6362262be3058866c5f8)]:
10
+ - @mastra/schema-compat@1.3.3
11
+
12
+ ## 0.2.3-alpha.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated the ws dependency to ^8.21.0 to pull in fixes for an uninitialized memory disclosure (GHSA-58qx-3vcg-4xpx) and a memory exhaustion denial-of-service (GHSA-96hv-2xvq-fx4p) in the WebSocket server. ([#18789](https://github.com/mastra-ai/mastra/pull/18789))
17
+
3
18
  ## 0.2.3-alpha.0
4
19
 
5
20
  ### Patch Changes
@@ -129,6 +129,16 @@ declare class RequestContext<Values extends Record<string, any> | unknown = unkn
129
129
  * a clean JSON-safe dict for cross-context cycles.
130
130
  */
131
131
  private isSerializable;
132
+ /**
133
+ * Custom span serialization to prevent leaking internal state (like auth
134
+ * tokens stored in the private `registry` Map) into observability spans.
135
+ *
136
+ * `deepClean` in `@mastra/observability` calls this method before falling
137
+ * back to `Object.keys()` — which would walk the runtime-enumerable
138
+ * `registry` field and serialize its raw Map entries (including any
139
+ * bearer tokens) into exported spans.
140
+ */
141
+ serializeForSpan(): Record<string, unknown>;
132
142
  /**
133
143
  * Get all values as a typed object for destructuring.
134
144
  * Returns Record<string, any> when untyped, or the Values type when typed.
@@ -3,7 +3,7 @@ name: mastra-voice-xai-realtime
3
3
  description: Documentation for @mastra/voice-xai-realtime. Use when working with @mastra/voice-xai-realtime APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/voice-xai-realtime"
6
- version: "0.2.3-alpha.0"
6
+ version: "0.2.3"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.3-alpha.0",
2
+ "version": "0.2.3",
3
3
  "package": "@mastra/voice-xai-realtime",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -1,3 +1,5 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
1
3
  # Voice in Mastra
2
4
 
3
5
  Mastra's Voice system provides a unified interface for voice interactions, enabling text-to-speech (TTS), speech-to-text (STT), and real-time speech-to-speech (STS) capabilities in your applications.
@@ -1,3 +1,5 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
1
3
  # xAI Realtime voice
2
4
 
3
5
  The `XAIRealtimeVoice` class provides realtime voice interaction capabilities using the xAI Grok Voice Agent API. It implements Mastra's `MastraVoice` realtime contract and supports bidirectional audio streaming, text turns, server VAD, xAI voices, function tools, and xAI server-side tools.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/voice-xai-realtime",
3
- "version": "0.2.3-alpha.0",
3
+ "version": "0.2.3",
4
4
  "description": "Mastra xAI Grok Voice Agent API integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "ws": "^8.20.0",
28
- "@mastra/schema-compat": "1.3.3-alpha.0"
27
+ "ws": "^8.21.0",
28
+ "@mastra/schema-compat": "1.3.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "22.19.21",
@@ -38,9 +38,9 @@
38
38
  "typescript": "^6.0.3",
39
39
  "vitest": "4.1.8",
40
40
  "zod": "^4.4.3",
41
- "@internal/lint": "0.0.110",
42
- "@internal/types-builder": "0.0.85",
43
- "@internal/voice": "0.0.10"
41
+ "@internal/lint": "0.0.111",
42
+ "@internal/types-builder": "0.0.86",
43
+ "@internal/voice": "0.0.11"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "zod": "^3.25.0 || ^4.0.0"