@mastra/agent-builder 1.1.7-alpha.0 → 1.1.7-alpha.2

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,30 @@
1
1
  # @mastra/agent-builder
2
2
 
3
+ ## 1.1.7-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - dependencies updates: ([#19813](https://github.com/mastra-ai/mastra/pull/19813))
8
+ - Updated dependency [`@ai-sdk/anthropic-v5@npm:@ai-sdk/anthropic@2.0.87` ↗︎](https://www.npmjs.com/package/@ai-sdk/anthropic-v5/v/2.0.87) (from `npm:@ai-sdk/anthropic@2.0.85`, in `dependencies`)
9
+ - Updated dependency [`@ai-sdk/google-v5@npm:@ai-sdk/google@2.0.82` ↗︎](https://www.npmjs.com/package/@ai-sdk/google-v5/v/2.0.82) (from `npm:@ai-sdk/google@2.0.79`, in `dependencies`)
10
+ - Updated dependency [`@ai-sdk/groq-v5@npm:@ai-sdk/groq@2.0.45` ↗︎](https://www.npmjs.com/package/@ai-sdk/groq-v5/v/2.0.45) (from `npm:@ai-sdk/groq@2.0.43`, in `dependencies`)
11
+ - Updated dependency [`@ai-sdk/openai-v5@npm:@ai-sdk/openai@2.0.114` ↗︎](https://www.npmjs.com/package/@ai-sdk/openai-v5/v/2.0.114) (from `npm:@ai-sdk/openai@2.0.111`, in `dependencies`)
12
+ - Updated dependency [`@ai-sdk/xai-v5@npm:@ai-sdk/xai@2.0.81` ↗︎](https://www.npmjs.com/package/@ai-sdk/xai-v5/v/2.0.81) (from `npm:@ai-sdk/xai@2.0.77`, in `dependencies`)
13
+ - Updated dependencies [[`41a5392`](https://github.com/mastra-ai/mastra/commit/41a5392d9f6c5e18d6b227f0fc0ddf49c50774e9), [`675fbff`](https://github.com/mastra-ai/mastra/commit/675fbff84d3274391b33e852f76083c38a5514e5), [`da009e1`](https://github.com/mastra-ai/mastra/commit/da009e1aacd89ed94b8d1b2af09c9d4fe7c4db49), [`35c2181`](https://github.com/mastra-ai/mastra/commit/35c2181e6a50e47c90ba36260db7c9723d54696f), [`b4b7ea8`](https://github.com/mastra-ai/mastra/commit/b4b7ea8733f033fc441ea47ed03f6afb17ec2248), [`675fbff`](https://github.com/mastra-ai/mastra/commit/675fbff84d3274391b33e852f76083c38a5514e5), [`c328769`](https://github.com/mastra-ai/mastra/commit/c3287698ff8ef98dba86d415faa566fa3e5f4d56), [`232fcbc`](https://github.com/mastra-ai/mastra/commit/232fcbc14fce625dd672ba043329c0b732c62be2), [`3491666`](https://github.com/mastra-ai/mastra/commit/34916663c4fdd43b48c21f4ab2d5fb6dcccc94f9)]:
14
+ - @mastra/core@1.52.0-alpha.10
15
+
16
+ ## 1.1.7-alpha.1
17
+
18
+ ### Patch Changes
19
+
20
+ - dependencies updates: ([#19611](https://github.com/mastra-ai/mastra/pull/19611))
21
+ - Updated dependency [`@ai-sdk/google-v5@npm:@ai-sdk/google@2.0.79` ↗︎](https://www.npmjs.com/package/@ai-sdk/google-v5/v/2.0.79) (from `npm:@ai-sdk/google@2.0.78`, in `dependencies`)
22
+ - Updated dependency [`@ai-sdk/openai-v5@npm:@ai-sdk/openai@2.0.111` ↗︎](https://www.npmjs.com/package/@ai-sdk/openai-v5/v/2.0.111) (from `npm:@ai-sdk/openai@2.0.110`, in `dependencies`)
23
+ - Updated dependency [`@ai-sdk/xai-v5@npm:@ai-sdk/xai@2.0.77` ↗︎](https://www.npmjs.com/package/@ai-sdk/xai-v5/v/2.0.77) (from `npm:@ai-sdk/xai@2.0.76`, in `dependencies`)
24
+ - Updated dependencies [[`ec857fc`](https://github.com/mastra-ai/mastra/commit/ec857fc79c264b53b38e16478c789b7177f2ad59), [`e1f2fae`](https://github.com/mastra-ai/mastra/commit/e1f2faebaf048c3d4c2e2c01d293767c195d5794), [`63aa799`](https://github.com/mastra-ai/mastra/commit/63aa799c6b44eacc7806cda6846b7c5bbee06b37), [`73db8db`](https://github.com/mastra-ai/mastra/commit/73db8db90d69ab6153c7942749f624db0d96952d), [`73db8db`](https://github.com/mastra-ai/mastra/commit/73db8db90d69ab6153c7942749f624db0d96952d), [`76b7181`](https://github.com/mastra-ai/mastra/commit/76b71810366e6d90b9d3973149d1c7ba3659ffb9), [`0c0e8d7`](https://github.com/mastra-ai/mastra/commit/0c0e8d7becd4d1445c656b78d5d845f606c1ff9d), [`9f7c67a`](https://github.com/mastra-ai/mastra/commit/9f7c67abeeb52c41c51a9b5edee60b62afe7cd8d), [`0c52047`](https://github.com/mastra-ai/mastra/commit/0c520470a4547666156b2f18eb794eb8bd2676c8), [`3b65e68`](https://github.com/mastra-ai/mastra/commit/3b65e68d7f1c771c7a70eea42d83fefdd28cad88), [`e3868e2`](https://github.com/mastra-ai/mastra/commit/e3868e22babfffd0133771669ca724501c2dd58e)]:
25
+ - @mastra/core@1.52.0-alpha.5
26
+ - @mastra/memory@1.23.1-alpha.1
27
+
3
28
  ## 1.1.7-alpha.0
4
29
 
5
30
  ### Patch Changes
package/dist/index.js CHANGED
@@ -5345,7 +5345,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
5345
5345
  );
5346
5346
  return Object.fromEntries(normalizedHeaders.entries());
5347
5347
  }
5348
- var VERSION = "3.0.28";
5348
+ var VERSION = "3.0.30";
5349
5349
  var getOriginalFetch = () => globalThis.fetch;
5350
5350
  var getFromApi = async ({
5351
5351
  url,
@@ -5494,7 +5494,7 @@ function lazyValidator(createValidator) {
5494
5494
  };
5495
5495
  }
5496
5496
  function asValidator(value) {
5497
- return isValidator(value) ? value : typeof value === "function" ? value() : standardSchemaValidator(value);
5497
+ return isValidator(value) ? value : "~standard" in value ? standardSchemaValidator(value) : value();
5498
5498
  }
5499
5499
  function standardSchemaValidator(standardSchema) {
5500
5500
  return validator(async (value) => {
@@ -7119,18 +7119,27 @@ Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the toke
7119
7119
  var name22 = "GatewayForbiddenError";
7120
7120
  var marker32 = `vercel.ai.gateway.error.${name22}`;
7121
7121
  var symbol32 = Symbol.for(marker32);
7122
+ var forbiddenParamSchema = lazyValidator(
7123
+ () => zodSchema(
7124
+ z$1.object({
7125
+ ruleId: z$1.string()
7126
+ })
7127
+ )
7128
+ );
7122
7129
  var _a32;
7123
7130
  var _b32;
7124
7131
  var GatewayForbiddenError = class extends (_b32 = GatewayError, _a32 = symbol32, _b32) {
7125
7132
  constructor({
7126
7133
  message = "Forbidden",
7127
7134
  statusCode = 403,
7128
- cause
7135
+ cause,
7136
+ ruleId
7129
7137
  } = {}) {
7130
7138
  super({ message, statusCode, cause });
7131
7139
  this[_a32] = true;
7132
7140
  this.name = name22;
7133
7141
  this.type = "forbidden";
7142
+ this.ruleId = ruleId;
7134
7143
  }
7135
7144
  static isInstance(error) {
7136
7145
  return GatewayError.hasMarker(error) && symbol32 in error;
@@ -7298,8 +7307,18 @@ async function createGatewayErrorFromResponse({
7298
7307
  }
7299
7308
  case "internal_server_error":
7300
7309
  return new GatewayInternalServerError({ message, statusCode, cause });
7301
- case "forbidden":
7302
- return new GatewayForbiddenError({ message, statusCode, cause });
7310
+ case "forbidden": {
7311
+ const ruleResult = await safeValidateTypes({
7312
+ value: validatedResponse.error.param,
7313
+ schema: forbiddenParamSchema
7314
+ });
7315
+ return new GatewayForbiddenError({
7316
+ message,
7317
+ statusCode,
7318
+ cause,
7319
+ ruleId: ruleResult.success ? ruleResult.value.ruleId : void 0
7320
+ });
7321
+ }
7303
7322
  default:
7304
7323
  return new GatewayInternalServerError({ message, statusCode, cause });
7305
7324
  }
@@ -8201,7 +8220,7 @@ async function getVercelRequestId() {
8201
8220
  var _a103;
8202
8221
  return (_a103 = getContext().headers) == null ? void 0 : _a103["x-vercel-id"];
8203
8222
  }
8204
- var VERSION2 = "2.0.109";
8223
+ var VERSION2 = "2.0.115";
8205
8224
  var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
8206
8225
  function createGatewayProvider(options = {}) {
8207
8226
  var _a103, _b102;