@mastra/ai-sdk 1.0.1-alpha.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @mastra/ai-sdk
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Added support for tripwire data chunks in streaming responses. ([#10291](https://github.com/mastra-ai/mastra/pull/10291))
8
+
9
+ Tripwire chunks allow the AI SDK to emit special data events when certain conditions are triggered during stream processing. These chunks include a `tripwireReason` field explaining why the tripwire was activated.
10
+
11
+ #### Usage
12
+
13
+ When converting Mastra chunks to AI SDK v5 format, tripwire chunks are now automatically handled:
14
+
15
+ ```typescript
16
+ // Tripwire chunks are converted to data-tripwire format
17
+ const chunk = {
18
+ type: 'tripwire',
19
+ payload: { tripwireReason: 'Rate limit approaching' }
20
+ };
21
+
22
+ // Converts to:
23
+ {
24
+ type: 'data-tripwire',
25
+ data: { tripwireReason: 'Rate limit approaching' }
26
+ }
27
+ ```
28
+
29
+ - Updated dependencies [[`7491cc0`](https://github.com/mastra-ai/mastra/commit/7491cc0350b2ba067f98c4915bf607119bd0150f), [`0d10ac7`](https://github.com/mastra-ai/mastra/commit/0d10ac7b8efa03c2f0c330eb2520148bfa6091e9), [`e3e899c`](https://github.com/mastra-ai/mastra/commit/e3e899c650f4c435445303bd97a66f5840a52a1e)]:
30
+ - @mastra/core@0.24.3
31
+
3
32
  ## 1.0.1-alpha.0
4
33
 
5
34
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/ai-sdk",
3
- "version": "1.0.1-alpha.0",
3
+ "version": "1.0.1",
4
4
  "description": "Adds custom API routes to be compatible with the AI SDK UI parts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -32,9 +32,9 @@
32
32
  "typescript": "^5.8.3",
33
33
  "vitest": "^3.2.4",
34
34
  "zod": "^3.25.76",
35
- "@internal/lint": "0.0.60",
36
- "@internal/types-builder": "0.0.35",
37
- "@mastra/core": "0.24.3-alpha.0"
35
+ "@internal/lint": "0.0.61",
36
+ "@internal/types-builder": "0.0.36",
37
+ "@mastra/core": "0.24.3"
38
38
  },
39
39
  "keywords": [
40
40
  "mastra",