@mastra/core 1.23.0-alpha.2 → 1.23.0-alpha.3

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 (158) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/agent/index.cjs +13 -13
  3. package/dist/agent/index.js +2 -2
  4. package/dist/agent/message-list/adapters/AIV5Adapter.d.ts.map +1 -1
  5. package/dist/agent/message-list/index.cjs +18 -18
  6. package/dist/agent/message-list/index.js +1 -1
  7. package/dist/browser/index.cjs +2 -2
  8. package/dist/browser/index.js +1 -1
  9. package/dist/channels/index.cjs +4 -4
  10. package/dist/channels/index.js +1 -1
  11. package/dist/{chunk-FGMFB2X5.js → chunk-2B5UMCYJ.js} +4 -4
  12. package/dist/{chunk-FGMFB2X5.js.map → chunk-2B5UMCYJ.js.map} +1 -1
  13. package/dist/{chunk-ALMJLYZX.cjs → chunk-4XGWICCA.cjs} +73 -73
  14. package/dist/{chunk-ALMJLYZX.cjs.map → chunk-4XGWICCA.cjs.map} +1 -1
  15. package/dist/{chunk-YJF6IVFK.cjs → chunk-4YLTW7WQ.cjs} +3 -3
  16. package/dist/{chunk-YJF6IVFK.cjs.map → chunk-4YLTW7WQ.cjs.map} +1 -1
  17. package/dist/{chunk-TGN66Y5K.cjs → chunk-7FAUTKNJ.cjs} +32 -23
  18. package/dist/chunk-7FAUTKNJ.cjs.map +1 -0
  19. package/dist/{chunk-XDL2JJB7.cjs → chunk-7QRTQJN3.cjs} +40 -36
  20. package/dist/chunk-7QRTQJN3.cjs.map +1 -0
  21. package/dist/{chunk-DSEZHQGM.js → chunk-CW4IJO7Y.js} +3 -3
  22. package/dist/{chunk-DSEZHQGM.js.map → chunk-CW4IJO7Y.js.map} +1 -1
  23. package/dist/{chunk-HGR2ESKV.js → chunk-DRKIN7BQ.js} +4 -2
  24. package/dist/chunk-DRKIN7BQ.js.map +1 -0
  25. package/dist/{chunk-7F42JBBV.cjs → chunk-EVEDMEV4.cjs} +17 -17
  26. package/dist/{chunk-7F42JBBV.cjs.map → chunk-EVEDMEV4.cjs.map} +1 -1
  27. package/dist/{chunk-ABQYDFUT.cjs → chunk-FLAZ5DGJ.cjs} +84 -84
  28. package/dist/{chunk-ABQYDFUT.cjs.map → chunk-FLAZ5DGJ.cjs.map} +1 -1
  29. package/dist/{chunk-36LLU2AT.cjs → chunk-GVBTQM5Z.cjs} +7 -7
  30. package/dist/{chunk-36LLU2AT.cjs.map → chunk-GVBTQM5Z.cjs.map} +1 -1
  31. package/dist/{chunk-WGSJXWWA.js → chunk-H2RJTQHF.js} +3 -3
  32. package/dist/{chunk-WGSJXWWA.js.map → chunk-H2RJTQHF.js.map} +1 -1
  33. package/dist/{chunk-F34VD7VO.js → chunk-HERBNLM3.js} +9 -9
  34. package/dist/{chunk-F34VD7VO.js.map → chunk-HERBNLM3.js.map} +1 -1
  35. package/dist/{chunk-RNO432IS.cjs → chunk-INA5PMVU.cjs} +7 -7
  36. package/dist/{chunk-RNO432IS.cjs.map → chunk-INA5PMVU.cjs.map} +1 -1
  37. package/dist/{chunk-2TDUGEDT.js → chunk-LNXWTBOF.js} +3 -3
  38. package/dist/{chunk-2TDUGEDT.js.map → chunk-LNXWTBOF.js.map} +1 -1
  39. package/dist/{chunk-HBIMPAQL.cjs → chunk-MIYQSZ2W.cjs} +56 -56
  40. package/dist/{chunk-HBIMPAQL.cjs.map → chunk-MIYQSZ2W.cjs.map} +1 -1
  41. package/dist/{chunk-N5AAEXN5.js → chunk-MMI2SBWC.js} +28 -24
  42. package/dist/chunk-MMI2SBWC.js.map +1 -0
  43. package/dist/{chunk-UZOHTV72.cjs → chunk-MVPHDFFW.cjs} +9 -9
  44. package/dist/{chunk-UZOHTV72.cjs.map → chunk-MVPHDFFW.cjs.map} +1 -1
  45. package/dist/{chunk-GVK32BFO.js → chunk-NFVSULGO.js} +17 -8
  46. package/dist/chunk-NFVSULGO.js.map +1 -0
  47. package/dist/{chunk-EFIOOAHK.js → chunk-P3DDJKTX.js} +4 -4
  48. package/dist/{chunk-EFIOOAHK.js.map → chunk-P3DDJKTX.js.map} +1 -1
  49. package/dist/{chunk-Q4TITKZD.js → chunk-PCBG2WLA.js} +6 -6
  50. package/dist/{chunk-Q4TITKZD.js.map → chunk-PCBG2WLA.js.map} +1 -1
  51. package/dist/{chunk-H27OFJUB.cjs → chunk-R3SEHW7P.cjs} +185 -185
  52. package/dist/{chunk-H27OFJUB.cjs.map → chunk-R3SEHW7P.cjs.map} +1 -1
  53. package/dist/{chunk-KKZ624PJ.js → chunk-UPJU3KI2.js} +9 -9
  54. package/dist/{chunk-KKZ624PJ.js.map → chunk-UPJU3KI2.js.map} +1 -1
  55. package/dist/{chunk-XHY3HI4A.js → chunk-VO2YW23O.js} +7 -7
  56. package/dist/{chunk-XHY3HI4A.js.map → chunk-VO2YW23O.js.map} +1 -1
  57. package/dist/{chunk-HF4LXXL5.cjs → chunk-W232X652.cjs} +3 -3
  58. package/dist/{chunk-HF4LXXL5.cjs.map → chunk-W232X652.cjs.map} +1 -1
  59. package/dist/{chunk-XB5NKHYR.cjs → chunk-WAPY5X7M.cjs} +4 -2
  60. package/dist/chunk-WAPY5X7M.cjs.map +1 -0
  61. package/dist/{chunk-4G57YHET.js → chunk-WERYKYLS.js} +3 -3
  62. package/dist/{chunk-4G57YHET.js.map → chunk-WERYKYLS.js.map} +1 -1
  63. package/dist/{chunk-LRXYVNO2.js → chunk-X22EW7TQ.js} +3 -3
  64. package/dist/{chunk-LRXYVNO2.js.map → chunk-X22EW7TQ.js.map} +1 -1
  65. package/dist/{chunk-TLE44DVR.cjs → chunk-XDU43X6D.cjs} +3 -3
  66. package/dist/{chunk-TLE44DVR.cjs.map → chunk-XDU43X6D.cjs.map} +1 -1
  67. package/dist/{chunk-KQP3MHIA.js → chunk-XJLVFBPN.js} +4 -4
  68. package/dist/{chunk-KQP3MHIA.js.map → chunk-XJLVFBPN.js.map} +1 -1
  69. package/dist/{chunk-CSP3QF4S.cjs → chunk-Y7AFTO4R.cjs} +10 -10
  70. package/dist/{chunk-CSP3QF4S.cjs.map → chunk-Y7AFTO4R.cjs.map} +1 -1
  71. package/dist/{chunk-65AKRSZH.cjs → chunk-YSNLPDAH.cjs} +6 -6
  72. package/dist/{chunk-65AKRSZH.cjs.map → chunk-YSNLPDAH.cjs.map} +1 -1
  73. package/dist/{chunk-ECMHIMEZ.js → chunk-ZBLHRCIL.js} +4 -4
  74. package/dist/{chunk-ECMHIMEZ.js.map → chunk-ZBLHRCIL.js.map} +1 -1
  75. package/dist/datasets/index.cjs +17 -17
  76. package/dist/datasets/index.js +2 -2
  77. package/dist/docs/SKILL.md +1 -1
  78. package/dist/docs/assets/SOURCE_MAP.json +347 -347
  79. package/dist/evals/index.cjs +23 -23
  80. package/dist/evals/index.js +3 -3
  81. package/dist/evals/scoreTraces/index.cjs +5 -5
  82. package/dist/evals/scoreTraces/index.js +2 -2
  83. package/dist/harness/index.cjs +9 -9
  84. package/dist/harness/index.js +6 -6
  85. package/dist/index.cjs +2 -2
  86. package/dist/index.js +1 -1
  87. package/dist/llm/index.cjs +20 -20
  88. package/dist/llm/index.js +5 -5
  89. package/dist/llm/model/provider-types.generated.d.ts +7 -5
  90. package/dist/loop/index.cjs +14 -14
  91. package/dist/loop/index.js +1 -1
  92. package/dist/mastra/index.cjs +2 -2
  93. package/dist/mastra/index.js +1 -1
  94. package/dist/mastra-3SMFDQHS.cjs +12 -0
  95. package/dist/{mastra-VZGJ3WQ7.cjs.map → mastra-3SMFDQHS.cjs.map} +1 -1
  96. package/dist/mastra-RJ5CD2IP.js +3 -0
  97. package/dist/{mastra-2UWRHJI2.js.map → mastra-RJ5CD2IP.js.map} +1 -1
  98. package/dist/memory/index.cjs +17 -17
  99. package/dist/memory/index.js +1 -1
  100. package/dist/models-dev-6R5RVMP5.cjs +12 -0
  101. package/dist/{models-dev-LBQVOPNM.cjs.map → models-dev-6R5RVMP5.cjs.map} +1 -1
  102. package/dist/models-dev-BK5CIGHI.js +3 -0
  103. package/dist/{models-dev-5KR3WKM3.js.map → models-dev-BK5CIGHI.js.map} +1 -1
  104. package/dist/netlify-FZXHNSAC.cjs +12 -0
  105. package/dist/{netlify-M3KHXKH6.cjs.map → netlify-FZXHNSAC.cjs.map} +1 -1
  106. package/dist/netlify-W4RS6WT3.js +3 -0
  107. package/dist/{netlify-7UYWYPR7.js.map → netlify-W4RS6WT3.js.map} +1 -1
  108. package/dist/processor-provider/index.cjs +10 -10
  109. package/dist/processor-provider/index.js +1 -1
  110. package/dist/processors/index.cjs +44 -44
  111. package/dist/processors/index.js +1 -1
  112. package/dist/provider-registry-GRUH55IK.cjs +40 -0
  113. package/dist/{provider-registry-PGMC3USM.cjs.map → provider-registry-GRUH55IK.cjs.map} +1 -1
  114. package/dist/provider-registry-L4DLIKZ5.js +3 -0
  115. package/dist/{provider-registry-ZB6V7PBP.js.map → provider-registry-L4DLIKZ5.js.map} +1 -1
  116. package/dist/provider-registry.json +20 -16
  117. package/dist/relevance/index.cjs +3 -3
  118. package/dist/relevance/index.js +1 -1
  119. package/dist/storage/constants.cjs +56 -56
  120. package/dist/storage/constants.js +1 -1
  121. package/dist/storage/domains/memory/base.d.ts +2 -2
  122. package/dist/storage/domains/memory/base.d.ts.map +1 -1
  123. package/dist/storage/domains/memory/inmemory.d.ts +2 -2
  124. package/dist/storage/domains/memory/inmemory.d.ts.map +1 -1
  125. package/dist/storage/index.cjs +160 -160
  126. package/dist/storage/index.js +2 -2
  127. package/dist/storage/types.d.ts +9 -0
  128. package/dist/storage/types.d.ts.map +1 -1
  129. package/dist/stream/index.cjs +11 -11
  130. package/dist/stream/index.js +2 -2
  131. package/dist/test-utils/llm-mock.cjs +4 -4
  132. package/dist/test-utils/llm-mock.js +1 -1
  133. package/dist/tool-loop-agent/index.cjs +4 -4
  134. package/dist/tool-loop-agent/index.js +1 -1
  135. package/dist/utils.cjs +25 -25
  136. package/dist/utils.js +1 -1
  137. package/dist/vector/index.cjs +7 -7
  138. package/dist/vector/index.js +1 -1
  139. package/dist/workflows/evented/index.cjs +10 -10
  140. package/dist/workflows/evented/index.js +1 -1
  141. package/dist/workflows/index.cjs +24 -24
  142. package/dist/workflows/index.js +1 -1
  143. package/package.json +4 -4
  144. package/src/llm/model/provider-types.generated.d.ts +7 -5
  145. package/dist/chunk-GVK32BFO.js.map +0 -1
  146. package/dist/chunk-HGR2ESKV.js.map +0 -1
  147. package/dist/chunk-N5AAEXN5.js.map +0 -1
  148. package/dist/chunk-TGN66Y5K.cjs.map +0 -1
  149. package/dist/chunk-XB5NKHYR.cjs.map +0 -1
  150. package/dist/chunk-XDL2JJB7.cjs.map +0 -1
  151. package/dist/mastra-2UWRHJI2.js +0 -3
  152. package/dist/mastra-VZGJ3WQ7.cjs +0 -12
  153. package/dist/models-dev-5KR3WKM3.js +0 -3
  154. package/dist/models-dev-LBQVOPNM.cjs +0 -12
  155. package/dist/netlify-7UYWYPR7.js +0 -3
  156. package/dist/netlify-M3KHXKH6.cjs +0 -12
  157. package/dist/provider-registry-PGMC3USM.cjs +0 -40
  158. package/dist/provider-registry-ZB6V7PBP.js +0 -3
@@ -1,22 +1,22 @@
1
1
  'use strict';
2
2
 
3
+ var chunkZCBG4ZQT_cjs = require('./chunk-ZCBG4ZQT.cjs');
3
4
  var chunkHIC3WGQU_cjs = require('./chunk-HIC3WGQU.cjs');
4
5
  var chunkT26CFBWF_cjs = require('./chunk-T26CFBWF.cjs');
5
- var chunkZCBG4ZQT_cjs = require('./chunk-ZCBG4ZQT.cjs');
6
- var chunkTGN66Y5K_cjs = require('./chunk-TGN66Y5K.cjs');
7
- var chunkXB5NKHYR_cjs = require('./chunk-XB5NKHYR.cjs');
6
+ var chunk7FAUTKNJ_cjs = require('./chunk-7FAUTKNJ.cjs');
7
+ var chunkWAPY5X7M_cjs = require('./chunk-WAPY5X7M.cjs');
8
8
  var chunkY3APFUXZ_cjs = require('./chunk-Y3APFUXZ.cjs');
9
9
  var chunkCFMZZDO2_cjs = require('./chunk-CFMZZDO2.cjs');
10
10
  var chunkOQDRPRKM_cjs = require('./chunk-OQDRPRKM.cjs');
11
11
  var chunkMR7ZWBL6_cjs = require('./chunk-MR7ZWBL6.cjs');
12
- var chunkABQYDFUT_cjs = require('./chunk-ABQYDFUT.cjs');
13
- var chunkRNO432IS_cjs = require('./chunk-RNO432IS.cjs');
12
+ var chunkFLAZ5DGJ_cjs = require('./chunk-FLAZ5DGJ.cjs');
13
+ var chunkINA5PMVU_cjs = require('./chunk-INA5PMVU.cjs');
14
14
  var chunk22FSGATE_cjs = require('./chunk-22FSGATE.cjs');
15
- var chunkHF4LXXL5_cjs = require('./chunk-HF4LXXL5.cjs');
15
+ var chunkW232X652_cjs = require('./chunk-W232X652.cjs');
16
+ var chunkW6PDQCCN_cjs = require('./chunk-W6PDQCCN.cjs');
16
17
  var chunkKJBMTK5B_cjs = require('./chunk-KJBMTK5B.cjs');
17
18
  var chunkLDLHW3QN_cjs = require('./chunk-LDLHW3QN.cjs');
18
19
  var chunkXB4FLS7A_cjs = require('./chunk-XB4FLS7A.cjs');
19
- var chunkW6PDQCCN_cjs = require('./chunk-W6PDQCCN.cjs');
20
20
  var chunkDLBIUFZL_cjs = require('./chunk-DLBIUFZL.cjs');
21
21
  var chunk5WBEMKE2_cjs = require('./chunk-5WBEMKE2.cjs');
22
22
  var chunk4U7ZLI36_cjs = require('./chunk-4U7ZLI36.cjs');
@@ -1307,7 +1307,7 @@ var ProcessorRunner = class _ProcessorRunner {
1307
1307
  writer
1308
1308
  });
1309
1309
  const mutations = messageList.stopRecording();
1310
- if (processResult instanceof chunkXB5NKHYR_cjs.MessageList) {
1310
+ if (processResult instanceof chunkWAPY5X7M_cjs.MessageList) {
1311
1311
  if (processResult !== messageList) {
1312
1312
  throw new chunk4U7ZLI36_cjs.MastraError({
1313
1313
  category: "USER",
@@ -1601,7 +1601,7 @@ var ProcessorRunner = class _ProcessorRunner {
1601
1601
  retryCount
1602
1602
  });
1603
1603
  let mutations;
1604
- if (result instanceof chunkXB5NKHYR_cjs.MessageList) {
1604
+ if (result instanceof chunkWAPY5X7M_cjs.MessageList) {
1605
1605
  if (result !== messageList) {
1606
1606
  throw new chunk4U7ZLI36_cjs.MastraError({
1607
1607
  category: "USER",
@@ -1971,7 +1971,7 @@ var ProcessorRunner = class _ProcessorRunner {
1971
1971
  writer
1972
1972
  });
1973
1973
  const mutations = messageList.stopRecording();
1974
- if (result instanceof chunkXB5NKHYR_cjs.MessageList) {
1974
+ if (result instanceof chunkWAPY5X7M_cjs.MessageList) {
1975
1975
  if (result !== messageList) {
1976
1976
  throw new chunk4U7ZLI36_cjs.MastraError({
1977
1977
  category: "USER",
@@ -2043,7 +2043,7 @@ var ProcessorRunner = class _ProcessorRunner {
2043
2043
  processor,
2044
2044
  stepNumber
2045
2045
  }) {
2046
- if (result instanceof chunkXB5NKHYR_cjs.MessageList) {
2046
+ if (result instanceof chunkWAPY5X7M_cjs.MessageList) {
2047
2047
  if (result !== messageList) {
2048
2048
  throw new chunk4U7ZLI36_cjs.MastraError({
2049
2049
  category: "USER",
@@ -2078,7 +2078,7 @@ var ProcessorRunner = class _ProcessorRunner {
2078
2078
  }
2079
2079
  const { model: _model, ...rest } = result;
2080
2080
  if (result.model) {
2081
- const resolvedModel = await chunkABQYDFUT_cjs.resolveModelConfig(result.model);
2081
+ const resolvedModel = await chunkFLAZ5DGJ_cjs.resolveModelConfig(result.model);
2082
2082
  const isSupported = isSupportedLanguageModel(resolvedModel);
2083
2083
  if (!isSupported) {
2084
2084
  throw new chunk4U7ZLI36_cjs.MastraError({
@@ -3286,7 +3286,7 @@ var MastraModelOutput = class extends chunkDKK77FIJ_cjs.MastraBase {
3286
3286
  );
3287
3287
  const responseMessages = self.messageList.get.response.aiV4.core();
3288
3288
  const lastResponseMessage = responseMessages[responseMessages.length - 1];
3289
- const outputText = lastResponseMessage ? chunkXB5NKHYR_cjs.coreContentToString(lastResponseMessage.content) : "";
3289
+ const outputText = lastResponseMessage ? chunkWAPY5X7M_cjs.coreContentToString(lastResponseMessage.content) : "";
3290
3290
  if (lastStep && outputText && outputText !== originalText) {
3291
3291
  lastStep.text = outputText;
3292
3292
  }
@@ -4668,13 +4668,13 @@ function convertMastraChunkToAISDKv5({
4668
4668
  case "file": {
4669
4669
  const filePart = mode === "generate" ? {
4670
4670
  type: "file",
4671
- file: new chunkXB5NKHYR_cjs.DefaultGeneratedFile({
4671
+ file: new chunkWAPY5X7M_cjs.DefaultGeneratedFile({
4672
4672
  data: chunk.payload.data,
4673
4673
  mediaType: chunk.payload.mimeType
4674
4674
  })
4675
4675
  } : {
4676
4676
  type: "file",
4677
- file: new chunkXB5NKHYR_cjs.DefaultGeneratedFileWithType({
4677
+ file: new chunkWAPY5X7M_cjs.DefaultGeneratedFileWithType({
4678
4678
  data: chunk.payload.data,
4679
4679
  mediaType: chunk.payload.mimeType
4680
4680
  })
@@ -6799,7 +6799,7 @@ var createTimeTravelExecutionParams = (params) => {
6799
6799
  result = void 0;
6800
6800
  }
6801
6801
  if (result) {
6802
- const formattedResult = chunkHF4LXXL5_cjs.removeUndefinedValues(result);
6802
+ const formattedResult = chunkW232X652_cjs.removeUndefinedValues(result);
6803
6803
  stepResults[stepId] = formattedResult;
6804
6804
  }
6805
6805
  });
@@ -7357,7 +7357,7 @@ async function executeLoop(engine, params) {
7357
7357
  options: {
7358
7358
  type: "workflow_conditional_eval" /* WORKFLOW_CONDITIONAL_EVAL */,
7359
7359
  name: `condition: '${entry.loopType}'`,
7360
- input: chunkHF4LXXL5_cjs.selectFields(result.output, ["stepResult", "output.text", "output.object", "messages"]),
7360
+ input: chunkW232X652_cjs.selectFields(result.output, ["stepResult", "output.text", "output.object", "messages"]),
7361
7361
  attributes: {
7362
7362
  conditionIndex: iteration
7363
7363
  },
@@ -9995,7 +9995,7 @@ function createStepFromProcessor(processor) {
9995
9995
  phase,
9996
9996
  // Auto-create MessageList from messages if not provided
9997
9997
  // This enables running processor workflows from the UI where messageList can't be serialized
9998
- messageList: messageList ?? (Array.isArray(messages) ? new chunkXB5NKHYR_cjs.MessageList().add(messages, "input").addSystem(systemMessages ?? []) : void 0),
9998
+ messageList: messageList ?? (Array.isArray(messages) ? new chunkWAPY5X7M_cjs.MessageList().add(messages, "input").addSystem(systemMessages ?? []) : void 0),
9999
9999
  stepNumber,
10000
10000
  systemMessages,
10001
10001
  streamParts,
@@ -10052,7 +10052,7 @@ function createStepFromProcessor(processor) {
10052
10052
  messageList: checkedMessageList,
10053
10053
  systemMessages: systemMessages ?? []
10054
10054
  });
10055
- if (result instanceof chunkXB5NKHYR_cjs.MessageList) {
10055
+ if (result instanceof chunkWAPY5X7M_cjs.MessageList) {
10056
10056
  if (result !== checkedMessageList) {
10057
10057
  throw new chunk4U7ZLI36_cjs.MastraError({
10058
10058
  category: "USER" /* USER */,
@@ -10235,7 +10235,7 @@ function createStepFromProcessor(processor) {
10235
10235
  messageList: passThrough.messageList,
10236
10236
  result: passThrough.result ?? defaultResult
10237
10237
  });
10238
- if (result instanceof chunkXB5NKHYR_cjs.MessageList) {
10238
+ if (result instanceof chunkWAPY5X7M_cjs.MessageList) {
10239
10239
  if (result !== passThrough.messageList) {
10240
10240
  throw new chunk4U7ZLI36_cjs.MastraError({
10241
10241
  category: "USER" /* USER */,
@@ -10302,7 +10302,7 @@ function createStepFromProcessor(processor) {
10302
10302
  systemMessages: systemMessages ?? [],
10303
10303
  steps: steps ?? []
10304
10304
  });
10305
- if (result instanceof chunkXB5NKHYR_cjs.MessageList) {
10305
+ if (result instanceof chunkWAPY5X7M_cjs.MessageList) {
10306
10306
  if (result !== checkedMessageList) {
10307
10307
  throw new chunk4U7ZLI36_cjs.MastraError({
10308
10308
  category: "USER" /* USER */,
@@ -12813,7 +12813,7 @@ var MastraScorer = class _MastraScorer {
12813
12813
  }
12814
12814
  });
12815
12815
  }
12816
- const resolvedModel = await chunkABQYDFUT_cjs.resolveModelConfig(modelConfig, void 0, this.#mastra);
12816
+ const resolvedModel = await chunkFLAZ5DGJ_cjs.resolveModelConfig(modelConfig, void 0, this.#mastra);
12817
12817
  const judgeModel = resolvedModel.modelId;
12818
12818
  const judge = new Agent({
12819
12819
  id: "judge",
@@ -13044,7 +13044,7 @@ async function runDefaultCompletionCheck(agent, context, streamContext, abortSig
13044
13044
  Primitives already executed: ${completedPrimitives.join(", ")}` : "";
13045
13045
  const completionPrompt = `
13046
13046
  The ${context.selectedPrimitive.type} ${context.selectedPrimitive.id} has contributed to the task.
13047
- This is the result: ${chunkHF4LXXL5_cjs.safeStringify(context.primitiveResult)}
13047
+ This is the result: ${chunkW232X652_cjs.safeStringify(context.primitiveResult)}
13048
13048
 
13049
13049
  ${completedSection}
13050
13050
 
@@ -13140,7 +13140,7 @@ async function generateFinalResult(agent, context, streamContext, abortSignal, o
13140
13140
  Original task: ${context.originalTask}
13141
13141
 
13142
13142
  The ${context.selectedPrimitive.type} ${context.selectedPrimitive.id} produced this result:
13143
- ${chunkHF4LXXL5_cjs.safeStringify(context.primitiveResult)}
13143
+ ${chunkW232X652_cjs.safeStringify(context.primitiveResult)}
13144
13144
 
13145
13145
  IMPORTANT: If the above result is from an AGENT PRIMITIVE and it is a suitable final result itself considering the original task, then finalResult should be an empty string or undefined.
13146
13146
  You should evaluate if the above result is comprehensive enough to accomplish the user's original task.
@@ -13198,7 +13198,7 @@ async function generateStructuredFinalResult(agent, context, structuredOutputOpt
13198
13198
  Original task: ${context.originalTask}
13199
13199
 
13200
13200
  The ${context.selectedPrimitive.type} ${context.selectedPrimitive.id} produced this result:
13201
- ${chunkHF4LXXL5_cjs.safeStringify(context.primitiveResult)}
13201
+ ${chunkW232X652_cjs.safeStringify(context.primitiveResult)}
13202
13202
 
13203
13203
  Based on the task and result above, generate a structured response according to the provided schema.
13204
13204
  Use the conversation history and primitive results to craft the response.
@@ -14299,7 +14299,7 @@ function createLLMExecutionStep({
14299
14299
  const convertedTools = {};
14300
14300
  for (const [name, tool2] of Object.entries(currentStep.tools)) {
14301
14301
  if (chunkLDLHW3QN_cjs.isMastraTool(tool2)) {
14302
- convertedTools[name] = chunkHF4LXXL5_cjs.makeCoreTool(
14302
+ convertedTools[name] = chunkW232X652_cjs.makeCoreTool(
14303
14303
  tool2,
14304
14304
  {
14305
14305
  name,
@@ -14521,7 +14521,7 @@ Analyse the suspended tools: ${JSON.stringify(suspendedTools)}, using the messag
14521
14521
  }
14522
14522
  });
14523
14523
  let transportResolver;
14524
- if (currentStep.model instanceof chunkABQYDFUT_cjs.ModelRouterLanguageModel) {
14524
+ if (currentStep.model instanceof chunkFLAZ5DGJ_cjs.ModelRouterLanguageModel) {
14525
14525
  const routerModel = currentStep.model;
14526
14526
  transportResolver = () => routerModel._getStreamTransport();
14527
14527
  }
@@ -14888,7 +14888,7 @@ function createLLMMappingStep({ models, _internal, ...rest }, llmExecutionStep)
14888
14888
  toolInvocation: {
14889
14889
  state: "result",
14890
14890
  toolCallId: toolCall.toolCallId,
14891
- toolName: chunkXB5NKHYR_cjs.sanitizeToolName(toolCall.toolName),
14891
+ toolName: chunkWAPY5X7M_cjs.sanitizeToolName(toolCall.toolName),
14892
14892
  args: toolCall.args,
14893
14893
  result: toolCall.error?.message ?? toolCall.error
14894
14894
  },
@@ -14923,7 +14923,7 @@ function createLLMMappingStep({ models, _internal, ...rest }, llmExecutionStep)
14923
14923
  toolInvocation: {
14924
14924
  state: "result",
14925
14925
  toolCallId: toolCall.toolCallId,
14926
- toolName: chunkXB5NKHYR_cjs.sanitizeToolName(toolCall.toolName),
14926
+ toolName: chunkWAPY5X7M_cjs.sanitizeToolName(toolCall.toolName),
14927
14927
  args: toolCall.args,
14928
14928
  result: toolCall.result
14929
14929
  },
@@ -14980,7 +14980,7 @@ function createLLMMappingStep({ models, _internal, ...rest }, llmExecutionStep)
14980
14980
  toolInvocation: {
14981
14981
  state: "result",
14982
14982
  toolCallId: toolCall.toolCallId,
14983
- toolName: chunkXB5NKHYR_cjs.sanitizeToolName(toolCall.toolName),
14983
+ toolName: chunkWAPY5X7M_cjs.sanitizeToolName(toolCall.toolName),
14984
14984
  args: toolCall.args,
14985
14985
  result: toolCall.result
14986
14986
  },
@@ -15420,7 +15420,7 @@ function createToolCallStep({
15420
15420
  }
15421
15421
  }
15422
15422
  const rawResult = await tool2.execute(args, toolOptions);
15423
- const result = chunkHF4LXXL5_cjs.ensureSerializable(rawResult);
15423
+ const result = chunkW232X652_cjs.ensureSerializable(rawResult);
15424
15424
  if (tool2 && "onOutput" in tool2 && typeof tool2.onOutput === "function") {
15425
15425
  try {
15426
15426
  await tool2.onOutput({
@@ -16280,7 +16280,7 @@ var MastraLLMVNext = class extends chunkDKK77FIJ_cjs.MastraBase {
16280
16280
  const remainingTokens = parseInt(props?.response?.headers?.["x-ratelimit-remaining-tokens"] ?? "", 10);
16281
16281
  if (!isNaN(remainingTokens) && remainingTokens > 0 && remainingTokens < 2e3) {
16282
16282
  this.logger.warn("Rate limit approaching, waiting 10 seconds", { runId });
16283
- await chunkHF4LXXL5_cjs.delay(10 * 1e3);
16283
+ await chunkW232X652_cjs.delay(10 * 1e3);
16284
16284
  }
16285
16285
  },
16286
16286
  onFinish: async (props) => {
@@ -16556,7 +16556,7 @@ async function prepareMemoryStep({
16556
16556
  );
16557
16557
  }
16558
16558
  } else {
16559
- const messageList = new chunkXB5NKHYR_cjs.MessageList({
16559
+ const messageList = new chunkWAPY5X7M_cjs.MessageList({
16560
16560
  threadId: thread?.id,
16561
16561
  resourceId: thread?.resourceId
16562
16562
  });
@@ -16613,7 +16613,7 @@ async function saveMessagesWithProcessors(memory, messages, processorRunner, con
16613
16613
  await memory.saveMessages({ messages });
16614
16614
  return;
16615
16615
  }
16616
- const messageList = new chunkXB5NKHYR_cjs.MessageList();
16616
+ const messageList = new chunkWAPY5X7M_cjs.MessageList();
16617
16617
  for (const msg of messages) {
16618
16618
  messageList.add(msg, "response");
16619
16619
  }
@@ -18051,7 +18051,7 @@ async function networkLoop({
18051
18051
  "resumeData": "string"
18052
18052
  }
18053
18053
  `;
18054
- const messageList = new chunkXB5NKHYR_cjs.MessageList();
18054
+ const messageList = new chunkWAPY5X7M_cjs.MessageList();
18055
18055
  messageList.addSystem(systemInstructions);
18056
18056
  messageList.add(task, "user");
18057
18057
  const result = llm.stream({
@@ -18692,7 +18692,7 @@ var AgentLegacyHandler = class {
18692
18692
  methodType: methodType === "generate" ? "generateLegacy" : "streamLegacy",
18693
18693
  memoryConfig
18694
18694
  });
18695
- let messageList = new chunkXB5NKHYR_cjs.MessageList({
18695
+ let messageList = new chunkWAPY5X7M_cjs.MessageList({
18696
18696
  threadId,
18697
18697
  resourceId,
18698
18698
  generateMessageId: this.capabilities.mastra?.generateId?.bind(this.capabilities.mastra),
@@ -18851,7 +18851,7 @@ var AgentLegacyHandler = class {
18851
18851
  result: resToLog,
18852
18852
  threadId
18853
18853
  });
18854
- const messageListResponses = new chunkXB5NKHYR_cjs.MessageList({
18854
+ const messageListResponses = new chunkWAPY5X7M_cjs.MessageList({
18855
18855
  threadId,
18856
18856
  resourceId,
18857
18857
  generateMessageId: this.capabilities.mastra?.generateId?.bind(this.capabilities.mastra),
@@ -20027,7 +20027,7 @@ var prepareToolsStepOutputSchema = v4.z.object({
20027
20027
  var prepareMemoryStepOutputSchema = v4.z.object({
20028
20028
  threadExists: v4.z.boolean(),
20029
20029
  thread: storageThreadSchema.optional(),
20030
- messageList: v4.z.instanceof(chunkXB5NKHYR_cjs.MessageList),
20030
+ messageList: v4.z.instanceof(chunkWAPY5X7M_cjs.MessageList),
20031
20031
  /** Shared processor states map that persists across loop iterations for both input and output processors */
20032
20032
  processorStates: v4.z.instanceof(Map),
20033
20033
  /** Tripwire data when input processor triggered abort */
@@ -20069,7 +20069,7 @@ function createPrepareMemoryStep({
20069
20069
  execute: async ({ ...rest }) => {
20070
20070
  const observabilityContext = chunkW6PDQCCN_cjs.resolveObservabilityContext(rest);
20071
20071
  const thread = threadFromArgs;
20072
- const messageList = new chunkXB5NKHYR_cjs.MessageList({
20072
+ const messageList = new chunkWAPY5X7M_cjs.MessageList({
20073
20073
  threadId: thread?.id,
20074
20074
  resourceId,
20075
20075
  generateMessageId: capabilities.generateMessageId,
@@ -21350,7 +21350,7 @@ ${errorMessages}`,
21350
21350
  */
21351
21351
  listTools({ requestContext = new chunk5WBEMKE2_cjs.RequestContext() } = {}) {
21352
21352
  if (typeof this.#tools !== "function") {
21353
- return chunkHF4LXXL5_cjs.ensureToolProperties(this.#tools);
21353
+ return chunkW232X652_cjs.ensureToolProperties(this.#tools);
21354
21354
  }
21355
21355
  const result = this.#tools({
21356
21356
  requestContext,
@@ -21370,7 +21370,7 @@ ${errorMessages}`,
21370
21370
  this.logger.trackException(mastraError);
21371
21371
  throw mastraError;
21372
21372
  }
21373
- return chunkHF4LXXL5_cjs.ensureToolProperties(tools);
21373
+ return chunkW232X652_cjs.ensureToolProperties(tools);
21374
21374
  });
21375
21375
  }
21376
21376
  /**
@@ -21418,7 +21418,7 @@ ${errorMessages}`,
21418
21418
  });
21419
21419
  });
21420
21420
  } else {
21421
- llm = new chunkRNO432IS_cjs.MastraLLMV1({
21421
+ llm = new chunkINA5PMVU_cjs.MastraLLMV1({
21422
21422
  model: modelInfo,
21423
21423
  mastra: this.#mastra,
21424
21424
  options: { tracingPolicy: this.#options?.tracingPolicy }
@@ -21444,7 +21444,7 @@ ${errorMessages}`,
21444
21444
  */
21445
21445
  async resolveModelConfig(modelConfig, requestContext) {
21446
21446
  try {
21447
- return await chunkABQYDFUT_cjs.resolveModelConfig(modelConfig, requestContext, this.#mastra);
21447
+ return await chunkFLAZ5DGJ_cjs.resolveModelConfig(modelConfig, requestContext, this.#mastra);
21448
21448
  } catch (error) {
21449
21449
  const mastraError = new chunk4U7ZLI36_cjs.MastraError({
21450
21450
  id: "AGENT_GET_MODEL_MISSING_MODEL_INSTANCE",
@@ -21764,7 +21764,7 @@ ${errorMessages}`,
21764
21764
  }) {
21765
21765
  const observabilityContext = chunkW6PDQCCN_cjs.resolveObservabilityContext(rest);
21766
21766
  const llm = await this.getLLM({ requestContext, model });
21767
- const normMessage = new chunkXB5NKHYR_cjs.MessageList().add(message, "user").get.all.aiV5.ui().at(-1);
21767
+ const normMessage = new chunkWAPY5X7M_cjs.MessageList().add(message, "user").get.all.aiV5.ui().at(-1);
21768
21768
  if (!normMessage) {
21769
21769
  throw new Error(`Could not generate title from input ${JSON.stringify(message)}`);
21770
21770
  }
@@ -21787,7 +21787,7 @@ ${errorMessages}`,
21787
21787
  const systemInstructions = await this.resolveTitleInstructions(requestContext, instructions);
21788
21788
  let text = "";
21789
21789
  if (isSupportedLanguageModel(llm.getModel())) {
21790
- const messageList = new chunkXB5NKHYR_cjs.MessageList().add(
21790
+ const messageList = new chunkWAPY5X7M_cjs.MessageList().add(
21791
21791
  [
21792
21792
  {
21793
21793
  role: "system",
@@ -21840,7 +21840,7 @@ ${errorMessages}`,
21840
21840
  async genTitle(userMessage, requestContext, observabilityContext, model, instructions) {
21841
21841
  try {
21842
21842
  if (userMessage) {
21843
- const normMessage = new chunkXB5NKHYR_cjs.MessageList().add(userMessage, "user").get.all.ui().at(-1);
21843
+ const normMessage = new chunkWAPY5X7M_cjs.MessageList().add(userMessage, "user").get.all.ui().at(-1);
21844
21844
  if (normMessage) {
21845
21845
  return await this.generateTitleFromUserMessage({
21846
21846
  message: normMessage,
@@ -21916,7 +21916,7 @@ ${errorMessages}`,
21916
21916
  tracingPolicy: this.#options?.tracingPolicy,
21917
21917
  requireApproval: toolObj.requireApproval
21918
21918
  };
21919
- const convertedToCoreTool = chunkHF4LXXL5_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
21919
+ const convertedToCoreTool = chunkW232X652_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
21920
21920
  convertedMemoryTools[toolName] = convertedToCoreTool;
21921
21921
  }
21922
21922
  }
@@ -21969,7 +21969,7 @@ ${errorMessages}`,
21969
21969
  requireApproval: toolObj.requireApproval,
21970
21970
  workspace
21971
21971
  };
21972
- const convertedToCoreTool = chunkHF4LXXL5_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
21972
+ const convertedToCoreTool = chunkW232X652_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
21973
21973
  convertedWorkspaceTools[toolName] = convertedToCoreTool;
21974
21974
  }
21975
21975
  }
@@ -22010,7 +22010,7 @@ ${errorMessages}`,
22010
22010
  ...observabilityContext,
22011
22011
  tracingPolicy: this.#options?.tracingPolicy
22012
22012
  };
22013
- convertedChannelTools[toolName] = chunkHF4LXXL5_cjs.makeCoreTool(
22013
+ convertedChannelTools[toolName] = chunkW232X652_cjs.makeCoreTool(
22014
22014
  tool2,
22015
22015
  options,
22016
22016
  void 0,
@@ -22067,7 +22067,7 @@ ${errorMessages}`,
22067
22067
  // Skill tools never require approval
22068
22068
  workspace
22069
22069
  };
22070
- const convertedToCoreTool = chunkHF4LXXL5_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
22070
+ const convertedToCoreTool = chunkW232X652_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
22071
22071
  convertedSkillTools[toolName] = convertedToCoreTool;
22072
22072
  }
22073
22073
  }
@@ -22115,7 +22115,7 @@ ${errorMessages}`,
22115
22115
  tracingPolicy: this.#options?.tracingPolicy,
22116
22116
  requireApproval: toolObj.requireApproval
22117
22117
  };
22118
- const convertedToCoreTool = chunkHF4LXXL5_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
22118
+ const convertedToCoreTool = chunkW232X652_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
22119
22119
  convertedBrowserTools[toolName] = convertedToCoreTool;
22120
22120
  }
22121
22121
  }
@@ -22348,7 +22348,7 @@ ${errorMessages}`,
22348
22348
  tracingPolicy: this.#options?.tracingPolicy,
22349
22349
  requireApproval: tool2.requireApproval
22350
22350
  };
22351
- return [k, chunkHF4LXXL5_cjs.makeCoreTool(tool2, options, void 0, autoResumeSuspendedTools)];
22351
+ return [k, chunkW232X652_cjs.makeCoreTool(tool2, options, void 0, autoResumeSuspendedTools)];
22352
22352
  })
22353
22353
  );
22354
22354
  const assignedToolEntriesConverted = Object.fromEntries(
@@ -22402,7 +22402,7 @@ ${errorMessages}`,
22402
22402
  tracingPolicy: this.#options?.tracingPolicy,
22403
22403
  requireApproval: toolObj.requireApproval
22404
22404
  };
22405
- const convertedToCoreTool = chunkHF4LXXL5_cjs.makeCoreTool(toolObj, options, "toolset", autoResumeSuspendedTools);
22405
+ const convertedToCoreTool = chunkW232X652_cjs.makeCoreTool(toolObj, options, "toolset", autoResumeSuspendedTools);
22406
22406
  toolsForRequest[toolName] = convertedToCoreTool;
22407
22407
  }
22408
22408
  }
@@ -22447,7 +22447,7 @@ ${errorMessages}`,
22447
22447
  tracingPolicy: this.#options?.tracingPolicy,
22448
22448
  requireApproval: tool2.requireApproval
22449
22449
  };
22450
- const convertedToCoreTool = chunkHF4LXXL5_cjs.makeCoreTool(toolRest, options, "client-tool", autoResumeSuspendedTools);
22450
+ const convertedToCoreTool = chunkW232X652_cjs.makeCoreTool(toolRest, options, "client-tool", autoResumeSuspendedTools);
22451
22451
  toolsForRequest[toolName] = convertedToCoreTool;
22452
22452
  }
22453
22453
  }
@@ -23167,7 +23167,7 @@ ${effectiveInstructions}`;
23167
23167
  ...observabilityContext,
23168
23168
  tracingPolicy: this.#options?.tracingPolicy
23169
23169
  };
23170
- convertedAgentTools[`agent-${agentName}`] = chunkHF4LXXL5_cjs.makeCoreTool(
23170
+ convertedAgentTools[`agent-${agentName}`] = chunkW232X652_cjs.makeCoreTool(
23171
23171
  toolObj,
23172
23172
  options,
23173
23173
  void 0,
@@ -23388,7 +23388,7 @@ ${effectiveInstructions}`;
23388
23388
  ...observabilityContext,
23389
23389
  tracingPolicy: this.#options?.tracingPolicy
23390
23390
  };
23391
- convertedWorkflowTools[`workflow-${workflowName}`] = chunkHF4LXXL5_cjs.makeCoreTool(
23391
+ convertedWorkflowTools[`workflow-${workflowName}`] = chunkW232X652_cjs.makeCoreTool(
23392
23392
  toolObj,
23393
23393
  options,
23394
23394
  void 0,
@@ -23420,7 +23420,7 @@ ${effectiveInstructions}`;
23420
23420
  let mastraProxy = void 0;
23421
23421
  const logger = this.logger;
23422
23422
  if (this.#mastra) {
23423
- mastraProxy = chunkHF4LXXL5_cjs.createMastraProxy({ mastra: this.#mastra, logger });
23423
+ mastraProxy = chunkW232X652_cjs.createMastraProxy({ mastra: this.#mastra, logger });
23424
23424
  }
23425
23425
  const assignedTools = await this.listAssignedTools({
23426
23426
  runId,
@@ -23691,7 +23691,7 @@ ${effectiveInstructions}`;
23691
23691
  const resolvedModel = await this.resolveModelConfig(selection, requestContext);
23692
23692
  this.assertSupportsPreparedModels(resolvedModel);
23693
23693
  let headers;
23694
- if (resolvedModel instanceof chunkABQYDFUT_cjs.ModelRouterLanguageModel) {
23694
+ if (resolvedModel instanceof chunkFLAZ5DGJ_cjs.ModelRouterLanguageModel) {
23695
23695
  headers = resolvedModel.config?.headers;
23696
23696
  }
23697
23697
  return [
@@ -23723,7 +23723,7 @@ ${effectiveInstructions}`;
23723
23723
  throw mastraError;
23724
23724
  }
23725
23725
  let headers;
23726
- if (model instanceof chunkABQYDFUT_cjs.ModelRouterLanguageModel) {
23726
+ if (model instanceof chunkFLAZ5DGJ_cjs.ModelRouterLanguageModel) {
23727
23727
  headers = model.config?.headers;
23728
23728
  }
23729
23729
  return {
@@ -23784,7 +23784,7 @@ ${effectiveInstructions}`;
23784
23784
  model: options.model
23785
23785
  });
23786
23786
  const resolvedModel = llm.getModel();
23787
- const isGatewayModel = resolvedModel instanceof chunkABQYDFUT_cjs.ModelRouterLanguageModel && resolvedModel.gatewayId === "mastra";
23787
+ const isGatewayModel = resolvedModel instanceof chunkFLAZ5DGJ_cjs.ModelRouterLanguageModel && resolvedModel.gatewayId === "mastra";
23788
23788
  if (resourceId && threadFromArgs && !this.hasOwnMemory() && !isGatewayModel) {
23789
23789
  this.logger.warn("No memory is configured but resourceId and threadId were passed in args", { agent: this.name });
23790
23790
  }
@@ -24195,7 +24195,7 @@ ${effectiveInstructions}`;
24195
24195
  const defaultOptions = await this.getDefaultOptions({
24196
24196
  requestContext: options?.requestContext
24197
24197
  });
24198
- const mergedOptions = chunkHF4LXXL5_cjs.deepMerge(
24198
+ const mergedOptions = chunkW232X652_cjs.deepMerge(
24199
24199
  defaultOptions,
24200
24200
  options ?? {}
24201
24201
  );
@@ -24266,7 +24266,7 @@ ${effectiveInstructions}`;
24266
24266
  const defaultOptions = await this.getDefaultOptions({
24267
24267
  requestContext: streamOptions?.requestContext
24268
24268
  });
24269
- const mergedOptions = chunkHF4LXXL5_cjs.deepMerge(
24269
+ const mergedOptions = chunkW232X652_cjs.deepMerge(
24270
24270
  defaultOptions,
24271
24271
  streamOptions ?? {}
24272
24272
  );
@@ -24331,7 +24331,7 @@ ${effectiveInstructions}`;
24331
24331
  const defaultOptions = await this.getDefaultOptions({
24332
24332
  requestContext: streamOptions?.requestContext
24333
24333
  });
24334
- let mergedStreamOptions = chunkHF4LXXL5_cjs.deepMerge(
24334
+ let mergedStreamOptions = chunkW232X652_cjs.deepMerge(
24335
24335
  defaultOptions,
24336
24336
  streamOptions ?? {}
24337
24337
  );
@@ -24397,7 +24397,7 @@ ${effectiveInstructions}`;
24397
24397
  const defaultOptions = await this.getDefaultOptions({
24398
24398
  requestContext: options?.requestContext
24399
24399
  });
24400
- const mergedOptions = chunkHF4LXXL5_cjs.deepMerge(
24400
+ const mergedOptions = chunkW232X652_cjs.deepMerge(
24401
24401
  defaultOptions,
24402
24402
  options ?? {}
24403
24403
  );
@@ -27740,7 +27740,7 @@ var WorkingMemory = class {
27740
27740
  return messageList;
27741
27741
  }
27742
27742
  generateEmptyFromSchemaInternal(schema) {
27743
- const result = chunkHF4LXXL5_cjs.generateEmptyFromSchema(schema);
27743
+ const result = chunkW232X652_cjs.generateEmptyFromSchema(schema);
27744
27744
  return Object.keys(result).length > 0 ? result : null;
27745
27745
  }
27746
27746
  getWorkingMemoryToolInstruction({
@@ -27943,7 +27943,7 @@ var SemanticRecall = class {
27943
27943
  */
27944
27944
  formatCrossThreadMessages(messages, currentThreadId) {
27945
27945
  let result = ``;
27946
- const v1Messages = new chunkXB5NKHYR_cjs.MessageList().add(messages, "memory").get.all.v1();
27946
+ const v1Messages = new chunkWAPY5X7M_cjs.MessageList().add(messages, "memory").get.all.v1();
27947
27947
  let lastYmd = null;
27948
27948
  for (const msg of v1Messages) {
27949
27949
  const date = msg.createdAt;
@@ -28385,7 +28385,7 @@ https://mastra.ai/en/docs/memory/semantic-recall`
28385
28385
  );
28386
28386
  }
28387
28387
  if (typeof config.embedder === "string") {
28388
- this.embedder = new chunkABQYDFUT_cjs.ModelRouterEmbeddingModel(config.embedder);
28388
+ this.embedder = new chunkFLAZ5DGJ_cjs.ModelRouterEmbeddingModel(config.embedder);
28389
28389
  } else {
28390
28390
  this.embedder = config.embedder;
28391
28391
  }
@@ -28398,7 +28398,7 @@ https://mastra.ai/en/docs/memory/semantic-recall`
28398
28398
  }
28399
28399
  if (config.embedder) {
28400
28400
  if (typeof config.embedder === "string") {
28401
- this.embedder = new chunkABQYDFUT_cjs.ModelRouterEmbeddingModel(config.embedder);
28401
+ this.embedder = new chunkFLAZ5DGJ_cjs.ModelRouterEmbeddingModel(config.embedder);
28402
28402
  } else {
28403
28403
  this.embedder = config.embedder;
28404
28404
  }
@@ -28438,7 +28438,7 @@ https://mastra.ai/en/docs/memory/overview`
28438
28438
  }
28439
28439
  setEmbedder(embedder, embedderOptions) {
28440
28440
  if (typeof embedder === "string") {
28441
- this.embedder = new chunkABQYDFUT_cjs.ModelRouterEmbeddingModel(embedder);
28441
+ this.embedder = new chunkFLAZ5DGJ_cjs.ModelRouterEmbeddingModel(embedder);
28442
28442
  } else {
28443
28443
  this.embedder = embedder;
28444
28444
  }
@@ -28535,7 +28535,7 @@ https://mastra.ai/en/docs/memory/overview`
28535
28535
  "The threads.generateTitle option has been moved. Use the top-level generateTitle option instead."
28536
28536
  );
28537
28537
  }
28538
- const mergedConfig = chunkHF4LXXL5_cjs.deepMerge(this.threadConfig, config || {});
28538
+ const mergedConfig = chunkW232X652_cjs.deepMerge(this.threadConfig, config || {});
28539
28539
  if (typeof config?.workingMemory === "object" && config.workingMemory?.schema && typeof mergedConfig.workingMemory === "object") {
28540
28540
  mergedConfig.workingMemory.schema = config.workingMemory.schema;
28541
28541
  }
@@ -28887,7 +28887,7 @@ var MockMemory = class extends MastraMemory {
28887
28887
  } = {}) {
28888
28888
  super({
28889
28889
  name: "mock",
28890
- storage: storage || new chunkTGN66Y5K_cjs.InMemoryStore(),
28890
+ storage: storage || new chunk7FAUTKNJ_cjs.InMemoryStore(),
28891
28891
  options: {
28892
28892
  ...options,
28893
28893
  workingMemory: enableWorkingMemory ? { enabled: true, template: workingMemoryTemplate } : options?.workingMemory,
@@ -29204,5 +29204,5 @@ exports.validateStepRequestContext = validateStepRequestContext;
29204
29204
  exports.validateStepResumeData = validateStepResumeData;
29205
29205
  exports.validateStepStateData = validateStepStateData;
29206
29206
  exports.validateStepSuspendData = validateStepSuspendData;
29207
- //# sourceMappingURL=chunk-ALMJLYZX.cjs.map
29208
- //# sourceMappingURL=chunk-ALMJLYZX.cjs.map
29207
+ //# sourceMappingURL=chunk-4XGWICCA.cjs.map
29208
+ //# sourceMappingURL=chunk-4XGWICCA.cjs.map