ai 5.0.0-beta.3 → 5.0.0-beta.30
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 +233 -0
- package/dist/bin/ai.min.js +126 -0
- package/dist/index.d.mts +2860 -2534
- package/dist/index.d.ts +2860 -2534
- package/dist/index.js +8680 -8239
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8260 -7821
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +52 -21
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +52 -21
- package/dist/internal/index.mjs.map +1 -1
- package/dist/mcp-stdio/index.js +3 -3
- package/dist/mcp-stdio/index.js.map +1 -1
- package/dist/mcp-stdio/index.mjs +3 -3
- package/dist/mcp-stdio/index.mjs.map +1 -1
- package/dist/test/index.d.mts +55 -2
- package/dist/test/index.d.ts +55 -2
- package/dist/test/index.js +105 -4
- package/dist/test/index.js.map +1 -1
- package/dist/test/index.mjs +103 -4
- package/dist/test/index.mjs.map +1 -1
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,238 @@
|
|
1
1
|
# ai
|
2
2
|
|
3
|
+
## 5.0.0-beta.30
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [fedb55e]
|
8
|
+
- @ai-sdk/gateway@1.0.0-beta.16
|
9
|
+
|
10
|
+
## 5.0.0-beta.29
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- e7fcc86: feat (ai): introduce dynamic tools
|
15
|
+
- d92b9a8: fix(ai): add support for MCP protocol version 2025-06-18
|
16
|
+
- Updated dependencies [e7fcc86]
|
17
|
+
- @ai-sdk/provider-utils@3.0.0-beta.7
|
18
|
+
- @ai-sdk/gateway@1.0.0-beta.15
|
19
|
+
|
20
|
+
## 5.0.0-beta.28
|
21
|
+
|
22
|
+
### Patch Changes
|
23
|
+
|
24
|
+
- 84343eb: fix (ui): call sendAutomaticallyWhen with updated messages
|
25
|
+
- a753b3a: feat (provider/anthropic): cache control for tools
|
26
|
+
- Updated dependencies [ac34802]
|
27
|
+
- @ai-sdk/provider-utils@3.0.0-beta.6
|
28
|
+
- @ai-sdk/gateway@1.0.0-beta.14
|
29
|
+
|
30
|
+
## 5.0.0-beta.27
|
31
|
+
|
32
|
+
### Patch Changes
|
33
|
+
|
34
|
+
- d5ae088: feat (ui): add sendAutomaticallyWhen to Chat
|
35
|
+
- Updated dependencies [0477a13]
|
36
|
+
- Updated dependencies [cf1e00e]
|
37
|
+
- Updated dependencies [cc21603]
|
38
|
+
- @ai-sdk/gateway@1.0.0-beta.13
|
39
|
+
|
40
|
+
## 5.0.0-beta.26
|
41
|
+
|
42
|
+
### Patch Changes
|
43
|
+
|
44
|
+
- ae77a99: chore (ai): rename text and reasoning chunks in streamText fullstream
|
45
|
+
- 1f6ce57: feat (ai): infer tool call types in the `onToolCall` callback
|
46
|
+
- 5a975a4: feat (ui): update Chat tool result submission
|
47
|
+
- 2a62513: Fix error thrown when emptying messages in onError or onFinish
|
48
|
+
- 904fa5e: feat (ai/core): add terminateOnError option to readUIMessageStream
|
49
|
+
- f81c720: chore(ai): bundle dependencies in CLI binary
|
50
|
+
- Updated dependencies [70ebead]
|
51
|
+
- @ai-sdk/gateway@1.0.0-beta.12
|
52
|
+
|
53
|
+
## 5.0.0-beta.25
|
54
|
+
|
55
|
+
### Patch Changes
|
56
|
+
|
57
|
+
- Updated dependencies [8bd3624]
|
58
|
+
- Updated dependencies [e001ea1]
|
59
|
+
- @ai-sdk/gateway@1.0.0-beta.11
|
60
|
+
|
61
|
+
## 5.0.0-beta.24
|
62
|
+
|
63
|
+
### Patch Changes
|
64
|
+
|
65
|
+
- add5ac1: feat (ai): make streamText toUIMessageStream async iterable
|
66
|
+
- ff1c81a: feat (ai): add streamText onAbort callback
|
67
|
+
- e4c8647: feat (ui): allow asynchronous onFinish in createUIMessageStream
|
68
|
+
- 383cbfa: feat (ai): add isAborted to onFinish callback for ui message streams
|
69
|
+
- Updated dependencies [57edfcb]
|
70
|
+
- Updated dependencies [383cbfa]
|
71
|
+
- @ai-sdk/provider-utils@3.0.0-beta.5
|
72
|
+
- @ai-sdk/gateway@1.0.0-beta.10
|
73
|
+
|
74
|
+
## 5.0.0-beta.23
|
75
|
+
|
76
|
+
### Patch Changes
|
77
|
+
|
78
|
+
- 89ba235: fix (ui): support tool names with dash
|
79
|
+
|
80
|
+
## 5.0.0-beta.22
|
81
|
+
|
82
|
+
### Patch Changes
|
83
|
+
|
84
|
+
- de2d2ab: feat(ai): add provider and provider registry middleware functionality
|
85
|
+
- 6c42e56: feat (ai): validate ui stream data chunks
|
86
|
+
- c93a8bc: chore(ai): export AsyncIterableStream type from async-iterable-stream module
|
87
|
+
- 20398f2: feat: ai sdk cli documentation + adjusted default model
|
88
|
+
- 86293e5: fix (ai): use correct generateMessageId in streamText toUIMessageStream
|
89
|
+
- 205077b: fix: improve Zod compatibility
|
90
|
+
- Updated dependencies [205077b]
|
91
|
+
- @ai-sdk/provider-utils@3.0.0-beta.4
|
92
|
+
- @ai-sdk/gateway@1.0.0-beta.9
|
93
|
+
|
94
|
+
## 5.0.0-beta.21
|
95
|
+
|
96
|
+
### Patch Changes
|
97
|
+
|
98
|
+
- 38ae5cc: feat (ai): export InferUIMessageChunk type
|
99
|
+
- faea29f: fix (provider/openai): multi-step reasoning with text
|
100
|
+
- 90ac328: fix (ui): tool part metadata support in ui messages
|
101
|
+
- 4a1e0c8: fix(ai-cli): fix bundling and improve authentication error handling
|
102
|
+
- 30ac566: fix (ui): text message metadata support in ui messages
|
103
|
+
|
104
|
+
## 5.0.0-beta.20
|
105
|
+
|
106
|
+
### Patch Changes
|
107
|
+
|
108
|
+
- 4c8f834: feat: automatically respect rate limit headers in retry logic
|
109
|
+
|
110
|
+
Added automatic support for respecting rate limit headers (`retry-after-ms` and `retry-after`) in the SDK's retry logic. When these headers are present and contain reasonable values (0-60 seconds), the retry mechanism will use the server-specified delay instead of exponential backoff. This matches the behavior of Anthropic and OpenAI client SDKs and improves rate limit handling without requiring any API changes.
|
111
|
+
|
112
|
+
## 5.0.0-beta.19
|
113
|
+
|
114
|
+
### Patch Changes
|
115
|
+
|
116
|
+
- 10b21eb: feat(cli): add ai command line interface
|
117
|
+
- 75c3396: fix (ai): handle errors in 2nd streamText doStream call
|
118
|
+
- 05d2819: feat: allow zod 4.x as peer dependency
|
119
|
+
- db64cbe: fix (provider/openai): multi-step reasoning with tool calls
|
120
|
+
- Updated dependencies [05d2819]
|
121
|
+
- @ai-sdk/provider-utils@3.0.0-beta.3
|
122
|
+
- @ai-sdk/gateway@1.0.0-beta.8
|
123
|
+
|
124
|
+
## 5.0.0-beta.18
|
125
|
+
|
126
|
+
### Patch Changes
|
127
|
+
|
128
|
+
- d3960e3: selectTelemetryAttributes more robustness
|
129
|
+
- 9338f3e: fix (ai): throw error for v1 models
|
130
|
+
|
131
|
+
## 5.0.0-beta.17
|
132
|
+
|
133
|
+
### Patch Changes
|
134
|
+
|
135
|
+
- Updated dependencies [c190907]
|
136
|
+
- @ai-sdk/gateway@1.0.0-beta.7
|
137
|
+
|
138
|
+
## 5.0.0-beta.16
|
139
|
+
|
140
|
+
### Patch Changes
|
141
|
+
|
142
|
+
- Updated dependencies [9e16bfd]
|
143
|
+
- @ai-sdk/gateway@1.0.0-beta.6
|
144
|
+
|
145
|
+
## 5.0.0-beta.15
|
146
|
+
|
147
|
+
### Patch Changes
|
148
|
+
|
149
|
+
- 8e31d46: feat (ai): export SourceDocumentUIPart
|
150
|
+
|
151
|
+
## 5.0.0-beta.14
|
152
|
+
|
153
|
+
### Patch Changes
|
154
|
+
|
155
|
+
- Updated dependencies [30ab1de]
|
156
|
+
- @ai-sdk/gateway@1.0.0-beta.5
|
157
|
+
|
158
|
+
## 5.0.0-beta.13
|
159
|
+
|
160
|
+
### Patch Changes
|
161
|
+
|
162
|
+
- 377bbcf: fix (ui): tool input can be undefined during input-streaming
|
163
|
+
- ce1d1f3: feat (ai): export mock image, speech, and transcription models
|
164
|
+
- c040e2f: fix (ui): inject generated response message id
|
165
|
+
- c808e4d: fix (ui): do not send changing assistant message ids when onFinish is provided
|
166
|
+
|
167
|
+
## 5.0.0-beta.12
|
168
|
+
|
169
|
+
### Patch Changes
|
170
|
+
|
171
|
+
- fc0380b: feat (ui): resolvable header, body, credentials in http chat transport
|
172
|
+
- 51f497d: feat (ai): step input message modification in prepareStep
|
173
|
+
- 4f3776c: feat (ai): add InferUITools helper
|
174
|
+
|
175
|
+
## 5.0.0-beta.11
|
176
|
+
|
177
|
+
### Patch Changes
|
178
|
+
|
179
|
+
- 9e40cbe: Allow destructuring output and errorText on `ToolUIPart` type
|
180
|
+
|
181
|
+
## 5.0.0-beta.10
|
182
|
+
|
183
|
+
### Major Changes
|
184
|
+
|
185
|
+
- 2b637d6: chore (ai): rename UIMessageStreamPart to UIMessageChunk
|
186
|
+
|
187
|
+
### Patch Changes
|
188
|
+
|
189
|
+
- 16ccfb2: feat (ai): add readUIMessageStream helper
|
190
|
+
- 90ca2b9: feat(ai): Record tool call errors on tool call spans recorded in `generateText` and `streamText`.
|
191
|
+
- af1d5a5: fix(ai): Unexpected reasoning-start event in extract reasoning middleware
|
192
|
+
|
193
|
+
## 5.0.0-beta.9
|
194
|
+
|
195
|
+
### Patch Changes
|
196
|
+
|
197
|
+
- 86cfc72: feat (ai): add ignoreIncompleteToolCalls option to convertToModelMessages
|
198
|
+
|
199
|
+
## 5.0.0-beta.8
|
200
|
+
|
201
|
+
### Patch Changes
|
202
|
+
|
203
|
+
- 6909543: feat (ai): support system parameter in Agent constructor
|
204
|
+
- c8fce91: feat (ai): add experimental Agent abstraction
|
205
|
+
- 9121250: Expose provider metadata as an attribute on exported OTEL spans
|
206
|
+
- Updated dependencies [97fedf9]
|
207
|
+
- @ai-sdk/gateway@1.0.0-beta.4
|
208
|
+
|
209
|
+
## 5.0.0-beta.7
|
210
|
+
|
211
|
+
### Patch Changes
|
212
|
+
|
213
|
+
- 60132dd: fixed date formatting for updated mcp protocol version
|
214
|
+
|
215
|
+
## 5.0.0-beta.6
|
216
|
+
|
217
|
+
### Patch Changes
|
218
|
+
|
219
|
+
- 143c55b: feat (ai): export Chat callback types
|
220
|
+
- f04ffe4: feat (ui): add onData callback to Chat
|
221
|
+
- 97c35c0: feat (ui): transient data parts
|
222
|
+
- fccf75c: update mcp protocol version
|
223
|
+
|
224
|
+
## 5.0.0-beta.5
|
225
|
+
|
226
|
+
### Patch Changes
|
227
|
+
|
228
|
+
- 4f3e637: fix (ui): avoid caching globalThis.fetch in case it is patched by other libraries
|
229
|
+
|
230
|
+
## 5.0.0-beta.4
|
231
|
+
|
232
|
+
### Patch Changes
|
233
|
+
|
234
|
+
- 09f41ac: fix (ui): add message metadata in Chat.sendMessage
|
235
|
+
|
3
236
|
## 5.0.0-beta.3
|
4
237
|
|
5
238
|
### Patch Changes
|