@mastra/voice-playai 0.1.0-alpha.3 → 0.1.0-alpha.4
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 +4 -4
- package/CHANGELOG.md +10 -0
- package/package.json +2 -2
- package/src/index.ts +1 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/voice-playai@0.1.0-alpha.
|
|
2
|
+
> @mastra/voice-playai@0.1.0-alpha.4 build /home/runner/work/mastra/mastra/voice/playai
|
|
3
3
|
> tsup src/index.ts --format esm --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.3.6
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 5589ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.7.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/voice/playai/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
+
[32mDTS[39m ⚡️ Build success in 4073ms
|
|
15
15
|
[34mCLI[39m Cleaning output folder
|
|
16
16
|
[34mESM[39m Build start
|
|
17
17
|
[32mESM[39m [1mdist/index.js [22m[32m5.97 KB[39m
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 251ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/voice-playai
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [8d94c3e]
|
|
8
|
+
- Updated dependencies [99dcdb5]
|
|
9
|
+
- Updated dependencies [e752340]
|
|
10
|
+
- Updated dependencies [eb91535]
|
|
11
|
+
- @mastra/core@0.4.2-alpha.2
|
|
12
|
+
|
|
3
13
|
## 0.1.0-alpha.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/voice-playai",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.4",
|
|
4
4
|
"description": "Mastra PlayAI voice integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"zod": "^3.24.1",
|
|
19
|
-
"@mastra/core": "^0.4.2-alpha.
|
|
19
|
+
"@mastra/core": "^0.4.2-alpha.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@microsoft/api-extractor": "^7.49.2",
|
package/src/index.ts
CHANGED
|
@@ -173,9 +173,8 @@ export class PlayAIVoice extends MastraVoice {
|
|
|
173
173
|
});
|
|
174
174
|
|
|
175
175
|
if (!response.ok) {
|
|
176
|
-
const error = await response.json();
|
|
176
|
+
const error = (await response.json()) as { message: string };
|
|
177
177
|
|
|
178
|
-
// @ts-expect-error - PlayAI API returns an error object but we don't type it
|
|
179
178
|
throw new Error(`PlayAI API Error: ${error.message || response.statusText}`);
|
|
180
179
|
}
|
|
181
180
|
|