@mastra/server 0.0.0-message-ordering-20250415215612 → 0.0.0-pg-pool-options-20250428183821

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.
Files changed (39) hide show
  1. package/dist/_tsup-dts-rollup.d.cts +99 -24
  2. package/dist/_tsup-dts-rollup.d.ts +99 -24
  3. package/dist/{chunk-A7DF4ETD.cjs → chunk-55HTWX4C.cjs} +2 -9
  4. package/dist/{chunk-UV4WTEH4.js → chunk-5JNVY6DU.js} +5 -5
  5. package/dist/{chunk-QH6XWSXP.cjs → chunk-5SWCVTNL.cjs} +38 -38
  6. package/dist/{chunk-CWSDZEZG.cjs → chunk-7IWQE76Z.cjs} +2 -2
  7. package/dist/{chunk-PDC4ZBQW.cjs → chunk-D3G23FP3.cjs} +9 -9
  8. package/dist/{chunk-JLDXUWK7.cjs → chunk-FPIWDH5Y.cjs} +4 -4
  9. package/dist/{chunk-Z46X3YCB.cjs → chunk-HCOPJZ4A.cjs} +11 -11
  10. package/dist/chunk-L5JIIJGO.js +300 -0
  11. package/dist/{chunk-OPP7H5TW.js → chunk-LFOBHRFO.js} +10 -10
  12. package/dist/{chunk-VK6FX47H.js → chunk-OMN3UI6X.js} +38 -38
  13. package/dist/{chunk-3RVHWGWO.js → chunk-Q6SHQECN.js} +2 -9
  14. package/dist/{chunk-67WTHYAV.js → chunk-R4J7XQYU.js} +7 -7
  15. package/dist/{chunk-YANVFOYA.js → chunk-RE6YL32K.js} +4 -4
  16. package/dist/{chunk-B64YROKU.cjs → chunk-TZK63M5N.cjs} +16 -16
  17. package/dist/{chunk-DVPP5S6I.js → chunk-WTHDCRMY.js} +2 -2
  18. package/dist/chunk-YN63BKGG.cjs +312 -0
  19. package/dist/server/handlers/agents.cjs +7 -7
  20. package/dist/server/handlers/agents.js +1 -1
  21. package/dist/server/handlers/network.cjs +5 -5
  22. package/dist/server/handlers/network.js +1 -1
  23. package/dist/server/handlers/telemetry.cjs +3 -3
  24. package/dist/server/handlers/telemetry.js +1 -1
  25. package/dist/server/handlers/tools.cjs +5 -5
  26. package/dist/server/handlers/tools.js +1 -1
  27. package/dist/server/handlers/vNextWorkflows.cjs +46 -0
  28. package/dist/server/handlers/vNextWorkflows.d.cts +10 -0
  29. package/dist/server/handlers/vNextWorkflows.d.ts +10 -0
  30. package/dist/server/handlers/vNextWorkflows.js +1 -0
  31. package/dist/server/handlers/voice.cjs +4 -4
  32. package/dist/server/handlers/voice.js +1 -1
  33. package/dist/server/handlers/workflows.cjs +11 -11
  34. package/dist/server/handlers/workflows.js +1 -1
  35. package/dist/server/handlers.cjs +17 -12
  36. package/dist/server/handlers.d.cts +1 -0
  37. package/dist/server/handlers.d.ts +1 -0
  38. package/dist/server/handlers.js +7 -6
  39. package/package.json +3 -3
@@ -764,7 +764,7 @@ SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJS
764
764
  SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
765
765
  var stringify = SuperJSON.stringify;
766
766
 
767
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/Options.js
767
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/Options.js
768
768
  var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
769
769
  var defaultOptions = {
770
770
  name: void 0,
@@ -797,7 +797,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
797
797
  ...options
798
798
  };
799
799
 
800
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/Refs.js
800
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/Refs.js
801
801
  var getRefs = (options) => {
802
802
  const _options = getDefaultOptions(options);
803
803
  const currentPath = _options.name !== void 0 ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
@@ -817,7 +817,7 @@ var getRefs = (options) => {
817
817
  };
818
818
  };
819
819
 
820
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
820
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
821
821
  function addErrorMessage(res, key, errorMessage, refs) {
822
822
  if (!refs?.errorMessages)
823
823
  return;
@@ -833,7 +833,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
833
833
  addErrorMessage(res, key, errorMessage, refs);
834
834
  }
835
835
 
836
- // ../../node_modules/.pnpm/zod@3.24.2/node_modules/zod/lib/index.mjs
836
+ // ../../node_modules/.pnpm/zod@3.24.3/node_modules/zod/lib/index.mjs
837
837
  var util;
838
838
  (function(util2) {
839
839
  util2.assertEqual = (val) => val;
@@ -4406,12 +4406,12 @@ var ZodFirstPartyTypeKind;
4406
4406
  ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";
4407
4407
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
4408
4408
 
4409
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
4409
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
4410
4410
  function parseAnyDef() {
4411
4411
  return {};
4412
4412
  }
4413
4413
 
4414
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
4414
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
4415
4415
  function parseArrayDef(def, refs) {
4416
4416
  const res = {
4417
4417
  type: "array"
@@ -4435,7 +4435,7 @@ function parseArrayDef(def, refs) {
4435
4435
  return res;
4436
4436
  }
4437
4437
 
4438
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
4438
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
4439
4439
  function parseBigintDef(def, refs) {
4440
4440
  const res = {
4441
4441
  type: "integer",
@@ -4481,24 +4481,24 @@ function parseBigintDef(def, refs) {
4481
4481
  return res;
4482
4482
  }
4483
4483
 
4484
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
4484
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
4485
4485
  function parseBooleanDef() {
4486
4486
  return {
4487
4487
  type: "boolean"
4488
4488
  };
4489
4489
  }
4490
4490
 
4491
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
4491
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
4492
4492
  function parseBrandedDef(_def, refs) {
4493
4493
  return parseDef(_def.type._def, refs);
4494
4494
  }
4495
4495
 
4496
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
4496
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
4497
4497
  var parseCatchDef = (def, refs) => {
4498
4498
  return parseDef(def.innerType._def, refs);
4499
4499
  };
4500
4500
 
4501
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
4501
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
4502
4502
  function parseDateDef(def, refs, overrideDateStrategy) {
4503
4503
  const strategy = overrideDateStrategy ?? refs.dateStrategy;
4504
4504
  if (Array.isArray(strategy)) {
@@ -4557,7 +4557,7 @@ var integerDateParser = (def, refs) => {
4557
4557
  return res;
4558
4558
  };
4559
4559
 
4560
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
4560
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
4561
4561
  function parseDefaultDef(_def, refs) {
4562
4562
  return {
4563
4563
  ...parseDef(_def.innerType._def, refs),
@@ -4565,12 +4565,12 @@ function parseDefaultDef(_def, refs) {
4565
4565
  };
4566
4566
  }
4567
4567
 
4568
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
4568
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
4569
4569
  function parseEffectsDef(_def, refs) {
4570
4570
  return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : {};
4571
4571
  }
4572
4572
 
4573
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
4573
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
4574
4574
  function parseEnumDef(def) {
4575
4575
  return {
4576
4576
  type: "string",
@@ -4578,7 +4578,7 @@ function parseEnumDef(def) {
4578
4578
  };
4579
4579
  }
4580
4580
 
4581
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
4581
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
4582
4582
  var isJsonSchema7AllOfType = (type) => {
4583
4583
  if ("type" in type && type.type === "string")
4584
4584
  return false;
@@ -4620,7 +4620,7 @@ function parseIntersectionDef(def, refs) {
4620
4620
  } : void 0;
4621
4621
  }
4622
4622
 
4623
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
4623
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
4624
4624
  function parseLiteralDef(def, refs) {
4625
4625
  const parsedType = typeof def.value;
4626
4626
  if (parsedType !== "bigint" && parsedType !== "number" && parsedType !== "boolean" && parsedType !== "string") {
@@ -4640,7 +4640,7 @@ function parseLiteralDef(def, refs) {
4640
4640
  };
4641
4641
  }
4642
4642
 
4643
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
4643
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
4644
4644
  var emojiRegex2 = void 0;
4645
4645
  var zodPatterns = {
4646
4646
  /**
@@ -4952,7 +4952,7 @@ function stringifyRegExpWithFlags(regex, refs) {
4952
4952
  return pattern;
4953
4953
  }
4954
4954
 
4955
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
4955
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
4956
4956
  function parseRecordDef(def, refs) {
4957
4957
  if (refs.target === "openAi") {
4958
4958
  console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
@@ -5004,7 +5004,7 @@ function parseRecordDef(def, refs) {
5004
5004
  return schema;
5005
5005
  }
5006
5006
 
5007
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
5007
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
5008
5008
  function parseMapDef(def, refs) {
5009
5009
  if (refs.mapStrategy === "record") {
5010
5010
  return parseRecordDef(def, refs);
@@ -5029,7 +5029,7 @@ function parseMapDef(def, refs) {
5029
5029
  };
5030
5030
  }
5031
5031
 
5032
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
5032
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
5033
5033
  function parseNativeEnumDef(def) {
5034
5034
  const object = def.values;
5035
5035
  const actualKeys = Object.keys(def.values).filter((key) => {
@@ -5043,14 +5043,14 @@ function parseNativeEnumDef(def) {
5043
5043
  };
5044
5044
  }
5045
5045
 
5046
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
5046
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
5047
5047
  function parseNeverDef() {
5048
5048
  return {
5049
5049
  not: {}
5050
5050
  };
5051
5051
  }
5052
5052
 
5053
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
5053
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
5054
5054
  function parseNullDef(refs) {
5055
5055
  return refs.target === "openApi3" ? {
5056
5056
  enum: ["null"],
@@ -5060,7 +5060,7 @@ function parseNullDef(refs) {
5060
5060
  };
5061
5061
  }
5062
5062
 
5063
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
5063
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
5064
5064
  var primitiveMappings = {
5065
5065
  ZodString: "string",
5066
5066
  ZodNumber: "number",
@@ -5128,7 +5128,7 @@ var asAnyOf = (def, refs) => {
5128
5128
  return anyOf.length ? { anyOf } : void 0;
5129
5129
  };
5130
5130
 
5131
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
5131
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
5132
5132
  function parseNullableDef(def, refs) {
5133
5133
  if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
5134
5134
  if (refs.target === "openApi3") {
@@ -5160,7 +5160,7 @@ function parseNullableDef(def, refs) {
5160
5160
  return base && { anyOf: [base, { type: "null" }] };
5161
5161
  }
5162
5162
 
5163
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
5163
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
5164
5164
  function parseNumberDef(def, refs) {
5165
5165
  const res = {
5166
5166
  type: "number"
@@ -5209,7 +5209,7 @@ function parseNumberDef(def, refs) {
5209
5209
  return res;
5210
5210
  }
5211
5211
 
5212
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
5212
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
5213
5213
  function parseObjectDef(def, refs) {
5214
5214
  const forceOptionalIntoNullable = refs.target === "openAi";
5215
5215
  const result = {
@@ -5279,7 +5279,7 @@ function safeIsOptional(schema) {
5279
5279
  }
5280
5280
  }
5281
5281
 
5282
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
5282
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
5283
5283
  var parseOptionalDef = (def, refs) => {
5284
5284
  if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
5285
5285
  return parseDef(def.innerType._def, refs);
@@ -5298,7 +5298,7 @@ var parseOptionalDef = (def, refs) => {
5298
5298
  } : {};
5299
5299
  };
5300
5300
 
5301
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
5301
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
5302
5302
  var parsePipelineDef = (def, refs) => {
5303
5303
  if (refs.pipeStrategy === "input") {
5304
5304
  return parseDef(def.in._def, refs);
@@ -5318,12 +5318,12 @@ var parsePipelineDef = (def, refs) => {
5318
5318
  };
5319
5319
  };
5320
5320
 
5321
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
5321
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
5322
5322
  function parsePromiseDef(def, refs) {
5323
5323
  return parseDef(def.type._def, refs);
5324
5324
  }
5325
5325
 
5326
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
5326
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
5327
5327
  function parseSetDef(def, refs) {
5328
5328
  const items = parseDef(def.valueType._def, {
5329
5329
  ...refs,
@@ -5343,7 +5343,7 @@ function parseSetDef(def, refs) {
5343
5343
  return schema;
5344
5344
  }
5345
5345
 
5346
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
5346
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
5347
5347
  function parseTupleDef(def, refs) {
5348
5348
  if (def.rest) {
5349
5349
  return {
@@ -5371,24 +5371,24 @@ function parseTupleDef(def, refs) {
5371
5371
  }
5372
5372
  }
5373
5373
 
5374
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
5374
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
5375
5375
  function parseUndefinedDef() {
5376
5376
  return {
5377
5377
  not: {}
5378
5378
  };
5379
5379
  }
5380
5380
 
5381
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
5381
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
5382
5382
  function parseUnknownDef() {
5383
5383
  return {};
5384
5384
  }
5385
5385
 
5386
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
5386
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
5387
5387
  var parseReadonlyDef = (def, refs) => {
5388
5388
  return parseDef(def.innerType._def, refs);
5389
5389
  };
5390
5390
 
5391
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/selectParser.js
5391
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/selectParser.js
5392
5392
  var selectParser = (def, typeName, refs) => {
5393
5393
  switch (typeName) {
5394
5394
  case ZodFirstPartyTypeKind.ZodString:
@@ -5464,7 +5464,7 @@ var selectParser = (def, typeName, refs) => {
5464
5464
  }
5465
5465
  };
5466
5466
 
5467
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/parseDef.js
5467
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/parseDef.js
5468
5468
  function parseDef(def, refs, forceResolution = false) {
5469
5469
  const seenItem = refs.seen.get(def);
5470
5470
  if (refs.override) {
@@ -5528,7 +5528,7 @@ var addMeta = (def, refs, jsonSchema) => {
5528
5528
  return jsonSchema;
5529
5529
  };
5530
5530
 
5531
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
5531
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
5532
5532
  var zodToJsonSchema = (schema, options) => {
5533
5533
  const refs = getRefs(options);
5534
5534
  const definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
@@ -5572,7 +5572,7 @@ var zodToJsonSchema = (schema, options) => {
5572
5572
  return combined;
5573
5573
  };
5574
5574
 
5575
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.2/node_modules/zod-to-json-schema/dist/esm/index.js
5575
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.24.3/node_modules/zod-to-json-schema/dist/esm/index.js
5576
5576
  var esm_default = zodToJsonSchema;
5577
5577
 
5578
5578
  exports.esm_default = esm_default;
@@ -29,7 +29,7 @@ async function getTelemetryHandler({ mastra, body }) {
29
29
  return [key, value];
30
30
  })
31
31
  ) : void 0;
32
- const traces = await storage.__getTraces({
32
+ const traces = await storage.getTraces({
33
33
  name,
34
34
  scope,
35
35
  page: Number(page ?? 0),
@@ -107,7 +107,7 @@ async function storeTelemetryHandler({ mastra, body }) {
107
107
  }
108
108
  return acc;
109
109
  }, []);
110
- return storage.__batchTraceInsert({
110
+ return storage.batchTraceInsert({
111
111
  records: allSpans
112
112
  }).then(() => {
113
113
  return {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkQH6XWSXP_cjs = require('./chunk-QH6XWSXP.cjs');
3
+ var chunk5SWCVTNL_cjs = require('./chunk-5SWCVTNL.cjs');
4
4
  var chunkQN4KF3BH_cjs = require('./chunk-QN4KF3BH.cjs');
5
5
  var chunkZLBRQFDD_cjs = require('./chunk-ZLBRQFDD.cjs');
6
6
  var chunkFV45V6WC_cjs = require('./chunk-FV45V6WC.cjs');
@@ -24,8 +24,8 @@ async function getToolsHandler({ tools }) {
24
24
  const tool = _tool;
25
25
  acc[id] = {
26
26
  ...tool,
27
- inputSchema: tool.inputSchema ? chunkQH6XWSXP_cjs.stringify(chunkQH6XWSXP_cjs.esm_default(tool.inputSchema)) : void 0,
28
- outputSchema: tool.outputSchema ? chunkQH6XWSXP_cjs.stringify(chunkQH6XWSXP_cjs.esm_default(tool.outputSchema)) : void 0
27
+ inputSchema: tool.inputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(tool.inputSchema)) : void 0,
28
+ outputSchema: tool.outputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(tool.outputSchema)) : void 0
29
29
  };
30
30
  return acc;
31
31
  },
@@ -44,8 +44,8 @@ async function getToolByIdHandler({ tools, toolId }) {
44
44
  }
45
45
  const serializedTool = {
46
46
  ...tool,
47
- inputSchema: tool.inputSchema ? chunkQH6XWSXP_cjs.stringify(chunkQH6XWSXP_cjs.esm_default(tool.inputSchema)) : void 0,
48
- outputSchema: tool.outputSchema ? chunkQH6XWSXP_cjs.stringify(chunkQH6XWSXP_cjs.esm_default(tool.outputSchema)) : void 0
47
+ inputSchema: tool.inputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(tool.inputSchema)) : void 0,
48
+ outputSchema: tool.outputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(tool.outputSchema)) : void 0
49
49
  };
50
50
  return serializedTool;
51
51
  } catch (error) {
@@ -58,7 +58,7 @@ function executeToolHandler(tools$1) {
58
58
  runId,
59
59
  toolId,
60
60
  data,
61
- container
61
+ runtimeContext
62
62
  }) => {
63
63
  try {
64
64
  if (!toolId) {
@@ -80,7 +80,7 @@ function executeToolHandler(tools$1) {
80
80
  context: data,
81
81
  mastra,
82
82
  runId,
83
- container
83
+ runtimeContext
84
84
  });
85
85
  return result;
86
86
  } catch (error) {
@@ -93,7 +93,7 @@ async function executeAgentToolHandler({
93
93
  agentId,
94
94
  toolId,
95
95
  data,
96
- container
96
+ runtimeContext
97
97
  }) {
98
98
  try {
99
99
  const agent = agentId ? mastra.getAgent(agentId) : null;
@@ -109,7 +109,7 @@ async function executeAgentToolHandler({
109
109
  }
110
110
  const result = await tool.execute({
111
111
  context: data,
112
- container,
112
+ runtimeContext,
113
113
  mastra,
114
114
  runId: agentId
115
115
  });
@@ -71,7 +71,7 @@ async function getNetworkByIdHandler({ mastra, networkId }) {
71
71
  }
72
72
  async function generateHandler({
73
73
  mastra,
74
- container,
74
+ runtimeContext,
75
75
  networkId,
76
76
  body
77
77
  }) {
@@ -82,7 +82,7 @@ async function generateHandler({
82
82
  }
83
83
  chunkQN4KF3BH_cjs.validateBody({ messages: body.messages });
84
84
  const { messages, ...rest } = body;
85
- const result = await network.generate(messages, { ...rest, container });
85
+ const result = await network.generate(messages, { ...rest, runtimeContext });
86
86
  return result;
87
87
  } catch (error) {
88
88
  return chunkZLBRQFDD_cjs.handleError(error, "Error generating from network");
@@ -92,7 +92,7 @@ async function streamGenerateHandler({
92
92
  mastra,
93
93
  networkId,
94
94
  body,
95
- container
95
+ runtimeContext
96
96
  }) {
97
97
  try {
98
98
  const network = mastra.getNetwork(networkId);
@@ -104,7 +104,7 @@ async function streamGenerateHandler({
104
104
  const streamResult = await network.stream(messages, {
105
105
  output,
106
106
  ...rest,
107
- container
107
+ runtimeContext
108
108
  });
109
109
  const streamResponse = output ? streamResult.toTextStreamResponse() : streamResult.toDataStreamResponse({
110
110
  sendUsage: true,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkQH6XWSXP_cjs = require('./chunk-QH6XWSXP.cjs');
3
+ var chunk5SWCVTNL_cjs = require('./chunk-5SWCVTNL.cjs');
4
4
  var chunkQN4KF3BH_cjs = require('./chunk-QN4KF3BH.cjs');
5
5
  var chunkZLBRQFDD_cjs = require('./chunk-ZLBRQFDD.cjs');
6
6
  var chunkFV45V6WC_cjs = require('./chunk-FV45V6WC.cjs');
@@ -24,8 +24,8 @@ async function getAgentsHandler({ mastra }) {
24
24
  const _tool = tool;
25
25
  acc2[key] = {
26
26
  ..._tool,
27
- inputSchema: _tool.inputSchema ? chunkQH6XWSXP_cjs.stringify(chunkQH6XWSXP_cjs.esm_default(_tool.inputSchema)) : void 0,
28
- outputSchema: _tool.outputSchema ? chunkQH6XWSXP_cjs.stringify(chunkQH6XWSXP_cjs.esm_default(_tool.outputSchema)) : void 0
27
+ inputSchema: _tool.inputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(_tool.inputSchema)) : void 0,
28
+ outputSchema: _tool.outputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(_tool.outputSchema)) : void 0
29
29
  };
30
30
  return acc2;
31
31
  }, {});
@@ -53,8 +53,8 @@ async function getAgentByIdHandler({ mastra, agentId }) {
53
53
  const _tool = tool;
54
54
  acc[key] = {
55
55
  ..._tool,
56
- inputSchema: _tool.inputSchema ? chunkQH6XWSXP_cjs.stringify(chunkQH6XWSXP_cjs.esm_default(_tool.inputSchema)) : void 0,
57
- outputSchema: _tool.outputSchema ? chunkQH6XWSXP_cjs.stringify(chunkQH6XWSXP_cjs.esm_default(_tool.outputSchema)) : void 0
56
+ inputSchema: _tool.inputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(_tool.inputSchema)) : void 0,
57
+ outputSchema: _tool.outputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(_tool.outputSchema)) : void 0
58
58
  };
59
59
  return acc;
60
60
  }, {});
@@ -72,7 +72,7 @@ async function getAgentByIdHandler({ mastra, agentId }) {
72
72
  async function getEvalsByAgentIdHandler({ mastra, agentId }) {
73
73
  try {
74
74
  const agent = mastra.getAgent(agentId);
75
- const evals = await mastra.getStorage()?.__getEvalsByAgentName?.(agent.name, "test") || [];
75
+ const evals = await mastra.getStorage()?.getEvalsByAgentName?.(agent.name, "test") || [];
76
76
  return {
77
77
  id: agentId,
78
78
  name: agent.name,
@@ -86,7 +86,7 @@ async function getEvalsByAgentIdHandler({ mastra, agentId }) {
86
86
  async function getLiveEvalsByAgentIdHandler({ mastra, agentId }) {
87
87
  try {
88
88
  const agent = mastra.getAgent(agentId);
89
- const evals = await mastra.getStorage()?.__getEvalsByAgentName?.(agent.name, "live") || [];
89
+ const evals = await mastra.getStorage()?.getEvalsByAgentName?.(agent.name, "live") || [];
90
90
  return {
91
91
  id: agentId,
92
92
  name: agent.name,
@@ -99,7 +99,7 @@ async function getLiveEvalsByAgentIdHandler({ mastra, agentId }) {
99
99
  }
100
100
  async function generateHandler({
101
101
  mastra,
102
- container,
102
+ runtimeContext,
103
103
  agentId,
104
104
  body
105
105
  }) {
@@ -115,7 +115,7 @@ async function generateHandler({
115
115
  ...rest,
116
116
  // @ts-expect-error TODO fix types
117
117
  resourceId: finalResourceId,
118
- container
118
+ runtimeContext
119
119
  });
120
120
  return result;
121
121
  } catch (error) {
@@ -124,7 +124,7 @@ async function generateHandler({
124
124
  }
125
125
  async function streamGenerateHandler({
126
126
  mastra,
127
- container,
127
+ runtimeContext,
128
128
  agentId,
129
129
  body
130
130
  }) {
@@ -140,7 +140,7 @@ async function streamGenerateHandler({
140
140
  ...rest,
141
141
  // @ts-expect-error TODO fix types
142
142
  resourceId: finalResourceId,
143
- container
143
+ runtimeContext
144
144
  });
145
145
  const streamResponse = rest.output ? streamResult.toTextStreamResponse() : streamResult.toDataStreamResponse({
146
146
  sendUsage: true,