ai 7.0.163 → 7.0.164

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.164
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [bace553]
8
+ - Updated dependencies [6737c77]
9
+ - Updated dependencies [bb4e2d0]
10
+ - @ai-sdk/gateway@4.0.137
11
+
3
12
  ## 7.0.163
4
13
 
5
14
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1241,7 +1241,7 @@ function cloneValue(value, seen) {
1241
1241
  }
1242
1242
  //#endregion
1243
1243
  //#region src/version.ts
1244
- const VERSION = "7.0.163";
1244
+ const VERSION = "7.0.164";
1245
1245
  //#endregion
1246
1246
  //#region src/util/download/download.ts
1247
1247
  /**
@@ -110,7 +110,7 @@ function asAsyncIterableStream(stream) {
110
110
  }
111
111
  //#endregion
112
112
  //#region src/version.ts
113
- const VERSION = "7.0.163";
113
+ const VERSION = "7.0.164";
114
114
  //#endregion
115
115
  //#region src/util/download/download.ts
116
116
  /**
@@ -185,6 +185,18 @@ transports by providing an `authProvider`.
185
185
 
186
186
  </Note>
187
187
 
188
+ ### OAuth Resource Binding
189
+
190
+ The MCP client includes the OAuth `resource` parameter in authorization,
191
+ authorization-code exchange, and token refresh requests. It uses the validated
192
+ resource from protected resource metadata when available. If metadata is
193
+ unavailable, it uses the configured MCP server URL with its fragment removed.
194
+
195
+ To customize resource validation and selection, implement
196
+ `OAuthClientProvider.validateResourceURL`. Return a `URL` to select a resource,
197
+ or throw to reject it. Returning `undefined` uses the canonical MCP server URL;
198
+ it does not omit the `resource` parameter.
199
+
188
200
  ### Shared OAuth Credential Storage
189
201
 
190
202
  When multiple MCP clients or replicas share OAuth credentials, a rotating refresh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "7.0.163",
3
+ "version": "7.0.164",
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,18 +42,18 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@ai-sdk/gateway": "4.0.136",
45
+ "@ai-sdk/gateway": "4.0.137",
46
46
  "@ai-sdk/provider": "4.0.36",
47
47
  "@ai-sdk/provider-utils": "5.0.75"
48
48
  },
49
49
  "devDependencies": {
50
- "@ai-sdk/amazon-bedrock": "5.0.133",
50
+ "@ai-sdk/amazon-bedrock": "5.0.134",
51
51
  "@ai-sdk/deepseek": "3.0.80",
52
- "@ai-sdk/google": "4.0.112",
52
+ "@ai-sdk/google": "4.0.113",
53
53
  "@ai-sdk/groq": "4.0.77",
54
- "@ai-sdk/huggingface": "2.0.85",
55
- "@ai-sdk/moonshotai": "3.0.85",
56
- "@ai-sdk/openai": "4.0.109",
54
+ "@ai-sdk/huggingface": "2.0.86",
55
+ "@ai-sdk/moonshotai": "3.0.86",
56
+ "@ai-sdk/openai": "4.0.110",
57
57
  "@ai-sdk/test-server": "2.0.4",
58
58
  "@ai-sdk/xai": "5.0.39",
59
59
  "@edge-runtime/vm": "^5.0.0",