@ai-sdk/workflow 0.0.0-6b196531-20260710185421
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 +1145 -0
- package/LICENSE +13 -0
- package/README.md +62 -0
- package/dist/index.d.ts +1188 -0
- package/dist/index.js +2522 -0
- package/dist/index.js.map +1 -0
- package/package.json +80 -0
- package/src/create-language-model-tool-result-output.ts +85 -0
- package/src/do-stream-step.ts +265 -0
- package/src/index.ts +49 -0
- package/src/normalize-ui-message-stream.ts +164 -0
- package/src/providers/mock-function-wrapper.ts +11 -0
- package/src/providers/mock.ts +110 -0
- package/src/serializable-schema.ts +114 -0
- package/src/stream-text-iterator.ts +661 -0
- package/src/test/agent-e2e-workflows.ts +673 -0
- package/src/test/calculate-workflow.ts +19 -0
- package/src/test/test-sandbox.ts +26 -0
- package/src/to-ui-message-chunk.ts +238 -0
- package/src/types.ts +11 -0
- package/src/workflow-agent.ts +2930 -0
- package/src/workflow-chat-transport.ts +534 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,1145 @@
|
|
|
1
|
+
# @ai-sdk/workflow
|
|
2
|
+
|
|
3
|
+
## 0.0.0-6b196531-20260710185421
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [036463b]
|
|
8
|
+
- Updated dependencies [9988975]
|
|
9
|
+
- Updated dependencies [036463b]
|
|
10
|
+
- Updated dependencies [6b19653]
|
|
11
|
+
- @ai-sdk/provider-utils@0.0.0-6b196531-20260710185421
|
|
12
|
+
- ai@0.0.0-6b196531-20260710185421
|
|
13
|
+
|
|
14
|
+
## 1.0.20
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- a4186d6: Promote the `repairToolCall` option to stable, with a deprecated `experimental_repairToolCall` alias for backwards compatibility.
|
|
19
|
+
- c29e0d7: fix (workflow): mark package as ESM so the published files match the `main`, `types`, and `exports` entrypoints in package.json. Previously `require('@ai-sdk/workflow')` failed with `MODULE_NOT_FOUND` because the declared CommonJS entrypoints were never published.
|
|
20
|
+
- Updated dependencies [b9ac19f]
|
|
21
|
+
- Updated dependencies [a4186d6]
|
|
22
|
+
- ai@7.0.20
|
|
23
|
+
|
|
24
|
+
## 1.0.19
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [be7f05a]
|
|
29
|
+
- Updated dependencies [ee55a07]
|
|
30
|
+
- Updated dependencies [aad737d]
|
|
31
|
+
- Updated dependencies [0f93c57]
|
|
32
|
+
- ai@7.0.19
|
|
33
|
+
- @ai-sdk/provider@4.0.3
|
|
34
|
+
- @ai-sdk/provider-utils@5.0.7
|
|
35
|
+
|
|
36
|
+
## 1.0.18
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- Updated dependencies [ac306ed]
|
|
41
|
+
- @ai-sdk/provider-utils@5.0.6
|
|
42
|
+
- ai@7.0.18
|
|
43
|
+
|
|
44
|
+
## 1.0.17
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- 148babc: `WorkflowChatTransport` now drops orphan UI chunks (deltas/ends and tool output/approval chunks whose part was started before the resumed window) when reconnecting with a negative `initialStartIndex`, instead of crashing the AI SDK client. Self-contained `tool-input-available`/`tool-input-error` chunks establish the tool part and are never dropped. A one-time warning links to docs on rewinding to a step boundary server-side.
|
|
49
|
+
- e660e45: Reduce the `doStreamStep` step-boundary payload by returning minimal raw aggregates and reconstructing the `StepResult` outside the step, instead of serializing the full `StepResult` plus the per-chunk array into the durable event log.
|
|
50
|
+
- cc773bc: Expose `totalUsage` and `finishReason` on the `WorkflowAgent.stream()` result, mirroring `GenerateTextResult`/`StreamTextResult` and the existing `onEnd` event payload.
|
|
51
|
+
- ai@7.0.17
|
|
52
|
+
|
|
53
|
+
## 1.0.16
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- Updated dependencies [a8f9b6d]
|
|
58
|
+
- ai@7.0.16
|
|
59
|
+
|
|
60
|
+
## 1.0.15
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- ai@7.0.15
|
|
65
|
+
|
|
66
|
+
## 1.0.14
|
|
67
|
+
|
|
68
|
+
### Patch Changes
|
|
69
|
+
|
|
70
|
+
- 5c5c0f5: Add experimental streaming transcription support for transcription models, including OpenAI `gpt-realtime-whisper` and xAI WebSocket STT.
|
|
71
|
+
- Updated dependencies [5c5c0f5]
|
|
72
|
+
- ai@7.0.14
|
|
73
|
+
- @ai-sdk/provider@4.0.2
|
|
74
|
+
- @ai-sdk/provider-utils@5.0.5
|
|
75
|
+
|
|
76
|
+
## 1.0.13
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- ai@7.0.13
|
|
81
|
+
|
|
82
|
+
## 1.0.12
|
|
83
|
+
|
|
84
|
+
### Patch Changes
|
|
85
|
+
|
|
86
|
+
- Updated dependencies [ecfeb6f]
|
|
87
|
+
- Updated dependencies [a193137]
|
|
88
|
+
- Updated dependencies [c6f5e62]
|
|
89
|
+
- ai@7.0.12
|
|
90
|
+
- @ai-sdk/provider-utils@5.0.4
|
|
91
|
+
|
|
92
|
+
## 1.0.11
|
|
93
|
+
|
|
94
|
+
### Patch Changes
|
|
95
|
+
|
|
96
|
+
- Updated dependencies [0a87626]
|
|
97
|
+
- ai@7.0.11
|
|
98
|
+
|
|
99
|
+
## 1.0.10
|
|
100
|
+
|
|
101
|
+
### Patch Changes
|
|
102
|
+
|
|
103
|
+
- Updated dependencies [8c616f0]
|
|
104
|
+
- ai@7.0.10
|
|
105
|
+
- @ai-sdk/provider-utils@5.0.3
|
|
106
|
+
|
|
107
|
+
## 1.0.9
|
|
108
|
+
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- ai@7.0.9
|
|
112
|
+
|
|
113
|
+
## 1.0.8
|
|
114
|
+
|
|
115
|
+
### Patch Changes
|
|
116
|
+
|
|
117
|
+
- Updated dependencies [0274f34]
|
|
118
|
+
- @ai-sdk/provider@4.0.1
|
|
119
|
+
- ai@7.0.8
|
|
120
|
+
- @ai-sdk/provider-utils@5.0.2
|
|
121
|
+
|
|
122
|
+
## 1.0.7
|
|
123
|
+
|
|
124
|
+
### Patch Changes
|
|
125
|
+
|
|
126
|
+
- Updated dependencies [d598481]
|
|
127
|
+
- ai@7.0.7
|
|
128
|
+
|
|
129
|
+
## 1.0.6
|
|
130
|
+
|
|
131
|
+
### Patch Changes
|
|
132
|
+
|
|
133
|
+
- 4a9f4d5: `WorkflowChatTransport` now repairs UI message stream part framing, so duplicated or interleaved durable stream writes no longer crash the AI SDK consumer with `Received text-delta for missing text part`.
|
|
134
|
+
- 4016539: Forward `reasoning` generation settings from `WorkflowAgent` to model calls.
|
|
135
|
+
- Updated dependencies [989402d]
|
|
136
|
+
- ai@7.0.6
|
|
137
|
+
|
|
138
|
+
## 1.0.5
|
|
139
|
+
|
|
140
|
+
### Patch Changes
|
|
141
|
+
|
|
142
|
+
- Updated dependencies [a2750db]
|
|
143
|
+
- ai@7.0.5
|
|
144
|
+
|
|
145
|
+
## 1.0.4
|
|
146
|
+
|
|
147
|
+
### Patch Changes
|
|
148
|
+
|
|
149
|
+
- Updated dependencies [6a436e3]
|
|
150
|
+
- @ai-sdk/provider-utils@5.0.1
|
|
151
|
+
- ai@7.0.4
|
|
152
|
+
|
|
153
|
+
## 1.0.3
|
|
154
|
+
|
|
155
|
+
### Patch Changes
|
|
156
|
+
|
|
157
|
+
- ai@7.0.3
|
|
158
|
+
|
|
159
|
+
## 1.0.2
|
|
160
|
+
|
|
161
|
+
### Patch Changes
|
|
162
|
+
|
|
163
|
+
- ai@7.0.2
|
|
164
|
+
|
|
165
|
+
## 1.0.1
|
|
166
|
+
|
|
167
|
+
### Patch Changes
|
|
168
|
+
|
|
169
|
+
- ai@7.0.1
|
|
170
|
+
|
|
171
|
+
## 1.0.0
|
|
172
|
+
|
|
173
|
+
### Major Changes
|
|
174
|
+
|
|
175
|
+
- 1949571: feat(ai): make experimental_telemetry stable
|
|
176
|
+
- b3976a2: initial version
|
|
177
|
+
|
|
178
|
+
### Patch Changes
|
|
179
|
+
|
|
180
|
+
- 19736ee: feat(ai): rename onStepFinish to onStepEnd
|
|
181
|
+
- 382d53b: refactoring: rename context to runtimeContext
|
|
182
|
+
- b567a6c: dependency updates
|
|
183
|
+
- b402b95: `WorkflowAgent` now rejects system messages inside `prompt` or `messages` by default, matching the behavior of `generateText`/`streamText`. Set `allowSystemInMessages: true` to opt in to the previous behavior.
|
|
184
|
+
- eea8d98: refactoring: rename tool execution events
|
|
185
|
+
- 98627e5: feat(ai): remove onChunk event from telemetry
|
|
186
|
+
- ca446f8: feat: flexible tool descriptions
|
|
187
|
+
- 75763b0: agents: tag outgoing requests with an ai-sdk-agent user-agent segment for usage attribution (tool-loop, workflow)
|
|
188
|
+
- 9f0e36c: trigger release for all packages after provenance setup
|
|
189
|
+
- 29d8cf4: feat(ai): rename the core-event types
|
|
190
|
+
- 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
|
|
191
|
+
- a0ca584: fix (workflow): preserve invalid tool calls as errors instead of emitting synthetic success results
|
|
192
|
+
- eba685c: Remove `maxSteps` option from `WorkflowAgent`. Use `stopWhen` with stop conditions like `isStepCount()` instead.
|
|
193
|
+
- 0c4c275: trigger initial canary release
|
|
194
|
+
- 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
|
|
195
|
+
- 334ae5d: Update step performance metrics with explicit effective, input, output, and total token throughput fields.
|
|
196
|
+
- b8396f0: trigger initial beta release
|
|
197
|
+
- c3d4019: chore(ai): rename 'TelemetrySettings' to 'TelemetryOptions'
|
|
198
|
+
- 083947b: feat(ai): separate toolsContext from context
|
|
199
|
+
- bae5e2b: fix(security): re-validate tool approvals from client message history before execution
|
|
200
|
+
|
|
201
|
+
The approval-replay path in `generateText`/`streamText` (and `WorkflowAgent.stream`) reconstructed approved tool calls from the client-supplied messages array and executed them without re-validating input against the tool's schema or re-applying the approval policy. A client could forge an assistant message with a pre-approved tool-call part and have the server execute a tool with attacker-chosen arguments.
|
|
202
|
+
|
|
203
|
+
The replay path now validates HMAC signature (when `experimental_toolApprovalSecret` is configured), re-validates tool-call input against the tool's input schema, and re-resolves the approval policy before execution.
|
|
204
|
+
|
|
205
|
+
- d775a57: feat: introduce Instructions type
|
|
206
|
+
- f32c750: refactoring(ai): simplify mergeAbortSignals
|
|
207
|
+
- bf6c17b: Add `id` property to WorkflowAgent for telemetry identification, matching ToolLoopAgent's API surface.
|
|
208
|
+
- 3ca592a: Add `prompt` as an alternative to `messages` in `WorkflowAgent.stream()`, matching the `AgentCallParameters` pattern from ToolLoopAgent.
|
|
209
|
+
- eb49d29: Add constructor-level defaults for `stopWhen`, `activeTools`, `output`, `experimental_repairToolCall`, and `experimental_download` to WorkflowAgent, matching ToolLoopAgent's pattern. Stream-level values override constructor defaults.
|
|
210
|
+
- 0455f24: Enrich WorkflowAgent callback event shapes to align with ToolLoopAgent:
|
|
211
|
+
- Add `stepNumber` to `onToolCallStart` and `onToolCallFinish`
|
|
212
|
+
- Add `steps` (previous step results) to `onStepStart`
|
|
213
|
+
- Adopt discriminated union pattern (`success: true/false`) for `onToolCallFinish`
|
|
214
|
+
- Add `durationMs` to `onToolCallFinish`
|
|
215
|
+
- 43543dc: Add `experimental_sandbox` support to `WorkflowAgent`. The sandbox is passed to tool execution, configurable on the constructor or per stream, and available to `prepareStep` for per-step overrides.
|
|
216
|
+
- 0e462a7: Use `LanguageModel` type for model parameter, aligning with `ToolLoopAgent`. Remove async factory model form. Rename callback types to use `WorkflowAgentOn*` prefix.
|
|
217
|
+
- 39dad72: feat(workflow): add stable telemetry integration support to `WorkflowAgent` and remove legacy telemetry options.
|
|
218
|
+
- 1e4b350: Honor `tool.toModelOutput` in `WorkflowAgent`.
|
|
219
|
+
|
|
220
|
+
`WorkflowAgent` now routes successful local, provider-executed, and approved tool results through each tool's optional `toModelOutput` hook, matching `generateText`, `streamText`, and `ToolLoopAgent`. Previously the hook was ignored and results were always serialized as `text` or `json`.
|
|
221
|
+
|
|
222
|
+
Internally exports the shared tool-result model-output helpers from `ai/internal`, and uses the shared `getErrorMessage` behavior for workflow tool error results.
|
|
223
|
+
|
|
224
|
+
- c3a6524: Add a `stepNumber` option to `doStreamStep` so callers can create `StepResult` objects with the correct step number.
|
|
225
|
+
- 907e002: fix (workflow): forward provider-executed tool approvals to the provider on resume
|
|
226
|
+
|
|
227
|
+
`WorkflowAgent` stripped every `tool-approval-request` and `tool-approval-response` part from the messages when resuming after a tool approval, regardless of whether the tool was locally or provider-executed. For provider-executed tools (e.g. MCP via the OpenAI Responses API) this silently dropped the approval before `convertToLanguageModelPrompt` could forward it, so the provider never learned of the approval and the tool was never executed. Local approvals are still executed and stripped, while provider-executed approvals are now preserved and forwarded to the provider, matching the discriminator core's `streamText` already uses. This is the inverse of the bug fixed in #14289.
|
|
228
|
+
|
|
229
|
+
- 1d56275: feat(workflow): add `runtimeContext` and `toolsContext` to `WorkflowAgent`.
|
|
230
|
+
|
|
231
|
+
`runtimeContext` is shared agent state that flows through `prepareCall`, `prepareStep`, step results, and `onFinish`. `toolsContext` is a per-tool map; each tool receives its own validated entry as `context`, validated against `tool.contextSchema` when defined. The previous `experimental_context` option (and corresponding fields on related callbacks and option types) has been removed — use `runtimeContext` for shared state and `toolsContext` for per-tool values. Context values in `WorkflowAgent` should be serializable because they can cross workflow and step boundaries.
|
|
232
|
+
|
|
233
|
+
- 81e68da: Fix `stepNumber` on telemetry events emitted by `WorkflowAgent.stream` so per-step telemetry integrations (e.g. `@ai-sdk/devtools`) correctly key state per step.
|
|
234
|
+
- 69d7128: fix(workflow): reuse the core tool-approval validation in WorkflowAgent
|
|
235
|
+
|
|
236
|
+
`WorkflowAgent.stream` previously reconstructed approved tool calls with a copy of the core collection logic and validated them inline. Because the logic was duplicated, it could drift from the hardened `generateText`/`streamText` implementation. WorkflowAgent now collects approvals via the shared `collectToolApprovals` and re-validates each one through the shared `validateApprovedToolApprovals` (input-schema re-validation, HMAC signature verification when configured, and approval-policy re-resolution) in addition to its existing `needsApproval` guard, so a client-forged approval cannot execute a tool with unvalidated input. The duplicated collector was removed; `collectToolApprovals` and `validateApprovedToolApprovals` are now exported from `ai/internal`.
|
|
237
|
+
|
|
238
|
+
- fbea042: refactor: replace duplicate `filterTools`/`filterToolSet` with shared `experimental_filterActiveTools` from `ai`
|
|
239
|
+
|
|
240
|
+
## 1.0.0-beta.107
|
|
241
|
+
|
|
242
|
+
### Patch Changes
|
|
243
|
+
|
|
244
|
+
- ai@7.0.0-beta.187
|
|
245
|
+
|
|
246
|
+
## 1.0.0-beta.106
|
|
247
|
+
|
|
248
|
+
### Patch Changes
|
|
249
|
+
|
|
250
|
+
- ai@7.0.0-beta.186
|
|
251
|
+
|
|
252
|
+
## 1.0.0-beta.105
|
|
253
|
+
|
|
254
|
+
### Patch Changes
|
|
255
|
+
|
|
256
|
+
- 75763b0: agents: tag outgoing requests with an ai-sdk-agent user-agent segment for usage attribution (tool-loop, workflow)
|
|
257
|
+
- Updated dependencies [75763b0]
|
|
258
|
+
- ai@7.0.0-beta.185
|
|
259
|
+
|
|
260
|
+
## 1.0.0-beta.104
|
|
261
|
+
|
|
262
|
+
### Patch Changes
|
|
263
|
+
|
|
264
|
+
- 43543dc: Add `experimental_sandbox` support to `WorkflowAgent`. The sandbox is passed to tool execution, configurable on the constructor or per stream, and available to `prepareStep` for per-step overrides.
|
|
265
|
+
|
|
266
|
+
## 1.0.0-beta.103
|
|
267
|
+
|
|
268
|
+
### Patch Changes
|
|
269
|
+
|
|
270
|
+
- Updated dependencies [0416e3e]
|
|
271
|
+
- @ai-sdk/provider@4.0.0-beta.20
|
|
272
|
+
- ai@7.0.0-beta.184
|
|
273
|
+
- @ai-sdk/provider-utils@5.0.0-beta.50
|
|
274
|
+
|
|
275
|
+
## 1.0.0-beta.102
|
|
276
|
+
|
|
277
|
+
### Patch Changes
|
|
278
|
+
|
|
279
|
+
- ai@7.0.0-beta.183
|
|
280
|
+
|
|
281
|
+
## 1.0.0-beta.101
|
|
282
|
+
|
|
283
|
+
### Patch Changes
|
|
284
|
+
|
|
285
|
+
- b402b95: `WorkflowAgent` now rejects system messages inside `prompt` or `messages` by default, matching the behavior of `generateText`/`streamText`. Set `allowSystemInMessages: true` to opt in to the previous behavior.
|
|
286
|
+
|
|
287
|
+
## 1.0.0-beta.100
|
|
288
|
+
|
|
289
|
+
### Patch Changes
|
|
290
|
+
|
|
291
|
+
- 907e002: fix (workflow): forward provider-executed tool approvals to the provider on resume
|
|
292
|
+
|
|
293
|
+
`WorkflowAgent` stripped every `tool-approval-request` and `tool-approval-response` part from the messages when resuming after a tool approval, regardless of whether the tool was locally or provider-executed. For provider-executed tools (e.g. MCP via the OpenAI Responses API) this silently dropped the approval before `convertToLanguageModelPrompt` could forward it, so the provider never learned of the approval and the tool was never executed. Local approvals are still executed and stripped, while provider-executed approvals are now preserved and forwarded to the provider, matching the discriminator core's `streamText` already uses. This is the inverse of the bug fixed in #14289.
|
|
294
|
+
|
|
295
|
+
## 1.0.0-beta.99
|
|
296
|
+
|
|
297
|
+
### Patch Changes
|
|
298
|
+
|
|
299
|
+
- Updated dependencies [cc6ab90]
|
|
300
|
+
- ai@7.0.0-beta.182
|
|
301
|
+
|
|
302
|
+
## 1.0.0-beta.98
|
|
303
|
+
|
|
304
|
+
### Patch Changes
|
|
305
|
+
|
|
306
|
+
- Updated dependencies [6a2caf9]
|
|
307
|
+
- ai@7.0.0-beta.181
|
|
308
|
+
|
|
309
|
+
## 1.0.0-beta.97
|
|
310
|
+
|
|
311
|
+
### Patch Changes
|
|
312
|
+
|
|
313
|
+
- Updated dependencies [81a284b]
|
|
314
|
+
- ai@7.0.0-beta.180
|
|
315
|
+
|
|
316
|
+
## 1.0.0-beta.96
|
|
317
|
+
|
|
318
|
+
### Patch Changes
|
|
319
|
+
|
|
320
|
+
- ai@7.0.0-beta.179
|
|
321
|
+
|
|
322
|
+
## 1.0.0-beta.95
|
|
323
|
+
|
|
324
|
+
### Patch Changes
|
|
325
|
+
|
|
326
|
+
- Updated dependencies [b097c52]
|
|
327
|
+
- ai@7.0.0-beta.178
|
|
328
|
+
|
|
329
|
+
## 1.0.0-beta.94
|
|
330
|
+
|
|
331
|
+
### Patch Changes
|
|
332
|
+
|
|
333
|
+
- b8396f0: trigger initial beta release
|
|
334
|
+
- Updated dependencies [b8396f0]
|
|
335
|
+
- @ai-sdk/provider-utils@5.0.0-beta.49
|
|
336
|
+
- @ai-sdk/provider@4.0.0-beta.19
|
|
337
|
+
- ai@7.0.0-beta.177
|
|
338
|
+
|
|
339
|
+
## 1.0.0-canary.93
|
|
340
|
+
|
|
341
|
+
### Patch Changes
|
|
342
|
+
|
|
343
|
+
- ai@7.0.0-canary.176
|
|
344
|
+
|
|
345
|
+
## 1.0.0-canary.92
|
|
346
|
+
|
|
347
|
+
### Patch Changes
|
|
348
|
+
|
|
349
|
+
- Updated dependencies [6ec57f5]
|
|
350
|
+
- ai@7.0.0-canary.175
|
|
351
|
+
|
|
352
|
+
## 1.0.0-canary.91
|
|
353
|
+
|
|
354
|
+
### Patch Changes
|
|
355
|
+
|
|
356
|
+
- ai@7.0.0-canary.174
|
|
357
|
+
|
|
358
|
+
## 1.0.0-canary.90
|
|
359
|
+
|
|
360
|
+
### Patch Changes
|
|
361
|
+
|
|
362
|
+
- ai@7.0.0-canary.173
|
|
363
|
+
|
|
364
|
+
## 1.0.0-canary.89
|
|
365
|
+
|
|
366
|
+
### Patch Changes
|
|
367
|
+
|
|
368
|
+
- Updated dependencies [aeda373]
|
|
369
|
+
- Updated dependencies [25a64f8]
|
|
370
|
+
- Updated dependencies [375fdd7]
|
|
371
|
+
- Updated dependencies [f18b08f]
|
|
372
|
+
- Updated dependencies [b4507d5]
|
|
373
|
+
- @ai-sdk/provider-utils@5.0.0-canary.48
|
|
374
|
+
- ai@7.0.0-canary.172
|
|
375
|
+
|
|
376
|
+
## 1.0.0-canary.88
|
|
377
|
+
|
|
378
|
+
### Patch Changes
|
|
379
|
+
|
|
380
|
+
- Updated dependencies [89ad56f]
|
|
381
|
+
- Updated dependencies [f9a496f]
|
|
382
|
+
- Updated dependencies [3295831]
|
|
383
|
+
- ai@7.0.0-canary.171
|
|
384
|
+
|
|
385
|
+
## 1.0.0-canary.87
|
|
386
|
+
|
|
387
|
+
### Patch Changes
|
|
388
|
+
|
|
389
|
+
- bae5e2b: fix(security): re-validate tool approvals from client message history before execution
|
|
390
|
+
|
|
391
|
+
The approval-replay path in `generateText`/`streamText` (and `WorkflowAgent.stream`) reconstructed approved tool calls from the client-supplied messages array and executed them without re-validating input against the tool's schema or re-applying the approval policy. A client could forge an assistant message with a pre-approved tool-call part and have the server execute a tool with attacker-chosen arguments.
|
|
392
|
+
|
|
393
|
+
The replay path now validates HMAC signature (when `experimental_toolApprovalSecret` is configured), re-validates tool-call input against the tool's input schema, and re-resolves the approval policy before execution.
|
|
394
|
+
|
|
395
|
+
- 69d7128: fix(workflow): reuse the core tool-approval validation in WorkflowAgent
|
|
396
|
+
|
|
397
|
+
`WorkflowAgent.stream` previously reconstructed approved tool calls with a copy of the core collection logic and validated them inline. Because the logic was duplicated, it could drift from the hardened `generateText`/`streamText` implementation. WorkflowAgent now collects approvals via the shared `collectToolApprovals` and re-validates each one through the shared `validateApprovedToolApprovals` (input-schema re-validation, HMAC signature verification when configured, and approval-policy re-resolution) in addition to its existing `needsApproval` guard, so a client-forged approval cannot execute a tool with unvalidated input. The duplicated collector was removed; `collectToolApprovals` and `validateApprovedToolApprovals` are now exported from `ai/internal`.
|
|
398
|
+
|
|
399
|
+
- Updated dependencies [bae5e2b]
|
|
400
|
+
- Updated dependencies [69d7128]
|
|
401
|
+
- ai@7.0.0-canary.170
|
|
402
|
+
- @ai-sdk/provider-utils@5.0.0-canary.47
|
|
403
|
+
|
|
404
|
+
## 1.0.0-canary.86
|
|
405
|
+
|
|
406
|
+
### Patch Changes
|
|
407
|
+
|
|
408
|
+
- Updated dependencies [a5018ab]
|
|
409
|
+
- Updated dependencies [21d3d60]
|
|
410
|
+
- Updated dependencies [426dbbb]
|
|
411
|
+
- Updated dependencies [7fd3360]
|
|
412
|
+
- ai@7.0.0-canary.169
|
|
413
|
+
|
|
414
|
+
## 1.0.0-canary.85
|
|
415
|
+
|
|
416
|
+
### Patch Changes
|
|
417
|
+
|
|
418
|
+
- 1e4b350: Honor `tool.toModelOutput` in `WorkflowAgent`.
|
|
419
|
+
|
|
420
|
+
`WorkflowAgent` now routes successful local, provider-executed, and approved tool results through each tool's optional `toModelOutput` hook, matching `generateText`, `streamText`, and `ToolLoopAgent`. Previously the hook was ignored and results were always serialized as `text` or `json`.
|
|
421
|
+
|
|
422
|
+
Internally exports the shared tool-result model-output helpers from `ai/internal`, and uses the shared `getErrorMessage` behavior for workflow tool error results.
|
|
423
|
+
|
|
424
|
+
- Updated dependencies [1e4b350]
|
|
425
|
+
- ai@7.0.0-canary.168
|
|
426
|
+
|
|
427
|
+
## 1.0.0-canary.84
|
|
428
|
+
|
|
429
|
+
### Patch Changes
|
|
430
|
+
|
|
431
|
+
- Updated dependencies [4757690]
|
|
432
|
+
- Updated dependencies [eeefc3f]
|
|
433
|
+
- Updated dependencies [b79b6a8]
|
|
434
|
+
- ai@7.0.0-canary.167
|
|
435
|
+
|
|
436
|
+
## 1.0.0-canary.83
|
|
437
|
+
|
|
438
|
+
### Patch Changes
|
|
439
|
+
|
|
440
|
+
- 19736ee: feat(ai): rename onStepFinish to onStepEnd
|
|
441
|
+
- Updated dependencies [19736ee]
|
|
442
|
+
- Updated dependencies [d66ae02]
|
|
443
|
+
- Updated dependencies [e4182bd]
|
|
444
|
+
- ai@7.0.0-canary.166
|
|
445
|
+
|
|
446
|
+
## 1.0.0-canary.82
|
|
447
|
+
|
|
448
|
+
### Patch Changes
|
|
449
|
+
|
|
450
|
+
- Updated dependencies [ce769dd]
|
|
451
|
+
- @ai-sdk/provider@4.0.0-canary.18
|
|
452
|
+
- ai@7.0.0-canary.165
|
|
453
|
+
- @ai-sdk/provider-utils@5.0.0-canary.46
|
|
454
|
+
|
|
455
|
+
## 1.0.0-canary.81
|
|
456
|
+
|
|
457
|
+
### Patch Changes
|
|
458
|
+
|
|
459
|
+
- ai@7.0.0-canary.164
|
|
460
|
+
|
|
461
|
+
## 1.0.0-canary.80
|
|
462
|
+
|
|
463
|
+
### Patch Changes
|
|
464
|
+
|
|
465
|
+
- Updated dependencies [ee798eb]
|
|
466
|
+
- Updated dependencies [daf6637]
|
|
467
|
+
- Updated dependencies [c907622]
|
|
468
|
+
- @ai-sdk/provider-utils@5.0.0-canary.45
|
|
469
|
+
- ai@7.0.0-canary.163
|
|
470
|
+
|
|
471
|
+
## 1.0.0-canary.79
|
|
472
|
+
|
|
473
|
+
### Patch Changes
|
|
474
|
+
|
|
475
|
+
- ai@7.0.0-canary.162
|
|
476
|
+
|
|
477
|
+
## 1.0.0-canary.78
|
|
478
|
+
|
|
479
|
+
### Patch Changes
|
|
480
|
+
|
|
481
|
+
- ai@7.0.0-canary.161
|
|
482
|
+
|
|
483
|
+
## 1.0.0-canary.77
|
|
484
|
+
|
|
485
|
+
### Patch Changes
|
|
486
|
+
|
|
487
|
+
- ai@7.0.0-canary.160
|
|
488
|
+
|
|
489
|
+
## 1.0.0-canary.76
|
|
490
|
+
|
|
491
|
+
### Patch Changes
|
|
492
|
+
|
|
493
|
+
- Updated dependencies [b5092f5]
|
|
494
|
+
- ai@7.0.0-canary.159
|
|
495
|
+
|
|
496
|
+
## 1.0.0-canary.75
|
|
497
|
+
|
|
498
|
+
### Patch Changes
|
|
499
|
+
|
|
500
|
+
- Updated dependencies [bcce2dd]
|
|
501
|
+
- ai@7.0.0-canary.158
|
|
502
|
+
|
|
503
|
+
## 1.0.0-canary.74
|
|
504
|
+
|
|
505
|
+
### Patch Changes
|
|
506
|
+
|
|
507
|
+
- ai@7.0.0-canary.157
|
|
508
|
+
|
|
509
|
+
## 1.0.0-canary.73
|
|
510
|
+
|
|
511
|
+
### Patch Changes
|
|
512
|
+
|
|
513
|
+
- Updated dependencies [023550e]
|
|
514
|
+
- Updated dependencies [e92fc45]
|
|
515
|
+
- ai@7.0.0-canary.156
|
|
516
|
+
|
|
517
|
+
## 1.0.0-canary.72
|
|
518
|
+
|
|
519
|
+
### Patch Changes
|
|
520
|
+
|
|
521
|
+
- Updated dependencies [e67d80e]
|
|
522
|
+
- Updated dependencies [6cca112]
|
|
523
|
+
- Updated dependencies [82fc0ab]
|
|
524
|
+
- Updated dependencies [76fd58c]
|
|
525
|
+
- ai@7.0.0-canary.155
|
|
526
|
+
|
|
527
|
+
## 1.0.0-canary.71
|
|
528
|
+
|
|
529
|
+
### Patch Changes
|
|
530
|
+
|
|
531
|
+
- Updated dependencies [594029e]
|
|
532
|
+
- ai@7.0.0-canary.154
|
|
533
|
+
|
|
534
|
+
## 1.0.0-canary.70
|
|
535
|
+
|
|
536
|
+
### Patch Changes
|
|
537
|
+
|
|
538
|
+
- Updated dependencies [6c93e36]
|
|
539
|
+
- Updated dependencies [f617ac2]
|
|
540
|
+
- @ai-sdk/provider-utils@5.0.0-canary.44
|
|
541
|
+
- ai@7.0.0-canary.153
|
|
542
|
+
|
|
543
|
+
## 1.0.0-canary.69
|
|
544
|
+
|
|
545
|
+
### Patch Changes
|
|
546
|
+
|
|
547
|
+
- ai@7.0.0-canary.152
|
|
548
|
+
|
|
549
|
+
## 1.0.0-canary.68
|
|
550
|
+
|
|
551
|
+
### Patch Changes
|
|
552
|
+
|
|
553
|
+
- ai@7.0.0-canary.151
|
|
554
|
+
|
|
555
|
+
## 1.0.0-canary.67
|
|
556
|
+
|
|
557
|
+
### Patch Changes
|
|
558
|
+
|
|
559
|
+
- ai@7.0.0-canary.150
|
|
560
|
+
|
|
561
|
+
## 1.0.0-canary.66
|
|
562
|
+
|
|
563
|
+
### Patch Changes
|
|
564
|
+
|
|
565
|
+
- Updated dependencies [e3d9c0e]
|
|
566
|
+
- ai@7.0.0-canary.149
|
|
567
|
+
|
|
568
|
+
## 1.0.0-canary.65
|
|
569
|
+
|
|
570
|
+
### Patch Changes
|
|
571
|
+
|
|
572
|
+
- Updated dependencies [2852a84]
|
|
573
|
+
- ai@7.0.0-canary.148
|
|
574
|
+
|
|
575
|
+
## 1.0.0-canary.64
|
|
576
|
+
|
|
577
|
+
### Patch Changes
|
|
578
|
+
|
|
579
|
+
- ai@7.0.0-canary.147
|
|
580
|
+
|
|
581
|
+
## 1.0.0-canary.63
|
|
582
|
+
|
|
583
|
+
### Patch Changes
|
|
584
|
+
|
|
585
|
+
- ai@7.0.0-canary.146
|
|
586
|
+
|
|
587
|
+
## 1.0.0-canary.62
|
|
588
|
+
|
|
589
|
+
### Patch Changes
|
|
590
|
+
|
|
591
|
+
- ai@7.0.0-canary.145
|
|
592
|
+
|
|
593
|
+
## 1.0.0-canary.61
|
|
594
|
+
|
|
595
|
+
### Patch Changes
|
|
596
|
+
|
|
597
|
+
- 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
|
|
598
|
+
- Updated dependencies [7fc6bd6]
|
|
599
|
+
- ai@7.0.0-canary.144
|
|
600
|
+
- @ai-sdk/provider-utils@5.0.0-canary.43
|
|
601
|
+
- @ai-sdk/provider@4.0.0-canary.17
|
|
602
|
+
|
|
603
|
+
## 1.0.0-canary.60
|
|
604
|
+
|
|
605
|
+
### Patch Changes
|
|
606
|
+
|
|
607
|
+
- b567a6c: dependency updates
|
|
608
|
+
- Updated dependencies [a6617c5]
|
|
609
|
+
- @ai-sdk/provider-utils@5.0.0-canary.42
|
|
610
|
+
- ai@7.0.0-canary.143
|
|
611
|
+
|
|
612
|
+
## 1.0.0-canary.59
|
|
613
|
+
|
|
614
|
+
### Patch Changes
|
|
615
|
+
|
|
616
|
+
- Updated dependencies [62d6481]
|
|
617
|
+
- ai@7.0.0-canary.142
|
|
618
|
+
|
|
619
|
+
## 1.0.0-canary.58
|
|
620
|
+
|
|
621
|
+
### Patch Changes
|
|
622
|
+
|
|
623
|
+
- Updated dependencies [e3a0419]
|
|
624
|
+
- ai@7.0.0-canary.141
|
|
625
|
+
|
|
626
|
+
## 1.0.0-canary.57
|
|
627
|
+
|
|
628
|
+
### Patch Changes
|
|
629
|
+
|
|
630
|
+
- ai@7.0.0-canary.140
|
|
631
|
+
|
|
632
|
+
## 1.0.0-canary.56
|
|
633
|
+
|
|
634
|
+
### Patch Changes
|
|
635
|
+
|
|
636
|
+
- 334ae5d: Update step performance metrics with explicit effective, input, output, and total token throughput fields.
|
|
637
|
+
- Updated dependencies [334ae5d]
|
|
638
|
+
- Updated dependencies [28dfa06]
|
|
639
|
+
- Updated dependencies [e93fa91]
|
|
640
|
+
- ai@7.0.0-canary.139
|
|
641
|
+
- @ai-sdk/provider-utils@5.0.0-canary.41
|
|
642
|
+
|
|
643
|
+
## 1.0.0-canary.55
|
|
644
|
+
|
|
645
|
+
### Patch Changes
|
|
646
|
+
|
|
647
|
+
- ai@7.0.0-canary.138
|
|
648
|
+
|
|
649
|
+
## 1.0.0-canary.54
|
|
650
|
+
|
|
651
|
+
### Patch Changes
|
|
652
|
+
|
|
653
|
+
- 98627e5: feat(ai): remove onChunk event from telemetry
|
|
654
|
+
- Updated dependencies [98627e5]
|
|
655
|
+
- Updated dependencies [476e1ca]
|
|
656
|
+
- ai@7.0.0-canary.137
|
|
657
|
+
|
|
658
|
+
## 1.0.0-canary.53
|
|
659
|
+
|
|
660
|
+
### Patch Changes
|
|
661
|
+
|
|
662
|
+
- Updated dependencies [a7de9c9]
|
|
663
|
+
- @ai-sdk/provider-utils@5.0.0-canary.40
|
|
664
|
+
- ai@7.0.0-canary.136
|
|
665
|
+
|
|
666
|
+
## 1.0.0-canary.52
|
|
667
|
+
|
|
668
|
+
### Patch Changes
|
|
669
|
+
|
|
670
|
+
- Updated dependencies [105f95b]
|
|
671
|
+
- @ai-sdk/provider-utils@5.0.0-canary.39
|
|
672
|
+
- ai@7.0.0-canary.135
|
|
673
|
+
|
|
674
|
+
## 1.0.0-canary.51
|
|
675
|
+
|
|
676
|
+
### Patch Changes
|
|
677
|
+
|
|
678
|
+
- Updated dependencies [ed74dae]
|
|
679
|
+
- Updated dependencies [f4cc8eb]
|
|
680
|
+
- Updated dependencies [e80ada0]
|
|
681
|
+
- Updated dependencies [1dca341]
|
|
682
|
+
- Updated dependencies [2605e5f]
|
|
683
|
+
- ai@7.0.0-canary.134
|
|
684
|
+
|
|
685
|
+
## 1.0.0-canary.50
|
|
686
|
+
|
|
687
|
+
### Patch Changes
|
|
688
|
+
|
|
689
|
+
- Updated dependencies [38ca8dc]
|
|
690
|
+
- Updated dependencies [6d76710]
|
|
691
|
+
- ai@7.0.0-canary.133
|
|
692
|
+
|
|
693
|
+
## 1.0.0-canary.49
|
|
694
|
+
|
|
695
|
+
### Patch Changes
|
|
696
|
+
|
|
697
|
+
- 81e68da: Fix `stepNumber` on telemetry events emitted by `WorkflowAgent.stream` so per-step telemetry integrations (e.g. `@ai-sdk/devtools`) correctly key state per step.
|
|
698
|
+
- Updated dependencies [eaf849f]
|
|
699
|
+
- Updated dependencies [8565dcb]
|
|
700
|
+
- ai@7.0.0-canary.132
|
|
701
|
+
|
|
702
|
+
## 1.0.0-canary.48
|
|
703
|
+
|
|
704
|
+
### Patch Changes
|
|
705
|
+
|
|
706
|
+
- c3a6524: Add a `stepNumber` option to `doStreamStep` so callers can create `StepResult` objects with the correct step number.
|
|
707
|
+
|
|
708
|
+
## 1.0.0-canary.47
|
|
709
|
+
|
|
710
|
+
### Patch Changes
|
|
711
|
+
|
|
712
|
+
- ca446f8: feat: flexible tool descriptions
|
|
713
|
+
- Updated dependencies [b67525f]
|
|
714
|
+
- Updated dependencies [ca446f8]
|
|
715
|
+
- Updated dependencies [bcacd48]
|
|
716
|
+
- ai@7.0.0-canary.131
|
|
717
|
+
- @ai-sdk/provider-utils@5.0.0-canary.38
|
|
718
|
+
|
|
719
|
+
## 1.0.0-canary.46
|
|
720
|
+
|
|
721
|
+
### Patch Changes
|
|
722
|
+
|
|
723
|
+
- ai@7.0.0-canary.130
|
|
724
|
+
|
|
725
|
+
## 1.0.0-canary.45
|
|
726
|
+
|
|
727
|
+
### Patch Changes
|
|
728
|
+
|
|
729
|
+
- Updated dependencies [d1b3786]
|
|
730
|
+
- ai@7.0.0-canary.129
|
|
731
|
+
|
|
732
|
+
## 1.0.0-canary.44
|
|
733
|
+
|
|
734
|
+
### Patch Changes
|
|
735
|
+
|
|
736
|
+
- Updated dependencies [d848405]
|
|
737
|
+
- @ai-sdk/provider-utils@5.0.0-canary.37
|
|
738
|
+
- ai@7.0.0-canary.128
|
|
739
|
+
|
|
740
|
+
## 1.0.0-canary.43
|
|
741
|
+
|
|
742
|
+
### Patch Changes
|
|
743
|
+
|
|
744
|
+
- d775a57: feat: introduce Instructions type
|
|
745
|
+
- 39dad72: feat(workflow): add stable telemetry integration support to `WorkflowAgent` and remove legacy telemetry options.
|
|
746
|
+
- Updated dependencies [e95e38d]
|
|
747
|
+
- Updated dependencies [016e877]
|
|
748
|
+
- Updated dependencies [ca99fea]
|
|
749
|
+
- Updated dependencies [ca39020]
|
|
750
|
+
- Updated dependencies [d775a57]
|
|
751
|
+
- Updated dependencies [538c12b]
|
|
752
|
+
- ai@7.0.0-canary.127
|
|
753
|
+
- @ai-sdk/provider-utils@5.0.0-canary.36
|
|
754
|
+
|
|
755
|
+
## 1.0.0-canary.42
|
|
756
|
+
|
|
757
|
+
### Patch Changes
|
|
758
|
+
|
|
759
|
+
- Updated dependencies [f634bac]
|
|
760
|
+
- @ai-sdk/provider-utils@5.0.0-canary.35
|
|
761
|
+
- ai@7.0.0-canary.126
|
|
762
|
+
|
|
763
|
+
## 1.0.0-canary.41
|
|
764
|
+
|
|
765
|
+
### Patch Changes
|
|
766
|
+
|
|
767
|
+
- 1d56275: feat(workflow): add `runtimeContext` and `toolsContext` to `WorkflowAgent`.
|
|
768
|
+
|
|
769
|
+
`runtimeContext` is shared agent state that flows through `prepareCall`, `prepareStep`, step results, and `onFinish`. `toolsContext` is a per-tool map; each tool receives its own validated entry as `context`, validated against `tool.contextSchema` when defined. The previous `experimental_context` option (and corresponding fields on related callbacks and option types) has been removed — use `runtimeContext` for shared state and `toolsContext` for per-tool values. Context values in `WorkflowAgent` should be serializable because they can cross workflow and step boundaries.
|
|
770
|
+
|
|
771
|
+
## 1.0.0-canary.40
|
|
772
|
+
|
|
773
|
+
### Patch Changes
|
|
774
|
+
|
|
775
|
+
- Updated dependencies [fd4f578]
|
|
776
|
+
- Updated dependencies [31f69de]
|
|
777
|
+
- Updated dependencies [7c71ac6]
|
|
778
|
+
- Updated dependencies [c0c8ca2]
|
|
779
|
+
- Updated dependencies [5faf71c]
|
|
780
|
+
- Updated dependencies [69254e0]
|
|
781
|
+
- Updated dependencies [3015fc3]
|
|
782
|
+
- Updated dependencies [eee1166]
|
|
783
|
+
- Updated dependencies [7dbf992]
|
|
784
|
+
- ai@7.0.0-canary.125
|
|
785
|
+
- @ai-sdk/provider-utils@5.0.0-canary.34
|
|
786
|
+
|
|
787
|
+
## 1.0.0-canary.39
|
|
788
|
+
|
|
789
|
+
### Patch Changes
|
|
790
|
+
|
|
791
|
+
- Updated dependencies [69aeb0e]
|
|
792
|
+
- Updated dependencies [48e92f3]
|
|
793
|
+
- ai@7.0.0-canary.124
|
|
794
|
+
|
|
795
|
+
## 1.0.0-canary.38
|
|
796
|
+
|
|
797
|
+
### Patch Changes
|
|
798
|
+
|
|
799
|
+
- Updated dependencies [7392266]
|
|
800
|
+
- Updated dependencies [4bb4dbc]
|
|
801
|
+
- ai@7.0.0-canary.123
|
|
802
|
+
|
|
803
|
+
## 1.0.0-canary.37
|
|
804
|
+
|
|
805
|
+
### Patch Changes
|
|
806
|
+
|
|
807
|
+
- Updated dependencies [79b2468]
|
|
808
|
+
- Updated dependencies [c22750c]
|
|
809
|
+
- ai@7.0.0-canary.122
|
|
810
|
+
|
|
811
|
+
## 1.0.0-canary.36
|
|
812
|
+
|
|
813
|
+
### Patch Changes
|
|
814
|
+
|
|
815
|
+
- Updated dependencies [2427d88]
|
|
816
|
+
- Updated dependencies [5588abd]
|
|
817
|
+
- Updated dependencies [6dd6b83]
|
|
818
|
+
- @ai-sdk/provider-utils@5.0.0-canary.33
|
|
819
|
+
- ai@7.0.0-canary.121
|
|
820
|
+
|
|
821
|
+
## 1.0.0-canary.35
|
|
822
|
+
|
|
823
|
+
### Patch Changes
|
|
824
|
+
|
|
825
|
+
- Updated dependencies [5463d0d]
|
|
826
|
+
- @ai-sdk/provider-utils@5.0.0-canary.32
|
|
827
|
+
- @ai-sdk/provider@4.0.0-canary.16
|
|
828
|
+
- ai@7.0.0-canary.120
|
|
829
|
+
|
|
830
|
+
## 1.0.0-canary.34
|
|
831
|
+
|
|
832
|
+
### Patch Changes
|
|
833
|
+
|
|
834
|
+
- ai@7.0.0-canary.119
|
|
835
|
+
|
|
836
|
+
## 1.0.0-canary.33
|
|
837
|
+
|
|
838
|
+
### Patch Changes
|
|
839
|
+
|
|
840
|
+
- Updated dependencies [47e65d6]
|
|
841
|
+
- ai@7.0.0-canary.118
|
|
842
|
+
|
|
843
|
+
## 1.0.0-canary.32
|
|
844
|
+
|
|
845
|
+
### Patch Changes
|
|
846
|
+
|
|
847
|
+
- 0c4c275: trigger initial canary release
|
|
848
|
+
- Updated dependencies [0c4c275]
|
|
849
|
+
- @ai-sdk/provider-utils@5.0.0-canary.31
|
|
850
|
+
- @ai-sdk/provider@4.0.0-canary.15
|
|
851
|
+
- ai@7.0.0-canary.117
|
|
852
|
+
|
|
853
|
+
## 1.0.0-beta.31
|
|
854
|
+
|
|
855
|
+
### Patch Changes
|
|
856
|
+
|
|
857
|
+
- ai@7.0.0-beta.116
|
|
858
|
+
|
|
859
|
+
## 1.0.0-beta.30
|
|
860
|
+
|
|
861
|
+
### Patch Changes
|
|
862
|
+
|
|
863
|
+
- Updated dependencies [08d2129]
|
|
864
|
+
- Updated dependencies [202f107]
|
|
865
|
+
- @ai-sdk/provider-utils@5.0.0-beta.30
|
|
866
|
+
- ai@7.0.0-beta.115
|
|
867
|
+
|
|
868
|
+
## 1.0.0-beta.29
|
|
869
|
+
|
|
870
|
+
### Patch Changes
|
|
871
|
+
|
|
872
|
+
- 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
|
|
873
|
+
- Updated dependencies [43a6750]
|
|
874
|
+
- Updated dependencies [81caa5d]
|
|
875
|
+
- Updated dependencies [1f7db50]
|
|
876
|
+
- Updated dependencies [9bd6512]
|
|
877
|
+
- Updated dependencies [258c093]
|
|
878
|
+
- Updated dependencies [b6783da]
|
|
879
|
+
- Updated dependencies [6147cdf]
|
|
880
|
+
- ai@7.0.0-beta.114
|
|
881
|
+
- @ai-sdk/provider-utils@5.0.0-beta.29
|
|
882
|
+
- @ai-sdk/provider@4.0.0-beta.14
|
|
883
|
+
|
|
884
|
+
## 1.0.0-beta.28
|
|
885
|
+
|
|
886
|
+
### Patch Changes
|
|
887
|
+
|
|
888
|
+
- 9f0e36c: trigger release for all packages after provenance setup
|
|
889
|
+
- Updated dependencies [9f0e36c]
|
|
890
|
+
- ai@7.0.0-beta.113
|
|
891
|
+
- @ai-sdk/provider@4.0.0-beta.13
|
|
892
|
+
- @ai-sdk/provider-utils@5.0.0-beta.28
|
|
893
|
+
|
|
894
|
+
## 1.0.0-beta.27
|
|
895
|
+
|
|
896
|
+
### Patch Changes
|
|
897
|
+
|
|
898
|
+
- 29d8cf4: feat(ai): rename the core-event types
|
|
899
|
+
- a0ca584: fix (workflow): preserve invalid tool calls as errors instead of emitting synthetic success results
|
|
900
|
+
- Updated dependencies [785fe16]
|
|
901
|
+
- Updated dependencies [5f3749c]
|
|
902
|
+
- Updated dependencies [0a51f7d]
|
|
903
|
+
- Updated dependencies [71d3022]
|
|
904
|
+
- Updated dependencies [67df0a0]
|
|
905
|
+
- Updated dependencies [4181cfe]
|
|
906
|
+
- Updated dependencies [51ce232]
|
|
907
|
+
- Updated dependencies [cf93359]
|
|
908
|
+
- Updated dependencies [befb78c]
|
|
909
|
+
- Updated dependencies [29d8cf4]
|
|
910
|
+
- Updated dependencies [0458559]
|
|
911
|
+
- Updated dependencies [58a2ad7]
|
|
912
|
+
- Updated dependencies [5852c0a]
|
|
913
|
+
- Updated dependencies [37d69b2]
|
|
914
|
+
- Updated dependencies [1043274]
|
|
915
|
+
- Updated dependencies [7f59f04]
|
|
916
|
+
- Updated dependencies [7677c1e]
|
|
917
|
+
- Updated dependencies [116c89f]
|
|
918
|
+
- Updated dependencies [f58f9bc]
|
|
919
|
+
- Updated dependencies [e1bfb9c]
|
|
920
|
+
- Updated dependencies [e87d71b]
|
|
921
|
+
- Updated dependencies [9d486aa]
|
|
922
|
+
- Updated dependencies [9b0bc8a]
|
|
923
|
+
- Updated dependencies [fc92055]
|
|
924
|
+
- Updated dependencies [4e095b0]
|
|
925
|
+
- @ai-sdk/provider-utils@5.0.0-beta.27
|
|
926
|
+
- ai@7.0.0-beta.112
|
|
927
|
+
|
|
928
|
+
## 1.0.0-beta.26
|
|
929
|
+
|
|
930
|
+
### Major Changes
|
|
931
|
+
|
|
932
|
+
- 1949571: feat(ai): make experimental_telemetry stable
|
|
933
|
+
|
|
934
|
+
### Patch Changes
|
|
935
|
+
|
|
936
|
+
- f32c750: refactoring(ai): simplify mergeAbortSignals
|
|
937
|
+
- Updated dependencies [f319fde]
|
|
938
|
+
- Updated dependencies [1949571]
|
|
939
|
+
- Updated dependencies [511902c]
|
|
940
|
+
- Updated dependencies [6542d93]
|
|
941
|
+
- Updated dependencies [2e98477]
|
|
942
|
+
- Updated dependencies [876fd3e]
|
|
943
|
+
- Updated dependencies [f32c750]
|
|
944
|
+
- ai@7.0.0-beta.111
|
|
945
|
+
- @ai-sdk/provider-utils@5.0.0-beta.26
|
|
946
|
+
|
|
947
|
+
## 1.0.0-beta.25
|
|
948
|
+
|
|
949
|
+
### Patch Changes
|
|
950
|
+
|
|
951
|
+
- Updated dependencies [72cb801]
|
|
952
|
+
- ai@7.0.0-beta.110
|
|
953
|
+
|
|
954
|
+
## 1.0.0-beta.24
|
|
955
|
+
|
|
956
|
+
### Patch Changes
|
|
957
|
+
|
|
958
|
+
- eea8d98: refactoring: rename tool execution events
|
|
959
|
+
- Updated dependencies [ec98264]
|
|
960
|
+
- Updated dependencies [eea8d98]
|
|
961
|
+
- Updated dependencies [75ef93e]
|
|
962
|
+
- ai@7.0.0-beta.109
|
|
963
|
+
- @ai-sdk/provider-utils@5.0.0-beta.25
|
|
964
|
+
|
|
965
|
+
## 1.0.0-beta.23
|
|
966
|
+
|
|
967
|
+
### Patch Changes
|
|
968
|
+
|
|
969
|
+
- Updated dependencies [f807e45]
|
|
970
|
+
- @ai-sdk/provider-utils@5.0.0-beta.24
|
|
971
|
+
- ai@7.0.0-beta.108
|
|
972
|
+
|
|
973
|
+
## 1.0.0-beta.22
|
|
974
|
+
|
|
975
|
+
### Patch Changes
|
|
976
|
+
|
|
977
|
+
- Updated dependencies [350ea38]
|
|
978
|
+
- @ai-sdk/provider-utils@5.0.0-beta.23
|
|
979
|
+
- ai@7.0.0-beta.107
|
|
980
|
+
|
|
981
|
+
## 1.0.0-beta.21
|
|
982
|
+
|
|
983
|
+
### Patch Changes
|
|
984
|
+
|
|
985
|
+
- fbea042: refactor: replace duplicate `filterTools`/`filterToolSet` with shared `experimental_filterActiveTools` from `ai`
|
|
986
|
+
|
|
987
|
+
## 1.0.0-beta.20
|
|
988
|
+
|
|
989
|
+
### Patch Changes
|
|
990
|
+
|
|
991
|
+
- ai@7.0.0-beta.106
|
|
992
|
+
|
|
993
|
+
## 1.0.0-beta.19
|
|
994
|
+
|
|
995
|
+
### Patch Changes
|
|
996
|
+
|
|
997
|
+
- Updated dependencies [33d099c]
|
|
998
|
+
- ai@7.0.0-beta.105
|
|
999
|
+
|
|
1000
|
+
## 1.0.0-beta.18
|
|
1001
|
+
|
|
1002
|
+
### Patch Changes
|
|
1003
|
+
|
|
1004
|
+
- eba685c: Remove `maxSteps` option from `WorkflowAgent`. Use `stopWhen` with stop conditions like `isStepCount()` instead.
|
|
1005
|
+
- Updated dependencies [2a74d43]
|
|
1006
|
+
- ai@7.0.0-beta.104
|
|
1007
|
+
|
|
1008
|
+
## 1.0.0-beta.17
|
|
1009
|
+
|
|
1010
|
+
### Patch Changes
|
|
1011
|
+
|
|
1012
|
+
- 382d53b: refactoring: rename context to runtimeContext
|
|
1013
|
+
- c3d4019: chore(ai): rename 'TelemetrySettings' to 'TelemetryOptions'
|
|
1014
|
+
- 083947b: feat(ai): separate toolsContext from context
|
|
1015
|
+
- Updated dependencies [382d53b]
|
|
1016
|
+
- Updated dependencies [7bf7d7f]
|
|
1017
|
+
- Updated dependencies [c3d4019]
|
|
1018
|
+
- Updated dependencies [083947b]
|
|
1019
|
+
- ai@7.0.0-beta.103
|
|
1020
|
+
- @ai-sdk/provider-utils@5.0.0-beta.22
|
|
1021
|
+
|
|
1022
|
+
## 1.0.0-beta.16
|
|
1023
|
+
|
|
1024
|
+
### Patch Changes
|
|
1025
|
+
|
|
1026
|
+
- ai@7.0.0-beta.102
|
|
1027
|
+
|
|
1028
|
+
## 1.0.0-beta.15
|
|
1029
|
+
|
|
1030
|
+
### Patch Changes
|
|
1031
|
+
|
|
1032
|
+
- Updated dependencies [4873966]
|
|
1033
|
+
- ai@7.0.0-beta.101
|
|
1034
|
+
|
|
1035
|
+
## 1.0.0-beta.14
|
|
1036
|
+
|
|
1037
|
+
### Patch Changes
|
|
1038
|
+
|
|
1039
|
+
- Updated dependencies [add1126]
|
|
1040
|
+
- @ai-sdk/provider-utils@5.0.0-beta.21
|
|
1041
|
+
- ai@7.0.0-beta.100
|
|
1042
|
+
|
|
1043
|
+
## 1.0.0-beta.13
|
|
1044
|
+
|
|
1045
|
+
### Patch Changes
|
|
1046
|
+
|
|
1047
|
+
- Updated dependencies [2a9c144]
|
|
1048
|
+
- ai@7.0.0-beta.99
|
|
1049
|
+
|
|
1050
|
+
## 1.0.0-beta.12
|
|
1051
|
+
|
|
1052
|
+
### Patch Changes
|
|
1053
|
+
|
|
1054
|
+
- ai@7.0.0-beta.98
|
|
1055
|
+
|
|
1056
|
+
## 1.0.0-beta.11
|
|
1057
|
+
|
|
1058
|
+
### Patch Changes
|
|
1059
|
+
|
|
1060
|
+
- Updated dependencies [208d045]
|
|
1061
|
+
- ai@7.0.0-beta.97
|
|
1062
|
+
|
|
1063
|
+
## 1.0.0-beta.10
|
|
1064
|
+
|
|
1065
|
+
### Patch Changes
|
|
1066
|
+
|
|
1067
|
+
- ai@7.0.0-beta.96
|
|
1068
|
+
|
|
1069
|
+
## 1.0.0-beta.9
|
|
1070
|
+
|
|
1071
|
+
### Patch Changes
|
|
1072
|
+
|
|
1073
|
+
- Updated dependencies [c4f4b5f]
|
|
1074
|
+
- ai@7.0.0-beta.95
|
|
1075
|
+
|
|
1076
|
+
## 1.0.0-beta.8
|
|
1077
|
+
|
|
1078
|
+
### Patch Changes
|
|
1079
|
+
|
|
1080
|
+
- 0455f24: Enrich WorkflowAgent callback event shapes to align with ToolLoopAgent:
|
|
1081
|
+
- Add `stepNumber` to `onToolCallStart` and `onToolCallFinish`
|
|
1082
|
+
- Add `steps` (previous step results) to `onStepStart`
|
|
1083
|
+
- Adopt discriminated union pattern (`success: true/false`) for `onToolCallFinish`
|
|
1084
|
+
- Add `durationMs` to `onToolCallFinish`
|
|
1085
|
+
|
|
1086
|
+
## 1.0.0-beta.7
|
|
1087
|
+
|
|
1088
|
+
### Patch Changes
|
|
1089
|
+
|
|
1090
|
+
- Updated dependencies [1582efa]
|
|
1091
|
+
- ai@7.0.0-beta.94
|
|
1092
|
+
|
|
1093
|
+
## 1.0.0-beta.6
|
|
1094
|
+
|
|
1095
|
+
### Patch Changes
|
|
1096
|
+
|
|
1097
|
+
- Updated dependencies [bc47739]
|
|
1098
|
+
- ai@7.0.0-beta.93
|
|
1099
|
+
|
|
1100
|
+
## 1.0.0-beta.5
|
|
1101
|
+
|
|
1102
|
+
### Patch Changes
|
|
1103
|
+
|
|
1104
|
+
- bf6c17b: Add `id` property to WorkflowAgent for telemetry identification, matching ToolLoopAgent's API surface.
|
|
1105
|
+
- 3ca592a: Add `prompt` as an alternative to `messages` in `WorkflowAgent.stream()`, matching the `AgentCallParameters` pattern from ToolLoopAgent.
|
|
1106
|
+
- eb49d29: Add constructor-level defaults for `stopWhen`, `activeTools`, `output`, `experimental_repairToolCall`, and `experimental_download` to WorkflowAgent, matching ToolLoopAgent's pattern. Stream-level values override constructor defaults.
|
|
1107
|
+
|
|
1108
|
+
## 1.0.0-beta.4
|
|
1109
|
+
|
|
1110
|
+
### Patch Changes
|
|
1111
|
+
|
|
1112
|
+
- ai@7.0.0-beta.92
|
|
1113
|
+
|
|
1114
|
+
## 1.0.0-beta.3
|
|
1115
|
+
|
|
1116
|
+
### Patch Changes
|
|
1117
|
+
|
|
1118
|
+
- 0e462a7: Use `LanguageModel` type for model parameter, aligning with `ToolLoopAgent`. Remove async factory model form. Rename callback types to use `WorkflowAgentOn*` prefix.
|
|
1119
|
+
|
|
1120
|
+
## 1.0.0-beta.2
|
|
1121
|
+
|
|
1122
|
+
### Patch Changes
|
|
1123
|
+
|
|
1124
|
+
- ai@7.0.0-beta.91
|
|
1125
|
+
|
|
1126
|
+
## 1.0.0-beta.1
|
|
1127
|
+
|
|
1128
|
+
### Patch Changes
|
|
1129
|
+
|
|
1130
|
+
- Updated dependencies [1db29c8]
|
|
1131
|
+
- ai@7.0.0-beta.90
|
|
1132
|
+
|
|
1133
|
+
## 1.0.0-beta.0
|
|
1134
|
+
|
|
1135
|
+
### Major Changes
|
|
1136
|
+
|
|
1137
|
+
- b3976a2: initial version
|
|
1138
|
+
|
|
1139
|
+
### Patch Changes
|
|
1140
|
+
|
|
1141
|
+
- Updated dependencies [b3976a2]
|
|
1142
|
+
- Updated dependencies [ff5eba1]
|
|
1143
|
+
- @ai-sdk/provider-utils@5.0.0-beta.20
|
|
1144
|
+
- @ai-sdk/provider@4.0.0-beta.12
|
|
1145
|
+
- ai@7.0.0-beta.89
|