ai 7.0.89 → 7.0.90

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # ai
2
2
 
3
+ ## 7.0.90
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [4d25a08]
8
+ - Updated dependencies [6bcc0f8]
9
+ - @ai-sdk/gateway@4.0.72
10
+ - @ai-sdk/provider-utils@5.0.36
11
+
3
12
  ## 7.0.89
4
13
 
5
14
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1176,7 +1176,7 @@ import {
1176
1176
  } from "@ai-sdk/provider-utils";
1177
1177
 
1178
1178
  // src/version.ts
1179
- var VERSION = true ? "7.0.89" : "0.0.0-test";
1179
+ var VERSION = true ? "7.0.90" : "0.0.0-test";
1180
1180
 
1181
1181
  // src/util/download/download.ts
1182
1182
  var download = async ({
@@ -91,7 +91,7 @@ import {
91
91
  } from "@ai-sdk/provider-utils";
92
92
 
93
93
  // src/version.ts
94
- var VERSION = true ? "7.0.89" : "0.0.0-test";
94
+ var VERSION = true ? "7.0.90" : "0.0.0-test";
95
95
 
96
96
  // src/util/download/download.ts
97
97
  var download = async ({
@@ -145,6 +145,7 @@ Here are the capabilities of popular models:
145
145
  | [OpenAI](/providers/ai-sdk-providers/openai) | `gpt-5-codex` | <Check /> | <Check /> | <Check /> | <Check /> |
146
146
  | [OpenAI](/providers/ai-sdk-providers/openai) | `gpt-5-chat-latest` | <Check /> | <Check /> | <Check /> | <Check /> |
147
147
  | [Anthropic](/providers/ai-sdk-providers/anthropic) | `claude-sonnet-5` | <Check /> | <Check /> | <Check /> | <Check /> |
148
+ | [Anthropic](/providers/ai-sdk-providers/anthropic) | `claude-fable-5-1` | <Check /> | <Check /> | <Check /> | <Check /> |
148
149
  | [Anthropic](/providers/ai-sdk-providers/anthropic) | `claude-fable-5` | <Check /> | <Check /> | <Check /> | <Check /> |
149
150
  | [Anthropic](/providers/ai-sdk-providers/anthropic) | `claude-opus-4-8` | <Check /> | <Check /> | <Check /> | <Check /> |
150
151
  | [Anthropic](/providers/ai-sdk-providers/anthropic) | `claude-opus-4-7` | <Check /> | <Check /> | <Check /> | <Check /> |
@@ -613,6 +613,21 @@ const agent = new WorkflowAgent({
613
613
  });
614
614
  ```
615
615
 
616
+ Tool input callbacks (`onInputStart`, `onInputDelta`, and
617
+ `onInputAvailable`) are also preserved by `WorkflowAgent`. The model call runs
618
+ inside a durable step, while callback functions remain in the workflow
619
+ context because arbitrary functions cannot cross the step boundary. As a
620
+ result, `WorkflowAgent` records the callback events during the model step and
621
+ replays them in order immediately after that step completes, before tool
622
+ execution and step lifecycle callbacks. They do not run concurrently with
623
+ model generation and cannot provide in-flight cancellation or backpressure.
624
+ Each callback receives its tool's `toolsContext` entry after
625
+ `contextSchema` validation.
626
+
627
+ For highly fragmented tool inputs, `onInputDelta` replay data is part of the
628
+ durable model-step result. Only configure `onInputDelta` when each generated
629
+ delta is needed; omit it to avoid retaining delta replay data.
630
+
616
631
  The deprecated `experimental_onStart` and `experimental_onStepStart` names
617
632
  remain available for backwards compatibility. When both the stable and
618
633
  experimental name are provided in the same constructor or `stream()` call, the
@@ -17,6 +17,11 @@ To prevent that, the SDK validates every response-supplied URL before fetching
17
17
  it. This happens automatically inside the provider packages — you don't need to
18
18
  configure anything.
19
19
 
20
+ For authenticated task-status polling, providers can construct the first URL
21
+ from the configured API endpoint. The SDK trusts that configured origin for the
22
+ initial request, but manually follows and validates every redirect away from it.
23
+ MiniMax, Kling AI, and ByteDance video polling use this protected path.
24
+
20
25
  ## What the SDK protects against
21
26
 
22
27
  When the SDK fetches a URL taken from a provider response, it:
@@ -45,7 +50,8 @@ A blocked URL surfaces as a `DownloadError`.
45
50
  URLs that are same-origin with the provider endpoint **you configured** (e.g. a
46
51
  custom `baseURL` pointing at a self-hosted or `localhost` deployment) are
47
52
  exempt from these checks — they target exactly the host you told the SDK to
48
- talk to. Any redirect off that origin is still validated.
53
+ talk to. This also applies to task-status polling. Any redirect off that origin
54
+ is still validated before the redirected request is sent.
49
55
 
50
56
  ## DNS validation across runtimes
51
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "7.0.89",
3
+ "version": "7.0.90",
4
4
  "type": "module",
5
5
  "description": "AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.",
6
6
  "license": "Apache-2.0",
@@ -42,20 +42,20 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@ai-sdk/gateway": "4.0.71",
45
+ "@ai-sdk/gateway": "4.0.72",
46
46
  "@ai-sdk/provider": "4.0.10",
47
- "@ai-sdk/provider-utils": "5.0.35"
47
+ "@ai-sdk/provider-utils": "5.0.36"
48
48
  },
49
49
  "devDependencies": {
50
- "@ai-sdk/amazon-bedrock": "5.0.71",
51
- "@ai-sdk/deepseek": "3.0.38",
52
- "@ai-sdk/google": "4.0.61",
53
- "@ai-sdk/groq": "4.0.36",
54
- "@ai-sdk/huggingface": "2.0.42",
55
- "@ai-sdk/moonshotai": "3.0.44",
56
- "@ai-sdk/openai": "4.0.55",
50
+ "@ai-sdk/amazon-bedrock": "5.0.72",
51
+ "@ai-sdk/deepseek": "3.0.39",
52
+ "@ai-sdk/google": "4.0.62",
53
+ "@ai-sdk/groq": "4.0.37",
54
+ "@ai-sdk/huggingface": "2.0.43",
55
+ "@ai-sdk/moonshotai": "3.0.45",
56
+ "@ai-sdk/openai": "4.0.56",
57
57
  "@ai-sdk/test-server": "2.0.1",
58
- "@ai-sdk/xai": "4.0.52",
58
+ "@ai-sdk/xai": "4.0.53",
59
59
  "@edge-runtime/vm": "^5.0.0",
60
60
  "@smithy/eventstream-codec": "^4.3.3",
61
61
  "@smithy/util-utf8": "^4.3.3",