@mastra/agent-builder 1.1.7-alpha.0 → 1.1.7-alpha.1
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 +12 -0
- package/dist/index.js +25 -6
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/agent-builder
|
|
2
2
|
|
|
3
|
+
## 1.1.7-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dependencies updates: ([#19611](https://github.com/mastra-ai/mastra/pull/19611))
|
|
8
|
+
- 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`)
|
|
9
|
+
- 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`)
|
|
10
|
+
- 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`)
|
|
11
|
+
- 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)]:
|
|
12
|
+
- @mastra/core@1.52.0-alpha.5
|
|
13
|
+
- @mastra/memory@1.23.1-alpha.1
|
|
14
|
+
|
|
3
15
|
## 1.1.7-alpha.0
|
|
4
16
|
|
|
5
17
|
### 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.
|
|
5348
|
+
var VERSION = "3.0.29";
|
|
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 :
|
|
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
|
-
|
|
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.
|
|
8223
|
+
var VERSION2 = "2.0.113";
|
|
8205
8224
|
var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
|
|
8206
8225
|
function createGatewayProvider(options = {}) {
|
|
8207
8226
|
var _a103, _b102;
|