@mastra/voice-openai-realtime 0.1.4 → 0.2.0-alpha.2

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.
@@ -1,23 +1,23 @@
1
1
 
2
- > @mastra/voice-openai-realtime@0.1.4-alpha.5 build /home/runner/work/mastra/mastra/voice/openai-realtime-api
2
+ > @mastra/voice-openai-realtime@0.2.0-alpha.2 build /home/runner/work/mastra/mastra/voice/openai-realtime-api
3
3
  > tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.4.0
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 8684ms
9
+ TSC ⚡️ Build success in 7564ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.8.2
13
13
  Writing package typings: /home/runner/work/mastra/mastra/voice/openai-realtime-api/dist/_tsup-dts-rollup.d.ts
14
14
  Analysis will use the bundled TypeScript version 5.8.2
15
15
  Writing package typings: /home/runner/work/mastra/mastra/voice/openai-realtime-api/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 10763ms
16
+ DTS ⚡️ Build success in 11137ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- CJS dist/index.cjs 18.50 KB
21
- CJS ⚡️ Build success in 512ms
22
- ESM dist/index.js 18.44 KB
23
- ESM ⚡️ Build success in 722ms
20
+ ESM dist/index.js 18.58 KB
21
+ ESM ⚡️ Build success in 700ms
22
+ CJS dist/index.cjs 18.64 KB
23
+ CJS ⚡️ Build success in 920ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @mastra/voice-openai-realtime
2
2
 
3
+ ## 0.2.0-alpha.2
4
+
5
+ ### Minor Changes
6
+
7
+ - 185f8e9: Emit add tools and silence warnings
8
+
9
+ ## 0.1.5-alpha.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [8a8a73b]
14
+ - Updated dependencies [6f92295]
15
+ - @mastra/core@0.8.4-alpha.1
16
+
17
+ ## 0.1.5-alpha.0
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [03f3cd0]
22
+ - @mastra/core@0.8.4-alpha.0
23
+
3
24
  ## 0.1.4
4
25
 
5
26
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -548,6 +548,12 @@ var OpenAIRealtimeVoice = class extends voice.MastraVoice {
548
548
  messages: []
549
549
  }
550
550
  );
551
+ this.emit("tool-result", {
552
+ toolCallId: output.call_id,
553
+ toolName: output.name,
554
+ args: context,
555
+ result
556
+ });
551
557
  this.sendEvent("conversation.item.create", {
552
558
  item: {
553
559
  type: "function_call_output",
package/dist/index.js CHANGED
@@ -546,6 +546,12 @@ var OpenAIRealtimeVoice = class extends MastraVoice {
546
546
  messages: []
547
547
  }
548
548
  );
549
+ this.emit("tool-result", {
550
+ toolCallId: output.call_id,
551
+ toolName: output.name,
552
+ args: context,
553
+ result
554
+ });
549
555
  this.sendEvent("conversation.item.create", {
550
556
  item: {
551
557
  type: "function_call_output",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/voice-openai-realtime",
3
- "version": "0.1.4",
3
+ "version": "0.2.0-alpha.2",
4
4
  "description": "Mastra OpenAI Realtime API integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "openai-realtime-api": "^1.0.7",
24
24
  "ws": "^8.18.1",
25
25
  "zod-to-json-schema": "^3.24.5",
26
- "@mastra/core": "^0.8.3"
26
+ "@mastra/core": "^0.8.4-alpha.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@microsoft/api-extractor": "^7.52.2",
package/src/index.ts CHANGED
@@ -626,6 +626,12 @@ export class OpenAIRealtimeVoice extends MastraVoice {
626
626
  messages: [],
627
627
  },
628
628
  );
629
+ this.emit('tool-result', {
630
+ toolCallId: output.call_id,
631
+ toolName: output.name,
632
+ args: context,
633
+ result,
634
+ });
629
635
  this.sendEvent('conversation.item.create', {
630
636
  item: {
631
637
  type: 'function_call_output',