@mastra/agent-builder 1.1.9 → 1.1.10
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 +23 -0
- package/dist/index.js +29 -9
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @mastra/agent-builder
|
|
2
2
|
|
|
3
|
+
## 1.1.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dependencies updates: ([#20149](https://github.com/mastra-ai/mastra/pull/20149))
|
|
8
|
+
- Updated dependency [`@ai-sdk/anthropic-v5@npm:@ai-sdk/anthropic@2.0.91` ↗︎](https://www.npmjs.com/package/@ai-sdk/anthropic-v5/v/2.0.91) (from `npm:@ai-sdk/anthropic@2.0.87`, in `dependencies`)
|
|
9
|
+
- Updated dependency [`@ai-sdk/google-v5@npm:@ai-sdk/google@2.0.85` ↗︎](https://www.npmjs.com/package/@ai-sdk/google-v5/v/2.0.85) (from `npm:@ai-sdk/google@2.0.82`, in `dependencies`)
|
|
10
|
+
- Updated dependency [`@ai-sdk/openai-v5@npm:@ai-sdk/openai@2.0.115` ↗︎](https://www.npmjs.com/package/@ai-sdk/openai-v5/v/2.0.115) (from `npm:@ai-sdk/openai@2.0.114`, in `dependencies`)
|
|
11
|
+
- Updated dependency [`@ai-sdk/xai-v5@npm:@ai-sdk/xai@2.0.82` ↗︎](https://www.npmjs.com/package/@ai-sdk/xai-v5/v/2.0.82) (from `npm:@ai-sdk/xai@2.0.81`, in `dependencies`)
|
|
12
|
+
- Updated dependencies [[`8d2399b`](https://github.com/mastra-ai/mastra/commit/8d2399b638f8e0945cf2cda0187dbea8dcf0b784), [`c8002da`](https://github.com/mastra-ai/mastra/commit/c8002da7775c468e2965b6ff5f82045450fa8cb9), [`92be47f`](https://github.com/mastra-ai/mastra/commit/92be47fbd26ffccec0e2131ef7c1d9e70dd5ef4a), [`89200ba`](https://github.com/mastra-ai/mastra/commit/89200bafa05444bb7949b363ce7b743e29867561), [`c950138`](https://github.com/mastra-ai/mastra/commit/c950138e72e4f317a40187e3800588731ab790ce), [`810c7e7`](https://github.com/mastra-ai/mastra/commit/810c7e74929989d8b8b5db52cd3af22cd0998af4), [`063c8b2`](https://github.com/mastra-ai/mastra/commit/063c8b2eb14e4e5ca021779bc33e8c3c031c8604), [`f9f9884`](https://github.com/mastra-ai/mastra/commit/f9f98848ee194dc71a787a709ec430b065cdc41b), [`e0904dc`](https://github.com/mastra-ai/mastra/commit/e0904dc538792e54e1806b70172e5900ac49bff4), [`9672fab`](https://github.com/mastra-ai/mastra/commit/9672fabfbcadb961a35c22a2d6722e077f7b24b9), [`f4e964c`](https://github.com/mastra-ai/mastra/commit/f4e964cad57057301d6bed5c55bcdd730175b941), [`1f7bbd7`](https://github.com/mastra-ai/mastra/commit/1f7bbd7785a8d230aad02454ecabeb4a0b2cc96f), [`e47ff36`](https://github.com/mastra-ai/mastra/commit/e47ff36945720f4ee4caa09f6e83514d7d188608), [`64d6781`](https://github.com/mastra-ai/mastra/commit/64d67814bccddd314f7e09643243821e57cb87b6), [`14562d6`](https://github.com/mastra-ai/mastra/commit/14562d6ea724ed4ccb9fb079d016ec7ab1bd92a4), [`fb9a6ac`](https://github.com/mastra-ai/mastra/commit/fb9a6ac11c9560518742ece60b49d6b062845fd3), [`aa2cec8`](https://github.com/mastra-ai/mastra/commit/aa2cec8501f634d51c2f3ebfb3dd3aa7af8d2ca2), [`c848e65`](https://github.com/mastra-ai/mastra/commit/c848e655a64ff10331a8ceafafe7f18e70a0f092), [`2adf8eb`](https://github.com/mastra-ai/mastra/commit/2adf8eb4a70ed2b6cff2dd39281496ea0e025fac), [`0494489`](https://github.com/mastra-ai/mastra/commit/049448906e4c3d2d615bbe865b073a0d890ddb7c), [`8d1aeb8`](https://github.com/mastra-ai/mastra/commit/8d1aeb8acf7c20c4bb8e4d8e4bdc6569c83ac561), [`9672fab`](https://github.com/mastra-ai/mastra/commit/9672fabfbcadb961a35c22a2d6722e077f7b24b9), [`8264611`](https://github.com/mastra-ai/mastra/commit/8264611510e421b818bc7395dc2ae4d9c2d518b2), [`1680d6b`](https://github.com/mastra-ai/mastra/commit/1680d6bb0f45f0a0cb10068acb61ec7a27eec8c2), [`d8fa243`](https://github.com/mastra-ai/mastra/commit/d8fa2430d21113e330c4e676ac65e1235cf44f81), [`71b8b62`](https://github.com/mastra-ai/mastra/commit/71b8b62084bf11d8006145129b720843f7f04bd9), [`44fc98b`](https://github.com/mastra-ai/mastra/commit/44fc98b9d1242aa87a3ab44bdce9e9f12c44d8c9), [`f933ba3`](https://github.com/mastra-ai/mastra/commit/f933ba32700e1d0bf143311c1a08f88300b840b6), [`83065bf`](https://github.com/mastra-ai/mastra/commit/83065bfee9e47c3c6f09132a9034501f6cfb69cf), [`0f2ef41`](https://github.com/mastra-ai/mastra/commit/0f2ef4118da022e4f30dac4e9856cc3a8c97671c), [`01b162f`](https://github.com/mastra-ai/mastra/commit/01b162fe435295881aa7ea55f1759407ad5175ad)]:
|
|
13
|
+
- @mastra/core@1.57.0
|
|
14
|
+
- @mastra/schema-compat@1.3.5
|
|
15
|
+
- @mastra/memory@1.26.0
|
|
16
|
+
|
|
17
|
+
## 1.1.10-alpha.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`89200ba`](https://github.com/mastra-ai/mastra/commit/89200bafa05444bb7949b363ce7b743e29867561), [`c950138`](https://github.com/mastra-ai/mastra/commit/c950138e72e4f317a40187e3800588731ab790ce), [`063c8b2`](https://github.com/mastra-ai/mastra/commit/063c8b2eb14e4e5ca021779bc33e8c3c031c8604), [`f4e964c`](https://github.com/mastra-ai/mastra/commit/f4e964cad57057301d6bed5c55bcdd730175b941), [`1f7bbd7`](https://github.com/mastra-ai/mastra/commit/1f7bbd7785a8d230aad02454ecabeb4a0b2cc96f), [`e47ff36`](https://github.com/mastra-ai/mastra/commit/e47ff36945720f4ee4caa09f6e83514d7d188608), [`14562d6`](https://github.com/mastra-ai/mastra/commit/14562d6ea724ed4ccb9fb079d016ec7ab1bd92a4), [`fb9a6ac`](https://github.com/mastra-ai/mastra/commit/fb9a6ac11c9560518742ece60b49d6b062845fd3), [`aa2cec8`](https://github.com/mastra-ai/mastra/commit/aa2cec8501f634d51c2f3ebfb3dd3aa7af8d2ca2), [`2adf8eb`](https://github.com/mastra-ai/mastra/commit/2adf8eb4a70ed2b6cff2dd39281496ea0e025fac), [`8264611`](https://github.com/mastra-ai/mastra/commit/8264611510e421b818bc7395dc2ae4d9c2d518b2), [`1680d6b`](https://github.com/mastra-ai/mastra/commit/1680d6bb0f45f0a0cb10068acb61ec7a27eec8c2), [`44fc98b`](https://github.com/mastra-ai/mastra/commit/44fc98b9d1242aa87a3ab44bdce9e9f12c44d8c9), [`0f2ef41`](https://github.com/mastra-ai/mastra/commit/0f2ef4118da022e4f30dac4e9856cc3a8c97671c)]:
|
|
22
|
+
- @mastra/core@1.57.0-alpha.1
|
|
23
|
+
- @mastra/schema-compat@1.3.5-alpha.0
|
|
24
|
+
- @mastra/memory@1.25.1-alpha.0
|
|
25
|
+
|
|
3
26
|
## 1.1.9
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -4548,7 +4548,7 @@ const shouldAbortWorkflow = (stepResult) => {
|
|
|
4548
4548
|
return stepResult?.success === false || stepResult?.error;
|
|
4549
4549
|
};
|
|
4550
4550
|
//#endregion
|
|
4551
|
-
//#region ../_vendored/ai_v5/dist/dist-
|
|
4551
|
+
//#region ../_vendored/ai_v5/dist/dist-BuEMdYEn.js
|
|
4552
4552
|
var marker$1 = "vercel.ai.error";
|
|
4553
4553
|
var symbol$1$1 = Symbol.for(marker$1);
|
|
4554
4554
|
var _a$1$1;
|
|
@@ -5072,6 +5072,26 @@ async function cancelResponseBody(response) {
|
|
|
5072
5072
|
await ((_a2 = response.body) == null ? void 0 : _a2.cancel());
|
|
5073
5073
|
} catch (e) {}
|
|
5074
5074
|
}
|
|
5075
|
+
var initialGlobalFetch = globalThis.fetch;
|
|
5076
|
+
isNodeDefaultFetch(initialGlobalFetch);
|
|
5077
|
+
function isNodeDefaultFetch(fetch) {
|
|
5078
|
+
const source = Function.prototype.toString.call(fetch);
|
|
5079
|
+
return source.includes("internal/deps/undici") || source.includes("lazy loading of undici");
|
|
5080
|
+
}
|
|
5081
|
+
function getCurrentModulePath() {
|
|
5082
|
+
const originalPrepareStackTrace = Error.prepareStackTrace;
|
|
5083
|
+
try {
|
|
5084
|
+
Error.prepareStackTrace = (_error, callSites) => callSites;
|
|
5085
|
+
const error = /* @__PURE__ */ new Error("Capture current module path");
|
|
5086
|
+
Error.captureStackTrace(error, getCurrentModulePath);
|
|
5087
|
+
const [caller] = error.stack;
|
|
5088
|
+
const fileName = caller == null ? void 0 : caller.getFileName();
|
|
5089
|
+
if (fileName == null) throw new Error("Unable to determine the current module path");
|
|
5090
|
+
return fileName;
|
|
5091
|
+
} finally {
|
|
5092
|
+
Error.prepareStackTrace = originalPrepareStackTrace;
|
|
5093
|
+
}
|
|
5094
|
+
}
|
|
5075
5095
|
var DEFAULT_MAX_DOWNLOAD_SIZE = 2 * 1024 * 1024 * 1024;
|
|
5076
5096
|
async function readResponseWithSizeLimit({ response, url, maxBytes = DEFAULT_MAX_DOWNLOAD_SIZE }) {
|
|
5077
5097
|
const contentLength = response.headers.get("content-length");
|
|
@@ -5175,11 +5195,11 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
5175
5195
|
normalizedHeaders.set("user-agent", [currentUserAgentHeader, ...userAgentSuffixParts].filter(Boolean).join(" "));
|
|
5176
5196
|
return Object.fromEntries(normalizedHeaders.entries());
|
|
5177
5197
|
}
|
|
5178
|
-
var VERSION$3 = "3.0.
|
|
5198
|
+
var VERSION$3 = "3.0.31";
|
|
5179
5199
|
var getOriginalFetch = () => globalThis.fetch;
|
|
5180
|
-
var getFromApi = async ({ url, headers = {}, successfulResponseHandler, failedResponseHandler, abortSignal, fetch
|
|
5200
|
+
var getFromApi = async ({ url, headers = {}, successfulResponseHandler, failedResponseHandler, abortSignal, fetch = getOriginalFetch() }) => {
|
|
5181
5201
|
try {
|
|
5182
|
-
const response = await
|
|
5202
|
+
const response = await fetch(url, {
|
|
5183
5203
|
method: "GET",
|
|
5184
5204
|
headers: withUserAgentSuffix(headers, `ai-sdk/provider-utils/${VERSION$3}`, getRuntimeEnvironmentUserAgent()),
|
|
5185
5205
|
signal: abortSignal
|
|
@@ -5405,7 +5425,7 @@ function parseJsonEventStream({ stream, schema }) {
|
|
|
5405
5425
|
} }));
|
|
5406
5426
|
}
|
|
5407
5427
|
var getOriginalFetch2 = () => globalThis.fetch;
|
|
5408
|
-
var postJsonToApi = async ({ url, headers, body, failedResponseHandler, successfulResponseHandler, abortSignal, fetch
|
|
5428
|
+
var postJsonToApi = async ({ url, headers, body, failedResponseHandler, successfulResponseHandler, abortSignal, fetch }) => postToApi({
|
|
5409
5429
|
url,
|
|
5410
5430
|
headers: {
|
|
5411
5431
|
"Content-Type": "application/json",
|
|
@@ -5418,11 +5438,11 @@ var postJsonToApi = async ({ url, headers, body, failedResponseHandler, successf
|
|
|
5418
5438
|
failedResponseHandler,
|
|
5419
5439
|
successfulResponseHandler,
|
|
5420
5440
|
abortSignal,
|
|
5421
|
-
fetch
|
|
5441
|
+
fetch
|
|
5422
5442
|
});
|
|
5423
|
-
var postToApi = async ({ url, headers = {}, body, successfulResponseHandler, failedResponseHandler, abortSignal, fetch
|
|
5443
|
+
var postToApi = async ({ url, headers = {}, body, successfulResponseHandler, failedResponseHandler, abortSignal, fetch = getOriginalFetch2() }) => {
|
|
5424
5444
|
try {
|
|
5425
|
-
const response = await
|
|
5445
|
+
const response = await fetch(url, {
|
|
5426
5446
|
method: "POST",
|
|
5427
5447
|
headers: withUserAgentSuffix(headers, `ai-sdk/provider-utils/${VERSION$3}`, getRuntimeEnvironmentUserAgent()),
|
|
5428
5448
|
body: body.content,
|
|
@@ -7484,7 +7504,7 @@ async function getVercelRequestId() {
|
|
|
7484
7504
|
var _a10;
|
|
7485
7505
|
return (_a10 = getContext().headers) == null ? void 0 : _a10["x-vercel-id"];
|
|
7486
7506
|
}
|
|
7487
|
-
var VERSION$2 = "2.0.
|
|
7507
|
+
var VERSION$2 = "2.0.125";
|
|
7488
7508
|
var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
|
|
7489
7509
|
function createGatewayProvider(options = {}) {
|
|
7490
7510
|
var _a10, _b10;
|