@mastra/mcp 2.4.2-alpha.0 → 2.5.0-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/dist/client/client.d.ts +2 -1
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/types.d.ts +5 -3
- package/dist/client/types.d.ts.map +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-tools-mcp-client.md +2 -2
- package/dist/index.cjs +74 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +74 -33
- package/dist/index.js.map +1 -1
- package/package.json +10 -9
package/dist/index.js
CHANGED
|
@@ -132,7 +132,7 @@ var require_json_schema_traverse = /* @__PURE__ */ __commonJSMin$1(((exports, mo
|
|
|
132
132
|
}
|
|
133
133
|
}));
|
|
134
134
|
//#endregion
|
|
135
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
135
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/helpers/util.js
|
|
136
136
|
var util;
|
|
137
137
|
(function(util) {
|
|
138
138
|
util.assertEqual = (_) => {};
|
|
@@ -228,7 +228,7 @@ const getParsedType = (data) => {
|
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
230
|
//#endregion
|
|
231
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
231
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/ZodError.js
|
|
232
232
|
const ZodIssueCode = util.arrayToEnum([
|
|
233
233
|
"invalid_type",
|
|
234
234
|
"invalid_literal",
|
|
@@ -339,7 +339,7 @@ ZodError.create = (issues) => {
|
|
|
339
339
|
return new ZodError(issues);
|
|
340
340
|
};
|
|
341
341
|
//#endregion
|
|
342
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
342
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/locales/en.js
|
|
343
343
|
const errorMap = (issue, _ctx) => {
|
|
344
344
|
let message;
|
|
345
345
|
switch (issue.code) {
|
|
@@ -416,7 +416,7 @@ const errorMap = (issue, _ctx) => {
|
|
|
416
416
|
return { message };
|
|
417
417
|
};
|
|
418
418
|
//#endregion
|
|
419
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
419
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/errors.js
|
|
420
420
|
let overrideErrorMap = errorMap;
|
|
421
421
|
function setErrorMap(map) {
|
|
422
422
|
overrideErrorMap = map;
|
|
@@ -425,7 +425,7 @@ function getErrorMap() {
|
|
|
425
425
|
return overrideErrorMap;
|
|
426
426
|
}
|
|
427
427
|
//#endregion
|
|
428
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
428
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/helpers/parseUtil.js
|
|
429
429
|
const makeIssue = (params) => {
|
|
430
430
|
const { data, path, errorMaps, issueData } = params;
|
|
431
431
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -530,14 +530,14 @@ const isDirty = (x) => x.status === "dirty";
|
|
|
530
530
|
const isValid = (x) => x.status === "valid";
|
|
531
531
|
const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
532
532
|
//#endregion
|
|
533
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
533
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/helpers/errorUtil.js
|
|
534
534
|
var errorUtil;
|
|
535
535
|
(function(errorUtil) {
|
|
536
536
|
errorUtil.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
537
537
|
errorUtil.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
538
538
|
})(errorUtil || (errorUtil = {}));
|
|
539
539
|
//#endregion
|
|
540
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
540
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/types.js
|
|
541
541
|
var ParseInputLazyPath = class {
|
|
542
542
|
constructor(parent, value, path, key) {
|
|
543
543
|
this._cachedPath = [];
|
|
@@ -3751,7 +3751,7 @@ const coerce = {
|
|
|
3751
3751
|
};
|
|
3752
3752
|
const NEVER = INVALID;
|
|
3753
3753
|
//#endregion
|
|
3754
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
3754
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/index.js
|
|
3755
3755
|
var v3_default = /* @__PURE__ */ __exportAll({
|
|
3756
3756
|
BRAND: () => BRAND,
|
|
3757
3757
|
DIRTY: () => DIRTY,
|
|
@@ -3862,7 +3862,7 @@ var v3_default = /* @__PURE__ */ __exportAll({
|
|
|
3862
3862
|
void: () => voidType
|
|
3863
3863
|
});
|
|
3864
3864
|
//#endregion
|
|
3865
|
-
//#region ../schema-compat/dist/esm-
|
|
3865
|
+
//#region ../schema-compat/dist/esm-qtLw5F8u.js
|
|
3866
3866
|
const ignoreOverride$1 = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
3867
3867
|
const defaultOptions$1 = {
|
|
3868
3868
|
name: void 0,
|
|
@@ -4879,7 +4879,7 @@ const zodToJsonSchema$1 = (schema, options) => {
|
|
|
4879
4879
|
};
|
|
4880
4880
|
var esm_default$1 = zodToJsonSchema$1;
|
|
4881
4881
|
//#endregion
|
|
4882
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
4882
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/util.js
|
|
4883
4883
|
function getEnumValues(entries) {
|
|
4884
4884
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
4885
4885
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -5204,6 +5204,17 @@ function prefixIssues(path, issues) {
|
|
|
5204
5204
|
function unwrapMessage(message) {
|
|
5205
5205
|
return typeof message === "string" ? message : message?.message;
|
|
5206
5206
|
}
|
|
5207
|
+
/** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
|
|
5208
|
+
function sizeCaps(defChecks) {
|
|
5209
|
+
const caps = [];
|
|
5210
|
+
for (const ch of defChecks ?? []) {
|
|
5211
|
+
const d = ch._zod.def;
|
|
5212
|
+
if (!/_(length|size)$|_equals$/.test(d.check)) break;
|
|
5213
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
5214
|
+
if (max >= 0) caps.push([max, ch]);
|
|
5215
|
+
}
|
|
5216
|
+
return caps;
|
|
5217
|
+
}
|
|
5207
5218
|
function attachSchema(issues, start, inst) {
|
|
5208
5219
|
var _a;
|
|
5209
5220
|
for (let i = start; i < issues.length; i++) (_a = issues[i]).schema ?? (_a.schema = inst);
|
|
@@ -5424,7 +5435,7 @@ function constantCatch(value) {
|
|
|
5424
5435
|
return fn;
|
|
5425
5436
|
}
|
|
5426
5437
|
//#endregion
|
|
5427
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
5438
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/core.js
|
|
5428
5439
|
var _a$2;
|
|
5429
5440
|
const _zodDesc = {
|
|
5430
5441
|
value: void 0,
|
|
@@ -5530,7 +5541,7 @@ function config(newConfig) {
|
|
|
5530
5541
|
return globalConfig;
|
|
5531
5542
|
}
|
|
5532
5543
|
//#endregion
|
|
5533
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
5544
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/errors.js
|
|
5534
5545
|
function _getMessage() {
|
|
5535
5546
|
const internals = this._zod;
|
|
5536
5547
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -5644,7 +5655,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
5644
5655
|
return fieldErrors;
|
|
5645
5656
|
}
|
|
5646
5657
|
//#endregion
|
|
5647
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
5658
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/parse.js
|
|
5648
5659
|
function finalizeParams(callee, params) {
|
|
5649
5660
|
return {
|
|
5650
5661
|
callee: params?.callee ?? callee,
|
|
@@ -5847,7 +5858,7 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
5847
5858
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
5848
5859
|
};
|
|
5849
5860
|
//#endregion
|
|
5850
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
5861
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/regexes.js
|
|
5851
5862
|
/**
|
|
5852
5863
|
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
5853
5864
|
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
@@ -5920,7 +5931,7 @@ const _null$2 = /^null$/i;
|
|
|
5920
5931
|
const lowercase = /^[^A-Z]*$/;
|
|
5921
5932
|
const uppercase = /^[^a-z]*$/;
|
|
5922
5933
|
//#endregion
|
|
5923
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
5934
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/checks.js
|
|
5924
5935
|
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
5925
5936
|
var _a;
|
|
5926
5937
|
inst._zod ?? (inst._zod = {});
|
|
@@ -6306,7 +6317,7 @@ const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (ins
|
|
|
6306
6317
|
};
|
|
6307
6318
|
});
|
|
6308
6319
|
//#endregion
|
|
6309
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
6320
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/doc.js
|
|
6310
6321
|
var Doc = class {
|
|
6311
6322
|
constructor(args = [], closed = {}) {
|
|
6312
6323
|
this.content = [];
|
|
@@ -6340,14 +6351,14 @@ var Doc = class {
|
|
|
6340
6351
|
}
|
|
6341
6352
|
};
|
|
6342
6353
|
//#endregion
|
|
6343
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
6354
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/versions.js
|
|
6344
6355
|
const version = {
|
|
6345
6356
|
major: 4,
|
|
6346
6357
|
minor: 6,
|
|
6347
|
-
patch:
|
|
6358
|
+
patch: 7
|
|
6348
6359
|
};
|
|
6349
6360
|
//#endregion
|
|
6350
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
6361
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/schemas.js
|
|
6351
6362
|
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
6352
6363
|
var _a;
|
|
6353
6364
|
inst ?? (inst = {});
|
|
@@ -6864,6 +6875,26 @@ const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
|
|
|
6864
6875
|
return payload;
|
|
6865
6876
|
};
|
|
6866
6877
|
});
|
|
6878
|
+
function capSize(inst, size) {
|
|
6879
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
6880
|
+
if (!caps.length) return;
|
|
6881
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
6882
|
+
const parse = inst._zod.parse;
|
|
6883
|
+
inst._zod.parse = (payload, ctx) => {
|
|
6884
|
+
const n = size(payload.value);
|
|
6885
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
6886
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) if (n > max && ch._zod.def.when(payload)) {
|
|
6887
|
+
const start = payload.issues.length;
|
|
6888
|
+
ch._zod.check(payload);
|
|
6889
|
+
payload.issues[start].continue = false;
|
|
6890
|
+
attachSchema(payload.issues, start, inst);
|
|
6891
|
+
return payload;
|
|
6892
|
+
}
|
|
6893
|
+
}
|
|
6894
|
+
return parse(payload, ctx);
|
|
6895
|
+
};
|
|
6896
|
+
}
|
|
6897
|
+
const arraySize = (input) => Array.isArray(input) ? input.length : -1;
|
|
6867
6898
|
function handleArrayResult(result, final, index) {
|
|
6868
6899
|
if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
|
|
6869
6900
|
final.value[index] = result.value;
|
|
@@ -6901,6 +6932,7 @@ const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
|
|
|
6901
6932
|
if (proms.length) return Promise.all(proms).then(() => payload);
|
|
6902
6933
|
return payload;
|
|
6903
6934
|
};
|
|
6935
|
+
capSize(inst, arraySize);
|
|
6904
6936
|
});
|
|
6905
6937
|
function handlePropertyResult(result, final, key, input, optin, optout) {
|
|
6906
6938
|
const isPresent = key in input;
|
|
@@ -7872,7 +7904,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
7872
7904
|
}
|
|
7873
7905
|
}
|
|
7874
7906
|
//#endregion
|
|
7875
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
7907
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/memoizer.js
|
|
7876
7908
|
var $ZodCyclicError = class extends Error {
|
|
7877
7909
|
constructor() {
|
|
7878
7910
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -8125,7 +8157,7 @@ function isBackEdge(ctx, value) {
|
|
|
8125
8157
|
return backEdges !== void 0 && isRef(value) && backEdges.has(value);
|
|
8126
8158
|
}
|
|
8127
8159
|
//#endregion
|
|
8128
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
8160
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/locales/en.js
|
|
8129
8161
|
const error = () => {
|
|
8130
8162
|
const Sizable = {
|
|
8131
8163
|
string: {
|
|
@@ -8233,7 +8265,7 @@ function en_default() {
|
|
|
8233
8265
|
return { localeError: error() };
|
|
8234
8266
|
}
|
|
8235
8267
|
//#endregion
|
|
8236
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
8268
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/registries.js
|
|
8237
8269
|
var _a;
|
|
8238
8270
|
var $ZodRegistry = class {
|
|
8239
8271
|
constructor() {
|
|
@@ -8280,7 +8312,7 @@ function registry() {
|
|
|
8280
8312
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
8281
8313
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
8282
8314
|
//#endregion
|
|
8283
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
8315
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/api.js
|
|
8284
8316
|
function snapshotChecks(def) {
|
|
8285
8317
|
if (def.checks) def.checks = [...def.checks];
|
|
8286
8318
|
return def;
|
|
@@ -8850,7 +8882,7 @@ function _check(fn, params) {
|
|
|
8850
8882
|
return ch;
|
|
8851
8883
|
}
|
|
8852
8884
|
//#endregion
|
|
8853
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
8885
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/to-json-schema.js
|
|
8854
8886
|
function assignProps(target, ...sources) {
|
|
8855
8887
|
for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
|
|
8856
8888
|
return target;
|
|
@@ -9292,7 +9324,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
|
|
|
9292
9324
|
return finalize(ctx, schema);
|
|
9293
9325
|
};
|
|
9294
9326
|
//#endregion
|
|
9295
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
9327
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/json-schema-processors.js
|
|
9296
9328
|
const narrowMin = (agg, key, value) => {
|
|
9297
9329
|
if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
|
|
9298
9330
|
};
|
|
@@ -9936,7 +9968,7 @@ function toJSONSchema(input, params) {
|
|
|
9936
9968
|
return finalize(ctx, input);
|
|
9937
9969
|
}
|
|
9938
9970
|
//#endregion
|
|
9939
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
9971
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/classic/errors.js
|
|
9940
9972
|
const _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
9941
9973
|
function _lazyMethod(proto, key, make) {
|
|
9942
9974
|
Object.defineProperty(proto, key, {
|
|
@@ -9986,7 +10018,7 @@ const initializer = (inst, issues) => {
|
|
|
9986
10018
|
};
|
|
9987
10019
|
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
|
|
9988
10020
|
//#endregion
|
|
9989
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
10021
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/classic/parse.js
|
|
9990
10022
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
9991
10023
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
9992
10024
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -10000,7 +10032,7 @@ const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
10000
10032
|
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
10001
10033
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
10002
10034
|
//#endregion
|
|
10003
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.
|
|
10035
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/classic/schemas.js
|
|
10004
10036
|
function _ensureDefaultLocale() {
|
|
10005
10037
|
if (!globalConfig.localeError) config(en_default());
|
|
10006
10038
|
}
|
|
@@ -18426,7 +18458,7 @@ function isStandardSchemaWithJSON$1(value) {
|
|
|
18426
18458
|
return isStandardSchema(value) && isStandardJSONSchema(value);
|
|
18427
18459
|
}
|
|
18428
18460
|
//#endregion
|
|
18429
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod-from-json-schema/0.5.2/
|
|
18461
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod-from-json-schema/0.5.2/938b1a90632b5c19aade6e212477c764befeb6d6e1cdb7cfde7de2557cd03f99/node_modules/zod-from-json-schema/dist/index.mjs
|
|
18430
18462
|
var TypeHandler = class {
|
|
18431
18463
|
apply(types, schema) {
|
|
18432
18464
|
if (!schema.type) return;
|
|
@@ -24211,9 +24243,17 @@ var InternalMastraMCPClient = class extends MastraBase {
|
|
|
24211
24243
|
* Opens a `subscriptions/listen` stream for the current interest set, then closes the
|
|
24212
24244
|
* previous one so no notification is lost between filters. Resource subscriptions the
|
|
24213
24245
|
* server declines are an error; declined list-changed bits only mean the server has
|
|
24214
|
-
* nothing to announce.
|
|
24246
|
+
* nothing to announce. Older revisions push list-changed notifications unprompted, so
|
|
24247
|
+
* they need no stream unless resource subscriptions are requested.
|
|
24215
24248
|
*/
|
|
24216
24249
|
async replaceSubscriptionStream() {
|
|
24250
|
+
const negotiated = this.negotiatedProtocolVersion;
|
|
24251
|
+
if (negotiated !== void 0 && negotiated !== "2026-07-28" && this.subscriptionInterest.resourceSubscriptions.size === 0) {
|
|
24252
|
+
const previous = this.subscriptionStream;
|
|
24253
|
+
this.subscriptionStream = void 0;
|
|
24254
|
+
await previous?.close();
|
|
24255
|
+
return;
|
|
24256
|
+
}
|
|
24217
24257
|
this.assertCurrentRevision("subscriptions/listen");
|
|
24218
24258
|
const previous = this.subscriptionStream;
|
|
24219
24259
|
const filter = this.subscriptionFilter();
|
|
@@ -24534,13 +24574,14 @@ var InternalMastraMCPClient = class extends MastraBase {
|
|
|
24534
24574
|
text: errorText,
|
|
24535
24575
|
details: {
|
|
24536
24576
|
toolName: tool.name,
|
|
24537
|
-
serverName: this.name
|
|
24577
|
+
serverName: this.name,
|
|
24578
|
+
...res.structuredContent !== void 0 ? { structuredContent: JSON.stringify(res.structuredContent) } : {}
|
|
24538
24579
|
}
|
|
24539
24580
|
});
|
|
24540
24581
|
}
|
|
24541
24582
|
this.log("debug", `Tool executed successfully: ${tool.name}`);
|
|
24542
|
-
if (res.structuredContent !== void 0) {
|
|
24543
|
-
if (
|
|
24583
|
+
if (res.structuredContent !== void 0 && !res.isError) {
|
|
24584
|
+
if (outputSchema) {
|
|
24544
24585
|
const validation = validateToolOutput(await getOutputValidationSchema(), res.structuredContent, tool.name);
|
|
24545
24586
|
if (validation.error) {
|
|
24546
24587
|
this.log("debug", `Tool output failed schema validation: ${tool.name}`, { message: validation.error.message });
|