@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.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +21 -0
- package/dist/index.cjs +6 -0
- package/dist/index.js +6 -0
- package/package.json +2 -2
- package/src/index.ts +6 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/voice-openai-realtime@0.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.4.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 7564ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.2
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/voice/openai-realtime-api/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.2
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/voice/openai-realtime-api/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 11137ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
20
|
+
[32mESM[39m [1mdist/index.js [22m[32m18.58 KB[39m
|
|
21
|
+
[32mESM[39m ⚡️ Build success in 700ms
|
|
22
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m18.64 KB[39m
|
|
23
|
+
[32mCJS[39m ⚡️ 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.
|
|
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.
|
|
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',
|