@mastra/core 1.13.0-alpha.0 → 1.13.0

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 (139) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/agent/index.cjs +8 -8
  3. package/dist/agent/index.js +1 -1
  4. package/dist/{chunk-ZS5PC5U5.js → chunk-2GKPFOQH.js} +8 -8
  5. package/dist/{chunk-ZS5PC5U5.js.map → chunk-2GKPFOQH.js.map} +1 -1
  6. package/dist/{chunk-RF7AUUHZ.cjs → chunk-2LYJXRD7.cjs} +7 -7
  7. package/dist/{chunk-RF7AUUHZ.cjs.map → chunk-2LYJXRD7.cjs.map} +1 -1
  8. package/dist/{chunk-TBJAIP6B.js → chunk-2QU52I7Q.js} +4 -4
  9. package/dist/{chunk-TBJAIP6B.js.map → chunk-2QU52I7Q.js.map} +1 -1
  10. package/dist/{chunk-QKBTNVET.js → chunk-3Y6B3RK4.js} +4 -4
  11. package/dist/{chunk-QKBTNVET.js.map → chunk-3Y6B3RK4.js.map} +1 -1
  12. package/dist/{chunk-ELX7FKS6.cjs → chunk-5MG3A5L4.cjs} +6 -6
  13. package/dist/{chunk-ELX7FKS6.cjs.map → chunk-5MG3A5L4.cjs.map} +1 -1
  14. package/dist/{chunk-I6VMOC3Y.cjs → chunk-632KY2FA.cjs} +30 -30
  15. package/dist/{chunk-I6VMOC3Y.cjs.map → chunk-632KY2FA.cjs.map} +1 -1
  16. package/dist/{chunk-T4XSYZME.cjs → chunk-6IM3BPH2.cjs} +7 -7
  17. package/dist/{chunk-T4XSYZME.cjs.map → chunk-6IM3BPH2.cjs.map} +1 -1
  18. package/dist/{chunk-DUJXXOGE.js → chunk-7UM6FE6A.js} +3 -3
  19. package/dist/{chunk-DUJXXOGE.js.map → chunk-7UM6FE6A.js.map} +1 -1
  20. package/dist/{chunk-KOIL5ZZE.cjs → chunk-CSVJ4ROQ.cjs} +5 -5
  21. package/dist/{chunk-KOIL5ZZE.cjs.map → chunk-CSVJ4ROQ.cjs.map} +1 -1
  22. package/dist/{chunk-LNEBCHJZ.cjs → chunk-CYZJ2HT2.cjs} +16 -16
  23. package/dist/{chunk-LNEBCHJZ.cjs.map → chunk-CYZJ2HT2.cjs.map} +1 -1
  24. package/dist/{chunk-7XUAWSN5.cjs → chunk-DH66HVHZ.cjs} +3 -3
  25. package/dist/chunk-DH66HVHZ.cjs.map +1 -0
  26. package/dist/{chunk-RHKJ6WAK.cjs → chunk-DORUEGYO.cjs} +53 -53
  27. package/dist/{chunk-RHKJ6WAK.cjs.map → chunk-DORUEGYO.cjs.map} +1 -1
  28. package/dist/{chunk-ZCIYZUTT.cjs → chunk-E7PW4ZAB.cjs} +3 -3
  29. package/dist/{chunk-ZCIYZUTT.cjs.map → chunk-E7PW4ZAB.cjs.map} +1 -1
  30. package/dist/{chunk-MYDWI26N.js → chunk-ENXNLZOX.js} +3 -3
  31. package/dist/{chunk-MYDWI26N.js.map → chunk-ENXNLZOX.js.map} +1 -1
  32. package/dist/{chunk-F57J45BC.js → chunk-FNVUZ3S2.js} +4 -4
  33. package/dist/{chunk-F57J45BC.js.map → chunk-FNVUZ3S2.js.map} +1 -1
  34. package/dist/{chunk-VLQRMYCU.js → chunk-GAQJFSFI.js} +7 -7
  35. package/dist/{chunk-VLQRMYCU.js.map → chunk-GAQJFSFI.js.map} +1 -1
  36. package/dist/{chunk-O4ID5LLN.cjs → chunk-HACNMOMO.cjs} +24 -24
  37. package/dist/{chunk-O4ID5LLN.cjs.map → chunk-HACNMOMO.cjs.map} +1 -1
  38. package/dist/{chunk-M3YX6I4U.js → chunk-ILVF3GQC.js} +4 -4
  39. package/dist/{chunk-M3YX6I4U.js.map → chunk-ILVF3GQC.js.map} +1 -1
  40. package/dist/{chunk-UWZSAUOC.js → chunk-K3M2OD5N.js} +8 -8
  41. package/dist/{chunk-UWZSAUOC.js.map → chunk-K3M2OD5N.js.map} +1 -1
  42. package/dist/{chunk-OT4YBOYT.cjs → chunk-K7QTTUTL.cjs} +9 -9
  43. package/dist/{chunk-OT4YBOYT.cjs.map → chunk-K7QTTUTL.cjs.map} +1 -1
  44. package/dist/{chunk-AIHI4CR3.cjs → chunk-KB3YS4NC.cjs} +51 -51
  45. package/dist/{chunk-AIHI4CR3.cjs.map → chunk-KB3YS4NC.cjs.map} +1 -1
  46. package/dist/{chunk-7IOPLGJX.js → chunk-KPKJY76F.js} +3 -3
  47. package/dist/{chunk-7IOPLGJX.js.map → chunk-KPKJY76F.js.map} +1 -1
  48. package/dist/{chunk-TULJME43.js → chunk-L66I3YSY.js} +5 -5
  49. package/dist/{chunk-TULJME43.js.map → chunk-L66I3YSY.js.map} +1 -1
  50. package/dist/{chunk-E7EYGTV2.cjs → chunk-MBWVMU2V.cjs} +185 -185
  51. package/dist/{chunk-E7EYGTV2.cjs.map → chunk-MBWVMU2V.cjs.map} +1 -1
  52. package/dist/{chunk-MHEZRQTB.js → chunk-O6EEO6H6.js} +3 -3
  53. package/dist/{chunk-MHEZRQTB.js.map → chunk-O6EEO6H6.js.map} +1 -1
  54. package/dist/{chunk-D3LPAKB6.js → chunk-RHU25VWO.js} +3 -3
  55. package/dist/{chunk-D3LPAKB6.js.map → chunk-RHU25VWO.js.map} +1 -1
  56. package/dist/{chunk-KQXXSDJK.cjs → chunk-SBVDJ5Z7.cjs} +15 -15
  57. package/dist/{chunk-KQXXSDJK.cjs.map → chunk-SBVDJ5Z7.cjs.map} +1 -1
  58. package/dist/{chunk-CLPYWUCZ.cjs → chunk-SHN25XWN.cjs} +9 -9
  59. package/dist/{chunk-CLPYWUCZ.cjs.map → chunk-SHN25XWN.cjs.map} +1 -1
  60. package/dist/{chunk-AV22GHNZ.js → chunk-TRUVWKEY.js} +3 -3
  61. package/dist/chunk-TRUVWKEY.js.map +1 -0
  62. package/dist/{chunk-XEBKZ4YL.js → chunk-VJJGOU4M.js} +4 -4
  63. package/dist/{chunk-XEBKZ4YL.js.map → chunk-VJJGOU4M.js.map} +1 -1
  64. package/dist/{chunk-ED7ICYXC.cjs → chunk-WKKUCOSS.cjs} +5 -5
  65. package/dist/{chunk-ED7ICYXC.cjs.map → chunk-WKKUCOSS.cjs.map} +1 -1
  66. package/dist/{chunk-M6T2TWG3.js → chunk-ZNIHEZDL.js} +3 -3
  67. package/dist/{chunk-M6T2TWG3.js.map → chunk-ZNIHEZDL.js.map} +1 -1
  68. package/dist/datasets/index.cjs +17 -17
  69. package/dist/datasets/index.js +2 -2
  70. package/dist/docs/SKILL.md +1 -1
  71. package/dist/docs/assets/SOURCE_MAP.json +265 -265
  72. package/dist/docs/references/docs-memory-overview.md +3 -3
  73. package/dist/evals/index.cjs +5 -5
  74. package/dist/evals/index.js +2 -2
  75. package/dist/evals/scoreTraces/index.cjs +3 -3
  76. package/dist/evals/scoreTraces/index.js +1 -1
  77. package/dist/harness/index.cjs +17 -17
  78. package/dist/harness/index.js +7 -7
  79. package/dist/index.cjs +2 -2
  80. package/dist/index.js +1 -1
  81. package/dist/integration/index.cjs +2 -2
  82. package/dist/integration/index.js +1 -1
  83. package/dist/llm/index.cjs +16 -16
  84. package/dist/llm/index.js +5 -5
  85. package/dist/loop/index.cjs +14 -14
  86. package/dist/loop/index.js +1 -1
  87. package/dist/mastra/index.cjs +2 -2
  88. package/dist/mastra/index.js +1 -1
  89. package/dist/memory/index.cjs +14 -14
  90. package/dist/memory/index.js +1 -1
  91. package/dist/models-dev-562OPULG.js +3 -0
  92. package/dist/{models-dev-WZV7KXO6.js.map → models-dev-562OPULG.js.map} +1 -1
  93. package/dist/models-dev-6KB3OWD4.cjs +12 -0
  94. package/dist/{models-dev-PF6BNK5U.cjs.map → models-dev-6KB3OWD4.cjs.map} +1 -1
  95. package/dist/netlify-USTLHJSL.cjs +12 -0
  96. package/dist/{netlify-DAYWB6TP.cjs.map → netlify-USTLHJSL.cjs.map} +1 -1
  97. package/dist/netlify-Z5TEPY4B.js +3 -0
  98. package/dist/{netlify-2TIV7DOF.js.map → netlify-Z5TEPY4B.js.map} +1 -1
  99. package/dist/processor-provider/index.cjs +10 -10
  100. package/dist/processor-provider/index.js +1 -1
  101. package/dist/processors/index.cjs +42 -42
  102. package/dist/processors/index.js +1 -1
  103. package/dist/provider-registry-7DIG7MYE.cjs +40 -0
  104. package/dist/{provider-registry-DTJQ3BMU.cjs.map → provider-registry-7DIG7MYE.cjs.map} +1 -1
  105. package/dist/provider-registry-PVY4JPVT.js +3 -0
  106. package/dist/{provider-registry-Z3GQXZ4X.js.map → provider-registry-PVY4JPVT.js.map} +1 -1
  107. package/dist/relevance/index.cjs +3 -3
  108. package/dist/relevance/index.js +1 -1
  109. package/dist/storage/index.cjs +140 -140
  110. package/dist/storage/index.js +1 -1
  111. package/dist/stream/index.cjs +8 -8
  112. package/dist/stream/index.js +1 -1
  113. package/dist/test-utils/llm-mock.cjs +4 -4
  114. package/dist/test-utils/llm-mock.js +1 -1
  115. package/dist/tool-loop-agent/index.cjs +4 -4
  116. package/dist/tool-loop-agent/index.js +1 -1
  117. package/dist/tools/index.cjs +6 -6
  118. package/dist/tools/index.js +1 -1
  119. package/dist/tools/is-vercel-tool.cjs +2 -2
  120. package/dist/tools/is-vercel-tool.js +1 -1
  121. package/dist/utils.cjs +23 -23
  122. package/dist/utils.js +1 -1
  123. package/dist/vector/index.cjs +7 -7
  124. package/dist/vector/index.js +1 -1
  125. package/dist/workflows/evented/index.cjs +10 -10
  126. package/dist/workflows/evented/index.js +1 -1
  127. package/dist/workflows/index.cjs +24 -24
  128. package/dist/workflows/index.js +1 -1
  129. package/dist/workspace/index.cjs +67 -67
  130. package/dist/workspace/index.js +1 -1
  131. package/package.json +10 -10
  132. package/dist/chunk-7XUAWSN5.cjs.map +0 -1
  133. package/dist/chunk-AV22GHNZ.js.map +0 -1
  134. package/dist/models-dev-PF6BNK5U.cjs +0 -12
  135. package/dist/models-dev-WZV7KXO6.js +0 -3
  136. package/dist/netlify-2TIV7DOF.js +0 -3
  137. package/dist/netlify-DAYWB6TP.cjs +0 -12
  138. package/dist/provider-registry-DTJQ3BMU.cjs +0 -40
  139. package/dist/provider-registry-Z3GQXZ4X.js +0 -3
@@ -2,20 +2,20 @@
2
2
 
3
3
  var chunkB67DPK7Q_cjs = require('./chunk-B67DPK7Q.cjs');
4
4
  var chunkZCBG4ZQT_cjs = require('./chunk-ZCBG4ZQT.cjs');
5
- var chunkO4ID5LLN_cjs = require('./chunk-O4ID5LLN.cjs');
6
- var chunkCLPYWUCZ_cjs = require('./chunk-CLPYWUCZ.cjs');
5
+ var chunkHACNMOMO_cjs = require('./chunk-HACNMOMO.cjs');
6
+ var chunkSHN25XWN_cjs = require('./chunk-SHN25XWN.cjs');
7
7
  var chunkCLKMJINC_cjs = require('./chunk-CLKMJINC.cjs');
8
8
  var chunkFXGVRQSG_cjs = require('./chunk-FXGVRQSG.cjs');
9
9
  var chunkSPDQUG6O_cjs = require('./chunk-SPDQUG6O.cjs');
10
10
  var chunkMR7ZWBL6_cjs = require('./chunk-MR7ZWBL6.cjs');
11
- var chunkI6VMOC3Y_cjs = require('./chunk-I6VMOC3Y.cjs');
12
- var chunkT4XSYZME_cjs = require('./chunk-T4XSYZME.cjs');
11
+ var chunk632KY2FA_cjs = require('./chunk-632KY2FA.cjs');
12
+ var chunk6IM3BPH2_cjs = require('./chunk-6IM3BPH2.cjs');
13
13
  var chunk6BJ7XHRH_cjs = require('./chunk-6BJ7XHRH.cjs');
14
14
  var chunkOQDRPRKM_cjs = require('./chunk-OQDRPRKM.cjs');
15
- var chunkLNEBCHJZ_cjs = require('./chunk-LNEBCHJZ.cjs');
15
+ var chunkCYZJ2HT2_cjs = require('./chunk-CYZJ2HT2.cjs');
16
16
  var chunkW26XAFT3_cjs = require('./chunk-W26XAFT3.cjs');
17
17
  var chunkKJBMTK5B_cjs = require('./chunk-KJBMTK5B.cjs');
18
- var chunkZCIYZUTT_cjs = require('./chunk-ZCIYZUTT.cjs');
18
+ var chunkE7PW4ZAB_cjs = require('./chunk-E7PW4ZAB.cjs');
19
19
  var chunkVWJ7H3MJ_cjs = require('./chunk-VWJ7H3MJ.cjs');
20
20
  var chunk5WBEMKE2_cjs = require('./chunk-5WBEMKE2.cjs');
21
21
  var chunk4U7ZLI36_cjs = require('./chunk-4U7ZLI36.cjs');
@@ -2079,7 +2079,7 @@ var ProcessorRunner = class _ProcessorRunner {
2079
2079
  }
2080
2080
  const { model: _model, ...rest } = result;
2081
2081
  if (result.model) {
2082
- const resolvedModel = await chunkI6VMOC3Y_cjs.resolveModelConfig(result.model);
2082
+ const resolvedModel = await chunk632KY2FA_cjs.resolveModelConfig(result.model);
2083
2083
  const isSupported = isSupportedLanguageModel(resolvedModel);
2084
2084
  if (!isSupported) {
2085
2085
  throw new chunk4U7ZLI36_cjs.MastraError({
@@ -5497,7 +5497,7 @@ var createTimeTravelExecutionParams = (params) => {
5497
5497
  result = void 0;
5498
5498
  }
5499
5499
  if (result) {
5500
- const formattedResult = chunkLNEBCHJZ_cjs.removeUndefinedValues(result);
5500
+ const formattedResult = chunkCYZJ2HT2_cjs.removeUndefinedValues(result);
5501
5501
  stepResults[stepId] = formattedResult;
5502
5502
  }
5503
5503
  });
@@ -6055,7 +6055,7 @@ async function executeLoop(engine, params) {
6055
6055
  options: {
6056
6056
  type: "workflow_conditional_eval" /* WORKFLOW_CONDITIONAL_EVAL */,
6057
6057
  name: `condition: '${entry.loopType}'`,
6058
- input: chunkLNEBCHJZ_cjs.selectFields(result.output, ["stepResult", "output.text", "output.object", "messages"]),
6058
+ input: chunkCYZJ2HT2_cjs.selectFields(result.output, ["stepResult", "output.text", "output.object", "messages"]),
6059
6059
  attributes: {
6060
6060
  conditionIndex: iteration
6061
6061
  },
@@ -8321,10 +8321,10 @@ function isAgent(input) {
8321
8321
  return input instanceof Agent;
8322
8322
  }
8323
8323
  function isToolStep(input) {
8324
- return input instanceof chunkZCIYZUTT_cjs.Tool;
8324
+ return input instanceof chunkE7PW4ZAB_cjs.Tool;
8325
8325
  }
8326
8326
  function isStepParams(input) {
8327
- return input !== null && typeof input === "object" && "id" in input && "execute" in input && !(input instanceof Agent) && !(input instanceof chunkZCIYZUTT_cjs.Tool);
8327
+ return input !== null && typeof input === "object" && "id" in input && "execute" in input && !(input instanceof Agent) && !(input instanceof chunkE7PW4ZAB_cjs.Tool);
8328
8328
  }
8329
8329
  function createStep(params, agentOrToolOptions) {
8330
8330
  if (isAgent(params)) {
@@ -9054,7 +9054,7 @@ function cloneStep(step, opts) {
9054
9054
  };
9055
9055
  }
9056
9056
  function isProcessor(obj) {
9057
- return obj !== null && typeof obj === "object" && "id" in obj && typeof obj.id === "string" && !(obj instanceof Agent) && !(obj instanceof chunkZCIYZUTT_cjs.Tool) && (typeof obj.processInput === "function" || typeof obj.processInputStep === "function" || typeof obj.processOutputStream === "function" || typeof obj.processOutputResult === "function" || typeof obj.processOutputStep === "function");
9057
+ return obj !== null && typeof obj === "object" && "id" in obj && typeof obj.id === "string" && !(obj instanceof Agent) && !(obj instanceof chunkE7PW4ZAB_cjs.Tool) && (typeof obj.processInput === "function" || typeof obj.processInputStep === "function" || typeof obj.processOutputStream === "function" || typeof obj.processOutputResult === "function" || typeof obj.processOutputStep === "function");
9058
9058
  }
9059
9059
  function createWorkflow(params) {
9060
9060
  return new Workflow(params);
@@ -11344,7 +11344,7 @@ var MastraScorer = class _MastraScorer {
11344
11344
  }
11345
11345
  });
11346
11346
  }
11347
- const resolvedModel = await chunkI6VMOC3Y_cjs.resolveModelConfig(modelConfig, void 0, this.#mastra);
11347
+ const resolvedModel = await chunk632KY2FA_cjs.resolveModelConfig(modelConfig, void 0, this.#mastra);
11348
11348
  const judge = new Agent({
11349
11349
  id: "judge",
11350
11350
  name: "judge",
@@ -12732,8 +12732,8 @@ function createLLMExecutionStep({
12732
12732
  if (processInputStepResult.tools && currentStep.tools) {
12733
12733
  const convertedTools = {};
12734
12734
  for (const [name, tool2] of Object.entries(currentStep.tools)) {
12735
- if (chunkZCIYZUTT_cjs.isMastraTool(tool2)) {
12736
- convertedTools[name] = chunkLNEBCHJZ_cjs.makeCoreTool(
12735
+ if (chunkE7PW4ZAB_cjs.isMastraTool(tool2)) {
12736
+ convertedTools[name] = chunkCYZJ2HT2_cjs.makeCoreTool(
12737
12737
  tool2,
12738
12738
  {
12739
12739
  name,
@@ -12940,7 +12940,7 @@ Analyse the suspended tools: ${JSON.stringify(suspendedTools)}, using the messag
12940
12940
  }
12941
12941
  });
12942
12942
  let transportResolver;
12943
- if (currentStep.model instanceof chunkI6VMOC3Y_cjs.ModelRouterLanguageModel) {
12943
+ if (currentStep.model instanceof chunk632KY2FA_cjs.ModelRouterLanguageModel) {
12944
12944
  const routerModel = currentStep.model;
12945
12945
  transportResolver = () => routerModel._getStreamTransport();
12946
12946
  }
@@ -14808,7 +14808,7 @@ var MastraLLMVNext = class extends chunkRO47SMI7_cjs.MastraBase {
14808
14808
  const remainingTokens = parseInt(props?.response?.headers?.["x-ratelimit-remaining-tokens"] ?? "", 10);
14809
14809
  if (!isNaN(remainingTokens) && remainingTokens > 0 && remainingTokens < 2e3) {
14810
14810
  this.logger.warn("Rate limit approaching, waiting 10 seconds", { runId });
14811
- await chunkLNEBCHJZ_cjs.delay(10 * 1e3);
14811
+ await chunkCYZJ2HT2_cjs.delay(10 * 1e3);
14812
14812
  }
14813
14813
  },
14814
14814
  onFinish: async (props) => {
@@ -19076,7 +19076,7 @@ var Agent = class extends chunkRO47SMI7_cjs.MastraBase {
19076
19076
  * Throws an error if validation fails.
19077
19077
  */
19078
19078
  async #validateRequestContext(requestContext) {
19079
- if (this.#requestContextSchema && chunkLNEBCHJZ_cjs.isZodType(this.#requestContextSchema)) {
19079
+ if (this.#requestContextSchema && chunkCYZJ2HT2_cjs.isZodType(this.#requestContextSchema)) {
19080
19080
  const contextValues = requestContext?.all ?? {};
19081
19081
  const validatedRequestContext = await this.#requestContextSchema.safeParseAsync(contextValues);
19082
19082
  if (!validatedRequestContext.success) {
@@ -19808,7 +19808,7 @@ ${errorMessages}`,
19808
19808
  */
19809
19809
  listTools({ requestContext = new chunk5WBEMKE2_cjs.RequestContext() } = {}) {
19810
19810
  if (typeof this.#tools !== "function") {
19811
- return chunkLNEBCHJZ_cjs.ensureToolProperties(this.#tools);
19811
+ return chunkCYZJ2HT2_cjs.ensureToolProperties(this.#tools);
19812
19812
  }
19813
19813
  const result = this.#tools({
19814
19814
  requestContext,
@@ -19829,7 +19829,7 @@ ${errorMessages}`,
19829
19829
  this.logger.error(mastraError.toString());
19830
19830
  throw mastraError;
19831
19831
  }
19832
- return chunkLNEBCHJZ_cjs.ensureToolProperties(tools);
19832
+ return chunkCYZJ2HT2_cjs.ensureToolProperties(tools);
19833
19833
  });
19834
19834
  }
19835
19835
  /**
@@ -19875,7 +19875,7 @@ ${errorMessages}`,
19875
19875
  });
19876
19876
  });
19877
19877
  } else {
19878
- llm = new chunkT4XSYZME_cjs.MastraLLMV1({
19878
+ llm = new chunk6IM3BPH2_cjs.MastraLLMV1({
19879
19879
  model: modelInfo,
19880
19880
  mastra: this.#mastra,
19881
19881
  options: { tracingPolicy: this.#options?.tracingPolicy }
@@ -19901,7 +19901,7 @@ ${errorMessages}`,
19901
19901
  */
19902
19902
  async resolveModelConfig(modelConfig, requestContext) {
19903
19903
  try {
19904
- return await chunkI6VMOC3Y_cjs.resolveModelConfig(modelConfig, requestContext, this.#mastra);
19904
+ return await chunk632KY2FA_cjs.resolveModelConfig(modelConfig, requestContext, this.#mastra);
19905
19905
  } catch (error) {
19906
19906
  const mastraError = new chunk4U7ZLI36_cjs.MastraError({
19907
19907
  id: "AGENT_GET_MODEL_MISSING_MODEL_INSTANCE",
@@ -20386,7 +20386,7 @@ ${errorMessages}`,
20386
20386
  tracingPolicy: this.#options?.tracingPolicy,
20387
20387
  requireApproval: toolObj.requireApproval
20388
20388
  };
20389
- const convertedToCoreTool = chunkLNEBCHJZ_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
20389
+ const convertedToCoreTool = chunkCYZJ2HT2_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
20390
20390
  convertedMemoryTools[toolName] = convertedToCoreTool;
20391
20391
  }
20392
20392
  }
@@ -20415,7 +20415,7 @@ ${errorMessages}`,
20415
20415
  if (!workspace) {
20416
20416
  return convertedWorkspaceTools;
20417
20417
  }
20418
- const workspaceTools = chunkO4ID5LLN_cjs.createWorkspaceTools(workspace);
20418
+ const workspaceTools = chunkHACNMOMO_cjs.createWorkspaceTools(workspace);
20419
20419
  if (Object.keys(workspaceTools).length > 0) {
20420
20420
  this.logger.debug(`[Agent:${this.name}] - Adding workspace tools: ${Object.keys(workspaceTools).join(", ")}`, {
20421
20421
  runId
@@ -20437,7 +20437,7 @@ ${errorMessages}`,
20437
20437
  requireApproval: toolObj.requireApproval,
20438
20438
  workspace
20439
20439
  };
20440
- const convertedToCoreTool = chunkLNEBCHJZ_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
20440
+ const convertedToCoreTool = chunkCYZJ2HT2_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
20441
20441
  convertedWorkspaceTools[toolName] = convertedToCoreTool;
20442
20442
  }
20443
20443
  }
@@ -20468,7 +20468,7 @@ ${errorMessages}`,
20468
20468
  if (!workspace?.skills) {
20469
20469
  return convertedSkillTools;
20470
20470
  }
20471
- const skillTools = chunkO4ID5LLN_cjs.createSkillTools(workspace.skills);
20471
+ const skillTools = chunkHACNMOMO_cjs.createSkillTools(workspace.skills);
20472
20472
  if (Object.keys(skillTools).length > 0) {
20473
20473
  this.logger.debug(`[Agent:${this.name}] - Adding skill tools: ${Object.keys(skillTools).join(", ")}`, {
20474
20474
  runId
@@ -20491,7 +20491,7 @@ ${errorMessages}`,
20491
20491
  // Skill tools never require approval
20492
20492
  workspace
20493
20493
  };
20494
- const convertedToCoreTool = chunkLNEBCHJZ_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
20494
+ const convertedToCoreTool = chunkCYZJ2HT2_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
20495
20495
  convertedSkillTools[toolName] = convertedToCoreTool;
20496
20496
  }
20497
20497
  }
@@ -20707,7 +20707,7 @@ ${errorMessages}`,
20707
20707
  tracingPolicy: this.#options?.tracingPolicy,
20708
20708
  requireApproval: tool2.requireApproval
20709
20709
  };
20710
- return [k, chunkLNEBCHJZ_cjs.makeCoreTool(tool2, options, void 0, autoResumeSuspendedTools)];
20710
+ return [k, chunkCYZJ2HT2_cjs.makeCoreTool(tool2, options, void 0, autoResumeSuspendedTools)];
20711
20711
  })
20712
20712
  );
20713
20713
  const assignedToolEntriesConverted = Object.fromEntries(
@@ -20758,7 +20758,7 @@ ${errorMessages}`,
20758
20758
  tracingPolicy: this.#options?.tracingPolicy,
20759
20759
  requireApproval: toolObj.requireApproval
20760
20760
  };
20761
- const convertedToCoreTool = chunkLNEBCHJZ_cjs.makeCoreTool(toolObj, options, "toolset", autoResumeSuspendedTools);
20761
+ const convertedToCoreTool = chunkCYZJ2HT2_cjs.makeCoreTool(toolObj, options, "toolset", autoResumeSuspendedTools);
20762
20762
  toolsForRequest[toolName] = convertedToCoreTool;
20763
20763
  }
20764
20764
  }
@@ -20804,7 +20804,7 @@ ${errorMessages}`,
20804
20804
  tracingPolicy: this.#options?.tracingPolicy,
20805
20805
  requireApproval: tool2.requireApproval
20806
20806
  };
20807
- const convertedToCoreTool = chunkLNEBCHJZ_cjs.makeCoreTool(toolRest, options, "client-tool", autoResumeSuspendedTools);
20807
+ const convertedToCoreTool = chunkCYZJ2HT2_cjs.makeCoreTool(toolRest, options, "client-tool", autoResumeSuspendedTools);
20808
20808
  toolsForRequest[toolName] = convertedToCoreTool;
20809
20809
  }
20810
20810
  }
@@ -20888,7 +20888,7 @@ ${errorMessages}`,
20888
20888
  ).describe("The results from the agent's tool calls").optional()
20889
20889
  });
20890
20890
  const modelVersion = (await agent.getModel({ requestContext })).specificationVersion;
20891
- const toolObj = chunkZCIYZUTT_cjs.createTool({
20891
+ const toolObj = chunkE7PW4ZAB_cjs.createTool({
20892
20892
  id: `agent-${agentName}`,
20893
20893
  description: agent.getDescription() || `Agent: ${agentName}`,
20894
20894
  inputSchema: agentInputSchema,
@@ -21464,7 +21464,7 @@ ${effectiveInstructions}`;
21464
21464
  ...observabilityContext,
21465
21465
  tracingPolicy: this.#options?.tracingPolicy
21466
21466
  };
21467
- convertedAgentTools[`agent-${agentName}`] = chunkLNEBCHJZ_cjs.makeCoreTool(
21467
+ convertedAgentTools[`agent-${agentName}`] = chunkCYZJ2HT2_cjs.makeCoreTool(
21468
21468
  toolObj,
21469
21469
  options,
21470
21470
  void 0,
@@ -21529,7 +21529,7 @@ ${effectiveInstructions}`;
21529
21529
  }
21530
21530
  ]
21531
21531
  };
21532
- const toolObj = chunkZCIYZUTT_cjs.createTool({
21532
+ const toolObj = chunkE7PW4ZAB_cjs.createTool({
21533
21533
  id: `workflow-${workflowName}`,
21534
21534
  description: workflow.description || `Workflow: ${workflowName}`,
21535
21535
  inputSchema: extendedInputSchema,
@@ -21680,7 +21680,7 @@ ${effectiveInstructions}`;
21680
21680
  ...observabilityContext,
21681
21681
  tracingPolicy: this.#options?.tracingPolicy
21682
21682
  };
21683
- convertedWorkflowTools[`workflow-${workflowName}`] = chunkLNEBCHJZ_cjs.makeCoreTool(
21683
+ convertedWorkflowTools[`workflow-${workflowName}`] = chunkCYZJ2HT2_cjs.makeCoreTool(
21684
21684
  toolObj,
21685
21685
  options,
21686
21686
  void 0,
@@ -21712,7 +21712,7 @@ ${effectiveInstructions}`;
21712
21712
  let mastraProxy = void 0;
21713
21713
  const logger = this.logger;
21714
21714
  if (this.#mastra) {
21715
- mastraProxy = chunkLNEBCHJZ_cjs.createMastraProxy({ mastra: this.#mastra, logger });
21715
+ mastraProxy = chunkCYZJ2HT2_cjs.createMastraProxy({ mastra: this.#mastra, logger });
21716
21716
  }
21717
21717
  const assignedTools = await this.listAssignedTools({
21718
21718
  runId,
@@ -21964,7 +21964,7 @@ ${effectiveInstructions}`;
21964
21964
  const resolvedModel = await this.resolveModelConfig(selection, requestContext);
21965
21965
  this.assertSupportsPreparedModels(resolvedModel);
21966
21966
  let headers;
21967
- if (resolvedModel instanceof chunkI6VMOC3Y_cjs.ModelRouterLanguageModel) {
21967
+ if (resolvedModel instanceof chunk632KY2FA_cjs.ModelRouterLanguageModel) {
21968
21968
  headers = resolvedModel.config?.headers;
21969
21969
  }
21970
21970
  return [
@@ -21997,7 +21997,7 @@ ${effectiveInstructions}`;
21997
21997
  throw mastraError;
21998
21998
  }
21999
21999
  let headers;
22000
- if (model instanceof chunkI6VMOC3Y_cjs.ModelRouterLanguageModel) {
22000
+ if (model instanceof chunk632KY2FA_cjs.ModelRouterLanguageModel) {
22001
22001
  headers = model.config?.headers;
22002
22002
  }
22003
22003
  return {
@@ -22448,7 +22448,7 @@ ${effectiveInstructions}`;
22448
22448
  const defaultOptions = await this.getDefaultOptions({
22449
22449
  requestContext: options?.requestContext
22450
22450
  });
22451
- const mergedOptions = chunkLNEBCHJZ_cjs.deepMerge(
22451
+ const mergedOptions = chunkCYZJ2HT2_cjs.deepMerge(
22452
22452
  defaultOptions,
22453
22453
  options ?? {}
22454
22454
  );
@@ -22518,7 +22518,7 @@ ${effectiveInstructions}`;
22518
22518
  const defaultOptions = await this.getDefaultOptions({
22519
22519
  requestContext: streamOptions?.requestContext
22520
22520
  });
22521
- const mergedOptions = chunkLNEBCHJZ_cjs.deepMerge(
22521
+ const mergedOptions = chunkCYZJ2HT2_cjs.deepMerge(
22522
22522
  defaultOptions,
22523
22523
  streamOptions ?? {}
22524
22524
  );
@@ -22582,7 +22582,7 @@ ${effectiveInstructions}`;
22582
22582
  const defaultOptions = await this.getDefaultOptions({
22583
22583
  requestContext: streamOptions?.requestContext
22584
22584
  });
22585
- let mergedStreamOptions = chunkLNEBCHJZ_cjs.deepMerge(
22585
+ let mergedStreamOptions = chunkCYZJ2HT2_cjs.deepMerge(
22586
22586
  defaultOptions,
22587
22587
  streamOptions ?? {}
22588
22588
  );
@@ -22647,7 +22647,7 @@ ${effectiveInstructions}`;
22647
22647
  const defaultOptions = await this.getDefaultOptions({
22648
22648
  requestContext: options?.requestContext
22649
22649
  });
22650
- const mergedOptions = chunkLNEBCHJZ_cjs.deepMerge(
22650
+ const mergedOptions = chunkCYZJ2HT2_cjs.deepMerge(
22651
22651
  defaultOptions,
22652
22652
  options ?? {}
22653
22653
  );
@@ -24221,7 +24221,7 @@ var TokenLimiterProcessor = class _TokenLimiterProcessor {
24221
24221
  return new TiktokenClass(this.customEncoding);
24222
24222
  });
24223
24223
  } else {
24224
- this.encoderPromise = chunkO4ID5LLN_cjs.getTiktoken();
24224
+ this.encoderPromise = chunkHACNMOMO_cjs.getTiktoken();
24225
24225
  }
24226
24226
  }
24227
24227
  return this.encoderPromise;
@@ -24906,7 +24906,7 @@ var ToolSearchProcessor = class {
24906
24906
  minScore: options.search?.minScore ?? 0
24907
24907
  };
24908
24908
  this.ttl = options.ttl ?? 36e5;
24909
- this.bm25Index = new chunkO4ID5LLN_cjs.BM25Index({}, TOOL_SEARCH_TOKENIZE_OPTIONS);
24909
+ this.bm25Index = new chunkHACNMOMO_cjs.BM25Index({}, TOOL_SEARCH_TOKENIZE_OPTIONS);
24910
24910
  this.indexTools();
24911
24911
  if (this.ttl > 0) {
24912
24912
  this.scheduleCleanup();
@@ -25071,7 +25071,7 @@ var ToolSearchProcessor = class {
25071
25071
  messageList.addSystem(
25072
25072
  "To discover available tools, call search_tools with a keyword query. To add a tool to the conversation, call load_tool with the tool name. Tools must be loaded before they can be used."
25073
25073
  );
25074
- const searchTool = chunkZCIYZUTT_cjs.createTool({
25074
+ const searchTool = chunkE7PW4ZAB_cjs.createTool({
25075
25075
  id: "search_tools",
25076
25076
  description: "Search for available tools by keyword. Use this when you need a capability you don't currently have. Returns a list of matching tools with their names and descriptions. After finding a useful tool, use load_tool to make it available.",
25077
25077
  inputSchema: z9.z.object({
@@ -25101,7 +25101,7 @@ var ToolSearchProcessor = class {
25101
25101
  };
25102
25102
  }
25103
25103
  });
25104
- const loadTool = chunkZCIYZUTT_cjs.createTool({
25104
+ const loadTool = chunkE7PW4ZAB_cjs.createTool({
25105
25105
  id: "load_tool",
25106
25106
  description: "Load a specific tool into your context. Call this after finding a tool with search_tools. Once loaded, the tool will be available for use. Args: toolName - The exact name of the tool to load (from search results).",
25107
25107
  inputSchema: z9.z.object({
@@ -25449,7 +25449,7 @@ var WorkingMemory = class {
25449
25449
  }
25450
25450
  return empty;
25451
25451
  }
25452
- return chunkLNEBCHJZ_cjs.generateEmptyFromSchema(schema);
25452
+ return chunkCYZJ2HT2_cjs.generateEmptyFromSchema(schema);
25453
25453
  } catch {
25454
25454
  return null;
25455
25455
  }
@@ -26096,7 +26096,7 @@ https://mastra.ai/en/docs/memory/semantic-recall`
26096
26096
  );
26097
26097
  }
26098
26098
  if (typeof config.embedder === "string") {
26099
- this.embedder = new chunkI6VMOC3Y_cjs.ModelRouterEmbeddingModel(config.embedder);
26099
+ this.embedder = new chunk632KY2FA_cjs.ModelRouterEmbeddingModel(config.embedder);
26100
26100
  } else {
26101
26101
  this.embedder = config.embedder;
26102
26102
  }
@@ -26135,7 +26135,7 @@ https://mastra.ai/en/docs/memory/overview`
26135
26135
  }
26136
26136
  setEmbedder(embedder, embedderOptions) {
26137
26137
  if (typeof embedder === "string") {
26138
- this.embedder = new chunkI6VMOC3Y_cjs.ModelRouterEmbeddingModel(embedder);
26138
+ this.embedder = new chunk632KY2FA_cjs.ModelRouterEmbeddingModel(embedder);
26139
26139
  } else {
26140
26140
  this.embedder = embedder;
26141
26141
  }
@@ -26232,7 +26232,7 @@ https://mastra.ai/en/docs/memory/overview`
26232
26232
  "The threads.generateTitle option has been moved. Use the top-level generateTitle option instead."
26233
26233
  );
26234
26234
  }
26235
- const mergedConfig = chunkLNEBCHJZ_cjs.deepMerge(this.threadConfig, config || {});
26235
+ const mergedConfig = chunkCYZJ2HT2_cjs.deepMerge(this.threadConfig, config || {});
26236
26236
  if (typeof config?.workingMemory === "object" && config.workingMemory?.schema && typeof mergedConfig.workingMemory === "object") {
26237
26237
  mergedConfig.workingMemory.schema = config.workingMemory.schema;
26238
26238
  }
@@ -26582,7 +26582,7 @@ var MockMemory = class extends MastraMemory {
26582
26582
  } = {}) {
26583
26583
  super({
26584
26584
  name: "mock",
26585
- storage: storage || new chunkCLPYWUCZ_cjs.InMemoryStore(),
26585
+ storage: storage || new chunkSHN25XWN_cjs.InMemoryStore(),
26586
26586
  options: {
26587
26587
  workingMemory: enableWorkingMemory ? { enabled: true, template: workingMemoryTemplate } : void 0,
26588
26588
  lastMessages: enableMessageHistory ? 10 : void 0
@@ -26662,7 +26662,7 @@ var MockMemory = class extends MastraMemory {
26662
26662
  return {};
26663
26663
  }
26664
26664
  return {
26665
- updateWorkingMemory: chunkZCIYZUTT_cjs.createTool({
26665
+ updateWorkingMemory: chunkE7PW4ZAB_cjs.createTool({
26666
26666
  id: "update-working-memory",
26667
26667
  description: `Update the working memory with new information. Any data not included will be overwritten.`,
26668
26668
  inputSchema: z9__default.default.object({ memory: z9__default.default.string() }),
@@ -26890,5 +26890,5 @@ exports.validateStepRequestContext = validateStepRequestContext;
26890
26890
  exports.validateStepResumeData = validateStepResumeData;
26891
26891
  exports.validateStepStateData = validateStepStateData;
26892
26892
  exports.validateStepSuspendData = validateStepSuspendData;
26893
- //# sourceMappingURL=chunk-RHKJ6WAK.cjs.map
26894
- //# sourceMappingURL=chunk-RHKJ6WAK.cjs.map
26893
+ //# sourceMappingURL=chunk-DORUEGYO.cjs.map
26894
+ //# sourceMappingURL=chunk-DORUEGYO.cjs.map